@nanoporetech-digital/components 8.5.7 → 8.7.0
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/loader.cjs.js +1 -1
- package/dist/cjs/nano-card.cjs.entry.js +2 -0
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-table.cjs.entry.js +15 -11
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/card/card.js +21 -0
- package/dist/collection/components/table/table.js +35 -11
- package/dist/components/nano-card.js +4 -1
- package/dist/components/nano-table.js +16 -11
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-card.entry.js +2 -0
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-table.entry.js +15 -11
- package/dist/nano-components/nano-card.entry.js +1 -1
- package/dist/nano-components/nano-components.css +10 -4
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/style/components.css +1 -1
- package/dist/style/components.css.map +1 -1
- package/dist/style/core.css +1 -1
- package/dist/style/core.css.map +1 -1
- package/dist/style/nano.css +1 -1
- package/dist/style/nano.css.map +1 -1
- package/dist/types/components/card/card.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +2 -0
- package/dist/types/components.d.ts +18 -0
- package/docs-json.json +54 -2
- package/docs-vscode.json +8 -0
- package/hydrate/index.js +22 -14
- package/hydrate/index.mjs +22 -14
- package/package.json +2 -2
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{uSGJX_GU → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -18,4 +18,6 @@ export declare class NanoCard {
|
|
18
18
|
variant?: 'promo' | 'promo-aero' | 'promo-plain' | 'promo-grey' | 'product';
|
19
19
|
/** Size of card's heading. Defaults to `large`. Has no baring on `variant="promo"` cards */
|
20
20
|
size?: 'small' | 'large';
|
21
|
+
/** If true, disables the whole-card click effect. */
|
22
|
+
disableCardClick?: boolean;
|
21
23
|
}
|
@@ -16,6 +16,8 @@ export declare class NanoTable {
|
|
16
16
|
/** Visually hide the table's caption */
|
17
17
|
hideCaption: boolean;
|
18
18
|
handleHideCaptionChange(): void;
|
19
|
+
/** Disable the clickable rows functionality. */
|
20
|
+
disableClickableRows: boolean;
|
19
21
|
private resizeObserver;
|
20
22
|
private mutationObserver;
|
21
23
|
private intersectionObserver;
|
@@ -419,6 +419,10 @@ export namespace Components {
|
|
419
419
|
* @type CSS Only
|
420
420
|
*/
|
421
421
|
interface NanoCard {
|
422
|
+
/**
|
423
|
+
* If true, disables the whole-card click effect.
|
424
|
+
*/
|
425
|
+
"disableCardClick"?: boolean;
|
422
426
|
/**
|
423
427
|
* The layout of the card. `landscape` only applies when the card is large enough. Defaults to portrait.
|
424
428
|
*/
|
@@ -3286,6 +3290,11 @@ export namespace Components {
|
|
3286
3290
|
* @default 'auto'
|
3287
3291
|
*/
|
3288
3292
|
"compact": boolean | 'auto';
|
3293
|
+
/**
|
3294
|
+
* Disable the clickable rows functionality.
|
3295
|
+
* @default false
|
3296
|
+
*/
|
3297
|
+
"disableClickableRows": boolean;
|
3289
3298
|
/**
|
3290
3299
|
* Visually hide the table's caption
|
3291
3300
|
* @default false
|
@@ -5403,6 +5412,10 @@ declare namespace LocalJSX {
|
|
5403
5412
|
* @type CSS Only
|
5404
5413
|
*/
|
5405
5414
|
interface NanoCard {
|
5415
|
+
/**
|
5416
|
+
* If true, disables the whole-card click effect.
|
5417
|
+
*/
|
5418
|
+
"disableCardClick"?: boolean;
|
5406
5419
|
/**
|
5407
5420
|
* The layout of the card. `landscape` only applies when the card is large enough. Defaults to portrait.
|
5408
5421
|
*/
|
@@ -8374,6 +8387,11 @@ declare namespace LocalJSX {
|
|
8374
8387
|
* @default 'auto'
|
8375
8388
|
*/
|
8376
8389
|
"compact"?: boolean | 'auto';
|
8390
|
+
/**
|
8391
|
+
* Disable the clickable rows functionality.
|
8392
|
+
* @default false
|
8393
|
+
*/
|
8394
|
+
"disableClickableRows"?: boolean;
|
8377
8395
|
/**
|
8378
8396
|
* Visually hide the table's caption
|
8379
8397
|
* @default false
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2025-09-
|
2
|
+
"timestamp": "2025-09-11T23:15:36",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "4.36.1",
|
@@ -3358,7 +3358,7 @@
|
|
3358
3358
|
"references": {
|
3359
3359
|
"Breadcrumb": {
|
3360
3360
|
"location": "local",
|
3361
|
-
"path": "/builds/
|
3361
|
+
"path": "/builds/-v_1b6Vq/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
|
3362
3362
|
"id": "src/components/breadcrumb/breadcrumb.tsx::Breadcrumb"
|
3363
3363
|
}
|
3364
3364
|
}
|
@@ -3449,6 +3449,29 @@
|
|
3449
3449
|
],
|
3450
3450
|
"usage": {},
|
3451
3451
|
"props": [
|
3452
|
+
{
|
3453
|
+
"name": "disableCardClick",
|
3454
|
+
"type": "boolean",
|
3455
|
+
"complexType": {
|
3456
|
+
"original": "boolean",
|
3457
|
+
"resolved": "boolean",
|
3458
|
+
"references": {}
|
3459
|
+
},
|
3460
|
+
"mutable": false,
|
3461
|
+
"attr": "disable-card-click",
|
3462
|
+
"reflectToAttr": true,
|
3463
|
+
"docs": "If true, disables the whole-card click effect.",
|
3464
|
+
"docsTags": [],
|
3465
|
+
"values": [
|
3466
|
+
{
|
3467
|
+
"type": "boolean"
|
3468
|
+
}
|
3469
|
+
],
|
3470
|
+
"optional": true,
|
3471
|
+
"required": false,
|
3472
|
+
"getter": false,
|
3473
|
+
"setter": false
|
3474
|
+
},
|
3452
3475
|
{
|
3453
3476
|
"name": "layout",
|
3454
3477
|
"type": "\"landscape\" | \"portrait\"",
|
@@ -26887,6 +26910,35 @@
|
|
26887
26910
|
"getter": false,
|
26888
26911
|
"setter": false
|
26889
26912
|
},
|
26913
|
+
{
|
26914
|
+
"name": "disableClickableRows",
|
26915
|
+
"type": "boolean",
|
26916
|
+
"complexType": {
|
26917
|
+
"original": "boolean",
|
26918
|
+
"resolved": "boolean",
|
26919
|
+
"references": {}
|
26920
|
+
},
|
26921
|
+
"mutable": false,
|
26922
|
+
"attr": "disable-clickable-rows",
|
26923
|
+
"reflectToAttr": true,
|
26924
|
+
"docs": "Disable the clickable rows functionality.",
|
26925
|
+
"docsTags": [
|
26926
|
+
{
|
26927
|
+
"name": "default",
|
26928
|
+
"text": "false"
|
26929
|
+
}
|
26930
|
+
],
|
26931
|
+
"default": "false",
|
26932
|
+
"values": [
|
26933
|
+
{
|
26934
|
+
"type": "boolean"
|
26935
|
+
}
|
26936
|
+
],
|
26937
|
+
"optional": false,
|
26938
|
+
"required": false,
|
26939
|
+
"getter": false,
|
26940
|
+
"setter": false
|
26941
|
+
},
|
26890
26942
|
{
|
26891
26943
|
"name": "hideCaption",
|
26892
26944
|
"type": "boolean",
|
package/docs-vscode.json
CHANGED
@@ -838,6 +838,10 @@
|
|
838
838
|
"value": "Cards are used to display content in a compact and organized way."
|
839
839
|
},
|
840
840
|
"attributes": [
|
841
|
+
{
|
842
|
+
"name": "disable-card-click",
|
843
|
+
"description": "If true, disables the whole-card click effect."
|
844
|
+
},
|
841
845
|
{
|
842
846
|
"name": "layout",
|
843
847
|
"description": "The layout of the card. `landscape` only applies when the card is large enough. Defaults to portrait.",
|
@@ -3702,6 +3706,10 @@
|
|
3702
3706
|
}
|
3703
3707
|
]
|
3704
3708
|
},
|
3709
|
+
{
|
3710
|
+
"name": "disable-clickable-rows",
|
3711
|
+
"description": "Disable the clickable rows functionality."
|
3712
|
+
},
|
3705
3713
|
{
|
3706
3714
|
"name": "hide-caption",
|
3707
3715
|
"description": "Visually hide the table's caption"
|
package/hydrate/index.js
CHANGED
@@ -19090,6 +19090,8 @@ class NanoCard {
|
|
19090
19090
|
variant;
|
19091
19091
|
/** Size of card's heading. Defaults to `large`. Has no baring on `variant="promo"` cards */
|
19092
19092
|
size;
|
19093
|
+
/** If true, disables the whole-card click effect. */
|
19094
|
+
disableCardClick;
|
19093
19095
|
static get style() { return cardCss; }
|
19094
19096
|
static get cmpMeta() { return {
|
19095
19097
|
"$flags$": 0,
|
@@ -19097,11 +19099,12 @@ class NanoCard {
|
|
19097
19099
|
"$members$": {
|
19098
19100
|
"layout": [513],
|
19099
19101
|
"variant": [513],
|
19100
|
-
"size": [513]
|
19102
|
+
"size": [513],
|
19103
|
+
"disableCardClick": [516, "disable-card-click"]
|
19101
19104
|
},
|
19102
19105
|
"$listeners$": undefined,
|
19103
19106
|
"$lazyBundleId$": "-",
|
19104
|
-
"$attrsToReflect$": [["layout", "layout"], ["variant", "variant"], ["size", "size"]]
|
19107
|
+
"$attrsToReflect$": [["layout", "layout"], ["variant", "variant"], ["size", "size"], ["disableCardClick", "disable-card-click"]]
|
19105
19108
|
}; }
|
19106
19109
|
}
|
19107
19110
|
|
@@ -23648,6 +23651,8 @@ class NanoTable {
|
|
23648
23651
|
return;
|
23649
23652
|
caption.classList.toggle('visually-hidden', this.hideCaption);
|
23650
23653
|
}
|
23654
|
+
/** Disable the clickable rows functionality. */
|
23655
|
+
disableClickableRows = false;
|
23651
23656
|
resizeObserver;
|
23652
23657
|
mutationObserver;
|
23653
23658
|
intersectionObserver;
|
@@ -23669,15 +23674,17 @@ class NanoTable {
|
|
23669
23674
|
return;
|
23670
23675
|
this.settingUp = true;
|
23671
23676
|
// Clickable rows
|
23672
|
-
|
23673
|
-
|
23674
|
-
|
23675
|
-
row.
|
23676
|
-
|
23677
|
-
|
23678
|
-
|
23679
|
-
|
23680
|
-
|
23677
|
+
if (!this.disableClickableRows) {
|
23678
|
+
const rows = Array.from(this.host.querySelectorAll('tr'));
|
23679
|
+
for (const row of rows) {
|
23680
|
+
if (this.getRowClickElements(row).length === 1) {
|
23681
|
+
row.setAttribute('clickable', 'true');
|
23682
|
+
row.addEventListener('click', this.rowClickHandler);
|
23683
|
+
}
|
23684
|
+
else {
|
23685
|
+
row.removeAttribute('clickable');
|
23686
|
+
row.removeEventListener('click', this.rowClickHandler);
|
23687
|
+
}
|
23681
23688
|
}
|
23682
23689
|
}
|
23683
23690
|
// Sticky columns and rows
|
@@ -23828,10 +23835,10 @@ class NanoTable {
|
|
23828
23835
|
this.cleanUpObservers();
|
23829
23836
|
}
|
23830
23837
|
render() {
|
23831
|
-
return (h(Host, { key: '
|
23838
|
+
return (h(Host, { key: 'dfcda7c6604792e025f1ed4997395857ad786be3', class: {
|
23832
23839
|
'nano-table': true,
|
23833
23840
|
'nano-table--props-ready': this.propsReady,
|
23834
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
23841
|
+
} }, this.scrollable && (h("nano-masked-overflow", { key: '2ef0536af50f22134e4c0d295172817287c46196', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '1b9ba48be1ccf92ac46f9873ac08b43a51cfcabc', class: "nano-table__overflow" }))), h("slot", { key: 'ab86c4eab83b69cb4ba31b22ae18f9cb0c31033a' })));
|
23835
23842
|
}
|
23836
23843
|
static get watchers() { return {
|
23837
23844
|
"compact": ["handleCompactChange"],
|
@@ -23845,11 +23852,12 @@ class NanoTable {
|
|
23845
23852
|
"compact": [520],
|
23846
23853
|
"scrollable": [516],
|
23847
23854
|
"hideCaption": [516, "hide-caption"],
|
23855
|
+
"disableClickableRows": [516, "disable-clickable-rows"],
|
23848
23856
|
"propsReady": [32]
|
23849
23857
|
},
|
23850
23858
|
"$listeners$": undefined,
|
23851
23859
|
"$lazyBundleId$": "-",
|
23852
|
-
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"]]
|
23860
|
+
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"], ["disableClickableRows", "disable-clickable-rows"]]
|
23853
23861
|
}; }
|
23854
23862
|
}
|
23855
23863
|
|
package/hydrate/index.mjs
CHANGED
@@ -19088,6 +19088,8 @@ class NanoCard {
|
|
19088
19088
|
variant;
|
19089
19089
|
/** Size of card's heading. Defaults to `large`. Has no baring on `variant="promo"` cards */
|
19090
19090
|
size;
|
19091
|
+
/** If true, disables the whole-card click effect. */
|
19092
|
+
disableCardClick;
|
19091
19093
|
static get style() { return cardCss; }
|
19092
19094
|
static get cmpMeta() { return {
|
19093
19095
|
"$flags$": 0,
|
@@ -19095,11 +19097,12 @@ class NanoCard {
|
|
19095
19097
|
"$members$": {
|
19096
19098
|
"layout": [513],
|
19097
19099
|
"variant": [513],
|
19098
|
-
"size": [513]
|
19100
|
+
"size": [513],
|
19101
|
+
"disableCardClick": [516, "disable-card-click"]
|
19099
19102
|
},
|
19100
19103
|
"$listeners$": undefined,
|
19101
19104
|
"$lazyBundleId$": "-",
|
19102
|
-
"$attrsToReflect$": [["layout", "layout"], ["variant", "variant"], ["size", "size"]]
|
19105
|
+
"$attrsToReflect$": [["layout", "layout"], ["variant", "variant"], ["size", "size"], ["disableCardClick", "disable-card-click"]]
|
19103
19106
|
}; }
|
19104
19107
|
}
|
19105
19108
|
|
@@ -23646,6 +23649,8 @@ class NanoTable {
|
|
23646
23649
|
return;
|
23647
23650
|
caption.classList.toggle('visually-hidden', this.hideCaption);
|
23648
23651
|
}
|
23652
|
+
/** Disable the clickable rows functionality. */
|
23653
|
+
disableClickableRows = false;
|
23649
23654
|
resizeObserver;
|
23650
23655
|
mutationObserver;
|
23651
23656
|
intersectionObserver;
|
@@ -23667,15 +23672,17 @@ class NanoTable {
|
|
23667
23672
|
return;
|
23668
23673
|
this.settingUp = true;
|
23669
23674
|
// Clickable rows
|
23670
|
-
|
23671
|
-
|
23672
|
-
|
23673
|
-
row.
|
23674
|
-
|
23675
|
-
|
23676
|
-
|
23677
|
-
|
23678
|
-
|
23675
|
+
if (!this.disableClickableRows) {
|
23676
|
+
const rows = Array.from(this.host.querySelectorAll('tr'));
|
23677
|
+
for (const row of rows) {
|
23678
|
+
if (this.getRowClickElements(row).length === 1) {
|
23679
|
+
row.setAttribute('clickable', 'true');
|
23680
|
+
row.addEventListener('click', this.rowClickHandler);
|
23681
|
+
}
|
23682
|
+
else {
|
23683
|
+
row.removeAttribute('clickable');
|
23684
|
+
row.removeEventListener('click', this.rowClickHandler);
|
23685
|
+
}
|
23679
23686
|
}
|
23680
23687
|
}
|
23681
23688
|
// Sticky columns and rows
|
@@ -23826,10 +23833,10 @@ class NanoTable {
|
|
23826
23833
|
this.cleanUpObservers();
|
23827
23834
|
}
|
23828
23835
|
render() {
|
23829
|
-
return (h(Host, { key: '
|
23836
|
+
return (h(Host, { key: 'dfcda7c6604792e025f1ed4997395857ad786be3', class: {
|
23830
23837
|
'nano-table': true,
|
23831
23838
|
'nano-table--props-ready': this.propsReady,
|
23832
|
-
} }, this.scrollable && (h("nano-masked-overflow", { key: '
|
23839
|
+
} }, this.scrollable && (h("nano-masked-overflow", { key: '2ef0536af50f22134e4c0d295172817287c46196', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '1b9ba48be1ccf92ac46f9873ac08b43a51cfcabc', class: "nano-table__overflow" }))), h("slot", { key: 'ab86c4eab83b69cb4ba31b22ae18f9cb0c31033a' })));
|
23833
23840
|
}
|
23834
23841
|
static get watchers() { return {
|
23835
23842
|
"compact": ["handleCompactChange"],
|
@@ -23843,11 +23850,12 @@ class NanoTable {
|
|
23843
23850
|
"compact": [520],
|
23844
23851
|
"scrollable": [516],
|
23845
23852
|
"hideCaption": [516, "hide-caption"],
|
23853
|
+
"disableClickableRows": [516, "disable-clickable-rows"],
|
23846
23854
|
"propsReady": [32]
|
23847
23855
|
},
|
23848
23856
|
"$listeners$": undefined,
|
23849
23857
|
"$lazyBundleId$": "-",
|
23850
|
-
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"]]
|
23858
|
+
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"], ["disableClickableRows", "disable-clickable-rows"]]
|
23851
23859
|
}; }
|
23852
23860
|
}
|
23853
23861
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.7.0",
|
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.
|
63
|
+
"@nanoporetech-digital/style": "8.7.0"
|
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
|