@nanoporetech-digital/components 8.0.0-alpha.3 → 8.0.0-alpha.4
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/{fade-CqKYrZYq.js → fade-Dt8ydSYD.js} +1 -1
- package/dist/cjs/{fullscreen-D-fHJ_IJ.js → fullscreen-D_o31hdQ.js} +1 -1
- package/dist/cjs/index-IR1lkhwT.js +2 -2
- package/dist/cjs/{lazyload-DK1ITMfR.js → lazyload-obUQkoFT.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/{nano-data-table-C_KLyFMO.js → nano-data-table-Zj71h_Hm.js} +4 -4
- package/dist/cjs/nano-data-table.cjs.entry.js +1 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js +2 -2
- package/dist/cjs/nano-global-nav.cjs.entry.js +9 -9
- package/dist/cjs/nano-grid_2.cjs.entry.js +3 -3
- package/dist/cjs/nano-icon_3.cjs.entry.js +2 -2
- package/dist/cjs/{nano-resize-observe_2.cjs.entry.js → nano-resize-observe.cjs.entry.js} +0 -18
- package/dist/cjs/nano-slide.cjs.entry.js +1 -1
- package/dist/cjs/{nano-slides-BhpvytBB.js → nano-slides-BcdSNmlz.js} +7 -7
- package/dist/cjs/nano-slides.cjs.entry.js +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +1 -1
- package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
- package/dist/cjs/nano-sticker.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- 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-DeSuT5bE.js → page-dots-CUrSK-1M.js} +1 -1
- package/dist/cjs/{table.worker-C5ofbi7M.js → table.worker-D7-NI7ZI.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +2 -125
- package/dist/collection/components/breadcrumb/breadcrumb.js +3 -2
- package/dist/collection/components/collapsible-comparison/collapsible-comparison.js +4 -3
- package/dist/collection/components/data-table/table.css +2 -7
- package/dist/collection/components/data-table/table.js +2 -2
- package/dist/collection/components/global-nav/global-nav.js +12 -11
- package/dist/collection/components/img/img.js +3 -3
- package/dist/collection/components/slides/slide.js +1 -1
- package/dist/collection/components/slides/slides.js +3 -3
- package/dist/collection/components/sortable/sortable.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/sticker/sticker.js +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/tabs/tab-content.js +2 -2
- package/dist/collection/components/tabs/tab.js +2 -2
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/img.js +5 -11
- package/dist/components/nano-breadcrumb.js +4 -3
- package/dist/components/nano-collapsible-comparison.js +4 -3
- package/dist/components/nano-data-table.js +13 -19
- package/dist/components/nano-global-nav.js +12 -11
- package/dist/components/nano-hero.js +6 -12
- package/dist/components/nano-slide.js +1 -1
- package/dist/components/nano-sortable.js +1 -1
- package/dist/components/nano-tab-content.js +2 -2
- package/dist/components/nano-tab.js +2 -2
- package/dist/components/nano-table.js +2 -2
- package/dist/components/slides.js +3 -3
- package/dist/components/spinner.js +1 -1
- package/dist/components/sticker.js +2 -2
- package/dist/components/tag.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{fade-CnaZvOTY.js → fade-DcRXMf28.js} +1 -1
- package/dist/esm/{fullscreen-BIFliVxG.js → fullscreen-BQyi4GFz.js} +1 -1
- package/dist/esm/index-DXvE-U_j.js +2 -2
- package/dist/esm/{lazyload-D_Ju_KaC.js → lazyload-C00srsFN.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-breadcrumb.entry.js +1 -1
- package/dist/esm/nano-collapsible-comparison.entry.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/{nano-data-table-CJbVKIuu.js → nano-data-table-wGnglzmF.js} +4 -4
- package/dist/esm/nano-data-table.entry.js +1 -1
- package/dist/esm/nano-datalist_3.entry.js +2 -2
- package/dist/esm/nano-global-nav.entry.js +9 -9
- package/dist/esm/nano-grid_2.entry.js +3 -3
- package/dist/esm/nano-icon_3.entry.js +2 -2
- package/dist/esm/{nano-resize-observe_2.entry.js → nano-resize-observe.entry.js} +1 -18
- package/dist/esm/nano-slide.entry.js +1 -1
- package/dist/esm/{nano-slides-B9KjZVqC.js → nano-slides-g94uYmWm.js} +7 -7
- package/dist/esm/nano-slides.entry.js +1 -1
- package/dist/esm/nano-sortable.entry.js +1 -1
- package/dist/esm/nano-spinner.entry.js +1 -1
- package/dist/esm/nano-sticker.entry.js +2 -2
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab.entry.js +2 -2
- package/dist/esm/nano-table.entry.js +2 -2
- package/dist/esm/{page-dots-BmS6HUrx.js → page-dots-B947EGDd.js} +1 -1
- package/dist/esm/{table.worker-CsTdjWrS.js → table.worker-DQJ9Zgy3.js} +1 -1
- package/dist/nano-components/{fade-CnaZvOTY.js → fade-DcRXMf28.js} +1 -1
- package/dist/nano-components/{fullscreen-BIFliVxG.js → fullscreen-BQyi4GFz.js} +1 -1
- package/dist/nano-components/{lazyload-D_Ju_KaC.js → lazyload-C00srsFN.js} +1 -1
- package/dist/nano-components/nano-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
- package/dist/nano-components/nano-components.css +126 -0
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/{nano-data-table-CJbVKIuu.js → nano-data-table-wGnglzmF.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-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/nano-icon_3.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe.entry.js +4 -0
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-B9KjZVqC.js → nano-slides-g94uYmWm.js} +3 -3
- 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-sticker.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.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-BmS6HUrx.js → page-dots-B947EGDd.js} +1 -1
- package/dist/nano-components/{table.worker-CsTdjWrS.js → table.worker-DQJ9Zgy3.js} +1 -1
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/core.css +1 -1
- package/dist/style/core.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/collapsible-comparison/collapsible-comparison.d.ts +1 -1
- package/dist/types/components.d.ts +0 -43
- package/docs-json.json +1 -90
- package/docs-vscode.json +0 -13
- package/hydrate/index.js +35 -139
- package/hydrate/index.mjs +35 -139
- package/package.json +2 -2
- package/dist/collection/components/skeleton/skeleton.css +0 -83
- package/dist/collection/components/skeleton/skeleton.js +0 -57
- package/dist/components/nano-skeleton.d.ts +0 -11
- package/dist/components/nano-skeleton.js +0 -9
- package/dist/components/skeleton.js +0 -41
- package/dist/nano-components/nano-resize-observe_2.entry.js +0 -4
- package/dist/types/components/skeleton/skeleton.d.ts +0 -12
|
@@ -470,20 +470,20 @@ const GlobalNav = class {
|
|
|
470
470
|
}
|
|
471
471
|
render() {
|
|
472
472
|
const bpps = this.bpPartials;
|
|
473
|
-
return (h(Host, { key: '
|
|
473
|
+
return (h(Host, { key: '66132ed8841605602bff8c2c750a657ec4d6d83a', class: {
|
|
474
474
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
|
475
475
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
|
476
476
|
'nano-global-nav': true,
|
|
477
|
-
} }, h("div", { key: '
|
|
477
|
+
} }, h("div", { key: 'c8dfcf4b405c72a14f576fb7b14ce41e8ff49b83', class: {
|
|
478
478
|
gn: true,
|
|
479
479
|
'gn__search-open': this.searchBarShown,
|
|
480
|
-
} }, h("nano-drawer", { key: '
|
|
480
|
+
} }, h("nano-drawer", { key: '741e6dc6df0253450f65e792f45fe2a337bb007d', ref: (el) => (this.overflowMenu = el), label: "Main menu", part: "drawer", class: "gn__drawer nano-theme-dark", placement: "start", open: this.overflowOpen, onNanoAfterHide: () => (this.overflowOpen = false), onNanoAfterShow: () => (this.overflowOpen = true) }, h("div", { key: 'b8d197424ed2d4dff32234457b7836507d9777ba', class: "gn__drawer-header", part: "overflow-header", slot: "label" }, "Main menu"), h("nav", { key: '36ef3c9a323078bfbf4f28682afd4b33475c6d1d', class: "gn__drawer-menu", part: "overflow-menu" }, this.breakpoint > bpps.mainMenu.breakpoint
|
|
481
481
|
? bpps.mainMenu.tpl()
|
|
482
|
-
: '', h("slot", { key: '
|
|
482
|
+
: '', h("slot", { key: '569277672e49d95702583537c90db8de51d89a35', name: "overflow" }))), h("div", { key: '367e4bfffe6a8359bf49e6a4ea7a69dfdd20e6af', class: "gn__menu-bar-wrapper" }, h("div", { key: 'aca6cb95a4b03c46509cfd6d0a55e722976200e9', class: "gn__menu-bar", part: "menu-bar", ref: (el) => (this.mainMenuBar = el) }, h("nav", { key: '8c56fcfde4d896b30a277a00f79de3dfb75d93ef', class: `gn__main-menu ${this.shouldResize ? 'resizing' : ''}`, part: "main-menu", ref: (el) => (this.mainMenu = el) }, this.breakpoint > bpps.mainMenu.breakpoint && (h("nano-icon-button", { key: 'fb8ca915d6460ee871a0a357b8a25d2e720620ac', class: "gn__overflow-button", iconName: "light/bars", label: "Open Menu", onClick: () => this.overflowMenu.show() })), h("slot", { key: '96962d7ccd0d55f5c054dae0e8480398e7ea1415', name: "logo" }, h("a", { key: 'dcfa5d446ef38afb07285172dd5c0269da604d44', href: this.logoUrl, class: "gn__logo-link", part: "logo-link" }, this.breakpoint <= bpps.logo.breakpoint ? (h("img", { src: getAssetPath('../nano-assets/ont-logo.svg'), alt: `Oxford Nanopore Technologies logo. Features a stylised representation of a nanopore,
|
|
483
483
|
(a tiny protein channel embedded in a membrane) through which DNA or RNA molecules are passed in for sequencing.`, class: "gn__logo gn__logo--large", width: "152", height: "36", part: "logo logo--large" })) : (h("img", { src: getAssetPath('../nano-assets/ont-wheel.svg'), alt: `Oxford Nanopore Technologies logo. A stylised representation of a nanopore,
|
|
484
|
-
(a tiny protein channel embedded in a membrane) through which DNA or RNA molecules are passed in for sequencing.`, class: "gn__logo gn__logo--small", width: "36", height: "36", part: "logo logo--small" })))), this.breakpoint <= bpps.mainMenu.breakpoint && (h("div", { key: '
|
|
484
|
+
(a tiny protein channel embedded in a membrane) through which DNA or RNA molecules are passed in for sequencing.`, class: "gn__logo gn__logo--small", width: "36", height: "36", part: "logo logo--small" })))), this.breakpoint <= bpps.mainMenu.breakpoint && (h("div", { key: 'c4e2a7166c5766eede74e6f9e5763e157c47ac74', class: "gn__main-menu-links" }, bpps.mainMenu.tpl())), h("div", { key: 'e6bb457db190019f21c1c712bb8c9bab5abec91b', class: "gn__main-menu-actions" }, h("nano-dropdown", { key: 'd46c596a07189f129a1644118560590e70101a2b', dialogTitle: "Search Oxford Nanopore Technologies", placement: "bottom", class: "gn__search-dropdown", skidding: -30, distance: 25, open: this.searchBarShown, onNanoAfterShow: this.handleSearchOpenEvent, onNanoAfterHide: this.handleSearchCloseEvent, autoOpen: !!this.searchIndices.length }, h("nano-icon-button", { key: '00df8fe73a5c1e5b0e3263ee584549c1b450675f', class: "gn__search-button", slot: "trigger", iconName: "light/magnifying-glass", label: "Search" }), !!this.searchIndices.length && (h("form", { key: 'b03a0c3f58a7a50939ec09258dda85a49157cf48', ref: (form) => (this.searchForm = form), class: "gn__search-form", part: "search-form", onSubmit: this.onSearchSubmit }, this.searchIndices.length > 1 && (h("nano-select", { key: '367ed61df9546497f9cef04d833e86f59389f48a', part: "search-select", label: "Which site do you wish to search in?", mask: true, hideLabel: true, value: this.activeIndex?.index, onNanoChange: this.handleSearchIndexChangeEvent }, this.searchIndices.map((index) => (h("nano-option", { selected: index.name === this.searchIndex, value: index.index }, index.name || index.index))))), h("nano-input", { key: 'd8013a6f1cd8953bc63ba6f518367a4b278197bd', ref: (ele) => (this.searchInput = ele), part: "search-input", label: "Search Oxford Nanopore Technologies", placeholder: "Search Oxford Nanopore...", hideLabel: true, clearable: true, onNanoChange: (e) => {
|
|
485
485
|
this.handleSearchTermChangeEvent(e.detail.value);
|
|
486
|
-
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '
|
|
486
|
+
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: 'fe62a269a2f3ca318ad1e071404f693c9540317b', slot: "end", name: "light/magnifying-glass" }), h("nano-datalist", { key: '87d39b1dc2be07a66b546ba53eea56351bb103ec', class: "gn__search-results", onNanoSelect: (e) => e.preventDefault(), dropDownConfig: { tetherTo: this.searchForm }, disableFilter: true }, this.searchLoading && (h("div", { key: 'fade49b478eddeb181f332b8db31b0f88c98305f', slot: "no-result", class: "gn__search-loading" }, h("nano-spinner", { key: 'e7c946dc5ec1ee76d115fd2575b1288f95d71c43' }, "Searching..."))), this.noResultPartial(), !!this.autocompleteResults?.hits.length && [
|
|
487
487
|
this.autocompleteResults.hits.map((hit, i) => (h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
|
488
488
|
searchInsight.sendClick({
|
|
489
489
|
index: this.activeIndex.index,
|
|
@@ -493,10 +493,10 @@ const GlobalNav = class {
|
|
|
493
493
|
positions: [i + 1],
|
|
494
494
|
});
|
|
495
495
|
} }, h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
|
496
|
-
h("nano-option", { key: '
|
|
497
|
-
]))))), h("div", { key: '
|
|
496
|
+
h("nano-option", { key: '74852e060130852064b4987f1de0c8f0fa2a395e', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
|
497
|
+
]))))), h("div", { key: 'e66b10d8ce1de533d772bfd66bf7c73511f338ff', class: "gn__cart" }, h("nano-icon-button", { key: '47b8fc7ad91f5ea1048a670407ad602d29eb347f', iconName: "light/cart-shopping", label: "View your cart", href: this.cartUrl }), !!this.cartCount && (h("nano-badge", { key: '75c8ffb6264bd4a390ad77d15c408105d6f77393', theme: "danger", strength: "2" }, this.cartCount > 9 ? '9+' : this.cartCount))), this.breakpoint <= bpps.contact.breakpoint
|
|
498
498
|
? bpps.contact.tpl()
|
|
499
|
-
: '', this.isLoggedIn ? (h("nano-dropdown", { dialogTitle: "User menu", class: "gn__user-dropdown", distance: 10, placement: "bottom-end" }, h("button", { slot: "trigger", class: "gn__user-dropdown-trigger" }, h("nano-icon", { name: "light/user" }), h("nano-icon", { name: "light/chevron-down", class: "gn__user-dropdown-chevron" }), !!this.msgCount && (h("nano-badge", { theme: "danger", strength: "2" }, this.msgCount > 9 ? '9+' : this.msgCount))), this.loggedInPanel())) : (h("nano-cta", { secondary: true, size: "small", icon: "false", class: "gn__login-cta" }, h("a", { href: this.formatLoginLink(this.loginUrl) }, "Login"))))))), h("div", { key: '
|
|
499
|
+
: '', this.isLoggedIn ? (h("nano-dropdown", { dialogTitle: "User menu", class: "gn__user-dropdown", distance: 10, placement: "bottom-end" }, h("button", { slot: "trigger", class: "gn__user-dropdown-trigger" }, h("nano-icon", { name: "light/user" }), h("nano-icon", { name: "light/chevron-down", class: "gn__user-dropdown-chevron" }), !!this.msgCount && (h("nano-badge", { theme: "danger", strength: "2" }, this.msgCount > 9 ? '9+' : this.msgCount))), this.loggedInPanel())) : (h("nano-cta", { secondary: true, size: "small", icon: "false", class: "gn__login-cta" }, h("a", { href: this.formatLoginLink(this.loginUrl) }, "Login"))))))), h("div", { key: '798ee16df74983e3d5689639f3320198bd1fe14d', class: "gn__site", part: "site-wrapper" }, h("nano-global-search-results", { key: 'a51edbf9c6bc9b0e34e207e21b4341704032e82f', part: "site-search-results" }, h("slot", { key: '4ae65a7bc4d8897d95e43692b87830cf9f9d8a8f' }))))));
|
|
500
500
|
}
|
|
501
501
|
static get assetsDirs() { return ["assets"]; }
|
|
502
502
|
static get watchers() { return {
|
|
@@ -454,16 +454,16 @@ const Img = class {
|
|
|
454
454
|
const bgStyle = this.loadSrc
|
|
455
455
|
? { 'background-image': `url(${this.loadSrc})` }
|
|
456
456
|
: {};
|
|
457
|
-
return (h$1(Host, { key: 'a9d5cb1d0be8540d7ea690fd13d92b1f5ec614af', class: "nano-img" }, h$1("div", { key: '1f40afc64a5652f53b224403c59b4f108e5eb044', class: "img" }, h$1("
|
|
457
|
+
return (h$1(Host, { key: 'a9d5cb1d0be8540d7ea690fd13d92b1f5ec614af', class: "nano-img" }, h$1("div", { key: '1f40afc64a5652f53b224403c59b4f108e5eb044', class: "img" }, h$1("div", { key: '7b3a0b8521888092effb1fc675b0c52bce7faa6f', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (h$1("div", { key: '1f4d59fc6ff3e0be42f18d1db4a099a32d099872', class: {
|
|
458
458
|
loaded: this.hasLoaded,
|
|
459
459
|
img__bg: true,
|
|
460
460
|
'no-height': this.autoHeight === 'image',
|
|
461
|
-
}, style: bgStyle }, h$1("slot", { key: '
|
|
461
|
+
}, style: bgStyle }, h$1("slot", { key: 'd987180d13fa9ef34868c8e962344da9e0f6b876' }))), h$1("img", { key: 'f3d603cf35bf0c37c4e1eb530e9a9ea7d7e81beb', class: {
|
|
462
462
|
img__image: true,
|
|
463
463
|
loaded: this.hasLoaded,
|
|
464
464
|
hide: this.background,
|
|
465
465
|
'no-height': this.autoHeight === 'content',
|
|
466
|
-
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h$1("nano-resize-observe", { key: '
|
|
466
|
+
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h$1("nano-resize-observe", { key: 'cf77dadeb8d5b01ef1afff5e6df5eb6aacad13e6', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
|
467
467
|
}
|
|
468
468
|
static get watchers() { return {
|
|
469
469
|
"_src": ["_srcChanged"],
|
|
@@ -636,10 +636,10 @@ const Tooltip = class {
|
|
|
636
636
|
this.popover.destroy();
|
|
637
637
|
}
|
|
638
638
|
render() {
|
|
639
|
-
return (h(Host, { key: '
|
|
639
|
+
return (h(Host, { key: '08c87af28b192ca65f9adf1d62dd83b7e75ae3b5', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: 'c132792e3f32e824735783e6284f1c12ea3c234a', onSlotchange: this.handleSlotChange }), h("div", { key: 'd27cc6ed095544d4f81680191647ead58ed2cc89', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'c002bf4ec9a19eb5631d120498df58956d81e9ba', part: "base", ref: (el) => (this.tooltip = el), class: {
|
|
640
640
|
tooltip: true,
|
|
641
641
|
'tooltip--open': this.open,
|
|
642
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '
|
|
642
|
+
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '9f25b5ba1a2732bf2b6f6791bc47fb6c66e08bb6', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '8d9e9b42fc0fb8e6491492b28019c184b7fc4fac', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
|
643
643
|
}
|
|
644
644
|
static get watchers() { return {
|
|
645
645
|
"content": ["setLabel"],
|
|
@@ -241,21 +241,4 @@ const ResizeObserve = class {
|
|
|
241
241
|
};
|
|
242
242
|
ResizeObserve.style = ":host { display: block }";
|
|
243
243
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
const Skeleton = class {
|
|
247
|
-
constructor(hostRef) {
|
|
248
|
-
registerInstance(this, hostRef);
|
|
249
|
-
}
|
|
250
|
-
/** When `true`, the skeleton will animate. */
|
|
251
|
-
animated = true;
|
|
252
|
-
render() {
|
|
253
|
-
return (h(Host, { key: 'f73bd1aaaf1ed443643eb6fee3421071be76b064', class: "nano-skeleton" }, h("div", { key: 'a4023374bcd7855ef2638623b2dbf29ac758f0a6', class: {
|
|
254
|
-
skeleton: true,
|
|
255
|
-
animate: this.animated,
|
|
256
|
-
} }, h("div", { key: 'bf89fd85a10834bb798515f46b51a4b26d0f885f', class: "skeleton__indicator" }, "\u00A0"))));
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
Skeleton.style = skeletonCss;
|
|
260
|
-
|
|
261
|
-
export { ResizeObserve as nano_resize_observe, Skeleton as nano_skeleton };
|
|
244
|
+
export { ResizeObserve as nano_resize_observe };
|
|
@@ -37,7 +37,7 @@ const Slide = class {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'f45a8a3b8232fdca227e7d53642f31206ff2a6e0', class: "nano-slide" }, h("slot", { key: '248bc7303404576301a477ed36449388190e8417' })));
|
|
41
41
|
}
|
|
42
42
|
static get watchers() { return {
|
|
43
43
|
"ready": ["readyChange"]
|
|
@@ -2852,19 +2852,19 @@ const Slides = class {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
async loadFlickityModules(opts) {
|
|
2854
2854
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
|
2855
|
-
await import('./fullscreen-
|
|
2855
|
+
await import('./fullscreen-BQyi4GFz.js');
|
|
2856
2856
|
this.hasFullScreenModule = true;
|
|
2857
2857
|
}
|
|
2858
2858
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
|
2859
|
-
await import('./lazyload-
|
|
2859
|
+
await import('./lazyload-C00srsFN.js');
|
|
2860
2860
|
this.hasLazyLoadModule = true;
|
|
2861
2861
|
}
|
|
2862
2862
|
if (!this.hasDotsModule && opts.pageDots) {
|
|
2863
|
-
await import('./page-dots-
|
|
2863
|
+
await import('./page-dots-B947EGDd.js');
|
|
2864
2864
|
this.hasDotsModule = true;
|
|
2865
2865
|
}
|
|
2866
2866
|
if (!this.hasFadeModule && opts.fade) {
|
|
2867
|
-
await import('./fade-
|
|
2867
|
+
await import('./fade-DcRXMf28.js');
|
|
2868
2868
|
this.hasFadeModule = true;
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
@@ -2999,15 +2999,15 @@ const Slides = class {
|
|
|
2999
2999
|
this.destroyflickity();
|
|
3000
3000
|
}
|
|
3001
3001
|
render() {
|
|
3002
|
-
return (h(Host, { key: '
|
|
3002
|
+
return (h(Host, { key: '0eecdd4b8054bfc79c414f92cc52208cc17030c9', class: "nano-slides" }, h("div", { key: '52d4f9e42fc545c9fbd955f497ff31911e2bae7e', class: {
|
|
3003
3003
|
slideshow: true,
|
|
3004
3004
|
ready: this.ready,
|
|
3005
3005
|
'not-ready': !this.ready,
|
|
3006
|
-
}, part: "base" }, h("div", { key: '
|
|
3006
|
+
}, part: "base" }, h("div", { key: 'd41c00513b0f7a9a9cb05a5943f368b86af34bdf', ref: (div) => (this.flickityEl = div), class: {
|
|
3007
3007
|
'flickity-container': true,
|
|
3008
3008
|
'slides-ready': this.slidesReady,
|
|
3009
3009
|
'slides-not-ready': !this.slidesReady,
|
|
3010
|
-
}, part: "slide-container" }, h("slot", { key: '
|
|
3010
|
+
}, part: "slide-container" }, h("slot", { key: 'bebd09c2b27bc7dbae72d5cab15b8fbd77af52a0' })), h("div", { key: '4e5b0c0385dcc3757f889004ec50f7550bc3bfe2', class: "ui-extras" }, h("slot", { key: '6481258c29c5f30c2a47b102e47e9ce75260c712', name: "ui" })))));
|
|
3011
3011
|
}
|
|
3012
3012
|
static get watchers() { return {
|
|
3013
3013
|
"options": ["optionsChanged"],
|
|
@@ -727,7 +727,7 @@ const Sortable = class {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
render() {
|
|
730
|
-
return (h(Host, { key: '
|
|
730
|
+
return (h(Host, { key: '108dd7db53821adef114521be6a825561c974137', class: "nano-sortable" }, h("div", { key: '7b23e9a51e5cb366676fb61163b031c0ba693599', class: "sortable__live-region", "aria-live": "polite", "aria-relevant": "additions", "aria-atomic": "true", role: "log", part: "announcements" }, this.ariaTextList.map((str) => (h("div", null, str)))), h("slot", { key: 'a61fca55dd0de8a4dd1611ada70101ca19906528' })));
|
|
731
731
|
}
|
|
732
732
|
static get watchers() { return {
|
|
733
733
|
"itemSelector": ["handleItemSelectorChange"],
|
|
@@ -20,7 +20,7 @@ const Spinner = class {
|
|
|
20
20
|
this.hasText = !!this.el.childNodes.length;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '50440a7fb87c4e5b54d5b3ab1c5781a77dc580c9', class: "nano-spinner" }, h("div", { key: 'c4508214b1b17c54dadf15bf5d03128f560e99b8', class: "spinner", "aria-busy": "true", "aria-live": "polite" }, h("div", { key: 'ef7f2ac50d9c6f3d8565c692b67d991e175b674a', class: "spinner__loader" }, this.type === 'dna' && (h("div", { key: '269e356d7c35879d969b9308c00ece4bfa5fbc6b', class: "spinner__dna" }, h("div", { key: '727b7efd0f96663381e0634e3ce418c9c410f2fe', class: "spinner__dnatrack spinner__dnatrack--1" }, h("div", { key: '177cf194f19c2eee3a78b9e808637b5f1cd372dd', class: "spinner__dnadot spinner__dnadot--1" }), h("div", { key: '1b4a7b46b153f26db496499cf383eb442213bbba', class: "spinner__dnadot spinner__dnadot--2" })), h("div", { key: 'f2a0b517981107faa2ff467802a024f052247f42', class: "spinner__dnatrack spinner__dnatrack--2" }, h("div", { key: '9240ab7c633a21cc68e3c7848ac1c6a68b86353c', class: "spinner__dnadot spinner__dnadot--3" }), h("div", { key: '24a36e2fc04dfa727899e2fb0d31a0a6ac4d5ea3', class: "spinner__dnadot spinner__dnadot--4" })), h("div", { key: 'c9560b3b7566f57c613483e28adae95de5154801', class: "spinner__dnatrack spinner__dnatrack--3" }, h("div", { key: '9cc8b27ed18bb71b236d9714e74c97420ae102df', class: "spinner__dnadot spinner__dnadot--5" }), h("div", { key: '63e0ce5e9788e643303a8d99ad417a2d4ebf6ede', class: "spinner__dnadot spinner__dnadot--6" })), h("div", { key: 'c23c129f65a6c8bc5f9e0fe7fdc7218d1359cb41', class: "spinner__dnatrack spinner__dnatrack--4" }, h("div", { key: '9f4def6d87deef4c6dcb19952966a73c6783f3b7', class: "spinner__dnadot spinner__dnadot--7" }), h("div", { key: 'cd66a00f3a954c6e87dd66d2701cadc2fb0ba847', class: "spinner__dnadot spinner__dnadot--8" })), h("div", { key: '0a445022fdbbd1701c2d1d950532aeec863699c5', class: "spinner__dnatrack spinner__dnatrack--5" }, h("div", { key: 'd0e880fa837d3ac04dcae98932aff0b96521cdc9', class: "spinner__dnadot spinner__dnadot--9" }), h("div", { key: 'f269a858d997cf7c6f9bb3d981cc9d3a5735a89b', class: "spinner__dnadot spinner__dnadot--10" })))), this.type === 'circle' && h("span", { key: '16f2074c1aa97fe5a541cbcac45b76985c16de9e', class: "spinner__spin" })), this.hasText && (h("div", { class: "spinner__text", key: "spinner-text" }, h("slot", { key: '2dd688af910babb15d020e14a9bde2228adfee98' }))), this.overlay && (h("div", { class: "spinner__overlay", key: "spinner-overlay" })))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
Spinner.style = spinnerCss;
|
|
@@ -605,12 +605,12 @@ const Sticker = class {
|
|
|
605
605
|
this.hasBootstrapped = false;
|
|
606
606
|
}
|
|
607
607
|
render() {
|
|
608
|
-
return (h(Host, { key: '
|
|
608
|
+
return (h(Host, { key: 'e928d991c33b98de7844974084b955c3168b8766', sticky: !this.isRootSticker && !this.stickToEle && this.isSticky, hide: this.hide && this.isStuck, siblings: this.stuckCounter, index: this.stickerIndex, stuck: this.isStuck && this.isSticky, "placed-bottom": this.positions.includes('bottom'), "placed-top": this.positions.includes('top'), "placed-end": this.positions.includes('end'), "placed-start": this.positions.includes('start'), class: "nano-sticker" }, h("div", { key: 'cfdaf007080976d6e556eb66e76e5d6f1bd5cdda', class: {
|
|
609
609
|
sticker: true,
|
|
610
610
|
sticky: this.isRootSticker && this.isSticky,
|
|
611
611
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
|
612
612
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
|
613
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
|
613
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: 'be64fd13b426ca2ecd2f0bc2b240271e0f64bdfc', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '83903ad04e5465798443ef86fe99ca78940bd45e' })))));
|
|
614
614
|
}
|
|
615
615
|
static get watchers() { return {
|
|
616
616
|
"trigger": ["updateTriggerOffset"],
|
|
@@ -22,10 +22,10 @@ const NanoTabContent = class {
|
|
|
22
22
|
requestAnimationFrame(() => (this.ready = true));
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '35d8ae3c3bce8bdfbd59b24ac8d56b2b065121bf', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
|
|
26
26
|
ready: this.ready,
|
|
27
27
|
'nano-tab-content': true,
|
|
28
|
-
} }, h("div", { key: '
|
|
28
|
+
} }, h("div", { key: 'b12340e8aa22961ab261ebe58e150ea5b2434314', part: "base", class: "nano-tab-content" }, h("slot", { key: 'eea7e936ac8ebe2338720d5878e06372c222fda2' }))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
NanoTabContent.style = tabContentCss;
|
|
@@ -44,12 +44,12 @@ const NanoTab = class {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '0a14c43ba8ab38ec19e63fff1b7569d9f10457f0', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h("div", { key: 'bff4ec7769d57b0b5b9e3f936c147023ff7b532c', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
|
|
48
48
|
tab: true,
|
|
49
49
|
'tab--active': this.active,
|
|
50
50
|
'tab--disabled': this.disabled,
|
|
51
51
|
'tab--closable': this.closable,
|
|
52
|
-
} }, h("slot", { key: '
|
|
52
|
+
} }, h("slot", { key: '797a1904ebaaa96585ff47bff275a9643d09a2b8', name: "start" }), h("div", { key: '588cb30e4c7dfa85c99c45ac231db0188cb56005', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, h("slot", { key: '6ff03454d9735733007f430cdde78010717d8677' })), h("slot", { key: '959a2633b41acdd733aa29d43178ef15784a8652', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '02b6b8158044d7be61450b86774bbe9f63575062', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
NanoTab.style = tabCss;
|
|
@@ -222,10 +222,10 @@ const NanoTable = class {
|
|
|
222
222
|
this.cleanUpObservers();
|
|
223
223
|
}
|
|
224
224
|
render() {
|
|
225
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: 'd3e5a8138e931cb62fefade6b995111d958ad0a5', class: {
|
|
226
226
|
'nano-table': true,
|
|
227
227
|
'nano-table--props-ready': this.propsReady,
|
|
228
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
|
228
|
+
} }, this.scrollable && (h("nano-masked-overflow", { key: '6775e115264b8810584bfbaa573558d539a6c14d', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '297a7ca1929ee780382132ef24ba25f8533c9140', class: "nano-table__overflow" }))), h("slot", { key: '0741a9939e245d5eea38641ed35fb46b4fecf4c5' })));
|
|
229
229
|
}
|
|
230
230
|
static get watchers() { return {
|
|
231
231
|
"compact": ["handleCompactChange"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import { F as Flickity, u as utils, U as Unipointer } from './nano-slides-
|
|
4
|
+
import { F as Flickity, u as utils, U as Unipointer } from './nano-slides-g94uYmWm.js';
|
|
5
5
|
import './index-DXvE-U_j.js';
|
|
6
6
|
import './renderer-BUaAsDso.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import { c as createWorker } from './nano-data-table-
|
|
4
|
+
import { c as createWorker } from './nano-data-table-wGnglzmF.js';
|
|
5
5
|
import './index-DXvE-U_j.js';
|
|
6
6
|
import './renderer-BUaAsDso.js';
|
|
7
7
|
import './math-BEqsTfVK.js';
|
|
@@ -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}from"./nano-slides-
|
|
4
|
+
import{F as t,u as i}from"./nano-slides-g94uYmWm.js";import"./index-DXvE-U_j.js";import"./renderer-BUaAsDso.js";const s=t.Slide,h=s.prototype.updateTarget;s.prototype.updateTarget=function(...t){if(h.apply(this,t),!this.parent.options.fade)return;const i=this.target-this.x,s=this.cells[0].x;this.cells.forEach((function(t){t.renderPosition(t.x-s-i)}))},s.prototype.setOpacity=function(t){this.cells.forEach((function(i){i.element.style.opacity=t}))};const n=t.prototype;t.createMethods.push("_createFade"),n._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};const o=n.updateSlides;n.updateSlides=function(...t){o.apply(this,t),this.options.fade&&this.slides.forEach((function(t,i){t.setOpacity(i==this.selectedIndex?1:0)}),this)},n.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},n.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},n.onDragEndFade=function(){this.didDragEnd=!0},n.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},n.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(t){t.setOpacity("")})))};const c=n.positionSlider;n.positionSlider=function(...t){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):c.apply(this,t)};const u=n.positionSliderAtSelected;n.positionSliderAtSelected=function(...t){this.options.fade&&this.setTranslateX(0),u.apply(this,t)},n.fadeSlides=function(){if(this.slides.length<2)return;const t=this.getFadeIndexes(),i=this.slides[t.a],s=this.slides[t.b],h=this.wrapDifference(i.target,s.target);let n=this.wrapDifference(i.target,-this.x);n/=h,i.setOpacity(1-n),s.setOpacity(n);let o=t.a;this.isDragging&&(o=n>.5?t.a:t.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=t.a&&this.fadeHideIndex!=t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o},n.getFadeIndexes=function(){return this.isDragging||this.didDragEnd||void 0===this.fadeIndex?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},n.getFadeDragWrapIndexes=function(){const t=this.slides.map((function(t,i){return this.getSlideDistance(-this.x,i)}),this),s=t.map((function(t){return Math.abs(t)})),h=Math.min(...s),n=s.indexOf(h);return{a:n,b:i.modulo(n+(t[n]>=0?1:-1),this.slides.length)}},n.getFadeDragLimitIndexes=function(){let t=0;for(let i=0;i<this.slides.length-1&&!(-this.x<this.slides[i].target);i++)t=i;return{a:t,b:t+1}},n.wrapDifference=function(t,i){let s=i-t;if(!this.options.wrapAround)return s;const h=s+this.slideableWidth,n=s-this.slideableWidth;return Math.abs(h)<Math.abs(s)&&(s=h),Math.abs(n)<Math.abs(s)&&(s=n),s};const e=n._getWrapShiftCells;n._getWrapShiftCells=function(...t){this.options.fade||e.apply(this,t)};const f=n.shiftWrapCells;n.shiftWrapCells=function(...t){this.options.fade||f.apply(this,t)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import{F as t}from"./nano-slides-
|
|
4
|
+
import{F as t}from"./nano-slides-g94uYmWm.js";import"./index-DXvE-U_j.js";import"./renderer-BUaAsDso.js";t.createMethods.push("_createFullscreen");const i=t.prototype;i._createFullscreen=function(){this.isFullscreen=!1,this.options.fullscreen&&(this.viewFullscreenButton=new n("view",this),this.exitFullscreenButton=new n("exit",this),this.on("activate",this._changeFullscreenActive),this.on("deactivate",this._changeFullscreenActive))},i._changeFullscreenActive=function(){const t=this.isActive?"appendChild":"removeChild";this.element[t](this.viewFullscreenButton.element),this.element[t](this.exitFullscreenButton.element);const i=this.isActive?"activate":"deactivate";this.viewFullscreenButton[i](),this.exitFullscreenButton[i]()},i.viewFullscreen=function(){this._changeFullscreen(!0),this.focus()},i.exitFullscreen=function(){this._changeFullscreen(!1)},i._changeFullscreen=function(t){if(this.isFullscreen==t)return;this.isFullscreen=t;const i=t?"add":"remove";document.documentElement.classList[i]("is-flickity-fullscreen"),this.element.classList[i]("is-fullscreen"),this.resize(),this.isFullscreen&&this.reposition(),this.dispatchEvent("fullscreenChange",null,[t])},i.toggleFullscreen=function(){this._changeFullscreen(!this.isFullscreen)};const s=i.setGallerySize;function n(t,i){this.name=t,this.createButton(),this.createIcon(),this.onClick=function(){i[t+"Fullscreen"]()},this.clickHandler=this.onClick.bind(this)}i.setGallerySize=function(){this.options.setGallerySize&&(this.isFullscreen?this.viewport.style.height="":s.call(this))},t.keyboardHandlers[27]=function(){this.exitFullscreen()},n.prototype.createButton=function(){const t=this.element=document.createElement("button");t.className="flickity-button flickity-fullscreen-button flickity-fullscreen-button-"+this.name,t.setAttribute("type","button");const i=(s=this.name+" full-screen")[0].toUpperCase()+s.slice(1);var s;t.setAttribute("aria-label",i),t.title=i};const h="http://www.w3.org/2000/svg",c={view:"M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z",exit:"M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z"};n.prototype.createIcon=function(){const t=document.createElementNS(h,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 32 32");const i=document.createElementNS(h,"path");i.setAttribute("d",c[this.name]),t.appendChild(i),this.element.appendChild(t)},n.prototype.activate=function(){this.element.addEventListener("click",this.clickHandler)},n.prototype.deactivate=function(){this.element.removeEventListener("click",this.clickHandler)},t.FullscreenButton=n;
|
|
@@ -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}from"./nano-slides-
|
|
4
|
+
import{F as t,u as i}from"./nano-slides-g94uYmWm.js";import"./index-DXvE-U_j.js";import"./renderer-BUaAsDso.js";t.createMethods.push("_createLazyload");const s=t.prototype;function a(t,i){this.img=t,this.flickity=i,this.load()}s._createLazyload=function(){this.on("select",this.lazyLoad)},s.lazyLoad=function(){const t=this.options.lazyLoad;if(!t)return;const s=this.getAdjacentCellElements("number"==typeof t?t:0);let l=[];s.forEach((function(t){const s=function(t){if("IMG"==t.nodeName){const i=t.getAttribute("data-flickity-lazyload"),s=t.getAttribute("data-flickity-lazyload-src"),a=t.getAttribute("data-flickity-lazyload-srcset");if(i||s||a)return[t]}const s=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(s)}(t);l=l.concat(s)})),l.forEach((function(t){new a(t,this)}),this)},a.prototype.handleEvent=i.handleEvent,a.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);const t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),i=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,i&&this.img.setAttribute("srcset",i),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},a.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},a.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},a.prototype.complete=function(t,i){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);const s=this.flickity.getParentCell(this.img),a=s&&s.element;this.flickity.cellSizeChange(a),this.img.classList.add(i),this.flickity.dispatchEvent("lazyLoad",t,a)},t.LazyLoader=a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import{r as
|
|
4
|
+
import{r as a,a as r,h as n}from"./index-DXvE-U_j.js";import{a as t}from"./style-xLaX004n.js";const e=class{constructor(r){a(this,r)}get el(){return r(this)}breadcrumbs=[];isOpen=!1;componentWillLoad(){t(this.el?.shadowRoot)}render(){const a=this.breadcrumbs?.find((a=>a.return));if(a)return n("nav",{"aria-label":"Breadcrumb",class:"breadcrumbs"},n(o,{breadcrumbs:[a],className:"return-only"}));const r=this.breadcrumbs?.length?this.breadcrumbs.at(-1):null;return n("div",{class:"breadcrumbs"},n("nav",{"aria-label":"Breadcrumb"},n(o,{breadcrumbs:this.breadcrumbs,className:"main"})),n("nano-dropdown",{dialogTitle:`${r?.label} Breadcrumb`,onNanoShow:()=>this.isOpen=!0,onNanoHide:()=>this.isOpen=!1,containingElement:this.el},n("button",{class:"trigger-button",slot:"trigger"},n("span",null,this.breadcrumbs&&this.breadcrumbs.length>1&&n("span",{class:"trigger-button_label"},".."),n("span",{class:"trigger-button_label"},r?.label)),n("nano-icon",{class:{"trigger-icon":!0,"trigger-icon--open":this.isOpen},name:"light/chevron-down"})),n("nav",null,n("nano-menu",{class:"breadcrumbs small",label:"Breadcrumbs"},this.breadcrumbs?.slice(0,-1)?.map(((a,r)=>n("nano-nav-item",{key:r,href:a.href,class:{return:a.return,link:!!a.href},disabled:!a.href},a.label)))))))}},o=({breadcrumbs:a,className:r})=>n("ol",{class:`breadcrumbs ${r}`},a?.map(((a,r)=>n("li",null,n("a",{key:r,href:a.href,class:{return:a.return,link:!!a.href}},a.return&&n("nano-icon",{name:"light/chevron-left",size:"small",class:"breadcrumb-icon"}),a.label)))));e.style=":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}";export{e as nano_breadcrumb}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import{r as n,c as o,a,d as e}from"./index-DXvE-U_j.js";import{h as t}from"./renderer-BUaAsDso.js";import{a as i}from"./style-xLaX004n.js";const r=class{constructor(a){n(this,a),this.nanoToggle=o(this,"nanoToggle",7)}get details(){return this.el.querySelectorAll("nano-details")}get el(){return a(this)}open=!1;nanoToggle;handleOpenChange(){this.details?.forEach((n=>{n.open=!!this.open})),this.nanoToggle.emit(this.open)}handleClick=()=>{this.open=!this.open};componentWillLoad(){i(this.el.shadowRoot)}componentDidLoad(){this.open&&this.details?.forEach((n=>{n.open=!0}))}render(){return t(e,{key:"
|
|
4
|
+
import{r as n,c as o,a,d as e}from"./index-DXvE-U_j.js";import{h as t}from"./renderer-BUaAsDso.js";import{a as i}from"./style-xLaX004n.js";const r=class{constructor(a){n(this,a),this.nanoToggle=o(this,"nanoToggle",7)}get details(){return this.el.querySelectorAll("nano-details")}get el(){return a(this)}open=!1;nanoToggle;handleOpenChange(){this.details?.forEach((n=>{n.open=!!this.open})),this.nanoToggle.emit(this.open)}handleClick=()=>{this.open=!this.open};componentWillLoad(){i(this.el.shadowRoot)}componentDidLoad(){this.open&&this.details?.forEach((n=>{n.open=!0}))}render(){return t(e,{key:"849c3d8630973d94ced90a7fe10506815932d9ab",class:"nano-collapsible-comparison"},t("div",{key:"f84d57632fc72fbc266839afd017d0087ba2ed61",class:"collapsible-comparison"},t("div",{key:"6eeadd3c7ee8ccfacf6eeddd1addcb6f850d8561",part:"header"},t("div",{key:"fa7e80984c27a377b485392ada0bdc5bcacc523d",class:"header"},t("slot",{key:"93e94814f324b460dbb69ae44214e77602e4af8f",name:"heading"}),t("nano-cta",{key:"ac4faf7dddc1659c80493321ffacf10ccc9587dd",size:"large",icon:this.open?"up":"down",secondary:!0},t("button",{key:"b7de49dacb1b827eaf17cfb81349b63d31858251",onClick:this.handleClick},this.open?"Hide":"Show"," details")),t("nano-icon-button",{key:"3cddc59e59966562873e7e4999d22ff4db1b4da1",label:(this.open?"Hide":"Show")+" details",onClick:this.handleClick,iconName:"light/chevron-down",class:this.open?"open":""})),t("div",{key:"a977e27bf6aaea079bb80ca72433e2f2c385c683",class:"headings"},t("slot",{key:"7793d25823855334f9d5223070ef84a1418fb1c0",name:"comparison-headings"}))),t("div",{key:"08102e78eda50cd562e0c31588a38c363e746e4d",class:"content"},t("slot",{key:"0318767e2bb809f6db5a2c402438682d6101885a",name:"content"}))))}static get watchers(){return{open:["handleOpenChange"]}}};r.style=":host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }:host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }:host {\n /**\n * @prop --color-bg - Background color of the component. Defaults to var(--nano-color-base-0).\n * @prop --color-border - Border color of the component. Defaults to var(--nano-color-neutral-200).\n * @prop --outer-spacing - Horizontal padding of the component. Defaults to var(--nano-spacing-l1-default).\n */\n}\n:host .collapsible-comparison {\n background-color: var(--color-bg);\n color: var(--nano-color-neutral-1400);\n padding: var(--outer-spacing) 0;\n container-type: inline-size;\n}\n:host .header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-block-end: var(--nano-spacing-xl);\n}\n:host .headings {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--nano-spacing-xl);\n}\n:host nano-icon-button {\n display: none;\n}\n@container (max-width: 400px) {\n :host nano-cta {\n display: none;\n }\n :host nano-icon-button {\n --color: var(--nano-color-primary-1100);\n display: block;\n margin-inline-start: auto;\n font-size: var(--nano-font-size-xl);\n transition: 0.3s ease transform;\n }\n :host nano-icon-button.open {\n transform: rotate(180deg);\n }\n}";export{r as nano_collapsible_comparison}
|
|
@@ -1204,6 +1204,7 @@
|
|
|
1204
1204
|
justify-content: center;
|
|
1205
1205
|
position: relative;
|
|
1206
1206
|
inline-size: var(--size);
|
|
1207
|
+
min-inline-size: var(--size);
|
|
1207
1208
|
block-size: var(--size);
|
|
1208
1209
|
background-color: var(--nano-color-neutral-400);
|
|
1209
1210
|
font-size: calc(var(--size) * 0.5);
|
|
@@ -1927,6 +1928,131 @@
|
|
|
1927
1928
|
}
|
|
1928
1929
|
}
|
|
1929
1930
|
}
|
|
1931
|
+
@layer components {
|
|
1932
|
+
:host {
|
|
1933
|
+
--text-color: var(--nano-color-primary-1000);
|
|
1934
|
+
--text-color-hover: var(--nano-color-primary-1200);
|
|
1935
|
+
--text-color-secondary: var(--nano-color-neutral-1400);
|
|
1936
|
+
--text-color-disabled: var(--nano-color-neutral-1000);
|
|
1937
|
+
--border-color: var(--nano-color-neutral-400);
|
|
1938
|
+
--trigger-bg-color: var(--nano-color-base-0);
|
|
1939
|
+
}
|
|
1940
|
+
:host .breadcrumbs {
|
|
1941
|
+
container-type: inline-size;
|
|
1942
|
+
container-name: breadcrumbs;
|
|
1943
|
+
inline-size: 100%;
|
|
1944
|
+
max-inline-size: 1346px;
|
|
1945
|
+
}
|
|
1946
|
+
:host ol,
|
|
1947
|
+
:host nano-menu::part(base) {
|
|
1948
|
+
list-style: none;
|
|
1949
|
+
padding: 0;
|
|
1950
|
+
margin: 0;
|
|
1951
|
+
display: flex;
|
|
1952
|
+
flex-direction: row;
|
|
1953
|
+
}
|
|
1954
|
+
:host li,
|
|
1955
|
+
:host nano-nav-item {
|
|
1956
|
+
display: flex;
|
|
1957
|
+
align-items: center;
|
|
1958
|
+
justify-content: flex-start;
|
|
1959
|
+
font-size: var(--nano-font-size-xs);
|
|
1960
|
+
line-height: var(--nano-line-height-normal);
|
|
1961
|
+
text-wrap: nowrap;
|
|
1962
|
+
margin-block-end: 0;
|
|
1963
|
+
}
|
|
1964
|
+
:host li:not(.return-only li)::after,
|
|
1965
|
+
:host nano-nav-item::after {
|
|
1966
|
+
content: "/";
|
|
1967
|
+
margin: 0 var(--nano-spacing-xs);
|
|
1968
|
+
color: var(--border-color);
|
|
1969
|
+
}
|
|
1970
|
+
:host a.link {
|
|
1971
|
+
color: var(--text-color);
|
|
1972
|
+
}
|
|
1973
|
+
:host a:not(.link) {
|
|
1974
|
+
color: var(--text-color-secondary);
|
|
1975
|
+
}
|
|
1976
|
+
:host a:focus-visible {
|
|
1977
|
+
outline: var(--nano-focus-ring);
|
|
1978
|
+
outline-offset: var(--nano-focus-ring-offset);
|
|
1979
|
+
z-index: 1;
|
|
1980
|
+
}
|
|
1981
|
+
:host a.link:hover {
|
|
1982
|
+
color: var(--text-color-hover);
|
|
1983
|
+
}
|
|
1984
|
+
:host a.return.link {
|
|
1985
|
+
display: flex;
|
|
1986
|
+
align-items: center;
|
|
1987
|
+
gap: calc(var(--nano-spacing-sm) / 2);
|
|
1988
|
+
}
|
|
1989
|
+
:host nano-dropdown {
|
|
1990
|
+
inline-size: 100%;
|
|
1991
|
+
display: none;
|
|
1992
|
+
}
|
|
1993
|
+
:host nano-dropdown[open]::part(trigger) {
|
|
1994
|
+
box-shadow: var(--nano-shadow-l1);
|
|
1995
|
+
}
|
|
1996
|
+
:host nano-dropdown[open]::part(panel) {
|
|
1997
|
+
box-shadow: var(--nano-shadow-l1);
|
|
1998
|
+
}
|
|
1999
|
+
:host .trigger-button {
|
|
2000
|
+
inline-size: 100%;
|
|
2001
|
+
display: flex;
|
|
2002
|
+
justify-content: space-between;
|
|
2003
|
+
align-items: center;
|
|
2004
|
+
padding: var(--nano-spacing-l3) var(--nano-spacing-l2);
|
|
2005
|
+
color: var(--text-color);
|
|
2006
|
+
background-color: var(--trigger-bg-color);
|
|
2007
|
+
cursor: pointer;
|
|
2008
|
+
text-align: start;
|
|
2009
|
+
border: none;
|
|
2010
|
+
font-size: var(--nano-font-size-xs);
|
|
2011
|
+
}
|
|
2012
|
+
:host .trigger-button .trigger-button_label {
|
|
2013
|
+
text-decoration: underline;
|
|
2014
|
+
}
|
|
2015
|
+
:host .trigger-button .trigger-button_label::after {
|
|
2016
|
+
content: "/";
|
|
2017
|
+
margin: 0 var(--nano-spacing-xs);
|
|
2018
|
+
color: var(--border-color);
|
|
2019
|
+
}
|
|
2020
|
+
:host .trigger-button:focus-visible {
|
|
2021
|
+
outline: var(--nano-focus-ring);
|
|
2022
|
+
outline-offset: var(--nano-focus-ring-offset);
|
|
2023
|
+
}
|
|
2024
|
+
:host .trigger-icon {
|
|
2025
|
+
transform: rotate(0deg);
|
|
2026
|
+
transition: var(--nano-transition-x-fast) ease transform;
|
|
2027
|
+
}
|
|
2028
|
+
:host .trigger-icon--open {
|
|
2029
|
+
transform: rotate(180deg);
|
|
2030
|
+
}
|
|
2031
|
+
@container breadcrumbs (max-width: 768px) {
|
|
2032
|
+
:host .main {
|
|
2033
|
+
display: none;
|
|
2034
|
+
}
|
|
2035
|
+
:host nano-dropdown {
|
|
2036
|
+
display: block;
|
|
2037
|
+
}
|
|
2038
|
+
:host nano-menu::part(base) {
|
|
2039
|
+
flex-direction: column;
|
|
2040
|
+
}
|
|
2041
|
+
:host nano-nav-item::after {
|
|
2042
|
+
display: none;
|
|
2043
|
+
}
|
|
2044
|
+
:host .trigger-button_label::after {
|
|
2045
|
+
display: inline-block;
|
|
2046
|
+
}
|
|
2047
|
+
:host .return-only {
|
|
2048
|
+
padding: var(--nano-spacing-l3) var(--nano-spacing-l2);
|
|
2049
|
+
}
|
|
2050
|
+
:host nano-nav-item::part(trigger) {
|
|
2051
|
+
text-decoration: none;
|
|
2052
|
+
color: var(--text-color-secondary);
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
1930
2056
|
@layer components {
|
|
1931
2057
|
:root {
|
|
1932
2058
|
--nano-component-icon-chevron: url("data:image/svg+xml;charset=utf-8,<svg%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'><g><path%20fill='white'%20d='M4.18457%2015.8496C4.06179%2015.7374%204.00044%2015.584%204.00044%2015.43C4.00044%2015.291%204.05065%2015.1521%204.15221%2015.0421L10.6195%208.00301L4.15207%200.959231C3.9378%200.727093%203.9512%200.364958%204.18443%200.151748C4.41655%20-0.0625328%204.77688%20-0.0480332%204.99114%200.183555L11.8477%207.61197C12.0508%207.83182%2012.0508%208.16767%2011.8477%208.38766L4.99114%2015.8161C4.77594%2016.046%204.41669%2016.0639%204.18457%2015.8496Z'/></g></svg>");
|