@web-utils/component 2.8.8 → 2.8.9
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 +1 -1
- package/chunk-file-uploader/index.mjs +5 -3
- package/chunks/FormTemp.a77c73c4.mjs +163 -0
- package/{icon-temp/index.mjs → chunks/IconTemp.a10129a6.mjs} +2 -2
- package/chunks/{dataformat.ab62230f.mjs → dataformat.4100726d.mjs} +8 -8
- package/chunks/{dic.7f13b573.mjs → dic.9e90e2a4.mjs} +1 -1
- package/chunks/{event.1ac32f1d.mjs → event.ebd9a3a6.mjs} +2 -2
- package/chunks/{init.47ce5ed9.mjs → init.27f6a0c4.mjs} +2 -2
- package/chunks/{util.505913d9.mjs → util.d691afb6.mjs} +17 -17
- package/dialog-form/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +14 -12
- package/flow/index.mjs +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +36 -32
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2504 -140
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +538 -333
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +21 -21
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +14 -12
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.mjs +475 -552
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/package.json +1 -1
- package/process-palette/index.mjs +190 -0
- package/process-palette/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +104 -34
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +846 -44
- package/tinymce-editor/style.css +1 -1
- package/verify/index.mjs +1 -1
- package/web-types.json +25 -658
- package/chunk-file-uploader-button/index.mjs +0 -60
- package/chunk-file-uploader-button/style.css +0 -1
- package/chunk-file-uploader-drop/index.mjs +0 -83
- package/chunk-file-uploader-drop/style.css +0 -1
- package/chunk-file-uploader-file/index.mjs +0 -311
- package/chunk-file-uploader-file/style.css +0 -1
- package/chunk-file-uploader-files/index.mjs +0 -49
- package/chunk-file-uploader-files/style.css +0 -1
- package/chunk-file-uploader-list/index.mjs +0 -50
- package/chunk-file-uploader-list/style.css +0 -1
- package/chunk-file-uploader-un-support/index.mjs +0 -51
- package/chunk-file-uploader-un-support/style.css +0 -1
- package/chunks/config.46422d7f.mjs +0 -73
- package/chunks/detail.6e46de33.mjs +0 -29
- package/chunks/mixins.5a78e0db.mjs +0 -16
- package/chunks/utils.97652d86.mjs +0 -26
- package/column/index.mjs +0 -115
- package/column-default/index.mjs +0 -106
- package/column-dynamic/index.mjs +0 -93
- package/column-menu/index.mjs +0 -288
- package/column-slot/index.mjs +0 -267
- package/dialog-column/index.mjs +0 -139
- package/dialog-excel/index.mjs +0 -211
- package/dialog-filter/index.mjs +0 -248
- package/form-group/index.mjs +0 -117
- package/form-group/style.css +0 -1
- package/form-temp/index.mjs +0 -137
- package/fy-dialog-form/index.mjs +0 -272
- package/fy-form-menu/index.mjs +0 -95
- package/header-menu/index.mjs +0 -238
- package/header-search/index.mjs +0 -255
- package/table-page/index.mjs +0 -130
- package/tinymce-wrapper/index.mjs +0 -821
- package/tinymce-wrapper/style.css +0 -1
- package/trigger/index.mjs +0 -71
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { u as r, s as o } from "../chunks/mixins.5a78e0db.mjs";
|
|
2
|
-
import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var l = function() {
|
|
4
|
-
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
5
|
-
return s("label", {
|
|
6
|
-
directives: [{
|
|
7
|
-
name: "show",
|
|
8
|
-
rawName: "v-show",
|
|
9
|
-
value: e.support,
|
|
10
|
-
expression: "support"
|
|
11
|
-
}],
|
|
12
|
-
ref: "btn",
|
|
13
|
-
staticClass: "uploader-btn"
|
|
14
|
-
}, [e._t("default")], 2);
|
|
15
|
-
}, i = [];
|
|
16
|
-
const u = {
|
|
17
|
-
name: "ChunkFileUploaderButton",
|
|
18
|
-
mixins: [r, o],
|
|
19
|
-
props: {
|
|
20
|
-
directory: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
},
|
|
24
|
-
single: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
},
|
|
28
|
-
attrs: {
|
|
29
|
-
type: Object,
|
|
30
|
-
default() {
|
|
31
|
-
return {};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
mounted() {
|
|
36
|
-
this.$nextTick(() => {
|
|
37
|
-
this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}, n = {};
|
|
41
|
-
var p = /* @__PURE__ */ a(
|
|
42
|
-
u,
|
|
43
|
-
l,
|
|
44
|
-
i,
|
|
45
|
-
!1,
|
|
46
|
-
_,
|
|
47
|
-
null,
|
|
48
|
-
null,
|
|
49
|
-
null
|
|
50
|
-
);
|
|
51
|
-
function _(e) {
|
|
52
|
-
for (let t in n)
|
|
53
|
-
this[t] = n[t];
|
|
54
|
-
}
|
|
55
|
-
const f = /* @__PURE__ */ function() {
|
|
56
|
-
return p.exports;
|
|
57
|
-
}();
|
|
58
|
-
export {
|
|
59
|
-
f as default
|
|
60
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uploader-btn{position:relative;display:inline-block;padding:4px 8px;color:#666;font-size:100%;line-height:1.4;background:none;border:1px solid #666;border-radius:2px;outline:none;cursor:pointer}.uploader-btn:hover{background-color:#00000014}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
var p = (o, r, s) => new Promise((l, a) => {
|
|
2
|
-
var d = (e) => {
|
|
3
|
-
try {
|
|
4
|
-
t(s.next(e));
|
|
5
|
-
} catch (n) {
|
|
6
|
-
a(n);
|
|
7
|
-
}
|
|
8
|
-
}, u = (e) => {
|
|
9
|
-
try {
|
|
10
|
-
t(s.throw(e));
|
|
11
|
-
} catch (n) {
|
|
12
|
-
a(n);
|
|
13
|
-
}
|
|
14
|
-
}, t = (e) => e.done ? l(e.value) : Promise.resolve(e.value).then(d, u);
|
|
15
|
-
t((s = s.apply(o, r)).next());
|
|
16
|
-
});
|
|
17
|
-
import { u as c, s as _ } from "../chunks/mixins.5a78e0db.mjs";
|
|
18
|
-
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
|
-
var v = function() {
|
|
20
|
-
var o = this, r = o.$createElement, s = o._self._c || r;
|
|
21
|
-
return s("div", {
|
|
22
|
-
directives: [{
|
|
23
|
-
name: "show",
|
|
24
|
-
rawName: "v-show",
|
|
25
|
-
value: o.support,
|
|
26
|
-
expression: "support"
|
|
27
|
-
}],
|
|
28
|
-
ref: "drop",
|
|
29
|
-
staticClass: "uploader-drop",
|
|
30
|
-
class: o.dropClass
|
|
31
|
-
}, [o._t("default")], 2);
|
|
32
|
-
}, f = [];
|
|
33
|
-
const m = {
|
|
34
|
-
name: "ChunkFileUploaderDrop",
|
|
35
|
-
mixins: [c, _],
|
|
36
|
-
data() {
|
|
37
|
-
return {
|
|
38
|
-
dropClass: ""
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
mounted() {
|
|
42
|
-
return p(this, null, function* () {
|
|
43
|
-
yield this.$nextTick();
|
|
44
|
-
const o = this.$refs.drop, r = this.uploader.uploader;
|
|
45
|
-
r.assignDrop(o), r.on("dragenter", this.onDragEnter), r.on("dragleave", this.onDragLeave), r.on("drop", this.onDrop);
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
beforeDestroy() {
|
|
49
|
-
const o = this.$refs.drop, r = this.uploader.uploader;
|
|
50
|
-
r.off("dragenter", this.onDragEnter), r.off("dragleave", this.onDragLeave), r.off("drop", this.onDrop), r.unAssignDrop(o);
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
onDragEnter() {
|
|
54
|
-
this.dropClass = "uploader-dragover";
|
|
55
|
-
},
|
|
56
|
-
onDragLeave() {
|
|
57
|
-
this.dropClass = "";
|
|
58
|
-
},
|
|
59
|
-
onDrop() {
|
|
60
|
-
this.dropClass = "uploader-droped";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, i = {};
|
|
64
|
-
var D = /* @__PURE__ */ h(
|
|
65
|
-
m,
|
|
66
|
-
v,
|
|
67
|
-
f,
|
|
68
|
-
!1,
|
|
69
|
-
g,
|
|
70
|
-
null,
|
|
71
|
-
null,
|
|
72
|
-
null
|
|
73
|
-
);
|
|
74
|
-
function g(o) {
|
|
75
|
-
for (let r in i)
|
|
76
|
-
this[r] = i[r];
|
|
77
|
-
}
|
|
78
|
-
const y = /* @__PURE__ */ function() {
|
|
79
|
-
return D.exports;
|
|
80
|
-
}();
|
|
81
|
-
export {
|
|
82
|
-
y as default
|
|
83
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uploader-drop{position:relative;padding:10px;overflow:hidden;background-color:#f5f5f5;border:1px dashed #ccc}.uploader-dragover{background-color:#f7f7f7;border-color:#999}
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import n from "simple-uploader.js";
|
|
2
|
-
import { s as p } from "../chunks/utils.97652d86.mjs";
|
|
3
|
-
import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
const o = ["fileProgress", "fileSuccess", "fileComplete", "fileError"];
|
|
5
|
-
var u = function() {
|
|
6
|
-
var e = this, i = e.$createElement, s = e._self._c || i;
|
|
7
|
-
return s("div", {
|
|
8
|
-
staticClass: "chunk-file-uploader-file",
|
|
9
|
-
attrs: {
|
|
10
|
-
status: e.status
|
|
11
|
-
}
|
|
12
|
-
}, [e._t("default", function() {
|
|
13
|
-
return [s("div", {
|
|
14
|
-
staticClass: "chunk-file-uploader-file-info"
|
|
15
|
-
}, [s("div", {
|
|
16
|
-
staticClass: "chunk-file-uploader-file-name",
|
|
17
|
-
attrs: {
|
|
18
|
-
title: e.file.name
|
|
19
|
-
}
|
|
20
|
-
}, [s("i", {
|
|
21
|
-
staticClass: "chunk-file-uploader-file-icon",
|
|
22
|
-
attrs: {
|
|
23
|
-
icon: e.fileCategory
|
|
24
|
-
}
|
|
25
|
-
}), e._v(e._s(e.file.name) + " ")]), s("div", {
|
|
26
|
-
staticClass: "chunk-file-uploader-file-size"
|
|
27
|
-
}, [e._v(" " + e._s(e.formatedSize) + " ")]), s("div", {
|
|
28
|
-
staticClass: "chunk-file-uploader-file-status"
|
|
29
|
-
}, [s("span", {
|
|
30
|
-
directives: [{
|
|
31
|
-
name: "show",
|
|
32
|
-
rawName: "v-show",
|
|
33
|
-
value: !["uploading", "md5"].includes(e.status),
|
|
34
|
-
expression: "!['uploading', 'md5'].includes(status)"
|
|
35
|
-
}]
|
|
36
|
-
}, [e._v(e._s(e.statusText))]), s("span", {
|
|
37
|
-
directives: [{
|
|
38
|
-
name: "show",
|
|
39
|
-
rawName: "v-show",
|
|
40
|
-
value: e.status === "md5",
|
|
41
|
-
expression: "status === 'md5'"
|
|
42
|
-
}]
|
|
43
|
-
}, [e._v(e._s(e.file.md5Progress))]), s("span", {
|
|
44
|
-
directives: [{
|
|
45
|
-
name: "show",
|
|
46
|
-
rawName: "v-show",
|
|
47
|
-
value: e.status === "uploading",
|
|
48
|
-
expression: "status === 'uploading'"
|
|
49
|
-
}],
|
|
50
|
-
staticStyle: {
|
|
51
|
-
"padding-left": "4px"
|
|
52
|
-
}
|
|
53
|
-
}, [s("span", [e._v(e._s(e.progressStyle.progress))]), e._v(" | "), s("em", [e._v(e._s(e.formatedAverageSpeed))]), e._v(" | "), s("i", [e._v(e._s(e.formatedTimeRemaining))])])]), s("div", {
|
|
54
|
-
staticClass: "chunk-file-uploader-file-actions"
|
|
55
|
-
}, [s("span", {
|
|
56
|
-
staticClass: "chunk-file-uploader-file-pause",
|
|
57
|
-
on: {
|
|
58
|
-
click: e.pause
|
|
59
|
-
}
|
|
60
|
-
}), s("span", {
|
|
61
|
-
staticClass: "chunk-file-uploader-file-resume",
|
|
62
|
-
on: {
|
|
63
|
-
click: e.resume
|
|
64
|
-
}
|
|
65
|
-
}, [e._v("️")]), s("span", {
|
|
66
|
-
staticClass: "chunk-file-uploader-file-retry",
|
|
67
|
-
on: {
|
|
68
|
-
click: e.retry
|
|
69
|
-
}
|
|
70
|
-
}), s("span", {
|
|
71
|
-
staticClass: "chunk-file-uploader-file-remove",
|
|
72
|
-
on: {
|
|
73
|
-
click: e.remove
|
|
74
|
-
}
|
|
75
|
-
})])])];
|
|
76
|
-
}, {
|
|
77
|
-
file: e.file,
|
|
78
|
-
list: e.list,
|
|
79
|
-
status: e.status,
|
|
80
|
-
paused: e.paused,
|
|
81
|
-
error: e.error,
|
|
82
|
-
response: e.response,
|
|
83
|
-
averageSpeed: e.averageSpeed,
|
|
84
|
-
formatedAverageSpeed: e.formatedAverageSpeed,
|
|
85
|
-
currentSpeed: e.currentSpeed,
|
|
86
|
-
isComplete: e.isComplete,
|
|
87
|
-
isUploading: e.isUploading,
|
|
88
|
-
size: e.size,
|
|
89
|
-
formatedSize: e.formatedSize,
|
|
90
|
-
uploadedSize: e.uploadedSize,
|
|
91
|
-
progress: e.progress,
|
|
92
|
-
progressStyle: e.progressStyle,
|
|
93
|
-
progressingClass: e.progressingClass,
|
|
94
|
-
timeRemaining: e.timeRemaining,
|
|
95
|
-
formatedTimeRemaining: e.formatedTimeRemaining,
|
|
96
|
-
type: e.type,
|
|
97
|
-
extension: e.extension,
|
|
98
|
-
fileCategory: e.fileCategory
|
|
99
|
-
})], 2);
|
|
100
|
-
}, d = [];
|
|
101
|
-
const c = {
|
|
102
|
-
name: "ChunkFileUploaderFile",
|
|
103
|
-
props: {
|
|
104
|
-
file: {
|
|
105
|
-
type: Object,
|
|
106
|
-
default() {
|
|
107
|
-
return {};
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
list: {
|
|
111
|
-
type: Boolean,
|
|
112
|
-
default: !1
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
data() {
|
|
116
|
-
return {
|
|
117
|
-
response: null,
|
|
118
|
-
paused: !1,
|
|
119
|
-
error: !1,
|
|
120
|
-
averageSpeed: 0,
|
|
121
|
-
currentSpeed: 0,
|
|
122
|
-
isComplete: !1,
|
|
123
|
-
isUploading: !1,
|
|
124
|
-
size: 0,
|
|
125
|
-
formatedSize: "",
|
|
126
|
-
uploadedSize: 0,
|
|
127
|
-
progress: 0,
|
|
128
|
-
timeRemaining: 0,
|
|
129
|
-
type: "",
|
|
130
|
-
extension: "",
|
|
131
|
-
progressingClass: ""
|
|
132
|
-
};
|
|
133
|
-
},
|
|
134
|
-
computed: {
|
|
135
|
-
fileCategory() {
|
|
136
|
-
const e = this.extension;
|
|
137
|
-
let s = this.file.isFolder ? "folder" : "unknown";
|
|
138
|
-
const t = this.file.uploader.opts.categoryMap || {
|
|
139
|
-
image: ["gif", "jpg", "jpeg", "png", "bmp", "webp"],
|
|
140
|
-
video: ["mp4", "m3u8", "rmvb", "avi", "swf", "3gp", "mkv", "flv"],
|
|
141
|
-
audio: ["mp3", "wav", "wma", "ogg", "aac", "flac"],
|
|
142
|
-
document: [
|
|
143
|
-
"doc",
|
|
144
|
-
"txt",
|
|
145
|
-
"docx",
|
|
146
|
-
"pages",
|
|
147
|
-
"epub",
|
|
148
|
-
"pdf",
|
|
149
|
-
"numbers",
|
|
150
|
-
"csv",
|
|
151
|
-
"xls",
|
|
152
|
-
"xlsx",
|
|
153
|
-
"keynote",
|
|
154
|
-
"ppt",
|
|
155
|
-
"pptx"
|
|
156
|
-
]
|
|
157
|
-
};
|
|
158
|
-
return Object.keys(t).forEach((a) => {
|
|
159
|
-
t[a].indexOf(e) > -1 && (s = a);
|
|
160
|
-
}), s;
|
|
161
|
-
},
|
|
162
|
-
progressStyle() {
|
|
163
|
-
const e = Math.floor(this.progress * 100), i = `translateX(${Math.floor(e - 100)}%)`;
|
|
164
|
-
return {
|
|
165
|
-
progress: `${e}%`,
|
|
166
|
-
webkitTransform: i,
|
|
167
|
-
mozTransform: i,
|
|
168
|
-
msTransform: i,
|
|
169
|
-
transform: i
|
|
170
|
-
};
|
|
171
|
-
},
|
|
172
|
-
formatedAverageSpeed() {
|
|
173
|
-
return `${n.utils.formatSize(this.averageSpeed)} / s`;
|
|
174
|
-
},
|
|
175
|
-
status() {
|
|
176
|
-
const { isUploading: e, isComplete: i, isError: s, paused: r } = this, { md5Computing: t } = this.file;
|
|
177
|
-
return t ? "md5" : i ? "success" : s ? "error" : e ? "uploading" : r ? "paused" : "waiting";
|
|
178
|
-
},
|
|
179
|
-
statusText() {
|
|
180
|
-
const e = this.status, i = this.file.uploader.fileStatusText;
|
|
181
|
-
let s = e;
|
|
182
|
-
return typeof i == "function" ? s = i(e, this.response) : s = i[e], s || "";
|
|
183
|
-
},
|
|
184
|
-
formatedTimeRemaining() {
|
|
185
|
-
const e = this.timeRemaining, i = this.file;
|
|
186
|
-
if (e === Number.POSITIVE_INFINITY || e === 0)
|
|
187
|
-
return "";
|
|
188
|
-
let s = p(e);
|
|
189
|
-
const r = i.uploader.opts.parseTimeRemaining;
|
|
190
|
-
return r && (s = r(e, s)), s;
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
watch: {
|
|
194
|
-
status(e, i) {
|
|
195
|
-
i && e === "uploading" && i !== "uploading" ? this.tid = setTimeout(() => {
|
|
196
|
-
this.progressingClass = "uploader-file-progressing";
|
|
197
|
-
}, 200) : (clearTimeout(this.tid), this.progressingClass = "");
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
mounted() {
|
|
201
|
-
const e = ["paused", "error", "averageSpeed", "currentSpeed"], i = [
|
|
202
|
-
"isComplete",
|
|
203
|
-
"isUploading",
|
|
204
|
-
{
|
|
205
|
-
key: "size",
|
|
206
|
-
fn: "getSize"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
key: "formatedSize",
|
|
210
|
-
fn: "getFormatSize"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
key: "uploadedSize",
|
|
214
|
-
fn: "sizeUploaded"
|
|
215
|
-
},
|
|
216
|
-
"progress",
|
|
217
|
-
"timeRemaining",
|
|
218
|
-
{
|
|
219
|
-
key: "type",
|
|
220
|
-
fn: "getType"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
key: "extension",
|
|
224
|
-
fn: "getExtension"
|
|
225
|
-
}
|
|
226
|
-
];
|
|
227
|
-
e.forEach((t) => {
|
|
228
|
-
this[t] = this.file[t];
|
|
229
|
-
}), i.forEach((t) => {
|
|
230
|
-
typeof t == "string" ? this[t] = this.file[t]() : this[t.key] = this.file[t.fn]();
|
|
231
|
-
});
|
|
232
|
-
const s = this._handlers = {}, r = (t) => (s[t] = (...a) => {
|
|
233
|
-
this.fileEventsHandler(t, a);
|
|
234
|
-
}, s[t]);
|
|
235
|
-
o.forEach((t) => {
|
|
236
|
-
this.file.uploader.on(t, r(t));
|
|
237
|
-
});
|
|
238
|
-
},
|
|
239
|
-
destroyed() {
|
|
240
|
-
o.forEach((e) => {
|
|
241
|
-
this.file.uploader.off(e, this._handlers[e]);
|
|
242
|
-
}), this._handlers = null;
|
|
243
|
-
},
|
|
244
|
-
methods: {
|
|
245
|
-
_actionCheck() {
|
|
246
|
-
this.paused = this.file.paused, this.error = this.file.error, this.isUploading = this.file.isUploading();
|
|
247
|
-
},
|
|
248
|
-
pause() {
|
|
249
|
-
this.file.pause(), this._actionCheck(), this._fileProgress();
|
|
250
|
-
},
|
|
251
|
-
resume() {
|
|
252
|
-
this.file.resume(), this._actionCheck();
|
|
253
|
-
},
|
|
254
|
-
remove() {
|
|
255
|
-
this.$set(this.file, "canceled", !0), this.file.cancel();
|
|
256
|
-
},
|
|
257
|
-
retry() {
|
|
258
|
-
this.file.retry(), this._actionCheck();
|
|
259
|
-
},
|
|
260
|
-
processResponse(e) {
|
|
261
|
-
let i = e;
|
|
262
|
-
try {
|
|
263
|
-
i = JSON.parse(e);
|
|
264
|
-
} catch (s) {
|
|
265
|
-
}
|
|
266
|
-
this.response = i;
|
|
267
|
-
},
|
|
268
|
-
fileEventsHandler(e, i) {
|
|
269
|
-
const s = i[0], r = i[1], t = this.list ? s : r;
|
|
270
|
-
if (this.file === t) {
|
|
271
|
-
if (this.list && e === "fileSuccess") {
|
|
272
|
-
this.processResponse(i[2]);
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
this[`_${e}`].apply(this, i);
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
_fileProgress() {
|
|
279
|
-
this.progress = this.file.progress(), this.averageSpeed = this.file.averageSpeed, this.currentSpeed = this.file.currentSpeed, this.timeRemaining = this.file.timeRemaining(), this.uploadedSize = this.file.sizeUploaded(), this._actionCheck();
|
|
280
|
-
},
|
|
281
|
-
_fileSuccess(e, i, s) {
|
|
282
|
-
e && this.processResponse(s), this._fileProgress(), this.error = !1, this.isComplete = !0, this.isUploading = !1;
|
|
283
|
-
},
|
|
284
|
-
_fileComplete() {
|
|
285
|
-
this._fileSuccess();
|
|
286
|
-
},
|
|
287
|
-
_fileError(e, i, s) {
|
|
288
|
-
this._fileProgress(), this.processResponse(s), this.error = !0, this.isComplete = !1, this.isUploading = !1;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}, l = {};
|
|
292
|
-
var h = /* @__PURE__ */ f(
|
|
293
|
-
c,
|
|
294
|
-
u,
|
|
295
|
-
d,
|
|
296
|
-
!1,
|
|
297
|
-
m,
|
|
298
|
-
null,
|
|
299
|
-
null,
|
|
300
|
-
null
|
|
301
|
-
);
|
|
302
|
-
function m(e) {
|
|
303
|
-
for (let i in l)
|
|
304
|
-
this[i] = l[i];
|
|
305
|
-
}
|
|
306
|
-
const y = /* @__PURE__ */ function() {
|
|
307
|
-
return h.exports;
|
|
308
|
-
}();
|
|
309
|
-
export {
|
|
310
|
-
y as default
|
|
311
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.chunk-file-uploader-file{position:relative;height:49px;overflow:hidden;line-height:49px;border-bottom:1px solid #cdcdcd}.chunk-file-uploader-file[status=waiting] .chunk-file-uploader-file-pause,.chunk-file-uploader-file[status=uploading] .chunk-file-uploader-file-pause,.chunk-file-uploader-file[status=paused] .chunk-file-uploader-file-resume,.chunk-file-uploader-file[status=error] .chunk-file-uploader-file-retry{display:block}.chunk-file-uploader-file[status=success] .chunk-file-uploader-file-remove{display:none}.chunk-file-uploader-file[status=error] .chunk-file-uploader-file-progress{background:#ffe0e0}.chunk-file-uploader-file-progress{position:absolute;width:100%;height:100%;background:#e2eeff;transform:translate(-100%)}.chunk-file-uploader-file-progressing{transition:all .4s linear}.chunk-file-uploader-file-info{position:relative;z-index:1;height:100%;overflow:hidden;display:flex;flex-direction:row}.chunk-file-uploader-file-info:hover{background-color:#f0f0f033}.chunk-file-uploader-file-info i,.chunk-file-uploader-file-info em{font-style:normal}.chunk-file-uploader-file-name,.chunk-file-uploader-file-size,.chunk-file-uploader-file-meta,.chunk-file-uploader-file-status,.chunk-file-uploader-file-actions{position:relative;height:100%;padding:0 10px}.chunk-file-uploader-file-size,.chunk-file-uploader-file-meta,.chunk-file-uploader-file-status,.chunk-file-uploader-file-actions{flex-shrink:0}.chunk-file-uploader-file-name{overflow:hidden;white-space:nowrap;text-indent:14px;text-overflow:ellipsis;flex:1 1 auto}.chunk-file-uploader-file-icon{display:inline-block;width:24px;height:24px;margin-top:13px;margin-right:8px;vertical-align:top}.chunk-file-uploader-file-icon:before{display:block;height:100%;color:gray;font-size:24px;line-height:1;text-indent:0;content:"\1f4c3"}.chunk-file-uploader-file-icon[icon=folder]:before{content:"\1f4c2"}.chunk-file-uploader-file-icon[icon=image]:before{content:"\1f4ca"}.chunk-file-uploader-file-icon[icon=video]:before{content:"\1f4f9"}.chunk-file-uploader-file-icon[icon=audio]:before{content:"\1f3b5"}.chunk-file-uploader-file-icon[icon=document]:before{content:"\1f4cb"}.chunk-file-uploader-file-actions>span{display:none;float:left;width:16px;height:16px;margin-top:16px;margin-right:10px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAACxMAAAsTAQCanBgAAARkSURBVGje7ZnfS1NRHMAH4ptPkvQSuAdBkCxD8FUQJMEULUgzy1KyyPVQ4JMiiP4Bvg6EwUQQfMmwhwRDshwaKUjDVCgoSdDNHkzTJZ6+Z37Purve8+PeTb2TM/ggu+ew89l33x8H9BBCPG7GowXTJej3+wnDvEm0JuLC04+EYWftVAUv+fiCvDUdQR1BHUEdQR3BTIygvixoQS14XgTtthLVdpNWwXRLqvQ724LplFRtyrYF0yVpFLQrKRVMh6RZ0I6kkmCqklaCqpKZH0FX56Crq9jVfdDVk0RfFrSgFsxkQVmLcdKCVrKySCrryhPEyYShhzOcrFtG0EoilfHHk1CRU5rF6ZjNZhlVOW6RnMSVyyilKies4pO41diVy8wIujoHXV3FGdMHXTtJKLFYTLhZtq4vC1rwXApCZTIqgR6g1PBMCO9DL3bMMSqBHqDU8EyISDAHiGKvWwcCQG2KgjlAFCDAOhAAap0K5gKLphk8mqJgLrCIgoxRJ4J5wKpJ7gAoMkn5EBXBPGDVJHcAFJmkfIhQcAql1oBpTvTol9gG9pm4RHAKpdaAaU706JfYBvaZuJVgPQrt4sFlnOh5MC/p3lmJYD0K7eLBZZzoeTAv6d5ZnuAYHjpgEOnk5F0ufhG6v1ggOIaHDhhEOjl5l4tfhO4vthLcwAMrFNvLJO5vEwhu4IEViu1lEve3WQmyoihQFBzG/V0CQVYUBYqCw7i/SxTBcpsRbFeIYLnNCLZbCY5b5KAnxRwct8hBj9McZFVMW0ihRNBuFdMWUigRlFaxuQ9WWYjRMTiIe5z0wSoLMToGB3GPsA9aTZIJoB+nRgBnM1tzOkkmgH6cGgGczWzNpzqLx3n/aULJJgezeNw07oxQySbVywKjBOgFRnDs+VEsx8FlgVEC9AIjOPb8KJYjvSzoG7UW1IJaUAtqQS14toLNM5fN5APdwBJA8G83Pk/aK/rgzVvXzeQD3cASQPBvNz5P2ssTzAaGUIrHEO6zI5gNDKEUjyHcxxWkh4Ylcowwk1QQpIeGJXKMMJO0EgwqyjGCioJBJvDrxRMSuVOTJEXfbz1/bHwWtBL0yoQehK6RucgE+bGzanzulQh6E3IgQV+xpc8kcrfuSO7eTfJ3ZYmQw0Oy9azVKOk1C/bJ5D5F38YPeLfx0rjWJxHsS0SqsSYuxySjj5qO5Oj7xQWy2VBtFOwzCy6ryH3YfE3uh64Y1xckgstJPydEjkkeHv07Iy4Xaao15+KCWTBx6M/db+T9xivSErqaJDdzXI6yLRE8Vgg0coex/SPJvT0SbWu0KpZtbgSpCH3NRt7I5OxHkObc6heU+/M/J5vrpBFM5GBLqCQux14COXs5CNXK5OjPGm1tSMrJSOMNYQ4mVTGV/L6zTL7+DovkbFUxbSW0Wo05l8hJWsU+cRWfSh+Mt5Lb1ck/J1TvVsdDaR/MiEni+llsdZuZp62EViu+96bpNjNPWwmtVnzvFd5m9IVVC54x/wA7gNvqFG9vXQAAAABJRU5ErkJggg==) no-repeat 0 0;cursor:pointer}.chunk-file-uploader-file-actions>span:hover{background-position-x:-21px}.chunk-file-uploader-file-actions .chunk-file-uploader-file-pause{background-position-y:0}.chunk-file-uploader-file-actions .chunk-file-uploader-file-resume{background-position-y:-17px}.chunk-file-uploader-file-actions .chunk-file-uploader-file-retry{background-position-y:-53px}.chunk-file-uploader-file-actions .chunk-file-uploader-file-remove{display:block;background-position-y:-34px}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { u as r } from "../chunks/mixins.5a78e0db.mjs";
|
|
2
|
-
import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var o = function() {
|
|
4
|
-
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
5
|
-
return t("div", {
|
|
6
|
-
staticClass: "uploader-files"
|
|
7
|
-
}, [e._t("default", function() {
|
|
8
|
-
return [t("ul", e._l(e.files, function(l) {
|
|
9
|
-
return t("li", {
|
|
10
|
-
key: l.id
|
|
11
|
-
}, [t("ChunkFileUploaderFile", {
|
|
12
|
-
attrs: {
|
|
13
|
-
file: l
|
|
14
|
-
}
|
|
15
|
-
})], 1);
|
|
16
|
-
}), 0)];
|
|
17
|
-
}, {
|
|
18
|
-
files: e.files
|
|
19
|
-
})], 2);
|
|
20
|
-
}, u = [];
|
|
21
|
-
const a = {
|
|
22
|
-
name: "ChunkFileUploaderFiles",
|
|
23
|
-
mixins: [r],
|
|
24
|
-
computed: {
|
|
25
|
-
files() {
|
|
26
|
-
return this.uploader.files;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}, i = {};
|
|
30
|
-
var _ = /* @__PURE__ */ s(
|
|
31
|
-
a,
|
|
32
|
-
o,
|
|
33
|
-
u,
|
|
34
|
-
!1,
|
|
35
|
-
c,
|
|
36
|
-
null,
|
|
37
|
-
null,
|
|
38
|
-
null
|
|
39
|
-
);
|
|
40
|
-
function c(e) {
|
|
41
|
-
for (let n in i)
|
|
42
|
-
this[n] = i[n];
|
|
43
|
-
}
|
|
44
|
-
const p = /* @__PURE__ */ function() {
|
|
45
|
-
return _.exports;
|
|
46
|
-
}();
|
|
47
|
-
export {
|
|
48
|
-
p as default
|
|
49
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uploader-files{position:relative}.uploader-files>ul{margin:0;padding:0;list-style:none}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { u as r } from "../chunks/mixins.5a78e0db.mjs";
|
|
2
|
-
import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var o = function() {
|
|
4
|
-
var e = this, t = e.$createElement, i = e._self._c || t;
|
|
5
|
-
return i("div", {
|
|
6
|
-
staticClass: "uploader-list"
|
|
7
|
-
}, [e._t("default", function() {
|
|
8
|
-
return [i("ul", e._l(e.fileList, function(n) {
|
|
9
|
-
return i("li", {
|
|
10
|
-
key: n.id
|
|
11
|
-
}, [i("ChunkFileUploaderFile", {
|
|
12
|
-
attrs: {
|
|
13
|
-
file: n,
|
|
14
|
-
list: !0
|
|
15
|
-
}
|
|
16
|
-
})], 1);
|
|
17
|
-
}), 0)];
|
|
18
|
-
}, {
|
|
19
|
-
fileList: e.fileList
|
|
20
|
-
})], 2);
|
|
21
|
-
}, u = [];
|
|
22
|
-
const a = {
|
|
23
|
-
name: "ChunkFileUploaderList",
|
|
24
|
-
mixins: [r],
|
|
25
|
-
computed: {
|
|
26
|
-
fileList() {
|
|
27
|
-
return this.uploader.fileList;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}, l = {};
|
|
31
|
-
var _ = /* @__PURE__ */ s(
|
|
32
|
-
a,
|
|
33
|
-
o,
|
|
34
|
-
u,
|
|
35
|
-
!1,
|
|
36
|
-
c,
|
|
37
|
-
null,
|
|
38
|
-
null,
|
|
39
|
-
null
|
|
40
|
-
);
|
|
41
|
-
function c(e) {
|
|
42
|
-
for (let t in l)
|
|
43
|
-
this[t] = l[t];
|
|
44
|
-
}
|
|
45
|
-
const p = /* @__PURE__ */ function() {
|
|
46
|
-
return _.exports;
|
|
47
|
-
}();
|
|
48
|
-
export {
|
|
49
|
-
p as default
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uploader-list{position:relative}.uploader-list>ul{margin:0;padding:0;list-style:none}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { u as o, s } from "../chunks/mixins.5a78e0db.mjs";
|
|
2
|
-
import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var i = function() {
|
|
4
|
-
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
5
|
-
return t("div", {
|
|
6
|
-
directives: [{
|
|
7
|
-
name: "show",
|
|
8
|
-
rawName: "v-show",
|
|
9
|
-
value: !e.support,
|
|
10
|
-
expression: "!support"
|
|
11
|
-
}],
|
|
12
|
-
staticClass: "uploader-unsupport"
|
|
13
|
-
}, [e._t("default", function() {
|
|
14
|
-
return [e._m(0)];
|
|
15
|
-
})], 2);
|
|
16
|
-
}, u = [function() {
|
|
17
|
-
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
18
|
-
return t("p", [e._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "), t("a", {
|
|
19
|
-
attrs: {
|
|
20
|
-
href: "http://www.w3.org/TR/FileAPI/"
|
|
21
|
-
}
|
|
22
|
-
}, [e._v("the HTML5 File API")]), e._v(" along with "), t("a", {
|
|
23
|
-
attrs: {
|
|
24
|
-
href: "http://www.w3.org/TR/FileAPI/#normalization-of-params"
|
|
25
|
-
}
|
|
26
|
-
}, [e._v("file slicing")]), e._v(". ")]);
|
|
27
|
-
}];
|
|
28
|
-
const l = {
|
|
29
|
-
name: "ChunkFileUploaderUnSupport",
|
|
30
|
-
mixins: [o, s]
|
|
31
|
-
}, n = {};
|
|
32
|
-
var p = /* @__PURE__ */ a(
|
|
33
|
-
l,
|
|
34
|
-
i,
|
|
35
|
-
u,
|
|
36
|
-
!1,
|
|
37
|
-
_,
|
|
38
|
-
null,
|
|
39
|
-
null,
|
|
40
|
-
null
|
|
41
|
-
);
|
|
42
|
-
function _(e) {
|
|
43
|
-
for (let r in n)
|
|
44
|
-
this[r] = n[r];
|
|
45
|
-
}
|
|
46
|
-
const f = /* @__PURE__ */ function() {
|
|
47
|
-
return p.exports;
|
|
48
|
-
}();
|
|
49
|
-
export {
|
|
50
|
-
f as default
|
|
51
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uploader-unsupport{position:relative;z-index:10;overflow:hidden}
|