@statistikzh/leu 0.11.1 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +7 -14
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb.js +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.d.ts +1 -1
- package/dist/Dialog.js +2 -2
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.d.ts +1 -1
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +2 -1
- package/dist/{LeuElement-e092765a.d.ts → LeuElement-b9109dcb.d.ts} +1 -1
- package/dist/LeuElement-b9109dcb.d.ts.map +1 -0
- package/dist/{LeuElement-e092765a.js → LeuElement-b9109dcb.js} +1 -1
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.js +1 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.js +2 -2
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +6 -3
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/{hasSlotController-d1f26756.d.ts → hasSlotController-16f26398.d.ts} +1 -1
- package/dist/{hasSlotController-d1f26756.d.ts.map → hasSlotController-16f26398.d.ts.map} +1 -1
- package/dist/{hasSlotController-d1f26756.js → hasSlotController-16f26398.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-breadcrumb.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +2 -2
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +2 -2
- package/dist/leu-dropdown.js +2 -2
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-pagination.js +2 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/vscode.html-custom-data.json +112 -112
- package/dist/vue/index.d.ts +157 -157
- package/dist/web-types.json +216 -216
- package/package.json +1 -1
- package/src/components/input/input.css +1 -0
- package/src/components/table/Table.js +5 -1
- package/src/components/table/stories/table.stories.js +6 -1
- package/src/components/table/table.css +1 -0
- package/dist/LeuElement-e092765a.d.ts.map +0 -1
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@statistikzh/leu",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -66,91 +66,44 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
"name": "leu-
|
|
70
|
-
"description": "\n---\n",
|
|
69
|
+
"name": "leu-breadcrumb",
|
|
70
|
+
"description": "A Breadcrumb Navigation.\n\nThe breadcrumbs can be displayed in two different layouts.\nOnly the back link (the last item / parent of the current page)\nis displayed when…\n- … the width of the container is smaller\n than the BACK_ONLY_BREAKPOINT.\n- … less then two breadcrumb items could be displayed\n without overflowing the container.\n\nOtherwise as many items as possible are displayed in an inline list\nwithout overflowing the container. The remaining items are displayed\nin a dropdown menu.\n\nIn order to determine the exact numbers of items that have to be\nhidden inside the dropdown, all of them have to be rendered first.\n1. Render all items\n2. Calculate (measure) the number of items that can be displayed\n without overflowing the container.\n3. Updating the state (_hiddeItems) which will trigger a rerender\n4. Render the items again with the new state.\n\nThis results in multiple updates scheduled one after another. Lit\nwill also print a waring in the console beacause of that.\nIt's no a nice behaviour but the only one that works without\nhaving duplicate and hidden markup to derive the sizes from that.\n---\n\n\n### **Methods:**\n - **renderDropdown(): __** - Render the dropdown menu",
|
|
71
71
|
"doc-url": "",
|
|
72
72
|
"attributes": [
|
|
73
73
|
{
|
|
74
|
-
"name": "
|
|
75
|
-
"
|
|
74
|
+
"name": "items",
|
|
75
|
+
"description": "Object array with { label, href }",
|
|
76
|
+
"value": { "type": "Array", "default": "[]" }
|
|
76
77
|
},
|
|
77
78
|
{
|
|
78
|
-
"name": "
|
|
79
|
+
"name": "inverted",
|
|
80
|
+
"description": "invert color on dark background",
|
|
79
81
|
"value": { "type": "boolean", "default": "false" }
|
|
80
82
|
},
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
86
|
-
],
|
|
87
|
-
"events": [],
|
|
88
|
-
"js": {
|
|
89
|
-
"properties": [
|
|
90
|
-
{ "name": "checked", "value": { "type": "boolean" } },
|
|
91
|
-
{ "name": "disabled", "value": { "type": "boolean" } },
|
|
92
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
93
|
-
{ "name": "name", "value": { "type": "string" } }
|
|
94
|
-
],
|
|
95
|
-
"events": []
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"name": "leu-checkbox-group",
|
|
100
|
-
"description": "\n---\n",
|
|
101
|
-
"doc-url": "",
|
|
102
|
-
"attributes": [
|
|
103
|
-
{
|
|
104
|
-
"name": "orientation",
|
|
105
|
-
"value": {
|
|
106
|
-
"type": "\"horizontal\" | \"vertical\"",
|
|
107
|
-
"default": "\"horizontal\""
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
83
|
+
{ "name": "_hiddenItems", "value": { "type": "string" } },
|
|
84
|
+
{ "name": "_showBackOnly", "value": { "type": "string" } },
|
|
85
|
+
{ "name": "_isRecalculating", "value": { "type": "string" } },
|
|
86
|
+
{ "name": "_isDropdownOpen", "value": { "type": "string" } }
|
|
111
87
|
],
|
|
112
88
|
"events": [],
|
|
113
89
|
"js": {
|
|
114
90
|
"properties": [
|
|
115
91
|
{
|
|
116
|
-
"name": "
|
|
117
|
-
"
|
|
92
|
+
"name": "items",
|
|
93
|
+
"description": "Object array with { label, href }",
|
|
94
|
+
"value": { "type": "Array" }
|
|
118
95
|
},
|
|
119
|
-
{ "name": "label", "value": { "type": "string" } }
|
|
120
|
-
],
|
|
121
|
-
"events": []
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "leu-button-group",
|
|
126
|
-
"description": "\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
127
|
-
"doc-url": "",
|
|
128
|
-
"attributes": [],
|
|
129
|
-
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
130
|
-
"events": [
|
|
131
|
-
{
|
|
132
|
-
"name": "input",
|
|
133
|
-
"description": "When the value of the group changes by clicking a button"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"js": {
|
|
137
|
-
"properties": [
|
|
138
|
-
{ "name": "getButtonValue", "value": {} },
|
|
139
96
|
{
|
|
140
|
-
"name": "
|
|
141
|
-
"description": "
|
|
142
|
-
"value": { "type": "
|
|
97
|
+
"name": "inverted",
|
|
98
|
+
"description": "invert color on dark background",
|
|
99
|
+
"value": { "type": "boolean" }
|
|
143
100
|
},
|
|
144
|
-
{ "name": "
|
|
145
|
-
{ "name": "
|
|
146
|
-
{ "name": "
|
|
101
|
+
{ "name": "_hiddenItems", "value": {} },
|
|
102
|
+
{ "name": "_showBackOnly", "value": {} },
|
|
103
|
+
{ "name": "_isRecalculating", "value": {} },
|
|
104
|
+
{ "name": "_isDropdownOpen", "value": {} }
|
|
147
105
|
],
|
|
148
|
-
"events": [
|
|
149
|
-
{
|
|
150
|
-
"name": "input",
|
|
151
|
-
"description": "When the value of the group changes by clicking a button"
|
|
152
|
-
}
|
|
153
|
-
]
|
|
106
|
+
"events": []
|
|
154
107
|
}
|
|
155
108
|
},
|
|
156
109
|
{
|
|
@@ -265,116 +218,89 @@
|
|
|
265
218
|
}
|
|
266
219
|
},
|
|
267
220
|
{
|
|
268
|
-
"name": "leu-
|
|
269
|
-
"description": "\n---\n",
|
|
221
|
+
"name": "leu-button-group",
|
|
222
|
+
"description": "\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
|
|
270
223
|
"doc-url": "",
|
|
271
|
-
"attributes": [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
"value": { "type": "string", "default": "\"\"" }
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"name": "sublabel",
|
|
278
|
-
"value": { "type": "string", "default": "\"\"" }
|
|
279
|
-
},
|
|
224
|
+
"attributes": [],
|
|
225
|
+
"slots": [{ "name": "", "description": "Slot for the buttons" }],
|
|
226
|
+
"events": [
|
|
280
227
|
{
|
|
281
|
-
"name": "
|
|
282
|
-
"
|
|
228
|
+
"name": "input",
|
|
229
|
+
"description": "When the value of the group changes by clicking a button"
|
|
283
230
|
}
|
|
284
231
|
],
|
|
285
|
-
"events": [],
|
|
286
232
|
"js": {
|
|
287
233
|
"properties": [
|
|
288
|
-
{ "name": "
|
|
289
|
-
{
|
|
290
|
-
|
|
234
|
+
{ "name": "getButtonValue", "value": {} },
|
|
235
|
+
{
|
|
236
|
+
"name": "value",
|
|
237
|
+
"description": "The value of the currenty selected (active) button",
|
|
238
|
+
"value": { "type": "string" }
|
|
239
|
+
},
|
|
240
|
+
{ "name": "_handleSlotChange", "value": {} },
|
|
241
|
+
{ "name": "_handleButtonClick", "value": {} },
|
|
242
|
+
{ "name": "_items", "value": { "type": "array" } }
|
|
291
243
|
],
|
|
292
|
-
"events": [
|
|
244
|
+
"events": [
|
|
245
|
+
{
|
|
246
|
+
"name": "input",
|
|
247
|
+
"description": "When the value of the group changes by clicking a button"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
293
250
|
}
|
|
294
251
|
},
|
|
295
252
|
{
|
|
296
|
-
"name": "leu-
|
|
297
|
-
"description": "
|
|
253
|
+
"name": "leu-checkbox",
|
|
254
|
+
"description": "\n---\n",
|
|
298
255
|
"doc-url": "",
|
|
299
256
|
"attributes": [
|
|
300
257
|
{
|
|
301
|
-
"name": "
|
|
302
|
-
"
|
|
303
|
-
"value": { "type": "Array", "default": "[]" }
|
|
258
|
+
"name": "checked",
|
|
259
|
+
"value": { "type": "boolean", "default": "false" }
|
|
304
260
|
},
|
|
305
261
|
{
|
|
306
|
-
"name": "
|
|
307
|
-
"description": "invert color on dark background",
|
|
262
|
+
"name": "disabled",
|
|
308
263
|
"value": { "type": "boolean", "default": "false" }
|
|
309
264
|
},
|
|
310
|
-
{ "name": "_hiddenItems", "value": { "type": "string" } },
|
|
311
|
-
{ "name": "_showBackOnly", "value": { "type": "string" } },
|
|
312
|
-
{ "name": "_isRecalculating", "value": { "type": "string" } },
|
|
313
|
-
{ "name": "_isDropdownOpen", "value": { "type": "string" } }
|
|
314
|
-
],
|
|
315
|
-
"events": [],
|
|
316
|
-
"js": {
|
|
317
|
-
"properties": [
|
|
318
|
-
{
|
|
319
|
-
"name": "items",
|
|
320
|
-
"description": "Object array with { label, href }",
|
|
321
|
-
"value": { "type": "Array" }
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"name": "inverted",
|
|
325
|
-
"description": "invert color on dark background",
|
|
326
|
-
"value": { "type": "boolean" }
|
|
327
|
-
},
|
|
328
|
-
{ "name": "_hiddenItems", "value": {} },
|
|
329
|
-
{ "name": "_showBackOnly", "value": {} },
|
|
330
|
-
{ "name": "_isRecalculating", "value": {} },
|
|
331
|
-
{ "name": "_isDropdownOpen", "value": {} }
|
|
332
|
-
],
|
|
333
|
-
"events": []
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"name": "leu-dropdown",
|
|
338
|
-
"description": "\n---\n",
|
|
339
|
-
"doc-url": "",
|
|
340
|
-
"attributes": [
|
|
341
265
|
{
|
|
342
|
-
"name": "
|
|
266
|
+
"name": "value",
|
|
343
267
|
"value": { "type": "string", "default": "\"\"" }
|
|
344
268
|
},
|
|
345
|
-
{
|
|
346
|
-
"name": "expanded",
|
|
347
|
-
"value": { "type": "boolean", "default": "false" }
|
|
348
|
-
}
|
|
269
|
+
{ "name": "name", "value": { "type": "string", "default": "\"\"" } }
|
|
349
270
|
],
|
|
350
271
|
"events": [],
|
|
351
272
|
"js": {
|
|
352
273
|
"properties": [
|
|
353
|
-
{ "name": "
|
|
354
|
-
{ "name": "
|
|
274
|
+
{ "name": "checked", "value": { "type": "boolean" } },
|
|
275
|
+
{ "name": "disabled", "value": { "type": "boolean" } },
|
|
276
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
277
|
+
{ "name": "name", "value": { "type": "string" } }
|
|
355
278
|
],
|
|
356
279
|
"events": []
|
|
357
280
|
}
|
|
358
281
|
},
|
|
359
282
|
{
|
|
360
|
-
"name": "leu-
|
|
361
|
-
"description": "
|
|
283
|
+
"name": "leu-checkbox-group",
|
|
284
|
+
"description": "\n---\n",
|
|
362
285
|
"doc-url": "",
|
|
363
286
|
"attributes": [
|
|
364
287
|
{
|
|
365
|
-
"name": "
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
288
|
+
"name": "orientation",
|
|
289
|
+
"value": {
|
|
290
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
291
|
+
"default": "\"horizontal\""
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
369
295
|
],
|
|
370
296
|
"events": [],
|
|
371
297
|
"js": {
|
|
372
298
|
"properties": [
|
|
373
299
|
{
|
|
374
|
-
"name": "
|
|
375
|
-
"
|
|
376
|
-
|
|
377
|
-
}
|
|
300
|
+
"name": "orientation",
|
|
301
|
+
"value": { "type": "\"horizontal\" | \"vertical\"" }
|
|
302
|
+
},
|
|
303
|
+
{ "name": "label", "value": { "type": "string" } }
|
|
378
304
|
],
|
|
379
305
|
"events": []
|
|
380
306
|
}
|
|
@@ -562,6 +488,80 @@
|
|
|
562
488
|
"events": [{ "name": "input" }]
|
|
563
489
|
}
|
|
564
490
|
},
|
|
491
|
+
{
|
|
492
|
+
"name": "leu-dialog",
|
|
493
|
+
"description": "\n---\n",
|
|
494
|
+
"doc-url": "",
|
|
495
|
+
"attributes": [
|
|
496
|
+
{
|
|
497
|
+
"name": "label",
|
|
498
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "sublabel",
|
|
502
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "open",
|
|
506
|
+
"value": { "type": "boolean", "default": "false" }
|
|
507
|
+
}
|
|
508
|
+
],
|
|
509
|
+
"events": [],
|
|
510
|
+
"js": {
|
|
511
|
+
"properties": [
|
|
512
|
+
{ "name": "label", "value": { "type": "string" } },
|
|
513
|
+
{ "name": "sublabel", "value": { "type": "string" } },
|
|
514
|
+
{ "name": "open", "value": { "type": "boolean" } }
|
|
515
|
+
],
|
|
516
|
+
"events": []
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "leu-dropdown",
|
|
521
|
+
"description": "\n---\n",
|
|
522
|
+
"doc-url": "",
|
|
523
|
+
"attributes": [
|
|
524
|
+
{
|
|
525
|
+
"name": "label",
|
|
526
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "expanded",
|
|
530
|
+
"value": { "type": "boolean", "default": "false" }
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"events": [],
|
|
534
|
+
"js": {
|
|
535
|
+
"properties": [
|
|
536
|
+
{ "name": "label", "value": { "type": "string" } },
|
|
537
|
+
{ "name": "expanded", "value": { "type": "boolean" } }
|
|
538
|
+
],
|
|
539
|
+
"events": []
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "leu-icon",
|
|
544
|
+
"description": "A component to render all defined zhWeb icons.\nThe `fill` of the icon is set to `currentColor` and\ncan be overriden by setting the css `color` property.\nIf the icon name is not found, a placeholder will be displayed.\n---\n\n\n### **CSS Properties:**\n - **--leu-icon-size** - The size of the icon. _(default: undefined)_",
|
|
545
|
+
"doc-url": "",
|
|
546
|
+
"attributes": [
|
|
547
|
+
{
|
|
548
|
+
"name": "name",
|
|
549
|
+
"description": "The name of the icon to display.",
|
|
550
|
+
"value": { "type": "IconPathName", "default": "\"\"" }
|
|
551
|
+
}
|
|
552
|
+
],
|
|
553
|
+
"events": [],
|
|
554
|
+
"js": {
|
|
555
|
+
"properties": [
|
|
556
|
+
{
|
|
557
|
+
"name": "name",
|
|
558
|
+
"description": "The name of the icon to display.",
|
|
559
|
+
"value": { "type": "IconPathName" }
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"events": []
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
565
|
{
|
|
566
566
|
"name": "leu-input",
|
|
567
567
|
"description": "A text input element.\n---\n\n\n### **Events:**\n - **input** - Dispatched when the value of the input element changes.\n- **change** - Dispatched when the value of the input element changes and the input element loses focus.\n\n### **Methods:**\n - **getValidationMessages(): _Object_** - Merge custom and default validation messages.\nA validation message can be a function or a string.\nIf it s a function, the function is called with the corresponding\nattribute value as argument.\ne.g.\n`tooLong(this.maxlength)`\nThis way the framework user can create reasonable validation messages\n- **renderErrorMessages(): _TemplateResult | nothing_** - Creates an error list with an item for the given validity state.",
|
|
@@ -934,6 +934,79 @@
|
|
|
934
934
|
"events": [{ "name": "leu:pagechange" }]
|
|
935
935
|
}
|
|
936
936
|
},
|
|
937
|
+
{
|
|
938
|
+
"name": "leu-popup",
|
|
939
|
+
"description": "\n---\n",
|
|
940
|
+
"doc-url": "",
|
|
941
|
+
"attributes": [
|
|
942
|
+
{
|
|
943
|
+
"name": "anchor",
|
|
944
|
+
"value": {
|
|
945
|
+
"type": "string | HTMLElement",
|
|
946
|
+
"default": "undefined"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"name": "active",
|
|
951
|
+
"value": { "type": "boolean", "default": "false" }
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"name": "placement",
|
|
955
|
+
"value": { "type": "Placement", "default": "undefined" }
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"name": "flip",
|
|
959
|
+
"value": { "type": "boolean", "default": "false" }
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "shift",
|
|
963
|
+
"value": { "type": "boolean", "default": "false" }
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "shiftPadding",
|
|
967
|
+
"value": { "type": "number", "default": "0" }
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "matchSize",
|
|
971
|
+
"value": {
|
|
972
|
+
"type": "\"width\" | \"height\" | \"both\"",
|
|
973
|
+
"default": "undefined"
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "autoSize",
|
|
978
|
+
"value": {
|
|
979
|
+
"type": "\"width\" | \"height\" | \"both\"",
|
|
980
|
+
"default": "undefined"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "autoSizePadding",
|
|
985
|
+
"value": { "type": "number", "default": "0" }
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"events": [],
|
|
989
|
+
"js": {
|
|
990
|
+
"properties": [
|
|
991
|
+
{ "name": "anchor", "value": { "type": "string | HTMLElement" } },
|
|
992
|
+
{ "name": "active", "value": { "type": "boolean" } },
|
|
993
|
+
{ "name": "placement", "value": { "type": "Placement" } },
|
|
994
|
+
{ "name": "flip", "value": { "type": "boolean" } },
|
|
995
|
+
{ "name": "shift", "value": { "type": "boolean" } },
|
|
996
|
+
{ "name": "shiftPadding", "value": { "type": "number" } },
|
|
997
|
+
{
|
|
998
|
+
"name": "matchSize",
|
|
999
|
+
"value": { "type": "\"width\" | \"height\" | \"both\"" }
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "autoSize",
|
|
1003
|
+
"value": { "type": "\"width\" | \"height\" | \"both\"" }
|
|
1004
|
+
},
|
|
1005
|
+
{ "name": "autoSizePadding", "value": { "type": "number" } }
|
|
1006
|
+
],
|
|
1007
|
+
"events": []
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
937
1010
|
{
|
|
938
1011
|
"name": "leu-radio",
|
|
939
1012
|
"description": "\n---\n",
|
|
@@ -1034,79 +1107,6 @@
|
|
|
1034
1107
|
"events": []
|
|
1035
1108
|
}
|
|
1036
1109
|
},
|
|
1037
|
-
{
|
|
1038
|
-
"name": "leu-popup",
|
|
1039
|
-
"description": "\n---\n",
|
|
1040
|
-
"doc-url": "",
|
|
1041
|
-
"attributes": [
|
|
1042
|
-
{
|
|
1043
|
-
"name": "anchor",
|
|
1044
|
-
"value": {
|
|
1045
|
-
"type": "string | HTMLElement",
|
|
1046
|
-
"default": "undefined"
|
|
1047
|
-
}
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"name": "active",
|
|
1051
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1052
|
-
},
|
|
1053
|
-
{
|
|
1054
|
-
"name": "placement",
|
|
1055
|
-
"value": { "type": "Placement", "default": "undefined" }
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
"name": "flip",
|
|
1059
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
"name": "shift",
|
|
1063
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
"name": "shiftPadding",
|
|
1067
|
-
"value": { "type": "number", "default": "0" }
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
"name": "matchSize",
|
|
1071
|
-
"value": {
|
|
1072
|
-
"type": "\"width\" | \"height\" | \"both\"",
|
|
1073
|
-
"default": "undefined"
|
|
1074
|
-
}
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
"name": "autoSize",
|
|
1078
|
-
"value": {
|
|
1079
|
-
"type": "\"width\" | \"height\" | \"both\"",
|
|
1080
|
-
"default": "undefined"
|
|
1081
|
-
}
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
"name": "autoSizePadding",
|
|
1085
|
-
"value": { "type": "number", "default": "0" }
|
|
1086
|
-
}
|
|
1087
|
-
],
|
|
1088
|
-
"events": [],
|
|
1089
|
-
"js": {
|
|
1090
|
-
"properties": [
|
|
1091
|
-
{ "name": "anchor", "value": { "type": "string | HTMLElement" } },
|
|
1092
|
-
{ "name": "active", "value": { "type": "boolean" } },
|
|
1093
|
-
{ "name": "placement", "value": { "type": "Placement" } },
|
|
1094
|
-
{ "name": "flip", "value": { "type": "boolean" } },
|
|
1095
|
-
{ "name": "shift", "value": { "type": "boolean" } },
|
|
1096
|
-
{ "name": "shiftPadding", "value": { "type": "number" } },
|
|
1097
|
-
{
|
|
1098
|
-
"name": "matchSize",
|
|
1099
|
-
"value": { "type": "\"width\" | \"height\" | \"both\"" }
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
"name": "autoSize",
|
|
1103
|
-
"value": { "type": "\"width\" | \"height\" | \"both\"" }
|
|
1104
|
-
},
|
|
1105
|
-
{ "name": "autoSizePadding", "value": { "type": "number" } }
|
|
1106
|
-
],
|
|
1107
|
-
"events": []
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
1110
|
{
|
|
1111
1111
|
"name": "leu-scroll-top",
|
|
1112
1112
|
"description": "\n---\n",
|
package/package.json
CHANGED
|
@@ -183,7 +183,11 @@ export class LeuTable extends LeuElement {
|
|
|
183
183
|
<tr>
|
|
184
184
|
${this._columns.map(
|
|
185
185
|
(col) =>
|
|
186
|
-
html`<th
|
|
186
|
+
html`<th
|
|
187
|
+
style=${col.headerStyle
|
|
188
|
+
? styleMap(col.headerStyle())
|
|
189
|
+
: nothing}
|
|
190
|
+
>
|
|
187
191
|
${col.sort
|
|
188
192
|
? html`<button @click=${(_) => this.sortClick(col)}>
|
|
189
193
|
<span>${col.name}</span>
|
|
@@ -26,6 +26,11 @@ function Template({ itemsPerPage }) {
|
|
|
26
26
|
{
|
|
27
27
|
name: "Name",
|
|
28
28
|
value: (row) => row.name,
|
|
29
|
+
headerStyle: () => {
|
|
30
|
+
return {
|
|
31
|
+
color: "#0076bd",
|
|
32
|
+
}
|
|
33
|
+
},
|
|
29
34
|
style: (row) => {
|
|
30
35
|
return {
|
|
31
36
|
minWidth: "400px",
|
|
@@ -38,7 +43,7 @@ function Template({ itemsPerPage }) {
|
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
45
|
name: "Menge",
|
|
41
|
-
value: (row) => row.menge,
|
|
46
|
+
value: (row) => row.menge + "%",
|
|
42
47
|
style: (row) => {
|
|
43
48
|
return {
|
|
44
49
|
color:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LeuElement-e092765a.d.ts","sourceRoot":"","sources":["LeuElement-e092765a.js"],"names":[],"mappings":"AAsCA;IACE,8EAcC;CACF;AApDD,sEAaC;2BAf+B,KAAK"}
|