@nanoporetech-digital/components 5.11.1 → 5.11.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/CHANGELOG.md +11 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-icon.cjs.entry.js +4 -2
- package/dist/cjs/nano-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-bbd65636.js → nano-table-927ce96a.js} +2 -2
- package/dist/cjs/{nano-table-bbd65636.js.map → nano-table-927ce96a.js.map} +1 -1
- package/dist/cjs/nano-table.cjs.entry.js +1 -1
- package/dist/cjs/{table.worker-ea98a8dd.js → table.worker-e77b2693.js} +2 -2
- package/dist/cjs/table.worker-e77b2693.js.map +1 -0
- package/dist/collection/components/icon/icon.js +26 -2
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/components/icon.js +5 -2
- package/dist/components/icon.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-icon.entry.js +4 -2
- package/dist/esm/nano-icon.entry.js.map +1 -1
- package/dist/esm/{nano-table-3ab8cd85.js → nano-table-6eea76f2.js} +2 -2
- package/dist/esm/{nano-table-3ab8cd85.js.map → nano-table-6eea76f2.js.map} +1 -1
- package/dist/esm/nano-table.entry.js +1 -1
- package/dist/esm/{table.worker-75d6e1d2.js → table.worker-dcfbd52d.js} +2 -2
- package/dist/esm/table.worker-dcfbd52d.js.map +1 -0
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-components.esm.js.map +1 -1
- package/dist/nano-components/nano-icon.entry.js +1 -1
- package/dist/nano-components/nano-icon.entry.js.map +1 -1
- package/dist/nano-components/{nano-table-3ab8cd85.js → nano-table-6eea76f2.js} +2 -2
- package/dist/nano-components/nano-table.entry.js +1 -1
- package/dist/nano-components/table.worker-dcfbd52d.js +5 -0
- package/dist/types/components/icon/icon.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/docs-json.json +20 -1
- package/docs-vscode.json +4 -0
- package/hydrate/index.js +6 -3
- package/package.json +3 -3
- package/dist/cjs/table.worker-ea98a8dd.js.map +0 -1
- package/dist/esm/table.worker-75d6e1d2.js.map +0 -1
- package/dist/nano-components/table.worker-75d6e1d2.js +0 -5
- /package/dist/nano-components/{nano-table-3ab8cd85.js.map → nano-table-6eea76f2.js.map} +0 -0
- /package/dist/nano-components/{table.worker-75d6e1d2.js.map → table.worker-dcfbd52d.js.map} +0 -0
@@ -1210,6 +1210,10 @@ export namespace Components {
|
|
1210
1210
|
* Specifies which icon to use from the built-in set of icons.
|
1211
1211
|
*/
|
1212
1212
|
"name"?: string;
|
1213
|
+
/**
|
1214
|
+
* Specifies the role to use for accessibility. Defaults to 'presentation' (invisible to screen-readers)
|
1215
|
+
*/
|
1216
|
+
"role": string;
|
1213
1217
|
/**
|
1214
1218
|
* The size of the icon. Available options are: `"small"` and `"large"`.
|
1215
1219
|
*/
|
@@ -4508,6 +4512,10 @@ declare namespace LocalJSX {
|
|
4508
4512
|
* Specifies which icon to use from the built-in set of icons.
|
4509
4513
|
*/
|
4510
4514
|
"name"?: string;
|
4515
|
+
/**
|
4516
|
+
* Specifies the role to use for accessibility. Defaults to 'presentation' (invisible to screen-readers)
|
4517
|
+
*/
|
4518
|
+
"role"?: string;
|
4511
4519
|
/**
|
4512
4520
|
* The size of the icon. Available options are: `"small"` and `"large"`.
|
4513
4521
|
*/
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2024-02-
|
2
|
+
"timestamp": "2024-02-29T17:03:38",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.23.2",
|
@@ -8135,6 +8135,25 @@
|
|
8135
8135
|
"getter": false,
|
8136
8136
|
"setter": false
|
8137
8137
|
},
|
8138
|
+
{
|
8139
|
+
"name": "role",
|
8140
|
+
"type": "string",
|
8141
|
+
"mutable": true,
|
8142
|
+
"attr": "role",
|
8143
|
+
"reflectToAttr": true,
|
8144
|
+
"docs": "Specifies the role to use for accessibility. Defaults to 'presentation' (invisible to screen-readers)",
|
8145
|
+
"docsTags": [],
|
8146
|
+
"default": "'presentation'",
|
8147
|
+
"values": [
|
8148
|
+
{
|
8149
|
+
"type": "string"
|
8150
|
+
}
|
8151
|
+
],
|
8152
|
+
"optional": false,
|
8153
|
+
"required": false,
|
8154
|
+
"getter": false,
|
8155
|
+
"setter": false
|
8156
|
+
},
|
8138
8157
|
{
|
8139
8158
|
"name": "size",
|
8140
8159
|
"type": "\"large\" | \"small\"",
|
package/docs-vscode.json
CHANGED
@@ -1443,6 +1443,10 @@
|
|
1443
1443
|
"name": "name",
|
1444
1444
|
"description": "Specifies which icon to use from the built-in set of icons."
|
1445
1445
|
},
|
1446
|
+
{
|
1447
|
+
"name": "role",
|
1448
|
+
"description": "Specifies the role to use for accessibility. Defaults to 'presentation' (invisible to screen-readers)"
|
1449
|
+
},
|
1446
1450
|
{
|
1447
1451
|
"name": "size",
|
1448
1452
|
"description": "The size of the icon.\nAvailable options are: `\"small\"` and `\"large\"`.",
|
package/hydrate/index.js
CHANGED
@@ -19567,6 +19567,7 @@ class Icon {
|
|
19567
19567
|
this.isVisible = false;
|
19568
19568
|
this.isLoading = true;
|
19569
19569
|
this.color = undefined;
|
19570
|
+
this.role = 'presentation';
|
19570
19571
|
this.ariaLabel = undefined;
|
19571
19572
|
this.flipRtl = undefined;
|
19572
19573
|
this.name = undefined;
|
@@ -19576,7 +19577,7 @@ class Icon {
|
|
19576
19577
|
this.lazy = true;
|
19577
19578
|
}
|
19578
19579
|
setAriaLabel() {
|
19579
|
-
if (!this.ariaLabel && this.
|
19580
|
+
if (!this.ariaLabel && (!this.role || this.role !== 'presentation')) {
|
19580
19581
|
const label = getName(this.name, this.icon);
|
19581
19582
|
// user did not provide a label
|
19582
19583
|
// come up with the label based on the icon name
|
@@ -19620,10 +19621,11 @@ class Icon {
|
|
19620
19621
|
this.name.indexOf('chevron') > -1) &&
|
19621
19622
|
this.el.ownerDocument.dir === 'rtl' &&
|
19622
19623
|
this.flipRtl !== false);
|
19623
|
-
return (hAsync(Host, {
|
19624
|
+
return (hAsync(Host, { class: Object.assign(Object.assign({}, createColorClasses(this.color)), { loading: this.isLoading, [`icon-${this.size}`]: !!this.size, 'flip-rtl': !!flipRtl }) }, (hAsync("div", { class: "icon-inner" }))));
|
19624
19625
|
}
|
19625
19626
|
get el() { return getElement(this); }
|
19626
19627
|
static get watchers() { return {
|
19628
|
+
"role": ["setAriaLabel"],
|
19627
19629
|
"name": ["loadIcon"],
|
19628
19630
|
"src": ["loadIcon"],
|
19629
19631
|
"icon": ["loadIcon"]
|
@@ -19634,6 +19636,7 @@ class Icon {
|
|
19634
19636
|
"$tagName$": "nano-icon",
|
19635
19637
|
"$members$": {
|
19636
19638
|
"color": [1],
|
19639
|
+
"role": [1537],
|
19637
19640
|
"ariaLabel": [1537, "aria-label"],
|
19638
19641
|
"flipRtl": [4, "flip-rtl"],
|
19639
19642
|
"name": [1],
|
@@ -19647,7 +19650,7 @@ class Icon {
|
|
19647
19650
|
},
|
19648
19651
|
"$listeners$": undefined,
|
19649
19652
|
"$lazyBundleId$": "-",
|
19650
|
-
"$attrsToReflect$": [["ariaLabel", "aria-label"]]
|
19653
|
+
"$attrsToReflect$": [["role", "role"], ["ariaLabel", "aria-label"]]
|
19651
19654
|
}; }
|
19652
19655
|
}
|
19653
19656
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "5.11.
|
3
|
+
"version": "5.11.2",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://git.oxfordnanolabs.local/Digital/nano-components"
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"prettier.test": "npm run prettier.base -- --check",
|
42
42
|
"prettier.base": "prettier \"./{src,jest}/**/*.{ts,tsx,js,jsx}\"",
|
43
43
|
"test": "run-p themes.prod test.all.base",
|
44
|
-
"test.
|
44
|
+
"test.pi": "run-p themes.prod test.all.base",
|
45
45
|
"test.spec": "stencil test --spec --watch --config='./stencil.config.test.ts'",
|
46
46
|
"test.e2e": "stencil test --e2e --max-workers=1 --watch --config='./stencil.config.test.ts'",
|
47
47
|
"test.spec.debug": "npx --node-arg=\"--inspect-brk\" stencil test --spec --config='./stencil.config.test.ts'",
|
@@ -129,7 +129,7 @@
|
|
129
129
|
"nanopore",
|
130
130
|
"digital"
|
131
131
|
],
|
132
|
-
"gitHead": "
|
132
|
+
"gitHead": "f1fa3c2da1fcee77322b48e827519f980e1cd5af",
|
133
133
|
"volta": {
|
134
134
|
"node": "18.14.0"
|
135
135
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"table.worker-ea98a8dd.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"table.worker-75d6e1d2.js","mappings":";;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Web Components for Nanopore digital Web Apps
|
3
|
-
*/
|
4
|
-
import{c as t}from"./nano-table-3ab8cd85.js";import"./index-9695db0a.js";import"./math-c02ddfda.js";import"./throttle-ac4fcefa.js";import"./index-3003356f.js";const o="table.worker";const r="stencil.table.worker";const e=new URL("table.worker-f258383d.js",import.meta.url).href;const s=new Blob(['importScripts("'+e+'")'],{type:"text/javascript"});const a=URL.createObjectURL(s);const c=t(a,o,r);URL.revokeObjectURL(a);export{c as worker,r as workerMsgId,o as workerName,e as workerPath};
|
5
|
-
//# sourceMappingURL=table.worker-75d6e1d2.js.map
|
File without changes
|
File without changes
|