@nanoporetech-digital/components 8.0.0-alpha.12 → 8.0.0-alpha.13
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-QCWQMt6E.js → fade-CiX74e7g.js} +1 -1
- package/dist/cjs/{fullscreen-BYiPBVB-.js → fullscreen-CRDiLBHG.js} +1 -1
- package/dist/cjs/{lazyload-CE9AflwC.js → lazyload-DQBOwjop.js} +1 -1
- package/dist/cjs/{nano-data-table-Bt1hEvrv.js → nano-data-table-DpoWsfe-.js} +4 -3
- package/dist/cjs/nano-data-table.cjs.entry.js +1 -1
- package/dist/cjs/nano-grid_2.cjs.entry.js +3 -3
- package/dist/cjs/{nano-slides-C79dDqp3.js → nano-slides-CEgnF-Y8.js} +14 -11
- package/dist/cjs/nano-slides.cjs.entry.js +1 -1
- package/dist/cjs/{page-dots-S-JrbRKH.js → page-dots-KutnmYpQ.js} +1 -1
- package/dist/cjs/{table.worker-DJPRsl4W.js → table.worker-iOdjCdrO.js} +1 -1
- package/dist/collection/components/data-table/table.pin-service.js +3 -2
- package/dist/collection/components/img/img.css +1 -1
- package/dist/collection/components/img/img.js +8 -4
- package/dist/collection/components/slides/slides.js +10 -7
- package/dist/collection/components/tabs/tab-group.css +8 -8
- package/dist/collection/components/tabs/tab.css +6 -6
- package/dist/components/img.js +3 -3
- package/dist/components/nano-data-table.js +3 -2
- package/dist/components/slides.js +10 -7
- package/dist/esm/{fade-BwtMNpw7.js → fade-DJjEJ3OV.js} +1 -1
- package/dist/esm/{fullscreen-CLTOaIQ8.js → fullscreen-C0Rg1tXP.js} +1 -1
- package/dist/esm/{lazyload-CBLyQMEG.js → lazyload-BGGkN269.js} +1 -1
- package/dist/esm/{nano-data-table-BqsFe2Ik.js → nano-data-table-TfPKf5LE.js} +4 -3
- package/dist/esm/nano-data-table.entry.js +1 -1
- package/dist/esm/nano-grid_2.entry.js +3 -3
- package/dist/esm/{nano-slides-DEqstC8u.js → nano-slides-B1zM-u4Y.js} +14 -11
- package/dist/esm/nano-slides.entry.js +1 -1
- package/dist/esm/{page-dots-2yJYdWP9.js → page-dots-D9sLGqee.js} +1 -1
- package/dist/esm/{table.worker-BJVVUKdP.js → table.worker-Dq_pppel.js} +1 -1
- package/dist/nano-components/{fade-BwtMNpw7.js → fade-DJjEJ3OV.js} +1 -1
- package/dist/nano-components/{fullscreen-CLTOaIQ8.js → fullscreen-C0Rg1tXP.js} +1 -1
- package/dist/nano-components/{lazyload-CBLyQMEG.js → lazyload-BGGkN269.js} +1 -1
- package/dist/nano-components/nano-data-table-TfPKf5LE.js +4 -0
- package/dist/nano-components/nano-data-table.entry.js +1 -1
- package/dist/nano-components/nano-grid_2.entry.js +1 -1
- package/dist/nano-components/{nano-slides-DEqstC8u.js → nano-slides-B1zM-u4Y.js} +3 -3
- package/dist/nano-components/nano-slides.entry.js +1 -1
- package/dist/nano-components/{page-dots-2yJYdWP9.js → page-dots-D9sLGqee.js} +1 -1
- package/dist/nano-components/{table.worker-BJVVUKdP.js → table.worker-Dq_pppel.js} +1 -1
- package/dist/types/components/img/img.d.ts +5 -1
- package/dist/types/components/slides/slides.d.ts +1 -0
- package/dist/types/components.d.ts +12 -4
- package/docs-json.json +39 -31
- package/docs-vscode.json +1 -1
- package/hydrate/index.js +21 -13
- package/hydrate/index.mjs +21 -13
- package/package.json +2 -2
- package/dist/nano-components/nano-data-table-BqsFe2Ik.js +0 -4
@@ -114,7 +114,7 @@ const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (
|
|
114
114
|
})
|
115
115
|
);
|
116
116
|
|
117
|
-
const workerPromise = Promise.resolve().then(function () { return require('./table.worker-
|
117
|
+
const workerPromise = Promise.resolve().then(function () { return require('./table.worker-iOdjCdrO.js'); }).then(m => m.worker);
|
118
118
|
const createWorkerStore = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'createWorkerStore');
|
119
119
|
const syncConfigToWorker = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'syncConfigToWorker');
|
120
120
|
const syncDataToWorker = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'syncDataToWorker');
|
@@ -674,12 +674,13 @@ children, utils) => {
|
|
674
674
|
};
|
675
675
|
|
676
676
|
function addStyleSheet(id, css) {
|
677
|
-
const
|
677
|
+
const root = this.host.getRootNode();
|
678
|
+
const styleSheet = root.getElementById(id) ||
|
678
679
|
document.createElement('style');
|
679
680
|
styleSheet.id = id;
|
680
681
|
styleSheet.innerHTML = css;
|
681
682
|
if (!styleSheet.isConnected)
|
682
|
-
|
683
|
+
root.append(styleSheet);
|
683
684
|
}
|
684
685
|
/**
|
685
686
|
* Manages the complex business of table 'pinning'; sticking columns and rows to the scrolling parent element.
|
@@ -456,16 +456,16 @@ const Img = class {
|
|
456
456
|
const bgStyle = this.loadSrc
|
457
457
|
? { 'background-image': `url(${this.loadSrc})` }
|
458
458
|
: {};
|
459
|
-
return (renderer.h(index.Host, { key: '
|
459
|
+
return (renderer.h(index.Host, { key: '246b2bd0d05e76d4756a170534b84eeeb47b5692', class: "nano-img" }, renderer.h("div", { key: '17455932f3f0b6fef46b86f3731d1604295de25d', class: "img" }, renderer.h("div", { key: 'fb07e1f16faf27c6226a313c4bbcc54ccda29643', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (renderer.h("div", { key: '7e7a83eb7b4a75be00662f8dcd06b9452b4fcc21', class: {
|
460
460
|
loaded: this.hasLoaded,
|
461
461
|
img__bg: true,
|
462
462
|
'no-height': this.autoHeight === 'image',
|
463
|
-
}, style: bgStyle }, renderer.h("slot", { key: '
|
463
|
+
}, style: bgStyle }, renderer.h("slot", { key: '6fb65b4a0f745b517c0688da8b3fecae769d2e71' }))), renderer.h("img", { key: '8872cd76b14e32bfa3051ae1b2953ee2f01bf609', class: {
|
464
464
|
img__image: true,
|
465
465
|
loaded: this.hasLoaded,
|
466
466
|
hide: this.background,
|
467
467
|
'no-height': this.autoHeight === 'content',
|
468
|
-
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), renderer.h("nano-resize-observe", { key: '
|
468
|
+
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), renderer.h("nano-resize-observe", { key: '677afcbf603e4649a202f3a4d566c73c0fc70e10', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
469
469
|
}
|
470
470
|
static get watchers() { return {
|
471
471
|
"_src": ["_srcChanged"],
|
@@ -2575,24 +2575,27 @@ const Slides = class {
|
|
2575
2575
|
}
|
2576
2576
|
// is a custom animation
|
2577
2577
|
if (typeof this.animation === 'function') {
|
2578
|
-
this.
|
2578
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2579
2579
|
flkty.on('scroll', this.animation);
|
2580
2580
|
return;
|
2581
2581
|
}
|
2582
2582
|
// setup new stuff
|
2583
2583
|
switch (this.animation) {
|
2584
2584
|
case 'fade':
|
2585
|
-
this.
|
2585
|
+
this.updateOptions({ fade: true, percentPosition: true });
|
2586
2586
|
break;
|
2587
2587
|
case 'parallax':
|
2588
|
-
this.
|
2588
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2589
2589
|
flkty.on('scroll', this.parallax);
|
2590
2590
|
break;
|
2591
2591
|
default:
|
2592
|
-
this.
|
2592
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2593
2593
|
break;
|
2594
2594
|
}
|
2595
2595
|
}
|
2596
|
+
updateOptions(opts) {
|
2597
|
+
this.options = { ...this.options, ...opts };
|
2598
|
+
}
|
2596
2599
|
/** Zero-based index of the selected cell. */
|
2597
2600
|
currentSlide = 0;
|
2598
2601
|
currentSlideChange() {
|
@@ -2810,19 +2813,19 @@ const Slides = class {
|
|
2810
2813
|
}
|
2811
2814
|
async loadFlickityModules(opts) {
|
2812
2815
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
2813
|
-
await Promise.resolve().then(function () { return require('./fullscreen-
|
2816
|
+
await Promise.resolve().then(function () { return require('./fullscreen-CRDiLBHG.js'); });
|
2814
2817
|
this.hasFullScreenModule = true;
|
2815
2818
|
}
|
2816
2819
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
2817
|
-
await Promise.resolve().then(function () { return require('./lazyload-
|
2820
|
+
await Promise.resolve().then(function () { return require('./lazyload-DQBOwjop.js'); });
|
2818
2821
|
this.hasLazyLoadModule = true;
|
2819
2822
|
}
|
2820
2823
|
if (!this.hasDotsModule && opts.pageDots) {
|
2821
|
-
await Promise.resolve().then(function () { return require('./page-dots-
|
2824
|
+
await Promise.resolve().then(function () { return require('./page-dots-KutnmYpQ.js'); });
|
2822
2825
|
this.hasDotsModule = true;
|
2823
2826
|
}
|
2824
2827
|
if (!this.hasFadeModule && opts.fade) {
|
2825
|
-
await Promise.resolve().then(function () { return require('./fade-
|
2828
|
+
await Promise.resolve().then(function () { return require('./fade-CiX74e7g.js'); });
|
2826
2829
|
this.hasFadeModule = true;
|
2827
2830
|
}
|
2828
2831
|
}
|
@@ -2957,15 +2960,15 @@ const Slides = class {
|
|
2957
2960
|
this.destroyflickity();
|
2958
2961
|
}
|
2959
2962
|
render() {
|
2960
|
-
return (renderer.h(index.Host, { key: '
|
2963
|
+
return (renderer.h(index.Host, { key: '42935259126aea21edcf5ecb256d0c1fbbde543a', class: "nano-slides" }, renderer.h("div", { key: '933ffba7ee7036d4a8e7fddac8396eaf6b53ad9f', class: {
|
2961
2964
|
slideshow: true,
|
2962
2965
|
ready: this.ready,
|
2963
2966
|
'not-ready': !this.ready,
|
2964
|
-
}, part: "base" }, renderer.h("div", { key: '
|
2967
|
+
}, part: "base" }, renderer.h("div", { key: '5cd48261734c266f25f83cf63b60300c94868d52', ref: (div) => (this.flickityEl = div), class: {
|
2965
2968
|
'flickity-container': true,
|
2966
2969
|
'slides-ready': this.slidesReady,
|
2967
2970
|
'slides-not-ready': !this.slidesReady,
|
2968
|
-
}, part: "slide-container" }, renderer.h("slot", { key: '
|
2971
|
+
}, part: "slide-container" }, renderer.h("slot", { key: 'b04069a6bdbc76261a431b22660d012c25a8fb14' })), renderer.h("div", { key: '978e708ec781ff7aadc3928560f704669c60c1ab', class: "ui-extras" }, renderer.h("slot", { key: 'fd930c490857b9fab6b088015178151003f00f62', name: "ui" })))));
|
2969
2972
|
}
|
2970
2973
|
static get watchers() { return {
|
2971
2974
|
"options": ["optionsChanged"],
|
@@ -4,12 +4,13 @@
|
|
4
4
|
import { readTask, writeTask } from "@stencil/core";
|
5
5
|
import { CSSNAMESPACE } from "./table.constants";
|
6
6
|
function addStyleSheet(id, css) {
|
7
|
-
const
|
7
|
+
const root = this.host.getRootNode();
|
8
|
+
const styleSheet = root.getElementById(id) ||
|
8
9
|
document.createElement('style');
|
9
10
|
styleSheet.id = id;
|
10
11
|
styleSheet.innerHTML = css;
|
11
12
|
if (!styleSheet.isConnected)
|
12
|
-
|
13
|
+
root.append(styleSheet);
|
13
14
|
}
|
14
15
|
/**
|
15
16
|
* Manages the complex business of table 'pinning'; sticking columns and rows to the scrolling parent element.
|
@@ -38,7 +38,7 @@
|
|
38
38
|
}
|
39
39
|
}:host {
|
40
40
|
/**
|
41
|
-
* @prop --padding: padding around any content. Only
|
41
|
+
* @prop --padding: padding around any content. Only relevant when using `background` attribute. Defaults to `0`.
|
42
42
|
*/
|
43
43
|
--padding: 0;
|
44
44
|
display: inline-block;
|
@@ -4,7 +4,11 @@
|
|
4
4
|
import { Build, Host, } from "@stencil/core";
|
5
5
|
import { h } from "../../utils/renderer";
|
6
6
|
/**
|
7
|
-
*
|
7
|
+
* Utilities for displaying images; standard or background.
|
8
|
+
*
|
9
|
+
* @status deprecated
|
10
|
+
* @version 1.0.0
|
11
|
+
*
|
8
12
|
* @slot - Main slot. Only relevant with `<nano-img background>`
|
9
13
|
*/
|
10
14
|
export class Img {
|
@@ -134,16 +138,16 @@ export class Img {
|
|
134
138
|
const bgStyle = this.loadSrc
|
135
139
|
? { 'background-image': `url(${this.loadSrc})` }
|
136
140
|
: {};
|
137
|
-
return (h(Host, { key: '
|
141
|
+
return (h(Host, { key: '246b2bd0d05e76d4756a170534b84eeeb47b5692', class: "nano-img" }, h("div", { key: '17455932f3f0b6fef46b86f3731d1604295de25d', class: "img" }, h("div", { key: 'fb07e1f16faf27c6226a313c4bbcc54ccda29643', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (h("div", { key: '7e7a83eb7b4a75be00662f8dcd06b9452b4fcc21', class: {
|
138
142
|
loaded: this.hasLoaded,
|
139
143
|
img__bg: true,
|
140
144
|
'no-height': this.autoHeight === 'image',
|
141
|
-
}, style: bgStyle }, h("slot", { key: '
|
145
|
+
}, style: bgStyle }, h("slot", { key: '6fb65b4a0f745b517c0688da8b3fecae769d2e71' }))), h("img", { key: '8872cd76b14e32bfa3051ae1b2953ee2f01bf609', class: {
|
142
146
|
img__image: true,
|
143
147
|
loaded: this.hasLoaded,
|
144
148
|
hide: this.background,
|
145
149
|
'no-height': this.autoHeight === 'content',
|
146
|
-
}, decoding: "async", src: Build.isServer ? this.src : this.loadSrc, loading: Build.isServer && this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '
|
150
|
+
}, decoding: "async", src: Build.isServer ? this.src : this.loadSrc, loading: Build.isServer && this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '677afcbf603e4649a202f3a4d566c73c0fc70e10', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
147
151
|
}
|
148
152
|
static get is() { return "nano-img"; }
|
149
153
|
static get encapsulation() { return "shadow"; }
|
@@ -116,24 +116,27 @@ export class Slides {
|
|
116
116
|
}
|
117
117
|
// is a custom animation
|
118
118
|
if (typeof this.animation === 'function') {
|
119
|
-
this.
|
119
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
120
120
|
flkty.on('scroll', this.animation);
|
121
121
|
return;
|
122
122
|
}
|
123
123
|
// setup new stuff
|
124
124
|
switch (this.animation) {
|
125
125
|
case 'fade':
|
126
|
-
this.
|
126
|
+
this.updateOptions({ fade: true, percentPosition: true });
|
127
127
|
break;
|
128
128
|
case 'parallax':
|
129
|
-
this.
|
129
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
130
130
|
flkty.on('scroll', this.parallax);
|
131
131
|
break;
|
132
132
|
default:
|
133
|
-
this.
|
133
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
134
134
|
break;
|
135
135
|
}
|
136
136
|
}
|
137
|
+
updateOptions(opts) {
|
138
|
+
this.options = { ...this.options, ...opts };
|
139
|
+
}
|
137
140
|
/** Zero-based index of the selected cell. */
|
138
141
|
currentSlide = 0;
|
139
142
|
currentSlideChange() {
|
@@ -499,15 +502,15 @@ export class Slides {
|
|
499
502
|
this.destroyflickity();
|
500
503
|
}
|
501
504
|
render() {
|
502
|
-
return (h(Host, { key: '
|
505
|
+
return (h(Host, { key: '42935259126aea21edcf5ecb256d0c1fbbde543a', class: "nano-slides" }, h("div", { key: '933ffba7ee7036d4a8e7fddac8396eaf6b53ad9f', class: {
|
503
506
|
slideshow: true,
|
504
507
|
ready: this.ready,
|
505
508
|
'not-ready': !this.ready,
|
506
|
-
}, part: "base" }, h("div", { key: '
|
509
|
+
}, part: "base" }, h("div", { key: '5cd48261734c266f25f83cf63b60300c94868d52', ref: (div) => (this.flickityEl = div), class: {
|
507
510
|
'flickity-container': true,
|
508
511
|
'slides-ready': this.slidesReady,
|
509
512
|
'slides-not-ready': !this.slidesReady,
|
510
|
-
}, part: "slide-container" }, h("slot", { key: '
|
513
|
+
}, part: "slide-container" }, h("slot", { key: 'b04069a6bdbc76261a431b22660d012c25a8fb14' })), h("div", { key: '978e708ec781ff7aadc3928560f704669c60c1ab', class: "ui-extras" }, h("slot", { key: 'fd930c490857b9fab6b088015178151003f00f62', name: "ui" })))));
|
511
514
|
}
|
512
515
|
static get is() { return "nano-slides"; }
|
513
516
|
static get encapsulation() { return "shadow"; }
|
@@ -38,14 +38,14 @@
|
|
38
38
|
}
|
39
39
|
}:host {
|
40
40
|
/**
|
41
|
-
* @prop --border
|
42
|
-
* @prop --indicator-transition
|
43
|
-
* @prop --indicator-color
|
44
|
-
* @prop --indicator-track-color
|
45
|
-
* @prop --indicator-size
|
46
|
-
* @prop --fade-transparency
|
47
|
-
* @prop --tab-spacing
|
48
|
-
* @prop --content-spacing
|
41
|
+
* @prop --border: The border of the tab group. Defaults to `2px solid var(--nano-color-neutral-300)`.
|
42
|
+
* @prop --indicator-transition: The time it takes for the indicator to transition. Defaults to `var(--nano-transition-fast)`.
|
43
|
+
* @prop --indicator-color: The color of the indicator. Defaults to `var(--nano-color-primary-1000)`.
|
44
|
+
* @prop --indicator-track-color: The color of the indicator track. Defaults to `var(--nano-color-neutral-300)`.
|
45
|
+
* @prop --indicator-size: The size of the indicator. Defaults to `0`.
|
46
|
+
* @prop --fade-transparency: The transparency of the fade effect. Defaults to `0`.
|
47
|
+
* @prop --tab-spacing: The spacing between tabs. Defaults to `var(--nano-spacing-md)`.
|
48
|
+
* @prop --content-spacing: The spacing around the content area. Defaults to `var(--nano-spacing-l1-default)`.
|
49
49
|
*/
|
50
50
|
--border: 2px solid var(--nano-color-neutral-300);
|
51
51
|
--indicator-transition: var(--nano-transition-fast);
|
@@ -39,12 +39,12 @@
|
|
39
39
|
}/** Typography */
|
40
40
|
:host {
|
41
41
|
/**
|
42
|
-
* @prop --border
|
43
|
-
* @prop --border-hover-color
|
44
|
-
* @prop --border-active-color
|
45
|
-
* @prop --text-hover-color
|
46
|
-
* @prop --text-active-color
|
47
|
-
* @prop --padding
|
42
|
+
* @prop --border: The border of the tab. Defaults to `2px solid var(--nano-color-neutral-300)`.
|
43
|
+
* @prop --border-hover-color: The color of the border on hover. Defaults to `var(--nano-color-primary-700)`.
|
44
|
+
* @prop --border-active-color: The color of the border when active. Defaults to `var(--nano-color-primary-1000)`.
|
45
|
+
* @prop --text-hover-color: The color of the text on hover. Defaults to `var(--nano-color-primary-1000)`.
|
46
|
+
* @prop --text-active-color: The color of the text when active. Defaults to `var(--nano-color-primary-1000)`.
|
47
|
+
* @prop --padding: The padding of the tab. Defaults to `var(--nano-spacing-md)`.
|
48
48
|
*/
|
49
49
|
--border: 2px solid var(--nano-color-neutral-300);
|
50
50
|
--border-hover-color: var(--nano-color-primary-700);
|
package/dist/components/img.js
CHANGED
@@ -142,16 +142,16 @@ const Img = /*@__PURE__*/ proxyCustomElement(class Img extends HTMLElement {
|
|
142
142
|
const bgStyle = this.loadSrc
|
143
143
|
? { 'background-image': `url(${this.loadSrc})` }
|
144
144
|
: {};
|
145
|
-
return (h(Host, { key: '
|
145
|
+
return (h(Host, { key: '246b2bd0d05e76d4756a170534b84eeeb47b5692', class: "nano-img" }, h("div", { key: '17455932f3f0b6fef46b86f3731d1604295de25d', class: "img" }, h("div", { key: 'fb07e1f16faf27c6226a313c4bbcc54ccda29643', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (h("div", { key: '7e7a83eb7b4a75be00662f8dcd06b9452b4fcc21', class: {
|
146
146
|
loaded: this.hasLoaded,
|
147
147
|
img__bg: true,
|
148
148
|
'no-height': this.autoHeight === 'image',
|
149
|
-
}, style: bgStyle }, h("slot", { key: '
|
149
|
+
}, style: bgStyle }, h("slot", { key: '6fb65b4a0f745b517c0688da8b3fecae769d2e71' }))), h("img", { key: '8872cd76b14e32bfa3051ae1b2953ee2f01bf609', class: {
|
150
150
|
img__image: true,
|
151
151
|
loaded: this.hasLoaded,
|
152
152
|
hide: this.background,
|
153
153
|
'no-height': this.autoHeight === 'content',
|
154
|
-
}, decoding: "async", src: Build.isServer ? this.src : this.loadSrc, loading: Build.isServer && this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '
|
154
|
+
}, decoding: "async", src: Build.isServer ? this.src : this.loadSrc, loading: Build.isServer && this.lazy ? 'lazy' : undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h("nano-resize-observe", { key: '677afcbf603e4649a202f3a4d566c73c0fc70e10', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
155
155
|
}
|
156
156
|
static get watchers() { return {
|
157
157
|
"_src": ["_srcChanged"],
|
@@ -679,12 +679,13 @@ children, utils) => {
|
|
679
679
|
};
|
680
680
|
|
681
681
|
function addStyleSheet(id, css) {
|
682
|
-
const
|
682
|
+
const root = this.host.getRootNode();
|
683
|
+
const styleSheet = root.getElementById(id) ||
|
683
684
|
document.createElement('style');
|
684
685
|
styleSheet.id = id;
|
685
686
|
styleSheet.innerHTML = css;
|
686
687
|
if (!styleSheet.isConnected)
|
687
|
-
|
688
|
+
root.append(styleSheet);
|
688
689
|
}
|
689
690
|
/**
|
690
691
|
* Manages the complex business of table 'pinning'; sticking columns and rows to the scrolling parent element.
|
@@ -2575,24 +2575,27 @@ const Slides = /*@__PURE__*/ proxyCustomElement(class Slides extends HTMLElement
|
|
2575
2575
|
}
|
2576
2576
|
// is a custom animation
|
2577
2577
|
if (typeof this.animation === 'function') {
|
2578
|
-
this.
|
2578
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2579
2579
|
flkty.on('scroll', this.animation);
|
2580
2580
|
return;
|
2581
2581
|
}
|
2582
2582
|
// setup new stuff
|
2583
2583
|
switch (this.animation) {
|
2584
2584
|
case 'fade':
|
2585
|
-
this.
|
2585
|
+
this.updateOptions({ fade: true, percentPosition: true });
|
2586
2586
|
break;
|
2587
2587
|
case 'parallax':
|
2588
|
-
this.
|
2588
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2589
2589
|
flkty.on('scroll', this.parallax);
|
2590
2590
|
break;
|
2591
2591
|
default:
|
2592
|
-
this.
|
2592
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2593
2593
|
break;
|
2594
2594
|
}
|
2595
2595
|
}
|
2596
|
+
updateOptions(opts) {
|
2597
|
+
this.options = { ...this.options, ...opts };
|
2598
|
+
}
|
2596
2599
|
/** Zero-based index of the selected cell. */
|
2597
2600
|
currentSlide = 0;
|
2598
2601
|
currentSlideChange() {
|
@@ -2958,15 +2961,15 @@ const Slides = /*@__PURE__*/ proxyCustomElement(class Slides extends HTMLElement
|
|
2958
2961
|
this.destroyflickity();
|
2959
2962
|
}
|
2960
2963
|
render() {
|
2961
|
-
return (h(Host, { key: '
|
2964
|
+
return (h(Host, { key: '42935259126aea21edcf5ecb256d0c1fbbde543a', class: "nano-slides" }, h("div", { key: '933ffba7ee7036d4a8e7fddac8396eaf6b53ad9f', class: {
|
2962
2965
|
slideshow: true,
|
2963
2966
|
ready: this.ready,
|
2964
2967
|
'not-ready': !this.ready,
|
2965
|
-
}, part: "base" }, h("div", { key: '
|
2968
|
+
}, part: "base" }, h("div", { key: '5cd48261734c266f25f83cf63b60300c94868d52', ref: (div) => (this.flickityEl = div), class: {
|
2966
2969
|
'flickity-container': true,
|
2967
2970
|
'slides-ready': this.slidesReady,
|
2968
2971
|
'slides-not-ready': !this.slidesReady,
|
2969
|
-
}, part: "slide-container" }, h("slot", { key: '
|
2972
|
+
}, part: "slide-container" }, h("slot", { key: 'b04069a6bdbc76261a431b22660d012c25a8fb14' })), h("div", { key: '978e708ec781ff7aadc3928560f704669c60c1ab', class: "ui-extras" }, h("slot", { key: 'fd930c490857b9fab6b088015178151003f00f62', name: "ui" })))));
|
2970
2973
|
}
|
2971
2974
|
static get watchers() { return {
|
2972
2975
|
"options": ["optionsChanged"],
|
@@ -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-B1zM-u4Y.js';
|
5
5
|
import './index-D6WdRvhp.js';
|
6
6
|
import './renderer-BhDJHRB-.js';
|
7
7
|
|
@@ -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-B1zM-u4Y.js';
|
5
5
|
import './index-D6WdRvhp.js';
|
6
6
|
import './renderer-BhDJHRB-.js';
|
7
7
|
|
@@ -112,7 +112,7 @@ const createWorkerProxy = (worker, workerMsgId, exportedMethod) => (
|
|
112
112
|
})
|
113
113
|
);
|
114
114
|
|
115
|
-
const workerPromise = import('./table.worker-
|
115
|
+
const workerPromise = import('./table.worker-Dq_pppel.js').then(m => m.worker);
|
116
116
|
const createWorkerStore = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'createWorkerStore');
|
117
117
|
const syncConfigToWorker = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'syncConfigToWorker');
|
118
118
|
const syncDataToWorker = /*@__PURE__*/createWorkerProxy(workerPromise, 'stencil.table.worker', 'syncDataToWorker');
|
@@ -672,12 +672,13 @@ children, utils) => {
|
|
672
672
|
};
|
673
673
|
|
674
674
|
function addStyleSheet(id, css) {
|
675
|
-
const
|
675
|
+
const root = this.host.getRootNode();
|
676
|
+
const styleSheet = root.getElementById(id) ||
|
676
677
|
document.createElement('style');
|
677
678
|
styleSheet.id = id;
|
678
679
|
styleSheet.innerHTML = css;
|
679
680
|
if (!styleSheet.isConnected)
|
680
|
-
|
681
|
+
root.append(styleSheet);
|
681
682
|
}
|
682
683
|
/**
|
683
684
|
* Manages the complex business of table 'pinning'; sticking columns and rows to the scrolling parent element.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
3
3
|
*/
|
4
|
-
export { N as nano_data_table } from './nano-data-table-
|
4
|
+
export { N as nano_data_table } from './nano-data-table-TfPKf5LE.js';
|
5
5
|
import './index-D6WdRvhp.js';
|
6
6
|
import './renderer-BhDJHRB-.js';
|
7
7
|
import './math-BEqsTfVK.js';
|
@@ -454,16 +454,16 @@ const Img = class {
|
|
454
454
|
const bgStyle = this.loadSrc
|
455
455
|
? { 'background-image': `url(${this.loadSrc})` }
|
456
456
|
: {};
|
457
|
-
return (h$1(Host, { key: '
|
457
|
+
return (h$1(Host, { key: '246b2bd0d05e76d4756a170534b84eeeb47b5692', class: "nano-img" }, h$1("div", { key: '17455932f3f0b6fef46b86f3731d1604295de25d', class: "img" }, h$1("div", { key: 'fb07e1f16faf27c6226a313c4bbcc54ccda29643', class: "img__loader n-loader-skeleton" }, "Loading"), !!this.background && (h$1("div", { key: '7e7a83eb7b4a75be00662f8dcd06b9452b4fcc21', class: {
|
458
458
|
loaded: this.hasLoaded,
|
459
459
|
img__bg: true,
|
460
460
|
'no-height': this.autoHeight === 'image',
|
461
|
-
}, style: bgStyle }, h$1("slot", { key: '
|
461
|
+
}, style: bgStyle }, h$1("slot", { key: '6fb65b4a0f745b517c0688da8b3fecae769d2e71' }))), h$1("img", { key: '8872cd76b14e32bfa3051ae1b2953ee2f01bf609', class: {
|
462
462
|
img__image: true,
|
463
463
|
loaded: this.hasLoaded,
|
464
464
|
hide: this.background,
|
465
465
|
'no-height': this.autoHeight === 'content',
|
466
|
-
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h$1("nano-resize-observe", { key: '
|
466
|
+
}, decoding: "async", src: this.loadSrc, loading: undefined, alt: this.alt, onLoad: this.onLoad, onError: this.loadError }), h$1("nano-resize-observe", { key: '677afcbf603e4649a202f3a4d566c73c0fc70e10', class: "img__observer", onNanoResizeStateChange: this.onResize, states: this.imgStates }))));
|
467
467
|
}
|
468
468
|
static get watchers() { return {
|
469
469
|
"_src": ["_srcChanged"],
|
@@ -2573,24 +2573,27 @@ const Slides = class {
|
|
2573
2573
|
}
|
2574
2574
|
// is a custom animation
|
2575
2575
|
if (typeof this.animation === 'function') {
|
2576
|
-
this.
|
2576
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2577
2577
|
flkty.on('scroll', this.animation);
|
2578
2578
|
return;
|
2579
2579
|
}
|
2580
2580
|
// setup new stuff
|
2581
2581
|
switch (this.animation) {
|
2582
2582
|
case 'fade':
|
2583
|
-
this.
|
2583
|
+
this.updateOptions({ fade: true, percentPosition: true });
|
2584
2584
|
break;
|
2585
2585
|
case 'parallax':
|
2586
|
-
this.
|
2586
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2587
2587
|
flkty.on('scroll', this.parallax);
|
2588
2588
|
break;
|
2589
2589
|
default:
|
2590
|
-
this.
|
2590
|
+
this.updateOptions({ fade: false, percentPosition: true });
|
2591
2591
|
break;
|
2592
2592
|
}
|
2593
2593
|
}
|
2594
|
+
updateOptions(opts) {
|
2595
|
+
this.options = { ...this.options, ...opts };
|
2596
|
+
}
|
2594
2597
|
/** Zero-based index of the selected cell. */
|
2595
2598
|
currentSlide = 0;
|
2596
2599
|
currentSlideChange() {
|
@@ -2808,19 +2811,19 @@ const Slides = class {
|
|
2808
2811
|
}
|
2809
2812
|
async loadFlickityModules(opts) {
|
2810
2813
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
2811
|
-
await import('./fullscreen-
|
2814
|
+
await import('./fullscreen-C0Rg1tXP.js');
|
2812
2815
|
this.hasFullScreenModule = true;
|
2813
2816
|
}
|
2814
2817
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
2815
|
-
await import('./lazyload-
|
2818
|
+
await import('./lazyload-BGGkN269.js');
|
2816
2819
|
this.hasLazyLoadModule = true;
|
2817
2820
|
}
|
2818
2821
|
if (!this.hasDotsModule && opts.pageDots) {
|
2819
|
-
await import('./page-dots-
|
2822
|
+
await import('./page-dots-D9sLGqee.js');
|
2820
2823
|
this.hasDotsModule = true;
|
2821
2824
|
}
|
2822
2825
|
if (!this.hasFadeModule && opts.fade) {
|
2823
|
-
await import('./fade-
|
2826
|
+
await import('./fade-DJjEJ3OV.js');
|
2824
2827
|
this.hasFadeModule = true;
|
2825
2828
|
}
|
2826
2829
|
}
|
@@ -2955,15 +2958,15 @@ const Slides = class {
|
|
2955
2958
|
this.destroyflickity();
|
2956
2959
|
}
|
2957
2960
|
render() {
|
2958
|
-
return (h(Host, { key: '
|
2961
|
+
return (h(Host, { key: '42935259126aea21edcf5ecb256d0c1fbbde543a', class: "nano-slides" }, h("div", { key: '933ffba7ee7036d4a8e7fddac8396eaf6b53ad9f', class: {
|
2959
2962
|
slideshow: true,
|
2960
2963
|
ready: this.ready,
|
2961
2964
|
'not-ready': !this.ready,
|
2962
|
-
}, part: "base" }, h("div", { key: '
|
2965
|
+
}, part: "base" }, h("div", { key: '5cd48261734c266f25f83cf63b60300c94868d52', ref: (div) => (this.flickityEl = div), class: {
|
2963
2966
|
'flickity-container': true,
|
2964
2967
|
'slides-ready': this.slidesReady,
|
2965
2968
|
'slides-not-ready': !this.slidesReady,
|
2966
|
-
}, part: "slide-container" }, h("slot", { key: '
|
2969
|
+
}, part: "slide-container" }, h("slot", { key: 'b04069a6bdbc76261a431b22660d012c25a8fb14' })), h("div", { key: '978e708ec781ff7aadc3928560f704669c60c1ab', class: "ui-extras" }, h("slot", { key: 'fd930c490857b9fab6b088015178151003f00f62', name: "ui" })))));
|
2967
2970
|
}
|
2968
2971
|
static get watchers() { return {
|
2969
2972
|
"options": ["optionsChanged"],
|