@spectrum-web-components/table 0.1.11 → 0.1.12
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/custom-elements.json +23 -23
- package/package.json +5 -5
- package/src/Table.dev.js +2 -0
- package/src/Table.dev.js.map +2 -2
- package/src/Table.js +6 -6
- package/src/Table.js.map +2 -2
- package/src/TableRow.d.ts +1 -1
- package/src/TableRow.dev.js +6 -2
- package/src/TableRow.dev.js.map +2 -2
- package/src/TableRow.js +1 -1
- package/src/TableRow.js.map +2 -2
- package/src/spectrum-config.js +142 -191
- package/src/spectrum-table-body.css.dev.js +1 -3
- package/src/spectrum-table-body.css.dev.js.map +2 -2
- package/src/spectrum-table-body.css.js +1 -3
- package/src/spectrum-table-body.css.js.map +2 -2
- package/src/spectrum-table-cell.css.dev.js +4 -10
- package/src/spectrum-table-cell.css.dev.js.map +2 -2
- package/src/spectrum-table-cell.css.js +4 -10
- package/src/spectrum-table-cell.css.js.map +2 -2
- package/src/spectrum-table-checkbox-cell.css.dev.js +1 -5
- package/src/spectrum-table-checkbox-cell.css.dev.js.map +2 -2
- package/src/spectrum-table-checkbox-cell.css.js +1 -5
- package/src/spectrum-table-checkbox-cell.css.js.map +2 -2
- package/src/spectrum-table-head-cell.css.dev.js +1 -39
- package/src/spectrum-table-head-cell.css.dev.js.map +2 -2
- package/src/spectrum-table-head-cell.css.js +3 -41
- package/src/spectrum-table-head-cell.css.js.map +2 -2
- package/src/spectrum-table-row.css.dev.js +2 -6
- package/src/spectrum-table-row.css.dev.js.map +2 -2
- package/src/spectrum-table-row.css.js +2 -6
- package/src/spectrum-table-row.css.js.map +2 -2
- package/src/spectrum-table.css.dev.js +1 -183
- package/src/spectrum-table.css.dev.js.map +2 -2
- package/src/spectrum-table.css.js +1 -183
- package/src/spectrum-table.css.js.map +2 -2
- package/src/table-body.css.dev.js +1 -3
- package/src/table-body.css.dev.js.map +2 -2
- package/src/table-body.css.js +1 -3
- package/src/table-body.css.js.map +2 -2
- package/src/table-cell.css.dev.js +4 -10
- package/src/table-cell.css.dev.js.map +2 -2
- package/src/table-cell.css.js +4 -10
- package/src/table-cell.css.js.map +2 -2
- package/src/table-checkbox-cell.css.dev.js +1 -5
- package/src/table-checkbox-cell.css.dev.js.map +2 -2
- package/src/table-checkbox-cell.css.js +1 -5
- package/src/table-checkbox-cell.css.js.map +2 -2
- package/src/table-head-cell.css.dev.js +1 -39
- package/src/table-head-cell.css.dev.js.map +2 -2
- package/src/table-head-cell.css.js +3 -41
- package/src/table-head-cell.css.js.map +2 -2
- package/src/table-row.css.dev.js +3 -7
- package/src/table-row.css.dev.js.map +2 -2
- package/src/table-row.css.js +3 -7
- package/src/table-row.css.js.map +2 -2
- package/src/table.css.dev.js +1 -183
- package/src/table.css.dev.js.map +2 -2
- package/src/table.css.js +1 -183
- package/src/table.css.js.map +2 -2
- package/test/table-selects.test.js +36 -0
- package/test/table-selects.test.js.map +2 -2
package/src/TableRow.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["TableRow.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 {\n CSSResultArray,\n html,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n queryAssignedElements,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport styles from './table-row.css.js';\nimport { TableCheckboxCell } from './TableCheckboxCell.js';\n\n/**\n * @element sp-table-row\n *\n * @fires sorted - Announces that `selected` of the table row has changed\n */\nexport class TableRow extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @queryAssignedElements({\n selector: 'sp-table-checkbox-cell',\n flatten: true,\n })\n checkboxCells!: TableCheckboxCell[];\n\n @property({ reflect: true })\n public role = 'row';\n\n @property({ type: Boolean })\n public selectable = false;\n\n @property({ type: Boolean, reflect: true })\n public selected = false;\n\n @property({ type: String })\n public value = '';\n\n protected async handleChange(\n event: Event & { target: TableCheckboxCell }\n ): Promise<void> {\n this.selected = event.target.checkbox.checked;\n\n await 0;\n\n if (event.defaultPrevented) {\n this.selected = !this.selected;\n }\n }\n\n protected handleSlotchange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n const assignedElements = target.assignedElements();\n this.selectable = !!assignedElements.find(\n (el) => el.localName === 'sp-table-checkbox-cell'\n );\n }\n\n protected manageSelected(): void {\n const [checkboxCell] = this.checkboxCells;\n if (!checkboxCell) return;\n checkboxCell.checked = this.selected;\n }\n\n protected handleClick(event: Event): void {\n if (\n event\n .composedPath()\n .find(\n (node)
|
|
5
|
-
"mappings": "qNAWA,OAEI,QAAAA,EAEA,mBAAAC,MAEG,gCACP,OACI,YAAAC,EACA,yBAAAC,MACG,kDACP,OAAOC,MAAY,qBAQZ,aAAM,iBAAiBH,CAAgB,CAAvC,kCAYH,KAAO,KAAO,MAGd,KAAO,WAAa,GAGpB,KAAO,SAAW,GAGlB,KAAO,MAAQ,GApBf,WAA2B,QAAyB,CAChD,MAAO,CAACG,CAAM,CAClB,CAoBA,MAAgB,aACZC,EACa,
|
|
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 {\n CSSResultArray,\n html,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n queryAssignedElements,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport styles from './table-row.css.js';\nimport { TableCheckboxCell } from './TableCheckboxCell.js';\n\n/**\n * @element sp-table-row\n *\n * @fires sorted - Announces that `selected` of the table row has changed\n */\nexport class TableRow extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @queryAssignedElements({\n selector: 'sp-table-checkbox-cell',\n flatten: true,\n })\n checkboxCells!: TableCheckboxCell[];\n\n @property({ reflect: true })\n public role = 'row';\n\n @property({ type: Boolean })\n public selectable = false;\n\n @property({ type: Boolean, reflect: true })\n public selected = false;\n\n @property({ type: String })\n public value = '';\n\n protected async handleChange(\n event: Event & { target: TableCheckboxCell }\n ): Promise<void> {\n if (!event.target.checkbox) {\n return;\n }\n\n this.selected = event.target.checkbox.checked;\n\n await 0;\n\n if (event.defaultPrevented) {\n this.selected = !this.selected;\n }\n }\n\n protected handleSlotchange({\n target,\n }: Event & { target: HTMLSlotElement }): void {\n const assignedElements = target.assignedElements();\n this.selectable = !!assignedElements.find(\n (el) => el.localName === 'sp-table-checkbox-cell'\n );\n }\n\n protected async manageSelected(): Promise<void> {\n await this.updateComplete;\n const [checkboxCell] = this.checkboxCells;\n if (!checkboxCell) return;\n checkboxCell.checked = this.selected;\n }\n\n protected handleClick(event: Event): void {\n if (\n event\n .composedPath()\n .find(\n (node) =>\n (node as HTMLElement).localName ===\n 'sp-table-checkbox-cell'\n )\n ) {\n return;\n }\n const [checkboxCell] = this.checkboxCells;\n if (!checkboxCell) /* c8 ignore next */ return;\n checkboxCell.click();\n }\n\n protected override render(): TemplateResult {\n return html`\n <slot\n @change=${this.handleChange}\n @slotchange=${this.handleSlotchange}\n ></slot>\n `;\n }\n\n protected override willUpdate(changed: PropertyValues<this>): void {\n if (changed.has('selected')) {\n this.manageSelected();\n }\n if (changed.has('selectable')) {\n if (this.selectable) {\n this.addEventListener('click', this.handleClick);\n } else {\n this.removeEventListener('click', this.handleClick);\n }\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "qNAWA,OAEI,QAAAA,EAEA,mBAAAC,MAEG,gCACP,OACI,YAAAC,EACA,yBAAAC,MACG,kDACP,OAAOC,MAAY,qBAQZ,aAAM,iBAAiBH,CAAgB,CAAvC,kCAYH,KAAO,KAAO,MAGd,KAAO,WAAa,GAGpB,KAAO,SAAW,GAGlB,KAAO,MAAQ,GApBf,WAA2B,QAAyB,CAChD,MAAO,CAACG,CAAM,CAClB,CAoBA,MAAgB,aACZC,EACa,CACRA,EAAM,OAAO,WAIlB,KAAK,SAAWA,EAAM,OAAO,SAAS,QAEtC,KAAM,GAEFA,EAAM,mBACN,KAAK,SAAW,CAAC,KAAK,UAE9B,CAEU,iBAAiB,CACvB,OAAAC,CACJ,EAA8C,CAC1C,MAAMC,EAAmBD,EAAO,iBAAiB,EACjD,KAAK,WAAa,CAAC,CAACC,EAAiB,KAChCC,GAAOA,EAAG,YAAc,wBAC7B,CACJ,CAEA,MAAgB,gBAAgC,CAC5C,MAAM,KAAK,eACX,KAAM,CAACC,CAAY,EAAI,KAAK,cACvBA,IACLA,EAAa,QAAU,KAAK,SAChC,CAEU,YAAYJ,EAAoB,CACtC,GACIA,EACK,aAAa,EACb,KACIK,GACIA,EAAqB,YACtB,wBACR,EAEJ,OAEJ,KAAM,CAACD,CAAY,EAAI,KAAK,cACvBA,GACLA,EAAa,MAAM,CACvB,CAEmB,QAAyB,CACxC,OAAOT;AAAA;AAAA,0BAEW,KAAK;AAAA,8BACD,KAAK;AAAA;AAAA,SAG/B,CAEmB,WAAWW,EAAqC,CAC3DA,EAAQ,IAAI,UAAU,GACtB,KAAK,eAAe,EAEpBA,EAAQ,IAAI,YAAY,IACpB,KAAK,WACL,KAAK,iBAAiB,QAAS,KAAK,WAAW,EAE/C,KAAK,oBAAoB,QAAS,KAAK,WAAW,EAG9D,CACJ,CApFIC,EAAA,CAJCT,EAAsB,CACnB,SAAU,yBACV,QAAS,EACb,CAAC,GARQ,SAST,6BAGOS,EAAA,CADNV,EAAS,CAAE,QAAS,EAAK,CAAC,GAXlB,SAYF,oBAGAU,EAAA,CADNV,EAAS,CAAE,KAAM,OAAQ,CAAC,GAdlB,SAeF,0BAGAU,EAAA,CADNV,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAjBjC,SAkBF,wBAGAU,EAAA,CADNV,EAAS,CAAE,KAAM,MAAO,CAAC,GApBjB,SAqBF",
|
|
6
6
|
"names": ["html", "SpectrumElement", "property", "queryAssignedElements", "styles", "event", "target", "assignedElements", "el", "checkboxCell", "node", "changed", "__decorateClass"]
|
|
7
7
|
}
|
package/src/spectrum-config.js
CHANGED
|
@@ -1,245 +1,196 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// @ts-check
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2023 Adobe. All rights reserved.
|
|
4
|
+
This file is licensed to you under the Apache License, Version 2.0 (the 'License');
|
|
4
5
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
6
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
7
|
|
|
7
8
|
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
-
the License is distributed on an
|
|
9
|
+
the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
10
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
11
|
governing permissions and limitations under the License.
|
|
11
12
|
*/
|
|
13
|
+
|
|
14
|
+
import {
|
|
15
|
+
builder,
|
|
16
|
+
converterFor,
|
|
17
|
+
} from '../../../tasks/process-spectrum-utils.js';
|
|
18
|
+
|
|
19
|
+
const converter = converterFor('spectrum-Table');
|
|
20
|
+
const converterCell = converterFor('spectrum-Table-cell');
|
|
21
|
+
const converterHeadCell = converterFor('spectrum-Table-headCell');
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
|
|
25
|
+
*/
|
|
12
26
|
const config = {
|
|
13
|
-
|
|
14
|
-
components: [
|
|
27
|
+
conversions: [
|
|
15
28
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
name: 's',
|
|
27
|
-
selector: '.spectrum-Table--sizeS',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'm',
|
|
31
|
-
selector: '.spectrum-Table--sizeM',
|
|
32
|
-
},
|
|
29
|
+
inPackage: '@spectrum-css/table',
|
|
30
|
+
outPackage: 'table',
|
|
31
|
+
fileName: 'table',
|
|
32
|
+
components: [
|
|
33
|
+
converter.classToHost(),
|
|
34
|
+
...converter.enumerateAttributes(
|
|
35
|
+
[
|
|
36
|
+
['spectrum-Table--sizeS', 's'],
|
|
37
|
+
['spectrum-Table--sizeM', 'm'],
|
|
33
38
|
],
|
|
34
|
-
|
|
39
|
+
'size'
|
|
40
|
+
),
|
|
41
|
+
...converter.enumerateAttributes(
|
|
42
|
+
[['spectrum-Table--compact'], ['spectrum-Table--spacious']],
|
|
43
|
+
'density'
|
|
44
|
+
),
|
|
45
|
+
],
|
|
46
|
+
excludeByComponents: [
|
|
47
|
+
builder.class('spectrum-Table-sortedIcon'),
|
|
48
|
+
builder.class('spectrum-Table-headCell'),
|
|
35
49
|
{
|
|
36
|
-
type: '
|
|
37
|
-
name: '
|
|
38
|
-
|
|
39
|
-
{
|
|
40
|
-
name: 'compact',
|
|
41
|
-
selector: '.spectrum-Table--compact',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'spacious',
|
|
45
|
-
selector: '.spectrum-Table--spacious',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
50
|
+
type: 'class',
|
|
51
|
+
name: 'regex',
|
|
52
|
+
regex: /spectrum-Table-(?!-)/,
|
|
48
53
|
},
|
|
49
54
|
],
|
|
50
|
-
exclude: [
|
|
51
|
-
/\.spectrum-Table-sortedIcon/,
|
|
52
|
-
/\.spectrum-Table-headCell/,
|
|
53
|
-
],
|
|
54
55
|
},
|
|
55
56
|
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
inPackage: '@spectrum-css/table',
|
|
58
|
+
outPackage: 'table',
|
|
59
|
+
fileName: 'table-body',
|
|
60
|
+
components: [
|
|
61
|
+
converter.classToHost('spectrum-Table-body'),
|
|
62
|
+
converter.classToAttribute('is-drop-target', 'drop-target'),
|
|
63
|
+
],
|
|
64
|
+
excludeByComponents: [
|
|
65
|
+
builder.class('spectrum-Table'),
|
|
61
66
|
{
|
|
62
|
-
type: '
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
type: 'class',
|
|
68
|
+
name: 'regex',
|
|
69
|
+
regex: /spectrum-Table-(?!b)/,
|
|
65
70
|
},
|
|
66
|
-
|
|
67
|
-
exclude: [
|
|
68
|
-
/\.spectrum-Table--spacious/,
|
|
69
|
-
/\.spectrum-Table--compact/,
|
|
70
|
-
/\.spectrum-Table-sortedIcon/,
|
|
71
|
-
/\.spectrum-Table-headCell/,
|
|
72
|
-
/\.spectrum-Table-cell--alignRight/,
|
|
73
|
-
/\.spectrum-Table-row/,
|
|
74
|
-
/\.spectrum-Table-cell/,
|
|
75
|
-
/\.spectrum-Table-checkboxCell/,
|
|
71
|
+
builder.element('tbody'),
|
|
76
72
|
],
|
|
77
73
|
},
|
|
78
74
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
{
|
|
89
|
-
name: 'center',
|
|
90
|
-
selector: '.spectrum-Table-cell--alignCenter',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'end',
|
|
94
|
-
selector: '.spectrum-Table-cell--alignRight',
|
|
95
|
-
},
|
|
75
|
+
inPackage: '@spectrum-css/table',
|
|
76
|
+
outPackage: 'table',
|
|
77
|
+
fileName: 'table-cell',
|
|
78
|
+
components: [
|
|
79
|
+
converterCell.classToHost(),
|
|
80
|
+
...converterCell.enumerateAttributes(
|
|
81
|
+
[
|
|
82
|
+
['spectrum-Table-cell--alignCenter', 'center'],
|
|
83
|
+
['spectrum-Table-cell--alignRight', 'end'],
|
|
96
84
|
],
|
|
97
|
-
|
|
85
|
+
'align'
|
|
86
|
+
),
|
|
87
|
+
converterCell.classToClass('spectrum-Table-cell--divider'),
|
|
88
|
+
converterCell.classToAttribute('is-focused', 'focused'),
|
|
98
89
|
],
|
|
99
|
-
|
|
90
|
+
excludeByComponents: [
|
|
91
|
+
builder.class('spectrum-Table'),
|
|
100
92
|
{
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
type: 'class',
|
|
94
|
+
name: 'regex',
|
|
95
|
+
regex: /spectrum-Table-(?!cell)/,
|
|
103
96
|
},
|
|
104
97
|
],
|
|
105
|
-
exclude: [
|
|
106
|
-
/\.spectrum-Table-row/,
|
|
107
|
-
/\.spectrum-Table-body/,
|
|
108
|
-
/\.spectrum-Table-headCell/,
|
|
109
|
-
/\.spectrum-Table-checkboxCell/,
|
|
110
|
-
/\.spectrum-Table--spacious/,
|
|
111
|
-
/\.spectrum-Table--compact/,
|
|
112
|
-
/\.spectrum-Table-sortedIcon/,
|
|
113
|
-
],
|
|
114
98
|
},
|
|
115
99
|
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
replacement: ':host([dir=rtl])',
|
|
128
|
-
selector:
|
|
129
|
-
'.spectrum-Table[dir=rtl] .spectrum-Table-checkboxCell',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
replacement: ':host',
|
|
133
|
-
selector: '.spectrum-Table-checkboxCell',
|
|
134
|
-
},
|
|
100
|
+
inPackage: '@spectrum-css/table',
|
|
101
|
+
outPackage: 'table',
|
|
102
|
+
fileName: 'table-checkbox-cell',
|
|
103
|
+
components: [
|
|
104
|
+
converterCell.classToHost('spectrum-Table-checkboxCell'),
|
|
105
|
+
converter.classToClass('spectrum-Table-checkbox'),
|
|
106
|
+
],
|
|
107
|
+
excludeByComponents: [
|
|
108
|
+
builder.class('spectrum-Table'),
|
|
135
109
|
{
|
|
136
|
-
|
|
137
|
-
|
|
110
|
+
type: 'class',
|
|
111
|
+
name: 'regex',
|
|
112
|
+
regex: /spectrum-Table-(?!checkbox)/,
|
|
138
113
|
},
|
|
139
114
|
],
|
|
140
|
-
exclude: [/\.spectrum-Table(?!-checkbox)/],
|
|
141
115
|
},
|
|
142
116
|
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/\.spectrum-Table-row/,
|
|
117
|
+
inPackage: '@spectrum-css/table',
|
|
118
|
+
outPackage: 'table',
|
|
119
|
+
fileName: 'table-head',
|
|
120
|
+
components: [converter.classToHost('spectrum-Table-head')],
|
|
121
|
+
requireComponentPresence: [
|
|
122
|
+
{
|
|
123
|
+
type: 'class',
|
|
124
|
+
name: 'regex',
|
|
125
|
+
regex: /spectrum-Table-head$/,
|
|
126
|
+
},
|
|
154
127
|
],
|
|
155
128
|
},
|
|
156
129
|
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
name: 'sort-direction',
|
|
170
|
-
values: [
|
|
171
|
-
{
|
|
172
|
-
name: 'asc',
|
|
173
|
-
selector: '.is-sorted-asc',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: 'desc',
|
|
177
|
-
selector: '.is-sorted-desc',
|
|
178
|
-
},
|
|
130
|
+
inPackage: '@spectrum-css/table',
|
|
131
|
+
outPackage: 'table',
|
|
132
|
+
fileName: 'table-head-cell',
|
|
133
|
+
components: [
|
|
134
|
+
converterHeadCell.classToHost(),
|
|
135
|
+
converterHeadCell.classToAttribute('is-sortable', 'sortable'),
|
|
136
|
+
converterHeadCell.classToAttribute('is-focused', 'focused'),
|
|
137
|
+
converterHeadCell.pseudoToAttribute('active', 'active'),
|
|
138
|
+
...converterHeadCell.enumerateAttributes(
|
|
139
|
+
[
|
|
140
|
+
['is-sorted-asc', 'asc'],
|
|
141
|
+
['is-sorted-desc', 'desc'],
|
|
179
142
|
],
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
{
|
|
187
|
-
type: 'boolean',
|
|
188
|
-
name: 'active',
|
|
189
|
-
selector: ':active',
|
|
190
|
-
},
|
|
143
|
+
'sort-direction'
|
|
144
|
+
),
|
|
145
|
+
converterHeadCell.classToClass(
|
|
146
|
+
'spectrum-Table-sortedIcon',
|
|
147
|
+
'sortedIcon'
|
|
148
|
+
),
|
|
191
149
|
],
|
|
192
|
-
|
|
150
|
+
requireComponentPresence: [
|
|
193
151
|
{
|
|
194
|
-
|
|
195
|
-
|
|
152
|
+
type: 'class',
|
|
153
|
+
name: 'regex',
|
|
154
|
+
regex: /spectrum-Table-(headCell|sortedIcon)$/,
|
|
196
155
|
},
|
|
197
156
|
],
|
|
198
|
-
|
|
157
|
+
excludeByComponents: [
|
|
199
158
|
{
|
|
200
|
-
|
|
201
|
-
|
|
159
|
+
type: 'class',
|
|
160
|
+
regex: /spectrum-Table--/,
|
|
161
|
+
name: 'regex',
|
|
202
162
|
},
|
|
203
163
|
],
|
|
204
|
-
exclude: [
|
|
205
|
-
/\.spectrum-Table-row/,
|
|
206
|
-
/\.spectrum-Table-body/,
|
|
207
|
-
/\.spectrum-Table-cell/,
|
|
208
|
-
/\.spectrum-Table-checkboxCell/,
|
|
209
|
-
/\.spectrum-Table--spacious/,
|
|
210
|
-
/\.spectrum-Table--compact/,
|
|
211
|
-
],
|
|
212
164
|
},
|
|
213
165
|
{
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
166
|
+
inPackage: '@spectrum-css/table',
|
|
167
|
+
outPackage: 'table',
|
|
168
|
+
fileName: 'table-row',
|
|
169
|
+
components: [
|
|
170
|
+
converter.classToHost('spectrum-Table-row'),
|
|
171
|
+
converter.classToAttribute('is-drop-target', 'drop-target'),
|
|
172
|
+
converter.classToAttribute('is-selected', 'selected'),
|
|
173
|
+
converter.classToAttribute('is-focused', 'focused'),
|
|
174
|
+
],
|
|
175
|
+
requireComponentPresence: [
|
|
219
176
|
{
|
|
220
|
-
type: '
|
|
221
|
-
name: '
|
|
222
|
-
|
|
177
|
+
type: 'class',
|
|
178
|
+
name: 'regex',
|
|
179
|
+
regex: /spectrum-Table-row/,
|
|
223
180
|
},
|
|
181
|
+
],
|
|
182
|
+
excludeByComponents: [
|
|
224
183
|
{
|
|
225
|
-
type: '
|
|
226
|
-
name: '
|
|
227
|
-
|
|
184
|
+
type: 'class',
|
|
185
|
+
name: 'regex',
|
|
186
|
+
regex: /spectrum-Table--/,
|
|
228
187
|
},
|
|
229
188
|
{
|
|
230
|
-
type: '
|
|
231
|
-
name: '
|
|
232
|
-
|
|
189
|
+
type: 'class',
|
|
190
|
+
name: 'regex',
|
|
191
|
+
regex: /spectrum-Table$/,
|
|
233
192
|
},
|
|
234
|
-
|
|
235
|
-
exclude: [
|
|
236
|
-
/\.spectrum-Table-sortedIcon/,
|
|
237
|
-
/\.spectrum-Table-headCell/,
|
|
238
|
-
/\.spectrum-Table-cell--/,
|
|
239
|
-
/tbody/,
|
|
240
|
-
/\.spectrum-Table-body/,
|
|
241
|
-
/\.spectrum-Table--/,
|
|
242
|
-
/\.spectrum-Table-cell/,
|
|
193
|
+
builder.element('tbody'),
|
|
243
194
|
],
|
|
244
195
|
},
|
|
245
196
|
],
|
|
@@ -9,9 +9,7 @@ const styles = css`
|
|
|
9
9
|
--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)
|
|
10
10
|
);box-shadow:0 0 0 1px var(
|
|
11
11
|
--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)
|
|
12
|
-
)}:host([drop-target]):before{background-color:var(
|
|
13
|
-
--spectrum-alias-highlight-selected
|
|
14
|
-
)}
|
|
12
|
+
)}:host([drop-target]):before{background-color:var(--spectrum-alias-highlight-selected)}
|
|
15
13
|
`;
|
|
16
14
|
export default styles;
|
|
17
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([dir=ltr][drop-target]):before{left:0}:host([dir=rtl][drop-target]):before{right:0}:host([dir=ltr][drop-target]):before{right:0}:host([dir=rtl][drop-target]):before{left:0}:host([drop-target]):before{bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host{border-radius:var(--spectrum-table-regular-border-radius);border-width:var(--spectrum-table-regular-border-size);overflow:auto;position:relative;vertical-align:var(--spectrum-table-regular-cell-vertical-alignment)}:host{background-color:var(\n--spectrum-table-m-regular-background-color,var(--spectrum-global-color-gray-50)\n);border-color:var(\n--spectrum-table-m-regular-border-color,var(--spectrum-alias-border-color-mid)\n);border-style:solid}:host([drop-target]){border-color:var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n);box-shadow:0 0 0 1px var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n)}:host([drop-target]):before{background-color:var(
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;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:host([dir=ltr][drop-target]):before{left:0}:host([dir=rtl][drop-target]):before{right:0}:host([dir=ltr][drop-target]):before{right:0}:host([dir=rtl][drop-target]):before{left:0}:host([drop-target]):before{bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host{border-radius:var(--spectrum-table-regular-border-radius);border-width:var(--spectrum-table-regular-border-size);overflow:auto;position:relative;vertical-align:var(--spectrum-table-regular-cell-vertical-alignment)}:host{background-color:var(\n--spectrum-table-m-regular-background-color,var(--spectrum-global-color-gray-50)\n);border-color:var(\n--spectrum-table-m-regular-border-color,var(--spectrum-alias-border-color-mid)\n);border-style:solid}:host([drop-target]){border-color:var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n);box-shadow:0 0 0 1px var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n)}:host([drop-target]):before{background-color:var(--spectrum-alias-highlight-selected)}\n`;\nexport default styles;"],
|
|
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
|
}
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)
|
|
8
8
|
);box-shadow:0 0 0 1px var(
|
|
9
9
|
--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)
|
|
10
|
-
)}:host([drop-target]):before{background-color:var(
|
|
11
|
-
--spectrum-alias-highlight-selected
|
|
12
|
-
)}
|
|
10
|
+
)}:host([drop-target]):before{background-color:var(--spectrum-alias-highlight-selected)}
|
|
13
11
|
`;export default o;
|
|
14
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([dir=ltr][drop-target]):before{left:0}:host([dir=rtl][drop-target]):before{right:0}:host([dir=ltr][drop-target]):before{right:0}:host([dir=rtl][drop-target]):before{left:0}:host([drop-target]):before{bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host{border-radius:var(--spectrum-table-regular-border-radius);border-width:var(--spectrum-table-regular-border-size);overflow:auto;position:relative;vertical-align:var(--spectrum-table-regular-cell-vertical-alignment)}:host{background-color:var(\n--spectrum-table-m-regular-background-color,var(--spectrum-global-color-gray-50)\n);border-color:var(\n--spectrum-table-m-regular-border-color,var(--spectrum-alias-border-color-mid)\n);border-style:solid}:host([drop-target]){border-color:var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n);box-shadow:0 0 0 1px var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n)}:host([drop-target]):before{background-color:var(
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;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:host([dir=ltr][drop-target]):before{left:0}:host([dir=rtl][drop-target]):before{right:0}:host([dir=ltr][drop-target]):before{right:0}:host([dir=rtl][drop-target]):before{left:0}:host([drop-target]):before{bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host{border-radius:var(--spectrum-table-regular-border-radius);border-width:var(--spectrum-table-regular-border-size);overflow:auto;position:relative;vertical-align:var(--spectrum-table-regular-cell-vertical-alignment)}:host{background-color:var(\n--spectrum-table-m-regular-background-color,var(--spectrum-global-color-gray-50)\n);border-color:var(\n--spectrum-table-m-regular-border-color,var(--spectrum-alias-border-color-mid)\n);border-style:solid}:host([drop-target]){border-color:var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n);box-shadow:0 0 0 1px var(\n--spectrum-alias-border-color-key-focus,var(--spectrum-global-color-blue-400)\n)}:host([drop-target]):before{background-color:var(--spectrum-alias-highlight-selected)}\n`;\nexport default styles;"],
|
|
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,17 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(
|
|
5
|
-
--spectrum-table-regular-cell-padding-left
|
|
6
|
-
);padding-right:var(--spectrum-table-regular-cell-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-padding-right);padding-right:var(
|
|
7
|
-
--spectrum-table-regular-cell-padding-left
|
|
8
|
-
)}:host{box-sizing:border-box;font-size:var(--spectrum-table-regular-cell-text-size);font-weight:var(--spectrum-table-regular-cell-text-font-weight);line-height:var(--spectrum-table-regular-cell-text-line-height);min-height:calc(var(--spectrum-table-regular-cell-min-height) - var(--spectrum-table-regular-cell-padding-top) - var(--spectrum-table-regular-cell-padding-bottom));padding-bottom:var(--spectrum-table-regular-cell-padding-bottom);padding-top:var(--spectrum-table-regular-cell-padding-top)}:host{position:relative}:host(.focus-visible),:host(.is-focused){outline:none}:host(.is-focused),:host(:focus-visible){outline:none}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr].focus-visible):before{right:0}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr]:focus-visible):before{right:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl].focus-visible):before{left:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl]:focus-visible):before{left:0}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr].focus-visible):before{left:0}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr]:focus-visible):before{left:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl].focus-visible):before{right:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl]:focus-visible):before{right:0}:host(.focus-visible):before,:host(.is-focused):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host(.is-focused):before,:host(:focus-visible):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host([dir=ltr]) .divider{border-right-width:var(
|
|
9
|
-
--spectrum-table-regular-divider-border-size
|
|
10
|
-
)}:host([dir=rtl]) .divider{border-left-width:var(
|
|
11
|
-
--spectrum-table-regular-divider-border-size
|
|
12
|
-
)}:host(.focus-visible):before,:host(.is-focused):before{box-shadow:inset 0 0 0 2px var(
|
|
4
|
+
:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(--spectrum-table-regular-cell-padding-left);padding-right:var(--spectrum-table-regular-cell-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-padding-right);padding-right:var(--spectrum-table-regular-cell-padding-left)}:host{box-sizing:border-box;font-size:var(--spectrum-table-regular-cell-text-size);font-weight:var(--spectrum-table-regular-cell-text-font-weight);line-height:var(--spectrum-table-regular-cell-text-line-height);min-height:calc(var(--spectrum-table-regular-cell-min-height) - var(--spectrum-table-regular-cell-padding-top) - var(--spectrum-table-regular-cell-padding-bottom));padding-bottom:var(--spectrum-table-regular-cell-padding-bottom);padding-top:var(--spectrum-table-regular-cell-padding-top)}:host{position:relative}:host(.focus-visible),:host([focused]){outline:none}:host(.focus-visible),:host([focused]){outline:none}:host(:focus-visible),:host([focused]){outline:none}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host(:focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host([dir=ltr]) .divider{border-right-width:var(--spectrum-table-regular-divider-border-size)}:host([dir=rtl]) .divider{border-left-width:var(--spectrum-table-regular-divider-border-size)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(
|
|
13
5
|
--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)
|
|
14
|
-
)}:host(.
|
|
6
|
+
)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(
|
|
7
|
+
--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)
|
|
8
|
+
)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(
|
|
15
9
|
--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)
|
|
16
10
|
)}:host{background-color:var(
|
|
17
11
|
--spectrum-table-m-regular-cell-background-color,var(--spectrum-alias-background-color-transparent)
|
|
@@ -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:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(
|
|
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:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(--spectrum-table-regular-cell-padding-left);padding-right:var(--spectrum-table-regular-cell-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-padding-right);padding-right:var(--spectrum-table-regular-cell-padding-left)}:host{box-sizing:border-box;font-size:var(--spectrum-table-regular-cell-text-size);font-weight:var(--spectrum-table-regular-cell-text-font-weight);line-height:var(--spectrum-table-regular-cell-text-line-height);min-height:calc(var(--spectrum-table-regular-cell-min-height) - var(--spectrum-table-regular-cell-padding-top) - var(--spectrum-table-regular-cell-padding-bottom));padding-bottom:var(--spectrum-table-regular-cell-padding-bottom);padding-top:var(--spectrum-table-regular-cell-padding-top)}:host{position:relative}:host(.focus-visible),:host([focused]){outline:none}:host(.focus-visible),:host([focused]){outline:none}:host(:focus-visible),:host([focused]){outline:none}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host(:focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host([dir=ltr]) .divider{border-right-width:var(--spectrum-table-regular-divider-border-size)}:host([dir=rtl]) .divider{border-left-width:var(--spectrum-table-regular-divider-border-size)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(\n--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(\n--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(\n--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n)}:host{background-color:var(\n--spectrum-table-m-regular-cell-background-color,var(--spectrum-alias-background-color-transparent)\n);color:var(\n--spectrum-table-m-regular-cell-text-color,var(--spectrum-alias-text-color)\n)}:host([dir=ltr]) .divider{border-right-style:solid}:host([dir=rtl]) .divider{border-left-style:solid}:host([dir=ltr]) .divider{border-right-color:var(\n--spectrum-table-m-regular-divider-border-color,var(--spectrum-alias-border-color-mid)\n)}:host([dir=rtl]) .divider{border-left-color:var(\n--spectrum-table-m-regular-divider-border-color,var(--spectrum-alias-border-color-mid)\n)}\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;AAiBf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";import{css as e}from"@spectrum-web-components/base";const r=e`
|
|
2
|
-
:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(
|
|
3
|
-
--spectrum-table-regular-cell-padding-left
|
|
4
|
-
);padding-right:var(--spectrum-table-regular-cell-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-padding-right);padding-right:var(
|
|
5
|
-
--spectrum-table-regular-cell-padding-left
|
|
6
|
-
)}:host{box-sizing:border-box;font-size:var(--spectrum-table-regular-cell-text-size);font-weight:var(--spectrum-table-regular-cell-text-font-weight);line-height:var(--spectrum-table-regular-cell-text-line-height);min-height:calc(var(--spectrum-table-regular-cell-min-height) - var(--spectrum-table-regular-cell-padding-top) - var(--spectrum-table-regular-cell-padding-bottom));padding-bottom:var(--spectrum-table-regular-cell-padding-bottom);padding-top:var(--spectrum-table-regular-cell-padding-top)}:host{position:relative}:host(.focus-visible),:host(.is-focused){outline:none}:host(.is-focused),:host(:focus-visible){outline:none}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr].focus-visible):before{right:0}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr]:focus-visible):before{right:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl].focus-visible):before{left:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl]:focus-visible):before{left:0}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr].focus-visible):before{left:0}:host([dir=ltr]) .spectrum-Table-cell.is-focused:before,:host([dir=ltr]:focus-visible):before{left:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl].focus-visible):before{right:0}:host([dir=rtl]) .spectrum-Table-cell.is-focused:before,:host([dir=rtl]:focus-visible):before{right:0}:host(.focus-visible):before,:host(.is-focused):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host(.is-focused):before,:host(:focus-visible):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host([dir=ltr]) .divider{border-right-width:var(
|
|
7
|
-
--spectrum-table-regular-divider-border-size
|
|
8
|
-
)}:host([dir=rtl]) .divider{border-left-width:var(
|
|
9
|
-
--spectrum-table-regular-divider-border-size
|
|
10
|
-
)}:host(.focus-visible):before,:host(.is-focused):before{box-shadow:inset 0 0 0 2px var(
|
|
2
|
+
:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(--spectrum-table-regular-cell-padding-left);padding-right:var(--spectrum-table-regular-cell-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-padding-right);padding-right:var(--spectrum-table-regular-cell-padding-left)}:host{box-sizing:border-box;font-size:var(--spectrum-table-regular-cell-text-size);font-weight:var(--spectrum-table-regular-cell-text-font-weight);line-height:var(--spectrum-table-regular-cell-text-line-height);min-height:calc(var(--spectrum-table-regular-cell-min-height) - var(--spectrum-table-regular-cell-padding-top) - var(--spectrum-table-regular-cell-padding-bottom));padding-bottom:var(--spectrum-table-regular-cell-padding-bottom);padding-top:var(--spectrum-table-regular-cell-padding-top)}:host{position:relative}:host(.focus-visible),:host([focused]){outline:none}:host(.focus-visible),:host([focused]){outline:none}:host(:focus-visible),:host([focused]){outline:none}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host(:focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:"";position:absolute;top:0;z-index:1}:host([dir=ltr]) .divider{border-right-width:var(--spectrum-table-regular-divider-border-size)}:host([dir=rtl]) .divider{border-left-width:var(--spectrum-table-regular-divider-border-size)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(
|
|
11
3
|
--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)
|
|
12
|
-
)}:host(.
|
|
4
|
+
)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(
|
|
5
|
+
--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)
|
|
6
|
+
)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(
|
|
13
7
|
--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)
|
|
14
8
|
)}:host{background-color:var(
|
|
15
9
|
--spectrum-table-m-regular-cell-background-color,var(--spectrum-alias-background-color-transparent)
|
|
@@ -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:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(
|
|
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:host([align=center]){text-align:center}:host([dir=ltr][align=end]){text-align:right}:host([dir=rtl][align=end]){text-align:left}:host([dir=ltr]){padding-left:var(--spectrum-table-regular-cell-padding-left);padding-right:var(--spectrum-table-regular-cell-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-padding-right);padding-right:var(--spectrum-table-regular-cell-padding-left)}:host{box-sizing:border-box;font-size:var(--spectrum-table-regular-cell-text-size);font-weight:var(--spectrum-table-regular-cell-text-font-weight);line-height:var(--spectrum-table-regular-cell-text-line-height);min-height:calc(var(--spectrum-table-regular-cell-min-height) - var(--spectrum-table-regular-cell-padding-top) - var(--spectrum-table-regular-cell-padding-bottom));padding-bottom:var(--spectrum-table-regular-cell-padding-bottom);padding-top:var(--spectrum-table-regular-cell-padding-top)}:host{position:relative}:host(.focus-visible),:host([focused]){outline:none}:host(.focus-visible),:host([focused]){outline:none}:host(:focus-visible),:host([focused]){outline:none}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr].focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=ltr]:focus-visible):before,:host([dir=ltr][focused]):before{left:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl].focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host([dir=rtl]:focus-visible):before,:host([dir=rtl][focused]):before{right:0}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host(.focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host(:focus-visible):before,:host([focused]):before{border-radius:calc(var(--spectrum-table-regular-cell-border-radius-key-focus) - 1px);bottom:0;content:\"\";position:absolute;top:0;z-index:1}:host([dir=ltr]) .divider{border-right-width:var(--spectrum-table-regular-divider-border-size)}:host([dir=rtl]) .divider{border-left-width:var(--spectrum-table-regular-divider-border-size)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(\n--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n)}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(\n--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 2px var(\n--spectrum-table-m-regular-cell-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n)}:host{background-color:var(\n--spectrum-table-m-regular-cell-background-color,var(--spectrum-alias-background-color-transparent)\n);color:var(\n--spectrum-table-m-regular-cell-text-color,var(--spectrum-alias-text-color)\n)}:host([dir=ltr]) .divider{border-right-style:solid}:host([dir=rtl]) .divider{border-left-style:solid}:host([dir=ltr]) .divider{border-right-color:var(\n--spectrum-table-m-regular-divider-border-color,var(--spectrum-alias-border-color-mid)\n)}:host([dir=rtl]) .divider{border-left-color:var(\n--spectrum-table-m-regular-divider-border-color,var(--spectrum-alias-border-color-mid)\n)}\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,EAiBf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host([dir=ltr]){padding-right:var(
|
|
5
|
-
--spectrum-table-regular-cell-checkbox-padding-right
|
|
6
|
-
)}:host([dir=rtl]){padding-left:var(
|
|
7
|
-
--spectrum-table-regular-cell-checkbox-padding-right
|
|
8
|
-
)}:host{padding-bottom:0;padding-top:0;vertical-align:var(
|
|
4
|
+
:host([dir=ltr]){padding-right:var(--spectrum-table-regular-cell-checkbox-padding-right)}:host([dir=rtl]){padding-left:var(--spectrum-table-regular-cell-checkbox-padding-right)}:host{padding-bottom:0;padding-top:0;vertical-align:var(
|
|
9
5
|
--spectrum-table-regular-cell-checkbox-vertical-alignment
|
|
10
6
|
)}.checkbox{vertical-align:super}
|
|
11
7
|
`;
|