@nanoporetech-digital/components 9.1.2 → 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.
- package/dist/cjs/{fade-Cng4p1KQ.js → fade-qohjp1nm.js} +1 -1
- package/dist/cjs/{fullscreen-BYNt89kR.js → fullscreen-DwMCASzJ.js} +1 -1
- package/dist/cjs/{lazyload-CLpLl1ob.js → lazyload-e3rgW4Hl.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-avatar_5.cjs.entry.js +8 -8
- package/dist/cjs/nano-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nano-collapsible-comparison.cjs.entry.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-footer.cjs.entry.js +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-mdd.cjs.entry.js +3 -0
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +2 -2
- package/dist/cjs/nano-more-less.cjs.entry.js +2 -2
- package/dist/cjs/nano-rating.cjs.entry.js +4 -4
- package/dist/cjs/nano-resize-observe.cjs.entry.js +2 -2
- package/dist/cjs/nano-slide.cjs.entry.js +1 -1
- package/dist/cjs/{nano-slides-QbssxNUC.js → nano-slides-BqJU19OI.js} +8 -8
- package/dist/cjs/nano-slides.cjs.entry.js +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +1 -1
- package/dist/cjs/nano-step-accordion.cjs.entry.js +1 -1
- package/dist/cjs/nano-step-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/nano-sticker.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab-content.cjs.entry.js +2 -2
- package/dist/cjs/nano-tab.cjs.entry.js +2 -2
- package/dist/cjs/nano-table.cjs.entry.js +2 -2
- package/dist/cjs/{style-CIGbDa5n.js → style-CQ5MIH25.js} +6 -4
- package/dist/collection/components/mdd/mdd.js +7 -0
- package/dist/collection/components/menu-drawer/menu-drawer.js +2 -2
- package/dist/collection/components/more-less/more-less.js +2 -2
- package/dist/collection/components/rating/rating.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +2 -2
- package/dist/collection/components/select/select.js +7 -7
- package/dist/collection/components/slides/slide.js +1 -1
- package/dist/collection/components/slides/slides.js +5 -5
- package/dist/collection/components/sortable/sortable.js +1 -1
- package/dist/collection/components/step-accordion/step-accordion.js +1 -1
- package/dist/collection/components/step-breadcrumb/step-breadcrumb.js +2 -2
- package/dist/collection/components/sticker/sticker.js +2 -2
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/tabs/tab-content.js +2 -2
- package/dist/collection/components/tabs/tab.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/utils/style.js +6 -4
- package/dist/components/nano-mdd.js +5 -2
- package/dist/components/nano-menu-drawer.js +2 -2
- 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-step-accordion.js +1 -1
- package/dist/components/nano-step-breadcrumb.js +2 -2
- package/dist/components/nano-tab-content.js +2 -2
- package/dist/components/nano-tab.js +2 -2
- package/dist/components/nano-table.js +2 -2
- package/dist/components/resize-observe.js +2 -2
- package/dist/components/select.js +7 -7
- package/dist/components/slides.js +5 -5
- package/dist/components/sticker.js +2 -2
- package/dist/components/style.js +6 -4
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{fade-CnvBzIGD.js → fade-DYPdqggy.js} +1 -1
- package/dist/esm/{fullscreen-BqihOK-Y.js → fullscreen-CTmKto_6.js} +1 -1
- package/dist/esm/{lazyload-ClpqVun1.js → lazyload-CAFm10PR.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-avatar_5.entry.js +8 -8
- package/dist/esm/nano-breadcrumb.entry.js +1 -1
- package/dist/esm/nano-collapsible-comparison.entry.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-footer.entry.js +1 -1
- package/dist/esm/nano-global-nav.entry.js +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +2 -2
- package/dist/esm/nano-mdd.entry.js +4 -1
- package/dist/esm/nano-menu-drawer.entry.js +2 -2
- package/dist/esm/nano-more-less.entry.js +2 -2
- package/dist/esm/nano-rating.entry.js +4 -4
- package/dist/esm/nano-resize-observe.entry.js +2 -2
- package/dist/esm/nano-slide.entry.js +1 -1
- package/dist/esm/{nano-slides-WDFCFgZL.js → nano-slides-C0Hxa7Aa.js} +8 -8
- package/dist/esm/nano-slides.entry.js +1 -1
- package/dist/esm/nano-sortable.entry.js +1 -1
- package/dist/esm/nano-step-accordion.entry.js +1 -1
- package/dist/esm/nano-step-breadcrumb.entry.js +3 -3
- package/dist/esm/nano-sticker.entry.js +2 -2
- package/dist/esm/nano-tab-content.entry.js +2 -2
- package/dist/esm/nano-tab.entry.js +2 -2
- package/dist/esm/nano-table.entry.js +2 -2
- package/dist/esm/{style-BVRinbua.js → style-DZBZHpf8.js} +6 -4
- package/dist/nano-components/{fade-CnvBzIGD.js → fade-DYPdqggy.js} +1 -1
- package/dist/nano-components/{fullscreen-BqihOK-Y.js → fullscreen-CTmKto_6.js} +1 -1
- package/dist/nano-components/lazyload-CAFm10PR.js +4 -0
- 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-collapsible-comparison.entry.js +1 -1
- package/dist/nano-components/nano-components.esm.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-icon-button_2.entry.js +1 -1
- package/dist/nano-components/nano-mdd.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-rating.entry.js +1 -1
- package/dist/nano-components/nano-resize-observe.entry.js +1 -1
- package/dist/nano-components/nano-slide.entry.js +1 -1
- package/dist/nano-components/{nano-slides-WDFCFgZL.js → nano-slides-C0Hxa7Aa.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-step-accordion.entry.js +1 -1
- package/dist/nano-components/nano-step-breadcrumb.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.entry.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/{style-BVRinbua.js → style-DZBZHpf8.js} +1 -1
- package/dist/types/components/mdd/mdd.d.ts +1 -0
- package/docs-json.json +1 -1
- package/hydrate/index.js +41 -38
- package/hydrate/index.mjs +41 -38
- package/package.json +2 -2
- package/dist/nano-components/lazyload-ClpqVun1.js +0 -4
|
@@ -507,15 +507,15 @@ export class Slides {
|
|
|
507
507
|
this.destroyflickity();
|
|
508
508
|
}
|
|
509
509
|
render() {
|
|
510
|
-
return (h(Host, { key: '
|
|
510
|
+
return (h(Host, { key: '42548f40ddb58bd17ba72b0f4d8eae4e80830896', class: "nano-slides" }, h("div", { key: 'd8f2236b6bca970b42b3d1d8f9ab0a6b109d36a1', class: {
|
|
511
511
|
slideshow: true,
|
|
512
512
|
ready: this.ready,
|
|
513
513
|
'not-ready': !this.ready,
|
|
514
|
-
}, part: "base" }, h("div", { key: '
|
|
514
|
+
}, part: "base" }, h("div", { key: '8fbdcaad01037ae236438aedb5a50fcc00f44830', ref: (div) => (this.flickityEl = div), class: {
|
|
515
515
|
'flickity-container': true,
|
|
516
516
|
'slides-ready': this.slidesReady,
|
|
517
517
|
'slides-not-ready': !this.slidesReady,
|
|
518
|
-
}, part: "slide-container" }, h("slot", { key: '
|
|
518
|
+
}, 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: {
|
|
519
519
|
'pagination-btn': true,
|
|
520
520
|
'pagination-btn--active': this.isActive(index),
|
|
521
521
|
'is-selected': this.isActive(index),
|
|
@@ -524,8 +524,8 @@ export class Slides {
|
|
|
524
524
|
if (this.isActive(index))
|
|
525
525
|
return;
|
|
526
526
|
this.slideTo(index);
|
|
527
|
-
} }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))), this.navbtns && (h("button", { key: '
|
|
528
|
-
this.iCurrentSlide + 1 && !this.options.wrapAround }, h("span", { key: '
|
|
527
|
+
} }, 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 ===
|
|
528
|
+
this.iCurrentSlide + 1 && !this.options.wrapAround }, h("span", { key: 'de509817e85cff853beba46b0ae5d19e14b8f81d', class: "button-icon", part: "navigation-icon" }, h("slot", { key: '89ffb6c06f1b03feb2065808222c14be70b66949', name: "next-icon" })))))))));
|
|
529
529
|
}
|
|
530
530
|
static get is() { return "nano-slides"; }
|
|
531
531
|
static get encapsulation() { return "shadow"; }
|
|
@@ -732,7 +732,7 @@ export class Sortable {
|
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
render() {
|
|
735
|
-
return (h(Host, { key: '
|
|
735
|
+
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' })));
|
|
736
736
|
}
|
|
737
737
|
static get is() { return "nano-sortable"; }
|
|
738
738
|
static get encapsulation() { return "shadow"; }
|
|
@@ -83,7 +83,7 @@ export class NanoStepAccordion {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (h("nano-accordion", { key: '
|
|
86
|
+
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: {
|
|
87
87
|
step: true,
|
|
88
88
|
'step--active': index === this.activeStep,
|
|
89
89
|
'step--complete': step.complete,
|
|
@@ -104,10 +104,10 @@ export class NanoStepBreadcrumb {
|
|
|
104
104
|
};
|
|
105
105
|
render() {
|
|
106
106
|
const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
|
|
107
|
-
return (h(Host, { key: '
|
|
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: '
|
|
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,
|
|
@@ -603,12 +603,12 @@ export class Sticker {
|
|
|
603
603
|
this.hasBootstrapped = false;
|
|
604
604
|
}
|
|
605
605
|
render() {
|
|
606
|
-
return (h(Host, { key: '
|
|
606
|
+
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: {
|
|
607
607
|
sticker: true,
|
|
608
608
|
sticky: this.isRootSticker && this.isSticky,
|
|
609
609
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
|
610
610
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
|
611
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
|
611
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: '2e9e03afcef0357ada094e4518c9bfd84947e676', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '21c51e2ea322f7d39528633072d93cfe8ebb94de' })))));
|
|
612
612
|
}
|
|
613
613
|
static get is() { return "nano-sticker"; }
|
|
614
614
|
static get encapsulation() { return "shadow"; }
|
|
@@ -231,10 +231,10 @@ export class NanoTable {
|
|
|
231
231
|
this.cleanUpObservers();
|
|
232
232
|
}
|
|
233
233
|
render() {
|
|
234
|
-
return (h(Host, { key: '
|
|
234
|
+
return (h(Host, { key: 'ebbfd8421e422255664184552b1f0eda8072fd89', class: {
|
|
235
235
|
'nano-table': true,
|
|
236
236
|
'nano-table--props-ready': this.propsReady,
|
|
237
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
|
237
|
+
} }, 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' })));
|
|
238
238
|
}
|
|
239
239
|
static get is() { return "nano-table"; }
|
|
240
240
|
static get encapsulation() { return "scoped"; }
|
|
@@ -24,10 +24,10 @@ export class NanoTabContent {
|
|
|
24
24
|
requestAnimationFrame(() => (this.ready = true));
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '0a81893905932bca2ba694d0ecb27f28369f7606', 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: '74093ccac8983cba93c5bff5f06da2ab4ade4eed', part: "base", class: "nano-tab-content" }, h("slot", { key: '9c0922b3463cec891cf542ebf2232c9f4870845d' }))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "nano-tab-content"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,12 +56,12 @@ export class NanoTab {
|
|
|
56
56
|
};
|
|
57
57
|
render() {
|
|
58
58
|
const Tag = this.href ? 'a' : 'div';
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
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: {
|
|
60
60
|
tab: true,
|
|
61
61
|
'tab--active': this.active,
|
|
62
62
|
'tab--disabled': this.disabled,
|
|
63
63
|
'tab--closable': this.closable,
|
|
64
|
-
}, href: this.href, target: this.target }, h("slot", { key: '
|
|
64
|
+
}, 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" })))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "nano-tab"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '085c79dbd9df2889a6aa7d88c41646e5a5a99fa9', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '8936b4cbb36ae5d085ca6531730b3ca698896186', onSlotchange: this.handleSlotChange }), h("div", { key: 'b0cbe2bd129018ae3694fec63d2e5699ad4bd7ff', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'a3bacf2ca0ca83af15cebfe3ce45132c66bfe348', 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: '70b83683ad7457bd801b1853683047da757305cc', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '2e61880754b5165c17f6ce93a8b1a62266109c09', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
|
234
234
|
}
|
|
235
235
|
static get is() { return "nano-tooltip"; }
|
|
236
236
|
static get encapsulation() { return "shadow"; }
|
|
@@ -124,11 +124,13 @@ async function buildGlobalStylesheetFromHrefs(hrefs) {
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
}));
|
|
127
|
-
// keep the original document order
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
// keep the original document order and combine every matching stylesheet -
|
|
128
|
+
// the nano styles are split across multiple files (e.g. core.css, light.css,
|
|
129
|
+
// dark.css), so we must adopt all of them, not just the first match
|
|
130
|
+
const matchingCss = cssTexts.filter((text) => !!text && cssTextContainsNanoMarker(text));
|
|
131
|
+
if (matchingCss.length) {
|
|
130
132
|
const sheet = new CSSStyleSheet();
|
|
131
|
-
await sheet.replace(
|
|
133
|
+
await sheet.replace(matchingCss.join('\n'));
|
|
132
134
|
cachedCSStylesheet = sheet;
|
|
133
135
|
return sheet;
|
|
134
136
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { t as transformTag } from './renderer.js';
|
|
6
6
|
|
|
7
7
|
const mddCss = ":host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}:host,*,*::before,*::after{box-sizing:border-box}[hidden]{display:none !important}@media (prefers-reduced-motion: reduce){:host,*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}nano-mdd{display:grid;grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));gap:var(--nano-spacing-xl)}@media (width < 1200px){nano-mdd{gap:var(--nano-spacing-l2)}}nano-mdd .mdd__span-2{grid-column:span 2}nano-mdd[accordion]{display:block}";
|
|
@@ -47,11 +47,14 @@ const Mdd = /*@__PURE__*/ proxyCustomElement(class Mdd extends HTMLElement {
|
|
|
47
47
|
componentDidLoad() {
|
|
48
48
|
this.syncAccordionProp();
|
|
49
49
|
}
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, { key: '52a120df3f4a2e6f6864634567ee80261d709633' }, h("slot", { key: 'a3016952c44b518bd751ba04ecc8684d23f6a393' })));
|
|
52
|
+
}
|
|
50
53
|
static get watchers() { return {
|
|
51
54
|
"accordion": ["accordionChanged"]
|
|
52
55
|
}; }
|
|
53
56
|
static get style() { return mddCss; }
|
|
54
|
-
}, [
|
|
57
|
+
}, [260, "nano-mdd", {
|
|
55
58
|
"accordion": [516]
|
|
56
59
|
}, [[0, "nanoOpen", "onDetailsOpen"]], {
|
|
57
60
|
"accordion": ["accordionChanged"]
|
|
@@ -146,14 +146,14 @@ const MenuDrawer = /*@__PURE__*/ proxyCustomElement(class MenuDrawer extends HTM
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
render() {
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: '97332b71914156fa113b0c731df25df9f865efac', class: {
|
|
150
150
|
open: this.open,
|
|
151
151
|
'secondary-open': this.secondaryOpen,
|
|
152
152
|
hide: this.hide,
|
|
153
153
|
loading: this.isLoading,
|
|
154
154
|
'has-global-nav': !!this.globalNav,
|
|
155
155
|
'nano-menu-drawer': true,
|
|
156
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: '
|
|
156
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : null }, h("div", { key: 'dca06c232b7ea14a297e0dcb76af9aa1e4a8495d', ref: (div) => (this.containerDiv = div), class: "container" }, h("div", { key: 'cb7c8552ef987f62da0736843b1c3e831db67f24', class: `content-wrap ${this.secondaryOpen ? 'secondary-open' : ''}` }, h("nav", { key: '4693b1febfbb2c0bd151a6eb92601c9d187ad8d3', ref: (div) => (this.contentDiv = div), class: "content" }, h("div", { key: '08d0b661514899115b4e95e2e7f5e4b8c9b4b845', class: "head" }, h("button", { key: '614da037d05c06f21776cfa3bb3f83d4a4faf207', onClick: this.toggle, class: "collapse-btn" }, h("nano-icon", { key: 'd2f6562f2e0fc7fb548dec8ea8db15fbaf4f6775', name: "light/arrow-right-to-line" }), h("span", { key: 'd9dbe44c1d25920f482e7729fb29ccebef3fc6d0', class: "visually-hidden" }, "collapse / expand menu"))), h("slot", { key: '789d41eef9551811c368692c20b6aefef60c0fa0' }), this.slotCtrl.has('foot') && (h("div", { key: '43ae2bbf32447b820a96e990812e6e0542a31f78', class: "foot" }, h("slot", { key: '6cff47313f5465c38f8272638bae793648238c26', name: "foot" }))))))));
|
|
157
157
|
}
|
|
158
158
|
static get watchers() { return {
|
|
159
159
|
"open": ["openChange"]
|
|
@@ -54,8 +54,8 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class Rating extends HTMLElement
|
|
|
54
54
|
this.handleShowHideElements();
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
58
|
-
h("div", { key: '
|
|
57
|
+
return (h(Host, { key: 'e8c428a7adfceaa5a7e427ec824341e8b6867d7a', class: "nano-more-less" }, h("slot", { key: '1f77ecd99f6d9dc2717a25066bc5baa332781096', onSlotchange: () => this.handleShowHideElements() }), this.children?.length > this.maxToShow && [
|
|
58
|
+
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, ")"))),
|
|
59
59
|
!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, ")")))) : (''),
|
|
60
60
|
]));
|
|
61
61
|
}
|
|
@@ -194,20 +194,20 @@ const Rating = /*@__PURE__*/ proxyCustomElement(class Rating extends HTMLElement
|
|
|
194
194
|
else {
|
|
195
195
|
displayValue = this.isHovering ? this.hoverValue : this.value;
|
|
196
196
|
}
|
|
197
|
-
return (h(Host, { key: '
|
|
197
|
+
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: () => {
|
|
198
198
|
this.setFocus();
|
|
199
|
-
} }), h("div", { key: '
|
|
199
|
+
} }), h("div", { key: 'bf0b7849d8bed8732b172a12a45d287e1827f9a7', class: "rating-wrap" }, h("div", { key: '392f8d2c6cb93c7d0765371875ad2aa273d20874', dir: this.isRtl ? 'rtl' : null, ref: (el) => (this.rating = el), part: "base", class: {
|
|
200
200
|
rating: true,
|
|
201
201
|
'rating--readonly': this.readonly,
|
|
202
202
|
'rating--disabled': this.disabled,
|
|
203
|
-
}, "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: '
|
|
203
|
+
}, "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: {
|
|
204
204
|
rating__symbol: true,
|
|
205
205
|
'rating__symbol--hover': this.isHovering && Math.ceil(displayValue) === index + 1,
|
|
206
206
|
},
|
|
207
207
|
// Users can click the current value to clear the rating. When this happens, we set this.isHovering to
|
|
208
208
|
// false to prevent the hover state from confusing them as they move the mouse out of the control. This
|
|
209
209
|
// extra mouseenter will reinstate it if they happen to mouse over an adjacent symbol.
|
|
210
|
-
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: '
|
|
210
|
+
onMouseEnter: this.handleMouseEnter, innerHTML: this.symbol(index + 1) })))), h("span", { key: 'b7ee9e2ba25a05d701728e5280c00759a5c967d7', ref: (span) => (this.indicator = span), class: "rating__symbols rating__symbols--indicator", style: {
|
|
211
211
|
clip: this.clip(displayValue),
|
|
212
212
|
} }, counter.map((index) => (h("span", { class: {
|
|
213
213
|
rating__symbol: true,
|
|
@@ -39,7 +39,7 @@ const Slide = /*@__PURE__*/ proxyCustomElement(class Slide extends HTMLElement {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '4682e74f51d787ef7e2a5481b39f8c8e3a87fa1e', class: "nano-slide" }, h("slot", { key: '12d3315aeabf35aaf0c86c7239c0ef1cf19b60b5' })));
|
|
43
43
|
}
|
|
44
44
|
static get watchers() { return {
|
|
45
45
|
"ready": ["readyChange"]
|
|
@@ -730,7 +730,7 @@ const Sortable = /*@__PURE__*/ proxyCustomElement(class Sortable extends HTMLEle
|
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
render() {
|
|
733
|
-
return (h(Host, { key: '
|
|
733
|
+
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' })));
|
|
734
734
|
}
|
|
735
735
|
static get watchers() { return {
|
|
736
736
|
"itemSelector": ["handleItemSelectorChange"],
|
|
@@ -86,7 +86,7 @@ const NanoStepAccordion$1 = /*@__PURE__*/ proxyCustomElement(class NanoStepAccor
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h("nano-accordion", { key: '
|
|
89
|
+
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: {
|
|
90
90
|
step: true,
|
|
91
91
|
'step--active': index === this.activeStep,
|
|
92
92
|
'step--complete': step.complete,
|
|
@@ -111,10 +111,10 @@ const NanoStepBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class NanoStepBrea
|
|
|
111
111
|
};
|
|
112
112
|
render() {
|
|
113
113
|
const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
|
|
114
|
-
return (h(Host, { key: '
|
|
114
|
+
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: {
|
|
115
115
|
'--value': '' + (this.activeStep + 1),
|
|
116
116
|
'--max': '' + this.steps.length,
|
|
117
|
-
} }, h("span", { key: '
|
|
117
|
+
} }, 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: {
|
|
118
118
|
'step-item-mobile': true,
|
|
119
119
|
'step-item-mobile step-item--active': index === this.activeStep,
|
|
120
120
|
'step-item-mobile step-item--complete': step.complete,
|
|
@@ -24,10 +24,10 @@ const NanoTabContent$1 = /*@__PURE__*/ proxyCustomElement(class NanoTabContent e
|
|
|
24
24
|
requestAnimationFrame(() => (this.ready = true));
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
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: {
|
|
28
28
|
ready: this.ready,
|
|
29
29
|
'nano-tab-content': true,
|
|
30
|
-
} }, h("div", { key: '
|
|
30
|
+
} }, h("div", { key: '74093ccac8983cba93c5bff5f06da2ab4ade4eed', part: "base", class: "nano-tab-content" }, h("slot", { key: '9c0922b3463cec891cf542ebf2232c9f4870845d' }))));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return tabContentCss; }
|
|
33
33
|
}, [257, "nano-tab-content", {
|
|
@@ -54,12 +54,12 @@ const NanoTab$1 = /*@__PURE__*/ proxyCustomElement(class NanoTab extends HTMLEle
|
|
|
54
54
|
};
|
|
55
55
|
render() {
|
|
56
56
|
const Tag = this.href ? 'a' : 'div';
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
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: {
|
|
58
58
|
tab: true,
|
|
59
59
|
'tab--active': this.active,
|
|
60
60
|
'tab--disabled': this.disabled,
|
|
61
61
|
'tab--closable': this.closable,
|
|
62
|
-
}, href: this.href, target: this.target }, h("slot", { key: '
|
|
62
|
+
}, 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" })))));
|
|
63
63
|
}
|
|
64
64
|
static get style() { return tabCss; }
|
|
65
65
|
}, [257, "nano-tab", {
|
|
@@ -233,10 +233,10 @@ const NanoTable$1 = /*@__PURE__*/ proxyCustomElement(class NanoTable extends HTM
|
|
|
233
233
|
this.cleanUpObservers();
|
|
234
234
|
}
|
|
235
235
|
render() {
|
|
236
|
-
return (h(Host, { key: '
|
|
236
|
+
return (h(Host, { key: 'ebbfd8421e422255664184552b1f0eda8072fd89', class: {
|
|
237
237
|
'nano-table': true,
|
|
238
238
|
'nano-table--props-ready': this.propsReady,
|
|
239
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
|
239
|
+
} }, 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' })));
|
|
240
240
|
}
|
|
241
241
|
static get watchers() { return {
|
|
242
242
|
"compact": ["handleCompactChange"],
|
|
@@ -228,13 +228,13 @@ const ResizeObserve = /*@__PURE__*/ proxyCustomElement(class ResizeObserve exten
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
render() {
|
|
231
|
-
return (h(Host, { key: '
|
|
231
|
+
return (h(Host, { key: '5c2c1a5a1187493cb89fe5c581d5b4b1250f5009', class: {
|
|
232
232
|
'nano-resize-observe': true,
|
|
233
233
|
'content-fit-x': this.contentFitX,
|
|
234
234
|
'content-fit-y': this.contentFitY,
|
|
235
235
|
'content-nofit-x': this.contentFitX === false,
|
|
236
236
|
'content-nofit-y': this.contentFitY === false,
|
|
237
|
-
} }, h("slot", { key: '
|
|
237
|
+
} }, h("slot", { key: '24c3b65283fe59e533b68618188a4ff2dedb1b91' }), !!this.notifyContentFit &&
|
|
238
238
|
(this.contentFitX !== null || this.contentFitY !== null) && [
|
|
239
239
|
this.contentFitX ? (h("slot", { name: "content-fit-x" })) : (h("slot", { name: "content-nofit-x" })),
|
|
240
240
|
this.contentFitY ? (h("slot", { name: "content-fit-y" })) : (h("slot", { name: "content-nofit-y" })),
|
|
@@ -711,30 +711,30 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
711
711
|
disabled,
|
|
712
712
|
clearControl: this.clearable,
|
|
713
713
|
}))(this);
|
|
714
|
-
return (h(Host, { key: '
|
|
714
|
+
return (h(Host, { key: 'e16c3ad617a9efd302fccd9f3f66a989e8bfb2d0', type: this.multiple ? 'select-multiple' : 'select-one', "aria-disabled": this.disabled ? 'true' : null, class: {
|
|
715
715
|
'has-value': !!this.value.length || !!this.inputSearchVal.length,
|
|
716
716
|
'has-focus': this.hasFocus,
|
|
717
717
|
'is-invalid': this._invalid === true,
|
|
718
718
|
'is-valid': this._invalid === false,
|
|
719
719
|
'nano-select': true,
|
|
720
|
-
} }, h(FormControlWrap, { key: '
|
|
720
|
+
} }, h(FormControlWrap, { key: '3b6f2796221b941871b5e42e3345cc668b1792a9', ...wrapOptions, class: {
|
|
721
721
|
'has-error': !!this.errorMessage &&
|
|
722
722
|
this.showInlineError &&
|
|
723
723
|
this._invalid === true,
|
|
724
724
|
'has-helper': this.hasHelperSlot,
|
|
725
725
|
'is-open': this.hasOpened,
|
|
726
726
|
masked: this.mask,
|
|
727
|
-
} }, h(FormControl, { key: '
|
|
728
|
-
this.mask && (h("div", { key: '
|
|
729
|
-
h("input", { key: '
|
|
730
|
-
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: '
|
|
727
|
+
} }, h(FormControl, { key: 'f15f55785786c1831ea1983a76ac44e3107b12c6', ...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: '33bbe0bf20b03138fbe5edc597dcae69d2c3c2f8', class: "select__multi-wrap select" }, this.multipleValues(labelId, moreId, helperEndId))), !this.multiple && [
|
|
728
|
+
this.mask && (h("div", { key: 'ce7ad6a1d92ac5ee1fe890f4d406c38d9e6c3e7b', class: "select__mask" }, this.getLabel(this.value))),
|
|
729
|
+
h("input", { key: '71dbac3723511da106d0ec4c2c1dca15861fb942', 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 }),
|
|
730
|
+
])), !this.readonly && !this.disabled && (h("nano-datalist", { key: 'eedb7c8d2e72177ca794ca2c87c9272c1b0747fc', ref: (el) => (this.datalist = el), selected: this.valArray, type: this.multiple ? 'selectMulti' : 'select', options: this._options.length ? this._options : undefined, onNanoDeselect: (e) => {
|
|
731
731
|
e.preventDefault();
|
|
732
732
|
this.removeValue(e.detail.value);
|
|
733
733
|
}, onNanoOptionsUpdated: this.setOptions, onNanoSelect: this.setValue,
|
|
734
734
|
// @ts-expect-error - this bubbles from the nano-dropdown
|
|
735
735
|
onNanoShow: () => (this.hasOpened = true), onNanoHide: () => (this.hasOpened = false) }, this.allowCustomValues &&
|
|
736
736
|
this.multiple &&
|
|
737
|
-
!!this.inputSearchVal && (h("nano-option", { key: '
|
|
737
|
+
!!this.inputSearchVal && (h("nano-option", { key: '1042e4403ae2e187f19d179cb9abf1641e381e53', slot: "list-top", value: this.inputSearchVal, selected: false, label: this.inputSearchVal, onNanoSelect: () => this.inputCtrl.focus() }, h("span", { key: '2c3fcf73eb8d5a7a7894567a7069d3a87deaf82e', slot: "check-icon" }), "Add '", this.inputSearchVal, "'")), h("slot", { key: '9b2ae27ac6a6c04207495d378c1b4493be38817a' }))), h("select", { key: '13a280aa59b88260a4677d2387c69dff8283610f', 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 &&
|
|
738
738
|
this.valArray.map((val) => {
|
|
739
739
|
return (h("option", { value: val, selected: true }, val));
|
|
740
740
|
}), !this.allowCustomValues &&
|
|
@@ -2965,15 +2965,15 @@ const Slides = /*@__PURE__*/ proxyCustomElement(class Slides extends HTMLElement
|
|
|
2965
2965
|
this.destroyflickity();
|
|
2966
2966
|
}
|
|
2967
2967
|
render() {
|
|
2968
|
-
return (h(Host, { key: '
|
|
2968
|
+
return (h(Host, { key: '42548f40ddb58bd17ba72b0f4d8eae4e80830896', class: "nano-slides" }, h("div", { key: 'd8f2236b6bca970b42b3d1d8f9ab0a6b109d36a1', class: {
|
|
2969
2969
|
slideshow: true,
|
|
2970
2970
|
ready: this.ready,
|
|
2971
2971
|
'not-ready': !this.ready,
|
|
2972
|
-
}, part: "base" }, h("div", { key: '
|
|
2972
|
+
}, part: "base" }, h("div", { key: '8fbdcaad01037ae236438aedb5a50fcc00f44830', ref: (div) => (this.flickityEl = div), class: {
|
|
2973
2973
|
'flickity-container': true,
|
|
2974
2974
|
'slides-ready': this.slidesReady,
|
|
2975
2975
|
'slides-not-ready': !this.slidesReady,
|
|
2976
|
-
}, part: "slide-container" }, h("slot", { key: '
|
|
2976
|
+
}, 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: {
|
|
2977
2977
|
'pagination-btn': true,
|
|
2978
2978
|
'pagination-btn--active': this.isActive(index),
|
|
2979
2979
|
'is-selected': this.isActive(index),
|
|
@@ -2982,8 +2982,8 @@ const Slides = /*@__PURE__*/ proxyCustomElement(class Slides extends HTMLElement
|
|
|
2982
2982
|
if (this.isActive(index))
|
|
2983
2983
|
return;
|
|
2984
2984
|
this.slideTo(index);
|
|
2985
|
-
} }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))), this.navbtns && (h("button", { key: '
|
|
2986
|
-
this.iCurrentSlide + 1 && !this.options.wrapAround }, h("span", { key: '
|
|
2985
|
+
} }, 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 ===
|
|
2986
|
+
this.iCurrentSlide + 1 && !this.options.wrapAround }, h("span", { key: 'de509817e85cff853beba46b0ae5d19e14b8f81d', class: "button-icon", part: "navigation-icon" }, h("slot", { key: '89ffb6c06f1b03feb2065808222c14be70b66949', name: "next-icon" })))))))));
|
|
2987
2987
|
}
|
|
2988
2988
|
static get watchers() { return {
|
|
2989
2989
|
"options": ["optionsChanged"],
|
|
@@ -607,12 +607,12 @@ const Sticker = /*@__PURE__*/ proxyCustomElement(class Sticker extends HTMLEleme
|
|
|
607
607
|
this.hasBootstrapped = false;
|
|
608
608
|
}
|
|
609
609
|
render() {
|
|
610
|
-
return (h(Host, { key: '
|
|
610
|
+
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: {
|
|
611
611
|
sticker: true,
|
|
612
612
|
sticky: this.isRootSticker && this.isSticky,
|
|
613
613
|
stuck: this.isStuck && this.isRootSticker && this.isSticky,
|
|
614
614
|
hide: this.isRootSticker && this.hide && this.isStuck,
|
|
615
|
-
}, ref: (div) => (this.sticker = div) }, h("div", { key: '
|
|
615
|
+
}, ref: (div) => (this.sticker = div) }, h("div", { key: '2e9e03afcef0357ada094e4518c9bfd84947e676', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '21c51e2ea322f7d39528633072d93cfe8ebb94de' })))));
|
|
616
616
|
}
|
|
617
617
|
static get watchers() { return {
|
|
618
618
|
"trigger": ["updateTriggerOffset"],
|
package/dist/components/style.js
CHANGED
|
@@ -124,11 +124,13 @@ async function buildGlobalStylesheetFromHrefs(hrefs) {
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
}));
|
|
127
|
-
// keep the original document order
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
// keep the original document order and combine every matching stylesheet -
|
|
128
|
+
// the nano styles are split across multiple files (e.g. core.css, light.css,
|
|
129
|
+
// dark.css), so we must adopt all of them, not just the first match
|
|
130
|
+
const matchingCss = cssTexts.filter((text) => !!text && cssTextContainsNanoMarker(text));
|
|
131
|
+
if (matchingCss.length) {
|
|
130
132
|
const sheet = new CSSStyleSheet();
|
|
131
|
-
await sheet.replace(
|
|
133
|
+
await sheet.replace(matchingCss.join('\n'));
|
|
132
134
|
cachedCSStylesheet = sheet;
|
|
133
135
|
return sheet;
|
|
134
136
|
}
|
|
@@ -230,10 +230,10 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends HTMLEleme
|
|
|
230
230
|
this.popover.destroy();
|
|
231
231
|
}
|
|
232
232
|
render() {
|
|
233
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: '085c79dbd9df2889a6aa7d88c41646e5a5a99fa9', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '8936b4cbb36ae5d085ca6531730b3ca698896186', onSlotchange: this.handleSlotChange }), h("div", { key: 'b0cbe2bd129018ae3694fec63d2e5699ad4bd7ff', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'a3bacf2ca0ca83af15cebfe3ce45132c66bfe348', part: "base", ref: (el) => (this.tooltip = el), class: {
|
|
234
234
|
tooltip: true,
|
|
235
235
|
'tooltip--open': this.open,
|
|
236
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '
|
|
236
|
+
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, h("slot", { key: '70b83683ad7457bd801b1853683047da757305cc', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '2e61880754b5165c17f6ce93a8b1a62266109c09', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
|
237
237
|
}
|
|
238
238
|
static get watchers() { return {
|
|
239
239
|
"content": ["setLabel"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
|
-
import { F as Flickity, u as utils } from './nano-slides-
|
|
4
|
+
import { F as Flickity, u as utils } from './nano-slides-C0Hxa7Aa.js';
|
|
5
5
|
import './index-RXFO3HxS.js';
|
|
6
6
|
import './renderer-B_wACs4w.js';
|
|
7
7
|
|