@itfin/components 1.2.68 → 1.2.69
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/package.json
CHANGED
|
@@ -31,6 +31,7 @@ class itfCheckbox extends Vue {
|
|
|
31
31
|
@Prop(Boolean) disabled;
|
|
32
32
|
@Prop(Boolean) medium;
|
|
33
33
|
@Prop(Boolean) large;
|
|
34
|
+
@Prop(Boolean) ungrouped;
|
|
34
35
|
|
|
35
36
|
id = '';
|
|
36
37
|
|
|
@@ -40,21 +41,21 @@ class itfCheckbox extends Vue {
|
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
get isDisabled() {
|
|
43
|
-
if (this.checkboxGroup) {
|
|
44
|
+
if (this.checkboxGroup && !this.ungrouped) {
|
|
44
45
|
return this.disabled || this.checkboxGroup.isDisabled(this.value);
|
|
45
46
|
}
|
|
46
47
|
return this.disabled;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
get isChecked() {
|
|
50
|
-
if (this.checkboxGroup) {
|
|
51
|
+
if (this.checkboxGroup && !this.ungrouped) {
|
|
51
52
|
return this.checkboxGroup.isChecked(this.value);
|
|
52
53
|
}
|
|
53
54
|
return this.value;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
set isChecked(val) {
|
|
57
|
-
if (this.checkboxGroup) {
|
|
58
|
+
if (this.checkboxGroup && !this.ungrouped) {
|
|
58
59
|
this.checkboxGroup.onToggleOption(this.value, val);
|
|
59
60
|
}
|
|
60
61
|
this.$emit('input', val);
|