@nanoporetech-digital/components 8.14.4 → 8.15.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-C7mRKYJR.js → fade-CvRMkoaU.js} +1 -1
- package/dist/cjs/{fullscreen-C0vzuH0_.js → fullscreen-BirSm9W5.js} +1 -1
- package/dist/cjs/{lazyload-Cqdwd4el.js → lazyload-BpGHgobQ.js} +1 -1
- package/dist/cjs/loader.cjs.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-DFBGKfHj.js → nano-slides-Bxy-R6ss.js} +9 -23
- 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/slides/slides.css +7 -11
- package/dist/collection/components/slides/slides.js +5 -23
- 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-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 +6 -22
- package/dist/components/sticker.js +2 -2
- package/dist/components/tooltip.js +2 -2
- package/dist/esm/{fade-OXhXz-Sa.js → fade-CrX-pf5X.js} +1 -1
- package/dist/esm/{fullscreen-CsGitfqH.js → fullscreen-DRwX7YyH.js} +1 -1
- package/dist/esm/{lazyload-DuEV3IVe.js → lazyload-q28R0Ctb.js} +1 -1
- package/dist/esm/loader.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-Dtmc0c07.js → nano-slides-CHs6RT6T.js} +9 -23
- 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-OXhXz-Sa.js → fade-CrX-pf5X.js} +1 -1
- package/dist/nano-components/{fullscreen-CsGitfqH.js → fullscreen-DRwX7YyH.js} +1 -1
- package/dist/nano-components/{lazyload-DuEV3IVe.js → lazyload-q28R0Ctb.js} +1 -1
- 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-CHs6RT6T.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/types/components/slides/slides.d.ts +0 -2
- package/docs-json.json +2 -2
- package/hydrate/index.js +20 -34
- package/hydrate/index.mjs +20 -34
- package/package.json +2 -2
- package/dist/nano-components/nano-slides-Dtmc0c07.js +0 -22
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{MHdwmaDa → FKs_t1C_}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
|
@@ -2468,7 +2468,7 @@ drag();
|
|
|
2468
2468
|
nowNext();
|
|
2469
2469
|
player();
|
|
2470
2470
|
|
|
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:
|
|
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:1rem;--navbtns-height:1.5rem;--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;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}.pagination{display:flex}.flickity-button{background:var(--navbtns-bg-color);border:none;color:#333;opacity:0.75}.flickity-button:hover{opacity:1;cursor:pointer}.flickity-button:focus-visible{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.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}";
|
|
2472
2472
|
|
|
2473
2473
|
const modulo = (num, div) => {
|
|
2474
2474
|
return ((num % div) + div) % div;
|
|
@@ -2520,18 +2520,8 @@ const Slides = class {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
/** If `true`, show the next / prev buttons. */
|
|
2522
2522
|
navbtns = false;
|
|
2523
|
-
async navbtnsChanged() {
|
|
2524
|
-
Array.from(this._getRoot().querySelectorAll('.flickity-prev-next-button')).forEach((btn) => {
|
|
2525
|
-
btn.hidden = !this.navbtns;
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
2523
|
/** If `true`, show the pagination. */
|
|
2529
2524
|
pager = false;
|
|
2530
|
-
async pagerChanged() {
|
|
2531
|
-
const dots = this._getRoot().querySelector('.flickity-page-dots');
|
|
2532
|
-
if (dots)
|
|
2533
|
-
dots.hidden = !this.pager;
|
|
2534
|
-
}
|
|
2535
2525
|
/** If `true`, show a fullscreen button. */
|
|
2536
2526
|
fullscreenbtn = false;
|
|
2537
2527
|
async fullscreenBtnChanged() {
|
|
@@ -2819,15 +2809,15 @@ const Slides = class {
|
|
|
2819
2809
|
}
|
|
2820
2810
|
async loadFlickityModules(opts) {
|
|
2821
2811
|
if (!this.hasFullScreenModule && opts.fullscreen) {
|
|
2822
|
-
await Promise.resolve().then(function () { return require('./fullscreen-
|
|
2812
|
+
await Promise.resolve().then(function () { return require('./fullscreen-BirSm9W5.js'); });
|
|
2823
2813
|
this.hasFullScreenModule = true;
|
|
2824
2814
|
}
|
|
2825
2815
|
if (!this.hasLazyLoadModule && opts.lazyLoad) {
|
|
2826
|
-
await Promise.resolve().then(function () { return require('./lazyload-
|
|
2816
|
+
await Promise.resolve().then(function () { return require('./lazyload-BpGHgobQ.js'); });
|
|
2827
2817
|
this.hasLazyLoadModule = true;
|
|
2828
2818
|
}
|
|
2829
2819
|
if (!this.hasFadeModule && opts.fade) {
|
|
2830
|
-
await Promise.resolve().then(function () { return require('./fade-
|
|
2820
|
+
await Promise.resolve().then(function () { return require('./fade-CvRMkoaU.js'); });
|
|
2831
2821
|
this.hasFadeModule = true;
|
|
2832
2822
|
}
|
|
2833
2823
|
}
|
|
@@ -2852,8 +2842,6 @@ const Slides = class {
|
|
|
2852
2842
|
this.flickityReady = true;
|
|
2853
2843
|
this.syncflickity = flick;
|
|
2854
2844
|
this.animationChange();
|
|
2855
|
-
this.navbtnsChanged();
|
|
2856
|
-
this.pagerChanged();
|
|
2857
2845
|
this.fullscreenChanged();
|
|
2858
2846
|
this.fullscreenBtnChanged();
|
|
2859
2847
|
this.readyflickity(flick);
|
|
@@ -2883,7 +2871,7 @@ const Slides = class {
|
|
|
2883
2871
|
const flickityOptions = {
|
|
2884
2872
|
cellSelector: renderer.transformTag('nano-slide'),
|
|
2885
2873
|
contain: true,
|
|
2886
|
-
prevNextButtons:
|
|
2874
|
+
prevNextButtons: false,
|
|
2887
2875
|
fullscreen: this.fullscreen,
|
|
2888
2876
|
accessibility: true,
|
|
2889
2877
|
imagesLoaded: true,
|
|
@@ -2960,15 +2948,15 @@ const Slides = class {
|
|
|
2960
2948
|
this.destroyflickity();
|
|
2961
2949
|
}
|
|
2962
2950
|
render() {
|
|
2963
|
-
return (renderer.h(index.Host, { key: '
|
|
2951
|
+
return (renderer.h(index.Host, { key: 'ab3c7c4aee4786601f82e6d83ddb2de195ff8fd7', class: "nano-slides" }, renderer.h("div", { key: 'fbe7dadaddefd92daef76bec6e01dfb7a11aded7', class: {
|
|
2964
2952
|
slideshow: true,
|
|
2965
2953
|
ready: this.ready,
|
|
2966
2954
|
'not-ready': !this.ready,
|
|
2967
|
-
}, part: "base" }, renderer.h("div", { key: '
|
|
2955
|
+
}, part: "base" }, renderer.h("div", { key: 'efef77051a0db1a52586ce3e12baee3cb443d312', ref: (div) => (this.flickityEl = div), class: {
|
|
2968
2956
|
'flickity-container': true,
|
|
2969
2957
|
'slides-ready': this.slidesReady,
|
|
2970
2958
|
'slides-not-ready': !this.slidesReady,
|
|
2971
|
-
}, part: "slide-container" }, renderer.h("slot", { key: '
|
|
2959
|
+
}, part: "slide-container" }, renderer.h("slot", { key: 'cbdf063d45eb964328ade1026c897e02e27567f2', onSlotchange: () => this.update() })), renderer.h("div", { key: 'a68ae1524777a0fbb9369135e4f802cd70b8249f', class: "ui-extras" }, renderer.h("slot", { key: 'ea8f0636dcfabaa7704ed86fa10cdbd5d21db872', name: "ui" })), this.slideCount > 1 && (this.pager || this.navbtns) && (renderer.h("div", { key: '078617be5a5af3ea80886927f2f2b6c8bafd8427', class: "pagination", part: "pagination" }, this.navbtns && (renderer.h("button", { key: 'e02b6f76212c06d49caba900818e2d47c26e2822', class: "flickity-button flickity-prev-next-button previous", part: "navigation-button navigation-button--previous", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, renderer.h("span", { key: '89ed4d4d9db5ba763713ee44331f601d6feea324', class: "button-icon button-icon--previous", part: "navigation-icon" }, renderer.h("slot", { key: '87aa2651613159b1774588db8b0ed8f38932e04a', name: "previous-icon" })))), this.pager && (renderer.h("div", { key: 'e5f94418cef99b8eb98df0a3cd9618c24ea75dbd', class: "flickity-page-dots" }, Array.from({ length: this.slideCount }).map((_, index) => (renderer.h("button", { part: "pagination-item--active", key: index, class: {
|
|
2972
2960
|
'pagination-btn': true,
|
|
2973
2961
|
'pagination-btn--active': this.isActive(index),
|
|
2974
2962
|
'is-selected': this.isActive(index),
|
|
@@ -2977,12 +2965,10 @@ const Slides = class {
|
|
|
2977
2965
|
if (this.isActive(index))
|
|
2978
2966
|
return;
|
|
2979
2967
|
this.slideTo(index);
|
|
2980
|
-
} }, renderer.h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))))));
|
|
2968
|
+
} }, renderer.h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))), this.navbtns && (renderer.h("button", { key: 'd344c575e02818b25c60032953d1a6b2a10c83b5', class: "flickity-button flickity-prev-next-button next", part: "navigation-button navigation-button--next", "aria-label": "Next slide", onClick: () => this.slideNext() }, renderer.h("span", { key: '5cdeac7b43a4469bfacdfd6330a35470b14a419e', class: "button-icon", part: "navigation-icon" }, renderer.h("slot", { key: '541b1c4a50cc57103a43e235a9dfbba39d24fe64', name: "next-icon" })))))))));
|
|
2981
2969
|
}
|
|
2982
2970
|
static get watchers() { return {
|
|
2983
2971
|
"options": ["optionsChanged"],
|
|
2984
|
-
"navbtns": ["navbtnsChanged"],
|
|
2985
|
-
"pager": ["pagerChanged"],
|
|
2986
2972
|
"fullscreenbtn": ["fullscreenBtnChanged"],
|
|
2987
2973
|
"fullscreen": ["fullscreenChanged"],
|
|
2988
2974
|
"animation": ["animationChange"],
|
|
@@ -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: '845be657a2bbfb42718ee9e8d4672ff31756fcc3', class: "nano-sortable" }, renderer.h("div", { key: '9c603a11407cb62ffe50bb6cfd89b47994df21e9', 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: '36a5e7111ed26a7714206c449ffc7be1a46337d1' })));
|
|
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: '1a977444388da596ff3fbf0559ac77a274efce11', 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: 'c36aea91ff263fe145d0eebfe5ba34c3fb33c948' }, renderer.h(Wrapper, { key: '5399b604512fdc7254f01702b5f58fd1ab5725be', class: "step-wrapper" }, renderer.h("ul", { key: '42f2f8adddd37661873ed4b16559b558a4525af4', 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: 'ab41697fed0c7d4282913f8492676008cee1ec63', class: `step-list mobile ${this.cacheKey}` }, renderer.h("nano-dropdown", { key: '73e5bba6d10f193c4e0b6b2ff43919e0b1589bcb', dialogTitle: "Steps", class: "step-dropdown" }, renderer.h("button", { key: '7054eb631e22d22ef7fbcb0c8320e77b288b381f', slot: "trigger", class: "step-trigger" }, renderer.h("div", { key: '8f0816402f31637a1402d1ee1e66bcd086ef6377', 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: '1ab7e9e69dc52d2761b2c1a2c7bdb19cc0cdad0f', class: "step-progress-text" }, renderer.h("strong", { key: 'e760c2e668e5930694a873448154e3f23bf03018' }, this.activeStep + 1), " of", ' ', this.steps.length)), renderer.h("div", { key: '0afdddcdfa767f2d250986360c5ce52a37adc868', class: "step-trigger-text" }, renderer.h("div", { key: '1c200ddd5ca41a6c003c4b4bfa6c6e188a8641ac', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), renderer.h("div", { key: 'c600fd068470ea8ae187c74dc9616e8efb057c9e', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), renderer.h("nano-icon", { key: '053727621ffd9a19c39b9be0766c904391ede136', class: "step-trigger-icon", name: "light/chevron-down" })), renderer.h("nano-menu", { key: '7a578be0c13a7e4edeb40500e30e58d47c917b8e' }, 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: '9760c52934c0b3d6459598dfa3a197927cf7e878', 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: 'abbbd0a9b785792f00a75d411fbc3b882f605032', 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: 'de9552b69657aad9f2015dfa1470a197d490520c', class: "sticker-content", ref: (div) => (this.content = div) }, renderer.h("slot", { key: 'baafb74a16688cd9e1839eb617ceb46fb7e2b23f' })))));
|
|
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: 'd6b4670c20b4ba1434561d9ca12fa31da1a0e20d', 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: 'c7c7a56f8942451a8a9beca4b9126c5f6533f9e3', part: "base", class: "nano-tab-content" }, renderer.h("slot", { key: '662b14c342f751f9d7a4bcbfecb82ae8207ee219' }))));
|
|
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: '8845caa998e72b0408332759c9168013263ce6e4', 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: 'aea506f8d211904e32eaefa75a182147e6b7dc30', 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: '38b4bc37be8a7e637edcdee08fe688d5a834f2a3', name: "start" }), renderer.h("div", { key: '74a09142c68c0d53025cfe0fdabb2adec71affff', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, renderer.h("slot", { key: '5884d06b39b4698196ad87c0d4bfb30da4bc203c' })), renderer.h("slot", { key: '6ff2dfb0a852a7ee95d4360df8b1393ab8f4b50d', name: "end" }), this.closable && !this.disabled && (renderer.h("nano-icon-button", { key: 'd404c1f5cafb40498de53efb50504bd166645145', 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: 'fa8f3bb2dfffee9a213d372282b5902ed56c5a2b', 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: 'da0d773c42fb2c1b9f694fa4b2c307c2c070d67d', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, renderer.h("div", { key: '83f36ec8ff79fa21fb1ae03f1746ccc544ffa7f3', class: "nano-table__overflow" }))), renderer.h("slot", { key: '57821514111245364971a5f85c6ff95309590eb3' })));
|
|
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/FKs_t1C_/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
|
|
93
93
|
"id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
--navbtns-bg-color: transparent;
|
|
58
58
|
--navbtns-icon-color-disabled: var(--dot-color-active);
|
|
59
59
|
--navbtns-bg-color-disabled: transparent;
|
|
60
|
-
--navbtns-width:
|
|
61
|
-
--navbtns-height:
|
|
60
|
+
--navbtns-width: 1rem;
|
|
61
|
+
--navbtns-height: 1.5rem;
|
|
62
62
|
--fsbtn-icon-color: var(--dot-color-active);
|
|
63
63
|
--fsbtn-bg-color: transparent;
|
|
64
64
|
--flip-icon-ltr: 0;
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
display: block;
|
|
67
67
|
-webkit-user-select: none;
|
|
68
68
|
user-select: none;
|
|
69
|
-
overflow: hidden;
|
|
70
69
|
transition: opacity 0.2s;
|
|
71
70
|
opacity: 0;
|
|
72
71
|
max-inline-size: 100vw;
|
|
@@ -165,9 +164,12 @@ https://flickity.metafizzy.co
|
|
|
165
164
|
cursor: grabbing;
|
|
166
165
|
}
|
|
167
166
|
|
|
167
|
+
.pagination {
|
|
168
|
+
display: flex;
|
|
169
|
+
}
|
|
170
|
+
|
|
168
171
|
/* ---- flickity-button ---- */
|
|
169
172
|
.flickity-button {
|
|
170
|
-
position: absolute;
|
|
171
173
|
background: var(--navbtns-bg-color);
|
|
172
174
|
border: none;
|
|
173
175
|
color: #333;
|
|
@@ -179,7 +181,7 @@ https://flickity.metafizzy.co
|
|
|
179
181
|
cursor: pointer;
|
|
180
182
|
}
|
|
181
183
|
|
|
182
|
-
.flickity-button:focus {
|
|
184
|
+
.flickity-button:focus-visible {
|
|
183
185
|
outline: var(--nano-focus-ring);
|
|
184
186
|
outline-offset: var(--nano-focus-ring-offset);
|
|
185
187
|
}
|
|
@@ -228,12 +230,6 @@ https://flickity.metafizzy.co
|
|
|
228
230
|
}
|
|
229
231
|
|
|
230
232
|
/* ---- previous/next buttons ---- */
|
|
231
|
-
.flickity-prev-next-button {
|
|
232
|
-
inset-block-start: 50%;
|
|
233
|
-
/* vertically center */
|
|
234
|
-
transform: translateY(-50%);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
233
|
.flickity-prev-next-button.previous {
|
|
238
234
|
inset-inline-start: 10px;
|
|
239
235
|
}
|
|
@@ -62,18 +62,8 @@ export class Slides {
|
|
|
62
62
|
}
|
|
63
63
|
/** If `true`, show the next / prev buttons. */
|
|
64
64
|
navbtns = false;
|
|
65
|
-
async navbtnsChanged() {
|
|
66
|
-
Array.from(this._getRoot().querySelectorAll('.flickity-prev-next-button')).forEach((btn) => {
|
|
67
|
-
btn.hidden = !this.navbtns;
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
65
|
/** If `true`, show the pagination. */
|
|
71
66
|
pager = false;
|
|
72
|
-
async pagerChanged() {
|
|
73
|
-
const dots = this._getRoot().querySelector('.flickity-page-dots');
|
|
74
|
-
if (dots)
|
|
75
|
-
dots.hidden = !this.pager;
|
|
76
|
-
}
|
|
77
67
|
/** If `true`, show a fullscreen button. */
|
|
78
68
|
fullscreenbtn = false;
|
|
79
69
|
async fullscreenBtnChanged() {
|
|
@@ -394,8 +384,6 @@ export class Slides {
|
|
|
394
384
|
this.flickityReady = true;
|
|
395
385
|
this.syncflickity = flick;
|
|
396
386
|
this.animationChange();
|
|
397
|
-
this.navbtnsChanged();
|
|
398
|
-
this.pagerChanged();
|
|
399
387
|
this.fullscreenChanged();
|
|
400
388
|
this.fullscreenBtnChanged();
|
|
401
389
|
this.readyflickity(flick);
|
|
@@ -425,7 +413,7 @@ export class Slides {
|
|
|
425
413
|
const flickityOptions = {
|
|
426
414
|
cellSelector: transformTag('nano-slide'),
|
|
427
415
|
contain: true,
|
|
428
|
-
prevNextButtons:
|
|
416
|
+
prevNextButtons: false,
|
|
429
417
|
fullscreen: this.fullscreen,
|
|
430
418
|
accessibility: true,
|
|
431
419
|
imagesLoaded: true,
|
|
@@ -502,15 +490,15 @@ export class Slides {
|
|
|
502
490
|
this.destroyflickity();
|
|
503
491
|
}
|
|
504
492
|
render() {
|
|
505
|
-
return (h(Host, { key: '
|
|
493
|
+
return (h(Host, { key: 'ab3c7c4aee4786601f82e6d83ddb2de195ff8fd7', class: "nano-slides" }, h("div", { key: 'fbe7dadaddefd92daef76bec6e01dfb7a11aded7', class: {
|
|
506
494
|
slideshow: true,
|
|
507
495
|
ready: this.ready,
|
|
508
496
|
'not-ready': !this.ready,
|
|
509
|
-
}, part: "base" }, h("div", { key: '
|
|
497
|
+
}, part: "base" }, h("div", { key: 'efef77051a0db1a52586ce3e12baee3cb443d312', ref: (div) => (this.flickityEl = div), class: {
|
|
510
498
|
'flickity-container': true,
|
|
511
499
|
'slides-ready': this.slidesReady,
|
|
512
500
|
'slides-not-ready': !this.slidesReady,
|
|
513
|
-
}, part: "slide-container" }, h("slot", { key: '
|
|
501
|
+
}, part: "slide-container" }, h("slot", { key: 'cbdf063d45eb964328ade1026c897e02e27567f2', onSlotchange: () => this.update() })), h("div", { key: 'a68ae1524777a0fbb9369135e4f802cd70b8249f', class: "ui-extras" }, h("slot", { key: 'ea8f0636dcfabaa7704ed86fa10cdbd5d21db872', name: "ui" })), this.slideCount > 1 && (this.pager || this.navbtns) && (h("div", { key: '078617be5a5af3ea80886927f2f2b6c8bafd8427', class: "pagination", part: "pagination" }, this.navbtns && (h("button", { key: 'e02b6f76212c06d49caba900818e2d47c26e2822', class: "flickity-button flickity-prev-next-button previous", part: "navigation-button navigation-button--previous", "aria-label": "Previous slide", onClick: () => this.slidePrev() }, h("span", { key: '89ed4d4d9db5ba763713ee44331f601d6feea324', class: "button-icon button-icon--previous", part: "navigation-icon" }, h("slot", { key: '87aa2651613159b1774588db8b0ed8f38932e04a', name: "previous-icon" })))), this.pager && (h("div", { key: 'e5f94418cef99b8eb98df0a3cd9618c24ea75dbd', class: "flickity-page-dots" }, Array.from({ length: this.slideCount }).map((_, index) => (h("button", { part: "pagination-item--active", key: index, class: {
|
|
514
502
|
'pagination-btn': true,
|
|
515
503
|
'pagination-btn--active': this.isActive(index),
|
|
516
504
|
'is-selected': this.isActive(index),
|
|
@@ -519,7 +507,7 @@ export class Slides {
|
|
|
519
507
|
if (this.isActive(index))
|
|
520
508
|
return;
|
|
521
509
|
this.slideTo(index);
|
|
522
|
-
} }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))))));
|
|
510
|
+
} }, h("span", { class: "pagination-btn__label" }, "Go to slide ", index + 1)))))), this.navbtns && (h("button", { key: 'd344c575e02818b25c60032953d1a6b2a10c83b5', class: "flickity-button flickity-prev-next-button next", part: "navigation-button navigation-button--next", "aria-label": "Next slide", onClick: () => this.slideNext() }, h("span", { key: '5cdeac7b43a4469bfacdfd6330a35470b14a419e', class: "button-icon", part: "navigation-icon" }, h("slot", { key: '541b1c4a50cc57103a43e235a9dfbba39d24fe64', name: "next-icon" })))))))));
|
|
523
511
|
}
|
|
524
512
|
static get is() { return "nano-slides"; }
|
|
525
513
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1237,12 +1225,6 @@ export class Slides {
|
|
|
1237
1225
|
return [{
|
|
1238
1226
|
"propName": "options",
|
|
1239
1227
|
"methodName": "optionsChanged"
|
|
1240
|
-
}, {
|
|
1241
|
-
"propName": "navbtns",
|
|
1242
|
-
"methodName": "navbtnsChanged"
|
|
1243
|
-
}, {
|
|
1244
|
-
"propName": "pager",
|
|
1245
|
-
"methodName": "pagerChanged"
|
|
1246
1228
|
}, {
|
|
1247
1229
|
"propName": "fullscreenbtn",
|
|
1248
1230
|
"methodName": "fullscreenBtnChanged"
|
|
@@ -732,7 +732,7 @@ export class Sortable {
|
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
render() {
|
|
735
|
-
return (h(Host, { key: '
|
|
735
|
+
return (h(Host, { key: '845be657a2bbfb42718ee9e8d4672ff31756fcc3', class: "nano-sortable" }, h("div", { key: '9c603a11407cb62ffe50bb6cfd89b47994df21e9', 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: '36a5e7111ed26a7714206c449ffc7be1a46337d1' })));
|
|
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: '1a977444388da596ff3fbf0559ac77a274efce11', 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: 'c36aea91ff263fe145d0eebfe5ba34c3fb33c948' }, h(Wrapper, { key: '5399b604512fdc7254f01702b5f58fd1ab5725be', class: "step-wrapper" }, h("ul", { key: '42f2f8adddd37661873ed4b16559b558a4525af4', 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: 'ab41697fed0c7d4282913f8492676008cee1ec63', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '73e5bba6d10f193c4e0b6b2ff43919e0b1589bcb', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '7054eb631e22d22ef7fbcb0c8320e77b288b381f', slot: "trigger", class: "step-trigger" }, h("div", { key: '8f0816402f31637a1402d1ee1e66bcd086ef6377', 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: '1ab7e9e69dc52d2761b2c1a2c7bdb19cc0cdad0f', class: "step-progress-text" }, h("strong", { key: 'e760c2e668e5930694a873448154e3f23bf03018' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: '0afdddcdfa767f2d250986360c5ce52a37adc868', class: "step-trigger-text" }, h("div", { key: '1c200ddd5ca41a6c003c4b4bfa6c6e188a8641ac', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: 'c600fd068470ea8ae187c74dc9616e8efb057c9e', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: '053727621ffd9a19c39b9be0766c904391ede136', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '7a578be0c13a7e4edeb40500e30e58d47c917b8e' }, 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: '9760c52934c0b3d6459598dfa3a197927cf7e878', 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: 'abbbd0a9b785792f00a75d411fbc3b882f605032', 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: 'de9552b69657aad9f2015dfa1470a197d490520c', class: "sticker-content", ref: (div) => (this.content = div) }, h("slot", { key: 'baafb74a16688cd9e1839eb617ceb46fb7e2b23f' })))));
|
|
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: 'fa8f3bb2dfffee9a213d372282b5902ed56c5a2b', 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: 'da0d773c42fb2c1b9f694fa4b2c307c2c070d67d', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '83f36ec8ff79fa21fb1ae03f1746ccc544ffa7f3', class: "nano-table__overflow" }))), h("slot", { key: '57821514111245364971a5f85c6ff95309590eb3' })));
|
|
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: 'd6b4670c20b4ba1434561d9ca12fa31da1a0e20d', 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: 'c7c7a56f8942451a8a9beca4b9126c5f6533f9e3', part: "base", class: "nano-tab-content" }, h("slot", { key: '662b14c342f751f9d7a4bcbfecb82ae8207ee219' }))));
|
|
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: '8845caa998e72b0408332759c9168013263ce6e4', 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: 'aea506f8d211904e32eaefa75a182147e6b7dc30', 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: '38b4bc37be8a7e637edcdee08fe688d5a834f2a3', name: "start" }), h("div", { key: '74a09142c68c0d53025cfe0fdabb2adec71affff', part: "label", ref: (el) => (this.tab = el), tabindex: this.disabled || !this.active || this.href ? '-1' : '0', class: "tab__label" }, h("slot", { key: '5884d06b39b4698196ad87c0d4bfb30da4bc203c' })), h("slot", { key: '6ff2dfb0a852a7ee95d4360df8b1393ab8f4b50d', name: "end" }), this.closable && !this.disabled && (h("nano-icon-button", { key: 'd404c1f5cafb40498de53efb50504bd166645145', 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: '79951f5782653b519fabd8345c2ec0af5cf86f2d', onKeyDown: this.handleKeyDown, onMouseOver: this.handleMouseOver, onMouseOut: this.handleMouseOut, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.handleClick, class: "nano-tooltip" }, h("slot", { key: '6698cb226357c92807393c1fe2f73991c13ead07', onSlotchange: this.handleSlotChange }), h("div", { key: 'dbb8bda886e15850c17c06dca8d9f8924cb62486', ref: (el) => (this.tooltipPositioner = el), class: "tooltip-positioner", popover: "manual" }, h("div", { key: '9b1f5692d592331470c0159229aab8fbcb091b21', 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: '1e6f35227072b696e2cea3cbf93eea26285b20cf', name: "content", onSlotchange: () => this.setLabel() }, this.content), h("div", { key: 'dab2de407dae223b4ac229283d9dedb8a69e4919', class: "tooltip-arrow", "data-popper-arrow": true })))));
|
|
234
234
|
}
|
|
235
235
|
static get is() { return "nano-tooltip"; }
|
|
236
236
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '845be657a2bbfb42718ee9e8d4672ff31756fcc3', class: "nano-sortable" }, h("div", { key: '9c603a11407cb62ffe50bb6cfd89b47994df21e9', 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: '36a5e7111ed26a7714206c449ffc7be1a46337d1' })));
|
|
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: '1a977444388da596ff3fbf0559ac77a274efce11', 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: 'c36aea91ff263fe145d0eebfe5ba34c3fb33c948' }, h(Wrapper, { key: '5399b604512fdc7254f01702b5f58fd1ab5725be', class: "step-wrapper" }, h("ul", { key: '42f2f8adddd37661873ed4b16559b558a4525af4', 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: 'ab41697fed0c7d4282913f8492676008cee1ec63', class: `step-list mobile ${this.cacheKey}` }, h("nano-dropdown", { key: '73e5bba6d10f193c4e0b6b2ff43919e0b1589bcb', dialogTitle: "Steps", class: "step-dropdown" }, h("button", { key: '7054eb631e22d22ef7fbcb0c8320e77b288b381f', slot: "trigger", class: "step-trigger" }, h("div", { key: '8f0816402f31637a1402d1ee1e66bcd086ef6377', 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: '1ab7e9e69dc52d2761b2c1a2c7bdb19cc0cdad0f', class: "step-progress-text" }, h("strong", { key: 'e760c2e668e5930694a873448154e3f23bf03018' }, this.activeStep + 1), " of", ' ', this.steps.length)), h("div", { key: '0afdddcdfa767f2d250986360c5ce52a37adc868', class: "step-trigger-text" }, h("div", { key: '1c200ddd5ca41a6c003c4b4bfa6c6e188a8641ac', class: "step-trigger-now" }, this.steps[this.activeStep | 0]?.title || 'Select a step'), h("div", { key: 'c600fd068470ea8ae187c74dc9616e8efb057c9e', class: "step-trigger-next" }, this.steps[this.activeStep + 1]?.title || 'Next step')), h("nano-icon", { key: '053727621ffd9a19c39b9be0766c904391ede136', class: "step-trigger-icon", name: "light/chevron-down" })), h("nano-menu", { key: '7a578be0c13a7e4edeb40500e30e58d47c917b8e' }, 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: 'd6b4670c20b4ba1434561d9ca12fa31da1a0e20d', 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: 'c7c7a56f8942451a8a9beca4b9126c5f6533f9e3', part: "base", class: "nano-tab-content" }, h("slot", { key: '662b14c342f751f9d7a4bcbfecb82ae8207ee219' }))));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return tabContentCss; }
|
|
33
33
|
}, [257, "nano-tab-content", {
|