@nanoporetech-digital/components 8.0.0-alpha.8 → 8.0.0-alpha.9
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-Ck3OvAaS.js → algolia-data-CSm7qrG0.js} +1 -1
- package/dist/cjs/{component-store-Cpxjkhrv.js → component-store-Bjf_XOwd.js} +1 -1
- package/dist/cjs/{dom-B0-coRX2.js → dom-DM4lO0bS.js} +1 -1
- package/dist/cjs/{fade-463IMjUb.js → fade-DYt6Phy3.js} +3 -3
- package/dist/cjs/{form-control-OWJOOoxA.js → form-control-BGk1kbyE.js} +1 -1
- package/dist/cjs/{fullscreen-0yMY8mhF.js → fullscreen-B0RzdP3s.js} +3 -3
- package/dist/cjs/{index-ZOnWVzxx.js → index-DMCNW34o.js} +1 -1
- package/dist/cjs/{index-BlC8UV0T.js → index-trCnMfo7.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-CnQrwJrf.js → lazyload-DzKvneFi.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-DTqHsNdW.js → modal-Ca7dG1up.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 +6 -6
- package/dist/cjs/nano-animation.cjs.entry.js +2 -2
- package/dist/cjs/nano-avatar_5.cjs.entry.js +17 -17
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +42 -9
- 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 +2 -2
- 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 +1 -1
- package/dist/cjs/{nano-data-table-fppjZGKo.js → nano-data-table-zUnFb2XO.js} +5 -5
- package/dist/cjs/nano-data-table.cjs.entry.js +6 -6
- package/dist/cjs/nano-datalist_3.cjs.entry.js +15 -15
- package/dist/cjs/nano-date-input.cjs.entry.js +6 -6
- 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-feature-box.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/nano-global-nav.cjs.entry.js +20 -12
- 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 +4 -4
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +14 -8
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +4 -4
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +4 -4
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +63 -99
- package/dist/cjs/nano-more-less.cjs.entry.js +4 -4
- package/dist/cjs/nano-nav-item.cjs.entry.js +12 -16
- package/dist/cjs/nano-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/nano-range.cjs.entry.js +2 -2
- package/dist/cjs/nano-rating.cjs.entry.js +6 -6
- package/dist/cjs/nano-resize-observe.cjs.entry.js +43 -34
- package/dist/cjs/nano-slide.cjs.entry.js +3 -3
- package/dist/cjs/{nano-slides-BxtmLUSX.js → nano-slides-C3CzGlwK.js} +9 -9
- package/dist/cjs/nano-slides.cjs.entry.js +3 -3
- package/dist/cjs/nano-sortable.cjs.entry.js +3 -3
- package/dist/cjs/nano-spinner.cjs.entry.js +1 -1
- package/dist/cjs/nano-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/nano-sticker.cjs.entry.js +6 -6
- package/dist/cjs/nano-tab-content.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab-group.cjs.entry.js +4 -4
- package/dist/cjs/nano-tab.cjs.entry.js +4 -4
- package/dist/cjs/nano-table.cjs.entry.js +4 -4
- package/dist/cjs/{page-dots-B2slCN6O.js → page-dots-Cpgo_xGE.js} +3 -3
- package/dist/cjs/{renderer-BjTjwe8d.js → renderer-W7BRtd3i.js} +1 -1
- package/dist/cjs/{scroll-CtgMHKrt.js → scroll-33Y1FRj4.js} +9 -14
- package/dist/cjs/{slot-CoMwYflw.js → slot-CppKo1Tn.js} +1 -1
- package/dist/cjs/{tabbable-D33Xh_1b.js → tabbable-CQ4-mXv0.js} +1 -1
- package/dist/cjs/{table.worker-CBBDTe_S.js → table.worker-Dto6wn52.js} +6 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/algolia/algolia.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.css +24 -28
- package/dist/collection/components/breadcrumb/breadcrumb.js +41 -8
- package/dist/collection/components/datalist/datalist.js +6 -6
- package/dist/collection/components/date-input/date-input.js +5 -6
- package/dist/collection/components/drawer/drawer.css +0 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/field-validator/field-validator.js +1 -1
- package/dist/collection/components/footer/footer.css +15 -1
- package/dist/collection/components/global-nav/global-nav.css +1 -1
- package/dist/collection/components/global-nav/global-nav.js +34 -9
- package/dist/collection/components/global-search-results/global-search-results.css +0 -1
- package/dist/collection/components/grid/grid.css +8 -5
- package/dist/collection/components/in-page-nav/in-page-nav.js +15 -5
- package/dist/collection/components/menu-drawer/menu-drawer.css +61 -83
- package/dist/collection/components/menu-drawer/menu-drawer.js +66 -151
- package/dist/collection/components/more-less/more-less.js +2 -2
- package/dist/collection/components/nav-item/nav-item.css +1 -93
- package/dist/collection/components/nav-item/nav-item.js +15 -32
- package/dist/collection/components/option/option.css +1 -3
- package/dist/collection/components/option/option.js +4 -4
- package/dist/collection/components/rating/rating.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +44 -32
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/slides/slide.js +1 -1
- package/dist/collection/components/slides/slides.js +3 -3
- package/dist/collection/components/sortable/sortable.js +6 -6
- package/dist/collection/components/sticker/sticker.js +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/tabs/tab-content.js +2 -2
- package/dist/collection/components/tabs/tab.js +2 -2
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/utils/scroll.js +8 -13
- package/dist/components/algolia.js +1 -1
- package/dist/components/datalist.js +6 -6
- package/dist/components/drawer.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/nano-breadcrumb.js +42 -9
- package/dist/components/nano-date-input.js +4 -4
- package/dist/components/nano-footer.js +1 -1
- package/dist/components/nano-global-nav.js +19 -10
- package/dist/components/nano-in-page-nav.js +15 -5
- package/dist/components/nano-menu-drawer.js +64 -105
- package/dist/components/nano-more-less.js +2 -2
- package/dist/components/nano-rating.js +4 -4
- package/dist/components/nano-slide.js +1 -1
- package/dist/components/nano-sortable.js +1 -1
- package/dist/components/nano-tab-content.js +2 -2
- package/dist/components/nano-tab.js +2 -2
- package/dist/components/nano-table.js +2 -2
- package/dist/components/nav-item.js +7 -12
- package/dist/components/option.js +4 -4
- package/dist/components/resize-observe.js +41 -32
- package/dist/components/scroll.js +8 -13
- package/dist/components/select.js +7 -7
- package/dist/components/slides.js +3 -3
- package/dist/components/sticker.js +2 -2
- package/dist/components/tag.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{algolia-data-B1lm-wYl.js → algolia-data-BWVUf8dc.js} +1 -1
- package/dist/esm/{component-store-DMqr8_D3.js → component-store-6lIsMtwd.js} +1 -1
- package/dist/esm/{dom-COiksOVZ.js → dom-C8mB0MAq.js} +1 -1
- package/dist/esm/{fade-BR_L2aBv.js → fade-BUaM9GO7.js} +3 -3
- package/dist/esm/{form-control-dh9YtDPa.js → form-control-COOIq-Al.js} +1 -1
- package/dist/esm/{fullscreen-ChzUqF71.js → fullscreen-D9bU32l7.js} +3 -3
- package/dist/esm/{index-CX_Hk6ss.js → index-q0XK-YfO.js} +1 -1
- package/dist/esm/{index-VZJF9v1K.js → index-wpeqhSWn.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-IYX4l8Tu.js → lazyload-C6olXHXA.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{modal-CH7Vma1I.js → modal-DmA7xt58.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 +6 -6
- package/dist/esm/nano-animation.entry.js +2 -2
- package/dist/esm/nano-avatar_5.entry.js +17 -17
- package/dist/esm/nano-breadcrumb.entry.js +42 -9
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/{nano-data-table-EkTqZy8O.js → nano-data-table-CC6zn15I.js} +5 -5
- package/dist/esm/nano-data-table.entry.js +6 -6
- package/dist/esm/nano-datalist_3.entry.js +15 -15
- package/dist/esm/nano-date-input.entry.js +6 -6
- 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-feature-box.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/nano-global-nav.entry.js +20 -12
- 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 +4 -4
- package/dist/esm/nano-in-page-nav.entry.js +14 -8
- package/dist/esm/nano-intersection-observe.entry.js +4 -4
- package/dist/esm/nano-masked-overflow.entry.js +4 -4
- package/dist/esm/nano-menu-drawer.entry.js +63 -99
- package/dist/esm/nano-more-less.entry.js +4 -4
- package/dist/esm/nano-nav-item.entry.js +12 -16
- package/dist/esm/nano-progress-bar.entry.js +1 -1
- package/dist/esm/nano-range.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +6 -6
- package/dist/esm/nano-resize-observe.entry.js +43 -34
- package/dist/esm/nano-slide.entry.js +3 -3
- package/dist/esm/{nano-slides-DL3S1wHE.js → nano-slides-B0sdF3jS.js} +9 -9
- package/dist/esm/nano-slides.entry.js +3 -3
- package/dist/esm/nano-sortable.entry.js +3 -3
- package/dist/esm/nano-spinner.entry.js +1 -1
- package/dist/esm/nano-split-pane.entry.js +2 -2
- package/dist/esm/nano-sticker.entry.js +6 -6
- package/dist/esm/nano-tab-content.entry.js +4 -4
- package/dist/esm/nano-tab-group.entry.js +4 -4
- package/dist/esm/nano-tab.entry.js +4 -4
- package/dist/esm/nano-table.entry.js +4 -4
- package/dist/esm/{page-dots-gxG3_NaA.js → page-dots-B8o2-Gb8.js} +3 -3
- package/dist/esm/{renderer-ZmozgREV.js → renderer-BjGZGWn8.js} +1 -1
- package/dist/esm/{scroll-D4n69pGx.js → scroll-N_WMYKm7.js} +9 -14
- package/dist/esm/{slot-CjAtXEOo.js → slot-CUINJXSo.js} +1 -1
- package/dist/esm/{tabbable-CZtanbA9.js → tabbable-DqhO0wy7.js} +1 -1
- package/dist/esm/{table.worker-Dcaz5STw.js → table.worker-DxcGLZVJ.js} +6 -6
- package/dist/nano-components/{algolia-data-B1lm-wYl.js → algolia-data-BWVUf8dc.js} +1 -1
- package/dist/nano-components/{component-store-DMqr8_D3.js → component-store-6lIsMtwd.js} +1 -1
- package/dist/nano-components/{dom-COiksOVZ.js → dom-C8mB0MAq.js} +1 -1
- package/dist/nano-components/{fade-BR_L2aBv.js → fade-BUaM9GO7.js} +1 -1
- package/dist/nano-components/{form-control-dh9YtDPa.js → form-control-COOIq-Al.js} +1 -1
- package/dist/nano-components/{fullscreen-ChzUqF71.js → fullscreen-D9bU32l7.js} +1 -1
- package/dist/nano-components/{index-VZJF9v1K.js → index-wpeqhSWn.js} +1 -1
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/{lazyload-IYX4l8Tu.js → lazyload-C6olXHXA.js} +1 -1
- package/dist/nano-components/{modal-CH7Vma1I.js → modal-DmA7xt58.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 +319 -176
- 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-EkTqZy8O.js → nano-data-table-CC6zn15I.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-feature-box.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.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-DL3S1wHE.js → nano-slides-B0sdF3jS.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-gxG3_NaA.js → page-dots-B8o2-Gb8.js} +1 -1
- package/dist/nano-components/{renderer-ZmozgREV.js → renderer-BjGZGWn8.js} +1 -1
- package/dist/nano-components/scroll-N_WMYKm7.js +4 -0
- package/dist/nano-components/{slot-CjAtXEOo.js → slot-CUINJXSo.js} +1 -1
- package/dist/nano-components/{tabbable-CZtanbA9.js → tabbable-DqhO0wy7.js} +1 -1
- package/dist/nano-components/table.worker-DxcGLZVJ.js +4 -0
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +7 -1
- package/dist/types/components/date-input/date-input.d.ts +1 -2
- package/dist/types/components/global-nav/global-nav.d.ts +5 -0
- package/dist/types/components/in-page-nav/in-page-nav.d.ts +1 -0
- package/dist/types/components/menu-drawer/menu-drawer.d.ts +12 -27
- package/dist/types/components/nav-item/nav-item.d.ts +9 -4
- package/dist/types/components/option/option.d.ts +1 -1
- package/dist/types/components/resize-observe/resize-observe.d.ts +3 -0
- package/dist/types/components.d.ts +32 -58
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/dist/types/utils/testing/index.d.ts +50 -0
- package/docs-json.json +128 -124
- package/docs-vscode.json +4 -16
- package/hydrate/index.js +221 -299
- package/hydrate/index.mjs +221 -299
- package/package.json +3 -3
- package/dist/nano-components/scroll-D4n69pGx.js +0 -4
- package/dist/nano-components/table.worker-Dcaz5STw.js +0 -4
- /package/dist/nano-components/{index-CX_Hk6ss.js → index-q0XK-YfO.js} +0 -0
@@ -1,11 +1,12 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, g as getElement, d as writeTask, a as Host } from './index-
|
5
|
-
import { c as closestElement } from './dom-
|
6
|
-
import { t as transformTag, h } from './renderer-
|
4
|
+
import { r as registerInstance, g as getElement, d as writeTask, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { c as closestElement } from './dom-C8mB0MAq.js';
|
6
|
+
import { t as transformTag, h } from './renderer-BjGZGWn8.js';
|
7
|
+
import { H as HasSlotController } from './slot-CUINJXSo.js';
|
7
8
|
|
8
|
-
const menuDrawerCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{--padding-top:13px;--padding-end:
|
9
|
+
const menuDrawerCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{--padding-top:13px;--padding-end:13px;--padding-bottom:13px;--padding-start:13px;--icon-size:19px;--font-size:var(--nano-font-size-xs);--bg-color:var(--nano-color-grey-mono-1600);--bg-color-hover:var(--nano-color-grey-mono-1400);--bg-color-selected:var(--nano-color-grey-mono-1200);--bg-color-open:var(--nano-color-grey-mono-1500);--content-color:var(--nano-color-basic-white);--global-nav-height:76px;--menu-width:calc((var(--padding-end) + var(--padding-start)) + var(--icon-size));color-scheme:dark;display:block;z-index:1;background:var(--bg-color);color:var(--content-color);min-height:100%}:host(.hide){display:none}.head{border-bottom:var(--nano-color-grey-mono-1400) 1px solid}.container{inset-inline-end:auto;color:var(--content-color);inline-size:var(--menu-width);transition:inline-size 0.3s ease;top:var(--global-nav-height);position:sticky}:host(.open) .container{inline-size:auto}.content-wrap{inset-inline-start:0;inset-block-start:0;inline-size:inherit;background:var(--bg-color);font-size:var(--font-size);line-height:1;display:flex}.content-wrap::after{content:\"\";position:absolute;inset:calc(var(--global-nav-height) * -1) 0 0 0;background-color:var(--bg-color);z-index:-1}.content{max-height:100%;inline-size:auto;display:flex;flex-direction:column;overflow:hidden;flex:1 1 0%}.content:has(.foot){height:calc(100vh - var(--global-nav-height))}.collapse-btn{all:unset;padding-block:6px;padding-inline:var(--padding-start) var(--padding-end);width:100%;display:flex;justify-items:flex-start;background-color:var(--bg-color);appearance:none;cursor:pointer;font-size:var(--icon-size)}.collapse-btn:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.collapse-btn:hover{background-color:var(--bg-color-hover)}.collapse-btn:active{background-color:var(--bg-color-selected)}.collapse-btn .nano-icon{transition:var(--nano-transition-x-fast) rotate ease-in-out;rotate:0deg}:host(.open) .collapse-btn .nano-icon{rotate:180deg}.visually-hidden{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}.foot{margin-block-start:auto;margin-block-end:var(--padding-bottom)}";
|
9
10
|
|
10
11
|
const MenuDrawer = class {
|
11
12
|
constructor(hostRef) {
|
@@ -13,15 +14,12 @@ const MenuDrawer = class {
|
|
13
14
|
}
|
14
15
|
containerDiv;
|
15
16
|
contentDiv;
|
16
|
-
measureEle;
|
17
17
|
globalNav;
|
18
18
|
children = [];
|
19
|
-
|
20
|
-
|
19
|
+
ro;
|
20
|
+
slotCtrl = new HasSlotController(this, 'foot');
|
21
21
|
get el() { return getElement(this); }
|
22
22
|
reset = false;
|
23
|
-
widthOk = true;
|
24
|
-
heightOk = true;
|
25
23
|
isLoading = true;
|
26
24
|
hide = false;
|
27
25
|
/**
|
@@ -29,60 +27,52 @@ const MenuDrawer = class {
|
|
29
27
|
*/
|
30
28
|
open = true;
|
31
29
|
/**
|
32
|
-
*
|
33
|
-
*/
|
34
|
-
saveState = true;
|
35
|
-
/**
|
36
|
-
* Screen width to hide the menu drawer and move the items into the nano-global-nav
|
30
|
+
* Global-nav width to hide the menu drawer and move the items into the nano-global-nav
|
37
31
|
*/
|
38
32
|
hideWidth = 576;
|
39
|
-
/**
|
40
|
-
* Should element hide and move items into the nano-global-nav when items are cut off
|
41
|
-
* (this will only work when nano-menu-drawer is displayed at full screen)
|
42
|
-
*/
|
43
|
-
hideHeight = true;
|
44
33
|
cancelNavItemEvents(ev) {
|
45
34
|
if (!ev.detail.secondaryMenu)
|
46
35
|
return;
|
47
36
|
ev.stopPropagation();
|
48
37
|
}
|
49
38
|
openChange() {
|
50
|
-
|
39
|
+
{
|
51
40
|
localStorage.setItem('nanoMenuDrawerOpen', this.open.toString());
|
52
|
-
if (this.containerDiv) {
|
53
|
-
if (this.open)
|
54
|
-
writeTask(() => (this.containerDiv.style.width = this.contentDiv.scrollWidth + 'px'));
|
55
|
-
else
|
56
|
-
writeTask(() => (this.containerDiv.style.width = null));
|
57
41
|
}
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
this.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
42
|
+
if (this.containerDiv) {
|
43
|
+
const documentWidth = document.documentElement.clientWidth;
|
44
|
+
const scrollbarWidth = Math.abs(window.innerWidth - documentWidth);
|
45
|
+
if (this.open) {
|
46
|
+
const menuWidth = this.contentDiv.scrollWidth;
|
47
|
+
writeTask(() => {
|
48
|
+
this.containerDiv.style.width = menuWidth + 'px';
|
49
|
+
this.containerDiv.style.setProperty('--menu-width', (menuWidth) + 'px');
|
50
|
+
this.containerDiv.style.setProperty('--scrollbar-width', scrollbarWidth + 'px');
|
51
|
+
});
|
52
|
+
}
|
53
|
+
else {
|
54
|
+
writeTask(() => {
|
55
|
+
this.containerDiv.style.width = null;
|
56
|
+
this.containerDiv.style.removeProperty('--menu-width');
|
57
|
+
this.containerDiv.style.setProperty('--scrollbar-width', scrollbarWidth + 'px');
|
58
|
+
});
|
59
|
+
}
|
71
60
|
}
|
72
61
|
}
|
73
62
|
moveItemsToGlobalNav() {
|
74
|
-
const currNavItems = this.el.querySelectorAll(transformTag('nano-nav-item'));
|
75
63
|
// dimensions not cool - move items out of element and into global nav
|
64
|
+
const currNavItems = this.el.querySelectorAll(transformTag('nano-nav-item'));
|
65
|
+
this.hide = true;
|
66
|
+
this.globalNav.triggerResize();
|
76
67
|
currNavItems.forEach((element) => {
|
77
68
|
this.children.push({
|
78
69
|
slot: element.getAttribute('slot'),
|
79
70
|
element: element,
|
80
71
|
});
|
81
|
-
element.setAttribute('slot', '
|
72
|
+
element.setAttribute('slot', 'menu');
|
82
73
|
element.classList.add('nano-global-nav-menu');
|
83
74
|
this.globalNav.appendChild(element);
|
84
75
|
});
|
85
|
-
this.hide = true;
|
86
76
|
}
|
87
77
|
moveItemsToDrawer() {
|
88
78
|
if (!this.children || !this.children.length)
|
@@ -96,92 +86,66 @@ const MenuDrawer = class {
|
|
96
86
|
});
|
97
87
|
this.children = [];
|
98
88
|
this.hide = false;
|
99
|
-
if (!this.io)
|
100
|
-
this.attachIO();
|
101
89
|
}
|
102
|
-
|
103
|
-
if (
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
const vh = window.innerHeight * 0.01;
|
108
|
-
this.el.style.setProperty('--vh', `${vh}px`);
|
109
|
-
if (window.innerHeight > this.currHeight &&
|
110
|
-
this.widthOk &&
|
111
|
-
!this.heightOk) {
|
90
|
+
onResize = () => {
|
91
|
+
if (!this.globalNav || false)
|
92
|
+
return;
|
93
|
+
const { width } = this.globalNav.getBoundingClientRect();
|
94
|
+
if (width > this.hideWidth) {
|
112
95
|
this.moveItemsToDrawer();
|
113
96
|
}
|
114
|
-
|
97
|
+
else {
|
98
|
+
this.moveItemsToGlobalNav();
|
99
|
+
}
|
115
100
|
};
|
116
101
|
toggle = (e) => {
|
117
102
|
e.preventDefault();
|
118
103
|
this.open = !this.open;
|
119
104
|
};
|
120
|
-
|
121
|
-
|
122
|
-
case 'Enter':
|
123
|
-
case ' ':
|
124
|
-
this.open = !this.open;
|
125
|
-
break;
|
126
|
-
}
|
127
|
-
};
|
128
|
-
attachIO() {
|
129
|
-
if (!this.hideHeight)
|
130
|
-
return;
|
131
|
-
const io = (this.io = new window.IntersectionObserver((data) => {
|
132
|
-
this.heightOk = data[0].intersectionRatio !== 0;
|
133
|
-
if (!this.heightOk) {
|
134
|
-
this.moveItemsToGlobalNav();
|
135
|
-
this.io.disconnect();
|
136
|
-
this.io = undefined;
|
137
|
-
}
|
138
|
-
}, { threshold: 1 }));
|
139
|
-
io.observe(this.measureEle);
|
140
|
-
}
|
141
|
-
handleGlobalNavReady(e) {
|
142
|
-
if (e.target.tagName.toLowerCase() !== transformTag('nano-global-nav'))
|
105
|
+
attachRO() {
|
106
|
+
if (this.ro)
|
143
107
|
return;
|
144
|
-
|
145
|
-
this.
|
146
|
-
|
147
|
-
|
148
|
-
this.isLoading = false;
|
149
|
-
}, 500);
|
108
|
+
this.ro = new ResizeObserver(() => {
|
109
|
+
this.onResize();
|
110
|
+
});
|
111
|
+
this.ro.observe(this.globalNav);
|
150
112
|
}
|
151
113
|
componentWillLoad() {
|
152
114
|
this.globalNav = closestElement(transformTag('nano-global-nav'), this.el);
|
153
|
-
this.
|
154
|
-
|
155
|
-
|
115
|
+
if (!this.globalNav) {
|
116
|
+
console.warn('nano-menu-drawer: no nano-global-nav found in the document. nano-global-nav is required to use nano-menu-drawer.');
|
117
|
+
}
|
118
|
+
{
|
156
119
|
const localState = localStorage.getItem('nanoMenuDrawerOpen');
|
157
|
-
this.open = localState ? localState === 'true' : this.open;
|
120
|
+
this.open = localState ? (localState === 'true' ? true : false) : this.open;
|
121
|
+
this.globalNav.componentOnReady().then(() => {
|
122
|
+
this.openChange();
|
123
|
+
});
|
158
124
|
}
|
159
125
|
}
|
126
|
+
connectedCallback() {
|
127
|
+
this.onResize();
|
128
|
+
}
|
160
129
|
componentDidLoad() {
|
161
|
-
|
162
|
-
window.addEventListener('resize', this.onWindowResize);
|
163
|
-
}
|
130
|
+
this.attachRO();
|
164
131
|
}
|
165
132
|
disconnectedCallback() {
|
166
|
-
|
167
|
-
|
168
|
-
this.
|
169
|
-
this.io = null;
|
133
|
+
{
|
134
|
+
this.ro?.disconnect();
|
135
|
+
this.ro = undefined;
|
170
136
|
}
|
171
137
|
}
|
172
138
|
render() {
|
173
|
-
return (h(Host, { key: '
|
139
|
+
return (h(Host, { key: 'fe9f1c17828f6884f663a0990851f66cbb9ff026', class: {
|
174
140
|
open: this.open,
|
175
141
|
hide: this.hide,
|
176
142
|
loading: this.isLoading,
|
177
143
|
'has-global-nav': !!this.globalNav,
|
178
144
|
'nano-menu-drawer': true,
|
179
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: '
|
145
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: '62bcaa0a299c8887479ec83a067eb8e2ff188de8', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'a20706de787a6e6e3b3f1ee4a5a079ed601ac2d2', class: "content-wrap" }, h("nav", { key: 'd487b8709b36b54d207f1a257564b98d12722c09', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: 'e1fb80d26a27fc35d2999908a3d3f264f9bb15af', class: "head" }, h("button", { key: '0778e6742189405de47c34cbe9e346c6fec4de63', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: '5b53c2819fdf51f6b611d11b6ce9c8d621339308', name: "light/arrow-right-to-line" }), h("span", { key: 'b2eff692e0251e2a05a64cc93ed0635ff8659084', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: '7a65ca13555e4706728916e116af51cb05263ed2' }), this.slotCtrl.has('foot') && (h("div", { key: '40794aacb4185b8020e94c79dc9d47e65a637fcc', class: "foot" }, h("slot", { key: 'f5b7d990d47e336ad725b0c3c3726d65f8143122', name: "foot" }))))))));
|
180
146
|
}
|
181
147
|
static get watchers() { return {
|
182
|
-
"open": ["openChange"]
|
183
|
-
"widthOk": ["widthChange"],
|
184
|
-
"hideHeight": ["hideHeightChange"]
|
148
|
+
"open": ["openChange"]
|
185
149
|
}; }
|
186
150
|
};
|
187
151
|
MenuDrawer.style = menuDrawerCss;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, g as getElement, a as Host } from './index-
|
5
|
-
import { h } from './renderer-
|
4
|
+
import { r as registerInstance, g as getElement, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { h } from './renderer-BjGZGWn8.js';
|
6
6
|
|
7
7
|
const Rating = class {
|
8
8
|
constructor(hostRef) {
|
@@ -52,8 +52,8 @@ const Rating = class {
|
|
52
52
|
this.handleShowHideElements();
|
53
53
|
}
|
54
54
|
render() {
|
55
|
-
return (h(Host, { key: '
|
56
|
-
h("div", { key: '
|
55
|
+
return (h(Host, { key: '3bde961caf3acbf1db08892d2131e8afdc457681', class: "nano-more-less" }, h("slot", { key: 'bc9a9c15a5e0ae53735602b23fbb248e8e51649d', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
56
|
+
h("div", { key: '500e8c63e9ef6e0b80318d904388c8cecce8f66f', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '411cfccdaf9eaa3c6443841100791fd656fc71fe', name: "less" }, h("button", { key: '9001e6086687793575b8e3e62529e1c15846aa4e', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
|
57
57
|
!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, ")")))) : (''),
|
58
58
|
]));
|
59
59
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, c as createEvent, g as getElement, a as Host } from './index-
|
5
|
-
import { g as getDirectChildren } from './dom-
|
6
|
-
import { g as getTabbableElements } from './tabbable-
|
7
|
-
import { t as transformTag, h } from './renderer-
|
8
|
-
import { H as HasSlotController } from './slot-
|
4
|
+
import { r as registerInstance, c as createEvent, g as getElement, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { g as getDirectChildren } from './dom-C8mB0MAq.js';
|
6
|
+
import { g as getTabbableElements } from './tabbable-DqhO0wy7.js';
|
7
|
+
import { t as transformTag, h } from './renderer-BjGZGWn8.js';
|
8
|
+
import { H as HasSlotController } from './slot-CUINJXSo.js';
|
9
9
|
import { f as focusInContainer } from './active-element-C1pBwzyj.js';
|
10
10
|
|
11
11
|
/**
|
@@ -80,7 +80,7 @@ const displayTransition = (el, options) => {
|
|
80
80
|
});
|
81
81
|
};
|
82
82
|
|
83
|
-
const navItemCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{display:contents}.navitem{background:inherit;color:inherit}a,button{all:unset;color:inherit;text-decoration:inherit;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:var(--padding);gap:var(--nano-spacing-md);inline-size:100%;box-sizing:border-box;background:inherit}a:hover,a:focus,a:active,button:hover,button:focus,button:active{color:inherit}a:focus-visible,button:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}a[disabled],button[disabled]{opacity:0.5;cursor:not-allowed}.navitem__label{margin-inline-end:auto}.navitem__modal{all:unset;display:none;position:absolute;color:initial;opacity:0;transition:var(--nano-transition-fast) ease}.navitem--open .navitem__modal{opacity:1}::slotted([slot=close-button]){all:unset}::slotted([slot=close-button]):focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}
|
83
|
+
const navItemCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{display:contents}.navitem{background:inherit;color:inherit}a,button{all:unset;color:inherit;text-decoration:inherit;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:var(--padding);gap:var(--nano-spacing-md);inline-size:100%;box-sizing:border-box;background:inherit}a:hover,a:focus,a:active,button:hover,button:focus,button:active{color:inherit}a:focus-visible,button:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}a[disabled],button[disabled]{opacity:0.5;cursor:not-allowed}.navitem__label{margin-inline-end:auto}.navitem__modal{all:unset;display:none;position:absolute;color:initial;opacity:0;transition:var(--nano-transition-fast) ease}.navitem--open .navitem__modal{opacity:1}::slotted([slot=close-button]){all:unset}::slotted([slot=close-button]):focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}";
|
84
84
|
|
85
85
|
const NavItem = class {
|
86
86
|
constructor(hostRef) {
|
@@ -110,8 +110,6 @@ const NavItem = class {
|
|
110
110
|
checkbox = false;
|
111
111
|
/** Whether secondary menus should close on blur */
|
112
112
|
closeOnBlur = true;
|
113
|
-
/** Will show an indicator badge - only when placed in a nano-menu-draw */
|
114
|
-
notification = false;
|
115
113
|
/** Emitted when the nav item closes it's secondary navigation. */
|
116
114
|
nanoClose;
|
117
115
|
/** Emitted when the nav item opens it's secondary navigation. */
|
@@ -240,24 +238,22 @@ const NavItem = class {
|
|
240
238
|
this.openChange();
|
241
239
|
}
|
242
240
|
render() {
|
243
|
-
return (h(Host, { key: '
|
241
|
+
return (h(Host, { key: '815fb74d8f91f3efb7c2582439b1e8f4f4aa905d', class: {
|
244
242
|
'nano-menu-drawer': this.isInMenuDrawer,
|
245
243
|
'nano-nav-item': true,
|
246
244
|
disabled: this.disabled,
|
247
|
-
}, role: this.host.closest('[role="menu"]') ? 'menuitem' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: '
|
245
|
+
}, role: this.host.closest('[role="menu"]') ? 'menuitem' : undefined, "aria-disabled": this.disabled ? 'true' : undefined }, h("div", { key: '63a0f2086fd81b4cbea08c385de2e493d7c8f926', class: {
|
248
246
|
navitem: true,
|
249
247
|
'navitem--open': this.open,
|
250
248
|
'navitem--active': this.selected,
|
251
|
-
}, part: "trigger-wrapper" }, this.href && !this.disabled && (h("a", { key: '
|
249
|
+
}, part: "trigger-wrapper" }, this.href && !this.disabled && (h("a", { key: 'e50cab85eba47cba80ff30a07bcab83c00595915', part: "trigger trigger--anchor", target: this.target, ref: (a) => (this.controlElement = a), href: this.href, class: {
|
252
250
|
navitem__trigger: true,
|
253
|
-
|
254
|
-
} }, h("slot", { key: '47cdd2e84dd51f236675351c599d8e9f9bf66ede', name: "icon-start" }), h("span", { key: 'a15d804a252ed532501fb08536ed5ce8a3b42e47', class: "navitem__label", part: "label" }, h("slot", { key: 'ea37d813d0fd15bd457930b61d06cd97d64fce35', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '384a3212fba3d0cc3d488974dcaf53c23c3942e1', name: "icon-end" }))), (!this.href || this.disabled) && (h("button", { key: '698c4beb9cddb3b2037db40b5c9e33a276dad060', role: this.checkbox ? 'checkbox' : undefined, "aria-checked": this.checkbox ? this.selected.toString() : undefined, part: "trigger trigger--button", ref: (btn) => (this.controlElement = btn), onClick: this.handleClick, disabled: this.disabled, class: {
|
251
|
+
} }, h("slot", { key: '2fc43a8c964c8e34e045e0df85d5bf355b3e9b26', name: "icon-start" }), h("span", { key: '6aed9dea66e87ef15edb69971b1c97fd8d2fbe29', class: "navitem__label", part: "label" }, h("slot", { key: '96f26809714cbe44effe57851814e1e24a6ad851', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: 'f43de3bfdb6cdea0f93fe248d873c73062a3034b', name: "icon-end" }))), (!this.href || this.disabled) && (h("button", { key: '9db35da35c662d588729976d1be17a07ed855642', role: this.checkbox ? 'checkbox' : undefined, "aria-checked": this.checkbox ? this.selected.toString() : undefined, part: "trigger trigger--button", ref: (btn) => (this.controlElement = btn), onClick: this.handleClick, disabled: this.disabled, class: {
|
255
252
|
navitem__trigger: true,
|
256
|
-
|
257
|
-
} }, h("slot", { key: 'c01a71dfaeb867d2792146110fdde1dd134b7f71', name: "icon-start" }), h("span", { key: '6a48071ba10f1407350e87958ed491f704714ea8', class: "navitem__label", part: "label" }, h("slot", { key: '246f807c0a03a8805fea87023f48de2f5fa7a7a0', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '6a246213800a4425464ac41aefe9362e327d412f', name: "icon-end" }))), this.slotCtrl.has('secondary') && !this.disabled && (h("div", { key: '8928988fd43de734785801c9fc7707fb7efa33c3', part: "modal", class: {
|
253
|
+
} }, h("slot", { key: '394a189a9d5d8b65607bd6089c9a08cdeed8e48a', name: "icon-start" }), h("span", { key: '28b56da5d700f7654c2d42fda996babff390f92e', class: "navitem__label", part: "label" }, h("slot", { key: '13a35382772f7ee79af116c500eba5d4fd4a25ad', onSlotchange: this.handleDefaultSlotChange })), h("slot", { key: '158f3590fcf2025c3c53bd3d3f9dbeddbd2829ba', name: "icon-end" }))), this.slotCtrl.has('secondary') && !this.disabled && (h("div", { key: '44ab1a0d6930f5d60b8540157911d365821f611c', part: "modal", class: {
|
258
254
|
navitem__modal: true,
|
259
255
|
'navitem__modal--open': this.didOpen,
|
260
|
-
}, ref: (div) => (this.secondaryDiv = div), tabIndex: -1 }, h("div", { key: '
|
256
|
+
}, ref: (div) => (this.secondaryDiv = div), tabIndex: -1 }, h("div", { key: '758dc3ed99502ff459b187fb42dc6f1c83f335e8', class: "navitem__modal-content", part: `modal-content ${this.didOpen ? 'modal-content--open' : ''}` }, this.slotCtrl.has('close-button') && (h("div", { key: 'fb30657f31352b234b8f5f9f7dea697b663dc05d', part: "close-button", onClick: this.closeSecondary }, h("slot", { key: 'de6bdeb04bf0543c2200cca7a7a1d8d70032d0ed', name: "close-button" }))), h("slot", { key: '45c2c6ce36042b43c8177343e238392193a16367', name: "secondary" })), h("div", { key: 'd9ccc26e9f2675dcf5fc9000bc2759fd48247fe2', class: "navitem__modal-mask", onClick: this.closeSecondary, part: `modal-mask ${this.didOpen ? 'modal-mask--open' : ''}` }))))));
|
261
257
|
}
|
262
258
|
static get watchers() { return {
|
263
259
|
"open": ["openChange"],
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance } from './index-
|
4
|
+
import { r as registerInstance } from './index-q0XK-YfO.js';
|
5
5
|
|
6
6
|
const progressBarCss = ":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}}nano-progress-bar{--indicator-color:var(--nano-color-primary-1000);--track-color:var(--nano-color-neutral-300);--border-radius:1.25rem;--height:0.625rem;display:grid;position:relative;overflow:clip;border-radius:var(--border-radius);block-size:var(--height);font-size:var(--height)}nano-progress-bar[size=small]{--height:0.3125rem}nano-progress-bar[size=large]{--height:0.9375rem}nano-progress-bar progress{appearance:none;inline-size:100%;block-size:inherit;border-radius:var(--border-radius);background-color:var(--track-color);grid-area:1/1}nano-progress-bar>label{grid-area:1/1;position:absolute;inset:0}nano-progress-bar>label progress{position:absolute;inset:0}nano-progress-bar:has(progress:not([value]))::after{content:\"\";inline-size:100%;inset:0;display:block;transform:translateZ(0);animation:indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);background-color:var(--indicator-color);grid-area:1/1;border-radius:none}nano-progress-bar progress:not([value])::-webkit-progress-bar{border-radius:var(--border-radius);background-color:var(--track-color)}nano-progress-bar progress:not([value])::-moz-progress-bar{border-radius:var(--border-radius);background-color:var(--track-color)}@keyframes indeterminate{0%{scale:1 1;transform:translateX(-100%) translateZ(0)}75%,100%{scale:1 1;transform:translateX(100%) translateZ(0)}}nano-progress-bar progress[value]::-webkit-progress-bar{border-radius:var(--border-radius);background-color:var(--track-color)}nano-progress-bar progress[value]::-webkit-progress-value{background-color:var(--indicator-color);-webkit-transition:inline-size var(--nano-transition-fast);transition:inline-size var(--nano-transition-fast)}nano-progress-bar progress[value]::-moz-progress-bar{background-color:var(--indicator-color);-moz-transition:inline-size var(--nano-transition-fast);transition:inline-size var(--nano-transition-fast)}nano-progress-bar[show-percent] progress[value]::before{content:attr(value) \"%\";position:absolute;inline-size:attr(value %);min-inline-size:6%;inset-block-start:50%;translate:0 -50%;text-align:center;transition:inline-size var(--nano-transition-fast);font-size:0.75em;color:var(--nano-color-base-0)}";
|
7
7
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, c as createEvent, g as getElement, a as Host } from './index-
|
5
|
-
import { h } from './renderer-
|
4
|
+
import { r as registerInstance, c as createEvent, g as getElement, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { h } from './renderer-BjGZGWn8.js';
|
6
6
|
import { a as clamp } from './math-BEqsTfVK.js';
|
7
7
|
import { c as createColorClasses } from './theme-aiuyr36I.js';
|
8
8
|
import { a as debounceEvent } from './throttle-C93FMm2Z.js';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, c as createEvent, g as getElement, a as Host } from './index-
|
5
|
-
import { h } from './renderer-
|
4
|
+
import { r as registerInstance, c as createEvent, g as getElement, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { h } from './renderer-BjGZGWn8.js';
|
6
6
|
import { a as clamp } from './math-BEqsTfVK.js';
|
7
7
|
|
8
8
|
const ratingCss = ".sc-nano-rating-h,*.sc-nano-rating,*.sc-nano-rating::before,*.sc-nano-rating::after{box-sizing:border-box}[hidden].sc-nano-rating{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-rating-h,*.sc-nano-rating,*.sc-nano-rating::before,*.sc-nano-rating::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-rating-h,*.sc-nano-rating,*.sc-nano-rating::before,*.sc-nano-rating::after{box-sizing:border-box}[hidden].sc-nano-rating{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-rating-h,*.sc-nano-rating,*.sc-nano-rating::before,*.sc-nano-rating::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-rating-h{--symbol-color:#b5aea7;--symbol-color-active:#f5cc49;--symbol-spacing:0.25rem;--focus-shadow:var(--nano-control-focus-shadow, 0 0 0 0.1875rem var(--nano-control-focus-color, rgba(144, 198, 231, 0.8)));display:inline-block}.rating-wrap.sc-nano-rating{position:relative;margin-block:0;margin-inline:calc(var(--symbol-spacing) * -1)}.rating.sc-nano-rating{position:relative;border-radius:5px;vertical-align:middle;inline-size:100%;transition:box-shadow 0.15s ease}.rating.sc-nano-rating:focus{outline:none}.rating.sc-nano-rating:focus-visible:focus{box-shadow:var(--focus-shadow)}.rating__symbols.sc-nano-rating{display:flex;align-items:center;position:relative;font-size:var(--symbol-size);color:var(--symbol-color);white-space:nowrap;cursor:pointer;line-height:0;justify-content:space-between}.rating__symbols--inactive.sc-nano-rating .rating__symbol.sc-nano-rating>.sc-nano-rating:not(.nano-icon){background-color:currentcolor !important}.rating__symbols.sc-nano-rating>*.sc-nano-rating{margin:var(--symbol-spacing)}.rating__symbols--indicator.sc-nano-rating{position:absolute;inset-block-start:0;inset-inline-start:0;color:var(--symbol-color-active);pointer-events:none;inline-size:100%}.rating__symbol.sc-nano-rating{transition:0.2s transform;text-align:center}.rating__symbol--hover.sc-nano-rating{transform:scale(1.2)}.rating--disabled.sc-nano-rating .rating__symbols.sc-nano-rating,.rating--readonly.sc-nano-rating .rating__symbols.sc-nano-rating{cursor:default}.rating--disabled.sc-nano-rating .rating__symbol.sc-nano-rating,.rating--readonly.sc-nano-rating .rating__symbol.sc-nano-rating{transform:none !important}.rating--disabled.sc-nano-rating{opacity:0.5}.rating--disabled.sc-nano-rating .rating__symbols.sc-nano-rating{cursor:not-allowed}";
|
@@ -172,23 +172,23 @@ const Rating = class {
|
|
172
172
|
else {
|
173
173
|
displayValue = this.isHovering ? this.hoverValue : this.value;
|
174
174
|
}
|
175
|
-
return (h(Host, { key: '
|
175
|
+
return (h(Host, { key: '3c6a6a92555b16420e5a5401f6020a6c2bc66b50', class: "nano-rating" }, h("div", { key: '2ccf681ef28c0f2b804da2c98416c7ea384de6fa', class: "rating-wrap" }, h("div", { key: '529d5315867405bc0b50ebe4e1ee3c38c88002ef', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
|
176
176
|
rating: true,
|
177
177
|
'rating--readonly': this.readonly,
|
178
178
|
'rating--disabled': this.disabled,
|
179
|
-
}, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '
|
179
|
+
}, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabIndex: this.disabled ? -1 : 0, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onMouseMove: this.handleMouseMove, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("span", { key: '81cefbe9454eed12d1689cc7e0e2d525a760a5b2', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
|
180
180
|
rating__symbol: true,
|
181
181
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
182
182
|
},
|
183
183
|
// Users can click the current value to clear the rating. When this happens, we set this.isHovering to
|
184
184
|
// false to prevent the hover state from confusing them as they move the mouse out of the control. This
|
185
185
|
// extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
|
186
|
-
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '
|
186
|
+
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '418807cc26fddef01c6f9ea63def433e9b9d71e9', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
|
187
187
|
clip: this.clip(displayValue),
|
188
188
|
} }, counter.map((index) => (h("span", { class: {
|
189
189
|
rating__symbol: true,
|
190
190
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
191
|
-
}, innerHTML: this.symbol(index + 1) })))), h("input", { key: '
|
191
|
+
}, innerHTML: this.symbol(index + 1) })))), h("input", { key: '7c759836e1c59f34140097b9e0026e99fda9abe5', type: "hidden", name: this.name, value: this.value, disabled: this.disabled || this.readonly })))));
|
192
192
|
}
|
193
193
|
static get watchers() { return {
|
194
194
|
"value": ["handleValueChange"],
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, c as createEvent, g as getElement, e as readTask, a as Host } from './index-
|
5
|
-
import { h } from './renderer-
|
4
|
+
import { r as registerInstance, c as createEvent, g as getElement, e as readTask, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { h } from './renderer-BjGZGWn8.js';
|
6
6
|
|
7
7
|
const ResizeObserve = class {
|
8
8
|
constructor(hostRef) {
|
@@ -91,40 +91,41 @@ const ResizeObserve = class {
|
|
91
91
|
};
|
92
92
|
return recurse(ele);
|
93
93
|
};
|
94
|
-
let didChange = false;
|
95
94
|
const measureEle = findNonContentsEle(this.host.firstElementChild);
|
96
|
-
if (measureEle)
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
didChange = true;
|
106
|
-
this.contentFitX = true;
|
107
|
-
}
|
95
|
+
if (!measureEle)
|
96
|
+
return;
|
97
|
+
let didChange = false;
|
98
|
+
const { width, height } = this.host.getBoundingClientRect();
|
99
|
+
if (this.notifyContentFit && this.notifyContentFit.includes('x')) {
|
100
|
+
if (width < measureEle.scrollWidth &&
|
101
|
+
this.contentFitX !== false) {
|
102
|
+
didChange = true;
|
103
|
+
this.contentFitX = false;
|
108
104
|
}
|
109
|
-
if (
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
this.contentFitY = false;
|
114
|
-
}
|
115
|
-
else if (this.currentHeight >= measureEle.scrollHeight &&
|
116
|
-
this.contentFitY !== true) {
|
117
|
-
didChange = true;
|
118
|
-
this.contentFitY = true;
|
119
|
-
}
|
105
|
+
else if (width >= measureEle.scrollWidth &&
|
106
|
+
this.contentFitX !== true) {
|
107
|
+
didChange = true;
|
108
|
+
this.contentFitX = true;
|
120
109
|
}
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
110
|
+
}
|
111
|
+
if (this.notifyContentFit && this.notifyContentFit.includes('y')) {
|
112
|
+
if (height < measureEle.scrollHeight &&
|
113
|
+
this.contentFitY !== false) {
|
114
|
+
didChange = true;
|
115
|
+
this.contentFitY = false;
|
116
|
+
}
|
117
|
+
else if (height >= measureEle.scrollHeight &&
|
118
|
+
this.contentFitY !== true) {
|
119
|
+
didChange = true;
|
120
|
+
this.contentFitY = true;
|
126
121
|
}
|
127
122
|
}
|
123
|
+
if (didChange) {
|
124
|
+
this.nanoResizeContentFitChange.emit({
|
125
|
+
x: this.contentFitX,
|
126
|
+
y: this.contentFitY,
|
127
|
+
});
|
128
|
+
}
|
128
129
|
}
|
129
130
|
assessChanges = () => {
|
130
131
|
if (!this.currentWidth && !this.currentHeight)
|
@@ -178,7 +179,7 @@ const ResizeObserve = class {
|
|
178
179
|
});
|
179
180
|
});
|
180
181
|
});
|
181
|
-
this.classNames = ['is-ready', ...classNames];
|
182
|
+
this.classNames = [...new Set(['is-ready', ...classNames])];
|
182
183
|
this.nanoResizeStateChange.emit(this.toSimpleObj(changes));
|
183
184
|
}
|
184
185
|
toSimpleObj(stateMaps) {
|
@@ -222,11 +223,19 @@ const ResizeObserve = class {
|
|
222
223
|
this.attachRO();
|
223
224
|
}
|
224
225
|
disconnectedCallback() {
|
225
|
-
if (this.ro)
|
226
|
+
if (this.ro) {
|
226
227
|
this.ro.disconnect();
|
228
|
+
this.ro = undefined;
|
229
|
+
}
|
227
230
|
}
|
228
231
|
render() {
|
229
|
-
return (h(Host, { key: '
|
232
|
+
return (h(Host, { key: '8a8006f2426c4cf29fb0decf2b5fa49797f04c63', class: {
|
233
|
+
'nano-resize-observe': true,
|
234
|
+
'content-fit-x': this.contentFitX,
|
235
|
+
'content-fit-y': this.contentFitY,
|
236
|
+
'content-nofit-x': this.contentFitX === false,
|
237
|
+
'content-nofit-y': this.contentFitY === false,
|
238
|
+
} }, h("slot", { key: 'e077345fe28091840cca8e2424fa577df01ec87d' }), !!this.notifyContentFit &&
|
230
239
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
231
240
|
this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
|
232
241
|
this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { r as registerInstance, c as createEvent, a as Host } from './index-
|
5
|
-
import { h } from './renderer-
|
4
|
+
import { r as registerInstance, c as createEvent, a as Host } from './index-q0XK-YfO.js';
|
5
|
+
import { h } from './renderer-BjGZGWn8.js';
|
6
6
|
|
7
7
|
const slideCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host{display:flex;align-items:center;justify-content:center;inline-size:100%;min-block-size:100%;font-size:18px;text-align:center;box-sizing:border-box;overflow:hidden;transition:opacity 0.2s;opacity:0;flex-direction:column}:host([ready]){opacity:1}:host(:not([ready])){flex:1 0 auto}";
|
8
8
|
|
@@ -37,7 +37,7 @@ const Slide = class {
|
|
37
37
|
});
|
38
38
|
}
|
39
39
|
render() {
|
40
|
-
return (h(Host, { key: '
|
40
|
+
return (h(Host, { key: '3c6b1d8ac380c330925fdd1688ca54161afa5033', class: "nano-slide" }, h("slot", { key: 'c9befdfd0d120aa6c773ba9ed24d97fcde7f8ce7' })));
|
41
41
|
}
|
42
42
|
static get watchers() { return {
|
43
43
|
"ready": ["readyChange"]
|