@avakhula/ui 0.0.192 → 0.0.193
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/index.js
CHANGED
|
@@ -2123,6 +2123,9 @@ const ws = {
|
|
|
2123
2123
|
value(t) {
|
|
2124
2124
|
this.actualValue = t;
|
|
2125
2125
|
},
|
|
2126
|
+
modelValue(t) {
|
|
2127
|
+
this.actualValue = t;
|
|
2128
|
+
},
|
|
2126
2129
|
disabled(t) {
|
|
2127
2130
|
this.$globalEvents.$emit(`label:disabled:${this.id}`, t);
|
|
2128
2131
|
}
|
|
@@ -2240,7 +2243,7 @@ function Cs(t, n, e, i, o, r) {
|
|
|
2240
2243
|
], 2)
|
|
2241
2244
|
]);
|
|
2242
2245
|
}
|
|
2243
|
-
const Do = /* @__PURE__ */ Ae(ws, [["render", Cs], ["__scopeId", "data-v-
|
|
2246
|
+
const Do = /* @__PURE__ */ Ae(ws, [["render", Cs], ["__scopeId", "data-v-06d0b572"]]);
|
|
2244
2247
|
const Es = {
|
|
2245
2248
|
name: "IbCheckbox",
|
|
2246
2249
|
model: {
|
|
@@ -3542,16 +3545,19 @@ const eu = {
|
|
|
3542
3545
|
checkIfOptionsChecked(t) {
|
|
3543
3546
|
return t.every((n) => n.checked);
|
|
3544
3547
|
},
|
|
3548
|
+
onCheck(t, n, e) {
|
|
3549
|
+
this.registerCheck(t, n, e), this.$emit("update:modelValue", Object.keys(this.selected)), this.$emit("input", Object.keys(this.selected));
|
|
3550
|
+
},
|
|
3545
3551
|
registerCheck(t, n, e) {
|
|
3546
3552
|
if (n)
|
|
3547
3553
|
if (t.checked = !0, this.isMultiple)
|
|
3548
|
-
this.onlyEndNodes && t.children && t.children.length || (this.selected[t.id] = t
|
|
3554
|
+
this.onlyEndNodes && t.children && t.children.length || (this.selected[t.id] = t);
|
|
3549
3555
|
else {
|
|
3550
3556
|
const i = Object.keys(this.selected)[0];
|
|
3551
3557
|
i && (this.selected[i].checked = !1), this.selected = { [t.id]: t }, this.change();
|
|
3552
3558
|
}
|
|
3553
3559
|
else
|
|
3554
|
-
delete this.selected[t.id], t.checked = !1
|
|
3560
|
+
delete this.selected[t.id], t.checked = !1;
|
|
3555
3561
|
this.toggleDuplicateOptions(this.actualOptions, t.id, n), e && (this.allOptionsIsChecked = this.checkIfOptionsChecked(
|
|
3556
3562
|
this.actualOptions
|
|
3557
3563
|
));
|
|
@@ -3563,7 +3569,7 @@ const eu = {
|
|
|
3563
3569
|
manageAll() {
|
|
3564
3570
|
this.allOptionsIsChecked = !this.allOptionsIsChecked, this.traverseTree(this.actualOptions, (t) => {
|
|
3565
3571
|
this.registerCheck(t, this.allOptionsIsChecked, !1);
|
|
3566
|
-
});
|
|
3572
|
+
}), this.$emit("update:modelValue", Object.keys(this.selected)), this.$emit("input", Object.keys(this.selected));
|
|
3567
3573
|
},
|
|
3568
3574
|
traverseTree(t, n) {
|
|
3569
3575
|
t.forEach((e) => {
|
|
@@ -3705,7 +3711,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3705
3711
|
"is-multiple": e.isMultiple,
|
|
3706
3712
|
"is-bookmarkable": !0,
|
|
3707
3713
|
"is-bookmarked": !0,
|
|
3708
|
-
onCheck: r.
|
|
3714
|
+
onCheck: r.onCheck,
|
|
3709
3715
|
onToggleBookmark: r.toggleBookmark,
|
|
3710
3716
|
uid: o.uid,
|
|
3711
3717
|
"only-end-nodes": e.onlyEndNodes,
|
|
@@ -3744,7 +3750,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3744
3750
|
name: o.actualName,
|
|
3745
3751
|
"parent-auto-check": e.parentAutoCheck,
|
|
3746
3752
|
"is-multiple": e.isMultiple,
|
|
3747
|
-
onCheck: r.
|
|
3753
|
+
onCheck: r.onCheck,
|
|
3748
3754
|
onToggleBookmark: r.toggleBookmark,
|
|
3749
3755
|
uid: o.uid,
|
|
3750
3756
|
"only-end-nodes": e.onlyEndNodes,
|
|
@@ -3789,7 +3795,7 @@ function ru(t, n, e, i, o, r) {
|
|
|
3789
3795
|
"parent-auto-check": e.parentAutoCheck,
|
|
3790
3796
|
"is-multiple": e.isMultiple,
|
|
3791
3797
|
"is-bookmarkable": e.isBookmarkable,
|
|
3792
|
-
onCheck: r.
|
|
3798
|
+
onCheck: r.onCheck,
|
|
3793
3799
|
onToggleBookmark: r.toggleBookmark,
|
|
3794
3800
|
uid: o.uid,
|
|
3795
3801
|
"only-end-nodes": e.onlyEndNodes,
|