@spectrum-web-components/table 0.38.0 → 0.39.0
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 +263 -12
- package/custom-elements.json +101 -0
- package/package.json +7 -7
- package/src/Table.d.ts +12 -0
- package/src/Table.dev.js +19 -1
- package/src/Table.dev.js.map +2 -2
- package/src/Table.js +6 -6
- package/src/Table.js.map +2 -2
- package/src/TableCheckboxCell.d.ts +5 -0
- package/src/TableCheckboxCell.dev.js +10 -3
- package/src/TableCheckboxCell.dev.js.map +2 -2
- package/src/TableCheckboxCell.js +3 -2
- package/src/TableCheckboxCell.js.map +3 -3
- package/src/TableHeadCell.dev.js +1 -1
- package/src/TableHeadCell.dev.js.map +2 -2
- package/src/TableHeadCell.js +1 -1
- package/src/TableHeadCell.js.map +2 -2
- package/src/spectrum-config.js +127 -6
- package/src/spectrum-table-body.css.dev.js +9 -9
- package/src/spectrum-table-body.css.dev.js.map +1 -1
- package/src/spectrum-table-body.css.js +11 -11
- package/src/spectrum-table-body.css.js.map +1 -1
- package/src/spectrum-table-cell.css.dev.js +59 -15
- package/src/spectrum-table-cell.css.dev.js.map +2 -2
- package/src/spectrum-table-cell.css.js +61 -17
- package/src/spectrum-table-cell.css.js.map +2 -2
- package/src/spectrum-table-checkbox-cell.css.dev.js +101 -3
- package/src/spectrum-table-checkbox-cell.css.dev.js.map +2 -2
- package/src/spectrum-table-checkbox-cell.css.js +103 -5
- package/src/spectrum-table-checkbox-cell.css.js.map +2 -2
- package/src/spectrum-table-head-cell.css.dev.js +102 -32
- package/src/spectrum-table-head-cell.css.dev.js.map +2 -2
- package/src/spectrum-table-head-cell.css.js +104 -34
- package/src/spectrum-table-head-cell.css.js.map +2 -2
- package/src/spectrum-table-head.css.dev.js +1 -1
- package/src/spectrum-table-head.css.dev.js.map +1 -1
- package/src/spectrum-table-head.css.js +1 -1
- package/src/spectrum-table-head.css.js.map +1 -1
- package/src/spectrum-table-row.css.dev.js +199 -27
- package/src/spectrum-table-row.css.dev.js.map +2 -2
- package/src/spectrum-table-row.css.js +201 -29
- package/src/spectrum-table-row.css.js.map +2 -2
- package/src/spectrum-table.css.dev.js +247 -325
- package/src/spectrum-table.css.dev.js.map +2 -2
- package/src/spectrum-table.css.js +249 -327
- package/src/spectrum-table.css.js.map +2 -2
- package/src/table-body.css.dev.js +17 -9
- package/src/table-body.css.dev.js.map +2 -2
- package/src/table-body.css.js +17 -9
- package/src/table-body.css.js.map +2 -2
- package/src/table-cell.css.dev.js +59 -15
- package/src/table-cell.css.dev.js.map +2 -2
- package/src/table-cell.css.js +61 -17
- package/src/table-cell.css.js.map +2 -2
- package/src/table-checkbox-cell.css.dev.js +101 -3
- package/src/table-checkbox-cell.css.dev.js.map +2 -2
- package/src/table-checkbox-cell.css.js +101 -3
- package/src/table-checkbox-cell.css.js.map +2 -2
- package/src/table-head-cell.css.dev.js +103 -33
- package/src/table-head-cell.css.dev.js.map +2 -2
- package/src/table-head-cell.css.js +105 -35
- package/src/table-head-cell.css.js.map +2 -2
- package/src/table-head.css.dev.js +1 -1
- package/src/table-head.css.dev.js.map +1 -1
- package/src/table-head.css.js +1 -1
- package/src/table-head.css.js.map +1 -1
- package/src/table-row.css.dev.js +199 -27
- package/src/table-row.css.dev.js.map +2 -2
- package/src/table-row.css.js +201 -29
- package/src/table-row.css.js.map +2 -2
- package/src/table.css.dev.js +247 -325
- package/src/table.css.dev.js.map +2 -2
- package/src/table.css.js +249 -327
- package/src/table.css.js.map +2 -2
- package/stories/table-elements.stories.js +40 -4
- package/stories/table-elements.stories.js.map +2 -2
- package/test/helpers.js +18 -0
- package/test/helpers.js.map +7 -0
- package/test/table-selects.test.js +2 -16
- package/test/table-selects.test.js.map +2 -2
- package/test/table.test.js +3 -24
- package/test/table.test.js.map +2 -2
- package/test/virtualized-table-selects.test.js +15 -46
- package/test/virtualized-table-selects.test.js.map +2 -2
- package/test/virtualized-table.test.js +4 -27
- package/test/virtualized-table.test.js.map +2 -2
package/src/spectrum-config.js
CHANGED
|
@@ -31,10 +31,14 @@ const config = {
|
|
|
31
31
|
fileName: 'table',
|
|
32
32
|
components: [
|
|
33
33
|
converter.classToHost(),
|
|
34
|
-
|
|
35
|
-
converter.
|
|
34
|
+
converter.classToAttribute('spectrum-Table--quiet'),
|
|
35
|
+
converter.classToAttribute('spectrum-Table--emphasized'),
|
|
36
36
|
...converter.enumerateAttributes(
|
|
37
|
-
[
|
|
37
|
+
[
|
|
38
|
+
['spectrum-Table--sizeS', 's'],
|
|
39
|
+
['spectrum-Table--sizeL', 'l'],
|
|
40
|
+
['spectrum-Table--sizeXL', 'xl'],
|
|
41
|
+
],
|
|
38
42
|
'size'
|
|
39
43
|
),
|
|
40
44
|
...converter.enumerateAttributes(
|
|
@@ -100,16 +104,81 @@ const config = {
|
|
|
100
104
|
outPackage: 'table',
|
|
101
105
|
fileName: 'table-checkbox-cell',
|
|
102
106
|
components: [
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
converterHeadCell.classToAttribute(
|
|
108
|
+
'spectrum-Table-headCell',
|
|
109
|
+
'head-cell'
|
|
110
|
+
),
|
|
111
|
+
converter.classToAttribute('is-sortable', 'sortable'),
|
|
112
|
+
converter.classToAttribute('is-focused', 'focused'),
|
|
113
|
+
converter.pseudoToAttribute('active', 'active'),
|
|
114
|
+
{
|
|
115
|
+
find: [builder.class('spectrum-Table-cell')],
|
|
116
|
+
replace: [
|
|
117
|
+
//:host(:not([head-cell]))
|
|
118
|
+
{
|
|
119
|
+
replace: {
|
|
120
|
+
type: 'pseudo-class',
|
|
121
|
+
kind: 'host',
|
|
122
|
+
selectors: [
|
|
123
|
+
{
|
|
124
|
+
type: 'pseudo-class',
|
|
125
|
+
kind: 'not',
|
|
126
|
+
selectors: [
|
|
127
|
+
[builder.attribute('head-cell')],
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
find: [builder.class('spectrum-Table-checkboxCell')],
|
|
137
|
+
replace: [
|
|
138
|
+
//:host(:host) for increased specificity, to be higher than [head-cell] selectors.
|
|
139
|
+
{
|
|
140
|
+
replace: {
|
|
141
|
+
type: 'pseudo-class',
|
|
142
|
+
kind: 'host',
|
|
143
|
+
selectors: [
|
|
144
|
+
{
|
|
145
|
+
type: 'pseudo-class',
|
|
146
|
+
kind: 'host',
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
find: [builder.class('spectrum-Table-checkbox')],
|
|
155
|
+
replace: [
|
|
156
|
+
{
|
|
157
|
+
replace: {
|
|
158
|
+
type: 'type',
|
|
159
|
+
name: 'sp-checkbox',
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
},
|
|
105
164
|
],
|
|
106
165
|
excludeByComponents: [
|
|
107
166
|
builder.class('spectrum-Table'),
|
|
167
|
+
// Also include all Table-cell and Table-headCell classes.
|
|
168
|
+
// They are converted to selectors with or without the [head-cell] attribute.
|
|
169
|
+
{
|
|
170
|
+
type: 'class',
|
|
171
|
+
name: 'regex',
|
|
172
|
+
regex: /spectrum-Table-(?!checkbox|headCell|cell)/,
|
|
173
|
+
},
|
|
174
|
+
builder.class('is-sortable'),
|
|
175
|
+
// Unneeded cell modifier classes (align*, collapsible, divider).
|
|
108
176
|
{
|
|
109
177
|
type: 'class',
|
|
178
|
+
regex: /spectrum-Table-cell--/,
|
|
110
179
|
name: 'regex',
|
|
111
|
-
regex: /spectrum-Table-(?!checkbox)/,
|
|
112
180
|
},
|
|
181
|
+
builder.element('div'),
|
|
113
182
|
],
|
|
114
183
|
},
|
|
115
184
|
{
|
|
@@ -124,6 +193,7 @@ const config = {
|
|
|
124
193
|
regex: /spectrum-Table-head$/,
|
|
125
194
|
},
|
|
126
195
|
],
|
|
196
|
+
excludeByComponents: [builder.attribute('role')],
|
|
127
197
|
},
|
|
128
198
|
{
|
|
129
199
|
inPackage: '@spectrum-css/table',
|
|
@@ -167,9 +237,60 @@ const config = {
|
|
|
167
237
|
fileName: 'table-row',
|
|
168
238
|
components: [
|
|
169
239
|
converter.classToHost('spectrum-Table-row'),
|
|
240
|
+
{
|
|
241
|
+
find: builder.pseudoClass('first-child'),
|
|
242
|
+
replace: builder.pseudoClass('first-child'),
|
|
243
|
+
hoist: true,
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
find: builder.pseudoClass('last-child'),
|
|
247
|
+
replace: builder.pseudoClass('last-child'),
|
|
248
|
+
hoist: true,
|
|
249
|
+
},
|
|
250
|
+
converter.classToAttribute(
|
|
251
|
+
'spectrum-Table-row--emphasized',
|
|
252
|
+
'emphasized'
|
|
253
|
+
),
|
|
170
254
|
converter.classToAttribute('is-drop-target', 'drop-target'),
|
|
171
255
|
converter.classToAttribute('is-selected', 'selected'),
|
|
172
256
|
converter.classToAttribute('is-focused', 'focused'),
|
|
257
|
+
converter.classToSlotted('spectrum-Table-cell'),
|
|
258
|
+
{
|
|
259
|
+
find: [
|
|
260
|
+
builder.class('spectrum-Table-cell'),
|
|
261
|
+
builder.pseudoClass('first-child'),
|
|
262
|
+
],
|
|
263
|
+
replace: [
|
|
264
|
+
{
|
|
265
|
+
replace: {
|
|
266
|
+
type: 'pseudo-element',
|
|
267
|
+
kind: 'slotted',
|
|
268
|
+
selector: [builder.pseudoClass('first-child')],
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
replace: builder.combinator(' '),
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
find: [
|
|
278
|
+
builder.class('spectrum-Table-cell'),
|
|
279
|
+
builder.pseudoClass('last-child'),
|
|
280
|
+
],
|
|
281
|
+
replace: [
|
|
282
|
+
{
|
|
283
|
+
replace: {
|
|
284
|
+
type: 'pseudo-element',
|
|
285
|
+
kind: 'slotted',
|
|
286
|
+
selector: [builder.pseudoClass('last-child')],
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
replace: builder.combinator(' '),
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
},
|
|
173
294
|
],
|
|
174
295
|
requireComponentPresence: [
|
|
175
296
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host
|
|
5
|
-
--
|
|
6
|
-
);border-color:var(
|
|
7
|
-
--
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
);
|
|
11
|
-
--
|
|
12
|
-
)}:host
|
|
4
|
+
:host{border:none;border-radius:var(
|
|
5
|
+
--mod-table-border-radius,var(--spectrum-table-border-radius)
|
|
6
|
+
);position:relative}:host([drop-target]){--mod-table-border-color:transparent;outline-color:var(
|
|
7
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
8
|
+
--mod-table-drop-zone-outline-color,var(--spectrum-table-drop-zone-outline-color)
|
|
9
|
+
)
|
|
10
|
+
);outline-style:solid;outline-width:var(
|
|
11
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
12
|
+
)}:host{display:table-row-group}
|
|
13
13
|
`;
|
|
14
14
|
export default styles;
|
|
15
15
|
//# sourceMappingURL=spectrum-table-body.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-table-body.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{border:none;border-radius:var(\n--mod-table-border-radius,var(--spectrum-table-border-radius)\n);position:relative}:host([drop-target]){--mod-table-border-color:transparent;outline-color:var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-drop-zone-outline-color,var(--spectrum-table-drop-zone-outline-color)\n)\n);outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}:host{display:table-row-group}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";import{css as
|
|
2
|
-
:host
|
|
3
|
-
--
|
|
4
|
-
);border-color:var(
|
|
5
|
-
--
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
);
|
|
9
|
-
--
|
|
10
|
-
)}:host
|
|
11
|
-
`;export default
|
|
1
|
+
"use strict";import{css as o}from"@spectrum-web-components/base";const r=o`
|
|
2
|
+
:host{border:none;border-radius:var(
|
|
3
|
+
--mod-table-border-radius,var(--spectrum-table-border-radius)
|
|
4
|
+
);position:relative}:host([drop-target]){--mod-table-border-color:transparent;outline-color:var(
|
|
5
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
6
|
+
--mod-table-drop-zone-outline-color,var(--spectrum-table-drop-zone-outline-color)
|
|
7
|
+
)
|
|
8
|
+
);outline-style:solid;outline-width:var(
|
|
9
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
10
|
+
)}:host{display:table-row-group}
|
|
11
|
+
`;export default r;
|
|
12
12
|
//# sourceMappingURL=spectrum-table-body.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-table-body.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{border:none;border-radius:var(\n--mod-table-border-radius,var(--spectrum-table-border-radius)\n);position:relative}:host([drop-target]){--mod-table-border-color:transparent;outline-color:var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-drop-zone-outline-color,var(--spectrum-table-drop-zone-outline-color)\n)\n);outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}:host{display:table-row-group}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,21 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
|
|
5
|
-
--
|
|
6
|
-
)
|
|
7
|
-
--
|
|
8
|
-
)}:host
|
|
9
|
-
--
|
|
10
|
-
)
|
|
11
|
-
--
|
|
12
|
-
);
|
|
13
|
-
--
|
|
14
|
-
)
|
|
15
|
-
--
|
|
16
|
-
)
|
|
17
|
-
--
|
|
18
|
-
)
|
|
4
|
+
@media (forced-colors:active){:host{forced-color-adjust:none}}:host([align=center]){text-align:center}:host([align=end]){text-align:end}:host{border-block-start:var(
|
|
5
|
+
--mod-table-border-width,var(--spectrum-table-border-width)
|
|
6
|
+
) solid var(
|
|
7
|
+
--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))
|
|
8
|
+
)}:host{background-color:var(--spectrum-table-cell-background-color);block-size:var(
|
|
9
|
+
--mod-table-min-row-height,var(--spectrum-table-min-row-height)
|
|
10
|
+
);box-sizing:border-box;color:var(
|
|
11
|
+
--highcontrast-table-row-text-color,var(--mod-table-row-text-color,var(--spectrum-table-row-text-color))
|
|
12
|
+
);font-size:var(
|
|
13
|
+
--mod-table-row-font-size,var(--spectrum-table-row-font-size)
|
|
14
|
+
);font-weight:var(
|
|
15
|
+
--mod-table-row-font-weight,var(--spectrum-table-row-font-weight)
|
|
16
|
+
);line-height:var(
|
|
17
|
+
--mod-table-row-line-height,var(--spectrum-table-row-line-height)
|
|
18
|
+
);padding-block-end:var(
|
|
19
|
+
--mod-table-row-bottom-to-text,var(--spectrum-table-row-bottom-to-text)
|
|
20
|
+
);padding-block-start:calc(var(--mod-table-row-top-to-text, var(--spectrum-table-row-top-to-text)) - var(--mod-table-border-width, var(--spectrum-table-border-width)));padding-inline:calc(var(--mod-table-edge-to-content, var(--spectrum-table-edge-to-content)) - var(
|
|
21
|
+
--mod-table-outer-border-inline-width,
|
|
22
|
+
var(--spectrum-table-outer-border-inline-width)
|
|
23
|
+
));vertical-align:var(
|
|
24
|
+
--mod-table-default-vertical-align,var(--spectrum-table-default-vertical-align)
|
|
25
|
+
)}:host{position:relative}:host(.focus-visible),:host([focused]){outline-color:var(
|
|
26
|
+
--highcontrast-table-cell-focus-indicator-color,var(
|
|
27
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
28
|
+
--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
);outline-offset:calc(var(
|
|
32
|
+
--mod-table-focus-indicator-thickness,
|
|
33
|
+
var(--spectrum-table-focus-indicator-thickness)
|
|
34
|
+
)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(
|
|
35
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
36
|
+
)}:host(.focus-visible),:host([focused]){outline-color:var(
|
|
37
|
+
--highcontrast-table-cell-focus-indicator-color,var(
|
|
38
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
39
|
+
--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
);outline-offset:calc(var(
|
|
43
|
+
--mod-table-focus-indicator-thickness,
|
|
44
|
+
var(--spectrum-table-focus-indicator-thickness)
|
|
45
|
+
)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(
|
|
46
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
47
|
+
)}:host(:focus-visible),:host([focused]){outline-color:var(
|
|
48
|
+
--highcontrast-table-cell-focus-indicator-color,var(
|
|
49
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
50
|
+
--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
);outline-offset:calc(var(
|
|
54
|
+
--mod-table-focus-indicator-thickness,
|
|
55
|
+
var(--spectrum-table-focus-indicator-thickness)
|
|
56
|
+
)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(
|
|
57
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
58
|
+
)}.divider{border-inline-end:var(
|
|
59
|
+
--mod-table-border-width,var(--spectrum-table-border-width)
|
|
60
|
+
) solid var(
|
|
61
|
+
--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))
|
|
62
|
+
)}:host{display:table-cell}.spectrum-Table-cell--collapsible{padding-block:0;padding-inline-start:calc(var(--spectrum-table-row-tier, 0px)*var(--spectrum-table-collapsible-tier-indent))}
|
|
19
63
|
`;
|
|
20
64
|
export default styles;
|
|
21
65
|
//# sourceMappingURL=spectrum-table-cell.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-table-cell.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){:host{forced-color-adjust:none}}:host([align=center]){text-align:center}:host([align=end]){text-align:end}:host{border-block-start:var(\n--mod-table-border-width,var(--spectrum-table-border-width)\n) solid var(\n--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))\n)}:host{background-color:var(--spectrum-table-cell-background-color);block-size:var(\n--mod-table-min-row-height,var(--spectrum-table-min-row-height)\n);box-sizing:border-box;color:var(\n--highcontrast-table-row-text-color,var(--mod-table-row-text-color,var(--spectrum-table-row-text-color))\n);font-size:var(\n--mod-table-row-font-size,var(--spectrum-table-row-font-size)\n);font-weight:var(\n--mod-table-row-font-weight,var(--spectrum-table-row-font-weight)\n);line-height:var(\n--mod-table-row-line-height,var(--spectrum-table-row-line-height)\n);padding-block-end:var(\n--mod-table-row-bottom-to-text,var(--spectrum-table-row-bottom-to-text)\n);padding-block-start:calc(var(--mod-table-row-top-to-text, var(--spectrum-table-row-top-to-text)) - var(--mod-table-border-width, var(--spectrum-table-border-width)));padding-inline:calc(var(--mod-table-edge-to-content, var(--spectrum-table-edge-to-content)) - var(\n--mod-table-outer-border-inline-width,\nvar(--spectrum-table-outer-border-inline-width)\n));vertical-align:var(\n--mod-table-default-vertical-align,var(--spectrum-table-default-vertical-align)\n)}:host{position:relative}:host(.focus-visible),:host([focused]){outline-color:var(\n--highcontrast-table-cell-focus-indicator-color,var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)\n)\n)\n);outline-offset:calc(var(\n--mod-table-focus-indicator-thickness,\nvar(--spectrum-table-focus-indicator-thickness)\n)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}:host(.focus-visible),:host([focused]){outline-color:var(\n--highcontrast-table-cell-focus-indicator-color,var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)\n)\n)\n);outline-offset:calc(var(\n--mod-table-focus-indicator-thickness,\nvar(--spectrum-table-focus-indicator-thickness)\n)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}:host(:focus-visible),:host([focused]){outline-color:var(\n--highcontrast-table-cell-focus-indicator-color,var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)\n)\n)\n);outline-offset:calc(var(\n--mod-table-focus-indicator-thickness,\nvar(--spectrum-table-focus-indicator-thickness)\n)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}.divider{border-inline-end:var(\n--mod-table-border-width,var(--spectrum-table-border-width)\n) solid var(\n--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))\n)}:host{display:table-cell}.spectrum-Table-cell--collapsible{padding-block:0;padding-inline-start:calc(var(--spectrum-table-row-tier, 0px)*var(--spectrum-table-collapsible-tier-indent))}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6Df,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,18 +1,62 @@
|
|
|
1
|
-
"use strict";import{css as
|
|
2
|
-
|
|
3
|
-
--
|
|
4
|
-
)
|
|
5
|
-
--
|
|
6
|
-
)}:host
|
|
7
|
-
--
|
|
8
|
-
)
|
|
9
|
-
--
|
|
10
|
-
);
|
|
11
|
-
--
|
|
12
|
-
)
|
|
13
|
-
--
|
|
14
|
-
)
|
|
15
|
-
--
|
|
16
|
-
)
|
|
17
|
-
|
|
1
|
+
"use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
|
|
2
|
+
@media (forced-colors:active){:host{forced-color-adjust:none}}:host([align=center]){text-align:center}:host([align=end]){text-align:end}:host{border-block-start:var(
|
|
3
|
+
--mod-table-border-width,var(--spectrum-table-border-width)
|
|
4
|
+
) solid var(
|
|
5
|
+
--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))
|
|
6
|
+
)}:host{background-color:var(--spectrum-table-cell-background-color);block-size:var(
|
|
7
|
+
--mod-table-min-row-height,var(--spectrum-table-min-row-height)
|
|
8
|
+
);box-sizing:border-box;color:var(
|
|
9
|
+
--highcontrast-table-row-text-color,var(--mod-table-row-text-color,var(--spectrum-table-row-text-color))
|
|
10
|
+
);font-size:var(
|
|
11
|
+
--mod-table-row-font-size,var(--spectrum-table-row-font-size)
|
|
12
|
+
);font-weight:var(
|
|
13
|
+
--mod-table-row-font-weight,var(--spectrum-table-row-font-weight)
|
|
14
|
+
);line-height:var(
|
|
15
|
+
--mod-table-row-line-height,var(--spectrum-table-row-line-height)
|
|
16
|
+
);padding-block-end:var(
|
|
17
|
+
--mod-table-row-bottom-to-text,var(--spectrum-table-row-bottom-to-text)
|
|
18
|
+
);padding-block-start:calc(var(--mod-table-row-top-to-text, var(--spectrum-table-row-top-to-text)) - var(--mod-table-border-width, var(--spectrum-table-border-width)));padding-inline:calc(var(--mod-table-edge-to-content, var(--spectrum-table-edge-to-content)) - var(
|
|
19
|
+
--mod-table-outer-border-inline-width,
|
|
20
|
+
var(--spectrum-table-outer-border-inline-width)
|
|
21
|
+
));vertical-align:var(
|
|
22
|
+
--mod-table-default-vertical-align,var(--spectrum-table-default-vertical-align)
|
|
23
|
+
)}:host{position:relative}:host(.focus-visible),:host([focused]){outline-color:var(
|
|
24
|
+
--highcontrast-table-cell-focus-indicator-color,var(
|
|
25
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
26
|
+
--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
);outline-offset:calc(var(
|
|
30
|
+
--mod-table-focus-indicator-thickness,
|
|
31
|
+
var(--spectrum-table-focus-indicator-thickness)
|
|
32
|
+
)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(
|
|
33
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
34
|
+
)}:host(.focus-visible),:host([focused]){outline-color:var(
|
|
35
|
+
--highcontrast-table-cell-focus-indicator-color,var(
|
|
36
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
37
|
+
--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
);outline-offset:calc(var(
|
|
41
|
+
--mod-table-focus-indicator-thickness,
|
|
42
|
+
var(--spectrum-table-focus-indicator-thickness)
|
|
43
|
+
)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(
|
|
44
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
45
|
+
)}:host(:focus-visible),:host([focused]){outline-color:var(
|
|
46
|
+
--highcontrast-table-cell-focus-indicator-color,var(
|
|
47
|
+
--highcontrast-table-focus-indicator-color,var(
|
|
48
|
+
--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
);outline-offset:calc(var(
|
|
52
|
+
--mod-table-focus-indicator-thickness,
|
|
53
|
+
var(--spectrum-table-focus-indicator-thickness)
|
|
54
|
+
)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(
|
|
55
|
+
--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)
|
|
56
|
+
)}.divider{border-inline-end:var(
|
|
57
|
+
--mod-table-border-width,var(--spectrum-table-border-width)
|
|
58
|
+
) solid var(
|
|
59
|
+
--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))
|
|
60
|
+
)}:host{display:table-cell}.spectrum-Table-cell--collapsible{padding-block:0;padding-inline-start:calc(var(--spectrum-table-row-tier, 0px)*var(--spectrum-table-collapsible-tier-indent))}
|
|
61
|
+
`;export default o;
|
|
18
62
|
//# sourceMappingURL=spectrum-table-cell.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-table-cell.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n@media (forced-colors:active){:host{forced-color-adjust:none}}:host([align=center]){text-align:center}:host([align=end]){text-align:end}:host{border-block-start:var(\n--mod-table-border-width,var(--spectrum-table-border-width)\n) solid var(\n--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))\n)}:host{background-color:var(--spectrum-table-cell-background-color);block-size:var(\n--mod-table-min-row-height,var(--spectrum-table-min-row-height)\n);box-sizing:border-box;color:var(\n--highcontrast-table-row-text-color,var(--mod-table-row-text-color,var(--spectrum-table-row-text-color))\n);font-size:var(\n--mod-table-row-font-size,var(--spectrum-table-row-font-size)\n);font-weight:var(\n--mod-table-row-font-weight,var(--spectrum-table-row-font-weight)\n);line-height:var(\n--mod-table-row-line-height,var(--spectrum-table-row-line-height)\n);padding-block-end:var(\n--mod-table-row-bottom-to-text,var(--spectrum-table-row-bottom-to-text)\n);padding-block-start:calc(var(--mod-table-row-top-to-text, var(--spectrum-table-row-top-to-text)) - var(--mod-table-border-width, var(--spectrum-table-border-width)));padding-inline:calc(var(--mod-table-edge-to-content, var(--spectrum-table-edge-to-content)) - var(\n--mod-table-outer-border-inline-width,\nvar(--spectrum-table-outer-border-inline-width)\n));vertical-align:var(\n--mod-table-default-vertical-align,var(--spectrum-table-default-vertical-align)\n)}:host{position:relative}:host(.focus-visible),:host([focused]){outline-color:var(\n--highcontrast-table-cell-focus-indicator-color,var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)\n)\n)\n);outline-offset:calc(var(\n--mod-table-focus-indicator-thickness,\nvar(--spectrum-table-focus-indicator-thickness)\n)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}:host(.focus-visible),:host([focused]){outline-color:var(\n--highcontrast-table-cell-focus-indicator-color,var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)\n)\n)\n);outline-offset:calc(var(\n--mod-table-focus-indicator-thickness,\nvar(--spectrum-table-focus-indicator-thickness)\n)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}:host(:focus-visible),:host([focused]){outline-color:var(\n--highcontrast-table-cell-focus-indicator-color,var(\n--highcontrast-table-focus-indicator-color,var(\n--mod-table-focus-indicator-color,var(--spectrum-table-focus-indicator-color)\n)\n)\n);outline-offset:calc(var(\n--mod-table-focus-indicator-thickness,\nvar(--spectrum-table-focus-indicator-thickness)\n)*-1 - var(--highcontrast-table-cell-focus-extra-offset, 0px));outline-style:solid;outline-width:var(\n--mod-table-focus-indicator-thickness,var(--spectrum-table-focus-indicator-thickness)\n)}.divider{border-inline-end:var(\n--mod-table-border-width,var(--spectrum-table-border-width)\n) solid var(\n--highcontrast-table-divider-color,var(--mod-table-divider-color,var(--spectrum-table-divider-color))\n)}:host{display:table-cell}.spectrum-Table-cell--collapsible{padding-block:0;padding-inline-start:calc(var(--spectrum-table-row-tier, 0px)*var(--spectrum-table-collapsible-tier-indent))}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA6Df,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|