@spectrum-web-components/table 0.0.2-table.2625 → 0.0.2-table.2715

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 (149) hide show
  1. package/README.md +212 -40
  2. package/custom-elements.json +88 -35
  3. package/elements.d.ts +7 -0
  4. package/elements.dev.js +8 -0
  5. package/elements.dev.js.map +7 -0
  6. package/elements.js +2 -0
  7. package/elements.js.map +7 -0
  8. package/package.json +12 -9
  9. package/sp-table-body.dev.js +3 -0
  10. package/sp-table-body.dev.js.map +7 -0
  11. package/sp-table-body.js +2 -14
  12. package/sp-table-body.js.map +7 -1
  13. package/sp-table-cell.dev.js +3 -0
  14. package/sp-table-cell.dev.js.map +7 -0
  15. package/sp-table-cell.js +2 -14
  16. package/sp-table-cell.js.map +7 -1
  17. package/sp-table-checkbox-cell.dev.js +3 -0
  18. package/sp-table-checkbox-cell.dev.js.map +7 -0
  19. package/sp-table-checkbox-cell.js +2 -14
  20. package/sp-table-checkbox-cell.js.map +7 -1
  21. package/sp-table-head-cell.dev.js +3 -0
  22. package/sp-table-head-cell.dev.js.map +7 -0
  23. package/sp-table-head-cell.js +2 -14
  24. package/sp-table-head-cell.js.map +7 -1
  25. package/sp-table-head.dev.js +3 -0
  26. package/sp-table-head.dev.js.map +7 -0
  27. package/sp-table-head.js +2 -14
  28. package/sp-table-head.js.map +7 -1
  29. package/sp-table-row.dev.js +3 -0
  30. package/sp-table-row.dev.js.map +7 -0
  31. package/sp-table-row.js +2 -14
  32. package/sp-table-row.js.map +7 -1
  33. package/sp-table.dev.js +3 -0
  34. package/sp-table.dev.js.map +7 -0
  35. package/sp-table.js +2 -14
  36. package/sp-table.js.map +7 -1
  37. package/src/Table.d.ts +14 -1
  38. package/src/Table.dev.js +364 -0
  39. package/src/Table.dev.js.map +7 -0
  40. package/src/Table.js +13 -360
  41. package/src/Table.js.map +7 -1
  42. package/src/TableBody.dev.js +35 -0
  43. package/src/TableBody.dev.js.map +7 -0
  44. package/src/TableBody.js +3 -35
  45. package/src/TableBody.js.map +7 -1
  46. package/src/TableCell.dev.js +35 -0
  47. package/src/TableCell.dev.js.map +7 -0
  48. package/src/TableCell.js +3 -35
  49. package/src/TableCell.js.map +7 -1
  50. package/src/TableCheckboxCell.d.ts +1 -1
  51. package/src/TableCheckboxCell.dev.js +70 -0
  52. package/src/TableCheckboxCell.dev.js.map +7 -0
  53. package/src/TableCheckboxCell.js +4 -67
  54. package/src/TableCheckboxCell.js.map +7 -1
  55. package/src/TableHead.dev.js +54 -0
  56. package/src/TableHead.dev.js.map +7 -0
  57. package/src/TableHead.js +3 -52
  58. package/src/TableHead.js.map +7 -1
  59. package/src/TableHeadCell.dev.js +90 -0
  60. package/src/TableHeadCell.dev.js.map +7 -0
  61. package/src/TableHeadCell.js +5 -92
  62. package/src/TableHeadCell.js.map +7 -1
  63. package/src/TableRow.d.ts +6 -1
  64. package/src/TableRow.dev.js +99 -0
  65. package/src/TableRow.dev.js.map +7 -0
  66. package/src/TableRow.js +7 -66
  67. package/src/TableRow.js.map +7 -1
  68. package/src/index.dev.js +2 -0
  69. package/src/index.dev.js.map +7 -0
  70. package/src/index.js +2 -13
  71. package/src/index.js.map +7 -1
  72. package/src/spectrum-table-body.css.dev.js +16 -0
  73. package/src/spectrum-table-body.css.dev.js.map +7 -0
  74. package/src/spectrum-table-body.css.js +3 -16
  75. package/src/spectrum-table-body.css.js.map +7 -1
  76. package/src/spectrum-table-cell.css.dev.js +26 -0
  77. package/src/spectrum-table-cell.css.dev.js.map +7 -0
  78. package/src/spectrum-table-cell.css.js +3 -16
  79. package/src/spectrum-table-cell.css.js.map +7 -1
  80. package/src/spectrum-table-checkbox-cell.css.dev.js +12 -0
  81. package/src/spectrum-table-checkbox-cell.css.dev.js.map +7 -0
  82. package/src/spectrum-table-checkbox-cell.css.js +3 -16
  83. package/src/spectrum-table-checkbox-cell.css.js.map +7 -1
  84. package/src/spectrum-table-head-cell.css.dev.js +60 -0
  85. package/src/spectrum-table-head-cell.css.dev.js.map +7 -0
  86. package/src/spectrum-table-head-cell.css.js +3 -16
  87. package/src/spectrum-table-head-cell.css.js.map +7 -1
  88. package/src/spectrum-table-head.css.dev.js +6 -0
  89. package/src/spectrum-table-head.css.dev.js.map +7 -0
  90. package/src/spectrum-table-head.css.js +3 -16
  91. package/src/spectrum-table-head.css.js.map +7 -1
  92. package/src/spectrum-table-row.css.dev.js +32 -0
  93. package/src/spectrum-table-row.css.dev.js.map +7 -0
  94. package/src/spectrum-table-row.css.js +3 -16
  95. package/src/spectrum-table-row.css.js.map +7 -1
  96. package/src/spectrum-table.css.dev.js +512 -0
  97. package/src/spectrum-table.css.dev.js.map +7 -0
  98. package/src/spectrum-table.css.js +3 -16
  99. package/src/spectrum-table.css.js.map +7 -1
  100. package/src/table-body.css.dev.js +16 -0
  101. package/src/table-body.css.dev.js.map +7 -0
  102. package/src/table-body.css.js +4 -17
  103. package/src/table-body.css.js.map +7 -1
  104. package/src/table-cell.css.dev.js +26 -0
  105. package/src/table-cell.css.dev.js.map +7 -0
  106. package/src/table-cell.css.js +3 -16
  107. package/src/table-cell.css.js.map +7 -1
  108. package/src/table-checkbox-cell.css.dev.js +12 -0
  109. package/src/table-checkbox-cell.css.dev.js.map +7 -0
  110. package/src/table-checkbox-cell.css.js +3 -16
  111. package/src/table-checkbox-cell.css.js.map +7 -1
  112. package/src/table-head-cell.css.dev.js +60 -0
  113. package/src/table-head-cell.css.dev.js.map +7 -0
  114. package/src/table-head-cell.css.js +3 -16
  115. package/src/table-head-cell.css.js.map +7 -1
  116. package/src/table-head.css.dev.js +6 -0
  117. package/src/table-head.css.dev.js.map +7 -0
  118. package/src/table-head.css.js +3 -16
  119. package/src/table-head.css.js.map +7 -1
  120. package/src/table-row.css.dev.js +32 -0
  121. package/src/table-row.css.dev.js.map +7 -0
  122. package/src/table-row.css.js +3 -16
  123. package/src/table-row.css.js.map +7 -1
  124. package/src/table.css.dev.js +512 -0
  125. package/src/table.css.dev.js.map +7 -0
  126. package/src/table.css.js +4 -17
  127. package/src/table.css.js.map +7 -1
  128. package/stories/index.js +7 -31
  129. package/stories/index.js.map +7 -1
  130. package/stories/table-elements.stories.js +45 -117
  131. package/stories/table-elements.stories.js.map +7 -1
  132. package/stories/table-virtualized.stories.js +48 -165
  133. package/stories/table-virtualized.stories.js.map +7 -1
  134. package/test/benchmark/basic-test.js +3 -17
  135. package/test/benchmark/basic-test.js.map +7 -1
  136. package/test/table-elements.test-vrt.js +2 -15
  137. package/test/table-elements.test-vrt.js.map +7 -1
  138. package/test/table-selects.test.js +41 -0
  139. package/test/table-selects.test.js.map +7 -0
  140. package/test/table-virtualized.test-vrt.js +2 -15
  141. package/test/table-virtualized.test-vrt.js.map +7 -1
  142. package/test/table.test.js +43 -222
  143. package/test/table.test.js.map +7 -1
  144. package/test/virtualized-table-selects.test.js +57 -0
  145. package/test/virtualized-table-selects.test.js.map +7 -0
  146. package/test/virtualized-table.test.js +35 -450
  147. package/test/virtualized-table.test.js.map +7 -1
  148. package/stories/table.stories.js.map +0 -1
  149. package/test/table.test-vrt.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/table",
