@proximus/lavender-table 2.0.0-alpha.21 → 2.0.0-alpha.210
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/dist/Table.d.ts +1 -1
- package/dist/Tbody.d.ts +1 -1
- package/dist/Td.d.ts +1 -1
- package/dist/Th.d.ts +1 -1
- package/dist/Thead.d.ts +1 -1
- package/dist/Tr.d.ts +1 -1
- package/dist/custom-elements.json +403 -0
- package/dist/index.es.js +102 -109
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +42 -0
- package/dist/web-types.json +82 -0
- package/package.json +2 -2
package/dist/Table.d.ts
CHANGED
package/dist/Tbody.d.ts
CHANGED
package/dist/Td.d.ts
CHANGED
package/dist/Th.d.ts
CHANGED
package/dist/Thead.d.ts
CHANGED
package/dist/Tr.d.ts
CHANGED
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/Table.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "",
|
|
12
|
+
"name": "Table",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "template",
|
|
17
|
+
"privacy": "protected",
|
|
18
|
+
"static": true,
|
|
19
|
+
"readonly": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"kind": "field",
|
|
23
|
+
"name": "adoptedStyleSheets",
|
|
24
|
+
"type": {
|
|
25
|
+
"text": "array"
|
|
26
|
+
},
|
|
27
|
+
"default": "[styleSheet]"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"superclass": {
|
|
31
|
+
"name": "HTMLElement"
|
|
32
|
+
},
|
|
33
|
+
"tagName": "px-table",
|
|
34
|
+
"customElement": true
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"exports": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "js",
|
|
40
|
+
"name": "Table",
|
|
41
|
+
"declaration": {
|
|
42
|
+
"name": "Table",
|
|
43
|
+
"module": "src/Table.ts"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"kind": "custom-element-definition",
|
|
48
|
+
"name": "px-table",
|
|
49
|
+
"declaration": {
|
|
50
|
+
"name": "Table",
|
|
51
|
+
"module": "src/Table.ts"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "javascript-module",
|
|
58
|
+
"path": "src/Tbody.ts",
|
|
59
|
+
"declarations": [
|
|
60
|
+
{
|
|
61
|
+
"kind": "class",
|
|
62
|
+
"description": "",
|
|
63
|
+
"name": "Tbody",
|
|
64
|
+
"members": [
|
|
65
|
+
{
|
|
66
|
+
"kind": "field",
|
|
67
|
+
"name": "template",
|
|
68
|
+
"privacy": "protected",
|
|
69
|
+
"static": true,
|
|
70
|
+
"readonly": true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "field",
|
|
74
|
+
"name": "adoptedStyleSheets",
|
|
75
|
+
"type": {
|
|
76
|
+
"text": "array"
|
|
77
|
+
},
|
|
78
|
+
"default": "[styleSheet]"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"superclass": {
|
|
82
|
+
"name": "HTMLElement"
|
|
83
|
+
},
|
|
84
|
+
"tagName": "px-tbody",
|
|
85
|
+
"customElement": true
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"exports": [
|
|
89
|
+
{
|
|
90
|
+
"kind": "js",
|
|
91
|
+
"name": "Tbody",
|
|
92
|
+
"declaration": {
|
|
93
|
+
"name": "Tbody",
|
|
94
|
+
"module": "src/Tbody.ts"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"kind": "custom-element-definition",
|
|
99
|
+
"name": "px-tbody",
|
|
100
|
+
"declaration": {
|
|
101
|
+
"name": "Tbody",
|
|
102
|
+
"module": "src/Tbody.ts"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"kind": "javascript-module",
|
|
109
|
+
"path": "src/Td.ts",
|
|
110
|
+
"declarations": [
|
|
111
|
+
{
|
|
112
|
+
"kind": "class",
|
|
113
|
+
"description": "",
|
|
114
|
+
"name": "Td",
|
|
115
|
+
"members": [
|
|
116
|
+
{
|
|
117
|
+
"kind": "field",
|
|
118
|
+
"name": "template",
|
|
119
|
+
"privacy": "protected",
|
|
120
|
+
"static": true,
|
|
121
|
+
"readonly": true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"kind": "field",
|
|
125
|
+
"name": "adoptedStyleSheets",
|
|
126
|
+
"type": {
|
|
127
|
+
"text": "array"
|
|
128
|
+
},
|
|
129
|
+
"default": "[styleSheet]"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"superclass": {
|
|
133
|
+
"name": "HTMLElement"
|
|
134
|
+
},
|
|
135
|
+
"tagName": "px-td",
|
|
136
|
+
"customElement": true
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"exports": [
|
|
140
|
+
{
|
|
141
|
+
"kind": "js",
|
|
142
|
+
"name": "Td",
|
|
143
|
+
"declaration": {
|
|
144
|
+
"name": "Td",
|
|
145
|
+
"module": "src/Td.ts"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "custom-element-definition",
|
|
150
|
+
"name": "px-td",
|
|
151
|
+
"declaration": {
|
|
152
|
+
"name": "Td",
|
|
153
|
+
"module": "src/Td.ts"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"kind": "javascript-module",
|
|
160
|
+
"path": "src/Th.ts",
|
|
161
|
+
"declarations": [
|
|
162
|
+
{
|
|
163
|
+
"kind": "class",
|
|
164
|
+
"description": "",
|
|
165
|
+
"name": "Th",
|
|
166
|
+
"members": [
|
|
167
|
+
{
|
|
168
|
+
"kind": "field",
|
|
169
|
+
"name": "template",
|
|
170
|
+
"privacy": "protected",
|
|
171
|
+
"static": true,
|
|
172
|
+
"readonly": true
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"kind": "field",
|
|
176
|
+
"name": "adoptedStyleSheets",
|
|
177
|
+
"type": {
|
|
178
|
+
"text": "array"
|
|
179
|
+
},
|
|
180
|
+
"default": "[styleSheet]"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"superclass": {
|
|
184
|
+
"name": "HTMLElement"
|
|
185
|
+
},
|
|
186
|
+
"tagName": "px-th",
|
|
187
|
+
"customElement": true
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"exports": [
|
|
191
|
+
{
|
|
192
|
+
"kind": "js",
|
|
193
|
+
"name": "Th",
|
|
194
|
+
"declaration": {
|
|
195
|
+
"name": "Th",
|
|
196
|
+
"module": "src/Th.ts"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"kind": "custom-element-definition",
|
|
201
|
+
"name": "px-th",
|
|
202
|
+
"declaration": {
|
|
203
|
+
"name": "Th",
|
|
204
|
+
"module": "src/Th.ts"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "javascript-module",
|
|
211
|
+
"path": "src/Thead.ts",
|
|
212
|
+
"declarations": [
|
|
213
|
+
{
|
|
214
|
+
"kind": "class",
|
|
215
|
+
"description": "",
|
|
216
|
+
"name": "Thead",
|
|
217
|
+
"members": [
|
|
218
|
+
{
|
|
219
|
+
"kind": "field",
|
|
220
|
+
"name": "template",
|
|
221
|
+
"privacy": "protected",
|
|
222
|
+
"static": true,
|
|
223
|
+
"readonly": true
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"kind": "field",
|
|
227
|
+
"name": "adoptedStyleSheets",
|
|
228
|
+
"type": {
|
|
229
|
+
"text": "array"
|
|
230
|
+
},
|
|
231
|
+
"default": "[styleSheet]"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"superclass": {
|
|
235
|
+
"name": "HTMLElement"
|
|
236
|
+
},
|
|
237
|
+
"tagName": "px-thead",
|
|
238
|
+
"customElement": true
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"exports": [
|
|
242
|
+
{
|
|
243
|
+
"kind": "js",
|
|
244
|
+
"name": "Thead",
|
|
245
|
+
"declaration": {
|
|
246
|
+
"name": "Thead",
|
|
247
|
+
"module": "src/Thead.ts"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"kind": "custom-element-definition",
|
|
252
|
+
"name": "px-thead",
|
|
253
|
+
"declaration": {
|
|
254
|
+
"name": "Thead",
|
|
255
|
+
"module": "src/Thead.ts"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "javascript-module",
|
|
262
|
+
"path": "src/Tr.ts",
|
|
263
|
+
"declarations": [
|
|
264
|
+
{
|
|
265
|
+
"kind": "class",
|
|
266
|
+
"description": "",
|
|
267
|
+
"name": "Tr",
|
|
268
|
+
"members": [
|
|
269
|
+
{
|
|
270
|
+
"kind": "field",
|
|
271
|
+
"name": "template",
|
|
272
|
+
"privacy": "protected",
|
|
273
|
+
"static": true,
|
|
274
|
+
"readonly": true
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"kind": "field",
|
|
278
|
+
"name": "adoptedStyleSheets",
|
|
279
|
+
"type": {
|
|
280
|
+
"text": "array"
|
|
281
|
+
},
|
|
282
|
+
"default": "[styleSheet]"
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"superclass": {
|
|
286
|
+
"name": "HTMLElement"
|
|
287
|
+
},
|
|
288
|
+
"tagName": "px-tr",
|
|
289
|
+
"customElement": true
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"exports": [
|
|
293
|
+
{
|
|
294
|
+
"kind": "js",
|
|
295
|
+
"name": "Tr",
|
|
296
|
+
"declaration": {
|
|
297
|
+
"name": "Tr",
|
|
298
|
+
"module": "src/Tr.ts"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"kind": "custom-element-definition",
|
|
303
|
+
"name": "px-tr",
|
|
304
|
+
"declaration": {
|
|
305
|
+
"name": "Tr",
|
|
306
|
+
"module": "src/Tr.ts"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "javascript-module",
|
|
313
|
+
"path": "src/index.ts",
|
|
314
|
+
"declarations": [],
|
|
315
|
+
"exports": [
|
|
316
|
+
{
|
|
317
|
+
"kind": "js",
|
|
318
|
+
"name": "*",
|
|
319
|
+
"declaration": {
|
|
320
|
+
"name": "*",
|
|
321
|
+
"module": "src/Table"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "js",
|
|
326
|
+
"name": "*",
|
|
327
|
+
"declaration": {
|
|
328
|
+
"name": "*",
|
|
329
|
+
"module": "src/Thead"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"kind": "js",
|
|
334
|
+
"name": "*",
|
|
335
|
+
"declaration": {
|
|
336
|
+
"name": "*",
|
|
337
|
+
"module": "src/Tr"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "js",
|
|
342
|
+
"name": "*",
|
|
343
|
+
"declaration": {
|
|
344
|
+
"name": "*",
|
|
345
|
+
"module": "src/Th"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "js",
|
|
350
|
+
"name": "*",
|
|
351
|
+
"declaration": {
|
|
352
|
+
"name": "*",
|
|
353
|
+
"module": "src/Tbody"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"kind": "js",
|
|
358
|
+
"name": "*",
|
|
359
|
+
"declaration": {
|
|
360
|
+
"name": "*",
|
|
361
|
+
"module": "src/Td"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"kind": "javascript-module",
|
|
368
|
+
"path": "src/table.css",
|
|
369
|
+
"declarations": [],
|
|
370
|
+
"exports": []
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"kind": "javascript-module",
|
|
374
|
+
"path": "src/tbody.css",
|
|
375
|
+
"declarations": [],
|
|
376
|
+
"exports": []
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "javascript-module",
|
|
380
|
+
"path": "src/td.css",
|
|
381
|
+
"declarations": [],
|
|
382
|
+
"exports": []
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"kind": "javascript-module",
|
|
386
|
+
"path": "src/th.css",
|
|
387
|
+
"declarations": [],
|
|
388
|
+
"exports": []
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"kind": "javascript-module",
|
|
392
|
+
"path": "src/thead.css",
|
|
393
|
+
"declarations": [],
|
|
394
|
+
"exports": []
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"kind": "javascript-module",
|
|
398
|
+
"path": "src/tr.css",
|
|
399
|
+
"declarations": [],
|
|
400
|
+
"exports": []
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
}
|
package/dist/index.es.js
CHANGED
|
@@ -1,112 +1,105 @@
|
|
|
1
|
+
import { createTemplate as e, renderTemplate as t } from "@proximus/lavender-common";
|
|
1
2
|
import "@proximus/lavender-layout";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
//#region src/table.css?inline
|
|
4
|
+
var n = ":host{width:100%;display:table}", r = new CSSStyleSheet();
|
|
5
|
+
r.replaceSync(n);
|
|
6
|
+
var i = class n extends HTMLElement {
|
|
7
|
+
static {
|
|
8
|
+
this.template = e("<slot></slot>");
|
|
9
|
+
}
|
|
10
|
+
constructor() {
|
|
11
|
+
super(), this.attachShadow({ mode: "open" }), t(this.shadowRoot, n.template), this.shadowRoot.adoptedStyleSheets = [r];
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
this.style.display = "table", this.setAttribute("role", "table");
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
customElements.get("px-table") || customElements.define("px-table", i);
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/thead.css?inline
|
|
20
|
+
var a = ":host{display:table-header-group}::slotted(px-tr){background-color:var(--px-color-background-container-default-default)}", o = new CSSStyleSheet();
|
|
21
|
+
o.replaceSync(a);
|
|
22
|
+
var s = class n extends HTMLElement {
|
|
23
|
+
static {
|
|
24
|
+
this.template = e("<slot></slot>");
|
|
25
|
+
}
|
|
26
|
+
constructor() {
|
|
27
|
+
super(), this.attachShadow({ mode: "open" }), t(this.shadowRoot, n.template), this.shadowRoot.adoptedStyleSheets = [o];
|
|
28
|
+
}
|
|
29
|
+
connectedCallback() {
|
|
30
|
+
this.style.display = "table-header-group", this.setAttribute("role", "rowgroup");
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
customElements.get("px-thead") || customElements.define("px-thead", s);
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/tr.css?inline
|
|
36
|
+
var c = ":host{display:table-row}", l = new CSSStyleSheet();
|
|
16
37
|
l.replaceSync(c);
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
super(), this.template = () => `
|
|
82
|
-
<div class="td">
|
|
83
|
-
<px-hstack gap="xs" align-items="center">
|
|
84
|
-
<slot name="icon"></slot>
|
|
85
|
-
<px-vstack gap="none" align-items="flex-start">
|
|
86
|
-
<px-hstack gap="2xs" align-items="center">
|
|
87
|
-
<slot></slot>
|
|
88
|
-
<slot name="info"></slot>
|
|
89
|
-
</px-hstack>
|
|
90
|
-
<slot name="description"></slot>
|
|
91
|
-
</px-vstack>
|
|
92
|
-
</px-hstack>
|
|
93
|
-
</div>
|
|
94
|
-
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [r];
|
|
95
|
-
}
|
|
96
|
-
connectedCallback() {
|
|
97
|
-
this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-m) solid var(--td-border-color-default)", this.setAttribute("role", "cell");
|
|
98
|
-
const t = this.querySelector('[slot="icon"]');
|
|
99
|
-
t && (t.setAttribute("size", "l"), t.setAttribute("color", "neutral"));
|
|
100
|
-
const o = this.querySelector('[slot="info"]');
|
|
101
|
-
o && (o.setAttribute("size", "xs"), o.setAttribute("color", "brand"));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
customElements.get("px-td") || customElements.define("px-td", g);
|
|
105
|
-
export {
|
|
106
|
-
p as Table,
|
|
107
|
-
f as Tbody,
|
|
108
|
-
g as Td,
|
|
109
|
-
y as Th,
|
|
110
|
-
h as Thead,
|
|
111
|
-
m as Tr
|
|
38
|
+
var u = class n extends HTMLElement {
|
|
39
|
+
static {
|
|
40
|
+
this.template = e("<slot></slot>");
|
|
41
|
+
}
|
|
42
|
+
constructor() {
|
|
43
|
+
super(), this.attachShadow({ mode: "open" }), t(this.shadowRoot, n.template), this.shadowRoot.adoptedStyleSheets = [l];
|
|
44
|
+
}
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
this.style.display = "table-row", this.setAttribute("role", "row");
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
customElements.get("px-tr") || customElements.define("px-tr", u);
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/th.css?inline
|
|
52
|
+
var d = ":host{vertical-align:middle;border-bottom:var(--px-size-border-l) solid var(--th-border-color-default,var(--px-color-border-main-default));display:table-cell}.th{padding:var(--px-padding-s-mobile) var(--px-padding-xs-mobile);font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-neutral-default);line-height:var(--px-line-height-ratio-l)}.th ::slotted([slot=description]){font-size:var(--px-text-size-body-s-mobile);color:var(--px-color-text-dimmed-default)}.th ::slotted(*){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l)}@media screen and (width>=48rem){.th{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.th ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.th ::slotted(*){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){.th{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.th ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.th ::slotted(*){font-size:var(--px-text-size-body-m-laptop)}}", f = new CSSStyleSheet();
|
|
53
|
+
f.replaceSync(d);
|
|
54
|
+
var p = class n extends HTMLElement {
|
|
55
|
+
static {
|
|
56
|
+
this.template = e("<div class=\"th\"><px-vstack gap=\"none\"><px-hstack gap=\"2xs\" align-items=\"center\"><slot></slot><slot name=\"info\"></slot></px-hstack><slot name=\"description\"></slot></px-vstack></div>");
|
|
57
|
+
}
|
|
58
|
+
constructor() {
|
|
59
|
+
super(), this.attachShadow({ mode: "open" }), t(this.shadowRoot, n.template), this.shadowRoot.adoptedStyleSheets = [f];
|
|
60
|
+
}
|
|
61
|
+
connectedCallback() {
|
|
62
|
+
this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-l) solid var(--th-border-color-default)", this.setAttribute("role", "columnheader");
|
|
63
|
+
let e = this.querySelector("[slot=\"info\"]");
|
|
64
|
+
e && (e.setAttribute("size", "xs"), e.setAttribute("color", "brand"));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
customElements.get("px-th") || customElements.define("px-th", p);
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/tbody.css?inline
|
|
70
|
+
var m = ":host{display:table-row-group}::slotted(px-tr){background-color:var(--px-color-background-container-default-default)}::slotted(px-tr:hover){background-color:var(--px-color-background-state-hover-default)}", h = new CSSStyleSheet();
|
|
71
|
+
h.replaceSync(m);
|
|
72
|
+
var g = class n extends HTMLElement {
|
|
73
|
+
static {
|
|
74
|
+
this.template = e("<slot></slot>");
|
|
75
|
+
}
|
|
76
|
+
constructor() {
|
|
77
|
+
super(), this.attachShadow({ mode: "open" }), t(this.shadowRoot, n.template), this.shadowRoot.adoptedStyleSheets = [h];
|
|
78
|
+
}
|
|
79
|
+
connectedCallback() {
|
|
80
|
+
this.style.display = "table-row-group", this.setAttribute("role", "rowgroup");
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
customElements.get("px-tbody") || customElements.define("px-tbody", g);
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/td.css?inline
|
|
86
|
+
var _ = ":host{vertical-align:middle;line-height:var(--px-line-height-ratio-l);border-bottom:var(--px-size-border-m) solid var(--td-border-color-default,var(--px-color-border-main-default));display:table-cell}.td{height:100%;padding:var(--px-padding-s-mobile) var(--px-padding-xs-mobile);font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.td ::slotted([slot=description]){font-size:var(--px-text-size-body-s-mobile);color:var(--px-color-text-dimmed-default)}.td ::slotted(*){font-size:var(--px-text-size-body-m-mobile);line-height:var(--px-line-height-ratio-l)}@media screen and (width>=48rem){.td{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.td ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.td ::slotted(*){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){.td{padding:var(--px-padding-s-desktop) var(--px-padding-xs-desktop);font-size:var(--px-text-size-body-m-desktop)}.td ::slotted([slot=description]){font-size:var(--px-text-size-body-s-desktop)}.td ::slotted(*){font-size:var(--px-text-size-body-m-laptop)}}", v = new CSSStyleSheet();
|
|
87
|
+
v.replaceSync(_);
|
|
88
|
+
var y = class n extends HTMLElement {
|
|
89
|
+
static {
|
|
90
|
+
this.template = e("<div class=\"td\"><px-hstack gap=\"xs\" align-items=\"center\"><slot name=\"icon\"></slot><px-vstack gap=\"none\" align-items=\"flex-start\"><px-hstack gap=\"2xs\" align-items=\"center\"><slot></slot><slot name=\"info\"></slot></px-hstack><slot name=\"description\"></slot></px-vstack></px-hstack></div>");
|
|
91
|
+
}
|
|
92
|
+
constructor() {
|
|
93
|
+
super(), this.attachShadow({ mode: "open" }), t(this.shadowRoot, n.template), this.shadowRoot.adoptedStyleSheets = [v];
|
|
94
|
+
}
|
|
95
|
+
connectedCallback() {
|
|
96
|
+
this.style.display = "table-cell", this.style.verticalAlign = "middle", this.style.borderBottom = "var(--px-border-size-m) solid var(--td-border-color-default)", this.setAttribute("role", "cell");
|
|
97
|
+
let e = this.querySelector("[slot=\"icon\"]");
|
|
98
|
+
e && (e.setAttribute("size", "l"), e.setAttribute("color", "neutral"));
|
|
99
|
+
let t = this.querySelector("[slot=\"info\"]");
|
|
100
|
+
t && (t.setAttribute("size", "xs"), t.setAttribute("color", "brand"));
|
|
101
|
+
}
|
|
112
102
|
};
|
|
103
|
+
customElements.get("px-td") || customElements.define("px-td", y);
|
|
104
|
+
//#endregion
|
|
105
|
+
export { i as Table, g as Tbody, y as Td, p as Th, s as Thead, u as Tr };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
|
|
3
|
+
"version": 1.1,
|
|
4
|
+
"tags": [
|
|
5
|
+
{
|
|
6
|
+
"name": "px-table",
|
|
7
|
+
"description": "\n---\n",
|
|
8
|
+
"attributes": [],
|
|
9
|
+
"references": []
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "px-tbody",
|
|
13
|
+
"description": "\n---\n",
|
|
14
|
+
"attributes": [],
|
|
15
|
+
"references": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "px-td",
|
|
19
|
+
"description": "\n---\n",
|
|
20
|
+
"attributes": [],
|
|
21
|
+
"references": []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "px-th",
|
|
25
|
+
"description": "\n---\n",
|
|
26
|
+
"attributes": [],
|
|
27
|
+
"references": []
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "px-thead",
|
|
31
|
+
"description": "\n---\n",
|
|
32
|
+
"attributes": [],
|
|
33
|
+
"references": []
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "px-tr",
|
|
37
|
+
"description": "\n---\n",
|
|
38
|
+
"attributes": [],
|
|
39
|
+
"references": []
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
|
+
"name": "@proximus/lavender-table",
|
|
4
|
+
"version": "2.0.0-alpha.210",
|
|
5
|
+
"description-markup": "markdown",
|
|
6
|
+
"contributions": {
|
|
7
|
+
"html": {
|
|
8
|
+
"elements": [
|
|
9
|
+
{
|
|
10
|
+
"name": "px-table",
|
|
11
|
+
"description": "\n\n---\n",
|
|
12
|
+
"doc-url": "",
|
|
13
|
+
"attributes": [],
|
|
14
|
+
"events": [],
|
|
15
|
+
"js": {
|
|
16
|
+
"properties": [{ "name": "adoptedStyleSheets", "type": "array" }],
|
|
17
|
+
"events": []
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "px-tbody",
|
|
22
|
+
"description": "\n\n---\n",
|
|
23
|
+
"doc-url": "",
|
|
24
|
+
"attributes": [],
|
|
25
|
+
"events": [],
|
|
26
|
+
"js": {
|
|
27
|
+
"properties": [{ "name": "adoptedStyleSheets", "type": "array" }],
|
|
28
|
+
"events": []
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "px-td",
|
|
33
|
+
"description": "\n\n---\n",
|
|
34
|
+
"doc-url": "",
|
|
35
|
+
"attributes": [],
|
|
36
|
+
"events": [],
|
|
37
|
+
"js": {
|
|
38
|
+
"properties": [{ "name": "adoptedStyleSheets", "type": "array" }],
|
|
39
|
+
"events": []
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "px-th",
|
|
44
|
+
"description": "\n\n---\n",
|
|
45
|
+
"doc-url": "",
|
|
46
|
+
"attributes": [],
|
|
47
|
+
"events": [],
|
|
48
|
+
"js": {
|
|
49
|
+
"properties": [{ "name": "adoptedStyleSheets", "type": "array" }],
|
|
50
|
+
"events": []
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "px-thead",
|
|
55
|
+
"description": "\n\n---\n",
|
|
56
|
+
"doc-url": "",
|
|
57
|
+
"attributes": [],
|
|
58
|
+
"events": [],
|
|
59
|
+
"js": {
|
|
60
|
+
"properties": [{ "name": "adoptedStyleSheets", "type": "array" }],
|
|
61
|
+
"events": []
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "px-tr",
|
|
66
|
+
"description": "\n\n---\n",
|
|
67
|
+
"doc-url": "",
|
|
68
|
+
"attributes": [],
|
|
69
|
+
"events": [],
|
|
70
|
+
"js": {
|
|
71
|
+
"properties": [{ "name": "adoptedStyleSheets", "type": "array" }],
|
|
72
|
+
"events": []
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"css": {
|
|
78
|
+
"properties": [],
|
|
79
|
+
"pseudo-elements": []
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-table",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.210",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"clean": "rm -rf dist",
|
|
14
14
|
"build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
|
|
15
15
|
"test": "vitest run --coverage",
|
|
16
|
-
"wc-manifest": "cem analyze --globs \"src/*\" --config
|
|
16
|
+
"wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|