@nanoporetech-digital/components 8.0.0-alpha.1 → 8.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{algolia-data-CFc_52My.js → algolia-data-CSD3I9WJ.js} +1 -1
- package/dist/cjs/{component-store-DdyLi-VY.js → component-store-DS6c_IIg.js} +1 -1
- package/dist/cjs/{dom-CvQQBdol.js → dom-3kyE_RMm.js} +1 -1
- package/dist/cjs/{fade-Bq3U8uF7.js → fade-CqKYrZYq.js} +3 -3
- package/dist/cjs/{form-control-gUYfW0n-.js → form-control-BVH0tPGy.js} +2 -2
- package/dist/cjs/{fullscreen-Czdw-D-5.js → fullscreen-D-fHJ_IJ.js} +3 -3
- package/dist/cjs/{index-B76C6Tm9.js → index-IR1lkhwT.js} +157 -136
- package/dist/cjs/{index-ChTXweZN.js → index-yq5hsIxW.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{lazyload-BpoUFECt.js → lazyload-DK1ITMfR.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{modal-DddxtK2h.js → modal-DZVjwBg8.js} +1 -1
- package/dist/cjs/nano-accordion.cjs.entry.js +3 -3
- package/dist/cjs/nano-alert.cjs.entry.js +7 -7
- package/dist/cjs/nano-algolia-filter.cjs.entry.js +4 -4
- package/dist/cjs/nano-algolia-pagination.cjs.entry.js +2 -2
- package/dist/cjs/nano-algolia-results.cjs.entry.js +3 -3
- package/dist/cjs/nano-algolia.cjs.entry.js +5 -5
- package/dist/cjs/nano-animation.cjs.entry.js +3 -3
- package/dist/cjs/nano-avatar_5.cjs.entry.js +16 -16
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nano-card-carousel.cjs.entry.js +2 -2
- package/dist/cjs/nano-card.cjs.entry.js +1 -1
- package/dist/cjs/nano-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/nano-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +3 -3
- 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 +10 -8
- package/dist/cjs/{nano-data-table-BNwDI1rg.js → nano-data-table-C_KLyFMO.js} +10 -7
- package/dist/cjs/nano-data-table.cjs.entry.js +6 -6
- package/dist/cjs/nano-datalist_3.cjs.entry.js +11 -11
- package/dist/cjs/nano-date-input.cjs.entry.js +2 -2
- package/dist/cjs/nano-date-picker_2.cjs.entry.js +4 -4
- package/dist/cjs/nano-details.cjs.entry.js +3 -3
- package/dist/cjs/nano-dialog.cjs.entry.js +8 -8
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +5 -5
- package/dist/cjs/nano-field-validator.cjs.entry.js +3 -3
- package/dist/cjs/nano-file-upload.cjs.entry.js +50 -31
- package/dist/cjs/nano-footer.cjs.entry.js +4 -4
- package/dist/cjs/nano-global-nav.cjs.entry.js +19 -15
- package/dist/cjs/nano-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-hero.cjs.entry.js +2 -2
- package/dist/cjs/nano-icon-item.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon_3.cjs.entry.js +4 -4
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +3 -3
- package/dist/cjs/nano-intersection-observe.cjs.entry.js +4 -4
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +9 -9
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +3 -3
- package/dist/cjs/nano-more-less.cjs.entry.js +4 -4
- package/dist/cjs/nano-nav-item.cjs.entry.js +5 -5
- package/dist/cjs/nano-progress-bar.cjs.entry.js +4 -18
- 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_2.cjs.entry.js +5 -5
- package/dist/cjs/nano-slide.cjs.entry.js +3 -3
- package/dist/cjs/{nano-slides-Cj4figHV.js → nano-slides-BhpvytBB.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 +3 -3
- 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 +5 -5
- package/dist/cjs/{page-dots-E6b7S4vs.js → page-dots-DeSuT5bE.js} +3 -3
- package/dist/cjs/{renderer-Z8wHFL4e.js → renderer-h0yo23iy.js} +1 -1
- package/dist/cjs/{scroll-DspYj7mY.js → scroll-_aiH0KkA.js} +1 -1
- package/dist/cjs/{slot-B4QUWT-c.js → slot-Hlplqf1Z.js} +1 -1
- package/dist/cjs/{style-BccHkuhC.js → style-Bf3iH5GX.js} +16 -2
- package/dist/cjs/{tabbable-YPytg5sg.js → tabbable-CkzmpQhq.js} +1 -1
- package/dist/cjs/{table.worker-bFxUCos7.js → table.worker-C5ofbi7M.js} +6 -6
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/animation/animation.js +4 -1
- package/dist/collection/components/checkbox/checkbox.js +4 -4
- package/dist/collection/components/cta/cta.js +9 -11
- package/dist/collection/components/data-table/table.js +5 -2
- package/dist/collection/components/datalist/datalist.js +6 -6
- package/dist/collection/components/file-upload/file-upload.css +140 -215
- package/dist/collection/components/file-upload/file-upload.js +66 -44
- package/dist/collection/components/footer/footer.css +2 -3
- package/dist/collection/components/footer/footer.js +4 -3
- package/dist/collection/components/form-control/form-control.js +1 -1
- package/dist/collection/components/global-nav/global-nav.js +35 -14
- package/dist/collection/components/masked-overflow/masked-overflow.css +3 -4
- package/dist/collection/components/masked-overflow/masked-overflow.js +8 -6
- package/dist/collection/components/more-less/more-less.js +6 -3
- package/dist/collection/components/progress-bar/progress-bar.css +78 -33
- package/dist/collection/components/progress-bar/progress-bar.js +18 -61
- package/dist/collection/components/rating/rating.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +1 -1
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/skeleton/skeleton.js +2 -2
- package/dist/collection/components/slides/slide.js +1 -1
- package/dist/collection/components/slides/slides.js +4 -4
- package/dist/collection/components/sortable/sortable.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/sticker/sticker.js +2 -2
- package/dist/collection/components/table/table.js +3 -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/style.js +16 -2
- package/dist/components/cta.js +11 -9
- package/dist/components/datalist.js +6 -6
- package/dist/components/form-control.js +1 -1
- package/dist/components/masked-overflow.js +5 -5
- package/dist/components/nano-animation.js +1 -1
- package/dist/components/nano-checkbox.js +4 -4
- package/dist/components/nano-data-table.js +5 -2
- package/dist/components/nano-file-upload.js +58 -33
- package/dist/components/nano-footer.js +5 -4
- package/dist/components/nano-global-nav.js +18 -13
- 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 +4 -4
- package/dist/components/progress-bar.js +7 -23
- package/dist/components/resize-observe.js +1 -1
- package/dist/components/select.js +7 -7
- package/dist/components/skeleton.js +2 -2
- package/dist/components/slides.js +3 -3
- package/dist/components/spinner.js +1 -1
- package/dist/components/sticker.js +2 -2
- package/dist/components/style.js +16 -2
- package/dist/components/tag.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{algolia-data-CCqzaIh4.js → algolia-data-D6wnbV__.js} +1 -1
- package/dist/esm/{component-store-C-YnXSQE.js → component-store-CH5BI3Tg.js} +1 -1
- package/dist/esm/{dom-GYcqUAl_.js → dom-Cb7FUtXp.js} +1 -1
- package/dist/esm/{fade-C3aqZinc.js → fade-CnaZvOTY.js} +3 -3
- package/dist/esm/{form-control-BjKTwcqA.js → form-control-BOVGZF9R.js} +2 -2
- package/dist/esm/{fullscreen-T7b44-vN.js → fullscreen-BIFliVxG.js} +3 -3
- package/dist/esm/{index-DOuz1S3w.js → index-DXvE-U_j.js} +157 -136
- package/dist/esm/{index-DkZY6pJu.js → index-Dw3NZx59.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{lazyload-BdH0bSmg.js → lazyload-D_Ju_KaC.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{modal-s7sHBYzQ.js → modal-B_AxJQQp.js} +1 -1
- package/dist/esm/nano-accordion.entry.js +3 -3
- package/dist/esm/nano-alert.entry.js +7 -7
- package/dist/esm/nano-algolia-filter.entry.js +4 -4
- package/dist/esm/nano-algolia-pagination.entry.js +2 -2
- package/dist/esm/nano-algolia-results.entry.js +3 -3
- package/dist/esm/nano-algolia.entry.js +5 -5
- package/dist/esm/nano-animation.entry.js +3 -3
- package/dist/esm/nano-avatar_5.entry.js +16 -16
- package/dist/esm/nano-breadcrumb.entry.js +2 -2
- package/dist/esm/nano-card-carousel.entry.js +2 -2
- package/dist/esm/nano-card.entry.js +1 -1
- package/dist/esm/nano-checkbox-group.entry.js +2 -2
- package/dist/esm/nano-checkbox.entry.js +6 -6
- package/dist/esm/nano-collapsible-comparison.entry.js +3 -3
- 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 +10 -8
- package/dist/esm/{nano-data-table-Bm9J8Phu.js → nano-data-table-CJbVKIuu.js} +10 -7
- package/dist/esm/nano-data-table.entry.js +6 -6
- package/dist/esm/nano-datalist_3.entry.js +11 -11
- package/dist/esm/nano-date-input.entry.js +2 -2
- package/dist/esm/nano-date-picker_2.entry.js +4 -4
- package/dist/esm/nano-details.entry.js +3 -3
- package/dist/esm/nano-dialog.entry.js +8 -8
- package/dist/esm/nano-dropdown_2.entry.js +5 -5
- package/dist/esm/nano-field-validator.entry.js +3 -3
- package/dist/esm/nano-file-upload.entry.js +50 -31
- package/dist/esm/nano-footer.entry.js +4 -4
- package/dist/esm/nano-global-nav.entry.js +19 -15
- package/dist/esm/nano-grid-item.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +2 -2
- package/dist/esm/nano-hero.entry.js +2 -2
- package/dist/esm/nano-icon-item.entry.js +1 -1
- package/dist/esm/nano-icon_3.entry.js +4 -4
- package/dist/esm/nano-in-page-nav.entry.js +3 -3
- package/dist/esm/nano-intersection-observe.entry.js +4 -4
- package/dist/esm/nano-masked-overflow.entry.js +9 -9
- package/dist/esm/nano-menu-drawer.entry.js +3 -3
- package/dist/esm/nano-more-less.entry.js +4 -4
- package/dist/esm/nano-nav-item.entry.js +5 -5
- package/dist/esm/nano-progress-bar.entry.js +4 -18
- package/dist/esm/nano-range.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +6 -6
- package/dist/esm/nano-resize-observe_2.entry.js +5 -5
- package/dist/esm/nano-slide.entry.js +3 -3
- package/dist/esm/{nano-slides-BEE7xEu_.js → nano-slides-B9KjZVqC.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 +3 -3
- 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 +5 -5
- package/dist/esm/{page-dots-D2WI1eZ0.js → page-dots-BmS6HUrx.js} +3 -3
- package/dist/esm/{renderer-CnE0Hztu.js → renderer-BUaAsDso.js} +1 -1
- package/dist/esm/{scroll-DHa1CIPP.js → scroll-iCYjzh9N.js} +1 -1
- package/dist/esm/{slot-lixS0pd2.js → slot-DYFgWo5f.js} +1 -1
- package/dist/esm/{style-BrRDhFfF.js → style-xLaX004n.js} +16 -2
- package/dist/esm/{tabbable-QmV19K7Q.js → tabbable-C4l-rYq9.js} +1 -1
- package/dist/esm/{table.worker-zeRR3oed.js → table.worker-CsTdjWrS.js} +6 -6
- package/dist/nano-components/{algolia-data-CCqzaIh4.js → algolia-data-D6wnbV__.js} +1 -1
- package/dist/nano-components/{component-store-C-YnXSQE.js → component-store-CH5BI3Tg.js} +1 -1
- package/dist/nano-components/{dom-GYcqUAl_.js → dom-Cb7FUtXp.js} +1 -1
- package/dist/nano-components/{fade-C3aqZinc.js → fade-CnaZvOTY.js} +1 -1
- package/dist/nano-components/form-control-BOVGZF9R.js +4 -0
- package/dist/nano-components/{fullscreen-T7b44-vN.js → fullscreen-BIFliVxG.js} +1 -1
- package/dist/nano-components/index-DXvE-U_j.js +5 -0
- package/dist/nano-components/{index-DkZY6pJu.js → index-Dw3NZx59.js} +1 -1
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/{lazyload-BdH0bSmg.js → lazyload-D_Ju_KaC.js} +1 -1
- package/dist/nano-components/{modal-s7sHBYzQ.js → modal-B_AxJQQp.js} +1 -1
- package/dist/nano-components/nano-accordion.entry.js +1 -1
- package/dist/nano-components/nano-alert.entry.js +1 -1
- package/dist/nano-components/nano-algolia-filter.entry.js +1 -1
- package/dist/nano-components/nano-algolia-pagination.entry.js +1 -1
- package/dist/nano-components/nano-algolia-results.entry.js +1 -1
- package/dist/nano-components/nano-algolia.entry.js +1 -1
- package/dist/nano-components/nano-animation.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-breadcrumb.entry.js +1 -1
- package/dist/nano-components/nano-card-carousel.entry.js +1 -1
- package/dist/nano-components/nano-card.entry.js +1 -1
- package/dist/nano-components/nano-checkbox-group.entry.js +1 -1
- package/dist/nano-components/nano-checkbox.entry.js +1 -1
- package/dist/nano-components/nano-collapsible-comparison.entry.js +1 -1
- package/dist/nano-components/nano-components.css +24 -20
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-content-links.entry.js +1 -1
- package/dist/nano-components/nano-cta.entry.js +1 -1
- package/dist/nano-components/{nano-data-table-Bm9J8Phu.js → nano-data-table-CJbVKIuu.js} +1 -1
- package/dist/nano-components/nano-data-table.entry.js +1 -1
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-date-input.entry.js +1 -1
- package/dist/nano-components/nano-date-picker_2.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-dialog.entry.js +1 -1
- package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
- package/dist/nano-components/nano-field-validator.entry.js +1 -1
- package/dist/nano-components/nano-file-upload.entry.js +1 -1
- package/dist/nano-components/nano-footer.entry.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-grid-item.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/nano-hero.entry.js +1 -1
- package/dist/nano-components/nano-icon-item.entry.js +1 -1
- package/dist/nano-components/nano-icon_3.entry.js +1 -1
- package/dist/nano-components/nano-in-page-nav.entry.js +1 -1
- package/dist/nano-components/nano-intersection-observe.entry.js +1 -1
- package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-more-less.entry.js +1 -1
- package/dist/nano-components/nano-nav-item.entry.js +1 -1
- package/dist/nano-components/nano-progress-bar.entry.js +1 -1
- package/dist/nano-components/nano-range.entry.js +1 -1
- package/dist/nano-components/nano-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe_2.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-BEE7xEu_.js → nano-slides-B9KjZVqC.js} +4 -4
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-sortable.entry.js +1 -1
- package/dist/nano-components/nano-spinner.entry.js +1 -1
- package/dist/nano-components/nano-split-pane.entry.js +1 -1
- package/dist/nano-components/nano-sticker.entry.js +1 -1
- package/dist/nano-components/nano-tab-content.entry.js +1 -1
- package/dist/nano-components/nano-tab-group.entry.js +1 -1
- package/dist/nano-components/nano-tab.entry.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/{page-dots-D2WI1eZ0.js → page-dots-BmS6HUrx.js} +1 -1
- package/dist/nano-components/{renderer-CnE0Hztu.js → renderer-BUaAsDso.js} +1 -1
- package/dist/nano-components/{scroll-DHa1CIPP.js → scroll-iCYjzh9N.js} +1 -1
- package/dist/nano-components/{slot-lixS0pd2.js → slot-DYFgWo5f.js} +1 -1
- package/dist/nano-components/style-xLaX004n.js +4 -0
- package/dist/nano-components/{tabbable-QmV19K7Q.js → tabbable-C4l-rYq9.js} +1 -1
- package/dist/nano-components/table.worker-CsTdjWrS.js +4 -0
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/core.css +1 -1
- package/dist/style/core.css.map +1 -1
- package/dist/style/dark.css +1 -1
- package/dist/style/dark.css.map +1 -1
- package/dist/style/light.css +1 -1
- package/dist/style/light.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/animation/animation.d.ts +3 -0
- package/dist/types/components/cta/cta.d.ts +0 -2
- package/dist/types/components/file-upload/file-upload.d.ts +14 -9
- package/dist/types/components/global-nav/global-nav.d.ts +4 -2
- package/dist/types/components/masked-overflow/masked-overflow.d.ts +4 -2
- package/dist/types/components/more-less/more-less.d.ts +4 -1
- package/dist/types/components/progress-bar/progress-bar.d.ts +6 -13
- package/dist/types/components/slides/slides-interface.d.ts +1 -1
- package/dist/types/components.d.ts +83 -69
- package/docs-json.json +171 -186
- package/docs-vscode.json +18 -11
- package/hydrate/index.js +299 -254
- package/hydrate/index.mjs +299 -254
- package/package.json +2 -2
- package/dist/collection/components/file-upload/file-upload-list.js +0 -3
- package/dist/nano-components/form-control-BjKTwcqA.js +0 -4
- package/dist/nano-components/index-DOuz1S3w.js +0 -5
- package/dist/nano-components/style-BrRDhFfF.js +0 -4
- package/dist/nano-components/table.worker-zeRR3oed.js +0 -4
- package/dist/types/components/file-upload/file-upload-list.d.ts +0 -0
@@ -37,46 +37,65 @@
|
|
37
37
|
scroll-behavior: auto !important;
|
38
38
|
}
|
39
39
|
}/**
|
40
|
-
* @prop --
|
41
|
-
* @prop --track-color:
|
42
|
-
* @prop --
|
43
|
-
* @prop --
|
40
|
+
* @prop --indicator-color: Color of the progress indicator. Defaults to var(--nano-color-primary-1000);
|
41
|
+
* @prop --track-color: Color of the progress track. Defaults to var(--nano-color-neutral-300);
|
42
|
+
* @prop --border-radius: Border radius of the progress bar. Defaults to 1.25rem;
|
43
|
+
* @prop --height: Height of the progress bar. Defaults to 0.625rem;
|
44
44
|
*/
|
45
|
-
|
46
|
-
--
|
47
|
-
--track-color:
|
48
|
-
--
|
49
|
-
--
|
50
|
-
display:
|
51
|
-
}
|
52
|
-
|
53
|
-
.progress-bar {
|
45
|
+
nano-progress-bar {
|
46
|
+
--indicator-color: var(--nano-color-primary-1000);
|
47
|
+
--track-color: var(--nano-color-neutral-300);
|
48
|
+
--border-radius: 1.25rem;
|
49
|
+
--height: 0.625rem;
|
50
|
+
display: grid;
|
54
51
|
position: relative;
|
52
|
+
overflow: clip;
|
53
|
+
border-radius: var(--border-radius);
|
54
|
+
height: var(--height);
|
55
|
+
font-size: var(--height);
|
56
|
+
}
|
57
|
+
nano-progress-bar[size=small] {
|
58
|
+
--height: 0.3125rem;
|
59
|
+
}
|
60
|
+
nano-progress-bar[size=large] {
|
61
|
+
--height: 0.9375rem;
|
62
|
+
}
|
63
|
+
nano-progress-bar progress {
|
64
|
+
appearance: none;
|
65
|
+
width: 100%;
|
66
|
+
height: inherit;
|
67
|
+
border-radius: var(--border-radius);
|
55
68
|
background-color: var(--track-color);
|
56
|
-
|
57
|
-
border-radius: var(--nano-layer-border-radius, var(--nano-border-radius-medium, 4px));
|
58
|
-
overflow: hidden;
|
69
|
+
grid-area: 1/1;
|
59
70
|
}
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
overflow: hidden;
|
69
|
-
transition: 0.4s width, 0.4s background-color;
|
70
|
-
transform: translateZ(0);
|
71
|
-
-webkit-user-select: none;
|
72
|
-
user-select: none;
|
73
|
-
transform-origin: left;
|
71
|
+
nano-progress-bar > label {
|
72
|
+
grid-area: 1/1;
|
73
|
+
position: absolute;
|
74
|
+
inset: 0;
|
75
|
+
}
|
76
|
+
nano-progress-bar > label progress {
|
77
|
+
position: absolute;
|
78
|
+
inset: 0;
|
74
79
|
}
|
75
|
-
|
76
|
-
|
80
|
+
nano-progress-bar:has(progress:not([value]))::after {
|
81
|
+
content: "";
|
82
|
+
width: 100%;
|
83
|
+
inset: 0;
|
84
|
+
display: block;
|
85
|
+
transform: translateZ(0);
|
77
86
|
animation: indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);
|
87
|
+
background-color: var(--indicator-color);
|
88
|
+
grid-area: 1/1;
|
89
|
+
border-radius: none;
|
90
|
+
}
|
91
|
+
nano-progress-bar progress:not([value])::-webkit-progress-bar {
|
92
|
+
border-radius: var(--border-radius);
|
93
|
+
background-color: var(--track-color);
|
94
|
+
}
|
95
|
+
nano-progress-bar progress:not([value])::-moz-progress-bar {
|
96
|
+
border-radius: var(--border-radius);
|
97
|
+
background-color: var(--track-color);
|
78
98
|
}
|
79
|
-
|
80
99
|
@keyframes indeterminate {
|
81
100
|
0% {
|
82
101
|
scale: 1 1;
|
@@ -86,4 +105,30 @@
|
|
86
105
|
scale: 1 1;
|
87
106
|
transform: translateX(100%) translateZ(0);
|
88
107
|
}
|
108
|
+
}
|
109
|
+
nano-progress-bar progress[value]::-webkit-progress-bar {
|
110
|
+
border-radius: var(--border-radius);
|
111
|
+
background-color: var(--track-color);
|
112
|
+
}
|
113
|
+
nano-progress-bar progress[value]::-webkit-progress-value {
|
114
|
+
background-color: var(--indicator-color);
|
115
|
+
-webkit-transition: inline-size var(--nano-transition-fast);
|
116
|
+
transition: inline-size var(--nano-transition-fast);
|
117
|
+
}
|
118
|
+
nano-progress-bar progress[value]::-moz-progress-bar {
|
119
|
+
background-color: var(--indicator-color);
|
120
|
+
-moz-transition: inline-size var(--nano-transition-fast);
|
121
|
+
transition: inline-size var(--nano-transition-fast);
|
122
|
+
}
|
123
|
+
nano-progress-bar[show-percent] progress[value]::before {
|
124
|
+
content: attr(value) "%";
|
125
|
+
position: absolute;
|
126
|
+
inline-size: attr(value %);
|
127
|
+
min-inline-size: 6%;
|
128
|
+
top: 50%;
|
129
|
+
translate: 0 -50%;
|
130
|
+
text-align: center;
|
131
|
+
transition: inline-size var(--nano-transition-fast);
|
132
|
+
font-size: 0.75em;
|
133
|
+
color: var(--nano-color-base-0);
|
89
134
|
}
|
@@ -1,40 +1,18 @@
|
|
1
|
-
/*!
|
2
|
-
* Custom elements for Nanopore-Digital Web applications
|
3
|
-
*/
|
4
|
-
import { Host } from "@stencil/core";
|
5
|
-
import { h } from "../../utils/renderer";
|
6
1
|
/**
|
7
2
|
* Shows the status of an ongoing operation.
|
8
3
|
*
|
9
|
-
* @version
|
10
|
-
* @status
|
11
|
-
*
|
12
|
-
* @slot - A label to show inside the indicator.
|
4
|
+
* @version 8.0.0
|
5
|
+
* @status new
|
6
|
+
* @type CSS Only
|
13
7
|
*
|
14
|
-
* @
|
15
|
-
* @part indicator - The progress bar indicator.
|
16
|
-
* @part label - The progress bar label.
|
8
|
+
* @slot - Used for mandatory `<progress>` element and optional `<label>`
|
17
9
|
*/
|
18
10
|
export class ProgressBar {
|
19
|
-
host;
|
20
|
-
/** The progress bar's percentage, 0 to 100. */
|
21
|
-
value = 0;
|
22
|
-
/** When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state. */
|
23
|
-
indeterminate = false;
|
24
11
|
/** Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot. */
|
25
12
|
showPercent = false;
|
26
|
-
|
27
|
-
|
28
|
-
'progress-bar': true,
|
29
|
-
'progress-bar--indeterminate': this.indeterminate,
|
30
|
-
}, role: "progressbar", title: this.host.title || undefined, "aria-label": "Progress", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.indeterminate ? null : this.value }, h("div", { key: 'dd80b47ed6627db8d93bf20a7ef096d44757ec56', part: "indicator", class: "progress-bar__indicator", style: {
|
31
|
-
width: !this.indeterminate ? `${this.value}%` : undefined,
|
32
|
-
} }, h("span", { key: '7b967332cff45da08a49008ac727f247750347ae', part: "label", class: "progress-bar__label" }, h("slot", { key: '5d2c53909892f8c81e151ec64a337e656e7e4dae' }, !this.indeterminate && this.showPercent
|
33
|
-
? `${this.value}%`
|
34
|
-
: ''))))));
|
35
|
-
}
|
13
|
+
/** The height of the progress-bar */
|
14
|
+
size = 'medium';
|
36
15
|
static get is() { return "nano-progress-bar"; }
|
37
|
-
static get encapsulation() { return "shadow"; }
|
38
16
|
static get originalStyleUrls() {
|
39
17
|
return {
|
40
18
|
"$": ["progress-bar.scss"]
|
@@ -47,29 +25,9 @@ export class ProgressBar {
|
|
47
25
|
}
|
48
26
|
static get properties() {
|
49
27
|
return {
|
50
|
-
"
|
51
|
-
"type": "number",
|
52
|
-
"attribute": "value",
|
53
|
-
"mutable": false,
|
54
|
-
"complexType": {
|
55
|
-
"original": "number",
|
56
|
-
"resolved": "number",
|
57
|
-
"references": {}
|
58
|
-
},
|
59
|
-
"required": false,
|
60
|
-
"optional": false,
|
61
|
-
"docs": {
|
62
|
-
"tags": [],
|
63
|
-
"text": "The progress bar's percentage, 0 to 100."
|
64
|
-
},
|
65
|
-
"getter": false,
|
66
|
-
"setter": false,
|
67
|
-
"reflect": false,
|
68
|
-
"defaultValue": "0"
|
69
|
-
},
|
70
|
-
"indeterminate": {
|
28
|
+
"showPercent": {
|
71
29
|
"type": "boolean",
|
72
|
-
"attribute": "
|
30
|
+
"attribute": "show-percent",
|
73
31
|
"mutable": false,
|
74
32
|
"complexType": {
|
75
33
|
"original": "boolean",
|
@@ -80,34 +38,33 @@ export class ProgressBar {
|
|
80
38
|
"optional": false,
|
81
39
|
"docs": {
|
82
40
|
"tags": [],
|
83
|
-
"text": "
|
41
|
+
"text": "Whether to show the progress bar's current percent as text. Will be overwritten if you use the default slot."
|
84
42
|
},
|
85
43
|
"getter": false,
|
86
44
|
"setter": false,
|
87
|
-
"reflect":
|
45
|
+
"reflect": true,
|
88
46
|
"defaultValue": "false"
|
89
47
|
},
|
90
|
-
"
|
91
|
-
"type": "
|
92
|
-
"attribute": "
|
48
|
+
"size": {
|
49
|
+
"type": "string",
|
50
|
+
"attribute": "size",
|
93
51
|
"mutable": false,
|
94
52
|
"complexType": {
|
95
|
-
"original": "
|
96
|
-
"resolved": "
|
53
|
+
"original": "'small' | 'medium' | 'large'",
|
54
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
97
55
|
"references": {}
|
98
56
|
},
|
99
57
|
"required": false,
|
100
58
|
"optional": false,
|
101
59
|
"docs": {
|
102
60
|
"tags": [],
|
103
|
-
"text": "
|
61
|
+
"text": "The height of the progress-bar"
|
104
62
|
},
|
105
63
|
"getter": false,
|
106
64
|
"setter": false,
|
107
|
-
"reflect":
|
108
|
-
"defaultValue": "
|
65
|
+
"reflect": true,
|
66
|
+
"defaultValue": "'medium'"
|
109
67
|
}
|
110
68
|
};
|
111
69
|
}
|
112
|
-
static get elementRef() { return "host"; }
|
113
70
|
}
|
@@ -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: '1f1a4c5f6b8dea2419e75be53db6e74d4455c3c5', class: "nano-rating" }, h("div", { key: '6898eef81bc7e3d634b3054a4694f49db79929c8', class: "rating-wrap" }, h("div", { key: 'bbad068f69e99c12083bb53c00a25b2dff02ddb7', 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: 'd2518d1ec73803cdc284c64ff4fcee9c86f6077d', 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: '046a97718d174445372c909eee0d061c4effd770', 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: '8a0a62b7419a719e2a2cf08e361aae299dea7d65', 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"; }
|
@@ -227,7 +227,7 @@ export class ResizeObserve {
|
|
227
227
|
this.ro.disconnect();
|
228
228
|
}
|
229
229
|
render() {
|
230
|
-
return (h(Host, { key: '
|
230
|
+
return (h(Host, { key: '67ae39458d0f21c7100481c6aa68f9455e468d86', class: "nano-resize-observe" }, h("slot", { key: '503108cec78fcfda303a9e392e1903ec7acfc244' }), !!this.notifyContentFit &&
|
231
231
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
232
232
|
this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
|
233
233
|
this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
|
@@ -701,30 +701,30 @@ export class Select {
|
|
701
701
|
disabled,
|
702
702
|
clearControl: this.clearable,
|
703
703
|
}))(this);
|
704
|
-
return (h(Host, { key: '
|
704
|
+
return (h(Host, { key: 'b85a8a4b4566ce33e0e7bae347c765037d1ec34b', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
|
705
705
|
'has-value': !!this.value.length || !!this.inputSearchVal.length,
|
706
706
|
'has-focus': this.hasFocus,
|
707
707
|
'is-invalid': this._invalid === true,
|
708
708
|
'is-valid': this._invalid === false,
|
709
709
|
'nano-select': true,
|
710
|
-
} }, h(FormControlWrap, { key: '
|
710
|
+
} }, h(FormControlWrap, { key: '42335a9fda2b4e2560f33e5d4c40a58403e482d2', ...wrapOptions, class: {
|
711
711
|
'has-error': !!this.errorMessage &&
|
712
712
|
this.showInlineError &&
|
713
713
|
this._invalid === true,
|
714
714
|
'has-helper': this.hasHelperSlot,
|
715
715
|
'is-open': this.hasOpened,
|
716
716
|
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: '
|
717
|
+
} }, h(FormControl, { key: '7571a30e6a3f0b231d9e0b7a6e2f662fe3bd8183', ...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: 'e92b079944fb81314da40799ba8f11f5644d5fa7', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
|
718
|
+
this.mask && (h("div", { key: '488c94ddb9e49c9e3f5a099a77cb0e879a02e1e2', class: "select__mask" }, this.getLabel(this.value))),
|
719
|
+
h("input", { key: '3fc66f07b7c9220e2c9d3eb02b1b268f52921a46', 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 }),
|
720
|
+
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: '1737bc4d8e6267659ebbd981cd043e0a3f0e20e3', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
|
721
721
|
e.preventDefault();
|
722
722
|
this.removeValue(e.detail.value);
|
723
723
|
}, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
|
724
724
|
// @ts-expect-error - this bubbles from the nano-dropdown
|
725
725
|
onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
|
726
726
|
this.multiple &&
|
727
|
-
!!this.inputSearchVal && (h("nano-option", { key: '
|
727
|
+
!!this.inputSearchVal && (h("nano-option", { key: '23a03a568fc87bd041b4c4e702afba215e637423', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: 'edd9ba1b076740baeaa34f62aa27f598bda7114d', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: '80e401156f240faf7fa04fef7915aa982305abd3' }))), h("select", { key: 'ba8bc3b4d7149e249c26f82da6816afa1b25fabf', 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
728
|
this.valArray.map((val) => {
|
729
729
|
return (h("option", { value: val, selected: true }, val));
|
730
730
|
}), !this.allowCustomValues &&
|
@@ -13,10 +13,10 @@ export class Skeleton {
|
|
13
13
|
/** When `true`, the skeleton will animate. */
|
14
14
|
animated = true;
|
15
15
|
render() {
|
16
|
-
return (h(Host, { key: '
|
16
|
+
return (h(Host, { key: 'f73bd1aaaf1ed443643eb6fee3421071be76b064', class: "nano-skeleton" }, h("div", { key: 'a4023374bcd7855ef2638623b2dbf29ac758f0a6', class: {
|
17
17
|
skeleton: true,
|
18
18
|
animate: this.animated,
|
19
|
-
} }, h("div", { key: '
|
19
|
+
} }, h("div", { key: 'bf89fd85a10834bb798515f46b51a4b26d0f885f', class: "skeleton__indicator" }, "\u00A0"))));
|
20
20
|
}
|
21
21
|
static get is() { return "nano-skeleton"; }
|
22
22
|
static get encapsulation() { return "shadow"; }
|
@@ -30,7 +30,7 @@ export class Slide {
|
|
30
30
|
});
|
31
31
|
}
|
32
32
|
render() {
|
33
|
-
return (h(Host, { key: '
|
33
|
+
return (h(Host, { key: 'e2de4b21a269c802cf727b7ffd8433d4f959d3fb', class: "nano-slide" }, h("slot", { key: '0d3fd5785d8e617307fd6590e0ffbca33693c410' })));
|
34
34
|
}
|
35
35
|
static get is() { return "nano-slide"; }
|
36
36
|
static get encapsulation() { return "shadow"; }
|
@@ -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: '88e0cbecd056181f9b3f8c244d8b7c59dfb94e16', class: "nano-slides" }, h("div", { key: '728f56cad9f2dc011dcc5c1051061102aaf0da63', 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: 'f4d40a6cf600378f311c8d74485802ad37a0840b', 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: 'a2d787ba9f4299216bfd99af5a39d6940c1ddd3a' })), h("div", { key: '2f25d4f413ca885408a0062d57b40c57c813ae32', class: "ui-extras" }, h("slot", { key: '234f553982373a1914455fc0c4b339ac6d147dc2', name: "ui" })))));
|
511
511
|
}
|
512
512
|
static get is() { return "nano-slides"; }
|
513
513
|
static get encapsulation() { return "shadow"; }
|
@@ -529,7 +529,7 @@ export class Slides {
|
|
529
529
|
"mutable": true,
|
530
530
|
"complexType": {
|
531
531
|
"original": "FlickityOptions",
|
532
|
-
"resolved": "
|
532
|
+
"resolved": "Options & { fullscreen?: boolean; fade?: boolean; }",
|
533
533
|
"references": {
|
534
534
|
"FlickityOptions": {
|
535
535
|
"location": "import",
|
@@ -733,7 +733,7 @@ export class Sortable {
|
|
733
733
|
}
|
734
734
|
}
|
735
735
|
render() {
|
736
|
-
return (h(Host, { key: '
|
736
|
+
return (h(Host, { key: '2d575a0cd296fe9c691962f7075f2b808f7abe01', class: "nano-sortable" }, h("div", { key: 'c2178832b34f1c069b09eff039940ab52bc22b61', 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: '703feb95010c77a8945dfc34bd57a5acb16b40d1' })));
|
737
737
|
}
|
738
738
|
static get is() { return "nano-sortable"; }
|
739
739
|
static get encapsulation() { return "shadow"; }
|
@@ -22,7 +22,7 @@ export class Spinner {
|
|
22
22
|
this.hasText = !!this.el.childNodes.length;
|
23
23
|
}
|
24
24
|
render() {
|
25
|
-
return (h(Host, { key: '
|
25
|
+
return (h(Host, { key: '63fe6e79bb79f14d88ce4b74b5d9b442dd66c0f8', class: "nano-spinner" }, h("div", { key: '825e76fc8c27ffdb29cd6fe400f16153a40012c6', class: "spinner", "aria-busy": "true", "aria-live": "polite" }, h("div", { key: '952c81492216e657c3ed5599633be668b00e9663', class: "spinner__loader" }, this.type === 'dna' && (h("div", { key: '662ec66b3dc5032b74384a64a6456149e63b6043', class: "spinner__dna" }, h("div", { key: '8903ba83721f26de70ceec96ac9626d54e84fa1c', class: "spinner__dnatrack spinner__dnatrack--1" }, h("div", { key: 'b7c0413a4835842211525d009ebd27bcb61fdf64', class: "spinner__dnadot spinner__dnadot--1" }), h("div", { key: 'b065ee7924903e8481be2e8c20fe0b3e8a95b8de', class: "spinner__dnadot spinner__dnadot--2" })), h("div", { key: '8af94c34ddbfa949d2592dd3692775d08ac0f178', class: "spinner__dnatrack spinner__dnatrack--2" }, h("div", { key: 'a0fcda6d79d4498fcf884f1065bacabff1962b7a', class: "spinner__dnadot spinner__dnadot--3" }), h("div", { key: '07700762e2f92f3fbb48e8e5fe95924061100303', class: "spinner__dnadot spinner__dnadot--4" })), h("div", { key: 'a9385349047a5e44a1f7911d2e1b33d894d5838a', class: "spinner__dnatrack spinner__dnatrack--3" }, h("div", { key: '0477205976d9e4e4d1c9c4ed9c2a5b5056f4c1e6', class: "spinner__dnadot spinner__dnadot--5" }), h("div", { key: '25e86c6c2274f40ba903bece7b91f7d33ea0d89a', class: "spinner__dnadot spinner__dnadot--6" })), h("div", { key: '5029e8ec7b7369e92e05d136da43febcf7f69555', class: "spinner__dnatrack spinner__dnatrack--4" }, h("div", { key: '95718654b9ad41d07bd9d63a1518d53dc333c252', class: "spinner__dnadot spinner__dnadot--7" }), h("div", { key: '3f1deedd8122a536fad519e9aadaa3d3f3d8550a', class: "spinner__dnadot spinner__dnadot--8" })), h("div", { key: 'eadc04b711c3d3c1ab2b20544270e543d0d8b141', class: "spinner__dnatrack spinner__dnatrack--5" }, h("div", { key: '1055242e36a1ba393045d4852f45033e2c13194c', class: "spinner__dnadot spinner__dnadot--9" }), h("div", { key: '073943e72dd9e94f87da5e35372f3b3cb9c0bd9f', class: "spinner__dnadot spinner__dnadot--10" })))), this.type === 'circle' && h("span", { key: 'f16b19fecaf1bdb72349b26b7a92ceb90e3ce449', class: "spinner__spin" })), this.hasText && (h("div", { class: "spinner__text", key: "spinner-text" }, h("slot", { key: 'a3a2650a1ef9d5c305042c4fa5cc9ea2df0a9226' }))), this.overlay && (h("div", { class: "spinner__overlay", key: "spinner-overlay" })))));
|
26
26
|
}
|
27
27
|
static get is() { return "nano-spinner"; }
|
28
28
|
static get encapsulation() { return "shadow"; }
|
@@ -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: 'a087de590970eacfe2f2f08e3af044f3925c7156', 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: 'ee02e96ed98fa0564fa99d272a23c891801a9934', 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: '03eb024bd50a757a5a75097e34dd70fc36638fa7', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '50cc24e4a2cb1d7cef2a439b99b688579a77e338' })))));
|
608
608
|
}
|
609
609
|
static get is() { return "nano-sticker"; }
|
610
610
|
static get encapsulation() { return "shadow"; }
|
@@ -227,12 +227,13 @@ export class NanoTable {
|
|
227
227
|
this.cleanUpObservers();
|
228
228
|
}
|
229
229
|
render() {
|
230
|
-
return (h(Host, { key: '
|
230
|
+
return (h(Host, { key: '84b2998c112a5d929d5dba88961a309ce4d0fff9', 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: 'c6175d1bfd32160743c04b35132e97cc1cc7c873', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: 'f96a85d3d852aa79def9f34b5c666c8d4c747c9f', class: "nano-table__overflow" }))), h("slot", { key: '4d7871702885a4a077e26b529b56c008949fa156' })));
|
234
234
|
}
|
235
235
|
static get is() { return "nano-table"; }
|
236
|
+
static get encapsulation() { return "scoped"; }
|
236
237
|
static get originalStyleUrls() {
|
237
238
|
return {
|
238
239
|
"$": ["table.scss"]
|
@@ -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: '69b49712bc8bab3a9bd6857c836265ce897ec2da', 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: '82758de9b18d8ccacd47ebf84151905eb6b88cc0', part: "base", class: "nano-tab-content" }, h("slot", { key: '67156ec26a34bf03503e721b1ec2869e3997e847' }))));
|
31
31
|
}
|
32
32
|
static get is() { return "nano-tab-content"; }
|
33
33
|
static get encapsulation() { return "shadow"; }
|
@@ -51,12 +51,12 @@ export class NanoTab {
|
|
51
51
|
}
|
52
52
|
};
|
53
53
|
render() {
|
54
|
-
return (h(Host, { key: '
|
54
|
+
return (h(Host, { key: '0b4d0660a4347b133c859db5fa6dcff84bdd38bf', 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: 'abce836bb90bd210011de38d906293dac6b26235', 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: '8e563821478aa0bd9b6257d5927d52c91d036fec', name: "start" }), h("div", { key: 'e18098d994c6598d17b11a337db295a12f2016d5', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active ? '-1' : '0', class: "tab__label" }, h("slot", { key: '9ab71f7ead9b29eee4d37d1070741466babb7e6e' })), h("slot", { key: '381b12cce253bd9bb10ef1c14ddf766ffff4f658', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '515bbbe004907a476ae477da49d0a47430f48d78', 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: 'a1a5a458c6bb76ab3c565d33830236a5bbda9408' }),
|
45
|
+
h("nano-icon-button", { key: '23201b4215ff0aefbc34fdaba31b9006499e2716', 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: '4b98bb9ee733405debbece4d5ac0b2395f5d54f3', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: 'c9f5956a38f9a892ad756a8c20ac316b1d975392', onSlotchange: this.handleSlotChange }), h("div", { key: '31f46bf3e11ba2981883ed2dfdc6cefddace7e77', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: '85854e52a5b4a10a1c12798f3d24b6d1aaefc21f', 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: 'fa8b9006cb18ab66060be9c969a70e49c609bc19', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '298cdad62b389ec2759559a6dc26fc02f4d5ba3f', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
234
234
|
}
|
235
235
|
static get is() { return "nano-tooltip"; }
|
236
236
|
static get encapsulation() { return "shadow"; }
|
@@ -23,9 +23,23 @@ export function addGlobalStylesheetToShadow(shadowRoot) {
|
|
23
23
|
let rule = null;
|
24
24
|
let globalStylesheet = [];
|
25
25
|
for (stylesheet of globalStylesheets) {
|
26
|
-
if (!(stylesheet instanceof CSSStyleSheet))
|
26
|
+
if (!(stylesheet instanceof CSSStyleSheet)) {
|
27
27
|
continue;
|
28
|
-
|
28
|
+
}
|
29
|
+
let cssRules;
|
30
|
+
try {
|
31
|
+
// Attempt to access the cssRules of the stylesheet
|
32
|
+
cssRules = stylesheet?.cssRules;
|
33
|
+
// no cssRules? skip it
|
34
|
+
if (!cssRules)
|
35
|
+
continue;
|
36
|
+
}
|
37
|
+
catch (e) {
|
38
|
+
// some stylesheets may not be accessible due to CORS or other restrictions
|
39
|
+
console.warn('Unable to access stylesheet:', stylesheet, e);
|
40
|
+
continue;
|
41
|
+
}
|
42
|
+
for (rule of cssRules) {
|
29
43
|
// arbitrary piece of text to check for that appears early in the `nano-components` stylesheet
|
30
44
|
// this is a bit fragile but does the job
|
31
45
|
if (rule instanceof CSSLayerBlockRule &&
|
package/dist/components/cta.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
import { proxyCustomElement, HTMLElement
|
4
|
+
import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
5
5
|
|
6
6
|
const ctaCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}";
|
7
7
|
|
@@ -26,17 +26,19 @@ const NanoCta = /*@__PURE__*/ proxyCustomElement(class NanoCta extends HTMLEleme
|
|
26
26
|
icon;
|
27
27
|
/** Predefined styles when displaying a number of CTAs together */
|
28
28
|
group;
|
29
|
-
internalButton = false;
|
30
29
|
componentWillLoad() {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
30
|
+
if (!this.host.querySelector('button, a, div')) {
|
31
|
+
const button = document.createElement('button');
|
32
|
+
button.classList.add('nano-internal-cta');
|
33
|
+
button.type = 'button';
|
34
|
+
this.host.childNodes.forEach((node) => {
|
35
|
+
button.appendChild(node);
|
36
|
+
});
|
37
|
+
this.host.appendChild(button);
|
38
|
+
}
|
37
39
|
}
|
38
40
|
static get style() { return ctaCss; }
|
39
|
-
}, [
|
41
|
+
}, [0, "nano-cta", {
|
40
42
|
"theme": [513],
|
41
43
|
"secondary": [516],
|
42
44
|
"size": [513],
|