3
- "version": "0.0.2-table.2625+0c83ba2e6",
3
+ "version": "0.0.2-table.2715+208f25407",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,7 +29,8 @@
29
29
  "./sp-table-head.js": "./sp-table-head.js",
30
30
  "./sp-table-head-cell.js": "./sp-table-head-cell.js",
31
31
  "./sp-table-row.js": "./sp-table-row.js",
32
- "./sp-table.js": "./sp-table.js"
32
+ "./sp-table.js": "./sp-table.js",
33
+ "./elements.js": "./elements.js"
33
34
  },
34
35
  "scripts": {
35
36
  "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
@@ -49,19 +50,21 @@
49
50
  "lit-html"
50
51
  ],
51
52
  "dependencies": {
52
- "@spectrum-web-components/base": "^0.5.6",
53
- "@spectrum-web-components/checkbox": "^0.13.2",
54
- "@spectrum-web-components/icon": "^0.11.8",
55
- "@spectrum-web-components/icons-ui": "^0.8.8",
53
+ "@lit-labs/virtualizer": "^0.7.1",
54
+ "@spectrum-web-components/base": "^0.5.8",
55
+ "@spectrum-web-components/checkbox": "^0.13.6",
56
+ "@spectrum-web-components/icon": "^0.11.12",
57
+ "@spectrum-web-components/icons-ui": "^0.8.12",
56
58
  "tslib": "^2.0.0"
57
59
  },
