@nanoporetech-digital/components 8.0.0-alpha.7 → 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-BQI-VEQG.js → fade-DYt6Phy3.js} +3 -3
- package/dist/cjs/{form-control-OWJOOoxA.js → form-control-BGk1kbyE.js} +1 -1
- package/dist/cjs/{fullscreen-C3ErAoTH.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} +5 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-zGvFFCJx.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 +3 -3
- package/dist/cjs/nano-avatar_5.cjs.entry.js +21 -19
- 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 +16 -19
- 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-ed7Lg_CN.js → nano-data-table-zUnFb2XO.js} +6 -6
- 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 +16 -14
- 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 +19 -0
- package/dist/cjs/nano-field-validator.cjs.entry.js +3 -3
- package/dist/cjs/nano-file-upload.cjs.entry.js +9 -6
- 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 +4 -4
- 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 +7 -7
- 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 +2 -2
- 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-Aq8Qr76Y.js → nano-slides-C3CzGlwK.js} +13 -11
- 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 +5 -5
- 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-BCL1Ou_V.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-L6KfPMgT.js → table.worker-Dto6wn52.js} +6 -6
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/algolia/algolia.js +1 -1
- package/dist/collection/components/animation/animation.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/card/card.js +1 -0
- package/dist/collection/components/checkbox/checkbox-group.js +14 -17
- package/dist/collection/components/data-table/table.js +1 -1
- package/dist/collection/components/datalist/datalist.js +6 -6
- package/dist/collection/components/date-input/date-input.js +5 -6
- package/dist/collection/components/date-picker/date-picker.js +3 -3
- package/dist/collection/components/drawer/drawer.css +0 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/feature-box/feature-box.css +42 -0
- package/dist/collection/components/feature-box/feature-box.js +49 -0
- package/dist/collection/components/field-validator/field-validator.js +1 -1
- package/dist/collection/components/file-upload/file-upload.js +7 -4
- 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/grid/grid.js +1 -1
- package/dist/collection/components/in-page-nav/in-page-nav.js +15 -5
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +8 -6
- package/dist/collection/components/masked-overflow/masked-overflow.js +3 -3
- 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/progress-bar/progress-bar.css +5 -5
- 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.css +1 -1
- package/dist/collection/components/select/select.js +10 -8
- package/dist/collection/components/slides/lib/js/prev-next-button.js +3 -1
- package/dist/collection/components/slides/slide.js +1 -1
- package/dist/collection/components/slides/slides.css +2 -2
- 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-group.js +1 -1
- 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/constructible-style.js +1 -1
- 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/date-picker.js +3 -3
- package/dist/components/drawer.js +1 -1
- package/dist/components/grid.js +2 -2
- package/dist/components/input.js +9 -7
- package/dist/components/masked-overflow.js +3 -3
- package/dist/components/nano-animation.js +1 -1
- package/dist/components/nano-breadcrumb.js +42 -9
- package/dist/components/nano-checkbox-group.js +14 -17
- package/dist/components/nano-data-table.js +1 -1
- package/dist/components/nano-date-input.js +4 -4
- package/dist/components/nano-feature-box.d.ts +11 -0
- package/dist/components/nano-feature-box.js +36 -0
- package/dist/components/nano-file-upload.js +7 -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-group.js +1 -1
- 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/progress-bar.js +1 -1
- package/dist/components/resize-observe.js +41 -32
- package/dist/components/scroll.js +8 -13
- package/dist/components/select.js +11 -9
- package/dist/components/slides.js +7 -5
- 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-TBJBUY-M.js → fade-BUaM9GO7.js} +3 -3
- package/dist/esm/{form-control-dh9YtDPa.js → form-control-COOIq-Al.js} +1 -1
- package/dist/esm/{fullscreen-7z4Hd9oU.js → fullscreen-D9bU32l7.js} +3 -3
- package/dist/esm/{index-CX_Hk6ss.js → index-q0XK-YfO.js} +5 -1
- package/dist/esm/{index-VZJF9v1K.js → index-wpeqhSWn.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-CMsexkIp.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 +3 -3
- package/dist/esm/nano-avatar_5.entry.js +21 -19
- 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 +16 -19
- 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-CraXN1D7.js → nano-data-table-CC6zn15I.js} +6 -6
- 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 +16 -14
- 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 +17 -0
- package/dist/esm/nano-field-validator.entry.js +3 -3
- package/dist/esm/nano-file-upload.entry.js +9 -6
- 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 +4 -4
- 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 +7 -7
- 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 +2 -2
- 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-CuheM3tf.js → nano-slides-B0sdF3jS.js} +13 -11
- 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 +5 -5
- package/dist/esm/nano-tab.entry.js +4 -4
- package/dist/esm/nano-table.entry.js +4 -4
- package/dist/esm/{page-dots-Dlng6mCY.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-D6BwHdpG.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-TBJBUY-M.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-7z4Hd9oU.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-CMsexkIp.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 +365 -120
- 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-CraXN1D7.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 +4 -0
- 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-CuheM3tf.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-Dlng6mCY.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/card/card.d.ts +1 -0
- package/dist/types/components/date-input/date-input.d.ts +1 -2
- package/dist/types/components/date-picker/date-picker-interface.d.ts +6 -6
- package/dist/types/components/feature-box/feature-box.d.ts +14 -0
- 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/slides/slides-interface.d.ts +1 -1
- package/dist/types/components.d.ts +79 -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 +232 -125
- package/docs-vscode.json +25 -16
- package/hydrate/index.js +303 -342
- package/hydrate/index.mjs +303 -342
- package/package.json +3 -3
- package/dist/nano-components/scroll-D4n69pGx.js +0 -4
- package/dist/nano-components/table.worker-D6BwHdpG.js +0 -4
- /package/dist/nano-components/{index-CX_Hk6ss.js → index-q0XK-YfO.js} +0 -0
@@ -166,23 +166,23 @@ export class Rating {
|
|
166
166
|
else {
|
167
167
|
displayValue = this.isHovering ? this.hoverValue : this.value;
|
168
168
|
}
|
169
|
-
return (h(Host, { key: '
|
169
|
+
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: {
|
170
170
|
rating: true,
|
171
171
|
'rating--readonly': this.readonly,
|
172
172
|
'rating--disabled': this.disabled,
|
173
|
-
}, "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: '
|
173
|
+
}, "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: {
|
174
174
|
rating__symbol: true,
|
175
175
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
176
176
|
},
|
177
177
|
// Users can click the current value to clear the rating. When this happens, we set this.isHovering to
|
178
178
|
// false to prevent the hover state from confusing them as they move the mouse out of the control. This
|
179
179
|
// extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
|
180
|
-
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '
|
180
|
+
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '418807cc26fddef01c6f9ea63def433e9b9d71e9', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
|
181
181
|
clip: this.clip(displayValue),
|
182
182
|
} }, counter.map((index) => (h("span", { class: {
|
183
183
|
rating__symbol: true,
|
184
184
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
185
|
-
}, innerHTML: this.symbol(index + 1) })))), h("input", { key: '
|
185
|
+
}, innerHTML: this.symbol(index + 1) })))), h("input", { key: '7c759836e1c59f34140097b9e0026e99fda9abe5', type: "hidden", name: this.name, value: this.value, disabled: this.disabled || this.readonly })))));
|
186
186
|
}
|
187
187
|
static get is() { return "nano-rating"; }
|
188
188
|
static get encapsulation() { return "scoped"; }
|
@@ -6,6 +6,9 @@ import { h } from "../../utils/renderer";
|
|
6
6
|
/**
|
7
7
|
* A thin, declarative interface to the [ResizeObserver API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver).
|
8
8
|
*
|
9
|
+
* @status stable
|
10
|
+
* @version 1.0.0
|
11
|
+
*
|
9
12
|
* @slot - Main slot for any content.
|
10
13
|
* @slot content-fit-x - optional slot (when `notifyContentFit` is set). Shows when content fits / doesn't get cut off
|
11
14
|
* @slot content-nofit-x - optional slot (when `notifyContentFit` is set). Shows when content doesn't get cut off
|
@@ -92,40 +95,41 @@ export class ResizeObserve {
|
|
92
95
|
};
|
93
96
|
return recurse(ele);
|
94
97
|
};
|
95
|
-
let didChange = false;
|
96
98
|
const measureEle = findNonContentsEle(this.host.firstElementChild);
|
97
|
-
if (measureEle)
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
didChange = true;
|
107
|
-
this.contentFitX = true;
|
108
|
-
}
|
99
|
+
if (!measureEle)
|
100
|
+
return;
|
101
|
+
let didChange = false;
|
102
|
+
const { width, height } = this.host.getBoundingClientRect();
|
103
|
+
if (this.notifyContentFit && this.notifyContentFit.includes('x')) {
|
104
|
+
if (width < measureEle.scrollWidth &&
|
105
|
+
this.contentFitX !== false) {
|
106
|
+
didChange = true;
|
107
|
+
this.contentFitX = false;
|
109
108
|
}
|
110
|
-
if (
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
this.contentFitY = false;
|
115
|
-
}
|
116
|
-
else if (this.currentHeight >= measureEle.scrollHeight &&
|
117
|
-
this.contentFitY !== true) {
|
118
|
-
didChange = true;
|
119
|
-
this.contentFitY = true;
|
120
|
-
}
|
109
|
+
else if (width >= measureEle.scrollWidth &&
|
110
|
+
this.contentFitX !== true) {
|
111
|
+
didChange = true;
|
112
|
+
this.contentFitX = true;
|
121
113
|
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
114
|
+
}
|
115
|
+
if (this.notifyContentFit && this.notifyContentFit.includes('y')) {
|
116
|
+
if (height < measureEle.scrollHeight &&
|
117
|
+
this.contentFitY !== false) {
|
118
|
+
didChange = true;
|
119
|
+
this.contentFitY = false;
|
120
|
+
}
|
121
|
+
else if (height >= measureEle.scrollHeight &&
|
122
|
+
this.contentFitY !== true) {
|
123
|
+
didChange = true;
|
124
|
+
this.contentFitY = true;
|
127
125
|
}
|
128
126
|
}
|
127
|
+
if (didChange) {
|
128
|
+
this.nanoResizeContentFitChange.emit({
|
129
|
+
x: this.contentFitX,
|
130
|
+
y: this.contentFitY,
|
131
|
+
});
|
132
|
+
}
|
129
133
|
}
|
130
134
|
assessChanges = () => {
|
131
135
|
if (!this.currentWidth && !this.currentHeight)
|
@@ -179,7 +183,7 @@ export class ResizeObserve {
|
|
179
183
|
});
|
180
184
|
});
|
181
185
|
});
|
182
|
-
this.classNames = ['is-ready', ...classNames];
|
186
|
+
this.classNames = [...new Set(['is-ready', ...classNames])];
|
183
187
|
this.nanoResizeStateChange.emit(this.toSimpleObj(changes));
|
184
188
|
}
|
185
189
|
toSimpleObj(stateMaps) {
|
@@ -223,11 +227,19 @@ export class ResizeObserve {
|
|
223
227
|
this.attachRO();
|
224
228
|
}
|
225
229
|
disconnectedCallback() {
|
226
|
-
if (this.ro)
|
230
|
+
if (this.ro) {
|
227
231
|
this.ro.disconnect();
|
232
|
+
this.ro = undefined;
|
233
|
+
}
|
228
234
|
}
|
229
235
|
render() {
|
230
|
-
return (h(Host, { key: '
|
236
|
+
return (h(Host, { key: '8a8006f2426c4cf29fb0decf2b5fa49797f04c63', class: {
|
237
|
+
'nano-resize-observe': true,
|
238
|
+
'content-fit-x': this.contentFitX,
|
239
|
+
'content-fit-y': this.contentFitY,
|
240
|
+
'content-nofit-x': this.contentFitX === false,
|
241
|
+
'content-nofit-y': this.contentFitY === false,
|
242
|
+
} }, h("slot", { key: 'e077345fe28091840cca8e2424fa577df01ec87d' }), !!this.notifyContentFit &&
|
231
243
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
232
244
|
this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
|
233
245
|
this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
|
@@ -358,7 +358,7 @@ label.visually-hide,
|
|
358
358
|
display: grid;
|
359
359
|
grid-template-areas: "overlay";
|
360
360
|
}
|
361
|
-
:host(:not(.is-invalid
|
361
|
+
:host(:not(.is-invalid, .is-valid)) .form-ctrl__validation-icon {
|
362
362
|
display: none;
|
363
363
|
}
|
364
364
|
|
@@ -113,7 +113,9 @@ export class Select {
|
|
113
113
|
* String to place within a label element. Alternatively you may use a label slot.
|
114
114
|
*/
|
115
115
|
get label() {
|
116
|
-
return this.required && !this._label.endsWith('*')
|
116
|
+
return this.required && !this._label.endsWith('*')
|
117
|
+
? this._label + ' *'
|
118
|
+
: this._label;
|
117
119
|
}
|
118
120
|
set label(value) {
|
119
121
|
this._label = value;
|
@@ -701,30 +703,30 @@ export class Select {
|
|
701
703
|
disabled,
|
702
704
|
clearControl: this.clearable,
|
703
705
|
}))(this);
|
704
|
-
return (h(Host, { key: '
|
706
|
+
return (h(Host, { key: '260ec75bf9f2624c4303f9107cb151b97065174a', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
|
705
707
|
'has-value': !!this.value.length || !!this.inputSearchVal.length,
|
706
708
|
'has-focus': this.hasFocus,
|
707
709
|
'is-invalid': this._invalid === true,
|
708
710
|
'is-valid': this._invalid === false,
|
709
711
|
'nano-select': true,
|
710
|
-
} }, h(FormControlWrap, { key: '
|
712
|
+
} }, h(FormControlWrap, { key: 'd87280b7bc9405de2db9cc12db0538cf76e95504', ...wrapOptions, class: {
|
711
713
|
'has-error': !!this.errorMessage &&
|
712
714
|
this.showInlineError &&
|
713
715
|
this._invalid === true,
|
714
716
|
'has-helper': this.hasHelperSlot,
|
715
717
|
'is-open': this.hasOpened,
|
716
718
|
masked: this.mask,
|
717
|
-
} }, h(FormControl, { key: '
|
718
|
-
this.mask && (h("div", { key: '
|
719
|
-
h("input", { key: '
|
720
|
-
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: '
|
719
|
+
} }, h(FormControl, { key: 'ffcd44c88c563f296c5508e95c7a41d74617f484', ...controlOptions, ref: (el) => (this.selectWrap = el), onClearText: this.clearSelectValue, control: this.el, endValueSlot: h("slot", { name: "down-arrow" }, h("nano-icon", { class: "select__down-arrow", name: "light/chevron-down" })), showInlineError: this.showInlineError }, this.multiple && (h("div", { key: 'dfc075f72efc14b669f90d3a13472c806dc68ddd', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
|
720
|
+
this.mask && (h("div", { key: '5826e2e1e7c3588349ed4279c95a5ef0b15b21d2', class: "select__mask" }, this.getLabel(this.value))),
|
721
|
+
h("input", { key: 'eb120065926e6acc331a136fd981ad33bec34941', ref: (input) => (this.inputCtrl = input), id: this.selectId, class: "select__native-input", "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, placeholder: this.placeholder, readOnly: true, required: this.required, value: this.getLabel(this.value), onFocus: this.onFocus }),
|
722
|
+
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: '235fe1c1381a7a275b8485ed327e32c65ca1afdc', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
|
721
723
|
e.preventDefault();
|
722
724
|
this.removeValue(e.detail.value);
|
723
725
|
}, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
|
724
726
|
// @ts-expect-error - this bubbles from the nano-dropdown
|
725
727
|
onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
|
726
728
|
this.multiple &&
|
727
|
-
!!this.inputSearchVal && (h("nano-option", { key: '
|
729
|
+
!!this.inputSearchVal && (h("nano-option", { key: '284691608ccaeb8dd109db1e67a7f5b71c161b26', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: '01613a6b92b766ec5fc3cbd8f599d3ff2c5a40f6', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: 'f4a80a0be3b228c8323c439f100e0ead6bb259a8' }))), h("select", { key: 'b963c46543facd4ee4780ea9575cd0d1bd943b2b', id: this.selectId + '-hidden', class: "select__native-ctrl", ref: (select) => (this.nativeSelect = select), "aria-labelledby": labelId + ' ' + moreId + ' ' + helperEndId, disabled: this.disabled, form: this.form, multiple: this.multiple, name: this.name, required: this.required, onInvalid: this.handleInvalid }, this.allowCustomValues &&
|
728
730
|
this.valArray.map((val) => {
|
729
731
|
return (h("option", { value: val, selected: true }, val));
|
730
732
|
}), !this.allowCustomValues &&
|
@@ -45,7 +45,9 @@ export default () => {
|
|
45
45
|
});
|
46
46
|
// create arrow
|
47
47
|
const icon = document.createElement('span');
|
48
|
-
icon.className =
|
48
|
+
icon.className =
|
49
|
+
'button-icon ' +
|
50
|
+
(this.isPrevious ? 'button-icon--previous' : 'button-icon--next');
|
49
51
|
icon.part.add('navigation-icon');
|
50
52
|
slot.appendChild(icon);
|
51
53
|
// events
|
@@ -38,7 +38,7 @@ export class Slide {
|
|
38
38
|
});
|
39
39
|
}
|
40
40
|
render() {
|
41
|
-
return (h(Host, { key: '
|
41
|
+
return (h(Host, { key: '3c6b1d8ac380c330925fdd1688ca54161afa5033', class: "nano-slide" }, h("slot", { key: 'c9befdfd0d120aa6c773ba9ed24d97fcde7f8ce7' })));
|
42
42
|
}
|
43
43
|
static get is() { return "nano-slide"; }
|
44
44
|
static get encapsulation() { return "shadow"; }
|
@@ -273,7 +273,7 @@ https://flickity.metafizzy.co
|
|
273
273
|
z-index: 4;
|
274
274
|
display: inline-flex;
|
275
275
|
justify-content: center;
|
276
|
-
|
276
|
+
inset-block-end: 0;
|
277
277
|
}
|
278
278
|
|
279
279
|
.flickity-rtl .flickity-page-dots {
|
@@ -298,7 +298,7 @@ https://flickity.metafizzy.co
|
|
298
298
|
content: "";
|
299
299
|
position: absolute;
|
300
300
|
inset: 0;
|
301
|
-
background:
|
301
|
+
background: currentcolor;
|
302
302
|
background: var(--dot-color);
|
303
303
|
margin: calc(var(--nano-spacing-md) / 2);
|
304
304
|
}
|
@@ -499,15 +499,15 @@ export class Slides {
|
|
499
499
|
this.destroyflickity();
|
500
500
|
}
|
501
501
|
render() {
|
502
|
-
return (h(Host, { key: '
|
502
|
+
return (h(Host, { key: 'db808d24fa5e0650b8848a8ad49f409b1742d010', class: "nano-slides" }, h("div", { key: '833b9add3ac283a28290ff442ba3222719819248', class: {
|
503
503
|
slideshow: true,
|
504
504
|
ready: this.ready,
|
505
505
|
'not-ready': !this.ready,
|
506
|
-
}, part: "base" }, h("div", { key: '
|
506
|
+
}, part: "base" }, h("div", { key: '582d0ce3f49bf048c65caca78b86439eed298933', ref: (div) => (this.flickityEl = div), class: {
|
507
507
|
'flickity-container': true,
|
508
508
|
'slides-ready': this.slidesReady,
|
509
509
|
'slides-not-ready': !this.slidesReady,
|
510
|
-
}, part: "slide-container" }, h("slot", { key: '
|
510
|
+
}, part: "slide-container" }, h("slot", { key: 'f9ea3b11fb13efaf78254e061fff5e8396ad3e54' })), h("div", { key: 'a7c4f452bb04aa5a2fd98839cf493737f057e7af', class: "ui-extras" }, h("slot", { key: 'f6eb7fbbb0dc21d50c7daca4e1c10b3924de4ba3', name: "ui" })))));
|
511
511
|
}
|
512
512
|
static get is() { return "nano-slides"; }
|
513
513
|
static get encapsulation() { return "shadow"; }
|
@@ -733,7 +733,7 @@ export class Sortable {
|
|
733
733
|
}
|
734
734
|
}
|
735
735
|
render() {
|
736
|
-
return (h(Host, { key: '
|
736
|
+
return (h(Host, { key: 'bf0691e59a5832ca8249a7d1253232399f6dcd08', class: "nano-sortable" }, h("div", { key: '5ff7d9c08e496fbfffb5df836dd6834d339106fc', class: "sortable__live-region", "aria-live": "polite", "aria-relevant": "additions", "aria-atomic": "true", role: "log", part: "announcements" }, this.ariaTextList.map((str) => (h("div", null, str)))), h("slot", { key: '6419b77cd7e962726d7b2c5b88997b73b1bc9a3f' })));
|
737
737
|
}
|
738
738
|
static get is() { return "nano-sortable"; }
|
739
739
|
static get encapsulation() { return "shadow"; }
|
@@ -838,7 +838,7 @@ export class Sortable {
|
|
838
838
|
"Element": {
|
839
839
|
"location": "import",
|
840
840
|
"path": "@stencil/core",
|
841
|
-
"id": "
|
841
|
+
"id": "../../node_modules/.pnpm/@stencil+core@4.35.3/node_modules/@stencil/core/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": "../../node_modules/.pnpm/@stencil+core@4.35.3/node_modules/@stencil/core/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": "../../node_modules/.pnpm/@stencil+core@4.35.3/node_modules/@stencil/core/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": "../../node_modules/.pnpm/@stencil+core@4.35.3/node_modules/@stencil/core/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": "../../node_modules/.pnpm/@stencil+core@4.35.3/node_modules/@stencil/core/internal/stencil-core/index.d.ts::Element"
|
972
972
|
},
|
973
973
|
"HTMLElement": {
|
974
974
|
"location": "global",
|
@@ -599,12 +599,12 @@ export class Sticker {
|
|
599
599
|
this.hasBootstrapped = false;
|
600
600
|
}
|
601
601
|
render() {
|
602
|
-
return (h(Host, { key: '
|
602
|
+
return (h(Host, { key: '6ecfe8ffd92fbe3126dcdbce737267b800b5f3ec', 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: '662dd7f185a4d9dd30cf285c3a3c5e37736147f9', class: {
|
603
603
|
sticker: true,
|
604
604
|
sticky: this.isRootSticker && this.isSticky,
|
605
605
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
606
606
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
607
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
607
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: '9e026e99d36884aa8a196d03e55aafbce4d33754', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '36ff243ac039dd52fb1ce57c72dfbfd9a682c6ec' })))));
|
608
608
|
}
|
609
609
|
static get is() { return "nano-sticker"; }
|
610
610
|
static get encapsulation() { return "shadow"; }
|
@@ -227,10 +227,10 @@ export class NanoTable {
|
|
227
227
|
this.cleanUpObservers();
|
228
228
|
}
|
229
229
|
render() {
|
230
|
-
return (h(Host, { key: '
|
230
|
+
return (h(Host, { key: 'a976d3c4d360aa37eeccf025c4948b8bcf9a6a05', 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: '6d78f909c2fd7ebd1b478e9b399ac97f5202acb5', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '9a2246d08f3f82efee4a6a6c7aec6002b159b9bc', class: "nano-table__overflow" }))), h("slot", { key: '21fad37f4eda294cd90b11175b8650b63dfe4ab0' })));
|
234
234
|
}
|
235
235
|
static get is() { return "nano-table"; }
|
236
236
|
static get encapsulation() { return "scoped"; }
|
@@ -24,10 +24,10 @@ export class NanoTabContent {
|
|
24
24
|
requestAnimationFrame(() => (this.ready = true));
|
25
25
|
}
|
26
26
|
render() {
|
27
|
-
return (h(Host, { key: '
|
27
|
+
return (h(Host, { key: 'e77e802472984dd6997e5dbea3b807853c530f9a', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
|
28
28
|
ready: this.ready,
|
29
29
|
'nano-tab-content': true,
|
30
|
-
} }, h("div", { key: '
|
30
|
+
} }, h("div", { key: '9c642ced7beec01c0cbaa333b977ee23ef83981a', part: "base", class: "nano-tab-content" }, h("slot", { key: 'fcafb5cedc796e0f3661519ccdb1d9374568d59e' }))));
|
31
31
|
}
|
32
32
|
static get is() { return "nano-tab-content"; }
|
33
33
|
static get encapsulation() { return "shadow"; }
|
@@ -293,7 +293,7 @@ export class NanoTabGroup {
|
|
293
293
|
const storedTab = store.retrieve()?.tab;
|
294
294
|
// if a tab is in storage, set it as active now
|
295
295
|
if (storedTab && storedTab !== store.initialState?.tab) {
|
296
|
-
this.getAllActiveTabs.forEach(element => {
|
296
|
+
this.getAllActiveTabs.forEach((element) => {
|
297
297
|
if (element.panel === storedTab) {
|
298
298
|
element.active = true;
|
299
299
|
}
|
@@ -51,12 +51,12 @@ export class NanoTab {
|
|
51
51
|
}
|
52
52
|
};
|
53
53
|
render() {
|
54
|
-
return (h(Host, { key: '
|
54
|
+
return (h(Host, { key: '42d49d8148bac6792761ca027917184992ac9787', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h("div", { key: 'a5c816c6faab721c3c8896083f87ead5dd06abd1', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
|
55
55
|
tab: true,
|
56
56
|
'tab--active': this.active,
|
57
57
|
'tab--disabled': this.disabled,
|
58
58
|
'tab--closable': this.closable,
|
59
|
-
} }, h("slot", { key: '
|
59
|
+
} }, h("slot", { key: 'c1aa8a3a0239d501a65b5db2c263b5ad777360e0', name: "start" }), h("div", { key: '508bd62a360aa2c6ba195f7dbaa2e8503bc79771', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, h("slot", { key: '48d789df0212ed3fcb91b169336540027aa182be' })), h("slot", { key: '29f8662c82ee362daf86d2fda096f1d95b9e80a1', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: 'bd37054c27603d7cf012c88c99ad472973539e3e', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
|
60
60
|
}
|
61
61
|
static get is() { return "nano-tab"; }
|
62
62
|
static get encapsulation() { return "shadow"; }
|
@@ -41,8 +41,8 @@ export class NanoTag {
|
|
41
41
|
render() {
|
42
42
|
return (this.closable &&
|
43
43
|
!this.containsAnchor() && [
|
44
|
-
h("slot", { key: '
|
45
|
-
h("nano-icon-button", { key: '
|
44
|
+
h("slot", { key: '02921bb2fa1d13cfac3fe08aaea65def2d7ec926' }),
|
45
|
+
h("nano-icon-button", { key: 'df6374b1e36c5bf4b2511781839b20ff05c5be6b', label: "Close", "icon-name": "light/xmark-large", onKeyDown: this.onKeyDown, onClick: this.handleClick }),
|
46
46
|
]);
|
47
47
|
}
|
48
48
|
static get is() { return "nano-tag"; }
|
@@ -227,10 +227,10 @@ export class Tooltip {
|
|
227
227
|
this.popover.destroy();
|
228
228
|
}
|
229
229
|
render() {
|
230
|
-
return (h(Host, { key: '
|
230
|
+
return (h(Host, { key: 'bae7fd3006e859e7aabcf7d6c4358de59a345c44', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '1c28d3ce46378a6add85ac596d8e561f431c0913', onSlotchange: this.handleSlotChange }), h("div", { key: '18262c8b0048dbb1a630dd046b348b97827ad80a', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'd17d63c777bb90a70223fe012b670eed8af06a2d', part: "base", ref: (el) => (this.tooltip = el), class: {
|
231
231
|
tooltip: true,
|
232
232
|
'tooltip--open': this.open,
|
233
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '
|
233
|
+
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: 'a4dd740342d39075c4ba50e2b1ec6c6a231c905b', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '772a967f357113294c4e9f9f5e93da2845063875', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
234
234
|
}
|
235
235
|
static get is() { return "nano-tooltip"; }
|
236
236
|
static get encapsulation() { return "shadow"; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { h, Host, getElement, Build } from "@stencil/core";
|
4
|
+
import { h, Host, getElement, Build, } from "@stencil/core";
|
5
5
|
// import type { VNode, HTMLStencilElement } from "@stencil/core";
|
6
6
|
const supportsConstructibleStylesheets = (() => {
|
7
7
|
try {
|
@@ -5,20 +5,15 @@ import { getOffset } from "./dom";
|
|
5
5
|
/**
|
6
6
|
* @returns the width of the document's scrollbar
|
7
7
|
*/
|
8
|
-
function
|
8
|
+
function getScrollLockSize() {
|
9
9
|
const documentWidth = document.documentElement.clientWidth;
|
10
|
-
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
*/
|
16
|
-
function getExistingBodyPadding() {
|
17
|
-
const padding = Number(getComputedStyle(document.body).paddingRight.replace(/px/, ''));
|
18
|
-
if (isNaN(padding) || !padding) {
|
19
|
-
return 0;
|
10
|
+
const scrollbarWidth = Math.abs(window.innerWidth - documentWidth);
|
11
|
+
const { paddingRight, paddingInlineEnd } = getComputedStyle(document.body);
|
12
|
+
let docPadding = Number((paddingInlineEnd || paddingRight).replace(/px/, ''));
|
13
|
+
if (!!docPadding || isNaN(docPadding)) {
|
14
|
+
docPadding = 0;
|
20
15
|
}
|
21
|
-
return
|
16
|
+
return scrollbarWidth + docPadding;
|
22
17
|
}
|
23
18
|
const locks = new Set();
|
24
19
|
/**
|
@@ -31,7 +26,7 @@ export function lockBodyScrolling(lockingEl) {
|
|
31
26
|
return;
|
32
27
|
// When the first lock is created,
|
33
28
|
// set the scroll lock size to match the scrollbar's width to prevent content from shifting.
|
34
|
-
const scrollbarWidth =
|
29
|
+
const scrollbarWidth = getScrollLockSize(); // must be measured before the `sl-scroll-lock` class is applied
|
35
30
|
let scrollbarGutterProperty = getComputedStyle(document.documentElement).scrollbarGutter;
|
36
31
|
// default is auto, unsupported browsers is "undefined"
|
37
32
|
if (!scrollbarGutterProperty || scrollbarGutterProperty === 'auto') {
|
@@ -2798,7 +2798,7 @@ const Algolia = /*@__PURE__*/ proxyCustomElement(class Algolia extends HTMLEleme
|
|
2798
2798
|
}, "aria-busy": this.isLoading }, this.hasLoadSlot && (h("div", { key: '586696526af9ba7b721ebfe8aeba2b5a45b8a19a', hidden: !this.isLoading }, h("slot", { key: '40556633911954fd20b756fedf71aea7e15b15e1', name: "loader" }))), !this.hasLoadSlot && (h("div", { key: 'e5ee4968b6864b656b3537ec46b69e64ebe76370', class: {
|
2799
2799
|
loader: true,
|
2800
2800
|
loading: this.isLoading,
|
2801
|
-
} }, h("nano-spinner", { key: '420a97d058127ea029329d6eca5055c0c54f4c1f', overlay: true }))), h(Universe.Provider, { key: '9c271e35ea7f850eb1ec2f99415ab2eebf014387', state: wormholeState }, h("slot", { key: '7a7a5ac869321d6db0a2f6f784a28e638cbe1a3f', name: "search-input" }), h("div", { key: '91b799022bee756066f1eb60038fdb428c98d3dc', class: "results-container", "aria-live": "polite" }, h("div", { key: '4209e438e0cefbc244dde4c3a9c10e3e5bf56137', ref: (div) => (this.resultsDiv = div), class: "results" }, h("slot", { key: '44b89a4cae72f8ff38c08dd605df32df03a2fc9a', name: "output" })))), h("div", { key: '
|
2801
|
+
} }, h("nano-spinner", { key: '420a97d058127ea029329d6eca5055c0c54f4c1f', overlay: true }))), h(Universe.Provider, { key: '9c271e35ea7f850eb1ec2f99415ab2eebf014387', state: wormholeState }, h("slot", { key: '7a7a5ac869321d6db0a2f6f784a28e638cbe1a3f', name: "search-input" }), h("div", { key: '91b799022bee756066f1eb60038fdb428c98d3dc', class: "results-container", "aria-live": "polite" }, h("div", { key: '4209e438e0cefbc244dde4c3a9c10e3e5bf56137', ref: (div) => (this.resultsDiv = div), class: "results" }, h("slot", { key: '44b89a4cae72f8ff38c08dd605df32df03a2fc9a', name: "output" })))), h("div", { key: 'a584e0f2f10c38ffc46decc5b4b6bd2a1e14118a', ref: (div) => (this.defaultDiv = div), class: "default", tabindex: "-1", part: "default-content" }, h("slot", { key: 'dcf3c87479d48774b63bf32b4e2de2bfe9a6b1ea' }))));
|
2802
2802
|
}
|
2803
2803
|
static get watchers() { return {
|
2804
2804
|
"listenTo": ["handleListenToChange"],
|
@@ -511,7 +511,7 @@ const DataList = /*@__PURE__*/ proxyCustomElement(class DataList extends HTMLEle
|
|
511
511
|
}
|
512
512
|
componentDidRender() {
|
513
513
|
setTimeout(() => {
|
514
|
-
if (!this.connectedInput)
|
514
|
+
if (!this.connectedInput && this.host.isConnected)
|
515
515
|
console.warn('no `nano-input` found. `nano-datalist` should be nested within an `nano-input` or linked via `input` prop', this.host);
|
516
516
|
}, 500);
|
517
517
|
}
|
@@ -525,18 +525,18 @@ const DataList = /*@__PURE__*/ proxyCustomElement(class DataList extends HTMLEle
|
|
525
525
|
}
|
526
526
|
}
|
527
527
|
render() {
|
528
|
-
return (h(Host, { key: '
|
528
|
+
return (h(Host, { key: '2b8f7500f1ed990dc79bda02a6980a018697d508', class: "nano-datalist", role: this.actvOptEles.length ? 'listbox' : undefined, "aria-owns": this.optionIds.length ? this.optionIds.join(' ') : undefined, "aria-label": this.optionIds.length
|
529
529
|
? 'Select options from the list below'
|
530
|
-
: undefined }, h("nano-dropdown", { key: '
|
530
|
+
: undefined }, h("nano-dropdown", { key: '7beb913e00bb595dd36ad107edfdac05ab902efd', part: "dropdown", exportparts: "trigger:dropdown__trigger, panel:dropdown__panel", ...this.dropDownConfig, ref: (el) => (this.nanoDropdown = el), dialogTitle: "Select options from the list below", class: {
|
531
531
|
dlist__dropdown: true,
|
532
532
|
'dlist--isfiltered': this.isFiltered,
|
533
|
-
}, onNanoAfterShow: this.handleShow, onNanoAfterHide: this.handleHide, role: "group" }, h("nano-menu", { key: '
|
533
|
+
}, onNanoAfterShow: this.handleShow, onNanoAfterHide: this.handleHide, role: "group" }, h("nano-menu", { key: '125572d377ad74a2b6d3e0ae36f708075517d60f', part: "main-menu", ref: (el) => (this.listBox = el), hidden: !this.actvOptEles.length, type: "listbox", label: this.inputLabel ? this.inputLabel.textContent : undefined, class: {
|
534
534
|
dlist__menu: true,
|
535
535
|
'dlist__menu--open': this.dropwdownOpen,
|
536
|
-
}, tabIndex: -1, onNanoSelect: this.optSelected, onKeyDown: this.optionKeyDown }, h("slot", { key: '
|
536
|
+
}, tabIndex: -1, onNanoSelect: this.optSelected, onKeyDown: this.optionKeyDown }, h("slot", { key: '63f4fc2409d3e2ef1bc38658f4d0e890326ddb7e', name: "list-top" }), h("slot", { key: '0bd4aa53d535ac07a779f9f44dae01801c5ddb43' }), h("slot", { key: 'ee39e492165395226a04b49dbe4ba0d6d3a70172', name: "internal-opts" }), h("slot", { key: 'd7af12aa6cf517a89b1718b74c48235753970664', name: "list-bottom" })), h("nano-menu", { key: 'bb1f661fc618cacc2f81aaeca1d03c96c1d1c557', part: "no-result-menu", type: "listbox", label: "No results found", hidden: !!this.actvOptEles.length, class: {
|
537
537
|
dlist__menu: true,
|
538
538
|
'dlist__menu--open': this.dropwdownOpen,
|
539
|
-
} }, h("slot", { key: '
|
539
|
+
} }, h("slot", { key: 'c343a887d35603ba194a4774e2ca66e7e299ed2c', name: "no-result" })), !!this.actvOptEles && (h("div", { key: '2810cc360410aae1263442e29aca34f0cd39c9b6', class: "dlist__status" }, this.actvOptEles.length, " result", this.actvOptEles.length > 1 ? 's' : '', " available.")))));
|
540
540
|
}
|
541
541
|
static get watchers() { return {
|
542
542
|
"open": ["openWatcher"],
|
@@ -578,11 +578,11 @@ const NanoDatePicker = /*@__PURE__*/ proxyCustomElement(class NanoDatePicker ext
|
|
578
578
|
minYear = minDate.getFullYear();
|
579
579
|
if (maxDate)
|
580
580
|
maxYear = maxDate.getFullYear();
|
581
|
-
return (h(Host, { key: '
|
581
|
+
return (h(Host, { key: '325b63a7956c84802d783fa95086b66df5fbfdc2', class: "nano-date-picker" }, h("div", { key: 'be1ef3571202d7074ddda34a299774b1e9a8a96c', class: "duet-date" }, h("div", { key: '52583e20b54f39ef154e51e200f09719654555c9', class: {
|
582
582
|
'duet-date__dialog': true,
|
583
583
|
'is-active': true,
|
584
|
-
}, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("div", { key: '
|
585
|
-
element), onChange: this.handleMonthSelect }, this.localization.monthNames.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), h("div", { key: '
|
584
|
+
}, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("div", { key: '9ff8a1baa94f6502a4691cbd69c45808ee94eaa1', class: "duet-date__dialog-content" }, h("div", { key: 'ea56053783abfe899d19dffee3d0709decf34586', class: "duet-date__vhidden duet-date__instructions", "aria-live": "polite" }, this.localization.keyboardInstruction), h("div", { key: '53fde77f3ae470c6d5271ff901557876f9f082db', class: "duet-date__header", onFocusin: this.disableActiveFocus }, h("div", { key: '0dd5d2f41fa1acc596b4d0b83644744607427295' }, h("h2", { key: 'fbc33424f5048889a766afec0dec6408b8d107e4', id: this.dialogLabelId, class: "duet-date__vhidden", "aria-live": "polite" }, this.localization.monthNames[focusedMonth], ' ', this.focusedDay.getFullYear()), h("label", { key: 'b2f293e2eecaad9c2070fb0b0612332b7c60bb13', htmlFor: this.monthSelectId, class: "duet-date__vhidden" }, this.localization.monthSelectLabel), h("div", { key: 'e3641b3731fd4387c5623590d16e7f566f6f7273', class: "duet-date__select" }, h("select", { key: 'a7d655e5ed0e5f30a4acb1fc6e5fc0b6f4190211', id: this.monthSelectId, class: "duet-date__select--month", ref: (element) => (this.firstFocusableElement = this.monthSelectNode =
|
585
|
+
element), onChange: this.handleMonthSelect }, this.localization.monthNames.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), h("div", { key: 'd48f0c2a4ba4f25a5fbe2c524119d53c852225fe', class: "duet-date__select-label", "aria-hidden": "true" }, h("span", { key: 'c5a052d1d5d627efc147fa3c6d815aa58a88a658' }, this.localization.monthNamesShort[focusedMonth]), h("nano-icon", { key: '75a671f7f3b5e99db8292448a1213057522cb54a', name: "light/chevron-down" }))), h("label", { key: 'd75e61f7a398d8a59eea903ed7579e0e2488a588', htmlFor: this.yearSelectId, class: "duet-date__vhidden" }, this.localization.yearSelectLabel), h("div", { key: '7f53843dbfd10dad14ab29ba36fa132c411b7181', class: "duet-date__select" }, h("select", { key: '95c128dd44bc337d21f93acb263db9ab31a7a85d', id: this.yearSelectId, class: "duet-date__select--year", onChange: this.handleYearSelect }, range(minYear, maxYear).map((year) => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { key: '3bed714eb0f65a52f50686c7bc1b66c53be8ffc9', class: "duet-date__select-label", "aria-hidden": "true" }, h("span", { key: '925804c72b36ad5092babc990660505d3841dca9' }, this.focusedDay.getFullYear()), h("nano-icon", { key: 'b8a54c98c40d20ce85562d0a3de40aa4dde2ff11', name: "light/chevron-down" })))), h("div", { key: 'd9525a0266c3abf1c0248fc8defa85f49a1a93d4', class: "duet-date__nav" }, h("button", { key: '9c7390ebc74ae31f8687c764dbe918f50316d93c', class: "duet-date__prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, type: "button" }, h("nano-icon", { key: '0cc15df22222c3c7c944b12cd6518f200c15891c', name: "light/chevron-left" }), h("span", { key: 'e9a376ce2f4aa7e180de15388ee3cb657e1968ac', class: "duet-date__vhidden" }, this.localization.prevMonthLabel)), h("button", { key: '6b49ef9d261384853bf5982ed212e33f110d86a7', class: "duet-date__next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, type: "button" }, h("nano-icon", { key: '48fd8c193aa842fcc610edccc205124d7b955230', name: "light/chevron-right" }), h("span", { key: '639bf8f2367d1d4b077cf1dfb2e8144b49dc234d', class: "duet-date__vhidden" }, this.localization.nextMonthLabel)))), h("div", { key: '88459567f3cd03189554d95d691ac51058905396' }, h(DatePickerMonth, { key: '79561fa4051c802e33a74cafc11c212c399d20e9', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, localization: this.localization, firstDayOfWeek: this.firstDayOfWeek, focusedDayRef: this.processFocusedDayNode, min: minDate, max: maxDate, isDateDisabled: this.isDateDisabled })))))));
|
586
586
|
}
|
587
587
|
static get watchers() { return {
|
588
588
|
"selectedDate": ["handleSelectedDateChange"]
|