@nanoporetech-digital/components 8.3.2 → 8.4.0
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 +21 -20
- 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 +22 -21
- 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 +21 -20
- 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 +21 -20
- 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 +403 -98
- package/hydrate/index.mjs +403 -98
- 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 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
package/hydrate/index.js
CHANGED
@@ -14043,7 +14043,9 @@ class FieldValidator {
|
|
14043
14043
|
this._valid = this.activeForm.checkValidity();
|
14044
14044
|
this.internalValidate = false;
|
14045
14045
|
}
|
14046
|
-
|
14046
|
+
setTimeout(() => {
|
14047
|
+
this.nanoPayloadChange.emit(this._store.state);
|
14048
|
+
}, 20);
|
14047
14049
|
};
|
14048
14050
|
/**
|
14049
14051
|
* Handles nano field value changes and passes to store
|
@@ -14136,7 +14138,7 @@ class FieldValidator {
|
|
14136
14138
|
this.activeForm.removeEventListener('invalid', this.handleFormInvalid, true);
|
14137
14139
|
}
|
14138
14140
|
render() {
|
14139
|
-
return (h(Host, { key: '
|
14141
|
+
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' })))));
|
14140
14142
|
}
|
14141
14143
|
static get watchers() { return {
|
14142
14144
|
"userForm": ["userFormChange"],
|
@@ -14785,7 +14787,7 @@ class GlobalNav {
|
|
14785
14787
|
});
|
14786
14788
|
}
|
14787
14789
|
/**
|
14788
|
-
* MyAccount data automatically set via `myAccountUrl`.
|
14790
|
+
* MyAccount data is automatically set via `myAccountUrl`.
|
14789
14791
|
* Alternatively you can directly provide a JSON object which is useful for SSR
|
14790
14792
|
* (ref https://myaccount.nanoporetech.com/nav_bar_data.json)
|
14791
14793
|
*/
|
@@ -15195,33 +15197,34 @@ class GlobalNav {
|
|
15195
15197
|
}
|
15196
15198
|
render() {
|
15197
15199
|
const bpps = this.bpPartials;
|
15198
|
-
return (h(Host, { key: '
|
15200
|
+
return (h(Host, { key: '52758e65d80b4738a7bce1b668ac43a1e573688b', class: {
|
15199
15201
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
15200
15202
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
15201
15203
|
'nano-global-nav': true,
|
15202
|
-
} }, h("div", { key: '
|
15204
|
+
} }, h("div", { key: 'b0f7b540dc867775e0ffc484fd00ea4bc76bade6', class: {
|
15203
15205
|
gn: true,
|
15204
15206
|
'gn__search-open': this.searchBarShown,
|
15205
|
-
} }, h("nano-drawer", { key: '
|
15207
|
+
} }, h("nano-drawer", { key: '8a5cd7bfe4411ced1d5152879f6f22e2414d66f4', 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: '10b6ae8c625aded73f416bc07d1798c3089f2973', class: "gn__drawer-header", part: "overflow-header", slot: "label" }, "Main menu"), h("nav", { key: '9db43ebdd4c691a9cf011352f71de1351d62d84f', class: "gn__drawer-menu", part: "overflow-menu" }, this.breakpoint > bpps.mainMenu.breakpoint
|
15206
15208
|
? bpps.mainMenu.tpl()
|
15207
|
-
: '', h("slot", { key: '
|
15209
|
+
: '', h("slot", { key: '54adcdf273c023af6cb552d4655f422fe40bcc44', name: "overflow" }))), h("div", { key: '6dc61d4c46eaa60e8c10440c8d16321d44f64193', class: "gn__menu-bar-wrapper" }, h("div", { key: '46310206cead5a77fda999eca19b2eab45aef41e', class: "gn__menu-bar", part: "menu-bar", ref: (el) => (this.mainMenuBar = el) }, h("nav", { key: '066a2fc79c4c395f0938b4ac1eadc40bc6b7895a', 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: 'd5184e70f942f3aaa8d1bdfa9ac9068b3f5e1059', class: "gn__overflow-button", iconName: "light/bars", label: "Open Menu", onClick: () => this.overflowMenu.show() })), h("slot", { key: 'a8c584d2129fe400546c4795d124f855d091b771', name: "logo" }, h("a", { key: '2993131b2dbfa68bf0e7327e53d172eff99c5bb1', 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,
|
15208
15210
|
(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,
|
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: '
|
15210
|
-
|
15211
|
-
|
15212
|
-
|
15213
|
-
|
15214
|
-
|
15215
|
-
|
15216
|
-
|
15217
|
-
|
15218
|
-
|
15219
|
-
|
15220
|
-
|
15221
|
-
|
15222
|
-
|
15211
|
+
(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: 'eb403b129ddba684ef45b547dcd86a5128c194fa', class: "gn__main-menu-links" }, bpps.mainMenu.tpl())), h("div", { key: '61296cf7760ca9b0bad1b39684cd26365a37c4e4', class: "gn__main-menu-actions" }, !this.myAccountData ||
|
15212
|
+
(!!this.searchIndices.length && (h("nano-dropdown", { key: 'a2ffb43fb901e508ac465e875be785fb979fb285', 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: 'bdb7b2f8dfdb29644cfca77953043bbce65ba3c4', class: "gn__search-button", slot: "trigger", iconName: "light/magnifying-glass", label: "Search" }), h("form", { key: '60d01e9911bafbd7967c0c0194c05e3b55f39586', ref: (form) => (this.searchForm = form), class: "gn__search-form", part: "search-form", onSubmit: this.onSearchSubmit }, this.searchIndices.length > 1 && (h("nano-select", { key: '5633e3714947ecdb2e1f8bf7b9b829050358db4b', 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: 'e09a08fc9d014f55862ac909ea414db9d987de61', ref: (ele) => (this.searchInput = ele), part: "search-input", label: "Search Oxford Nanopore Technologies", placeholder: "Search Oxford Nanopore...", hideLabel: true, clearable: true, onNanoChange: (e) => {
|
15213
|
+
this.handleSearchTermChangeEvent(e.detail.value);
|
15214
|
+
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '3d58fed7ebb3c74a2ed9df600c331119e2670425', slot: "end", name: "light/magnifying-glass" }), h("nano-datalist", { key: '78befd844999d78365d7b88ad7b03749166c1073', class: "gn__search-results", onNanoSelect: (e) => e.preventDefault(), dropDownConfig: { tetherTo: this.searchForm }, disableFilter: true }, this.searchLoading && (h("div", { key: '4fe00833301ab0553d8a42c7f8a89c2f7dcaa24d', slot: "no-result", class: "gn__search-loading" }, h("nano-spinner", { key: 'e5309556718d0db06c37a9f1286c8b7cc98a12f1' }, "Searching..."))), this.noResultPartial(), !!this.autocompleteResults?.hits.length && [
|
15215
|
+
this.autocompleteResults.hits.map((hit, i) => (h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
15216
|
+
searchInsight.sendClick({
|
15217
|
+
index: this.activeIndex.index,
|
15218
|
+
eventName: 'Global nav quick search - search result clicked',
|
15219
|
+
queryID: this.autocompleteResults.queryID,
|
15220
|
+
objectIDs: [hit.objectID],
|
15221
|
+
positions: [i + 1],
|
15222
|
+
});
|
15223
|
+
} }, h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
15224
|
+
h("nano-option", { key: 'c134c900ffdd746b3d38bce27ed0d5e6dccbbcf3', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
15225
|
+
])))))), h("div", { key: '215282e792ec6f14e214ca1177d6a6b6de7ccc44', class: "gn__cart" }, h("nano-icon-button", { key: '9aa656cd4b12bc09ca8a5e1e727d30c63e60a302', iconName: "light/cart-shopping", label: "View your cart", href: this.cartUrl }), !!this.cartCount && (h("nano-badge", { key: '86bbe9468e5e9a7a7d9c3fb3b48c4ba4cdc46131', theme: "danger", strength: "2" }, this.cartCount > 9 ? '9+' : this.cartCount))), this.breakpoint <= bpps.contact.breakpoint
|
15223
15226
|
? bpps.contact.tpl()
|
15224
|
-
: '', 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: '
|
15227
|
+
: '', 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: '1cacccf34009f330acebb1dc0fa492d1f3ed8dff', part: "site-search-results" }, h("div", { key: '7891bf3d5c5c3a8288583cbbc24a25f06949609e', class: "gn__site", part: "site-wrapper" }, h("slot", { key: '9998fe23791e35ca762f2f1bfb54617a1d0156de' }))))));
|
15225
15228
|
}
|
15226
15229
|
static get assetsDirs() { return ["assets"]; }
|
15227
15230
|
static get watchers() { return {
|
@@ -15536,12 +15539,12 @@ class GlobalSearchResults {
|
|
15536
15539
|
this.ro.observe(this.el);
|
15537
15540
|
}
|
15538
15541
|
render() {
|
15539
|
-
return (h(Host, { key: '
|
15542
|
+
return (h(Host, { key: 'c88b1cd5b5fcf63cc3961cc3e190fe4432349b03', class: {
|
15540
15543
|
small: this.currentWidth < 780,
|
15541
15544
|
'nano-global-search-results': true,
|
15542
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '
|
15545
|
+
}, 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",
|
15543
15546
|
// @ts-expect-error this bubbles from nano-algolia-filter
|
15544
|
-
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '
|
15547
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: 'a614cc2ad29144b19555cf2106b8a38982817918', slot: "template" },
|
15545
15548
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
15546
15549
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
15547
15550
|
<script type="text/template" slot="start-template">
|
@@ -15919,7 +15922,7 @@ class GlobalSearchResults {
|
|
15919
15922
|
</div>
|
15920
15923
|
</div>
|
15921
15924
|
{{ /if }}
|
15922
|
-
</div>`), h("div", { key: '
|
15925
|
+
</div>`), h("div", { key: 'c759117717909ec2ca8973bd4de0175e06fd73fa', slot: "output" }), h("slot", { key: '45d84a723310889c1acb75b2563839e6bd164296' }))));
|
15923
15926
|
}
|
15924
15927
|
static get watchers() { return {
|
15925
15928
|
"algoliaEle": ["handleAlgoliaCredsChange", "handleAlgoliaIndexChange", "handleAlgoliaEleChange"],
|
@@ -15976,10 +15979,9 @@ function ConstructibleStyle(opts = {}) {
|
|
15976
15979
|
if (!opts.cacheKeyProperty) {
|
15977
15980
|
opts.cacheKeyProperty = propertyKey;
|
15978
15981
|
}
|
15979
|
-
const {
|
15980
|
-
if (!componentWillLoad)
|
15981
|
-
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.`);
|
15982
|
+
const { render} = target;
|
15982
15983
|
{
|
15984
|
+
// adds a style element to the component
|
15983
15985
|
target.render = function () {
|
15984
15986
|
const cssText = typeof this[propertyKey] === 'function'
|
15985
15987
|
? this[propertyKey]()
|
@@ -16034,7 +16036,7 @@ function getHostChildren(node) {
|
|
16034
16036
|
|
16035
16037
|
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%}";
|
16036
16038
|
|
16037
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
16039
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
16038
16040
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
16039
16041
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
16040
16042
|
r = Reflect.decorate(decorators, target, key, desc);
|
@@ -16044,7 +16046,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
16044
16046
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
16045
16047
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
16046
16048
|
};
|
16047
|
-
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
16049
|
+
var __metadata$1 = (undefined && undefined.__metadata) || function (k, v) {
|
16048
16050
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
16049
16051
|
return Reflect.metadata(k, v);
|
16050
16052
|
};
|
@@ -16208,7 +16210,7 @@ class Grid {
|
|
16208
16210
|
this.constructSizeArray();
|
16209
16211
|
}
|
16210
16212
|
render() {
|
16211
|
-
return (h(Host, { key: '
|
16213
|
+
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" })))))));
|
16212
16214
|
}
|
16213
16215
|
static get watchers() { return {
|
16214
16216
|
"sTpl": ["constructSizeArray"],
|
@@ -16254,9 +16256,9 @@ class Grid {
|
|
16254
16256
|
"$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"]]
|
16255
16257
|
}; }
|
16256
16258
|
}
|
16257
|
-
__decorate([
|
16259
|
+
__decorate$1([
|
16258
16260
|
ConstructibleStyle({ cacheKeyProperty: 'cacheKey' }),
|
16259
|
-
__metadata("design:type", Object)
|
16261
|
+
__metadata$1("design:type", Object)
|
16260
16262
|
], Grid.prototype, "styles", void 0);
|
16261
16263
|
|
16262
16264
|
/**
|
@@ -16277,7 +16279,7 @@ class GridItem {
|
|
16277
16279
|
* m-row-start-2
|
16278
16280
|
*/
|
16279
16281
|
render() {
|
16280
|
-
return hAsync("slot", { key: '
|
16282
|
+
return hAsync("slot", { key: '9a50a1034bd70b2d0c461f01acdb6b0484e492d3' });
|
16281
16283
|
}
|
16282
16284
|
static get style() { return ":host { display: inline-block; }"; }
|
16283
16285
|
static get cmpMeta() { return {
|
@@ -16395,7 +16397,7 @@ class Hero {
|
|
16395
16397
|
};
|
16396
16398
|
render() {
|
16397
16399
|
const rtl = this.host.dir === 'rtl' || this.host.ownerDocument.dir === 'rtl';
|
16398
|
-
return (h(Host, { key: '
|
16400
|
+
return (h(Host, { key: '8270c80717ac41cc4cd5bedb577b131fe01ac967', class: "nano-hero" }, h("div", { key: '8b04bda451af03b648beb5576cd0badd48364aab', class: {
|
16399
16401
|
hero: true,
|
16400
16402
|
'hero--light': this.theme === 'light',
|
16401
16403
|
'hero--secondary': this.hasSecondaryContent,
|
@@ -16406,9 +16408,9 @@ class Hero {
|
|
16406
16408
|
'hero--hasbg': this.hasBg,
|
16407
16409
|
'hero--backbtn': this.hasBackBtn,
|
16408
16410
|
'hero--sub': this.level === 'sub',
|
16409
|
-
} }, h("div", { key: '
|
16410
|
-
h("div", { key: '
|
16411
|
-
h(this.HeroContent, { key: '
|
16411
|
+
} }, 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 && [
|
16412
|
+
h("div", { key: 'f10056208ed97f1d4a051572261c874e5dae6e96', class: "hero__bg-slot" }, h("slot", { key: '225c3a0b114b16e8edb063d6979683b343e85419', name: "background" })),
|
16413
|
+
h(this.HeroContent, { key: '375442509ce1954ca651d56d49488b0da464e577' }),
|
16412
16414
|
]))));
|
16413
16415
|
}
|
16414
16416
|
static get watchers() { return {
|
@@ -16603,7 +16605,7 @@ class Icon {
|
|
16603
16605
|
(this.name.indexOf('arrow') > -1 ||
|
16604
16606
|
this.name.indexOf('chevron') > -1) &&
|
16605
16607
|
this.isRtl());
|
16606
|
-
return (h(Host, { key: '
|
16608
|
+
return (h(Host, { key: '0bc1c17119f0e49b9798a1b61a4a768f6406129f', class: {
|
16607
16609
|
loading: this.isLoading,
|
16608
16610
|
'flip-rtl': !!flipRtl,
|
16609
16611
|
'nano-icon': true,
|
@@ -16905,16 +16907,16 @@ class Img {
|
|
16905
16907
|
const bgStyle = this.loadSrc
|
16906
16908
|
? { 'background-image': `url(${this.loadSrc})` }
|
16907
16909
|
: {};
|
16908
|
-
return (h(Host, { key: '
|
16910
|
+
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: {
|
16909
16911
|
loaded: this.hasLoaded,
|
16910
16912
|
img__bg: true,
|
16911
16913
|
'no-height': this.autoHeight === 'image',
|
16912
|
-
}, style: bgStyle }, h("slot", { key: '
|
16914
|
+
}, style: bgStyle }, h("slot", { key: '29bab2a5c86b3dfe18db8936af77674c44d743d0' }))), h("img", { key: 'e6731b48ed137d97aa98e64dc55488d56724f672', class: {
|
16913
16915
|
img__image: true,
|
16914
16916
|
loaded: this.hasLoaded,
|
16915
16917
|
hide: this.background,
|
16916
16918
|
'no-height': this.autoHeight === 'content',
|
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: '
|
16919
|
+
}, 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 }))));
|
16918
16920
|
}
|
16919
16921
|
static get watchers() { return {
|
16920
16922
|
"_src": ["_srcChanged"],
|
@@ -17844,7 +17846,7 @@ class IntersectionObserve {
|
|
17844
17846
|
this.removeIO();
|
17845
17847
|
}
|
17846
17848
|
render() {
|
17847
|
-
return (h(Host, { key: '
|
17849
|
+
return (h(Host, { key: 'aadf019427b2d2c3020fd6e667d5932fd14aea45', class: "nano-intersection-observe" }, h("slot", { key: 'eae74417c304de7b8e377229b603d88468a5c7f5', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
|
17848
17850
|
}
|
17849
17851
|
static get watchers() { return {
|
17850
17852
|
"root": ["handleRootChange"],
|
@@ -18189,7 +18191,7 @@ class MaskedOverflow {
|
|
18189
18191
|
}
|
18190
18192
|
}
|
18191
18193
|
render() {
|
18192
|
-
return (h(Host, { key: '
|
18194
|
+
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: {
|
18193
18195
|
onav: true,
|
18194
18196
|
[`onav--${this.orientation}`]: true,
|
18195
18197
|
'onav--has-scroll-controls': this.hasScrollControls,
|
@@ -18198,12 +18200,12 @@ class MaskedOverflow {
|
|
18198
18200
|
'onav--no-transitions': this.instantReCalc,
|
18199
18201
|
'onnav--has-indicator': this.showIndicator,
|
18200
18202
|
'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
|
18201
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '
|
18203
|
+
}, 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: {
|
18202
18204
|
'onav__scroll-button': true,
|
18203
18205
|
'onav__scroll-button--start': true,
|
18204
18206
|
}, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
18205
18207
|
? 'light/chevron-left'
|
18206
|
-
: 'light/chevron-up' })), h("div", { key: '
|
18208
|
+
: '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: {
|
18207
18209
|
'onav__scroll-button': true,
|
18208
18210
|
'onav__scroll-button--end': true,
|
18209
18211
|
}, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
@@ -18644,14 +18646,14 @@ class MenuDrawer {
|
|
18644
18646
|
disconnectedCallback() {
|
18645
18647
|
}
|
18646
18648
|
render() {
|
18647
|
-
return (h(Host, { key: '
|
18649
|
+
return (h(Host, { key: '4ad542c84da0045168bcee1df744cb94c2a1196e', class: {
|
18648
18650
|
open: this.open,
|
18649
18651
|
'secondary-open': this.secondaryOpen,
|
18650
18652
|
hide: this.hide,
|
18651
18653
|
loading: this.isLoading,
|
18652
18654
|
'has-global-nav': !!this.globalNav,
|
18653
18655
|
'nano-menu-drawer': true,
|
18654
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: '
|
18656
|
+
}, 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" }))))))));
|
18655
18657
|
}
|
18656
18658
|
static get watchers() { return {
|
18657
18659
|
"open": ["openChange"]
|
@@ -18687,38 +18689,57 @@ class NanoAccordion {
|
|
18687
18689
|
registerInstance(this, hostRef);
|
18688
18690
|
this.nanoToggle = createEvent(this, "nanoToggle", 7);
|
18689
18691
|
}
|
18690
|
-
|
18692
|
+
indexOpened;
|
18693
|
+
elementOpened;
|
18691
18694
|
get el() { return getElement(this); }
|
18695
|
+
/** Force one details element to always be open */
|
18696
|
+
alwaysOpen = false;
|
18692
18697
|
/** Fires when accordion elements toggle */
|
18693
18698
|
nanoToggle;
|
18694
18699
|
onToggleHandler(event) {
|
18695
18700
|
if (event.target?.tagName !== 'NANO-DETAILS')
|
18696
18701
|
return;
|
18697
18702
|
event.stopPropagation();
|
18698
|
-
const items = getDirectChildren(this.el, transformTag('nano-details'))
|
18699
|
-
this.el.querySelectorAll(transformTag('nano-details'));
|
18703
|
+
const items = getDirectChildren(this.el, transformTag('nano-details'));
|
18700
18704
|
items.forEach((item, i) => {
|
18701
18705
|
if (item !== event.target)
|
18702
18706
|
item.open = false;
|
18703
|
-
else
|
18704
|
-
this.
|
18707
|
+
else if (item === event.target) {
|
18708
|
+
this.indexOpened = i;
|
18709
|
+
}
|
18705
18710
|
});
|
18706
|
-
this.nanoToggle.emit(event.target);
|
18711
|
+
this.nanoToggle.emit({ element: event.target, index: this.indexOpened });
|
18707
18712
|
}
|
18708
18713
|
onClosedHandler(event) {
|
18709
18714
|
event.stopPropagation();
|
18710
|
-
this.
|
18711
|
-
|
18715
|
+
if (this.alwaysOpen) {
|
18716
|
+
let foundOpen;
|
18717
|
+
const items = getDirectChildren(this.el, transformTag('nano-details'));
|
18718
|
+
items.forEach((item) => {
|
18719
|
+
if (item !== event.target && item.open) {
|
18720
|
+
foundOpen = true;
|
18721
|
+
}
|
18722
|
+
});
|
18723
|
+
if (!foundOpen) {
|
18724
|
+
event.preventDefault();
|
18725
|
+
return;
|
18726
|
+
}
|
18727
|
+
}
|
18728
|
+
if (this.elementOpened === event.target) {
|
18729
|
+
this.elementOpened = null;
|
18730
|
+
this.indexOpened = null;
|
18731
|
+
this.nanoToggle.emit();
|
18732
|
+
}
|
18712
18733
|
}
|
18713
18734
|
render() {
|
18714
|
-
return h("slot", { key: '
|
18735
|
+
return h("slot", { key: 'a16b340b9312672847ee022b2beb6767fc0dfb86' });
|
18715
18736
|
}
|
18716
18737
|
static get style() { return accordionCss; }
|
18717
18738
|
static get cmpMeta() { return {
|
18718
18739
|
"$flags$": 265,
|
18719
18740
|
"$tagName$": "nano-accordion",
|
18720
18741
|
"$members$": {
|
18721
|
-
"
|
18742
|
+
"alwaysOpen": [4, "always-open"]
|
18722
18743
|
},
|
18723
18744
|
"$listeners$": [[0, "nanoOpen", "onToggleHandler"], [0, "nanoClose", "onClosedHandler"]],
|
18724
18745
|
"$lazyBundleId$": "-",
|
@@ -19196,6 +19217,20 @@ function cyrb53(str, seed = 0) {
|
|
19196
19217
|
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
19197
19218
|
}
|
19198
19219
|
|
19220
|
+
function perMark(name, end = false) {
|
19221
|
+
if (!performance || false)
|
19222
|
+
return;
|
19223
|
+
if (end) {
|
19224
|
+
performance?.mark('end' + name);
|
19225
|
+
performance?.measure(name, 'start' + name, 'end' + name);
|
19226
|
+
const entries = performance?.getEntriesByName(name);
|
19227
|
+
console.info(entries[entries.length ? entries.length - 1 : 0]);
|
19228
|
+
}
|
19229
|
+
else {
|
19230
|
+
performance?.mark('start' + name);
|
19231
|
+
}
|
19232
|
+
}
|
19233
|
+
|
19199
19234
|
const CSSNAMESPACE = 'nano-tbl';
|
19200
19235
|
|
19201
19236
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
@@ -21366,6 +21401,7 @@ class NanoDataTable {
|
|
21366
21401
|
const sortEvent = this.nanoTblBeforeSort.emit({ column: column, order });
|
21367
21402
|
if (sortEvent.defaultPrevented)
|
21368
21403
|
return;
|
21404
|
+
perMark('sort');
|
21369
21405
|
this.currentSort = order + ':' + column;
|
21370
21406
|
// doesn't make sense to leave user in place for a sort
|
21371
21407
|
this.scrollToTop(element);
|
@@ -21415,17 +21451,20 @@ class NanoDataTable {
|
|
21415
21451
|
return { ...c, order: null };
|
21416
21452
|
});
|
21417
21453
|
this.nanoTblAfterSort.emit({ column: column, order });
|
21454
|
+
perMark('sort', true);
|
21418
21455
|
}
|
21419
21456
|
async searchStart() {
|
21420
21457
|
this._loading = true;
|
21421
21458
|
const sortEvent = this.nanoTblBeforeSearch.emit({ term: this.searchTerm });
|
21422
21459
|
if (sortEvent.defaultPrevented)
|
21423
21460
|
return;
|
21461
|
+
perMark('search');
|
21424
21462
|
// doesn't make sense to leave user in place for a search
|
21425
21463
|
this.scrollToTop();
|
21426
21464
|
try {
|
21427
21465
|
await storeSearch(this.host, this.searchTerm);
|
21428
21466
|
this.nanoTblAfterSearch.emit({ term: this.searchTerm });
|
21467
|
+
perMark('search', true);
|
21429
21468
|
}
|
21430
21469
|
catch (e) {
|
21431
21470
|
console.warn('search failed', e);
|
@@ -21452,6 +21491,7 @@ class NanoDataTable {
|
|
21452
21491
|
const sortEvent = this.nanoTblBeforeFilter.emit({ filters: this.filters });
|
21453
21492
|
if (sortEvent.defaultPrevented)
|
21454
21493
|
return;
|
21494
|
+
perMark('filter');
|
21455
21495
|
this.currentFilters = JSON.stringify(this.filters);
|
21456
21496
|
// doesn't make sense to leave user in place for a search
|
21457
21497
|
this.scrollToTop();
|
@@ -21506,6 +21546,7 @@ class NanoDataTable {
|
|
21506
21546
|
});
|
21507
21547
|
await storeFilter(this.host, this.filters);
|
21508
21548
|
this.nanoTblAfterFilter.emit({ filters: this.filters });
|
21549
|
+
perMark('filter', true);
|
21509
21550
|
}
|
21510
21551
|
/** Scrolls to the top immediately - used whilst sorting / filtering */
|
21511
21552
|
scrollToTop(element) {
|
@@ -21541,6 +21582,7 @@ class NanoDataTable {
|
|
21541
21582
|
setInitialBlockDimension() {
|
21542
21583
|
if (!this.blockElements?.length)
|
21543
21584
|
return;
|
21585
|
+
perMark('blockDims');
|
21544
21586
|
const testForDimensions = async () => {
|
21545
21587
|
await this.setMeasureElement();
|
21546
21588
|
if (this.unitHeight)
|
@@ -21566,6 +21608,8 @@ class NanoDataTable {
|
|
21566
21608
|
});
|
21567
21609
|
// we're all finished.
|
21568
21610
|
dimensionsReady.then(() => {
|
21611
|
+
perMark('blockDims', true);
|
21612
|
+
perMark('init', true);
|
21569
21613
|
requestAnimationFrame(() => (this.isReady = true));
|
21570
21614
|
});
|
21571
21615
|
}
|
@@ -21600,6 +21644,7 @@ class NanoDataTable {
|
|
21600
21644
|
this.blocks = [];
|
21601
21645
|
return;
|
21602
21646
|
}
|
21647
|
+
perMark('setBlocks');
|
21603
21648
|
// this.ignoreIO = true;
|
21604
21649
|
let i = 1;
|
21605
21650
|
const l = this.virtualTotalItems > dRows.length
|
@@ -21622,6 +21667,7 @@ class NanoDataTable {
|
|
21622
21667
|
blocks.push({ rows, __uuid: cyrb53(rows.map((b) => b.__uuid).join()) });
|
21623
21668
|
}
|
21624
21669
|
this.blocks = blocks;
|
21670
|
+
perMark('setBlocks', true);
|
21625
21671
|
}
|
21626
21672
|
/**
|
21627
21673
|
* Returns a block render height.
|
@@ -21671,6 +21717,7 @@ class NanoDataTable {
|
|
21671
21717
|
*/
|
21672
21718
|
scrollHandler = () => {
|
21673
21719
|
let scrollPos = 0;
|
21720
|
+
perMark('scrollHandler');
|
21674
21721
|
// don't listen if this table isn't in the viewport
|
21675
21722
|
if (!this.store?.general.state.isActive || !this.rows)
|
21676
21723
|
return;
|
@@ -21708,6 +21755,7 @@ class NanoDataTable {
|
|
21708
21755
|
}
|
21709
21756
|
blockIndex++;
|
21710
21757
|
}
|
21758
|
+
perMark('scrollHandler', true);
|
21711
21759
|
});
|
21712
21760
|
};
|
21713
21761
|
/** Process slotted content */
|
@@ -21736,6 +21784,7 @@ class NanoDataTable {
|
|
21736
21784
|
}
|
21737
21785
|
// Component lifecycle
|
21738
21786
|
async componentWillLoad() {
|
21787
|
+
perMark('init');
|
21739
21788
|
// setup stores
|
21740
21789
|
this.store = await generateStore(this.host, this.columns, this.scrollParent, this.isReady);
|
21741
21790
|
this.handleRowsChange();
|
@@ -21777,9 +21826,11 @@ class NanoDataTable {
|
|
21777
21826
|
return false;
|
21778
21827
|
}
|
21779
21828
|
componentWillRender() {
|
21829
|
+
perMark('render');
|
21780
21830
|
}
|
21781
21831
|
componentDidRender() {
|
21782
21832
|
this.setMeasureElement().then(() => this.setBlockHeight());
|
21833
|
+
perMark('render', true);
|
21783
21834
|
}
|
21784
21835
|
disconnectedCallback() {
|
21785
21836
|
if (!this.activeWatcherIo)
|
@@ -22295,8 +22346,9 @@ const detailsCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{di
|
|
22295
22346
|
* @part icon - the wrapper around both start and end icons
|
22296
22347
|
* @part icon--start - the icon wrapper at the start of the ui control
|
22297
22348
|
* @part icon--end - the icon wrapper at the end of the ui control
|
22298
|
-
* @part body - the
|
22299
|
-
* @part content - the
|
22349
|
+
* @part body - the main body block
|
22350
|
+
* @part content-wrapper - the wrapper around the content
|
22351
|
+
* @part content - the main content
|
22300
22352
|
*/
|
22301
22353
|
class NanoDetails {
|
22302
22354
|
constructor(hostRef) {
|
@@ -22436,13 +22488,13 @@ class NanoDetails {
|
|
22436
22488
|
}
|
22437
22489
|
}
|
22438
22490
|
render() {
|
22439
|
-
return (h(Host, { key: '
|
22491
|
+
return (h(Host, { key: '1cbedc078a3390a3ad82b99ac0f37e8ea0f8d480', class: "nano-details" }, h("details", { key: '22659218ba7d1ec936523ff33c7ed2a1efb2af74', part: "base", ref: (d) => (this.detailsEl = d), class: {
|
22440
22492
|
details: true,
|
22441
22493
|
disabled: this.disabled,
|
22442
|
-
} }, h("summary", { key: '
|
22494
|
+
} }, 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') &&
|
22443
22495
|
!this.slotCtrl.has('icon-end') &&
|
22444
22496
|
!this.slotCtrl.has('icon-expand') &&
|
22445
|
-
!this.slotCtrl.has('icon-collapse') && (h("nano-icon", { key: '
|
22497
|
+
!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' })))))));
|
22446
22498
|
}
|
22447
22499
|
static get watchers() { return {
|
22448
22500
|
"open": ["toggleClick"]
|
@@ -22494,7 +22546,7 @@ class NanoFeatureBox {
|
|
22494
22546
|
}; }
|
22495
22547
|
}
|
22496
22548
|
|
22497
|
-
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-
|
22549
|
+
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}";
|
22498
22550
|
|
22499
22551
|
/**
|
22500
22552
|
* The footer is used to provide navigation, copyright info and links to social media platforms.
|
@@ -22505,6 +22557,7 @@ const footerCss = ":host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;
|
|
22505
22557
|
* @slot top-center_content - The content for the top center (links) section.
|
22506
22558
|
* @slot top-end_heading - The heading for the top right section.
|
22507
22559
|
* @slot top-end_content - The content for the top right (links) section.
|
22560
|
+
* @slot middle-centre - The content for the middle centre (socials) section.
|
22508
22561
|
* @slot middle-end - The content for the middle end (certifications) section.
|
22509
22562
|
* @slot bottom-start - The content for the bottom left section (copyright notice - optional).
|
22510
22563
|
* @slot bottom-end - The content for the right side of the bottom section (language selector).
|
@@ -22522,7 +22575,7 @@ class NanoFooter {
|
|
22522
22575
|
componentWillLoad() {
|
22523
22576
|
}
|
22524
22577
|
render() {
|
22525
|
-
return (hAsync("footer", { key: '
|
22578
|
+
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" }))))));
|
22526
22579
|
}
|
22527
22580
|
static get style() { return footerCss; }
|
22528
22581
|
static get cmpMeta() { return {
|
@@ -22628,7 +22681,7 @@ class NanoInPageNav {
|
|
22628
22681
|
return node;
|
22629
22682
|
}
|
22630
22683
|
render() {
|
22631
|
-
return (h(Host, { key: '
|
22684
|
+
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) }))));
|
22632
22685
|
}
|
22633
22686
|
static get style() { return inPageNavCss; }
|
22634
22687
|
static get cmpMeta() { return {
|
@@ -22713,7 +22766,7 @@ class NanoIncrement {
|
|
22713
22766
|
this.handleSlotChange();
|
22714
22767
|
}
|
22715
22768
|
render() {
|
22716
|
-
return (h(Host, { key: '
|
22769
|
+
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 })))));
|
22717
22770
|
}
|
22718
22771
|
static get watchers() { return {
|
22719
22772
|
"inputElement": ["inputElementChanged"]
|
@@ -22760,6 +22813,256 @@ class NanoOptionBox {
|
|
22760
22813
|
}; }
|
22761
22814
|
}
|
22762
22815
|
|
22816
|
+
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)}";
|
22817
|
+
|
22818
|
+
/**
|
22819
|
+
* Presents an accordion interface for a multi-step process,
|
22820
|
+
* allowing users to see their progress and navigate back to completed steps.
|
22821
|
+
*
|
22822
|
+
* @version 8.4.0
|
22823
|
+
* @status new
|
22824
|
+
*
|
22825
|
+
* @slot - Dynamic slots. Use `slot="step-0"`, `slot="step-1"`, etc. for each step.
|
22826
|
+
*/
|
22827
|
+
class NanoStepAccordion {
|
22828
|
+
constructor(hostRef) {
|
22829
|
+
registerInstance(this, hostRef);
|
22830
|
+
this.nanoStepActive = createEvent(this, "nanoStepActive", 7);
|
22831
|
+
}
|
22832
|
+
get host() { return getElement(this); }
|
22833
|
+
nanoDetails;
|
22834
|
+
gridWorking = true;
|
22835
|
+
/** The currently active step, zero-based index */
|
22836
|
+
activeStep = 0;
|
22837
|
+
handleActiveStepChange(newValue, oldValue) {
|
22838
|
+
if (!this.steps[newValue]?.enabled)
|
22839
|
+
this.activeStep = oldValue;
|
22840
|
+
else {
|
22841
|
+
const event = this.nanoStepActive.emit({
|
22842
|
+
index: newValue,
|
22843
|
+
step: this.steps[newValue],
|
22844
|
+
});
|
22845
|
+
if (event.defaultPrevented) {
|
22846
|
+
this.activeStep = oldValue;
|
22847
|
+
}
|
22848
|
+
}
|
22849
|
+
}
|
22850
|
+
_steps = [];
|
22851
|
+
stepProxyHandler = {
|
22852
|
+
set: (target, prop, value) => {
|
22853
|
+
target[prop] = value;
|
22854
|
+
return true;
|
22855
|
+
},
|
22856
|
+
};
|
22857
|
+
/** An array of steps, each with a title, completion status, and enabled state */
|
22858
|
+
get steps() {
|
22859
|
+
return this._steps;
|
22860
|
+
}
|
22861
|
+
set steps(value) {
|
22862
|
+
this._steps = [];
|
22863
|
+
// improved devX - use a proxy to re-render when step properties change
|
22864
|
+
value.forEach((step) => {
|
22865
|
+
const proxyStep = new Proxy(step, this.stepProxyHandler);
|
22866
|
+
this._steps.push(proxyStep);
|
22867
|
+
});
|
22868
|
+
}
|
22869
|
+
/** Emitted when the active step changes. Prevent default to cancel the change */
|
22870
|
+
nanoStepActive;
|
22871
|
+
handleToggle(event) {
|
22872
|
+
if (event.detail.index === this.activeStep)
|
22873
|
+
return;
|
22874
|
+
this.activeStep = event.detail.index;
|
22875
|
+
}
|
22876
|
+
// A dirty great hack for Firefox - it doesn't support grid layout in `<details>`
|
22877
|
+
// so we use this to apply different styles based on whether grid is working or not
|
22878
|
+
isDetailsGridWorking(detailsEl) {
|
22879
|
+
// Create a test element with explicit grid placement
|
22880
|
+
const testEl = document.createElement('div');
|
22881
|
+
testEl.style.gridColumn = '2';
|
22882
|
+
testEl.style.height = '1px';
|
22883
|
+
testEl.style.width = '1px';
|
22884
|
+
testEl.style.visibility = 'hidden';
|
22885
|
+
detailsEl.appendChild(testEl);
|
22886
|
+
const parentX = detailsEl.getBoundingClientRect().x;
|
22887
|
+
const testX = testEl.getBoundingClientRect().x;
|
22888
|
+
detailsEl.removeChild(testEl);
|
22889
|
+
// If testEl moved horizontally, grid is in effect
|
22890
|
+
return Math.abs(testX - parentX) > 1;
|
22891
|
+
}
|
22892
|
+
componentDidLoad() {
|
22893
|
+
if (!this.nanoDetails)
|
22894
|
+
return;
|
22895
|
+
const detailsEl = this.nanoDetails.shadowRoot.querySelector('details');
|
22896
|
+
if (detailsEl) {
|
22897
|
+
this.gridWorking = this.isDetailsGridWorking(detailsEl);
|
22898
|
+
}
|
22899
|
+
}
|
22900
|
+
render() {
|
22901
|
+
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: {
|
22902
|
+
step: true,
|
22903
|
+
'step--active': index === this.activeStep,
|
22904
|
+
'step--complete': step.complete,
|
22905
|
+
'step--grid-working': this.gridWorking,
|
22906
|
+
'step--grid-not-working': !this.gridWorking,
|
22907
|
+
'step--disabled': !step.enabled,
|
22908
|
+
}, 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}` })))))));
|
22909
|
+
}
|
22910
|
+
static get watchers() { return {
|
22911
|
+
"activeStep": ["handleActiveStepChange"]
|
22912
|
+
}; }
|
22913
|
+
static get style() { return stepAccordionCss; }
|
22914
|
+
static get cmpMeta() { return {
|
22915
|
+
"$flags$": 265,
|
22916
|
+
"$tagName$": "nano-step-accordion",
|
22917
|
+
"$members$": {
|
22918
|
+
"activeStep": [1026, "active-step"],
|
22919
|
+
"steps": [6160],
|
22920
|
+
"gridWorking": [32]
|
22921
|
+
},
|
22922
|
+
"$listeners$": undefined,
|
22923
|
+
"$lazyBundleId$": "-",
|
22924
|
+
"$attrsToReflect$": []
|
22925
|
+
}; }
|
22926
|
+
}
|
22927
|
+
|
22928
|
+
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)}";
|
22929
|
+
|
22930
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
22931
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
22932
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
22933
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
22934
|
+
else
|
22935
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
22936
|
+
if (d = decorators[i])
|
22937
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
22938
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
22939
|
+
};
|
22940
|
+
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
22941
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
22942
|
+
return Reflect.metadata(k, v);
|
22943
|
+
};
|
22944
|
+
/**
|
22945
|
+
* Presents a breadcrumb navigation for steps in a process, allowing users to see their progress and navigate back to completed steps.
|
22946
|
+
*
|
22947
|
+
* @version 8.4.0
|
22948
|
+
* @status new
|
22949
|
+
*/
|
22950
|
+
class NanoStepBreadcrumb {
|
22951
|
+
constructor(hostRef) {
|
22952
|
+
registerInstance(this, hostRef);
|
22953
|
+
this.nanoStepActive = createEvent(this, "nanoStepActive", 7);
|
22954
|
+
}
|
22955
|
+
get host() { return getElement(this); }
|
22956
|
+
calculatedWidth;
|
22957
|
+
cacheKey;
|
22958
|
+
/** The currently active step, zero-based index */
|
22959
|
+
activeStep = 0;
|
22960
|
+
handleActiveStepChange(newValue, oldValue) {
|
22961
|
+
if (!this.steps[newValue]?.enabled)
|
22962
|
+
this.activeStep = oldValue;
|
22963
|
+
else {
|
22964
|
+
const event = this.nanoStepActive.emit({
|
22965
|
+
index: newValue,
|
22966
|
+
step: this.steps[newValue],
|
22967
|
+
});
|
22968
|
+
if (event.defaultPrevented) {
|
22969
|
+
this.activeStep = oldValue;
|
22970
|
+
}
|
22971
|
+
}
|
22972
|
+
}
|
22973
|
+
/** Emitted when the active step changes. Prevent default to cancel the change */
|
22974
|
+
nanoStepActive;
|
22975
|
+
_steps = [];
|
22976
|
+
stepProxyHandler = {
|
22977
|
+
set: (target, prop, value) => {
|
22978
|
+
target[prop] = value;
|
22979
|
+
return true;
|
22980
|
+
},
|
22981
|
+
};
|
22982
|
+
/** An array of steps, each with a title, completion status, and enabled state */
|
22983
|
+
get steps() {
|
22984
|
+
return this._steps;
|
22985
|
+
}
|
22986
|
+
set steps(value) {
|
22987
|
+
this._steps = [];
|
22988
|
+
// improved devX - use a proxy to re-render when step properties change
|
22989
|
+
value.forEach((step) => {
|
22990
|
+
const proxyStep = new Proxy(step, this.stepProxyHandler);
|
22991
|
+
this._steps.push(proxyStep);
|
22992
|
+
});
|
22993
|
+
}
|
22994
|
+
handleStepsChange() {
|
22995
|
+
const numberOfSteps = this._steps.length;
|
22996
|
+
const charLength = this._steps.reduce((acc, step) => acc + step.title.length, 0);
|
22997
|
+
this.cacheKey = 'step-breadcrumb-' + numberOfSteps + charLength;
|
22998
|
+
// text characters + icons (3 x 1.5rem) + arrows (2 x 1.875rem) + gaps (3 * 20px)
|
22999
|
+
this.calculatedWidth = `calc(${charLength}ch + ${numberOfSteps * 1.5}rem + ${(numberOfSteps - 1) * 1.875}rem + ${numberOfSteps * 10}px)`;
|
23000
|
+
}
|
23001
|
+
styles = () => {
|
23002
|
+
const css = /* css */ `@container (width > ${this.calculatedWidth}) {
|
23003
|
+
.step-list.mobile.${this.cacheKey} { display: none; }
|
23004
|
+
.step-list.desktop.${this.cacheKey} { display: flex; }
|
23005
|
+
}
|
23006
|
+
@container (width <= ${this.calculatedWidth}) {
|
23007
|
+
.step-list.mobile.${this.cacheKey} { display: block; }
|
23008
|
+
.step-list.desktop.${this.cacheKey} { display: none; }
|
23009
|
+
}`;
|
23010
|
+
return css;
|
23011
|
+
};
|
23012
|
+
componentWillLoad() {
|
23013
|
+
this.handleStepsChange();
|
23014
|
+
}
|
23015
|
+
ControlTag = ({ step, index, }) => {
|
23016
|
+
const Tag = step.enabled ? (step.href ? 'A' : 'BUTTON') : 'SPAN';
|
23017
|
+
return (h(Tag, { href: step.href || undefined, class: {
|
23018
|
+
'step-item': true,
|
23019
|
+
'step-item--active': index === this.activeStep,
|
23020
|
+
'step-item--complete': step.complete,
|
23021
|
+
'step-item--disabled': !step.enabled,
|
23022
|
+
}, onClick: () => {
|
23023
|
+
if (step.enabled) {
|
23024
|
+
this.activeStep = index;
|
23025
|
+
}
|
23026
|
+
} }, h("span", { class: "step-item-icon", slot: "icon-start" }, index + 1), h("span", { class: "step-item-title" }, step.title)));
|
23027
|
+
};
|
23028
|
+
render() {
|
23029
|
+
const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
|
23030
|
+
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: {
|
23031
|
+
'--value': '' + (this.activeStep + 1),
|
23032
|
+
'--max': '' + this.steps.length,
|
23033
|
+
} }, 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: {
|
23034
|
+
'step-item-mobile': true,
|
23035
|
+
'step-item-mobile step-item--active': index === this.activeStep,
|
23036
|
+
'step-item-mobile step-item--complete': step.complete,
|
23037
|
+
}, disabled: !step.enabled, key: index, onClick: () => {
|
23038
|
+
if (step.enabled) {
|
23039
|
+
this.activeStep = index;
|
23040
|
+
}
|
23041
|
+
} }, h("span", { class: "step-item-icon", slot: "icon-start" }, index + 1), h("span", { class: "step-item-title" }, step.title))))))))));
|
23042
|
+
}
|
23043
|
+
static get watchers() { return {
|
23044
|
+
"activeStep": ["handleActiveStepChange"],
|
23045
|
+
"steps": ["handleStepsChange"]
|
23046
|
+
}; }
|
23047
|
+
static get style() { return stepBreadcrumbCss; }
|
23048
|
+
static get cmpMeta() { return {
|
23049
|
+
"$flags$": 265,
|
23050
|
+
"$tagName$": "nano-step-breadcrumb",
|
23051
|
+
"$members$": {
|
23052
|
+
"activeStep": [1026, "active-step"],
|
23053
|
+
"steps": [6160],
|
23054
|
+
"calculatedWidth": [32]
|
23055
|
+
},
|
23056
|
+
"$listeners$": undefined,
|
23057
|
+
"$lazyBundleId$": "-",
|
23058
|
+
"$attrsToReflect$": []
|
23059
|
+
}; }
|
23060
|
+
}
|
23061
|
+
__decorate([
|
23062
|
+
ConstructibleStyle({ cacheKeyProperty: 'calculatedWidth' }),
|
23063
|
+
__metadata("design:type", Object)
|
23064
|
+
], NanoStepBreadcrumb.prototype, "styles", void 0);
|
23065
|
+
|
22763
23066
|
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)}";
|
22764
23067
|
|
22765
23068
|
let id$2 = 0;
|
@@ -22814,12 +23117,12 @@ class NanoTab {
|
|
22814
23117
|
}
|
22815
23118
|
};
|
22816
23119
|
render() {
|
22817
|
-
return (h(Host, { key: '
|
23120
|
+
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: {
|
22818
23121
|
tab: true,
|
22819
23122
|
'tab--active': this.active,
|
22820
23123
|
'tab--disabled': this.disabled,
|
22821
23124
|
'tab--closable': this.closable,
|
22822
|
-
} }, h("slot", { key: '
|
23125
|
+
} }, 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" })))));
|
22823
23126
|
}
|
22824
23127
|
static get style() { return tabCss; }
|
22825
23128
|
static get cmpMeta() { return {
|
@@ -22865,10 +23168,10 @@ class NanoTabContent {
|
|
22865
23168
|
requestAnimationFrame(() => (this.ready = true));
|
22866
23169
|
}
|
22867
23170
|
render() {
|
22868
|
-
return (h(Host, { key: '
|
23171
|
+
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: {
|
22869
23172
|
ready: this.ready,
|
22870
23173
|
'nano-tab-content': true,
|
22871
|
-
} }, h("div", { key: '
|
23174
|
+
} }, h("div", { key: 'c316e2c15458eeb9fb6162d81060b81a1132e795', part: "base", class: "nano-tab-content" }, h("slot", { key: '532eedd714e732749cfe9b303b1f4c633e89491c' }))));
|
22872
23175
|
}
|
22873
23176
|
static get style() { return tabContentCss; }
|
22874
23177
|
static get cmpMeta() { return {
|
@@ -23443,10 +23746,10 @@ class NanoTable {
|
|
23443
23746
|
this.cleanUpObservers();
|
23444
23747
|
}
|
23445
23748
|
render() {
|
23446
|
-
return (h(Host, { key: '
|
23749
|
+
return (h(Host, { key: '3c45a2880bd20a771bcc682355452312340db56d', class: {
|
23447
23750
|
'nano-table': true,
|
23448
23751
|
'nano-table--props-ready': this.propsReady,
|
23449
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
23752
|
+
} }, 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' })));
|
23450
23753
|
}
|
23451
23754
|
static get watchers() { return {
|
23452
23755
|
"compact": ["handleCompactChange"],
|
@@ -24517,8 +24820,8 @@ let Rating$1 = class Rating {
|
|
24517
24820
|
this.handleShowHideElements();
|
24518
24821
|
}
|
24519
24822
|
render() {
|
24520
|
-
return (h(Host, { key: '
|
24521
|
-
h("div", { key: '
|
24823
|
+
return (h(Host, { key: 'cdfbe00c8ce785ad89f711c8488b514dba8f3fb6', class: "nano-more-less" }, h("slot", { key: '8c17f3540c587129feff6905e518e01f4866b90d', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
24824
|
+
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, ")"))),
|
24522
24825
|
!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, ")")))) : (''),
|
24523
24826
|
]));
|
24524
24827
|
}
|
@@ -24739,20 +25042,20 @@ class Rating {
|
|
24739
25042
|
else {
|
24740
25043
|
displayValue = this.isHovering ? this.hoverValue : this.value;
|
24741
25044
|
}
|
24742
|
-
return (h(Host, { key: '
|
25045
|
+
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: () => {
|
24743
25046
|
this.setFocus();
|
24744
|
-
} }), h("div", { key: '
|
25047
|
+
} }), h("div", { key: 'a04e24da1bf879b551f31b3692e990e912739643', class: "rating-wrap" }, h("div", { key: '2686f949da578a7bcdbd3043f131edccc24f0f30', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
|
24745
25048
|
rating: true,
|
24746
25049
|
'rating--readonly': this.readonly,
|
24747
25050
|
'rating--disabled': this.disabled,
|
24748
|
-
}, "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: '
|
25051
|
+
}, "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: {
|
24749
25052
|
rating__symbol: true,
|
24750
25053
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
24751
25054
|
},
|
24752
25055
|
// Users can click the current value to clear the rating. When this happens, we set this.isHovering to
|
24753
25056
|
// false to prevent the hover state from confusing them as they move the mouse out of the control. This
|
24754
25057
|
// extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
|
24755
|
-
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '
|
25058
|
+
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: 'fad1f1de103c1451d848a215c9c7b18084f172ce', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
|
24756
25059
|
clip: this.clip(displayValue),
|
24757
25060
|
} }, counter.map((index) => (h("span", { class: {
|
24758
25061
|
rating__symbol: true,
|
@@ -25024,13 +25327,13 @@ class ResizeObserve {
|
|
25024
25327
|
}
|
25025
25328
|
}
|
25026
25329
|
render() {
|
25027
|
-
return (h(Host, { key: '
|
25330
|
+
return (h(Host, { key: '3d1301e7d8a6c0f96188ea4dadddcc3f71a349cc', class: {
|
25028
25331
|
'nano-resize-observe': true,
|
25029
25332
|
'content-fit-x': this.contentFitX,
|
25030
25333
|
'content-fit-y': this.contentFitY,
|
25031
25334
|
'content-nofit-x': this.contentFitX === false,
|
25032
25335
|
'content-nofit-y': this.contentFitY === false,
|
25033
|
-
} }, h("slot", { key: '
|
25336
|
+
} }, h("slot", { key: '363d69b62debe81c7d3d1790d4dead42538f7118' }), !!this.notifyContentFit &&
|
25034
25337
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
25035
25338
|
this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
|
25036
25339
|
this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
|
@@ -25761,30 +26064,30 @@ class Select {
|
|
25761
26064
|
disabled,
|
25762
26065
|
clearControl: this.clearable,
|
25763
26066
|
}))(this);
|
25764
|
-
return (h(Host, { key: '
|
26067
|
+
return (h(Host, { key: '0648eef02c3e5fc9891e3aee3baa81eae2fc2b5e', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
|
25765
26068
|
'has-value': !!this.value.length || !!this.inputSearchVal.length,
|
25766
26069
|
'has-focus': this.hasFocus,
|
25767
26070
|
'is-invalid': this._invalid === true,
|
25768
26071
|
'is-valid': this._invalid === false,
|
25769
26072
|
'nano-select': true,
|
25770
|
-
} }, h(FormControlWrap, { key: '
|
26073
|
+
} }, h(FormControlWrap, { key: '36dcb0e4ef701eaf17ddf03f8f64cf83dee35b07', ...wrapOptions, class: {
|
25771
26074
|
'has-error': !!this.errorMessage &&
|
25772
26075
|
this.showInlineError &&
|
25773
26076
|
this._invalid === true,
|
25774
26077
|
'has-helper': this.hasHelperSlot,
|
25775
26078
|
'is-open': this.hasOpened,
|
25776
26079
|
masked: this.mask,
|
25777
|
-
} }, h(FormControl, { key: '
|
25778
|
-
this.mask && (h("div", { key: '
|
25779
|
-
h("input", { key: '
|
25780
|
-
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: '
|
26080
|
+
} }, 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 && [
|
26081
|
+
this.mask && (h("div", { key: 'd08b3d345fde15bd92a9d3237c9f0265b39a1cbb', class: "select__mask" }, this.getLabel(this.value))),
|
26082
|
+
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 }),
|
26083
|
+
])), !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) => {
|
25781
26084
|
e.preventDefault();
|
25782
26085
|
this.removeValue(e.detail.value);
|
25783
26086
|
}, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
|
25784
26087
|
// @ts-expect-error - this bubbles from the nano-dropdown
|
25785
26088
|
onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
|
25786
26089
|
this.multiple &&
|
25787
|
-
!!this.inputSearchVal && (h("nano-option", { key: '
|
26090
|
+
!!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 &&
|
25788
26091
|
this.valArray.map((val) => {
|
25789
26092
|
return (h("option", { value: val, selected: true }, val));
|
25790
26093
|
}), !this.allowCustomValues &&
|
@@ -25927,7 +26230,7 @@ let Slide$2 = class Slide {
|
|
25927
26230
|
});
|
25928
26231
|
}
|
25929
26232
|
render() {
|
25930
|
-
return (h(Host, { key: '
|
26233
|
+
return (h(Host, { key: '3d5f03684b14b0944b06802a26955b035ae20a9f', class: "nano-slide" }, h("slot", { key: '5115d41ae13fb0980ae656c106b9105b5f14703b' })));
|
25931
26234
|
}
|
25932
26235
|
static get watchers() { return {
|
25933
26236
|
"ready": ["readyChange"]
|
@@ -28906,15 +29209,15 @@ class Slides {
|
|
28906
29209
|
this.destroyflickity();
|
28907
29210
|
}
|
28908
29211
|
render() {
|
28909
|
-
return (h(Host, { key: '
|
29212
|
+
return (h(Host, { key: '905eab94c6853e11f8103ade8a2711515a957a88', class: "nano-slides" }, h("div", { key: 'a6ca3bf953dc8ad8643b5f196bbbb4cad5696739', class: {
|
28910
29213
|
slideshow: true,
|
28911
29214
|
ready: this.ready,
|
28912
29215
|
'not-ready': !this.ready,
|
28913
|
-
}, part: "base" }, h("div", { key: '
|
29216
|
+
}, part: "base" }, h("div", { key: 'ebf38a42c8c0ee4a192e2c10c7e882f4953cf707', ref: (div) => (this.flickityEl = div), class: {
|
28914
29217
|
'flickity-container': true,
|
28915
29218
|
'slides-ready': this.slidesReady,
|
28916
29219
|
'slides-not-ready': !this.slidesReady,
|
28917
|
-
}, part: "slide-container" }, h("slot", { key: '
|
29220
|
+
}, part: "slide-container" }, h("slot", { key: 'ac8e76e6ee701ef38a73a1f753cbf7ad30ef9c59' })), h("div", { key: 'e74cad0bd4ec8e2e15308b26550a697ff3dd4dcb', class: "ui-extras" }, h("slot", { key: '8b7b6cfb6ba0e531a8c7707f5f65cba334e8eba6', name: "ui" })))));
|
28918
29221
|
}
|
28919
29222
|
static get watchers() { return {
|
28920
29223
|
"options": ["optionsChanged"],
|
@@ -29692,7 +29995,7 @@ class Sortable {
|
|
29692
29995
|
}
|
29693
29996
|
}
|
29694
29997
|
render() {
|
29695
|
-
return (h(Host, { key: '
|
29998
|
+
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' })));
|
29696
29999
|
}
|
29697
30000
|
static get watchers() { return {
|
29698
30001
|
"itemSelector": ["handleItemSelectorChange"],
|
@@ -30691,12 +30994,12 @@ class Sticker {
|
|
30691
30994
|
this.hasBootstrapped = false;
|
30692
30995
|
}
|
30693
30996
|
render() {
|
30694
|
-
return (h(Host, { key: '
|
30997
|
+
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: {
|
30695
30998
|
sticker: true,
|
30696
30999
|
sticky: this.isRootSticker && this.isSticky,
|
30697
31000
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
30698
31001
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
30699
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
31002
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: '1e54d0ebe57b52c95a64acbb6d46f8c9d9778dd3', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: 'e8359edd6c73c5006ff1c90a91ecafad07e5c915' })))));
|
30700
31003
|
}
|
30701
31004
|
static get watchers() { return {
|
30702
31005
|
"trigger": ["updateTriggerOffset"],
|
@@ -30985,10 +31288,10 @@ class Tooltip {
|
|
30985
31288
|
this.popover.destroy();
|
30986
31289
|
}
|
30987
31290
|
render() {
|
30988
|
-
return (h(Host, { key: '
|
31291
|
+
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: {
|
30989
31292
|
tooltip: true,
|
30990
31293
|
'tooltip--open': this.open,
|
30991
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '
|
31294
|
+
}, 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 })))));
|
30992
31295
|
}
|
30993
31296
|
static get watchers() { return {
|
30994
31297
|
"content": ["setLabel"],
|
@@ -31063,6 +31366,8 @@ registerComponents([
|
|
31063
31366
|
NanoInPageNav,
|
31064
31367
|
NanoIncrement,
|
31065
31368
|
NanoOptionBox,
|
31369
|
+
NanoStepAccordion,
|
31370
|
+
NanoStepBreadcrumb,
|
31066
31371
|
NanoTab,
|
31067
31372
|
NanoTabContent,
|
31068
31373
|
NanoTabGroup,
|