58
60
  "devDependencies": {
59
- "@spectrum-css/table": "^4.0.17"
61
+ "@spectrum-css/table": "^4.0.19"
60
62
  },
61
63
  "types": "./src/index.d.ts",
62
64
  "customElements": "custom-elements.json",
63
65
  "sideEffects": [
64
- "./sp-*.js"
66
+ "./sp-*.js",
67
+ "./elements.js"
65
68
  ],
66
- "gitHead": "0c83ba2e61dcd1713c08495ea92ee1a8531c1123"
69
+ "gitHead": "208f25407b5a9a4b0ca9765a1638b03dd8d3be99"
67
70
  }
@@ -0,0 +1,3 @@
1
+ import { TableBody } from "./src/TableBody.dev.js";
2
+ customElements.define("sp-table-body", TableBody);
3
+ //# sourceMappingURL=sp-table-body.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-body.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table-body', TableBody);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-body': TableBody;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,iBAAiB,SAAS;",
6
+ "names": []
7
+ }
package/sp-table-body.js CHANGED
@@ -1,14 +1,2 @@
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
1
+ import{TableBody as e}from"./src/TableBody.js";customElements.define("sp-table-body",e);
2
+ //# sourceMappingURL=sp-table-body.js.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-body.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,+CAEA,eAAe,OAAO,gBAAiB,CAAS",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import { TableCell } from "./src/TableCell.dev.js";
2
+ customElements.define("sp-table-cell", TableCell);
3
+ //# sourceMappingURL=sp-table-cell.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-cell.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table-cell', TableCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-cell': TableCell;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,iBAAiB,SAAS;",
6
+ "names": []
7
+ }
package/sp-table-cell.js CHANGED
@@ -1,14 +1,2 @@
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
1
+ import{TableCell as e}from"./src/TableCell.js";customElements.define("sp-table-cell",e);
2
+ //# sourceMappingURL=sp-table-cell.js.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-cell.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,+CAEA,eAAe,OAAO,gBAAiB,CAAS",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import { TableCheckboxCell } from "./src/TableCheckboxCell.dev.js";
2
+ customElements.define("sp-table-checkbox-cell", TableCheckboxCell);
3
+ //# sourceMappingURL=sp-table-checkbox-cell.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-checkbox-cell.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table-checkbox-cell', TableCheckboxCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-checkbox-cell': TableCheckboxCell;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,0BAA0B,iBAAiB;",
6
+ "names": []
7
+ }
@@ -1,14 +1,2 @@
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
1
+ import{TableCheckboxCell as e}from"./src/TableCheckboxCell.js";customElements.define("sp-table-checkbox-cell",e);
2
+ //# sourceMappingURL=sp-table-checkbox-cell.js.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-checkbox-cell.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,+DAEA,eAAe,OAAO,yBAA0B,CAAiB",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import { TableHeadCell } from "./src/TableHeadCell.dev.js";
2
+ customElements.define("sp-table-head-cell", TableHeadCell);
3
+ //# sourceMappingURL=sp-table-head-cell.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-head-cell.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table-head-cell', TableHeadCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head-cell': TableHeadCell;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,sBAAsB,aAAa;",
6
+ "names": []
7
+ }
@@ -1,14 +1,2 @@
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
1
+ import{TableHeadCell as e}from"./src/TableHeadCell.js";customElements.define("sp-table-head-cell",e);
2
+ //# sourceMappingURL=sp-table-head-cell.js.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-head-cell.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,uDAEA,eAAe,OAAO,qBAAsB,CAAa",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import { TableHead } from "./src/TableHead.dev.js";
2
+ customElements.define("sp-table-head", TableHead);
3
+ //# sourceMappingURL=sp-table-head.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-head.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table-head', TableHead);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head': TableHead;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,iBAAiB,SAAS;",
6
+ "names": []
7
+ }
package/sp-table-head.js CHANGED
@@ -1,14 +1,2 @@
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
1
+ import{TableHead as e}from"./src/TableHead.js";customElements.define("sp-table-head",e);
2
+ //# sourceMappingURL=sp-table-head.js.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-head.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,+CAEA,eAAe,OAAO,gBAAiB,CAAS",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import { TableRow } from "./src/TableRow.dev.js";
2
+ customElements.define("sp-table-row", TableRow);
3
+ //# sourceMappingURL=sp-table-row.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-row.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table-row', TableRow);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-row': TableRow;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,gBAAgB,QAAQ;",
6
+ "names": []
7
+ }
package/sp-table-row.js CHANGED
@@ -1,14 +1,2 @@
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
1
+ import{TableRow as e}from"./src/TableRow.js";customElements.define("sp-table-row",e);
2
+ //# sourceMappingURL=sp-table-row.js.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table-row.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,6CAEA,eAAe,OAAO,eAAgB,CAAQ",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import { Table } from "./src/Table.dev.js";
2
+ customElements.define("sp-table", Table);
3
+ //# sourceMappingURL=sp-table.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table.ts"],
4
+ "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.dev.js'\n\ncustomElements.define('sp-table', Table);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table': Table;\n }\n}\n"],
5
+ "mappings": "AAWA;AAEA,eAAe,OAAO,YAAY,KAAK;",
6
+ "names": []
7
+ }
package/sp-table.js CHANGED
@@ -1,14 +1,2 @@
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
1
+ import{Table as e}from"./src/Table.js";customElements.define("sp-table",e);
2
+ //# sourceMappingURL=sp-table.js.map
package/sp-table.js.map CHANGED
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-table.ts"],
4
+ "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"],
5
+ "mappings": "AAWA,uCAEA,eAAe,OAAO,WAAY,CAAK",
6
+ "names": []
7
+ }
package/src/Table.d.ts CHANGED
@@ -1,23 +1,35 @@
1
1
  import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
