@nanoporetech-digital/components 8.6.0 → 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-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/table/table.js +35 -11
- package/dist/components/nano-table.js +16 -11
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-table.entry.js +15 -11
- package/dist/nano-components/nano-components.css +7 -3
- 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/table/table.d.ts +2 -0
- package/dist/types/components.d.ts +10 -0
- package/docs-json.json +31 -2
- package/docs-vscode.json +4 -0
- package/hydrate/index.js +17 -12
- package/hydrate/index.mjs +17 -12
- package/package.json +2 -2
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/generate-vue-component.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
- /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/wdio.conf.d.ts +0 -0
@@ -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;
|
@@ -3290,6 +3290,11 @@ export namespace Components {
|
|
3290
3290
|
* @default 'auto'
|
3291
3291
|
*/
|
3292
3292
|
"compact": boolean | 'auto';
|
3293
|
+
/**
|
3294
|
+
* Disable the clickable rows functionality.
|
3295
|
+
* @default false
|
3296
|
+
*/
|
3297
|
+
"disableClickableRows": boolean;
|
3293
3298
|
/**
|
3294
3299
|
* Visually hide the table's caption
|
3295
3300
|
* @default false
|
@@ -8382,6 +8387,11 @@ declare namespace LocalJSX {
|
|
8382
8387
|
* @default 'auto'
|
8383
8388
|
*/
|
8384
8389
|
"compact"?: boolean | 'auto';
|
8390
|
+
/**
|
8391
|
+
* Disable the clickable rows functionality.
|
8392
|
+
* @default false
|
8393
|
+
*/
|
8394
|
+
"disableClickableRows"?: boolean;
|
8385
8395
|
/**
|
8386
8396
|
* Visually hide the table's caption
|
8387
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
|
}
|
@@ -26910,6 +26910,35 @@
|
|
26910
26910
|
"getter": false,
|
26911
26911
|
"setter": false
|
26912
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
|
+
},
|
26913
26942
|
{
|
26914
26943
|
"name": "hideCaption",
|
26915
26944
|
"type": "boolean",
|
package/docs-vscode.json
CHANGED
package/hydrate/index.js
CHANGED
@@ -23651,6 +23651,8 @@ class NanoTable {
|
|
23651
23651
|
return;
|
23652
23652
|
caption.classList.toggle('visually-hidden', this.hideCaption);
|
23653
23653
|
}
|
23654
|
+
/** Disable the clickable rows functionality. */
|
23655
|
+
disableClickableRows = false;
|
23654
23656
|
resizeObserver;
|
23655
23657
|
mutationObserver;
|
23656
23658
|
intersectionObserver;
|
@@ -23672,15 +23674,17 @@ class NanoTable {
|
|
23672
23674
|
return;
|
23673
23675
|
this.settingUp = true;
|
23674
23676
|
// Clickable rows
|
23675
|
-
|
23676
|
-
|
23677
|
-
|
23678
|
-
row.
|
23679
|
-
|
23680
|
-
|
23681
|
-
|
23682
|
-
|
23683
|
-
|
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
|
+
}
|
23684
23688
|
}
|
23685
23689
|
}
|
23686
23690
|
// Sticky columns and rows
|
@@ -23831,10 +23835,10 @@ class NanoTable {
|
|
23831
23835
|
this.cleanUpObservers();
|
23832
23836
|
}
|
23833
23837
|
render() {
|
23834
|
-
return (h(Host, { key: '
|
23838
|
+
return (h(Host, { key: 'dfcda7c6604792e025f1ed4997395857ad786be3', class: {
|
23835
23839
|
'nano-table': true,
|
23836
23840
|
'nano-table--props-ready': this.propsReady,
|
23837
|
-
} }, 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' })));
|
23838
23842
|
}
|
23839
23843
|
static get watchers() { return {
|
23840
23844
|
"compact": ["handleCompactChange"],
|
@@ -23848,11 +23852,12 @@ class NanoTable {
|
|
23848
23852
|
"compact": [520],
|
23849
23853
|
"scrollable": [516],
|
23850
23854
|
"hideCaption": [516, "hide-caption"],
|
23855
|
+
"disableClickableRows": [516, "disable-clickable-rows"],
|
23851
23856
|
"propsReady": [32]
|
23852
23857
|
},
|
23853
23858
|
"$listeners$": undefined,
|
23854
23859
|
"$lazyBundleId$": "-",
|
23855
|
-
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"]]
|
23860
|
+
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"], ["disableClickableRows", "disable-clickable-rows"]]
|
23856
23861
|
}; }
|
23857
23862
|
}
|
23858
23863
|
|
package/hydrate/index.mjs
CHANGED
@@ -23649,6 +23649,8 @@ class NanoTable {
|
|
23649
23649
|
return;
|
23650
23650
|
caption.classList.toggle('visually-hidden', this.hideCaption);
|
23651
23651
|
}
|
23652
|
+
/** Disable the clickable rows functionality. */
|
23653
|
+
disableClickableRows = false;
|
23652
23654
|
resizeObserver;
|
23653
23655
|
mutationObserver;
|
23654
23656
|
intersectionObserver;
|
@@ -23670,15 +23672,17 @@ class NanoTable {
|
|
23670
23672
|
return;
|
23671
23673
|
this.settingUp = true;
|
23672
23674
|
// Clickable rows
|
23673
|
-
|
23674
|
-
|
23675
|
-
|
23676
|
-
row.
|
23677
|
-
|
23678
|
-
|
23679
|
-
|
23680
|
-
|
23681
|
-
|
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
|
+
}
|
23682
23686
|
}
|
23683
23687
|
}
|
23684
23688
|
// Sticky columns and rows
|
@@ -23829,10 +23833,10 @@ class NanoTable {
|
|
23829
23833
|
this.cleanUpObservers();
|
23830
23834
|
}
|
23831
23835
|
render() {
|
23832
|
-
return (h(Host, { key: '
|
23836
|
+
return (h(Host, { key: 'dfcda7c6604792e025f1ed4997395857ad786be3', class: {
|
23833
23837
|
'nano-table': true,
|
23834
23838
|
'nano-table--props-ready': this.propsReady,
|
23835
|
-
} }, 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' })));
|
23836
23840
|
}
|
23837
23841
|
static get watchers() { return {
|
23838
23842
|
"compact": ["handleCompactChange"],
|
@@ -23846,11 +23850,12 @@ class NanoTable {
|
|
23846
23850
|
"compact": [520],
|
23847
23851
|
"scrollable": [516],
|
23848
23852
|
"hideCaption": [516, "hide-caption"],
|
23853
|
+
"disableClickableRows": [516, "disable-clickable-rows"],
|
23849
23854
|
"propsReady": [32]
|
23850
23855
|
},
|
23851
23856
|
"$listeners$": undefined,
|
23852
23857
|
"$lazyBundleId$": "-",
|
23853
|
-
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"]]
|
23858
|
+
"$attrsToReflect$": [["compact", "compact"], ["scrollable", "scrollable"], ["hideCaption", "hide-caption"], ["disableClickableRows", "disable-clickable-rows"]]
|
23854
23859
|
}; }
|
23855
23860
|
}
|
23856
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
|