@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.
Files changed (35) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/nano-components.cjs.js +1 -1
  3. package/dist/cjs/nano-table.cjs.entry.js +15 -11
  4. package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
  5. package/dist/collection/components/table/table.js +35 -11
  6. package/dist/components/nano-table.js +16 -11
  7. package/dist/esm/loader.js +1 -1
  8. package/dist/esm/nano-components.js +1 -1
  9. package/dist/esm/nano-table.entry.js +15 -11
  10. package/dist/nano-components/nano-components.css +7 -3
  11. package/dist/nano-components/nano-components.esm.js +1 -1
  12. package/dist/nano-components/nano-table.entry.js +1 -1
  13. package/dist/style/components.css +1 -1
  14. package/dist/style/components.css.map +1 -1
  15. package/dist/style/core.css +1 -1
  16. package/dist/style/core.css.map +1 -1
  17. package/dist/style/nano.css +1 -1
  18. package/dist/style/nano.css.map +1 -1
  19. package/dist/types/components/table/table.d.ts +2 -0
  20. package/dist/types/components.d.ts +10 -0
  21. package/docs-json.json +31 -2
  22. package/docs-vscode.json +4 -0
  23. package/hydrate/index.js +17 -12
  24. package/hydrate/index.mjs +17 -12
  25. package/package.json +2 -2
  26. /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
  27. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/index.d.ts +0 -0
  28. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/output-vue.d.ts +0 -0
  29. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/plugin.d.ts +0 -0
  30. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/types.d.ts +0 -0
  31. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/plugins/stencil/vue-output/utils.d.ts +0 -0
  32. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/stencil.config.d.ts +0 -0
  33. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/stencil.config.prod.d.ts +0 -0
  34. /package/dist/types/builds/{W1hp42tj → -v_1b6Vq}/0/Digital/nano-components/packages/components/.stencil/testing/mocks/intersection-observer.d.ts +0 -0
  35. /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-11T08:35:41",
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/W1hp42tj/0/Digital/nano-components/packages/components/src/components/breadcrumb/breadcrumb.tsx",
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
@@ -3706,6 +3706,10 @@
3706
3706
  }
3707
3707
  ]
3708
3708
  },
3709
+ {
3710
+ "name": "disable-clickable-rows",
3711
+ "description": "Disable the clickable rows functionality."
3712
+ },
3709
3713
  {
3710
3714
  "name": "hide-caption",
3711
3715
  "description": "Visually hide the table's caption"
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
- const rows = Array.from(this.host.querySelectorAll('tr'));
23676
- for (const row of rows) {
23677
- if (this.getRowClickElements(row).length === 1) {
23678
- row.setAttribute('clickable', 'true');
23679
- row.addEventListener('click', this.rowClickHandler);
23680
- }
23681
- else {
23682
- row.removeAttribute('clickable');
23683
- row.removeEventListener('click', this.rowClickHandler);
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: '3c45a2880bd20a771bcc682355452312340db56d', class: {
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: '6b29ca4c8c64deae80def0d3958dc25c4d6cd1c0', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '83dce90d6e5425b0fd2a2443d0d90b7acfc9c141', class: "nano-table__overflow" }))), h("slot", { key: 'cff62841c17cf20c2ff5872944dbd38bbe438369' })));
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
- const rows = Array.from(this.host.querySelectorAll('tr'));
23674
- for (const row of rows) {
23675
- if (this.getRowClickElements(row).length === 1) {
23676
- row.setAttribute('clickable', 'true');
23677
- row.addEventListener('click', this.rowClickHandler);
23678
- }
23679
- else {
23680
- row.removeAttribute('clickable');
23681
- row.removeEventListener('click', this.rowClickHandler);
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: '3c45a2880bd20a771bcc682355452312340db56d', class: {
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: '6b29ca4c8c64deae80def0d3958dc25c4d6cd1c0', hideScrollbars: false, scrollControls: false, label: this.caption?.textContent || undefined, class: "nano-table__overflow-container" }, h("div", { key: '83dce90d6e5425b0fd2a2443d0d90b7acfc9c141', class: "nano-table__overflow" }))), h("slot", { key: 'cff62841c17cf20c2ff5872944dbd38bbe438369' })));
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.6.0",
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.6.0"
63
+ "@nanoporetech-digital/style": "8.7.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@algolia/client-search": "^4.22.1",