@nanoporetech-digital/components 8.11.4 → 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-in-page-nav.cjs.entry.js +1 -1
- 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/icon/pictogram/education.svg +6 -0
- package/dist/collection/components/in-page-nav/in-page-nav.css +3 -3
- 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-in-page-nav.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-in-page-nav.entry.js +1 -1
- 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-assets/hash.txt +1 -1
- package/dist/nano-assets/icon/pictogram/education.svg +6 -0
- 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 +15 -11
- 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-in-page-nav.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/nano-components/pictogram/education.svg +6 -0
- 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 +168 -294
- package/hydrate/index.mjs +168 -294
- 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/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{scdfPYwW → 6SyqsxUA}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -87,7 +87,7 @@ proto$4.allOff = function () {
|
|
87
87
|
function getStyleSize(value) {
|
88
88
|
const num = parseFloat(value);
|
89
89
|
// not a percent like '100%', and a number
|
90
|
-
const isValid = value
|
90
|
+
const isValid = value?.indexOf('%') == -1 && !isNaN(num);
|
91
91
|
return isValid && num;
|
92
92
|
}
|
93
93
|
function noop$1() { }
|
@@ -734,7 +734,7 @@ proto._create = function () {
|
|
734
734
|
// create viewport & slider
|
735
735
|
this.viewport = document.createElement('div');
|
736
736
|
this.viewport.className = 'flickity-viewport';
|
737
|
-
this.viewport.
|
737
|
+
this.viewport.setAttribute('part', 'slide-viewport');
|
738
738
|
this._createSlider();
|
739
739
|
if (this.options.resize || this.options.watchCSS) {
|
740
740
|
window.addEventListener('resize', this);
|
@@ -2213,14 +2213,13 @@ var nowNext = () => {
|
|
2213
2213
|
this.isLeft = this.direction == leftDirection;
|
2214
2214
|
const button = (this.element = document.createElement('button'));
|
2215
2215
|
button.className = 'flickity-button flickity-prev-next-button';
|
2216
|
-
button.part.add('navigation-button');
|
2217
2216
|
if (this.isPrevious) {
|
2218
2217
|
button.classList.add('previous');
|
2219
|
-
button.
|
2218
|
+
button.setAttribute('part', 'navigation-button navigation-button--previous');
|
2220
2219
|
}
|
2221
2220
|
else {
|
2222
2221
|
button.classList.add('next');
|
2223
|
-
button.
|
2222
|
+
button.setAttribute('part', 'navigation-button navigation-button--next');
|
2224
2223
|
}
|
2225
2224
|
// prevent button from submitting form http://stackoverflow.com/a/10836076/182183
|
2226
2225
|
button.setAttribute('type', 'button');
|
@@ -2240,7 +2239,7 @@ var nowNext = () => {
|
|
2240
2239
|
icon.className =
|
2241
2240
|
'button-icon ' +
|
2242
2241
|
(this.isPrevious ? 'button-icon--previous' : 'button-icon--next');
|
2243
|
-
icon.
|
2242
|
+
icon.setAttribute('part', 'navigation-icon');
|
2244
2243
|
slot.appendChild(icon);
|
2245
2244
|
// events
|
2246
2245
|
this.parent.on('select', this.update.bind(this));
|
@@ -2469,7 +2468,7 @@ drag();
|
|
2469
2468
|
nowNext();
|
2470
2469
|
player();
|
2471
2470
|
|
2472
|
-
const slidesCss = ":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}}:host{--dot-color:var(--nano-color-neutral-400);--dot-color-active:var(--nano-color-primary-1000);--navbtns-icon-color:var(--dot-color-active);--navbtns-bg-color:transparent;--navbtns-icon-color-disabled:var(--dot-color-active);--navbtns-bg-color-disabled:transparent;--navbtns-width:1.875rem;--navbtns-height:2.75rem;--fsbtn-icon-color:var(--dot-color-active);--fsbtn-bg-color:transparent;--flip-icon-ltr:0;--flip-icon-rtl:1;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;transition:opacity 0.2s;opacity:0;max-inline-size:100vw}:host:dir(rtl){--flip-icon-ltr:1;--flip-icon-rtl:0}:host([ready]){opacity:1}.slideshow{max-block-size:100%;min-block-size:inherit;block-size:inherit;position:relative}.slideshow.not-ready{inline-size:100%;
|
2471
|
+
const slidesCss = ":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}}:host{--dot-color:var(--nano-color-neutral-400);--dot-color-active:var(--nano-color-primary-1000);--navbtns-icon-color:var(--dot-color-active);--navbtns-bg-color:transparent;--navbtns-icon-color-disabled:var(--dot-color-active);--navbtns-bg-color-disabled:transparent;--navbtns-width:1.875rem;--navbtns-height:2.75rem;--fsbtn-icon-color:var(--dot-color-active);--fsbtn-bg-color:transparent;--flip-icon-ltr:0;--flip-icon-rtl:1;display:block;-webkit-user-select:none;user-select:none;overflow:hidden;transition:opacity 0.2s;opacity:0;max-inline-size:100vw}:host:dir(rtl){--flip-icon-ltr:1;--flip-icon-rtl:0}:host([ready]){opacity:1}.slideshow{max-block-size:100%;min-block-size:inherit;block-size:inherit;position:relative}.slideshow.not-ready{inline-size:100%;overflow:hidden}.flickity-container{opacity:0;transition:opacity 0.2s;display:flex;block-size:fit-content}.not-ready .flickity-container{inline-size:fit-content;block-size:fit-content}.flickity-container.slides-ready{min-block-size:inherit;max-block-size:inherit;block-size:inherit;inline-size:auto}[hidden]{display:none !important}.ui-extras{pointer-events:none;position:absolute;block-size:100%;inline-size:100%;inset-block-start:0;inset-inline-start:0}.ui-extras *{pointer-events:all}/*! Flickity v2.2.1\nhttps://flickity.metafizzy.co\n---------------------------------------------- */.flickity-enabled{position:relative;opacity:1}.flickity-enabled:focus{outline:none}.flickity-viewport{overflow:hidden;position:relative;min-block-size:100%;flex:1}.flickity-slider{position:absolute;inline-size:100%;block-size:100%}.flickity-enabled.is-draggable{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.flickity-enabled.is-draggable .flickity-viewport{cursor:move;cursor:grab;cursor:grab}.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down{cursor:grabbing}.flickity-button{position:absolute;background:var(--navbtns-bg-color);border:none;color:#333;opacity:0.75}.flickity-button:hover{opacity:1;cursor:pointer}.flickity-button:focus{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.flickity-button:active{opacity:0.6}.flickity-button:disabled{opacity:0.3;cursor:auto;pointer-events:none;background:var(--navbtns-bg-color-disabled)}.button-icon{display:block}.button-icon::after{content:\"\";display:block;background-size:cover;inline-size:var(--navbtns-width);block-size:var(--navbtns-height);background-color:var(--navbtns-icon-color);-webkit-mask-image:var(--nano-component-icon-chevron);mask-image:var(--nano-component-icon-chevron);transition:color var(--nano-transition-fast) ease;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;transform-origin:center;margin-inline-start:auto;rotate:calc(180deg * var(--flip-icon-ltr));-webkit-mask-size:cover;mask-size:cover}.button-icon--previous::after{rotate:calc(180deg * var(--flip-icon-rtl))}.flickity-button:disabled .button-icon::after{background-color:var(--navbtns-icon-color-disabled)}.flickity-prev-next-button{inset-block-start:50%;transform:translateY(-50%)}.flickity-prev-next-button.previous{inset-inline-start:10px}.flickity-prev-next-button.next{inset-inline-end:10px}.flickity-rtl .flickity-prev-next-button.previous{inset-inline:auto 10px}.flickity-rtl .flickity-prev-next-button.next{inset-inline:10px auto}.flickity-prev-next-button .flickity-button-icon{position:absolute;inset-inline-start:20%;inset-block-start:20%;inline-size:60%;block-size:60%}.flickity-page-dots{inline-size:100%;padding:0;margin:0;text-align:center;line-height:1;z-index:4;display:inline-flex;justify-content:center;inset-block-end:0}.flickity-rtl .flickity-page-dots{direction:rtl}.flickity-page-dots .dot{all:unset;text-indent:200%;white-space:nowrap;overflow:hidden;display:inline-block;display:inline-block;position:relative;inline-size:1.25rem;block-size:0.375rem;margin-block:0;cursor:pointer;padding:calc(var(--nano-spacing-md) / 2)}.flickity-page-dots .dot::after{content:\"\";position:absolute;inset:0;background:currentcolor;background:var(--dot-color);margin:calc(var(--nano-spacing-md) / 2)}.flickity-page-dots .dot:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset);z-index:1}.flickity-page-dots .dot.is-selected::after{background:var(--dot-color-active)}.flickity-enabled.is-fullscreen{position:fixed;inset-inline-start:0;inset-block-start:0;inline-size:100%;block-size:100%;background:hsla(0, 0%, 0%, 0.9);padding-block-end:35px;z-index:100}.flickity-enabled.is-fullscreen .flickity-page-dots{inset-block-end:45px}html.is-flickity-fullscreen{overflow:hidden}.flickity-fullscreen-button{display:block;inset-inline-end:10px;inset-block-start:10px;inline-size:24px;block-size:24px;border-radius:4px;background:var(--fsbtn-bg-color);fill:var(--fsbtn-icon-color)}.flickity-rtl .flickity-fullscreen-button{inset-inline:10px auto}.flickity-fullscreen-button-exit{display:none}.flickity-enabled.is-fullscreen .flickity-fullscreen-button-exit{display:block}.flickity-enabled.is-fullscreen .flickity-fullscreen-button-view{display:none}.flickity-fullscreen-button .flickity-button-icon{position:absolute;inline-size:16px;block-size:16px;inset-inline-start:4px;inset-block-start:4px}.flickity-enabled.is-fade .flickity-slider>*{pointer-events:none;z-index:0}.flickity-enabled.is-fade .flickity-slider ::slotted(.is-selected){pointer-events:auto;z-index:1}";
|
2473
2472
|
|
2474
2473
|
const modulo = (num, div) => {
|
2475
2474
|
return ((num % div) + div) % div;
|
@@ -2501,11 +2500,11 @@ const Slides = class {
|
|
2501
2500
|
childrenEles;
|
2502
2501
|
hasFullScreenModule = false;
|
2503
2502
|
hasLazyLoadModule = false;
|
2504
|
-
hasDotsModule = false;
|
2505
2503
|
hasFadeModule = false;
|
2506
2504
|
iCurrentSlide;
|
2507
2505
|
slidesReady;
|
2508
2506
|
didInit = false;
|
2507
|
+
slideCount = 0;
|
2509
2508
|
get host() { return index.getElement(this); }
|
2510
2509
|
/**
|
2511
2510
|
* Options to pass to the flickity instance.
|
@@ -2555,7 +2554,7 @@ const Slides = class {
|
|
2555
2554
|
async animationChange(_, oldAnim) {
|
2556
2555
|
const [flkty, slides] = await Promise.all([
|
2557
2556
|
this.getflickity(),
|
2558
|
-
waitForSlides(this.host),
|
2557
|
+
this.waitForSlides(this.host),
|
2559
2558
|
]);
|
2560
2559
|
// clear old stuff
|
2561
2560
|
slides.forEach((slide) => {
|
@@ -2647,7 +2646,7 @@ const Slides = class {
|
|
2647
2646
|
async update() {
|
2648
2647
|
const [flickity] = await Promise.all([
|
2649
2648
|
this.getflickity(),
|
2650
|
-
waitForSlides(this.host),
|
2649
|
+
this.waitForSlides(this.host),
|
2651
2650
|
]);
|
2652
2651
|
this.childrenEles = this.host.querySelectorAll(`${renderer.transformTag('nano-slide')} > *`);
|
2653
2652
|
flickity.reloadCells();
|
@@ -2783,6 +2782,12 @@ const Slides = class {
|
|
2783
2782
|
cell.element.style.setProperty('--animation-amount', animAmount.toString());
|
2784
2783
|
});
|
2785
2784
|
};
|
2785
|
+
isActive(num) {
|
2786
|
+
if (num === this.currentSlide) {
|
2787
|
+
return true;
|
2788
|
+
}
|
2789
|
+
return false;
|
2790
|
+
}
|
2786
2791
|
handleFullscreen = (isFullScreen) => {
|
2787
2792
|
this.fullscreen = isFullScreen;
|
2788
2793
|
this.nanoSlidesFullscreenChange.emit(isFullScreen);
|
@@ -2813,19 +2818,15 @@ const Slides = class {
|
|
2813
2818
|
}
|
2814
2819
|
async loadFlickityModules(opts) {
|
2815
2820
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
2816
|
-
await Promise.resolve().then(function () { return require('./fullscreen-
|
2821
|
+
await Promise.resolve().then(function () { return require('./fullscreen-DRJ-K03z.js'); });
|
2817
2822
|
this.hasFullScreenModule = true;
|
2818
2823
|
}
|
2819
2824
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
2820
|
-
await Promise.resolve().then(function () { return require('./lazyload-
|
2825
|
+
await Promise.resolve().then(function () { return require('./lazyload-CQY_vK8q.js'); });
|
2821
2826
|
this.hasLazyLoadModule = true;
|
2822
2827
|
}
|
2823
|
-
if (!this.hasDotsModule && opts.pageDots) {
|
2824
|
-
await Promise.resolve().then(function () { return require('./page-dots-Db7Ce8kX.js'); });
|
2825
|
-
this.hasDotsModule = true;
|
2826
|
-
}
|
2827
2828
|
if (!this.hasFadeModule && opts.fade) {
|
2828
|
-
await Promise.resolve().then(function () { return require('./fade-
|
2829
|
+
await Promise.resolve().then(function () { return require('./fade-B_RYQMUR.js'); });
|
2829
2830
|
this.hasFadeModule = true;
|
2830
2831
|
}
|
2831
2832
|
}
|
@@ -2833,7 +2834,7 @@ const Slides = class {
|
|
2833
2834
|
const finalOptions = this.normalizeOptions();
|
2834
2835
|
await this.loadFlickityModules(finalOptions);
|
2835
2836
|
// init flickity core
|
2836
|
-
await waitForSlides(this.host);
|
2837
|
+
await this.waitForSlides(this.host);
|
2837
2838
|
this.flickityEl =
|
2838
2839
|
this.flickityEl || this._getRoot().querySelector('.flickity-container');
|
2839
2840
|
if (!this.flickityEl)
|
@@ -2885,7 +2886,6 @@ const Slides = class {
|
|
2885
2886
|
fullscreen: this.fullscreen,
|
2886
2887
|
accessibility: true,
|
2887
2888
|
imagesLoaded: true,
|
2888
|
-
pageDots: this.pager,
|
2889
2889
|
};
|
2890
2890
|
if (this.animation === 'fade') {
|
2891
2891
|
flickityOptions.fade = true;
|
@@ -2924,7 +2924,32 @@ const Slides = class {
|
|
2924
2924
|
// @ts-expect-error - merged options don't quite match the flickity options
|
2925
2925
|
return { ...flickityOptions, ...mergedEventOptions, ...this.options };
|
2926
2926
|
}
|
2927
|
+
waitForSlides = (host) => {
|
2928
|
+
const allSlides = Array.from(host.querySelectorAll(renderer.transformTag('nano-slide')));
|
2929
|
+
this.slideCount = allSlides.length;
|
2930
|
+
let toLoadSlides = allSlides.filter((ele) => !ele.ready);
|
2931
|
+
if (!toLoadSlides.length)
|
2932
|
+
return Promise.resolve(allSlides);
|
2933
|
+
return new Promise((resolve) => {
|
2934
|
+
const slideResolver = (ev) => {
|
2935
|
+
toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
|
2936
|
+
if (!toLoadSlides.length) {
|
2937
|
+
resolve(allSlides);
|
2938
|
+
host.removeEventListener('nanoSlideReady', slideResolver);
|
2939
|
+
host.removeEventListener('nano-slide-ready', slideResolver);
|
2940
|
+
}
|
2941
|
+
};
|
2942
|
+
host.addEventListener('nanoSlideReady', slideResolver);
|
2943
|
+
// fallback for vue who can't handle camelcase event names
|
2944
|
+
host.addEventListener('nano-slide-ready', slideResolver);
|
2945
|
+
});
|
2946
|
+
};
|
2927
2947
|
componentDidLoad() {
|
2948
|
+
this.nanoSlidesDidLoad.emit();
|
2949
|
+
if (!this.didInit) {
|
2950
|
+
this.didInit = true;
|
2951
|
+
this.initflickity();
|
2952
|
+
}
|
2928
2953
|
if (typeof window !== 'undefined' &&
|
2929
2954
|
window.MutationObserver) {
|
2930
2955
|
const mut = (this.mutationO = new MutationObserver((e) => {
|
@@ -2941,13 +2966,6 @@ const Slides = class {
|
|
2941
2966
|
});
|
2942
2967
|
}
|
2943
2968
|
}
|
2944
|
-
componentWillLoad() {
|
2945
|
-
this.nanoSlidesDidLoad.emit();
|
2946
|
-
if (!this.didInit) {
|
2947
|
-
this.didInit = true;
|
2948
|
-
this.initflickity();
|
2949
|
-
}
|
2950
|
-
}
|
2951
2969
|
disconnectedCallback() {
|
2952
2970
|
if (this.mutationO) {
|
2953
2971
|
this.mutationO.disconnect();
|
@@ -2960,15 +2978,24 @@ const Slides = class {
|
|
2960
2978
|
this.destroyflickity();
|
2961
2979
|
}
|
2962
2980
|
render() {
|
2963
|
-
return (renderer.h(index.Host, { key: '
|
2981
|
+
return (renderer.h(index.Host, { key: '6dedc1589f5ae629975f38303f658de914c8f506', class: "nano-slides" }, renderer.h("div", { key: '528c7b10972b258ef0345525a9fa82c289ecc083', class: {
|
2964
2982
|
slideshow: true,
|
2965
2983
|
ready: this.ready,
|
2966
2984
|
'not-ready': !this.ready,
|
2967
|
-
}, part: "base" }, renderer.h("div", { key: '
|
2985
|
+
}, part: "base" }, renderer.h("div", { key: '4d16a4da0692f53500c755600a539edf5dc2d606', ref: (div) => (this.flickityEl = div), class: {
|
2968
2986
|
'flickity-container': true,
|
2969
2987
|
'slides-ready': this.slidesReady,
|
2970
2988
|
'slides-not-ready': !this.slidesReady,
|
2971
|
-
}, part: "slide-container" }, renderer.h("slot", { key: '
|
2989
|
+
}, part: "slide-container" }, renderer.h("slot", { key: 'ddcdf042f8d25069c08578e7417e3f5571386b76' })), renderer.h("div", { key: '5a456eee7631c979fef473352d2c4beec7a5cf2e', class: "ui-extras" }, renderer.h("slot", { key: '3994bac2fd8111223df9e3886481edf72b0f2d54', name: "ui" })), this.slideCount > 1 && this.pager && (renderer.h("div", { key: '2966cef941d7232110ba4dbba0aefdb33e757216', class: "pagination flickity-page-dots", part: "pagination" }, Array.from({ length: this.slideCount }).map((_, index) => (renderer.h("button", { part: "pagination-item--active", key: index, class: {
|
2990
|
+
'pagination-btn': true,
|
2991
|
+
'pagination-btn--active': this.isActive(index),
|
2992
|
+
'is-selected': this.isActive(index),
|
2993
|
+
dot: true,
|
2994
|
+
}, "aria-current": this.isActive(index) ? 'step' : undefined, onClick: () => {
|
2995
|
+
if (this.isActive(index))
|
2996
|
+
return;
|
2997
|
+
this.slideTo(index);
|
2998
|
+
} }, renderer.h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))))));
|
2972
2999
|
}
|
2973
3000
|
static get watchers() { return {
|
2974
3001
|
"options": ["optionsChanged"],
|
@@ -2982,28 +3009,8 @@ const Slides = class {
|
|
2982
3009
|
"autoplay": ["autoPlayChange"]
|
2983
3010
|
}; }
|
2984
3011
|
};
|
2985
|
-
const waitForSlides = (host) => {
|
2986
|
-
const allSlides = Array.from(host.querySelectorAll(renderer.transformTag('nano-slide')));
|
2987
|
-
let toLoadSlides = allSlides.filter((ele) => !ele.ready);
|
2988
|
-
if (!toLoadSlides.length)
|
2989
|
-
return Promise.resolve(allSlides);
|
2990
|
-
return new Promise((resolve) => {
|
2991
|
-
const slideResolver = (ev) => {
|
2992
|
-
toLoadSlides = toLoadSlides.filter((ele) => ele !== ev.target);
|
2993
|
-
if (!toLoadSlides.length) {
|
2994
|
-
resolve(allSlides);
|
2995
|
-
host.removeEventListener('nanoSlideReady', slideResolver);
|
2996
|
-
host.removeEventListener('nano-slide-ready', slideResolver);
|
2997
|
-
}
|
2998
|
-
};
|
2999
|
-
host.addEventListener('nanoSlideReady', slideResolver);
|
3000
|
-
// fallback for vue who can't handle camelcase event names
|
3001
|
-
host.addEventListener('nano-slide-ready', slideResolver);
|
3002
|
-
});
|
3003
|
-
};
|
3004
3012
|
Slides.style = slidesCss;
|
3005
3013
|
|
3006
3014
|
exports.Flickity = Flickity;
|
3007
3015
|
exports.Slides = Slides;
|
3008
|
-
exports.Unipointer = Unipointer;
|
3009
3016
|
exports.utils = utils;
|
@@ -728,7 +728,7 @@ const Sortable = class {
|
|
728
728
|
}
|
729
729
|
}
|
730
730
|
render() {
|
731
|
-
return (renderer.h(index.Host, { key: '
|
731
|
+
return (renderer.h(index.Host, { key: '8417261830f3b91247c7b7a6c6b75b348dc19bfb', class: "nano-sortable" }, renderer.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) => (renderer.h("div", null, str)))), renderer.h("slot", { key: '94e4576b27bb98af4375b855a5d440dcb9d06667' })));
|
732
732
|
}
|
733
733
|
static get watchers() { return {
|
734
734
|
"itemSelector": ["handleItemSelectorChange"],
|
@@ -83,7 +83,7 @@ const NanoStepAccordion = class {
|
|
83
83
|
}
|
84
84
|
}
|
85
85
|
render() {
|
86
|
-
return (renderer.h("nano-accordion", { key: '
|
86
|
+
return (renderer.h("nano-accordion", { key: '1832da76f2bff202722bb28c049d75d11149b321', alwaysOpen: true, onNanoToggle: (event) => this.handleToggle(event) }, this.steps.map((step, index$1) => (renderer.h("nano-details", { open: index$1 === this.activeStep, disabled: !step.enabled, class: {
|
87
87
|
step: true,
|
88
88
|
'step--active': index$1 === this.activeStep,
|
89
89
|
'step--complete': step.complete,
|
@@ -106,10 +106,10 @@ const NanoStepBreadcrumb = class {
|
|
106
106
|
};
|
107
107
|
render() {
|
108
108
|
const Wrapper = this.steps.filter((step) => step.href).length > 0 ? 'nav' : 'div';
|
109
|
-
return (renderer.h(index.Host, { key: '
|
109
|
+
return (renderer.h(index.Host, { key: 'cbda942c6f8110d4d82131a1c9e4b14edf24b0c3' }, renderer.h(Wrapper, { key: 'b7fb3d26dd43a9407a75051be48e20b7633a8838', class: "step-wrapper" }, renderer.h("ul", { key: 'fbc4be8dea505488507b6ad77b412888e92e1b0a', class: `step-list desktop ${this.cacheKey}` }, this.steps.map((step, index) => (renderer.h("li", { class: "step-item-wrapper", key: index }, renderer.h(this.ControlTag, { step: step, index: index }))))), renderer.h("div", { key: '3303c111f3f5b55afdae780c389dd62f66ab41e5', class: `step-list mobile ${this.cacheKey}` }, renderer.h("nano-dropdown", { key: '5e53b5c612f04201304b3ad740a87c3b702becae', dialogTitle: "Steps", class: "step-dropdown" }, renderer.h("button", { key: '04adf74e007e5de4504a297e65f32a284d3ab086', slot: "trigger", class: "step-trigger" }, renderer.h("div", { key: '0820a4a1bdcb5c7123e266885c7632f2c0b1efa2', class: "step-progress-circle", role: "progressbar", "aria-valuenow": "2", "aria-valuemin": "0", "aria-valuemax": "5", style: {
|
110
110
|
'--value': '' + (this.activeStep + 1),
|
111
111
|
'--max': '' + this.steps.length,
|
112
|
-
} }, renderer.h("span", { key: '
|
112
|
+
} }, renderer.h("span", { key: '9548a830bc2c09209276fc8ff3c2c19a9ca9f867', class: "step-progress-text" }, renderer.h("strong", { key: '5b4df74d1ae187cbc221e2b0e3ce2822ffc15dda' }, this.activeStep + 1), " of", ' ', this.steps.length)), renderer.h("div", { key: '5f2188ff4aa1a405517f1916852f90ebd52851de', class: "step-trigger-text" }, renderer.h("div", { key: '0c78fd73afea02abc1b97b86c12568cd9cd722d3', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), renderer.h("div", { key: '39ba2b211cb3500be635661372a12660c6f1dc07', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), renderer.h("nano-icon", { key: 'ed4a5818efd6e7ff4be154b4e7ec230bdf4a6003', class: "step-trigger-icon", name: "light/chevron-down" })), renderer.h("nano-menu", { key: '64b46fdbc7d6317e4ea0899c51017a3238f154d2' }, this.steps.map((step, index) => (renderer.h("nano-nav-item", { class: {
|
113
113
|
'step-item-mobile': true,
|
114
114
|
'step-item-mobile step-item--active': index === this.activeStep,
|
115
115
|
'step-item-mobile step-item--complete': step.complete,
|
@@ -607,12 +607,12 @@ const Sticker = class {
|
|
607
607
|
this.hasBootstrapped = false;
|
608
608
|
}
|
609
609
|
render() {
|
610
|
-
return (renderer.h(index.Host, { key: '
|
610
|
+
return (renderer.h(index.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" }, renderer.h("div", { key: '0197385d3dbbef5b3ca2e25bb8b58eae96ebfd2c', 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) }, renderer.h("div", { key: '
|
615
|
+
}, ref: (div) => (this.sticker = div) }, renderer.h("div", { key: 'e9e2e931b30f6c1b3278ee96d132c40772b35f8a', class: "sticker-content", ref: (div) => (this.content = div) }, renderer.h("slot", { key: '7724a7b761972a7499945135e184a52f11811c9c' })))));
|
616
616
|
}
|
617
617
|
static get watchers() { return {
|
618
618
|
"trigger": ["updateTriggerOffset"],
|
@@ -24,10 +24,10 @@ const NanoTabContent = class {
|
|
24
24
|
requestAnimationFrame(() => (this.ready = true));
|
25
25
|
}
|
26
26
|
render() {
|
27
|
-
return (renderer.h(index.Host, { key: '
|
27
|
+
return (renderer.h(index.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
|
-
} }, renderer.h("div", { key: '
|
30
|
+
} }, renderer.h("div", { key: '38103778c1cdc28329d46f8709c1258430c0d1d3', part: "base", class: "nano-tab-content" }, renderer.h("slot", { key: '4fd7291a060d0e9a8a538e3df70cc1eb3c7cc25a' }))));
|
31
31
|
}
|
32
32
|
};
|
33
33
|
NanoTabContent.style = tabContentCss;
|
@@ -51,12 +51,12 @@ const NanoTab = class {
|
|
51
51
|
};
|
52
52
|
render() {
|
53
53
|
const Tag = this.href ? 'a' : 'div';
|
54
|
-
return (renderer.h(index.Host, { key: '
|
54
|
+
return (renderer.h(index.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" }, renderer.h(Tag, { key: '7a02bafe7fb706f16ce46ec41cc21b2fe5021785', part: `base${this.active ? ' base--active' : ''}${this.disabled ? ' base--disabled' : ''}${this.closable ? ' base--closable' : ''}`, class: {
|
55
55
|
tab: true,
|
56
56
|
'tab--active': this.active,
|
57
57
|
'tab--disabled': this.disabled,
|
58
58
|
'tab--closable': this.closable,
|
59
|
-
}, href: this.href, target: this.target }, renderer.h("slot", { key: '
|
59
|
+
}, href: this.href, target: this.target }, renderer.h("slot", { key: '0477ea2cd084a6bb7dcb657d677cc144d7b7f382', name: "start" }), renderer.h("div", { key: 'd9008020efe31daba60e0e5686d3dd705b459ae1', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, renderer.h("slot", { key: 'afb668fab779adcdf990173b904360ac6cb7b420' })), renderer.h("slot", { key: '2d80bad66affc2034dfc9dca90b70bfc392e7e60', name: "end" }), this.closable && !this.disabled && (renderer.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" })))));
|
60
60
|
}
|
61
61
|
};
|
62
62
|
NanoTab.style = tabCss;
|
@@ -228,10 +228,10 @@ const NanoTable = class {
|
|
228
228
|
this.cleanUpObservers();
|
229
229
|
}
|
230
230
|
render() {
|
231
|
-
return (renderer.h(index.Host, { key: '
|
231
|
+
return (renderer.h(index.Host, { key: '54758d3dbda3695305222d5717ad0503d355dc42', class: {
|
232
232
|
'nano-table': true,
|
233
233
|
'nano-table--props-ready': this.propsReady,
|
234
|
-
} }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '
|
234
|
+
} }, this.scrollable && (renderer.h("nano-masked-overflow", { key: '28386faf317ffb158e7c743a9891c07d1843bcaf', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, renderer.h("div", { key: 'b3c3169a26443abbc19761df5bd543edafae52f2', class: "nano-table__overflow" }))), renderer.h("slot", { key: 'a2ced54f3b39798c78a06fded180291111dfd1b1' })));
|
235
235
|
}
|
236
236
|
static get watchers() { return {
|
237
237
|
"compact": ["handleCompactChange"],
|
@@ -89,7 +89,7 @@ export class NanoBreadcrumb {
|
|
89
89
|
"references": {
|
90
90
|
"Breadcrumb": {
|
91
91
|
"location": "local",
|
92
|
-
"path": "/builds/
|
92
|
+
"path": "/builds/6SyqsxUA/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
|
93
93
|
"id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
|
94
94
|
}
|
95
95
|
}
|
@@ -51,10 +51,12 @@
|
|
51
51
|
--pagination-button-hover: var(--nano-color-primary-700);
|
52
52
|
--pagination-button-active: var(--nano-color-primary-1000);
|
53
53
|
--peek: calc(var(--bleed) / 2);
|
54
|
+
--slide-width: calc((50% + (var(--gap) / 2)) - var(--peek));
|
54
55
|
display: block;
|
55
56
|
position: relative;
|
56
57
|
margin-inline: 0 calc(var(--bleed) * -1);
|
57
58
|
container-type: inline-size;
|
59
|
+
overflow: hidden;
|
58
60
|
}
|
59
61
|
|
60
62
|
.base ::slotted(nano-slide), .base::slotted(nano-slide) {
|
@@ -63,9 +65,16 @@
|
|
63
65
|
display: block;
|
64
66
|
text-align: unset;
|
65
67
|
min-block-size: auto;
|
66
|
-
inline-size:
|
68
|
+
inline-size: var(--slide-width);
|
67
69
|
padding-inline-end: var(--gap);
|
68
70
|
}
|
71
|
+
.base nano-slides {
|
72
|
+
overflow: visible;
|
73
|
+
-webkit-mask-repeat: no-repeat;
|
74
|
+
mask-repeat: no-repeat;
|
75
|
+
-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%);
|
76
|
+
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%);
|
77
|
+
}
|
69
78
|
.base nano-slides[ready]::part(slide-container) {
|
70
79
|
flex-flow: column wrap;
|
71
80
|
justify-content: flex-start;
|
@@ -79,7 +88,7 @@
|
|
79
88
|
.base nano-slides::part(navigation-button--next) {
|
80
89
|
transform: none;
|
81
90
|
block-size: 100%;
|
82
|
-
inline-size: var(--
|
91
|
+
inline-size: calc(var(--peek) + var(--gap));
|
83
92
|
inset-inline-end: 0;
|
84
93
|
inset-block-start: 0;
|
85
94
|
border-radius: 0;
|
@@ -145,18 +154,15 @@
|
|
145
154
|
.base .pagination-btn--active {
|
146
155
|
background: var(--pagination-button-active);
|
147
156
|
}
|
148
|
-
.base nano-slides {
|
149
|
-
overflow: visible;
|
150
|
-
}
|
151
157
|
@container (width < 615px) {
|
152
158
|
.base {
|
153
159
|
--gap: var(--nano-spacing-md);
|
154
160
|
--peek: var(--bleed);
|
161
|
+
--slide-width: calc((100% + var(--gap)) - var(--peek));
|
155
162
|
}
|
156
|
-
.base ::slotted(nano-slide)
|
163
|
+
.base ::slotted(nano-slide) {
|
157
164
|
--img-opacity: calc(1 - max((var(--distance) - 30) / 5, 0));
|
158
165
|
--text-opacity: calc(1 - max((var(--distance) - 30) / 3, 0));
|
159
|
-
inline-size: calc(100% + var(--gap) - var(--peek));
|
160
166
|
}
|
161
167
|
.base .header {
|
162
168
|
flex-direction: column;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<svg width="64" height="64" viewBox="0 0 64 64">
|
2
|
+
<path d="M32.272 33.7249C30.8371 33.7249 29.0852 33.5671 27.0463 33.1002C27.0262 33.0969 27.0062 33.0903 26.9862 33.0837L2.23245 25.4385C1.90876 25.3398 0.273643 24.7808 0.0300427 23.5181C-0.0667298 23.015 0.0300428 22.2456 1.0545 21.4334C1.15461 21.3544 1.26806 21.2985 1.39153 21.2722L29.6324 13.5382C29.7459 13.5053 32.5923 12.7425 37.6679 14.3899L62.4817 21.2755C63.1724 21.4432 63.98 21.9299 64 22.7618C64.0334 24.2021 61.6908 25.4286 55.6475 27.1287L36.8003 33.0706C36.5333 33.1725 34.9582 33.7216 32.2753 33.7216L32.272 33.7249ZM27.4534 31.5053C32.9727 32.7648 36.1729 31.5481 36.2063 31.5382C36.223 31.5317 36.2463 31.5251 36.263 31.5185L55.1603 25.5601C60.0957 24.1692 61.6541 23.2814 62.1413 22.8934C62.118 22.8868 62.0946 22.8802 62.0712 22.8736L37.1974 15.9683C37.1974 15.9683 37.174 15.9617 37.1607 15.9584C32.6157 14.4787 30.1029 15.1166 30.0762 15.1232L1.9755 22.8177C1.68852 23.0742 1.6685 23.209 1.6685 23.2123C1.69853 23.3636 2.20576 23.7056 2.733 23.87L27.4567 31.5053H27.4534Z" />
|
3
|
+
<path d="M31.9617 49.3342C29.1219 49.3342 26.5825 48.8837 24.4468 48.2721C17.7662 46.3616 13.6116 42.613 13.4381 42.4519C13.2679 42.2973 13.1711 42.077 13.1711 41.8501V28.2729C13.1711 27.8191 13.5449 27.4508 14.0054 27.4508C14.4659 27.4508 14.8396 27.8191 14.8396 28.2729V41.4753C15.8374 42.3039 19.5748 45.1812 24.9774 46.7102C33.2865 49.0613 41.4688 47.2922 49.3007 41.4424V28.0032C49.3007 27.5494 49.6744 27.1812 50.1349 27.1812C50.5954 27.1812 50.9692 27.5494 50.9692 28.0032V41.8468C50.9692 42.1 50.849 42.3401 50.6455 42.4979C43.8013 47.7131 37.3409 49.3309 31.9617 49.3309V49.3342Z" />
|
4
|
+
<path d="M59.0746 43.8461C57.4695 43.8461 56.0379 43.2246 55.2638 42.6919C54.9567 42.4815 54.8299 42.0935 54.9534 41.7449L58.0601 33.054C58.1769 32.7252 58.4906 32.5082 58.841 32.5049H58.8443C59.1947 32.5049 59.5084 32.7219 59.6285 33.0442L62.842 41.7351C62.9655 42.0705 62.8554 42.4486 62.5684 42.6656C61.4272 43.5337 60.2058 43.8428 59.0713 43.8428L59.0746 43.8461ZM56.7587 41.6463C57.6163 42.0639 59.3549 42.6558 61.0534 41.6956L58.861 35.7636L56.7587 41.6463Z" />
|
5
|
+
<path d="M58.8477 34.1492H58.841C58.3805 34.1492 58.0101 33.7743 58.0135 33.3205L58.0668 25.3399C58.0668 24.8861 58.4439 24.5244 58.9011 24.5244H58.9078C59.3683 24.5244 59.7387 24.8993 59.7353 25.3531L59.6819 33.3337C59.6819 33.7875 59.3049 34.1492 58.8477 34.1492Z" />
|
6
|
+
</svg>
|
@@ -205,16 +205,16 @@ nav {
|
|
205
205
|
color: var(--color-primary);
|
206
206
|
}
|
207
207
|
.details-wrapper ul > li > ul,
|
208
|
-
.details-wrapper ul > li > .nano-details
|
208
|
+
.details-wrapper ul > li > .nano-details ul {
|
209
209
|
padding: var(--list-gap) 0 0 var(--spacing-l2);
|
210
210
|
gap: var(--list-gap);
|
211
211
|
}
|
212
212
|
.details-wrapper ul > li > ul a,
|
213
|
-
.details-wrapper ul > li > .nano-details
|
213
|
+
.details-wrapper ul > li > .nano-details ul a {
|
214
214
|
color: var(--color-primary) !important;
|
215
215
|
}
|
216
216
|
.details-wrapper ul > li > ul > li > .nano-details > ul,
|
217
|
-
.details-wrapper ul > li > .nano-details
|
217
|
+
.details-wrapper ul > li > .nano-details ul > li > .nano-details ul {
|
218
218
|
padding: var(--list-gap) 0 0 var(--nano-spacing-xl);
|
219
219
|
}
|
220
220
|
.details-wrapper .nano-details .nano-details:not(.nano-details .nano-details .nano-details) {
|
@@ -82,7 +82,7 @@ proto._create = function () {
|
|
82
82
|
// create viewport & slider
|
83
83
|
this.viewport = document.createElement('div');
|
84
84
|
this.viewport.className = 'flickity-viewport';
|
85
|
-
this.viewport.
|
85
|
+
this.viewport.setAttribute('part', 'slide-viewport');
|
86
86
|
this._createSlider();
|
87
87
|
if (this.options.resize || this.options.watchCSS) {
|
88
88
|
window.addEventListener('resize', this);
|
@@ -21,14 +21,13 @@ export default () => {
|
|
21
21
|
this.isLeft = this.direction == leftDirection;
|
22
22
|
const button = (this.element = document.createElement('button'));
|
23
23
|
button.className = 'flickity-button flickity-prev-next-button';
|
24
|
-
button.part.add('navigation-button');
|
25
24
|
if (this.isPrevious) {
|
26
25
|
button.classList.add('previous');
|
27
|
-
button.
|
26
|
+
button.setAttribute('part', 'navigation-button navigation-button--previous');
|
28
27
|
}
|
29
28
|
else {
|
30
29
|
button.classList.add('next');
|
31
|
-
button.
|
30
|
+
button.setAttribute('part', 'navigation-button navigation-button--next');
|
32
31
|
}
|
33
32
|
// prevent button from submitting form http://stackoverflow.com/a/10836076/182183
|
34
33
|
button.setAttribute('type', 'button');
|
@@ -48,7 +47,7 @@ export default () => {
|
|
48
47
|
icon.className =
|
49
48
|
'button-icon ' +
|
50
49
|
(this.isPrevious ? 'button-icon--previous' : 'button-icon--next');
|
51
|
-
icon.
|
50
|
+
icon.setAttribute('part', 'navigation-icon');
|
52
51
|
slot.appendChild(icon);
|
53
52
|
// events
|
54
53
|
this.parent.on('select', this.update.bind(this));
|
@@ -10,7 +10,7 @@
|
|
10
10
|
function getStyleSize(value) {
|
11
11
|
const num = parseFloat(value);
|
12
12
|
// not a percent like '100%', and a number
|
13
|
-
const isValid = value
|
13
|
+
const isValid = value?.indexOf('%') == -1 && !isNaN(num);
|
14
14
|
return isValid && num;
|
15
15
|
}
|
16
16
|
function noop() { }
|
@@ -88,7 +88,6 @@
|
|
88
88
|
}
|
89
89
|
.slideshow.not-ready {
|
90
90
|
inline-size: 100%;
|
91
|
-
max-block-size: 300px;
|
92
91
|
overflow: hidden;
|
93
92
|
}
|
94
93
|
|
@@ -96,7 +95,6 @@
|
|
96
95
|
opacity: 0;
|
97
96
|
transition: opacity 0.2s;
|
98
97
|
display: flex;
|
99
|
-
inline-size: fit-content;
|
100
98
|
block-size: fit-content;
|
101
99
|
}
|
102
100
|
.not-ready .flickity-container {
|