@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.
- package/LICENSE +201 -0
- package/README.md +364 -0
- package/custom-elements.json +1083 -0
- package/package.json +74 -0
- package/sp-table-body.d.ts +6 -0
- package/sp-table-body.js +14 -0
- package/sp-table-body.js.map +1 -0
- package/sp-table-cell.d.ts +6 -0
- package/sp-table-cell.js +14 -0
- package/sp-table-cell.js.map +1 -0
- package/sp-table-checkbox-cell.d.ts +6 -0
- package/sp-table-checkbox-cell.js +14 -0
- package/sp-table-checkbox-cell.js.map +1 -0
- package/sp-table-head-cell.d.ts +6 -0
- package/sp-table-head-cell.js +14 -0
- package/sp-table-head-cell.js.map +1 -0
- package/sp-table-head.d.ts +6 -0
- package/sp-table-head.js +14 -0
- package/sp-table-head.js.map +1 -0
- package/sp-table-row.d.ts +6 -0
- package/sp-table-row.js +14 -0
- package/sp-table-row.js.map +1 -0
- package/sp-table.d.ts +6 -0
- package/sp-table.js +14 -0
- package/sp-table.js.map +1 -0
- package/src/Table.d.ts +42 -0
- package/src/Table.js +363 -0
- package/src/Table.js.map +1 -0
- package/src/TableBody.d.ts +9 -0
- package/src/TableBody.js +36 -0
- package/src/TableBody.js.map +1 -0
- package/src/TableCell.d.ts +10 -0
- package/src/TableCell.js +40 -0
- package/src/TableCell.js.map +1 -0
- package/src/TableCheckboxCell.d.ts +17 -0
- package/src/TableCheckboxCell.js +76 -0
- package/src/TableCheckboxCell.js.map +1 -0
- package/src/TableHead.d.ts +15 -0
- package/src/TableHead.js +56 -0
- package/src/TableHead.js.map +1 -0
- package/src/TableHeadCell.d.ts +21 -0
- package/src/TableHeadCell.js +98 -0
- package/src/TableHeadCell.js.map +1 -0
- package/src/TableRow.d.ts +18 -0
- package/src/TableRow.js +64 -0
- package/src/TableRow.js.map +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +13 -0
- package/src/index.js.map +1 -0
- package/src/spectrum-config.js +245 -0
- package/src/spectrum-table-body.css.d.ts +2 -0
- package/src/spectrum-table-body.css.js +27 -0
- package/src/spectrum-table-body.css.js.map +1 -0
- package/src/spectrum-table-cell.css.d.ts +2 -0
- package/src/spectrum-table-cell.css.js +37 -0
- package/src/spectrum-table-cell.css.js.map +1 -0
- package/src/spectrum-table-checkbox-cell.css.d.ts +2 -0
- package/src/spectrum-table-checkbox-cell.css.js +23 -0
- package/src/spectrum-table-checkbox-cell.css.js.map +1 -0
- package/src/spectrum-table-head-cell.css.d.ts +2 -0
- package/src/spectrum-table-head-cell.css.js +71 -0
- package/src/spectrum-table-head-cell.css.js.map +1 -0
- package/src/spectrum-table-head.css.d.ts +2 -0
- package/src/spectrum-table-head.css.js +17 -0
- package/src/spectrum-table-head.css.js.map +1 -0
- package/src/spectrum-table-row.css.d.ts +2 -0
- package/src/spectrum-table-row.css.js +43 -0
- package/src/spectrum-table-row.css.js.map +1 -0
- package/src/spectrum-table.css.d.ts +2 -0
- package/src/spectrum-table.css.js +543 -0
- package/src/spectrum-table.css.js.map +1 -0
- package/src/table-body.css.d.ts +2 -0
- package/src/table-body.css.js +27 -0
- package/src/table-body.css.js.map +1 -0
- package/src/table-cell.css.d.ts +2 -0
- package/src/table-cell.css.js +37 -0
- package/src/table-cell.css.js.map +1 -0
- package/src/table-checkbox-cell.css.d.ts +2 -0
- package/src/table-checkbox-cell.css.js +23 -0
- package/src/table-checkbox-cell.css.js.map +1 -0
- package/src/table-head-cell.css.d.ts +2 -0
- package/src/table-head-cell.css.js +71 -0
- package/src/table-head-cell.css.js.map +1 -0
- package/src/table-head.css.d.ts +2 -0
- package/src/table-head.css.js +17 -0
- package/src/table-head.css.js.map +1 -0
- package/src/table-row.css.d.ts +2 -0
- package/src/table-row.css.js +43 -0
- package/src/table-row.css.js.map +1 -0
- package/src/table.css.d.ts +2 -0
- package/src/table.css.js +543 -0
- package/src/table.css.js.map +1 -0
- package/stories/index.js +44 -0
- package/stories/index.js.map +1 -0
- package/stories/table-elements.stories.js +237 -0
- package/stories/table-elements.stories.js.map +1 -0
- package/stories/table-virtualized.stories.js +221 -0
- package/stories/table-virtualized.stories.js.map +1 -0
- package/stories/table.stories.js.map +1 -0
- package/test/benchmark/basic-test.js +18 -0
- package/test/benchmark/basic-test.js.map +1 -0
- package/test/table-elements.test-vrt.js +15 -0
- package/test/table-elements.test-vrt.js.map +1 -0
- package/test/table-virtualized.test-vrt.js +15 -0
- package/test/table-virtualized.test-vrt.js.map +1 -0
- package/test/table.test-vrt.js.map +1 -0
- package/test/table.test.js +870 -0
- 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
|
+
}
|
package/sp-table-body.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 { 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"]}
|
package/sp-table-cell.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 { 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,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,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"]}
|
package/sp-table-head.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 { 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"]}
|
package/sp-table-row.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 { 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
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
|
package/sp-table.js.map
ADDED
|
@@ -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 {};
|