@web-utils/component 4.0.6 → 4.0.8
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/chat/index.mjs +3 -2
- package/chunks/configComponents.CpKi15WN.mjs +49 -0
- package/chunks/{dictionary.D9gKwItv.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
- package/chunks/index.BmYCjxZQ.mjs +47 -0
- package/confirm-button/index.mjs +14 -9
- package/confirmable/index.mjs +13 -8
- package/data-table-picker/index.mjs +10 -8
- package/editable-tree/index.mjs +3 -2
- package/element-dialog/index.mjs +3 -2
- package/flex-column/index.mjs +6 -5
- package/flex-item/index.mjs +6 -5
- package/flex-row/index.mjs +3 -2
- package/flow/index.mjs +3 -2
- package/flow-node/index.mjs +4 -3
- package/form-cascader/index.mjs +17 -13
- package/form-checkbox/index.mjs +12 -7
- package/form-checkbox-group/index.mjs +14 -9
- package/form-date-picker/index.mjs +10 -5
- package/form-holder/index.mjs +5 -4
- package/form-input/index.mjs +11 -6
- package/form-input-cron-expression/index.mjs +13 -8
- package/form-input-email/index.mjs +17 -12
- package/form-input-id-card/index.mjs +19 -15
- package/form-input-number/index.mjs +23 -16
- package/form-input-phone-number/index.mjs +12 -8
- package/form-input-tag/index.mjs +12 -7
- package/form-input-time/index.mjs +7 -2
- package/form-item/index.mjs +6 -2
- package/form-radio-group/index.mjs +12 -7
- package/form-select/index.mjs +6 -2
- package/form-switch/index.mjs +12 -7
- package/form-table/index.mjs +28 -22
- package/form-table-plus/index.mjs +14 -10
- package/form-textarea/index.mjs +11 -6
- package/form-tree-select/index.mjs +17 -9
- package/form-tree-select-multiple/index.mjs +19 -11
- package/fy-array/index.mjs +5 -2
- package/fy-cascader/index.mjs +17 -13
- package/fy-checkbox/index.mjs +23 -19
- package/fy-code/index.mjs +10 -9
- package/fy-curd/index.mjs +4 -2
- package/fy-date/index.mjs +9 -5
- package/fy-draggable/index.mjs +3 -2
- package/fy-dynamic/index.mjs +14 -11
- package/fy-empty/index.mjs +4 -3
- package/fy-form/index.mjs +5 -2
- package/fy-input/index.mjs +14 -10
- package/fy-input-color/index.mjs +15 -11
- package/fy-input-icon/index.mjs +8 -4
- package/fy-input-map/index.mjs +8 -5
- package/fy-input-number/index.mjs +16 -12
- package/fy-input-table/index.mjs +5 -2
- package/fy-input-tree/index.mjs +5 -2
- package/fy-radio/index.mjs +13 -9
- package/fy-rate/index.mjs +11 -7
- package/fy-select/index.mjs +4 -2
- package/fy-slider/index.mjs +10 -7
- package/fy-switch/index.mjs +9 -5
- package/fy-time/index.mjs +6 -3
- package/fy-title/index.mjs +16 -12
- package/fy-u-editor/index.mjs +3 -2
- package/fy-upload/index.mjs +4 -2
- package/image-cropper/index.mjs +3 -2
- package/index.mjs +682 -743
- package/license/index.mjs +3 -2
- package/package.json +1 -1
- package/pageable-table/index.mjs +6 -3
- package/pageable-view/index.mjs +7 -6
- package/photo-swipe/index.mjs +15 -56
- package/picker-table-view/index.mjs +24 -23
- package/record-video/index.mjs +11 -10
- package/resize-observer/index.mjs +3 -2
- package/search/index.mjs +4 -2
- package/sign/index.mjs +3 -2
- package/table-column/index.mjs +6 -3
- package/table-view/index.mjs +18 -17
- package/tabs-view/index.mjs +1 -1
- package/text-ellipsis/index.mjs +3 -2
- package/toolbar/index.mjs +4 -3
- package/toolbar-button/index.mjs +4 -3
- package/verify/index.mjs +8 -7
- package/watermark/index.mjs +15 -14
- package/web-types.json +1 -1
- package/chunks/configComponents.BHkQi547.mjs +0 -45
package/chat/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { formatDate as r } from "@web-utils/integrations/dayjs";
|
|
2
2
|
import { s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
3
3
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
import "@web-utils/core";
|
|
4
5
|
const d = {
|
|
5
6
|
name: "Chat",
|
|
6
7
|
props: {
|
|
@@ -260,7 +261,7 @@ var u = function() {
|
|
|
260
261
|
null,
|
|
261
262
|
null
|
|
262
263
|
);
|
|
263
|
-
const
|
|
264
|
+
const b = m.exports;
|
|
264
265
|
export {
|
|
265
|
-
|
|
266
|
+
b as default
|
|
266
267
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { isObject as i, isString as c } from "@web-utils/core";
|
|
2
|
+
import { merge as a } from "@web-utils/integrations/lodash";
|
|
3
|
+
const r = {
|
|
4
|
+
privilege: {
|
|
5
|
+
processButtons(e) {
|
|
6
|
+
return e.map((t) => {
|
|
7
|
+
if (i(t)) {
|
|
8
|
+
const o = t, s = {};
|
|
9
|
+
for (const n in o)
|
|
10
|
+
c(o[n]) && (s[n] = p(o[n]) ?? !0);
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
hasAuthority(e) {
|
|
17
|
+
return !0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}, l = (e) => {
|
|
21
|
+
var t, o;
|
|
22
|
+
return (o = (t = r.privilege) == null ? void 0 : t.processButtons) == null ? void 0 : o.call(t, e);
|
|
23
|
+
}, p = (e) => {
|
|
24
|
+
var t, o;
|
|
25
|
+
return (o = (t = r.privilege) == null ? void 0 : t.hasAuthority) == null ? void 0 : o.call(t, e);
|
|
26
|
+
}, m = (e) => {
|
|
27
|
+
var t, o;
|
|
28
|
+
return (o = (t = r.toolbar) == null ? void 0 : t.goBack) == null ? void 0 : o.call(t, e);
|
|
29
|
+
}, b = () => {
|
|
30
|
+
var e, t;
|
|
31
|
+
return (t = (e = r.tableView) == null ? void 0 : e.reload) == null ? void 0 : t.call(e);
|
|
32
|
+
}, y = (e, t) => {
|
|
33
|
+
var o, s;
|
|
34
|
+
return (s = (o = r.dict) == null ? void 0 : o.getDictTreeByType) == null ? void 0 : s.call(o, e, t);
|
|
35
|
+
}, f = (e) => {
|
|
36
|
+
var t, o;
|
|
37
|
+
return (o = (t = r.dict) == null ? void 0 : t.remote) == null ? void 0 : o.call(t, e);
|
|
38
|
+
}, h = (e) => {
|
|
39
|
+
a(r, e);
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
b as a,
|
|
43
|
+
m as b,
|
|
44
|
+
h as c,
|
|
45
|
+
y as g,
|
|
46
|
+
p as h,
|
|
47
|
+
l as p,
|
|
48
|
+
f as r
|
|
49
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as D, a as l } from "./core.DJEgjQW6.mjs";
|
|
2
|
-
import { g as d, r as w } from "./configComponents.
|
|
2
|
+
import { g as d, r as w } from "./configComponents.CpKi15WN.mjs";
|
|
3
3
|
const $ = {}, h = {}, m = {}, C = (t, i = !0, { options: r, treeDict: o, idAsValue: n, labelAsValue: c } = {}) => {
|
|
4
4
|
let e = t;
|
|
5
5
|
o && (e = `${t}-${n}-${c}${r ? "-options" : ""}`);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import s from "photoswipe";
|
|
2
|
+
import "photoswipe/dist/photoswipe.css";
|
|
3
|
+
function d(h) {
|
|
4
|
+
new s(h).init();
|
|
5
|
+
}
|
|
6
|
+
async function b(h, n, r = { selector: "chat-image" }) {
|
|
7
|
+
const a = h.target;
|
|
8
|
+
if (!(!a || a.classList.contains(r.selector) || a.tagName === "IMG"))
|
|
9
|
+
return;
|
|
10
|
+
const t = n.querySelectorAll(r.selector === "img" ? r.selector : `.${r.selector}`), i = [...t].findIndex((o) => o === a);
|
|
11
|
+
i >= 0 && (r.index = i);
|
|
12
|
+
const e = await u(t);
|
|
13
|
+
await d({ dataSource: e, index: i });
|
|
14
|
+
}
|
|
15
|
+
async function u(h) {
|
|
16
|
+
const n = [];
|
|
17
|
+
for (let r = 0, a = h.length; r < a; r++) {
|
|
18
|
+
const t = h[r], i = t.getAttribute("data-src") || t.getAttribute("src"), e = {
|
|
19
|
+
src: i,
|
|
20
|
+
msrc: i,
|
|
21
|
+
alt: t.getAttribute("data-title") || t.getAttribute("alt"),
|
|
22
|
+
element: t
|
|
23
|
+
}, o = t.getAttribute("data-height"), g = t.getAttribute("data-width");
|
|
24
|
+
let c = { width: g, height: o };
|
|
25
|
+
!o && !g && (c = await w(t), t.setAttribute("data-height", c.height), t.setAttribute("data-width", c.width)), e.w = c.width, e.width = c.width, e.h = c.height, e.height = c.height, n.push(e);
|
|
26
|
+
}
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
function w(h) {
|
|
30
|
+
const n = h.getAttribute("data-src") || h.getAttribute("src"), r = h.getAttribute("data-height"), a = h.getAttribute("data-width");
|
|
31
|
+
return r && a ? { width: a, height: r } : h.complete ? {
|
|
32
|
+
width: h.naturalWidth,
|
|
33
|
+
height: h.naturalHeight
|
|
34
|
+
} : new Promise((t) => {
|
|
35
|
+
const i = new Image();
|
|
36
|
+
i.src = n;
|
|
37
|
+
const e = {};
|
|
38
|
+
i.complete ? (e.width = i.width, e.height = i.height, t(e)) : (i.onload = () => {
|
|
39
|
+
e.width = i.width, e.height = i.height, t(e);
|
|
40
|
+
}, i.onerror = () => {
|
|
41
|
+
e.width = 0, e.height = 0, t(e);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
b as p
|
|
47
|
+
};
|
package/confirm-button/index.mjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { n
|
|
1
|
+
import { c as t } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
|
|
2
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "element-ui/lib/loading";
|
|
4
|
+
import "element-ui/lib/message-box";
|
|
5
|
+
import "@web-utils/core";
|
|
6
|
+
import "../chunks/index.B2TRddqf.mjs";
|
|
7
|
+
import "async-validator";
|
|
3
8
|
const o = {
|
|
4
9
|
props: {
|
|
5
10
|
type: {
|
|
@@ -31,17 +36,17 @@ const o = {
|
|
|
31
36
|
}
|
|
32
37
|
}, e = {
|
|
33
38
|
name: "ConfirmButton",
|
|
34
|
-
mixins: [
|
|
35
|
-
},
|
|
36
|
-
var
|
|
39
|
+
mixins: [t, o]
|
|
40
|
+
}, i = null, r = null;
|
|
41
|
+
var a = /* @__PURE__ */ n(
|
|
37
42
|
e,
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
i,
|
|
44
|
+
r,
|
|
40
45
|
!1,
|
|
41
46
|
null,
|
|
42
47
|
null
|
|
43
48
|
);
|
|
44
|
-
const
|
|
49
|
+
const d = a.exports;
|
|
45
50
|
export {
|
|
46
|
-
|
|
51
|
+
d as default
|
|
47
52
|
};
|
package/confirmable/index.mjs
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
|
|
2
2
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
|
|
3
|
+
import "element-ui/lib/loading";
|
|
4
|
+
import "element-ui/lib/message-box";
|
|
5
|
+
import "@web-utils/core";
|
|
6
|
+
import "../chunks/index.B2TRddqf.mjs";
|
|
7
|
+
import "async-validator";
|
|
8
|
+
const r = {
|
|
4
9
|
name: "Confirmable",
|
|
5
10
|
mixins: [n]
|
|
6
|
-
},
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
}, m = null, t = null;
|
|
12
|
+
var i = /* @__PURE__ */ o(
|
|
13
|
+
r,
|
|
14
|
+
m,
|
|
15
|
+
t,
|
|
11
16
|
!1,
|
|
12
17
|
null,
|
|
13
18
|
null
|
|
14
19
|
);
|
|
15
|
-
const
|
|
20
|
+
const _ = i.exports;
|
|
16
21
|
export {
|
|
17
|
-
|
|
22
|
+
_ as default
|
|
18
23
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as l } from "../chunks/index.B2TRddqf.mjs";
|
|
2
2
|
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
4
|
+
import "async-validator";
|
|
3
5
|
const o = {
|
|
4
6
|
name: "DataTablePicker",
|
|
5
7
|
props: {
|
|
@@ -32,7 +34,7 @@ const o = {
|
|
|
32
34
|
};
|
|
33
35
|
},
|
|
34
36
|
methods: {
|
|
35
|
-
filterTableColumnProperties:
|
|
37
|
+
filterTableColumnProperties: l,
|
|
36
38
|
selectionChange(t) {
|
|
37
39
|
this.selectedRows = t;
|
|
38
40
|
},
|
|
@@ -52,11 +54,11 @@ const o = {
|
|
|
52
54
|
}
|
|
53
55
|
};
|
|
54
56
|
var r = function() {
|
|
55
|
-
var e = this,
|
|
56
|
-
return
|
|
57
|
-
return [e._t("search-form"),
|
|
57
|
+
var e = this, i = e._self._c;
|
|
58
|
+
return i("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
59
|
+
return [e._t("search-form"), i("PageableTable", { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
|
|
58
60
|
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
59
|
-
return [
|
|
61
|
+
return [i("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), i("ElButton", { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
|
|
60
62
|
}, proxy: !0 }], null, !0) });
|
|
61
63
|
}, s = [], a = /* @__PURE__ */ n(
|
|
62
64
|
o,
|
|
@@ -66,7 +68,7 @@ var r = function() {
|
|
|
66
68
|
null,
|
|
67
69
|
null
|
|
68
70
|
);
|
|
69
|
-
const
|
|
71
|
+
const f = a.exports;
|
|
70
72
|
export {
|
|
71
|
-
|
|
73
|
+
f as default
|
|
72
74
|
};
|
package/editable-tree/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { cloneDeep as f } from "@web-utils/integrations/lodash";
|
|
|
4
4
|
import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import b from "vue";
|
|
6
6
|
import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
+
import "async-validator";
|
|
7
8
|
function c(t, e) {
|
|
8
9
|
for (const i in e)
|
|
9
10
|
b.set(t, i, e[i]);
|
|
@@ -475,7 +476,7 @@ var _ = function() {
|
|
|
475
476
|
null,
|
|
476
477
|
null
|
|
477
478
|
);
|
|
478
|
-
const
|
|
479
|
+
const S = K.exports;
|
|
479
480
|
export {
|
|
480
|
-
|
|
481
|
+
S as default
|
|
481
482
|
};
|
package/element-dialog/index.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { dialogDrag as a } from "@web-utils/vue/directives/dialog-drag";
|
|
|
3
3
|
import { getComputedHeight as r, isDef as n } from "@web-utils/core";
|
|
4
4
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
import { g as d } from "../chunks/index.B2TRddqf.mjs";
|
|
6
|
+
import "async-validator";
|
|
6
7
|
const p = {
|
|
7
8
|
name: "EmulateForm",
|
|
8
9
|
provide() {
|
|
@@ -300,7 +301,7 @@ var y = function() {
|
|
|
300
301
|
null,
|
|
301
302
|
null
|
|
302
303
|
);
|
|
303
|
-
const
|
|
304
|
+
const B = v.exports;
|
|
304
305
|
export {
|
|
305
|
-
|
|
306
|
+
B as default
|
|
306
307
|
};
|
package/flex-column/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { g as o } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
3
4
|
const s = {
|
|
4
5
|
name: "FlexColumn",
|
|
5
6
|
functional: !0,
|
|
@@ -33,9 +34,9 @@ const s = {
|
|
|
33
34
|
default: !1
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
|
-
render(l, { data:
|
|
37
|
-
const
|
|
38
|
-
return e.center || e.horizonCenter && e.verticalCenter ? (
|
|
37
|
+
render(l, { data: n, children: r, props: e }) {
|
|
38
|
+
const t = o(n.class, "flex-column");
|
|
39
|
+
return e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), l("div", { ...n, class: t }, r);
|
|
39
40
|
}
|
|
40
41
|
}, c = null, i = null;
|
|
41
42
|
var f = /* @__PURE__ */ a(
|
|
@@ -46,7 +47,7 @@ var f = /* @__PURE__ */ a(
|
|
|
46
47
|
null,
|
|
47
48
|
null
|
|
48
49
|
);
|
|
49
|
-
const
|
|
50
|
+
const h = f.exports;
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
h as default
|
|
52
53
|
};
|
package/flex-item/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { g as o } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
3
4
|
const s = {
|
|
4
5
|
name: "FlexItem",
|
|
5
6
|
functional: !0,
|
|
@@ -37,10 +38,10 @@ const s = {
|
|
|
37
38
|
default: !1
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
|
-
render(
|
|
41
|
-
const
|
|
42
|
-
return e.absolute && !e.relative &&
|
|
43
|
-
|
|
41
|
+
render(l, { children: a, data: n, props: e }) {
|
|
42
|
+
const t = o(n.class, e.relative ? "flex-item-relative" : "flex-item");
|
|
43
|
+
return e.absolute && !e.relative && t.push("flex-item-relative"), e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), e.flexColumn && t.push("flex-column"), e.flexRow && t.push("flex-row"), e.absolute ? l("div", { ...n, class: t }, [
|
|
44
|
+
l(
|
|
44
45
|
"div",
|
|
45
46
|
{
|
|
46
47
|
class: "absolute",
|
|
@@ -48,7 +49,7 @@ const s = {
|
|
|
48
49
|
},
|
|
49
50
|
a
|
|
50
51
|
)
|
|
51
|
-
]) :
|
|
52
|
+
]) : l("div", { ...n, class: t }, a);
|
|
52
53
|
}
|
|
53
54
|
}, r = null, i = null;
|
|
54
55
|
var u = /* @__PURE__ */ f(
|
package/flex-row/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { g as o } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
3
4
|
const s = {
|
|
4
5
|
name: "FlexRow",
|
|
5
6
|
functional: !0,
|
|
@@ -34,7 +35,7 @@ var f = /* @__PURE__ */ a(
|
|
|
34
35
|
null,
|
|
35
36
|
null
|
|
36
37
|
);
|
|
37
|
-
const
|
|
38
|
+
const m = f.exports;
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
m as default
|
|
40
41
|
};
|
package/flow/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r, s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
3
4
|
const c = {
|
|
4
5
|
name: "Flow",
|
|
5
6
|
props: {
|
|
@@ -241,7 +242,7 @@ var u = function() {
|
|
|
241
242
|
null,
|
|
242
243
|
null
|
|
243
244
|
);
|
|
244
|
-
const
|
|
245
|
+
const g = d.exports;
|
|
245
246
|
export {
|
|
246
|
-
|
|
247
|
+
g as default
|
|
247
248
|
};
|
package/flow-node/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { s as o } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
3
4
|
const n = {
|
|
4
5
|
name: "FlowNode",
|
|
5
6
|
props: {
|
|
@@ -47,13 +48,13 @@ const n = {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
|
-
var
|
|
51
|
+
var r = function() {
|
|
51
52
|
var e = this, t = e._self._c;
|
|
52
53
|
return t("div", { ref: "node", style: e.flowNodeContainer, attrs: { left: e.node.left, top: e.node.top, disabled: "", mask: !1 }, on: { mouseenter: e.showDelete, mouseleave: e.hideDelete, mouseup: e.changeNodeSite } }, [t("div", { class: ["avue-flow__node", { active: e.active === e.node.id }] }, [t("div", { staticClass: "avue-flow__node-header" }, [t("i", { staticClass: "el-icon-rank", class: e.b("node-drag") }), e._t("header", null, { node: e.node })], 2), t("div", { staticClass: "avue-flow__node-body" }, [e._t("default", null, { node: e.node })], 2)])]);
|
|
53
|
-
},
|
|
54
|
+
}, d = [], a = /* @__PURE__ */ s(
|
|
54
55
|
n,
|
|
55
|
-
d,
|
|
56
56
|
r,
|
|
57
|
+
d,
|
|
57
58
|
!1,
|
|
58
59
|
null,
|
|
59
60
|
null
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { f as
|
|
3
|
-
import
|
|
1
|
+
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
|
+
import a from "element-ui/lib/cascader";
|
|
4
4
|
import { c as n, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
-
import { isArray as s, setParent as
|
|
6
|
-
import { cloneDeep as
|
|
5
|
+
import { isArray as s, setParent as m, isString as f, findTreeChildren as c } from "@web-utils/core";
|
|
6
|
+
import { cloneDeep as d } from "@web-utils/integrations/lodash";
|
|
7
7
|
import { d as h } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
8
8
|
import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
|
-
|
|
9
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
10
|
+
import "element-ui/lib/col";
|
|
11
|
+
import "element-ui/lib/form-item";
|
|
12
|
+
import "async-validator";
|
|
13
|
+
const v = n(a).filter(
|
|
10
14
|
(t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
|
|
11
15
|
), _ = {
|
|
12
16
|
name: "FormCascader",
|
|
13
|
-
mixins: [
|
|
17
|
+
mixins: [o, i, h],
|
|
14
18
|
props: {
|
|
15
19
|
value: [String, Number, Array],
|
|
16
20
|
options: {
|
|
@@ -59,9 +63,9 @@ const v = n(i).filter(
|
|
|
59
63
|
},
|
|
60
64
|
inputVal() {
|
|
61
65
|
if (this.join)
|
|
62
|
-
return s(this.value) ? this.value :
|
|
66
|
+
return s(this.value) ? this.value : f(this.value) ? this.value.split(this.separator) : [];
|
|
63
67
|
if (this.last) {
|
|
64
|
-
let [t] =
|
|
68
|
+
let [t] = c(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
65
69
|
const e = [];
|
|
66
70
|
for (; t; )
|
|
67
71
|
e.push(t[this.valueKey]), t = t.parent;
|
|
@@ -73,8 +77,8 @@ const v = n(i).filter(
|
|
|
73
77
|
if (this.dictType)
|
|
74
78
|
return this.dictItems;
|
|
75
79
|
if (this.options) {
|
|
76
|
-
const t =
|
|
77
|
-
return this.last &&
|
|
80
|
+
const t = d(this.options);
|
|
81
|
+
return this.last && m(t), t;
|
|
78
82
|
} else
|
|
79
83
|
return [];
|
|
80
84
|
}
|
|
@@ -109,7 +113,7 @@ var b = function() {
|
|
|
109
113
|
null,
|
|
110
114
|
null
|
|
111
115
|
);
|
|
112
|
-
const
|
|
116
|
+
const V = g.exports;
|
|
113
117
|
export {
|
|
114
|
-
|
|
118
|
+
V as default
|
|
115
119
|
};
|
package/form-checkbox/index.mjs
CHANGED
|
@@ -2,7 +2,12 @@ import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
|
2
2
|
import l from "element-ui/lib/checkbox";
|
|
3
3
|
import { c as n, v as s, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
10
|
+
const m = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), c = {
|
|
6
11
|
name: "FormCheckbox",
|
|
7
12
|
mixins: [a],
|
|
8
13
|
props: {
|
|
@@ -28,7 +33,7 @@ const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
28
33
|
},
|
|
29
34
|
computed: {
|
|
30
35
|
inputProps() {
|
|
31
|
-
return i({ ...u(this.$attrs), ...this.$props },
|
|
36
|
+
return i({ ...u(this.$attrs), ...this.$props }, m);
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
watch: {
|
|
@@ -42,7 +47,7 @@ const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
};
|
|
45
|
-
var
|
|
50
|
+
var d = function() {
|
|
46
51
|
var e = this, t = e._self._c;
|
|
47
52
|
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
48
53
|
return [e._t("default", function() {
|
|
@@ -57,15 +62,15 @@ var f = function() {
|
|
|
57
62
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
58
63
|
return [e._t("tips")];
|
|
59
64
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
60
|
-
},
|
|
65
|
+
}, f = [], _ = /* @__PURE__ */ p(
|
|
66
|
+
c,
|
|
61
67
|
d,
|
|
62
68
|
f,
|
|
63
|
-
m,
|
|
64
69
|
!1,
|
|
65
70
|
null,
|
|
66
71
|
null
|
|
67
72
|
);
|
|
68
|
-
const
|
|
73
|
+
const S = _.exports;
|
|
69
74
|
export {
|
|
70
|
-
|
|
75
|
+
S as default
|
|
71
76
|
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { f as
|
|
1
|
+
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import { d as s } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
4
|
-
import { c as n, d as a, n as
|
|
5
|
-
import
|
|
4
|
+
import { c as n, d as a, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import u from "element-ui/lib/checkbox-group";
|
|
6
6
|
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
-
|
|
7
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
8
|
+
import "element-ui/lib/col";
|
|
9
|
+
import "element-ui/lib/form-item";
|
|
10
|
+
import "@web-utils/core";
|
|
11
|
+
import "async-validator";
|
|
12
|
+
const c = n(u).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
8
13
|
name: "FormCheckboxGroup",
|
|
9
|
-
mixins: [
|
|
14
|
+
mixins: [i, l, s],
|
|
10
15
|
props: {
|
|
11
16
|
options: {
|
|
12
17
|
type: Array,
|
|
@@ -50,7 +55,7 @@ const c = n(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
50
55
|
return this.classic ? "value" : this.valueProp;
|
|
51
56
|
},
|
|
52
57
|
inputProps() {
|
|
53
|
-
return a({ ...
|
|
58
|
+
return a({ ...p(this.$attrs), ...this.$props }, c);
|
|
54
59
|
},
|
|
55
60
|
innerOptions() {
|
|
56
61
|
return this.dictType ? this.dictItems : this.gender ? [
|
|
@@ -108,7 +113,7 @@ var f = function() {
|
|
|
108
113
|
null,
|
|
109
114
|
null
|
|
110
115
|
);
|
|
111
|
-
const
|
|
116
|
+
const C = b.exports;
|
|
112
117
|
export {
|
|
113
|
-
|
|
118
|
+
C as default
|
|
114
119
|
};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { f as s } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import { toDate as a } from "@web-utils/integrations/dayjs";
|
|
4
|
-
import { d as
|
|
4
|
+
import { d as o, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
+
import "element-ui/lib/col";
|
|
8
|
+
import "element-ui/lib/form-item";
|
|
9
|
+
import "@web-utils/core";
|
|
10
|
+
import "async-validator";
|
|
6
11
|
const u = [
|
|
7
12
|
"type",
|
|
8
13
|
"timeArrowControl",
|
|
@@ -92,9 +97,9 @@ const u = [
|
|
|
92
97
|
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd";
|
|
93
98
|
},
|
|
94
99
|
inputProps() {
|
|
95
|
-
return
|
|
100
|
+
return o(
|
|
96
101
|
{
|
|
97
|
-
...
|
|
102
|
+
...l(this.$attrs),
|
|
98
103
|
...this.$props,
|
|
99
104
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
100
105
|
format: this.format || this.fat,
|
|
@@ -137,7 +142,7 @@ var h = function() {
|
|
|
137
142
|
null,
|
|
138
143
|
null
|
|
139
144
|
);
|
|
140
|
-
const
|
|
145
|
+
const b = f.exports;
|
|
141
146
|
export {
|
|
142
|
-
|
|
147
|
+
b as default
|
|
143
148
|
};
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { animate as o, warning as l } from "@web-utils/core";
|
|
2
2
|
import { e as a } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
import "async-validator";
|
|
4
5
|
const s = {
|
|
5
6
|
name: "FormHolder",
|
|
6
7
|
inject: {
|
|
@@ -95,15 +96,15 @@ const s = {
|
|
|
95
96
|
var n = function() {
|
|
96
97
|
var e = this, t = e._self._c;
|
|
97
98
|
return t("ElForm", { ref: "form", class: ["clear-fix", { "red-form": e.tableForm }], attrs: { model: e.model, size: e.size, "show-message": e.showMessage, disabled: e.disabled, "label-width": e.tableForm ? "0px" : e.labelWidth, "label-position": e.labelPosition } }, [e.tableForm ? [e._t("top"), t("FormRedTable", { class: { "hide-error-message": e.tableForm }, attrs: { columns: e.columns, "col-count": e.colCount } }, [e._t("default"), e.showAdvice ? t("FormAdvice", { attrs: { "label-colspan": e.commentLabelColspan, "value-colspan": e.commentValueColspan } }) : e._e()], 2), e._t("bottom"), t("div", { staticClass: "red-form-footer" }, [e._t("footer")], 2)] : [e._t("default")]], 2);
|
|
98
|
-
},
|
|
99
|
+
}, m = [], d = /* @__PURE__ */ i(
|
|
99
100
|
s,
|
|
100
101
|
n,
|
|
101
|
-
|
|
102
|
+
m,
|
|
102
103
|
!1,
|
|
103
104
|
null,
|
|
104
105
|
null
|
|
105
106
|
);
|
|
106
|
-
const
|
|
107
|
+
const b = d.exports;
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
b as default
|
|
109
110
|
};
|
package/form-input/index.mjs
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import o from "element-ui/lib/input";
|
|
3
|
-
import { c as a, v as s, d as
|
|
4
|
-
import { n as
|
|
3
|
+
import { c as a, v as s, d as p, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
5
10
|
const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"].includes(t)), d = {
|
|
6
11
|
name: "FormInput",
|
|
7
12
|
mixins: [i],
|
|
@@ -28,7 +33,7 @@ const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
28
33
|
},
|
|
29
34
|
computed: {
|
|
30
35
|
inputProps() {
|
|
31
|
-
return
|
|
36
|
+
return p({ ...l(this.$attrs), ...this.$props }, c);
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
watch: {
|
|
@@ -73,7 +78,7 @@ var f = function() {
|
|
|
73
78
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
74
79
|
return [e._t("tips")];
|
|
75
80
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
76
|
-
}, m = [], _ = /* @__PURE__ */
|
|
81
|
+
}, m = [], _ = /* @__PURE__ */ u(
|
|
77
82
|
d,
|
|
78
83
|
f,
|
|
79
84
|
m,
|
|
@@ -81,7 +86,7 @@ var f = function() {
|
|
|
81
86
|
null,
|
|
82
87
|
null
|
|
83
88
|
);
|
|
84
|
-
const
|
|
89
|
+
const S = _.exports;
|
|
85
90
|
export {
|
|
86
|
-
|
|
91
|
+
S as default
|
|
87
92
|
};
|