@qikdev/vue-ui 0.2.167 → 0.2.168
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/lib.es.js +28 -16
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +3 -3
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './style.css';
|
|
2
2
|
import { defineComponent as Vr, ref as Zt, toRefs as xa, onMounted as wa, onBeforeUnmount as Ho, watch as Er, computed as fr, openBlock as o, createElementBlock as d, renderSlot as H, createCommentVNode as _, normalizeClass as L, useSlots as qo, reactive as Ti, provide as Li, resolveComponent as y, Fragment as S, unref as zn, createBlock as k, withCtx as h, createVNode as m, renderList as F, toDisplayString as b, withDirectives as K, vShow as di, createElementVNode as x, withModifiers as z, createTextVNode as T, h as mr, mergeProps as Oi, toHandlers as Ar, normalizeStyle as ze, resolveDynamicComponent as ft, vModelSelect as Tt, pushScopeId as He, popScopeId as qe, Teleport as Wo, vModelText as se, withKeys as ge, TransitionGroup as Go, nextTick as Sa, vModelDynamic as Hn } from "vue";
|
|
3
3
|
import { EventDispatcher as Ko } from "@qikdev/sdk";
|
|
4
|
-
const Yo = "0.2.
|
|
4
|
+
const Yo = "0.2.168";
|
|
5
5
|
class Lt extends Error {
|
|
6
6
|
}
|
|
7
7
|
class Zo extends Lt {
|
|
@@ -5697,6 +5697,19 @@ const ny = {
|
|
|
5697
5697
|
},
|
|
5698
5698
|
mixins: [Pe],
|
|
5699
5699
|
computed: {
|
|
5700
|
+
enabled() {
|
|
5701
|
+
var t, n;
|
|
5702
|
+
const e = this;
|
|
5703
|
+
switch (typeof ((n = (t = e.column) == null ? void 0 : t.button) == null ? void 0 : n.enabled)) {
|
|
5704
|
+
case "function":
|
|
5705
|
+
return e.column.button.enabled(e.row, e.column);
|
|
5706
|
+
case "undefined":
|
|
5707
|
+
case "null":
|
|
5708
|
+
return !0;
|
|
5709
|
+
default:
|
|
5710
|
+
return e.button.enabled;
|
|
5711
|
+
}
|
|
5712
|
+
},
|
|
5700
5713
|
button() {
|
|
5701
5714
|
return this.column.button;
|
|
5702
5715
|
},
|
|
@@ -5718,7 +5731,8 @@ const ny = {
|
|
|
5718
5731
|
function ry(e, t, n, r, s, i) {
|
|
5719
5732
|
const a = y("ux-icon"), l = y("ux-button");
|
|
5720
5733
|
return o(), d("td", iy, [
|
|
5721
|
-
|
|
5734
|
+
i.enabled ? (o(), k(l, {
|
|
5735
|
+
key: 0,
|
|
5722
5736
|
color: i.button.color,
|
|
5723
5737
|
size: i.button.size,
|
|
5724
5738
|
loading: s.processing,
|
|
@@ -5735,10 +5749,10 @@ function ry(e, t, n, r, s, i) {
|
|
|
5735
5749
|
}, null, 8, ["icon"])) : _("", !0)
|
|
5736
5750
|
]),
|
|
5737
5751
|
_: 1
|
|
5738
|
-
}, 8, ["color", "size", "loading", "onClick"])
|
|
5752
|
+
}, 8, ["color", "size", "loading", "onClick"])) : _("", !0)
|
|
5739
5753
|
]);
|
|
5740
5754
|
}
|
|
5741
|
-
const sy = /* @__PURE__ */ C(ny, [["render", ry], ["__scopeId", "data-v-
|
|
5755
|
+
const sy = /* @__PURE__ */ C(ny, [["render", ry], ["__scopeId", "data-v-160b5461"]]);
|
|
5742
5756
|
const ay = {
|
|
5743
5757
|
mixins: [Pe],
|
|
5744
5758
|
methods: {
|
|
@@ -8762,9 +8776,7 @@ const Ig = {
|
|
|
8762
8776
|
return "i";
|
|
8763
8777
|
}
|
|
8764
8778
|
}
|
|
8765
|
-
}, Fg = (e) => (He("data-v-
|
|
8766
|
-
/* @__PURE__ */ x("span")
|
|
8767
|
-
], -1));
|
|
8779
|
+
}, Fg = (e) => (He("data-v-b9019dd2"), e = e(), qe(), e), $g = { class: "ux-progress" }, Ng = /* @__PURE__ */ Fg(() => /* @__PURE__ */ x("div", { class: "ux-progress-bg" }, null, -1));
|
|
8768
8780
|
function Lg(e, t, n, r, s, i) {
|
|
8769
8781
|
return o(), d("div", $g, [
|
|
8770
8782
|
Ng,
|
|
@@ -8774,7 +8786,7 @@ function Lg(e, t, n, r, s, i) {
|
|
|
8774
8786
|
}, null, 4)
|
|
8775
8787
|
]);
|
|
8776
8788
|
}
|
|
8777
|
-
const Pg = /* @__PURE__ */ C(Ig, [["render", Lg], ["__scopeId", "data-v-
|
|
8789
|
+
const Pg = /* @__PURE__ */ C(Ig, [["render", Lg], ["__scopeId", "data-v-b9019dd2"]]);
|
|
8778
8790
|
const Ug = {
|
|
8779
8791
|
props: {
|
|
8780
8792
|
value: {},
|
|
@@ -11734,7 +11746,7 @@ function V1(e, t, n, r, s, i) {
|
|
|
11734
11746
|
key: 0,
|
|
11735
11747
|
class: "items",
|
|
11736
11748
|
modelValue: e.model,
|
|
11737
|
-
"onUpdate:modelValue": t[
|
|
11749
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.model = v)
|
|
11738
11750
|
}, {
|
|
11739
11751
|
item: h(({ element: v, index: w }) => [
|
|
11740
11752
|
(o(), k(u, {
|
|
@@ -11746,13 +11758,13 @@ function V1(e, t, n, r, s, i) {
|
|
|
11746
11758
|
key: 0,
|
|
11747
11759
|
size: "sm",
|
|
11748
11760
|
icon: "",
|
|
11749
|
-
onClick:
|
|
11761
|
+
onClick: z((O) => e.$actions.open([v]), ["stop", "prevent"])
|
|
11750
11762
|
}, {
|
|
11751
11763
|
default: h(() => [
|
|
11752
11764
|
m(a, { icon: "fa-ellipsis" })
|
|
11753
11765
|
]),
|
|
11754
|
-
_:
|
|
11755
|
-
})) : _("", !0),
|
|
11766
|
+
_: 2
|
|
11767
|
+
}, 1032, ["onClick"])) : _("", !0),
|
|
11756
11768
|
i.canEdit(v) ? (o(), k(l, {
|
|
11757
11769
|
key: 1,
|
|
11758
11770
|
size: "sm",
|
|
@@ -11786,7 +11798,7 @@ function V1(e, t, n, r, s, i) {
|
|
|
11786
11798
|
m(l, {
|
|
11787
11799
|
size: "sm",
|
|
11788
11800
|
icon: "",
|
|
11789
|
-
onClick: t[
|
|
11801
|
+
onClick: t[1] || (t[1] = z((v) => i.swap(e.model), ["stop", "prevent"]))
|
|
11790
11802
|
}, {
|
|
11791
11803
|
default: h(() => [
|
|
11792
11804
|
m(a, { icon: "fa-retweet" })
|
|
@@ -11797,7 +11809,7 @@ function V1(e, t, n, r, s, i) {
|
|
|
11797
11809
|
key: 0,
|
|
11798
11810
|
size: "sm",
|
|
11799
11811
|
icon: "",
|
|
11800
|
-
onClick: t[
|
|
11812
|
+
onClick: t[2] || (t[2] = z((v) => e.$actions.open([e.model]), ["stop", "prevent"]))
|
|
11801
11813
|
}, {
|
|
11802
11814
|
default: h(() => [
|
|
11803
11815
|
m(a, { icon: "fa-ellipsis" })
|
|
@@ -11808,7 +11820,7 @@ function V1(e, t, n, r, s, i) {
|
|
|
11808
11820
|
key: 1,
|
|
11809
11821
|
size: "sm",
|
|
11810
11822
|
icon: "",
|
|
11811
|
-
onClick: t[
|
|
11823
|
+
onClick: t[3] || (t[3] = z((v) => i.edit(e.model), ["stop", "prevent"]))
|
|
11812
11824
|
}, {
|
|
11813
11825
|
default: h(() => [
|
|
11814
11826
|
m(a, { icon: "fa-pencil" })
|
|
@@ -11873,7 +11885,7 @@ function V1(e, t, n, r, s, i) {
|
|
|
11873
11885
|
})) : _("", !0)
|
|
11874
11886
|
], 64);
|
|
11875
11887
|
}
|
|
11876
|
-
const oo = /* @__PURE__ */ C(w1, [["render", V1], ["__scopeId", "data-v-
|
|
11888
|
+
const oo = /* @__PURE__ */ C(w1, [["render", V1], ["__scopeId", "data-v-46548829"]]);
|
|
11877
11889
|
function E1(e) {
|
|
11878
11890
|
return e === void 0 || typeof e > "u" || e === null || String(e) === "null" || String(e) === "undefined";
|
|
11879
11891
|
}
|