@nanoporetech-digital/components 8.17.1 → 8.17.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/nano-alert.cjs.entry.js +1 -1
- package/dist/cjs/nano-avatar_5.cjs.entry.js +17 -7
- package/dist/cjs/nano-details.cjs.entry.js +1 -2
- package/dist/cjs/nano-dialog.cjs.entry.js +1 -1
- package/dist/cjs/nano-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/nano-in-page-nav.cjs.entry.js +1 -1
- package/dist/cjs/nano-input-otp.cjs.entry.js +1 -2
- package/dist/cjs/nano-menu-drawer.cjs.entry.js +1 -1
- package/dist/cjs/nano-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/{slot-CM4lrtVE.js → slot-CfuOT0U4.js} +2 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/global-search-results/global-search-results.js +16 -6
- package/dist/collection/utils/slot.js +2 -3
- package/dist/components/global-search-results.js +16 -6
- package/dist/components/slot.js +2 -3
- package/dist/esm/nano-alert.entry.js +1 -1
- package/dist/esm/nano-avatar_5.entry.js +17 -7
- package/dist/esm/nano-details.entry.js +1 -2
- package/dist/esm/nano-dialog.entry.js +1 -1
- package/dist/esm/nano-dropdown_2.entry.js +1 -1
- package/dist/esm/nano-in-page-nav.entry.js +1 -1
- package/dist/esm/nano-input-otp.entry.js +1 -2
- package/dist/esm/nano-menu-drawer.entry.js +1 -1
- package/dist/esm/nano-nav-item.entry.js +1 -1
- package/dist/esm/{slot-BeXeAw-u.js → slot-Crs4khNK.js} +2 -3
- package/dist/nano-components/nano-alert.entry.js +1 -1
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-details.entry.js +1 -1
- package/dist/nano-components/nano-dialog.entry.js +1 -1
- package/dist/nano-components/nano-dropdown_2.entry.js +1 -1
- package/dist/nano-components/nano-in-page-nav.entry.js +1 -1
- package/dist/nano-components/nano-input-otp.entry.js +1 -1
- package/dist/nano-components/nano-menu-drawer.entry.js +1 -1
- package/dist/nano-components/nano-nav-item.entry.js +1 -1
- package/dist/nano-components/slot-Crs4khNK.js +4 -0
- package/docs-json.json +2 -2
- package/hydrate/index.js +18 -8
- package/hydrate/index.mjs +18 -8
- package/package.json +2 -2
- package/dist/nano-components/slot-BeXeAw-u.js +0 -4
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{ZCT-PoHy → uzusAVFD}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
|
@@ -8,7 +8,7 @@ var modal = require('./modal-BlzeVZW4.js');
|
|
|
8
8
|
var scroll = require('./scroll-C6pO9RvO.js');
|
|
9
9
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
10
10
|
var activeElement = require('./active-element-Vtuxns0n.js');
|
|
11
|
-
var slot = require('./slot-
|
|
11
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
12
12
|
require('./tabbable-C-YwPfjA.js');
|
|
13
13
|
require('./dom-Dxk5vXYq.js');
|
|
14
14
|
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DGttnXif.js');
|
|
|
7
7
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
8
8
|
var modal = require('./modal-BlzeVZW4.js');
|
|
9
9
|
var scroll = require('./scroll-C6pO9RvO.js');
|
|
10
|
-
var slot = require('./slot-
|
|
10
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
11
11
|
var events = require('./events-pBdXJwIU.js');
|
|
12
12
|
var componentStore = require('./component-store-C5eBOK0w.js');
|
|
13
13
|
var activeElement = require('./active-element-Vtuxns0n.js');
|
|
@@ -438,7 +438,17 @@ const GlobalSearchResults = class {
|
|
|
438
438
|
this.algoliaEle.query = meta.query;
|
|
439
439
|
};
|
|
440
440
|
handleNanoFilterChanged() {
|
|
441
|
-
this.
|
|
441
|
+
if (!this.algoliaEle.showResults ||
|
|
442
|
+
!this.algoliaResultsEle?.querySelector('.topbar'))
|
|
443
|
+
return;
|
|
444
|
+
const topBar = this.algoliaResultsEle.querySelector('.topbar');
|
|
445
|
+
if (topBar.scrollIntoViewIfNeeded) {
|
|
446
|
+
// @ts-expect-error - scrollIntoViewIfNeeded is not standard
|
|
447
|
+
topBar.scrollIntoViewIfNeeded();
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
topBar.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
451
|
+
}
|
|
442
452
|
}
|
|
443
453
|
handleReorder(e) {
|
|
444
454
|
if (e
|
|
@@ -547,8 +557,8 @@ const GlobalSearchResults = class {
|
|
|
547
557
|
objectIDs: [hit.dataset.hitId],
|
|
548
558
|
positions: [Number(hit.dataset.hitCount) + 1],
|
|
549
559
|
});
|
|
560
|
+
this.closeSearch();
|
|
550
561
|
}
|
|
551
|
-
this.closeSearch();
|
|
552
562
|
};
|
|
553
563
|
showFiltersClick = () => {
|
|
554
564
|
this.filtersDiv.tabIndex = -1;
|
|
@@ -639,12 +649,12 @@ const GlobalSearchResults = class {
|
|
|
639
649
|
this.ro.observe(this.el);
|
|
640
650
|
}
|
|
641
651
|
render() {
|
|
642
|
-
return (renderer.h(index.Host, { key: '
|
|
652
|
+
return (renderer.h(index.Host, { key: '63af990582466961e1cf02c9e67bd8cffa82e620', class: {
|
|
643
653
|
small: this.currentWidth < 780,
|
|
644
654
|
'nano-global-search-results': true,
|
|
645
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, renderer.h("nano-algolia", { key: '
|
|
655
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, renderer.h("nano-algolia", { key: 'ea81b7334b7d2edb65328f65c70db0f75b48820c', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
|
|
646
656
|
// @ts-expect-error this bubbles from nano-algolia-filter
|
|
647
|
-
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, renderer.h("template", { key: '
|
|
657
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, renderer.h("template", { key: '10cf57aac61c6b40cd3a285ddfd03b483b9d131d', slot: "template" },
|
|
648
658
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
|
649
659
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
|
650
660
|
<script type="text/template" slot="start-template">
|
|
@@ -1022,7 +1032,7 @@ const GlobalSearchResults = class {
|
|
|
1022
1032
|
</div>
|
|
1023
1033
|
</div>
|
|
1024
1034
|
{{ /if }}
|
|
1025
|
-
</div>`), renderer.h("div", { key: '
|
|
1035
|
+
</div>`), renderer.h("div", { key: '531d1aaf58fe5df465d93998f9448207d23de76a', slot: "output" }), renderer.h("slot", { key: '66231f02547592a1b03a87b3f3e237c527befc38' }))));
|
|
1026
1036
|
}
|
|
1027
1037
|
static get watchers() { return {
|
|
1028
1038
|
"algoliaEle": ["handleAlgoliaCredsChange", "handleAlgoliaIndexChange", "handleAlgoliaEleChange"],
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DGttnXif.js');
|
|
7
7
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
8
|
-
var slot = require('./slot-
|
|
9
|
-
require('./dom-Dxk5vXYq.js');
|
|
8
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
10
9
|
|
|
11
10
|
const detailsCss = ":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{font-family:inherit;font-size:inherit;font-stretch:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;--padding:var(--nano-spacing-md);--btn-padding:var(--padding);--btn-bg-color:transparent;--btn-bg-color--hover:var(--nano-color-primary-100);--btn-bg-color--active:var(--nano-color-primary-300);--content-padding:var(--padding);display:block;border:1px solid var(--nano-color-neutral-300);color:var(--nano-color-neutral-1400)}:host([size=small]){--padding:var(--nano-spacing-sm) 0.9375rem}:host([size=large]){--padding:var(--nano-spacing-l)}:host([size=large]) .header{font-weight:var(--nano-font-weight-normal);font-size:var(--nano-font-size-lg);line-height:var(--nano-line-height-dense);text-wrap:balance}:host([disabled]){opacity:0.5}.header{all:unset;cursor:pointer;padding:var(--btn-padding);position:relative;display:flex;flex-wrap:wrap;align-items:center;background:var(--btn-bg-color);color:inherit;font-weight:var(--nano-font-weight-normal);font-size:var(--nano-font-size-md);line-height:var(--nano-line-height-dense);text-wrap:balance}.header::-webkit-details-marker{display:none}.header:focus{outline:none}.header:not([aria-disabled=true]):focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.header:not([aria-disabled=true]):hover{background:var(--btn-bg-color--hover)}.header:not([aria-disabled=true]):active{background:var(--btn-bg-color--active)}.disabled .header{cursor:not-allowed}.header .label{inline-size:100%;max-inline-size:100%;max-block-size:100%;flex:1;display:inline-block}.header .icon{line-height:0;flex-direction:column;justify-content:center;display:inline-block;color:var(--nano-color-primary-1200)}.header .icon .default-icon{rotate:0deg;transform-origin:center;transition:var(--nano-transition-x-fast) ease rotate}:host([open]) .header .icon .default-icon{rotate:180deg}.header .icon--start{margin-inline:0 var(--btn-padding);margin-block:0}.header .icon--end{margin-inline:var(--btn-padding) 0;margin-block:0}.header .icon ::slotted(.nano-icon),.header .icon::slotted(.nano-icon){color:currentcolor;transition:var(--nano-transition-x-fast) ease rotate;transform-origin:center}.body{display:grid;grid-template-rows:0fr;transition:all var(--nano-transition-fast) ease-out;opacity:0}:host([open]) .body{grid-template-rows:1fr;opacity:1}.content-wrapper{overflow:hidden}.content{padding:var(--content-padding)}";
|
|
12
11
|
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DGttnXif.js');
|
|
|
7
7
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
8
8
|
var modal = require('./modal-BlzeVZW4.js');
|
|
9
9
|
var scroll = require('./scroll-C6pO9RvO.js');
|
|
10
|
-
var slot = require('./slot-
|
|
10
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
11
11
|
var componentStore = require('./component-store-C5eBOK0w.js');
|
|
12
12
|
var tabbable = require('./tabbable-C-YwPfjA.js');
|
|
13
13
|
require('./dom-Dxk5vXYq.js');
|
|
@@ -9,7 +9,7 @@ var popover = require('./popover-CU5-yMCD.js');
|
|
|
9
9
|
var tabbable = require('./tabbable-C-YwPfjA.js');
|
|
10
10
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
11
11
|
var dom = require('./dom-Dxk5vXYq.js');
|
|
12
|
-
var slot = require('./slot-
|
|
12
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
13
13
|
|
|
14
14
|
const dropdownCss = ":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{--width:auto;--border:none;--border-radius:0px;--background:var(--nano-color-neutral-75);--padding:0 0;--overflow:auto;--dropdown-z-index:var(--nano-z-index-dropdown);--min-width:0;--max-height:none;--box-shadow:var(--nano-shadow-l2);--menu-height:calc(100vh - 200px);display:inline-block}.dropdown{position:relative}.dropdown__trigger{display:block}.dropdown__positioner{position:absolute;z-index:var(--dropdown-z-index);min-inline-size:var(--min-width);border:0;background:none;padding:0;overflow:visible;color:unset}.dropdown__positioner::backdrop{display:none}.dropdown__positioner[popover],.dropdown__positioner:popover-open{inset:unset}@media (width <= 35.9375em){.dropdown__positioner{z-index:100}}.dropdown__panel{padding:var(--padding);background:var(--background);min-inline-size:var(--min-width);inline-size:var(--width);border:var(--border);border-radius:var(--border-radius);color:currentcolor;box-shadow:var(--box-shadow);opacity:0;transition:var(--nano-transition-x-fast) ease opacity, var(--nano-transition-x-fast) ease transform, var(--nano-transition-fast) ease min-block-size;min-block-size:20px;overflow:var(--overflow);max-block-size:var(--max-height);box-sizing:content-box !important}.dropdown__panel.loading{overflow-y:hidden}.dropdown__panel.top{transform:translateY(-20px) translateZ(0)}.dropdown__panel.bottom{transform:translateY(20px) translateZ(0)}.dropdown__positioner.popover-visible .dropdown__panel{opacity:1;transform:translateY(0) translateZ(0)}.dropdown__panel ::slotted(.nano-menu){max-block-size:var(--menu-height)}.dropdown__accessible-title{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}";
|
|
15
15
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DGttnXif.js');
|
|
7
7
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
8
|
-
var slot = require('./slot-
|
|
8
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
9
9
|
var dom = require('./dom-Dxk5vXYq.js');
|
|
10
10
|
var scroll = require('./scroll-C6pO9RvO.js');
|
|
11
11
|
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DGttnXif.js');
|
|
7
|
-
var slot = require('./slot-
|
|
8
|
-
require('./dom-Dxk5vXYq.js');
|
|
7
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
9
8
|
|
|
10
9
|
const inputOtpCss = ".sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{box-sizing:border-box}[hidden].sc-nano-input-otp{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{box-sizing:border-box}[hidden].sc-nano-input-otp{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-input-otp-h{--color:initial;--min-width:40px;--width:40px;--height:50px;--gap:8px;--icon-size:var(--nano-pictogram-size-small);--inline-padding:calc(var(--icon-size) + var(--gap));--spacing:var(--nano-spacing-xl);--separator-width:7px;--separator-height:1px;--separator-border-radius:0;--separator-color:var(--nano-color-primary-1000);--highlight-color-valid:var(--nano-color-success-1100);--highlight-color-invalid:var(--nano-color-warning-1100);--border-radius:8px;--border-color:var(--nano-color-neutral-700);--border-width:1px;display:block;position:relative;margin-inline:var(--inline-padding)}.input-otp-container.sc-nano-input-otp{position:relative;inline-size:fit-content;block-size:fit-content;margin:0 auto}.input-otp-group.sc-nano-input-otp{display:flex;align-items:center;justify-content:center;gap:var(--gap)}.native-wrapper.sc-nano-input-otp{display:flex;align-items:center;justify-content:center;min-inline-size:var(--min-width)}.native-input.sc-nano-input-otp{border-radius:var(--border-radius);inline-size:var(--width);min-inline-size:inherit;block-size:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;appearance:none}.input-otp-description.sc-nano-input-otp{color:currentcolor;font-size:var(--nano-font-size-xs);line-height:var(--nano-line-height-normal);text-align:center;position:relative;margin-block-start:var(--spacing)}.input-otp-description-hidden.sc-nano-input-otp{display:none}.input-otp-separator.sc-nano-input-otp{border-radius:var(--separator-border-radius);flex-shrink:0;inline-size:var(--separator-width);block-size:var(--separator-height);background:var(--separator-color)}.input-otp-disabled.sc-nano-input-otp-h .input-otp-description.sc-nano-input-otp,.input-otp-disabled.sc-nano-input-otp-h .input-otp-group.sc-nano-input-otp{--color:var(--nano-color-neutral-700);opacity:0.5}.input-otp-disabled.sc-nano-input-otp-h,.input-otp-disabled.sc-nano-input-otp-h .native-input.sc-nano-input-otp:disabled{cursor:not-allowed}.has-focus.sc-nano-input-otp-h .native-input.sc-nano-input-otp:focus{outline:var(--nano-focus-ring)}.nano-invalid.sc-nano-input-otp-h .native-input.sc-nano-input-otp{border-color:var(--highlight-color-invalid)}.nano-valid.sc-nano-input-otp-h .native-input.sc-nano-input-otp{border-color:var(--highlight-color-valid)}.input-otp-icon.sc-nano-input-otp{position:absolute;inset-block-start:50%;transform:translateY(-43%);inset-inline-end:calc((var(--gap) + var(--icon-size)) * -1);inline-size:var(--icon-size);block-size:var(--icon-size);display:flex;align-items:center}.input-otp-icon--valid.sc-nano-input-otp{color:var(--nano-color-success-1100)}.input-otp-icon--invalid.sc-nano-input-otp{color:var(--nano-color-warning-1100)}";
|
|
11
10
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
var index = require('./index-DGttnXif.js');
|
|
7
7
|
var dom = require('./dom-Dxk5vXYq.js');
|
|
8
8
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
9
|
-
var slot = require('./slot-
|
|
9
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
10
10
|
|
|
11
11
|
const menuDrawerCss = ":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{--padding-top:13px;--padding-end:13px;--padding-bottom:13px;--padding-start:13px;--icon-size:19px;--font-size:var(--nano-font-size-xs);--bg-color:var(--nano-color-surface-50);--bg-color-hover:var(--nano-color-neutral-75);--bg-color-selected:var(--nano-color-neutral-300);--bg-color-open:var(--nano-color-neutral-300);--content-color:var(--nano-color-neutral-1400);--divider-color:var(--nano-color-neutral-300);--global-nav-height:76px;--menu-width:calc((var(--padding-end) + var(--padding-start)) + var(--icon-size));color-scheme:dark;display:block;z-index:1;background:var(--bg-color);color:var(--content-color);min-block-size:100%}:host(.hide){display:none}.head{border-block-end:var(--divider-color) 1px solid}.container{inset-inline-end:auto;color:var(--content-color);inline-size:var(--menu-width);transition:inline-size 0.3s ease;inset-block-start:var(--global-nav-height);position:sticky;display:flex;flex-direction:column;block-size:100%;max-block-size:calc(100vh - var(--global-nav-height))}:host(.open) .container{inline-size:auto}.content-wrap{inset-inline-start:0;inset-block-start:0;inline-size:inherit;background:var(--bg-color);font-size:var(--font-size);line-height:1;display:flex;flex-direction:column;align-items:stretch;flex:1;box-shadow:var(--nano-shadow-ls)}.content-wrap.secondary-open{box-shadow:none}.content-wrap::after{content:\"\";position:absolute;inset:calc(var(--global-nav-height) * -1) 0 0;background-color:var(--bg-color);z-index:-1}.content{inline-size:auto;display:flex;flex-direction:column;overflow:hidden visible;flex:1}.collapse-btn{all:unset;padding-block:6px;margin-block-start:5px;padding-inline:var(--padding-start) var(--padding-end);inline-size:100%;display:flex;justify-items:flex-start;appearance:none;cursor:pointer;font-size:var(--icon-size)}.collapse-btn:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.collapse-btn:hover{background-color:var(--bg-color-hover)}.collapse-btn:active{background-color:var(--bg-color-selected)}.collapse-btn .nano-icon{transition:var(--nano-transition-x-fast) rotate ease-in-out;rotate:0deg}:host(.open) .collapse-btn .nano-icon{rotate:180deg}.visually-hidden{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}.foot{margin-block:auto var(--padding-bottom)}";
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DGttnXif.js');
|
|
|
7
7
|
var dom = require('./dom-Dxk5vXYq.js');
|
|
8
8
|
var tabbable = require('./tabbable-C-YwPfjA.js');
|
|
9
9
|
var renderer = require('./renderer-jVpDRMfV.js');
|
|
10
|
-
var slot = require('./slot-
|
|
10
|
+
var slot = require('./slot-CfuOT0U4.js');
|
|
11
11
|
var activeElement = require('./active-element-Vtuxns0n.js');
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
var index = require('./index-DGttnXif.js');
|
|
7
|
-
var dom = require('./dom-Dxk5vXYq.js');
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Given an element (which can either be within a shadowRoot or not) find it's innerText
|
|
@@ -66,7 +65,7 @@ class HasSlotController {
|
|
|
66
65
|
let childNodes;
|
|
67
66
|
if (this.host.shadowRoot) {
|
|
68
67
|
// * Regular shadow DOM component *
|
|
69
|
-
childNodes = [...this.host.
|
|
68
|
+
childNodes = [...this.host.childNodes];
|
|
70
69
|
}
|
|
71
70
|
else if (!this.host.classList.contains('hydrated') &&
|
|
72
71
|
this.host.__childNodes) {
|
|
@@ -95,7 +94,7 @@ class HasSlotController {
|
|
|
95
94
|
hasNamedSlot(name) {
|
|
96
95
|
if (!this.host)
|
|
97
96
|
return false;
|
|
98
|
-
return
|
|
97
|
+
return !!this.host.querySelector(`[slot="${name}"]`);
|
|
99
98
|
}
|
|
100
99
|
has(slotName) {
|
|
101
100
|
return slotName === '[default]'
|
|
@@ -89,7 +89,7 @@ export class NanoBreadcrumb {
|
|
|
89
89
|
"references": {
|
|
90
90
|
"Breadcrumb": {
|
|
91
91
|
"location": "local",
|
|
92
|
-
"path": "/builds/
|
|
92
|
+
"path": "/builds/uzusAVFD/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
|
|
93
93
|
"id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -70,7 +70,17 @@ export class GlobalSearchResults {
|
|
|
70
70
|
this.algoliaEle.query = meta.query;
|
|
71
71
|
};
|
|
72
72
|
handleNanoFilterChanged() {
|
|
73
|
-
this.
|
|
73
|
+
if (!this.algoliaEle.showResults ||
|
|
74
|
+
!this.algoliaResultsEle?.querySelector('.topbar'))
|
|
75
|
+
return;
|
|
76
|
+
const topBar = this.algoliaResultsEle.querySelector('.topbar');
|
|
77
|
+
if (topBar.scrollIntoViewIfNeeded) {
|
|
78
|
+
// @ts-expect-error - scrollIntoViewIfNeeded is not standard
|
|
79
|
+
topBar.scrollIntoViewIfNeeded();
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
topBar.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
83
|
+
}
|
|
74
84
|
}
|
|
75
85
|
handleReorder(e) {
|
|
76
86
|
if (e
|
|
@@ -179,8 +189,8 @@ export class GlobalSearchResults {
|
|
|
179
189
|
objectIDs: [hit.dataset.hitId],
|
|
180
190
|
positions: [Number(hit.dataset.hitCount) + 1],
|
|
181
191
|
});
|
|
192
|
+
this.closeSearch();
|
|
182
193
|
}
|
|
183
|
-
this.closeSearch();
|
|
184
194
|
};
|
|
185
195
|
showFiltersClick = () => {
|
|
186
196
|
this.filtersDiv.tabIndex = -1;
|
|
@@ -272,12 +282,12 @@ export class GlobalSearchResults {
|
|
|
272
282
|
this.ro.observe(this.el);
|
|
273
283
|
}
|
|
274
284
|
render() {
|
|
275
|
-
return (h(Host, { key: '
|
|
285
|
+
return (h(Host, { key: '63af990582466961e1cf02c9e67bd8cffa82e620', class: {
|
|
276
286
|
small: this.currentWidth < 780,
|
|
277
287
|
'nano-global-search-results': true,
|
|
278
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '
|
|
288
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: 'ea81b7334b7d2edb65328f65c70db0f75b48820c', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
|
|
279
289
|
// @ts-expect-error this bubbles from nano-algolia-filter
|
|
280
|
-
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '
|
|
290
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '10cf57aac61c6b40cd3a285ddfd03b483b9d131d', slot: "template" },
|
|
281
291
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
|
282
292
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
|
283
293
|
<script type="text/template" slot="start-template">
|
|
@@ -655,7 +665,7 @@ export class GlobalSearchResults {
|
|
|
655
665
|
</div>
|
|
656
666
|
</div>
|
|
657
667
|
{{ /if }}
|
|
658
|
-
</div>`), h("div", { key: '
|
|
668
|
+
</div>`), h("div", { key: '531d1aaf58fe5df465d93998f9448207d23de76a', slot: "output" }), h("slot", { key: '66231f02547592a1b03a87b3f3e237c527befc38' }))));
|
|
659
669
|
}
|
|
660
670
|
static get is() { return "nano-global-search-results"; }
|
|
661
671
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
4
|
import { Build, forceUpdate, getElement } from "@stencil/core";
|
|
5
|
-
import { getDirectChildren } from "./dom";
|
|
6
5
|
/**
|
|
7
6
|
* Given a slot, this function iterates over all of its assigned elements and text nodes and returns the concatenated
|
|
8
7
|
* HTML as a string. This is useful because we can't use slot.innerHTML as an alternative.
|
|
@@ -82,7 +81,7 @@ export class HasSlotController {
|
|
|
82
81
|
let childNodes;
|
|
83
82
|
if (this.host.shadowRoot) {
|
|
84
83
|
// * Regular shadow DOM component *
|
|
85
|
-
childNodes = [...this.host.
|
|
84
|
+
childNodes = [...this.host.childNodes];
|
|
86
85
|
}
|
|
87
86
|
else if (!this.host.classList.contains('hydrated') &&
|
|
88
87
|
this.host.__childNodes) {
|
|
@@ -111,7 +110,7 @@ export class HasSlotController {
|
|
|
111
110
|
hasNamedSlot(name) {
|
|
112
111
|
if (!this.host)
|
|
113
112
|
return false;
|
|
114
|
-
return
|
|
113
|
+
return !!this.host.querySelector(`[slot="${name}"]`);
|
|
115
114
|
}
|
|
116
115
|
has(slotName) {
|
|
117
116
|
return slotName === '[default]'
|
|
@@ -117,7 +117,17 @@ const GlobalSearchResults = /*@__PURE__*/ proxyCustomElement(class GlobalSearchR
|
|
|
117
117
|
this.algoliaEle.query = meta.query;
|
|
118
118
|
};
|
|
119
119
|
handleNanoFilterChanged() {
|
|
120
|
-
this.
|
|
120
|
+
if (!this.algoliaEle.showResults ||
|
|
121
|
+
!this.algoliaResultsEle?.querySelector('.topbar'))
|
|
122
|
+
return;
|
|
123
|
+
const topBar = this.algoliaResultsEle.querySelector('.topbar');
|
|
124
|
+
if (topBar.scrollIntoViewIfNeeded) {
|
|
125
|
+
// @ts-expect-error - scrollIntoViewIfNeeded is not standard
|
|
126
|
+
topBar.scrollIntoViewIfNeeded();
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
topBar.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
130
|
+
}
|
|
121
131
|
}
|
|
122
132
|
handleReorder(e) {
|
|
123
133
|
if (e
|
|
@@ -226,8 +236,8 @@ const GlobalSearchResults = /*@__PURE__*/ proxyCustomElement(class GlobalSearchR
|
|
|
226
236
|
objectIDs: [hit.dataset.hitId],
|
|
227
237
|
positions: [Number(hit.dataset.hitCount) + 1],
|
|
228
238
|
});
|
|
239
|
+
this.closeSearch();
|
|
229
240
|
}
|
|
230
|
-
this.closeSearch();
|
|
231
241
|
};
|
|
232
242
|
showFiltersClick = () => {
|
|
233
243
|
this.filtersDiv.tabIndex = -1;
|
|
@@ -319,12 +329,12 @@ const GlobalSearchResults = /*@__PURE__*/ proxyCustomElement(class GlobalSearchR
|
|
|
319
329
|
this.ro.observe(this.el);
|
|
320
330
|
}
|
|
321
331
|
render() {
|
|
322
|
-
return (h(Host, { key: '
|
|
332
|
+
return (h(Host, { key: '63af990582466961e1cf02c9e67bd8cffa82e620', class: {
|
|
323
333
|
small: this.currentWidth < 780,
|
|
324
334
|
'nano-global-search-results': true,
|
|
325
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '
|
|
335
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: 'ea81b7334b7d2edb65328f65c70db0f75b48820c', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
|
|
326
336
|
// @ts-expect-error this bubbles from nano-algolia-filter
|
|
327
|
-
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '
|
|
337
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '10cf57aac61c6b40cd3a285ddfd03b483b9d131d', slot: "template" },
|
|
328
338
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
|
329
339
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
|
330
340
|
<script type="text/template" slot="start-template">
|
|
@@ -702,7 +712,7 @@ const GlobalSearchResults = /*@__PURE__*/ proxyCustomElement(class GlobalSearchR
|
|
|
702
712
|
</div>
|
|
703
713
|
</div>
|
|
704
714
|
{{ /if }}
|
|
705
|
-
</div>`), h("div", { key: '
|
|
715
|
+
</div>`), h("div", { key: '531d1aaf58fe5df465d93998f9448207d23de76a', slot: "output" }), h("slot", { key: '66231f02547592a1b03a87b3f3e237c527befc38' }))));
|
|
706
716
|
}
|
|
707
717
|
static get watchers() { return {
|
|
708
718
|
"algoliaEle": ["handleAlgoliaCredsChange", "handleAlgoliaIndexChange", "handleAlgoliaEleChange"],
|
package/dist/components/slot.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
4
|
import { getElement, Build, forceUpdate } from '@stencil/core/internal/client';
|
|
5
|
-
import { g as getDirectChildren } from './dom.js';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Given an element (which can either be within a shadowRoot or not) find it's innerText
|
|
@@ -64,7 +63,7 @@ class HasSlotController {
|
|
|
64
63
|
let childNodes;
|
|
65
64
|
if (this.host.shadowRoot) {
|
|
66
65
|
// * Regular shadow DOM component *
|
|
67
|
-
childNodes = [...this.host.
|
|
66
|
+
childNodes = [...this.host.childNodes];
|
|
68
67
|
}
|
|
69
68
|
else if (!this.host.classList.contains('hydrated') &&
|
|
70
69
|
this.host.__childNodes) {
|
|
@@ -93,7 +92,7 @@ class HasSlotController {
|
|
|
93
92
|
hasNamedSlot(name) {
|
|
94
93
|
if (!this.host)
|
|
95
94
|
return false;
|
|
96
|
-
return
|
|
95
|
+
return !!this.host.querySelector(`[slot="${name}"]`);
|
|
97
96
|
}
|
|
98
97
|
has(slotName) {
|
|
99
98
|
return slotName === '[default]'
|
|
@@ -6,7 +6,7 @@ import { M as Modal } from './modal-CY_3_LJ7.js';
|
|
|
6
6
|
import { l as lockBodyScrolling, u as unlockBodyScrolling } from './scroll-1nFw8CNk.js';
|
|
7
7
|
import { h, t as transformTag } from './renderer-DpNDfhNy.js';
|
|
8
8
|
import { b as blurActiveElement } from './active-element-CKJIkX0R.js';
|
|
9
|
-
import { H as HasSlotController } from './slot-
|
|
9
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
10
10
|
import './tabbable-BgopY-vd.js';
|
|
11
11
|
import './dom-dlicJTEJ.js';
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@ import { r as registerInstance, c as createEvent, g as getElement, a as Host } f
|
|
|
5
5
|
import { h, t as transformTag } from './renderer-DpNDfhNy.js';
|
|
6
6
|
import { M as Modal } from './modal-CY_3_LJ7.js';
|
|
7
7
|
import { l as lockBodyScrolling, u as unlockBodyScrolling } from './scroll-1nFw8CNk.js';
|
|
8
|
-
import { H as HasSlotController } from './slot-
|
|
8
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
9
9
|
import { w as waitForEvent } from './events-ClRFmcmJ.js';
|
|
10
10
|
import { C as ComponentStore } from './component-store-JYVuxwvK.js';
|
|
11
11
|
import { g as getActiveElement } from './active-element-CKJIkX0R.js';
|
|
@@ -436,7 +436,17 @@ const GlobalSearchResults = class {
|
|
|
436
436
|
this.algoliaEle.query = meta.query;
|
|
437
437
|
};
|
|
438
438
|
handleNanoFilterChanged() {
|
|
439
|
-
this.
|
|
439
|
+
if (!this.algoliaEle.showResults ||
|
|
440
|
+
!this.algoliaResultsEle?.querySelector('.topbar'))
|
|
441
|
+
return;
|
|
442
|
+
const topBar = this.algoliaResultsEle.querySelector('.topbar');
|
|
443
|
+
if (topBar.scrollIntoViewIfNeeded) {
|
|
444
|
+
// @ts-expect-error - scrollIntoViewIfNeeded is not standard
|
|
445
|
+
topBar.scrollIntoViewIfNeeded();
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
topBar.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
449
|
+
}
|
|
440
450
|
}
|
|
441
451
|
handleReorder(e) {
|
|
442
452
|
if (e
|
|
@@ -545,8 +555,8 @@ const GlobalSearchResults = class {
|
|
|
545
555
|
objectIDs: [hit.dataset.hitId],
|
|
546
556
|
positions: [Number(hit.dataset.hitCount) + 1],
|
|
547
557
|
});
|
|
558
|
+
this.closeSearch();
|
|
548
559
|
}
|
|
549
|
-
this.closeSearch();
|
|
550
560
|
};
|
|
551
561
|
showFiltersClick = () => {
|
|
552
562
|
this.filtersDiv.tabIndex = -1;
|
|
@@ -637,12 +647,12 @@ const GlobalSearchResults = class {
|
|
|
637
647
|
this.ro.observe(this.el);
|
|
638
648
|
}
|
|
639
649
|
render() {
|
|
640
|
-
return (h(Host, { key: '
|
|
650
|
+
return (h(Host, { key: '63af990582466961e1cf02c9e67bd8cffa82e620', class: {
|
|
641
651
|
small: this.currentWidth < 780,
|
|
642
652
|
'nano-global-search-results': true,
|
|
643
|
-
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: '
|
|
653
|
+
}, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : undefined }, h("nano-algolia", { key: 'ea81b7334b7d2edb65328f65c70db0f75b48820c', storeId: this.queryId, storeMethod: "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => requestAnimationFrame(() => (this.algoliaEle = ele)), id: "main-search",
|
|
644
654
|
// @ts-expect-error this bubbles from nano-algolia-filter
|
|
645
|
-
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '
|
|
655
|
+
onNanoFilterChanged: () => this.handleNanoFilterChanged() }, h("template", { key: '10cf57aac61c6b40cd3a285ddfd03b483b9d131d', slot: "template" },
|
|
646
656
|
/* html */ `<div class="main-search sc-nano-global-search-results">
|
|
647
657
|
<nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
|
|
648
658
|
<script type="text/template" slot="start-template">
|
|
@@ -1020,7 +1030,7 @@ const GlobalSearchResults = class {
|
|
|
1020
1030
|
</div>
|
|
1021
1031
|
</div>
|
|
1022
1032
|
{{ /if }}
|
|
1023
|
-
</div>`), h("div", { key: '
|
|
1033
|
+
</div>`), h("div", { key: '531d1aaf58fe5df465d93998f9448207d23de76a', slot: "output" }), h("slot", { key: '66231f02547592a1b03a87b3f3e237c527befc38' }))));
|
|
1024
1034
|
}
|
|
1025
1035
|
static get watchers() { return {
|
|
1026
1036
|
"algoliaEle": ["handleAlgoliaCredsChange", "handleAlgoliaIndexChange", "handleAlgoliaEleChange"],
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, a as Host } from './index-BM3Om9WE.js';
|
|
5
5
|
import { h } from './renderer-DpNDfhNy.js';
|
|
6
|
-
import { H as HasSlotController } from './slot-
|
|
7
|
-
import './dom-dlicJTEJ.js';
|
|
6
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
8
7
|
|
|
9
8
|
const detailsCss = ":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{font-family:inherit;font-size:inherit;font-stretch:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;--padding:var(--nano-spacing-md);--btn-padding:var(--padding);--btn-bg-color:transparent;--btn-bg-color--hover:var(--nano-color-primary-100);--btn-bg-color--active:var(--nano-color-primary-300);--content-padding:var(--padding);display:block;border:1px solid var(--nano-color-neutral-300);color:var(--nano-color-neutral-1400)}:host([size=small]){--padding:var(--nano-spacing-sm) 0.9375rem}:host([size=large]){--padding:var(--nano-spacing-l)}:host([size=large]) .header{font-weight:var(--nano-font-weight-normal);font-size:var(--nano-font-size-lg);line-height:var(--nano-line-height-dense);text-wrap:balance}:host([disabled]){opacity:0.5}.header{all:unset;cursor:pointer;padding:var(--btn-padding);position:relative;display:flex;flex-wrap:wrap;align-items:center;background:var(--btn-bg-color);color:inherit;font-weight:var(--nano-font-weight-normal);font-size:var(--nano-font-size-md);line-height:var(--nano-line-height-dense);text-wrap:balance}.header::-webkit-details-marker{display:none}.header:focus{outline:none}.header:not([aria-disabled=true]):focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.header:not([aria-disabled=true]):hover{background:var(--btn-bg-color--hover)}.header:not([aria-disabled=true]):active{background:var(--btn-bg-color--active)}.disabled .header{cursor:not-allowed}.header .label{inline-size:100%;max-inline-size:100%;max-block-size:100%;flex:1;display:inline-block}.header .icon{line-height:0;flex-direction:column;justify-content:center;display:inline-block;color:var(--nano-color-primary-1200)}.header .icon .default-icon{rotate:0deg;transform-origin:center;transition:var(--nano-transition-x-fast) ease rotate}:host([open]) .header .icon .default-icon{rotate:180deg}.header .icon--start{margin-inline:0 var(--btn-padding);margin-block:0}.header .icon--end{margin-inline:var(--btn-padding) 0;margin-block:0}.header .icon ::slotted(.nano-icon),.header .icon::slotted(.nano-icon){color:currentcolor;transition:var(--nano-transition-x-fast) ease rotate;transform-origin:center}.body{display:grid;grid-template-rows:0fr;transition:all var(--nano-transition-fast) ease-out;opacity:0}:host([open]) .body{grid-template-rows:1fr;opacity:1}.content-wrapper{overflow:hidden}.content{padding:var(--content-padding)}";
|
|
10
9
|
|
|
@@ -5,7 +5,7 @@ import { r as registerInstance, c as createEvent, g as getElement, a as Host } f
|
|
|
5
5
|
import { h } from './renderer-DpNDfhNy.js';
|
|
6
6
|
import { M as Modal } from './modal-CY_3_LJ7.js';
|
|
7
7
|
import { l as lockBodyScrolling, u as unlockBodyScrolling } from './scroll-1nFw8CNk.js';
|
|
8
|
-
import { H as HasSlotController } from './slot-
|
|
8
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
9
9
|
import { C as ComponentStore } from './component-store-JYVuxwvK.js';
|
|
10
10
|
import { g as getTabbableElements } from './tabbable-BgopY-vd.js';
|
|
11
11
|
import './dom-dlicJTEJ.js';
|
|
@@ -7,7 +7,7 @@ import { P as Popover } from './popover-DNdFZ1hX.js';
|
|
|
7
7
|
import { a as getNearestTabbableElement, g as getTabbableElements } from './tabbable-BgopY-vd.js';
|
|
8
8
|
import { t as transformTag, h } from './renderer-DpNDfhNy.js';
|
|
9
9
|
import { g as getDirectChildren } from './dom-dlicJTEJ.js';
|
|
10
|
-
import { g as getTextContent } from './slot-
|
|
10
|
+
import { g as getTextContent } from './slot-Crs4khNK.js';
|
|
11
11
|
|
|
12
12
|
const dropdownCss = ":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{--width:auto;--border:none;--border-radius:0px;--background:var(--nano-color-neutral-75);--padding:0 0;--overflow:auto;--dropdown-z-index:var(--nano-z-index-dropdown);--min-width:0;--max-height:none;--box-shadow:var(--nano-shadow-l2);--menu-height:calc(100vh - 200px);display:inline-block}.dropdown{position:relative}.dropdown__trigger{display:block}.dropdown__positioner{position:absolute;z-index:var(--dropdown-z-index);min-inline-size:var(--min-width);border:0;background:none;padding:0;overflow:visible;color:unset}.dropdown__positioner::backdrop{display:none}.dropdown__positioner[popover],.dropdown__positioner:popover-open{inset:unset}@media (width <= 35.9375em){.dropdown__positioner{z-index:100}}.dropdown__panel{padding:var(--padding);background:var(--background);min-inline-size:var(--min-width);inline-size:var(--width);border:var(--border);border-radius:var(--border-radius);color:currentcolor;box-shadow:var(--box-shadow);opacity:0;transition:var(--nano-transition-x-fast) ease opacity, var(--nano-transition-x-fast) ease transform, var(--nano-transition-fast) ease min-block-size;min-block-size:20px;overflow:var(--overflow);max-block-size:var(--max-height);box-sizing:content-box !important}.dropdown__panel.loading{overflow-y:hidden}.dropdown__panel.top{transform:translateY(-20px) translateZ(0)}.dropdown__panel.bottom{transform:translateY(20px) translateZ(0)}.dropdown__positioner.popover-visible .dropdown__panel{opacity:1;transform:translateY(0) translateZ(0)}.dropdown__panel ::slotted(.nano-menu){max-block-size:var(--menu-height)}.dropdown__accessible-title{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}";
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, g as getElement, a as Host } from './index-BM3Om9WE.js';
|
|
5
5
|
import { h } from './renderer-DpNDfhNy.js';
|
|
6
|
-
import { H as HasSlotController } from './slot-
|
|
6
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
7
7
|
import { g as getDirectChildren } from './dom-dlicJTEJ.js';
|
|
8
8
|
import { f as findScrollParent } from './scroll-1nFw8CNk.js';
|
|
9
9
|
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, g as getElement, h, F as Fragment, a as Host } from './index-BM3Om9WE.js';
|
|
5
|
-
import { H as HasSlotController } from './slot-
|
|
6
|
-
import './dom-dlicJTEJ.js';
|
|
5
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
7
6
|
|
|
8
7
|
const inputOtpCss = ".sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{box-sizing:border-box}[hidden].sc-nano-input-otp{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{box-sizing:border-box}[hidden].sc-nano-input-otp{display:none !important}@media (prefers-reduced-motion: reduce){.sc-nano-input-otp-h,*.sc-nano-input-otp,*.sc-nano-input-otp::before,*.sc-nano-input-otp::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important}}.sc-nano-input-otp-h{--color:initial;--min-width:40px;--width:40px;--height:50px;--gap:8px;--icon-size:var(--nano-pictogram-size-small);--inline-padding:calc(var(--icon-size) + var(--gap));--spacing:var(--nano-spacing-xl);--separator-width:7px;--separator-height:1px;--separator-border-radius:0;--separator-color:var(--nano-color-primary-1000);--highlight-color-valid:var(--nano-color-success-1100);--highlight-color-invalid:var(--nano-color-warning-1100);--border-radius:8px;--border-color:var(--nano-color-neutral-700);--border-width:1px;display:block;position:relative;margin-inline:var(--inline-padding)}.input-otp-container.sc-nano-input-otp{position:relative;inline-size:fit-content;block-size:fit-content;margin:0 auto}.input-otp-group.sc-nano-input-otp{display:flex;align-items:center;justify-content:center;gap:var(--gap)}.native-wrapper.sc-nano-input-otp{display:flex;align-items:center;justify-content:center;min-inline-size:var(--min-width)}.native-input.sc-nano-input-otp{border-radius:var(--border-radius);inline-size:var(--width);min-inline-size:inherit;block-size:var(--height);border-width:var(--border-width);border-style:solid;border-color:var(--border-color);background:var(--background);color:var(--color);font-size:inherit;text-align:center;appearance:none}.input-otp-description.sc-nano-input-otp{color:currentcolor;font-size:var(--nano-font-size-xs);line-height:var(--nano-line-height-normal);text-align:center;position:relative;margin-block-start:var(--spacing)}.input-otp-description-hidden.sc-nano-input-otp{display:none}.input-otp-separator.sc-nano-input-otp{border-radius:var(--separator-border-radius);flex-shrink:0;inline-size:var(--separator-width);block-size:var(--separator-height);background:var(--separator-color)}.input-otp-disabled.sc-nano-input-otp-h .input-otp-description.sc-nano-input-otp,.input-otp-disabled.sc-nano-input-otp-h .input-otp-group.sc-nano-input-otp{--color:var(--nano-color-neutral-700);opacity:0.5}.input-otp-disabled.sc-nano-input-otp-h,.input-otp-disabled.sc-nano-input-otp-h .native-input.sc-nano-input-otp:disabled{cursor:not-allowed}.has-focus.sc-nano-input-otp-h .native-input.sc-nano-input-otp:focus{outline:var(--nano-focus-ring)}.nano-invalid.sc-nano-input-otp-h .native-input.sc-nano-input-otp{border-color:var(--highlight-color-invalid)}.nano-valid.sc-nano-input-otp-h .native-input.sc-nano-input-otp{border-color:var(--highlight-color-valid)}.input-otp-icon.sc-nano-input-otp{position:absolute;inset-block-start:50%;transform:translateY(-43%);inset-inline-end:calc((var(--gap) + var(--icon-size)) * -1);inline-size:var(--icon-size);block-size:var(--icon-size);display:flex;align-items:center}.input-otp-icon--valid.sc-nano-input-otp{color:var(--nano-color-success-1100)}.input-otp-icon--invalid.sc-nano-input-otp{color:var(--nano-color-warning-1100)}";
|
|
9
8
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { r as registerInstance, g as getElement, d as writeTask, a as Host } from './index-BM3Om9WE.js';
|
|
5
5
|
import { c as closestElement } from './dom-dlicJTEJ.js';
|
|
6
6
|
import { t as transformTag, h } from './renderer-DpNDfhNy.js';
|
|
7
|
-
import { H as HasSlotController } from './slot-
|
|
7
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
8
8
|
|
|
9
9
|
const menuDrawerCss = ":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{--padding-top:13px;--padding-end:13px;--padding-bottom:13px;--padding-start:13px;--icon-size:19px;--font-size:var(--nano-font-size-xs);--bg-color:var(--nano-color-surface-50);--bg-color-hover:var(--nano-color-neutral-75);--bg-color-selected:var(--nano-color-neutral-300);--bg-color-open:var(--nano-color-neutral-300);--content-color:var(--nano-color-neutral-1400);--divider-color:var(--nano-color-neutral-300);--global-nav-height:76px;--menu-width:calc((var(--padding-end) + var(--padding-start)) + var(--icon-size));color-scheme:dark;display:block;z-index:1;background:var(--bg-color);color:var(--content-color);min-block-size:100%}:host(.hide){display:none}.head{border-block-end:var(--divider-color) 1px solid}.container{inset-inline-end:auto;color:var(--content-color);inline-size:var(--menu-width);transition:inline-size 0.3s ease;inset-block-start:var(--global-nav-height);position:sticky;display:flex;flex-direction:column;block-size:100%;max-block-size:calc(100vh - var(--global-nav-height))}:host(.open) .container{inline-size:auto}.content-wrap{inset-inline-start:0;inset-block-start:0;inline-size:inherit;background:var(--bg-color);font-size:var(--font-size);line-height:1;display:flex;flex-direction:column;align-items:stretch;flex:1;box-shadow:var(--nano-shadow-ls)}.content-wrap.secondary-open{box-shadow:none}.content-wrap::after{content:\"\";position:absolute;inset:calc(var(--global-nav-height) * -1) 0 0;background-color:var(--bg-color);z-index:-1}.content{inline-size:auto;display:flex;flex-direction:column;overflow:hidden visible;flex:1}.collapse-btn{all:unset;padding-block:6px;margin-block-start:5px;padding-inline:var(--padding-start) var(--padding-end);inline-size:100%;display:flex;justify-items:flex-start;appearance:none;cursor:pointer;font-size:var(--icon-size)}.collapse-btn:focus-visible{outline:var(--nano-focus-ring);outline-offset:var(--nano-focus-ring-offset)}.collapse-btn:hover{background-color:var(--bg-color-hover)}.collapse-btn:active{background-color:var(--bg-color-selected)}.collapse-btn .nano-icon{transition:var(--nano-transition-x-fast) rotate ease-in-out;rotate:0deg}:host(.open) .collapse-btn .nano-icon{rotate:180deg}.visually-hidden{clip-path:inset(50%);block-size:1px;overflow:hidden;position:absolute;white-space:nowrap;inline-size:1px}.foot{margin-block:auto var(--padding-bottom)}";
|
|
10
10
|
|
|
@@ -5,7 +5,7 @@ import { r as registerInstance, c as createEvent, g as getElement, a as Host } f
|
|
|
5
5
|
import { g as getDirectChildren } from './dom-dlicJTEJ.js';
|
|
6
6
|
import { g as getTabbableElements } from './tabbable-BgopY-vd.js';
|
|
7
7
|
import { t as transformTag, h } from './renderer-DpNDfhNy.js';
|
|
8
|
-
import { H as HasSlotController } from './slot-
|
|
8
|
+
import { H as HasSlotController } from './slot-Crs4khNK.js';
|
|
9
9
|
import { f as focusInContainer } from './active-element-CKJIkX0R.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Custom elements for Nanopore-Digital Web applications
|
|
3
3
|
*/
|
|
4
4
|
import { g as getElement, j as forceUpdate } from './index-BM3Om9WE.js';
|
|
5
|
-
import { g as getDirectChildren } from './dom-dlicJTEJ.js';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Given an element (which can either be within a shadowRoot or not) find it's innerText
|
|
@@ -64,7 +63,7 @@ class HasSlotController {
|
|
|
64
63
|
let childNodes;
|
|
65
64
|
if (this.host.shadowRoot) {
|
|
66
65
|
// * Regular shadow DOM component *
|
|
67
|
-
childNodes = [...this.host.
|
|
66
|
+
childNodes = [...this.host.childNodes];
|
|
68
67
|
}
|
|
69
68
|
else if (!this.host.classList.contains('hydrated') &&
|
|
70
69
|
this.host.__childNodes) {
|
|
@@ -93,7 +92,7 @@ class HasSlotController {
|
|
|
93
92
|
hasNamedSlot(name) {
|
|
94
93
|
if (!this.host)
|
|
95
94
|
return false;
|
|
96
|
-
return
|
|
95
|
+
return !!this.host.querySelector(`[slot="${name}"]`);
|
|
97
96
|
}
|
|
98
97
|
has(slotName) {
|
|
99
98
|
return slotName === '[default]'
|