@nanoporetech-digital/components 8.12.0 → 8.12.1
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-CPjR03EH.js → fade-B_RYQMUR.js} +1 -1
- package/dist/cjs/{fullscreen-Bzjv2HGI.js → fullscreen-DRJ-K03z.js} +1 -1
- package/dist/cjs/{lazyload-BNO_n6W8.js → lazyload-CQY_vK8q.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-card-carousel.cjs.entry.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
- package/dist/cjs/{nano-slides-C2K7j1yc.js → nano-slides-CXg2hNth.js} +56 -49
- 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 +2 -2
- 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/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/card-carousel/card-carousel.css +13 -7
- package/dist/collection/components/slides/lib/js/flickity.js +1 -1
- package/dist/collection/components/slides/lib/js/prev-next-button.js +3 -4
- package/dist/collection/components/slides/lib/js/utils/get-size.js +1 -1
- package/dist/collection/components/slides/slides.css +0 -2
- package/dist/collection/components/slides/slides.js +49 -39
- 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/components/nano-card-carousel.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/slides.js +55 -46
- package/dist/components/sticker.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{fade-DWf-ekic.js → fade-B-zhtzv8.js} +1 -1
- package/dist/esm/{fullscreen-DWET5K4U.js → fullscreen-DXVJLaN3.js} +1 -1
- package/dist/esm/{lazyload-BSH0U2zW.js → lazyload-DUQP_u2u.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-card-carousel.entry.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +2 -2
- package/dist/esm/{nano-slides-BU8CjO-X.js → nano-slides-BygteMbF.js} +57 -49
- 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 +2 -2
- 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/nano-components/{fade-DWf-ekic.js → fade-B-zhtzv8.js} +1 -1
- package/dist/nano-components/{fullscreen-DWET5K4U.js → fullscreen-DXVJLaN3.js} +1 -1
- package/dist/nano-components/{lazyload-BSH0U2zW.js → lazyload-DUQP_u2u.js} +1 -1
- package/dist/nano-components/nano-card-carousel.entry.js +1 -1
- package/dist/nano-components/nano-components.css +12 -8
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
- package/dist/nano-components/nano-slides-BygteMbF.js +22 -0
- 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/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/slides/slides.d.ts +3 -2
- package/docs-json.json +2 -2
- package/hydrate/index.js +167 -293
- package/hydrate/index.mjs +167 -293
- package/package.json +2 -2
- package/dist/cjs/page-dots-Db7Ce8kX.js +0 -139
- package/dist/collection/components/slides/lib/js/page-dots.js +0 -136
- package/dist/components/page-dots.js +0 -135
- package/dist/esm/page-dots-Ckyic5vY.js +0 -137
- package/dist/nano-components/nano-slides-BU8CjO-X.js +0 -22
- package/dist/nano-components/page-dots-Ckyic5vY.js +0 -4
- package/dist/types/components/slides/lib/js/page-dots.d.ts +0 -1
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -42,11 +42,11 @@ export class Slides {
|
|
42
42
|
childrenEles;
|
43
43
|
hasFullScreenModule = false;
|
44
44
|
hasLazyLoadModule = false;
|
45
|
-
hasDotsModule = false;
|
46
45
|
hasFadeModule = false;
|
47
46
|
iCurrentSlide;
|
48
47
|
slidesReady;
|
49
48
|
didInit = false;
|
49
|
+
slideCount = 0;
|
50
50
|
host;
|
51
51
|
/**
|
52
52
|
* Options to pass to the flickity instance.
|
@@ -96,7 +96,7 @@ export class Slides {
|
|
96
96
|
async animationChange(_, oldAnim) {
|
97
97
|
const [flkty, slides] = await Promise.all([
|
98
98
|
this.getflickity(),
|
99
|
-
waitForSlides(this.host),
|
99
|
+
this.waitForSlides(this.host),
|
100
100
|
]);
|
101
101
|
// clear old stuff
|
102
102
|
slides.forEach((slide) => {
|
@@ -188,7 +188,7 @@ export class Slides {
|
|
188
188
|
async update() {
|
189
189
|
const [flickity] = await Promise.all([
|
190
190
|
this.getflickity(),
|
191
|
-
waitForSlides(this.host),
|
191
|
+
this.waitForSlides(this.host),
|
192
192
|
]);
|
193
193
|
this.childrenEles = this.host.querySelectorAll(`${transformTag('nano-slide')} > *`);
|
194
194
|
flickity.reloadCells();
|
@@ -324,6 +324,12 @@ export class Slides {
|
|
324
324
|
cell.element.style.setProperty('--animation-amount', animAmount.toString());
|
325
325
|
});
|
326
326
|
};
|
327
|
+
isActive(num) {
|
328
|
+
if (num === this.currentSlide) {
|
329
|
+
return true;
|
330
|
+
}
|
331
|
+
return false;
|
332
|
+
}
|
327
333
|
handleFullscreen = (isFullScreen) => {
|
328
334
|
this.fullscreen = isFullScreen;
|
329
335
|
this.nanoSlidesFullscreenChange.emit(isFullScreen);
|
@@ -361,10 +367,6 @@ export class Slides {
|
|
361
367
|
await import('./lib/js/lazyload');
|
362
368
|
this.hasLazyLoadModule = true;
|
363
369
|
}
|
364
|
-
if (!this.hasDotsModule && opts.pageDots) {
|
365
|
-
await import('./lib/js/page-dots');
|
366
|
-
this.hasDotsModule = true;
|
367
|
-
}
|
368
370
|
if (!this.hasFadeModule && opts.fade) {
|
369
371
|
await import('./lib/js/fade');
|
370
372
|
this.hasFadeModule = true;
|
@@ -374,7 +376,7 @@ export class Slides {
|
|
374
376
|
const finalOptions = this.normalizeOptions();
|
375
377
|
await this.loadFlickityModules(finalOptions);
|
376
378
|
// init flickity core
|
377
|
-
await waitForSlides(this.host);
|
379
|
+
await this.waitForSlides(this.host);
|
378
380
|
this.flickityEl =
|
379
381
|
this.flickityEl || this._getRoot().querySelector('.flickity-container');
|
380
382
|
if (!this.flickityEl)
|
@@ -426,7 +428,6 @@ export class Slides {
|
|
426
428
|
fullscreen: this.fullscreen,
|
427
429
|
accessibility: true,
|
428
430
|
imagesLoaded: true,
|
429
|
-
pageDots: this.pager,
|
430
431
|
};
|
431
432
|
if (this.animation === 'fade') {
|
432
433
|
flickityOptions.fade = true;
|
@@ -465,7 +466,32 @@ export class Slides {
|
|
465
466
|
// @ts-expect-error - merged options don't quite match the flickity options
|
466
467
|
return { ...flickityOptions, ...mergedEventOptions, ...this.options };
|
467
468
|
}
|
469
|
+
waitForSlides = (host) => {
|
470
|
+
const allSlides = Array.from(host.querySelectorAll(transformTag('nano-slide')));
|
471
|
+
this.slideCount = allSlides.length;
|
472
|
+
let toLoadSlides = allSlides.filter((ele) => !ele.ready);
|
473
|
+
if (!toLoadSlides.length)
|
474
|
+
return Promise.resolve(allSlides);
|
475
|
+
return new Promise((resolve) => {
|
476
|
+
const slideResolver = (ev) => {
|
477
|
+
toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
|
478
|
+
if (!toLoadSlides.length) {
|
479
|
+
resolve(allSlides);
|
480
|
+
host.removeEventListener('nanoSlideReady', slideResolver);
|
481
|
+
host.removeEventListener('nano-slide-ready', slideResolver);
|
482
|
+
}
|
483
|
+
};
|
484
|
+
host.addEventListener('nanoSlideReady', slideResolver);
|
485
|
+
// fallback for vue who can't handle camelcase event names
|
486
|
+
host.addEventListener('nano-slide-ready', slideResolver);
|
487
|
+
});
|
488
|
+
};
|
468
489
|
componentDidLoad() {
|
490
|
+
this.nanoSlidesDidLoad.emit();
|
491
|
+
if (!this.didInit) {
|
492
|
+
this.didInit = true;
|
493
|
+
this.initflickity();
|
494
|
+
}
|
469
495
|
if (Build.isBrowser &&
|
470
496
|
typeof window !== 'undefined' &&
|
471
497
|
window.MutationObserver) {
|
@@ -483,13 +509,6 @@ export class Slides {
|
|
483
509
|
});
|
484
510
|
}
|
485
511
|
}
|
486
|
-
componentWillLoad() {
|
487
|
-
this.nanoSlidesDidLoad.emit();
|
488
|
-
if (!this.didInit) {
|
489
|
-
this.didInit = true;
|
490
|
-
this.initflickity();
|
491
|
-
}
|
492
|
-
}
|
493
512
|
disconnectedCallback() {
|
494
513
|
if (this.mutationO) {
|
495
514
|
this.mutationO.disconnect();
|
@@ -502,15 +521,24 @@ export class Slides {
|
|
502
521
|
this.destroyflickity();
|
503
522
|
}
|
504
523
|
render() {
|
505
|
-
return (h(Host, { key: '
|
524
|
+
return (h(Host, { key: '6dedc1589f5ae629975f38303f658de914c8f506', class: "nano-slides" }, h("div", { key: '528c7b10972b258ef0345525a9fa82c289ecc083', class: {
|
506
525
|
slideshow: true,
|
507
526
|
ready: this.ready,
|
508
527
|
'not-ready': !this.ready,
|
509
|
-
}, part: "base" }, h("div", { key: '
|
528
|
+
}, part: "base" }, h("div", { key: '4d16a4da0692f53500c755600a539edf5dc2d606', ref: (div) => (this.flickityEl = div), class: {
|
510
529
|
'flickity-container': true,
|
511
530
|
'slides-ready': this.slidesReady,
|
512
531
|
'slides-not-ready': !this.slidesReady,
|
513
|
-
}, part: "slide-container" }, h("slot", { key: '
|
532
|
+
}, part: "slide-container" }, h("slot", { key: 'ddcdf042f8d25069c08578e7417e3f5571386b76' })), h("div", { key: '5a456eee7631c979fef473352d2c4beec7a5cf2e', class: "ui-extras" }, h("slot", { key: '3994bac2fd8111223df9e3886481edf72b0f2d54', name: "ui" })), this.slideCount > 1 && this.pager && (h("div", { key: '2966cef941d7232110ba4dbba0aefdb33e757216', class: "pagination flickity-page-dots", part: "pagination" }, Array.from({ length: this.slideCount }).map((_, index) => (h("button", { part: "pagination-item--active", key: index, class: {
|
533
|
+
'pagination-btn': true,
|
534
|
+
'pagination-btn--active': this.isActive(index),
|
535
|
+
'is-selected': this.isActive(index),
|
536
|
+
dot: true,
|
537
|
+
}, "aria-current": this.isActive(index) ? 'step' : undefined, onClick: () => {
|
538
|
+
if (this.isActive(index))
|
539
|
+
return;
|
540
|
+
this.slideTo(index);
|
541
|
+
} }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))))));
|
514
542
|
}
|
515
543
|
static get is() { return "nano-slides"; }
|
516
544
|
static get encapsulation() { return "shadow"; }
|
@@ -726,7 +754,8 @@ export class Slides {
|
|
726
754
|
return {
|
727
755
|
"iCurrentSlide": {},
|
728
756
|
"slidesReady": {},
|
729
|
-
"didInit": {}
|
757
|
+
"didInit": {},
|
758
|
+
"slideCount": {}
|
730
759
|
};
|
731
760
|
}
|
732
761
|
static get events() {
|
@@ -1254,22 +1283,3 @@ export class Slides {
|
|
1254
1283
|
}];
|
1255
1284
|
}
|
1256
1285
|
}
|
1257
|
-
const waitForSlides = (host) => {
|
1258
|
-
const allSlides = Array.from(host.querySelectorAll(transformTag('nano-slide')));
|
1259
|
-
let toLoadSlides = allSlides.filter((ele) => !ele.ready);
|
1260
|
-
if (!toLoadSlides.length)
|
1261
|
-
return Promise.resolve(allSlides);
|
1262
|
-
return new Promise((resolve) => {
|
1263
|
-
const slideResolver = (ev) => {
|
1264
|
-
toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
|
1265
|
-
if (!toLoadSlides.length) {
|
1266
|
-
resolve(allSlides);
|
1267
|
-
host.removeEventListener('nanoSlideReady', slideResolver);
|
1268
|
-
host.removeEventListener('nano-slide-ready', slideResolver);
|
1269
|
-
}
|
1270
|
-
};
|
1271
|
-
host.addEventListener('nanoSlideReady', slideResolver);
|
1272
|
-
// fallback for vue who can't handle camelcase event names
|
1273
|
-
host.addEventListener('nano-slide-ready', slideResolver);
|
1274
|
-
});
|
1275
|
-
};
|
@@ -732,7 +732,7 @@ export class Sortable {
|
|
732
732
|
}
|
733
733
|
}
|
734
734
|
render() {
|
735
|
-
return (h(Host, { key: '
|
735
|
+
return (h(Host, { key: '8417261830f3b91247c7b7a6c6b75b348dc19bfb', class: "nano-sortable" }, h("div", { key: 'ce86bd07503d4afd4f3927c53df7e271a538755e', 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: '94e4576b27bb98af4375b855a5d440dcb9d06667' })));
|
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: '1832da76f2bff202722bb28c049d75d11149b321', 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: 'cbda942c6f8110d4d82131a1c9e4b14edf24b0c3' }, h(Wrapper, { key: 'b7fb3d26dd43a9407a75051be48e20b7633a8838', class: "step-wrapper" }, h("ul", { key: 'fbc4be8dea505488507b6ad77b412888e92e1b0a', 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: '3303c111f3f5b55afdae780c389dd62f66ab41e5', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '5e53b5c612f04201304b3ad740a87c3b702becae', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '04adf74e007e5de4504a297e65f32a284d3ab086', slot: "trigger", class: "step-trigger" }, h("div", { key: '0820a4a1bdcb5c7123e266885c7632f2c0b1efa2', 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: '9548a830bc2c09209276fc8ff3c2c19a9ca9f867', class: "step-progress-text" }, h("strong", { key: '5b4df74d1ae187cbc221e2b0e3ce2822ffc15dda' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: '5f2188ff4aa1a405517f1916852f90ebd52851de', class: "step-trigger-text" }, h("div", { key: '0c78fd73afea02abc1b97b86c12568cd9cd722d3', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: '39ba2b211cb3500be635661372a12660c6f1dc07', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: 'ed4a5818efd6e7ff4be154b4e7ec230bdf4a6003', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '64b46fdbc7d6317e4ea0899c51017a3238f154d2' }, 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: 'a8a1f92fa8f2039b7d69cc147f1f8aad270243f5', 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: '0197385d3dbbef5b3ca2e25bb8b58eae96ebfd2c', 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: 'e9e2e931b30f6c1b3278ee96d132c40772b35f8a', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: '7724a7b761972a7499945135e184a52f11811c9c' })))));
|
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: '54758d3dbda3695305222d5717ad0503d355dc42', 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: '28386faf317ffb158e7c743a9891c07d1843bcaf', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: 'b3c3169a26443abbc19761df5bd543edafae52f2', class: "nano-table__overflow" }))), h("slot", { key: 'a2ced54f3b39798c78a06fded180291111dfd1b1' })));
|
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: '115f9e8de93aa80ebaf9d965b7142cc0fd415a2d', 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: '38103778c1cdc28329d46f8709c1258430c0d1d3', part: "base", class: "nano-tab-content" }, h("slot", { key: '4fd7291a060d0e9a8a538e3df70cc1eb3c7cc25a' }))));
|
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: '1d0f5f7cbd4b2ecee010b3a97fc939d10e3cfa1b', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h(Tag, { key: '7a02bafe7fb706f16ce46ec41cc21b2fe5021785', 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: '0477ea2cd084a6bb7dcb657d677cc144d7b7f382', name: "start" }), h("div", { key: 'd9008020efe31daba60e0e5686d3dd705b459ae1', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, h("slot", { key: 'afb668fab779adcdf990173b904360ac6cb7b420' })), h("slot", { key: '2d80bad66affc2034dfc9dca90b70bfc392e7e60', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '93a8a4df41648e0ddea8131510e07086c252fde9', 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: '47db0fb2f9706960aea19d4b6896c680983ed434', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '454f02a3cbe81b2b76a93c38f4f750802adaf0fc', onSlotchange: this.handleSlotChange }), h("div", { key: '2a17c5c7020ec2d699baf993f68b3ee4387f9541', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: 'e3caece4446b7c79a9a935b818dbe3eed4fdfa37', 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: 'fe8c00239fca802a242c7d5a25001471ad2f9080', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: '79d9ad01f482731e6995a400b251c45faa5db935', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
234
234
|
}
|
235
235
|
static get is() { return "nano-tooltip"; }
|
236
236
|
static get encapsulation() { return "shadow"; }
|
@@ -5,7 +5,7 @@ import { proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/cl
|
|
5
5
|
import { h } from './renderer.js';
|
6
6
|
import { d as defineCustomElement$2 } from './slides.js';
|
7
7
|
|
8
|
-
const cardCarouselCss = ":host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }:host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }/** Typography */\n:host {\n /**\n * @prop --bleed: A portion of the Image of the next card is displayed outside the parent width boundary. \n * Generally should be the parent's `padding-inline-end` (or `padding-right`). Defaults to 0px;\n * @prop --gap: gap between the slides. Defaults to var(--nano-spacing-xl) on large screens, var(--nano-spacing-md) on small screens;\n * @prop --pagination-button-color: The color of the pagination button. Defaults to var(--nano-color-neutral-400);\n * @prop --pagination-button-active: Active color of the pagination button. Defaults to var(--nano-color-primary-1000);\n */\n --bleed: 0px;\n --gap: var(--nano-spacing-xl);\n --pagination-button-color: var(--nano-color-neutral-400);\n --pagination-button-hover: var(--nano-color-primary-700);\n --pagination-button-active: var(--nano-color-primary-1000);\n --peek: calc(var(--bleed) / 2);\n display: block;\n position: relative;\n margin-inline: 0 calc(var(--bleed) * -1);\n container-type: inline-size;\n}\n\n.base ::slotted(nano-slide), .base::slotted(nano-slide) {\n --img-opacity: calc(1 - max((var(--distance) - 50) / 30, 0));\n --text-opacity: calc(1 - max((var(--distance) - 50) / 15, 0));\n display: block;\n text-align: unset;\n min-block-size: auto;\n inline-size:
|
8
|
+
const cardCarouselCss = ":host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }:host,\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n[hidden] {\n display: none !important;\n}\n@media (prefers-reduced-motion: reduce) {\n :host,\n *,\n *::before,\n *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n scroll-behavior: auto !important;\n }\n }/** Typography */\n:host {\n /**\n * @prop --bleed: A portion of the Image of the next card is displayed outside the parent width boundary. \n * Generally should be the parent's `padding-inline-end` (or `padding-right`). Defaults to 0px;\n * @prop --gap: gap between the slides. Defaults to var(--nano-spacing-xl) on large screens, var(--nano-spacing-md) on small screens;\n * @prop --pagination-button-color: The color of the pagination button. Defaults to var(--nano-color-neutral-400);\n * @prop --pagination-button-active: Active color of the pagination button. Defaults to var(--nano-color-primary-1000);\n */\n --bleed: 0px;\n --gap: var(--nano-spacing-xl);\n --pagination-button-color: var(--nano-color-neutral-400);\n --pagination-button-hover: var(--nano-color-primary-700);\n --pagination-button-active: var(--nano-color-primary-1000);\n --peek: calc(var(--bleed) / 2);\n --slide-width: calc((50% + (var(--gap) / 2)) - var(--peek));\n display: block;\n position: relative;\n margin-inline: 0 calc(var(--bleed) * -1);\n container-type: inline-size;\n overflow: hidden;\n}\n\n.base ::slotted(nano-slide), .base::slotted(nano-slide) {\n --img-opacity: calc(1 - max((var(--distance) - 50) / 30, 0));\n --text-opacity: calc(1 - max((var(--distance) - 50) / 15, 0));\n display: block;\n text-align: unset;\n min-block-size: auto;\n inline-size: var(--slide-width);\n padding-inline-end: var(--gap);\n}\n.base nano-slides {\n overflow: visible;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n -webkit-mask-image: linear-gradient(to right, rgb(0, 0, 0) 0%, rgb(0, 0, 0) calc(100% - var(--bleed)), rgba(0, 0, 0, 0) 100%);\n mask-image: linear-gradient(to right, rgb(0, 0, 0) 0%, rgb(0, 0, 0) calc(100% - var(--bleed)), rgba(0, 0, 0, 0) 100%);\n}\n.base nano-slides[ready]::part(slide-container) {\n flex-flow: column wrap;\n justify-content: flex-start;\n}\n.base nano-slides::part(slide-viewport) {\n flex: auto;\n}\n.base nano-slides::part(navigation-button--previous) {\n display: none;\n}\n.base nano-slides::part(navigation-button--next) {\n transform: none;\n block-size: 100%;\n inline-size: calc(var(--peek) + var(--gap));\n inset-inline-end: 0;\n inset-block-start: 0;\n border-radius: 0;\n margin: 0;\n padding: 0;\n opacity: 0;\n}\n.base .header {\n max-inline-size: calc(100% - var(--bleed));\n display: flex;\n gap: var(--nano-spacing-md);\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin-block-end: var(--gap);\n}\n.base .title {\n font-weight: var(--nano-font-weight-normal);\n font-size: var(--nano-font-size-xl);\n line-height: var(--nano-line-height-denser);\n text-wrap: balance;\n line-height: 1;\n}\n.base .pagination {\n display: inline-flex;\n gap: var(--nano-spacing-md);\n}\n.base .pagination-btn {\n all: unset;\n inline-size: 1.25rem;\n block-size: 0.375rem;\n margin-block: 0;\n cursor: pointer;\n background: var(--pagination-button-color);\n position: relative;\n}\n.base .pagination-btn::after {\n content: \"\";\n position: absolute;\n inset: -1rem -0.625rem;\n}\n.base .pagination-btn:focus-visible {\n outline: var(--nano-focus-ring);\n outline-offset: var(--nano-focus-ring-offset);\n z-index: 1;\n}\n.base .pagination-btn:hover {\n background: var(--pagination-button-hover);\n}\n.base .pagination-btn:active {\n background: var(--pagination-button-active);\n}\n.base .pagination-btn__label {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n visibility: hidden;\n}\n.base .pagination-btn--active {\n background: var(--pagination-button-active);\n}\n@container (width < 615px) {\n .base {\n --gap: var(--nano-spacing-md);\n --peek: var(--bleed);\n --slide-width: calc((100% + var(--gap)) - var(--peek));\n }\n .base ::slotted(nano-slide) {\n --img-opacity: calc(1 - max((var(--distance) - 30) / 5, 0));\n --text-opacity: calc(1 - max((var(--distance) - 30) / 3, 0));\n }\n .base .header {\n flex-direction: column;\n align-items: start;\n }\n .base .pagination {\n transform: translateY(-50%);\n }\n}";
|
9
9
|
|
10
10
|
const ContentCarousel = /*@__PURE__*/ proxyCustomElement(class ContentCarousel extends HTMLElement {
|
11
11
|
constructor() {
|
@@ -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: '8417261830f3b91247c7b7a6c6b75b348dc19bfb', class: "nano-sortable" }, h("div", { key: 'ce86bd07503d4afd4f3927c53df7e271a538755e', 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: '94e4576b27bb98af4375b855a5d440dcb9d06667' })));
|
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: '1832da76f2bff202722bb28c049d75d11149b321', 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: 'cbda942c6f8110d4d82131a1c9e4b14edf24b0c3' }, h(Wrapper, { key: 'b7fb3d26dd43a9407a75051be48e20b7633a8838', class: "step-wrapper" }, h("ul", { key: 'fbc4be8dea505488507b6ad77b412888e92e1b0a', 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: '3303c111f3f5b55afdae780c389dd62f66ab41e5', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '5e53b5c612f04201304b3ad740a87c3b702becae', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '04adf74e007e5de4504a297e65f32a284d3ab086', slot: "trigger", class: "step-trigger" }, h("div", { key: '0820a4a1bdcb5c7123e266885c7632f2c0b1efa2', 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: '9548a830bc2c09209276fc8ff3c2c19a9ca9f867', class: "step-progress-text" }, h("strong", { key: '5b4df74d1ae187cbc221e2b0e3ce2822ffc15dda' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: '5f2188ff4aa1a405517f1916852f90ebd52851de', class: "step-trigger-text" }, h("div", { key: '0c78fd73afea02abc1b97b86c12568cd9cd722d3', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: '39ba2b211cb3500be635661372a12660c6f1dc07', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: 'ed4a5818efd6e7ff4be154b4e7ec230bdf4a6003', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '64b46fdbc7d6317e4ea0899c51017a3238f154d2' }, 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: '115f9e8de93aa80ebaf9d965b7142cc0fd415a2d', 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: '38103778c1cdc28329d46f8709c1258430c0d1d3', part: "base", class: "nano-tab-content" }, h("slot", { key: '4fd7291a060d0e9a8a538e3df70cc1eb3c7cc25a' }))));
|
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: '1d0f5f7cbd4b2ecee010b3a97fc939d10e3cfa1b', id: this.host.id || this.tabId, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', class: "nano-tab" }, h(Tag, { key: '7a02bafe7fb706f16ce46ec41cc21b2fe5021785', 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: '0477ea2cd084a6bb7dcb657d677cc144d7b7f382', name: "start" }), h("div", { key: 'd9008020efe31daba60e0e5686d3dd705b459ae1', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, h("slot", { key: 'afb668fab779adcdf990173b904360ac6cb7b420' })), h("slot", { key: '2d80bad66affc2034dfc9dca90b70bfc392e7e60', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: '93a8a4df41648e0ddea8131510e07086c252fde9', 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: '54758d3dbda3695305222d5717ad0503d355dc42', 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: '28386faf317ffb158e7c743a9891c07d1843bcaf', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: 'b3c3169a26443abbc19761df5bd543edafae52f2', class: "nano-table__overflow" }))), h("slot", { key: 'a2ced54f3b39798c78a06fded180291111dfd1b1' })));
|
240
240
|
}
|
241
241
|
static get watchers() { return {
|
242
242
|
"compact": ["handleCompactChange"],
|