@nanoporetech-digital/components 9.1.3 → 9.1.4

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.
Files changed (103) hide show
  1. package/dist/cjs/{fade-Cng4p1KQ.js → fade-qohjp1nm.js} +1 -1
  2. package/dist/cjs/{fullscreen-BYNt89kR.js → fullscreen-DwMCASzJ.js} +1 -1
  3. package/dist/cjs/{lazyload-CLpLl1ob.js → lazyload-e3rgW4Hl.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/nano-avatar_5.cjs.entry.js +7 -7
  6. package/dist/cjs/nano-components.cjs.js +1 -1
  7. package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
  8. package/dist/cjs/nano-mdd.cjs.entry.js +3 -0
  9. package/dist/cjs/nano-menu-drawer.cjs.entry.js +2 -2
  10. package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
  11. package/dist/cjs/nano-rating.cjs.entry.js +4 -4
  12. package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
  13. package/dist/cjs/nano-slide.cjs.entry.js +1 -1
  14. package/dist/cjs/{nano-slides-QbssxNUC.js → nano-slides-BqJU19OI.js} +8 -8
  15. package/dist/cjs/nano-slides.cjs.entry.js +1 -1
  16. package/dist/cjs/nano-sortable.cjs.entry.js +1 -1
  17. package/dist/cjs/nano-step-accordion.cjs.entry.js +1 -1
  18. package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +2 -2
  19. package/dist/cjs/nano-sticker.cjs.entry.js +2 -2
  20. package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
  21. package/dist/cjs/nano-tab.cjs.entry.js +2 -2
  22. package/dist/cjs/nano-table.cjs.entry.js +2 -2
  23. package/dist/collection/components/mdd/mdd.js +7 -0
  24. package/dist/collection/components/menu-drawer/menu-drawer.js +2 -2
  25. package/dist/collection/components/more-less/more-less.js +2 -2
  26. package/dist/collection/components/rating/rating.js +4 -4
  27. package/dist/collection/components/resize-observe/resize-observe.js +2 -2
  28. package/dist/collection/components/select/select.js +7 -7
  29. package/dist/collection/components/slides/slide.js +1 -1
  30. package/dist/collection/components/slides/slides.js +5 -5
  31. package/dist/collection/components/sortable/sortable.js +1 -1
  32. package/dist/collection/components/step-accordion/step-accordion.js +1 -1
  33. package/dist/collection/components/step-breadcrumb/step-breadcrumb.js +2 -2
  34. package/dist/collection/components/sticker/sticker.js +2 -2
  35. package/dist/collection/components/table/table.js +2 -2
  36. package/dist/collection/components/tabs/tab-content.js +2 -2
  37. package/dist/collection/components/tabs/tab.js +2 -2
  38. package/dist/collection/components/tooltip/tooltip.js +2 -2
  39. package/dist/components/nano-mdd.js +5 -2
  40. package/dist/components/nano-menu-drawer.js +2 -2
  41. package/dist/components/nano-more-less.js +2 -2
  42. package/dist/components/nano-rating.js +4 -4
  43. package/dist/components/nano-slide.js +1 -1
  44. package/dist/components/nano-sortable.js +1 -1
  45. package/dist/components/nano-step-accordion.js +1 -1
  46. package/dist/components/nano-step-breadcrumb.js +2 -2
  47. package/dist/components/nano-tab-content.js +2 -2
  48. package/dist/components/nano-tab.js +2 -2
  49. package/dist/components/nano-table.js +2 -2
  50. package/dist/components/resize-observe.js +2 -2
  51. package/dist/components/select.js +7 -7
  52. package/dist/components/slides.js +5 -5
  53. package/dist/components/sticker.js +2 -2
  54. package/dist/components/tooltip.js +2 -2
  55. package/dist/esm/{fade-CnvBzIGD.js → fade-DYPdqggy.js} +1 -1
  56. package/dist/esm/{fullscreen-BqihOK-Y.js → fullscreen-CTmKto_6.js} +1 -1
  57. package/dist/esm/{lazyload-ClpqVun1.js → lazyload-CAFm10PR.js} +1 -1
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/nano-avatar_5.entry.js +7 -7
  60. package/dist/esm/nano-components.js +1 -1
  61. package/dist/esm/nano-icon-button_2.entry.js +2 -2
  62. package/dist/esm/nano-mdd.entry.js +4 -1
  63. package/dist/esm/nano-menu-drawer.entry.js +2 -2
  64. package/dist/esm/nano-more-less.entry.js +2 -2
  65. package/dist/esm/nano-rating.entry.js +4 -4
  66. package/dist/esm/nano-resize-observe.entry.js +2 -2
  67. package/dist/esm/nano-slide.entry.js +1 -1
  68. package/dist/esm/{nano-slides-WDFCFgZL.js → nano-slides-C0Hxa7Aa.js} +8 -8
  69. package/dist/esm/nano-slides.entry.js +1 -1
  70. package/dist/esm/nano-sortable.entry.js +1 -1
  71. package/dist/esm/nano-step-accordion.entry.js +1 -1
  72. package/dist/esm/nano-step-breadcrumb.entry.js +2 -2
  73. package/dist/esm/nano-sticker.entry.js +2 -2
  74. package/dist/esm/nano-tab-content.entry.js +2 -2
  75. package/dist/esm/nano-tab.entry.js +2 -2
  76. package/dist/esm/nano-table.entry.js +2 -2
  77. package/dist/nano-components/{fade-CnvBzIGD.js → fade-DYPdqggy.js} +1 -1
  78. package/dist/nano-components/{fullscreen-BqihOK-Y.js → fullscreen-CTmKto_6.js} +1 -1
  79. package/dist/nano-components/lazyload-CAFm10PR.js +4 -0
  80. package/dist/nano-components/nano-avatar_5.entry.js +1 -1
  81. package/dist/nano-components/nano-components.esm.js +1 -1
  82. package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
  83. package/dist/nano-components/nano-mdd.entry.js +1 -1
  84. package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
  85. package/dist/nano-components/nano-more-less.entry.js +1 -1
  86. package/dist/nano-components/nano-rating.entry.js +1 -1
  87. package/dist/nano-components/nano-resize-observe.entry.js +1 -1
  88. package/dist/nano-components/nano-slide.entry.js +1 -1
  89. package/dist/nano-components/{nano-slides-WDFCFgZL.js → nano-slides-C0Hxa7Aa.js} +4 -4
  90. package/dist/nano-components/nano-slides.entry.js +1 -1
  91. package/dist/nano-components/nano-sortable.entry.js +1 -1
  92. package/dist/nano-components/nano-step-accordion.entry.js +1 -1
  93. package/dist/nano-components/nano-step-breadcrumb.entry.js +1 -1
  94. package/dist/nano-components/nano-sticker.entry.js +1 -1
  95. package/dist/nano-components/nano-tab-content.entry.js +1 -1
  96. package/dist/nano-components/nano-tab.entry.js +1 -1
  97. package/dist/nano-components/nano-table.entry.js +1 -1
  98. package/dist/types/components/mdd/mdd.d.ts +1 -0
  99. package/docs-json.json +1 -1
  100. package/hydrate/index.js +41 -38
  101. package/hydrate/index.mjs +41 -38
  102. package/package.json +2 -2
  103. package/dist/nano-components/lazyload-ClpqVun1.js +0 -4
@@ -52,8 +52,8 @@ const Rating = class {
52
52
  this.handleShowHideElements();
53
53
  }
54
54
  render() {
55
- return (h(Host, { key: 'b129148afdc959f912a16d1e2642c3e920a0a381', class: "nano-more-less" }, h("slot", { key: '92aa96b6301d14f7b4d9aee9cc4cafbf0ff75431', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
56
- h("div", { key: '73a5c457e8243cd8cf8e8ec1e681aa2c62244936', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '48802275120ff78676a19b25f792806dd03db2c1', name: "less" }, h("button", { key: '703d054e4560cf22d571a29838dfbd649062f7ca', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
55
+ return (h(Host, { key: 'e8c428a7adfceaa5a7e427ec824341e8b6867d7a', class: "nano-more-less" }, h("slot", { key: '1f77ecd99f6d9dc2717a25066bc5baa332781096', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
56
+ h("div", { key: '63e70b0dd2b343ad2e887186063526d3f3f3c7fd', style: { display: this.show ? 'none' : 'contents' }, class: "button-wrapper", part: "button-wrapper button-wrapper--less", onClick: (e) => this.handleClick(e) }, h("slot", { key: '926db7914efeac71f6e3fbfe7df53e61ca5dfad4', name: "less" }, h("button", { key: '5a693e3684cae91a70e8dc6714542ea2b5cc73e6', part: "button button--less" }, "Show more (+", this.children.length - this.maxToShow, ")"))),
57
57
  !this.noHideBtn ? (h("div", { style: { display: this.show ? 'contents' : 'none' }, class: "button-wrapper", part: "button-wrapper button-wrapper--more", onClick: (e) => this.handleClick(e) }, h("slot", { name: "more" }, h("button", { part: "button button--more" }, "Show less (-", this.children.length - this.maxToShow, ")")))) : (''),
58
58
  ]));
59
59
  }
@@ -193,20 +193,20 @@ const Rating = class {
193
193
  else {
194
194
  displayValue = this.isHovering ? this.hoverValue : this.value;
195
195
  }
196
- return (h(Host, { key: '3011ba88cafed0ec3c79d823a3abac433f68b5d1', class: "nano-rating" }, h("label", { key: 'ea6a01bc5a7f8e7fecbb16a905c472b5e1c62328', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: '22e31eeaed0aca337a71c1bbb39c238413f1c00c', name: "label" }, this.label)), h("input", { key: '265bd0055cbd05911611e0a5e45828d4dab7ac8c', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
196
+ return (h(Host, { key: 'ca9f8614ee480fe918ea02b0d76e86ee46011ccd', class: "nano-rating" }, h("label", { key: '15115ed7a3fb89a94ad83fd21585f217765d5a62', class: `rating-label${this.hideLabel ? ' visually-hidden' : ''}`, part: "label", htmlFor: this.name }, h("slot", { key: '74a550e0f50a541c1d202a170d51c26ba20ead68', name: "label" }, this.label)), h("input", { key: 'f9dc6fe605ef4d9c8f8720892a94eec1769cb04d', class: "range-input visually-hidden", name: this.name, id: this.name, disabled: this.disabled || this.readonly, required: this.required, value: this.value, onFocus: () => {
197
197
  this.setFocus();
198
- } }), h("div", { key: '4c0af619c68c230a5994871efdf5608870fb83e0', class: "rating-wrap" }, h("div", { key: 'e6f94c258bc04b6a4a6aad66c9364c1c811f859a', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
198
+ } }), h("div", { key: 'bf0b7849d8bed8732b172a12a45d287e1827f9a7', class: "rating-wrap" }, h("div", { key: '392f8d2c6cb93c7d0765371875ad2aa273d20874', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
199
199
  rating: true,
200
200
  'rating--readonly': this.readonly,
201
201
  'rating--disabled': this.disabled,
202
- }, "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: 'd514ae0f85be4d59ab6a2ae4496357c5d6601ba9', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
202
+ }, "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: '6a18e58e85a13da490e931002f633bbd9a2c0279', class: "rating__symbols rating__symbols--inactive" }, counter.map((index) => (h("span", { class: {
203
203
  rating__symbol: true,
204
204
  'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
205
205
  },
206
206
  // Users can click the current value to clear the rating. When this happens, we set this.isHovering to
207
207
  // false to prevent the hover state from confusing them as they move the mouse out of the control. This
208
208
  // extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
209
- onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '0caf2f0561d3b74e6891e6c2a4b970fef53298f3', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
209
+ onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: 'b7ee9e2ba25a05d701728e5280c00759a5c967d7', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
210
210
  clip: this.clip(displayValue),
211
211
  } }, counter.map((index) => (h("span", { class: {
212
212
  rating__symbol: true,
@@ -226,13 +226,13 @@ const ResizeObserve = class {
226
226
  }
227
227
  }
228
228
  render() {
229
- return (h(Host, { key: 'a2c57218f65a9af2297e6662c29d3a7c853092df', class: {
229
+ return (h(Host, { key: '5c2c1a5a1187493cb89fe5c581d5b4b1250f5009', class: {
230
230
  'nano-resize-observe': true,
231
231
  'content-fit-x': this.contentFitX,
232
232
  'content-fit-y': this.contentFitY,
233
233
  'content-nofit-x': this.contentFitX === false,
234
234
  'content-nofit-y': this.contentFitY === false,
235
- } }, h("slot", { key: 'cf0faa31f7c1daa08238555a46699c1b731e13b8' }), !!this.notifyContentFit &&
235
+ } }, h("slot", { key: '24c3b65283fe59e533b68618188a4ff2dedb1b91' }), !!this.notifyContentFit &&
236
236
  (this.contentFitX !== null || this.contentFitY !== null) && [
237
237
  this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
238
238
  this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
@@ -37,7 +37,7 @@ const Slide = class {
37
37
  });
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '3de94ff45cb6dddcca7f0097f3376361c2666f7e', class: "nano-slide" }, h("slot", { key: '9998d9102bdc69eecd28752b4a2c130497b34d06' })));
40
+ return (h(Host, { key: '4682e74f51d787ef7e2a5481b39f8c8e3a87fa1e', class: "nano-slide" }, h("slot", { key: '12d3315aeabf35aaf0c86c7239c0ef1cf19b60b5' })));
41
41
  }
42
42
  static get watchers() { return {
43
43
  "ready": ["readyChange"]
@@ -2821,15 +2821,15 @@ const Slides = class {
2821
2821
  }
2822
2822
  async loadFlickityModules(opts) {
2823
2823
  if (!this.hasFullScreenModule && opts.fullscreen) {
2824
- await import('./fullscreen-BqihOK-Y.js');
2824
+ await import('./fullscreen-CTmKto_6.js');
2825
2825
  this.hasFullScreenModule = true;
2826
2826
  }
2827
2827
  if (!this.hasLazyLoadModule && opts.lazyLoad) {
2828
- await import('./lazyload-ClpqVun1.js');
2828
+ await import('./lazyload-CAFm10PR.js');
2829
2829
  this.hasLazyLoadModule = true;
2830
2830
  }
2831
2831
  if (!this.hasFadeModule && opts.fade) {
2832
- await import('./fade-CnvBzIGD.js');
2832
+ await import('./fade-DYPdqggy.js');
2833
2833
  this.hasFadeModule = true;
2834
2834
  }
2835
2835
  }
@@ -2963,15 +2963,15 @@ const Slides = class {
2963
2963
  this.destroyflickity();
2964
2964
  }
2965
2965
  render() {
2966
- return (h(Host, { key: '51c5bac1a4200ebf02c679237e39b6f62f37424e', class: "nano-slides" }, h("div", { key: '94633663fd3ad69b4c1bc98c4749c048f57617cf', class: {
2966
+ return (h(Host, { key: '42548f40ddb58bd17ba72b0f4d8eae4e80830896', class: "nano-slides" }, h("div", { key: 'd8f2236b6bca970b42b3d1d8f9ab0a6b109d36a1', class: {
2967
2967
  slideshow: true,
2968
2968
  ready: this.ready,
2969
2969
  'not-ready': !this.ready,
2970
- }, part: "base" }, h("div", { key: '056922cbc6ff858bc237a9ec45ebbb281f4b4002', ref: (div) => (this.flickityEl = div), class: {
2970
+ }, part: "base" }, h("div", { key: '8fbdcaad01037ae236438aedb5a50fcc00f44830', ref: (div) => (this.flickityEl = div), class: {
2971
2971
  'flickity-container': true,
2972
2972
  'slides-ready': this.slidesReady,
2973
2973
  'slides-not-ready': !this.slidesReady,
2974
- }, part: "slide-container" }, h("slot", { key: '064767dbec8679ae75f783629737454832821ad4', onSlotchange: () => this.update() })), h("div", { key: '2628c6d3411307f5f42a04986e77839cc9f4a5cd', class: "ui-extras" }, h("slot", { key: '7d1df51cbe0f20db37e266779ea7e63b4b136070', name: "ui" })), this.pageCount > 1 && (this.pager || this.navbtns) && (h("div", { key: '96023f86df7c1cfb7250f9b348a71f7f5b66b7f8', class: "pagination", part: "pagination" }, this.navbtns && (h("button", { key: 'bcf85a09b3210ba78ff19592b991fe3873ce2b75', class: "flickity-button flickity-prev-next-button previous", part: "navigation-button navigation-button--previous", "aria-label": "Previous slide", onClick: () => this.slidePrev(), disabled: this.iCurrentSlide === 0 && !this.options.wrapAround }, h("span", { key: 'c4d0bcf5fb2b963dd36481dbbd2e229d44ac02e4', class: "button-icon button-icon--previous", part: "navigation-icon" }, h("slot", { key: '004f8f5b4513e55240d9703e641c5e59184c3af1', name: "previous-icon" })))), this.pager && (h("div", { key: 'd8ae45a8b450e5870a566cf986460a649a887df9', class: "flickity-page-dots" }, Array.from({ length: this.pageCount }).map((_, index) => (h("button", { part: "pagination-item--active", key: index, class: {
2974
+ }, part: "slide-container" }, h("slot", { key: 'daf0eb9a2fda8304dad8575205bcd03db6974212', onSlotchange: () => this.update() })), h("div", { key: 'd319f84ee4c616c591133613b304df11b171975c', class: "ui-extras" }, h("slot", { key: 'c3bcea25c38aa569a78b51f415f29b520f9b3f86', name: "ui" })), this.pageCount > 1 && (this.pager || this.navbtns) && (h("div", { key: 'e6fa9bba0a67ec190cb8461a21d32ca74d3a0b88', class: "pagination", part: "pagination" }, this.navbtns && (h("button", { key: '3539c40d3505d629ed8ff83a56abaa990dc46857', class: "flickity-button flickity-prev-next-button previous", part: "navigation-button navigation-button--previous", "aria-label": "Previous slide", onClick: () => this.slidePrev(), disabled: this.iCurrentSlide === 0 && !this.options.wrapAround }, h("span", { key: 'ca7f5d2b8dc29e5c0fee0e7d74ac26be8dcd74f6', class: "button-icon button-icon--previous", part: "navigation-icon" }, h("slot", { key: '3eab4f9542746d4bc1bdd5f69aa2ff89beafba00', name: "previous-icon" })))), this.pager && (h("div", { key: '762f7a3601918ebd6cb8a2bf8bbf4f3ee359f8bc', class: "flickity-page-dots" }, Array.from({ length: this.pageCount }).map((_, index) => (h("button", { part: "pagination-item--active", key: index, class: {
2975
2975
  'pagination-btn': true,
2976
2976
  'pagination-btn--active': this.isActive(index),
2977
2977
  'is-selected': this.isActive(index),
@@ -2980,8 +2980,8 @@ const Slides = class {
2980
2980
  if (this.isActive(index))
2981
2981
  return;
2982
2982
  this.slideTo(index);
2983
- } }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))), this.navbtns && (h("button", { key: '65592f3e81fadad36aa20be8738b9fd94d4d9ca5', class: "flickity-button flickity-prev-next-button next", part: "navigation-button navigation-button--next", "aria-label": "Next slide", onClick: () => this.slideNext(), disabled: this.syncflickity?.slides.length ===
2984
- this.iCurrentSlide + 1 && !this.options.wrapAround }, h("span", { key: '0a0cca0e3e66648009861c3dd2474a0882c3c5bb', class: "button-icon", part: "navigation-icon" }, h("slot", { key: '2b709b10a39ca707ec622983e83e4ba79e9989ee', name: "next-icon" })))))))));
2983
+ } }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))), this.navbtns && (h("button", { key: '4a9bcddd7133c0a150e2e046e82bf76a97534926', class: "flickity-button flickity-prev-next-button next", part: "navigation-button navigation-button--next", "aria-label": "Next slide", onClick: () => this.slideNext(), disabled: this.syncflickity?.slides.length ===
2984
+ this.iCurrentSlide + 1 && !this.options.wrapAround }, h("span", { key: 'de509817e85cff853beba46b0ae5d19e14b8f81d', class: "button-icon", part: "navigation-icon" }, h("slot", { key: '89ffb6c06f1b03feb2065808222c14be70b66949', name: "next-icon" })))))))));
2985
2985
  }
2986
2986
  static get watchers() { return {
2987
2987
  "options": ["optionsChanged"],
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * Custom elements for Nanopore-Digital Web applications
3
3
  */
4
- export { S as nano_slides } from './nano-slides-WDFCFgZL.js';
4
+ export { S as nano_slides } from './nano-slides-C0Hxa7Aa.js';
5
5
  import './index-RXFO3HxS.js';
6
6
  import './renderer-B_wACs4w.js';
@@ -726,7 +726,7 @@ const Sortable = class {
726
726
  }
727
727
  }
728
728
  render() {
729
- return (h(Host, { key: '845be657a2bbfb42718ee9e8d4672ff31756fcc3', class: "nano-sortable" }, h("div", { key: '9c603a11407cb62ffe50bb6cfd89b47994df21e9', 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: '36a5e7111ed26a7714206c449ffc7be1a46337d1' })));
729
+ return (h(Host, { key: '92da39ca4300baebfafa0dbbde2b969a94c153a1', class: "nano-sortable" }, h("div", { key: 'f36ee8930fe09db42e4eb3d23bc9c9a41cee78c3', 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: 'b5aadf78950111c71866655c087fd188ff310414' })));
730
730
  }
731
731
  static get watchers() { return {
732
732
  "itemSelector": ["handleItemSelectorChange"],
@@ -81,7 +81,7 @@ const NanoStepAccordion = class {
81
81
  }
82
82
  }
83
83
  render() {
84
- return (h("nano-accordion", { key: '1a977444388da596ff3fbf0559ac77a274efce11', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index) => (h("nano-details", { open: index === this.activeStep, disabled: !step.enabled, class: {
84
+ return (h("nano-accordion", { key: 'dd04f4a4e9a0d3892342cb5fd0ca4ded7fa393cc', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index) => (h("nano-details", { open: index === this.activeStep, disabled: !step.enabled, class: {
85
85
  step: true,
86
86
  'step--active': index === this.activeStep,
87
87
  'step--complete': step.complete,
@@ -104,10 +104,10 @@ const NanoStepBreadcrumb = class {
104
104
  };
105
105
  render() {
106
106
  const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
107
- return (h(Host, { key: 'c36aea91ff263fe145d0eebfe5ba34c3fb33c948' }, h(Wrapper, { key: '5399b604512fdc7254f01702b5f58fd1ab5725be', class: "step-wrapper" }, h("ul", { key: '42f2f8adddd37661873ed4b16559b558a4525af4', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (h("li", { class: "step-item-wrapper", key: index }, h(this.ControlTag, { step: step, index: index }))))), h("div", { key: 'ab41697fed0c7d4282913f8492676008cee1ec63', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '73e5bba6d10f193c4e0b6b2ff43919e0b1589bcb', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '7054eb631e22d22ef7fbcb0c8320e77b288b381f', slot: "trigger", class: "step-trigger" }, h("div", { key: '8f0816402f31637a1402d1ee1e66bcd086ef6377', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
107
+ return (h(Host, { key: '411b80e166d57b3d07b80ec28cad52fcf8a309c5' }, h(Wrapper, { key: '3c84726262a3830766f50779ee6cd3fec8da47d8', class: "step-wrapper" }, h("ul", { key: 'b62449d73c812731bb4ab0d53992fec1f18448ed', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (h("li", { class: "step-item-wrapper", key: index }, h(this.ControlTag, { step: step, index: index }))))), h("div", { key: 'ef7a477f27f8c10efa6ad5309386a1c6bf0e38bb', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: 'b36fa485a490b0a6425c84ff8cdca9b12ceb1e2c', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '122a3616e538164c52feaf095e3227f1b5cbd7e5', slot: "trigger", class: "step-trigger" }, h("div", { key: '097c1fd6f3588d28b869b82d9f63de996d7c20dc', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
108
108
  '--value': '' + (this.activeStep + 1),
109
109
  '--max': '' + this.steps.length,
110
- } }, h("span", { key: '1ab7e9e69dc52d2761b2c1a2c7bdb19cc0cdad0f', class: "step-progress-text" }, h("strong", { key: 'e760c2e668e5930694a873448154e3f23bf03018' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: '0afdddcdfa767f2d250986360c5ce52a37adc868', class: "step-trigger-text" }, h("div", { key: '1c200ddd5ca41a6c003c4b4bfa6c6e188a8641ac', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: 'c600fd068470ea8ae187c74dc9616e8efb057c9e', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: '053727621ffd9a19c39b9be0766c904391ede136', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '7a578be0c13a7e4edeb40500e30e58d47c917b8e' }, this.steps.map((step, index) => (h("nano-nav-item", { class: {
110
+ } }, h("span", { key: '3d90bccdae92dbecccf93f36b4325e6184d55bcc', class: "step-progress-text" }, h("strong", { key: '941be73db7a09546c823175ccf01519f3daf7d73' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: '52619f7a88712ace9b82e4a112784af57fc87ec1', class: "step-trigger-text" }, h("div", { key: 'f3fb2049434f2435836ee276fe0ac56d398a04b7', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: '382916108875640ef59479bf259fe26662596720', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: '18503355440a76daaa97abcbc1b5f53d783ac86d', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '91032f5d664af203643a27b62ff0d0749b467029' }, this.steps.map((step, index) => (h("nano-nav-item", { class: {
111
111
  'step-item-mobile': true,
112
112
  'step-item-mobile step-item--active': index === this.activeStep,
113
113
  'step-item-mobile step-item--complete': step.complete,
@@ -605,12 +605,12 @@ const Sticker = class {
605
605
  this.hasBootstrapped = false;
606
606
  }
607
607
  render() {
608
- return (h(Host, { key: '9760c52934c0b3d6459598dfa3a197927cf7e878', 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: 'abbbd0a9b785792f00a75d411fbc3b882f605032', class: {
608
+ return (h(Host, { key: '60adae6e59e66c467f2bc893bfce5fec6f9840b3', 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: 'd07aa4d91346877330985751dc07e77ade6641f1', class: {
609
609
  sticker: true,
610
610
  sticky: this.isRootSticker && this.isSticky,
611
611
  stuck: this.isStuck && this.isRootSticker && this.isSticky,
612
612
  hide: this.isRootSticker && this.hide && this.isStuck,
613
- }, ref: (div) => (this.sticker = div) }, h("div", { key: 'de9552b69657aad9f2015dfa1470a197d490520c', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: 'baafb74a16688cd9e1839eb617ceb46fb7e2b23f' })))));
613
+ }, ref: (div) => (this.sticker = div) }, h("div", { key: '2e9e03afcef0357ada094e4518c9bfd84947e676', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '21c51e2ea322f7d39528633072d93cfe8ebb94de' })))));
614
614
  }
615
615
  static get watchers() { return {
616
616
  "trigger": ["updateTriggerOffset"],
@@ -22,10 +22,10 @@ const NanoTabContent = class {
22
22
  requestAnimationFrame(() => (this.ready = true));
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: 'd6b4670c20b4ba1434561d9ca12fa31da1a0e20d', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
25
+ return (h(Host, { key: '0a81893905932bca2ba694d0ecb27f28369f7606', id: this.host.id || this.tabContentId, style: { display: this.active ? 'block' : 'none' }, role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', class: {
26
26
  ready: this.ready,
27
27
  'nano-tab-content': true,
28
- } }, h("div", { key: 'c7c7a56f8942451a8a9beca4b9126c5f6533f9e3', part: "base", class: "nano-tab-content" }, h("slot", { key: '662b14c342f751f9d7a4bcbfecb82ae8207ee219' }))));
28
+ } }, h("div", { key: '74093ccac8983cba93c5bff5f06da2ab4ade4eed', part: "base", class: "nano-tab-content" }, h("slot", { key: '9c0922b3463cec891cf542ebf2232c9f4870845d' }))));
29
29
  }
30
30
  };
31
31
  NanoTabContent.style = tabContentCss;
@@ -49,12 +49,12 @@ const NanoTab = class {
49
49
  };
50
50
  render() {
51
51
  const Tag = this.href ? 'a' : 'div';
52
- return (h(Host, { key: 'eeba7d6c136e8ede5c1d60ecf53696a6aac3e2c4', id: this.host.id || this.tabId, role: !this.href ? 'tab' : undefined, "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h(Tag, { key: 'a91c1e97699d0d32329c1f17b63da3ef97040333', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
52
+ return (h(Host, { key: '3649794a7283da61c9659f2c639d00862a2116d1', id: this.host.id || this.tabId, role: !this.href ? 'tab' : undefined, "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h(Tag, { key: '4a1cff12dce6edb0a13b1a1d997a8534132e617a', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
53
53
  tab: true,
54
54
  'tab--active': this.active,
55
55
  'tab--disabled': this.disabled,
56
56
  'tab--closable': this.closable,
57
- }, href: this.href, target: this.target }, h("slot", { key: '2bab15a4a52e1eb75acecaf28b3b625ae3949716', name: "start" }), h("div", { key: 'ac5235d4d3b7802d5d7f7f5e896d996f8be68fc0', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, h("slot", { key: '5ad82f1d6061ab94268f623d1aaa82791a221b7c' })), h("slot", { key: '6f30a65a661a1a85eb3d363edb03c3e16fcf59f0', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: 'f8ea9979858ab6faf98100cf970271e4262d7ab1', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
57
+ }, href: this.href, target: this.target }, h("slot", { key: 'f3b43c6b87ce86c945671b18598ed8844ec8e855', name: "start" }), h("div", { key: 'c9b508f82c5818b625e24b14ce1d9b61e47fd208', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, h("slot", { key: '6c02486bf2f3640fd56fc188d0fdf2091f3da23c' })), h("slot", { key: 'bd9695255a1032294c9ff2f500e01aac2ba2b3e3', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '0f458dcada1ee1d05f4bbce6c24352d01ff1a68d', label: "Close this tab", iconName: "light/xmark", class: "tab__close-button", onClick: this.handleCloseClick, onKeyDown: this.handleCloseKeydown, part: "close-button" })))));
58
58
  }
59
59
  };
60
60
  NanoTab.style = tabCss;
@@ -226,10 +226,10 @@ const NanoTable = class {
226
226
  this.cleanUpObservers();
227
227
  }
228
228
  render() {
229
- return (h(Host, { key: 'fa8f3bb2dfffee9a213d372282b5902ed56c5a2b', class: {
229
+ return (h(Host, { key: 'ebbfd8421e422255664184552b1f0eda8072fd89', class: {
230
230
  'nano-table': true,
231
231
  'nano-table--props-ready': this.propsReady,
232
- } }, this.scrollable && (h("nano-masked-overflow", { key: 'da0d773c42fb2c1b9f694fa4b2c307c2c070d67d', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '83f36ec8ff79fa21fb1ae03f1746ccc544ffa7f3', class: "nano-table__overflow" }))), h("slot", { key: '57821514111245364971a5f85c6ff95309590eb3' })));
232
+ } }, this.scrollable && (h("nano-masked-overflow", { key: '89df303f6187fed245e1883420c913e765a625fc', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: 'e9c9da86bd1ff153587dbcc56dd79d661dcb0cbc', class: "nano-table__overflow" }))), h("slot", { key: 'ce06e9466b6700c9c3c489d5751a28da1af5952f' })));
233
233
  }
234
234
  static get watchers() { return {
235
235
  "compact": ["handleCompactChange"],
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Custom elements for Nanopore-Digital Web applications
3
3
  */
4
- import{F as t,u as i}from"./nano-slides-WDFCFgZL.js";import"./index-RXFO3HxS.js";import"./renderer-B_wACs4w.js";const s=t.Slide,h=s.prototype.updateTarget;s.prototype.updateTarget=function(...t){if(h.apply(this,t),!this.parent.options.fade)return;const i=this.target-this.x,s=this.cells[0].x;this.cells.forEach((function(t){t.renderPosition(t.x-s-i)}))},s.prototype.setOpacity=function(t){this.cells.forEach((function(i){i.element.style.opacity=t}))};const n=t.prototype;t.createMethods.push("_createFade"),n._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};const o=n.updateSlides;n.updateSlides=function(...t){o.apply(this,t),this.options.fade&&this.slides.forEach((function(t,i){t.setOpacity(i==this.selectedIndex?1:0)}),this)},n.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},n.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},n.onDragEndFade=function(){this.didDragEnd=!0},n.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},n.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(t){t.setOpacity("")})))};const c=n.positionSlider;n.positionSlider=function(...t){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):c.apply(this,t)};const u=n.positionSliderAtSelected;n.positionSliderAtSelected=function(...t){this.options.fade&&this.setTranslateX(0),u.apply(this,t)},n.fadeSlides=function(){if(this.slides.length<2)return;const t=this.getFadeIndexes(),i=this.slides[t.a],s=this.slides[t.b],h=this.wrapDifference(i.target,s.target);let n=this.wrapDifference(i.target,-this.x);n/=h,i.setOpacity(1-n),s.setOpacity(n);let o=t.a;this.isDragging&&(o=n>.5?t.a:t.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=t.a&&this.fadeHideIndex!=t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o},n.getFadeIndexes=function(){return this.isDragging||this.didDragEnd||void 0===this.fadeIndex?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},n.getFadeDragWrapIndexes=function(){const t=this.slides.map((function(t,i){return this.getSlideDistance(-this.x,i)}),this),s=t.map((function(t){return Math.abs(t)})),h=Math.min(...s),n=s.indexOf(h);return{a:n,b:i.modulo(n+(t[n]>=0?1:-1),this.slides.length)}},n.getFadeDragLimitIndexes=function(){let t=0;for(let i=0;i<this.slides.length-1&&!(-this.x<this.slides[i].target);i++)t=i;return{a:t,b:t+1}},n.wrapDifference=function(t,i){let s=i-t;if(!this.options.wrapAround)return s;const h=s+this.slideableWidth,n=s-this.slideableWidth;return Math.abs(h)<Math.abs(s)&&(s=h),Math.abs(n)<Math.abs(s)&&(s=n),s};const e=n._getWrapShiftCells;n._getWrapShiftCells=function(...t){this.options.fade||e.apply(this,t)};const f=n.shiftWrapCells;n.shiftWrapCells=function(...t){this.options.fade||f.apply(this,t)}
4
+ import{F as t,u as i}from"./nano-slides-C0Hxa7Aa.js";import"./index-RXFO3HxS.js";import"./renderer-B_wACs4w.js";const s=t.Slide,h=s.prototype.updateTarget;s.prototype.updateTarget=function(...t){if(h.apply(this,t),!this.parent.options.fade)return;const i=this.target-this.x,s=this.cells[0].x;this.cells.forEach((function(t){t.renderPosition(t.x-s-i)}))},s.prototype.setOpacity=function(t){this.cells.forEach((function(i){i.element.style.opacity=t}))};const n=t.prototype;t.createMethods.push("_createFade"),n._createFade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};const o=n.updateSlides;n.updateSlides=function(...t){o.apply(this,t),this.options.fade&&this.slides.forEach((function(t,i){t.setOpacity(i==this.selectedIndex?1:0)}),this)},n.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},n.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!=this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},n.onDragEndFade=function(){this.didDragEnd=!0},n.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},n.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((function(t){t.setOpacity("")})))};const c=n.positionSlider;n.positionSlider=function(...t){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):c.apply(this,t)};const u=n.positionSliderAtSelected;n.positionSliderAtSelected=function(...t){this.options.fade&&this.setTranslateX(0),u.apply(this,t)},n.fadeSlides=function(){if(this.slides.length<2)return;const t=this.getFadeIndexes(),i=this.slides[t.a],s=this.slides[t.b],h=this.wrapDifference(i.target,s.target);let n=this.wrapDifference(i.target,-this.x);n/=h,i.setOpacity(1-n),s.setOpacity(n);let o=t.a;this.isDragging&&(o=n>.5?t.a:t.b),null!=this.fadeHideIndex&&this.fadeHideIndex!=o&&this.fadeHideIndex!=t.a&&this.fadeHideIndex!=t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=o},n.getFadeIndexes=function(){return this.isDragging||this.didDragEnd||void 0===this.fadeIndex?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},n.getFadeDragWrapIndexes=function(){const t=this.slides.map((function(t,i){return this.getSlideDistance(-this.x,i)}),this),s=t.map((function(t){return Math.abs(t)})),h=Math.min(...s),n=s.indexOf(h);return{a:n,b:i.modulo(n+(t[n]>=0?1:-1),this.slides.length)}},n.getFadeDragLimitIndexes=function(){let t=0;for(let i=0;i<this.slides.length-1&&!(-this.x<this.slides[i].target);i++)t=i;return{a:t,b:t+1}},n.wrapDifference=function(t,i){let s=i-t;if(!this.options.wrapAround)return s;const h=s+this.slideableWidth,n=s-this.slideableWidth;return Math.abs(h)<Math.abs(s)&&(s=h),Math.abs(n)<Math.abs(s)&&(s=n),s};const e=n._getWrapShiftCells;n._getWrapShiftCells=function(...t){this.options.fade||e.apply(this,t)};const f=n.shiftWrapCells;n.shiftWrapCells=function(...t){this.options.fade||f.apply(this,t)}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Custom elements for Nanopore-Digital Web applications
3
3
  */
4
- import{F as t}from"./nano-slides-WDFCFgZL.js";import"./index-RXFO3HxS.js";import"./renderer-B_wACs4w.js";t.createMethods.push("_createFullscreen");const i=t.prototype;i._createFullscreen=function(){this.isFullscreen=!1,this.options.fullscreen&&(this.viewFullscreenButton=new n("view",this),this.exitFullscreenButton=new n("exit",this),this.on("activate",this._changeFullscreenActive),this.on("deactivate",this._changeFullscreenActive))},i._changeFullscreenActive=function(){const t=this.isActive?"appendChild":"removeChild";this.element[t](this.viewFullscreenButton.element),this.element[t](this.exitFullscreenButton.element);const i=this.isActive?"activate":"deactivate";this.viewFullscreenButton[i](),this.exitFullscreenButton[i]()},i.viewFullscreen=function(){this._changeFullscreen(!0),this.focus()},i.exitFullscreen=function(){this._changeFullscreen(!1)},i._changeFullscreen=function(t){if(this.isFullscreen==t)return;this.isFullscreen=t;const i=t?"add":"remove";document.documentElement.classList[i]("is-flickity-fullscreen"),this.element.classList[i]("is-fullscreen"),this.resize(),this.isFullscreen&&this.reposition(),this.dispatchEvent("fullscreenChange",null,[t])},i.toggleFullscreen=function(){this._changeFullscreen(!this.isFullscreen)};const s=i.setGallerySize;function n(t,i){this.name=t,this.createButton(),this.createIcon(),this.onClick=function(){i[t+"Fullscreen"]()},this.clickHandler=this.onClick.bind(this)}i.setGallerySize=function(){this.options.setGallerySize&&(this.isFullscreen?this.viewport.style.height="":s.call(this))},t.keyboardHandlers[27]=function(){this.exitFullscreen()},n.prototype.createButton=function(){const t=this.element=document.createElement("button");t.className="flickity-button flickity-fullscreen-button flickity-fullscreen-button-"+this.name,t.setAttribute("type","button");const i=(s=this.name+" full-screen")[0].toUpperCase()+s.slice(1);var s;t.setAttribute("aria-label",i),t.title=i};const h="http://www.w3.org/2000/svg",c={view:"M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z",exit:"M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z"};n.prototype.createIcon=function(){const t=document.createElementNS(h,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 32 32");const i=document.createElementNS(h,"path");i.setAttribute("d",c[this.name]),t.appendChild(i),this.element.appendChild(t)},n.prototype.activate=function(){this.element.addEventListener("click",this.clickHandler)},n.prototype.deactivate=function(){this.element.removeEventListener("click",this.clickHandler)},t.FullscreenButton=n;
4
+ import{F as t}from"./nano-slides-C0Hxa7Aa.js";import"./index-RXFO3HxS.js";import"./renderer-B_wACs4w.js";t.createMethods.push("_createFullscreen");const i=t.prototype;i._createFullscreen=function(){this.isFullscreen=!1,this.options.fullscreen&&(this.viewFullscreenButton=new n("view",this),this.exitFullscreenButton=new n("exit",this),this.on("activate",this._changeFullscreenActive),this.on("deactivate",this._changeFullscreenActive))},i._changeFullscreenActive=function(){const t=this.isActive?"appendChild":"removeChild";this.element[t](this.viewFullscreenButton.element),this.element[t](this.exitFullscreenButton.element);const i=this.isActive?"activate":"deactivate";this.viewFullscreenButton[i](),this.exitFullscreenButton[i]()},i.viewFullscreen=function(){this._changeFullscreen(!0),this.focus()},i.exitFullscreen=function(){this._changeFullscreen(!1)},i._changeFullscreen=function(t){if(this.isFullscreen==t)return;this.isFullscreen=t;const i=t?"add":"remove";document.documentElement.classList[i]("is-flickity-fullscreen"),this.element.classList[i]("is-fullscreen"),this.resize(),this.isFullscreen&&this.reposition(),this.dispatchEvent("fullscreenChange",null,[t])},i.toggleFullscreen=function(){this._changeFullscreen(!this.isFullscreen)};const s=i.setGallerySize;function n(t,i){this.name=t,this.createButton(),this.createIcon(),this.onClick=function(){i[t+"Fullscreen"]()},this.clickHandler=this.onClick.bind(this)}i.setGallerySize=function(){this.options.setGallerySize&&(this.isFullscreen?this.viewport.style.height="":s.call(this))},t.keyboardHandlers[27]=function(){this.exitFullscreen()},n.prototype.createButton=function(){const t=this.element=document.createElement("button");t.className="flickity-button flickity-fullscreen-button flickity-fullscreen-button-"+this.name,t.setAttribute("type","button");const i=(s=this.name+" full-screen")[0].toUpperCase()+s.slice(1);var s;t.setAttribute("aria-label",i),t.title=i};const h="http://www.w3.org/2000/svg",c={view:"M15,20,7,28h5v4H0V20H4v5l8-8Zm5-5,8-8v5h4V0H20V4h5l-8,8Z",exit:"M32,3l-7,7h5v4H18V2h4V7l7-7ZM3,32l7-7v5h4V18H2v4H7L0,29Z"};n.prototype.createIcon=function(){const t=document.createElementNS(h,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 32 32");const i=document.createElementNS(h,"path");i.setAttribute("d",c[this.name]),t.appendChild(i),this.element.appendChild(t)},n.prototype.activate=function(){this.element.addEventListener("click",this.clickHandler)},n.prototype.deactivate=function(){this.element.removeEventListener("click",this.clickHandler)},t.FullscreenButton=n;
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Custom elements for Nanopore-Digital Web applications
3
+ */
4
+ import{F as t,u as i}from"./nano-slides-C0Hxa7Aa.js";import"./index-RXFO3HxS.js";import"./renderer-B_wACs4w.js";t.createMethods.push("_createLazyload");const a=t.prototype;function s(t,i){this.img=t,this.flickity=i,this.load()}a._createLazyload=function(){this.on("select",this.lazyLoad)},a.lazyLoad=function(){const t=this.options.lazyLoad;if(!t)return;const a=this.getAdjacentCellElements("number"==typeof t?t:0);let l=[];a.forEach((function(t){const a=function(t){if("IMG"==t.nodeName){const i=t.getAttribute("data-flickity-lazyload"),a=t.getAttribute("data-flickity-lazyload-src"),s=t.getAttribute("data-flickity-lazyload-srcset");if(i||a||s)return[t]}const a=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return i.makeArray(a)}(t);l=l.concat(a)})),l.forEach((function(t){new s(t,this)}),this)},s.prototype.handleEvent=i.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);const t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),i=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,i&&this.img.setAttribute("srcset",i),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,i){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);const a=this.flickity.getParentCell(this.img),s=a&&a.element;this.flickity.cellSizeChange(s),this.img.classList.add(i),this.flickity.dispatchEvent("lazyLoad",t,s)},t.LazyLoader=s;