@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
package/hydrate/index.mjs
CHANGED
@@ -8726,72 +8726,6 @@ class CheckboxGroup {
|
|
8726
8726
|
}
|
8727
8727
|
let grpIds = 0;
|
8728
8728
|
|
8729
|
-
let cachedCSStylesheet;
|
8730
|
-
/**
|
8731
|
-
* Adds the global nano-components stylesheets as a constructable stylesheet to a shadow root.
|
8732
|
-
* This is useful when shadow DOM enabled components:
|
8733
|
-
* - use css-only components
|
8734
|
-
* - use themed sections within their markup (i.e. `<div class="nano-theme-darK">Always dark themed section</div>`)
|
8735
|
-
*
|
8736
|
-
* @param shadowRoot - The shadow root to add the stylesheet to
|
8737
|
-
*/
|
8738
|
-
function addGlobalStylesheetToShadow(shadowRoot) {
|
8739
|
-
if (!shadowRoot)
|
8740
|
-
return;
|
8741
|
-
if (cachedCSStylesheet) {
|
8742
|
-
// we've already constructed the stylesheet
|
8743
|
-
shadowRoot.adoptedStyleSheets.push(cachedCSStylesheet);
|
8744
|
-
return;
|
8745
|
-
}
|
8746
|
-
const globalStylesheets = document.styleSheets;
|
8747
|
-
let stylesheet = null;
|
8748
|
-
let rule = null;
|
8749
|
-
let globalStylesheet = [];
|
8750
|
-
for (stylesheet of globalStylesheets) {
|
8751
|
-
if (!(stylesheet instanceof CSSStyleSheet)) {
|
8752
|
-
continue;
|
8753
|
-
}
|
8754
|
-
let cssRules;
|
8755
|
-
try {
|
8756
|
-
// Attempt to access the cssRules of the stylesheet
|
8757
|
-
cssRules = stylesheet?.cssRules;
|
8758
|
-
// no cssRules? skip it
|
8759
|
-
if (!cssRules)
|
8760
|
-
continue;
|
8761
|
-
}
|
8762
|
-
catch (e) {
|
8763
|
-
// some stylesheets may not be accessible due to CORS or other restrictions
|
8764
|
-
console.warn('Unable to access stylesheet:', stylesheet, e);
|
8765
|
-
continue;
|
8766
|
-
}
|
8767
|
-
for (rule of cssRules) {
|
8768
|
-
// arbitrary piece of text to check for that appears early in the `nano-components` stylesheet
|
8769
|
-
// this is a bit fragile but does the job
|
8770
|
-
if (rule instanceof CSSLayerBlockRule &&
|
8771
|
-
rule.cssText.indexOf('.nano-toast-stack') > -1) {
|
8772
|
-
globalStylesheet.push(stylesheet);
|
8773
|
-
}
|
8774
|
-
if (rule instanceof CSSLayerBlockRule &&
|
8775
|
-
rule.cssText.indexOf('.nano-theme') > -1) {
|
8776
|
-
globalStylesheet.push(stylesheet);
|
8777
|
-
}
|
8778
|
-
}
|
8779
|
-
}
|
8780
|
-
if (globalStylesheet.length) {
|
8781
|
-
// if we found the global stylesheet, add it to the shadow root
|
8782
|
-
const sheet = new CSSStyleSheet();
|
8783
|
-
for (const globalSheet of globalStylesheet) {
|
8784
|
-
for (const rule of globalSheet.cssRules) {
|
8785
|
-
sheet.insertRule(rule.cssText);
|
8786
|
-
}
|
8787
|
-
}
|
8788
|
-
cachedCSStylesheet = sheet;
|
8789
|
-
shadowRoot.adoptedStyleSheets.push(sheet);
|
8790
|
-
return;
|
8791
|
-
}
|
8792
|
-
console.warn('No global stylesheet found');
|
8793
|
-
}
|
8794
|
-
|
8795
8729
|
const collapsibleComparisonCss = ":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}";
|
8796
8730
|
|
8797
8731
|
/**
|
@@ -8838,7 +8772,6 @@ class CollapsibleComparison {
|
|
8838
8772
|
this.open = !this.open;
|
8839
8773
|
};
|
8840
8774
|
componentWillLoad() {
|
8841
|
-
addGlobalStylesheetToShadow(this.el.shadowRoot);
|
8842
8775
|
}
|
8843
8776
|
componentDidLoad() {
|
8844
8777
|
if (this.open) {
|
@@ -8848,7 +8781,7 @@ class CollapsibleComparison {
|
|
8848
8781
|
}
|
8849
8782
|
}
|
8850
8783
|
render() {
|
8851
|
-
return (h(Host, { key: '
|
8784
|
+
return (h(Host, { key: '849c3d8630973d94ced90a7fe10506815932d9ab', class: "nano-collapsible-comparison" }, h("div", { key: 'f84d57632fc72fbc266839afd017d0087ba2ed61', class: "collapsible-comparison" }, h("div", { key: '6eeadd3c7ee8ccfacf6eeddd1addcb6f850d8561', part: "header" }, h("div", { key: 'fa7e80984c27a377b485392ada0bdc5bcacc523d', class: "header" }, h("slot", { key: '93e94814f324b460dbb69ae44214e77602e4af8f', name: "heading" }), h("nano-cta", { key: 'ac4faf7dddc1659c80493321ffacf10ccc9587dd', size: "large", icon: this.open ? 'up' : 'down', secondary: true }, h("button", { key: 'b7de49dacb1b827eaf17cfb81349b63d31858251', onClick: this.handleClick }, this.open ? 'Hide' : 'Show', " details")), h("nano-icon-button", { key: '3cddc59e59966562873e7e4999d22ff4db1b4da1', label: `${this.open ? 'Hide' : 'Show'} details`, onClick: this.handleClick, iconName: "light/chevron-down", class: this.open ? 'open' : '' })), h("div", { key: 'a977e27bf6aaea079bb80ca72433e2f2c385c683', class: "headings" }, h("slot", { key: '7793d25823855334f9d5223070ef84a1418fb1c0', name: "comparison-headings" }))), h("div", { key: '08102e78eda50cd562e0c31588a38c363e746e4d', class: "content" }, h("slot", { key: '0318767e2bb809f6db5a2c402438682d6101885a', name: "content" })))));
|
8852
8785
|
}
|
8853
8786
|
static get watchers() { return {
|
8854
8787
|
"open": ["handleOpenChange"]
|
@@ -15097,7 +15030,6 @@ class GlobalNav {
|
|
15097
15030
|
this.handleMyAccountUrl();
|
15098
15031
|
this.initSearch();
|
15099
15032
|
this.processUserData();
|
15100
|
-
addGlobalStylesheetToShadow(this.host.shadowRoot);
|
15101
15033
|
}
|
15102
15034
|
componentDidRender() {
|
15103
15035
|
this.handleResize();
|
@@ -15153,20 +15085,20 @@ class GlobalNav {
|
|
15153
15085
|
}
|
15154
15086
|
render() {
|
15155
15087
|
const bpps = this.bpPartials;
|
15156
|
-
return (h(Host, { key: '
|
15088
|
+
return (h(Host, { key: '66132ed8841605602bff8c2c750a657ec4d6d83a', class: {
|
15157
15089
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
15158
15090
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
15159
15091
|
'nano-global-nav': true,
|
15160
|
-
} }, h("div", { key: '
|
15092
|
+
} }, h("div", { key: 'c8dfcf4b405c72a14f576fb7b14ce41e8ff49b83', class: {
|
15161
15093
|
gn: true,
|
15162
15094
|
'gn__search-open': this.searchBarShown,
|
15163
|
-
} }, h("nano-drawer", { key: '
|
15095
|
+
} }, 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
|
15164
15096
|
? bpps.mainMenu.tpl()
|
15165
|
-
: '', h("slot", { key: '
|
15097
|
+
: '', 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,
|
15166
15098
|
(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,
|
15167
|
-
(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: '
|
15099
|
+
(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) => {
|
15168
15100
|
this.handleSearchTermChangeEvent(e.detail.value);
|
15169
|
-
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '
|
15101
|
+
}, 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 && [
|
15170
15102
|
this.autocompleteResults.hits.map((hit, i) => (h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
15171
15103
|
searchInsight.sendClick({
|
15172
15104
|
index: this.activeIndex.index,
|
@@ -15176,10 +15108,10 @@ class GlobalNav {
|
|
15176
15108
|
positions: [i + 1],
|
15177
15109
|
});
|
15178
15110
|
} }, h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
15179
|
-
h("nano-option", { key: '
|
15180
|
-
]))))), h("div", { key: '
|
15111
|
+
h("nano-option", { key: '74852e060130852064b4987f1de0c8f0fa2a395e', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
15112
|
+
]))))), 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
|
15181
15113
|
? bpps.contact.tpl()
|
15182
|
-
: '', 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: '
|
15114
|
+
: '', 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' }))))));
|
15183
15115
|
}
|
15184
15116
|
static get assetsDirs() { return ["assets"]; }
|
15185
15117
|
static get watchers() { return {
|
@@ -16843,16 +16775,16 @@ class Img {
|
|
16843
16775
|
const bgStyle = this.loadSrc
|
16844
16776
|
? { 'background-image': `url(${this.loadSrc})` }
|
16845
16777
|
: {};
|
16846
|
-
return (h(Host, { key: 'a9d5cb1d0be8540d7ea690fd13d92b1f5ec614af', class: "nano-img" }, h("div", { key: '1f40afc64a5652f53b224403c59b4f108e5eb044', class: "img" }, h("
|
16778
|
+
return (h(Host, { key: 'a9d5cb1d0be8540d7ea690fd13d92b1f5ec614af', class: "nano-img" }, h("div", { key: '1f40afc64a5652f53b224403c59b4f108e5eb044', class: "img" }, h("div", { key: '7b3a0b8521888092effb1fc675b0c52bce7faa6f', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (h("div", { key: '1f4d59fc6ff3e0be42f18d1db4a099a32d099872', class: {
|
16847
16779
|
loaded: this.hasLoaded,
|
16848
16780
|
img__bg: true,
|
16849
16781
|
'no-height': this.autoHeight === 'image',
|
16850
|
-
}, style: bgStyle }, h("slot", { key: '
|
16782
|
+
}, style: bgStyle }, h("slot", { key: 'd987180d13fa9ef34868c8e962344da9e0f6b876' }))), h("img", { key: 'f3d603cf35bf0c37c4e1eb530e9a9ea7d7e81beb', class: {
|
16851
16783
|
img__image: true,
|
16852
16784
|
loaded: this.hasLoaded,
|
16853
16785
|
hide: this.background,
|
16854
16786
|
'no-height': this.autoHeight === 'content',
|
16855
|
-
}, decoding: "async", src: this.src , loading: this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '
|
16787
|
+
}, decoding: "async", src: this.src , loading: this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: 'cf77dadeb8d5b01ef1afff5e6df5eb6aacad13e6', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
16856
16788
|
}
|
16857
16789
|
static get watchers() { return {
|
16858
16790
|
"_src": ["_srcChanged"],
|
@@ -18963,7 +18895,7 @@ class NanoBadge {
|
|
18963
18895
|
}; }
|
18964
18896
|
}
|
18965
18897
|
|
18966
|
-
const breadcrumbCss = ":host
|
18898
|
+
const breadcrumbCss = ":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}}";
|
18967
18899
|
|
18968
18900
|
/**
|
18969
18901
|
* Breadcrumbs are used to indicate the current page's location within a navigational hierarchy.
|
@@ -18980,8 +18912,6 @@ class NanoBreadcrumb {
|
|
18980
18912
|
breadcrumbs = [];
|
18981
18913
|
isOpen = false;
|
18982
18914
|
componentWillLoad() {
|
18983
|
-
// add global styles to shadow DOM
|
18984
|
-
addGlobalStylesheetToShadow(this.el?.shadowRoot);
|
18985
18915
|
}
|
18986
18916
|
render() {
|
18987
18917
|
const returnBreadcrumb = this.breadcrumbs?.find((breadcrumb) => breadcrumb.return);
|
@@ -21002,7 +20932,7 @@ class TablePinService {
|
|
21002
20932
|
}
|
21003
20933
|
}
|
21004
20934
|
|
21005
|
-
const tableCss$1 = ":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 }.nano-data-table {\n /**\n * @prop --table-padding. The padding of the table cells. Defaults to `var(--table-compact-padding)`\n * @prop --table-border-color. The border color of the table cells. Defaults to `var(--nano-color-neutral-200)`\n * @prop --table-border-color-header. The border color of the table header and footer cells. Defaults to `var(--nano-color-primary-1000)`\n * @prop --table-background. The background color of the table cells. Defaults to `var(--nano-color-base-0)`\n * @prop --table-max-col-width. The maximum width of the table columns. Defaults to `clamp(200px, 500px, 50vw)`\n * @prop --table-ordered-bg. The background color of the ordered table rows. Defaults to `var(--nano-color-neutral-100)`\n * @prop --table-wrapper-max-height: maximum height of the table when table is scrollable. Defaults to 80vh;\n * @prop --table-wrapper-max-width: maximum width of the table when table is scrollable. Defaults to 100%;\n */\n --table-padding: var(--nano-spacing-sm) calc(var(--nano-spacing-md) - (var(--nano-spacing-md) / 3));\n --table-border-color: var(--nano-color-neutral-200);\n --table-border-color-header: var(--nano-color-primary-1000);\n --table-background: var(--nano-color-base-0);\n --table-max-col-width: clamp(200px, 500px, 50vw);\n --table-ordered-bg: var(--nano-color-neutral-100);\n --table-wrapper-max-height: 80vh;\n --table-wrapper-max-width: 100%;\n display: block;\n inline-size: 100%;\n color: var(--nano-color-neutral-1400);\n container-type: inline-size;\n --isLtR: 1;\n}\n.nano-data-table:dir(rtl) {\n --isLtR: -1;\n}\n.nano-data-table .nano-sortable__dragged {\n background: var(--nano-color-base-0);\n opacity: 0.9;\n box-shadow: var(--nano-shadow-l0);\n z-index: 10 !important;\n}\n\n.nano-tbl__wrap {\n display: table;\n min-inline-size: 100%;\n}\n.nano-data-table:not([scrollable=false]) .nano-tbl__wrap {\n max-inline-size: var(--table-wrapper-max-width);\n max-block-size: var(--table-wrapper-max-height);\n position: relative;\n display: block;\n}\n.nano-data-table:not([scrollable=false]) .nano-tbl__wrap table {\n margin-block-end: var(--nano-spacing-l);\n}\n\n.nano-data-table:not([scrollable=false]):has(.nano-tbl__pin--start, .nano-tbl__pin--end) .nano-masked-overflow {\n --fade-size: 0;\n}\n\n.nano-tbl {\n text-align: start;\n inline-size: 100%;\n border-spacing: 0 0;\n border-collapse: separate;\n border-inline-end: 1px solid transparent;\n border-block-start: 1px solid transparent;\n position: relative;\n z-index: 1;\n}\n.nano-tbl__top-anchor {\n clip-path: inset(50%);\n block-size: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n inline-size: 1px;\n position: relative;\n}\n.nano-tbl__ordered {\n background-color: var(--table-ordered-bg);\n --table-border-color: var(--nano-color-neutral-300);\n}\n.nano-tbl__order-btn {\n padding: 0;\n border: none;\n outline: none;\n font: inherit;\n background: none;\n appearance: none;\n color: inherit;\n display: flex;\n gap: var(--nano-spacing-sm);\n align-items: center;\n inline-size: 100%;\n}\n.nano-tbl__order-btn:focus-visible {\n outline: var(--nano-focus-ring);\n outline-offset: var(--nano-focus-ring-offset);\n}\n.nano-tbl__status-icons {\n margin-inline: auto 10px;\n display: flex;\n gap: 10px;\n}\n.nano-tbl__progress-bar {\n
|
20935
|
+
const tableCss$1 = ":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 }.nano-data-table {\n /**\n * @prop --table-padding. The padding of the table cells. Defaults to `var(--table-compact-padding)`\n * @prop --table-border-color. The border color of the table cells. Defaults to `var(--nano-color-neutral-200)`\n * @prop --table-border-color-header. The border color of the table header and footer cells. Defaults to `var(--nano-color-primary-1000)`\n * @prop --table-background. The background color of the table cells. Defaults to `var(--nano-color-base-0)`\n * @prop --table-max-col-width. The maximum width of the table columns. Defaults to `clamp(200px, 500px, 50vw)`\n * @prop --table-ordered-bg. The background color of the ordered table rows. Defaults to `var(--nano-color-neutral-100)`\n * @prop --table-wrapper-max-height: maximum height of the table when table is scrollable. Defaults to 80vh;\n * @prop --table-wrapper-max-width: maximum width of the table when table is scrollable. Defaults to 100%;\n */\n --table-padding: var(--nano-spacing-sm) calc(var(--nano-spacing-md) - (var(--nano-spacing-md) / 3));\n --table-border-color: var(--nano-color-neutral-200);\n --table-border-color-header: var(--nano-color-primary-1000);\n --table-background: var(--nano-color-base-0);\n --table-max-col-width: clamp(200px, 500px, 50vw);\n --table-ordered-bg: var(--nano-color-neutral-100);\n --table-wrapper-max-height: 80vh;\n --table-wrapper-max-width: 100%;\n display: block;\n inline-size: 100%;\n color: var(--nano-color-neutral-1400);\n container-type: inline-size;\n --isLtR: 1;\n}\n.nano-data-table:dir(rtl) {\n --isLtR: -1;\n}\n.nano-data-table .nano-sortable__dragged {\n background: var(--nano-color-base-0);\n opacity: 0.9;\n box-shadow: var(--nano-shadow-l0);\n z-index: 10 !important;\n}\n\n.nano-tbl__wrap {\n display: table;\n min-inline-size: 100%;\n}\n.nano-data-table:not([scrollable=false]) .nano-tbl__wrap {\n max-inline-size: var(--table-wrapper-max-width);\n max-block-size: var(--table-wrapper-max-height);\n position: relative;\n display: block;\n}\n.nano-data-table:not([scrollable=false]) .nano-tbl__wrap table {\n margin-block-end: var(--nano-spacing-l);\n}\n\n.nano-data-table:not([scrollable=false]):has(.nano-tbl__pin--start, .nano-tbl__pin--end) .nano-masked-overflow {\n --fade-size: 0;\n}\n\n.nano-tbl {\n text-align: start;\n inline-size: 100%;\n border-spacing: 0 0;\n border-collapse: separate;\n border-inline-end: 1px solid transparent;\n border-block-start: 1px solid transparent;\n position: relative;\n z-index: 1;\n}\n.nano-tbl__top-anchor {\n clip-path: inset(50%);\n block-size: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n inline-size: 1px;\n position: relative;\n}\n.nano-tbl__ordered {\n background-color: var(--table-ordered-bg);\n --table-border-color: var(--nano-color-neutral-300);\n}\n.nano-tbl__order-btn {\n padding: 0;\n border: none;\n outline: none;\n font: inherit;\n background: none;\n appearance: none;\n color: inherit;\n display: flex;\n gap: var(--nano-spacing-sm);\n align-items: center;\n inline-size: 100%;\n}\n.nano-tbl__order-btn:focus-visible {\n outline: var(--nano-focus-ring);\n outline-offset: var(--nano-focus-ring-offset);\n}\n.nano-tbl__status-icons {\n margin-inline: auto 10px;\n display: flex;\n gap: 10px;\n}\n.nano-tbl__progress-bar {\n --height: 0.2125rem;\n position: sticky;\n inset-block-start: 0;\n inset-inline: 0;\n z-index: 10;\n transition: transform 0.25s;\n transform: scale(0);\n inline-size: 100%;\n}\n.nano-tbl__progress-bar--show {\n transform: scale(1);\n}\n.nano-tbl__caption--hide {\n clip-path: inset(50%);\n block-size: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n inline-size: 1px;\n}\n.nano-tbl__td, .nano-tbl__th {\n max-inline-size: var(--table-max-col-width);\n}\nthead .nano-tbl__td .nano-sortable__keyboard-handle, thead .nano-tbl__th .nano-sortable__keyboard-handle {\n position: absolute;\n inset-inline-end: 5px;\n inset-block-start: 50%;\n transform: translateY(-50%);\n background: white;\n z-index: 10;\n}\n.nano-tbl__td.nano-tbl__ordered, .nano-tbl__th.nano-tbl__ordered {\n background-color: var(--table-ordered-bg) !important;\n --table-border-color: var(--nano-color-neutral-300);\n}\n.nano-tbl__cell-content {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.nano-tbl__cell-content--no-result {\n padding-block: var(--nano-spacing-md);\n}\n.nano-tbl__cell-content--wrap {\n white-space: normal;\n overflow: visible;\n}\n.nano-tbl tbody {\n opacity: 1;\n transition: 0.1s ease opacity;\n}\n.nano-tbl tbody.nano-tbl__loading {\n z-index: -1;\n position: relative;\n}\n.nano-tbl tbody.nano-tbl__inactive {\n opacity: 0;\n}\n.nano-tbl tbody .nano-tbl__tr:has(~ .nano-tbl__tr--placeholder) {\n display: none;\n}\n.nano-tbl tbody .nano-tbl__tr--placeholder ~ .nano-tbl__tr {\n display: none;\n}\n.nano-tbl th[scope=row] {\n margin: 0;\n}\n.nano-tbl__tr {\n --base-z: 0;\n}\n.nano-tbl__pin {\n z-index: var(--z, var(--base-z, 0));\n}\n.nano-tbl__pin .nano-tbl__th, .nano-tbl__pin .nano-tbl__td {\n z-index: var(--z, var(--base-z, 0));\n}\n.nano-tbl__pin--start {\n position: sticky;\n inset-inline-start: var(--pin-start, -1px);\n}\n.nano-tbl__pin--start::after {\n content: \"\";\n position: absolute;\n inset: 0;\n box-shadow: calc(4px * var(--isLtR)) 0 4px -3px rgb(var(--nano-color-base-rgb-1000)/25%);\n opacity: var(--pin-start-active, 0);\n z-index: -1;\n}\n.nano-tbl__pinned--start .nano-tbl__pin--start {\n --z: calc(var(--base-z) + 3) !important;\n}\n.nano-tbl__pin--end {\n position: sticky;\n inset-inline-end: var(--pin-end, -1px);\n max-inline-size: min(50vw, 200px);\n}\n@container (width <= 500px) {\n .nano-tbl__pin--start ~ .nano-tbl__pin--end {\n --z: 0 !important;\n inset-inline-end: auto !important;\n }\n .nano-tbl__pin--start ~ .nano-tbl__pin--end::after {\n display: none !important;\n }\n}\n@media (width <= 500px) {\n .nano-tbl__pin--start ~ .nano-tbl__pin--end {\n --z: 0 !important;\n inset-inline-end: auto !important;\n }\n .nano-tbl__pin--start ~ .nano-tbl__pin--end::after {\n display: none !important;\n }\n}\n.nano-tbl__pin--end::after {\n display: block;\n content: \"\";\n position: absolute;\n inset: 0;\n box-shadow: calc(-4px * var(--isLtR)) 0 4px -3px rgb(var(--nano-color-base-rgb-1000)/25%);\n opacity: var(--pin-end-active, 0);\n z-index: -1;\n}\n.nano-tbl__pinned--end .nano-tbl__pin--end {\n --z: calc(var(--base-z) + 2);\n}\n.nano-tbl__pin--top .nano-tbl__th, .nano-tbl__pin--top .nano-tbl__td {\n position: sticky;\n inset-block-start: var(--pin-top, -1px);\n}\n.nano-tbl__pin--top .nano-tbl__pin--end, .nano-tbl__pin--top .nano-tbl__pin--start {\n --z: calc(var(--base-z) + 1);\n}\n.nano-tbl__pin--top.nano-tbl__pinned--top {\n --base-z: 4;\n}\ntbody .nano-tbl__pin--top.nano-tbl__pinned--top .nano-tbl__th, tbody .nano-tbl__pin--top.nano-tbl__pinned--top .nano-tbl__td {\n border-block-end: 1px solid var(--table-border-color-header);\n}\n.nano-tbl__pin--bottom .nano-tbl__th, .nano-tbl__pin--bottom .nano-tbl__td {\n position: sticky;\n inset-block-end: var(--pin-bottom, -1px);\n}\n.nano-tbl__pin--bottom .nano-tbl__pin--end, .nano-tbl__pin--bottom .nano-tbl__pin--start {\n --z: calc(var(--base-z) + 1);\n}\n.nano-tbl__pin--bottom.nano-tbl__pinned--bottom {\n --base-z: 5;\n}\n.nano-tbl__pin--bottom.nano-tbl__pinned--bottom:has(.nano-tbl__pin--bottom.nano-tbl__pinned--bottom) .nano-tbl__pin {\n --base-z: 6;\n}\ntbody .nano-tbl__pin--bottom.nano-tbl__pinned--bottom .nano-tbl__th, tbody .nano-tbl__pin--bottom.nano-tbl__pinned--bottom .nano-tbl__td {\n border-block-start: 1px solid var(--table-border-color-header);\n}\n.nano-tbl thead tr:last-of-type td,\n.nano-tbl thead tr:last-of-type th {\n border-block-end: 2px solid var(--table-border-color-header);\n}\n.nano-tbl tfoot tr:first-of-type td,\n.nano-tbl tfoot tr:first-of-type th {\n border-block-start: none;\n}\n.nano-tbl tfoot tr:last-of-type td,\n.nano-tbl tfoot tr:last-of-type th {\n border-block-end: 2px solid var(--table-border-color-header);\n border-block-start: 2px solid var(--table-border-color-header);\n}\n.nano-tbl .unlimited-width {\n max-inline-size: none;\n}\n.nano-tbl__spinner {\n font-size: 1.5rem;\n transition: scale 0.25s;\n scale: 0;\n padding: 0.5rem;\n position: absolute;\n inset-block-end: 0;\n inset-inline-start: calc(50% - 0.75rem);\n z-index: 0;\n}\n.nano-tbl__spinner--show {\n scale: 1;\n position: sticky;\n}";
|
21006
20936
|
|
21007
20937
|
let id$3 = 0;
|
21008
20938
|
/**
|
@@ -21765,14 +21695,14 @@ class NanoDataTable {
|
|
21765
21695
|
[`${CSSNAMESPACE}__progress-bar`]: true,
|
21766
21696
|
[`${CSSNAMESPACE}__progress-bar--show`]: this._loading,
|
21767
21697
|
}
|
21768
|
-
}), h("table", { "aria-rowcount": this.store.data.state.rows.length, "aria-colcount": this.store.config.state.columns.length, class: `${CSSNAMESPACE}`, ref: (tbl) => (this.tableEle = tbl), id: 'nano-data-table-' + this.renderId }, h("caption", { class: {
|
21698
|
+
}, h("progress", null)), h("table", { "aria-rowcount": this.store.data.state.rows.length, "aria-colcount": this.store.config.state.columns.length, class: `${CSSNAMESPACE}`, ref: (tbl) => (this.tableEle = tbl), id: 'nano-data-table-' + this.renderId, "aria-busy": this._loading || undefined }, h("caption", { class: {
|
21769
21699
|
[`${CSSNAMESPACE}__caption`]: true,
|
21770
21700
|
[`${CSSNAMESPACE}__caption--hide`]: !this.showCaption,
|
21771
21701
|
} }, h("slot", { name: "caption" }, this.caption)), h("thead", null, h(TableHeadFootRow, { rowRenderer: this.headRender }, this.store.config.state.columns.map((colModel) => [
|
21772
21702
|
h(TableColHead, { column: colModel, headRenderer: this.headRender, onColumnSortClick: this.sortStart, defaults: {
|
21773
21703
|
sortable: this.defaultSort,
|
21774
21704
|
} }),
|
21775
|
-
]))), this._loading && !this.blocks.length && (h("tbody", { class: `${CSSNAMESPACE}__active ${CSSNAMESPACE}__loading` }, [...Array(this.placeholderSize).keys()].map((rowIndex) => (h("tr", null, this.store.config.state.columns.map((_colModel, colIndex) => (h(TableCell, { rowIndex: rowIndex, colIndex: colIndex, nestedContent: () => h("
|
21705
|
+
]))), this._loading && !this.blocks.length && (h("tbody", { class: `${CSSNAMESPACE}__active ${CSSNAMESPACE}__loading` }, [...Array(this.placeholderSize).keys()].map((rowIndex) => (h("tr", null, this.store.config.state.columns.map((_colModel, colIndex) => (h(TableCell, { rowIndex: rowIndex, colIndex: colIndex, nestedContent: () => h("span", { class: "n-loader-skeleton" }, h("span", null, "Content loading")) })))))))), h("tr", { hidden: !!this._loading || !!this.blocks.length }, h("th", { class: `${CSSNAMESPACE}__th`, colSpan: this.store.config.state.columns.length }, h("div", { class: "nano-tbl__cell-content nano-tbl__cell-content--no-result" }, h("slot", { name: "no-results" }, "No results found")))), this.blocks.map((block, blockIndex) => (h("tbody", { key: block.__uuid, id: `tbody-${this.renderId}-${blockIndex}`, ref: (tb) => {
|
21776
21706
|
this.blockElements.push(tb);
|
21777
21707
|
}, class: {
|
21778
21708
|
[`${CSSNAMESPACE}__inactive`]: !this.activeBlocks.includes(blockIndex),
|
@@ -22749,12 +22679,12 @@ class NanoTab {
|
|
22749
22679
|
}
|
22750
22680
|
};
|
22751
22681
|
render() {
|
22752
|
-
return (h(Host, { key: '
|
22682
|
+
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: {
|
22753
22683
|
tab: true,
|
22754
22684
|
'tab--active': this.active,
|
22755
22685
|
'tab--disabled': this.disabled,
|
22756
22686
|
'tab--closable': this.closable,
|
22757
|
-
} }, h("slot", { key: '
|
22687
|
+
} }, 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" })))));
|
22758
22688
|
}
|
22759
22689
|
static get style() { return tabCss; }
|
22760
22690
|
static get cmpMeta() { return {
|
@@ -22800,10 +22730,10 @@ class NanoTabContent {
|
|
22800
22730
|
requestAnimationFrame(() => (this.ready = true));
|
22801
22731
|
}
|
22802
22732
|
render() {
|
22803
|
-
return (h(Host, { key: '
|
22733
|
+
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: {
|
22804
22734
|
ready: this.ready,
|
22805
22735
|
'nano-tab-content': true,
|
22806
|
-
} }, h("div", { key: '
|
22736
|
+
} }, h("div", { key: 'b12340e8aa22961ab261ebe58e150ea5b2434314', part: "base", class: "nano-tab-content" }, h("slot", { key: 'eea7e936ac8ebe2338720d5878e06372c222fda2' }))));
|
22807
22737
|
}
|
22808
22738
|
static get style() { return tabContentCss; }
|
22809
22739
|
static get cmpMeta() { return {
|
@@ -23378,10 +23308,10 @@ class NanoTable {
|
|
23378
23308
|
this.cleanUpObservers();
|
23379
23309
|
}
|
23380
23310
|
render() {
|
23381
|
-
return (h(Host, { key: '
|
23311
|
+
return (h(Host, { key: 'd3e5a8138e931cb62fefade6b995111d958ad0a5', class: {
|
23382
23312
|
'nano-table': true,
|
23383
23313
|
'nano-table--props-ready': this.propsReady,
|
23384
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
23314
|
+
} }, 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' })));
|
23385
23315
|
}
|
23386
23316
|
static get watchers() { return {
|
23387
23317
|
"compact": ["handleCompactChange"],
|
@@ -23451,8 +23381,8 @@ class NanoTag {
|
|
23451
23381
|
render() {
|
23452
23382
|
return (this.closable &&
|
23453
23383
|
!this.containsAnchor() && [
|
23454
|
-
h("slot", { key: '
|
23455
|
-
h("nano-icon-button", { key: '
|
23384
|
+
h("slot", { key: '2ef94e5651a0428b93d9d3619ad0440bf70587e2' }),
|
23385
|
+
h("nano-icon-button", { key: '0ad6bfbe3fd9ab8a796bbe915c6d522986236f1d', label: "Close", "icon-name": "light/xmark-large", onKeyDown: this.onKeyDown, onClick: this.handleClick }),
|
23456
23386
|
]);
|
23457
23387
|
}
|
23458
23388
|
static get style() { return tagCss; }
|
@@ -25755,39 +25685,6 @@ class Select {
|
|
25755
25685
|
}; }
|
25756
25686
|
}
|
25757
25687
|
|
25758
|
-
const skeletonCss = ":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}}:host{--base-color-rgb:var(--nano-skeleton-rgb, 228 230 232);--color:var(--nano-skeleton-color, rgb(var(--base-color-rgb) / 100%));--tint:var(--nano-skeleton-tint, rgb(var(--base-color-rgb) / 50%));display:block;position:relative;border-radius:0.25rem;min-block-size:1em;line-height:inherit}.skeleton{display:flex;min-inline-size:100%;min-block-size:100%;border-radius:inherit;line-height:inherit}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:inherit;line-height:inherit}.skeleton.animate .skeleton__indicator{background:linear-gradient(270deg, var(--tint), var(--color), var(--color), var(--tint));background-size:400% 100%;animation:loader 6s ease-in-out infinite}@keyframes loader{0%{background-position:200% 0}100%{background-position:-200% 0}}";
|
25759
|
-
|
25760
|
-
/**
|
25761
|
-
* Skeletons are used to show where content will eventually be drawn.
|
25762
|
-
*
|
25763
|
-
* @version 1.0.0
|
25764
|
-
* @status stable
|
25765
|
-
*/
|
25766
|
-
class Skeleton {
|
25767
|
-
constructor(hostRef) {
|
25768
|
-
registerInstance(this, hostRef);
|
25769
|
-
}
|
25770
|
-
/** When `true`, the skeleton will animate. */
|
25771
|
-
animated = true;
|
25772
|
-
render() {
|
25773
|
-
return (h(Host, { key: 'f73bd1aaaf1ed443643eb6fee3421071be76b064', class: "nano-skeleton" }, h("div", { key: 'a4023374bcd7855ef2638623b2dbf29ac758f0a6', class: {
|
25774
|
-
skeleton: true,
|
25775
|
-
animate: this.animated,
|
25776
|
-
} }, h("div", { key: 'bf89fd85a10834bb798515f46b51a4b26d0f885f', class: "skeleton__indicator" }, "\u00A0"))));
|
25777
|
-
}
|
25778
|
-
static get style() { return skeletonCss; }
|
25779
|
-
static get cmpMeta() { return {
|
25780
|
-
"$flags$": 9,
|
25781
|
-
"$tagName$": "nano-skeleton",
|
25782
|
-
"$members$": {
|
25783
|
-
"animated": [4]
|
25784
|
-
},
|
25785
|
-
"$listeners$": undefined,
|
25786
|
-
"$lazyBundleId$": "-",
|
25787
|
-
"$attrsToReflect$": []
|
25788
|
-
}; }
|
25789
|
-
}
|
25790
|
-
|
25791
25688
|
const slideCss = ":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}}:host{display:flex;align-items:center;justify-content:center;inline-size:100%;min-block-size:100%;font-size:18px;text-align:center;box-sizing:border-box;overflow:hidden;transition:opacity 0.2s;opacity:0;flex-direction:column}:host([ready]){opacity:1}:host(:not([ready])){flex:1 0 auto}";
|
25792
25689
|
|
25793
25690
|
let Slide$2 = class Slide {
|
@@ -25821,7 +25718,7 @@ let Slide$2 = class Slide {
|
|
25821
25718
|
});
|
25822
25719
|
}
|
25823
25720
|
render() {
|
25824
|
-
return (h(Host, { key: '
|
25721
|
+
return (h(Host, { key: 'f45a8a3b8232fdca227e7d53642f31206ff2a6e0', class: "nano-slide" }, h("slot", { key: '248bc7303404576301a477ed36449388190e8417' })));
|
25825
25722
|
}
|
25826
25723
|
static get watchers() { return {
|
25827
25724
|
"ready": ["readyChange"]
|
@@ -28841,15 +28738,15 @@ class Slides {
|
|
28841
28738
|
this.destroyflickity();
|
28842
28739
|
}
|
28843
28740
|
render() {
|
28844
|
-
return (h(Host, { key: '
|
28741
|
+
return (h(Host, { key: '0eecdd4b8054bfc79c414f92cc52208cc17030c9', class: "nano-slides" }, h("div", { key: '52d4f9e42fc545c9fbd955f497ff31911e2bae7e', class: {
|
28845
28742
|
slideshow: true,
|
28846
28743
|
ready: this.ready,
|
28847
28744
|
'not-ready': !this.ready,
|
28848
|
-
}, part: "base" }, h("div", { key: '
|
28745
|
+
}, part: "base" }, h("div", { key: 'd41c00513b0f7a9a9cb05a5943f368b86af34bdf', ref: (div) => (this.flickityEl = div), class: {
|
28849
28746
|
'flickity-container': true,
|
28850
28747
|
'slides-ready': this.slidesReady,
|
28851
28748
|
'slides-not-ready': !this.slidesReady,
|
28852
|
-
}, part: "slide-container" }, h("slot", { key: '
|
28749
|
+
}, part: "slide-container" }, h("slot", { key: 'bebd09c2b27bc7dbae72d5cab15b8fbd77af52a0' })), h("div", { key: '4e5b0c0385dcc3757f889004ec50f7550bc3bfe2', class: "ui-extras" }, h("slot", { key: '6481258c29c5f30c2a47b102e47e9ce75260c712', name: "ui" })))));
|
28853
28750
|
}
|
28854
28751
|
static get watchers() { return {
|
28855
28752
|
"options": ["optionsChanged"],
|
@@ -29628,7 +29525,7 @@ class Sortable {
|
|
29628
29525
|
}
|
29629
29526
|
}
|
29630
29527
|
render() {
|
29631
|
-
return (h(Host, { key: '
|
29528
|
+
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' })));
|
29632
29529
|
}
|
29633
29530
|
static get watchers() { return {
|
29634
29531
|
"itemSelector": ["handleItemSelectorChange"],
|
@@ -29693,7 +29590,7 @@ class Spinner {
|
|
29693
29590
|
this.hasText = !!this.el.childNodes.length;
|
29694
29591
|
}
|
29695
29592
|
render() {
|
29696
|
-
return (h(Host, { key: '
|
29593
|
+
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" })))));
|
29697
29594
|
}
|
29698
29595
|
static get style() { return spinnerCss; }
|
29699
29596
|
static get cmpMeta() { return {
|
@@ -30633,12 +30530,12 @@ class Sticker {
|
|
30633
30530
|
this.hasBootstrapped = false;
|
30634
30531
|
}
|
30635
30532
|
render() {
|
30636
|
-
return (h(Host, { key: '
|
30533
|
+
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: {
|
30637
30534
|
sticker: true,
|
30638
30535
|
sticky: this.isRootSticker && this.isSticky,
|
30639
30536
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
30640
30537
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
30641
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
30538
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: 'be64fd13b426ca2ecd2f0bc2b240271e0f64bdfc', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '83903ad04e5465798443ef86fe99ca78940bd45e' })))));
|
30642
30539
|
}
|
30643
30540
|
static get watchers() { return {
|
30644
30541
|
"trigger": ["updateTriggerOffset"],
|
@@ -30927,10 +30824,10 @@ class Tooltip {
|
|
30927
30824
|
this.popover.destroy();
|
30928
30825
|
}
|
30929
30826
|
render() {
|
30930
|
-
return (h(Host, { key: '
|
30827
|
+
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: {
|
30931
30828
|
tooltip: true,
|
30932
30829
|
'tooltip--open': this.open,
|
30933
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '
|
30830
|
+
}, 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 })))));
|
30934
30831
|
}
|
30935
30832
|
static get watchers() { return {
|
30936
30833
|
"content": ["setLabel"],
|
@@ -31015,7 +30912,6 @@ registerComponents([
|
|
31015
30912
|
Rating,
|
31016
30913
|
ResizeObserve,
|
31017
30914
|
Select,
|
31018
|
-
Skeleton,
|
31019
30915
|
Slide$2,
|
31020
30916
|
Slides,
|
31021
30917
|
Sortable,
|
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.4",
|
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.4"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
66
|
"@algolia/client-search": "^4.22.1",
|
@@ -1,83 +0,0 @@
|
|
1
|
-
:host,
|
2
|
-
*,
|
3
|
-
*::before,
|
4
|
-
*::after {
|
5
|
-
box-sizing: border-box;
|
6
|
-
}
|
7
|
-
[hidden] {
|
8
|
-
display: none !important;
|
9
|
-
}
|
10
|
-
@media (prefers-reduced-motion: reduce) {
|
11
|
-
:host,
|
12
|
-
*,
|
13
|
-
*::before,
|
14
|
-
*::after {
|
15
|
-
animation-duration: 0.01ms !important;
|
16
|
-
animation-iteration-count: 1 !important;
|
17
|
-
transition-duration: 0.01ms !important;
|
18
|
-
scroll-behavior: auto !important;
|
19
|
-
}
|
20
|
-
}:host,
|
21
|
-
*,
|
22
|
-
*::before,
|
23
|
-
*::after {
|
24
|
-
box-sizing: border-box;
|
25
|
-
}
|
26
|
-
[hidden] {
|
27
|
-
display: none !important;
|
28
|
-
}
|
29
|
-
@media (prefers-reduced-motion: reduce) {
|
30
|
-
:host,
|
31
|
-
*,
|
32
|
-
*::before,
|
33
|
-
*::after {
|
34
|
-
animation-duration: 0.01ms !important;
|
35
|
-
animation-iteration-count: 1 !important;
|
36
|
-
transition-duration: 0.01ms !important;
|
37
|
-
scroll-behavior: auto !important;
|
38
|
-
}
|
39
|
-
}:host {
|
40
|
-
/**
|
41
|
-
* @prop --base-color-rgb: default var(--nano-skeleton-rgb, 228 230 232);
|
42
|
-
* @prop --color: default var(--nano-skeleton-color, rgba(var(--base-color-rgb), 1));
|
43
|
-
* @prop --tint: default var(--nano-skeleton-tint, rgba(var(--base-color-rgb), .3));
|
44
|
-
*/
|
45
|
-
--base-color-rgb: var(--nano-skeleton-rgb, 228 230 232);
|
46
|
-
--color: var(--nano-skeleton-color, rgb(var(--base-color-rgb) / 100%));
|
47
|
-
--tint: var(--nano-skeleton-tint, rgb(var(--base-color-rgb) / 50%));
|
48
|
-
display: block;
|
49
|
-
position: relative;
|
50
|
-
border-radius: 0.25rem;
|
51
|
-
min-block-size: 1em;
|
52
|
-
line-height: inherit;
|
53
|
-
}
|
54
|
-
|
55
|
-
.skeleton {
|
56
|
-
display: flex;
|
57
|
-
min-inline-size: 100%;
|
58
|
-
min-block-size: 100%;
|
59
|
-
border-radius: inherit;
|
60
|
-
line-height: inherit;
|
61
|
-
}
|
62
|
-
|
63
|
-
.skeleton__indicator {
|
64
|
-
flex: 1 1 auto;
|
65
|
-
background: var(--color);
|
66
|
-
border-radius: inherit;
|
67
|
-
line-height: inherit;
|
68
|
-
}
|
69
|
-
|
70
|
-
.skeleton.animate .skeleton__indicator {
|
71
|
-
background: linear-gradient(270deg, var(--tint), var(--color), var(--color), var(--tint));
|
72
|
-
background-size: 400% 100%;
|
73
|
-
animation: loader 6s ease-in-out infinite;
|
74
|
-
}
|
75
|
-
|
76
|
-
@keyframes loader {
|
77
|
-
0% {
|
78
|
-
background-position: 200% 0;
|
79
|
-
}
|
80
|
-
100% {
|
81
|
-
background-position: -200% 0;
|
82
|
-
}
|
83
|
-
}
|