@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
|
@@ -114,7 +114,7 @@ const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (
|
|
|
114
114
|
})
|
|
115
115
|
);
|
|
116
116
|
|
|
117
|
-
const workerPromise = Promise.resolve().then(function () { return require('./table.worker-
|
|
117
|
+
const workerPromise = Promise.resolve().then(function () { return require('./table.worker-D7-NI7ZI.js'); }).then(m => m.worker);
|
|
118
118
|
const createWorkerStore = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'createWorkerStore');
|
|
119
119
|
const syncConfigToWorker = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'syncConfigToWorker');
|
|
120
120
|
const syncDataToWorker = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'syncDataToWorker');
|
|
@@ -1057,7 +1057,7 @@ class TablePinService {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
const tableCss = ":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
|
|
1060
|
+
const tableCss = ":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}";
|
|
1061
1061
|
|
|
1062
1062
|
let id = 0;
|
|
1063
1063
|
const NanoDataTable = class {
|
|
@@ -1811,14 +1811,14 @@ const NanoDataTable = class {
|
|
|
1811
1811
|
[`${CSSNAMESPACE}__progress-bar`]: true,
|
|
1812
1812
|
[`${CSSNAMESPACE}__progress-bar--show`]: this._loading,
|
|
1813
1813
|
}
|
|
1814
|
-
}), renderer.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 }, renderer.h("caption", { class: {
|
|
1814
|
+
}, renderer.h("progress", null)), renderer.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 }, renderer.h("caption", { class: {
|
|
1815
1815
|
[`${CSSNAMESPACE}__caption`]: true,
|
|
1816
1816
|
[`${CSSNAMESPACE}__caption--hide`]: !this.showCaption,
|
|
1817
1817
|
} }, renderer.h("slot", { name: "caption" }, this.caption)), renderer.h("thead", null, renderer.h(TableHeadFootRow, { rowRenderer: this.headRender }, this.store.config.state.columns.map((colModel) => [
|
|
1818
1818
|
renderer.h(TableColHead, { column: colModel, headRenderer: this.headRender, onColumnSortClick: this.sortStart, defaults: {
|
|
1819
1819
|
sortable: this.defaultSort,
|
|
1820
1820
|
} }),
|
|
1821
|
-
]))), this._loading && !this.blocks.length && (renderer.h("tbody", { class: `${CSSNAMESPACE}__active ${CSSNAMESPACE}__loading` }, [...Array(this.placeholderSize).keys()].map((rowIndex) => (renderer.h("tr", null, this.store.config.state.columns.map((_colModel, colIndex) => (renderer.h(TableCell, { rowIndex: rowIndex, colIndex: colIndex, nestedContent: () => renderer.h("
|
|
1821
|
+
]))), this._loading && !this.blocks.length && (renderer.h("tbody", { class: `${CSSNAMESPACE}__active ${CSSNAMESPACE}__loading` }, [...Array(this.placeholderSize).keys()].map((rowIndex) => (renderer.h("tr", null, this.store.config.state.columns.map((_colModel, colIndex) => (renderer.h(TableCell, { rowIndex: rowIndex, colIndex: colIndex, nestedContent: () => renderer.h("span", { class: "n-loader-skeleton" }, renderer.h("span", null, "Content loading")) })))))))), renderer.h("tr", { hidden: !!this._loading || !!this.blocks.length }, renderer.h("th", { class: `${CSSNAMESPACE}__th`, colSpan: this.store.config.state.columns.length }, renderer.h("div", { class: "nano-tbl__cell-content nano-tbl__cell-content--no-result" }, renderer.h("slot", { name: "no-results" }, "No results found")))), this.blocks.map((block, blockIndex) => (renderer.h("tbody", { key: block.__uuid, id: `tbody-${this.renderId}-${blockIndex}`, ref: (tb) => {
|
|
1822
1822
|
this.blockElements.push(tb);
|
|
1823
1823
|
}, class: {
|
|
1824
1824
|
[`${CSSNAMESPACE}__inactive`]: !this.activeBlocks.includes(blockIndex),
|
|
@@ -676,8 +676,8 @@ const NanoTag = class {
|
|
|
676
676
|
render() {
|
|
677
677
|
return (this.closable &&
|
|
678
678
|
!this.containsAnchor() && [
|
|
679
|
-
renderer.h("slot", { key: '
|
|
680
|
-
renderer.h("nano-icon-button", { key: '
|
|
679
|
+
renderer.h("slot", { key: '2ef94e5651a0428b93d9d3619ad0440bf70587e2' }),
|
|
680
|
+
renderer.h("nano-icon-button", { key: '0ad6bfbe3fd9ab8a796bbe915c6d522986236f1d', label: "Close", "icon-name": "light/xmark-large", onKeyDown: this.onKeyDown, onClick: this.handleClick }),
|
|
681
681
|
]);
|
|
682
682
|
}
|
|
683
683
|
};
|
|
@@ -472,20 +472,20 @@ const GlobalNav = class {
|
|
|
472
472
|
}
|
|
473
473
|
render() {
|
|
474
474
|
const bpps = this.bpPartials;
|
|
475
|
-
return (renderer.h(index.Host, { key: '
|
|
475
|
+
return (renderer.h(index.Host, { key: '66132ed8841605602bff8c2c750a657ec4d6d83a', class: {
|
|
476
476
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
|
477
477
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
|
478
478
|
'nano-global-nav': true,
|
|
479
|
-
} }, renderer.h("div", { key: '
|
|
479
|
+
} }, renderer.h("div", { key: 'c8dfcf4b405c72a14f576fb7b14ce41e8ff49b83', class: {
|
|
480
480
|
gn: true,
|
|
481
481
|
'gn__search-open': this.searchBarShown,
|
|
482
|
-
} }, renderer.h("nano-drawer", { key: '
|
|
482
|
+
} }, renderer.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) }, renderer.h("div", { key: 'b8d197424ed2d4dff32234457b7836507d9777ba', class: "gn__drawer-header", part: "overflow-header", slot: "label" }, "Main menu"), renderer.h("nav", { key: '36ef3c9a323078bfbf4f28682afd4b33475c6d1d', class: "gn__drawer-menu", part: "overflow-menu" }, this.breakpoint > bpps.mainMenu.breakpoint
|
|
483
483
|
? bpps.mainMenu.tpl()
|
|
484
|
-
: '', renderer.h("slot", { key: '
|
|
484
|
+
: '', renderer.h("slot", { key: '569277672e49d95702583537c90db8de51d89a35', name: "overflow" }))), renderer.h("div", { key: '367e4bfffe6a8359bf49e6a4ea7a69dfdd20e6af', class: "gn__menu-bar-wrapper" }, renderer.h("div", { key: 'aca6cb95a4b03c46509cfd6d0a55e722976200e9', class: "gn__menu-bar", part: "menu-bar", ref: (el) => (this.mainMenuBar = el) }, renderer.h("nav", { key: '8c56fcfde4d896b30a277a00f79de3dfb75d93ef', class: `gn__main-menu ${this.shouldResize ? 'resizing' : ''}`, part: "main-menu", ref: (el) => (this.mainMenu = el) }, this.breakpoint > bpps.mainMenu.breakpoint && (renderer.h("nano-icon-button", { key: 'fb8ca915d6460ee871a0a357b8a25d2e720620ac', class: "gn__overflow-button", iconName: "light/bars", label: "Open Menu", onClick: () => this.overflowMenu.show() })), renderer.h("slot", { key: '96962d7ccd0d55f5c054dae0e8480398e7ea1415', name: "logo" }, renderer.h("a", { key: 'dcfa5d446ef38afb07285172dd5c0269da604d44', href: this.logoUrl, class: "gn__logo-link", part: "logo-link" }, this.breakpoint <= bpps.logo.breakpoint ? (renderer.h("img", { src: index.getAssetPath('../nano-assets/ont-logo.svg'), alt: `Oxford Nanopore Technologies logo. Features a stylised representation of a nanopore,
|
|
485
485
|
(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" })) : (renderer.h("img", { src: index.getAssetPath('../nano-assets/ont-wheel.svg'), alt: `Oxford Nanopore Technologies logo. A stylised representation of a nanopore,
|
|
486
|
-
(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 && (renderer.h("div", { key: '
|
|
486
|
+
(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 && (renderer.h("div", { key: 'c4e2a7166c5766eede74e6f9e5763e157c47ac74', class: "gn__main-menu-links" }, bpps.mainMenu.tpl())), renderer.h("div", { key: 'e6bb457db190019f21c1c712bb8c9bab5abec91b', class: "gn__main-menu-actions" }, renderer.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 }, renderer.h("nano-icon-button", { key: '00df8fe73a5c1e5b0e3263ee584549c1b450675f', class: "gn__search-button", slot: "trigger", iconName: "light/magnifying-glass", label: "Search" }), !!this.searchIndices.length && (renderer.h("form", { key: 'b03a0c3f58a7a50939ec09258dda85a49157cf48', ref: (form) => (this.searchForm = form), class: "gn__search-form", part: "search-form", onSubmit: this.onSearchSubmit }, this.searchIndices.length > 1 && (renderer.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) => (renderer.h("nano-option", { selected: index.name === this.searchIndex, value: index.index }, index.name || index.index))))), renderer.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) => {
|
|
487
487
|
this.handleSearchTermChangeEvent(e.detail.value);
|
|
488
|
-
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, renderer.h("nano-icon", { key: '
|
|
488
|
+
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, renderer.h("nano-icon", { key: 'fe62a269a2f3ca318ad1e071404f693c9540317b', slot: "end", name: "light/magnifying-glass" }), renderer.h("nano-datalist", { key: '87d39b1dc2be07a66b546ba53eea56351bb103ec', class: "gn__search-results", onNanoSelect: (e) => e.preventDefault(), dropDownConfig: { tetherTo: this.searchForm }, disableFilter: true }, this.searchLoading && (renderer.h("div", { key: 'fade49b478eddeb181f332b8db31b0f88c98305f', slot: "no-result", class: "gn__search-loading" }, renderer.h("nano-spinner", { key: 'e7c946dc5ec1ee76d115fd2575b1288f95d71c43' }, "Searching..."))), this.noResultPartial(), !!this.autocompleteResults?.hits.length && [
|
|
489
489
|
this.autocompleteResults.hits.map((hit, i) => (renderer.h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
|
490
490
|
searchInsights.searchInsight.sendClick({
|
|
491
491
|
index: this.activeIndex.index,
|
|
@@ -495,10 +495,10 @@ const GlobalNav = class {
|
|
|
495
495
|
positions: [i + 1],
|
|
496
496
|
});
|
|
497
497
|
} }, renderer.h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
|
498
|
-
renderer.h("nano-option", { key: '
|
|
499
|
-
]))))), renderer.h("div", { key: '
|
|
498
|
+
renderer.h("nano-option", { key: '74852e060130852064b4987f1de0c8f0fa2a395e', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
|
499
|
+
]))))), renderer.h("div", { key: 'e66b10d8ce1de533d772bfd66bf7c73511f338ff', class: "gn__cart" }, renderer.h("nano-icon-button", { key: '47b8fc7ad91f5ea1048a670407ad602d29eb347f', iconName: "light/cart-shopping", label: "View your cart", href: this.cartUrl }), !!this.cartCount && (renderer.h("nano-badge", { key: '75c8ffb6264bd4a390ad77d15c408105d6f77393', theme: "danger", strength: "2" }, this.cartCount > 9 ? '9+' : this.cartCount))), this.breakpoint <= bpps.contact.breakpoint
|
|
500
500
|
? bpps.contact.tpl()
|
|
501
|
-
: '', this.isLoggedIn ? (renderer.h("nano-dropdown", { dialogTitle: "User menu", class: "gn__user-dropdown", distance: 10, placement: "bottom-end" }, renderer.h("button", { slot: "trigger", class: "gn__user-dropdown-trigger" }, renderer.h("nano-icon", { name: "light/user" }), renderer.h("nano-icon", { name: "light/chevron-down", class: "gn__user-dropdown-chevron" }), !!this.msgCount && (renderer.h("nano-badge", { theme: "danger", strength: "2" }, this.msgCount > 9 ? '9+' : this.msgCount))), this.loggedInPanel())) : (renderer.h("nano-cta", { secondary: true, size: "small", icon: "false", class: "gn__login-cta" }, renderer.h("a", { href: this.formatLoginLink(this.loginUrl) }, "Login"))))))), renderer.h("div", { key: '
|
|
501
|
+
: '', this.isLoggedIn ? (renderer.h("nano-dropdown", { dialogTitle: "User menu", class: "gn__user-dropdown", distance: 10, placement: "bottom-end" }, renderer.h("button", { slot: "trigger", class: "gn__user-dropdown-trigger" }, renderer.h("nano-icon", { name: "light/user" }), renderer.h("nano-icon", { name: "light/chevron-down", class: "gn__user-dropdown-chevron" }), !!this.msgCount && (renderer.h("nano-badge", { theme: "danger", strength: "2" }, this.msgCount > 9 ? '9+' : this.msgCount))), this.loggedInPanel())) : (renderer.h("nano-cta", { secondary: true, size: "small", icon: "false", class: "gn__login-cta" }, renderer.h("a", { href: this.formatLoginLink(this.loginUrl) }, "Login"))))))), renderer.h("div", { key: '798ee16df74983e3d5689639f3320198bd1fe14d', class: "gn__site", part: "site-wrapper" }, renderer.h("nano-global-search-results", { key: 'a51edbf9c6bc9b0e34e207e21b4341704032e82f', part: "site-search-results" }, renderer.h("slot", { key: '4ae65a7bc4d8897d95e43692b87830cf9f9d8a8f' }))))));
|
|
502
502
|
}
|
|
503
503
|
static get assetsDirs() { return ["assets"]; }
|
|
504
504
|
static get watchers() { return {
|
|
@@ -456,16 +456,16 @@ const Img = class {
|
|
|
456
456
|
const bgStyle = this.loadSrc
|
|
457
457
|
? { 'background-image': `url(${this.loadSrc})` }
|
|
458
458
|
: {};
|
|
459
|
-
return (renderer.h(index.Host, { key: 'a9d5cb1d0be8540d7ea690fd13d92b1f5ec614af', class: "nano-img" }, renderer.h("div", { key: '1f40afc64a5652f53b224403c59b4f108e5eb044', class: "img" }, renderer.h("
|
|
459
|
+
return (renderer.h(index.Host, { key: 'a9d5cb1d0be8540d7ea690fd13d92b1f5ec614af', class: "nano-img" }, renderer.h("div", { key: '1f40afc64a5652f53b224403c59b4f108e5eb044', class: "img" }, renderer.h("div", { key: '7b3a0b8521888092effb1fc675b0c52bce7faa6f', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (renderer.h("div", { key: '1f4d59fc6ff3e0be42f18d1db4a099a32d099872', class: {
|
|
460
460
|
loaded: this.hasLoaded,
|
|
461
461
|
img__bg: true,
|
|
462
462
|
'no-height': this.autoHeight === 'image',
|
|
463
|
-
}, style: bgStyle }, renderer.h("slot", { key: '
|
|
463
|
+
}, style: bgStyle }, renderer.h("slot", { key: 'd987180d13fa9ef34868c8e962344da9e0f6b876' }))), renderer.h("img", { key: 'f3d603cf35bf0c37c4e1eb530e9a9ea7d7e81beb', class: {
|
|
464
464
|
img__image: true,
|
|
465
465
|
loaded: this.hasLoaded,
|
|
466
466
|
hide: this.background,
|
|
467
467
|
'no-height': this.autoHeight === 'content',
|
|
468
|
-
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), renderer.h("nano-resize-observe", { key: '
|
|
468
|
+
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), renderer.h("nano-resize-observe", { key: 'cf77dadeb8d5b01ef1afff5e6df5eb6aacad13e6', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
|
469
469
|
}
|
|
470
470
|
static get watchers() { return {
|
|
471
471
|
"_src": ["_srcChanged"],
|
|
@@ -638,10 +638,10 @@ const Tooltip = class {
|
|
|
638
638
|
this.popover.destroy();
|
|
639
639
|
}
|
|
640
640
|
render() {
|
|
641
|
-
return (renderer.h(index.Host, { key: '
|
|
641
|
+
return (renderer.h(index.Host, { key: '08c87af28b192ca65f9adf1d62dd83b7e75ae3b5', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, renderer.h("slot", { key: 'c132792e3f32e824735783e6284f1c12ea3c234a', onSlotchange: this.handleSlotChange }), renderer.h("div", { key: 'd27cc6ed095544d4f81680191647ead58ed2cc89', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, renderer.h("div", { key: 'c002bf4ec9a19eb5631d120498df58956d81e9ba', part: "base", ref: (el) => (this.tooltip = el), class: {
|
|
642
642
|
tooltip: true,
|
|
643
643
|
'tooltip--open': this.open,
|
|
644
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, renderer.h("slot", { key: '
|
|
644
|
+
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, renderer.h("slot", { key: '9f25b5ba1a2732bf2b6f6791bc47fb6c66e08bb6', name: "content", onSlotchange: () => this.setLabel() }, this.content), renderer.h("div", { key: '8d9e9b42fc0fb8e6491492b28019c184b7fc4fac', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
|
645
645
|
}
|
|
646
646
|
static get watchers() { return {
|
|
647
647
|
"content": ["setLabel"],
|
|
@@ -243,22 +243,4 @@ const ResizeObserve = class {
|
|
|
243
243
|
};
|
|
244
244
|
ResizeObserve.style = ":host { display: block }";
|
|
245
245
|
|
|
246
|
-
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}}";
|
|
247
|
-
|
|
248
|
-
const Skeleton = class {
|
|
249
|
-
constructor(hostRef) {
|
|
250
|
-
index.registerInstance(this, hostRef);
|
|
251
|
-
}
|
|
252
|
-
/** When `true`, the skeleton will animate. */
|
|
253
|
-
animated = true;
|
|
254
|
-
render() {
|
|
255
|
-
return (renderer.h(index.Host, { key: 'f73bd1aaaf1ed443643eb6fee3421071be76b064', class: "nano-skeleton" }, renderer.h("div", { key: 'a4023374bcd7855ef2638623b2dbf29ac758f0a6', class: {
|
|
256
|
-
skeleton: true,
|
|
257
|
-
animate: this.animated,
|
|
258
|
-
} }, renderer.h("div", { key: 'bf89fd85a10834bb798515f46b51a4b26d0f885f', class: "skeleton__indicator" }, "\u00A0"))));
|
|
259
|
-
}
|
|
260
|
-
};
|
|
261
|
-
Skeleton.style = skeletonCss;
|
|
262
|
-
|
|
263
246
|
exports.nano_resize_observe = ResizeObserve;
|
|
264
|
-
exports.nano_skeleton = Skeleton;
|
|
@@ -39,7 +39,7 @@ const Slide = class {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (renderer.h(index.Host, { key: '
|
|
42
|
+
return (renderer.h(index.Host, { key: 'f45a8a3b8232fdca227e7d53642f31206ff2a6e0', class: "nano-slide" }, renderer.h("slot", { key: '248bc7303404576301a477ed36449388190e8417' })));
|
|
43
43
|
}
|
|
44
44
|
static get watchers() { return {
|
|
45
45
|
"ready": ["readyChange"]
|
|
@@ -2854,19 +2854,19 @@ const Slides = class {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
async loadFlickityModules(opts) {
|
|
2856
2856
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
|
2857
|
-
await Promise.resolve().then(function () { return require('./fullscreen-
|
|
2857
|
+
await Promise.resolve().then(function () { return require('./fullscreen-D_o31hdQ.js'); });
|
|
2858
2858
|
this.hasFullScreenModule = true;
|
|
2859
2859
|
}
|
|
2860
2860
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
|
2861
|
-
await Promise.resolve().then(function () { return require('./lazyload-
|
|
2861
|
+
await Promise.resolve().then(function () { return require('./lazyload-obUQkoFT.js'); });
|
|
2862
2862
|
this.hasLazyLoadModule = true;
|
|
2863
2863
|
}
|
|
2864
2864
|
if (!this.hasDotsModule && opts.pageDots) {
|
|
2865
|
-
await Promise.resolve().then(function () { return require('./page-dots-
|
|
2865
|
+
await Promise.resolve().then(function () { return require('./page-dots-CUrSK-1M.js'); });
|
|
2866
2866
|
this.hasDotsModule = true;
|
|
2867
2867
|
}
|
|
2868
2868
|
if (!this.hasFadeModule && opts.fade) {
|
|
2869
|
-
await Promise.resolve().then(function () { return require('./fade-
|
|
2869
|
+
await Promise.resolve().then(function () { return require('./fade-Dt8ydSYD.js'); });
|
|
2870
2870
|
this.hasFadeModule = true;
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
@@ -3001,15 +3001,15 @@ const Slides = class {
|
|
|
3001
3001
|
this.destroyflickity();
|
|
3002
3002
|
}
|
|
3003
3003
|
render() {
|
|
3004
|
-
return (renderer.h(index.Host, { key: '
|
|
3004
|
+
return (renderer.h(index.Host, { key: '0eecdd4b8054bfc79c414f92cc52208cc17030c9', class: "nano-slides" }, renderer.h("div", { key: '52d4f9e42fc545c9fbd955f497ff31911e2bae7e', class: {
|
|
3005
3005
|
slideshow: true,
|
|
3006
3006
|
ready: this.ready,
|
|
3007
3007
|
'not-ready': !this.ready,
|
|
3008
|
-
}, part: "base" }, renderer.h("div", { key: '
|
|
3008
|
+
}, part: "base" }, renderer.h("div", { key: 'd41c00513b0f7a9a9cb05a5943f368b86af34bdf', ref: (div) => (this.flickityEl = div), class: {
|
|
3009
3009
|
'flickity-container': true,
|
|
3010
3010
|
'slides-ready': this.slidesReady,
|
|
3011
3011
|
'slides-not-ready': !this.slidesReady,
|
|
3012
|
-
}, part: "slide-container" }, renderer.h("slot", { key: '
|
|
3012
|
+
}, part: "slide-container" }, renderer.h("slot", { key: 'bebd09c2b27bc7dbae72d5cab15b8fbd77af52a0' })), renderer.h("div", { key: '4e5b0c0385dcc3757f889004ec50f7550bc3bfe2', class: "ui-extras" }, renderer.h("slot", { key: '6481258c29c5f30c2a47b102e47e9ce75260c712', name: "ui" })))));
|
|
3013
3013
|
}
|
|
3014
3014
|
static get watchers() { return {
|
|
3015
3015
|
"options": ["optionsChanged"],
|
|
@@ -729,7 +729,7 @@ const Sortable = class {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
render() {
|
|
732
|
-
return (renderer.h(index.Host, { key: '
|
|
732
|
+
return (renderer.h(index.Host, { key: '108dd7db53821adef114521be6a825561c974137', class: "nano-sortable" }, renderer.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) => (renderer.h("div", null, str)))), renderer.h("slot", { key: 'a61fca55dd0de8a4dd1611ada70101ca19906528' })));
|
|
733
733
|
}
|
|
734
734
|
static get watchers() { return {
|
|
735
735
|
"itemSelector": ["handleItemSelectorChange"],
|
|
@@ -22,7 +22,7 @@ const Spinner = class {
|
|
|
22
22
|
this.hasText = !!this.el.childNodes.length;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (renderer.h(index.Host, { key: '
|
|
25
|
+
return (renderer.h(index.Host, { key: '50440a7fb87c4e5b54d5b3ab1c5781a77dc580c9', class: "nano-spinner" }, renderer.h("div", { key: 'c4508214b1b17c54dadf15bf5d03128f560e99b8', class: "spinner", "aria-busy": "true", "aria-live": "polite" }, renderer.h("div", { key: 'ef7f2ac50d9c6f3d8565c692b67d991e175b674a', class: "spinner__loader" }, this.type === 'dna' && (renderer.h("div", { key: '269e356d7c35879d969b9308c00ece4bfa5fbc6b', class: "spinner__dna" }, renderer.h("div", { key: '727b7efd0f96663381e0634e3ce418c9c410f2fe', class: "spinner__dnatrack spinner__dnatrack--1" }, renderer.h("div", { key: '177cf194f19c2eee3a78b9e808637b5f1cd372dd', class: "spinner__dnadot spinner__dnadot--1" }), renderer.h("div", { key: '1b4a7b46b153f26db496499cf383eb442213bbba', class: "spinner__dnadot spinner__dnadot--2" })), renderer.h("div", { key: 'f2a0b517981107faa2ff467802a024f052247f42', class: "spinner__dnatrack spinner__dnatrack--2" }, renderer.h("div", { key: '9240ab7c633a21cc68e3c7848ac1c6a68b86353c', class: "spinner__dnadot spinner__dnadot--3" }), renderer.h("div", { key: '24a36e2fc04dfa727899e2fb0d31a0a6ac4d5ea3', class: "spinner__dnadot spinner__dnadot--4" })), renderer.h("div", { key: 'c9560b3b7566f57c613483e28adae95de5154801', class: "spinner__dnatrack spinner__dnatrack--3" }, renderer.h("div", { key: '9cc8b27ed18bb71b236d9714e74c97420ae102df', class: "spinner__dnadot spinner__dnadot--5" }), renderer.h("div", { key: '63e0ce5e9788e643303a8d99ad417a2d4ebf6ede', class: "spinner__dnadot spinner__dnadot--6" })), renderer.h("div", { key: 'c23c129f65a6c8bc5f9e0fe7fdc7218d1359cb41', class: "spinner__dnatrack spinner__dnatrack--4" }, renderer.h("div", { key: '9f4def6d87deef4c6dcb19952966a73c6783f3b7', class: "spinner__dnadot spinner__dnadot--7" }), renderer.h("div", { key: 'cd66a00f3a954c6e87dd66d2701cadc2fb0ba847', class: "spinner__dnadot spinner__dnadot--8" })), renderer.h("div", { key: '0a445022fdbbd1701c2d1d950532aeec863699c5', class: "spinner__dnatrack spinner__dnatrack--5" }, renderer.h("div", { key: 'd0e880fa837d3ac04dcae98932aff0b96521cdc9', class: "spinner__dnadot spinner__dnadot--9" }), renderer.h("div", { key: 'f269a858d997cf7c6f9bb3d981cc9d3a5735a89b', class: "spinner__dnadot spinner__dnadot--10" })))), this.type === 'circle' && renderer.h("span", { key: '16f2074c1aa97fe5a541cbcac45b76985c16de9e', class: "spinner__spin" })), this.hasText && (renderer.h("div", { class: "spinner__text", key: "spinner-text" }, renderer.h("slot", { key: '2dd688af910babb15d020e14a9bde2228adfee98' }))), this.overlay && (renderer.h("div", { class: "spinner__overlay", key: "spinner-overlay" })))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
Spinner.style = spinnerCss;
|
|
@@ -607,12 +607,12 @@ const Sticker = class {
|
|
|
607
607
|
this.hasBootstrapped = false;
|
|
608
608
|
}
|
|
609
609
|
render() {
|
|
610
|
-
return (renderer.h(index.Host, { key: '
|
|
610
|
+
return (renderer.h(index.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" }, renderer.h("div", { key: 'cfdaf007080976d6e556eb66e76e5d6f1bd5cdda', class: {
|
|
611
611
|
sticker: true,
|
|
612
612
|
sticky: this.isRootSticker && this.isSticky,
|
|
613
613
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
|
614
614
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
|
615
|
-
}, ref: (div) => (this.sticker = div) }, renderer.h("div", { key: '
|
|
615
|
+
}, ref: (div) => (this.sticker = div) }, renderer.h("div", { key: 'be64fd13b426ca2ecd2f0bc2b240271e0f64bdfc', class: "sticker-content", ref: (div) => (this.content = div) }, renderer.h("slot", { key: '83903ad04e5465798443ef86fe99ca78940bd45e' })))));
|
|
616
616
|
}
|
|
617
617
|
static get watchers() { return {
|
|
618
618
|
"trigger": ["updateTriggerOffset"],
|
|
@@ -24,10 +24,10 @@ const NanoTabContent = class {
|
|
|
24
24
|
requestAnimationFrame(() => (this.ready = true));
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (renderer.h(index.Host, { key: '
|
|
27
|
+
return (renderer.h(index.Host, { key: '35d8ae3c3bce8bdfbd59b24ac8d56b2b065121bf', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
|
|
28
28
|
ready: this.ready,
|
|
29
29
|
'nano-tab-content': true,
|
|
30
|
-
} }, renderer.h("div", { key: '
|
|
30
|
+
} }, renderer.h("div", { key: 'b12340e8aa22961ab261ebe58e150ea5b2434314', part: "base", class: "nano-tab-content" }, renderer.h("slot", { key: 'eea7e936ac8ebe2338720d5878e06372c222fda2' }))));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
NanoTabContent.style = tabContentCss;
|
|
@@ -46,12 +46,12 @@ const NanoTab = class {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
|
-
return (renderer.h(index.Host, { key: '
|
|
49
|
+
return (renderer.h(index.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" }, renderer.h("div", { key: 'bff4ec7769d57b0b5b9e3f936c147023ff7b532c', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
|
|
50
50
|
tab: true,
|
|
51
51
|
'tab--active': this.active,
|
|
52
52
|
'tab--disabled': this.disabled,
|
|
53
53
|
'tab--closable': this.closable,
|
|
54
|
-
} }, renderer.h("slot", { key: '
|
|
54
|
+
} }, renderer.h("slot", { key: '797a1904ebaaa96585ff47bff275a9643d09a2b8', name: "start" }), renderer.h("div", { key: '588cb30e4c7dfa85c99c45ac231db0188cb56005', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, renderer.h("slot", { key: '6ff03454d9735733007f430cdde78010717d8677' })), renderer.h("slot", { key: '959a2633b41acdd733aa29d43178ef15784a8652', name: "end" }), this.closable && !this.disabled && (renderer.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" })))));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
NanoTab.style = tabCss;
|
|
@@ -224,10 +224,10 @@ const NanoTable = class {
|
|
|
224
224
|
this.cleanUpObservers();
|
|
225
225
|
}
|
|
226
226
|
render() {
|
|
227
|
-
return (renderer.h(index.Host, { key: '
|
|
227
|
+
return (renderer.h(index.Host, { key: 'd3e5a8138e931cb62fefade6b995111d958ad0a5', class: {
|
|
228
228
|
'nano-table': true,
|
|
229
229
|
'nano-table--props-ready': this.propsReady,
|
|
230
|
-
} }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '
|
|
230
|
+
} }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '6775e115264b8810584bfbaa573558d539a6c14d', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, renderer.h("div", { key: '297a7ca1929ee780382132ef24ba25f8533c9140', class: "nano-table__overflow" }))), renderer.h("slot", { key: '0741a9939e245d5eea38641ed35fb46b4fecf4c5' })));
|
|
231
231
|
}
|
|
232
232
|
static get watchers() { return {
|
|
233
233
|
"compact": ["handleCompactChange"],
|
|
@@ -36,134 +36,11 @@
|
|
|
36
36
|
transition-duration: 0.01ms !important;
|
|
37
37
|
scroll-behavior: auto !important;
|
|
38
38
|
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
39
|
+
}/**
|
|
41
40
|
* @prop {string} --text-color - The base color of the text. Defaults to var(--nano-color-primary-1000).
|
|
42
41
|
* @prop {string} --text-color-hover - The hover colour of the text. Defaults to var(--nano-color-primary-1200).
|
|
43
42
|
* @prop {string} --text-color-secondary - The secondary colour (& inactive colour) of the text. Defaults to var(--nano-color-neutral-1400).
|
|
44
43
|
* @prop {string} --text-color-disabled - The disabled colour of the text. Defaults to var(--nano-color-neutral-1000).
|
|
45
44
|
* @prop {string} --border-color - The colour of the border & divider. Defaults to var(--nano-color-neutral-400).
|
|
46
45
|
* @prop {string} --trigger-bg-color - The background colour of the trigger button. Defaults to var(--nano-color-base-0).
|
|
47
|
-
*/
|
|
48
|
-
--text-color: var(--nano-color-primary-1000);
|
|
49
|
-
--text-color-hover: var(--nano-color-primary-1200);
|
|
50
|
-
--text-color-secondary: var(--nano-color-neutral-1400);
|
|
51
|
-
--text-color-disabled: var(--nano-color-neutral-1000);
|
|
52
|
-
--border-color: var(--nano-color-neutral-400);
|
|
53
|
-
--trigger-bg-color: var(--nano-color-base-0);
|
|
54
|
-
}
|
|
55
|
-
:host .breadcrumbs {
|
|
56
|
-
container-type: inline-size;
|
|
57
|
-
container-name: breadcrumbs;
|
|
58
|
-
inline-size: 100%;
|
|
59
|
-
max-inline-size: 1346px;
|
|
60
|
-
}
|
|
61
|
-
:host ol,
|
|
62
|
-
:host nano-menu::part(base) {
|
|
63
|
-
list-style: none;
|
|
64
|
-
padding: 0;
|
|
65
|
-
margin: 0;
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: row;
|
|
68
|
-
}
|
|
69
|
-
:host li,
|
|
70
|
-
:host nano-nav-item {
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: flex-start;
|
|
74
|
-
font-size: var(--nano-font-size-xs);
|
|
75
|
-
line-height: var(--nano-line-height-normal);
|
|
76
|
-
text-wrap: nowrap;
|
|
77
|
-
margin-block-end: 0;
|
|
78
|
-
}
|
|
79
|
-
:host li:not(.return-only li)::after,
|
|
80
|
-
:host nano-nav-item::after {
|
|
81
|
-
content: "/";
|
|
82
|
-
margin: 0 var(--nano-spacing-xs);
|
|
83
|
-
color: var(--border-color);
|
|
84
|
-
}
|
|
85
|
-
:host a.link {
|
|
86
|
-
color: var(--text-color);
|
|
87
|
-
}
|
|
88
|
-
:host a:not(.link) {
|
|
89
|
-
color: var(--text-color-secondary);
|
|
90
|
-
}
|
|
91
|
-
:host a:focus-visible {
|
|
92
|
-
outline: var(--nano-focus-ring);
|
|
93
|
-
outline-offset: var(--nano-focus-ring-offset);
|
|
94
|
-
z-index: 1;
|
|
95
|
-
}
|
|
96
|
-
:host a.link:hover {
|
|
97
|
-
color: var(--text-color-hover);
|
|
98
|
-
}
|
|
99
|
-
:host a.return.link {
|
|
100
|
-
display: flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
gap: calc(var(--nano-spacing-sm) / 2);
|
|
103
|
-
}
|
|
104
|
-
:host nano-dropdown {
|
|
105
|
-
inline-size: 100%;
|
|
106
|
-
display: none;
|
|
107
|
-
}
|
|
108
|
-
:host nano-dropdown[open]::part(trigger) {
|
|
109
|
-
box-shadow: var(--nano-shadow-l1);
|
|
110
|
-
}
|
|
111
|
-
:host nano-dropdown[open]::part(panel) {
|
|
112
|
-
box-shadow: var(--nano-shadow-l1);
|
|
113
|
-
}
|
|
114
|
-
:host .trigger-button {
|
|
115
|
-
inline-size: 100%;
|
|
116
|
-
display: flex;
|
|
117
|
-
justify-content: space-between;
|
|
118
|
-
align-items: center;
|
|
119
|
-
padding: var(--nano-spacing-l3) var(--nano-spacing-l2);
|
|
120
|
-
color: var(--text-color);
|
|
121
|
-
background-color: var(--trigger-bg-color);
|
|
122
|
-
cursor: pointer;
|
|
123
|
-
text-align: start;
|
|
124
|
-
border: none;
|
|
125
|
-
font-size: var(--nano-font-size-xs);
|
|
126
|
-
}
|
|
127
|
-
:host .trigger-button .trigger-button_label {
|
|
128
|
-
text-decoration: underline;
|
|
129
|
-
}
|
|
130
|
-
:host .trigger-button .trigger-button_label::after {
|
|
131
|
-
content: "/";
|
|
132
|
-
margin: 0 var(--nano-spacing-xs);
|
|
133
|
-
color: var(--border-color);
|
|
134
|
-
}
|
|
135
|
-
:host .trigger-button:focus-visible {
|
|
136
|
-
outline: var(--nano-focus-ring);
|
|
137
|
-
outline-offset: var(--nano-focus-ring-offset);
|
|
138
|
-
}
|
|
139
|
-
:host .trigger-icon {
|
|
140
|
-
transform: rotate(0deg);
|
|
141
|
-
transition: var(--nano-transition-x-fast) ease transform;
|
|
142
|
-
}
|
|
143
|
-
:host .trigger-icon--open {
|
|
144
|
-
transform: rotate(180deg);
|
|
145
|
-
}
|
|
146
|
-
@container breadcrumbs (max-width: 768px) {
|
|
147
|
-
:host .main {
|
|
148
|
-
display: none;
|
|
149
|
-
}
|
|
150
|
-
:host nano-dropdown {
|
|
151
|
-
display: block;
|
|
152
|
-
}
|
|
153
|
-
:host nano-menu::part(base) {
|
|
154
|
-
flex-direction: column;
|
|
155
|
-
}
|
|
156
|
-
:host nano-nav-item::after {
|
|
157
|
-
display: none;
|
|
158
|
-
}
|
|
159
|
-
:host .trigger-button_label::after {
|
|
160
|
-
display: inline-block;
|
|
161
|
-
}
|
|
162
|
-
:host .return-only {
|
|
163
|
-
padding: var(--nano-spacing-l3) var(--nano-spacing-l2);
|
|
164
|
-
}
|
|
165
|
-
:host nano-nav-item::part(trigger) {
|
|
166
|
-
text-decoration: none;
|
|
167
|
-
color: var(--text-color-secondary);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
46
|
+
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import { h } from "@stencil/core";
|
|
4
|
+
import { h, Build } from "@stencil/core";
|
|
5
5
|
import { addGlobalStylesheetToShadow } from "../../utils/style";
|
|
6
6
|
/**
|
|
7
7
|
* Breadcrumbs are used to indicate the current page's location within a navigational hierarchy.
|
|
@@ -16,7 +16,8 @@ export class NanoBreadcrumb {
|
|
|
16
16
|
isOpen = false;
|
|
17
17
|
componentWillLoad() {
|
|
18
18
|
// add global styles to shadow DOM
|
|
19
|
-
|
|
19
|
+
if (Build.isBrowser)
|
|
20
|
+
addGlobalStylesheetToShadow(this.el?.shadowRoot);
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
23
|
const returnBreadcrumb = this.breadcrumbs?.find((breadcrumb) => breadcrumb.return);
|