@avakhula/ui 0.0.91 → 0.0.93
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
|
@@ -124,9 +124,9 @@ const Vh = /* @__PURE__ */ Ae(ba, [["render", $a], ["__scopeId", "data-v-e0e1eb8
|
|
|
124
124
|
danger: "danger",
|
|
125
125
|
ghostDanger: "ghostDanger"
|
|
126
126
|
};
|
|
127
|
-
function Or(t
|
|
128
|
-
for (let
|
|
129
|
-
|
|
127
|
+
function Or(t) {
|
|
128
|
+
for (let n in t)
|
|
129
|
+
n.startsWith("on") && delete t[n];
|
|
130
130
|
return t;
|
|
131
131
|
}
|
|
132
132
|
const wa = {
|
|
@@ -181,6 +181,12 @@ const wa = {
|
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
methods: {
|
|
184
|
+
onMouseenter(t) {
|
|
185
|
+
this.$emit("mouseenter", t);
|
|
186
|
+
},
|
|
187
|
+
onMouseleave(t) {
|
|
188
|
+
this.$emit("mouseleave", t);
|
|
189
|
+
},
|
|
184
190
|
onClick(t) {
|
|
185
191
|
if ((this.preventDefault || this.isDisabled) && t.preventDefault(), this.confirmMessage.length > 0 && !confirm(this.confirmMessage)) {
|
|
186
192
|
t.preventDefault();
|
|
@@ -195,7 +201,7 @@ const wa = {
|
|
|
195
201
|
return t.push(`ib-btn-${this.kind}`), this.isDisabled && t.push("ib-btn-disabled"), this.block && t.push("ib-btn-block"), this.hasIcon && t.push("ib-btn-has-icon"), t;
|
|
196
202
|
},
|
|
197
203
|
attrs() {
|
|
198
|
-
const t = { ...Or({ ...this.$attrs }
|
|
204
|
+
const t = { ...Or({ ...this.$attrs }) };
|
|
199
205
|
return t.class = [...this.classes, t.class], t.disabled = this.isDisabled, this.href.length && (t.href = this.href), t;
|
|
200
206
|
},
|
|
201
207
|
hasIcon() {
|
|
@@ -212,7 +218,9 @@ const wa = {
|
|
|
212
218
|
}, Oa = ["method", "action"], ka = ["value"], Ca = ["value"], Ea = ["name", "value"];
|
|
213
219
|
function Sa(t, n, e, i, o, r) {
|
|
214
220
|
return G(), $e($r(e.href.length ? "a" : "button"), Et({
|
|
215
|
-
onClick: n[0] || (n[0] = (l) => r.onClick(l))
|
|
221
|
+
onClick: n[0] || (n[0] = (l) => r.onClick(l)),
|
|
222
|
+
onMouseenter: r.onMouseenter,
|
|
223
|
+
onMouseleave: r.onMouseleave
|
|
216
224
|
}, r.attrs), {
|
|
217
225
|
default: be(() => [
|
|
218
226
|
Te(t.$slots, "icon"),
|
|
@@ -244,7 +252,7 @@ function Sa(t, n, e, i, o, r) {
|
|
|
244
252
|
]) : he("", !0)
|
|
245
253
|
]),
|
|
246
254
|
_: 3
|
|
247
|
-
}, 16);
|
|
255
|
+
}, 16, ["onMouseenter", "onMouseleave"]);
|
|
248
256
|
}
|
|
249
257
|
const xa = /* @__PURE__ */ Ae(wa, [["render", Sa]]), Ta = {
|
|
250
258
|
topLeft: "top-left",
|
|
@@ -412,7 +420,7 @@ const La = {
|
|
|
412
420
|
return t.push(`ib-icon-btn-${this.kind}`), t.push(`ib-icon-btn-${this.size}`), this.rounded && t.push("ib-icon-btn-rounded"), this.disabled && t.push("ib-icon-btn-disabled"), t;
|
|
413
421
|
},
|
|
414
422
|
attrs() {
|
|
415
|
-
const t = { ...Or({ ...this.$attrs }
|
|
423
|
+
const t = { ...Or({ ...this.$attrs }) };
|
|
416
424
|
return t.class = [...this.classes, t.class], t;
|
|
417
425
|
}
|
|
418
426
|
},
|
|
@@ -3389,7 +3397,7 @@ const Qs = {
|
|
|
3389
3397
|
});
|
|
3390
3398
|
},
|
|
3391
3399
|
clear() {
|
|
3392
|
-
this.actualOptions = [], this.allOptionsIsChecked = !1, this.countVisibleChildren = 0, this.selected = [], this.$emit("update:modelValue", null);
|
|
3400
|
+
this.actualOptions = [], this.allOptionsIsChecked = !1, this.countVisibleChildren = 0, this.selected = [], this.option.forEach((t) => t.checked = !1), this.$emit("update:modelValue", null);
|
|
3393
3401
|
},
|
|
3394
3402
|
clearValue() {
|
|
3395
3403
|
this.clear(), this.setPreparedValues();
|