@nanoporetech-digital/components 8.11.2 → 8.11.4
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-avatar_5.cjs.entry.js +3 -0
- package/dist/cjs/nano-datalist_3.cjs.entry.js +5 -5
- package/dist/cjs/nano-masked-overflow.cjs.entry.js +7 -5
- package/dist/collection/components/badge/badge.css +42 -0
- package/dist/collection/components/badge/badge.js +10 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/datalist/datalist.js +9 -5
- package/dist/collection/components/masked-overflow/masked-overflow.js +7 -5
- package/dist/components/badge.js +3 -0
- package/dist/components/datalist.js +5 -5
- package/dist/components/masked-overflow.js +7 -5
- package/dist/esm/nano-avatar_5.entry.js +3 -0
- package/dist/esm/nano-datalist_3.entry.js +5 -5
- package/dist/esm/nano-masked-overflow.entry.js +7 -5
- package/dist/nano-components/nano-avatar_5.entry.js +1 -1
- package/dist/nano-components/nano-components.css +31 -20
- package/dist/nano-components/nano-datalist_3.entry.js +1 -1
- package/dist/nano-components/nano-masked-overflow.entry.js +1 -1
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/datalist/datalist.d.ts +4 -0
- package/docs-json.json +29 -6
- package/hydrate/index.js +19 -10
- package/hydrate/index.mjs +19 -10
- package/package.json +2 -2
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{-v_1b6Vq → scdfPYwW}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -11,6 +11,10 @@ import type { OptionInterface } from '../option/option-interface';
|
|
11
11
|
* @slot list-top - shows at the top of the list when there are options present
|
12
12
|
* @slot list-bottom - shows at the bottom of the list when there are options present
|
13
13
|
* @slot no-result - shown when there are no results otherwise nothing will be shown
|
14
|
+
*
|
15
|
+
* @part dropdown - the wrapping `nano-dropdown` element
|
16
|
+
* @part main-menu - the main `nano-menu` element that holds the options
|
17
|
+
* @part no-result-menu - the `nano-menu` element that holds the no results content
|
14
18
|
*/
|
15
19
|
export declare class DataList implements ComponentInterface {
|
16
20
|
private isNanoInput;
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2025-10-
|
2
|
+
"timestamp": "2025-10-08T11:24:07",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "4.36.1",
|
@@ -3318,7 +3318,18 @@
|
|
3318
3318
|
"methods": [],
|
3319
3319
|
"events": [],
|
3320
3320
|
"listeners": [],
|
3321
|
-
"styles": [
|
3321
|
+
"styles": [
|
3322
|
+
{
|
3323
|
+
"name": "--bg",
|
3324
|
+
"annotation": "prop",
|
3325
|
+
"docs": "Background color of the badge. Defaults to a colour defined by the `theme` and `strength` attributes;"
|
3326
|
+
},
|
3327
|
+
{
|
3328
|
+
"name": "--color",
|
3329
|
+
"annotation": "prop",
|
3330
|
+
"docs": "Text color of the badge. Defaults to being dynamically calculated based on the best contrast with `--bg` color;"
|
3331
|
+
}
|
3332
|
+
],
|
3322
3333
|
"slots": [],
|
3323
3334
|
"parts": [],
|
3324
3335
|
"dependents": [
|
@@ -3358,7 +3369,7 @@
|
|
3358
3369
|
"references": {
|
3359
3370
|
"Breadcrumb": {
|
3360
3371
|
"location": "local",
|
3361
|
-
"path": "/builds
|
3372
|
+
"path": "/builds/scdfPYwW/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
|
3362
3373
|
"id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
|
3363
3374
|
}
|
3364
3375
|
}
|
@@ -6728,6 +6739,18 @@
|
|
6728
6739
|
{
|
6729
6740
|
"name": "slot",
|
6730
6741
|
"text": "no-result - shown when there are no results otherwise nothing will be shown"
|
6742
|
+
},
|
6743
|
+
{
|
6744
|
+
"name": "part",
|
6745
|
+
"text": "dropdown - the wrapping `nano-dropdown` element"
|
6746
|
+
},
|
6747
|
+
{
|
6748
|
+
"name": "part",
|
6749
|
+
"text": "main-menu - the main `nano-menu` element that holds the options"
|
6750
|
+
},
|
6751
|
+
{
|
6752
|
+
"name": "part",
|
6753
|
+
"text": "no-result-menu - the `nano-menu` element that holds the no results content"
|
6731
6754
|
}
|
6732
6755
|
],
|
6733
6756
|
"usage": {},
|
@@ -7139,15 +7162,15 @@
|
|
7139
7162
|
"parts": [
|
7140
7163
|
{
|
7141
7164
|
"name": "dropdown",
|
7142
|
-
"docs": ""
|
7165
|
+
"docs": "the wrapping `nano-dropdown` element"
|
7143
7166
|
},
|
7144
7167
|
{
|
7145
7168
|
"name": "main-menu",
|
7146
|
-
"docs": ""
|
7169
|
+
"docs": "the main `nano-menu` element that holds the options"
|
7147
7170
|
},
|
7148
7171
|
{
|
7149
7172
|
"name": "no-result-menu",
|
7150
|
-
"docs": ""
|
7173
|
+
"docs": "the `nano-menu` element that holds the no results content"
|
7151
7174
|
}
|
7152
7175
|
],
|
7153
7176
|
"dependents": [
|
package/hydrate/index.js
CHANGED
@@ -9028,6 +9028,10 @@ let listIds = 0;
|
|
9028
9028
|
* @slot list-top - shows at the top of the list when there are options present
|
9029
9029
|
* @slot list-bottom - shows at the bottom of the list when there are options present
|
9030
9030
|
* @slot no-result - shown when there are no results otherwise nothing will be shown
|
9031
|
+
*
|
9032
|
+
* @part dropdown - the wrapping `nano-dropdown` element
|
9033
|
+
* @part main-menu - the main `nano-menu` element that holds the options
|
9034
|
+
* @part no-result-menu - the `nano-menu` element that holds the no results content
|
9031
9035
|
*/
|
9032
9036
|
class DataList {
|
9033
9037
|
// Private State
|
@@ -9530,18 +9534,18 @@ class DataList {
|
|
9530
9534
|
}
|
9531
9535
|
}
|
9532
9536
|
render() {
|
9533
|
-
return (h(Host, { key: '
|
9537
|
+
return (h(Host, { key: '269f57e6eccd251685f84a94d53f380d6545a3cb', class: "nano-datalist", role: this.actvOptEles.length ? 'listbox' : undefined, "aria-owns": this.optionIds.length ? this.optionIds.join(' ') : undefined, "aria-label": this.optionIds.length
|
9534
9538
|
? 'Select options from the list below'
|
9535
|
-
: undefined }, h("nano-dropdown", { key: '
|
9539
|
+
: undefined }, h("nano-dropdown", { key: 'ee6398b356dc1a0ff9fa35e84955314fc95435b6', part: "dropdown", exportparts: "trigger:dropdown__trigger, panel:dropdown__panel", ...this.dropDownConfig, ref: (el) => (this.nanoDropdown = el), dialogTitle: "Select options from the list below", class: {
|
9536
9540
|
dlist__dropdown: true,
|
9537
9541
|
'dlist--isfiltered': this.isFiltered,
|
9538
|
-
}, onNanoAfterShow: this.handleShow, onNanoAfterHide: this.handleHide, role: "group" }, h("nano-menu", { key: '
|
9542
|
+
}, onNanoAfterShow: this.handleShow, onNanoAfterHide: this.handleHide, role: "group" }, h("nano-menu", { key: 'f80006a5ba62c227094da52672b4abf6ee6335dc', part: "main-menu", ref: (el) => (this.listBox = el), hidden: !this.actvOptEles.length, type: "listbox", label: this.inputLabel ? this.inputLabel.textContent : undefined, class: {
|
9539
9543
|
dlist__menu: true,
|
9540
9544
|
'dlist__menu--open': this.dropwdownOpen,
|
9541
|
-
}, tabIndex: -1, onNanoSelect: this.optSelected, onKeyDown: this.optionKeyDown }, h("slot", { key: '
|
9545
|
+
}, tabIndex: -1, onNanoSelect: this.optSelected, onKeyDown: this.optionKeyDown }, h("slot", { key: '8a2d3160b990c99baeaf4fd9bdd7bb04229d642c', name: "list-top" }), h("slot", { key: '2230e4458be0998d59d18250e1d22188baf2f6b1' }), h("slot", { key: 'fca84cbd01495e4b62ba95c4c07681f506939d3f', name: "internal-opts" }), h("slot", { key: '076fd81c15f5ac6590e5311503262a07f60e8454', name: "list-bottom" })), h("nano-menu", { key: 'd4878bc502b4fcc0de01f67b5065ad017f445f75', part: "no-result-menu", type: "listbox", label: "No results found", hidden: !!this.actvOptEles.length, class: {
|
9542
9546
|
dlist__menu: true,
|
9543
9547
|
'dlist__menu--open': this.dropwdownOpen,
|
9544
|
-
} }, h("slot", { key: '
|
9548
|
+
} }, h("slot", { key: '2ac583af3ac8b24ace627637ab86471999df9465', name: "no-result" })), !!this.actvOptEles && (h("div", { key: '4971780255baf694fcc447756ca02e1115ece871', class: "dlist__status" }, this.actvOptEles.length, " result", this.actvOptEles.length > 1 ? 's' : '', " available.")))));
|
9545
9549
|
}
|
9546
9550
|
static get watchers() { return {
|
9547
9551
|
"open": ["openWatcher"],
|
@@ -18950,14 +18954,16 @@ class MaskedOverflow {
|
|
18950
18954
|
this.ro.disconnect();
|
18951
18955
|
this.ro = undefined;
|
18952
18956
|
}
|
18953
|
-
const
|
18954
|
-
|
18957
|
+
const ro = (this.ro = new ResizeObserver(this.recalculatePositions));
|
18958
|
+
ro.observe(this.host);
|
18955
18959
|
}
|
18956
18960
|
componentWillLoad() {
|
18957
18961
|
this.watchHideScrollbars();
|
18958
18962
|
}
|
18959
18963
|
componentDidLoad() {
|
18960
18964
|
this.activeItem = this.allActiveItems.find((el, i) => this.isActiveHandler(el, i));
|
18965
|
+
this.hideStartBtn();
|
18966
|
+
this.hideEndBtn();
|
18961
18967
|
requestAnimationFrame(() => (this.instantReCalc = false));
|
18962
18968
|
}
|
18963
18969
|
disconnectedCallback() {
|
@@ -18967,7 +18973,7 @@ class MaskedOverflow {
|
|
18967
18973
|
}
|
18968
18974
|
}
|
18969
18975
|
render() {
|
18970
|
-
return (h(Host, { key: '
|
18976
|
+
return (h(Host, { key: 'e5c6238730817f0c7036060faa8c344d514a3924', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: '4027acd51b80fd1bf2bb9d66a05ec051802732f3', part: "base", class: {
|
18971
18977
|
onav: true,
|
18972
18978
|
[`onav--${this.orientation}`]: true,
|
18973
18979
|
'onav--has-scroll-controls': this.hasScrollControls,
|
@@ -18976,12 +18982,12 @@ class MaskedOverflow {
|
|
18976
18982
|
'onav--no-transitions': this.instantReCalc,
|
18977
18983
|
'onnav--has-indicator': this.showIndicator,
|
18978
18984
|
'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
|
18979
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '
|
18985
|
+
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'a552b2e3cdf9f84249655b21ce6f2acb5c330a75', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: '5aca29990db29b3d0d00e6bca317cd3870d06d6b', part: "scroll-button scroll-button-prev", class: {
|
18980
18986
|
'onav__scroll-button': true,
|
18981
18987
|
'onav__scroll-button--start': true,
|
18982
18988
|
}, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
18983
18989
|
? 'light/chevron-left'
|
18984
|
-
: 'light/chevron-up' })), h("div", { key: '
|
18990
|
+
: 'light/chevron-up' })), h("div", { key: '9c2b4c91859b5c6c132ab2eecc01cf56eeec18b9', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: 'a77097f7b9a70e08f9a1eb980948c5c92dff760d', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: 'b8661b042f9e195850a33ce3570b75c9bed25d7e', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '54af572f6ef591d8d3cb34221e048ac0e32140bb', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: 'e27a06cc2cec7ed373c527e3c6db5a0a56a90b71', part: "scroll-button scroll-button-next", class: {
|
18985
18991
|
'onav__scroll-button': true,
|
18986
18992
|
'onav__scroll-button--end': true,
|
18987
18993
|
}, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
@@ -19735,6 +19741,8 @@ class NanoAvatar {
|
|
19735
19741
|
}; }
|
19736
19742
|
}
|
19737
19743
|
|
19744
|
+
const badgeCss = ":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}}";
|
19745
|
+
|
19738
19746
|
/**
|
19739
19747
|
* Badges are used to draw attention and display statuses or counts.
|
19740
19748
|
*
|
@@ -19753,6 +19761,7 @@ class NanoBadge {
|
|
19753
19761
|
strength;
|
19754
19762
|
/** Use pulse to draw attention to the badge with an animation */
|
19755
19763
|
pulse;
|
19764
|
+
static get style() { return badgeCss; }
|
19756
19765
|
static get cmpMeta() { return {
|
19757
19766
|
"$flags$": 0,
|
19758
19767
|
"$tagName$": "nano-badge",
|
package/hydrate/index.mjs
CHANGED
@@ -9026,6 +9026,10 @@ let listIds = 0;
|
|
9026
9026
|
* @slot list-top - shows at the top of the list when there are options present
|
9027
9027
|
* @slot list-bottom - shows at the bottom of the list when there are options present
|
9028
9028
|
* @slot no-result - shown when there are no results otherwise nothing will be shown
|
9029
|
+
*
|
9030
|
+
* @part dropdown - the wrapping `nano-dropdown` element
|
9031
|
+
* @part main-menu - the main `nano-menu` element that holds the options
|
9032
|
+
* @part no-result-menu - the `nano-menu` element that holds the no results content
|
9029
9033
|
*/
|
9030
9034
|
class DataList {
|
9031
9035
|
// Private State
|
@@ -9528,18 +9532,18 @@ class DataList {
|
|
9528
9532
|
}
|
9529
9533
|
}
|
9530
9534
|
render() {
|
9531
|
-
return (h(Host, { key: '
|
9535
|
+
return (h(Host, { key: '269f57e6eccd251685f84a94d53f380d6545a3cb', class: "nano-datalist", role: this.actvOptEles.length ? 'listbox' : undefined, "aria-owns": this.optionIds.length ? this.optionIds.join(' ') : undefined, "aria-label": this.optionIds.length
|
9532
9536
|
? 'Select options from the list below'
|
9533
|
-
: undefined }, h("nano-dropdown", { key: '
|
9537
|
+
: undefined }, h("nano-dropdown", { key: 'ee6398b356dc1a0ff9fa35e84955314fc95435b6', part: "dropdown", exportparts: "trigger:dropdown__trigger, panel:dropdown__panel", ...this.dropDownConfig, ref: (el) => (this.nanoDropdown = el), dialogTitle: "Select options from the list below", class: {
|
9534
9538
|
dlist__dropdown: true,
|
9535
9539
|
'dlist--isfiltered': this.isFiltered,
|
9536
|
-
}, onNanoAfterShow: this.handleShow, onNanoAfterHide: this.handleHide, role: "group" }, h("nano-menu", { key: '
|
9540
|
+
}, onNanoAfterShow: this.handleShow, onNanoAfterHide: this.handleHide, role: "group" }, h("nano-menu", { key: 'f80006a5ba62c227094da52672b4abf6ee6335dc', part: "main-menu", ref: (el) => (this.listBox = el), hidden: !this.actvOptEles.length, type: "listbox", label: this.inputLabel ? this.inputLabel.textContent : undefined, class: {
|
9537
9541
|
dlist__menu: true,
|
9538
9542
|
'dlist__menu--open': this.dropwdownOpen,
|
9539
|
-
}, tabIndex: -1, onNanoSelect: this.optSelected, onKeyDown: this.optionKeyDown }, h("slot", { key: '
|
9543
|
+
}, tabIndex: -1, onNanoSelect: this.optSelected, onKeyDown: this.optionKeyDown }, h("slot", { key: '8a2d3160b990c99baeaf4fd9bdd7bb04229d642c', name: "list-top" }), h("slot", { key: '2230e4458be0998d59d18250e1d22188baf2f6b1' }), h("slot", { key: 'fca84cbd01495e4b62ba95c4c07681f506939d3f', name: "internal-opts" }), h("slot", { key: '076fd81c15f5ac6590e5311503262a07f60e8454', name: "list-bottom" })), h("nano-menu", { key: 'd4878bc502b4fcc0de01f67b5065ad017f445f75', part: "no-result-menu", type: "listbox", label: "No results found", hidden: !!this.actvOptEles.length, class: {
|
9540
9544
|
dlist__menu: true,
|
9541
9545
|
'dlist__menu--open': this.dropwdownOpen,
|
9542
|
-
} }, h("slot", { key: '
|
9546
|
+
} }, h("slot", { key: '2ac583af3ac8b24ace627637ab86471999df9465', name: "no-result" })), !!this.actvOptEles && (h("div", { key: '4971780255baf694fcc447756ca02e1115ece871', class: "dlist__status" }, this.actvOptEles.length, " result", this.actvOptEles.length > 1 ? 's' : '', " available.")))));
|
9543
9547
|
}
|
9544
9548
|
static get watchers() { return {
|
9545
9549
|
"open": ["openWatcher"],
|
@@ -18948,14 +18952,16 @@ class MaskedOverflow {
|
|
18948
18952
|
this.ro.disconnect();
|
18949
18953
|
this.ro = undefined;
|
18950
18954
|
}
|
18951
|
-
const
|
18952
|
-
|
18955
|
+
const ro = (this.ro = new ResizeObserver(this.recalculatePositions));
|
18956
|
+
ro.observe(this.host);
|
18953
18957
|
}
|
18954
18958
|
componentWillLoad() {
|
18955
18959
|
this.watchHideScrollbars();
|
18956
18960
|
}
|
18957
18961
|
componentDidLoad() {
|
18958
18962
|
this.activeItem = this.allActiveItems.find((el, i) => this.isActiveHandler(el, i));
|
18963
|
+
this.hideStartBtn();
|
18964
|
+
this.hideEndBtn();
|
18959
18965
|
requestAnimationFrame(() => (this.instantReCalc = false));
|
18960
18966
|
}
|
18961
18967
|
disconnectedCallback() {
|
@@ -18965,7 +18971,7 @@ class MaskedOverflow {
|
|
18965
18971
|
}
|
18966
18972
|
}
|
18967
18973
|
render() {
|
18968
|
-
return (h(Host, { key: '
|
18974
|
+
return (h(Host, { key: 'e5c6238730817f0c7036060faa8c344d514a3924', dir: this.isRtl ? 'rtl' : null, class: "nano-masked-overflow", "has-scroll-controls": this.hasScrollControls }, h("div", { key: '4027acd51b80fd1bf2bb9d66a05ec051802732f3', part: "base", class: {
|
18969
18975
|
onav: true,
|
18970
18976
|
[`onav--${this.orientation}`]: true,
|
18971
18977
|
'onav--has-scroll-controls': this.hasScrollControls,
|
@@ -18974,12 +18980,12 @@ class MaskedOverflow {
|
|
18974
18980
|
'onav--no-transitions': this.instantReCalc,
|
18975
18981
|
'onnav--has-indicator': this.showIndicator,
|
18976
18982
|
'onnav--hide-scrollbars': this.hideScrollbars && this.hideScrollbars !== 'false',
|
18977
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '
|
18983
|
+
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'a552b2e3cdf9f84249655b21ce6f2acb5c330a75', class: "onav__nav" }, this.scrollControls && (h("nano-icon-button", { key: '5aca29990db29b3d0d00e6bca317cd3870d06d6b', part: "scroll-button scroll-button-prev", class: {
|
18978
18984
|
'onav__scroll-button': true,
|
18979
18985
|
'onav__scroll-button--start': true,
|
18980
18986
|
}, ref: (btn) => (this.startBtn = btn), onClick: () => this.handleBtnClick(false), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
18981
18987
|
? 'light/chevron-left'
|
18982
|
-
: 'light/chevron-up' })), h("div", { key: '
|
18988
|
+
: 'light/chevron-up' })), h("div", { key: '9c2b4c91859b5c6c132ab2eecc01cf56eeec18b9', part: "scroller", ref: (el) => (this.nav = el), class: "onav__scroller", onScroll: this.handleScroll, tabindex: this.hasScrollControls ? 0 : undefined, role: "region", "aria-label": this.label || undefined }, h("div", { key: 'a77097f7b9a70e08f9a1eb980948c5c92dff760d', part: "items", ref: (el) => (this.itemContainer = el), class: "onav__items" }, this.showIndicator && (h("div", { key: 'b8661b042f9e195850a33ce3570b75c9bed25d7e', part: "indicator", ref: (el) => (this.activeIndicator = el), class: "onav__active-indicator" })), h("slot", { key: '54af572f6ef591d8d3cb34221e048ac0e32140bb', onSlotchange: this.slotChangeHandler }))), this.scrollControls && (h("nano-icon-button", { key: 'e27a06cc2cec7ed373c527e3c6db5a0a56a90b71', part: "scroll-button scroll-button-next", class: {
|
18983
18989
|
'onav__scroll-button': true,
|
18984
18990
|
'onav__scroll-button--end': true,
|
18985
18991
|
}, ref: (btn) => (this.endBtn = btn), onClick: () => this.handleBtnClick(true), label: "Click to scroll", iconName: this.orientation === 'horizontal'
|
@@ -19733,6 +19739,8 @@ class NanoAvatar {
|
|
19733
19739
|
}; }
|
19734
19740
|
}
|
19735
19741
|
|
19742
|
+
const badgeCss = ":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}}";
|
19743
|
+
|
19736
19744
|
/**
|
19737
19745
|
* Badges are used to draw attention and display statuses or counts.
|
19738
19746
|
*
|
@@ -19751,6 +19759,7 @@ class NanoBadge {
|
|
19751
19759
|
strength;
|
19752
19760
|
/** Use pulse to draw attention to the badge with an animation */
|
19753
19761
|
pulse;
|
19762
|
+
static get style() { return badgeCss; }
|
19754
19763
|
static get cmpMeta() { return {
|
19755
19764
|
"$flags$": 0,
|
19756
19765
|
"$tagName$": "nano-badge",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "8.11.
|
3
|
+
"version": "8.11.4",
|
4
4
|
"sideEffects": false,
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"smart-array-filter": "^4.0.2",
|
61
61
|
"stencil-wormhole": "3.2.1",
|
62
62
|
"tyqs": "^0.1.3",
|
63
|
-
"@nanoporetech-digital/style": "8.11.
|
63
|
+
"@nanoporetech-digital/style": "8.11.4"
|
64
64
|
},
|
65
65
|
"devDependencies": {
|
66
66
|
"@algolia/client-search": "^4.22.1",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|