@nanoporetech-digital/components 8.0.0-alpha.1 → 8.0.0-alpha.2
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/{algolia-data-CFc_52My.js → algolia-data-CSD3I9WJ.js} +1 -1
- package/dist/cjs/{component-store-DdyLi-VY.js → component-store-DS6c_IIg.js} +1 -1
- package/dist/cjs/{dom-CvQQBdol.js → dom-3kyE_RMm.js} +1 -1
- package/dist/cjs/{fade-Bq3U8uF7.js → fade-C3xL9ihU.js} +3 -3
- package/dist/cjs/{form-control-gUYfW0n-.js → form-control-BVH0tPGy.js} +2 -2
- package/dist/cjs/{fullscreen-Czdw-D-5.js → fullscreen-pHBD1-3e.js} +3 -3
- package/dist/cjs/{index-B76C6Tm9.js → index-IR1lkhwT.js} +153 -132
- package/dist/cjs/{index-ChTXweZN.js → index-yq5hsIxW.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-BpoUFECt.js → lazyload-D2pj9J7r.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-DddxtK2h.js → modal-DZVjwBg8.js} +1 -1
- package/dist/cjs/nano-accordion.cjs.entry.js +3 -3
- package/dist/cjs/nano-alert.cjs.entry.js +7 -7
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +4 -4
- package/dist/cjs/nano-algolia-pagination.cjs.entry.js +2 -2
- package/dist/cjs/nano-algolia-results.cjs.entry.js +3 -3
- package/dist/cjs/nano-algolia.cjs.entry.js +5 -5
- package/dist/cjs/nano-animation.cjs.entry.js +3 -3
- package/dist/cjs/nano-avatar_5.cjs.entry.js +9 -9
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nano-card-carousel.cjs.entry.js +2 -2
- package/dist/cjs/nano-card.cjs.entry.js +1 -1
- package/dist/cjs/nano-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/nano-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +2 -2
- package/dist/cjs/nano-components.cjs.js +3 -3
- package/dist/cjs/nano-content-links.cjs.entry.js +1 -1
- package/dist/cjs/nano-cta.cjs.entry.js +9 -8
- package/dist/cjs/{nano-data-table-BNwDI1rg.js → nano-data-table-BkyqQiTG.js} +5 -5
- package/dist/cjs/nano-data-table.cjs.entry.js +6 -6
- package/dist/cjs/nano-datalist_3.cjs.entry.js +3 -3
- package/dist/cjs/nano-date-input.cjs.entry.js +2 -2
- package/dist/cjs/nano-date-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/nano-details.cjs.entry.js +3 -3
- package/dist/cjs/nano-dialog.cjs.entry.js +8 -8
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +5 -5
- package/dist/cjs/nano-field-validator.cjs.entry.js +3 -3
- package/dist/cjs/nano-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/nano-footer.cjs.entry.js +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +18 -14
- package/dist/cjs/nano-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-hero.cjs.entry.js +2 -2
- package/dist/cjs/nano-icon-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon_3.cjs.entry.js +2 -2
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +3 -3
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +4 -4
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +9 -9
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +3 -3
- package/dist/cjs/nano-more-less.cjs.entry.js +4 -4
- package/dist/cjs/nano-nav-item.cjs.entry.js +5 -5
- package/dist/cjs/nano-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/nano-range.cjs.entry.js +2 -2
- package/dist/cjs/nano-rating.cjs.entry.js +2 -2
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-slide.cjs.entry.js +2 -2
- package/dist/cjs/{nano-slides-Cj4figHV.js → nano-slides-B3-XISfn.js} +6 -6
- package/dist/cjs/nano-slides.cjs.entry.js +3 -3
- package/dist/cjs/nano-sortable.cjs.entry.js +2 -2
- package/dist/cjs/nano-spinner.cjs.entry.js +2 -2
- package/dist/cjs/nano-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/nano-sticker.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab.cjs.entry.js +2 -2
- package/dist/cjs/nano-table.cjs.entry.js +5 -5
- package/dist/cjs/{page-dots-E6b7S4vs.js → page-dots-DHz-mQDL.js} +3 -3
- package/dist/cjs/{renderer-Z8wHFL4e.js → renderer-h0yo23iy.js} +1 -1
- package/dist/cjs/{scroll-DspYj7mY.js → scroll-_aiH0KkA.js} +1 -1
- package/dist/cjs/{slot-B4QUWT-c.js → slot-Hlplqf1Z.js} +1 -1
- package/dist/cjs/{tabbable-YPytg5sg.js → tabbable-CkzmpQhq.js} +1 -1
- package/dist/cjs/{table.worker-bFxUCos7.js → table.worker-NnDnfSFs.js} +6 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/animation/animation.js +4 -1
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/cta/cta.js +8 -11
- package/dist/collection/components/form-control/form-control.js +1 -1
- package/dist/collection/components/global-nav/global-nav.js +35 -14
- package/dist/collection/components/masked-overflow/masked-overflow.css +3 -4
- package/dist/collection/components/masked-overflow/masked-overflow.js +8 -6
- package/dist/collection/components/more-less/more-less.js +6 -3
- package/dist/collection/components/slides/slides.js +1 -1
- package/dist/collection/components/table/table.js +3 -2
- package/dist/components/cta.js +10 -9
- package/dist/components/form-control.js +1 -1
- package/dist/components/masked-overflow.js +5 -5
- package/dist/components/nano-animation.js +1 -1
- package/dist/components/nano-checkbox.js +4 -4
- package/dist/components/nano-global-nav.js +18 -13
- package/dist/components/nano-more-less.js +2 -2
- package/dist/components/nano-table.js +4 -4
- package/dist/esm/{algolia-data-CCqzaIh4.js → algolia-data-D6wnbV__.js} +1 -1
- package/dist/esm/{component-store-C-YnXSQE.js → component-store-CH5BI3Tg.js} +1 -1
- package/dist/esm/{dom-GYcqUAl_.js → dom-Cb7FUtXp.js} +1 -1
- package/dist/esm/{fade-C3aqZinc.js → fade-BTgTGh6q.js} +3 -3
- package/dist/esm/{form-control-BjKTwcqA.js → form-control-BOVGZF9R.js} +2 -2
- package/dist/esm/{fullscreen-T7b44-vN.js → fullscreen-BTpZyXkc.js} +3 -3
- package/dist/esm/{index-DOuz1S3w.js → index-DXvE-U_j.js} +153 -132
- package/dist/esm/{index-DkZY6pJu.js → index-Dw3NZx59.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-BdH0bSmg.js → lazyload-BYoZ43fz.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{modal-s7sHBYzQ.js → modal-B_AxJQQp.js} +1 -1
- package/dist/esm/nano-accordion.entry.js +3 -3
- package/dist/esm/nano-alert.entry.js +7 -7
- package/dist/esm/nano-algolia-filter.entry.js +4 -4
- package/dist/esm/nano-algolia-pagination.entry.js +2 -2
- package/dist/esm/nano-algolia-results.entry.js +3 -3
- package/dist/esm/nano-algolia.entry.js +5 -5
- package/dist/esm/nano-animation.entry.js +3 -3
- package/dist/esm/nano-avatar_5.entry.js +9 -9
- package/dist/esm/nano-breadcrumb.entry.js +1 -1
- package/dist/esm/nano-card-carousel.entry.js +2 -2
- package/dist/esm/nano-card.entry.js +1 -1
- package/dist/esm/nano-checkbox-group.entry.js +2 -2
- package/dist/esm/nano-checkbox.entry.js +6 -6
- package/dist/esm/nano-collapsible-comparison.entry.js +2 -2
- package/dist/esm/nano-components.js +4 -4
- package/dist/esm/nano-content-links.entry.js +1 -1
- package/dist/esm/nano-cta.entry.js +9 -8
- package/dist/esm/{nano-data-table-Bm9J8Phu.js → nano-data-table-DDBCyBmN.js} +5 -5
- package/dist/esm/nano-data-table.entry.js +6 -6
- package/dist/esm/nano-datalist_3.entry.js +3 -3
- package/dist/esm/nano-date-input.entry.js +2 -2
- package/dist/esm/nano-date-picker_2.entry.js +4 -4
- package/dist/esm/nano-details.entry.js +3 -3
- package/dist/esm/nano-dialog.entry.js +8 -8
- package/dist/esm/nano-dropdown_2.entry.js +5 -5
- package/dist/esm/nano-field-validator.entry.js +3 -3
- package/dist/esm/nano-file-upload.entry.js +2 -2
- package/dist/esm/nano-footer.entry.js +1 -1
- package/dist/esm/nano-global-nav.entry.js +18 -14
- package/dist/esm/nano-grid-item.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +2 -2
- package/dist/esm/nano-hero.entry.js +2 -2
- package/dist/esm/nano-icon-item.entry.js +1 -1
- package/dist/esm/nano-icon_3.entry.js +2 -2
- package/dist/esm/nano-in-page-nav.entry.js +3 -3
- package/dist/esm/nano-intersection-observe.entry.js +4 -4
- package/dist/esm/nano-masked-overflow.entry.js +9 -9
- package/dist/esm/nano-menu-drawer.entry.js +3 -3
- package/dist/esm/nano-more-less.entry.js +4 -4
- package/dist/esm/nano-nav-item.entry.js +5 -5
- package/dist/esm/nano-progress-bar.entry.js +2 -2
- package/dist/esm/nano-range.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +2 -2
- package/dist/esm/nano-resize-observe_2.entry.js +2 -2
- package/dist/esm/nano-slide.entry.js +2 -2
- package/dist/esm/{nano-slides-BEE7xEu_.js → nano-slides-CvZxKg4X.js} +6 -6
- package/dist/esm/nano-slides.entry.js +3 -3
- package/dist/esm/nano-sortable.entry.js +2 -2
- package/dist/esm/nano-spinner.entry.js +2 -2
- package/dist/esm/nano-split-pane.entry.js +2 -2
- package/dist/esm/nano-sticker.entry.js +4 -4
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab-group.entry.js +4 -4
- package/dist/esm/nano-tab.entry.js +2 -2
- package/dist/esm/nano-table.entry.js +5 -5
- package/dist/esm/{page-dots-D2WI1eZ0.js → page-dots-_tkpExQM.js} +3 -3
- package/dist/esm/{renderer-CnE0Hztu.js → renderer-BUaAsDso.js} +1 -1
- package/dist/esm/{scroll-DHa1CIPP.js → scroll-iCYjzh9N.js} +1 -1
- package/dist/esm/{slot-lixS0pd2.js → slot-DYFgWo5f.js} +1 -1
- package/dist/esm/{tabbable-QmV19K7Q.js → tabbable-C4l-rYq9.js} +1 -1
- package/dist/esm/{table.worker-zeRR3oed.js → table.worker-webIEBZt.js} +6 -6
- package/dist/nano-components/{algolia-data-CCqzaIh4.js → algolia-data-D6wnbV__.js} +1 -1
- package/dist/nano-components/{component-store-C-YnXSQE.js → component-store-CH5BI3Tg.js} +1 -1
- package/dist/nano-components/{dom-GYcqUAl_.js → dom-Cb7FUtXp.js} +1 -1
- package/dist/nano-components/{fade-C3aqZinc.js → fade-BTgTGh6q.js} +1 -1
- package/dist/nano-components/form-control-BOVGZF9R.js +4 -0
- package/dist/nano-components/{fullscreen-T7b44-vN.js → fullscreen-BTpZyXkc.js} +1 -1
- package/dist/nano-components/index-DXvE-U_j.js +5 -0
- package/dist/nano-components/{index-DkZY6pJu.js → index-Dw3NZx59.js} +1 -1
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/{lazyload-BdH0bSmg.js → lazyload-BYoZ43fz.js} +1 -1
- package/dist/nano-components/{modal-s7sHBYzQ.js → modal-B_AxJQQp.js} +1 -1
- package/dist/nano-components/nano-accordion.entry.js +1 -1
- package/dist/nano-components/nano-alert.entry.js +1 -1
- package/dist/nano-components/nano-algolia-filter.entry.js +1 -1
- package/dist/nano-components/nano-algolia-pagination.entry.js +1 -1
- package/dist/nano-components/nano-algolia-results.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-animation.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-card-carousel.entry.js +1 -1
- package/dist/nano-components/nano-card.entry.js +1 -1
- package/dist/nano-components/nano-checkbox-group.entry.js +1 -1
- package/dist/nano-components/nano-checkbox.entry.js +1 -1
- package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
- package/dist/nano-components/nano-components.css +1 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-content-links.entry.js +1 -1
- package/dist/nano-components/nano-cta.entry.js +1 -1
- package/dist/nano-components/{nano-data-table-Bm9J8Phu.js → nano-data-table-DDBCyBmN.js} +1 -1
- package/dist/nano-components/nano-data-table.entry.js +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-date-input.entry.js +1 -1
- package/dist/nano-components/nano-date-picker_2.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-dialog.entry.js +1 -1
- package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
- package/dist/nano-components/nano-field-validator.entry.js +1 -1
- package/dist/nano-components/nano-file-upload.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-item.entry.js +1 -1
- package/dist/nano-components/nano-icon_3.entry.js +1 -1
- package/dist/nano-components/nano-in-page-nav.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-nav-item.entry.js +1 -1
- package/dist/nano-components/nano-progress-bar.entry.js +1 -1
- package/dist/nano-components/nano-range.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe_2.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-BEE7xEu_.js → nano-slides-CvZxKg4X.js} +4 -4
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js +1 -1
- package/dist/nano-components/nano-spinner.entry.js +1 -1
- package/dist/nano-components/nano-split-pane.entry.js +1 -1
- package/dist/nano-components/nano-sticker.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.entry.js +1 -1
- package/dist/nano-components/nano-tab-group.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-D2WI1eZ0.js → page-dots-_tkpExQM.js} +1 -1
- package/dist/nano-components/{renderer-CnE0Hztu.js → renderer-BUaAsDso.js} +1 -1
- package/dist/nano-components/{scroll-DHa1CIPP.js → scroll-iCYjzh9N.js} +1 -1
- package/dist/nano-components/{slot-lixS0pd2.js → slot-DYFgWo5f.js} +1 -1
- package/dist/nano-components/{tabbable-QmV19K7Q.js → tabbable-C4l-rYq9.js} +1 -1
- package/dist/nano-components/table.worker-webIEBZt.js +4 -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/dark.css +1 -1
- package/dist/style/dark.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/animation/animation.d.ts +3 -0
- package/dist/types/components/cta/cta.d.ts +0 -2
- package/dist/types/components/global-nav/global-nav.d.ts +4 -2
- package/dist/types/components/masked-overflow/masked-overflow.d.ts +4 -2
- package/dist/types/components/more-less/more-less.d.ts +4 -1
- package/dist/types/components/slides/slides-interface.d.ts +1 -1
- package/dist/types/components.d.ts +40 -16
- package/docs-json.json +61 -15
- package/docs-vscode.json +2 -2
- package/hydrate/index.js +170 -147
- package/hydrate/index.mjs +170 -147
- package/package.json +3 -3
- package/dist/nano-components/form-control-BjKTwcqA.js +0 -4
- package/dist/nano-components/index-DOuz1S3w.js +0 -5
- package/dist/nano-components/table.worker-zeRR3oed.js +0 -4
@@ -23,7 +23,7 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
23
23
|
}
|
24
24
|
set slotWrapper(value) {
|
25
25
|
this._slotWrapper = value;
|
26
|
-
this.hasLabel = !!value
|
26
|
+
this.hasLabel = !!value?.querySelectorAll('*').length || !!this.label;
|
27
27
|
}
|
28
28
|
get host() { return this; }
|
29
29
|
inputType = 'checkbox';
|
@@ -231,7 +231,7 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
231
231
|
}
|
232
232
|
render() {
|
233
233
|
const labelId = this.inputId + '-lbl';
|
234
|
-
return (h(Host, { key: '
|
234
|
+
return (h(Host, { key: 'd1c462c6850bad6dd37696c1edc61d1413613908' }, h("label", { key: 'e45bce2bffd58378e79606d848b8dc4b2a023fb2', class: {
|
235
235
|
nanocb: true,
|
236
236
|
'nanocb--checked': this.checked,
|
237
237
|
'nanocb--invalid': this.invalid,
|
@@ -239,11 +239,11 @@ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLEle
|
|
239
239
|
'nanocb--focused': this.hasFocus,
|
240
240
|
'nanocb--indeterminate': this.indeterminate,
|
241
241
|
['nanocb__' + this.type]: true,
|
242
|
-
}, htmlFor: this.inputId }, h("input", { key: '
|
242
|
+
}, htmlFor: this.inputId }, h("input", { key: '732c982c1613eed2075857fff33a869378ce2356', type: this.inputType, name: this.name, form: this.form, required: this.required, checked: this.checked, disabled: this.disabled, value: this.value, "aria-labelledby": this.hasLabel ? labelId : undefined, onBlur: this.handleBlur, onFocus: this.handleFocus, onChange: this.handleChange, ref: (input) => (this.input = input), id: this.inputId, onInvalid: this.handleInvalid }), h("span", { key: '7299bc0cca8ea4230d4317ad1a5e9ec5c72fd58d', class: 'nanocb__input' }), this.hasLabel && (h("div", { key: 'daa0fd8b2b63796e96ea40e843390ca62c41c968', id: labelId, class: {
|
243
243
|
nanocb__label: true,
|
244
244
|
[`nanocb__label--${this.type}`]: true,
|
245
245
|
'nanocb__label--hidden': this.hideLabel,
|
246
|
-
} }, this.label && !!this.label.length && h("span", { key: '
|
246
|
+
} }, this.label && !!this.label.length && h("span", { key: 'cdcdf9528ee8f39f22ddd9f61c490d4c02f910e4' }, this.label), h("span", { key: '021ecfc889a1bc89df711343cad337d847d93191', hidden: this.label && !!this.label.length, ref: (s) => (this.slotWrapper = s) }, h("slot", { key: 'da6bb8cfd800f4f423aaa7be538b1e33af73f5bc' })))))));
|
247
247
|
}
|
248
248
|
static get watchers() { return {
|
249
249
|
"checked": ["handleCheckedChange"],
|
@@ -56,9 +56,13 @@ const GlobalNav = /*@__PURE__*/ proxyCustomElement(class GlobalNav extends HTMLE
|
|
56
56
|
cartCount = 0;
|
57
57
|
/** MyAccount un-read message count. */
|
58
58
|
msgCount = 0;
|
59
|
-
/** Manually
|
60
|
-
async
|
61
|
-
this.overflowOpen =
|
59
|
+
/** Manually open the overflow menu */
|
60
|
+
async openOverflowMenu() {
|
61
|
+
this.overflowOpen = true;
|
62
|
+
}
|
63
|
+
/** Manually close the overflow menu */
|
64
|
+
async closeOverflowMenu() {
|
65
|
+
this.overflowOpen = false;
|
62
66
|
}
|
63
67
|
/// MY-ACCOUNT - start ///
|
64
68
|
/** A base url to retrieve global nav / sso data. `nav_bar_data.json` will be appended to this url */
|
@@ -485,20 +489,20 @@ const GlobalNav = /*@__PURE__*/ proxyCustomElement(class GlobalNav extends HTMLE
|
|
485
489
|
}
|
486
490
|
render() {
|
487
491
|
const bpps = this.bpPartials;
|
488
|
-
return (h(Host, { key: '
|
492
|
+
return (h(Host, { key: '184e0e7a9468ebb9d60cfac752d955358a4fe0fe', class: {
|
489
493
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
490
494
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
491
495
|
'nano-global-nav': true,
|
492
|
-
} }, h("div", { key: '
|
496
|
+
} }, h("div", { key: '8eaa12e98b9a38721b9f03e2d646d20add74b3e6', class: {
|
493
497
|
gn: true,
|
494
498
|
'gn__search-open': this.searchBarShown,
|
495
|
-
} }, h("nano-drawer", { key: '
|
499
|
+
} }, h("nano-drawer", { key: 'b874e6c5aa026ed4c266601c52d41859857f38b5', 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: '29e9160530cb0bfbc335cbae26a22a4a3fecdff7', class: "gn__drawer-header", part: "overflow-header", slot: "label" }, "Main menu"), h("nav", { key: '0b09f539037bd906065f5cf2cc6e806173d97b66', class: "gn__drawer-menu", part: "overflow-menu" }, this.breakpoint > bpps.mainMenu.breakpoint
|
496
500
|
? bpps.mainMenu.tpl()
|
497
|
-
: '', h("slot", { key: '
|
501
|
+
: '', h("slot", { key: '197989ea9849d9143024538c26b2678c6220e6d4', name: "overflow" }))), h("div", { key: 'ce2b19cb76ff12eda8c4589ac188749ba3684c9f', class: "gn__menu-bar-wrapper" }, h("div", { key: '11c7745248090f0163a2a505fb5a20f56fdd11d2', class: "gn__menu-bar", part: "menu-bar", ref: (el) => (this.mainMenuBar = el) }, h("nav", { key: 'a797355c5204357100884bf865d5ffb58967028e', 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: '0bf6477cd3dac4dd6cb0f55dd3ff3a313b55fb84', class: "gn__overflow-button", iconName: "light/bars", label: "Open Menu", onClick: () => this.overflowMenu.show() })), h("slot", { key: '8dbb4a02f736efcddc019aa602953ff41c5eb15e', name: "logo" }, h("a", { key: '5d60a835f364ada7ae8d8ee7b608df9b75443c26', 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,
|
498
502
|
(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,
|
499
|
-
(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: '
|
503
|
+
(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: '4270c5dc3e334ca906debe763771acc1dc4dd82b', class: "gn__main-menu-links" }, bpps.mainMenu.tpl())), h("div", { key: '7f39cd0f1338a1124a6c59c18774c62d7b3e36e7', class: "gn__main-menu-actions" }, h("nano-dropdown", { key: '503d51cd5f72ad19203bab7939230f8f7a7f4bd3', 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: '0a82c9022cb41265d8cb969057404ad32d7179f2', class: "gn__search-button", slot: "trigger", iconName: "light/magnifying-glass", label: "Search" }), !!this.searchIndices.length && (h("form", { key: 'ee9b0742d2e8e6c3e51d35de68141bedb3677081', ref: (form) => (this.searchForm = form), class: "gn__search-form", part: "search-form", onSubmit: this.onSearchSubmit }, this.searchIndices.length > 1 && (h("nano-select", { key: 'df0da7c60f0ced0d52eeb84360a7215d7247a5e7', 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: '83bdee0aca807f594505c657a4b1aeaabdb8a3d0', ref: (ele) => (this.searchInput = ele), part: "search-input", label: "Search Oxford Nanopore Technologies", placeholder: "Search Oxford Nanopore...", hideLabel: true, clearable: true, onNanoChange: (e) => {
|
500
504
|
this.handleSearchTermChangeEvent(e.detail.value);
|
501
|
-
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '
|
505
|
+
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '2f7a3e620d015b8d56044d048ed49ee6a6e29ba4', slot: "end", name: "light/magnifying-glass" }), h("nano-datalist", { key: '528da1d7293b7589ce34a00007e83cf00ac71547', class: "gn__search-results", onNanoSelect: (e) => e.preventDefault(), dropDownConfig: { tetherTo: this.searchForm }, disableFilter: true }, this.searchLoading && (h("div", { key: 'f1556946842927cd1aa65a97346bc3ce1886311e', slot: "no-result", class: "gn__search-loading" }, h("nano-spinner", { key: 'b7d9e741bdbcde586cb1734961b628de31aca103' }, "Searching..."))), this.noResultPartial(), !!this.autocompleteResults?.hits.length && [
|
502
506
|
this.autocompleteResults.hits.map((hit, i) => (h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
503
507
|
searchInsight.sendClick({
|
504
508
|
index: this.activeIndex.index,
|
@@ -508,10 +512,10 @@ const GlobalNav = /*@__PURE__*/ proxyCustomElement(class GlobalNav extends HTMLE
|
|
508
512
|
positions: [i + 1],
|
509
513
|
});
|
510
514
|
} }, h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
511
|
-
h("nano-option", { key: '
|
512
|
-
]))))), h("div", { key: '
|
515
|
+
h("nano-option", { key: '88e617068d30bfa4ca09f6b122109d9a3539088b', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
516
|
+
]))))), h("div", { key: 'acceaf54481ab87951bbd9384f079c9d37fa0663', class: "gn__cart" }, h("nano-icon-button", { key: '6bed2b6a26492c9e7e4fe205b9ef94845360327d', iconName: "light/cart-shopping", label: "View your cart", href: this.cartUrl }), !!this.cartCount && (h("nano-badge", { key: '4034d7828876c1237b1869abeb977e258d55006b', theme: "danger", strength: "2" }, this.cartCount > 9 ? '9+' : this.cartCount))), this.breakpoint <= bpps.contact.breakpoint
|
513
517
|
? bpps.contact.tpl()
|
514
|
-
: '', this.isLoggedIn ? (h("nano-dropdown", { dialogTitle: "User menu", class: "gn__user-dropdown", distance: 10, placement: "bottom-end" }, h("button", { slot: "trigger", class: "gn__user-dropdown-trigger" }, h("nano-icon", { name: "light/user" }), h("nano-icon", { name: "light/chevron-down", class: "gn__user-dropdown-chevron" }), !!this.msgCount && (h("nano-badge", { theme: "danger", strength: "2" }, this.msgCount > 9 ? '9+' : this.msgCount))), this.loggedInPanel())) : (h("nano-cta", { secondary: true, size: "small", icon: "false", class: "gn__login-cta" }, h("a", { href: this.formatLoginLink(this.loginUrl) }, "Login"))))))), h("div", { key: '
|
518
|
+
: '', this.isLoggedIn ? (h("nano-dropdown", { dialogTitle: "User menu", class: "gn__user-dropdown", distance: 10, placement: "bottom-end" }, h("button", { slot: "trigger", class: "gn__user-dropdown-trigger" }, h("nano-icon", { name: "light/user" }), h("nano-icon", { name: "light/chevron-down", class: "gn__user-dropdown-chevron" }), !!this.msgCount && (h("nano-badge", { theme: "danger", strength: "2" }, this.msgCount > 9 ? '9+' : this.msgCount))), this.loggedInPanel())) : (h("nano-cta", { secondary: true, size: "small", icon: "false", class: "gn__login-cta" }, h("a", { href: this.formatLoginLink(this.loginUrl) }, "Login"))))))), h("div", { key: 'f52e45cccc15b745f54978bc140816847dc66560', class: "gn__site", part: "site-wrapper" }, h("nano-global-search-results", { key: '0dd16b2bb789a66f3ef5b214ea54609aedad3ae4', part: "site-search-results" }, h("slot", { key: '3a86b5ee10f5da29d3da8d06b2b6ad36f27e725c' }))))));
|
515
519
|
}
|
516
520
|
static get assetsDirs() { return ["assets"]; }
|
517
521
|
static get watchers() { return {
|
@@ -546,7 +550,8 @@ const GlobalNav = /*@__PURE__*/ proxyCustomElement(class GlobalNav extends HTMLE
|
|
546
550
|
"searchBarShown": [32],
|
547
551
|
"searchLoading": [32],
|
548
552
|
"_searchValue": [32],
|
549
|
-
"
|
553
|
+
"openOverflowMenu": [64],
|
554
|
+
"closeOverflowMenu": [64],
|
550
555
|
"submitSearch": [64]
|
551
556
|
}, undefined, {
|
552
557
|
"myAccountUrl": ["handleMyAccountUrl"],
|
@@ -54,8 +54,8 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class Rating extends HTMLElement
|
|
54
54
|
this.handleShowHideElements();
|
55
55
|
}
|
56
56
|
render() {
|
57
|
-
return (h(Host, { key: '
|
58
|
-
h("div", { key: '
|
57
|
+
return (h(Host, { key: '49834d5d379bcc71bfd228cbad3becf4343160ac', class: "nano-more-less" }, h("slot", { key: '4cbea5f74ddd512cacfc2c65c35ce0cd9fbfee00', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
58
|
+
h("div", { key: 'd8b9b8135f3789705f18793dd8262bcebb38f2cb', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '564f67099d59d520fbf9a5c40f6f14e681346eff', name: "less" }, h("button", { key: 'a5aa9c0a0eda6b6dda1c72288b18668d4028eec5', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
|
59
59
|
!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, ")")))) : (''),
|
60
60
|
]));
|
61
61
|
}
|
@@ -9,7 +9,7 @@ import { d as defineCustomElement$4 } from './icon-button.js';
|
|
9
9
|
import { d as defineCustomElement$3 } from './masked-overflow.js';
|
10
10
|
import { d as defineCustomElement$2 } from './tooltip.js';
|
11
11
|
|
12
|
-
const tableCss = "
|
12
|
+
const tableCss = ".sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{box-sizing:border-box}[hidden].sc-nano-table{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{box-sizing:border-box}[hidden].sc-nano-table{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-table-h,*.sc-nano-table,*.sc-nano-table::before,*.sc-nano-table::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}";
|
13
13
|
|
14
14
|
const NanoTable$1 = /*@__PURE__*/ proxyCustomElement(class NanoTable extends HTMLElement {
|
15
15
|
get host() { return this; }
|
@@ -229,17 +229,17 @@ const NanoTable$1 = /*@__PURE__*/ proxyCustomElement(class NanoTable extends HTM
|
|
229
229
|
this.cleanUpObservers();
|
230
230
|
}
|
231
231
|
render() {
|
232
|
-
return (h(Host, { key: '
|
232
|
+
return (h(Host, { key: '3c45a2880bd20a771bcc682355452312340db56d', class: {
|
233
233
|
'nano-table': true,
|
234
234
|
'nano-table--props-ready': this.propsReady,
|
235
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
235
|
+
} }, 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' })));
|
236
236
|
}
|
237
237
|
static get watchers() { return {
|
238
238
|
"compact": ["handleCompactChange"],
|
239
239
|
"hideCaption": ["handleHideCaptionChange"]
|
240
240
|
}; }
|
241
241
|
static get style() { return tableCss; }
|
242
|
-
}, [
|
242
|
+
}, [6, "nano-table", {
|
243
243
|
"compact": [520],
|
244
244
|
"scrollable": [516],
|
245
245
|
"hideCaption": [516, "hide-caption"],
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { a as getElement } from './index-
|
4
|
+
import { a as getElement } from './index-DXvE-U_j.js';
|
5
5
|
import { d as debounce } from './throttle-C93FMm2Z.js';
|
6
6
|
|
7
7
|
function parse(searchParams, replacer) {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { F as Flickity, u as utils } from './nano-slides-
|
5
|
-
import './index-
|
6
|
-
import './renderer-
|
4
|
+
import { F as Flickity, u as utils } from './nano-slides-CvZxKg4X.js';
|
5
|
+
import './index-DXvE-U_j.js';
|
6
|
+
import './renderer-BUaAsDso.js';
|
7
7
|
|
8
8
|
const Slide = Flickity.Slide;
|
9
9
|
const slideUpdateTarget = Slide.prototype.updateTarget;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { h } from './renderer-
|
4
|
+
import { h } from './renderer-BUaAsDso.js';
|
5
5
|
|
6
6
|
const renderLabel = ({ label, hasLabelSlot, controlId, labelId, floatLabel, placeholder, alwaysShowPlaceholder, hideLabel, hasValue, rtl, showCharCount, maxlength, charCount, }) => {
|
7
7
|
if (!label && !hasLabelSlot)
|
@@ -35,7 +35,7 @@ const FormControlWrap = (props, children) => {
|
|
35
35
|
'has-float-label': label !== null && floatLabel,
|
36
36
|
'has-helper-end': hasHelperEndSlot,
|
37
37
|
rtl,
|
38
|
-
[props.class]:
|
38
|
+
[props.class]: !!props.class,
|
39
39
|
} },
|
40
40
|
h("div", { class: "form-ctrl__wrapper" },
|
41
41
|
!floatLabel ? renderLabel({ ...props }) : '',
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { F as Flickity } from './nano-slides-
|
5
|
-
import './index-
|
6
|
-
import './renderer-
|
4
|
+
import { F as Flickity } from './nano-slides-CvZxKg4X.js';
|
5
|
+
import './index-DXvE-U_j.js';
|
6
|
+
import './renderer-BUaAsDso.js';
|
7
7
|
|
8
8
|
Flickity.createMethods.push('_createFullscreen');
|
9
9
|
const proto = Flickity.prototype;
|
@@ -10,7 +10,7 @@ const globalScripts = appGlobalScript;
|
|
10
10
|
const globalStyles = "";
|
11
11
|
|
12
12
|
/*
|
13
|
-
Stencil Client Platform v4.35.1-dev.
|
13
|
+
Stencil Client Platform v4.35.1-dev.1750682262.1ce9541 | MIT Licensed | https://stenciljs.com
|
14
14
|
*/
|
15
15
|
var __defProp = Object.defineProperty;
|
16
16
|
var __export = (target, all) => {
|
@@ -1154,6 +1154,115 @@ var uniqueTime = (key, measureText) => {
|
|
1154
1154
|
};
|
1155
1155
|
}
|
1156
1156
|
};
|
1157
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
1158
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
1159
|
+
let style = styles.get(scopeId2);
|
1160
|
+
if (supportsConstructableStylesheets && allowCS) {
|
1161
|
+
style = style || new CSSStyleSheet();
|
1162
|
+
if (typeof style === "string") {
|
1163
|
+
style = cssText;
|
1164
|
+
} else {
|
1165
|
+
style.replaceSync(cssText);
|
1166
|
+
}
|
1167
|
+
} else {
|
1168
|
+
style = cssText;
|
1169
|
+
}
|
1170
|
+
styles.set(scopeId2, style);
|
1171
|
+
};
|
1172
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
1173
|
+
var _a;
|
1174
|
+
const scopeId2 = getScopeId(cmpMeta);
|
1175
|
+
const style = styles.get(scopeId2);
|
1176
|
+
if (!win.document) {
|
1177
|
+
return scopeId2;
|
1178
|
+
}
|
1179
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
1180
|
+
if (style) {
|
1181
|
+
if (typeof style === "string") {
|
1182
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
1183
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
1184
|
+
let styleElm;
|
1185
|
+
if (!appliedStyles) {
|
1186
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
1187
|
+
}
|
1188
|
+
if (!appliedStyles.has(scopeId2)) {
|
1189
|
+
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
1190
|
+
styleElm.innerHTML = style;
|
1191
|
+
} else {
|
1192
|
+
styleElm = win.document.createElement("style");
|
1193
|
+
styleElm.innerHTML = style;
|
1194
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
1195
|
+
if (nonce != null) {
|
1196
|
+
styleElm.setAttribute("nonce", nonce);
|
1197
|
+
}
|
1198
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
1199
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
1200
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
1201
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
1202
|
+
styleContainerNode.insertBefore(
|
1203
|
+
styleElm,
|
1204
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
1205
|
+
);
|
1206
|
+
} else if ("host" in styleContainerNode) {
|
1207
|
+
if (supportsConstructableStylesheets) {
|
1208
|
+
const stylesheet = new CSSStyleSheet();
|
1209
|
+
stylesheet.replaceSync(style);
|
1210
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
1211
|
+
} else {
|
1212
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
1213
|
+
if (existingStyleContainer) {
|
1214
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
1215
|
+
} else {
|
1216
|
+
styleContainerNode.prepend(styleElm);
|
1217
|
+
}
|
1218
|
+
}
|
1219
|
+
} else {
|
1220
|
+
styleContainerNode.append(styleElm);
|
1221
|
+
}
|
1222
|
+
}
|
1223
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
1224
|
+
styleContainerNode.insertBefore(styleElm, null);
|
1225
|
+
}
|
1226
|
+
}
|
1227
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
1228
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
1229
|
+
}
|
1230
|
+
if (appliedStyles) {
|
1231
|
+
appliedStyles.add(scopeId2);
|
1232
|
+
}
|
1233
|
+
}
|
1234
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
1235
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
1236
|
+
}
|
1237
|
+
}
|
1238
|
+
return scopeId2;
|
1239
|
+
};
|
1240
|
+
var attachStyles = (hostRef) => {
|
1241
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
1242
|
+
const elm = hostRef.$hostElement$;
|
1243
|
+
const flags = cmpMeta.$flags$;
|
1244
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
1245
|
+
const scopeId2 = addStyle(
|
1246
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
1247
|
+
cmpMeta);
|
1248
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
1249
|
+
elm["s-sc"] = scopeId2;
|
1250
|
+
elm.classList.add(scopeId2 + "-h");
|
1251
|
+
}
|
1252
|
+
endAttachStyles();
|
1253
|
+
};
|
1254
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
1255
|
+
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
1256
|
+
var hydrateScopedToShadow = () => {
|
1257
|
+
if (!win.document) {
|
1258
|
+
return;
|
1259
|
+
}
|
1260
|
+
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
1261
|
+
let i2 = 0;
|
1262
|
+
for (; i2 < styles2.length; i2++) {
|
1263
|
+
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
1264
|
+
}
|
1265
|
+
};
|
1157
1266
|
var h = (nodeName, vnodeData, ...children) => {
|
1158
1267
|
let child = null;
|
1159
1268
|
let key = null;
|
@@ -1265,115 +1374,6 @@ var convertToPrivate = (node) => {
|
|
1265
1374
|
vnode.$name$ = node.vname;
|
1266
1375
|
return vnode;
|
1267
1376
|
};
|
1268
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
1269
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
1270
|
-
let style = styles.get(scopeId2);
|
1271
|
-
if (supportsConstructableStylesheets && allowCS) {
|
1272
|
-
style = style || new CSSStyleSheet();
|
1273
|
-
if (typeof style === "string") {
|
1274
|
-
style = cssText;
|
1275
|
-
} else {
|
1276
|
-
style.replaceSync(cssText);
|
1277
|
-
}
|
1278
|
-
} else {
|
1279
|
-
style = cssText;
|
1280
|
-
}
|
1281
|
-
styles.set(scopeId2, style);
|
1282
|
-
};
|
1283
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
1284
|
-
var _a;
|
1285
|
-
const scopeId2 = getScopeId(cmpMeta);
|
1286
|
-
const style = styles.get(scopeId2);
|
1287
|
-
if (!win.document) {
|
1288
|
-
return scopeId2;
|
1289
|
-
}
|
1290
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
1291
|
-
if (style) {
|
1292
|
-
if (typeof style === "string") {
|
1293
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
1294
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
1295
|
-
let styleElm;
|
1296
|
-
if (!appliedStyles) {
|
1297
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
1298
|
-
}
|
1299
|
-
if (!appliedStyles.has(scopeId2)) {
|
1300
|
-
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
1301
|
-
styleElm.innerHTML = style;
|
1302
|
-
} else {
|
1303
|
-
styleElm = win.document.createElement("style");
|
1304
|
-
styleElm.innerHTML = style;
|
1305
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
1306
|
-
if (nonce != null) {
|
1307
|
-
styleElm.setAttribute("nonce", nonce);
|
1308
|
-
}
|
1309
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
1310
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
1311
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
1312
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
1313
|
-
styleContainerNode.insertBefore(
|
1314
|
-
styleElm,
|
1315
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
1316
|
-
);
|
1317
|
-
} else if ("host" in styleContainerNode) {
|
1318
|
-
if (supportsConstructableStylesheets) {
|
1319
|
-
const stylesheet = new CSSStyleSheet();
|
1320
|
-
stylesheet.replaceSync(style);
|
1321
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
1322
|
-
} else {
|
1323
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
1324
|
-
if (existingStyleContainer) {
|
1325
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
1326
|
-
} else {
|
1327
|
-
styleContainerNode.prepend(styleElm);
|
1328
|
-
}
|
1329
|
-
}
|
1330
|
-
} else {
|
1331
|
-
styleContainerNode.append(styleElm);
|
1332
|
-
}
|
1333
|
-
}
|
1334
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
1335
|
-
styleContainerNode.insertBefore(styleElm, null);
|
1336
|
-
}
|
1337
|
-
}
|
1338
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
1339
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
1340
|
-
}
|
1341
|
-
if (appliedStyles) {
|
1342
|
-
appliedStyles.add(scopeId2);
|
1343
|
-
}
|
1344
|
-
}
|
1345
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
1346
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
1347
|
-
}
|
1348
|
-
}
|
1349
|
-
return scopeId2;
|
1350
|
-
};
|
1351
|
-
var attachStyles = (hostRef) => {
|
1352
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
1353
|
-
const elm = hostRef.$hostElement$;
|
1354
|
-
const flags = cmpMeta.$flags$;
|
1355
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
1356
|
-
const scopeId2 = addStyle(
|
1357
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
1358
|
-
cmpMeta);
|
1359
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
1360
|
-
elm["s-sc"] = scopeId2;
|
1361
|
-
elm.classList.add(scopeId2 + "-h");
|
1362
|
-
}
|
1363
|
-
endAttachStyles();
|
1364
|
-
};
|
1365
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
1366
|
-
var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
|
1367
|
-
var hydrateScopedToShadow = () => {
|
1368
|
-
if (!win.document) {
|
1369
|
-
return;
|
1370
|
-
}
|
1371
|
-
const styles2 = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
1372
|
-
let i2 = 0;
|
1373
|
-
for (; i2 < styles2.length; i2++) {
|
1374
|
-
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
1375
|
-
}
|
1376
|
-
};
|
1377
1377
|
|
1378
1378
|
// src/runtime/client-hydrate.ts
|
1379
1379
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
@@ -1441,8 +1441,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1441
1441
|
}
|
1442
1442
|
} else if (((_b = childRenderNode.$tag$) == null ? void 0 : _b.toString().includes("-")) && !childRenderNode.$elm$.shadowRoot) {
|
1443
1443
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
1444
|
-
const scopeId3 = getScopeId(
|
1445
|
-
|
1444
|
+
const scopeId3 = getScopeId(
|
1445
|
+
cmpMeta.$cmpMeta$);
|
1446
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
1446
1447
|
if (styleSheet) {
|
1447
1448
|
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
1448
1449
|
}
|
@@ -1491,11 +1492,13 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1491
1492
|
if (!hosts[slottedItem.hostId]) continue;
|
1492
1493
|
const hostEle = hosts[slottedItem.hostId];
|
1493
1494
|
if (!hostEle.shadowRoot || !shadowRoot) {
|
1494
|
-
slottedItem.slot["s-cr"]
|
1495
|
-
|
1496
|
-
slottedItem.slot["s-cr"]
|
1497
|
-
|
1498
|
-
|
1495
|
+
if (!slottedItem.slot["s-cr"]) {
|
1496
|
+
slottedItem.slot["s-cr"] = hostEle["s-cr"];
|
1497
|
+
if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
|
1498
|
+
slottedItem.slot["s-cr"] = hostEle;
|
1499
|
+
} else {
|
1500
|
+
slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
|
1501
|
+
}
|
1499
1502
|
}
|
1500
1503
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
|
1501
1504
|
{
|
@@ -1507,12 +1510,10 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1507
1510
|
}
|
1508
1511
|
}
|
1509
1512
|
}
|
1510
|
-
if (scopeId2) {
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
});
|
1515
|
-
}
|
1513
|
+
if (scopeId2 && slotNodes.length) {
|
1514
|
+
slotNodes.forEach((slot) => {
|
1515
|
+
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
1516
|
+
});
|
1516
1517
|
}
|
1517
1518
|
if (shadowRoot) {
|
1518
1519
|
let rnIdex = 0;
|
@@ -1525,7 +1526,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1525
1526
|
if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
|
1526
1527
|
if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
|
1527
1528
|
node.removeAttribute("hidden");
|
1528
|
-
} else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
1529
|
+
} else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
|
1529
1530
|
node.parentNode.removeChild(node);
|
1530
1531
|
}
|
1531
1532
|
}
|
@@ -1719,6 +1720,7 @@ var initializeDocumentHydrate = (node, orgLocNodes) => {
|
|
1719
1720
|
const childIdSplt = node.nodeValue.split(".");
|
1720
1721
|
if (childIdSplt[0] === ORG_LOCATION_ID) {
|
1721
1722
|
orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
|
1723
|
+
node.nodeValue = "";
|
1722
1724
|
node["s-en"] = childIdSplt[3];
|
1723
1725
|
}
|
1724
1726
|
}
|
@@ -1751,10 +1753,11 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
1751
1753
|
childVNode.$elm$.setAttribute("name", slotName);
|
1752
1754
|
}
|
1753
1755
|
if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
|
1754
|
-
parentVNode.$elm
|
1756
|
+
internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
|
1755
1757
|
} else {
|
1756
1758
|
internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
|
1757
1759
|
}
|
1760
|
+
addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
|
1758
1761
|
node.remove();
|
1759
1762
|
if (childVNode.$depth$ === "0") {
|
1760
1763
|
shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
|
@@ -1778,7 +1781,7 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
1778
1781
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
1779
1782
|
let slottedNode = slotNode.nextSibling;
|
1780
1783
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
1781
|
-
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
1784
|
+
while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */ || slottedNode.tagName === "SLOT"))) {
|
1782
1785
|
slottedNode["s-sn"] = slotName;
|
1783
1786
|
slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
|
1784
1787
|
slottedNode = slottedNode.nextSibling;
|
@@ -2693,7 +2696,13 @@ var forceUpdate = (ref) => {
|
|
2693
2696
|
}
|
2694
2697
|
};
|
2695
2698
|
var appDidLoad = (who) => {
|
2699
|
+
var _a;
|
2696
2700
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
2701
|
+
{
|
2702
|
+
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
2703
|
+
plt.$orgLocNodes$.clear();
|
2704
|
+
}
|
2705
|
+
}
|
2697
2706
|
};
|
2698
2707
|
var safeCall = (instance, method, arg, elm) => {
|
2699
2708
|
if (instance && instance[method]) {
|
@@ -2976,7 +2985,6 @@ var fireConnectedCallback = (instance, elm) => {
|
|
2976
2985
|
|
2977
2986
|
// src/runtime/connected-callback.ts
|
2978
2987
|
var connectedCallback = (elm) => {
|
2979
|
-
var _a;
|
2980
2988
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
2981
2989
|
const hostRef = getHostRef(elm);
|
2982
2990
|
const cmpMeta = hostRef.$cmpMeta$;
|
@@ -2998,11 +3006,14 @@ var connectedCallback = (elm) => {
|
|
2998
3006
|
}
|
2999
3007
|
}
|
3000
3008
|
if (!hostId) {
|
3001
|
-
if (
|
3002
|
-
|
3003
|
-
|
3004
|
-
) {
|
3005
|
-
elm.firstChild
|
3009
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
3010
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
3011
|
+
setContentReference(elm);
|
3012
|
+
} else if (!(cmpMeta.$flags$ & 4 /* hasSlotRelocation */)) {
|
3013
|
+
const commendPlaceholder = elm.firstChild;
|
3014
|
+
if ((commendPlaceholder == null ? void 0 : commendPlaceholder.nodeType) === 8 /* CommentNode */ && !commendPlaceholder["s-cn"] && !commendPlaceholder.nodeValue) {
|
3015
|
+
elm.removeChild(commendPlaceholder);
|
3016
|
+
}
|
3006
3017
|
}
|
3007
3018
|
}
|
3008
3019
|
{
|
@@ -3037,6 +3048,16 @@ var connectedCallback = (elm) => {
|
|
3037
3048
|
endConnected();
|
3038
3049
|
}
|
3039
3050
|
};
|
3051
|
+
var setContentReference = (elm) => {
|
3052
|
+
if (!win.document) {
|
3053
|
+
return;
|
3054
|
+
}
|
3055
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
3056
|
+
""
|
3057
|
+
);
|
3058
|
+
contentRefElm["s-cn"] = true;
|
3059
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
3060
|
+
};
|
3040
3061
|
var disconnectInstance = (instance, elm) => {
|
3041
3062
|
{
|
3042
3063
|
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|