@unizhen/ui 0.0.6 → 0.0.7
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/lib/ui.js +118 -115
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Fc = Object.defineProperty;
|
|
2
2
|
var Vc = (e, t, r) => t in e ? Fc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var zt = (e, t, r) => Vc(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as ie, createElementBlock as w, openBlock as c, createStaticVNode as E, createElementVNode as i, ref as S, watch as ue, nextTick as Ee, h as Z, reactive as ja, resolveComponent as $, createBlock as R, withCtx as k, toDisplayString as H, createVNode as T, normalizeStyle as $e, inject as He, computed as _t, Fragment as le, createCommentVNode as J, normalizeClass as ce, createSlots as Oe, createTextVNode as G, renderList as ke, provide as ba, onMounted as Ge, resolveDirective as Bl, withDirectives as gt, mergeProps as _a, withModifiers as At, watchEffect as Fl, onBeforeUnmount as qa, withKeys as Uc, renderSlot as xe, markRaw as Pc, defineAsyncComponent as Ec, onUnmounted as Vl, vShow as xa, resolveDynamicComponent as go } from "vue";
|
|
5
5
|
import { createDiscreteApi as Lc, NPopover as ct, NFlex as Ul, NButton as ge, NPopconfirm as za, NTooltip as Pl, NIcon as ve, NDropdown as Hc, NCascader as El, NCheckboxGroup as Aa, NCheckbox as Oa, NColorPicker as Kc, NSwitch as Gc, NTimePicker as Wc, NDatePicker as Jc, NInputNumber as Qc, NSelect as Ll, NInput as Xc, NDivider as Ra, NFormItem as Ba, NForm as Fa, NInputGroup as Va, NUploadDragger as Yc, NImage as Hl, NUpload as Kl, useNotification as Ft, NImageGroup as Zc, NModal as ed, NInputGroupLabel as Gl, NGridItem as Wl, NGrid as Jl, NButtonGroup as td, NDrawerContent as Ua, NDrawer as Pa, NTag as rd, NEllipsis as nd, NSpin as Ea, NRadioGroup as Ql, NSkeleton as Xl, NDataTable as La, NPagination as ad, NRadio as od, NTabPane as sd, NTabs as ld, darkTheme as We, NConfigProvider as id, dateZhCN as ud, zhCN as cd } from "naive-ui";
|
|
6
6
|
import Ha from "axios";
|
|
7
7
|
import { createRouter as dd, createWebHistory as fd, useRouter as pd, useRoute as Vt } from "vue-router";
|
|
@@ -13,7 +13,7 @@ import wd from "jsqr";
|
|
|
13
13
|
import md from "vue-clipboard3";
|
|
14
14
|
import { createWorker as vd } from "tesseract.js";
|
|
15
15
|
import gd from "sortablejs";
|
|
16
|
-
const yd =
|
|
16
|
+
const yd = ie({
|
|
17
17
|
name: "UzActionButton",
|
|
18
18
|
props: {
|
|
19
19
|
data: {
|
|
@@ -2311,7 +2311,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2311
2311
|
UserPlus: Lu,
|
|
2312
2312
|
Users: Hu,
|
|
2313
2313
|
X: Xa
|
|
2314
|
-
}, Symbol.toStringTag, { value: "Module" })), Ya =
|
|
2314
|
+
}, Symbol.toStringTag, { value: "Module" })), Ya = ie({
|
|
2315
2315
|
name: "UzIcon",
|
|
2316
2316
|
props: {
|
|
2317
2317
|
icon: {
|
|
@@ -2330,7 +2330,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2330
2330
|
}
|
|
2331
2331
|
r.value = a;
|
|
2332
2332
|
};
|
|
2333
|
-
return n(e.icon),
|
|
2333
|
+
return n(e.icon), ue(
|
|
2334
2334
|
() => e.icon,
|
|
2335
2335
|
(a) => {
|
|
2336
2336
|
n(a);
|
|
@@ -3067,7 +3067,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
3067
3067
|
children: r.c.map((n) => $o(n))
|
|
3068
3068
|
});
|
|
3069
3069
|
return t;
|
|
3070
|
-
}, Em =
|
|
3070
|
+
}, Em = ie({
|
|
3071
3071
|
name: "UzBack",
|
|
3072
3072
|
components: {
|
|
3073
3073
|
ArrowNarrowLeft: Ka,
|
|
@@ -3109,7 +3109,7 @@ function Lm(e, t, r, n, a, o) {
|
|
|
3109
3109
|
_: 1
|
|
3110
3110
|
}, 8, ["onClick"]);
|
|
3111
3111
|
}
|
|
3112
|
-
const Hm = /* @__PURE__ */ _(Em, [["render", Lm]]), Km =
|
|
3112
|
+
const Hm = /* @__PURE__ */ _(Em, [["render", Lm]]), Km = ie({
|
|
3113
3113
|
name: "UzCircle",
|
|
3114
3114
|
components: {
|
|
3115
3115
|
NPopover: ct
|
|
@@ -4416,8 +4416,8 @@ var la, Cl;
|
|
|
4416
4416
|
function wg() {
|
|
4417
4417
|
if (Cl) return la;
|
|
4418
4418
|
Cl = 1;
|
|
4419
|
-
var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), u = Wv(), p = Jv(), h = Qv(), b = Xv(), I = fo(), y = rg(), f = ig(), g = cg(), l = ao(), v = yc(), m = fg(), d = Qe(), x = hg(), N = io(), V = uo(), U = 1, F = 2, q = 4, D = "[object Arguments]", C = "[object Array]", j = "[object Boolean]", z = "[object Date]", A = "[object Error]", O = "[object Function]", L = "[object GeneratorFunction]",
|
|
4420
|
-
ne[D] = ne[C] = ne[St] = ne[Tt] = ne[j] = ne[z] = ne[Nt] = ne[tr] = ne[rr] = ne[nr] = ne[ar] = ne[
|
|
4419
|
+
var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), u = Wv(), p = Jv(), h = Qv(), b = Xv(), I = fo(), y = rg(), f = ig(), g = cg(), l = ao(), v = yc(), m = fg(), d = Qe(), x = hg(), N = io(), V = uo(), U = 1, F = 2, q = 4, D = "[object Arguments]", C = "[object Array]", j = "[object Boolean]", z = "[object Date]", A = "[object Error]", O = "[object Function]", L = "[object GeneratorFunction]", se = "[object Map]", K = "[object Number]", re = "[object Object]", de = "[object RegExp]", Te = "[object Set]", Ce = "[object String]", ye = "[object Symbol]", Ne = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", Nt = "[object Float32Array]", tr = "[object Float64Array]", rr = "[object Int8Array]", nr = "[object Int16Array]", ar = "[object Int32Array]", Xe = "[object Uint8Array]", or = "[object Uint8ClampedArray]", me = "[object Uint16Array]", sr = "[object Uint32Array]", ne = {};
|
|
4420
|
+
ne[D] = ne[C] = ne[St] = ne[Tt] = ne[j] = ne[z] = ne[Nt] = ne[tr] = ne[rr] = ne[nr] = ne[ar] = ne[se] = ne[K] = ne[re] = ne[de] = ne[Te] = ne[Ce] = ne[ye] = ne[Xe] = ne[or] = ne[me] = ne[sr] = !0, ne[A] = ne[O] = ne[Ne] = !1;
|
|
4421
4421
|
function nt(ee, Be, Fe, lr, at, Ie) {
|
|
4422
4422
|
var fe, Ve = Be & U, Ue = Be & F, It = Be & q;
|
|
4423
4423
|
if (Fe && (fe = at ? Fe(ee, lr, at, Ie) : Fe(ee)), fe !== void 0)
|
|
@@ -4468,7 +4468,7 @@ function mg() {
|
|
|
4468
4468
|
return ia = n, ia;
|
|
4469
4469
|
}
|
|
4470
4470
|
var vg = mg();
|
|
4471
|
-
const Q = /* @__PURE__ */ to(vg), gg =
|
|
4471
|
+
const Q = /* @__PURE__ */ to(vg), gg = ie({
|
|
4472
4472
|
name: "UzFormItem",
|
|
4473
4473
|
components: {
|
|
4474
4474
|
NIcon: ve,
|
|
@@ -4636,7 +4636,7 @@ const Q = /* @__PURE__ */ to(vg), gg = le({
|
|
|
4636
4636
|
}), yg = { class: "flex flex-wrap gap-2" };
|
|
4637
4637
|
function kg(e, t, r, n, a, o) {
|
|
4638
4638
|
const s = $("NInput"), u = $("NDropdown"), p = $("NInputNumber"), h = $("NDatePicker"), b = $("NSelect"), I = $("NCascader"), y = $("NColorPicker"), f = $("NCheckbox"), g = $("NCheckboxGroup"), l = $("NTimePicker"), v = $("NSwitch"), m = $("UzFormItemUpload");
|
|
4639
|
-
return c(), w(
|
|
4639
|
+
return c(), w(le, null, [
|
|
4640
4640
|
e.item.input === "input" ? (c(), R(s, {
|
|
4641
4641
|
key: 0,
|
|
4642
4642
|
value: e.formValue[e.item.key],
|
|
@@ -4656,7 +4656,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4656
4656
|
maxlength: e.item.params.maxlength,
|
|
4657
4657
|
rows: e.item.params.rows,
|
|
4658
4658
|
"show-count": !!e.item.params.maxlength,
|
|
4659
|
-
class:
|
|
4659
|
+
class: ce(e.checkClassReadonly())
|
|
4660
4660
|
}, Oe({ _: 2 }, [
|
|
4661
4661
|
e.item.params.prefix ? {
|
|
4662
4662
|
name: "prefix",
|
|
@@ -4710,7 +4710,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4710
4710
|
maxlength: e.item.params.maxlength,
|
|
4711
4711
|
rows: e.item.params.rows,
|
|
4712
4712
|
"show-count": !!e.item.params.maxlength,
|
|
4713
|
-
class:
|
|
4713
|
+
class: ce(e.checkClassReadonly())
|
|
4714
4714
|
}, Oe({ _: 2 }, [
|
|
4715
4715
|
e.item.params.prefix ? {
|
|
4716
4716
|
name: "prefix",
|
|
@@ -4747,7 +4747,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4747
4747
|
step: e.item.params.step,
|
|
4748
4748
|
showButton: e.item.params.showButton,
|
|
4749
4749
|
precision: e.item.params.precision,
|
|
4750
|
-
class:
|
|
4750
|
+
class: ce(e.checkClassReadonly())
|
|
4751
4751
|
}, Oe({ _: 2 }, [
|
|
4752
4752
|
e.item.params.prefix ? {
|
|
4753
4753
|
name: "prefix",
|
|
@@ -4784,7 +4784,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4784
4784
|
return N.params.isDateDisabled ? N.params.isDateDisabled(d, x) : !1;
|
|
4785
4785
|
},
|
|
4786
4786
|
"close-on-select": !0,
|
|
4787
|
-
class:
|
|
4787
|
+
class: ce(e.checkClassReadonly())
|
|
4788
4788
|
}, null, 8, ["value", "type", "placeholder", "disabled", "show", "clearable", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "date" && e.item.params.format ? (c(), R(h, {
|
|
4789
4789
|
key: 5,
|
|
4790
4790
|
"formatted-value": e.formValue[e.item.key],
|
|
@@ -4807,7 +4807,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4807
4807
|
return N.params.isDateDisabled ? N.params.isDateDisabled(d, x) : !1;
|
|
4808
4808
|
},
|
|
4809
4809
|
"close-on-select": !0,
|
|
4810
|
-
class:
|
|
4810
|
+
class: ce(e.checkClassReadonly())
|
|
4811
4811
|
}, null, 8, ["formatted-value", "type", "placeholder", "disabled", "show", "clearable", "format", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "select" ? (c(), R(b, {
|
|
4812
4812
|
key: 6,
|
|
4813
4813
|
value: e.formValue[e.item.key],
|
|
@@ -4834,7 +4834,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4834
4834
|
label: d,
|
|
4835
4835
|
value: `op${Date.now()}-#create#-${d}`
|
|
4836
4836
|
}) : void 0,
|
|
4837
|
-
class:
|
|
4837
|
+
class: ce(e.checkClassReadonly())
|
|
4838
4838
|
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (c(), R(I, {
|
|
4839
4839
|
key: 7,
|
|
4840
4840
|
value: e.formValue[e.item.key],
|
|
@@ -4857,7 +4857,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4857
4857
|
clearable: e.checkClearable(),
|
|
4858
4858
|
filterable: e.item.params.filterable,
|
|
4859
4859
|
multiple: e.item.params.multiple,
|
|
4860
|
-
class:
|
|
4860
|
+
class: ce(e.checkClassReadonly()),
|
|
4861
4861
|
"check-strategy": "all",
|
|
4862
4862
|
maxTagCount: "responsive"
|
|
4863
4863
|
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (c(), R(y, {
|
|
@@ -4875,7 +4875,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4875
4875
|
"#F0A020",
|
|
4876
4876
|
"rgba(208, 48, 80, 1)"
|
|
4877
4877
|
],
|
|
4878
|
-
class:
|
|
4878
|
+
class: ce(e.checkClassReadonly())
|
|
4879
4879
|
}, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(), R(g, {
|
|
4880
4880
|
key: 9,
|
|
4881
4881
|
value: e.formValue[e.item.key],
|
|
@@ -4884,7 +4884,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4884
4884
|
}, {
|
|
4885
4885
|
default: k(() => [
|
|
4886
4886
|
i("div", yg, [
|
|
4887
|
-
(c(!0), w(
|
|
4887
|
+
(c(!0), w(le, null, ke(e.item.params.options, (d) => (c(), R(f, {
|
|
4888
4888
|
key: d.value,
|
|
4889
4889
|
label: d.label,
|
|
4890
4890
|
value: d.value
|
|
@@ -4907,7 +4907,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4907
4907
|
disabled: e.checkDisabled(),
|
|
4908
4908
|
show: e.checkReadonlyShow(),
|
|
4909
4909
|
clearable: e.checkClearable(),
|
|
4910
|
-
class:
|
|
4910
|
+
class: ce(e.checkClassReadonly())
|
|
4911
4911
|
}, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(), R(v, {
|
|
4912
4912
|
key: 11,
|
|
4913
4913
|
"checked-value": 1,
|
|
@@ -4942,10 +4942,10 @@ function kg(e, t, r, n, a, o) {
|
|
|
4942
4942
|
"onUpdate:value": t[21] || (t[21] = (d) => e.formValue[e.item.key] = d),
|
|
4943
4943
|
item: e.item,
|
|
4944
4944
|
status: e.status
|
|
4945
|
-
}, null, 8, ["value", "item", "status"])) : (c(), w(
|
|
4945
|
+
}, null, 8, ["value", "item", "status"])) : (c(), w(le, { key: 13 }, [], 64))
|
|
4946
4946
|
], 64);
|
|
4947
4947
|
}
|
|
4948
|
-
const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg =
|
|
4948
|
+
const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
4949
4949
|
name: "UzForm",
|
|
4950
4950
|
components: {
|
|
4951
4951
|
NForm: Fa,
|
|
@@ -5168,8 +5168,8 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5168
5168
|
const L = JSON.stringify(
|
|
5169
5169
|
O,
|
|
5170
5170
|
(K, re) => re === void 0 ? null : Array.isArray(re) ? re.filter((de) => de !== "") : re
|
|
5171
|
-
),
|
|
5172
|
-
D(
|
|
5171
|
+
), se = JSON.parse(L);
|
|
5172
|
+
D(se);
|
|
5173
5173
|
} else
|
|
5174
5174
|
C();
|
|
5175
5175
|
}
|
|
@@ -5197,7 +5197,7 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5197
5197
|
}, q = () => o.value;
|
|
5198
5198
|
return Ge(() => {
|
|
5199
5199
|
e.status !== 0 && (o.value = e.value, m());
|
|
5200
|
-
}), t({ validate: x, restoreValidation: N, getValues: q }),
|
|
5200
|
+
}), t({ validate: x, restoreValidation: N, getValues: q }), ue(
|
|
5201
5201
|
() => e.items,
|
|
5202
5202
|
(D) => {
|
|
5203
5203
|
m(D);
|
|
@@ -5205,7 +5205,7 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5205
5205
|
{
|
|
5206
5206
|
deep: !0
|
|
5207
5207
|
}
|
|
5208
|
-
),
|
|
5208
|
+
), ue(
|
|
5209
5209
|
() => e.value,
|
|
5210
5210
|
(D) => {
|
|
5211
5211
|
o.value = D, m();
|
|
@@ -5232,7 +5232,7 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5232
5232
|
}), _g = ["onClick"];
|
|
5233
5233
|
function xg(e, t, r, n, a, o) {
|
|
5234
5234
|
const s = $("Plus"), u = $("NIcon"), p = $("UzTableChild"), h = $("UzTableQuestChild"), b = $("NDivider"), I = $("UzFormItem"), y = $("NFormItem"), f = $("NForm"), g = $("UzTableDrawer"), l = Bl("media");
|
|
5235
|
-
return c(), w(
|
|
5235
|
+
return c(), w(le, null, [
|
|
5236
5236
|
T(f, {
|
|
5237
5237
|
ref: "formRef",
|
|
5238
5238
|
class: "w-full h-full",
|
|
@@ -5244,11 +5244,11 @@ function xg(e, t, r, n, a, o) {
|
|
|
5244
5244
|
}, {
|
|
5245
5245
|
default: k(() => [
|
|
5246
5246
|
gt((c(), w("div", {
|
|
5247
|
-
class:
|
|
5247
|
+
class: ce(e.isMobile ? "" : "uz-form-grid")
|
|
5248
5248
|
}, [
|
|
5249
|
-
(c(!0), w(
|
|
5249
|
+
(c(!0), w(le, null, ke(e.formItems, (v, m) => {
|
|
5250
5250
|
var d;
|
|
5251
|
-
return c(), w(
|
|
5251
|
+
return c(), w(le, { key: m }, [
|
|
5252
5252
|
e.itemShow(v) ? (c(), R(y, {
|
|
5253
5253
|
key: 0,
|
|
5254
5254
|
path: v.key,
|
|
@@ -5274,7 +5274,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5274
5274
|
], 8, _g)) : J("", !0),
|
|
5275
5275
|
v.form.showDays ? (c(), w("span", {
|
|
5276
5276
|
key: 1,
|
|
5277
|
-
class:
|
|
5277
|
+
class: ce(["uz-form-item-add", e.diffDay(e.formValue[v.key], !0)])
|
|
5278
5278
|
}, H(e.diffDay(e.formValue[v.key])), 3)) : J("", !0)
|
|
5279
5279
|
]),
|
|
5280
5280
|
default: k(() => [
|
|
@@ -5325,7 +5325,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5325
5325
|
}, null, 8, ["show", "link", "linkFn", "onOnSubmit"])
|
|
5326
5326
|
], 64);
|
|
5327
5327
|
}
|
|
5328
|
-
const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g =
|
|
5328
|
+
const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = ie({
|
|
5329
5329
|
name: "UzDraggableForm",
|
|
5330
5330
|
components: {
|
|
5331
5331
|
NForm: Fa,
|
|
@@ -5431,7 +5431,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5431
5431
|
};
|
|
5432
5432
|
return Ge(() => {
|
|
5433
5433
|
o.value = e.value, m();
|
|
5434
|
-
}), t({ changeItem: g }),
|
|
5434
|
+
}), t({ changeItem: g }), ue(
|
|
5435
5435
|
() => e.items,
|
|
5436
5436
|
() => {
|
|
5437
5437
|
m();
|
|
@@ -5439,7 +5439,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5439
5439
|
{
|
|
5440
5440
|
deep: !0
|
|
5441
5441
|
}
|
|
5442
|
-
),
|
|
5442
|
+
), ue(
|
|
5443
5443
|
() => e.value,
|
|
5444
5444
|
(F) => {
|
|
5445
5445
|
o.value = F;
|
|
@@ -5468,7 +5468,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5468
5468
|
}), Mg = ["onClick"];
|
|
5469
5469
|
function Sg(e, t, r, n, a, o) {
|
|
5470
5470
|
const s = $("Plus"), u = $("NIcon"), p = $("Trash"), h = $("NButton"), b = $("UzTableChild"), I = $("UzFormItem"), y = $("NFormItem"), f = $("Draggable", !0), g = $("NDivider"), l = $("NForm"), v = $("UzTableDrawer");
|
|
5471
|
-
return c(), w(
|
|
5471
|
+
return c(), w(le, null, [
|
|
5472
5472
|
T(l, {
|
|
5473
5473
|
ref: "formRef",
|
|
5474
5474
|
class: "w-full h-full",
|
|
@@ -5500,7 +5500,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5500
5500
|
(c(), R(y, {
|
|
5501
5501
|
path: m.key,
|
|
5502
5502
|
rule: (x = m.rule) != null && x.required ? m.rule : void 0,
|
|
5503
|
-
class:
|
|
5503
|
+
class: ce([
|
|
5504
5504
|
"uz-form-grid-item uz-form-mode",
|
|
5505
5505
|
e.formItemIndex[0] === d && e.formItemIndex[1] === -1 ? "select" : m.input === "group" ? "group" : ""
|
|
5506
5506
|
]),
|
|
@@ -5527,7 +5527,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5527
5527
|
], 8, Mg)) : J("", !0),
|
|
5528
5528
|
m.form.showDays ? (c(), w("span", {
|
|
5529
5529
|
key: 1,
|
|
5530
|
-
class:
|
|
5530
|
+
class: ce(["uz-form-item-add", e.diffDay(e.formValue[m.key], !0)])
|
|
5531
5531
|
}, H(e.diffDay(e.formValue[m.key])), 3)) : J("", !0)
|
|
5532
5532
|
]),
|
|
5533
5533
|
default: k(() => [
|
|
@@ -5574,7 +5574,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5574
5574
|
label: N.input !== "divider" ? typeof N.label == "function" ? N.label() : N.label : "",
|
|
5575
5575
|
path: N.key,
|
|
5576
5576
|
rule: (U = N.rule) != null && U.required ? N.rule : void 0,
|
|
5577
|
-
class:
|
|
5577
|
+
class: ce([
|
|
5578
5578
|
"uz-form-grid-item uz-form-mode",
|
|
5579
5579
|
e.formItemIndex[0] === d && e.formItemIndex[1] === V ? "select" : ""
|
|
5580
5580
|
]),
|
|
@@ -5646,7 +5646,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5646
5646
|
}, null, 8, ["show", "link", "linkFn", "onOnSubmit"])
|
|
5647
5647
|
], 64);
|
|
5648
5648
|
}
|
|
5649
|
-
const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng =
|
|
5649
|
+
const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = ie({
|
|
5650
5650
|
name: "UzFormItemUpload",
|
|
5651
5651
|
components: {
|
|
5652
5652
|
NUpload: Kl,
|
|
@@ -5740,7 +5740,7 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = le({
|
|
|
5740
5740
|
};
|
|
5741
5741
|
return Ge(() => {
|
|
5742
5742
|
p();
|
|
5743
|
-
}),
|
|
5743
|
+
}), ue(
|
|
5744
5744
|
() => e.value,
|
|
5745
5745
|
() => {
|
|
5746
5746
|
p();
|
|
@@ -5783,7 +5783,7 @@ function zg(e, t, r, n, a, o) {
|
|
|
5783
5783
|
]),
|
|
5784
5784
|
_: 1
|
|
5785
5785
|
}, 8, ["accept", "max", "on-before-upload"])) : J("", !0),
|
|
5786
|
-
(c(!0), w(
|
|
5786
|
+
(c(!0), w(le, null, ke(e.formValue, (m, d) => (c(), w("div", {
|
|
5787
5787
|
key: d,
|
|
5788
5788
|
class: "uz-form-upload-item w-20 h-20"
|
|
5789
5789
|
}, [
|
|
@@ -5869,7 +5869,7 @@ function zg(e, t, r, n, a, o) {
|
|
|
5869
5869
|
]))), 128))
|
|
5870
5870
|
]);
|
|
5871
5871
|
}
|
|
5872
|
-
const Ag = /* @__PURE__ */ _(Ng, [["render", zg], ["__scopeId", "data-v-9a2b6b78"]]), Og =
|
|
5872
|
+
const Ag = /* @__PURE__ */ _(Ng, [["render", zg], ["__scopeId", "data-v-9a2b6b78"]]), Og = ie({
|
|
5873
5873
|
name: "UzFormItemImage",
|
|
5874
5874
|
components: { NImageGroup: Zc, NImage: Hl, NIcon: ve, NPopover: ct, PhotoOff: Lt, FileText: Pt },
|
|
5875
5875
|
props: {
|
|
@@ -5910,7 +5910,7 @@ function Bg(e, t, r, n, a, o) {
|
|
|
5910
5910
|
return c(), R(I, null, {
|
|
5911
5911
|
default: k(() => [
|
|
5912
5912
|
i("div", Rg, [
|
|
5913
|
-
(c(!0), w(
|
|
5913
|
+
(c(!0), w(le, null, ke(e.imgs, (y) => (c(), w(le, null, [
|
|
5914
5914
|
e.isAssetTypeAnImage(y) ? (c(), R(p, {
|
|
5915
5915
|
key: 0,
|
|
5916
5916
|
width: "40",
|
|
@@ -5956,7 +5956,7 @@ function Bg(e, t, r, n, a, o) {
|
|
|
5956
5956
|
_: 1
|
|
5957
5957
|
});
|
|
5958
5958
|
}
|
|
5959
|
-
const Nc = /* @__PURE__ */ _(Og, [["render", Bg]]), Fg =
|
|
5959
|
+
const Nc = /* @__PURE__ */ _(Og, [["render", Bg]]), Fg = ie({
|
|
5960
5960
|
name: "UzNumberRoll",
|
|
5961
5961
|
props: {
|
|
5962
5962
|
value: {
|
|
@@ -5994,7 +5994,7 @@ const Nc = /* @__PURE__ */ _(Og, [["render", Bg]]), Fg = le({
|
|
|
5994
5994
|
const s = (u = 0, p = e.value) => {
|
|
5995
5995
|
t.value = !0, r.value = a(u), String(u) !== String(p) && o(u, Number(p));
|
|
5996
5996
|
};
|
|
5997
|
-
return
|
|
5997
|
+
return ue(
|
|
5998
5998
|
() => e.value,
|
|
5999
5999
|
(u, p) => {
|
|
6000
6000
|
s(Number(p) || 0, Number(u));
|
|
@@ -6009,7 +6009,7 @@ const Nc = /* @__PURE__ */ _(Og, [["render", Bg]]), Fg = le({
|
|
|
6009
6009
|
function Vg(e, t, r, n, a, o) {
|
|
6010
6010
|
return H(e.displayedValueRef);
|
|
6011
6011
|
}
|
|
6012
|
-
const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg =
|
|
6012
|
+
const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = ie({
|
|
6013
6013
|
name: "UzCamera",
|
|
6014
6014
|
components: {
|
|
6015
6015
|
NButton: ge,
|
|
@@ -6097,7 +6097,7 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = le({
|
|
|
6097
6097
|
e.mode === "video" && g();
|
|
6098
6098
|
}), qa(() => {
|
|
6099
6099
|
I();
|
|
6100
|
-
}),
|
|
6100
|
+
}), ue([() => e.width, () => e.width], () => {
|
|
6101
6101
|
e.mode === "video" && (I(), g());
|
|
6102
6102
|
}), {
|
|
6103
6103
|
videoRef: r,
|
|
@@ -6113,7 +6113,7 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = le({
|
|
|
6113
6113
|
};
|
|
6114
6114
|
function Gg(e, t, r, n, a, o) {
|
|
6115
6115
|
const s = $("NButton"), u = $("NModal");
|
|
6116
|
-
return c(), w(
|
|
6116
|
+
return c(), w(le, null, [
|
|
6117
6117
|
e.mode === "button" ? (c(), R(s, {
|
|
6118
6118
|
key: 0,
|
|
6119
6119
|
type: "primary",
|
|
@@ -6171,7 +6171,7 @@ function Gg(e, t, r, n, a, o) {
|
|
|
6171
6171
|
])
|
|
6172
6172
|
], 64);
|
|
6173
6173
|
}
|
|
6174
|
-
const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg =
|
|
6174
|
+
const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = ie({
|
|
6175
6175
|
name: "UzSearchBar",
|
|
6176
6176
|
components: {
|
|
6177
6177
|
NIcon: ve,
|
|
@@ -6287,7 +6287,7 @@ const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = le({
|
|
|
6287
6287
|
n.value[f.value] = q;
|
|
6288
6288
|
m(!0);
|
|
6289
6289
|
};
|
|
6290
|
-
return
|
|
6290
|
+
return ue(
|
|
6291
6291
|
() => e.data,
|
|
6292
6292
|
(q) => {
|
|
6293
6293
|
U(q);
|
|
@@ -6337,7 +6337,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6337
6337
|
default: k(() => [
|
|
6338
6338
|
T(u, null, {
|
|
6339
6339
|
default: k(() => [
|
|
6340
|
-
(c(!0), w(
|
|
6340
|
+
(c(!0), w(le, null, ke(e.tabList, (x) => (c(), R(s, {
|
|
6341
6341
|
key: x.value,
|
|
6342
6342
|
type: e.tabButtonType(x),
|
|
6343
6343
|
secondary: "",
|
|
@@ -6358,7 +6358,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6358
6358
|
key: 1,
|
|
6359
6359
|
offset: e.offset
|
|
6360
6360
|
}, null, 8, ["offset"])) : J("", !0),
|
|
6361
|
-
(c(!0), w(
|
|
6361
|
+
(c(!0), w(le, null, ke(e.itemData, (x, N) => (c(), R(p, {
|
|
6362
6362
|
key: `${N}_${Date.now()}`,
|
|
6363
6363
|
span: x.search.show ? e.gridSpan : 0
|
|
6364
6364
|
}, {
|
|
@@ -6409,7 +6409,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6409
6409
|
}, {
|
|
6410
6410
|
icon: k(() => [
|
|
6411
6411
|
T(l, {
|
|
6412
|
-
class:
|
|
6412
|
+
class: ce(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
|
|
6413
6413
|
}, {
|
|
6414
6414
|
default: k(() => [
|
|
6415
6415
|
T(g)
|
|
@@ -6464,7 +6464,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6464
6464
|
])
|
|
6465
6465
|
], 32);
|
|
6466
6466
|
}
|
|
6467
|
-
const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 =
|
|
6467
|
+
const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = ie({
|
|
6468
6468
|
name: "UzSearchMobileBar",
|
|
6469
6469
|
components: {
|
|
6470
6470
|
NIcon: ve,
|
|
@@ -6540,7 +6540,7 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = le({
|
|
|
6540
6540
|
}
|
|
6541
6541
|
p(!0);
|
|
6542
6542
|
};
|
|
6543
|
-
return
|
|
6543
|
+
return ue(
|
|
6544
6544
|
() => e.data,
|
|
6545
6545
|
(y) => {
|
|
6546
6546
|
I(y);
|
|
@@ -6556,7 +6556,7 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = le({
|
|
|
6556
6556
|
}), r2 = { class: "flex items-start justify-between gap-8 pb-2" }, n2 = { class: "flex gap-2" }, a2 = { class: "flex items-center gap-2 w-full" };
|
|
6557
6557
|
function o2(e, t, r, n, a, o) {
|
|
6558
6558
|
const s = $("Search"), u = $("NIcon"), p = $("NButton"), h = $("NInputGroupLabel"), b = $("UzFormItem"), I = $("NInputGroup"), y = $("NGridItem"), f = $("NGrid"), g = $("Refresh"), l = $("NDrawerContent"), v = $("NDrawer");
|
|
6559
|
-
return c(), w(
|
|
6559
|
+
return c(), w(le, null, [
|
|
6560
6560
|
i("div", r2, [
|
|
6561
6561
|
xe(e.$slots, "header"),
|
|
6562
6562
|
i("div", n2, [
|
|
@@ -6640,7 +6640,7 @@ function o2(e, t, r, n, a, o) {
|
|
|
6640
6640
|
cols: "1"
|
|
6641
6641
|
}, {
|
|
6642
6642
|
default: k(() => [
|
|
6643
|
-
(c(!0), w(
|
|
6643
|
+
(c(!0), w(le, null, ke(e.itemData, (m, d) => (c(), R(y, {
|
|
6644
6644
|
key: `${d}_${Date.now()}`,
|
|
6645
6645
|
span: m.search.show ? 1 : 0
|
|
6646
6646
|
}, {
|
|
@@ -7203,10 +7203,10 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7203
7203
|
if (!v.form.edit.show)
|
|
7204
7204
|
v = null;
|
|
7205
7205
|
else {
|
|
7206
|
-
if (v.ellipsis = !1, v.resizable = !1, he.isMobile && (v.show = l.table.mobile), l.table.show && (r === 0 && (v.show = l.form.create.show), r === 1 && (v.show = l.form.edit.show), r === 2 && (v.show = l.form.show)), (g = l.form.rule) != null && g.required &&
|
|
7206
|
+
if (v.ellipsis = !1, v.resizable = !1, he.isMobile && (v.show = l.table.mobile), l.table.show && (r === 0 && (v.show = l.form.create.show), r === 1 && (v.show = l.form.edit.show), r === 2 && (v.show = l.form.show)), (g = l.form.rule) != null && g.required && typeof l.form.rule.validator == "string") {
|
|
7207
7207
|
delete l.form.rule.message;
|
|
7208
7208
|
const m = l.form.rule.validator, d = new Function("rule", "value", "index", "formValues", m);
|
|
7209
|
-
l.form.rule.validator = (x, N) => d(x, N, x.index, () => n());
|
|
7209
|
+
l.form.rule.validator !== "" ? l.form.rule.validator = (x, N) => n()[x.index].delete ? !0 : d(x, N, x.index, () => n()) : l.form.rule.validator = (x, N) => n()[x.index].delete || N ? !0 : new Error(l.form.rule.message);
|
|
7210
7210
|
}
|
|
7211
7211
|
v.render = function(m, d) {
|
|
7212
7212
|
var x;
|
|
@@ -7288,7 +7288,7 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7288
7288
|
tableWidth: o
|
|
7289
7289
|
};
|
|
7290
7290
|
}
|
|
7291
|
-
const h2 =
|
|
7291
|
+
const h2 = ie({
|
|
7292
7292
|
name: "UzSpin",
|
|
7293
7293
|
components: {
|
|
7294
7294
|
NButton: ge,
|
|
@@ -7324,7 +7324,7 @@ const h2 = le({
|
|
|
7324
7324
|
};
|
|
7325
7325
|
return Vl(() => {
|
|
7326
7326
|
clearInterval(r.value);
|
|
7327
|
-
}),
|
|
7327
|
+
}), ue(
|
|
7328
7328
|
() => e.status,
|
|
7329
7329
|
(u) => {
|
|
7330
7330
|
u === 1 && s();
|
|
@@ -7372,7 +7372,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7372
7372
|
_: 3
|
|
7373
7373
|
}, 8, ["show"]);
|
|
7374
7374
|
}
|
|
7375
|
-
const Ic = /* @__PURE__ */ _(h2, [["render", w2]]), m2 =
|
|
7375
|
+
const Ic = /* @__PURE__ */ _(h2, [["render", w2]]), m2 = ie({
|
|
7376
7376
|
name: "UzOcr",
|
|
7377
7377
|
components: {
|
|
7378
7378
|
NButton: ge,
|
|
@@ -7466,7 +7466,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7466
7466
|
}, 8, ["on-before-upload"]),
|
|
7467
7467
|
t[0] || (t[0] = i("br", null, null, -1)),
|
|
7468
7468
|
i("div", g2, [
|
|
7469
|
-
(c(!0), w(
|
|
7469
|
+
(c(!0), w(le, null, ke(e.text, (b) => (c(), w("div", {
|
|
7470
7470
|
key: b,
|
|
7471
7471
|
class: "uz-ocr-text flex items-center"
|
|
7472
7472
|
}, [
|
|
@@ -7484,7 +7484,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7484
7484
|
], 512)
|
|
7485
7485
|
]);
|
|
7486
7486
|
}
|
|
7487
|
-
const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14"]]), k2 =
|
|
7487
|
+
const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14"]]), k2 = ie({
|
|
7488
7488
|
name: "UzTable",
|
|
7489
7489
|
components: {
|
|
7490
7490
|
NDataTable: La,
|
|
@@ -7648,7 +7648,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7648
7648
|
when_edit: null,
|
|
7649
7649
|
when_delete: null,
|
|
7650
7650
|
when_before_save: ""
|
|
7651
|
-
}),
|
|
7651
|
+
}), se = S({
|
|
7652
7652
|
fetch: null,
|
|
7653
7653
|
when_open: null,
|
|
7654
7654
|
when_create: null,
|
|
@@ -7784,7 +7784,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7784
7784
|
M,
|
|
7785
7785
|
() => b.value.getValues()
|
|
7786
7786
|
);
|
|
7787
|
-
return l.value = B, L.value =
|
|
7787
|
+
return l.value = B, L.value = se.value, W;
|
|
7788
7788
|
}, Ue = async (M) => new Promise((B, W) => {
|
|
7789
7789
|
const ae = e.id || a.params.id;
|
|
7790
7790
|
let P;
|
|
@@ -7827,7 +7827,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7827
7827
|
}).catch(() => null);
|
|
7828
7828
|
} catch {
|
|
7829
7829
|
}
|
|
7830
|
-
Tt.value = M.optionsSource || "
|
|
7830
|
+
Tt.value = M.optionsSource || "", St.value = !0;
|
|
7831
7831
|
} else
|
|
7832
7832
|
t("update:suffixes", {
|
|
7833
7833
|
title: M.buttonText,
|
|
@@ -8099,7 +8099,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8099
8099
|
when_edit: null,
|
|
8100
8100
|
when_delete: null,
|
|
8101
8101
|
when_before_save: ""
|
|
8102
|
-
},
|
|
8102
|
+
}, se.value = {
|
|
8103
8103
|
fetch: null,
|
|
8104
8104
|
when_open: null,
|
|
8105
8105
|
when_create: null,
|
|
@@ -8111,7 +8111,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8111
8111
|
const B = tt.parse(M.viewJson);
|
|
8112
8112
|
g.value = M.tableTitle, z.value = bt(B.table), A.value = Bt(e.actions || B.action);
|
|
8113
8113
|
const W = Bt(B.suffix || []);
|
|
8114
|
-
O.value = W.map((P) => (vo(P), P)), L.value = Na(B.trigger),
|
|
8114
|
+
O.value = W.map((P) => (vo(P), P)), L.value = Na(B.trigger), se.value = Na(B.trigger);
|
|
8115
8115
|
const ae = ut(e.options ?? B.option);
|
|
8116
8116
|
M.tableTitle && ae.title && Sm(M.tableTitle), K.value = ae;
|
|
8117
8117
|
}, qt = async () => {
|
|
@@ -8170,13 +8170,13 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8170
8170
|
};
|
|
8171
8171
|
return r({ rebuild: qt, init: me }), Ge(async () => {
|
|
8172
8172
|
await qt();
|
|
8173
|
-
}),
|
|
8173
|
+
}), ue(
|
|
8174
8174
|
() => m.value,
|
|
8175
8175
|
() => {
|
|
8176
8176
|
lr();
|
|
8177
8177
|
},
|
|
8178
8178
|
{ deep: !0 }
|
|
8179
|
-
),
|
|
8179
|
+
), ue([() => a.params.id, () => e.id], async () => {
|
|
8180
8180
|
cr(), await qt();
|
|
8181
8181
|
}), {
|
|
8182
8182
|
loading: I,
|
|
@@ -8302,7 +8302,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8302
8302
|
default: k(() => [
|
|
8303
8303
|
e.isMobile ? (c(), w("div", {
|
|
8304
8304
|
key: 0,
|
|
8305
|
-
class:
|
|
8305
|
+
class: ce([e.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
8306
8306
|
}, [
|
|
8307
8307
|
T(I, {
|
|
8308
8308
|
data: e.searchData,
|
|
@@ -8621,7 +8621,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8621
8621
|
}, null, 8, ["show", "link", "mainData"])
|
|
8622
8622
|
]);
|
|
8623
8623
|
}
|
|
8624
|
-
const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 =
|
|
8624
|
+
const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
8625
8625
|
name: "UzTableChild",
|
|
8626
8626
|
components: { NButton: ge, NIcon: ve, NDataTable: La, NForm: Fa, NDivider: Ra, Plus: dt, GridDots: yt },
|
|
8627
8627
|
props: {
|
|
@@ -8646,16 +8646,16 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
|
8646
8646
|
z
|
|
8647
8647
|
);
|
|
8648
8648
|
e.item.params.init && (v.value = Q(A));
|
|
8649
|
-
const L = Q(z).map((
|
|
8650
|
-
...
|
|
8649
|
+
const L = Q(z).map((se, K) => ({
|
|
8650
|
+
...se,
|
|
8651
8651
|
...O[K]
|
|
8652
8652
|
}));
|
|
8653
8653
|
if (e.item.params.link) {
|
|
8654
|
-
const
|
|
8654
|
+
const se = [];
|
|
8655
8655
|
e.item.params.columns.forEach((K) => {
|
|
8656
|
-
(K.input === "cascader" || K.input === "select") && K.params.multiple &&
|
|
8656
|
+
(K.input === "cascader" || K.input === "select") && K.params.multiple && se.push(K.key);
|
|
8657
8657
|
}), e.item.params.draggable && L.sort((K, re) => K.sort_index - re.sort_index), L && L.forEach((K) => {
|
|
8658
|
-
|
|
8658
|
+
se.forEach((re) => {
|
|
8659
8659
|
K[re] && typeof K[re] == "string" && (K[re] = JSON.parse(K[re]));
|
|
8660
8660
|
});
|
|
8661
8661
|
}), e.item.params.init && L.length === 0 ? g.value.child = [Q(v.value)] : g.value.child = L, b.value = !1, Ee(() => {
|
|
@@ -8710,7 +8710,7 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
|
8710
8710
|
);
|
|
8711
8711
|
}
|
|
8712
8712
|
}), L = L + 40), e.status !== 2) {
|
|
8713
|
-
const
|
|
8713
|
+
const se = {
|
|
8714
8714
|
title: () => s("Common.action"),
|
|
8715
8715
|
key: "action",
|
|
8716
8716
|
align: "center",
|
|
@@ -8744,7 +8744,7 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
|
8744
8744
|
});
|
|
8745
8745
|
}
|
|
8746
8746
|
};
|
|
8747
|
-
A.push(
|
|
8747
|
+
A.push(se);
|
|
8748
8748
|
}
|
|
8749
8749
|
f.value = A, L = L + 180, m.value = L;
|
|
8750
8750
|
}, U = (z) => {
|
|
@@ -8798,13 +8798,16 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
|
8798
8798
|
var z;
|
|
8799
8799
|
(z = h.value) == null || z.restoreValidation();
|
|
8800
8800
|
}, C = () => (l.value = "", new Promise((z, A) => {
|
|
8801
|
-
var
|
|
8802
|
-
|
|
8801
|
+
var L;
|
|
8802
|
+
const O = g.value.child.filter(
|
|
8803
|
+
(se) => !se.delete
|
|
8804
|
+
).length;
|
|
8805
|
+
if (e.item.form.rule.required && O === 0) {
|
|
8803
8806
|
l.value = e.item.form.rule.message, A();
|
|
8804
8807
|
return;
|
|
8805
8808
|
}
|
|
8806
|
-
(
|
|
8807
|
-
|
|
8809
|
+
(L = h.value) == null || L.validate((se) => {
|
|
8810
|
+
se ? A() : z();
|
|
8808
8811
|
});
|
|
8809
8812
|
})), j = () => {
|
|
8810
8813
|
if (e.item.params.draggable && e.status !== 2 && u.value && !p.value) {
|
|
@@ -8818,8 +8821,8 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
|
8818
8821
|
var K;
|
|
8819
8822
|
(K = p.value) == null || K.destroy(), p.value = null, I.value = !1;
|
|
8820
8823
|
let L = Q(g.value.child);
|
|
8821
|
-
const
|
|
8822
|
-
L.splice(O, 0,
|
|
8824
|
+
const se = L.splice(A, 1)[0];
|
|
8825
|
+
L.splice(O, 0, se), L = L.map((re, de) => ({
|
|
8823
8826
|
...re,
|
|
8824
8827
|
sort_index: de
|
|
8825
8828
|
})), g.value.child = L, Ee(() => {
|
|
@@ -8834,24 +8837,24 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
|
8834
8837
|
}), qa(() => {
|
|
8835
8838
|
var z;
|
|
8836
8839
|
(z = p.value) == null || z.destroy(), p.value = null;
|
|
8837
|
-
}), r({ validate: C, restoreValidation: D }),
|
|
8840
|
+
}), r({ validate: C, restoreValidation: D }), ue(
|
|
8838
8841
|
() => e.value,
|
|
8839
8842
|
(z, A) => {
|
|
8840
8843
|
JSON.stringify(z) !== JSON.stringify(A) && d(z);
|
|
8841
8844
|
},
|
|
8842
8845
|
{ deep: !0 }
|
|
8843
|
-
),
|
|
8846
|
+
), ue(
|
|
8844
8847
|
() => e.item.params.columns,
|
|
8845
8848
|
async (z) => {
|
|
8846
8849
|
await V(z), d(e.value);
|
|
8847
8850
|
}
|
|
8848
|
-
),
|
|
8851
|
+
), ue(
|
|
8849
8852
|
() => f.value,
|
|
8850
8853
|
() => {
|
|
8851
8854
|
x();
|
|
8852
8855
|
},
|
|
8853
8856
|
{ deep: !0 }
|
|
8854
|
-
),
|
|
8857
|
+
), ue(
|
|
8855
8858
|
() => g.value.child,
|
|
8856
8859
|
(z) => {
|
|
8857
8860
|
JSON.stringify(z) !== JSON.stringify(e.value) && t("update:value", z);
|
|
@@ -8944,7 +8947,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8944
8947
|
pagination: !1,
|
|
8945
8948
|
summary: e.summaryData,
|
|
8946
8949
|
"scroll-x": e.tableScrollX,
|
|
8947
|
-
class:
|
|
8950
|
+
class: ce([e.message ? "error-border" : void 0, "uz-table-child"]),
|
|
8948
8951
|
size: "small",
|
|
8949
8952
|
"row-class-name": e.rowClassName,
|
|
8950
8953
|
"scrollbar-props": { size: 8, trigger: "hover" },
|
|
@@ -8997,7 +9000,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8997
9000
|
}, 8, ["model"])
|
|
8998
9001
|
]);
|
|
8999
9002
|
}
|
|
9000
|
-
const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 =
|
|
9003
|
+
const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
9001
9004
|
name: "UzTableQuestChild",
|
|
9002
9005
|
components: { NDataTable: La },
|
|
9003
9006
|
props: {
|
|
@@ -9087,7 +9090,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = le({
|
|
|
9087
9090
|
}
|
|
9088
9091
|
return [];
|
|
9089
9092
|
};
|
|
9090
|
-
return
|
|
9093
|
+
return ue(
|
|
9091
9094
|
() => e.item.params.columns,
|
|
9092
9095
|
async (l) => {
|
|
9093
9096
|
await f(l);
|
|
@@ -9111,7 +9114,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = le({
|
|
|
9111
9114
|
} catch {
|
|
9112
9115
|
I([]);
|
|
9113
9116
|
}
|
|
9114
|
-
}),
|
|
9117
|
+
}), ue(
|
|
9115
9118
|
() => p.value,
|
|
9116
9119
|
() => {
|
|
9117
9120
|
y();
|
|
@@ -9158,7 +9161,7 @@ function G2(e, t, r, n, a, o) {
|
|
|
9158
9161
|
}, null, 8, ["show", "link", "mainData"])
|
|
9159
9162
|
]);
|
|
9160
9163
|
}
|
|
9161
|
-
const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 =
|
|
9164
|
+
const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
9162
9165
|
name: "UzTableDrawer",
|
|
9163
9166
|
components: {
|
|
9164
9167
|
NButton: ge,
|
|
@@ -9286,7 +9289,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
|
9286
9289
|
p.value = !1;
|
|
9287
9290
|
});
|
|
9288
9291
|
};
|
|
9289
|
-
return
|
|
9292
|
+
return ue(
|
|
9290
9293
|
() => e.show,
|
|
9291
9294
|
(d) => {
|
|
9292
9295
|
d && l();
|
|
@@ -9418,7 +9421,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9418
9421
|
_: 1
|
|
9419
9422
|
}, 8, ["show", "width", "height", "placement", "on-after-leave", "on-esc"]);
|
|
9420
9423
|
}
|
|
9421
|
-
const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty =
|
|
9424
|
+
const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = ie({
|
|
9422
9425
|
name: "UzTableMobileList",
|
|
9423
9426
|
props: {
|
|
9424
9427
|
tableData: { type: Object, default: () => {
|
|
@@ -9435,12 +9438,12 @@ const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = le({
|
|
|
9435
9438
|
};
|
|
9436
9439
|
function ay(e, t, r, n, a, o) {
|
|
9437
9440
|
return c(), w("div", ry, [
|
|
9438
|
-
(c(!0), w(
|
|
9441
|
+
(c(!0), w(le, null, ke(e.tableColumns, (s) => (c(), w("div", {
|
|
9439
9442
|
key: s.key,
|
|
9440
|
-
class:
|
|
9443
|
+
class: ce(["flex overflow-hidden", s.lineBreak ? "flex-col" : ""]),
|
|
9441
9444
|
style: $e(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
|
|
9442
9445
|
}, [
|
|
9443
|
-
s.key === "action" ? (c(), w(
|
|
9446
|
+
s.key === "action" ? (c(), w(le, { key: 0 }, [
|
|
9444
9447
|
s.render ? (c(), R(go(
|
|
9445
9448
|
() => {
|
|
9446
9449
|
if (e.tableData)
|
|
@@ -9450,14 +9453,14 @@ function ay(e, t, r, n, a, o) {
|
|
|
9450
9453
|
key: 0,
|
|
9451
9454
|
class: "mobile"
|
|
9452
9455
|
})) : J("", !0)
|
|
9453
|
-
], 64)) : (c(), w(
|
|
9456
|
+
], 64)) : (c(), w(le, { key: 1 }, [
|
|
9454
9457
|
i("div", {
|
|
9455
|
-
class:
|
|
9458
|
+
class: ce(["uz-table-mobile-group-title", s.lineBreak ? "line-break" : ""])
|
|
9456
9459
|
}, [
|
|
9457
9460
|
i("div", null, H(typeof s.title == "string" ? s.title : s.title()), 1)
|
|
9458
9461
|
], 2),
|
|
9459
9462
|
i("div", {
|
|
9460
|
-
class:
|
|
9463
|
+
class: ce(["uz-table-mobile-group-content", s.lineBreak ? "line-break" : ""])
|
|
9461
9464
|
}, [
|
|
9462
9465
|
s.render ? (c(), R(go(
|
|
9463
9466
|
() => {
|
|
@@ -9470,7 +9473,7 @@ function ay(e, t, r, n, a, o) {
|
|
|
9470
9473
|
], 6))), 128))
|
|
9471
9474
|
]);
|
|
9472
9475
|
}
|
|
9473
|
-
const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935"]]), sy =
|
|
9476
|
+
const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935"]]), sy = ie({
|
|
9474
9477
|
name: "UzTableMobile",
|
|
9475
9478
|
components: {
|
|
9476
9479
|
NCheckbox: Oa,
|
|
@@ -9530,7 +9533,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9530
9533
|
"on-update:value": e.checkChange
|
|
9531
9534
|
}, {
|
|
9532
9535
|
default: k(() => [
|
|
9533
|
-
(c(!0), w(
|
|
9536
|
+
(c(!0), w(le, null, ke(e.tableData, (y, f) => (c(), R(u, {
|
|
9534
9537
|
key: y.id,
|
|
9535
9538
|
class: "uz-com-card flex gap-2",
|
|
9536
9539
|
value: y.id
|
|
@@ -9568,7 +9571,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9568
9571
|
"on-update:value": e.radioChange
|
|
9569
9572
|
}, {
|
|
9570
9573
|
default: k(() => [
|
|
9571
|
-
(c(!0), w(
|
|
9574
|
+
(c(!0), w(le, null, ke(e.tableData, (y, f) => (c(), R(b, {
|
|
9572
9575
|
key: y.id,
|
|
9573
9576
|
class: "uz-com-card flex gap-2",
|
|
9574
9577
|
value: y.id
|
|
@@ -9602,7 +9605,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9602
9605
|
maxHeight: e.maxH
|
|
9603
9606
|
})
|
|
9604
9607
|
}, [
|
|
9605
|
-
(c(!0), w(
|
|
9608
|
+
(c(!0), w(le, null, ke(e.tableData, (y, f) => (c(), w("div", {
|
|
9606
9609
|
key: y.id,
|
|
9607
9610
|
class: "uz-com-card flex flex-col gap-2"
|
|
9608
9611
|
}, [
|
|
@@ -9675,7 +9678,7 @@ function qc(e) {
|
|
|
9675
9678
|
function zc() {
|
|
9676
9679
|
Y.active = Y.page.path, Y.thumbnail = [Y.page], Ke.push(Y.page.path), Me(Y.cache, Y, 0);
|
|
9677
9680
|
}
|
|
9678
|
-
const py =
|
|
9681
|
+
const py = ie({
|
|
9679
9682
|
name: "UzThumbnail",
|
|
9680
9683
|
components: {
|
|
9681
9684
|
NTabs: ld,
|
|
@@ -9706,7 +9709,7 @@ const py = le({
|
|
|
9706
9709
|
};
|
|
9707
9710
|
return Ge(() => {
|
|
9708
9711
|
Ml(e.option), Y.active !== n.path && Sl(n.path, n.fullPath);
|
|
9709
|
-
}),
|
|
9712
|
+
}), ue(
|
|
9710
9713
|
() => n,
|
|
9711
9714
|
(u) => {
|
|
9712
9715
|
Y.active === n.path && Sl(u.path, u.fullPath);
|
|
@@ -9714,7 +9717,7 @@ const py = le({
|
|
|
9714
9717
|
{
|
|
9715
9718
|
deep: !0
|
|
9716
9719
|
}
|
|
9717
|
-
),
|
|
9720
|
+
), ue(
|
|
9718
9721
|
() => e.option,
|
|
9719
9722
|
(u) => {
|
|
9720
9723
|
Ml(u);
|
|
@@ -9771,7 +9774,7 @@ function hy(e, t, r, n, a, o) {
|
|
|
9771
9774
|
})
|
|
9772
9775
|
]),
|
|
9773
9776
|
default: k(() => [
|
|
9774
|
-
(c(!0), w(
|
|
9777
|
+
(c(!0), w(le, null, ke(e.thumbnailStore.thumbnail, (f) => (c(), R(s, {
|
|
9775
9778
|
key: f.key,
|
|
9776
9779
|
name: f.key,
|
|
9777
9780
|
tab: f.label,
|
|
@@ -9839,7 +9842,7 @@ const by = {
|
|
|
9839
9842
|
Radio: {
|
|
9840
9843
|
boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
|
|
9841
9844
|
}
|
|
9842
|
-
}, _y = We, xy =
|
|
9845
|
+
}, _y = We, xy = ie({
|
|
9843
9846
|
name: "UzWrap",
|
|
9844
9847
|
components: {
|
|
9845
9848
|
NConfigProvider: id
|
|
@@ -10124,8 +10127,8 @@ function Ac() {
|
|
|
10124
10127
|
return v = A, g = setTimeout(q, p), m ? N(A) : f;
|
|
10125
10128
|
}
|
|
10126
10129
|
function U(A) {
|
|
10127
|
-
var O = A - l, L = A - v,
|
|
10128
|
-
return d ? o(
|
|
10130
|
+
var O = A - l, L = A - v, se = p - O;
|
|
10131
|
+
return d ? o(se, y - L) : se;
|
|
10129
10132
|
}
|
|
10130
10133
|
function F(A) {
|
|
10131
10134
|
var O = A - l, L = A - v;
|
|
@@ -10315,7 +10318,7 @@ function gk(e, t, r) {
|
|
|
10315
10318
|
refetch: d
|
|
10316
10319
|
};
|
|
10317
10320
|
}
|
|
10318
|
-
const Ry = "0.0.
|
|
10321
|
+
const Ry = "0.0.7";
|
|
10319
10322
|
let Rc;
|
|
10320
10323
|
async function Bc() {
|
|
10321
10324
|
const e = await fetch(
|