@nanoporetech-digital/components 8.0.0-alpha.11 → 8.0.0-alpha.12
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/dist/cjs/{algolia-data-C57jw89c.js → algolia-data-D6TycVS6.js} +1 -1
- package/dist/cjs/{component-store-D4ZpyJGu.js → component-store-DFgMey0A.js} +1 -1
- package/dist/cjs/{dom-DrCOFZHp.js → dom-Lc3nZSfj.js} +1 -1
- package/dist/cjs/{fade-C1bcLlQH.js → fade-QCWQMt6E.js} +3 -3
- package/dist/cjs/{form-control-ed3BuLGX.js → form-control-iZOZz0ZY.js} +1 -1
- package/dist/cjs/{fullscreen-CEgvGOfe.js → fullscreen-BYiPBVB-.js} +3 -3
- package/dist/cjs/{index-BtfGVqVr.js → index-CFe0EAH2.js} +1 -1
- package/dist/cjs/{index-lEfdugE-.js → index-DxiOGt08.js} +13 -9
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-DHYuvWUl.js → lazyload-CE9AflwC.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-CZ38TYy8.js → modal-DE8UBht9.js} +1 -1
- package/dist/cjs/nano-accordion.cjs.entry.js +3 -3
- package/dist/cjs/nano-alert.cjs.entry.js +7 -7
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +4 -4
- package/dist/cjs/nano-algolia-pagination.cjs.entry.js +2 -2
- package/dist/cjs/nano-algolia-results.cjs.entry.js +3 -3
- package/dist/cjs/nano-algolia.cjs.entry.js +5 -5
- package/dist/cjs/nano-animation.cjs.entry.js +2 -2
- package/dist/cjs/nano-avatar_5.cjs.entry.js +9 -9
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nano-card-carousel.cjs.entry.js +2 -2
- package/dist/cjs/nano-card.cjs.entry.js +1 -1
- package/dist/cjs/nano-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/nano-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +2 -2
- package/dist/cjs/nano-components.cjs.js +3 -3
- package/dist/cjs/nano-content-links.cjs.entry.js +1 -1
- package/dist/cjs/nano-cta.cjs.entry.js +1 -1
- package/dist/cjs/{nano-data-table-BygClX0L.js → nano-data-table-Bt1hEvrv.js} +5 -5
- package/dist/cjs/nano-data-table.cjs.entry.js +6 -6
- package/dist/cjs/nano-datalist_3.cjs.entry.js +3 -3
- package/dist/cjs/nano-date-input.cjs.entry.js +2 -2
- package/dist/cjs/nano-date-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/nano-details.cjs.entry.js +3 -3
- package/dist/cjs/nano-dialog.cjs.entry.js +8 -8
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +5 -5
- package/dist/cjs/nano-feature-box.cjs.entry.js +1 -1
- package/dist/cjs/nano-field-validator.cjs.entry.js +3 -3
- package/dist/cjs/nano-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/nano-footer.cjs.entry.js +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +2 -2
- package/dist/cjs/nano-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-hero.cjs.entry.js +2 -2
- package/dist/cjs/nano-icon-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon_3.cjs.entry.js +2 -2
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +3 -3
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +4 -4
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +4 -4
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +4 -4
- package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
- package/dist/cjs/nano-nav-item.cjs.entry.js +19 -11
- package/dist/cjs/nano-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/nano-range.cjs.entry.js +2 -2
- package/dist/cjs/nano-rating.cjs.entry.js +2 -2
- package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
- package/dist/cjs/nano-slide.cjs.entry.js +2 -2
- package/dist/cjs/{nano-slides-CXU8XyXL.js → nano-slides-C79dDqp3.js} +6 -6
- package/dist/cjs/nano-slides.cjs.entry.js +3 -3
- package/dist/cjs/nano-sortable.cjs.entry.js +2 -2
- package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
- package/dist/cjs/nano-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/nano-sticker.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab.cjs.entry.js +2 -2
- package/dist/cjs/nano-table.cjs.entry.js +2 -2
- package/dist/cjs/{page-dots-DnxKCAbO.js → page-dots-S-JrbRKH.js} +3 -3
- package/dist/cjs/{renderer-Cp5bbbnx.js → renderer-BnqVSAc0.js} +1 -1
- package/dist/cjs/{scroll-oYroBCcY.js → scroll-Drq3PYD1.js} +1 -1
- package/dist/cjs/{slot-DamVLdw5.js → slot-CES6Hsw2.js} +1 -1
- package/dist/cjs/{tabbable-5kSrTVb2.js → tabbable-DpUHjeI_.js} +1 -1
- package/dist/cjs/{table.worker-Dj-G_N11.js → table.worker-DJPRsl4W.js} +6 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/nav-item/nav-item.js +48 -6
- package/dist/components/nav-item.js +17 -7
- package/dist/esm/{algolia-data-CHDAQ-na.js → algolia-data-1P9wrf61.js} +1 -1
- package/dist/esm/{component-store-BA4haUxz.js → component-store-DfmxxsJV.js} +1 -1
- package/dist/esm/{dom-DpX4e3pw.js → dom-dabRzt7p.js} +1 -1
- package/dist/esm/{fade-Dt3mCRd5.js → fade-BwtMNpw7.js} +3 -3
- package/dist/esm/{form-control-BQDNikCR.js → form-control-DJJ-dewI.js} +1 -1
- package/dist/esm/{fullscreen-CiMUnO6C.js → fullscreen-CLTOaIQ8.js} +3 -3
- package/dist/esm/{index-Cb6_W06a.js → index-BC1-owN1.js} +1 -1
- package/dist/esm/{index-CDb2_YWF.js → index-D6WdRvhp.js} +13 -9
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-DBW-FOzX.js → lazyload-CBLyQMEG.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{modal-DnQPxb_Q.js → modal-T-hfWzCu.js} +1 -1
- package/dist/esm/nano-accordion.entry.js +3 -3
- package/dist/esm/nano-alert.entry.js +7 -7
- package/dist/esm/nano-algolia-filter.entry.js +4 -4
- package/dist/esm/nano-algolia-pagination.entry.js +2 -2
- package/dist/esm/nano-algolia-results.entry.js +3 -3
- package/dist/esm/nano-algolia.entry.js +5 -5
- package/dist/esm/nano-animation.entry.js +2 -2
- package/dist/esm/nano-avatar_5.entry.js +9 -9
- package/dist/esm/nano-breadcrumb.entry.js +1 -1
- package/dist/esm/nano-card-carousel.entry.js +2 -2
- package/dist/esm/nano-card.entry.js +1 -1
- package/dist/esm/nano-checkbox-group.entry.js +2 -2
- package/dist/esm/nano-checkbox.entry.js +2 -2
- package/dist/esm/nano-collapsible-comparison.entry.js +2 -2
- package/dist/esm/nano-components.js +4 -4
- package/dist/esm/nano-content-links.entry.js +1 -1
- package/dist/esm/nano-cta.entry.js +1 -1
- package/dist/esm/{nano-data-table-bZhulcwy.js → nano-data-table-BqsFe2Ik.js} +5 -5
- package/dist/esm/nano-data-table.entry.js +6 -6
- package/dist/esm/nano-datalist_3.entry.js +3 -3
- package/dist/esm/nano-date-input.entry.js +2 -2
- package/dist/esm/nano-date-picker_2.entry.js +4 -4
- package/dist/esm/nano-details.entry.js +3 -3
- package/dist/esm/nano-dialog.entry.js +8 -8
- package/dist/esm/nano-dropdown_2.entry.js +5 -5
- package/dist/esm/nano-feature-box.entry.js +1 -1
- package/dist/esm/nano-field-validator.entry.js +3 -3
- package/dist/esm/nano-file-upload.entry.js +2 -2
- package/dist/esm/nano-footer.entry.js +1 -1
- package/dist/esm/nano-global-nav.entry.js +2 -2
- package/dist/esm/nano-grid-item.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +2 -2
- package/dist/esm/nano-hero.entry.js +2 -2
- package/dist/esm/nano-icon-item.entry.js +1 -1
- package/dist/esm/nano-icon_3.entry.js +2 -2
- package/dist/esm/nano-in-page-nav.entry.js +3 -3
- package/dist/esm/nano-intersection-observe.entry.js +4 -4
- package/dist/esm/nano-masked-overflow.entry.js +4 -4
- package/dist/esm/nano-menu-drawer.entry.js +4 -4
- package/dist/esm/nano-more-less.entry.js +2 -2
- package/dist/esm/nano-nav-item.entry.js +19 -11
- package/dist/esm/nano-progress-bar.entry.js +1 -1
- package/dist/esm/nano-range.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +2 -2
- package/dist/esm/nano-resize-observe.entry.js +2 -2
- package/dist/esm/nano-slide.entry.js +2 -2
- package/dist/esm/{nano-slides-BH9wpDRh.js → nano-slides-DEqstC8u.js} +6 -6
- package/dist/esm/nano-slides.entry.js +3 -3
- package/dist/esm/nano-sortable.entry.js +2 -2
- package/dist/esm/nano-spinner.entry.js +1 -1
- package/dist/esm/nano-split-pane.entry.js +2 -2
- package/dist/esm/nano-sticker.entry.js +4 -4
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab-group.entry.js +4 -4
- package/dist/esm/nano-tab.entry.js +2 -2
- package/dist/esm/nano-table.entry.js +2 -2
- package/dist/esm/{page-dots-B5aFjE5U.js → page-dots-2yJYdWP9.js} +3 -3
- package/dist/esm/{renderer-CGoibSOJ.js → renderer-BhDJHRB-.js} +1 -1
- package/dist/esm/{scroll-DMVLi4kX.js → scroll-CRQg8Vf0.js} +1 -1
- package/dist/esm/{slot-xEoA61Tz.js → slot-D_kg1OPh.js} +1 -1
- package/dist/esm/{tabbable-DQFS44_5.js → tabbable-kd8FQPK3.js} +1 -1
- package/dist/esm/{table.worker-Bt49ORjw.js → table.worker-BJVVUKdP.js} +6 -6
- package/dist/nano-components/{algolia-data-CHDAQ-na.js → algolia-data-1P9wrf61.js} +1 -1
- package/dist/nano-components/{component-store-BA4haUxz.js → component-store-DfmxxsJV.js} +1 -1
- package/dist/nano-components/{dom-DpX4e3pw.js → dom-dabRzt7p.js} +1 -1
- package/dist/nano-components/{fade-Dt3mCRd5.js → fade-BwtMNpw7.js} +1 -1
- package/dist/nano-components/{form-control-BQDNikCR.js → form-control-DJJ-dewI.js} +1 -1
- package/dist/nano-components/{fullscreen-CiMUnO6C.js → fullscreen-CLTOaIQ8.js} +1 -1
- package/dist/nano-components/{index-Cb6_W06a.js → index-BC1-owN1.js} +1 -1
- package/dist/nano-components/{index-CDb2_YWF.js → index-D6WdRvhp.js} +1 -1
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/{lazyload-DBW-FOzX.js → lazyload-CBLyQMEG.js} +1 -1
- package/dist/nano-components/{modal-DnQPxb_Q.js → modal-T-hfWzCu.js} +1 -1
- package/dist/nano-components/nano-accordion.entry.js +1 -1
- package/dist/nano-components/nano-alert.entry.js +1 -1
- package/dist/nano-components/nano-algolia-filter.entry.js +1 -1
- package/dist/nano-components/nano-algolia-pagination.entry.js +1 -1
- package/dist/nano-components/nano-algolia-results.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-animation.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-card-carousel.entry.js +1 -1
- package/dist/nano-components/nano-card.entry.js +1 -1
- package/dist/nano-components/nano-checkbox-group.entry.js +1 -1
- package/dist/nano-components/nano-checkbox.entry.js +1 -1
- package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-content-links.entry.js +1 -1
- package/dist/nano-components/nano-cta.entry.js +1 -1
- package/dist/nano-components/{nano-data-table-bZhulcwy.js → nano-data-table-BqsFe2Ik.js} +1 -1
- package/dist/nano-components/nano-data-table.entry.js +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-date-input.entry.js +1 -1
- package/dist/nano-components/nano-date-picker_2.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-dialog.entry.js +1 -1
- package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
- package/dist/nano-components/nano-feature-box.entry.js +1 -1
- package/dist/nano-components/nano-field-validator.entry.js +1 -1
- package/dist/nano-components/nano-file-upload.entry.js +1 -1
- package/dist/nano-components/nano-footer.entry.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-grid-item.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/nano-hero.entry.js +1 -1
- package/dist/nano-components/nano-icon-item.entry.js +1 -1
- package/dist/nano-components/nano-icon_3.entry.js +1 -1
- package/dist/nano-components/nano-in-page-nav.entry.js +1 -1
- package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
- package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-more-less.entry.js +1 -1
- package/dist/nano-components/nano-nav-item.entry.js +1 -1
- package/dist/nano-components/nano-progress-bar.entry.js +1 -1
- package/dist/nano-components/nano-range.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-BH9wpDRh.js → nano-slides-DEqstC8u.js} +4 -4
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js +1 -1
- package/dist/nano-components/nano-spinner.entry.js +1 -1
- package/dist/nano-components/nano-split-pane.entry.js +1 -1
- package/dist/nano-components/nano-sticker.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.entry.js +1 -1
- package/dist/nano-components/nano-tab-group.entry.js +1 -1
- package/dist/nano-components/nano-tab.entry.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/{page-dots-B5aFjE5U.js → page-dots-2yJYdWP9.js} +1 -1
- package/dist/nano-components/{renderer-CGoibSOJ.js → renderer-BhDJHRB-.js} +1 -1
- package/dist/nano-components/{scroll-DMVLi4kX.js → scroll-CRQg8Vf0.js} +1 -1
- package/dist/nano-components/{slot-xEoA61Tz.js → slot-D_kg1OPh.js} +1 -1
- package/dist/nano-components/{tabbable-DQFS44_5.js → tabbable-kd8FQPK3.js} +1 -1
- package/dist/nano-components/table.worker-BJVVUKdP.js +4 -0
- package/dist/types/components/nav-item/nav-item.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/docs-json.json +46 -2
- package/hydrate/index.js +31 -17
- package/hydrate/index.mjs +31 -17
- package/package.json +2 -2
- package/dist/nano-components/table.worker-Bt49ORjw.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import{g as t,r as e,a as o}from"./index-
|
4
|
+
import{g as t,r as e,a as o}from"./index-D6WdRvhp.js";import{d as n}from"./throttle-C93FMm2Z.js";import{t as a,h as s}from"./renderer-BhDJHRB-.js";const i=class{get host(){return t(this)}propsReady=!1;compact="auto";handleCompactChange(){this.setupProperties()}scrollable=!0;hideCaption=!1;handleHideCaptionChange(){const t=this.caption;t&&t.classList.toggle("visually-hidden",this.hideCaption)}resizeObserver;mutationObserver;intersectionObserver;settingUp=!1;get table(){return this.host.querySelector("table")}get caption(){return this.host.querySelector("caption")||(console.error("nano-table: No caption found. For better a11y, please add a <caption> element to the table."),null)}setupProperties=()=>{const t=this.table;if(!t||this.settingUp)return;this.settingUp=!0;const e=Array.from(this.host.querySelectorAll("tr"));for(const t of e)1===this.getRowClickElements(t).length?(t.setAttribute("clickable","true"),t.addEventListener("click",this.rowClickHandler)):(t.removeAttribute("clickable"),t.removeEventListener("click",this.rowClickHandler));const o=t.querySelectorAll("thead, tbody, tfoot");let n=0;if(t.querySelector("[sticky=start], [sticky=end]")){for(const t of o)t.style.setProperty("--section-height",`${t.offsetHeight}px`);const t=Array.from(this.host.querySelectorAll("thead th, thead td"));for(const e of t)e.matches("[sticky=start]")&&(this.makeCellsSticky(e,"start",n),n>0&&e.style.setProperty("--sticky-start",`${n}px`),n+=e.offsetWidth-1);n=0;for(const e of[...t].reverse())e.matches("[sticky=end]")&&(this.makeCellsSticky(e,"end",n),n>0&&e.style.setProperty("--sticky-end",`${n}px`),n+=e.offsetWidth-1)}if(t.querySelector("[sticky=top]")){n=0;for(const t of o){const e=Array.from(t.querySelectorAll("tr[sticky]"));for(const[t,o]of e.entries())o.matches("[sticky=top]")&&n>0&&o.style.setProperty("--sticky-top",`${n}px`),t===e.length-1&&(n+=o.offsetHeight-1)}}this.settingUp=!1,this.propsReady=!0};getRowClickElements(t){const e=t.querySelectorAll("a"),o=t.querySelectorAll("button"),n=Array.from(t.querySelectorAll('input[type="checkbox"]')).filter((t=>!t.closest("nano-checkbox"))),a=Array.from(t.querySelectorAll('input[type="radio"]')).filter((t=>!t.closest("nano-checkbox")));return[...e,...o,...t.querySelectorAll("nano-checkbox"),...n,...a]}rowClickHandler=t=>{const e=t.target,o=e.closest("tr");if(!o)return;const n=this.getRowClickElements(o);1===n.length&&e.closest(n[0].tagName)!==n[0]&&n[0].click()};makeCellsSticky(t,e,o=0){const n=t.closest("table"),a=t.closest("tr"),s=Array.from(a.cells);let i=0;for(const e of s){if(e===t)break;i+=e.colSpan||1}for(const t of n.tBodies)for(const n of t.rows){let t=0;for(const a of n.cells){const n=a.colSpan||1;if(t<=i&&i<t+n){a.setAttribute("sticky",e),o>0&&a.style.setProperty("--sticky-"+e,`${o}px`);break}t+=n}}}addObservers(){this.resizeObserver=new ResizeObserver((()=>{this.setupProperties()})),this.resizeObserver.observe(this.host),this.mutationObserver=new MutationObserver((()=>{this.setupProperties()}));const t=this.table;this.mutationObserver.observe(t,{childList:!0,subtree:!0}),this.intersectionObserver=new IntersectionObserver((()=>{this.setupProperties(),this.intersectionObserver.disconnect()}),{threshold:1}),this.intersectionObserver.observe(t)}cleanUpObservers(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)}constructor(t){e(this,t),this.setupProperties=n(this.setupProperties,100)}connectedCallback(){this.addObservers(),this.handleHideCaptionChange()}componentDidRender(){!1!==this.scrollable&&this.table&&customElements.whenDefined(a("nano-masked-overflow")).then((()=>{this.host.querySelector(".nano-table__overflow")?.appendChild(this.table)}))}disconnectedCallback(){this.cleanUpObservers()}render(){return s(o,{key:"0a9318e167bc0a0ac564aa04600212be5b862739",class:{"nano-table":!0,"nano-table--props-ready":this.propsReady}},this.scrollable&&s("nano-masked-overflow",{key:"928d2e95a991c6f46042e78c3422506b33f76382",hideScrollbars:!1,scrollControls:!1,label:this.caption?.textContent||void 0,class:"nano-table__overflow-container"},s("div",{key:"d4f47ea9d7f1c72a50d6cc0f8338ddb7c241e7e6",class:"nano-table__overflow"})),s("slot",{key:"82180d451b163fa966a470308f3aca6fdbb3dff9"}))}static get watchers(){return{compact:["handleCompactChange"],hideCaption:["handleHideCaptionChange"]}}};i.style=".sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{box-sizing:border-box}[hidden].sc-nano-table{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{box-sizing:border-box}[hidden].sc-nano-table{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}";export{i as nano_table}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import{F as t,u as i,U as s}from"./nano-slides-
|
4
|
+
import{F as t,u as i,U as s}from"./nano-slides-DEqstC8u.js";import"./index-D6WdRvhp.js";import"./renderer-BhDJHRB-.js";function h(t){this.parent=t,this.parentElement=this.parent.element.shadowRoot||this.parent.element,this._create()}(h.prototype=Object.create(s.prototype))._create=function(){this.holder=document.createElement("div"),this.holder.className="flickity-page-dots",this.holder.part.add("pagination"),this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},h.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parentElement.appendChild(this.holder)},h.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parentElement.removeChild(this.holder)},h.prototype.setDots=function(){const t=this.parent.slides.length-this.dots.length;t>0?this.addDots(t):t<0&&this.removeDots(-t)},h.prototype.addDots=function(t){const i=document.createDocumentFragment(),s=[],h=this.dots.length,n=h+t;for(let t=h;t<n;t++){const h=document.createElement("button");h.classList.add("dot"),h.innerText=`Go to slide ${t+1}`,i.appendChild(h),s.push(h)}this.holder.appendChild(i),this.dots=this.dots.concat(s)},h.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach((function(t){this.holder.removeChild(t)}),this)},h.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.classList.remove("is-selected"),this.selectedDot.part.remove("pagination-item--active"),this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.classList.add("is-selected"),this.selectedDot.part.add("pagination-item--active"),this.selectedDot.setAttribute("aria-current","step"))},h.prototype.onTap=h.prototype.onClick=function(t){const i=t.target;if("BUTTON"!=i.nodeName)return;this.parent.uiChange();const s=this.dots.indexOf(i);this.parent.select(s)},h.prototype.destroy=function(){this.deactivate(),this.allOff()},t.PageDots=h,i.extend(t.defaults,{pageDots:!0}),t.createMethods.push("_createPageDots");const n=t.prototype;n._createPageDots=function(){this.options.pageDots&&(this.pageDots=new h(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},n.activatePageDots=function(){this.pageDots.activate()},n.updateSelectedPageDots=function(){this.pageDots.updateSelected()},n.updatePageDots=function(){this.pageDots.setDots()},n.deactivatePageDots=function(){this.pageDots.deactivate()},t.PageDots=h;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import{h as n}from"./index-
|
4
|
+
import{h as n}from"./index-D6WdRvhp.js";const t=["nano-avatar","nano-badge","nano-card","nano-cta","nano-icon-item","nano-tag","nano-content-links"];function o(n){return r&&n.startsWith("nano-")&&!t.includes(n)?`${r}-${n}`:n}function a(...t){const a=t[0];if(!a||"string"!=typeof a||!r)return n(...t);let e=a;"string"==typeof a&&(e=o(a));const i=t.slice(2);return n(e,t[1],i)}let r="";function e(n){return r=n,o}function i(){return r}a||(a={});export{i as g,a as h,e as s,o as t}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import{a as t}from"./dom-
|
4
|
+
import{a as t}from"./dom-dabRzt7p.js";const o=new Set;function n(t){if(o.add(t),document.documentElement.classList.contains("nano-scroll-lock"))return;const n=function(){const t=document.documentElement.clientWidth,o=Math.abs(window.innerWidth-t),{paddingRight:n,paddingInlineEnd:e}=getComputedStyle(document.body);let c=Number((e||n).replace(/px/,""));return(c||isNaN(c))&&(c=0),o+c}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),n<=0&&(e="revert"),document.documentElement.style.setProperty("--nano-scroll-lock-gutter",e),document.documentElement.classList.add("nano-scroll-lock"),document.documentElement.style.setProperty("--nano-scroll-lock-size",`${n}px`)}function e(t){o.delete(t),0===o.size&&(document.documentElement.classList.remove("nano-scroll-lock"),document.documentElement.style.removeProperty("--nano-scroll-lock-size"))}function c(t,o,n=!1){if(n)try{t.scrollTo({top:o,behavior:"smooth"})}catch(n){t.scrollTop=o}else try{t.scrollTo({left:o,behavior:"smooth"})}catch(n){t.scrollLeft=o}}function r(o,n,e="vertical",r="start"){if(!o)return;const l=t(o,n),u=l.top+n.scrollTop,a=l.left+n.scrollLeft,s=n.scrollLeft+n.offsetWidth,i=n.scrollTop,d=n.scrollTop+n.offsetHeight;"horizontal"!==e&&"both"!==e||("start"===r?a<n.scrollLeft?c(n,a):a+o.clientWidth>s&&c(n,a-n.offsetWidth+o.clientWidth):c(n,n.scrollLeft+l.left-(n.offsetWidth/2-o.offsetWidth/2))),"vertical"!==e&&"both"!==e||("start"===r?u<i?c(n,u,!0):u+o.clientHeight>d&&c(n,u-n.offsetHeight+o.clientHeight,!0):c(n,n.scrollTop+l.top-(n.offsetHeight/2-o.offsetHeight/2),!0))}function l(t){let o=getComputedStyle(t);const n="absolute"===o.position,e=/(auto|scroll)/;if("fixed"===o.position)return document.documentElement;for(let c=t;c=c.parentElement;)if(o=getComputedStyle(c),(!n||"static"!==o.position)&&e.test(o.overflow+o.overflowY+o.overflowX))return c;return document.documentElement}function u(t,o=100,n="y"){const e=t.getBoundingClientRect(),c=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(!(e.bottom||e.top||e.left||e.right||e.height||e.width||e.x||e.y))return!1;let l=!0;return"y"!==n&&"both"!==n||(l=!(Math.floor(100-(e.top>=0?0:e.top)/+-e.height*100)<o||Math.floor(100-(e.bottom-c)/e.height*100)<o)),("x"===n||"both"===n&&l)&&(l=!(Math.floor(100-(e.left>=0?0:e.left)/+-e.width*100)<o||Math.floor(100-(e.right-r)/e.width*100)<o)),l}export{l as f,u as i,n as l,r as s,e as u}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import{g as t,j as s}from"./index-
|
4
|
+
import{g as t,j as s}from"./index-D6WdRvhp.js";function h(t){const s=t.getRootNode();return s.host?s.host.innerText:t.innerText}class o{host;slotNames=[];constructor(s,...h){this.slotNames=h;const o=s.componentWillLoad;s.componentWillLoad=()=>{this.host=t(s),o&&o.call(s)};const i=s.connectedCallback;s.connectedCallback=()=>{this.host=t(s),this.hostConnected(),i&&i.call(s)};const e=s.disconnectedCallback;s.disconnectedCallback=()=>{this.hostDisconnected(),this.host=void 0,e&&e.call(s)}}hasDefaultSlot(){return!!this.host&&[...this.host.childNodes].some((t=>t.nodeType===Node.TEXT_NODE&&""!==t.textContent.trim()||t.nodeType===Node.ELEMENT_NODE&&!t.hasAttribute("slot")))}hasNamedSlot(t){return!!this.host&&!!this.host.querySelector(`[slot="${t}"]`)}has(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host&&this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange=t=>{const h=t.target;(this.slotNames.includes("[default]")&&!h.name||h.name&&this.slotNames.includes(h.name))&&s(this.host)}}export{o as H,h as g}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import"./index-
|
4
|
+
import"./index-D6WdRvhp.js";function t(e,n=!1,r=!1,i=!1){const o=[];if(e instanceof HTMLElement){if(function(t,e=!1){const n=t.tagName.toLowerCase();if(!["button","input","select","textarea","a","audio","video","summary"].includes(n))return!1;if("-1"===t.getAttribute("tabindex"))return!1;if(t.hasAttribute("disabled"))return!1;if(t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled"))return!1;if(t.hasAttribute("tabindex"))return!0;if(t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))return!0;if(("audio"===n||"video"===n)&&t.hasAttribute("controls"))return!0;if("input"===n&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked"))return!1;if("a"===n&&!t.hasAttribute("href"))return!1;if(!e){if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return!1;if("function"==typeof t.checkVisibility&&!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0}))return!1}return!0}(e,r)&&(o.push(e),n))return o;!i&&e.shadowRoot&&"open"===e.shadowRoot.mode&&t(e.shadowRoot,n,r).map((t=>{o.includes(t)||o.push(t)})),HTMLSlotElement&&e instanceof HTMLSlotElement&&e.assignedElements().map((e=>{t(e,n,r).map((t=>{o.includes(t)||o.push(t)}))}))}return Array.from(e.children).map((e=>{t(e,n,r).map((t=>{o.includes(t)||o.push(t)}))})),o}function e(e){window.getTabbableElements=t;const n=t(e,!0,!0);return n.length?n[0]:null}export{e as a,t as g}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*!
|
2
|
+
* Custom elements for Nanopore-Digital Web applications
|
3
|
+
*/
|
4
|
+
import{c as t}from"./nano-data-table-BqsFe2Ik.js";import"./index-D6WdRvhp.js";import"./renderer-BhDJHRB-.js";import"./math-BEqsTfVK.js";import"./throttle-C93FMm2Z.js";import"./scroll-CRQg8Vf0.js";import"./dom-dabRzt7p.js";import"./index-BC1-owN1.js";const r="table.worker",o="stencil.table.worker",e=new URL("table.worker-BTF0UXAd.js",import.meta.url).href;let s;try{s=t(e,r,o)}catch(p){const i=new Blob(['importScripts("'+e+'")'],{type:"text/javascript"}),m=URL.createObjectURL(i);s=t(m,r,o),URL.revokeObjectURL(m)}export{s as worker,o as workerMsgId,r as workerName,e as workerPath}
|
@@ -68,6 +68,10 @@ export declare class NavItem implements ComponentInterface {
|
|
68
68
|
private toggleSecondary;
|
69
69
|
private handleClick;
|
70
70
|
private handleDefaultSlotChange;
|
71
|
+
/** Closes the secondary nav panel if it is open */
|
72
|
+
closeMenu(): Promise<void>;
|
73
|
+
/** Opens the secondary nav panel if it is not open */
|
74
|
+
openMenu(): Promise<void>;
|
71
75
|
connectedCallback(): void;
|
72
76
|
componentDidLoad(): void;
|
73
77
|
render(): any;
|
@@ -2326,6 +2326,10 @@ export namespace Components {
|
|
2326
2326
|
* @default false
|
2327
2327
|
*/
|
2328
2328
|
"checkbox": boolean;
|
2329
|
+
/**
|
2330
|
+
* Closes the secondary nav panel if it is open
|
2331
|
+
*/
|
2332
|
+
"closeMenu": () => Promise<void>;
|
2329
2333
|
/**
|
2330
2334
|
* Whether secondary menus should close on blur
|
2331
2335
|
* @default true
|
@@ -2346,6 +2350,10 @@ export namespace Components {
|
|
2346
2350
|
* @default false
|
2347
2351
|
*/
|
2348
2352
|
"open": boolean;
|
2353
|
+
/**
|
2354
|
+
* Opens the secondary nav panel if it is not open
|
2355
|
+
*/
|
2356
|
+
"openMenu": () => Promise<void>;
|
2349
2357
|
/**
|
2350
2358
|
* Whether this menu item is currently 'selected'
|
2351
2359
|
* @default false
|
package/docs-json.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2025-07-
|
2
|
+
"timestamp": "2025-07-11T22:20:45",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
|
-
"version": "4.35.3-dev.
|
5
|
+
"version": "4.35.3-dev.1752259270.e005970",
|
6
6
|
"typescriptVersion": "5.5.4"
|
7
7
|
},
|
8
8
|
"components": [
|
@@ -19235,6 +19235,50 @@
|
|
19235
19235
|
}
|
19236
19236
|
],
|
19237
19237
|
"methods": [
|
19238
|
+
{
|
19239
|
+
"name": "closeMenu",
|
19240
|
+
"returns": {
|
19241
|
+
"type": "Promise<void>",
|
19242
|
+
"docs": ""
|
19243
|
+
},
|
19244
|
+
"complexType": {
|
19245
|
+
"signature": "() => Promise<void>",
|
19246
|
+
"parameters": [],
|
19247
|
+
"references": {
|
19248
|
+
"Promise": {
|
19249
|
+
"location": "global",
|
19250
|
+
"id": "global::Promise"
|
19251
|
+
}
|
19252
|
+
},
|
19253
|
+
"return": "Promise<void>"
|
19254
|
+
},
|
19255
|
+
"signature": "closeMenu() => Promise<void>",
|
19256
|
+
"parameters": [],
|
19257
|
+
"docs": "Closes the secondary nav panel if it is open",
|
19258
|
+
"docsTags": []
|
19259
|
+
},
|
19260
|
+
{
|
19261
|
+
"name": "openMenu",
|
19262
|
+
"returns": {
|
19263
|
+
"type": "Promise<void>",
|
19264
|
+
"docs": ""
|
19265
|
+
},
|
19266
|
+
"complexType": {
|
19267
|
+
"signature": "() => Promise<void>",
|
19268
|
+
"parameters": [],
|
19269
|
+
"references": {
|
19270
|
+
"Promise": {
|
19271
|
+
"location": "global",
|
19272
|
+
"id": "global::Promise"
|
19273
|
+
}
|
19274
|
+
},
|
19275
|
+
"return": "Promise<void>"
|
19276
|
+
},
|
19277
|
+
"signature": "openMenu() => Promise<void>",
|
19278
|
+
"parameters": [],
|
19279
|
+
"docs": "Opens the secondary nav panel if it is not open",
|
19280
|
+
"docsTags": []
|
19281
|
+
},
|
19238
19282
|
{
|
19239
19283
|
"name": "setFocus",
|
19240
19284
|
"returns": {
|
package/hydrate/index.js
CHANGED
@@ -137,7 +137,7 @@ var appGlobalScript = async () => { };
|
|
137
137
|
const globalScripts = appGlobalScript;
|
138
138
|
|
139
139
|
/*
|
140
|
-
Stencil Hydrate Platform v4.35.3-dev.
|
140
|
+
Stencil Hydrate Platform v4.35.3-dev.1752259270.e005970 | MIT Licensed | https://stenciljs.com
|
141
141
|
*/
|
142
142
|
var __defProp = Object.defineProperty;
|
143
143
|
var __export = (target, all) => {
|
@@ -756,7 +756,7 @@ var convertToPrivate = (node) => {
|
|
756
756
|
|
757
757
|
// src/runtime/client-hydrate.ts
|
758
758
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
759
|
-
var _a, _b;
|
759
|
+
var _a, _b, _c;
|
760
760
|
const endHydrate = createTime("hydrateClient", tagName);
|
761
761
|
const shadowRoot = hostElm.shadowRoot;
|
762
762
|
const childRenderNodes = [];
|
@@ -872,6 +872,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
872
872
|
}
|
873
873
|
if (!hosts[slottedItem.hostId]) continue;
|
874
874
|
const hostEle = hosts[slottedItem.hostId];
|
875
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
876
|
+
hostEle.appendChild(slottedItem.node);
|
877
|
+
}
|
875
878
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
876
879
|
if (!slottedItem.slot["s-cr"]) {
|
877
880
|
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
@@ -882,9 +885,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
882
885
|
}
|
883
886
|
}
|
884
887
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
889
|
+
slottedItem.node.removeAttribute("slot");
|
890
|
+
}
|
888
891
|
}
|
889
892
|
}
|
890
893
|
}
|
@@ -1128,7 +1131,7 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
1128
1131
|
if (shadowRootNodes && win.document) {
|
1129
1132
|
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
1130
1133
|
if (childVNode.$name$) {
|
1131
|
-
|
1134
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
1132
1135
|
}
|
1133
1136
|
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
1134
1137
|
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
@@ -1157,16 +1160,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
1157
1160
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
1158
1161
|
}
|
1159
1162
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
1160
|
-
var _a;
|
1163
|
+
var _a, _b;
|
1161
1164
|
let slottedNode = slotNode.nextSibling;
|
1162
1165
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
1166
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
1163
1167
|
do {
|
1164
|
-
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
1168
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
1165
1169
|
slottedNode["s-sn"] = slotName;
|
1166
1170
|
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
1167
1171
|
}
|
1168
1172
|
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
1169
|
-
} while (slottedNode && !((
|
1173
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
1170
1174
|
};
|
1171
1175
|
var findCorrespondingNode = (node, type) => {
|
1172
1176
|
let sibling = node;
|
@@ -23616,6 +23620,14 @@ class NavItem {
|
|
23616
23620
|
slottedA.remove();
|
23617
23621
|
}
|
23618
23622
|
};
|
23623
|
+
/** Closes the secondary nav panel if it is open */
|
23624
|
+
async closeMenu() {
|
23625
|
+
this.closeSecondary();
|
23626
|
+
}
|
23627
|
+
/** Opens the secondary nav panel if it is not open */
|
23628
|
+
async openMenu() {
|
23629
|
+
this.openSecondary();
|
23630
|
+
}
|
23619
23631
|
connectedCallback() {
|
23620
23632
|
this.handleDefaultSlotChange();
|
23621
23633
|
this.isInMenuDrawer = !!this.host.closest(transformTag('nano-menu-drawer'));
|
@@ -23624,22 +23636,22 @@ class NavItem {
|
|
23624
23636
|
this.openChange();
|
23625
23637
|
}
|
23626
23638
|
render() {
|
23627
|
-
return (h(Host, { key: '
|
23639
|
+
return (h(Host, { key: 'b6ce27588c1ca2ac2a42d0aada06d7f554a1174a', class: {
|
23628
23640
|
'nano-menu-drawer': this.isInMenuDrawer,
|
23629
23641
|
'nano-nav-item': true,
|
23630
23642
|
disabled: this.disabled,
|
23631
|
-
}, role: this.host.closest('[role="menu"]') ? 'menuitem' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: '
|
23643
|
+
}, role: this.host.closest('[role="menu"]') ? 'menuitem' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: 'e8faa3568a13feb95ef131f0bd412577120fbf84', class: {
|
23632
23644
|
navitem: true,
|
23633
23645
|
'navitem--open': this.open,
|
23634
23646
|
'navitem--active': this.selected,
|
23635
|
-
}, part: "trigger-wrapper" }, this.href && !this.disabled && (h("a", { key: '
|
23647
|
+
}, part: "trigger-wrapper" }, this.href && !this.disabled && (h("a", { key: '4a4da7478db63015d0dcd81ed053146f8eeac5f3', part: "trigger trigger--anchor", target: this.target, ref: (a) => (this.controlElement = a), href: this.href, class: {
|
23636
23648
|
navitem__trigger: true,
|
23637
|
-
} }, h("slot", { key: '
|
23649
|
+
} }, h("slot", { key: '1eafb7864368850ad2539c402eb1b00877f3d55e', name: "icon-start" }), h("span", { key: '8953312d4dad64ced970d2f1120c07b6c36070f1', class: "navitem__label", part: "label" }, h("slot", { key: '390f468f8d1f5d4f0669cae53ef140e452b16b07', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '3ecd42c2ca6c1546f48a1a5fcf7742d90ad4e1c4', name: "icon-end" }))), (!this.href || this.disabled) && (h("button", { key: '0694ce0708264ef1305e4b926a2f40f1875025a9', role: this.checkbox ? 'checkbox' : undefined, "aria-checked": this.checkbox ? this.selected.toString() : undefined, part: "trigger trigger--button", ref: (btn) => (this.controlElement = btn), onClick: this.handleClick, disabled: this.disabled, class: {
|
23638
23650
|
navitem__trigger: true,
|
23639
|
-
} }, h("slot", { key: '
|
23651
|
+
} }, h("slot", { key: 'c3cc4fcbb527f5f8ea2786243fe610d587e36190', name: "icon-start" }), h("span", { key: '385c92f1f2cc26b9c7e4f1a8601920c1f3bf2171', class: "navitem__label", part: "label" }, h("slot", { key: '4e7a75c8903081856c20206aa309c2a9855991da', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '668b95901ba0b914ccc193d4f3cc4433d908c014', name: "icon-end" }))), this.slotCtrl.has('secondary') && !this.disabled && (h("div", { key: 'f81c9aeb6c903b25a662fd1fc615d6f95f6b8f4d', part: "modal", class: {
|
23640
23652
|
navitem__modal: true,
|
23641
23653
|
'navitem__modal--open': this.didOpen,
|
23642
|
-
}, ref: (div) => (this.secondaryDiv = div), tabIndex: -1 }, h("div", { key: '
|
23654
|
+
}, ref: (div) => (this.secondaryDiv = div), tabIndex: -1 }, h("div", { key: '70a4b002e989753c461c7dac4dd975200a92e3de', class: "navitem__modal-content", part: `modal-content ${this.didOpen ? 'modal-content--open' : ''}` }, this.slotCtrl.has('close-button') && (h("div", { key: '7b0daad80ae03a29789c9d2bef74d2473f2f1f39', part: "close-button", onClick: this.closeSecondary }, h("slot", { key: '858798062958ea0f4ee809cbf853bdb83dd4d184', name: "close-button" }))), h("slot", { key: '41583a8cc59babbfb1a9a084a3de31c61a145fbc', name: "secondary" })), h("div", { key: '5c260dca9a8fdf7951349df64a037fc7415c3c4b', class: "navitem__modal-mask", onClick: this.closeSecondary, part: `modal-mask ${this.didOpen ? 'modal-mask--open' : ''}` }))))));
|
23643
23655
|
}
|
23644
23656
|
static get watchers() { return {
|
23645
23657
|
"open": ["openChange"],
|
@@ -23659,7 +23671,9 @@ class NavItem {
|
|
23659
23671
|
"closeOnBlur": [4, "close-on-blur"],
|
23660
23672
|
"didOpen": [32],
|
23661
23673
|
"isInMenuDrawer": [32],
|
23662
|
-
"setFocus": [64]
|
23674
|
+
"setFocus": [64],
|
23675
|
+
"closeMenu": [64],
|
23676
|
+
"openMenu": [64]
|
23663
23677
|
},
|
23664
23678
|
"$listeners$": [[16, "click", "handleClose"], [16, "keyup", "handleClose"]],
|
23665
23679
|
"$lazyBundleId$": "-",
|
@@ -32666,7 +32680,7 @@ var NAMESPACE = (
|
|
32666
32680
|
);
|
32667
32681
|
|
32668
32682
|
/*
|
32669
|
-
Stencil Hydrate Runner v4.35.3-dev.
|
32683
|
+
Stencil Hydrate Runner v4.35.3-dev.1752259270.e005970 | MIT Licensed | https://stenciljs.com
|
32670
32684
|
*/
|
32671
32685
|
var __defProp = Object.defineProperty;
|
32672
32686
|
var __export = (target, all) => {
|
package/hydrate/index.mjs
CHANGED
@@ -135,7 +135,7 @@ var appGlobalScript = async () => { };
|
|
135
135
|
const globalScripts = appGlobalScript;
|
136
136
|
|
137
137
|
/*
|
138
|
-
Stencil Hydrate Platform v4.35.3-dev.
|
138
|
+
Stencil Hydrate Platform v4.35.3-dev.1752259270.e005970 | MIT Licensed | https://stenciljs.com
|
139
139
|
*/
|
140
140
|
var __defProp = Object.defineProperty;
|
141
141
|
var __export = (target, all) => {
|
@@ -754,7 +754,7 @@ var convertToPrivate = (node) => {
|
|
754
754
|
|
755
755
|
// src/runtime/client-hydrate.ts
|
756
756
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
757
|
-
var _a, _b;
|
757
|
+
var _a, _b, _c;
|
758
758
|
const endHydrate = createTime("hydrateClient", tagName);
|
759
759
|
const shadowRoot = hostElm.shadowRoot;
|
760
760
|
const childRenderNodes = [];
|
@@ -870,6 +870,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
870
870
|
}
|
871
871
|
if (!hosts[slottedItem.hostId]) continue;
|
872
872
|
const hostEle = hosts[slottedItem.hostId];
|
873
|
+
if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
|
874
|
+
hostEle.appendChild(slottedItem.node);
|
875
|
+
}
|
873
876
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
874
877
|
if (!slottedItem.slot["s-cr"]) {
|
875
878
|
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
@@ -880,9 +883,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
880
883
|
}
|
881
884
|
}
|
882
885
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
+
if (((_c = slottedItem.node.parentElement) == null ? void 0 : _c.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
|
887
|
+
slottedItem.node.removeAttribute("slot");
|
888
|
+
}
|
886
889
|
}
|
887
890
|
}
|
888
891
|
}
|
@@ -1126,7 +1129,7 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
1126
1129
|
if (shadowRootNodes && win.document) {
|
1127
1130
|
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
1128
1131
|
if (childVNode.$name$) {
|
1129
|
-
|
1132
|
+
childVNode.$elm$.setAttribute("name", slotName);
|
1130
1133
|
}
|
1131
1134
|
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
1132
1135
|
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
@@ -1155,16 +1158,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
1155
1158
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
1156
1159
|
}
|
1157
1160
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
1158
|
-
var _a;
|
1161
|
+
var _a, _b;
|
1159
1162
|
let slottedNode = slotNode.nextSibling;
|
1160
1163
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
1164
|
+
if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
|
1161
1165
|
do {
|
1162
|
-
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
1166
|
+
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
1163
1167
|
slottedNode["s-sn"] = slotName;
|
1164
1168
|
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
1165
1169
|
}
|
1166
1170
|
slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
|
1167
|
-
} while (slottedNode && !((
|
1171
|
+
} while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
|
1168
1172
|
};
|
1169
1173
|
var findCorrespondingNode = (node, type) => {
|
1170
1174
|
let sibling = node;
|
@@ -23614,6 +23618,14 @@ class NavItem {
|
|
23614
23618
|
slottedA.remove();
|
23615
23619
|
}
|
23616
23620
|
};
|
23621
|
+
/** Closes the secondary nav panel if it is open */
|
23622
|
+
async closeMenu() {
|
23623
|
+
this.closeSecondary();
|
23624
|
+
}
|
23625
|
+
/** Opens the secondary nav panel if it is not open */
|
23626
|
+
async openMenu() {
|
23627
|
+
this.openSecondary();
|
23628
|
+
}
|
23617
23629
|
connectedCallback() {
|
23618
23630
|
this.handleDefaultSlotChange();
|
23619
23631
|
this.isInMenuDrawer = !!this.host.closest(transformTag('nano-menu-drawer'));
|
@@ -23622,22 +23634,22 @@ class NavItem {
|
|
23622
23634
|
this.openChange();
|
23623
23635
|
}
|
23624
23636
|
render() {
|
23625
|
-
return (h(Host, { key: '
|
23637
|
+
return (h(Host, { key: 'b6ce27588c1ca2ac2a42d0aada06d7f554a1174a', class: {
|
23626
23638
|
'nano-menu-drawer': this.isInMenuDrawer,
|
23627
23639
|
'nano-nav-item': true,
|
23628
23640
|
disabled: this.disabled,
|
23629
|
-
}, role: this.host.closest('[role="menu"]') ? 'menuitem' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: '
|
23641
|
+
}, role: this.host.closest('[role="menu"]') ? 'menuitem' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: 'e8faa3568a13feb95ef131f0bd412577120fbf84', class: {
|
23630
23642
|
navitem: true,
|
23631
23643
|
'navitem--open': this.open,
|
23632
23644
|
'navitem--active': this.selected,
|
23633
|
-
}, part: "trigger-wrapper" }, this.href && !this.disabled && (h("a", { key: '
|
23645
|
+
}, part: "trigger-wrapper" }, this.href && !this.disabled && (h("a", { key: '4a4da7478db63015d0dcd81ed053146f8eeac5f3', part: "trigger trigger--anchor", target: this.target, ref: (a) => (this.controlElement = a), href: this.href, class: {
|
23634
23646
|
navitem__trigger: true,
|
23635
|
-
} }, h("slot", { key: '
|
23647
|
+
} }, h("slot", { key: '1eafb7864368850ad2539c402eb1b00877f3d55e', name: "icon-start" }), h("span", { key: '8953312d4dad64ced970d2f1120c07b6c36070f1', class: "navitem__label", part: "label" }, h("slot", { key: '390f468f8d1f5d4f0669cae53ef140e452b16b07', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '3ecd42c2ca6c1546f48a1a5fcf7742d90ad4e1c4', name: "icon-end" }))), (!this.href || this.disabled) && (h("button", { key: '0694ce0708264ef1305e4b926a2f40f1875025a9', role: this.checkbox ? 'checkbox' : undefined, "aria-checked": this.checkbox ? this.selected.toString() : undefined, part: "trigger trigger--button", ref: (btn) => (this.controlElement = btn), onClick: this.handleClick, disabled: this.disabled, class: {
|
23636
23648
|
navitem__trigger: true,
|
23637
|
-
} }, h("slot", { key: '
|
23649
|
+
} }, h("slot", { key: 'c3cc4fcbb527f5f8ea2786243fe610d587e36190', name: "icon-start" }), h("span", { key: '385c92f1f2cc26b9c7e4f1a8601920c1f3bf2171', class: "navitem__label", part: "label" }, h("slot", { key: '4e7a75c8903081856c20206aa309c2a9855991da', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '668b95901ba0b914ccc193d4f3cc4433d908c014', name: "icon-end" }))), this.slotCtrl.has('secondary') && !this.disabled && (h("div", { key: 'f81c9aeb6c903b25a662fd1fc615d6f95f6b8f4d', part: "modal", class: {
|
23638
23650
|
navitem__modal: true,
|
23639
23651
|
'navitem__modal--open': this.didOpen,
|
23640
|
-
}, ref: (div) => (this.secondaryDiv = div), tabIndex: -1 }, h("div", { key: '
|
23652
|
+
}, ref: (div) => (this.secondaryDiv = div), tabIndex: -1 }, h("div", { key: '70a4b002e989753c461c7dac4dd975200a92e3de', class: "navitem__modal-content", part: `modal-content ${this.didOpen ? 'modal-content--open' : ''}` }, this.slotCtrl.has('close-button') && (h("div", { key: '7b0daad80ae03a29789c9d2bef74d2473f2f1f39', part: "close-button", onClick: this.closeSecondary }, h("slot", { key: '858798062958ea0f4ee809cbf853bdb83dd4d184', name: "close-button" }))), h("slot", { key: '41583a8cc59babbfb1a9a084a3de31c61a145fbc', name: "secondary" })), h("div", { key: '5c260dca9a8fdf7951349df64a037fc7415c3c4b', class: "navitem__modal-mask", onClick: this.closeSecondary, part: `modal-mask ${this.didOpen ? 'modal-mask--open' : ''}` }))))));
|
23641
23653
|
}
|
23642
23654
|
static get watchers() { return {
|
23643
23655
|
"open": ["openChange"],
|
@@ -23657,7 +23669,9 @@ class NavItem {
|
|
23657
23669
|
"closeOnBlur": [4, "close-on-blur"],
|
23658
23670
|
"didOpen": [32],
|
23659
23671
|
"isInMenuDrawer": [32],
|
23660
|
-
"setFocus": [64]
|
23672
|
+
"setFocus": [64],
|
23673
|
+
"closeMenu": [64],
|
23674
|
+
"openMenu": [64]
|
23661
23675
|
},
|
23662
23676
|
"$listeners$": [[16, "click", "handleClose"], [16, "keyup", "handleClose"]],
|
23663
23677
|
"$lazyBundleId$": "-",
|
@@ -32664,7 +32678,7 @@ var NAMESPACE = (
|
|
32664
32678
|
);
|
32665
32679
|
|
32666
32680
|
/*
|
32667
|
-
Stencil Hydrate Runner v4.35.3-dev.
|
32681
|
+
Stencil Hydrate Runner v4.35.3-dev.1752259270.e005970 | MIT Licensed | https://stenciljs.com
|
32668
32682
|
*/
|
32669
32683
|
var __defProp = Object.defineProperty;
|
32670
32684
|
var __export = (target, all) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "8.0.0-alpha.
|
3
|
+
"version": "8.0.0-alpha.12",
|
4
4
|
"sideEffects": false,
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"smart-array-filter": "^4.0.2",
|
61
61
|
"stencil-wormhole": "3.2.1",
|
62
62
|
"tyqs": "^0.1.3",
|
63
|
-
"@nanoporetech-digital/style": "8.0.0-alpha.
|
63
|
+
"@nanoporetech-digital/style": "8.0.0-alpha.12"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
66
|
"@algolia/client-search": "^4.22.1",
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
3
|
-
*/
|
4
|
-
import{c as t}from"./nano-data-table-bZhulcwy.js";import"./index-CDb2_YWF.js";import"./renderer-CGoibSOJ.js";import"./math-BEqsTfVK.js";import"./throttle-C93FMm2Z.js";import"./scroll-DMVLi4kX.js";import"./dom-DpX4e3pw.js";import"./index-Cb6_W06a.js";const r="table.worker",o="stencil.table.worker",e=new URL("table.worker-BTF0UXAd.js",import.meta.url).href;let i;try{i=t(e,r,o)}catch(s){const p=new Blob(['importScripts("'+e+'")'],{type:"text/javascript"}),m=URL.createObjectURL(p);i=t(m,r,o),URL.revokeObjectURL(m)}export{i as worker,o as workerMsgId,r as workerName,e as workerPath}
|