@spectrum-web-components/table 1.1.0 → 1.1.1
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/elements.d.ts +7 -0
- package/elements.dev.js +9 -0
- package/elements.dev.js.map +7 -0
- package/elements.js +2 -0
- package/elements.js.map +7 -0
- package/package.json +6 -6
- package/sp-table-body.d.ts +6 -0
- package/sp-table-body.dev.js +5 -0
- package/sp-table-body.dev.js.map +7 -0
- package/sp-table-body.js +2 -0
- package/sp-table-body.js.map +7 -0
- package/sp-table-cell.d.ts +6 -0
- package/sp-table-cell.dev.js +5 -0
- package/sp-table-cell.dev.js.map +7 -0
- package/sp-table-cell.js +2 -0
- package/sp-table-cell.js.map +7 -0
- package/sp-table-checkbox-cell.d.ts +6 -0
- package/sp-table-checkbox-cell.dev.js +5 -0
- package/sp-table-checkbox-cell.dev.js.map +7 -0
- package/sp-table-checkbox-cell.js +2 -0
- package/sp-table-checkbox-cell.js.map +7 -0
- package/sp-table-head-cell.d.ts +6 -0
- package/sp-table-head-cell.dev.js +5 -0
- package/sp-table-head-cell.dev.js.map +7 -0
- package/sp-table-head-cell.js +2 -0
- package/sp-table-head-cell.js.map +7 -0
- package/sp-table-head.d.ts +6 -0
- package/sp-table-head.dev.js +5 -0
- package/sp-table-head.dev.js.map +7 -0
- package/sp-table-head.js +2 -0
- package/sp-table-head.js.map +7 -0
- package/sp-table-row.d.ts +6 -0
- package/sp-table-row.dev.js +5 -0
- package/sp-table-row.dev.js.map +7 -0
- package/sp-table-row.js +2 -0
- package/sp-table-row.js.map +7 -0
- package/sp-table.d.ts +6 -0
- package/sp-table.dev.js +5 -0
- package/sp-table.dev.js.map +7 -0
- package/sp-table.js +2 -0
- package/sp-table.js.map +7 -0
- package/src/Table.d.ts +82 -0
- package/src/Table.dev.js +417 -0
- package/src/Table.dev.js.map +7 -0
- package/src/Table.js +19 -0
- package/src/Table.js.map +7 -0
- package/src/TableBody.d.ts +11 -0
- package/src/TableBody.dev.js +54 -0
- package/src/TableBody.dev.js.map +7 -0
- package/src/TableBody.js +4 -0
- package/src/TableBody.js.map +7 -0
- package/src/TableCell.d.ts +9 -0
- package/src/TableCell.dev.js +35 -0
- package/src/TableCell.dev.js.map +7 -0
- package/src/TableCell.js +4 -0
- package/src/TableCell.js.map +7 -0
- package/src/TableCheckboxCell.d.ts +22 -0
- package/src/TableCheckboxCell.dev.js +77 -0
- package/src/TableCheckboxCell.dev.js.map +7 -0
- package/src/TableCheckboxCell.js +11 -0
- package/src/TableCheckboxCell.js.map +7 -0
- package/src/TableHead.d.ts +16 -0
- package/src/TableHead.dev.js +54 -0
- package/src/TableHead.dev.js.map +7 -0
- package/src/TableHead.js +7 -0
- package/src/TableHead.js.map +7 -0
- package/src/TableHeadCell.d.ts +26 -0
- package/src/TableHeadCell.dev.js +134 -0
- package/src/TableHeadCell.dev.js.map +7 -0
- package/src/TableHeadCell.js +9 -0
- package/src/TableHeadCell.js.map +7 -0
- package/src/TableRow.d.ts +25 -0
- package/src/TableRow.dev.js +113 -0
- package/src/TableRow.dev.js.map +7 -0
- package/src/TableRow.js +7 -0
- package/src/TableRow.js.map +7 -0
- package/src/index.d.ts +7 -0
- package/src/index.dev.js +9 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -0
- package/src/index.js.map +7 -0
- package/src/spectrum-table-body.css.d.ts +2 -0
- package/src/spectrum-table-body.css.dev.js +7 -0
- package/src/spectrum-table-body.css.dev.js.map +7 -0
- package/src/spectrum-table-body.css.js +4 -0
- package/src/spectrum-table-body.css.js.map +7 -0
- package/src/spectrum-table-cell.css.d.ts +2 -0
- package/src/spectrum-table-cell.css.dev.js +7 -0
- package/src/spectrum-table-cell.css.dev.js.map +7 -0
- package/src/spectrum-table-cell.css.js +4 -0
- package/src/spectrum-table-cell.css.js.map +7 -0
- package/src/spectrum-table-checkbox-cell.css.d.ts +2 -0
- package/src/spectrum-table-checkbox-cell.css.dev.js +7 -0
- package/src/spectrum-table-checkbox-cell.css.dev.js.map +7 -0
- package/src/spectrum-table-checkbox-cell.css.js +4 -0
- package/src/spectrum-table-checkbox-cell.css.js.map +7 -0
- package/src/spectrum-table-head-cell.css.d.ts +2 -0
- package/src/spectrum-table-head-cell.css.dev.js +7 -0
- package/src/spectrum-table-head-cell.css.dev.js.map +7 -0
- package/src/spectrum-table-head-cell.css.js +4 -0
- package/src/spectrum-table-head-cell.css.js.map +7 -0
- package/src/spectrum-table-head.css.d.ts +2 -0
- package/src/spectrum-table-head.css.dev.js +7 -0
- package/src/spectrum-table-head.css.dev.js.map +7 -0
- package/src/spectrum-table-head.css.js +4 -0
- package/src/spectrum-table-head.css.js.map +7 -0
- package/src/spectrum-table-row.css.d.ts +2 -0
- package/src/spectrum-table-row.css.dev.js +7 -0
- package/src/spectrum-table-row.css.dev.js.map +7 -0
- package/src/spectrum-table-row.css.js +4 -0
- package/src/spectrum-table-row.css.js.map +7 -0
- package/src/spectrum-table.css.d.ts +2 -0
- package/src/spectrum-table.css.dev.js +7 -0
- package/src/spectrum-table.css.dev.js.map +7 -0
- package/src/spectrum-table.css.js +4 -0
- package/src/spectrum-table.css.js.map +7 -0
- package/src/table-body.css.d.ts +2 -0
- package/src/table-body.css.dev.js +7 -0
- package/src/table-body.css.dev.js.map +7 -0
- package/src/table-body.css.js +4 -0
- package/src/table-body.css.js.map +7 -0
- package/src/table-cell-overrides.css.d.ts +2 -0
- package/src/table-cell-overrides.css.dev.js +7 -0
- package/src/table-cell-overrides.css.dev.js.map +7 -0
- package/src/table-cell-overrides.css.js +4 -0
- package/src/table-cell-overrides.css.js.map +7 -0
- package/src/table-cell.css.d.ts +2 -0
- package/src/table-cell.css.dev.js +7 -0
- package/src/table-cell.css.dev.js.map +7 -0
- package/src/table-cell.css.js +4 -0
- package/src/table-cell.css.js.map +7 -0
- package/src/table-checkbox-cell-overrides.css.d.ts +2 -0
- package/src/table-checkbox-cell-overrides.css.dev.js +7 -0
- package/src/table-checkbox-cell-overrides.css.dev.js.map +7 -0
- package/src/table-checkbox-cell-overrides.css.js +4 -0
- package/src/table-checkbox-cell-overrides.css.js.map +7 -0
- package/src/table-checkbox-cell.css.d.ts +2 -0
- package/src/table-checkbox-cell.css.dev.js +7 -0
- package/src/table-checkbox-cell.css.dev.js.map +7 -0
- package/src/table-checkbox-cell.css.js +4 -0
- package/src/table-checkbox-cell.css.js.map +7 -0
- package/src/table-head-cell-overrides.css.d.ts +2 -0
- package/src/table-head-cell-overrides.css.dev.js +7 -0
- package/src/table-head-cell-overrides.css.dev.js.map +7 -0
- package/src/table-head-cell-overrides.css.js +4 -0
- package/src/table-head-cell-overrides.css.js.map +7 -0
- package/src/table-head-cell.css.d.ts +2 -0
- package/src/table-head-cell.css.dev.js +7 -0
- package/src/table-head-cell.css.dev.js.map +7 -0
- package/src/table-head-cell.css.js +4 -0
- package/src/table-head-cell.css.js.map +7 -0
- package/src/table-head-overrides.css.d.ts +2 -0
- package/src/table-head-overrides.css.dev.js +7 -0
- package/src/table-head-overrides.css.dev.js.map +7 -0
- package/src/table-head-overrides.css.js +4 -0
- package/src/table-head-overrides.css.js.map +7 -0
- package/src/table-head.css.d.ts +2 -0
- package/src/table-head.css.dev.js +7 -0
- package/src/table-head.css.dev.js.map +7 -0
- package/src/table-head.css.js +4 -0
- package/src/table-head.css.js.map +7 -0
- package/src/table-overrides.css.d.ts +2 -0
- package/src/table-overrides.css.dev.js +7 -0
- package/src/table-overrides.css.dev.js.map +7 -0
- package/src/table-overrides.css.js +4 -0
- package/src/table-overrides.css.js.map +7 -0
- package/src/table-row-overrides.css.d.ts +2 -0
- package/src/table-row-overrides.css.dev.js +7 -0
- package/src/table-row-overrides.css.dev.js.map +7 -0
- package/src/table-row-overrides.css.js +4 -0
- package/src/table-row-overrides.css.js.map +7 -0
- package/src/table-row.css.d.ts +2 -0
- package/src/table-row.css.dev.js +7 -0
- package/src/table-row.css.dev.js.map +7 -0
- package/src/table-row.css.js +4 -0
- package/src/table-row.css.js.map +7 -0
- package/src/table.css.d.ts +2 -0
- package/src/table.css.dev.js +7 -0
- package/src/table.css.dev.js.map +7 -0
- package/src/table.css.js +4 -0
- package/src/table.css.js.map +7 -0
- package/stories/index.js +27 -0
- package/stories/index.js.map +7 -0
- package/stories/table-elements.stories.js +292 -0
- package/stories/table-elements.stories.js.map +7 -0
- package/stories/table-virtualized.stories.js +279 -0
- package/stories/table-virtualized.stories.js.map +7 -0
- package/test/benchmark/basic-test.js +46 -0
- package/test/benchmark/basic-test.js.map +7 -0
- package/test/helpers.js +18 -0
- package/test/helpers.js.map +7 -0
- package/test/table-elements.test-vrt.js +5 -0
- package/test/table-elements.test-vrt.js.map +7 -0
- package/test/table-memory.test.js +6 -0
- package/test/table-memory.test.js.map +7 -0
- package/test/table-selects.test.js +262 -0
- package/test/table-selects.test.js.map +7 -0
- package/test/table-virtualized.test-vrt.js +5 -0
- package/test/table-virtualized.test-vrt.js.map +7 -0
- package/test/table.test.js +251 -0
- package/test/table.test.js.map +7 -0
- package/test/virtualized-table-selects.test.js +375 -0
- package/test/virtualized-table-selects.test.js.map +7 -0
- package/test/virtualized-table.test.js +310 -0
- package/test/virtualized-table.test.js.map +7 -0
package/elements.d.ts
ADDED
package/elements.dev.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import "./sp-table-body.dev.js";
|
|
3
|
+
import "./sp-table-cell.dev.js";
|
|
4
|
+
import "./sp-table-checkbox-cell.dev.js";
|
|
5
|
+
import "./sp-table-head-cell.dev.js";
|
|
6
|
+
import "./sp-table-head.dev.js";
|
|
7
|
+
import "./sp-table-row.dev.js";
|
|
8
|
+
import "./sp-table.dev.js";
|
|
9
|
+
//# sourceMappingURL=elements.dev.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["elements.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*/\n\nimport './sp-table-body.dev.js'\nimport './sp-table-cell.dev.js'\nimport './sp-table-checkbox-cell.dev.js'\nimport './sp-table-head-cell.dev.js'\nimport './sp-table-head.dev.js'\nimport './sp-table-row.dev.js'\nimport './sp-table.dev.js'\n"],
|
|
5
|
+
"mappings": ";AAYA,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/elements.js
ADDED
package/elements.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["elements.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*/\n\nimport './sp-table-body.js';\nimport './sp-table-cell.js';\nimport './sp-table-checkbox-cell.js';\nimport './sp-table-head-cell.js';\nimport './sp-table-head.js';\nimport './sp-table-row.js';\nimport './sp-table.js';\n"],
|
|
5
|
+
"mappings": "aAYA,MAAO,qBACP,MAAO,qBACP,MAAO,8BACP,MAAO,0BACP,MAAO,qBACP,MAAO,oBACP,MAAO",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/table",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
"dependencies": {
|
|
124
124
|
"@lit-labs/observers": "^2.0.2",
|
|
125
125
|
"@lit-labs/virtualizer": "^2.0.12",
|
|
126
|
-
"@spectrum-web-components/base": "^1.1.
|
|
127
|
-
"@spectrum-web-components/checkbox": "^1.1.
|
|
128
|
-
"@spectrum-web-components/icon": "^1.1.
|
|
129
|
-
"@spectrum-web-components/icons-ui": "^1.1.
|
|
126
|
+
"@spectrum-web-components/base": "^1.1.1",
|
|
127
|
+
"@spectrum-web-components/checkbox": "^1.1.1",
|
|
128
|
+
"@spectrum-web-components/icon": "^1.1.1",
|
|
129
|
+
"@spectrum-web-components/icons-ui": "^1.1.1"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@spectrum-css/table": "7.0.0-s2-foundations.17"
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"./elements.js",
|
|
139
139
|
"./**/*.dev.js"
|
|
140
140
|
],
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "44870aa95001c1b995456d994ae31bbe7277fac9"
|
|
142
142
|
}
|
|
@@ -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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-body', TableBody);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-body': TableBody;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAE9B,cAAc,iBAAiB,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/sp-table-body.js
ADDED
|
@@ -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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-body', TableBody);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-body': TableBody;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,aAAAA,MAAiB,qBAC1B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,gBAAiBD,CAAS",
|
|
6
|
+
"names": ["TableBody", "defineElement"]
|
|
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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-cell', TableCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-cell': TableCell;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAE9B,cAAc,iBAAiB,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/sp-table-cell.js
ADDED
|
@@ -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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-cell', TableCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-cell': TableCell;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,aAAAA,MAAiB,qBAC1B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,gBAAiBD,CAAS",
|
|
6
|
+
"names": ["TableCell", "defineElement"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { TableCheckboxCell } from "./src/TableCheckboxCell.dev.js";
|
|
3
|
+
import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
|
|
4
|
+
defineElement("sp-table-checkbox-cell", TableCheckboxCell);
|
|
5
|
+
//# 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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-checkbox-cell', TableCheckboxCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-checkbox-cell': TableCheckboxCell;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,yBAAyB;AAClC,SAAS,qBAAqB;AAE9B,cAAc,0BAA0B,iBAAiB;",
|
|
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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-checkbox-cell', TableCheckboxCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-checkbox-cell': TableCheckboxCell;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,qBAAAA,MAAyB,6BAClC,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,yBAA0BD,CAAiB",
|
|
6
|
+
"names": ["TableCheckboxCell", "defineElement"]
|
|
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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-head-cell', TableHeadCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head-cell': TableHeadCell;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAE9B,cAAc,sBAAsB,aAAa;",
|
|
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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-head-cell', TableHeadCell);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head-cell': TableHeadCell;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,iBAAAA,MAAqB,yBAC9B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,qBAAsBD,CAAa",
|
|
6
|
+
"names": ["TableHeadCell", "defineElement"]
|
|
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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-head', TableHead);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head': TableHead;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,iBAAiB;AAC1B,SAAS,qBAAqB;AAE9B,cAAc,iBAAiB,SAAS;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/sp-table-head.js
ADDED
|
@@ -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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-head', TableHead);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-head': TableHead;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,aAAAA,MAAiB,qBAC1B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,gBAAiBD,CAAS",
|
|
6
|
+
"names": ["TableHead", "defineElement"]
|
|
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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-row', TableRow);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-row': TableRow;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAE9B,cAAc,gBAAgB,QAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/sp-table-row.js
ADDED
|
@@ -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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table-row', TableRow);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table-row': TableRow;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,YAAAA,MAAgB,oBACzB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,eAAgBD,CAAQ",
|
|
6
|
+
"names": ["TableRow", "defineElement"]
|
|
7
|
+
}
|
package/sp-table.d.ts
ADDED
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'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table', Table);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table': Table;\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,aAAa;AACtB,SAAS,qBAAqB;AAE9B,cAAc,YAAY,KAAK;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/sp-table.js
ADDED
package/sp-table.js.map
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.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-table', Table);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-table': Table;\n }\n}\n"],
|
|
5
|
+
"mappings": "aAWA,OAAS,SAAAA,MAAa,iBACtB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,WAAYD,CAAK",
|
|
6
|
+
"names": ["Table", "defineElement"]
|
|
7
|
+
}
|
package/src/Table.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
|
|
2
|
+
import '@spectrum-web-components/table/sp-table-body.js';
|
|
3
|
+
import '@spectrum-web-components/table/sp-table-row.js';
|
|
4
|
+
import '@spectrum-web-components/table/sp-table-checkbox-cell.js';
|
|
5
|
+
export declare enum RowType {
|
|
6
|
+
ITEM = 0,
|
|
7
|
+
INFORMATION = 1
|
|
8
|
+
}
|
|
9
|
+
export interface TableItem extends Record<string, unknown> {
|
|
10
|
+
_$rowType$?: RowType;
|
|
11
|
+
}
|
|
12
|
+
declare const Table_base: typeof SpectrumElement & {
|
|
13
|
+
new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
|
|
14
|
+
prototype: import("@spectrum-web-components/base").SizedElementInterface;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @element sp-table
|
|
18
|
+
*
|
|
19
|
+
* @fires rangeChanged - Announces a change in the range of visible cells on the table body
|
|
20
|
+
* @event change - Announces a change in the `selected` property of a table row
|
|
21
|
+
*/
|
|
22
|
+
export declare class Table extends Table_base {
|
|
23
|
+
static get styles(): CSSResultArray;
|
|
24
|
+
get renderItem(): (item: Record<string, unknown>, index: number) => TemplateResult;
|
|
25
|
+
set renderItem(fn: (item: Record<string, unknown>, index: number) => TemplateResult);
|
|
26
|
+
private _renderItem;
|
|
27
|
+
role: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the Table allows users to select a row or rows, and thus controls whether or not the Table also renders checkboxes.
|
|
30
|
+
*/
|
|
31
|
+
selects: undefined | 'single' | 'multiple';
|
|
32
|
+
/**
|
|
33
|
+
* An array of <sp-row> values that have been selected.
|
|
34
|
+
*/
|
|
35
|
+
selected: string[];
|
|
36
|
+
private selectedSet;
|
|
37
|
+
/**
|
|
38
|
+
* The content of the rows rendered by the virtualized table. The key is the value of the sp-table-row, and the value is the sp-table-row's content (not the row itself).
|
|
39
|
+
*/
|
|
40
|
+
items: Record<string, unknown>[];
|
|
41
|
+
/**
|
|
42
|
+
* The value of an item. By default, it is set to the index of the sp-table-row.
|
|
43
|
+
*/
|
|
44
|
+
itemValue: (_item: unknown, index: number) => string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether or not the virtualized table has a scroll bar. If this is set to true, make sure to specify a height in the sp-table's inline styles.
|
|
47
|
+
*/
|
|
48
|
+
scroller: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Deliver the Table with additional visual emphasis to selected rows.
|
|
51
|
+
*/
|
|
52
|
+
emphasized: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Display with "quiet" variant styles.
|
|
55
|
+
*/
|
|
56
|
+
quiet: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Changes the spacing around table cell content.
|
|
59
|
+
*/
|
|
60
|
+
density?: 'compact' | 'spacious';
|
|
61
|
+
private tableBody?;
|
|
62
|
+
private tableHeadCheckboxCell?;
|
|
63
|
+
private get tableHead();
|
|
64
|
+
private get tableRows();
|
|
65
|
+
private get isVirtualized();
|
|
66
|
+
focus(): void;
|
|
67
|
+
private selectAllRows;
|
|
68
|
+
private deselectAllRows;
|
|
69
|
+
protected manageSelects(): void;
|
|
70
|
+
protected validateSelected(): void;
|
|
71
|
+
protected manageSelected(): void;
|
|
72
|
+
protected manageCheckboxes(): void;
|
|
73
|
+
protected manageHeadCheckbox(allSelected: boolean): void;
|
|
74
|
+
protected handleChange(event: Event): void;
|
|
75
|
+
scrollToIndex(index?: number): void;
|
|
76
|
+
protected render(): TemplateResult;
|
|
77
|
+
protected willUpdate(changed: PropertyValues<this>): void;
|
|
78
|
+
protected updated(): void;
|
|
79
|
+
protected renderVirtualizedItems(): void;
|
|
80
|
+
disconnectedCallback(): void;
|
|
81
|
+
}
|
|
82
|
+
export {};
|