@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.
- package/README.md +212 -40
- package/custom-elements.json +88 -35
- package/elements.d.ts +7 -0
- package/elements.dev.js +8 -0
- package/elements.dev.js.map +7 -0
- package/elements.js +2 -0
- package/elements.js.map +7 -0
- package/package.json +12 -9
- package/sp-table-body.dev.js +3 -0
- package/sp-table-body.dev.js.map +7 -0
- package/sp-table-body.js +2 -14
- package/sp-table-body.js.map +7 -1
- package/sp-table-cell.dev.js +3 -0
- package/sp-table-cell.dev.js.map +7 -0
- package/sp-table-cell.js +2 -14
- package/sp-table-cell.js.map +7 -1
- package/sp-table-checkbox-cell.dev.js +3 -0
- package/sp-table-checkbox-cell.dev.js.map +7 -0
- package/sp-table-checkbox-cell.js +2 -14
- package/sp-table-checkbox-cell.js.map +7 -1
- package/sp-table-head-cell.dev.js +3 -0
- package/sp-table-head-cell.dev.js.map +7 -0
- package/sp-table-head-cell.js +2 -14
- package/sp-table-head-cell.js.map +7 -1
- package/sp-table-head.dev.js +3 -0
- package/sp-table-head.dev.js.map +7 -0
- package/sp-table-head.js +2 -14
- package/sp-table-head.js.map +7 -1
- package/sp-table-row.dev.js +3 -0
- package/sp-table-row.dev.js.map +7 -0
- package/sp-table-row.js +2 -14
- package/sp-table-row.js.map +7 -1
- package/sp-table.dev.js +3 -0
- package/sp-table.dev.js.map +7 -0
- package/sp-table.js +2 -14
- package/sp-table.js.map +7 -1
- package/src/Table.d.ts +14 -1
- package/src/Table.dev.js +364 -0
- package/src/Table.dev.js.map +7 -0
- package/src/Table.js +13 -360
- package/src/Table.js.map +7 -1
- package/src/TableBody.dev.js +35 -0
- package/src/TableBody.dev.js.map +7 -0
- package/src/TableBody.js +3 -35
- package/src/TableBody.js.map +7 -1
- package/src/TableCell.dev.js +35 -0
- package/src/TableCell.dev.js.map +7 -0
- package/src/TableCell.js +3 -35
- package/src/TableCell.js.map +7 -1
- package/src/TableCheckboxCell.d.ts +1 -1
- package/src/TableCheckboxCell.dev.js +70 -0
- package/src/TableCheckboxCell.dev.js.map +7 -0
- package/src/TableCheckboxCell.js +4 -67
- package/src/TableCheckboxCell.js.map +7 -1
- package/src/TableHead.dev.js +54 -0
- package/src/TableHead.dev.js.map +7 -0
- package/src/TableHead.js +3 -52
- package/src/TableHead.js.map +7 -1
- package/src/TableHeadCell.dev.js +90 -0
- package/src/TableHeadCell.dev.js.map +7 -0
- package/src/TableHeadCell.js +5 -92
- package/src/TableHeadCell.js.map +7 -1
- package/src/TableRow.d.ts +6 -1
- package/src/TableRow.dev.js +99 -0
- package/src/TableRow.dev.js.map +7 -0
- package/src/TableRow.js +7 -66
- package/src/TableRow.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/spectrum-table-body.css.dev.js +16 -0
- package/src/spectrum-table-body.css.dev.js.map +7 -0
- package/src/spectrum-table-body.css.js +3 -16
- package/src/spectrum-table-body.css.js.map +7 -1
- package/src/spectrum-table-cell.css.dev.js +26 -0
- package/src/spectrum-table-cell.css.dev.js.map +7 -0
- package/src/spectrum-table-cell.css.js +3 -16
- package/src/spectrum-table-cell.css.js.map +7 -1
- package/src/spectrum-table-checkbox-cell.css.dev.js +12 -0
- package/src/spectrum-table-checkbox-cell.css.dev.js.map +7 -0
- package/src/spectrum-table-checkbox-cell.css.js +3 -16
- package/src/spectrum-table-checkbox-cell.css.js.map +7 -1
- package/src/spectrum-table-head-cell.css.dev.js +60 -0
- package/src/spectrum-table-head-cell.css.dev.js.map +7 -0
- package/src/spectrum-table-head-cell.css.js +3 -16
- package/src/spectrum-table-head-cell.css.js.map +7 -1
- package/src/spectrum-table-head.css.dev.js +6 -0
- package/src/spectrum-table-head.css.dev.js.map +7 -0
- package/src/spectrum-table-head.css.js +3 -16
- package/src/spectrum-table-head.css.js.map +7 -1
- package/src/spectrum-table-row.css.dev.js +32 -0
- package/src/spectrum-table-row.css.dev.js.map +7 -0
- package/src/spectrum-table-row.css.js +3 -16
- package/src/spectrum-table-row.css.js.map +7 -1
- package/src/spectrum-table.css.dev.js +512 -0
- package/src/spectrum-table.css.dev.js.map +7 -0
- package/src/spectrum-table.css.js +3 -16
- package/src/spectrum-table.css.js.map +7 -1
- package/src/table-body.css.dev.js +16 -0
- package/src/table-body.css.dev.js.map +7 -0
- package/src/table-body.css.js +4 -17
- package/src/table-body.css.js.map +7 -1
- package/src/table-cell.css.dev.js +26 -0
- package/src/table-cell.css.dev.js.map +7 -0
- package/src/table-cell.css.js +3 -16
- package/src/table-cell.css.js.map +7 -1
- package/src/table-checkbox-cell.css.dev.js +12 -0
- package/src/table-checkbox-cell.css.dev.js.map +7 -0
- package/src/table-checkbox-cell.css.js +3 -16
- package/src/table-checkbox-cell.css.js.map +7 -1
- package/src/table-head-cell.css.dev.js +60 -0
- package/src/table-head-cell.css.dev.js.map +7 -0
- package/src/table-head-cell.css.js +3 -16
- package/src/table-head-cell.css.js.map +7 -1
- package/src/table-head.css.dev.js +6 -0
- package/src/table-head.css.dev.js.map +7 -0
- package/src/table-head.css.js +3 -16
- package/src/table-head.css.js.map +7 -1
- package/src/table-row.css.dev.js +32 -0
- package/src/table-row.css.dev.js.map +7 -0
- package/src/table-row.css.js +3 -16
- package/src/table-row.css.js.map +7 -1
- package/src/table.css.dev.js +512 -0
- package/src/table.css.dev.js.map +7 -0
- package/src/table.css.js +4 -17
- package/src/table.css.js.map +7 -1
- package/stories/index.js +7 -31
- package/stories/index.js.map +7 -1
- package/stories/table-elements.stories.js +45 -117
- package/stories/table-elements.stories.js.map +7 -1
- package/stories/table-virtualized.stories.js +48 -165
- package/stories/table-virtualized.stories.js.map +7 -1
- package/test/benchmark/basic-test.js +3 -17
- package/test/benchmark/basic-test.js.map +7 -1
- package/test/table-elements.test-vrt.js +2 -15
- package/test/table-elements.test-vrt.js.map +7 -1
- package/test/table-selects.test.js +41 -0
- package/test/table-selects.test.js.map +7 -0
- package/test/table-virtualized.test-vrt.js +2 -15
- package/test/table-virtualized.test-vrt.js.map +7 -1
- package/test/table.test.js +43 -222
- package/test/table.test.js.map +7 -1
- package/test/virtualized-table-selects.test.js +57 -0
- package/test/virtualized-table-selects.test.js.map +7 -0
- package/test/virtualized-table.test.js +35 -450
- package/test/virtualized-table.test.js.map +7 -1
- package/stories/table.stories.js.map +0 -1
- 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.
|
|
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
|
-
"@
|
|
53
|
-
"@spectrum-web-components/
|
|
54
|
-
"@spectrum-web-components/
|
|
55
|
-
"@spectrum-web-components/
|
|
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.
|
|
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": "
|
|
69
|
+
"gitHead": "208f25407b5a9a4b0ca9765a1638b03dd8d3be99"
|
|
67
70
|
}
|
|
@@ -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
|
-
|
|
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
|
package/sp-table-body.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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,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
|
-
|
|
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
|
package/sp-table-cell.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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,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
|
-
|
|
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
|
-
{
|
|
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,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
|
+
}
|
package/sp-table-head-cell.js
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
{
|
|
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,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
|
-
|
|
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
|
package/sp-table-head.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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,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
|
-
|
|
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
|
package/sp-table-row.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
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
|
+
}
|
package/sp-table.dev.js
ADDED
|
@@ -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
|
-
|
|
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
|
-
{
|
|
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
|
|
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 {};
|