@nanoporetech-digital/components 4.9.3 → 4.10.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/CHANGELOG.md +32 -0
- package/dist/cjs/drag-777bd8dd.js +74 -0
- package/dist/cjs/drag-777bd8dd.js.map +1 -0
- package/dist/cjs/index-71f899a7.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +4 -4
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-nav.cjs.entry.js +2 -3
- package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +40 -3
- package/dist/cjs/nano-icon-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +653 -0
- package/dist/cjs/nano-sortable.cjs.entry.js.map +1 -0
- package/dist/cjs/nano-split-pane.cjs.entry.js +30 -45
- package/dist/cjs/nano-split-pane.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +39 -43
- package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js +3 -3
- package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-0bac0552.js → nano-table-ff33dc43.js} +20 -147
- package/dist/cjs/nano-table-ff33dc43.js.map +1 -0
- package/dist/cjs/nano-table.cjs.entry.js +1 -1
- package/dist/cjs/{table.worker-13b5bc18.js → table.worker-0a6bc962.js} +3 -3
- package/dist/cjs/table.worker-0a6bc962.js.map +1 -0
- package/dist/cjs/{table.worker-f820b411.js → table.worker-bd51e29f.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/global-nav/global-nav.js +2 -3
- package/dist/collection/components/global-nav/global-nav.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.css +6 -4
- package/dist/collection/components/icon-button/icon-button.js +83 -4
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/nav-item/nav-item.js +4 -4
- package/dist/collection/components/nav-item/nav-item.js.map +1 -1
- package/dist/collection/components/sortable/sortable.css +28 -0
- package/dist/collection/components/sortable/sortable.js +1180 -0
- package/dist/collection/components/sortable/sortable.js.map +1 -0
- package/dist/collection/components/split-pane/split-pane.js +29 -27
- package/dist/collection/components/split-pane/split-pane.js.map +1 -1
- package/dist/collection/components/table/table-interface.js.map +1 -1
- package/dist/collection/components/table/table.css +12 -38
- package/dist/collection/components/table/table.header.js +3 -86
- package/dist/collection/components/table/table.header.js.map +1 -1
- package/dist/collection/components/table/table.js +4 -92
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/table.store.js +1 -1
- package/dist/collection/components/table/table.store.js.map +1 -1
- package/dist/collection/components/table/table.worker.js +3 -3
- package/dist/collection/components/table/table.worker.js.map +1 -1
- package/dist/collection/components/tabs/tab-group.css +9 -13
- package/dist/collection/components/tabs/tab-group.js +39 -43
- package/dist/collection/components/tabs/tab-group.js.map +1 -1
- package/dist/collection/components/tabs/tab.css +53 -14
- package/dist/collection/components/tabs/tab.js +8 -2
- package/dist/collection/components/tabs/tab.js.map +1 -1
- package/dist/collection/utils/drag.js +52 -4
- package/dist/collection/utils/drag.js.map +1 -1
- package/dist/components/drag.js +72 -0
- package/dist/components/drag.js.map +1 -0
- package/dist/components/icon-button.js +45 -5
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/nano-global-nav.js +2 -3
- package/dist/components/nano-global-nav.js.map +1 -1
- package/dist/components/nano-sortable.d.ts +11 -0
- package/dist/components/nano-sortable.js +691 -0
- package/dist/components/nano-sortable.js.map +1 -0
- package/dist/components/nano-split-pane.js +30 -45
- package/dist/components/nano-split-pane.js.map +1 -1
- package/dist/components/nano-tab-group.js +40 -44
- package/dist/components/nano-tab-group.js.map +1 -1
- package/dist/components/nano-tab.js +3 -3
- package/dist/components/nano-tab.js.map +1 -1
- package/dist/components/nav-item.js +4 -4
- package/dist/components/nav-item.js.map +1 -1
- package/dist/components/table.js +19 -147
- package/dist/components/table.js.map +1 -1
- package/dist/components/table.worker.js +1 -1
- package/dist/esm/drag-1723a4cc.js +72 -0
- package/dist/esm/drag-1723a4cc.js.map +1 -0
- package/dist/esm/index-dad5627b.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-global-nav-user-profile_3.entry.js +4 -4
- package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/esm/nano-global-nav.entry.js +2 -3
- package/dist/esm/nano-global-nav.entry.js.map +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +41 -4
- package/dist/esm/nano-icon-button_2.entry.js.map +1 -1
- package/dist/esm/nano-sortable.entry.js +649 -0
- package/dist/esm/nano-sortable.entry.js.map +1 -0
- package/dist/esm/nano-split-pane.entry.js +30 -45
- package/dist/esm/nano-split-pane.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +39 -43
- package/dist/esm/nano-tab-group.entry.js.map +1 -1
- package/dist/esm/nano-tab.entry.js +3 -3
- package/dist/esm/nano-tab.entry.js.map +1 -1
- package/dist/esm/{nano-table-ece658c4.js → nano-table-ec980076.js} +21 -148
- package/dist/esm/nano-table-ec980076.js.map +1 -0
- package/dist/esm/nano-table.entry.js +1 -1
- package/dist/esm/{table.worker-e89525d3.js → table.worker-b53db58e.js} +3 -3
- package/dist/esm/table.worker-b53db58e.js.map +1 -0
- package/dist/esm/{table.worker-f820b411.js → table.worker-bd51e29f.js} +1 -1
- package/dist/nano-components/nano-components.css +1 -1
- 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/p-064af7d0.js +5 -0
- package/dist/nano-components/p-064af7d0.js.map +1 -0
- package/dist/nano-components/p-241baff8.entry.js +5 -0
- package/dist/nano-components/p-241baff8.entry.js.map +1 -0
- package/dist/nano-components/p-58b53239.entry.js.map +1 -1
- package/dist/nano-components/{p-bd2d0c58.js → p-806bcd46.js} +2 -2
- package/dist/nano-components/p-842cf127.js +5 -0
- package/dist/nano-components/p-842cf127.js.map +1 -0
- package/dist/nano-components/{p-272b2f59.entry.js → p-ace1ffc2.entry.js} +2 -2
- package/dist/nano-components/p-ace1ffc2.entry.js.map +1 -0
- package/dist/nano-components/p-b8e76fdf.entry.js +5 -0
- package/dist/nano-components/p-b8e76fdf.entry.js.map +1 -0
- package/dist/nano-components/{p-f820b411.js → p-bd51e29f.js} +1 -1
- package/dist/nano-components/p-d3de231c.entry.js +5 -0
- package/dist/nano-components/p-d3de231c.entry.js.map +1 -0
- package/dist/nano-components/{p-27d5d32b.entry.js → p-f591400b.entry.js} +2 -2
- package/dist/nano-components/p-f60fe933.entry.js +5 -0
- package/dist/nano-components/p-f60fe933.entry.js.map +1 -0
- package/dist/nano-components/p-f7535f45.entry.js +5 -0
- package/dist/nano-components/p-f7535f45.entry.js.map +1 -0
- package/dist/types/components/icon-button/icon-button.d.ts +14 -0
- package/dist/types/components/sortable/sortable.d.ts +204 -0
- package/dist/types/components/table/table-interface.d.ts +2 -4
- package/dist/types/components/table/table.d.ts +0 -30
- package/dist/types/components/table/table.header.d.ts +0 -3
- package/dist/types/components/tabs/tab-group.d.ts +0 -1
- package/dist/types/components/tabs/tab.d.ts +6 -0
- package/dist/types/components.d.ts +248 -28
- package/dist/types/utils/drag.d.ts +21 -1
- package/docs-json.json +562 -46
- package/docs-vscode.json +74 -5
- package/hydrate/index.js +877 -254
- package/package.json +2 -2
- package/dist/cjs/nano-table-0bac0552.js.map +0 -1
- package/dist/cjs/table.worker-13b5bc18.js.map +0 -1
- package/dist/esm/nano-table-ece658c4.js.map +0 -1
- package/dist/esm/table.worker-e89525d3.js.map +0 -1
- package/dist/nano-components/p-068bdd89.entry.js +0 -5
- package/dist/nano-components/p-068bdd89.entry.js.map +0 -1
- package/dist/nano-components/p-11025069.js +0 -5
- package/dist/nano-components/p-11025069.js.map +0 -1
- package/dist/nano-components/p-272b2f59.entry.js.map +0 -1
- package/dist/nano-components/p-64b56ee6.entry.js +0 -5
- package/dist/nano-components/p-64b56ee6.entry.js.map +0 -1
- package/dist/nano-components/p-a5a560e7.entry.js +0 -5
- package/dist/nano-components/p-a5a560e7.entry.js.map +0 -1
- package/dist/nano-components/p-a761ac89.entry.js +0 -5
- package/dist/nano-components/p-a761ac89.entry.js.map +0 -1
- /package/dist/nano-components/{p-27d5d32b.entry.js.map → p-806bcd46.js.map} +0 -0
- /package/dist/nano-components/{p-bd2d0c58.js.map → p-f591400b.entry.js.map} +0 -0
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-06-
|
2
|
+
"timestamp": "2023-06-26T23:07:54",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.23.0",
|
@@ -8243,7 +8243,7 @@
|
|
8243
8243
|
},
|
8244
8244
|
{
|
8245
8245
|
"filePath": "./src/components/icon-button/icon-button.tsx",
|
8246
|
-
"encapsulation": "
|
8246
|
+
"encapsulation": "shadow",
|
8247
8247
|
"tag": "nano-icon-button",
|
8248
8248
|
"readme": "# nano-icon-button\n\n\n",
|
8249
8249
|
"docs": "Icons buttons are simple, icon-only buttons that can be used for actions and in toolbars.",
|
@@ -8278,6 +8278,27 @@
|
|
8278
8278
|
"getter": false,
|
8279
8279
|
"setter": false
|
8280
8280
|
},
|
8281
|
+
{
|
8282
|
+
"name": "form",
|
8283
|
+
"type": "HTMLFormElement | string",
|
8284
|
+
"mutable": false,
|
8285
|
+
"attr": "form",
|
8286
|
+
"reflectToAttr": false,
|
8287
|
+
"docs": "The HTML form element or form element id.\nUsed to submit a form when the button is not a child of the form.",
|
8288
|
+
"docsTags": [],
|
8289
|
+
"values": [
|
8290
|
+
{
|
8291
|
+
"type": "HTMLFormElement"
|
8292
|
+
},
|
8293
|
+
{
|
8294
|
+
"type": "string"
|
8295
|
+
}
|
8296
|
+
],
|
8297
|
+
"optional": false,
|
8298
|
+
"required": false,
|
8299
|
+
"getter": false,
|
8300
|
+
"setter": false
|
8301
|
+
},
|
8281
8302
|
{
|
8282
8303
|
"name": "href",
|
8283
8304
|
"type": "string",
|
@@ -8368,6 +8389,24 @@
|
|
8368
8389
|
"getter": false,
|
8369
8390
|
"setter": false
|
8370
8391
|
},
|
8392
|
+
{
|
8393
|
+
"name": "rel",
|
8394
|
+
"type": "string",
|
8395
|
+
"mutable": false,
|
8396
|
+
"attr": "rel",
|
8397
|
+
"reflectToAttr": false,
|
8398
|
+
"docs": "Specifies the relationship of the target object to the link object.\nThe value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)",
|
8399
|
+
"docsTags": [],
|
8400
|
+
"values": [
|
8401
|
+
{
|
8402
|
+
"type": "string"
|
8403
|
+
}
|
8404
|
+
],
|
8405
|
+
"optional": false,
|
8406
|
+
"required": false,
|
8407
|
+
"getter": false,
|
8408
|
+
"setter": false
|
8409
|
+
},
|
8371
8410
|
{
|
8372
8411
|
"name": "showTooltip",
|
8373
8412
|
"type": "boolean",
|
@@ -8479,9 +8518,9 @@
|
|
8479
8518
|
"docs": "defaults to transparent;"
|
8480
8519
|
},
|
8481
8520
|
{
|
8482
|
-
"name": "--
|
8521
|
+
"name": "--box-shadow",
|
8483
8522
|
"annotation": "prop",
|
8484
|
-
"docs": "defaults to
|
8523
|
+
"docs": "defaults to none;"
|
8485
8524
|
},
|
8486
8525
|
{
|
8487
8526
|
"name": "--color",
|
@@ -13851,6 +13890,479 @@
|
|
13851
13890
|
"dependencies": [],
|
13852
13891
|
"dependencyGraph": {}
|
13853
13892
|
},
|
13893
|
+
{
|
13894
|
+
"filePath": "./src/components/sortable/sortable.tsx",
|
13895
|
+
"encapsulation": "shadow",
|
13896
|
+
"tag": "nano-sortable",
|
13897
|
+
"readme": "# nano-sortable\n\n\n",
|
13898
|
+
"docs": "An accessible and flexible re-order / sort utility component.\n\n- Drag and drop via mouse, touch or keyboard\n- Live announcements for screen readers\n- Works with or without an explicit handle (although with is preferable)",
|
13899
|
+
"docsTags": [
|
13900
|
+
{
|
13901
|
+
"name": "part",
|
13902
|
+
"text": "announcements - the a11y, live region. Visually hidden by default"
|
13903
|
+
},
|
13904
|
+
{
|
13905
|
+
"name": "slot",
|
13906
|
+
"text": "- The default slot containing any items you might want to sort"
|
13907
|
+
}
|
13908
|
+
],
|
13909
|
+
"usage": {},
|
13910
|
+
"props": [
|
13911
|
+
{
|
13912
|
+
"name": "animationEnabled",
|
13913
|
+
"type": "boolean",
|
13914
|
+
"mutable": false,
|
13915
|
+
"attr": "animation-enabled",
|
13916
|
+
"reflectToAttr": false,
|
13917
|
+
"docs": "Items being sorted will animate into place",
|
13918
|
+
"docsTags": [],
|
13919
|
+
"default": "true",
|
13920
|
+
"values": [
|
13921
|
+
{
|
13922
|
+
"type": "boolean"
|
13923
|
+
}
|
13924
|
+
],
|
13925
|
+
"optional": false,
|
13926
|
+
"required": false,
|
13927
|
+
"getter": false,
|
13928
|
+
"setter": false
|
13929
|
+
},
|
13930
|
+
{
|
13931
|
+
"name": "animationTiming",
|
13932
|
+
"type": "any",
|
13933
|
+
"mutable": false,
|
13934
|
+
"attr": "animation-timing",
|
13935
|
+
"reflectToAttr": false,
|
13936
|
+
"docs": "The css animation timing applied when `animationEnabled` is `true`",
|
13937
|
+
"docsTags": [],
|
13938
|
+
"default": "{ duration: 200, easing: 'ease-out' }",
|
13939
|
+
"values": [
|
13940
|
+
{
|
13941
|
+
"type": "any"
|
13942
|
+
}
|
13943
|
+
],
|
13944
|
+
"optional": false,
|
13945
|
+
"required": false,
|
13946
|
+
"getter": false,
|
13947
|
+
"setter": false
|
13948
|
+
},
|
13949
|
+
{
|
13950
|
+
"name": "createKeyboardHandle",
|
13951
|
+
"type": "(_number: number, _element: Element) => HTMLElement",
|
13952
|
+
"mutable": false,
|
13953
|
+
"reflectToAttr": false,
|
13954
|
+
"docs": "A function that should attach a keyboard accessible control.\nWhen a `handleSelector` is not used - to allow keyboard accessibility -\n`createKeyboardHandle` should render a focusable element.\n\nIf your sortable item is itself focusable,\nyou must use this function to render a control *outside* of the focusable element.",
|
13955
|
+
"docsTags": [
|
13956
|
+
{
|
13957
|
+
"name": "param",
|
13958
|
+
"text": "_number"
|
13959
|
+
},
|
13960
|
+
{
|
13961
|
+
"name": "param",
|
13962
|
+
"text": "_element"
|
13963
|
+
},
|
13964
|
+
{
|
13965
|
+
"name": "returns",
|
13966
|
+
"text": "a function that attaches a keyboard accessible handle control element.\nThe function itself *must* return the handle element."
|
13967
|
+
}
|
13968
|
+
],
|
13969
|
+
"default": "(_number: number, _element: Element) => {\n const handleTpl = /* html */ `\n <nano-icon-button\n slot=\"end\"\n icon-name=\"light/arrows\"\n class=\"nano-sortable__keyboard-handle visually-hidden\"\n ></nano-icon-button>`;\n const div = globalThis.document.createElement('div');\n div.innerHTML = handleTpl;\n\n const handle = div.children[0] as HTMLElement;\n _element.append(handle);\n return handle;\n }",
|
13970
|
+
"values": [
|
13971
|
+
{
|
13972
|
+
"type": "(_number: number, _element: Element) => HTMLElement"
|
13973
|
+
}
|
13974
|
+
],
|
13975
|
+
"optional": false,
|
13976
|
+
"required": false,
|
13977
|
+
"getter": false,
|
13978
|
+
"setter": false
|
13979
|
+
},
|
13980
|
+
{
|
13981
|
+
"name": "dragResize",
|
13982
|
+
"type": "boolean",
|
13983
|
+
"mutable": false,
|
13984
|
+
"attr": "drag-resize",
|
13985
|
+
"reflectToAttr": false,
|
13986
|
+
"docs": "Dragged items by default, will take whatever default css is applied in situ.\nWhen sortable items' dimensions are dynamic (i.e they can shrink / grow via the space allowed) dragging items can look 'wrong'.\nApply `dragResize` to read & recreate the dragged items current dimensions when dragged.",
|
13987
|
+
"docsTags": [],
|
13988
|
+
"default": "false",
|
13989
|
+
"values": [
|
13990
|
+
{
|
13991
|
+
"type": "boolean"
|
13992
|
+
}
|
13993
|
+
],
|
13994
|
+
"optional": false,
|
13995
|
+
"required": false,
|
13996
|
+
"getter": false,
|
13997
|
+
"setter": false
|
13998
|
+
},
|
13999
|
+
{
|
14000
|
+
"name": "draggedClass",
|
14001
|
+
"type": "string",
|
14002
|
+
"mutable": false,
|
14003
|
+
"attr": "dragged-class",
|
14004
|
+
"reflectToAttr": false,
|
14005
|
+
"docs": "Use this class to change how the element looks whilst being sorted",
|
14006
|
+
"docsTags": [],
|
14007
|
+
"default": "'nano-sortable__dragged'",
|
14008
|
+
"values": [
|
14009
|
+
{
|
14010
|
+
"type": "string"
|
14011
|
+
}
|
14012
|
+
],
|
14013
|
+
"optional": false,
|
14014
|
+
"required": false,
|
14015
|
+
"getter": false,
|
14016
|
+
"setter": false
|
14017
|
+
},
|
14018
|
+
{
|
14019
|
+
"name": "droppedHelperText",
|
14020
|
+
"type": "(el: Element) => string",
|
14021
|
+
"mutable": false,
|
14022
|
+
"reflectToAttr": false,
|
14023
|
+
"docs": "Used to generate a screen reader live update, informing the user of the current element being dropped.",
|
14024
|
+
"docsTags": [
|
14025
|
+
{
|
14026
|
+
"name": "param",
|
14027
|
+
"text": "el the element that has been dropped by the user"
|
14028
|
+
},
|
14029
|
+
{
|
14030
|
+
"name": "returns",
|
14031
|
+
"text": "a string, describing the element that has been dropped"
|
14032
|
+
}
|
14033
|
+
],
|
14034
|
+
"default": "(el: Element) =>\n `${this.itemDescriptor(el)} dropped`",
|
14035
|
+
"values": [
|
14036
|
+
{
|
14037
|
+
"type": "(el: Element) => string"
|
14038
|
+
}
|
14039
|
+
],
|
14040
|
+
"optional": false,
|
14041
|
+
"required": false,
|
14042
|
+
"getter": false,
|
14043
|
+
"setter": false
|
14044
|
+
},
|
14045
|
+
{
|
14046
|
+
"name": "dropzoneActiveClass",
|
14047
|
+
"type": "string",
|
14048
|
+
"mutable": false,
|
14049
|
+
"attr": "dropzone-active-class",
|
14050
|
+
"reflectToAttr": false,
|
14051
|
+
"docs": "Used in-conjunction with `dropzoneSelector`, applied when a dropzone is dragged over",
|
14052
|
+
"docsTags": [],
|
14053
|
+
"default": "''",
|
14054
|
+
"values": [
|
14055
|
+
{
|
14056
|
+
"type": "string"
|
14057
|
+
}
|
14058
|
+
],
|
14059
|
+
"optional": true,
|
14060
|
+
"required": false,
|
14061
|
+
"getter": false,
|
14062
|
+
"setter": false
|
14063
|
+
},
|
14064
|
+
{
|
14065
|
+
"name": "dropzoneSelector",
|
14066
|
+
"type": "string",
|
14067
|
+
"mutable": false,
|
14068
|
+
"attr": "dropzone-selector",
|
14069
|
+
"reflectToAttr": false,
|
14070
|
+
"docs": "When dragging between grouped collections of items, it is possible to drag all sortable items from one group to another.\nAt that point, you will not be able to drag items back to the original group.\nA `dropzoneSelector` allows you to define a placeholder area where items can always be dropped.",
|
14071
|
+
"docsTags": [],
|
14072
|
+
"values": [
|
14073
|
+
{
|
14074
|
+
"type": "string"
|
14075
|
+
}
|
14076
|
+
],
|
14077
|
+
"optional": true,
|
14078
|
+
"required": false,
|
14079
|
+
"getter": false,
|
14080
|
+
"setter": false
|
14081
|
+
},
|
14082
|
+
{
|
14083
|
+
"name": "grabbedHelperText",
|
14084
|
+
"type": "(el: Element) => string",
|
14085
|
+
"mutable": false,
|
14086
|
+
"reflectToAttr": false,
|
14087
|
+
"docs": "Used to generate a screen reader live update, informing the user of the current element being grabbed.",
|
14088
|
+
"docsTags": [
|
14089
|
+
{
|
14090
|
+
"name": "param",
|
14091
|
+
"text": "el the element that has been grabbed by the user"
|
14092
|
+
},
|
14093
|
+
{
|
14094
|
+
"name": "returns",
|
14095
|
+
"text": "a string, describing the element being grabbed"
|
14096
|
+
}
|
14097
|
+
],
|
14098
|
+
"default": "(el: Element) =>\n `${this.itemDescriptor(el)} grabbed`",
|
14099
|
+
"values": [
|
14100
|
+
{
|
14101
|
+
"type": "(el: Element) => string"
|
14102
|
+
}
|
14103
|
+
],
|
14104
|
+
"optional": false,
|
14105
|
+
"required": false,
|
14106
|
+
"getter": false,
|
14107
|
+
"setter": false
|
14108
|
+
},
|
14109
|
+
{
|
14110
|
+
"name": "handleDraggedClass",
|
14111
|
+
"type": "string",
|
14112
|
+
"mutable": false,
|
14113
|
+
"attr": "handle-dragged-class",
|
14114
|
+
"reflectToAttr": false,
|
14115
|
+
"docs": "Use this class to change how the handle looks whilst being sorted",
|
14116
|
+
"docsTags": [],
|
14117
|
+
"default": "'nano-sortable__handle-dragged'",
|
14118
|
+
"values": [
|
14119
|
+
{
|
14120
|
+
"type": "string"
|
14121
|
+
}
|
14122
|
+
],
|
14123
|
+
"optional": false,
|
14124
|
+
"required": false,
|
14125
|
+
"getter": false,
|
14126
|
+
"setter": false
|
14127
|
+
},
|
14128
|
+
{
|
14129
|
+
"name": "handleSelector",
|
14130
|
+
"type": "string",
|
14131
|
+
"mutable": false,
|
14132
|
+
"attr": "handle-selector",
|
14133
|
+
"reflectToAttr": false,
|
14134
|
+
"docs": "A css query selector which matches an element *within* the `itemSelector` element\nwhich will act like a drag handle. **Note** For keyboard a11y it's recommended\nto use `handleSelector` when possible. Alternatively, the `createKeyboardHandle` prop will be used",
|
14135
|
+
"docsTags": [],
|
14136
|
+
"values": [
|
14137
|
+
{
|
14138
|
+
"type": "string"
|
14139
|
+
}
|
14140
|
+
],
|
14141
|
+
"optional": true,
|
14142
|
+
"required": false,
|
14143
|
+
"getter": false,
|
14144
|
+
"setter": false
|
14145
|
+
},
|
14146
|
+
{
|
14147
|
+
"name": "helperText",
|
14148
|
+
"type": "string",
|
14149
|
+
"mutable": false,
|
14150
|
+
"attr": "helper-text",
|
14151
|
+
"reflectToAttr": false,
|
14152
|
+
"docs": "Accessibility helper text applied to handle controls",
|
14153
|
+
"docsTags": [],
|
14154
|
+
"default": "'Press \"Space\" or \"Enter\" to enable element reordering and use the arrow keys to reorder items.' +\n 'Press \"Escape\" to cancel reordering. Alternatively, use your mouse to drag / reorder.'",
|
14155
|
+
"values": [
|
14156
|
+
{
|
14157
|
+
"type": "string"
|
14158
|
+
}
|
14159
|
+
],
|
14160
|
+
"optional": false,
|
14161
|
+
"required": false,
|
14162
|
+
"getter": false,
|
14163
|
+
"setter": false
|
14164
|
+
},
|
14165
|
+
{
|
14166
|
+
"name": "itemDescriptor",
|
14167
|
+
"type": "(el: Element) => string",
|
14168
|
+
"mutable": false,
|
14169
|
+
"reflectToAttr": false,
|
14170
|
+
"docs": "As a sortable element is interacted with, announcements are made to screen readers\n- informing the user what is changing.\nBy default, the text from the element is extracted to describe the interacted with element.\nUse this function to provide a more meaningful, concise item descriptor",
|
14171
|
+
"docsTags": [
|
14172
|
+
{
|
14173
|
+
"name": "param",
|
14174
|
+
"text": "el the element being interacted with"
|
14175
|
+
},
|
14176
|
+
{
|
14177
|
+
"name": "returns",
|
14178
|
+
"text": "a string, describing the element being interacted with"
|
14179
|
+
}
|
14180
|
+
],
|
14181
|
+
"default": "(el: Element) => `\"${el.textContent.trim()}\"`",
|
14182
|
+
"values": [
|
14183
|
+
{
|
14184
|
+
"type": "(el: Element) => string"
|
14185
|
+
}
|
14186
|
+
],
|
14187
|
+
"optional": false,
|
14188
|
+
"required": false,
|
14189
|
+
"getter": false,
|
14190
|
+
"setter": false
|
14191
|
+
},
|
14192
|
+
{
|
14193
|
+
"name": "itemSelector",
|
14194
|
+
"type": "string",
|
14195
|
+
"mutable": false,
|
14196
|
+
"attr": "item-selector",
|
14197
|
+
"reflectToAttr": false,
|
14198
|
+
"docs": "A css query selector which matches a set of elements that should be sortable. e.g. `<li>` or `<tr>`",
|
14199
|
+
"docsTags": [],
|
14200
|
+
"default": "'li'",
|
14201
|
+
"values": [
|
14202
|
+
{
|
14203
|
+
"type": "string"
|
14204
|
+
}
|
14205
|
+
],
|
14206
|
+
"optional": false,
|
14207
|
+
"required": false,
|
14208
|
+
"getter": false,
|
14209
|
+
"setter": false
|
14210
|
+
},
|
14211
|
+
{
|
14212
|
+
"name": "orientation",
|
14213
|
+
"type": "\"horizontal\" | \"vertical\"",
|
14214
|
+
"mutable": false,
|
14215
|
+
"attr": "orientation",
|
14216
|
+
"reflectToAttr": false,
|
14217
|
+
"docs": "The axis to lock dragging elements to. `undefined` means any axis",
|
14218
|
+
"docsTags": [],
|
14219
|
+
"values": [
|
14220
|
+
{
|
14221
|
+
"value": "horizontal",
|
14222
|
+
"type": "string"
|
14223
|
+
},
|
14224
|
+
{
|
14225
|
+
"value": "vertical",
|
14226
|
+
"type": "string"
|
14227
|
+
}
|
14228
|
+
],
|
14229
|
+
"optional": true,
|
14230
|
+
"required": false,
|
14231
|
+
"getter": false,
|
14232
|
+
"setter": false
|
14233
|
+
},
|
14234
|
+
{
|
14235
|
+
"name": "placeholderClass",
|
14236
|
+
"type": "string",
|
14237
|
+
"mutable": false,
|
14238
|
+
"attr": "placeholder-class",
|
14239
|
+
"reflectToAttr": false,
|
14240
|
+
"docs": "Use this class to change how the element looks when acting as a placeholder",
|
14241
|
+
"docsTags": [],
|
14242
|
+
"default": "'nano-sortable__placeholder'",
|
14243
|
+
"values": [
|
14244
|
+
{
|
14245
|
+
"type": "string"
|
14246
|
+
}
|
14247
|
+
],
|
14248
|
+
"optional": false,
|
14249
|
+
"required": false,
|
14250
|
+
"getter": false,
|
14251
|
+
"setter": false
|
14252
|
+
},
|
14253
|
+
{
|
14254
|
+
"name": "reorderHelperText",
|
14255
|
+
"type": "(el: Element, elements: Element[], position: number) => string",
|
14256
|
+
"mutable": false,
|
14257
|
+
"reflectToAttr": false,
|
14258
|
+
"docs": "Used to generate a screen reader live update, informing the user when items have been reordered.",
|
14259
|
+
"docsTags": [
|
14260
|
+
{
|
14261
|
+
"name": "param",
|
14262
|
+
"text": "el the element that has been reordered by the user"
|
14263
|
+
},
|
14264
|
+
{
|
14265
|
+
"name": "param",
|
14266
|
+
"text": "elements the elements in the sortable list"
|
14267
|
+
},
|
14268
|
+
{
|
14269
|
+
"name": "param",
|
14270
|
+
"text": "position the new position of the dropped element"
|
14271
|
+
},
|
14272
|
+
{
|
14273
|
+
"name": "returns",
|
14274
|
+
"text": "a string, describing the element being dropped"
|
14275
|
+
}
|
14276
|
+
],
|
14277
|
+
"default": "(\n el: Element,\n elements: Element[],\n position: number\n ) =>\n `The list has been reordered, ${this.itemDescriptor(\n el\n )} is now item ${position} of ${elements.length}`",
|
14278
|
+
"values": [
|
14279
|
+
{
|
14280
|
+
"type": "(el: Element, elements: Element[], position: number) => string"
|
14281
|
+
}
|
14282
|
+
],
|
14283
|
+
"optional": false,
|
14284
|
+
"required": false,
|
14285
|
+
"getter": false,
|
14286
|
+
"setter": false
|
14287
|
+
},
|
14288
|
+
{
|
14289
|
+
"name": "sortableHostElement",
|
14290
|
+
"type": "HTMLElement",
|
14291
|
+
"mutable": false,
|
14292
|
+
"reflectToAttr": false,
|
14293
|
+
"docs": "use `sortableHostElement` to watch a sortable list without needing to wrap in `nano-sortable`.\nNote that the `sortableHostElement` element css `position` will be set to `relative`",
|
14294
|
+
"docsTags": [],
|
14295
|
+
"values": [
|
14296
|
+
{
|
14297
|
+
"type": "HTMLElement"
|
14298
|
+
}
|
14299
|
+
],
|
14300
|
+
"optional": true,
|
14301
|
+
"required": false,
|
14302
|
+
"getter": false,
|
14303
|
+
"setter": false
|
14304
|
+
}
|
14305
|
+
],
|
14306
|
+
"methods": [
|
14307
|
+
{
|
14308
|
+
"name": "refreshKeyboardHandles",
|
14309
|
+
"returns": {
|
14310
|
+
"type": "Promise<void>",
|
14311
|
+
"docs": ""
|
14312
|
+
},
|
14313
|
+
"signature": "refreshKeyboardHandles() => Promise<void>",
|
14314
|
+
"parameters": [],
|
14315
|
+
"docs": "If sortable elements change dynamically, use this method to add handle controls to new elements",
|
14316
|
+
"docsTags": []
|
14317
|
+
}
|
14318
|
+
],
|
14319
|
+
"events": [
|
14320
|
+
{
|
14321
|
+
"event": "nanoDropped",
|
14322
|
+
"detail": "{ element: HTMLElement; }",
|
14323
|
+
"bubbles": true,
|
14324
|
+
"cancelable": true,
|
14325
|
+
"composed": true,
|
14326
|
+
"docs": "Fired when a sortable element is dropped after having been picked up.",
|
14327
|
+
"docsTags": []
|
14328
|
+
},
|
14329
|
+
{
|
14330
|
+
"event": "nanoGrabbed",
|
14331
|
+
"detail": "{ element: HTMLElement; index: number; }",
|
14332
|
+
"bubbles": true,
|
14333
|
+
"cancelable": true,
|
14334
|
+
"composed": true,
|
14335
|
+
"docs": "Fired when a sortable element is picked-up; via keyboard, mouse or touch.\n`event.preventDefault()` to prevent the element being picked-up.",
|
14336
|
+
"docsTags": []
|
14337
|
+
},
|
14338
|
+
{
|
14339
|
+
"event": "nanoOrderChange",
|
14340
|
+
"detail": "{ element: HTMLElement; originalIndex: number; targetIndex: number; }",
|
14341
|
+
"bubbles": true,
|
14342
|
+
"cancelable": true,
|
14343
|
+
"composed": true,
|
14344
|
+
"docs": "Fired when an the order changes. Use this to update any underlying data model.\n`event.preventDefault()` to prevent the element being moved; will revert to original position.",
|
14345
|
+
"docsTags": []
|
14346
|
+
}
|
14347
|
+
],
|
14348
|
+
"listeners": [],
|
14349
|
+
"styles": [],
|
14350
|
+
"slots": [
|
14351
|
+
{
|
14352
|
+
"name": "",
|
14353
|
+
"docs": "The default slot containing any items you might want to sort"
|
14354
|
+
}
|
14355
|
+
],
|
14356
|
+
"parts": [
|
14357
|
+
{
|
14358
|
+
"name": "announcements",
|
14359
|
+
"docs": "the a11y, live region. Visually hidden by default"
|
14360
|
+
}
|
14361
|
+
],
|
14362
|
+
"dependents": [],
|
14363
|
+
"dependencies": [],
|
14364
|
+
"dependencyGraph": {}
|
14365
|
+
},
|
13854
14366
|
{
|
13855
14367
|
"filePath": "./src/components/spinner/spinner.tsx",
|
13856
14368
|
"encapsulation": "shadow",
|
@@ -14610,9 +15122,29 @@
|
|
14610
15122
|
"readme": "# nano-tab\n\n\n",
|
14611
15123
|
"docs": "",
|
14612
15124
|
"docsTags": [
|
15125
|
+
{
|
15126
|
+
"name": "slot",
|
15127
|
+
"text": "start - start of the tab, content. Outside of the focusable element"
|
15128
|
+
},
|
15129
|
+
{
|
15130
|
+
"name": "slot",
|
15131
|
+
"text": "end - end of the tab, content. Outside of the focusable element"
|
15132
|
+
},
|
14613
15133
|
{
|
14614
15134
|
"name": "slot",
|
14615
15135
|
"text": "- The tab's label."
|
15136
|
+
},
|
15137
|
+
{
|
15138
|
+
"name": "part",
|
15139
|
+
"text": "base - the wrapper around the whole control"
|
15140
|
+
},
|
15141
|
+
{
|
15142
|
+
"name": "part",
|
15143
|
+
"text": "tab - the main tab control that controls the active state"
|
15144
|
+
},
|
15145
|
+
{
|
15146
|
+
"name": "part",
|
15147
|
+
"text": "close-btn - the close button of the tab (if `closable=true`)"
|
14616
15148
|
}
|
14617
15149
|
],
|
14618
15150
|
"usage": {},
|
@@ -14746,6 +15278,11 @@
|
|
14746
15278
|
"annotation": "prop",
|
14747
15279
|
"docs": "Defaults to var(--nano-layer-bg-rgb, 255 255 255);"
|
14748
15280
|
},
|
15281
|
+
{
|
15282
|
+
"name": "--border-radius",
|
15283
|
+
"annotation": "prop",
|
15284
|
+
"docs": "inherit;"
|
15285
|
+
},
|
14749
15286
|
{
|
14750
15287
|
"name": "--disabled-bg-rgb",
|
14751
15288
|
"annotation": "prop",
|
@@ -14806,12 +15343,28 @@
|
|
14806
15343
|
{
|
14807
15344
|
"name": "",
|
14808
15345
|
"docs": "The tab's label."
|
15346
|
+
},
|
15347
|
+
{
|
15348
|
+
"name": "end",
|
15349
|
+
"docs": "end of the tab, content. Outside of the focusable element"
|
15350
|
+
},
|
15351
|
+
{
|
15352
|
+
"name": "start",
|
15353
|
+
"docs": "start of the tab, content. Outside of the focusable element"
|
14809
15354
|
}
|
14810
15355
|
],
|
14811
15356
|
"parts": [
|
14812
15357
|
{
|
14813
15358
|
"name": "base",
|
14814
|
-
"docs": ""
|
15359
|
+
"docs": "the wrapper around the whole control"
|
15360
|
+
},
|
15361
|
+
{
|
15362
|
+
"name": "close-btn",
|
15363
|
+
"docs": "the close button of the tab (if `closable=true`)"
|
15364
|
+
},
|
15365
|
+
{
|
15366
|
+
"name": "tab",
|
15367
|
+
"docs": "the main tab control that controls the active state"
|
14815
15368
|
}
|
14816
15369
|
],
|
14817
15370
|
"dependents": [],
|
@@ -15036,7 +15589,7 @@
|
|
15036
15589
|
"type": "\"start\" | \"top\"",
|
15037
15590
|
"mutable": false,
|
15038
15591
|
"attr": "placement",
|
15039
|
-
"reflectToAttr":
|
15592
|
+
"reflectToAttr": true,
|
15040
15593
|
"docs": "The placement of the tabs.",
|
15041
15594
|
"docsTags": [],
|
15042
15595
|
"default": "'top'",
|
@@ -15191,7 +15744,7 @@
|
|
15191
15744
|
{
|
15192
15745
|
"name": "--content-border-radius",
|
15193
15746
|
"annotation": "prop",
|
15194
|
-
"docs": "defaults to var(--border-radius)
|
15747
|
+
"docs": "defaults to `var(--border-radius)` `position=\"top\"`. `0 var(--border-radius) var(--border-radius) 0` `position=\"start\"`;"
|
15195
15748
|
},
|
15196
15749
|
{
|
15197
15750
|
"name": "--content-padding",
|
@@ -15236,7 +15789,7 @@
|
|
15236
15789
|
{
|
15237
15790
|
"name": "--tab-border-radius",
|
15238
15791
|
"annotation": "prop",
|
15239
|
-
"docs": "defaults to var(--border-radius);"
|
15792
|
+
"docs": "defaults to `var(--border-radius) var(--border-radius) 0 0` `position=\"top\"`. `0` `position=\"start\"`. ;"
|
15240
15793
|
},
|
15241
15794
|
{
|
15242
15795
|
"name": "--tab-text-color",
|
@@ -15320,7 +15873,7 @@
|
|
15320
15873
|
"encapsulation": "none",
|
15321
15874
|
"tag": "nano-table",
|
15322
15875
|
"readme": "# nano-table\n\n\n",
|
15323
|
-
"docs": "A performant, accessible and semantic (uses real html `<table />`, `<tr />` etc) table and data-grid solution.\n\n- Built-in search\n- Built-in column filter\n- Built-in column sort\n- Easily swap in API / async based search / filter & sort\n- Pin headers, footers, rows, columns\n-
|
15876
|
+
"docs": "A performant, accessible and semantic (uses real html `<table />`, `<tr />` etc) table and data-grid solution.\n\n- Built-in search\n- Built-in column filter\n- Built-in column sort\n- Easily swap in API / async based search / filter & sort\n- Pin headers, footers, rows, columns\n- Add custom rendering at every level\n- Add custom properties at every level",
|
15324
15877
|
"docsTags": [
|
15325
15878
|
{
|
15326
15879
|
"name": "slot",
|
@@ -15427,25 +15980,6 @@
|
|
15427
15980
|
"getter": false,
|
15428
15981
|
"setter": false
|
15429
15982
|
},
|
15430
|
-
{
|
15431
|
-
"name": "defaultColDraggable",
|
15432
|
-
"type": "boolean",
|
15433
|
-
"mutable": false,
|
15434
|
-
"attr": "default-col-draggable",
|
15435
|
-
"reflectToAttr": false,
|
15436
|
-
"docs": "The default draggable option for all columns.\n`true` will enable column drag-to-reorder unless you set `draggable: false` on a column\n`false` will disable column drag-to-reorder unless you set `draggable: true` on a column",
|
15437
|
-
"docsTags": [],
|
15438
|
-
"default": "false",
|
15439
|
-
"values": [
|
15440
|
-
{
|
15441
|
-
"type": "boolean"
|
15442
|
-
}
|
15443
|
-
],
|
15444
|
-
"optional": false,
|
15445
|
-
"required": false,
|
15446
|
-
"getter": false,
|
15447
|
-
"setter": false
|
15448
|
-
},
|
15449
15983
|
{
|
15450
15984
|
"name": "defaultSort",
|
15451
15985
|
"type": "boolean",
|
@@ -15882,24 +16416,6 @@
|
|
15882
16416
|
"docs": "Fired whenever a block is activated by scrolling into view / becoming visible\nThis could be leveraged for infinite scrolling / to fetch more data.",
|
15883
16417
|
"docsTags": []
|
15884
16418
|
},
|
15885
|
-
{
|
15886
|
-
"event": "nanoTblColDrag",
|
15887
|
-
"detail": "{ column: keyof RowGeneric; }",
|
15888
|
-
"bubbles": true,
|
15889
|
-
"cancelable": true,
|
15890
|
-
"composed": true,
|
15891
|
-
"docs": "Fired when a column has started dragging",
|
15892
|
-
"docsTags": []
|
15893
|
-
},
|
15894
|
-
{
|
15895
|
-
"event": "nanoTblColDrop",
|
15896
|
-
"detail": "{ fromCol: keyof RowGeneric; toCol: keyof RowGeneric; fromIndex: number; toIndex: number; }",
|
15897
|
-
"bubbles": true,
|
15898
|
-
"cancelable": true,
|
15899
|
-
"composed": true,
|
15900
|
-
"docs": "Fired when a column has been dropped (after dragging)\n`event.preventDefault()` to stop column re-order.",
|
15901
|
-
"docsTags": []
|
15902
|
-
},
|
15903
16419
|
{
|
15904
16420
|
"event": "nanoTblReady",
|
15905
16421
|
"detail": "any",
|