@statistikzh/leu 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/Button.js +24 -12
- package/dist/Checkbox.js +6 -4
- package/dist/CheckboxGroup.js +2 -1
- package/dist/{Chip-389013ff.js → Chip-5f70d04f.js} +2 -1
- package/dist/ChipGroup.js +2 -1
- package/dist/ChipLink.js +3 -2
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +7 -4
- package/dist/Dropdown.js +2 -1
- package/dist/Input.js +30 -15
- package/dist/MenuItem.js +4 -2
- package/dist/Pagination.js +4 -2
- package/dist/Radio.js +6 -4
- package/dist/RadioGroup.js +2 -1
- package/dist/Select.js +2 -1
- package/dist/Table.js +10 -5
- package/dist/index.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/package.json +6 -1
- package/src/components/accordion/Accordion.js +3 -3
- package/src/components/button/Button.js +13 -13
- package/src/components/checkbox/Checkbox.js +3 -4
- package/src/components/checkbox/CheckboxGroup.js +1 -1
- package/src/components/chip/Chip.js +1 -1
- package/src/components/chip/ChipGroup.js +1 -1
- package/src/components/chip/ChipLink.js +1 -2
- package/src/components/chip/ChipSelectable.js +3 -3
- package/src/components/dropdown/Dropdown.js +1 -1
- package/src/components/input/Input.js +15 -15
- package/src/components/menu/MenuItem.js +2 -2
- package/src/components/pagination/Pagination.js +2 -2
- package/src/components/radio/Radio.js +3 -4
- package/src/components/radio/RadioGroup.js +1 -1
- package/src/components/select/Select.js +1 -1
- package/src/components/table/Table.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.0](https://github.com/statistikZH/leu/compare/v0.2.0...v0.3.0) (2023-11-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* refactor component properties to include reflection ([#69](https://github.com/statistikZH/leu/issues/69)) ([cf2992b](https://github.com/statistikZH/leu/commit/cf2992b7c9af76a9e966cae7e4e35f288a155c89))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **checkbox:** remove tabIndex allocation because the property is not used by the component anymore ([4999754](https://github.com/statistikZH/leu/commit/4999754c363bfa996db9c00233845f1f3bab95e5))
|
|
14
|
+
* **radio:** remove tabIndex allocation because the property is not used by the component anymore ([abc9c85](https://github.com/statistikZH/leu/commit/abc9c858e2575600bc3d71a74daf87b333ef509c))
|
|
15
|
+
|
|
3
16
|
## [0.2.0](https://github.com/statistikZH/leu/compare/v0.1.0...v0.2.0) (2023-11-28)
|
|
4
17
|
|
|
5
18
|
|
package/dist/Button.js
CHANGED
|
@@ -368,40 +368,52 @@ _defineProperty(LeuButton, "shadowRootOptions", {
|
|
|
368
368
|
});
|
|
369
369
|
_defineProperty(LeuButton, "properties", {
|
|
370
370
|
label: {
|
|
371
|
-
type: String
|
|
371
|
+
type: String,
|
|
372
|
+
reflect: true
|
|
372
373
|
},
|
|
373
374
|
icon: {
|
|
374
|
-
type: String
|
|
375
|
+
type: String,
|
|
376
|
+
reflect: true
|
|
375
377
|
},
|
|
376
378
|
iconAfter: {
|
|
377
|
-
type: String
|
|
379
|
+
type: String,
|
|
380
|
+
reflect: true
|
|
378
381
|
},
|
|
379
382
|
size: {
|
|
380
|
-
type: String
|
|
383
|
+
type: String,
|
|
384
|
+
reflect: true
|
|
381
385
|
},
|
|
382
386
|
variant: {
|
|
383
|
-
type: String
|
|
387
|
+
type: String,
|
|
388
|
+
reflect: true
|
|
384
389
|
},
|
|
385
390
|
type: {
|
|
386
|
-
type: String
|
|
391
|
+
type: String,
|
|
392
|
+
reflect: true
|
|
387
393
|
},
|
|
388
394
|
disabled: {
|
|
389
|
-
type: Boolean
|
|
395
|
+
type: Boolean,
|
|
396
|
+
reflect: true
|
|
390
397
|
},
|
|
391
398
|
round: {
|
|
392
|
-
type: Boolean
|
|
399
|
+
type: Boolean,
|
|
400
|
+
reflect: true
|
|
393
401
|
},
|
|
394
402
|
active: {
|
|
395
|
-
type: Boolean
|
|
403
|
+
type: Boolean,
|
|
404
|
+
reflect: true
|
|
396
405
|
},
|
|
397
406
|
inverted: {
|
|
398
|
-
type: Boolean
|
|
407
|
+
type: Boolean,
|
|
408
|
+
reflect: true
|
|
399
409
|
},
|
|
400
410
|
expanded: {
|
|
401
|
-
type: String
|
|
411
|
+
type: String,
|
|
412
|
+
reflect: true
|
|
402
413
|
},
|
|
403
414
|
fluid: {
|
|
404
|
-
type: Boolean
|
|
415
|
+
type: Boolean,
|
|
416
|
+
reflect: true
|
|
405
417
|
}
|
|
406
418
|
});
|
|
407
419
|
function defineButtonElements() {
|
package/dist/Checkbox.js
CHANGED
|
@@ -10,7 +10,6 @@ class LeuCheckbox extends LitElement {
|
|
|
10
10
|
super();
|
|
11
11
|
this.checked = false;
|
|
12
12
|
this.disabled = false;
|
|
13
|
-
this.tabIndex = 0;
|
|
14
13
|
this.checkIcon = Icon("check");
|
|
15
14
|
}
|
|
16
15
|
handleChange(event) {
|
|
@@ -131,13 +130,16 @@ _defineProperty(LeuCheckbox, "properties", {
|
|
|
131
130
|
reflect: true
|
|
132
131
|
},
|
|
133
132
|
identifier: {
|
|
134
|
-
type: String
|
|
133
|
+
type: String,
|
|
134
|
+
reflect: true
|
|
135
135
|
},
|
|
136
136
|
value: {
|
|
137
|
-
type: String
|
|
137
|
+
type: String,
|
|
138
|
+
reflect: true
|
|
138
139
|
},
|
|
139
140
|
name: {
|
|
140
|
-
type: String
|
|
141
|
+
type: String,
|
|
142
|
+
reflect: true
|
|
141
143
|
}
|
|
142
144
|
});
|
|
143
145
|
function defineCheckboxElements() {
|
package/dist/CheckboxGroup.js
CHANGED
package/dist/ChipGroup.js
CHANGED
|
@@ -62,7 +62,8 @@ _defineProperty(LeuChipGroup, "styles", css_248z);
|
|
|
62
62
|
_defineProperty(LeuChipGroup, "properties", {
|
|
63
63
|
selectionMode: {
|
|
64
64
|
type: String,
|
|
65
|
-
attribute: "selection-mode"
|
|
65
|
+
attribute: "selection-mode",
|
|
66
|
+
reflect: true
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
function defineChipGroupElements() {
|
package/dist/ChipLink.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty, d as defineElement } from './defineElement-ba770aed.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
|
-
import { L as LeuChipBase } from './Chip-
|
|
3
|
+
import { L as LeuChipBase } from './Chip-5f70d04f.js';
|
|
4
4
|
|
|
5
5
|
const SIZES = {
|
|
6
6
|
regular: "regular",
|
|
@@ -31,7 +31,8 @@ _defineProperty(LeuChipLink, "properties", {
|
|
|
31
31
|
* @type {keyof typeof SIZES}
|
|
32
32
|
*/
|
|
33
33
|
size: {
|
|
34
|
-
type: String
|
|
34
|
+
type: String,
|
|
35
|
+
reflect: true
|
|
35
36
|
},
|
|
36
37
|
href: {
|
|
37
38
|
type: String,
|
package/dist/ChipRemovable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty, d as defineElement } from './defineElement-ba770aed.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
|
-
import { L as LeuChipBase } from './Chip-
|
|
3
|
+
import { L as LeuChipBase } from './Chip-5f70d04f.js';
|
|
4
4
|
import { I as Icon } from './icon-03e86700.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/ChipSelectable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty, d as defineElement } from './defineElement-ba770aed.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
|
-
import { L as LeuChipBase } from './Chip-
|
|
3
|
+
import { L as LeuChipBase } from './Chip-5f70d04f.js';
|
|
4
4
|
|
|
5
5
|
const SIZES = {
|
|
6
6
|
small: "small",
|
|
@@ -62,7 +62,8 @@ _defineProperty(LeuChipSelectable, "properties", {
|
|
|
62
62
|
* @default "regular"
|
|
63
63
|
*/
|
|
64
64
|
size: {
|
|
65
|
-
type: String
|
|
65
|
+
type: String,
|
|
66
|
+
reflect: true
|
|
66
67
|
},
|
|
67
68
|
/**
|
|
68
69
|
* The variant of the chip. Has an effect not only on the visual appearance but also on the behavior.
|
|
@@ -73,14 +74,16 @@ _defineProperty(LeuChipSelectable, "properties", {
|
|
|
73
74
|
* @default "default"
|
|
74
75
|
*/
|
|
75
76
|
variant: {
|
|
76
|
-
type: String
|
|
77
|
+
type: String,
|
|
78
|
+
reflect: true
|
|
77
79
|
},
|
|
78
80
|
selected: {
|
|
79
81
|
type: Boolean,
|
|
80
82
|
reflect: true
|
|
81
83
|
},
|
|
82
84
|
value: {
|
|
83
|
-
type: String
|
|
85
|
+
type: String,
|
|
86
|
+
reflect: true
|
|
84
87
|
}
|
|
85
88
|
});
|
|
86
89
|
function defineChipSelectableElements() {
|
package/dist/Dropdown.js
CHANGED
package/dist/Input.js
CHANGED
|
@@ -624,53 +624,68 @@ _defineProperty(LeuInput, "properties", {
|
|
|
624
624
|
reflect: true
|
|
625
625
|
},
|
|
626
626
|
value: {
|
|
627
|
-
type: String
|
|
627
|
+
type: String,
|
|
628
|
+
reflect: true
|
|
628
629
|
},
|
|
629
630
|
name: {
|
|
630
|
-
type: String
|
|
631
|
+
type: String,
|
|
632
|
+
reflect: true
|
|
631
633
|
},
|
|
632
634
|
error: {
|
|
633
|
-
type: String
|
|
635
|
+
type: String,
|
|
636
|
+
reflect: true
|
|
634
637
|
},
|
|
635
638
|
label: {
|
|
636
|
-
type: String
|
|
639
|
+
type: String,
|
|
640
|
+
reflect: true
|
|
637
641
|
},
|
|
638
642
|
prefix: {
|
|
639
|
-
type: String
|
|
643
|
+
type: String,
|
|
644
|
+
reflect: true
|
|
640
645
|
},
|
|
641
646
|
suffix: {
|
|
642
|
-
type: String
|
|
647
|
+
type: String,
|
|
648
|
+
reflect: true
|
|
643
649
|
},
|
|
644
650
|
size: {
|
|
645
|
-
type: String
|
|
651
|
+
type: String,
|
|
652
|
+
reflect: true
|
|
646
653
|
},
|
|
647
654
|
icon: {
|
|
648
|
-
type: String
|
|
655
|
+
type: String,
|
|
656
|
+
reflect: true
|
|
649
657
|
},
|
|
650
658
|
/* Validation attributes */
|
|
651
659
|
pattern: {
|
|
652
|
-
type: String
|
|
660
|
+
type: String,
|
|
661
|
+
reflect: true
|
|
653
662
|
},
|
|
654
663
|
type: {
|
|
655
|
-
type: String
|
|
664
|
+
type: String,
|
|
665
|
+
reflect: true
|
|
656
666
|
},
|
|
657
667
|
min: {
|
|
658
|
-
type: Number
|
|
668
|
+
type: Number,
|
|
669
|
+
reflect: true
|
|
659
670
|
},
|
|
660
671
|
max: {
|
|
661
|
-
type: Number
|
|
672
|
+
type: Number,
|
|
673
|
+
reflect: true
|
|
662
674
|
},
|
|
663
675
|
maxlength: {
|
|
664
|
-
type: Number
|
|
676
|
+
type: Number,
|
|
677
|
+
reflect: true
|
|
665
678
|
},
|
|
666
679
|
minlength: {
|
|
667
|
-
type: Number
|
|
680
|
+
type: Number,
|
|
681
|
+
reflect: true
|
|
668
682
|
},
|
|
669
683
|
validationMessages: {
|
|
670
684
|
type: Object
|
|
671
685
|
},
|
|
672
686
|
novalidate: {
|
|
673
|
-
type: Boolean
|
|
687
|
+
type: Boolean,
|
|
688
|
+
reflect: true
|
|
674
689
|
},
|
|
675
690
|
/** @type {ValidityState} */
|
|
676
691
|
_validity: {
|
package/dist/MenuItem.js
CHANGED
|
@@ -141,7 +141,8 @@ _defineProperty(LeuMenuItem, "properties", {
|
|
|
141
141
|
* If the value is "EMPTY", an empty placeholder with the size of an icon will be displayed.
|
|
142
142
|
*/
|
|
143
143
|
before: {
|
|
144
|
-
type: String
|
|
144
|
+
type: String,
|
|
145
|
+
reflect: true
|
|
145
146
|
},
|
|
146
147
|
/**
|
|
147
148
|
* Can be either an icon name or a text
|
|
@@ -149,7 +150,8 @@ _defineProperty(LeuMenuItem, "properties", {
|
|
|
149
150
|
* If the value is "EMPTY", an empty placeholder with the size of an icon will be displayed.
|
|
150
151
|
*/
|
|
151
152
|
after: {
|
|
152
|
-
type: String
|
|
153
|
+
type: String,
|
|
154
|
+
reflect: true
|
|
153
155
|
},
|
|
154
156
|
active: {
|
|
155
157
|
type: Boolean,
|
package/dist/Pagination.js
CHANGED
|
@@ -175,10 +175,12 @@ _defineProperty(LeuPagination, "properties", {
|
|
|
175
175
|
reflect: true
|
|
176
176
|
},
|
|
177
177
|
itemsOnAPage: {
|
|
178
|
-
type: Number
|
|
178
|
+
type: Number,
|
|
179
|
+
reflect: true
|
|
179
180
|
},
|
|
180
181
|
dataLength: {
|
|
181
|
-
type: Number
|
|
182
|
+
type: Number,
|
|
183
|
+
reflect: true
|
|
182
184
|
},
|
|
183
185
|
_minPage: {
|
|
184
186
|
type: Number,
|
package/dist/Radio.js
CHANGED
|
@@ -102,7 +102,6 @@ class LeuRadio extends LitElement {
|
|
|
102
102
|
super();
|
|
103
103
|
this.checked = false;
|
|
104
104
|
this.disabled = false;
|
|
105
|
-
this.tabIndex = 0;
|
|
106
105
|
}
|
|
107
106
|
handleChange(event) {
|
|
108
107
|
this.checked = event.target.checked;
|
|
@@ -144,13 +143,16 @@ _defineProperty(LeuRadio, "properties", {
|
|
|
144
143
|
reflect: true
|
|
145
144
|
},
|
|
146
145
|
identifier: {
|
|
147
|
-
type: String
|
|
146
|
+
type: String,
|
|
147
|
+
reflect: true
|
|
148
148
|
},
|
|
149
149
|
value: {
|
|
150
|
-
type: String
|
|
150
|
+
type: String,
|
|
151
|
+
reflect: true
|
|
151
152
|
},
|
|
152
153
|
name: {
|
|
153
|
-
type: String
|
|
154
|
+
type: String,
|
|
155
|
+
reflect: true
|
|
154
156
|
}
|
|
155
157
|
});
|
|
156
158
|
function defineRadioElements() {
|
package/dist/RadioGroup.js
CHANGED
package/dist/Select.js
CHANGED
package/dist/Table.js
CHANGED
|
@@ -255,19 +255,24 @@ _defineProperty(LeuTable, "properties", {
|
|
|
255
255
|
type: Array
|
|
256
256
|
},
|
|
257
257
|
firstColumnSticky: {
|
|
258
|
-
type: Boolean
|
|
258
|
+
type: Boolean,
|
|
259
|
+
reflect: true
|
|
259
260
|
},
|
|
260
261
|
itemsOnAPage: {
|
|
261
|
-
type: Number
|
|
262
|
+
type: Number,
|
|
263
|
+
reflect: true
|
|
262
264
|
},
|
|
263
265
|
sortIndex: {
|
|
264
|
-
type: Number
|
|
266
|
+
type: Number,
|
|
267
|
+
reflect: true
|
|
265
268
|
},
|
|
266
269
|
sortOrderAsc: {
|
|
267
|
-
type: Boolean
|
|
270
|
+
type: Boolean,
|
|
271
|
+
reflect: true
|
|
268
272
|
},
|
|
269
273
|
width: {
|
|
270
|
-
type: Number
|
|
274
|
+
type: Number,
|
|
275
|
+
reflect: true
|
|
271
276
|
},
|
|
272
277
|
_shadowLeft: {
|
|
273
278
|
type: Boolean,
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import './defineElement-ba770aed.js';
|
|
|
19
19
|
import 'lit';
|
|
20
20
|
import 'lit/directives/class-map.js';
|
|
21
21
|
import './icon-03e86700.js';
|
|
22
|
-
import './Chip-
|
|
22
|
+
import './Chip-5f70d04f.js';
|
|
23
23
|
import 'lit/directives/if-defined.js';
|
|
24
24
|
import 'lit/directives/ref.js';
|
|
25
25
|
import 'lit/directives/map.js';
|
package/dist/leu-chip-link.js
CHANGED
package/package.json
CHANGED
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
"description": "UI component library of the canton of zurich",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "statistikzh",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.3.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/statistikzh/leu.git"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/statistikzh/leu/",
|
|
10
15
|
"scripts": {
|
|
11
16
|
"analyze": "cem analyze --litelement --globs \"src/**/*.js\"",
|
|
12
17
|
"build": "rimraf dist && npm run build:js && npm run build:css",
|
|
@@ -24,10 +24,10 @@ export class LeuAccordion extends LitElement {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
static properties = {
|
|
27
|
-
headingLevel: { type: Number, attribute: "heading-level" },
|
|
27
|
+
headingLevel: { type: Number, attribute: "heading-level", reflect: true },
|
|
28
28
|
open: { type: Boolean, reflect: true },
|
|
29
|
-
label: { type: String },
|
|
30
|
-
labelPrefix: { type: String, attribute: "label-prefix" },
|
|
29
|
+
label: { type: String, reflect: true },
|
|
30
|
+
labelPrefix: { type: String, attribute: "label-prefix", reflect: true },
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
constructor() {
|
|
@@ -40,19 +40,19 @@ export class LeuButton extends LitElement {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
static properties = {
|
|
43
|
-
label: { type: String },
|
|
44
|
-
icon: { type: String },
|
|
45
|
-
iconAfter: { type: String },
|
|
46
|
-
size: { type: String },
|
|
47
|
-
variant: { type: String },
|
|
48
|
-
type: { type: String },
|
|
49
|
-
|
|
50
|
-
disabled: { type: Boolean },
|
|
51
|
-
round: { type: Boolean },
|
|
52
|
-
active: { type: Boolean },
|
|
53
|
-
inverted: { type: Boolean },
|
|
54
|
-
expanded: { type: String },
|
|
55
|
-
fluid: { type: Boolean },
|
|
43
|
+
label: { type: String, reflect: true },
|
|
44
|
+
icon: { type: String, reflect: true },
|
|
45
|
+
iconAfter: { type: String, reflect: true },
|
|
46
|
+
size: { type: String, reflect: true },
|
|
47
|
+
variant: { type: String, reflect: true },
|
|
48
|
+
type: { type: String, reflect: true },
|
|
49
|
+
|
|
50
|
+
disabled: { type: Boolean, reflect: true },
|
|
51
|
+
round: { type: Boolean, reflect: true },
|
|
52
|
+
active: { type: Boolean, reflect: true },
|
|
53
|
+
inverted: { type: Boolean, reflect: true },
|
|
54
|
+
expanded: { type: String, reflect: true },
|
|
55
|
+
fluid: { type: Boolean, reflect: true },
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
constructor() {
|
|
@@ -93,16 +93,15 @@ export class LeuCheckbox extends LitElement {
|
|
|
93
93
|
static properties = {
|
|
94
94
|
checked: { type: Boolean, reflect: true },
|
|
95
95
|
disabled: { type: Boolean, reflect: true },
|
|
96
|
-
identifier: { type: String },
|
|
97
|
-
value: { type: String },
|
|
98
|
-
name: { type: String },
|
|
96
|
+
identifier: { type: String, reflect: true },
|
|
97
|
+
value: { type: String, reflect: true },
|
|
98
|
+
name: { type: String, reflect: true },
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super()
|
|
103
103
|
this.checked = false
|
|
104
104
|
this.disabled = false
|
|
105
|
-
this.tabIndex = 0
|
|
106
105
|
|
|
107
106
|
this.checkIcon = Icon("check")
|
|
108
107
|
}
|
|
@@ -18,7 +18,7 @@ export class LeuChipGroup extends LitElement {
|
|
|
18
18
|
static styles = styles
|
|
19
19
|
|
|
20
20
|
static properties = {
|
|
21
|
-
selectionMode: { type: String, attribute: "selection-mode" },
|
|
21
|
+
selectionMode: { type: String, attribute: "selection-mode", reflect: true },
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
constructor() {
|
|
@@ -27,7 +27,7 @@ export class LeuChipSelectable extends LeuChipBase {
|
|
|
27
27
|
* @type {keyof typeof SIZES}
|
|
28
28
|
* @default "regular"
|
|
29
29
|
*/
|
|
30
|
-
size: { type: String },
|
|
30
|
+
size: { type: String, reflect: true },
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* The variant of the chip. Has an effect not only on the visual appearance but also on the behavior.
|
|
@@ -37,10 +37,10 @@ export class LeuChipSelectable extends LeuChipBase {
|
|
|
37
37
|
* @type {keyof typeof VARIANTS}
|
|
38
38
|
* @default "default"
|
|
39
39
|
*/
|
|
40
|
-
variant: { type: String },
|
|
40
|
+
variant: { type: String, reflect: true },
|
|
41
41
|
|
|
42
42
|
selected: { type: Boolean, reflect: true },
|
|
43
|
-
value: { type: String },
|
|
43
|
+
value: { type: String, reflect: true },
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
constructor() {
|
|
@@ -78,25 +78,25 @@ export class LeuInput extends LitElement {
|
|
|
78
78
|
required: { type: Boolean, reflect: true },
|
|
79
79
|
clearable: { type: Boolean, reflect: true },
|
|
80
80
|
|
|
81
|
-
value: { type: String },
|
|
82
|
-
name: { type: String },
|
|
83
|
-
error: { type: String },
|
|
81
|
+
value: { type: String, reflect: true },
|
|
82
|
+
name: { type: String, reflect: true },
|
|
83
|
+
error: { type: String, reflect: true },
|
|
84
84
|
|
|
85
|
-
label: { type: String },
|
|
86
|
-
prefix: { type: String },
|
|
87
|
-
suffix: { type: String },
|
|
88
|
-
size: { type: String },
|
|
89
|
-
icon: { type: String },
|
|
85
|
+
label: { type: String, reflect: true },
|
|
86
|
+
prefix: { type: String, reflect: true },
|
|
87
|
+
suffix: { type: String, reflect: true },
|
|
88
|
+
size: { type: String, reflect: true },
|
|
89
|
+
icon: { type: String, reflect: true },
|
|
90
90
|
|
|
91
91
|
/* Validation attributes */
|
|
92
|
-
pattern: { type: String },
|
|
93
|
-
type: { type: String },
|
|
94
|
-
min: { type: Number },
|
|
95
|
-
max: { type: Number },
|
|
96
|
-
maxlength: { type: Number },
|
|
97
|
-
minlength: { type: Number },
|
|
92
|
+
pattern: { type: String, reflect: true },
|
|
93
|
+
type: { type: String, reflect: true },
|
|
94
|
+
min: { type: Number, reflect: true },
|
|
95
|
+
max: { type: Number, reflect: true },
|
|
96
|
+
maxlength: { type: Number, reflect: true },
|
|
97
|
+
minlength: { type: Number, reflect: true },
|
|
98
98
|
validationMessages: { type: Object },
|
|
99
|
-
novalidate: { type: Boolean },
|
|
99
|
+
novalidate: { type: Boolean, reflect: true },
|
|
100
100
|
|
|
101
101
|
/** @type {ValidityState} */
|
|
102
102
|
_validity: { state: true },
|
|
@@ -25,13 +25,13 @@ export class LeuMenuItem extends LitElement {
|
|
|
25
25
|
* If no icon with this value is found, it will be displayed as text.
|
|
26
26
|
* If the value is "EMPTY", an empty placeholder with the size of an icon will be displayed.
|
|
27
27
|
*/
|
|
28
|
-
before: { type: String },
|
|
28
|
+
before: { type: String, reflect: true },
|
|
29
29
|
/**
|
|
30
30
|
* Can be either an icon name or a text
|
|
31
31
|
* If no icon with this value is found, it will be displayed as text
|
|
32
32
|
* If the value is "EMPTY", an empty placeholder with the size of an icon will be displayed.
|
|
33
33
|
*/
|
|
34
|
-
after: { type: String },
|
|
34
|
+
after: { type: String, reflect: true },
|
|
35
35
|
active: { type: Boolean, reflect: true },
|
|
36
36
|
highlighted: { type: Boolean, reflect: true },
|
|
37
37
|
disabled: { type: Boolean, reflect: true },
|
|
@@ -18,8 +18,8 @@ export class LeuPagination extends LitElement {
|
|
|
18
18
|
|
|
19
19
|
static properties = {
|
|
20
20
|
page: { type: Number, reflect: true },
|
|
21
|
-
itemsOnAPage: { type: Number },
|
|
22
|
-
dataLength: { type: Number },
|
|
21
|
+
itemsOnAPage: { type: Number, reflect: true },
|
|
22
|
+
dataLength: { type: Number, reflect: true },
|
|
23
23
|
|
|
24
24
|
_minPage: { type: Number, state: true },
|
|
25
25
|
}
|
|
@@ -16,16 +16,15 @@ export class LeuRadio extends LitElement {
|
|
|
16
16
|
static properties = {
|
|
17
17
|
checked: { type: Boolean, reflect: true },
|
|
18
18
|
disabled: { type: Boolean, reflect: true },
|
|
19
|
-
identifier: { type: String },
|
|
20
|
-
value: { type: String },
|
|
21
|
-
name: { type: String },
|
|
19
|
+
identifier: { type: String, reflect: true },
|
|
20
|
+
value: { type: String, reflect: true },
|
|
21
|
+
name: { type: String, reflect: true },
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super()
|
|
26
26
|
this.checked = false
|
|
27
27
|
this.disabled = false
|
|
28
|
-
this.tabIndex = 0
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
handleChange(event) {
|
|
@@ -27,7 +27,7 @@ export class LeuSelect extends LitElement {
|
|
|
27
27
|
return {
|
|
28
28
|
open: { type: Boolean, attribute: "open" },
|
|
29
29
|
|
|
30
|
-
label: { type: String },
|
|
30
|
+
label: { type: String, reflect: true },
|
|
31
31
|
options: { type: Array },
|
|
32
32
|
value: { type: Array },
|
|
33
33
|
clearable: { type: Boolean, reflect: true },
|
|
@@ -101,11 +101,11 @@ export class LeuTable extends LitElement {
|
|
|
101
101
|
static properties = {
|
|
102
102
|
columns: { type: Array },
|
|
103
103
|
data: { type: Array },
|
|
104
|
-
firstColumnSticky: { type: Boolean },
|
|
105
|
-
itemsOnAPage: { type: Number },
|
|
106
|
-
sortIndex: { type: Number },
|
|
107
|
-
sortOrderAsc: { type: Boolean },
|
|
108
|
-
width: { type: Number },
|
|
104
|
+
firstColumnSticky: { type: Boolean, reflect: true },
|
|
105
|
+
itemsOnAPage: { type: Number, reflect: true },
|
|
106
|
+
sortIndex: { type: Number, reflect: true },
|
|
107
|
+
sortOrderAsc: { type: Boolean, reflect: true },
|
|
108
|
+
width: { type: Number, reflect: true },
|
|
109
109
|
|
|
110
110
|
_shadowLeft: { type: Boolean, state: true },
|
|
111
111
|
_shadowRight: { type: Boolean, state: true },
|