@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { c as s } from "./index.d3MV3Wq2.mjs";
|
|
2
|
+
import u from "element-ui/lib/col";
|
|
3
|
+
import m from "element-ui/lib/form-item";
|
|
4
|
+
const p = ["span"], l = [...Object.keys(u.props)], d = l.filter((e) => !p.includes(e)), f = ["label", "prop", "rules", "labelWidth", "required"], a = [...Object.keys(m.props)], h = a.filter((e) => !f.includes(e)), c = [
|
|
5
|
+
"wrapCol",
|
|
6
|
+
"wrapFormItem",
|
|
7
|
+
"unwrap",
|
|
8
|
+
"prefixConfig",
|
|
9
|
+
"block",
|
|
10
|
+
"prefixPick",
|
|
11
|
+
"picker",
|
|
12
|
+
"half",
|
|
13
|
+
"tips",
|
|
14
|
+
"hideLabel",
|
|
15
|
+
"fixedSpan",
|
|
16
|
+
...l,
|
|
17
|
+
...a
|
|
18
|
+
], o = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], b = ["$emit", "validate", "clearValidate"], S = {
|
|
19
|
+
name: "FormInput",
|
|
20
|
+
inject: {
|
|
21
|
+
elForm: {
|
|
22
|
+
default: {}
|
|
23
|
+
},
|
|
24
|
+
formItemGroup: {
|
|
25
|
+
default: {}
|
|
26
|
+
},
|
|
27
|
+
formHolder: {
|
|
28
|
+
default: {}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
provide() {
|
|
32
|
+
return {
|
|
33
|
+
elForm: this.proxyForm,
|
|
34
|
+
formItemGroup: this
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
/**
|
|
39
|
+
* 是否作为内嵌使用
|
|
40
|
+
*/
|
|
41
|
+
embed: Boolean,
|
|
42
|
+
/**
|
|
43
|
+
* 是否禁用
|
|
44
|
+
*/
|
|
45
|
+
disabled: Boolean,
|
|
46
|
+
/**
|
|
47
|
+
* 是否固定栏数
|
|
48
|
+
*/
|
|
49
|
+
fixedSpan: Number,
|
|
50
|
+
/**
|
|
51
|
+
* 是否被列组件包裹
|
|
52
|
+
*/
|
|
53
|
+
wrapCol: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !0
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* 是否被表单项组件包裹
|
|
59
|
+
*/
|
|
60
|
+
wrapFormItem: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !0
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* 是否不用列组件包裹
|
|
66
|
+
*/
|
|
67
|
+
unwrap: Boolean,
|
|
68
|
+
/**
|
|
69
|
+
* 是否占一半宽度
|
|
70
|
+
*/
|
|
71
|
+
half: Boolean,
|
|
72
|
+
/**
|
|
73
|
+
* placeholder 添加"配置"前缀
|
|
74
|
+
*/
|
|
75
|
+
prefixConfig: Boolean,
|
|
76
|
+
/**
|
|
77
|
+
* placeholder 添加"添加"前缀
|
|
78
|
+
*/
|
|
79
|
+
prefixAdd: Boolean,
|
|
80
|
+
/**
|
|
81
|
+
* placeholder 添加"选择"前缀
|
|
82
|
+
*/
|
|
83
|
+
prefixPick: Boolean,
|
|
84
|
+
/**
|
|
85
|
+
* 是否占满一行
|
|
86
|
+
*/
|
|
87
|
+
block: Boolean,
|
|
88
|
+
/**
|
|
89
|
+
* 表单项组件样式
|
|
90
|
+
*/
|
|
91
|
+
formItemClass: String,
|
|
92
|
+
/**
|
|
93
|
+
* 提示信息
|
|
94
|
+
*/
|
|
95
|
+
tips: String,
|
|
96
|
+
/**
|
|
97
|
+
* 校验规则触发方式
|
|
98
|
+
*/
|
|
99
|
+
trigger: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "blur"
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* 是否隐藏 label
|
|
105
|
+
*/
|
|
106
|
+
hideLabel: Boolean,
|
|
107
|
+
/**
|
|
108
|
+
* label 占列数
|
|
109
|
+
*/
|
|
110
|
+
labelColspan: [Number, String],
|
|
111
|
+
/**
|
|
112
|
+
* input 占列数
|
|
113
|
+
*/
|
|
114
|
+
inputColspan: [Number, String],
|
|
115
|
+
/**
|
|
116
|
+
* label 占行数
|
|
117
|
+
*/
|
|
118
|
+
labelRowspan: [Number, String],
|
|
119
|
+
/**
|
|
120
|
+
* input 占行数
|
|
121
|
+
*/
|
|
122
|
+
inputRowspan: [Number, String],
|
|
123
|
+
// el-form-item
|
|
124
|
+
prop: String,
|
|
125
|
+
label: String,
|
|
126
|
+
labelWidth: String,
|
|
127
|
+
required: Boolean,
|
|
128
|
+
rules: [Object, Array],
|
|
129
|
+
error: String,
|
|
130
|
+
showMessage: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: !0
|
|
133
|
+
},
|
|
134
|
+
inlineMessage: {
|
|
135
|
+
type: [String, Boolean],
|
|
136
|
+
default: ""
|
|
137
|
+
},
|
|
138
|
+
size: String,
|
|
139
|
+
validateStatus: String,
|
|
140
|
+
for: String,
|
|
141
|
+
// el-col
|
|
142
|
+
span: {
|
|
143
|
+
type: Number,
|
|
144
|
+
default: 12
|
|
145
|
+
},
|
|
146
|
+
offset: Number,
|
|
147
|
+
push: Number,
|
|
148
|
+
pull: Number,
|
|
149
|
+
xs: [Number, Object],
|
|
150
|
+
sm: [Number, Object],
|
|
151
|
+
md: [Number, Object],
|
|
152
|
+
lg: [Number, Object],
|
|
153
|
+
xl: [Number, Object],
|
|
154
|
+
tag: String
|
|
155
|
+
},
|
|
156
|
+
data() {
|
|
157
|
+
const e = {};
|
|
158
|
+
return o.forEach((r) => {
|
|
159
|
+
e[r] = null;
|
|
160
|
+
}), {
|
|
161
|
+
proxyForm: e
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
computed: {
|
|
165
|
+
prefix() {
|
|
166
|
+
return this.prefixConfig ? "请配置" : this.prefixPick || this.picker ? "请选择" : this.prefixAdd ? "请添加" : "请输入";
|
|
167
|
+
},
|
|
168
|
+
message() {
|
|
169
|
+
var e;
|
|
170
|
+
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
171
|
+
},
|
|
172
|
+
computeRules() {
|
|
173
|
+
var i;
|
|
174
|
+
const e = [...this.rules || []], r = e.find((t) => t.required);
|
|
175
|
+
if (this.required || r || (i = this.formHolder.requiredFields) != null && i.includes(this.prop)) {
|
|
176
|
+
const t = e.find((n) => n.required);
|
|
177
|
+
t ? t.ref ? t.label = t.label || this.label : t.message = t.message || this.message : e.unshift(this.getRequireRule());
|
|
178
|
+
}
|
|
179
|
+
return e.concat(this.getRules());
|
|
180
|
+
},
|
|
181
|
+
computeSpan() {
|
|
182
|
+
return this.block ? 24 : this.span;
|
|
183
|
+
},
|
|
184
|
+
formItemProps() {
|
|
185
|
+
return s({ ...this.$props, ...this.$attrs }, c);
|
|
186
|
+
},
|
|
187
|
+
elFormItemProps() {
|
|
188
|
+
return s({ ...this.$props, ...this.$attrs }, h);
|
|
189
|
+
},
|
|
190
|
+
elColProps() {
|
|
191
|
+
return s({ ...this.$props, ...this.$attrs }, d);
|
|
192
|
+
},
|
|
193
|
+
formCfg() {
|
|
194
|
+
const e = {
|
|
195
|
+
disabled: this.disabled
|
|
196
|
+
};
|
|
197
|
+
return o.forEach((r) => {
|
|
198
|
+
e[r] = this.elForm[r];
|
|
199
|
+
}), e;
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
watch: {
|
|
203
|
+
computeRules() {
|
|
204
|
+
var e, r;
|
|
205
|
+
(r = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || r.call(e, this.prop);
|
|
206
|
+
},
|
|
207
|
+
formCfg: {
|
|
208
|
+
immediate: !0,
|
|
209
|
+
handler() {
|
|
210
|
+
var e;
|
|
211
|
+
this.proxyForm.disabled = (e = this.formHolder.enabledFields) != null && e.includes(this.prop) ? !1 : (this.elForm || {}).disabled, o.forEach((r) => {
|
|
212
|
+
var i;
|
|
213
|
+
r !== "disabled" && (b.includes(r) ? this.proxyForm[r] = (i = this.elForm[r]) == null ? void 0 : i.bind(this.elForm) : this.proxyForm[r] = this.elForm[r]);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
methods: {
|
|
219
|
+
getRules() {
|
|
220
|
+
return [];
|
|
221
|
+
},
|
|
222
|
+
getRequireRule() {
|
|
223
|
+
return {
|
|
224
|
+
required: !0,
|
|
225
|
+
trigger: this.trigger,
|
|
226
|
+
message: this.message
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
export {
|
|
232
|
+
S as f
|
|
233
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const a = (r, t, e) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? e(new Error("invalid")) : e();
|
|
2
|
+
function s(r, t, e) {
|
|
3
|
+
if (this.$refs.table.$refs.table.records.length === 0) {
|
|
4
|
+
e(new Error(r.message || `请添加${r.label}`));
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
e();
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
s as a,
|
|
11
|
+
a as v
|
|
12
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
function O(o) {
|
|
2
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
3
|
+
}
|
|
4
|
+
var a, u;
|
|
5
|
+
function c() {
|
|
6
|
+
if (u) return a;
|
|
7
|
+
u = 1;
|
|
8
|
+
function o() {
|
|
9
|
+
return o = Object.assign ? Object.assign.bind() : function(s) {
|
|
10
|
+
for (var r, n = 1; n < arguments.length; n++) for (var e in r = arguments[n], r) Object.prototype.hasOwnProperty.call(r, e) && (s[e] = r[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, o.apply(this, arguments);
|
|
13
|
+
}
|
|
14
|
+
var l = ["attrs", "props", "domProps"], p = ["class", "style", "directives"], f = ["on", "nativeOn"], g = function(s) {
|
|
15
|
+
return s.reduce(function(r, n) {
|
|
16
|
+
for (var e in n) if (!r[e]) r[e] = n[e];
|
|
17
|
+
else if (l.indexOf(e) !== -1) r[e] = o({}, r[e], n[e]);
|
|
18
|
+
else if (p.indexOf(e) !== -1) {
|
|
19
|
+
var y = r[e] instanceof Array ? r[e] : [r[e]], m = n[e] instanceof Array ? n[e] : [n[e]];
|
|
20
|
+
r[e] = [].concat(y, m);
|
|
21
|
+
} else if (f.indexOf(e) !== -1)
|
|
22
|
+
for (var t in n[e]) if (r[e][t]) {
|
|
23
|
+
var d = r[e][t] instanceof Array ? r[e][t] : [r[e][t]], h = n[e][t] instanceof Array ? n[e][t] : [n[e][t]];
|
|
24
|
+
r[e][t] = [].concat(d, h);
|
|
25
|
+
} else r[e][t] = n[e][t];
|
|
26
|
+
else if (e === "hook") for (var i in n[e]) r[e][i] = r[e][i] ? v(r[e][i], n[e][i]) : n[e][i];
|
|
27
|
+
else r[e] = n[e];
|
|
28
|
+
return r;
|
|
29
|
+
}, {});
|
|
30
|
+
}, v = function(s, r) {
|
|
31
|
+
return function() {
|
|
32
|
+
s && s.apply(this, arguments), r && r.apply(this, arguments);
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
return a = g, a;
|
|
36
|
+
}
|
|
37
|
+
var j = c();
|
|
38
|
+
const A = /* @__PURE__ */ O(j);
|
|
39
|
+
export {
|
|
40
|
+
A as _
|
|
41
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isPlainObject as i, isString as s, isArray as d } from "@web-utils/core";
|
|
2
|
+
const o = (n, r) => i(n) || s(n) ? [r, n] : d(n) ? [r, ...n] : [r], u = () => {
|
|
3
|
+
const n = window.navigator.userAgent, r = n.indexOf("MSIE ");
|
|
4
|
+
if (r > 0)
|
|
5
|
+
return parseInt(n.substring(r + 5, n.indexOf(".", r)), 10);
|
|
6
|
+
if (n.indexOf("Trident/") > 0) {
|
|
7
|
+
const t = n.indexOf("rv:");
|
|
8
|
+
return parseInt(n.substring(t + 3, n.indexOf(".", t)), 10);
|
|
9
|
+
}
|
|
10
|
+
const e = n.indexOf("Edge/");
|
|
11
|
+
return e > 0 ? parseInt(n.substring(e + 5, n.indexOf(".", e)), 10) : -1;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
u as a,
|
|
15
|
+
o as g
|
|
16
|
+
};
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import { isObject as u, isString as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
function E() {
|
|
5
|
-
const e = window.navigator.userAgent, r = e.indexOf("MSIE ");
|
|
6
|
-
if (r > 0)
|
|
7
|
-
return parseInt(e.substring(r + 5, e.indexOf(".", r)), 10);
|
|
8
|
-
if (e.indexOf("Trident/") > 0) {
|
|
9
|
-
const o = e.indexOf("rv:");
|
|
10
|
-
return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
|
|
11
|
-
}
|
|
12
|
-
const l = e.indexOf("Edge/");
|
|
13
|
-
return l > 0 ? parseInt(e.substring(l + 5, e.indexOf(".", l)), 10) : -1;
|
|
14
|
-
}
|
|
15
|
-
function z(e, r) {
|
|
16
|
-
for (const t in r)
|
|
17
|
-
x.set(e, t, r[t]);
|
|
18
|
-
return e;
|
|
19
|
-
}
|
|
20
|
-
const I = (e, r) => {
|
|
1
|
+
import { isObject as u, isString as f, hasOwn as h, camelize as p, isFunction as m } from "@web-utils/core";
|
|
2
|
+
import g from "async-validator";
|
|
3
|
+
const z = (e, r) => {
|
|
21
4
|
if (!e || !r)
|
|
22
5
|
return null;
|
|
23
6
|
let t = e;
|
|
@@ -58,7 +41,7 @@ const I = (e, r) => {
|
|
|
58
41
|
"lazy",
|
|
59
42
|
"load",
|
|
60
43
|
"tree-props"
|
|
61
|
-
],
|
|
44
|
+
], x = [
|
|
62
45
|
"select",
|
|
63
46
|
"select-all",
|
|
64
47
|
"selection-change",
|
|
@@ -130,7 +113,7 @@ const I = (e, r) => {
|
|
|
130
113
|
"draggable",
|
|
131
114
|
"allow-drag",
|
|
132
115
|
"allow-drop"
|
|
133
|
-
],
|
|
116
|
+
], b = [
|
|
134
117
|
"node-click",
|
|
135
118
|
"node-contextmenu",
|
|
136
119
|
"check-change",
|
|
@@ -144,42 +127,55 @@ const I = (e, r) => {
|
|
|
144
127
|
"node-drag-over",
|
|
145
128
|
"node-drag-end",
|
|
146
129
|
"node-drop"
|
|
147
|
-
],
|
|
130
|
+
], o = (e, r, t = !0) => {
|
|
148
131
|
if (u(e)) {
|
|
149
132
|
let l = r;
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
133
|
+
f(r) && (l = l.split(","));
|
|
134
|
+
const a = {};
|
|
135
|
+
if (t)
|
|
136
|
+
l.forEach((n) => {
|
|
137
|
+
h(e, n) && (a[n] = e[n]);
|
|
138
|
+
});
|
|
139
|
+
else
|
|
140
|
+
for (const n in e)
|
|
141
|
+
l.includes(n) || (a[n] = e[n]);
|
|
142
|
+
return a;
|
|
155
143
|
}
|
|
156
144
|
return e;
|
|
157
|
-
},
|
|
145
|
+
}, E = (e) => {
|
|
158
146
|
const r = {};
|
|
159
147
|
for (const t in e)
|
|
160
|
-
r[
|
|
148
|
+
r[p(t)] = e[t];
|
|
161
149
|
return r;
|
|
162
|
-
},
|
|
150
|
+
}, F = (e) => o(e, w), O = (e) => o(e, y), A = (e) => o(e, x), C = (e) => o(e, k), K = (e) => o(e, b), d = (e = "", r = {}) => {
|
|
163
151
|
const t = r || {};
|
|
164
|
-
return (e || "").replace(/{(.*?)}/g, (
|
|
152
|
+
return (e || "").replace(/{(.*?)}/g, (a, n) => {
|
|
165
153
|
if (n.indexOf(":")) {
|
|
166
|
-
const [
|
|
167
|
-
return t[
|
|
154
|
+
const [s, c] = n.split(":");
|
|
155
|
+
return t[s] ? t[s] : c;
|
|
168
156
|
} else
|
|
169
157
|
return t[n] || "";
|
|
170
158
|
});
|
|
171
|
-
},
|
|
159
|
+
}, V = (e, r) => m(e) ? d(e(r), r) : f(e) ? d(e, r) : null;
|
|
160
|
+
function R(e, r, t) {
|
|
161
|
+
return new Promise((l, a) => {
|
|
162
|
+
const n = {};
|
|
163
|
+
t && t.length > 0 && t.forEach((i) => {
|
|
164
|
+
delete i.trigger;
|
|
165
|
+
}), n[e] = t;
|
|
166
|
+
const s = new g(n), c = {};
|
|
167
|
+
c[e] = r, s.validate(c, { firstFields: !0 }, (i, v) => l(!i));
|
|
168
|
+
});
|
|
169
|
+
}
|
|
172
170
|
export {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
M as k,
|
|
184
|
-
A as n
|
|
171
|
+
K as a,
|
|
172
|
+
C as b,
|
|
173
|
+
o as c,
|
|
174
|
+
z as d,
|
|
175
|
+
V as e,
|
|
176
|
+
O as f,
|
|
177
|
+
A as g,
|
|
178
|
+
F as h,
|
|
179
|
+
E as n,
|
|
180
|
+
R as v
|
|
185
181
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
props: {
|
|
3
|
+
value: Array,
|
|
4
|
+
prop: String,
|
|
5
|
+
columns: Array,
|
|
6
|
+
descs: Array,
|
|
7
|
+
ascs: Array,
|
|
8
|
+
limit: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 1 / 0
|
|
11
|
+
},
|
|
12
|
+
disabled: Boolean,
|
|
13
|
+
showSummary: Boolean,
|
|
14
|
+
selection: Boolean,
|
|
15
|
+
index: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !0
|
|
18
|
+
},
|
|
19
|
+
selectionWidth: String,
|
|
20
|
+
toolbarMenus: Array,
|
|
21
|
+
handleMenus: Array,
|
|
22
|
+
fetchApi: Function,
|
|
23
|
+
delApi: Function,
|
|
24
|
+
bottomAddButton: Boolean,
|
|
25
|
+
initRow: Function
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
o as S
|
|
30
|
+
};
|
|
@@ -55,7 +55,7 @@ const n = {
|
|
|
55
55
|
this.$parent.$emit("on-before-index-change", this.currentIndex);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
(typeof this.disabled
|
|
58
|
+
(typeof this.disabled > "u" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
|
|
59
59
|
this.$emit("on-item-click", this.currentIndex);
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { fastClone as n } from "@web-utils/core";
|
|
2
|
+
function p(e) {
|
|
3
|
+
let i = { ...e };
|
|
4
|
+
if (e.script && (i = {
|
|
5
|
+
...e,
|
|
6
|
+
...e.script,
|
|
7
|
+
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
8
|
+
}), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
|
|
9
|
+
let s = "";
|
|
10
|
+
for (const t in e.eventDefinitions[0])
|
|
11
|
+
t.indexOf("time") !== -1 && (s = t, i.eventDefinitionType = t.replace("time", "").toLowerCase());
|
|
12
|
+
i.eventTimeDefinitions = e.eventDefinitions[0][s].body;
|
|
13
|
+
}
|
|
14
|
+
return i;
|
|
15
|
+
}
|
|
16
|
+
function r(e) {
|
|
17
|
+
var s;
|
|
18
|
+
let i;
|
|
19
|
+
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), {
|
|
20
|
+
...n(e),
|
|
21
|
+
...e.script ?? {},
|
|
22
|
+
fields: (s = e.fields) == null ? void 0 : s.map((t) => ({ ...t, fieldType: t.expression ? "expression" : "string" })),
|
|
23
|
+
listenerType: i
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const f = {
|
|
27
|
+
classListener: "Java 类",
|
|
28
|
+
expressionListener: "表达式",
|
|
29
|
+
delegateExpressionListener: "代理表达式",
|
|
30
|
+
scriptListener: "脚本"
|
|
31
|
+
}, c = {
|
|
32
|
+
create: "创建",
|
|
33
|
+
assignment: "指派",
|
|
34
|
+
complete: "完成",
|
|
35
|
+
delete: "删除",
|
|
36
|
+
update: "更新",
|
|
37
|
+
timeout: "超时"
|
|
38
|
+
}, a = {
|
|
39
|
+
string: "字符串",
|
|
40
|
+
expression: "表达式"
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
r as a,
|
|
44
|
+
c as e,
|
|
45
|
+
a as f,
|
|
46
|
+
p as i,
|
|
47
|
+
f as l
|
|
48
|
+
};
|
package/color-picker/index.mjs
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} catch (l) {
|
|
6
|
-
n(l);
|
|
7
|
-
}
|
|
8
|
-
}, d = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
s(r.throw(o));
|
|
11
|
-
} catch (l) {
|
|
12
|
-
n(l);
|
|
13
|
-
}
|
|
14
|
-
}, s = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(c, d);
|
|
15
|
-
s((r = r.apply(i, e)).next());
|
|
16
|
-
});
|
|
17
|
-
import p from "element-ui/packages/color-picker/src/color";
|
|
18
|
-
import u from "element-ui/src/utils/clickoutside";
|
|
19
|
-
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
20
|
-
const f = {
|
|
1
|
+
import t from "element-ui/packages/color-picker/src/color";
|
|
2
|
+
import s from "element-ui/src/utils/clickoutside";
|
|
3
|
+
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
const n = {
|
|
21
5
|
name: "ColorPicker",
|
|
22
|
-
directives: { Clickoutside:
|
|
6
|
+
directives: { Clickoutside: s },
|
|
23
7
|
props: {
|
|
24
8
|
popperClass: String,
|
|
25
9
|
predefine: Array,
|
|
@@ -38,7 +22,7 @@ const f = {
|
|
|
38
22
|
},
|
|
39
23
|
data() {
|
|
40
24
|
return {
|
|
41
|
-
color: new
|
|
25
|
+
color: new t({ enableAlpha: !1 }),
|
|
42
26
|
showPicker: !1
|
|
43
27
|
};
|
|
44
28
|
},
|
|
@@ -51,11 +35,9 @@ const f = {
|
|
|
51
35
|
},
|
|
52
36
|
visible: {
|
|
53
37
|
immediate: !0,
|
|
54
|
-
handler(i) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
i ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : (e = this.$refs.dropdown) == null || e.doDestroy(!0), this.showPicker = i;
|
|
58
|
-
});
|
|
38
|
+
async handler(i) {
|
|
39
|
+
var e;
|
|
40
|
+
i ? (await this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : (e = this.$refs.dropdown) == null || e.doDestroy(!0), this.showPicker = i;
|
|
59
41
|
}
|
|
60
42
|
}
|
|
61
43
|
},
|
|
@@ -77,20 +59,20 @@ const f = {
|
|
|
77
59
|
}
|
|
78
60
|
}
|
|
79
61
|
};
|
|
80
|
-
var
|
|
81
|
-
var e = this,
|
|
82
|
-
return
|
|
83
|
-
e.showPicker =
|
|
62
|
+
var a = function() {
|
|
63
|
+
var e = this, o = e._self._c;
|
|
64
|
+
return o("ElColorPickerDropdown", { directives: [{ name: "clickoutside", rawName: "v-clickoutside", value: e.onClickOutside, expression: "onClickOutside" }], ref: "dropdown", class: ["el-color-picker__panel", e.popperClass || ""], attrs: { offset: e.offset, "append-to-body": e.appendToBody, color: e.color, predefine: e.predefine }, on: { pick: e.confirmValue, clear: e.clearValue }, model: { value: e.showPicker, callback: function(r) {
|
|
65
|
+
e.showPicker = r;
|
|
84
66
|
}, expression: "showPicker" } });
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
67
|
+
}, c = [], d = /* @__PURE__ */ l(
|
|
68
|
+
n,
|
|
69
|
+
a,
|
|
70
|
+
c,
|
|
89
71
|
!1,
|
|
90
72
|
null,
|
|
91
73
|
null
|
|
92
74
|
);
|
|
93
|
-
const
|
|
75
|
+
const f = d.exports;
|
|
94
76
|
export {
|
|
95
|
-
|
|
77
|
+
f as default
|
|
96
78
|
};
|
package/comment/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-comment{align-items:flex-start;margin-bottom:30px;display:flex}.avue-comment--reverse{flex-direction:row-reverse}.avue-comment--reverse .avue-comment__main:before,.avue-comment--reverse .avue-comment__main:after{border-width:8px 0 8px 8px;left:auto;right:-8px}.avue-comment--reverse .avue-comment__main:before{border-left-color:#dedede}.avue-comment--reverse .avue-comment__main:after{border-left-color:#f8f8f8;margin-left:auto;margin-right:1px}.avue-comment__avatar{box-sizing:border-box;vertical-align:middle;border:1px solid
|
|
1
|
+
.avue-comment{align-items:flex-start;margin-bottom:30px;display:flex}.avue-comment--reverse{flex-direction:row-reverse}.avue-comment--reverse .avue-comment__main:before,.avue-comment--reverse .avue-comment__main:after{border-width:8px 0 8px 8px;left:auto;right:-8px}.avue-comment--reverse .avue-comment__main:before{border-left-color:#dedede}.avue-comment--reverse .avue-comment__main:after{border-left-color:#f8f8f8;margin-left:auto;margin-right:1px}.avue-comment__avatar{box-sizing:border-box;vertical-align:middle;border:1px solid #0000;border-radius:50%;width:48px;height:48px}.avue-comment__header{background:#f8f8f8;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:5px 15px;display:flex}.avue-comment__author{color:#999;font-size:14px;font-weight:700}.avue-comment__main{border:1px solid #dedede;border-radius:2px;flex:1;margin:0 20px;position:relative}.avue-comment__main:before,.avue-comment__main:after{content:" ";pointer-events:none;border-top:8px solid #0000;border-bottom:8px outset #0000;border-left:0 solid #0000;border-right:8px solid #0000;width:0;height:0;display:block;position:absolute;top:10px;left:-8px;right:100%}.avue-comment__main:before{z-index:1;border-right-color:#dedede}.avue-comment__main:after{z-index:2;border-right-color:#f8f8f8;margin-left:1px}.avue-comment__body{color:#333;background:#fff;padding:15px;font-family:Segoe UI,Lucida Grande,Helvetica,Arial,Microsoft YaHei,FreeSans,Arimo,Droid Sans,wenquanyi micro hei,Hiragino Sans GB,Hiragino Sans GB W3,FontAwesome,sans-serif;font-size:14px;overflow:hidden}.avue-comment blockquote{border-left:4px solid #ddd;margin:0;padding:1px 0 1px 15px;font-family:Georgia,Times New Roman,Times,Kai,Kaiti SC,KaiTi,BiauKai,FontAwesome,serif}
|
package/confirm-button/index.mjs
CHANGED
package/confirmable/index.mjs
CHANGED
package/context-menu/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cm-container{z-index:9999;-webkit-user-select:none
|
|
1
|
+
.cm-container{z-index:9999;-webkit-user-select:none;user-select:none;position:fixed}.cm-container .icon{vertical-align:-.15em;fill:currentColor;width:.9em;height:.9em;position:absolute;top:50%;right:0;overflow:hidden;transform:translateY(-50%)}.cm-container .cm-item-icon{margin-right:4px}.cm-container .cm-ul{color:#2e2e2e;background-color:#fff;width:100%;margin:0;padding:0;list-style:none;box-shadow:0 0 1px #666}.cm-container .cm-ul li{box-sizing:border-box;text-align:left;cursor:pointer;width:100%;position:relative}.cm-container .cm-ul li:hover>ul{display:block}.cm-container .cm-ul li div{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;width:100%;height:100%;padding:0 .8em;display:inline-block;position:relative;overflow:hidden}.cm-container .cm-ul li i{text-align:center;width:1em;font-size:1.3em;display:inline-block}.cm-container .cm-ul li div:hover{color:#fff;background-color:#666}.cm-container .cm-ul-2,.cm-container .cm-ul-3{z-index:10000;display:none;position:absolute;top:0}.cm-container .cm-left svg{left:0;transform:translateY(-50%)rotate(180deg)}.cm-container .cm-underline li div:after{z-index:10001;content:"";background-color:#ccc;width:90%;height:1px;position:absolute;top:0;left:5%}.cm-container .cm-underline li div:hover:after,.cm-container .cm-underline>li:first-child>div:after{display:none}
|