@nanoporetech-digital/components 8.12.0 → 8.12.2
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-CaQNh008.js} +1 -1
- package/dist/cjs/{fullscreen-Bzjv2HGI.js → fullscreen-CYmWUVa6.js} +1 -1
- package/dist/cjs/{lazyload-BNO_n6W8.js → lazyload-CDp0tl8u.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-global-nav.cjs.entry.js +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
- package/dist/cjs/{nano-slides-C2K7j1yc.js → nano-slides-lMA8e6L6.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/global-nav/global-nav.css +1 -1
- 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 -3
- 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-global-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-Brdw1NLw.js} +1 -1
- package/dist/esm/{fullscreen-DWET5K4U.js → fullscreen-DeZTkFNA.js} +1 -1
- package/dist/esm/{lazyload-BSH0U2zW.js → lazyload-D68gi5uV.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-global-nav.entry.js +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +2 -2
- package/dist/esm/{nano-slides-BU8CjO-X.js → nano-slides-DKkSSmWQ.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-Brdw1NLw.js} +1 -1
- package/dist/nano-components/{fullscreen-DWET5K4U.js → fullscreen-DeZTkFNA.js} +1 -1
- package/dist/nano-components/{lazyload-BSH0U2zW.js → lazyload-D68gi5uV.js} +1 -1
- package/dist/nano-components/nano-card-carousel.entry.js +1 -1
- package/dist/nano-components/nano-components.css +16 -12
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-global-nav.entry.js +1 -1
- package/dist/nano-components/nano-icon-button_2.entry.js +1 -1
- package/dist/nano-components/nano-slides-DKkSSmWQ.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/core.css +1 -1
- package/dist/style/core.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/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{x6knoJK1 → 8qhywLzS}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -321,10 +321,10 @@ const Tooltip = class {
|
|
321
321
|
this.popover.destroy();
|
322
322
|
}
|
323
323
|
render() {
|
324
|
-
return (renderer.h(index.Host, { key: '
|
324
|
+
return (renderer.h(index.Host, { key: '47db0fb2f9706960aea19d4b6896c680983ed434', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, renderer.h("slot", { key: '454f02a3cbe81b2b76a93c38f4f750802adaf0fc', onSlotchange: this.handleSlotChange }), renderer.h("div", { key: '2a17c5c7020ec2d699baf993f68b3ee4387f9541', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, renderer.h("div", { key: 'e3caece4446b7c79a9a935b818dbe3eed4fdfa37', part: "base", ref: (el) => (this.tooltip = el), class: {
|
325
325
|
tooltip: true,
|
326
326
|
'tooltip--open': this.open,
|
327
|
-
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, renderer.h("slot", { key: '
|
327
|
+
}, role: "tooltip", "aria-hidden": this.open ? 'false' : 'true' }, renderer.h("slot", { key: 'fe8c00239fca802a242c7d5a25001471ad2f9080', name: "content", onSlotchange: () => this.setLabel() }, this.content), renderer.h("div", { key: '79d9ad01f482731e6995a400b251c45faa5db935', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
328
328
|
}
|
329
329
|
static get watchers() { return {
|
330
330
|
"content": ["setLabel"],
|
@@ -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{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-CYmWUVa6.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-CDp0tl8u.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-CaQNh008.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/8qhywLzS/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;
|
@@ -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,11 +95,9 @@
|
|
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 {
|
103
|
-
inline-size: fit-content;
|
104
101
|
block-size: fit-content;
|
105
102
|
}
|
106
103
|
.flickity-container.slides-ready {
|