@nanoporetech-digital/components 8.0.0-alpha.0 → 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-JweofGji.js → algolia-data-CSD3I9WJ.js} +1 -1
- package/dist/cjs/{component-store-DKMzj8Ei.js → component-store-DS6c_IIg.js} +1 -1
- package/dist/cjs/{dom-a3wgHxbn.js → dom-3kyE_RMm.js} +1 -1
- package/dist/cjs/{fade-run1oYFS.js → fade-C3xL9ihU.js} +3 -3
- package/dist/cjs/{form-control-zW-pmQ5Y.js → form-control-BVH0tPGy.js} +2 -2
- package/dist/cjs/{fullscreen-DGiusO_n.js → fullscreen-pHBD1-3e.js} +3 -3
- package/dist/cjs/{index-DYD4xvxr.js → index-IR1lkhwT.js} +170 -178
- package/dist/cjs/{index-BV7Y7Zvi.js → index-yq5hsIxW.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-CavfHrQV.js → lazyload-D2pj9J7r.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-lJ_KdrUQ.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 +4 -4
- package/dist/cjs/nano-avatar_5.cjs.entry.js +9 -9
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nano-card-carousel.cjs.entry.js +3 -3
- 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-DlJaR4KG.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 +11 -10
- 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 +9 -6
- package/dist/cjs/nano-dialog.cjs.entry.js +8 -8
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +7 -7
- 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 +19 -15
- package/dist/cjs/nano-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +3 -3
- 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 +4 -4
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +9 -12
- 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-D5q9vQ4P.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 +6 -9
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-group.cjs.entry.js +5 -5
- 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-D-QQnR4W.js → page-dots-DHz-mQDL.js} +3 -3
- package/dist/cjs/{renderer-SkVn69pT.js → renderer-h0yo23iy.js} +1 -1
- package/dist/cjs/{scroll-DXjC771e.js → scroll-_aiH0KkA.js} +1 -1
- package/dist/cjs/{slot-CBvkJee9.js → slot-Hlplqf1Z.js} +1 -1
- package/dist/cjs/{tabbable-M9OUrhLE.js → tabbable-CkzmpQhq.js} +1 -1
- package/dist/cjs/{table.worker-FkRsUwRY.js → table.worker-NnDnfSFs.js} +6 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/animation/animation.js +6 -3
- package/dist/collection/components/breadcrumb/breadcrumb.css +6 -5
- package/dist/collection/components/card-carousel/card-carousel.css +4 -4
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/cta/cta.js +8 -11
- package/dist/collection/components/datalist/datalist.js +9 -8
- package/dist/collection/components/details/details.js +6 -3
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/field-validator/field-validator.js +1 -1
- package/dist/collection/components/form-control/form-control.js +1 -1
- package/dist/collection/components/global-nav/global-nav.css +4 -4
- package/dist/collection/components/global-nav/global-nav.js +35 -14
- package/dist/collection/components/grid/grid.css +3 -0
- package/dist/collection/components/in-page-nav/in-page-nav.css +5 -5
- package/dist/collection/components/intersection-observe/intersection-observe.js +6 -9
- 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/menu/menu.js +3 -5
- package/dist/collection/components/more-less/more-less.js +6 -3
- package/dist/collection/components/slides/slides.js +1 -1
- package/dist/collection/components/sortable/sortable.js +5 -5
- package/dist/collection/components/sticker/sticker.js +2 -5
- package/dist/collection/components/table/table.js +3 -2
- package/dist/collection/components/tabs/tab-group.css +3 -3
- package/dist/collection/global/script/global.js +1 -30
- package/dist/components/cta.js +10 -9
- package/dist/components/datalist.js +9 -8
- package/dist/components/details.js +6 -3
- package/dist/components/form-control.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/index.js +1 -30
- package/dist/components/masked-overflow.js +5 -5
- package/dist/components/menu.js +3 -5
- package/dist/components/nano-animation.js +3 -3
- package/dist/components/nano-breadcrumb.js +1 -1
- package/dist/components/nano-card-carousel.js +1 -1
- package/dist/components/nano-checkbox.js +4 -4
- package/dist/components/nano-global-nav.js +19 -14
- package/dist/components/nano-in-page-nav.js +1 -1
- package/dist/components/nano-intersection-observe.js +6 -9
- package/dist/components/nano-more-less.js +2 -2
- package/dist/components/nano-tab-group.js +1 -1
- package/dist/components/nano-table.js +4 -4
- package/dist/components/sticker.js +2 -5
- package/dist/esm/{algolia-data-BNDipgId.js → algolia-data-D6wnbV__.js} +1 -1
- package/dist/esm/{component-store-DqCSKpAK.js → component-store-CH5BI3Tg.js} +1 -1
- package/dist/esm/{dom-CF0Ycs9M.js → dom-Cb7FUtXp.js} +1 -1
- package/dist/esm/{fade-CdIyPeai.js → fade-BTgTGh6q.js} +3 -3
- package/dist/esm/{form-control-DXPQniNX.js → form-control-BOVGZF9R.js} +2 -2
- package/dist/esm/{fullscreen-C4GllGer.js → fullscreen-BTpZyXkc.js} +3 -3
- package/dist/esm/{index-CFYZ-ZOT.js → index-DXvE-U_j.js} +156 -164
- package/dist/esm/{index-DxKBolVo.js → index-Dw3NZx59.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-pTbJ7q2S.js → lazyload-BYoZ43fz.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{modal-B50PWCuY.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 +4 -4
- package/dist/esm/nano-avatar_5.entry.js +9 -9
- package/dist/esm/nano-breadcrumb.entry.js +2 -2
- package/dist/esm/nano-card-carousel.entry.js +3 -3
- 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-DsTG4mqR.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 +11 -10
- 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 +9 -6
- package/dist/esm/nano-dialog.entry.js +8 -8
- package/dist/esm/nano-dropdown_2.entry.js +7 -7
- 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 +19 -15
- package/dist/esm/nano-grid-item.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/nano-intersection-observe.entry.js +9 -12
- 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-BcyK9Szs.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 +6 -9
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab-group.entry.js +5 -5
- package/dist/esm/nano-tab.entry.js +2 -2
- package/dist/esm/nano-table.entry.js +5 -5
- package/dist/esm/{page-dots-Cq8hjoql.js → page-dots-_tkpExQM.js} +3 -3
- package/dist/esm/{renderer-LJzCFyMt.js → renderer-BUaAsDso.js} +1 -1
- package/dist/esm/{scroll-BRRzrkAi.js → scroll-iCYjzh9N.js} +1 -1
- package/dist/esm/{slot-DBzVpliZ.js → slot-DYFgWo5f.js} +1 -1
- package/dist/esm/{tabbable-BpHwrUYt.js → tabbable-C4l-rYq9.js} +1 -1
- package/dist/esm/{table.worker-BoX4CUXT.js → table.worker-webIEBZt.js} +6 -6
- package/dist/nano-components/{algolia-data-BNDipgId.js → algolia-data-D6wnbV__.js} +1 -1
- package/dist/nano-components/{component-store-DqCSKpAK.js → component-store-CH5BI3Tg.js} +1 -1
- package/dist/nano-components/{dom-CF0Ycs9M.js → dom-Cb7FUtXp.js} +1 -1
- package/dist/nano-components/{fade-CdIyPeai.js → fade-BTgTGh6q.js} +1 -1
- package/dist/nano-components/form-control-BOVGZF9R.js +4 -0
- package/dist/nano-components/{fullscreen-C4GllGer.js → fullscreen-BTpZyXkc.js} +1 -1
- package/dist/nano-components/index-DXvE-U_j.js +5 -0
- package/dist/nano-components/{index-DxKBolVo.js → index-Dw3NZx59.js} +1 -1
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/{lazyload-pTbJ7q2S.js → lazyload-BYoZ43fz.js} +1 -1
- package/dist/nano-components/{modal-B50PWCuY.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 +65 -40
- 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-DsTG4mqR.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-BcyK9Szs.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-Cq8hjoql.js → page-dots-_tkpExQM.js} +1 -1
- package/dist/nano-components/{renderer-LJzCFyMt.js → renderer-BUaAsDso.js} +1 -1
- package/dist/nano-components/{scroll-BRRzrkAi.js → scroll-iCYjzh9N.js} +1 -1
- package/dist/nano-components/{slot-DBzVpliZ.js → slot-DYFgWo5f.js} +1 -1
- package/dist/nano-components/{tabbable-BpHwrUYt.js → tabbable-C4l-rYq9.js} +1 -1
- package/dist/nano-components/{table.worker-BoX4CUXT.js → table.worker-webIEBZt.js} +1 -1
- package/dist/stencil.config.js +1 -2
- 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 +79 -28
- package/docs-vscode.json +2 -2
- package/hydrate/index.js +300 -1355
- package/hydrate/index.mjs +300 -1355
- package/package.json +3 -3
- package/dist/nano-components/form-control-DXPQniNX.js +0 -4
- package/dist/nano-components/index-CFYZ-ZOT.js +0 -5
- package/dist/plugins/postcss/scoped-part.js +0 -26
- package/dist/types/Users/John.Jenkins/projects/nano-components/packages/components/.stencil/plugins/postcss/scoped-part.d.ts +0 -8
- package/dist/types/utils/testing/index.d.ts +0 -50
@@ -702,7 +702,7 @@ export class FieldValidator {
|
|
702
702
|
"ObservableMap": {
|
703
703
|
"location": "import",
|
704
704
|
"path": "@stencil/store",
|
705
|
-
"id": "../../node_modules/.pnpm/@stencil+store@2.1.2_@stencil+core@
|
705
|
+
"id": "../../node_modules/.pnpm/@stencil+store@2.1.2_@stencil+core@stenciljs/node_modules/@stencil/store/dist/index.d.ts::ObservableMap"
|
706
706
|
},
|
707
707
|
"ValidatorValueStore": {
|
708
708
|
"location": "import",
|
@@ -22,7 +22,7 @@ export const FormControlWrap = (props, children) => {
|
|
22
22
|
'has-float-label': label !== null && floatLabel,
|
23
23
|
'has-helper-end': hasHelperEndSlot,
|
24
24
|
rtl,
|
25
|
-
[props.class]:
|
25
|
+
[props.class]: !!props.class,
|
26
26
|
} }, h("div", { class: "form-ctrl__wrapper" }, !floatLabel ? renderLabel({ ...props }) : '', h("div", { class: {
|
27
27
|
'form-ctrl__input': true,
|
28
28
|
'form-ctrl__textarea': type === 'textarea',
|
@@ -149,7 +149,7 @@ nano-badge {
|
|
149
149
|
.gn__main-menu > * {
|
150
150
|
margin-inline-end: var(--nano-spacing-xl);
|
151
151
|
}
|
152
|
-
.gn__main-menu > *:is(slot) {
|
152
|
+
.gn__main-menu > *:is(slot, slot-fb) {
|
153
153
|
display: flex;
|
154
154
|
}
|
155
155
|
.gn__main-menu > *:last-child {
|
@@ -283,7 +283,7 @@ nano-badge {
|
|
283
283
|
--color-focus: var(--nano-color-neutral-1400);
|
284
284
|
--color: var(--nano-color-primary-1200);
|
285
285
|
}
|
286
|
-
.gn__search-viewall::part(label)
|
286
|
+
.gn__search-viewall::part(label) {
|
287
287
|
justify-content: flex-end;
|
288
288
|
text-decoration: underline;
|
289
289
|
}
|
@@ -392,11 +392,11 @@ nano-badge {
|
|
392
392
|
--header-spacing: var(--nano-spacing-md) 0;
|
393
393
|
--footer-spacing: var(--nano-spacing-md);
|
394
394
|
}
|
395
|
-
.gn__drawer::part(title)
|
395
|
+
.gn__drawer::part(title) {
|
396
396
|
display: flex;
|
397
397
|
justify-content: flex-end;
|
398
398
|
}
|
399
|
-
.gn__drawer::part(header-actions)
|
399
|
+
.gn__drawer::part(header-actions) {
|
400
400
|
order: -1;
|
401
401
|
}
|
402
402
|
|
@@ -61,9 +61,13 @@ export class GlobalNav {
|
|
61
61
|
cartCount = 0;
|
62
62
|
/** MyAccount un-read message count. */
|
63
63
|
msgCount = 0;
|
64
|
-
/** Manually
|
65
|
-
async
|
66
|
-
this.overflowOpen =
|
64
|
+
/** Manually open the overflow menu */
|
65
|
+
async openOverflowMenu() {
|
66
|
+
this.overflowOpen = true;
|
67
|
+
}
|
68
|
+
/** Manually close the overflow menu */
|
69
|
+
async closeOverflowMenu() {
|
70
|
+
this.overflowOpen = false;
|
67
71
|
}
|
68
72
|
/// MY-ACCOUNT - start ///
|
69
73
|
/** A base url to retrieve global nav / sso data. `nav_bar_data.json` will be appended to this url */
|
@@ -483,20 +487,20 @@ export class GlobalNav {
|
|
483
487
|
}
|
484
488
|
render() {
|
485
489
|
const bpps = this.bpPartials;
|
486
|
-
return (h(Host, { key: '
|
490
|
+
return (h(Host, { key: '184e0e7a9468ebb9d60cfac752d955358a4fe0fe', class: {
|
487
491
|
'overflow-menu': this.breakpoint > bpps.mainMenu.breakpoint,
|
488
492
|
'bar-menu': this.breakpoint <= bpps.mainMenu.breakpoint,
|
489
493
|
'nano-global-nav': true,
|
490
|
-
} }, h("div", { key: '
|
494
|
+
} }, h("div", { key: '8eaa12e98b9a38721b9f03e2d646d20add74b3e6', class: {
|
491
495
|
gn: true,
|
492
496
|
'gn__search-open': this.searchBarShown,
|
493
|
-
} }, h("nano-drawer", { key: '
|
497
|
+
} }, 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
|
494
498
|
? bpps.mainMenu.tpl()
|
495
|
-
: '', h("slot", { key: '
|
499
|
+
: '', 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,
|
496
500
|
(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,
|
497
|
-
(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: '
|
501
|
+
(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) => {
|
498
502
|
this.handleSearchTermChangeEvent(e.detail.value);
|
499
|
-
}, onNanoInput: this.handleSearchTermInputEvent, debounce: 500, value: this._searchValue }, h("nano-icon", { key: '
|
503
|
+
}, 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 && [
|
500
504
|
this.autocompleteResults.hits.map((hit, i) => (h("nano-option", { href: hit.url, class: "gn__search-result", onClick: () => {
|
501
505
|
searchInsight.sendClick({
|
502
506
|
index: this.activeIndex.index,
|
@@ -506,10 +510,10 @@ export class GlobalNav {
|
|
506
510
|
positions: [i + 1],
|
507
511
|
});
|
508
512
|
} }, h("span", { innerHTML: this.autocompleteSnippet(hit) })))),
|
509
|
-
h("nano-option", { key: '
|
510
|
-
]))))), h("div", { key: '
|
513
|
+
h("nano-option", { key: '88e617068d30bfa4ca09f6b122109d9a3539088b', class: "gn__search-viewall", onNanoSelect: this.onSearchSubmit }, "View all results"),
|
514
|
+
]))))), 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
|
511
515
|
? bpps.contact.tpl()
|
512
|
-
: '', 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: '
|
516
|
+
: '', 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' }))))));
|
513
517
|
}
|
514
518
|
static get is() { return "nano-global-nav"; }
|
515
519
|
static get encapsulation() { return "shadow"; }
|
@@ -915,7 +919,24 @@ export class GlobalNav {
|
|
915
919
|
}
|
916
920
|
static get methods() {
|
917
921
|
return {
|
918
|
-
"
|
922
|
+
"openOverflowMenu": {
|
923
|
+
"complexType": {
|
924
|
+
"signature": "() => Promise<void>",
|
925
|
+
"parameters": [],
|
926
|
+
"references": {
|
927
|
+
"Promise": {
|
928
|
+
"location": "global",
|
929
|
+
"id": "global::Promise"
|
930
|
+
}
|
931
|
+
},
|
932
|
+
"return": "Promise<void>"
|
933
|
+
},
|
934
|
+
"docs": {
|
935
|
+
"text": "Manually open the overflow menu",
|
936
|
+
"tags": []
|
937
|
+
}
|
938
|
+
},
|
939
|
+
"closeOverflowMenu": {
|
919
940
|
"complexType": {
|
920
941
|
"signature": "() => Promise<void>",
|
921
942
|
"parameters": [],
|
@@ -928,7 +949,7 @@ export class GlobalNav {
|
|
928
949
|
"return": "Promise<void>"
|
929
950
|
},
|
930
951
|
"docs": {
|
931
|
-
"text": "Manually
|
952
|
+
"text": "Manually close the overflow menu",
|
932
953
|
"tags": []
|
933
954
|
}
|
934
955
|
},
|
@@ -40,9 +40,11 @@
|
|
40
40
|
/**
|
41
41
|
* @prop --grid-col-gap: gap between all columns. Defaults to theme's global padding
|
42
42
|
* @prop --grid-row-gap: gap between all rows. Defaults to theme's global padding
|
43
|
+
* @prop --grid-align-items: alignment of items in the grid. Defaults to start
|
43
44
|
*/
|
44
45
|
--grid-col-gap: var(--nano-spacing-medium, 16px);
|
45
46
|
--grid-row-gap: var(--nano-spacing-medium, 16px);
|
47
|
+
--grid-align-items: start;
|
46
48
|
--current-grid-size: "grid size: s";
|
47
49
|
container-type: inline-size;
|
48
50
|
display: block;
|
@@ -52,6 +54,7 @@
|
|
52
54
|
gap: var(--grid-row-gap) var(--grid-col-gap);
|
53
55
|
block-size: inherit;
|
54
56
|
min-block-size: inherit;
|
57
|
+
align-items: var(--grid-align-items);
|
55
58
|
}
|
56
59
|
|
57
60
|
:host([show-helper]:not([show-helper=false])) {
|
@@ -63,20 +63,20 @@
|
|
63
63
|
--btn-text-color: var(--color-text);
|
64
64
|
border: none;
|
65
65
|
}
|
66
|
-
:host .details-wrapper::part(header)
|
66
|
+
:host .details-wrapper::part(header) {
|
67
67
|
font-size: var(--font-size);
|
68
68
|
line-height: var(--line-height);
|
69
69
|
font-weight: var(--font-weight);
|
70
70
|
letter-spacing: var(--letter-spacing);
|
71
71
|
padding: var(--spacing-l2);
|
72
72
|
}
|
73
|
-
:host .details-wrapper[open]::part(header)
|
73
|
+
:host .details-wrapper[open]::part(header) {
|
74
74
|
background-color: var(--nano-color-primary-75);
|
75
75
|
}
|
76
|
-
:host .details-wrapper::part(content)
|
76
|
+
:host .details-wrapper::part(content) {
|
77
77
|
padding: 0;
|
78
78
|
}
|
79
|
-
:host .details-wrapper::part(body)
|
79
|
+
:host .details-wrapper::part(body) {
|
80
80
|
padding: 0;
|
81
81
|
}
|
82
82
|
:host .header {
|
@@ -113,7 +113,7 @@
|
|
113
113
|
:host nav:has(.details-wrapper[open]) {
|
114
114
|
box-shadow: var(--nano-shadow-l1);
|
115
115
|
}
|
116
|
-
:host .details-wrapper.sticky.stuck[open]::part(header)
|
116
|
+
:host .details-wrapper.sticky.stuck[open]::part(header) {
|
117
117
|
z-index: var(--nano-z-index-menubar);
|
118
118
|
inset-block-start: 0;
|
119
119
|
position: sticky;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { Host, } from "@stencil/core";
|
4
|
+
import { Host, Build, } from "@stencil/core";
|
5
5
|
import { h } from "../../utils/renderer";
|
6
6
|
import { findScrollParent } from "../../utils/scroll";
|
7
7
|
/**
|
@@ -42,11 +42,9 @@ export class IntersectionObserve {
|
|
42
42
|
* Defaults to an automatic check for ancestors that `overflow: auto` or otherwise the `Document`. */
|
43
43
|
root = 'auto';
|
44
44
|
handleRootChange() {
|
45
|
-
|
46
|
-
|
47
|
-
this.removeIO();
|
45
|
+
this.removeIO();
|
46
|
+
if (!this.root)
|
48
47
|
return;
|
49
|
-
}
|
50
48
|
let newRoot;
|
51
49
|
if (this.root === 'auto') {
|
52
50
|
// try to find nearest scrolling parent
|
@@ -71,7 +69,7 @@ export class IntersectionObserve {
|
|
71
69
|
if (newRoot === document.documentElement)
|
72
70
|
newRoot = undefined;
|
73
71
|
// if new root is what we already have - ignore
|
74
|
-
if (newRoot === this._root)
|
72
|
+
if (newRoot === this._root && this.io)
|
75
73
|
return;
|
76
74
|
// cache and setup io
|
77
75
|
this._root = newRoot;
|
@@ -122,7 +120,7 @@ export class IntersectionObserve {
|
|
122
120
|
this.addIO();
|
123
121
|
};
|
124
122
|
addIO() {
|
125
|
-
if (
|
123
|
+
if (Build.isServer || !this.elements?.length)
|
126
124
|
return;
|
127
125
|
if (this.io)
|
128
126
|
this.removeIO();
|
@@ -143,10 +141,9 @@ export class IntersectionObserve {
|
|
143
141
|
}
|
144
142
|
disconnectedCallback() {
|
145
143
|
this.removeIO();
|
146
|
-
this.root = this._root = undefined;
|
147
144
|
}
|
148
145
|
render() {
|
149
|
-
return (h(Host, { key: '
|
146
|
+
return (h(Host, { key: 'abd4c2df3455d52b6c9df1fcec2ba6f715cca32d', class: "nano-intersection-observe" }, h("slot", { key: 'e91b2a33b11abfa42411b996a0ba2e71892ab5d1', ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
|
150
147
|
}
|
151
148
|
static get is() { return "nano-intersection-observe"; }
|
152
149
|
static get encapsulation() { return "shadow"; }
|
@@ -159,8 +159,7 @@
|
|
159
159
|
.onav--horizontal .onav__items {
|
160
160
|
flex-direction: row;
|
161
161
|
}
|
162
|
-
.
|
163
|
-
content: "";
|
162
|
+
.onav--horizontal .onav__items::before {
|
164
163
|
inline-size: 100%;
|
165
164
|
block-size: var(--indicator-track-size);
|
166
165
|
inset-block-end: 0;
|
@@ -186,6 +185,7 @@
|
|
186
185
|
}
|
187
186
|
.onav--vertical .onav__nav {
|
188
187
|
max-block-size: 100%;
|
188
|
+
min-inline-size: 100%;
|
189
189
|
display: flex;
|
190
190
|
}
|
191
191
|
.onav--vertical .onav__scroller {
|
@@ -220,8 +220,7 @@
|
|
220
220
|
flex-direction: column;
|
221
221
|
inline-size: fit-content;
|
222
222
|
}
|
223
|
-
.
|
224
|
-
content: "";
|
223
|
+
.onav--vertical .onav__items::before {
|
225
224
|
block-size: 100%;
|
226
225
|
inline-size: var(--indicator-track-size);
|
227
226
|
inset-inline-start: 0;
|
@@ -7,8 +7,10 @@ import { getDirectChildren, getOffset } from "../../utils/dom";
|
|
7
7
|
import { debounce } from "../../utils/throttle";
|
8
8
|
import { scrollIntoView } from "../../utils/scroll";
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
*
|
10
|
+
* A container for content that can horizontally or vertically scroll
|
11
|
+
*
|
12
|
+
* @version 4.0.0
|
13
|
+
* @status stable
|
12
14
|
*
|
13
15
|
* @slot - Default slot to place items.
|
14
16
|
*
|
@@ -325,7 +327,7 @@ export class MaskedOverflow {
|
|
325
327
|
}
|
326
328
|
}
|
327
329
|
render() {
|
328
|
-
return (h(Host, { key: '
|
330
|
+
return (h(Host, { key: '4f88bf0a4cd8f01c745685afe7b0c5f9fc9b26b2', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: 'b7894467af4981a53bb0540998f9fdee3b5e4db7', part: "base", class: {
|
329
331
|
onav: true,
|
330
332
|
[`onav--${this.orientation}`]: true,
|
331
333
|
'onav--has-scroll-controls': this.hasScrollControls,
|
@@ -333,13 +335,13 @@ export class MaskedOverflow {
|
|
333
335
|
'onav--has-scroll-controls-end': !this.hideControlEnd,
|
334
336
|
'onav--no-transitions': this.instantReCalc,
|
335
337
|
'onnav--has-indicator': this.showIndicator,
|
336
|
-
'onnav--hide-scrollbars': this.hideScrollbars,
|
337
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '
|
338
|
+
'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
|
339
|
+
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'c12e39f98ea4750a0709c822f1827fd3a4580ca5', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: '9f45887d61630f41398e872bb7d3538f87fcc7c0', part: "scroll-button scroll-button-prev", class: {
|
338
340
|
'onav__scroll-button': true,
|
339
341
|
'onav__scroll-button--start': true,
|
340
342
|
}, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
341
343
|
? 'light/chevron-left'
|
342
|
-
: 'light/chevron-up' })), h("div", { key: '
|
344
|
+
: 'light/chevron-up' })), h("div", { key: '1b6402869156bb7d6f3ddaf5b6b9e1ba80e94104', 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: '1018eef93e68d13faf4c7898a69f6723e772ec3c', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: 'ab21bd04d6bb661f716d835ee4bc0d111fed863f', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: 'bb66cabd059551b392e5049eb8d18f83de8eb818', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: 'bd48cb7171ee606a9c368a36090cefb3e61337bd', part: "scroll-button scroll-button-next", class: {
|
343
345
|
'onav__scroll-button': true,
|
344
346
|
'onav__scroll-button--end': true,
|
345
347
|
}, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { Host,
|
4
|
+
import { Host, } from "@stencil/core";
|
5
5
|
import { h, transformTag } from "../../utils/renderer";
|
6
6
|
import { getActiveElement } from "../../utils/active-element";
|
7
7
|
import { getDirectChildren } from "../../utils/dom";
|
@@ -220,8 +220,6 @@ export class Menu {
|
|
220
220
|
}
|
221
221
|
};
|
222
222
|
handleSlotContent = () => {
|
223
|
-
if (!Build.isBrowser)
|
224
|
-
return;
|
225
223
|
this._type = this.type || null;
|
226
224
|
if (!this._type) {
|
227
225
|
let linkCount, btnCount = 0;
|
@@ -262,11 +260,11 @@ export class Menu {
|
|
262
260
|
this.handleSlotContent();
|
263
261
|
}
|
264
262
|
render() {
|
265
|
-
return (h(Host, { key: '
|
263
|
+
return (h(Host, { key: 'f7c0e55c16e5607f25a4a75847c0defd4b860e17', role: this._type === 'listbox' ? 'group' : this._type, class: "nano-menu" }, h("div", { key: '3a19c91258abaa6b0a6333a35809172aabf4db43', onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onFocus: this.handleFocus, "aria-label": this.label ? this.label : undefined, ref: (el) => (this.menu = el), part: "base", class: {
|
266
264
|
menu: true,
|
267
265
|
['menu--' + this._type]: true,
|
268
266
|
'menu--has-focus': this.hasFocus,
|
269
|
-
}, tabIndex: -1, role: "group" }, h("slot", { key: '
|
267
|
+
}, tabIndex: -1, role: "group" }, h("slot", { key: '75c213c4a744e7edd1826d88a8e391e16bdc091b', onSlotchange: this.handleSlotContent }))));
|
270
268
|
}
|
271
269
|
static get is() { return "nano-menu"; }
|
272
270
|
static get encapsulation() { return "shadow"; }
|
@@ -4,7 +4,10 @@
|
|
4
4
|
import { Host, } from "@stencil/core";
|
5
5
|
import { h } from "../../utils/renderer";
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Show more or less from a collection of items.
|
8
|
+
*
|
9
|
+
* @version 6.0.0
|
10
|
+
* @status stable
|
8
11
|
*
|
9
12
|
* @slot less - a button displayed when all fewer are shown. When clicked will show elements
|
10
13
|
* @slot more - a button displayed when all items are shown. When clicked will hide elements
|
@@ -62,8 +65,8 @@ export class Rating {
|
|
62
65
|
this.handleShowHideElements();
|
63
66
|
}
|
64
67
|
render() {
|
65
|
-
return (h(Host, { key: '
|
66
|
-
h("div", { key: '
|
68
|
+
return (h(Host, { key: '49834d5d379bcc71bfd228cbad3becf4343160ac', class: "nano-more-less" }, h("slot", { key: '4cbea5f74ddd512cacfc2c65c35ce0cd9fbfee00', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
69
|
+
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, ")"))),
|
67
70
|
!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, ")")))) : (''),
|
68
71
|
]));
|
69
72
|
}
|
@@ -529,7 +529,7 @@ export class Slides {
|
|
529
529
|
"mutable": true,
|
530
530
|
"complexType": {
|
531
531
|
"original": "FlickityOptions",
|
532
|
-
"resolved": "
|
532
|
+
"resolved": "Options & { fullscreen?: boolean; fade?: boolean; }",
|
533
533
|
"references": {
|
534
534
|
"FlickityOptions": {
|
535
535
|
"location": "import",
|
@@ -838,7 +838,7 @@ export class Sortable {
|
|
838
838
|
"Element": {
|
839
839
|
"location": "import",
|
840
840
|
"path": "@stencil/core",
|
841
|
-
"id": "
|
841
|
+
"id": "../../../stenciljs/internal/stencil-core/index.d.ts::Element"
|
842
842
|
}
|
843
843
|
}
|
844
844
|
},
|
@@ -869,7 +869,7 @@ export class Sortable {
|
|
869
869
|
"Element": {
|
870
870
|
"location": "import",
|
871
871
|
"path": "@stencil/core",
|
872
|
-
"id": "
|
872
|
+
"id": "../../../stenciljs/internal/stencil-core/index.d.ts::Element"
|
873
873
|
}
|
874
874
|
}
|
875
875
|
},
|
@@ -900,7 +900,7 @@ export class Sortable {
|
|
900
900
|
"Element": {
|
901
901
|
"location": "import",
|
902
902
|
"path": "@stencil/core",
|
903
|
-
"id": "
|
903
|
+
"id": "../../../stenciljs/internal/stencil-core/index.d.ts::Element"
|
904
904
|
}
|
905
905
|
}
|
906
906
|
},
|
@@ -931,7 +931,7 @@ export class Sortable {
|
|
931
931
|
"Element": {
|
932
932
|
"location": "import",
|
933
933
|
"path": "@stencil/core",
|
934
|
-
"id": "
|
934
|
+
"id": "../../../stenciljs/internal/stencil-core/index.d.ts::Element"
|
935
935
|
}
|
936
936
|
}
|
937
937
|
},
|
@@ -968,7 +968,7 @@ export class Sortable {
|
|
968
968
|
"Element": {
|
969
969
|
"location": "import",
|
970
970
|
"path": "@stencil/core",
|
971
|
-
"id": "
|
971
|
+
"id": "../../../stenciljs/internal/stencil-core/index.d.ts::Element"
|
972
972
|
},
|
973
973
|
"HTMLElement": {
|
974
974
|
"location": "global",
|
@@ -581,9 +581,6 @@ export class Sticker {
|
|
581
581
|
this.isRtl =
|
582
582
|
this.host.dir === 'rtl' || this.host.ownerDocument.dir === 'rtl';
|
583
583
|
// this is all horrible.... shrug
|
584
|
-
document.documentElement.addEventListener('nanoComponentsReady', () => {
|
585
|
-
setTimeout((_) => this.bootstrapGurantor(), 200);
|
586
|
-
});
|
587
584
|
setTimeout((_) => {
|
588
585
|
if (!this.hasBootstrapped)
|
589
586
|
this.bootstrapGurantor();
|
@@ -602,12 +599,12 @@ export class Sticker {
|
|
602
599
|
this.hasBootstrapped = false;
|
603
600
|
}
|
604
601
|
render() {
|
605
|
-
return (h(Host, { key: '
|
602
|
+
return (h(Host, { key: '684a30435688dd24ba583b9ad18f262b00863220', 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: '1a27a9545b9e00e492efc809ef10ac291f13f421', class: {
|
606
603
|
sticker: true,
|
607
604
|
sticky: this.isRootSticker && this.isSticky,
|
608
605
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
609
606
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
610
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
607
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: '323a9081a4b7aec17c6bcc0cc85558fa54fa5253', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '9fc54c6354a8de64bebbaa54881fa4b21f116ba5' })))));
|
611
608
|
}
|
612
609
|
static get is() { return "nano-sticker"; }
|
613
610
|
static get encapsulation() { return "shadow"; }
|
@@ -227,12 +227,13 @@ export class NanoTable {
|
|
227
227
|
this.cleanUpObservers();
|
228
228
|
}
|
229
229
|
render() {
|
230
|
-
return (h(Host, { key: '
|
230
|
+
return (h(Host, { key: '3c45a2880bd20a771bcc682355452312340db56d', class: {
|
231
231
|
'nano-table': true,
|
232
232
|
'nano-table--props-ready': this.propsReady,
|
233
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
233
|
+
} }, 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' })));
|
234
234
|
}
|
235
235
|
static get is() { return "nano-table"; }
|
236
|
+
static get encapsulation() { return "scoped"; }
|
236
237
|
static get originalStyleUrls() {
|
237
238
|
return {
|
238
239
|
"$": ["table.scss"]
|
@@ -71,7 +71,7 @@
|
|
71
71
|
display: none;
|
72
72
|
}
|
73
73
|
|
74
|
-
.group__tabs::part(items)
|
74
|
+
.group__tabs::part(items) {
|
75
75
|
gap: var(--tab-spacing);
|
76
76
|
}
|
77
77
|
|
@@ -81,7 +81,7 @@
|
|
81
81
|
.group--top .group__tabs {
|
82
82
|
--fade-size: 100px;
|
83
83
|
}
|
84
|
-
.group--top .group__tabs::part(items)
|
84
|
+
.group--top .group__tabs::part(items) {
|
85
85
|
align-items: flex-end;
|
86
86
|
}
|
87
87
|
.group--top .group__tabs-border {
|
@@ -99,7 +99,7 @@
|
|
99
99
|
.group--start {
|
100
100
|
flex-direction: row;
|
101
101
|
}
|
102
|
-
:host([equal-tab-size]) .group--start .group__tabs::part(items)
|
102
|
+
:host([equal-tab-size]) .group--start .group__tabs::part(items) {
|
103
103
|
display: grid;
|
104
104
|
grid-auto-rows: 1fr;
|
105
105
|
}
|
@@ -1,33 +1,4 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
export default async () => {
|
5
|
-
if (globalThis.window &&
|
6
|
-
'MutationObserver' in globalThis.window &&
|
7
|
-
globalThis['document']) {
|
8
|
-
// fire global 'ready' event when everything is hydrated
|
9
|
-
const docEle = document.documentElement;
|
10
|
-
window.addEventListener('appload', () => {
|
11
|
-
docEle.classList.add('hydrated');
|
12
|
-
});
|
13
|
-
const docIsReady = () => {
|
14
|
-
if (!docEle.classList.contains('hydrated'))
|
15
|
-
return false;
|
16
|
-
docEle.dispatchEvent(new CustomEvent('nanoComponentsReady'));
|
17
|
-
return true;
|
18
|
-
};
|
19
|
-
if (!docIsReady()) {
|
20
|
-
let mutationO = new MutationObserver((_) => {
|
21
|
-
if (!docIsReady())
|
22
|
-
return;
|
23
|
-
mutationO.disconnect();
|
24
|
-
mutationO = null;
|
25
|
-
});
|
26
|
-
mutationO.observe(docEle, {
|
27
|
-
childList: false,
|
28
|
-
subtree: false,
|
29
|
-
attributes: true,
|
30
|
-
});
|
31
|
-
}
|
32
|
-
}
|
33
|
-
};
|
4
|
+
export default async () => { };
|
package/dist/components/cta.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { proxyCustomElement, HTMLElement
|
4
|
+
import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
5
5
|
|
6
6
|
const ctaCss = ":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}}";
|
7
7
|
|
@@ -26,17 +26,18 @@ const NanoCta = /*@__PURE__*/ proxyCustomElement(class NanoCta extends HTMLEleme
|
|
26
26
|
icon;
|
27
27
|
/** Predefined styles when displaying a number of CTAs together */
|
28
28
|
group;
|
29
|
-
internalButton = false;
|
30
29
|
componentWillLoad() {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
30
|
+
if (!this.host.querySelector('button, a')) {
|
31
|
+
const button = document.createElement('button');
|
32
|
+
button.classList.add('nano-internal-cta');
|
33
|
+
this.host.childNodes.forEach((node) => {
|
34
|
+
button.appendChild(node);
|
35
|
+
});
|
36
|
+
this.host.appendChild(button);
|
37
|
+
}
|
37
38
|
}
|
38
39
|
static get style() { return ctaCss; }
|
39
|
-
}, [
|
40
|
+
}, [0, "nano-cta", {
|
40
41
|
"theme": [513],
|
41
42
|
"secondary": [516],
|
42
43
|
"size": [513],
|