@nanoporetech-digital/components 8.12.2 → 8.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{fade-CaQNh008.js → fade-C7mRKYJR.js} +1 -1
- package/dist/cjs/{fullscreen-CYmWUVa6.js → fullscreen-C0vzuH0_.js} +1 -1
- package/dist/cjs/{lazyload-CDp0tl8u.js → lazyload-Cqdwd4el.js} +1 -1
- package/dist/cjs/{nano-slides-lMA8e6L6.js → nano-slides-DFBGKfHj.js} +17 -35
- package/dist/cjs/nano-slides.cjs.entry.js +1 -1
- package/dist/cjs/nano-table.cjs.entry.js +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/slides/slides.js +15 -34
- package/dist/collection/components/table/table.js +3 -3
- package/dist/components/nano-table.js +3 -3
- package/dist/components/slides.js +15 -34
- package/dist/esm/{fade-Brdw1NLw.js → fade-OXhXz-Sa.js} +1 -1
- package/dist/esm/{fullscreen-DeZTkFNA.js → fullscreen-CsGitfqH.js} +1 -1
- package/dist/esm/{lazyload-D68gi5uV.js → lazyload-DuEV3IVe.js} +1 -1
- package/dist/esm/{nano-slides-DKkSSmWQ.js → nano-slides-Dtmc0c07.js} +17 -35
- package/dist/esm/nano-slides.entry.js +1 -1
- package/dist/esm/nano-table.entry.js +2 -2
- package/dist/nano-components/{fade-Brdw1NLw.js → fade-OXhXz-Sa.js} +1 -1
- package/dist/nano-components/{fullscreen-DeZTkFNA.js → fullscreen-CsGitfqH.js} +1 -1
- package/dist/nano-components/{lazyload-D68gi5uV.js → lazyload-DuEV3IVe.js} +1 -1
- package/dist/nano-components/{nano-slides-DKkSSmWQ.js → nano-slides-Dtmc0c07.js} +3 -3
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/types/components/slides/slides.d.ts +0 -1
- package/docs-json.json +2 -2
- package/hydrate/index.js +16 -32
- package/hydrate/index.mjs +16 -32
- package/package.json +2 -2
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{8qhywLzS → vSRqAuzi}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
package/hydrate/index.js
CHANGED
@@ -24604,28 +24604,15 @@ class NanoTable {
|
|
24604
24604
|
this.handleHideCaptionChange();
|
24605
24605
|
}
|
24606
24606
|
componentDidRender() {
|
24607
|
-
if (this.scrollable !== false && this.table) {
|
24608
|
-
// a hack. Revise in-future.
|
24609
|
-
// the table is always rendered in the light DOM - so it should always be visible, but
|
24610
|
-
// if we conditionally render the slot within the masked overflow there's quite a noticeable
|
24611
|
-
// CLS as it moves before the nano-masked-overflow is bootstrapped.
|
24612
|
-
customElements
|
24613
|
-
.whenDefined(transformTag('nano-masked-overflow'))
|
24614
|
-
.then(() => {
|
24615
|
-
this.host
|
24616
|
-
.querySelector('.nano-table__overflow')
|
24617
|
-
?.appendChild(this.table);
|
24618
|
-
});
|
24619
|
-
}
|
24620
24607
|
}
|
24621
24608
|
disconnectedCallback() {
|
24622
24609
|
this.cleanUpObservers();
|
24623
24610
|
}
|
24624
24611
|
render() {
|
24625
|
-
return (h(Host, { key: '
|
24612
|
+
return (h(Host, { key: 'bd86de55fe8bc0259cf6e7e112c4bb48ad190761', class: {
|
24626
24613
|
'nano-table': true,
|
24627
24614
|
'nano-table--props-ready': this.propsReady,
|
24628
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
24615
|
+
} }, this.scrollable && (h("nano-masked-overflow", { key: '7002c33f0368801339f718e191922cb03b28ce08', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '60b7c9a2d7a6bde7ffcde6ce62b0477790601cf5', class: "nano-table__overflow" }))), h("slot", { key: '3d4fb01789dd5c1b0a2b3872534e796e5182d579' })));
|
24629
24616
|
}
|
24630
24617
|
static get watchers() { return {
|
24631
24618
|
"compact": ["handleCompactChange"],
|
@@ -29636,7 +29623,6 @@ class Slides {
|
|
29636
29623
|
}
|
29637
29624
|
flickityEl;
|
29638
29625
|
flickityReady = false;
|
29639
|
-
mutationO;
|
29640
29626
|
resizeO;
|
29641
29627
|
readyflickity;
|
29642
29628
|
flickity = new Promise((resolve) => {
|
@@ -29700,7 +29686,7 @@ class Slides {
|
|
29700
29686
|
async animationChange(_, oldAnim) {
|
29701
29687
|
const [flkty, slides] = await Promise.all([
|
29702
29688
|
this.getflickity(),
|
29703
|
-
this.waitForSlides(
|
29689
|
+
this.waitForSlides(),
|
29704
29690
|
]);
|
29705
29691
|
// clear old stuff
|
29706
29692
|
slides.forEach((slide) => {
|
@@ -29790,9 +29776,11 @@ class Slides {
|
|
29790
29776
|
* child slides.
|
29791
29777
|
*/
|
29792
29778
|
async update() {
|
29779
|
+
if (!this.didInit)
|
29780
|
+
return;
|
29793
29781
|
const [flickity] = await Promise.all([
|
29794
29782
|
this.getflickity(),
|
29795
|
-
this.waitForSlides(
|
29783
|
+
this.waitForSlides(),
|
29796
29784
|
]);
|
29797
29785
|
this.childrenEles = this.host.querySelectorAll(`${transformTag('nano-slide')} > *`);
|
29798
29786
|
flickity.reloadCells();
|
@@ -29980,7 +29968,7 @@ class Slides {
|
|
29980
29968
|
const finalOptions = this.normalizeOptions();
|
29981
29969
|
await this.loadFlickityModules(finalOptions);
|
29982
29970
|
// init flickity core
|
29983
|
-
await this.waitForSlides(
|
29971
|
+
await this.waitForSlides();
|
29984
29972
|
this.flickityEl =
|
29985
29973
|
this.flickityEl || this._getRoot().querySelector('.flickity-container');
|
29986
29974
|
if (!this.flickityEl)
|
@@ -30070,8 +30058,8 @@ class Slides {
|
|
30070
30058
|
// @ts-expect-error - merged options don't quite match the flickity options
|
30071
30059
|
return { ...flickityOptions, ...mergedEventOptions, ...this.options };
|
30072
30060
|
}
|
30073
|
-
waitForSlides = (
|
30074
|
-
const allSlides = Array.from(host.querySelectorAll(transformTag('nano-slide')));
|
30061
|
+
waitForSlides = () => {
|
30062
|
+
const allSlides = Array.from(this.host.querySelectorAll(transformTag('nano-slide')));
|
30075
30063
|
this.slideCount = allSlides.length;
|
30076
30064
|
let toLoadSlides = allSlides.filter((ele) => !ele.ready);
|
30077
30065
|
if (!toLoadSlides.length)
|
@@ -30081,13 +30069,13 @@ class Slides {
|
|
30081
30069
|
toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
|
30082
30070
|
if (!toLoadSlides.length) {
|
30083
30071
|
resolve(allSlides);
|
30084
|
-
host.removeEventListener('nanoSlideReady', slideResolver);
|
30085
|
-
host.removeEventListener('nano-slide-ready', slideResolver);
|
30072
|
+
this.host.removeEventListener('nanoSlideReady', slideResolver);
|
30073
|
+
this.host.removeEventListener('nano-slide-ready', slideResolver);
|
30086
30074
|
}
|
30087
30075
|
};
|
30088
|
-
host.addEventListener('nanoSlideReady', slideResolver);
|
30076
|
+
this.host.addEventListener('nanoSlideReady', slideResolver);
|
30089
30077
|
// fallback for vue who can't handle camelcase event names
|
30090
|
-
host.addEventListener('nano-slide-ready', slideResolver);
|
30078
|
+
this.host.addEventListener('nano-slide-ready', slideResolver);
|
30091
30079
|
});
|
30092
30080
|
};
|
30093
30081
|
componentDidLoad() {
|
@@ -30098,10 +30086,6 @@ class Slides {
|
|
30098
30086
|
}
|
30099
30087
|
}
|
30100
30088
|
disconnectedCallback() {
|
30101
|
-
if (this.mutationO) {
|
30102
|
-
this.mutationO.disconnect();
|
30103
|
-
this.mutationO = undefined;
|
30104
|
-
}
|
30105
30089
|
if (this.resizeO) {
|
30106
30090
|
this.resizeO.disconnect();
|
30107
30091
|
this.resizeO = undefined;
|
@@ -30109,15 +30093,15 @@ class Slides {
|
|
30109
30093
|
this.destroyflickity();
|
30110
30094
|
}
|
30111
30095
|
render() {
|
30112
|
-
return (h(Host, { key: '
|
30096
|
+
return (h(Host, { key: '87cf8ae3ff3ded83f82ef3bfc5d76381afb967e0', class: "nano-slides" }, h("div", { key: 'af12496fc219421dcf416607a7c5cc9b0e59968e', class: {
|
30113
30097
|
slideshow: true,
|
30114
30098
|
ready: this.ready,
|
30115
30099
|
'not-ready': !this.ready,
|
30116
|
-
}, part: "base" }, h("div", { key: '
|
30100
|
+
}, part: "base" }, h("div", { key: 'c5995f58b334a741e4c7930be1354d4814dd436b', ref: (div) => (this.flickityEl = div), class: {
|
30117
30101
|
'flickity-container': true,
|
30118
30102
|
'slides-ready': this.slidesReady,
|
30119
30103
|
'slides-not-ready': !this.slidesReady,
|
30120
|
-
}, part: "slide-container" }, h("slot", { key: '
|
30104
|
+
}, part: "slide-container" }, h("slot", { key: 'f4b17d46db05d7b23ff79501cc435b2b6beadcb2', onSlotchange: () => this.update() })), h("div", { key: '483ab2edd42b87d48bcc0793cbe5c21efdd1a4d3', class: "ui-extras" }, h("slot", { key: '8fc3e7b78980381d52817c0faa80efa5439a14a6', name: "ui" })), this.slideCount > 1 && this.pager && (h("div", { key: '4e7c781d179dda4d43356ae9a5892d913d17b43c', class: "pagination flickity-page-dots", part: "pagination" }, Array.from({ length: this.slideCount }).map((_, index) => (h("button", { part: "pagination-item--active", key: index, class: {
|
30121
30105
|
'pagination-btn': true,
|
30122
30106
|
'pagination-btn--active': this.isActive(index),
|
30123
30107
|
'is-selected': this.isActive(index),
|
package/hydrate/index.mjs
CHANGED
@@ -24602,28 +24602,15 @@ class NanoTable {
|
|
24602
24602
|
this.handleHideCaptionChange();
|
24603
24603
|
}
|
24604
24604
|
componentDidRender() {
|
24605
|
-
if (this.scrollable !== false && this.table) {
|
24606
|
-
// a hack. Revise in-future.
|
24607
|
-
// the table is always rendered in the light DOM - so it should always be visible, but
|
24608
|
-
// if we conditionally render the slot within the masked overflow there's quite a noticeable
|
24609
|
-
// CLS as it moves before the nano-masked-overflow is bootstrapped.
|
24610
|
-
customElements
|
24611
|
-
.whenDefined(transformTag('nano-masked-overflow'))
|
24612
|
-
.then(() => {
|
24613
|
-
this.host
|
24614
|
-
.querySelector('.nano-table__overflow')
|
24615
|
-
?.appendChild(this.table);
|
24616
|
-
});
|
24617
|
-
}
|
24618
24605
|
}
|
24619
24606
|
disconnectedCallback() {
|
24620
24607
|
this.cleanUpObservers();
|
24621
24608
|
}
|
24622
24609
|
render() {
|
24623
|
-
return (h(Host, { key: '
|
24610
|
+
return (h(Host, { key: 'bd86de55fe8bc0259cf6e7e112c4bb48ad190761', class: {
|
24624
24611
|
'nano-table': true,
|
24625
24612
|
'nano-table--props-ready': this.propsReady,
|
24626
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
24613
|
+
} }, this.scrollable && (h("nano-masked-overflow", { key: '7002c33f0368801339f718e191922cb03b28ce08', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '60b7c9a2d7a6bde7ffcde6ce62b0477790601cf5', class: "nano-table__overflow" }))), h("slot", { key: '3d4fb01789dd5c1b0a2b3872534e796e5182d579' })));
|
24627
24614
|
}
|
24628
24615
|
static get watchers() { return {
|
24629
24616
|
"compact": ["handleCompactChange"],
|
@@ -29634,7 +29621,6 @@ class Slides {
|
|
29634
29621
|
}
|
29635
29622
|
flickityEl;
|
29636
29623
|
flickityReady = false;
|
29637
|
-
mutationO;
|
29638
29624
|
resizeO;
|
29639
29625
|
readyflickity;
|
29640
29626
|
flickity = new Promise((resolve) => {
|
@@ -29698,7 +29684,7 @@ class Slides {
|
|
29698
29684
|
async animationChange(_, oldAnim) {
|
29699
29685
|
const [flkty, slides] = await Promise.all([
|
29700
29686
|
this.getflickity(),
|
29701
|
-
this.waitForSlides(
|
29687
|
+
this.waitForSlides(),
|
29702
29688
|
]);
|
29703
29689
|
// clear old stuff
|
29704
29690
|
slides.forEach((slide) => {
|
@@ -29788,9 +29774,11 @@ class Slides {
|
|
29788
29774
|
* child slides.
|
29789
29775
|
*/
|
29790
29776
|
async update() {
|
29777
|
+
if (!this.didInit)
|
29778
|
+
return;
|
29791
29779
|
const [flickity] = await Promise.all([
|
29792
29780
|
this.getflickity(),
|
29793
|
-
this.waitForSlides(
|
29781
|
+
this.waitForSlides(),
|
29794
29782
|
]);
|
29795
29783
|
this.childrenEles = this.host.querySelectorAll(`${transformTag('nano-slide')} > *`);
|
29796
29784
|
flickity.reloadCells();
|
@@ -29978,7 +29966,7 @@ class Slides {
|
|
29978
29966
|
const finalOptions = this.normalizeOptions();
|
29979
29967
|
await this.loadFlickityModules(finalOptions);
|
29980
29968
|
// init flickity core
|
29981
|
-
await this.waitForSlides(
|
29969
|
+
await this.waitForSlides();
|
29982
29970
|
this.flickityEl =
|
29983
29971
|
this.flickityEl || this._getRoot().querySelector('.flickity-container');
|
29984
29972
|
if (!this.flickityEl)
|
@@ -30068,8 +30056,8 @@ class Slides {
|
|
30068
30056
|
// @ts-expect-error - merged options don't quite match the flickity options
|
30069
30057
|
return { ...flickityOptions, ...mergedEventOptions, ...this.options };
|
30070
30058
|
}
|
30071
|
-
waitForSlides = (
|
30072
|
-
const allSlides = Array.from(host.querySelectorAll(transformTag('nano-slide')));
|
30059
|
+
waitForSlides = () => {
|
30060
|
+
const allSlides = Array.from(this.host.querySelectorAll(transformTag('nano-slide')));
|
30073
30061
|
this.slideCount = allSlides.length;
|
30074
30062
|
let toLoadSlides = allSlides.filter((ele) => !ele.ready);
|
30075
30063
|
if (!toLoadSlides.length)
|
@@ -30079,13 +30067,13 @@ class Slides {
|
|
30079
30067
|
toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
|
30080
30068
|
if (!toLoadSlides.length) {
|
30081
30069
|
resolve(allSlides);
|
30082
|
-
host.removeEventListener('nanoSlideReady', slideResolver);
|
30083
|
-
host.removeEventListener('nano-slide-ready', slideResolver);
|
30070
|
+
this.host.removeEventListener('nanoSlideReady', slideResolver);
|
30071
|
+
this.host.removeEventListener('nano-slide-ready', slideResolver);
|
30084
30072
|
}
|
30085
30073
|
};
|
30086
|
-
host.addEventListener('nanoSlideReady', slideResolver);
|
30074
|
+
this.host.addEventListener('nanoSlideReady', slideResolver);
|
30087
30075
|
// fallback for vue who can't handle camelcase event names
|
30088
|
-
host.addEventListener('nano-slide-ready', slideResolver);
|
30076
|
+
this.host.addEventListener('nano-slide-ready', slideResolver);
|
30089
30077
|
});
|
30090
30078
|
};
|
30091
30079
|
componentDidLoad() {
|
@@ -30096,10 +30084,6 @@ class Slides {
|
|
30096
30084
|
}
|
30097
30085
|
}
|
30098
30086
|
disconnectedCallback() {
|
30099
|
-
if (this.mutationO) {
|
30100
|
-
this.mutationO.disconnect();
|
30101
|
-
this.mutationO = undefined;
|
30102
|
-
}
|
30103
30087
|
if (this.resizeO) {
|
30104
30088
|
this.resizeO.disconnect();
|
30105
30089
|
this.resizeO = undefined;
|
@@ -30107,15 +30091,15 @@ class Slides {
|
|
30107
30091
|
this.destroyflickity();
|
30108
30092
|
}
|
30109
30093
|
render() {
|
30110
|
-
return (h(Host, { key: '
|
30094
|
+
return (h(Host, { key: '87cf8ae3ff3ded83f82ef3bfc5d76381afb967e0', class: "nano-slides" }, h("div", { key: 'af12496fc219421dcf416607a7c5cc9b0e59968e', class: {
|
30111
30095
|
slideshow: true,
|
30112
30096
|
ready: this.ready,
|
30113
30097
|
'not-ready': !this.ready,
|
30114
|
-
}, part: "base" }, h("div", { key: '
|
30098
|
+
}, part: "base" }, h("div", { key: 'c5995f58b334a741e4c7930be1354d4814dd436b', ref: (div) => (this.flickityEl = div), class: {
|
30115
30099
|
'flickity-container': true,
|
30116
30100
|
'slides-ready': this.slidesReady,
|
30117
30101
|
'slides-not-ready': !this.slidesReady,
|
30118
|
-
}, part: "slide-container" }, h("slot", { key: '
|
30102
|
+
}, part: "slide-container" }, h("slot", { key: 'f4b17d46db05d7b23ff79501cc435b2b6beadcb2', onSlotchange: () => this.update() })), h("div", { key: '483ab2edd42b87d48bcc0793cbe5c21efdd1a4d3', class: "ui-extras" }, h("slot", { key: '8fc3e7b78980381d52817c0faa80efa5439a14a6', name: "ui" })), this.slideCount > 1 && this.pager && (h("div", { key: '4e7c781d179dda4d43356ae9a5892d913d17b43c', class: "pagination flickity-page-dots", part: "pagination" }, Array.from({ length: this.slideCount }).map((_, index) => (h("button", { part: "pagination-item--active", key: index, class: {
|
30119
30103
|
'pagination-btn': true,
|
30120
30104
|
'pagination-btn--active': this.isActive(index),
|
30121
30105
|
'is-selected': this.isActive(index),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "8.12.
|
3
|
+
"version": "8.12.3",
|
4
4
|
"sideEffects": false,
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"smart-array-filter": "^4.0.2",
|
61
61
|
"stencil-wormhole": "3.2.1",
|
62
62
|
"tyqs": "^0.1.3",
|
63
|
-
"@nanoporetech-digital/style": "8.12.
|
63
|
+
"@nanoporetech-digital/style": "8.12.3"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
66
|
"@algolia/client-search": "^4.22.1",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|