2
2
  import '../sp-table-row.js';
3
3
  import '../sp-table-checkbox-cell.js';
4
+ import '../sp-table-body.js';
4
5
  interface Range {
5
6
  first: number;
6
7
  last: number;
7
8
  }
9
+ export declare enum RowType {
10
+ ITEM = 0,
11
+ INFORMATION = 1
12
+ }
13
+ export interface TableItem extends Record<string, unknown> {
14
+ _$rowType$?: RowType;
15
+ }
8
16
  export declare class RangeChangedEvent extends Event {
9
17
  static eventName: string;
10
18
  first: number;
11
19
  last: number;
12
20
  constructor(range: Range);
13
21
  }
22
+ declare const Table_base: typeof SpectrumElement & {
23
+ new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
24
+ prototype: import("@spectrum-web-components/base").SizedElementInterface;
25
+ };
14
26
  /**
15
27
  * @element sp-table
16
28
  *
17
29
  * @fires rangeChanged - Announces a change in the range of visible cells on the table body
18
30
  * @event change - Announces a change in the `selected` property of a table row
19
31
  */
20
- export declare class Table extends SpectrumElement {
32
+ export declare class Table extends Table_base {
21
33
  static get styles(): CSSResultArray;
22
34
  get renderItem(): (item: Record<string, unknown>, index: number) => TemplateResult;
23
35
  set renderItem(fn: (item: Record<string, unknown>, index: number) => TemplateResult);
@@ -62,5 +74,6 @@ export declare class Table extends SpectrumElement {
62
74
  protected willUpdate(changed: PropertyValues<this>): void;
63
75
  protected updated(): void;
64
76
  protected renderVirtualizedItems(index?: number): void;
77
+ disconnectedCallback(): void;
65
78
  }
66
79
  export {};