@spectrum-web-components/table 0.0.2-table.2609

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 (108) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +364 -0
  3. package/custom-elements.json +1083 -0
  4. package/package.json +74 -0
  5. package/sp-table-body.d.ts +6 -0
  6. package/sp-table-body.js +14 -0
  7. package/sp-table-body.js.map +1 -0
  8. package/sp-table-cell.d.ts +6 -0
  9. package/sp-table-cell.js +14 -0
  10. package/sp-table-cell.js.map +1 -0
  11. package/sp-table-checkbox-cell.d.ts +6 -0
  12. package/sp-table-checkbox-cell.js +14 -0
  13. package/sp-table-checkbox-cell.js.map +1 -0
  14. package/sp-table-head-cell.d.ts +6 -0
  15. package/sp-table-head-cell.js +14 -0
  16. package/sp-table-head-cell.js.map +1 -0
  17. package/sp-table-head.d.ts +6 -0
  18. package/sp-table-head.js +14 -0
  19. package/sp-table-head.js.map +1 -0
  20. package/sp-table-row.d.ts +6 -0
  21. package/sp-table-row.js +14 -0
  22. package/sp-table-row.js.map +1 -0
  23. package/sp-table.d.ts +6 -0
  24. package/sp-table.js +14 -0
  25. package/sp-table.js.map +1 -0
  26. package/src/Table.d.ts +42 -0
  27. package/src/Table.js +363 -0
  28. package/src/Table.js.map +1 -0
  29. package/src/TableBody.d.ts +9 -0
  30. package/src/TableBody.js +36 -0
  31. package/src/TableBody.js.map +1 -0
  32. package/src/TableCell.d.ts +10 -0
  33. package/src/TableCell.js +40 -0
  34. package/src/TableCell.js.map +1 -0
  35. package/src/TableCheckboxCell.d.ts +17 -0
  36. package/src/TableCheckboxCell.js +76 -0
  37. package/src/TableCheckboxCell.js.map +1 -0
  38. package/src/TableHead.d.ts +15 -0
  39. package/src/TableHead.js +56 -0
  40. package/src/TableHead.js.map +1 -0
  41. package/src/TableHeadCell.d.ts +21 -0
  42. package/src/TableHeadCell.js +98 -0
  43. package/src/TableHeadCell.js.map +1 -0
  44. package/src/TableRow.d.ts +18 -0
  45. package/src/TableRow.js +64 -0
  46. package/src/TableRow.js.map +1 -0
  47. package/src/index.d.ts +1 -0
  48. package/src/index.js +13 -0
  49. package/src/index.js.map +1 -0
  50. package/src/spectrum-config.js +245 -0
  51. package/src/spectrum-table-body.css.d.ts +2 -0
  52. package/src/spectrum-table-body.css.js +27 -0
  53. package/src/spectrum-table-body.css.js.map +1 -0
  54. package/src/spectrum-table-cell.css.d.ts +2 -0
  55. package/src/spectrum-table-cell.css.js +37 -0
  56. package/src/spectrum-table-cell.css.js.map +1 -0
  57. package/src/spectrum-table-checkbox-cell.css.d.ts +2 -0
  58. package/src/spectrum-table-checkbox-cell.css.js +23 -0
  59. package/src/spectrum-table-checkbox-cell.css.js.map +1 -0
  60. package/src/spectrum-table-head-cell.css.d.ts +2 -0
  61. package/src/spectrum-table-head-cell.css.js +71 -0
  62. package/src/spectrum-table-head-cell.css.js.map +1 -0
  63. package/src/spectrum-table-head.css.d.ts +2 -0
  64. package/src/spectrum-table-head.css.js +17 -0
  65. package/src/spectrum-table-head.css.js.map +1 -0
  66. package/src/spectrum-table-row.css.d.ts +2 -0
  67. package/src/spectrum-table-row.css.js +43 -0
  68. package/src/spectrum-table-row.css.js.map +1 -0
  69. package/src/spectrum-table.css.d.ts +2 -0
  70. package/src/spectrum-table.css.js +543 -0
  71. package/src/spectrum-table.css.js.map +1 -0
  72. package/src/table-body.css.d.ts +2 -0
  73. package/src/table-body.css.js +27 -0
  74. package/src/table-body.css.js.map +1 -0
  75. package/src/table-cell.css.d.ts +2 -0
  76. package/src/table-cell.css.js +37 -0
  77. package/src/table-cell.css.js.map +1 -0
  78. package/src/table-checkbox-cell.css.d.ts +2 -0
  79. package/src/table-checkbox-cell.css.js +23 -0
  80. package/src/table-checkbox-cell.css.js.map +1 -0
  81. package/src/table-head-cell.css.d.ts +2 -0
  82. package/src/table-head-cell.css.js +71 -0
  83. package/src/table-head-cell.css.js.map +1 -0
  84. package/src/table-head.css.d.ts +2 -0
  85. package/src/table-head.css.js +17 -0
  86. package/src/table-head.css.js.map +1 -0
  87. package/src/table-row.css.d.ts +2 -0
  88. package/src/table-row.css.js +43 -0
  89. package/src/table-row.css.js.map +1 -0
  90. package/src/table.css.d.ts +2 -0
  91. package/src/table.css.js +543 -0
  92. package/src/table.css.js.map +1 -0
  93. package/stories/index.js +44 -0
  94. package/stories/index.js.map +1 -0
  95. package/stories/table-elements.stories.js +237 -0
  96. package/stories/table-elements.stories.js.map +1 -0
  97. package/stories/table-virtualized.stories.js +221 -0
  98. package/stories/table-virtualized.stories.js.map +1 -0
  99. package/stories/table.stories.js.map +1 -0
  100. package/test/benchmark/basic-test.js +18 -0
  101. package/test/benchmark/basic-test.js.map +1 -0
  102. package/test/table-elements.test-vrt.js +15 -0
  103. package/test/table-elements.test-vrt.js.map +1 -0
  104. package/test/table-virtualized.test-vrt.js +15 -0
  105. package/test/table-virtualized.test-vrt.js.map +1 -0
  106. package/test/table.test-vrt.js.map +1 -0
  107. package/test/table.test.js +870 -0
  108. package/test/table.test.js.map +1 -0
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@spectrum-web-components/table",
3
+ "version": "0.0.2-table.2609+8b4f9a13c",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Web component implementation of a Spectrum design Table",
8
+ "license": "Apache-2.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/adobe/spectrum-web-components.git",
12
+ "directory": "packages/table"
13
+ },
14
+ "author": "",
15
+ "homepage": "https://adobe.github.io/spectrum-web-components/components/table",
16
+ "bugs": {
17
+ "url": "https://github.com/adobe/spectrum-web-components/issues"
18
+ },
19
+ "main": "src/index.js",
20
+ "module": "src/index.js",
21
+ "type": "module",
22
+ "exports": {
23
+ ".": "./src/index.js",
24
+ "./src/*": "./src/*.js",
25
+ "./package.json": "./package.json",
26
+ "./sp-table-body": "./sp-table-body.js",
27
+ "./sp-table-body.js": "./sp-table-body.js",
28
+ "./sp-table-cell": "./sp-table-cell.js",
29
+ "./sp-table-cell.js": "./sp-table-cell.js",
30
+ "./sp-table-checkbox-cell": "./sp-table-checkbox-cell.js",
31
+ "./sp-table-checkbox-cell.js": "./sp-table-checkbox-cell.js",
32
+ "./sp-table-head": "./sp-table-head.js",
33
+ "./sp-table-head.js": "./sp-table-head.js",
34
+ "./sp-table-head-cell": "./sp-table-head-cell.js",
35
+ "./sp-table-head-cell.js": "./sp-table-head-cell.js",
36
+ "./sp-table-row": "./sp-table-row.js",
37
+ "./sp-table-row.js": "./sp-table-row.js",
38
+ "./sp-table": "./sp-table.js",
39
+ "./sp-table.js": "./sp-table.js"
40
+ },
41
+ "scripts": {
42
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
43
+ },
44
+ "files": [
45
+ "**/*.d.ts",
46
+ "**/*.js",
47
+ "**/*.js.map",
48
+ "custom-elements.json",
49
+ "!stories/",
50
+ "!test/"
51
+ ],
52
+ "keywords": [
53
+ "spectrum css",
54
+ "web components",
55
+ "lit-element",
56
+ "lit-html"
57
+ ],
58
+ "dependencies": {
59
+ "@spectrum-web-components/base": "^0.5.6",
60
+ "@spectrum-web-components/checkbox": "^0.13.2",
61
+ "@spectrum-web-components/icon": "^0.11.8",
62
+ "@spectrum-web-components/icons-ui": "^0.8.8",
63
+ "tslib": "^2.0.0"
64
+ },
65
+ "devDependencies": {
66
+ "@spectrum-css/table": "^4.0.17"
67
+ },
68
+ "types": "./src/index.d.ts",
69
+ "customElements": "custom-elements.json",
70
+ "sideEffects": [
71
+ "./sp-*.js"
72
+ ],
73
+ "gitHead": "8b4f9a13ca09b7a0e0e966cc8a9ebfdff8b3b565"
74
+ }
@@ -0,0 +1,6 @@
1
+ import { TableBody } from './src/TableBody.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table-body': TableBody;
5
+ }
6
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { TableBody } from './src/TableBody.js';
13
+ customElements.define('sp-table-body', TableBody);
14
+ //# sourceMappingURL=sp-table-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table-body.js","sourceRoot":"","sources":["sp-table-body.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TableBody } from './src/TableBody.js';\n\ncustomElements.define('sp-table-body', TableBody);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-body': TableBody;\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { TableCell } from './src/TableCell.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table-cell': TableCell;
5
+ }
6
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { TableCell } from './src/TableCell.js';
13
+ customElements.define('sp-table-cell', TableCell);
14
+ //# sourceMappingURL=sp-table-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table-cell.js","sourceRoot":"","sources":["sp-table-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TableCell } from './src/TableCell.js';\n\ncustomElements.define('sp-table-cell', TableCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-cell': TableCell;\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { TableCheckboxCell } from './src/TableCheckboxCell.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table-checkbox-cell': TableCheckboxCell;
5
+ }
6
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { TableCheckboxCell } from './src/TableCheckboxCell.js';
13
+ customElements.define('sp-table-checkbox-cell', TableCheckboxCell);
14
+ //# sourceMappingURL=sp-table-checkbox-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table-checkbox-cell.js","sourceRoot":"","sources":["sp-table-checkbox-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TableCheckboxCell } from './src/TableCheckboxCell.js';\n\ncustomElements.define('sp-table-checkbox-cell', TableCheckboxCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-checkbox-cell': TableCheckboxCell;\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { TableHeadCell } from './src/TableHeadCell.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table-head-cell': TableHeadCell;
5
+ }
6
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { TableHeadCell } from './src/TableHeadCell.js';
13
+ customElements.define('sp-table-head-cell', TableHeadCell);
14
+ //# sourceMappingURL=sp-table-head-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table-head-cell.js","sourceRoot":"","sources":["sp-table-head-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TableHeadCell } from './src/TableHeadCell.js';\n\ncustomElements.define('sp-table-head-cell', TableHeadCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head-cell': TableHeadCell;\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { TableHead } from './src/TableHead.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table-head': TableHead;
5
+ }
6
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { TableHead } from './src/TableHead.js';
13
+ customElements.define('sp-table-head', TableHead);
14
+ //# sourceMappingURL=sp-table-head.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table-head.js","sourceRoot":"","sources":["sp-table-head.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TableHead } from './src/TableHead.js';\n\ncustomElements.define('sp-table-head', TableHead);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head': TableHead;\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { TableRow } from './src/TableRow.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table-row': TableRow;
5
+ }
6
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { TableRow } from './src/TableRow.js';
13
+ customElements.define('sp-table-row', TableRow);
14
+ //# sourceMappingURL=sp-table-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table-row.js","sourceRoot":"","sources":["sp-table-row.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TableRow } from './src/TableRow.js';\n\ncustomElements.define('sp-table-row', TableRow);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-row': TableRow;\n }\n}\n"]}
package/sp-table.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Table } from './src/Table.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-table': Table;
5
+ }
6
+ }
package/sp-table.js ADDED
@@ -0,0 +1,14 @@
1
+ /*
2
+ Copyright 2022 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import { Table } from './src/Table.js';
13
+ customElements.define('sp-table', Table);
14
+ //# sourceMappingURL=sp-table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sp-table.js","sourceRoot":"","sources":["sp-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Table } from './src/Table.js';\n\ncustomElements.define('sp-table', Table);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table': Table;\n }\n}\n"]}
package/src/Table.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
2
+ interface Range {
3
+ first: number;
4
+ last: number;
5
+ }
6
+ export declare class RangeChangedEvent extends Event {
7
+ static eventName: string;
8
+ first: number;
9
+ last: number;
10
+ constructor(range: Range);
11
+ }
12
+ /**
13
+ * @element sp-table
14
+ */
15
+ export declare class Table extends SpectrumElement {
16
+ static get styles(): CSSResultArray;
17
+ get renderItem(): (item: Record<string, unknown>, index: number) => TemplateResult;
18
+ set renderItem(fn: (item: Record<string, unknown>, index: number) => TemplateResult);
19
+ private _renderItem;
20
+ role: string;
21
+ selects: undefined | 'single' | 'multiple';
22
+ selected: string[];
23
+ private selectedSet;
24
+ items: Record<string, unknown>[];
25
+ itemValue: (_item: unknown, index: number) => string;
26
+ private tableBody?;
27
+ private tableHeadCheckboxCell?;
28
+ private get isVirtualized();
29
+ focus(): void;
30
+ private selectAllRows;
31
+ private deselectAllRows;
32
+ protected manageSelects(): void;
33
+ protected manageSelected(): void;
34
+ protected manageCheckboxes(): void;
35
+ protected handleChange(event: Event): void;
36
+ scrollToIndex(index?: number): void;
37
+ protected render(): TemplateResult;
38
+ protected willUpdate(changed: PropertyValues<this>): void;
39
+ protected updated(): void;
40
+ protected renderVirtualizedItems(index?: number): void;
41
+ }
42
+ export {};