@nanoporetech-digital/components 8.3.2 → 8.4.1
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/constructible-style-BsHBb9au.js +133 -0
- package/dist/cjs/{fade-BzBFJiQK.js → fade-DBuNbJEw.js} +1 -1
- package/dist/cjs/{fullscreen-Cz3eYnOp.js → fullscreen-Bk4jXSN0.js} +1 -1
- package/dist/cjs/index-DGttnXif.js +28 -16
- package/dist/cjs/{lazyload-DIFYejbf.js → lazyload-gQqOMvpr.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-accordion.cjs.entry.js +28 -9
- package/dist/cjs/nano-avatar_5.cjs.entry.js +11 -11
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/{nano-data-table-DFEflpc4.js → nano-data-table-BHQIpW0N.js} +31 -1
- package/dist/cjs/nano-data-table.cjs.entry.js +1 -1
- package/dist/cjs/nano-details.cjs.entry.js +6 -4
- package/dist/cjs/nano-field-validator.cjs.entry.js +4 -2
- package/dist/cjs/nano-footer.cjs.entry.js +2 -2
- package/dist/cjs/nano-global-nav.cjs.entry.js +22 -21
- package/dist/cjs/nano-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +6 -130
- package/dist/cjs/nano-hero.cjs.entry.js +4 -4
- package/dist/cjs/{nano-icon_3.cjs.entry.js → nano-icon-button_2.cjs.entry.js} +2 -320
- package/dist/cjs/nano-icon.cjs.entry.js +326 -0
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +1 -1
- package/dist/cjs/nano-increment.cjs.entry.js +1 -1
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +1 -1
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +3 -3
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +2 -2
- package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
- package/dist/cjs/nano-rating.cjs.entry.js +4 -4
- package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
- package/dist/cjs/nano-slide.cjs.entry.js +1 -1
- package/dist/cjs/{nano-slides-C576PTmo.js → nano-slides-C73bSG0h.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-step-accordion.cjs.entry.js +101 -0
- package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +133 -0
- 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-Clb2QknR.js → page-dots-BLPta5z5.js} +1 -1
- package/dist/cjs/{table.worker-DxRLPmU9.js → table.worker-BeE8kdSf.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/accordion/accordion.js +51 -13
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/data-table/table.js +1 -13
- package/dist/collection/components/details/details.js +9 -6
- package/dist/collection/components/field-validator/field-validator.js +4 -2
- package/dist/collection/components/footer/footer.css +7 -7
- package/dist/collection/components/footer/footer.js +2 -1
- package/dist/collection/components/global-nav/global-nav.js +23 -22
- package/dist/collection/components/global-search-results/global-search-results.js +4 -4
- package/dist/collection/components/grid/grid-item.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/hero/hero.js +4 -4
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/validate.js +1 -1
- package/dist/collection/components/img/img.js +3 -3
- package/dist/collection/components/in-page-nav/in-page-nav.js +1 -1
- package/dist/collection/components/increment/increment.js +1 -1
- package/dist/collection/components/intersection-observe/intersection-observe.js +1 -1
- package/dist/collection/components/masked-overflow/masked-overflow.js +3 -3
- package/dist/collection/components/menu-drawer/menu-drawer.js +2 -2
- package/dist/collection/components/more-less/more-less.js +2 -2
- package/dist/collection/components/rating/rating.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +2 -2
- package/dist/collection/components/select/select.js +7 -7
- 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/step-accordion/step-accordion.css +138 -0
- package/dist/collection/components/step-accordion/step-accordion.js +190 -0
- package/dist/collection/components/step-breadcrumb/step-breadcrumb.css +231 -0
- package/dist/collection/components/step-breadcrumb/step-breadcrumb.js +222 -0
- 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/tooltip/tooltip.js +2 -2
- package/dist/collection/utils/constructible-style.js +2 -2
- package/dist/collection/utils/performance.js +17 -0
- package/dist/components/accordion.js +80 -0
- package/dist/components/constructible-style.js +131 -0
- package/dist/components/details.js +6 -4
- package/dist/components/global-search-results.js +4 -4
- package/dist/components/grid.js +5 -129
- package/dist/components/icon.js +2 -2
- package/dist/components/img.js +3 -3
- package/dist/components/masked-overflow.js +3 -3
- package/dist/components/nano-accordion.js +1 -56
- package/dist/components/nano-data-table.js +30 -0
- package/dist/components/nano-field-validator.js +4 -2
- package/dist/components/nano-footer.js +2 -2
- package/dist/components/nano-global-nav.js +22 -21
- package/dist/components/nano-grid-item.js +1 -1
- package/dist/components/nano-hero.js +4 -4
- package/dist/components/nano-in-page-nav.js +1 -1
- package/dist/components/nano-increment.js +1 -1
- package/dist/components/nano-intersection-observe.js +1 -1
- package/dist/components/nano-menu-drawer.js +2 -2
- package/dist/components/nano-more-less.js +2 -2
- package/dist/components/nano-rating.js +4 -4
- package/dist/components/nano-slide.js +1 -1
- package/dist/components/nano-sortable.js +1 -1
- package/dist/components/nano-step-accordion.d.ts +11 -0
- package/dist/components/nano-step-accordion.js +141 -0
- package/dist/components/nano-step-breadcrumb.d.ts +11 -0
- package/dist/components/nano-step-breadcrumb.js +181 -0
- 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/resize-observe.js +2 -2
- package/dist/components/select.js +7 -7
- package/dist/components/slides.js +3 -3
- package/dist/components/sticker.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/constructible-style-B2_GfhhS.js +131 -0
- package/dist/esm/{fade-D4P3XGVa.js → fade-C0NluV0K.js} +1 -1
- package/dist/esm/{fullscreen-Cfl6LvH2.js → fullscreen-Ck_w6MCZ.js} +1 -1
- package/dist/esm/index-BM3Om9WE.js +28 -16
- package/dist/esm/{lazyload-CQYknGN2.js → lazyload-DddTyM-A.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-accordion.entry.js +28 -9
- package/dist/esm/nano-avatar_5.entry.js +11 -11
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/{nano-data-table-Bqk8ZUaL.js → nano-data-table-CWliPF7Y.js} +31 -1
- package/dist/esm/nano-data-table.entry.js +1 -1
- package/dist/esm/nano-details.entry.js +6 -4
- package/dist/esm/nano-field-validator.entry.js +4 -2
- package/dist/esm/nano-footer.entry.js +2 -2
- package/dist/esm/nano-global-nav.entry.js +22 -21
- package/dist/esm/nano-grid-item.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +7 -131
- package/dist/esm/nano-hero.entry.js +4 -4
- package/dist/esm/{nano-icon_3.entry.js → nano-icon-button_2.entry.js} +4 -321
- package/dist/esm/nano-icon.entry.js +324 -0
- package/dist/esm/nano-in-page-nav.entry.js +1 -1
- package/dist/esm/nano-increment.entry.js +1 -1
- package/dist/esm/nano-intersection-observe.entry.js +1 -1
- package/dist/esm/nano-masked-overflow.entry.js +3 -3
- package/dist/esm/nano-menu-drawer.entry.js +2 -2
- package/dist/esm/nano-more-less.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +4 -4
- package/dist/esm/nano-resize-observe.entry.js +2 -2
- package/dist/esm/nano-slide.entry.js +1 -1
- package/dist/esm/{nano-slides-DcJWApi6.js → nano-slides-BiPGpe5F.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-step-accordion.entry.js +99 -0
- package/dist/esm/nano-step-breadcrumb.entry.js +131 -0
- 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-kX7jiD3G.js → page-dots-WKehEjjM.js} +1 -1
- package/dist/esm/{table.worker-a52UkSRM.js → table.worker-DJks4i_l.js} +1 -1
- package/dist/nano-components/constructible-style-B2_GfhhS.js +4 -0
- package/dist/nano-components/{fade-D4P3XGVa.js → fade-C0NluV0K.js} +1 -1
- package/dist/nano-components/{fullscreen-Cfl6LvH2.js → fullscreen-Ck_w6MCZ.js} +1 -1
- package/dist/nano-components/{lazyload-CQYknGN2.js → lazyload-DddTyM-A.js} +1 -1
- package/dist/nano-components/nano-accordion.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-components.css +32 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-data-table-CWliPF7Y.js +4 -0
- package/dist/nano-components/nano-data-table.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-field-validator.entry.js +1 -1
- package/dist/nano-components/nano-footer.entry.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-grid-item.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/nano-hero.entry.js +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js +4 -0
- package/dist/nano-components/nano-icon.entry.js +4 -0
- package/dist/nano-components/nano-in-page-nav.entry.js +1 -1
- package/dist/nano-components/nano-increment.entry.js +1 -1
- package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
- package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-more-less.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-DcJWApi6.js → nano-slides-BiPGpe5F.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-step-accordion.entry.js +4 -0
- package/dist/nano-components/nano-step-breadcrumb.entry.js +4 -0
- 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-kX7jiD3G.js → page-dots-WKehEjjM.js} +1 -1
- package/dist/nano-components/{table.worker-a52UkSRM.js → table.worker-DJks4i_l.js} +1 -1
- package/dist/stencil.config.js +1 -0
- 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/accordion/accordion.d.ts +10 -4
- package/dist/types/components/details/details.d.ts +3 -2
- package/dist/types/components/footer/footer.d.ts +1 -0
- package/dist/types/components/global-nav/global-nav.d.ts +1 -1
- package/dist/types/components/step-accordion/step-accordion.d.ts +38 -0
- package/dist/types/components/step-breadcrumb/step-breadcrumb.d.ts +37 -0
- package/dist/types/components.d.ts +174 -4
- package/dist/types/utils/performance.d.ts +1 -0
- package/docs-json.json +352 -18
- package/docs-vscode.json +41 -2
- package/hydrate/index.js +404 -99
- package/hydrate/index.mjs +404 -99
- package/package.json +2 -2
- package/dist/nano-components/nano-data-table-Bqk8ZUaL.js +0 -4
- package/dist/nano-components/nano-icon_3.entry.js +0 -4
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → QrfEi4pt}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
package/hydrate/index.mjs
CHANGED
@@ -14041,7 +14041,9 @@ class FieldValidator {
|
|
14041
14041
|
this._valid = this.activeForm.checkValidity();
|
14042
14042
|
this.internalValidate = false;
|
14043
14043
|
}
|
14044
|
-
|
14044
|
+
setTimeout(() => {
|
14045
|
+
this.nanoPayloadChange.emit(this._store.state);
|
14046
|
+
}, 20);
|
14045
14047
|
};
|
14046
14048
|
/**
|
14047
14049
|
* Handles nano field value changes and passes to store
|
@@ -14134,7 +14136,7 @@ class FieldValidator {
|
|
14134
14136
|
this.activeForm.removeEventListener('invalid', this.handleFormInvalid, true);
|
14135
14137
|
}
|
14136
14138
|
render() {
|
14137
|
-
return (h(Host, { key: '
|
14139
|
+
return (h(Host, { key: 'bb60437392e410d528560b9a8a63c58b13f25495', class: "nano-field-validator" }, this.userForm && h("slot", { key: '7e9ff598dce291e80b53638453a8544398382cdd' }), !this.userForm && (h("form", { key: '68241c190268172ff742839ff57a5ac1ff66ca8e', ref: (f) => (this.activeForm = f) }, h("slot", { key: 'e89427bf668eb47217accdb2844d14cb4c3abd36' })))));
|
14138
14140
|
}
|
14139
14141
|
static get watchers() { return {
|
14140
14142
|
"userForm": ["userFormChange"],
|
@@ -14783,7 +14785,7 @@ class GlobalNav {
|
|
14783
14785
|
});
|
14784
14786
|
}
|
14785
14787
|
/**
|
14786
|
-
* MyAccount data automatically set via `myAccountUrl`.
|
14788
|
+
* MyAccount data is automatically set via `myAccountUrl`.
|
14787
14789
|
* Alternatively you can directly provide a JSON object which is useful for SSR
|
14788
14790
|
* (ref https://myaccount.nanoporetech.com/nav_bar_data.json)
|
14789
14791
|
*/
|
@@ -15092,7 +15094,7 @@ class GlobalNav {
|
|
15092
15094
|
};
|
15093
15095
|
handleSearchCloseEvent = (e) => {
|
15094
15096
|
if (e.target.classList.contains('gn__search-dropdown')) {
|
15095
|
-
this.searchBarShown = false;
|
15097
|
+
requestAnimationFrame(() => (this.searchBarShown = false));
|
15096
15098
|
}
|
15097
15099
|
};
|
15098
15100
|
handleSearchTermInputEvent = (e) => {
|
@@ -15193,33 +15195,34 @@ class GlobalNav {
|
|
15193
15195
|
}
|
15194
15196
|
render() {
|
15195
15197
|
const bpps = this.bpPartials;
|
15196
|
-
return (h(Host, { key: '
|
15198
|
+
return (h(Host, { key: '3964e8a3aab86d4252876816ca934c69e75da22b', class: {
|
15197
15199
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
15198
15200
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
15199
15201
|
'nano-global-nav': true,
|
15200
|
-
} }, h("div", { key: '
|
15202
|
+
} }, h("div", { key: 'fc2f728b3c4412913ffc2d18c07d057bf6e0bf87', class: {
|
15201
15203
|
gn: true,
|
15202
15204
|
'gn__search-open': this.searchBarShown,
|
15203
|
-
} }, h("nano-drawer", { key: '
|
15205
|
+
} }, h("nano-drawer", { key: '9a2c9109327ff9cd4eb2553df7e93571a29aa237', 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: '649c672f237ce2145eda6c8988744f6709835615', class: "gn__drawer-header", part: "overflow-header", slot: "label" }, "Main menu"), h("nav", { key: 'd002c07a9eb1cdcc4e188e5b146ce8a11257ab98', class: "gn__drawer-menu", part: "overflow-menu" }, this.breakpoint > bpps.mainMenu.breakpoint
|
15204
15206
|
? bpps.mainMenu.tpl()
|
15205
|
-
: '', h("slot", { key: '
|
15207
|
+
: '', h("slot", { key: 'b6bf65e8ed92636f1eba4b376ecb2fd617bcd67f', name: "overflow" }))), h("div", { key: 'b7a5e9d074b63f1841d3946d0166389c73161f25', class: "gn__menu-bar-wrapper" }, h("div", { key: '6b4d27a83ed4cbf3a62c0b924b08c887e415904a', class: "gn__menu-bar", part: "menu-bar", ref: (el) => (this.mainMenuBar = el) }, h("nav", { key: '64acb1e7f44c8931bd928e0c6be01eaf83cf47ff', 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: '49dc9cf7e3d75dee49d7a50defde7a260c33f867', class: "gn__overflow-button", iconName: "light/bars", label: "Open Menu", onClick: () => this.overflowMenu.show() })), h("slot", { key: 'ffb1b38b1e7682ab2fe26d44a0c9686306634197', name: "logo" }, h("a", { key: 'a8427d3042b4871027a08b5ea993c57659ab12c0', 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,
|
15206
15208
|
(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,
|
15207
|
-
(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: '
|
15208
|
-
|
15209
|
-
|
15210
|
-
|
15211
|
-
|
15212
|
-
|
15213
|
-
|
15214
|
-
|
15215
|
-
|
15216
|
-
|
15217
|
-
|
15218
|
-
|
15219
|
-
|
15220
|
-
|
15209
|
+
(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: '51d372b7aaa316b4d1ddc945bf0b3c5cdba579af', class: "gn__main-menu-links" }, bpps.mainMenu.tpl())), h("div", { key: '7af369c343889985cfda4d596576e6ad0913f34c', class: "gn__main-menu-actions" }, !this.myAccountData ||
|
15210
|
+
(!!this.searchIndices.length && (h("nano-dropdown", { key: 'f122c285ba5966efe5fdb5698ab759fa89eb9282', 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: '8fe139d799eeb34b1ff129808338ce8d6304d262', class: "gn__search-button", slot: "trigger", iconName: "light/magnifying-glass", label: "Search" }), h("form", { key: '95d27edc95e00c96ce9751e9501429e0062bcab6', ref: (form) => (this.searchForm = form), class: "gn__search-form", part: "search-form", onSubmit: this.onSearchSubmit }, this.searchIndices.length > 1 && (h("nano-select", { key: '109461b01a0cbd6ee5c0d0120d93802f8b4a2642', 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: '81d5c3531557500daebe167defe8b068909ffe9f', ref: (ele) => (this.searchInput = ele), part: "search-input", label: "Search Oxford Nanopore Technologies", placeholder: "Search Oxford Nanopore...", hideLabel: true, clearable: true, showInlineError: false, onNanoChange: (e) => {
|
15211
|
+
this.handleSearchTermChangeEvent(e.detail.value);
|
15212
|
+
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '4c3dc50a07877f4c10bbebe2b91d5cc2a6924aee', slot: "end", name: "light/magnifying-glass" }), h("nano-datalist", { key: 'ab9037d4d2c5dc5bca7cdb21ced7a50a5ea181b1', class: "gn__search-results", onNanoSelect: (e) => e.preventDefault(), dropDownConfig: { tetherTo: this.searchForm }, disableFilter: true }, this.searchLoading && (h("div", { key: '794cbd8cc6fd876e931457c93caad690be445400', slot: "no-result", class: "gn__search-loading" }, h("nano-spinner", { key: 'de620a03a8bba906542c10e46d1529f1b6a63327' }, "Searching..."))), this.noResultPartial(), !!this.autocompleteResults?.hits.length && [
|
15213
|
+
this.autocompleteResults.hits.map((hit, i) => (h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
15214
|
+
searchInsight.sendClick({
|
15215
|
+
index: this.activeIndex.index,
|
15216
|
+
eventName: 'Global nav quick search - search result clicked',
|
15217
|
+
queryID: this.autocompleteResults.queryID,
|
15218
|
+
objectIDs: [hit.objectID],
|
15219
|
+
positions: [i + 1],
|
15220
|
+
});
|
15221
|
+
} }, h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
15222
|
+
h("nano-option", { key: '35962d666c2f47c4952f1a06324db3db186a21e1', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
15223
|
+
])))))), h("div", { key: '930f8a1adb7566478ec7e9e96b08ecdefecfd4b8', class: "gn__cart" }, h("nano-icon-button", { key: '76f447b14988391240284c66d1e6e347c8873067', iconName: "light/cart-shopping", label: "View your cart", href: this.cartUrl }), !!this.cartCount && (h("nano-badge", { key: '389552b85553b498ce5b799dc182f73933dadc59', theme: "danger", strength: "2" }, this.cartCount > 9 ? '9+' : this.cartCount))), this.breakpoint <= bpps.contact.breakpoint
|
15221
15224
|
? bpps.contact.tpl()
|
15222
|
-
: '', 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("nano-global-search-results", { key: '
|
15225
|
+
: '', 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("nano-global-search-results", { key: '38b900fdb5dbcd1d24642c8862c320c473de6dc3', part: "site-search-results" }, h("div", { key: 'b5b824f4a54aa2989ca0a359f7c7b74ae5e6d777', class: "gn__site", part: "site-wrapper" }, h("slot", { key: '02dd2c08252ba31c972fffe9c956e7ead76f61ef' }))))));
|
15223
15226
|
}
|
15224
15227
|
static get assetsDirs() { return ["assets"]; }
|
15225
15228
|
static get watchers() { return {
|
@@ -15534,12 +15537,12 @@ class GlobalSearchResults {
|
|
15534
15537
|
this.ro.observe(this.el);
|
15535
15538
|
}
|
15536
15539
|
render() {
|
15537
|
-
return (h(Host, { key: '
|
15540
|
+
return (h(Host, { key: 'c88b1cd5b5fcf63cc3961cc3e190fe4432349b03', class: {
|
15538
15541
|
small: this.currentWidth < 780,
|
15539
15542
|
'nano-global-search-results': true,
|
15540
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '
|
15543
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: 'e27f4efbd7405ca852f9e6ea96d3a53b4ded8041', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
|
15541
15544
|
// @ts-expect-error this bubbles from nano-algolia-filter
|
15542
|
-
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '
|
15545
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: 'a614cc2ad29144b19555cf2106b8a38982817918', slot: "template" },
|
15543
15546
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
15544
15547
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
15545
15548
|
<script type="text/template" slot="start-template">
|
@@ -15917,7 +15920,7 @@ class GlobalSearchResults {
|
|
15917
15920
|
</div>
|
15918
15921
|
</div>
|
15919
15922
|
{{ /if }}
|
15920
|
-
</div>`), h("div", { key: '
|
15923
|
+
</div>`), h("div", { key: 'c759117717909ec2ca8973bd4de0175e06fd73fa', slot: "output" }), h("slot", { key: '45d84a723310889c1acb75b2563839e6bd164296' }))));
|
15921
15924
|
}
|
15922
15925
|
static get watchers() { return {
|
15923
15926
|
"algoliaEle": ["handleAlgoliaCredsChange", "handleAlgoliaIndexChange", "handleAlgoliaEleChange"],
|
@@ -15974,10 +15977,9 @@ function ConstructibleStyle(opts = {}) {
|
|
15974
15977
|
if (!opts.cacheKeyProperty) {
|
15975
15978
|
opts.cacheKeyProperty = propertyKey;
|
15976
15979
|
}
|
15977
|
-
const {
|
15978
|
-
if (!componentWillLoad)
|
15979
|
-
console.warn(`ConstructibleStyle requires you to have a \`componentWillLoad\` lifecycle method in \`${target.constructor.name}\`. Failure to add this function may cause ConstructibleStyle to fail due to StencilJS build optimizations.`);
|
15980
|
+
const { render} = target;
|
15980
15981
|
{
|
15982
|
+
// adds a style element to the component
|
15981
15983
|
target.render = function () {
|
15982
15984
|
const cssText = typeof this[propertyKey] === 'function'
|
15983
15985
|
? this[propertyKey]()
|
@@ -16032,7 +16034,7 @@ function getHostChildren(node) {
|
|
16032
16034
|
|
16033
16035
|
const gridCss = ":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{--grid-col-gap:var(--nano-spacing-md);--grid-row-gap:var(--nano-spacing-md);--grid-align-items:start;--grid-justify-items:normal;--current-grid-size:\"grid size: s\";container-type:inline-size;display:block}:host .grid{display:grid;gap:var(--grid-row-gap) var(--grid-col-gap);block-size:inherit;min-block-size:inherit;place-items:var(--grid-align-items) var(--grid-justify-items)}:host([show-helper]:not([show-helper=false])){position:relative}:host([show-helper]:not([show-helper=false])) .grid--helper{position:absolute;inset:0;pointer-events:none;display:grid !important;overflow:hidden}:host([show-helper]:not([show-helper=false])) .grid--helper::before{content:var(--current-grid-size);font-size:30px;position:absolute;inline-size:100%;inset-inline-start:0;text-align:center;inset-block-start:50%;transform:translateY(-50%);color:rgba(0, 0, 0, 0.2);text-transform:uppercase;z-index:99;pointer-events:none}:host([show-helper]:not([show-helper=false])) .grid__helper-item{background:hsla(204, 80%, 72%, 0.25);block-size:100vh;inline-size:100%}";
|
16034
16036
|
|
16035
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
16037
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
16036
16038
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
16037
16039
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
16038
16040
|
r = Reflect.decorate(decorators, target, key, desc);
|
@@ -16042,7 +16044,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
16042
16044
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
16043
16045
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
16044
16046
|
};
|
16045
|
-
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
16047
|
+
var __metadata$1 = (undefined && undefined.__metadata) || function (k, v) {
|
16046
16048
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
16047
16049
|
return Reflect.metadata(k, v);
|
16048
16050
|
};
|
@@ -16206,7 +16208,7 @@ class Grid {
|
|
16206
16208
|
this.constructSizeArray();
|
16207
16209
|
}
|
16208
16210
|
render() {
|
16209
|
-
return (h(Host, { key: '
|
16211
|
+
return (h(Host, { key: '56ae0bda8aedac96841dd8cf308117ef1aaa9824', class: "nano-grid" }, h("div", { key: '6fffc201e4261b8f6c458bd044b31fe12cd9045e', part: "grid", class: "grid", "cache-key": this.cacheKey }, h("slot", { key: 'a6d7473ba9a8ffd21c4df95c2028e67026ffd1a5' })), this.showHelper && (h("div", { key: '275145f83283b504171fdc973741a1398cca6317', class: "grid grid--helper", part: "helper", "cache-key": this.cacheKey }, [...Array(24)].map(() => (h("div", { class: "grid__helper-item" })))))));
|
16210
16212
|
}
|
16211
16213
|
static get watchers() { return {
|
16212
16214
|
"sTpl": ["constructSizeArray"],
|
@@ -16252,9 +16254,9 @@ class Grid {
|
|
16252
16254
|
"$attrsToReflect$": [["sSize", "s-size"], ["mSize", "m-size"], ["lSize", "l-size"], ["xlSize", "xl-size"], ["sCols", "s-cols"], ["mCols", "m-cols"], ["lCols", "l-cols"], ["xlCols", "xl-cols"], ["xxlCols", "xxl-cols"], ["showHelper", "show-helper"]]
|
16253
16255
|
}; }
|
16254
16256
|
}
|
16255
|
-
__decorate([
|
16257
|
+
__decorate$1([
|
16256
16258
|
ConstructibleStyle({ cacheKeyProperty: 'cacheKey' }),
|
16257
|
-
__metadata("design:type", Object)
|
16259
|
+
__metadata$1("design:type", Object)
|
16258
16260
|
], Grid.prototype, "styles", void 0);
|
16259
16261
|
|
16260
16262
|
/**
|
@@ -16275,7 +16277,7 @@ class GridItem {
|
|
16275
16277
|
* m-row-start-2
|
16276
16278
|
*/
|
16277
16279
|
render() {
|
16278
|
-
return hAsync("slot", { key: '
|
16280
|
+
return hAsync("slot", { key: '9a50a1034bd70b2d0c461f01acdb6b0484e492d3' });
|
16279
16281
|
}
|
16280
16282
|
static get style() { return ":host { display: inline-block; }"; }
|
16281
16283
|
static get cmpMeta() { return {
|
@@ -16393,7 +16395,7 @@ class Hero {
|
|
16393
16395
|
};
|
16394
16396
|
render() {
|
16395
16397
|
const rtl = this.host.dir === 'rtl' || this.host.ownerDocument.dir === 'rtl';
|
16396
|
-
return (h(Host, { key: '
|
16398
|
+
return (h(Host, { key: '8270c80717ac41cc4cd5bedb577b131fe01ac967', class: "nano-hero" }, h("div", { key: '8b04bda451af03b648beb5576cd0badd48364aab', class: {
|
16397
16399
|
hero: true,
|
16398
16400
|
'hero--light': this.theme === 'light',
|
16399
16401
|
'hero--secondary': this.hasSecondaryContent,
|
@@ -16404,9 +16406,9 @@ class Hero {
|
|
16404
16406
|
'hero--hasbg': this.hasBg,
|
16405
16407
|
'hero--backbtn': this.hasBackBtn,
|
16406
16408
|
'hero--sub': this.level === 'sub',
|
16407
|
-
} }, h("div", { key: '
|
16408
|
-
h("div", { key: '
|
16409
|
-
h(this.HeroContent, { key: '
|
16409
|
+
} }, h("div", { key: 'be91fa5b23ceddaf411b269eb6635b886c83174d', class: "hero__bg-wrap" }, !!this.imgSrc && (h("nano-img", { key: '961b0a21220f0305cc0f4a4af0c6cd5e99446c41', class: "hero__img", lazy: false, background: true, srcSet: this.imgSrcSet, src: this.imgSrc }, h(this.HeroContent, { key: 'b272423beee722ae9d4adc0313d2d9ca4e6e3cd4' }))), !this.imgSrc && [
|
16410
|
+
h("div", { key: 'f10056208ed97f1d4a051572261c874e5dae6e96', class: "hero__bg-slot" }, h("slot", { key: '225c3a0b114b16e8edb063d6979683b343e85419', name: "background" })),
|
16411
|
+
h(this.HeroContent, { key: '375442509ce1954ca651d56d49488b0da464e577' }),
|
16410
16412
|
]))));
|
16411
16413
|
}
|
16412
16414
|
static get watchers() { return {
|
@@ -16601,7 +16603,7 @@ class Icon {
|
|
16601
16603
|
(this.name.indexOf('arrow') > -1 ||
|
16602
16604
|
this.name.indexOf('chevron') > -1) &&
|
16603
16605
|
this.isRtl());
|
16604
|
-
return (h(Host, { key: '
|
16606
|
+
return (h(Host, { key: '0bc1c17119f0e49b9798a1b61a4a768f6406129f', class: {
|
16605
16607
|
loading: this.isLoading,
|
16606
16608
|
'flip-rtl': !!flipRtl,
|
16607
16609
|
'nano-icon': true,
|
@@ -16903,16 +16905,16 @@ class Img {
|
|
16903
16905
|
const bgStyle = this.loadSrc
|
16904
16906
|
? { 'background-image': `url(${this.loadSrc})` }
|
16905
16907
|
: {};
|
16906
|
-
return (h(Host, { key: '
|
16908
|
+
return (h(Host, { key: 'f8774fc9ad6e94727378337c2f405a068a7c88fb', class: "nano-img" }, h("div", { key: '15ae3c8ea944c8f0eab8616194f44fc1033e8fe2', class: "img" }, h("div", { key: 'ec3f433ded23dcb7fc57e53b0ecaba789ba492e0', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (h("div", { key: '8f4e8c9d595a31b477b0ae3f9e135f6b5c3f0e69', class: {
|
16907
16909
|
loaded: this.hasLoaded,
|
16908
16910
|
img__bg: true,
|
16909
16911
|
'no-height': this.autoHeight === 'image',
|
16910
|
-
}, style: bgStyle }, h("slot", { key: '
|
16912
|
+
}, style: bgStyle }, h("slot", { key: '29bab2a5c86b3dfe18db8936af77674c44d743d0' }))), h("img", { key: 'e6731b48ed137d97aa98e64dc55488d56724f672', class: {
|
16911
16913
|
img__image: true,
|
16912
16914
|
loaded: this.hasLoaded,
|
16913
16915
|
hide: this.background,
|
16914
16916
|
'no-height': this.autoHeight === 'content',
|
16915
|
-
}, decoding: "async", src: this.src , loading: this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '
|
16917
|
+
}, decoding: "async", src: this.src , loading: this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '0f1ce7d8b82adc19bfa459ff2adae708a4263c6e', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
16916
16918
|
}
|
16917
16919
|
static get watchers() { return {
|
16918
16920
|
"_src": ["_srcChanged"],
|
@@ -17842,7 +17844,7 @@ class IntersectionObserve {
|
|
17842
17844
|
this.removeIO();
|
17843
17845
|
}
|
17844
17846
|
render() {
|
17845
|
-
return (h(Host, { key: '
|
17847
|
+
return (h(Host, { key: 'aadf019427b2d2c3020fd6e667d5932fd14aea45', class: "nano-intersection-observe" }, h("slot", { key: 'eae74417c304de7b8e377229b603d88468a5c7f5', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
|
17846
17848
|
}
|
17847
17849
|
static get watchers() { return {
|
17848
17850
|
"root": ["handleRootChange"],
|
@@ -18187,7 +18189,7 @@ class MaskedOverflow {
|
|
18187
18189
|
}
|
18188
18190
|
}
|
18189
18191
|
render() {
|
18190
|
-
return (h(Host, { key: '
|
18192
|
+
return (h(Host, { key: '49485c7d6a96e8dd122f862abd2bd2f95b2343e7', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: 'acd0541992b9dda0c1ab6414e67cd8a71f429918', part: "base", class: {
|
18191
18193
|
onav: true,
|
18192
18194
|
[`onav--${this.orientation}`]: true,
|
18193
18195
|
'onav--has-scroll-controls': this.hasScrollControls,
|
@@ -18196,12 +18198,12 @@ class MaskedOverflow {
|
|
18196
18198
|
'onav--no-transitions': this.instantReCalc,
|
18197
18199
|
'onnav--has-indicator': this.showIndicator,
|
18198
18200
|
'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
|
18199
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '
|
18201
|
+
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'ba25b3551a2b6be4906d538cbaabf0ba8cb859f6', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: '72ca6ae1ef0300fc91a95d347702bac94fec97ac', part: "scroll-button scroll-button-prev", class: {
|
18200
18202
|
'onav__scroll-button': true,
|
18201
18203
|
'onav__scroll-button--start': true,
|
18202
18204
|
}, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
18203
18205
|
? 'light/chevron-left'
|
18204
|
-
: 'light/chevron-up' })), h("div", { key: '
|
18206
|
+
: 'light/chevron-up' })), h("div", { key: '34893f5e055e8b44a78cb0706e974ee45261bdb8', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: '19ea27abc4878c5ab034e8ac0ee7085f19607a92', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: '6cfdb83598367d649e6705fe709e89d8a8b505a6', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '43f3164d6c962f951ac672f79d48943c44e0514e', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: 'eaa09e8faa9343fca660d1f2e0a4b5366b7c6668', part: "scroll-button scroll-button-next", class: {
|
18205
18207
|
'onav__scroll-button': true,
|
18206
18208
|
'onav__scroll-button--end': true,
|
18207
18209
|
}, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
@@ -18642,14 +18644,14 @@ class MenuDrawer {
|
|
18642
18644
|
disconnectedCallback() {
|
18643
18645
|
}
|
18644
18646
|
render() {
|
18645
|
-
return (h(Host, { key: '
|
18647
|
+
return (h(Host, { key: '4ad542c84da0045168bcee1df744cb94c2a1196e', class: {
|
18646
18648
|
open: this.open,
|
18647
18649
|
'secondary-open': this.secondaryOpen,
|
18648
18650
|
hide: this.hide,
|
18649
18651
|
loading: this.isLoading,
|
18650
18652
|
'has-global-nav': !!this.globalNav,
|
18651
18653
|
'nano-menu-drawer': true,
|
18652
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: '
|
18654
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: 'b00cad9c3696b9c373e8d98fcd1f86c2c7b23aa2', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'a7746088c4458802d386f1c3d092e0a386fe4bd6', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, h("nav", { key: '993f550de47fc9410aa04bf98d9d076a6290637c', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: '3da3d0268df95d3080938e33f6e80d659dce1525', class: "head" }, h("button", { key: 'af104da5e67aaf06194317086daa6a5d4c008b6a', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: 'b6e85eb6690440da7ccd893ccd9feb082d7a4552', name: "light/arrow-right-to-line" }), h("span", { key: '443c2afa504892d6de2a75a126e09c484540c677', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: '275ab007d04f3bde8269f0b4927aec81d1e47ccd' }), this.slotCtrl.has('foot') && (h("div", { key: 'c0eb043b9447264d48ca65d6e51c986c05ba10eb', class: "foot" }, h("slot", { key: 'bee82590231f9cfffc15c22ba0fafb313298e232', name: "foot" }))))))));
|
18653
18655
|
}
|
18654
18656
|
static get watchers() { return {
|
18655
18657
|
"open": ["openChange"]
|
@@ -18685,38 +18687,57 @@ class NanoAccordion {
|
|
18685
18687
|
registerInstance(this, hostRef);
|
18686
18688
|
this.nanoToggle = createEvent(this, "nanoToggle", 7);
|
18687
18689
|
}
|
18688
|
-
|
18690
|
+
indexOpened;
|
18691
|
+
elementOpened;
|
18689
18692
|
get el() { return getElement(this); }
|
18693
|
+
/** Force one details element to always be open */
|
18694
|
+
alwaysOpen = false;
|
18690
18695
|
/** Fires when accordion elements toggle */
|
18691
18696
|
nanoToggle;
|
18692
18697
|
onToggleHandler(event) {
|
18693
18698
|
if (event.target?.tagName !== 'NANO-DETAILS')
|
18694
18699
|
return;
|
18695
18700
|
event.stopPropagation();
|
18696
|
-
const items = getDirectChildren(this.el, transformTag('nano-details'))
|
18697
|
-
this.el.querySelectorAll(transformTag('nano-details'));
|
18701
|
+
const items = getDirectChildren(this.el, transformTag('nano-details'));
|
18698
18702
|
items.forEach((item, i) => {
|
18699
18703
|
if (item !== event.target)
|
18700
18704
|
item.open = false;
|
18701
|
-
else
|
18702
|
-
this.
|
18705
|
+
else if (item === event.target) {
|
18706
|
+
this.indexOpened = i;
|
18707
|
+
}
|
18703
18708
|
});
|
18704
|
-
this.nanoToggle.emit(event.target);
|
18709
|
+
this.nanoToggle.emit({ element: event.target, index: this.indexOpened });
|
18705
18710
|
}
|
18706
18711
|
onClosedHandler(event) {
|
18707
18712
|
event.stopPropagation();
|
18708
|
-
this.
|
18709
|
-
|
18713
|
+
if (this.alwaysOpen) {
|
18714
|
+
let foundOpen;
|
18715
|
+
const items = getDirectChildren(this.el, transformTag('nano-details'));
|
18716
|
+
items.forEach((item) => {
|
18717
|
+
if (item !== event.target && item.open) {
|
18718
|
+
foundOpen = true;
|
18719
|
+
}
|
18720
|
+
});
|
18721
|
+
if (!foundOpen) {
|
18722
|
+
event.preventDefault();
|
18723
|
+
return;
|
18724
|
+
}
|
18725
|
+
}
|
18726
|
+
if (this.elementOpened === event.target) {
|
18727
|
+
this.elementOpened = null;
|
18728
|
+
this.indexOpened = null;
|
18729
|
+
this.nanoToggle.emit();
|
18730
|
+
}
|
18710
18731
|
}
|
18711
18732
|
render() {
|
18712
|
-
return h("slot", { key: '
|
18733
|
+
return h("slot", { key: 'a16b340b9312672847ee022b2beb6767fc0dfb86' });
|
18713
18734
|
}
|
18714
18735
|
static get style() { return accordionCss; }
|
18715
18736
|
static get cmpMeta() { return {
|
18716
18737
|
"$flags$": 265,
|
18717
18738
|
"$tagName$": "nano-accordion",
|
18718
18739
|
"$members$": {
|
18719
|
-
"
|
18740
|
+
"alwaysOpen": [4, "always-open"]
|
18720
18741
|
},
|
18721
18742
|
"$listeners$": [[0, "nanoOpen", "onToggleHandler"], [0, "nanoClose", "onClosedHandler"]],
|
18722
18743
|
"$lazyBundleId$": "-",
|
@@ -19194,6 +19215,20 @@ function cyrb53(str, seed = 0) {
|
|
19194
19215
|
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
19195
19216
|
}
|
19196
19217
|
|
19218
|
+
function perMark(name, end = false) {
|
19219
|
+
if (!performance || false)
|
19220
|
+
return;
|
19221
|
+
if (end) {
|
19222
|
+
performance?.mark('end' + name);
|
19223
|
+
performance?.measure(name, 'start' + name, 'end' + name);
|
19224
|
+
const entries = performance?.getEntriesByName(name);
|
19225
|
+
console.info(entries[entries.length ? entries.length - 1 : 0]);
|
19226
|
+
}
|
19227
|
+
else {
|
19228
|
+
performance?.mark('start' + name);
|
19229
|
+
}
|
19230
|
+
}
|
19231
|
+
|
19197
19232
|
const CSSNAMESPACE = 'nano-tbl';
|
19198
19233
|
|
19199
19234
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
@@ -21364,6 +21399,7 @@ class NanoDataTable {
|
|
21364
21399
|
const sortEvent = this.nanoTblBeforeSort.emit({ column: column, order });
|
21365
21400
|
if (sortEvent.defaultPrevented)
|
21366
21401
|
return;
|
21402
|
+
perMark('sort');
|
21367
21403
|
this.currentSort = order + ':' + column;
|
21368
21404
|
// doesn't make sense to leave user in place for a sort
|
21369
21405
|
this.scrollToTop(element);
|
@@ -21413,17 +21449,20 @@ class NanoDataTable {
|
|
21413
21449
|
return { ...c, order: null };
|
21414
21450
|
});
|
21415
21451
|
this.nanoTblAfterSort.emit({ column: column, order });
|
21452
|
+
perMark('sort', true);
|
21416
21453
|
}
|
21417
21454
|
async searchStart() {
|
21418
21455
|
this._loading = true;
|
21419
21456
|
const sortEvent = this.nanoTblBeforeSearch.emit({ term: this.searchTerm });
|
21420
21457
|
if (sortEvent.defaultPrevented)
|
21421
21458
|
return;
|
21459
|
+
perMark('search');
|
21422
21460
|
// doesn't make sense to leave user in place for a search
|
21423
21461
|
this.scrollToTop();
|
21424
21462
|
try {
|
21425
21463
|
await storeSearch(this.host, this.searchTerm);
|
21426
21464
|
this.nanoTblAfterSearch.emit({ term: this.searchTerm });
|
21465
|
+
perMark('search', true);
|
21427
21466
|
}
|
21428
21467
|
catch (e) {
|
21429
21468
|
console.warn('search failed', e);
|
@@ -21450,6 +21489,7 @@ class NanoDataTable {
|
|
21450
21489
|
const sortEvent = this.nanoTblBeforeFilter.emit({ filters: this.filters });
|
21451
21490
|
if (sortEvent.defaultPrevented)
|
21452
21491
|
return;
|
21492
|
+
perMark('filter');
|
21453
21493
|
this.currentFilters = JSON.stringify(this.filters);
|
21454
21494
|
// doesn't make sense to leave user in place for a search
|
21455
21495
|
this.scrollToTop();
|
@@ -21504,6 +21544,7 @@ class NanoDataTable {
|
|
21504
21544
|
});
|
21505
21545
|
await storeFilter(this.host, this.filters);
|
21506
21546
|
this.nanoTblAfterFilter.emit({ filters: this.filters });
|
21547
|
+
perMark('filter', true);
|
21507
21548
|
}
|
21508
21549
|
/** Scrolls to the top immediately - used whilst sorting / filtering */
|
21509
21550
|
scrollToTop(element) {
|
@@ -21539,6 +21580,7 @@ class NanoDataTable {
|
|
21539
21580
|
setInitialBlockDimension() {
|
21540
21581
|
if (!this.blockElements?.length)
|
21541
21582
|
return;
|
21583
|
+
perMark('blockDims');
|
21542
21584
|
const testForDimensions = async () => {
|
21543
21585
|
await this.setMeasureElement();
|
21544
21586
|
if (this.unitHeight)
|
@@ -21564,6 +21606,8 @@ class NanoDataTable {
|
|
21564
21606
|
});
|
21565
21607
|
// we're all finished.
|
21566
21608
|
dimensionsReady.then(() => {
|
21609
|
+
perMark('blockDims', true);
|
21610
|
+
perMark('init', true);
|
21567
21611
|
requestAnimationFrame(() => (this.isReady = true));
|
21568
21612
|
});
|
21569
21613
|
}
|
@@ -21598,6 +21642,7 @@ class NanoDataTable {
|
|
21598
21642
|
this.blocks = [];
|
21599
21643
|
return;
|
21600
21644
|
}
|
21645
|
+
perMark('setBlocks');
|
21601
21646
|
// this.ignoreIO = true;
|
21602
21647
|
let i = 1;
|
21603
21648
|
const l = this.virtualTotalItems > dRows.length
|
@@ -21620,6 +21665,7 @@ class NanoDataTable {
|
|
21620
21665
|
blocks.push({ rows, __uuid: cyrb53(rows.map((b) => b.__uuid).join()) });
|
21621
21666
|
}
|
21622
21667
|
this.blocks = blocks;
|
21668
|
+
perMark('setBlocks', true);
|
21623
21669
|
}
|
21624
21670
|
/**
|
21625
21671
|
* Returns a block render height.
|
@@ -21669,6 +21715,7 @@ class NanoDataTable {
|
|
21669
21715
|
*/
|
21670
21716
|
scrollHandler = () => {
|
21671
21717
|
let scrollPos = 0;
|
21718
|
+
perMark('scrollHandler');
|
21672
21719
|
// don't listen if this table isn't in the viewport
|
21673
21720
|
if (!this.store?.general.state.isActive || !this.rows)
|
21674
21721
|
return;
|
@@ -21706,6 +21753,7 @@ class NanoDataTable {
|
|
21706
21753
|
}
|
21707
21754
|
blockIndex++;
|
21708
21755
|
}
|
21756
|
+
perMark('scrollHandler', true);
|
21709
21757
|
});
|
21710
21758
|
};
|
21711
21759
|
/** Process slotted content */
|
@@ -21734,6 +21782,7 @@ class NanoDataTable {
|
|
21734
21782
|
}
|
21735
21783
|
// Component lifecycle
|
21736
21784
|
async componentWillLoad() {
|
21785
|
+
perMark('init');
|
21737
21786
|
// setup stores
|
21738
21787
|
this.store = await generateStore(this.host, this.columns, this.scrollParent, this.isReady);
|
21739
21788
|
this.handleRowsChange();
|
@@ -21775,9 +21824,11 @@ class NanoDataTable {
|
|
21775
21824
|
return false;
|
21776
21825
|
}
|
21777
21826
|
componentWillRender() {
|
21827
|
+
perMark('render');
|
21778
21828
|
}
|
21779
21829
|
componentDidRender() {
|
21780
21830
|
this.setMeasureElement().then(() => this.setBlockHeight());
|
21831
|
+
perMark('render', true);
|
21781
21832
|
}
|
21782
21833
|
disconnectedCallback() {
|
21783
21834
|
if (!this.activeWatcherIo)
|
@@ -22293,8 +22344,9 @@ const detailsCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{di
|
|
22293
22344
|
* @part icon - the wrapper around both start and end icons
|
22294
22345
|
* @part icon--start - the icon wrapper at the start of the ui control
|
22295
22346
|
* @part icon--end - the icon wrapper at the end of the ui control
|
22296
|
-
* @part body - the
|
22297
|
-
* @part content - the
|
22347
|
+
* @part body - the main body block
|
22348
|
+
* @part content-wrapper - the wrapper around the content
|
22349
|
+
* @part content - the main content
|
22298
22350
|
*/
|
22299
22351
|
class NanoDetails {
|
22300
22352
|
constructor(hostRef) {
|
@@ -22434,13 +22486,13 @@ class NanoDetails {
|
|
22434
22486
|
}
|
22435
22487
|
}
|
22436
22488
|
render() {
|
22437
|
-
return (h(Host, { key: '
|
22489
|
+
return (h(Host, { key: '1cbedc078a3390a3ad82b99ac0f37e8ea0f8d480', class: "nano-details" }, h("details", { key: '22659218ba7d1ec936523ff33c7ed2a1efb2af74', part: "base", ref: (d) => (this.detailsEl = d), class: {
|
22438
22490
|
details: true,
|
22439
22491
|
disabled: this.disabled,
|
22440
|
-
} }, h("summary", { key: '
|
22492
|
+
} }, h("summary", { key: '3a7cd64e7d8e2b5235b7c0f7d58c434cb2a52469', part: "header", "aria-controls": "content", "aria-expanded": this.open ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', tabindex: this.disabled ? '-1' : '0', id: "header", role: "button", class: "header", ref: (s) => (this.headerEl = s), onKeyDown: this.onKeyDown, onClick: this.onMouseDown }, this.slotCtrl.has('icon-start') && (h("span", { key: '4a8de08dca34823e162019e2d4dddef2ed2c123d', part: "icon icon--start", class: "icon icon--start" }, h("slot", { key: 'cf6ea31f1685afa4bde64a6cbdef43cb0d0a053a', name: "icon-start" }))), h("div", { key: '0b11c544cfbb5852dfeae66b482154f1780a2569', part: "label", class: "label" }, this.label ? this.label : h("slot", { name: "label" })), h("span", { key: '5470af7891318c513870c473a8ad1f501174f51b', part: "icon icon--end", class: "icon icon--end" }, this.open ? (h("slot", { name: "icon-collapse" })) : (h("slot", { name: "icon-expand" })), h("slot", { key: '45960716eeec5d5ad08b63fd536608fcd33ab8f2', name: "icon-end" }, !this.slotCtrl.has('icon-start') &&
|
22441
22493
|
!this.slotCtrl.has('icon-end') &&
|
22442
22494
|
!this.slotCtrl.has('icon-expand') &&
|
22443
|
-
!this.slotCtrl.has('icon-collapse') && (h("nano-icon", { key: '
|
22495
|
+
!this.slotCtrl.has('icon-collapse') && (h("nano-icon", { key: '5357b61cb197dc4a1ceccf415a34defdfeb6b290', class: "default-icon", name: "light/chevron-down" }))))), h("div", { key: 'aa7f850c8415c2cd40fd7a965fba8eb98fca62b5', part: "body", class: "body", ref: (div) => (this.bodyEl = div), role: "region", "aria-labelledby": "header" }, h("div", { key: 'e98e6a68e4c15525b4377d4229fb4a1855650732', part: "content-wrapper", class: "content-wrapper" }, h("div", { key: '6710e302f7e2a5987ccd6703ea3c6cc0bf705d23', part: "content", class: "content", id: "content" }, h("slot", { key: '891525e66383979e621787f766bcfbcea78a9630' })))))));
|
22444
22496
|
}
|
22445
22497
|
static get watchers() { return {
|
22446
22498
|
"open": ["toggleClick"]
|
@@ -22492,7 +22544,7 @@ class NanoFeatureBox {
|
|
22492
22544
|
}; }
|
22493
22545
|
}
|
22494
22546
|
|
22495
|
-
const footerCss = ":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 --col-gap: var(--nano-spacing-l1-default);\n --icon-gap-md: var(--nano-spacing-md);\n --icon-gap-sm: var(--nano-spacing-sm);\n --vertical-padding: var(--nano-spacing-l1-default);\n --horizontal-padding: 0;\n --header-margin: 0 0 var(--nano-spacing-l1-default) 0;\n display: block;\n}\n:host .footer {\n container-type: inline-size;\n container-name: footer-container;\n display: flex;\n flex-direction: column;\n}\n@container footer-container (max-width: 768px) {\n :host .top,\n :host .middle,\n :host .bottom {\n --horizontal-padding: var(--nano-spacing-md);\n --col-gap: var(--nano-spacing-l);\n --vertical-padding: var(--nano-spacing-md);\n }\n :host .top-start,\n :host .top-center,\n :host .top-end {\n --header-margin: 0 0 var(--nano-spacing-md) 0;\n }\n}\n@container footer-container (max-width: 1023px) {\n :host .top,\n :host .middle,\n :host .bottom {\n --horizontal-padding: var(--nano-spacing-l);\n }\n}\n@container footer-container (max-width: 1346px) {\n :host .top,\n :host .middle,\n :host .bottom {\n --horizontal-padding: var(--nano-spacing-l1-default);\n }\n}\n:host .upper {\n border-block-start: 1px solid var(--nano-color-neutral-200);\n}\n:host .lower {\n background-color: var(--nano-color-basic-black);\n color: var(--nano-color-basic-white);\n}\n:host .top,\n:host .middle,\n:host .bottom {\n display: grid;\n gap: var(--col-gap);\n margin: 0 auto;\n max-inline-size: 1266px;\n}\n:host .top,\n:host .middle {\n grid-template-columns: repeat(3, 1fr);\n padding: var(--vertical-padding) var(--horizontal-padding);\n}\n:host .bottom {\n grid-template-columns: repeat(2, 1fr);\n padding-inline: var(--horizontal-padding);\n padding-block-end: var(--vertical-padding);\n}\n:host .middle-
|
22547
|
+
const footerCss = ":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 --col-gap: var(--nano-spacing-l1-default);\n --icon-gap-md: var(--nano-spacing-md);\n --icon-gap-sm: var(--nano-spacing-sm);\n --vertical-padding: var(--nano-spacing-l1-default);\n --horizontal-padding: 0;\n --header-margin: 0 0 var(--nano-spacing-l1-default) 0;\n display: block;\n}\n:host .footer {\n container-type: inline-size;\n container-name: footer-container;\n display: flex;\n flex-direction: column;\n}\n@container footer-container (max-width: 768px) {\n :host .top,\n :host .middle,\n :host .bottom {\n --horizontal-padding: var(--nano-spacing-md);\n --col-gap: var(--nano-spacing-l);\n --vertical-padding: var(--nano-spacing-md);\n }\n :host .top-start,\n :host .top-center,\n :host .top-end {\n --header-margin: 0 0 var(--nano-spacing-md) 0;\n }\n}\n@container footer-container (max-width: 1023px) {\n :host .top,\n :host .middle,\n :host .bottom {\n --horizontal-padding: var(--nano-spacing-l);\n }\n}\n@container footer-container (max-width: 1346px) {\n :host .top,\n :host .middle,\n :host .bottom {\n --horizontal-padding: var(--nano-spacing-l1-default);\n }\n}\n:host .upper {\n border-block-start: 1px solid var(--nano-color-neutral-200);\n}\n:host .lower {\n background-color: var(--nano-color-basic-black);\n color: var(--nano-color-basic-white);\n}\n:host .top,\n:host .middle,\n:host .bottom {\n display: grid;\n gap: var(--col-gap);\n margin: 0 auto;\n max-inline-size: 1266px;\n}\n:host .top,\n:host .middle {\n grid-template-columns: repeat(3, 1fr);\n padding: var(--vertical-padding) var(--horizontal-padding);\n}\n:host .bottom {\n grid-template-columns: repeat(2, 1fr);\n padding-inline: var(--horizontal-padding);\n padding-block-end: var(--vertical-padding);\n}\n:host .middle-centre a {\n color: inherit;\n}\n:host .middle-centre a:hover {\n color: var(--nano-color-primary-1000);\n}\n:host .middle-centre a:focus-visible {\n outline: var(--nano-focus-ring);\n outline-offset: var(--nano-focus-ring-offset);\n}\n:host .top-start,\n:host .top-center,\n:host .top-end {\n flex-direction: column;\n}\n:host .middle-start,\n:host .middle-centre,\n:host .middle-end {\n align-items: center;\n}\n:host .middle-start {\n display: flex;\n justify-content: flex-start;\n}\n:host .middle-centre {\n display: flex;\n justify-content: center;\n gap: var(--icon-gap-md);\n flex-wrap: nowrap;\n}\n:host .middle-end {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 20rem));\n gap: var(--icon-gap-sm);\n justify-content: end;\n}\n:host [slot=middle-end] {\n inline-size: 100%;\n}\n:host .bottom-start p,\n:host .bottom-start ::slotted(p), .bottom-start :host::slotted(p) {\n font-weight: var(--nano-font-weight-normal) !important;\n font-size: var(--nano-font-size-xs) !important;\n line-height: var(--nano-line-height-normal) !important;\n letter-spacing: var(--nano-letter-spacing-loose) !important;\n margin-block: 0 !important;\n}\n:host .bottom-end {\n display: flex;\n justify-content: flex-end;\n}\n:host .bottom-end ::slotted(*), .bottom-end :host::slotted(*) {\n --input-font-size: var(--nano-font-size-2xs) !important;\n max-inline-size: 9rem !important;\n}\n@container footer-container (max-width: 1200px) {\n :host .top {\n grid-template-columns: repeat(2, 1fr);\n grid-template-rows: repeat(2, auto);\n }\n :host .top-end {\n grid-row: 2;\n grid-column: 1/-1;\n }\n}\n@container footer-container (max-width: 912px) {\n :host .middle,\n :host .bottom {\n grid-template-columns: 1fr;\n grid-template-rows: 1fr;\n }\n :host .top {\n display: flex;\n flex-direction: column;\n }\n :host .middle-centre {\n flex-wrap: wrap;\n }\n :host .middle-end {\n grid-template-columns: minmax(0, 6.6rem);\n }\n :host .bottom {\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n }\n :host .middle-start,\n :host .middle-centre,\n :host .middle-end {\n justify-content: center;\n }\n}";
|
22496
22548
|
|
22497
22549
|
/**
|
22498
22550
|
* The footer is used to provide navigation, copyright info and links to social media platforms.
|
@@ -22503,6 +22555,7 @@ const footerCss = ":host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;
|
|
22503
22555
|
* @slot top-center_content - The content for the top center (links) section.
|
22504
22556
|
* @slot top-end_heading - The heading for the top right section.
|
22505
22557
|
* @slot top-end_content - The content for the top right (links) section.
|
22558
|
+
* @slot middle-centre - The content for the middle centre (socials) section.
|
22506
22559
|
* @slot middle-end - The content for the middle end (certifications) section.
|
22507
22560
|
* @slot bottom-start - The content for the bottom left section (copyright notice - optional).
|
22508
22561
|
* @slot bottom-end - The content for the right side of the bottom section (language selector).
|
@@ -22520,7 +22573,7 @@ class NanoFooter {
|
|
22520
22573
|
componentWillLoad() {
|
22521
22574
|
}
|
22522
22575
|
render() {
|
22523
|
-
return (hAsync("footer", { key: '
|
22576
|
+
return (hAsync("footer", { key: 'c2a8504a9eb51ed5b5ddd3da0adf06ae4c619155', class: "footer" }, hAsync("div", { key: 'd2aa1e0ca9d7a546f0a8ac53e3f2aee31b69c144', class: "upper" }, hAsync("div", { key: 'eff89342b051447e6518a89d4b8c4072ccacd9cc', class: "top" }, hAsync("div", { key: 'a3081f69348ca489e82fab5692caf3e530341394', class: "top-start" }, hAsync("slot", { key: '2b9197d57ca7914d86a640dae4297b3b73c58d04', name: "top-start_heading" }), hAsync("slot", { key: '0d48a29421927c55f73ae9e69c4ab9ac4c2f2c6a', name: "top-start_content" })), hAsync("div", { key: '42845d69fc0b65501f3d391c7d6a8f78815d892b', class: "top-center" }, hAsync("slot", { key: '47046cd14d811f78b3e750bd35df7d2cececbe2c', name: "top-center_heading" }), hAsync("slot", { key: '4ed1e887e7a7fa7d4be901cc26579691b1fd4aa0', name: "top-center_content" })), hAsync("div", { key: 'dcb140d7f5fda4530e90be3a9f9f8fcac914c508', class: "top-end" }, hAsync("slot", { key: '48f6027d5155383f1928408a47dd250250f2a841', name: "top-end_heading" }), hAsync("slot", { key: '83f5a9ad3568dd75bf84ad6532b2094244ed0d96', name: "top-end_content" })))), hAsync("div", { key: '3fc2df5976c5802f17338b601cc8162397385210', class: "lower nano-theme-dark" }, hAsync("div", { key: '97018136a4e7f65ffbbb706919e0f04cd693ee6e', class: "middle" }, hAsync("div", { key: '8d1090ea74fede921c3c657cf6b3d59d4d4099ea', class: "middle-start" }, hAsync("img", { key: 'd227c88e189f725042500884743ab8d5a3bdb47a', src: getAssetPath('../nano-assets/ont-logo-light.svg'), alt: "Oxford Nanopore Technologies logo. Featuring a stylised representation of a nanopore,\n (a tiny protein channel embedded in a membrane) through which DNA or RNA molecules are passed in for sequencing.", height: "46", part: "logo" })), hAsync("slot", { key: '3c2dfa7cb2e6a00715dfa51febb836f981fbf3f6', name: "middle-centre" }, hAsync("div", { key: '0bcf3ad9ff6d9cff398e5a69f69dc3eec7cef425', class: "middle-centre" }, hAsync("a", { key: '2046a3d31732c36c024b02f40b333c6e3e940ad9', href: "https://x.com/nanopore", target: "_blank" }, hAsync("nano-icon", { key: '3d2f8b00bcb23cf63cc0433244ab8e787ae58de1', name: "brands/x-twitter", size: "large", ariaLabel: "X (formerly Twitter)" })), hAsync("a", { key: '449625ca6b7866ac54d410871ef8dd48c0b921a4', href: "https://bsky.app/profile/nanoporetech.com", target: "_blank" }, hAsync("nano-icon", { key: '2bfa9fdae2df01571cf735b6a8621bf4591954ec', name: "brands/bluesky", size: "large", ariaLabel: "Bluesky" })), hAsync("a", { key: '92d9aa410759d7137bf76878820565e31783306f', href: "https://www.youtube.com/channel/UC5yMlYjHSgFfZ37LYq-dzig", target: "_blank" }, hAsync("nano-icon", { key: '294302355c16e5cd10d0958eeb6e5f82d486ec9a', name: "brands/youtube", size: "large", ariaLabel: "YouTube" })), hAsync("a", { key: 'a2e1f1a50e25e79e1a6f856941494fee1a5d9348', href: "https://www.facebook.com/Oxford-Nanopore-Technologies-251034380246/", target: "_blank" }, hAsync("nano-icon", { key: '5f755d6191da952039e4dd212790d73e44869689', name: "brands/facebook", size: "large", ariaLabel: "Facebook" })), hAsync("a", { key: 'ac1b66b957ac42cd31111d1ce1a19c603442f71b', href: "https://www.linkedin.com/company/oxford-nanopore-technologies", target: "_blank" }, hAsync("nano-icon", { key: '6c31573dd300a2f1f973b17e62ae5013cef0faa7', name: "brands/linkedin", size: "large", ariaLabel: "LinkedIn" })), hAsync("a", { key: '5c1738d75d98eab928d6e3331991f0f13a0a0a01', href: "https://www.instagram.com/oxfordnanopore", target: "_blank" }, hAsync("nano-icon", { key: 'bbfd2562b24bab2dd6b5ac0abda7d328be8b77f2', name: "brands/instagram", size: "large", ariaLabel: "Instagram" })))), hAsync("div", { key: '7fa7ce2a77355ef0e479db3d328c6c549ad0b0e0', class: "middle-end" }, hAsync("slot", { key: '25fb3c61e7c29211f94fa6ad18023273fda6bbee', name: "middle-end" }))), hAsync("div", { key: 'f6be28833e0a022e8918be48869d1655b19de781', class: "bottom" }, hAsync("div", { key: 'bf6d46ecf55c77e1e9c5de89438b73c747e7c228', class: "bottom-start" }, hAsync("slot", { key: '361dbfd8db399e50b300aab1bb4af8049b74f033', name: "bottom-start" }, hAsync("p", { key: '14ef6c21d9da97caf9d0181740fbf0e270beb9d3' }, "\u00A9 2008 - 2025 Oxford Nanopore Technologies plc. All rights reserved. Registered Office: Gosling Building, Edmund Halley Road, Oxford Science Park, OX4 4DQ, UK | Registered No. 05386273 | VAT No 336942382. Oxford Nanopore Technologies, the Wheel icon, EPI2ME, Flongle, GridION, Metrichor, MinION, MinIT, MinKNOW, Plongle, PromethION, SmidgION, Ubik and VolTRAX are registered trademarks of Oxford Nanopore Technologies plc in various countries. Oxford Nanopore Technologies products are not intended for use for health assessment or to diagnose, treat, mitigate, cure, or prevent any disease or condition."))), hAsync("div", { key: 'fd2a849f3bd442ef1b81f93c829aa6fc20741fe1', class: "bottom-end" }, hAsync("slot", { key: 'e6739d536a4075bcb14dbbb6c890f5927d71a869', name: "bottom-end" }))))));
|
22524
22577
|
}
|
22525
22578
|
static get style() { return footerCss; }
|
22526
22579
|
static get cmpMeta() { return {
|
@@ -22626,7 +22679,7 @@ class NanoInPageNav {
|
|
22626
22679
|
return node;
|
22627
22680
|
}
|
22628
22681
|
render() {
|
22629
|
-
return (h(Host, { key: '
|
22682
|
+
return (h(Host, { key: '8b88cd04f960c4c8ea7ae2dd79a6ec82694570e6', class: "nano-in-page-nav" }, h("nav", { key: '4df4a5ef8aecad356c6ad1acd9a6a886edce8139', part: "root" }, (this.slotCtrl.has('back') || this.slotCtrl.has('accessory')) && (h("div", { key: 'ed1315ac689d77ffd4005df5a6eeb01f3fc9f599', class: "header" }, h("slot", { key: '0db0fb3919268a14fb924b292302c563181e87c0', name: "back" }), h("slot", { key: '95a5fafda43239ef7cc9208efc254fb335bc9f66', name: "accessory" }))), h("div", { key: '5a273c033b193efe7d4c72c3ccfdbf30b4442eae', class: "desktop-nav" }, h("slot", { key: '7d0cff62b54d21daa5b8e7d9551a9d0ed08cfe6f' })), h("nano-details", { key: 'c337ce8ac65560e5914f8566304f9382540316f2', label: "Menu", class: "details-wrapper mobile-nav", ref: (el) => (this.mobileNavWrapper = el) }))));
|
22630
22683
|
}
|
22631
22684
|
static get style() { return inPageNavCss; }
|
22632
22685
|
static get cmpMeta() { return {
|
@@ -22711,7 +22764,7 @@ class NanoIncrement {
|
|
22711
22764
|
this.handleSlotChange();
|
22712
22765
|
}
|
22713
22766
|
render() {
|
22714
|
-
return (h(Host, { key: '
|
22767
|
+
return (h(Host, { key: '14c12f59b2f00d22bc58fb5ca64616a0a6b19749', class: "nano-increment" }, h("div", { key: '77800505fe9e0d79fda864dc48cb199e6ea611c7', class: "root" }, h("div", { key: '01576d846ca2708319d9faf1c7a0a25169f6c3f4', class: "minus" }, h("nano-icon-button", { key: 'a6b30034c64de602ac504a882aa3ff7c5a933083', iconName: "light/minus", label: "Decrement", onClick: this.handleMinus })), h("slot", { key: 'f04566d5f4a52f23a36bfb1c86a8dadfa3638d66', onSlotchange: this.handleSlotChange }), h("div", { key: '4f1e183e7d547d5f72154115300d14cfbbe3d62b', class: "plus" }, h("nano-icon-button", { key: '20af1b2a19cd8c9264e6375f4a5c05b9f917d979', iconName: "light/plus", label: "Increment", onClick: this.handlePlus })))));
|
22715
22768
|
}
|
22716
22769
|
static get watchers() { return {
|
22717
22770
|
"inputElement": ["inputElementChanged"]
|
@@ -22758,6 +22811,256 @@ class NanoOptionBox {
|
|
22758
22811
|
}; }
|
22759
22812
|
}
|
22760
22813
|
|
22814
|
+
const stepAccordionCss = ":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:block}.nano-details{--padding:0;--btn-bg-color--hover:transparent;--btn-bg-color--active:transparent;border:none;margin-block-end:var(--nano-spacing-sm)}.nano-details::part(base){display:grid;grid-template-rows:auto auto;grid-template-columns:auto 1fr;gap:var(--nano-spacing-sm) 1.625rem}.nano-details.step--grid-working::part(base)::before{content:\"\";display:block;grid-column:1;grid-row:2;inline-size:1rem;min-block-size:1rem;border-inline-end:2px solid var(--nano-color-neutral-300)}.nano-details.step--grid-working::part(base)::after{content:\"\";grid-column:1;grid-row:2;inline-size:0.4rem;block-size:0.4rem;place-self:end end;translate:-50% 0;inset-inline-start:calc(50% - 2.5px);position:relative;border-inline-end:2px solid var(--nano-color-neutral-300);border-block-end:2px solid var(--nano-color-neutral-300);rotate:45deg}.nano-details:last-of-type::part(base)::before{min-block-size:0}.nano-details:last-of-type::part(base)::after{display:none}.nano-details::part(header){grid-column:1/-1;grid-row:1;display:inline-flex;gap:var(--nano-spacing-sm)}.nano-details::part(body){grid-column:2;grid-row:2}.nano-details::part(content-wrapper){padding:1px}.nano-details.step--grid-not-working::part(header){padding-block-end:var(--nano-spacing-sm)}.nano-details.step--grid-not-working::part(body){padding:0 0 0 2.5625rem}.step .step-header{display:inline-flex;gap:var(--nano-spacing-sm);align-items:center}.step .step-icon{display:inline-flex;align-items:center;justify-content:center;inline-size:2rem;block-size:2rem;border-radius:var(--nano-border-radius-circle);background-color:transparent;color:var(--nano-color-neutral-1400);border:1px solid var(--nano-color-neutral-300)}.step.step--complete .step-icon{background-color:var(--nano-color-success-1000);color:var(--nano-color-base-0);border:none}.step[open] .step-icon{background-color:var(--nano-color-primary-1000);color:var(--nano-color-base-0);border:none}.step .step-change{font-size:var(--nano-font-size-xs);line-height:var(--nano-line-height-normal);letter-spacing:var(--nano-letter-spacing-loose);text-decoration:underline;color:var(--nano-color-primary-1200)}";
|
22815
|
+
|
22816
|
+
/**
|
22817
|
+
* Presents an accordion interface for a multi-step process,
|
22818
|
+
* allowing users to see their progress and navigate back to completed steps.
|
22819
|
+
*
|
22820
|
+
* @version 8.4.0
|
22821
|
+
* @status new
|
22822
|
+
*
|
22823
|
+
* @slot - Dynamic slots. Use `slot="step-0"`, `slot="step-1"`, etc. for each step.
|
22824
|
+
*/
|
22825
|
+
class NanoStepAccordion {
|
22826
|
+
constructor(hostRef) {
|
22827
|
+
registerInstance(this, hostRef);
|
22828
|
+
this.nanoStepActive = createEvent(this, "nanoStepActive", 7);
|
22829
|
+
}
|
22830
|
+
get host() { return getElement(this); }
|
22831
|
+
nanoDetails;
|
22832
|
+
gridWorking = true;
|
22833
|
+
/** The currently active step, zero-based index */
|
22834
|
+
activeStep = 0;
|
22835
|
+
handleActiveStepChange(newValue, oldValue) {
|
22836
|
+
if (!this.steps[newValue]?.enabled)
|
22837
|
+
this.activeStep = oldValue;
|
22838
|
+
else {
|
22839
|
+
const event = this.nanoStepActive.emit({
|
22840
|
+
index: newValue,
|
22841
|
+
step: this.steps[newValue],
|
22842
|
+
});
|
22843
|
+
if (event.defaultPrevented) {
|
22844
|
+
this.activeStep = oldValue;
|
22845
|
+
}
|
22846
|
+
}
|
22847
|
+
}
|
22848
|
+
_steps = [];
|
22849
|
+
stepProxyHandler = {
|
22850
|
+
set: (target, prop, value) => {
|
22851
|
+
target[prop] = value;
|
22852
|
+
return true;
|
22853
|
+
},
|
22854
|
+
};
|
22855
|
+
/** An array of steps, each with a title, completion status, and enabled state */
|
22856
|
+
get steps() {
|
22857
|
+
return this._steps;
|
22858
|
+
}
|
22859
|
+
set steps(value) {
|
22860
|
+
this._steps = [];
|
22861
|
+
// improved devX - use a proxy to re-render when step properties change
|
22862
|
+
value.forEach((step) => {
|
22863
|
+
const proxyStep = new Proxy(step, this.stepProxyHandler);
|
22864
|
+
this._steps.push(proxyStep);
|
22865
|
+
});
|
22866
|
+
}
|
22867
|
+
/** Emitted when the active step changes. Prevent default to cancel the change */
|
22868
|
+
nanoStepActive;
|
22869
|
+
handleToggle(event) {
|
22870
|
+
if (event.detail.index === this.activeStep)
|
22871
|
+
return;
|
22872
|
+
this.activeStep = event.detail.index;
|
22873
|
+
}
|
22874
|
+
// A dirty great hack for Firefox - it doesn't support grid layout in `<details>`
|
22875
|
+
// so we use this to apply different styles based on whether grid is working or not
|
22876
|
+
isDetailsGridWorking(detailsEl) {
|
22877
|
+
// Create a test element with explicit grid placement
|
22878
|
+
const testEl = document.createElement('div');
|
22879
|
+
testEl.style.gridColumn = '2';
|
22880
|
+
testEl.style.height = '1px';
|
22881
|
+
testEl.style.width = '1px';
|
22882
|
+
testEl.style.visibility = 'hidden';
|
22883
|
+
detailsEl.appendChild(testEl);
|
22884
|
+
const parentX = detailsEl.getBoundingClientRect().x;
|
22885
|
+
const testX = testEl.getBoundingClientRect().x;
|
22886
|
+
detailsEl.removeChild(testEl);
|
22887
|
+
// If testEl moved horizontally, grid is in effect
|
22888
|
+
return Math.abs(testX - parentX) > 1;
|
22889
|
+
}
|
22890
|
+
componentDidLoad() {
|
22891
|
+
if (!this.nanoDetails)
|
22892
|
+
return;
|
22893
|
+
const detailsEl = this.nanoDetails.shadowRoot.querySelector('details');
|
22894
|
+
if (detailsEl) {
|
22895
|
+
this.gridWorking = this.isDetailsGridWorking(detailsEl);
|
22896
|
+
}
|
22897
|
+
}
|
22898
|
+
render() {
|
22899
|
+
return (h("nano-accordion", { key: 'd92d8997c0486e26c132793db92b12e04d46a384', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index) => (h("nano-details", { open: index === this.activeStep, disabled: !step.enabled, class: {
|
22900
|
+
step: true,
|
22901
|
+
'step--active': index === this.activeStep,
|
22902
|
+
'step--complete': step.complete,
|
22903
|
+
'step--grid-working': this.gridWorking,
|
22904
|
+
'step--grid-not-working': !this.gridWorking,
|
22905
|
+
'step--disabled': !step.enabled,
|
22906
|
+
}, ref: (el) => (this.nanoDetails = el) }, h("span", { class: "step-icon", slot: "icon-start" }, index + 1), h("div", { class: "step-header", slot: "label" }, h("span", { class: `step-title ${step.complete ? 'complete' : ''}` }, step.title), step.complete && (h(Fragment, null, h("span", null, " - "), h("span", { class: "step-change" }, "Change")))), h("span", { slot: "icon-end" }), h("div", { class: "step-content" }, h("slot", { name: `step-${index}` })))))));
|
22907
|
+
}
|
22908
|
+
static get watchers() { return {
|
22909
|
+
"activeStep": ["handleActiveStepChange"]
|
22910
|
+
}; }
|
22911
|
+
static get style() { return stepAccordionCss; }
|
22912
|
+
static get cmpMeta() { return {
|
22913
|
+
"$flags$": 265,
|
22914
|
+
"$tagName$": "nano-step-accordion",
|
22915
|
+
"$members$": {
|
22916
|
+
"activeStep": [1026, "active-step"],
|
22917
|
+
"steps": [6160],
|
22918
|
+
"gridWorking": [32]
|
22919
|
+
},
|
22920
|
+
"$listeners$": undefined,
|
22921
|
+
"$lazyBundleId$": "-",
|
22922
|
+
"$attrsToReflect$": []
|
22923
|
+
}; }
|
22924
|
+
}
|
22925
|
+
|
22926
|
+
const stepBreadcrumbCss = ":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:block;--background:var(--nano-color-base-0)}.step-wrapper{container-type:inline-size}.step-list.desktop{display:flex;flex-direction:row;align-items:center;justify-content:space-between;list-style:none;padding:0;margin:0;position:relative;z-index:1}.step-list.desktop::before{content:\"\";display:block;flex-grow:1;block-size:1px;background-color:var(--nano-color-neutral-300);position:absolute;inset-block-start:50%;z-index:-1;inset-inline-start:0;inline-size:100%}.step-item-wrapper{flex:0 1 auto;display:inline-flex;align-items:center;cursor:pointer}.step-item-wrapper:last-of-type{flex:0 1 auto}.step-item-wrapper:last-of-type .step-item{padding-inline-end:0}.step-item-wrapper:first-of-type::before{display:none}.step-item-wrapper:first-of-type .step-item{padding-inline-start:0}.step-item-wrapper::before{content:\"\";grid-column:2;grid-row:1;inline-size:0.4rem;block-size:0.4rem;place-self:center end;inset-block-start:0.5px;position:relative;border-inline-end:1px solid var(--nano-color-neutral-300);border-block-end:1px solid var(--nano-color-neutral-300);rotate:-45deg}:dir(rtl) .step-item-wrapper::after{rotate:45deg}.step-item{all:unset;display:inline-flex;align-items:center;gap:var(--nano-spacing-sm);background-color:var(--background);padding:0 var(--nano-spacing-sm);position:relative}.step-item:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset);z-index:1}.step-item.step-item--disabled{cursor:not-allowed}.step-item.step-item--disabled>*{opacity:0.5}.step-item-icon{font-size:var(--nano-font-size-xs);line-height:var(--nano-line-height-normal);letter-spacing:var(--nano-letter-spacing-loose);display:inline-flex;align-items:center;justify-content:center;inline-size:1.5rem;block-size:1.5rem;border-radius:var(--nano-border-radius-circle);background-color:transparent;color:var(--nano-color-neutral-1400);border:1px solid var(--nano-color-neutral-300)}.step-item--complete .step-item-icon{background-color:var(--nano-color-success-1000);color:var(--nano-color-base-0);border:none}.step-item--active .step-item-icon{background-color:var(--nano-color-primary-1000);color:var(--nano-color-base-0);border:none}.step-dropdown{inline-size:100%;min-inline-size:300px}.step-trigger{all:unset;display:inline-flex;gap:var(--nano-spacing-md);align-items:center;inline-size:100%;cursor:pointer}.step-trigger-text{display:flex;flex-direction:column}.step-trigger-now{font-weight:var(--nano-font-weight-normal);font-size:var(--nano-font-size-xl);line-height:var(--nano-line-height-denser);text-wrap:balance;color:var(--nano-color-neutral-1400)}.step-trigger-next{font-size:var(--nano-font-size-2xs);line-height:var(--nano-line-height-normal);letter-spacing:var(--nano-letter-spacing-loose);color:var(--nano-color-neutral-1000)}.step-trigger-icon{margin-inline-start:auto;color:var(--nano-color-primary-1000);transition:var(--nano-transition-x-fast) rotate}[open] .step-trigger-icon{rotate:180deg}.step-progress-circle{--size:64px;--thickness:4px;inline-size:var(--size);min-inline-size:var(--size);aspect-ratio:1/1;border-radius:50%;display:grid;place-items:center;position:relative}.step-progress-circle::before{content:\"\";position:absolute;inset:0;border-radius:50%;background:conic-gradient(var(--nano-color-success-1000) calc(var(--value) / var(--max) * 360deg), var(--nano-color-neutral-100) 0);-webkit-mask:radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), black 90%);mask:radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), black 90%)}.step-progress-title{font-size:var(--nano-font-size-sm);line-height:var(--nano-line-height-normal);font-weight:var(--nano-font-weight-bold);white-space:nowrap;color:var(--nano-color-neutral-1000)}.step-progress-title strong{color:var(--nano-color-neutral-1400)}";
|
22927
|
+
|
22928
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
22929
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
22930
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
22931
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
22932
|
+
else
|
22933
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
22934
|
+
if (d = decorators[i])
|
22935
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
22936
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
22937
|
+
};
|
22938
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
22939
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
22940
|
+
return Reflect.metadata(k, v);
|
22941
|
+
};
|
22942
|
+
/**
|
22943
|
+
* Presents a breadcrumb navigation for steps in a process, allowing users to see their progress and navigate back to completed steps.
|
22944
|
+
*
|
22945
|
+
* @version 8.4.0
|
22946
|
+
* @status new
|
22947
|
+
*/
|
22948
|
+
class NanoStepBreadcrumb {
|
22949
|
+
constructor(hostRef) {
|
22950
|
+
registerInstance(this, hostRef);
|
22951
|
+
this.nanoStepActive = createEvent(this, "nanoStepActive", 7);
|
22952
|
+
}
|
22953
|
+
get host() { return getElement(this); }
|
22954
|
+
calculatedWidth;
|
22955
|
+
cacheKey;
|
22956
|
+
/** The currently active step, zero-based index */
|
22957
|
+
activeStep = 0;
|
22958
|
+
handleActiveStepChange(newValue, oldValue) {
|
22959
|
+
if (!this.steps[newValue]?.enabled)
|
22960
|
+
this.activeStep = oldValue;
|
22961
|
+
else {
|
22962
|
+
const event = this.nanoStepActive.emit({
|
22963
|
+
index: newValue,
|
22964
|
+
step: this.steps[newValue],
|
22965
|
+
});
|
22966
|
+
if (event.defaultPrevented) {
|
22967
|
+
this.activeStep = oldValue;
|
22968
|
+
}
|
22969
|
+
}
|
22970
|
+
}
|
22971
|
+
/** Emitted when the active step changes. Prevent default to cancel the change */
|
22972
|
+
nanoStepActive;
|
22973
|
+
_steps = [];
|
22974
|
+
stepProxyHandler = {
|
22975
|
+
set: (target, prop, value) => {
|
22976
|
+
target[prop] = value;
|
22977
|
+
return true;
|
22978
|
+
},
|
22979
|
+
};
|
22980
|
+
/** An array of steps, each with a title, completion status, and enabled state */
|
22981
|
+
get steps() {
|
22982
|
+
return this._steps;
|
22983
|
+
}
|
22984
|
+
set steps(value) {
|
22985
|
+
this._steps = [];
|
22986
|
+
// improved devX - use a proxy to re-render when step properties change
|
22987
|
+
value.forEach((step) => {
|
22988
|
+
const proxyStep = new Proxy(step, this.stepProxyHandler);
|
22989
|
+
this._steps.push(proxyStep);
|
22990
|
+
});
|
22991
|
+
}
|
22992
|
+
handleStepsChange() {
|
22993
|
+
const numberOfSteps = this._steps.length;
|
22994
|
+
const charLength = this._steps.reduce((acc, step) => acc + step.title.length, 0);
|
22995
|
+
this.cacheKey = 'step-breadcrumb-' + numberOfSteps + charLength;
|
22996
|
+
// text characters + icons (3 x 1.5rem) + arrows (2 x 1.875rem) + gaps (3 * 20px)
|
22997
|
+
this.calculatedWidth = `calc(${charLength}ch + ${numberOfSteps * 1.5}rem + ${(numberOfSteps - 1) * 1.875}rem + ${numberOfSteps * 10}px)`;
|
22998
|
+
}
|
22999
|
+
styles = () => {
|
23000
|
+
const css = /* css */ `@container (width > ${this.calculatedWidth}) {
|
23001
|
+
.step-list.mobile.${this.cacheKey} { display: none; }
|
23002
|
+
.step-list.desktop.${this.cacheKey} { display: flex; }
|
23003
|
+
}
|
23004
|
+
@container (width <= ${this.calculatedWidth}) {
|
23005
|
+
.step-list.mobile.${this.cacheKey} { display: block; }
|
23006
|
+
.step-list.desktop.${this.cacheKey} { display: none; }
|
23007
|
+
}`;
|
23008
|
+
return css;
|
23009
|
+
};
|
23010
|
+
componentWillLoad() {
|
23011
|
+
this.handleStepsChange();
|
23012
|
+
}
|
23013
|
+
ControlTag = ({ step, index, }) => {
|
23014
|
+
const Tag = step.enabled ? (step.href ? 'A' : 'BUTTON') : 'SPAN';
|
23015
|
+
return (h(Tag, { href: step.href || undefined, class: {
|
23016
|
+
'step-item': true,
|
23017
|
+
'step-item--active': index === this.activeStep,
|
23018
|
+
'step-item--complete': step.complete,
|
23019
|
+
'step-item--disabled': !step.enabled,
|
23020
|
+
}, onClick: () => {
|
23021
|
+
if (step.enabled) {
|
23022
|
+
this.activeStep = index;
|
23023
|
+
}
|
23024
|
+
} }, h("span", { class: "step-item-icon", slot: "icon-start" }, index + 1), h("span", { class: "step-item-title" }, step.title)));
|
23025
|
+
};
|
23026
|
+
render() {
|
23027
|
+
const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
|
23028
|
+
return (h(Host, { key: 'c4d0e767abe4ee65f8e70534844e7ff254455af0' }, h(Wrapper, { key: '6df94c5a9df7ae957b5ff243ecbe78e7c57233b3', class: "step-wrapper" }, h("ul", { key: 'ba1838191a0b888b630bfaba5125ae868f8aab38', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (h("li", { class: "step-item-wrapper", key: index }, h(this.ControlTag, { step: step, index: index }))))), h("div", { key: '64ae2c870494d376f4bb6484e97a5217dc4be311', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '08d3dc468d594177b922ae91fb1ff02ed79d282c', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '88ef0602628d800a3517da3c06e2eea1dad5a7dd', slot: "trigger", class: "step-trigger" }, h("div", { key: '9d60be986e00fdd6814a910641cf94ef97fb2eed', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
|
23029
|
+
'--value': '' + (this.activeStep + 1),
|
23030
|
+
'--max': '' + this.steps.length,
|
23031
|
+
} }, h("span", { key: '9e6eb88c9fc12f4228f55fe04cb2e1ce9a92e1f2', class: "step-progress-text" }, h("strong", { key: '5e999ae958a2c43f5d8998e9083e91b11ea9041d' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: 'ccb66003ef35b256ae8d0d34c8cad7535680d05b', class: "step-trigger-text" }, h("div", { key: '87f8a73802c33c289860b0eb530edae379fa5ebf', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: '9b00c5ae99376028ec077e782f430b0346580119', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: '5073cf36a3a15599df7fa3816a62e72af257ab99', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '18f15bb2439661286c019a6f20272db72a6ad1b1' }, this.steps.map((step, index) => (h("nano-nav-item", { class: {
|
23032
|
+
'step-item-mobile': true,
|
23033
|
+
'step-item-mobile step-item--active': index === this.activeStep,
|
23034
|
+
'step-item-mobile step-item--complete': step.complete,
|
23035
|
+
}, disabled: !step.enabled, key: index, onClick: () => {
|
23036
|
+
if (step.enabled) {
|
23037
|
+
this.activeStep = index;
|
23038
|
+
}
|
23039
|
+
} }, h("span", { class: "step-item-icon", slot: "icon-start" }, index + 1), h("span", { class: "step-item-title" }, step.title))))))))));
|
23040
|
+
}
|
23041
|
+
static get watchers() { return {
|
23042
|
+
"activeStep": ["handleActiveStepChange"],
|
23043
|
+
"steps": ["handleStepsChange"]
|
23044
|
+
}; }
|
23045
|
+
static get style() { return stepBreadcrumbCss; }
|
23046
|
+
static get cmpMeta() { return {
|
23047
|
+
"$flags$": 265,
|
23048
|
+
"$tagName$": "nano-step-breadcrumb",
|
23049
|
+
"$members$": {
|
23050
|
+
"activeStep": [1026, "active-step"],
|
23051
|
+
"steps": [6160],
|
23052
|
+
"calculatedWidth": [32]
|
23053
|
+
},
|
23054
|
+
"$listeners$": undefined,
|
23055
|
+
"$lazyBundleId$": "-",
|
23056
|
+
"$attrsToReflect$": []
|
23057
|
+
}; }
|
23058
|
+
}
|
23059
|
+
__decorate([
|
23060
|
+
ConstructibleStyle({ cacheKeyProperty: 'calculatedWidth' }),
|
23061
|
+
__metadata("design:type", Object)
|
23062
|
+
], NanoStepBreadcrumb.prototype, "styles", void 0);
|
23063
|
+
|
22761
23064
|
const tabCss = ":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{--border:2px solid var(--nano-color-neutral-300);--border-hover-color:var(--nano-color-primary-700);--border-active-color:var(--nano-color-primary-1000);--text-hover-color:var(--nano-color-primary-1000);--text-active-color:var(--nano-color-primary-1000);--padding:var(--nano-spacing-md);font-size:var(--nano-font-size-sm);line-height:var(--nano-line-height-normal);letter-spacing:var(--nano-letter-spacing-loose);display:inline-block;cursor:pointer;color:var(--nano-color-neutral-1400);border:var(--border);border-inline-end-width:0;border-inline-start-width:0;border-block-start-width:0;border-block-end:var(--border)}:host(:not([disabled]):hover){border-color:var(--border-hover-color);color:var(--text-hover-color)}:host(:not([disabled]):active),:host([active]){border-color:var(--border-active-color);color:var(--text-active-color)}:host(.nano-sortable__dragged){background:var(--nano-color-base-0);opacity:0.9 !important;box-shadow:var(--nano-shadow-l0) !important}.tab{padding:var(--padding);display:flex;white-space:nowrap;align-items:center;position:relative;gap:var(--nano-spacing-sm);justify-content:center}.tab.tab--disabled{opacity:0.5;cursor:not-allowed}.tab.tab--closable{padding-inline-end:calc(var(--padding) - var(--nano-spacing-sm))}.tab ::slotted(*),.tab::slotted(*){display:flex;align-items:center}.tab ::slotted(.nano-sortable__keyboard-handle){position:absolute;inset-inline-end:-1em;z-index:1}.tab:not(.tab--disabled):has(.tab__label:focus-visible){outline:var(--nano-focus-ring);outline-offset:-3px}.tab__label{display:flex;flex-direction:column;gap:var(--nano-spacing-sm);align-items:center}.tab__label:focus{outline:none}.tab__close-button{color:var(--nano-color-primary-1200);--hover-color:var(--nano-color-primary-700)}";
|
22762
23065
|
|
22763
23066
|
let id$2 = 0;
|
@@ -22812,12 +23115,12 @@ class NanoTab {
|
|
22812
23115
|
}
|
22813
23116
|
};
|
22814
23117
|
render() {
|
22815
|
-
return (h(Host, { key: '
|
23118
|
+
return (h(Host, { key: '67fe232bda16bf41bf1268a1891cfeb6483ebd02', 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: '6f07d7d5a89071e094fe3deb19e88ec66a524f3d', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
|
22816
23119
|
tab: true,
|
22817
23120
|
'tab--active': this.active,
|
22818
23121
|
'tab--disabled': this.disabled,
|
22819
23122
|
'tab--closable': this.closable,
|
22820
|
-
} }, h("slot", { key: '
|
23123
|
+
} }, h("slot", { key: '4c8dce458c8ae3ed526d4aed7332650be891510c', name: "start" }), h("div", { key: 'e71cced02347ffaa432b5711af54666ac0a6cfd6', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, h("slot", { key: '382f7f77b009e3a5cf3af3d3b94b02e639bf2934' })), h("slot", { key: '82a2c81ab573d3c78b7d913f4b7ab146e7c6d5b2', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '14e812f9acd5e081a1eba5014f6d4fe4b79371e2', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
|
22821
23124
|
}
|
22822
23125
|
static get style() { return tabCss; }
|
22823
23126
|
static get cmpMeta() { return {
|
@@ -22863,10 +23166,10 @@ class NanoTabContent {
|
|
22863
23166
|
requestAnimationFrame(() => (this.ready = true));
|
22864
23167
|
}
|
22865
23168
|
render() {
|
22866
|
-
return (h(Host, { key: '
|
23169
|
+
return (h(Host, { key: '7afee777be86f5847c5ac4c8de6babae3199b01d', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
|
22867
23170
|
ready: this.ready,
|
22868
23171
|
'nano-tab-content': true,
|
22869
|
-
} }, h("div", { key: '
|
23172
|
+
} }, h("div", { key: 'c316e2c15458eeb9fb6162d81060b81a1132e795', part: "base", class: "nano-tab-content" }, h("slot", { key: '532eedd714e732749cfe9b303b1f4c633e89491c' }))));
|
22870
23173
|
}
|
22871
23174
|
static get style() { return tabContentCss; }
|
22872
23175
|
static get cmpMeta() { return {
|
@@ -23441,10 +23744,10 @@ class NanoTable {
|
|
23441
23744
|
this.cleanUpObservers();
|
23442
23745
|
}
|
23443
23746
|
render() {
|
23444
|
-
return (h(Host, { key: '
|
23747
|
+
return (h(Host, { key: '3c45a2880bd20a771bcc682355452312340db56d', class: {
|
23445
23748
|
'nano-table': true,
|
23446
23749
|
'nano-table--props-ready': this.propsReady,
|
23447
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
23750
|
+
} }, this.scrollable && (h("nano-masked-overflow", { key: '6b29ca4c8c64deae80def0d3958dc25c4d6cd1c0', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '83dce90d6e5425b0fd2a2443d0d90b7acfc9c141', class: "nano-table__overflow" }))), h("slot", { key: 'cff62841c17cf20c2ff5872944dbd38bbe438369' })));
|
23448
23751
|
}
|
23449
23752
|
static get watchers() { return {
|
23450
23753
|
"compact": ["handleCompactChange"],
|
@@ -24515,8 +24818,8 @@ let Rating$1 = class Rating {
|
|
24515
24818
|
this.handleShowHideElements();
|
24516
24819
|
}
|
24517
24820
|
render() {
|
24518
|
-
return (h(Host, { key: '
|
24519
|
-
h("div", { key: '
|
24821
|
+
return (h(Host, { key: 'cdfbe00c8ce785ad89f711c8488b514dba8f3fb6', class: "nano-more-less" }, h("slot", { key: '8c17f3540c587129feff6905e518e01f4866b90d', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
24822
|
+
h("div", { key: 'fd937a181108336345a5278b4e2e230feb13f891', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: 'bd7c0630e06de922c8ed48e5efc0db640594c776', name: "less" }, h("button", { key: '8c924f74b1b7939d17a9defd02ccb41ecd403257', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
|
24520
24823
|
!this.noHideBtn ? (h("div", { style: { display: this.show ? 'contents' : 'none' }, class: "button-wrapper", part: "button-wrapper button-wrapper--more", onClick: (e) => this.handleClick(e) }, h("slot", { name: "more" }, h("button", { part: "button button--more" }, "Show less (-", this.children.length - this.maxToShow, ")")))) : (''),
|
24521
24824
|
]));
|
24522
24825
|
}
|
@@ -24737,20 +25040,20 @@ class Rating {
|
|
24737
25040
|
else {
|
24738
25041
|
displayValue = this.isHovering ? this.hoverValue : this.value;
|
24739
25042
|
}
|
24740
|
-
return (h(Host, { key: '
|
25043
|
+
return (h(Host, { key: 'bacb1319a8119e09eb7223396c0fd308d8f1bcf0', class: "nano-rating" }, h("label", { key: 'e96dd3dc5d27aad666c9273fb48a0dde49b05bcd', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: 'a50e1bb855e58080b964cde932b6e850be44cff5', name: "label" }, this.label)), h("input", { key: 'c95ba7bf46db99df309030b4e7c9a006909e47a7', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
|
24741
25044
|
this.setFocus();
|
24742
|
-
} }), h("div", { key: '
|
25045
|
+
} }), h("div", { key: 'a04e24da1bf879b551f31b3692e990e912739643', class: "rating-wrap" }, h("div", { key: '2686f949da578a7bcdbd3043f131edccc24f0f30', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
|
24743
25046
|
rating: true,
|
24744
25047
|
'rating--readonly': this.readonly,
|
24745
25048
|
'rating--disabled': this.disabled,
|
24746
|
-
}, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '
|
25049
|
+
}, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '890e0a8296994061f88cdfa42811ff61d1fbb2b2', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
|
24747
25050
|
rating__symbol: true,
|
24748
25051
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
24749
25052
|
},
|
24750
25053
|
// Users can click the current value to clear the rating. When this happens, we set this.isHovering to
|
24751
25054
|
// false to prevent the hover state from confusing them as they move the mouse out of the control. This
|
24752
25055
|
// extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
|
24753
|
-
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '
|
25056
|
+
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: 'fad1f1de103c1451d848a215c9c7b18084f172ce', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
|
24754
25057
|
clip: this.clip(displayValue),
|
24755
25058
|
} }, counter.map((index) => (h("span", { class: {
|
24756
25059
|
rating__symbol: true,
|
@@ -25022,13 +25325,13 @@ class ResizeObserve {
|
|
25022
25325
|
}
|
25023
25326
|
}
|
25024
25327
|
render() {
|
25025
|
-
return (h(Host, { key: '
|
25328
|
+
return (h(Host, { key: '3d1301e7d8a6c0f96188ea4dadddcc3f71a349cc', class: {
|
25026
25329
|
'nano-resize-observe': true,
|
25027
25330
|
'content-fit-x': this.contentFitX,
|
25028
25331
|
'content-fit-y': this.contentFitY,
|
25029
25332
|
'content-nofit-x': this.contentFitX === false,
|
25030
25333
|
'content-nofit-y': this.contentFitY === false,
|
25031
|
-
} }, h("slot", { key: '
|
25334
|
+
} }, h("slot", { key: '363d69b62debe81c7d3d1790d4dead42538f7118' }), !!this.notifyContentFit &&
|
25032
25335
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
25033
25336
|
this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
|
25034
25337
|
this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
|
@@ -25759,30 +26062,30 @@ class Select {
|
|
25759
26062
|
disabled,
|
25760
26063
|
clearControl: this.clearable,
|
25761
26064
|
}))(this);
|
25762
|
-
return (h(Host, { key: '
|
26065
|
+
return (h(Host, { key: '0648eef02c3e5fc9891e3aee3baa81eae2fc2b5e', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
|
25763
26066
|
'has-value': !!this.value.length || !!this.inputSearchVal.length,
|
25764
26067
|
'has-focus': this.hasFocus,
|
25765
26068
|
'is-invalid': this._invalid === true,
|
25766
26069
|
'is-valid': this._invalid === false,
|
25767
26070
|
'nano-select': true,
|
25768
|
-
} }, h(FormControlWrap, { key: '
|
26071
|
+
} }, h(FormControlWrap, { key: '36dcb0e4ef701eaf17ddf03f8f64cf83dee35b07', ...wrapOptions, class: {
|
25769
26072
|
'has-error': !!this.errorMessage &&
|
25770
26073
|
this.showInlineError &&
|
25771
26074
|
this._invalid === true,
|
25772
26075
|
'has-helper': this.hasHelperSlot,
|
25773
26076
|
'is-open': this.hasOpened,
|
25774
26077
|
masked: this.mask,
|
25775
|
-
} }, h(FormControl, { key: '
|
25776
|
-
this.mask && (h("div", { key: '
|
25777
|
-
h("input", { key: '
|
25778
|
-
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: '
|
26078
|
+
} }, h(FormControl, { key: '6adbd4bf79d59de4a8d8f20c6dc287b9f70c9e5c', ...controlOptions, ref: (el) => (this.selectWrap = el), onClearText: this.clearSelectValue, control: this.el, endValueSlot: h("slot", { name: "down-arrow" }, h("nano-icon", { class: "select__down-arrow", name: "light/chevron-down" })), showInlineError: this.showInlineError }, this.multiple && (h("div", { key: 'eaf182a6e691f3490a2e26522be8daef9f3c0e58', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
|
26079
|
+
this.mask && (h("div", { key: 'd08b3d345fde15bd92a9d3237c9f0265b39a1cbb', class: "select__mask" }, this.getLabel(this.value))),
|
26080
|
+
h("input", { key: '29eb562d57d5af570132b502652fbf0109563481', ref: (input) => (this.inputCtrl = input), id: this.selectId, class: "select__native-input", "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, placeholder: this.placeholder, readonly: true, required: this.required, value: this.getLabel(this.value), onFocus: this.onFocus }),
|
26081
|
+
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: 'c7135aca51ac7e0b3f23fc63b8e8fef3d5d0d4a8', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
|
25779
26082
|
e.preventDefault();
|
25780
26083
|
this.removeValue(e.detail.value);
|
25781
26084
|
}, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
|
25782
26085
|
// @ts-expect-error - this bubbles from the nano-dropdown
|
25783
26086
|
onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
|
25784
26087
|
this.multiple &&
|
25785
|
-
!!this.inputSearchVal && (h("nano-option", { key: '
|
26088
|
+
!!this.inputSearchVal && (h("nano-option", { key: 'c1bfe32d20443e5be164a400e5553e30488f26be', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: 'aad3f8699ac6e9538055437e30d040ba686b0c46', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: 'bbbc2b303f78dcdc9aaf19c78279099b389159c4' }))), h("select", { key: '87e9d612386dc3b0baf0a79b6de750d22043c967', id: this.selectId + '-hidden', class: "select__native-ctrl", ref: (select) => (this.nativeSelect = select), "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, multiple: this.multiple, name: this.name, required: this.required, onInvalid: this.handleInvalid }, this.allowCustomValues &&
|
25786
26089
|
this.valArray.map((val) => {
|
25787
26090
|
return (h("option", { value: val, selected: true }, val));
|
25788
26091
|
}), !this.allowCustomValues &&
|
@@ -25925,7 +26228,7 @@ let Slide$2 = class Slide {
|
|
25925
26228
|
});
|
25926
26229
|
}
|
25927
26230
|
render() {
|
25928
|
-
return (h(Host, { key: '
|
26231
|
+
return (h(Host, { key: '3d5f03684b14b0944b06802a26955b035ae20a9f', class: "nano-slide" }, h("slot", { key: '5115d41ae13fb0980ae656c106b9105b5f14703b' })));
|
25929
26232
|
}
|
25930
26233
|
static get watchers() { return {
|
25931
26234
|
"ready": ["readyChange"]
|
@@ -28904,15 +29207,15 @@ class Slides {
|
|
28904
29207
|
this.destroyflickity();
|
28905
29208
|
}
|
28906
29209
|
render() {
|
28907
|
-
return (h(Host, { key: '
|
29210
|
+
return (h(Host, { key: '905eab94c6853e11f8103ade8a2711515a957a88', class: "nano-slides" }, h("div", { key: 'a6ca3bf953dc8ad8643b5f196bbbb4cad5696739', class: {
|
28908
29211
|
slideshow: true,
|
28909
29212
|
ready: this.ready,
|
28910
29213
|
'not-ready': !this.ready,
|
28911
|
-
}, part: "base" }, h("div", { key: '
|
29214
|
+
}, part: "base" }, h("div", { key: 'ebf38a42c8c0ee4a192e2c10c7e882f4953cf707', ref: (div) => (this.flickityEl = div), class: {
|
28912
29215
|
'flickity-container': true,
|
28913
29216
|
'slides-ready': this.slidesReady,
|
28914
29217
|
'slides-not-ready': !this.slidesReady,
|
28915
|
-
}, part: "slide-container" }, h("slot", { key: '
|
29218
|
+
}, part: "slide-container" }, h("slot", { key: 'ac8e76e6ee701ef38a73a1f753cbf7ad30ef9c59' })), h("div", { key: 'e74cad0bd4ec8e2e15308b26550a697ff3dd4dcb', class: "ui-extras" }, h("slot", { key: '8b7b6cfb6ba0e531a8c7707f5f65cba334e8eba6', name: "ui" })))));
|
28916
29219
|
}
|
28917
29220
|
static get watchers() { return {
|
28918
29221
|
"options": ["optionsChanged"],
|
@@ -29690,7 +29993,7 @@ class Sortable {
|
|
29690
29993
|
}
|
29691
29994
|
}
|
29692
29995
|
render() {
|
29693
|
-
return (h(Host, { key: '
|
29996
|
+
return (h(Host, { key: 'f9329f87a60f9b77ad917b9bbf0aa526f4779e82', class: "nano-sortable" }, h("div", { key: 'c30a6d47b7a932906b17f0cd0cec80e0c7ea38ef', 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: 'a377bb437eb590b3f77d10f105b2fa09e0d21cbd' })));
|
29694
29997
|
}
|
29695
29998
|
static get watchers() { return {
|
29696
29999
|
"itemSelector": ["handleItemSelectorChange"],
|
@@ -30689,12 +30992,12 @@ class Sticker {
|
|
30689
30992
|
this.hasBootstrapped = false;
|
30690
30993
|
}
|
30691
30994
|
render() {
|
30692
|
-
return (h(Host, { key: '
|
30995
|
+
return (h(Host, { key: 'd0e4e1b0cc7c63db0389ee67b999c30347f7e16b', 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: '6f9852e2cfeb2e203e5dde6f71e7a042a996dd86', class: {
|
30693
30996
|
sticker: true,
|
30694
30997
|
sticky: this.isRootSticker && this.isSticky,
|
30695
30998
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
30696
30999
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
30697
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
31000
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: '1e54d0ebe57b52c95a64acbb6d46f8c9d9778dd3', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: 'e8359edd6c73c5006ff1c90a91ecafad07e5c915' })))));
|
30698
31001
|
}
|
30699
31002
|
static get watchers() { return {
|
30700
31003
|
"trigger": ["updateTriggerOffset"],
|
@@ -30983,10 +31286,10 @@ class Tooltip {
|
|
30983
31286
|
this.popover.destroy();
|
30984
31287
|
}
|
30985
31288
|
render() {
|
30986
|
-
return (h(Host, { key: '
|
31289
|
+
return (h(Host, { key: '94758bb18228b14884cf2be79228e554de84013f', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '45589386e68d89c21abbb50513678152e8bce9d1', onSlotchange: this.handleSlotChange }), h("div", { key: '6a76c101c35d45458f0a680753a381cc95631b87', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'd3b2cc9c9018c9a0a5dc4cef256c8b9c568cd0b4', part: "base", ref: (el) => (this.tooltip = el), class: {
|
30987
31290
|
tooltip: true,
|
30988
31291
|
'tooltip--open': this.open,
|
30989
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '
|
31292
|
+
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '1c51cdc6a7ec88107e3290b0b9750198e7176c20', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '00f090eee000e6bba713dc21a1d53c348eb94a76', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
30990
31293
|
}
|
30991
31294
|
static get watchers() { return {
|
30992
31295
|
"content": ["setLabel"],
|
@@ -31061,6 +31364,8 @@ registerComponents([
|
|
31061
31364
|
NanoInPageNav,
|
31062
31365
|
NanoIncrement,
|
31063
31366
|
NanoOptionBox,
|
31367
|
+
NanoStepAccordion,
|
31368
|
+
NanoStepBreadcrumb,
|
31064
31369
|
NanoTab,
|
31065
31370
|
NanoTabContent,
|
31066
31371
|
NanoTabGroup,
|