@web-utils/component 3.0.2 → 3.0.4
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/address-input/index.mjs +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +24 -28
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2821 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
2
|
var s = Object.getOwnPropertySymbols;
|
|
3
3
|
var f = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var a = (e, t,
|
|
5
|
-
for (var
|
|
6
|
-
f.call(t,
|
|
4
|
+
var a = (e, t, r) => t in e ? c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
f.call(t, r) && a(e, r, t[r]);
|
|
7
7
|
if (s)
|
|
8
|
-
for (var
|
|
9
|
-
h.call(t,
|
|
8
|
+
for (var r of s(t))
|
|
9
|
+
h.call(t, r) && a(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
13
|
-
import { f as
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.78a567bc.mjs";
|
|
13
|
+
import { f as _ } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
14
|
import i from "element-ui/lib/radio-group";
|
|
15
|
-
import {
|
|
15
|
+
import { d, n as y } from "../chunks/index.57f871af.mjs";
|
|
16
16
|
import u from "element-ui/lib/radio";
|
|
17
|
-
import { n as
|
|
18
|
-
var
|
|
19
|
-
var e = this, t = e.$createElement,
|
|
20
|
-
return
|
|
17
|
+
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
18
|
+
var b = function() {
|
|
19
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
20
|
+
return r("FormItem", e._b({
|
|
21
21
|
class: ["form-radio-group", {
|
|
22
22
|
"form-radio-group-row": e.fillRow,
|
|
23
23
|
inline: e.inline
|
|
@@ -29,7 +29,7 @@ var g = function() {
|
|
|
29
29
|
scopedSlots: e._u([{
|
|
30
30
|
key: "default",
|
|
31
31
|
fn: function() {
|
|
32
|
-
return [
|
|
32
|
+
return [r(i, e._g(e._b({
|
|
33
33
|
class: {
|
|
34
34
|
"over-flow": e.overFlow
|
|
35
35
|
},
|
|
@@ -39,36 +39,36 @@ var g = function() {
|
|
|
39
39
|
placeholder: e.computePlaceholder
|
|
40
40
|
},
|
|
41
41
|
on: {
|
|
42
|
-
input: function(
|
|
43
|
-
return e.$emit("input",
|
|
42
|
+
input: function(o) {
|
|
43
|
+
return e.$emit("input", o);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
}, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(
|
|
47
|
-
return
|
|
48
|
-
key:
|
|
46
|
+
}, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(o) {
|
|
47
|
+
return r(u, {
|
|
48
|
+
key: o[e.valueKey],
|
|
49
49
|
attrs: {
|
|
50
|
-
label:
|
|
50
|
+
label: o[e.valueKey]
|
|
51
51
|
},
|
|
52
52
|
nativeOn: {
|
|
53
53
|
click: function(n) {
|
|
54
|
-
return n.preventDefault(), n.stopPropagation(), e.toggle(
|
|
54
|
+
return n.preventDefault(), n.stopPropagation(), e.toggle(o);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
}, [e._v(" " + e._s(
|
|
58
|
-
}) : e._l(e.innerOptions, function(
|
|
59
|
-
return
|
|
60
|
-
key:
|
|
57
|
+
}, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
58
|
+
}) : e._l(e.innerOptions, function(o) {
|
|
59
|
+
return r(u, {
|
|
60
|
+
key: o[e.valueKey],
|
|
61
61
|
attrs: {
|
|
62
|
-
label:
|
|
62
|
+
label: o[e.valueKey]
|
|
63
63
|
}
|
|
64
|
-
}, [e._v(" " + e._s(
|
|
64
|
+
}, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
65
65
|
})], 2), e._t("append")];
|
|
66
66
|
},
|
|
67
67
|
proxy: !0
|
|
68
68
|
}, {
|
|
69
69
|
key: "error",
|
|
70
|
-
fn: function(
|
|
71
|
-
var n =
|
|
70
|
+
fn: function(o) {
|
|
71
|
+
var n = o.error;
|
|
72
72
|
return [e._t("error", null, {
|
|
73
73
|
error: n
|
|
74
74
|
})];
|
|
@@ -87,12 +87,12 @@ var g = function() {
|
|
|
87
87
|
proxy: !0
|
|
88
88
|
}], null, !0)
|
|
89
89
|
}, "FormItem", e.formItemProps, !1));
|
|
90
|
-
},
|
|
91
|
-
const
|
|
90
|
+
}, g = [];
|
|
91
|
+
const K = Object.keys(i.props || i.default.props).filter(
|
|
92
92
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
93
|
-
),
|
|
93
|
+
), w = {
|
|
94
94
|
name: "FormRadioGroup",
|
|
95
|
-
mixins: [m,
|
|
95
|
+
mixins: [m, _],
|
|
96
96
|
props: {
|
|
97
97
|
options: {
|
|
98
98
|
type: Array,
|
|
@@ -123,7 +123,7 @@ const w = Object.keys(i.props || i.default.props).filter(
|
|
|
123
123
|
return "请选择";
|
|
124
124
|
},
|
|
125
125
|
inputProps() {
|
|
126
|
-
return d(l(l({},
|
|
126
|
+
return d(l(l({}, y(this.$attrs)), this.$props), K);
|
|
127
127
|
},
|
|
128
128
|
labelKey() {
|
|
129
129
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -162,23 +162,23 @@ const w = Object.keys(i.props || i.default.props).filter(
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}, p = {};
|
|
165
|
-
var
|
|
166
|
-
|
|
165
|
+
var B = /* @__PURE__ */ v(
|
|
166
|
+
w,
|
|
167
|
+
b,
|
|
167
168
|
g,
|
|
168
|
-
K,
|
|
169
169
|
!1,
|
|
170
|
-
|
|
170
|
+
P,
|
|
171
171
|
null,
|
|
172
172
|
null,
|
|
173
173
|
null
|
|
174
174
|
);
|
|
175
|
-
function
|
|
175
|
+
function P(e) {
|
|
176
176
|
for (let t in p)
|
|
177
177
|
this[t] = p[t];
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
return
|
|
179
|
+
const S = /* @__PURE__ */ function() {
|
|
180
|
+
return B.exports;
|
|
181
181
|
}();
|
|
182
182
|
export {
|
|
183
|
-
|
|
183
|
+
S as default
|
|
184
184
|
};
|
package/form-select/index.mjs
CHANGED
|
@@ -9,15 +9,15 @@ var a = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
f.call(r, t) && a(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { f as h } from "../chunks/form-input-mixin.78a567bc.mjs";
|
|
13
13
|
import { f as m } from "../chunks/form-pick-mixin.61ad06b2.mjs";
|
|
14
14
|
import s from "element-ui/lib/select";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import { n as
|
|
18
|
-
var
|
|
15
|
+
import { d as _, n as y } from "../chunks/index.57f871af.mjs";
|
|
16
|
+
import d from "element-ui/lib/option";
|
|
17
|
+
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
18
|
+
var b = function() {
|
|
19
19
|
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
20
|
-
return t(
|
|
20
|
+
return t("FormItem", e._b({
|
|
21
21
|
attrs: {
|
|
22
22
|
rules: e.computeRules,
|
|
23
23
|
disabled: e.inputDisabled
|
|
@@ -36,7 +36,7 @@ var g = function() {
|
|
|
36
36
|
input: e.emitInput
|
|
37
37
|
}
|
|
38
38
|
}, "ElSelect", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(n) {
|
|
39
|
-
return t(
|
|
39
|
+
return t(d, {
|
|
40
40
|
key: n[e.valueKey],
|
|
41
41
|
attrs: {
|
|
42
42
|
value: n[e.valueKey],
|
|
@@ -74,12 +74,12 @@ var g = function() {
|
|
|
74
74
|
proxy: !0
|
|
75
75
|
}], null, !0)
|
|
76
76
|
}, "FormItem", e.formItemProps, !1));
|
|
77
|
-
},
|
|
78
|
-
const
|
|
77
|
+
}, g = [];
|
|
78
|
+
const K = Object.keys(s.props || s.default.props).filter(
|
|
79
79
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
80
|
-
),
|
|
80
|
+
), P = {
|
|
81
81
|
name: "FormSelect",
|
|
82
|
-
mixins: [
|
|
82
|
+
mixins: [h, m],
|
|
83
83
|
props: {
|
|
84
84
|
options: {
|
|
85
85
|
type: Array,
|
|
@@ -116,7 +116,7 @@ const P = Object.keys(s.props || s.default.props).filter(
|
|
|
116
116
|
return this.classic ? "value" : this.valueProp;
|
|
117
117
|
},
|
|
118
118
|
inputProps() {
|
|
119
|
-
return
|
|
119
|
+
return _(l(l({}, y(this.$attrs)), this.$props), K);
|
|
120
120
|
},
|
|
121
121
|
innerOptions() {
|
|
122
122
|
return this.gender ? [
|
|
@@ -146,23 +146,23 @@ const P = Object.keys(s.props || s.default.props).filter(
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}, u = {};
|
|
149
|
-
var
|
|
150
|
-
|
|
149
|
+
var x = /* @__PURE__ */ v(
|
|
150
|
+
P,
|
|
151
|
+
b,
|
|
151
152
|
g,
|
|
152
|
-
K,
|
|
153
153
|
!1,
|
|
154
|
-
|
|
154
|
+
S,
|
|
155
155
|
null,
|
|
156
156
|
null,
|
|
157
157
|
null
|
|
158
158
|
);
|
|
159
|
-
function
|
|
159
|
+
function S(e) {
|
|
160
160
|
for (let r in u)
|
|
161
161
|
this[r] = u[r];
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
return
|
|
163
|
+
const D = /* @__PURE__ */ function() {
|
|
164
|
+
return x.exports;
|
|
165
165
|
}();
|
|
166
166
|
export {
|
|
167
|
-
|
|
167
|
+
D as default
|
|
168
168
|
};
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
2
|
var l = Object.getOwnPropertySymbols;
|
|
3
|
-
var c = Object.prototype.hasOwnProperty,
|
|
3
|
+
var c = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var u = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
|
|
5
5
|
for (var r in t || (t = {}))
|
|
6
6
|
c.call(t, r) && u(e, r, t[r]);
|
|
7
7
|
if (l)
|
|
8
8
|
for (var r of l(t))
|
|
9
|
-
|
|
9
|
+
m.call(t, r) && u(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { f as d } from "../chunks/form-input-mixin.78a567bc.mjs";
|
|
13
13
|
import o from "element-ui/lib/switch";
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
var
|
|
14
|
+
import { d as f, n as _ } from "../chunks/index.57f871af.mjs";
|
|
15
|
+
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
var y = function() {
|
|
17
17
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
18
|
-
return r(
|
|
18
|
+
return r("FormItem", e._b({
|
|
19
19
|
attrs: {
|
|
20
20
|
rules: e.computeRules,
|
|
21
21
|
disabled: e.inputDisabled
|
|
@@ -66,10 +66,10 @@ var h = function() {
|
|
|
66
66
|
proxy: !0
|
|
67
67
|
}], null, !0)
|
|
68
68
|
}, "FormItem", e.formItemProps, !1));
|
|
69
|
-
},
|
|
70
|
-
const
|
|
69
|
+
}, h = [];
|
|
70
|
+
const b = Object.keys(o.props || o.default.props).filter(
|
|
71
71
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
72
|
-
),
|
|
72
|
+
), x = {
|
|
73
73
|
name: "FormSwitch",
|
|
74
74
|
mixins: [d],
|
|
75
75
|
props: {
|
|
@@ -79,7 +79,7 @@ const x = Object.keys(o.props || o.default.props).filter(
|
|
|
79
79
|
},
|
|
80
80
|
computed: {
|
|
81
81
|
inputProps() {
|
|
82
|
-
return f(n(n({},
|
|
82
|
+
return f(n(n({}, _(this.$attrs)), this.$props), b);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
methods: {
|
|
@@ -88,23 +88,23 @@ const x = Object.keys(o.props || o.default.props).filter(
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}, s = {};
|
|
91
|
-
var
|
|
92
|
-
|
|
91
|
+
var S = /* @__PURE__ */ v(
|
|
92
|
+
x,
|
|
93
|
+
y,
|
|
93
94
|
h,
|
|
94
|
-
b,
|
|
95
95
|
!1,
|
|
96
|
-
|
|
96
|
+
I,
|
|
97
97
|
null,
|
|
98
98
|
null,
|
|
99
99
|
null
|
|
100
100
|
);
|
|
101
|
-
function
|
|
101
|
+
function I(e) {
|
|
102
102
|
for (let t in s)
|
|
103
103
|
this[t] = s[t];
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
return
|
|
105
|
+
const w = /* @__PURE__ */ function() {
|
|
106
|
+
return S.exports;
|
|
107
107
|
}();
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
w as default
|
|
110
110
|
};
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
2
|
var s = Object.getOwnPropertySymbols;
|
|
3
3
|
var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
m.call(
|
|
4
|
+
var a = (e, r, t) => r in e ? p(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, n = (e, r) => {
|
|
5
|
+
for (var t in r || (r = {}))
|
|
6
|
+
m.call(r, t) && a(e, t, r[t]);
|
|
7
7
|
if (s)
|
|
8
|
-
for (var
|
|
9
|
-
c.call(
|
|
8
|
+
for (var t of s(r))
|
|
9
|
+
c.call(r, t) && a(e, t, r[t]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { f } from "../chunks/form-input-mixin.78a567bc.mjs";
|
|
13
|
+
import { d, n as _ } from "../chunks/index.57f871af.mjs";
|
|
14
14
|
import l from "element-ui/lib/input";
|
|
15
|
-
import { n as
|
|
16
|
-
var
|
|
17
|
-
var e = this,
|
|
18
|
-
return
|
|
15
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
16
|
+
var x = function() {
|
|
17
|
+
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
18
|
+
return t("FormItem", e._b({
|
|
19
19
|
attrs: {
|
|
20
20
|
block: e.block,
|
|
21
21
|
rules: e.computeRules,
|
|
@@ -24,7 +24,7 @@ var y = function() {
|
|
|
24
24
|
scopedSlots: e._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [
|
|
27
|
+
return [t(l, e._g(e._b({
|
|
28
28
|
attrs: {
|
|
29
29
|
value: e.value,
|
|
30
30
|
type: "textarea",
|
|
@@ -46,9 +46,9 @@ var y = function() {
|
|
|
46
46
|
}, {
|
|
47
47
|
key: "error",
|
|
48
48
|
fn: function(o) {
|
|
49
|
-
var
|
|
49
|
+
var u = o.error;
|
|
50
50
|
return [e._t("error", null, {
|
|
51
|
-
error:
|
|
51
|
+
error: u
|
|
52
52
|
})];
|
|
53
53
|
}
|
|
54
54
|
}, {
|
|
@@ -59,10 +59,10 @@ var y = function() {
|
|
|
59
59
|
proxy: !0
|
|
60
60
|
}], null, !0)
|
|
61
61
|
}, "FormItem", e.formItemProps, !1));
|
|
62
|
-
},
|
|
63
|
-
const
|
|
62
|
+
}, y = [];
|
|
63
|
+
const v = Object.keys(l.props || l.default.props).filter(
|
|
64
64
|
(e) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(e)
|
|
65
|
-
),
|
|
65
|
+
), b = {
|
|
66
66
|
name: "FormTextarea",
|
|
67
67
|
mixins: [f],
|
|
68
68
|
props: {
|
|
@@ -89,27 +89,27 @@ const b = Object.keys(l.props || l.default.props).filter(
|
|
|
89
89
|
},
|
|
90
90
|
computed: {
|
|
91
91
|
inputProps() {
|
|
92
|
-
return d(n(n({},
|
|
92
|
+
return d(n(n({}, _(this.$attrs)), this.$props), v);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
},
|
|
96
|
-
var
|
|
97
|
-
|
|
95
|
+
}, i = {};
|
|
96
|
+
var g = /* @__PURE__ */ h(
|
|
97
|
+
b,
|
|
98
|
+
x,
|
|
98
99
|
y,
|
|
99
|
-
v,
|
|
100
100
|
!1,
|
|
101
|
-
|
|
101
|
+
w,
|
|
102
102
|
null,
|
|
103
103
|
null,
|
|
104
104
|
null
|
|
105
105
|
);
|
|
106
|
-
function
|
|
107
|
-
for (let
|
|
108
|
-
this[
|
|
106
|
+
function w(e) {
|
|
107
|
+
for (let r in i)
|
|
108
|
+
this[r] = i[r];
|
|
109
109
|
}
|
|
110
|
-
const
|
|
111
|
-
return
|
|
110
|
+
const I = /* @__PURE__ */ function() {
|
|
111
|
+
return g.exports;
|
|
112
112
|
}();
|
|
113
113
|
export {
|
|
114
|
-
|
|
114
|
+
I as default
|
|
115
115
|
};
|
package/form-view/index.mjs
CHANGED
|
@@ -14,16 +14,12 @@ var c = (t, e, o) => new Promise((r, s) => {
|
|
|
14
14
|
}, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(n, l);
|
|
15
15
|
a((o = o.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { hasOwn as
|
|
18
|
-
import { merge as
|
|
19
|
-
import
|
|
17
|
+
import { hasOwn as d, toStringArray as b, animate as v, isInContainer as _ } from "@web-utils/core";
|
|
18
|
+
import { merge as g } from "@web-utils/integrations/lodash";
|
|
19
|
+
import y from "@web-utils/component/resize-observer";
|
|
20
20
|
import "@web-utils/component/resize-observer/style.css";
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
import { _ as u } from "../chunks/Toolbar.5c539dbb.mjs";
|
|
24
|
-
import { _ as p } from "../chunks/EmptyView.e2430422.mjs";
|
|
25
|
-
import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
26
|
-
var B = function() {
|
|
21
|
+
import { n as w } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
22
|
+
var x = function() {
|
|
27
23
|
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
28
24
|
return o("div", {
|
|
29
25
|
class: ["form-view", t.className]
|
|
@@ -36,7 +32,7 @@ var B = function() {
|
|
|
36
32
|
}],
|
|
37
33
|
staticClass: "form-view-toolbar"
|
|
38
34
|
}, [t._t("form-view-toolbar", function() {
|
|
39
|
-
return [o(
|
|
35
|
+
return [o("Toolbar", t._g(t._b({
|
|
40
36
|
on: {
|
|
41
37
|
edit: t.onEdit
|
|
42
38
|
},
|
|
@@ -88,12 +84,12 @@ var B = function() {
|
|
|
88
84
|
}, [t.title ? o("div", {
|
|
89
85
|
staticClass: "form-view-title"
|
|
90
86
|
}, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
|
|
91
|
-
return [o(
|
|
87
|
+
return [o("EmptyView", {
|
|
92
88
|
attrs: {
|
|
93
89
|
"empty-tips": "请添加表单内容"
|
|
94
90
|
}
|
|
95
91
|
})];
|
|
96
|
-
}), t.footerBarButtons.length ? o(
|
|
92
|
+
}), t.footerBarButtons.length ? o("Toolbar", t._g(t._b({
|
|
97
93
|
attrs: {
|
|
98
94
|
footer: ""
|
|
99
95
|
},
|
|
@@ -129,12 +125,12 @@ var B = function() {
|
|
|
129
125
|
}, [t.title ? o("div", {
|
|
130
126
|
staticClass: "form-view-title"
|
|
131
127
|
}, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
|
|
132
|
-
return [o(
|
|
128
|
+
return [o("EmptyView", {
|
|
133
129
|
attrs: {
|
|
134
130
|
"empty-tips": "请添加表单内容"
|
|
135
131
|
}
|
|
136
132
|
})];
|
|
137
|
-
}), t.footerBarButtons.length ? o(
|
|
133
|
+
}), t.footerBarButtons.length ? o("Toolbar", t._g(t._b({
|
|
138
134
|
attrs: {
|
|
139
135
|
footer: ""
|
|
140
136
|
},
|
|
@@ -170,7 +166,7 @@ var B = function() {
|
|
|
170
166
|
}
|
|
171
167
|
}, [o("div", {
|
|
172
168
|
staticClass: "form-content"
|
|
173
|
-
}, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o(
|
|
169
|
+
}, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o("FormItemGroup", {
|
|
174
170
|
attrs: {
|
|
175
171
|
"block-title": "流程日志"
|
|
176
172
|
}
|
|
@@ -181,7 +177,7 @@ var B = function() {
|
|
|
181
177
|
"show-title": !1,
|
|
182
178
|
"business-key": t.$parent.bizKey
|
|
183
179
|
}
|
|
184
|
-
})], 1) : t._e(), t._t("form-bottom")], 2)]) : t._e()]), o(
|
|
180
|
+
})], 1) : t._e(), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", {
|
|
185
181
|
on: {
|
|
186
182
|
notify: t.onFormResize
|
|
187
183
|
}
|
|
@@ -203,14 +199,14 @@ var B = function() {
|
|
|
203
199
|
}
|
|
204
200
|
}
|
|
205
201
|
}, [t._v(" " + t._s(r.blockTitle) + " ")]);
|
|
206
|
-
}), 0)]) : t._e(), t.isFormLoading ? o(
|
|
202
|
+
}), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", {
|
|
207
203
|
attrs: {
|
|
208
204
|
"icon-size": "34px",
|
|
209
205
|
"font-size": "16px"
|
|
210
206
|
}
|
|
211
207
|
}) : t._e()], 1);
|
|
212
|
-
},
|
|
213
|
-
const
|
|
208
|
+
}, $ = [];
|
|
209
|
+
const p = [
|
|
214
210
|
"back",
|
|
215
211
|
"create",
|
|
216
212
|
"save",
|
|
@@ -230,17 +226,17 @@ const b = [
|
|
|
230
226
|
"disabled",
|
|
231
227
|
"reload",
|
|
232
228
|
"slot"
|
|
233
|
-
],
|
|
229
|
+
], S = p.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
|
|
234
230
|
if (t.classList.contains(e))
|
|
235
231
|
return t;
|
|
236
232
|
let o = t.parentNode;
|
|
237
233
|
for (; o && !o.classList.contains(e); )
|
|
238
234
|
o = o.parentNode;
|
|
239
235
|
return o.classList.contains(e) ? o : null;
|
|
240
|
-
},
|
|
236
|
+
}, k = {
|
|
241
237
|
name: "FormView",
|
|
242
238
|
components: {
|
|
243
|
-
ResizeObserver:
|
|
239
|
+
ResizeObserver: y
|
|
244
240
|
},
|
|
245
241
|
inject: {
|
|
246
242
|
flowContext: {
|
|
@@ -291,19 +287,19 @@ const b = [
|
|
|
291
287
|
},
|
|
292
288
|
computed: {
|
|
293
289
|
isFormLoading() {
|
|
294
|
-
return this.loading ||
|
|
290
|
+
return this.loading || d(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
295
291
|
},
|
|
296
292
|
toolbarProps() {
|
|
297
293
|
var r;
|
|
298
|
-
const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o =
|
|
299
|
-
return o.buttons = e || ["back"], o.buttons =
|
|
294
|
+
const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = g({}, this.toolbarAttrs, t);
|
|
295
|
+
return o.buttons = e || ["back"], o.buttons = b(o.buttons), o;
|
|
300
296
|
},
|
|
301
297
|
toolbarButtons() {
|
|
302
|
-
return this.toolbarProps.buttons.filter((t) => !
|
|
298
|
+
return this.toolbarProps.buttons.filter((t) => !m.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
|
|
303
299
|
},
|
|
304
300
|
footerBarButtons() {
|
|
305
301
|
let t = this.toolbarProps.buttons.filter(
|
|
306
|
-
(e) => !
|
|
302
|
+
(e) => !F.includes(e) && (m.includes(e) || e.indexOf(":down") > -1)
|
|
307
303
|
).map((e) => e.replace(":down", ""));
|
|
308
304
|
return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
|
|
309
305
|
}
|
|
@@ -311,12 +307,12 @@ const b = [
|
|
|
311
307
|
created() {
|
|
312
308
|
this.$on("FormView.addGroup", (t) => {
|
|
313
309
|
t && (this.activeIndex === -1 && (this.activeIndex = 0), this.groups.push(t), this.groups = this.groups.sort((e, o) => {
|
|
314
|
-
const r =
|
|
310
|
+
const r = u(e.$el, "form-card"), s = u(o.$el, "form-card");
|
|
315
311
|
if (r === s) {
|
|
316
312
|
const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
|
|
317
313
|
return n - l;
|
|
318
314
|
} else {
|
|
319
|
-
const n =
|
|
315
|
+
const n = u(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
|
|
320
316
|
return l - a;
|
|
321
317
|
}
|
|
322
318
|
}), t.active && (this.activeIndex = this.groups.indexOf(t), this.navItemClick(t, this.activeIndex)));
|
|
@@ -334,10 +330,10 @@ const b = [
|
|
|
334
330
|
},
|
|
335
331
|
methods: {
|
|
336
332
|
getToolbarSlotKeys() {
|
|
337
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
333
|
+
return Object.keys(this.$scopedSlots).filter((t) => p.includes(t));
|
|
338
334
|
},
|
|
339
335
|
getFooterSlotKeys() {
|
|
340
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
336
|
+
return Object.keys(this.$scopedSlots).filter((t) => S.includes(t));
|
|
341
337
|
},
|
|
342
338
|
getFooterSlotKey(t) {
|
|
343
339
|
return t.replace("-down", "");
|
|
@@ -346,7 +342,7 @@ const b = [
|
|
|
346
342
|
this.showNav = t > 1500;
|
|
347
343
|
},
|
|
348
344
|
onEdit() {
|
|
349
|
-
!this.toolbarListeners.edit &&
|
|
345
|
+
!this.toolbarListeners.edit && d(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
350
346
|
},
|
|
351
347
|
navItemClick(t, e) {
|
|
352
348
|
return c(this, null, function* () {
|
|
@@ -354,13 +350,13 @@ const b = [
|
|
|
354
350
|
});
|
|
355
351
|
},
|
|
356
352
|
activeFormItemGroup(t, e) {
|
|
357
|
-
this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10,
|
|
353
|
+
this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10, v(t.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = e;
|
|
358
354
|
},
|
|
359
355
|
tryActive() {
|
|
360
356
|
return c(this, null, function* () {
|
|
361
357
|
if (this.showNav) {
|
|
362
358
|
for (let t = 0; t < this.groups.length; t++)
|
|
363
|
-
if (
|
|
359
|
+
if (_(this.groups[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
364
360
|
this.activeIndex = t;
|
|
365
361
|
break;
|
|
366
362
|
}
|
|
@@ -374,24 +370,24 @@ const b = [
|
|
|
374
370
|
t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
|
|
375
371
|
}
|
|
376
372
|
}
|
|
377
|
-
},
|
|
378
|
-
var
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
373
|
+
}, h = {};
|
|
374
|
+
var B = /* @__PURE__ */ w(
|
|
375
|
+
k,
|
|
376
|
+
x,
|
|
377
|
+
$,
|
|
382
378
|
!1,
|
|
383
|
-
|
|
379
|
+
C,
|
|
384
380
|
null,
|
|
385
381
|
null,
|
|
386
382
|
null
|
|
387
383
|
);
|
|
388
|
-
function
|
|
389
|
-
for (let e in
|
|
390
|
-
this[e] =
|
|
384
|
+
function C(t) {
|
|
385
|
+
for (let e in h)
|
|
386
|
+
this[e] = h[e];
|
|
391
387
|
}
|
|
392
|
-
const
|
|
393
|
-
return
|
|
388
|
+
const z = /* @__PURE__ */ function() {
|
|
389
|
+
return B.exports;
|
|
394
390
|
}();
|
|
395
391
|
export {
|
|
396
|
-
|
|
392
|
+
z as default
|
|
397
393
|
};
|
package/fy-array/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as l, e as c } from "../chunks/event.
|
|
2
|
-
import {
|
|
1
|
+
import { p as l, e as c } from "../chunks/event.10295951.mjs";
|
|
2
|
+
import { i as p } from "../chunks/util.ae730cde.mjs";
|
|
3
3
|
import o from "element-ui/lib/button";
|
|
4
4
|
import u from "element-ui/lib/input";
|
|
5
5
|
import _ from "element-ui/lib/link";
|