@web-utils/component 4.0.14 → 4.0.15

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.
Files changed (168) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-date-picker/index.mjs +20 -18
  58. package/form-holder/index.mjs +14 -13
  59. package/form-input/index.mjs +15 -14
  60. package/form-input-cron-expression/index.mjs +22 -19
  61. package/form-input-email/index.mjs +16 -15
  62. package/form-input-id-card/index.mjs +13 -12
  63. package/form-input-number/index.mjs +17 -16
  64. package/form-input-phone-number/index.mjs +22 -21
  65. package/form-input-tag/index.mjs +15 -14
  66. package/form-input-time/index.mjs +15 -14
  67. package/form-item/index.mjs +3 -140
  68. package/form-item-group/index.mjs +31 -28
  69. package/form-radio-group/index.mjs +28 -27
  70. package/form-select/index.mjs +23 -21
  71. package/form-switch/index.mjs +17 -16
  72. package/form-table/index.mjs +17 -16
  73. package/form-table-plus/index.mjs +22 -21
  74. package/form-textarea/index.mjs +16 -15
  75. package/form-tree-select/index.mjs +15 -14
  76. package/form-tree-select-multiple/index.mjs +15 -14
  77. package/form-view/index.mjs +39 -35
  78. package/fy-array/index.mjs +37 -33
  79. package/fy-cascader/index.mjs +17 -16
  80. package/fy-checkbox/index.mjs +13 -11
  81. package/fy-code/index.mjs +10 -10
  82. package/fy-curd/index.mjs +1147 -1123
  83. package/fy-date/index.mjs +11 -10
  84. package/fy-draggable/index.mjs +10 -9
  85. package/fy-dynamic/index.mjs +25 -22
  86. package/fy-empty/index.mjs +1 -1
  87. package/fy-form/index.mjs +15 -638
  88. package/fy-form-design/index.mjs +1165 -1127
  89. package/fy-input/index.mjs +14 -12
  90. package/fy-input-color/index.mjs +15 -13
  91. package/fy-input-icon/index.mjs +23 -20
  92. package/fy-input-map/index.mjs +31 -28
  93. package/fy-input-number/index.mjs +10 -9
  94. package/fy-input-table/index.mjs +22 -18
  95. package/fy-input-tree/index.mjs +37 -33
  96. package/fy-progress/index.mjs +10 -9
  97. package/fy-radio/index.mjs +16 -15
  98. package/fy-rate/index.mjs +11 -10
  99. package/fy-select/index.mjs +29 -25
  100. package/fy-slider/index.mjs +12 -11
  101. package/fy-switch/index.mjs +10 -9
  102. package/fy-tabs/index.mjs +17 -15
  103. package/fy-time/index.mjs +1 -1
  104. package/fy-title/index.mjs +1 -1
  105. package/fy-tree/index.mjs +24 -18
  106. package/fy-u-editor/index.mjs +1 -1
  107. package/fy-upload/index.mjs +76 -74
  108. package/guide-steps/index.mjs +13 -11
  109. package/iframe-window/index.mjs +10 -9
  110. package/image-cropper/index.mjs +30 -28
  111. package/image-preview/index.mjs +14 -12
  112. package/index.mjs +72 -72
  113. package/input-number/index.mjs +14 -13
  114. package/input-number-range/index.mjs +12 -11
  115. package/license/index.mjs +1 -1
  116. package/login/index.mjs +26 -21
  117. package/nav-bar/index.mjs +10 -9
  118. package/notice/index.mjs +10 -9
  119. package/package.json +1 -1
  120. package/page-index/index.mjs +13 -12
  121. package/page-index-top/index.mjs +28 -23
  122. package/page-skeleton/index.mjs +14 -14
  123. package/page-skeleton-new/index.mjs +9 -8
  124. package/pageable-table/index.mjs +182 -172
  125. package/pageable-view/index.mjs +16 -15
  126. package/picker-table-view/index.mjs +58 -49
  127. package/present-view/index.mjs +39 -35
  128. package/record-video/index.mjs +1 -1
  129. package/resize-observer/index.mjs +1 -1
  130. package/search/index.mjs +22 -20
  131. package/search-popover/index.mjs +1 -1
  132. package/sign/index.mjs +1 -1
  133. package/skeleton-panel/index.mjs +10 -9
  134. package/split-pane/index.mjs +37 -36
  135. package/static-pageable-table/index.mjs +13 -11
  136. package/sub-table/index.mjs +49 -36
  137. package/sub-table-plus/index.mjs +18 -229
  138. package/swiper/index.mjs +12 -11
  139. package/table-column/index.mjs +3 -223
  140. package/table-view/index.mjs +60 -52
  141. package/tabs-view/index.mjs +19 -17
  142. package/tag-render/index.mjs +18 -16
  143. package/text-ellipsis/index.mjs +10 -9
  144. package/toolbar/index.mjs +14 -13
  145. package/toolbar-button/index.mjs +14 -13
  146. package/verify/index.mjs +1 -1
  147. package/vue-cron/index.mjs +267 -259
  148. package/watermark/index.mjs +1 -1
  149. package/web-types.json +1 -1
  150. package/x-input-tag/index.mjs +24 -21
  151. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  152. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  153. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  154. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  155. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  156. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  157. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  158. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  159. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  160. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  161. package/chunks/core.0Exl13Mz.mjs +0 -54
  162. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  163. package/chunks/form-item.LWjePsPa.mjs +0 -233
  164. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  165. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  166. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  167. package/element-listeners/style.css +0 -1
  168. package/element-multi-instance/style.css +0 -1
@@ -1,9 +1,351 @@
1
- import a from "simple-uploader.js";
2
- import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- function r(e) {
4
- return e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
1
+ import m from "simple-uploader.js";
2
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const c = ["fileProgress", "fileSuccess", "fileComplete", "fileError"];
4
+ function g(s) {
5
+ const e = Math.floor(s / 31536e3);
6
+ if (e)
7
+ return `${e} 年${n(e)}`;
8
+ const t = Math.floor((s %= 31536e3) / 86400);
9
+ if (t)
10
+ return `${t} 天${n(t)}`;
11
+ const r = Math.floor((s %= 86400) / 3600);
12
+ if (r)
13
+ return `${r} 时${n(r)}`;
14
+ const i = Math.floor((s %= 3600) / 60);
15
+ if (i)
16
+ return `${i} 分${n(i)}`;
17
+ const o = s % 60;
18
+ return `${o} 秒${n(o)}`;
19
+ function n(_) {
20
+ return _ > 1, "";
21
+ }
22
+ }
23
+ function p(s) {
24
+ return s.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
5
25
  }
6
- const s = "fileAdded", l = "filesAdded", u = "uploadStart", f = {
26
+ const v = {
27
+ name: "ChunkFileUploaderFile",
28
+ props: {
29
+ file: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ },
35
+ list: {
36
+ type: Boolean,
37
+ default: !1
38
+ }
39
+ },
40
+ data() {
41
+ return {
42
+ response: null,
43
+ paused: !1,
44
+ error: !1,
45
+ averageSpeed: 0,
46
+ currentSpeed: 0,
47
+ isComplete: !1,
48
+ isUploading: !1,
49
+ size: 0,
50
+ formatedSize: "",
51
+ uploadedSize: 0,
52
+ progress: 0,
53
+ timeRemaining: 0,
54
+ type: "",
55
+ extension: "",
56
+ progressingClass: ""
57
+ };
58
+ },
59
+ computed: {
60
+ fileCategory() {
61
+ const s = this.extension;
62
+ let t = this.file.isFolder ? "folder" : "unknown";
63
+ const i = this.file.uploader.opts.categoryMap || {
64
+ image: ["gif", "jpg", "jpeg", "png", "bmp", "webp"],
65
+ video: ["mp4", "m3u8", "rmvb", "avi", "swf", "3gp", "mkv", "flv"],
66
+ audio: ["mp3", "wav", "wma", "ogg", "aac", "flac"],
67
+ document: ["doc", "txt", "docx", "pages", "epub", "pdf", "numbers", "csv", "xls", "xlsx", "keynote", "ppt", "pptx"]
68
+ };
69
+ return Object.keys(i).forEach((o) => {
70
+ i[o].indexOf(s) > -1 && (t = o);
71
+ }), t;
72
+ },
73
+ progressStyle() {
74
+ const s = Math.floor(this.progress * 100), e = `translateX(${Math.floor(s - 100)}%)`;
75
+ return {
76
+ progress: `${s}%`,
77
+ webkitTransform: e,
78
+ mozTransform: e,
79
+ msTransform: e,
80
+ transform: e
81
+ };
82
+ },
83
+ formatedAverageSpeed() {
84
+ return `${m.utils.formatSize(this.averageSpeed)} / s`;
85
+ },
86
+ status() {
87
+ const { isUploading: s, isComplete: e, isError: t, paused: r } = this, { md5Computing: i } = this.file;
88
+ return i ? "md5" : e ? "success" : t ? "error" : s ? "uploading" : r ? "paused" : "waiting";
89
+ },
90
+ statusText() {
91
+ const s = this.status, e = this.file.uploader.fileStatusText;
92
+ let t = s;
93
+ return typeof e == "function" ? t = e(s, this.response) : t = e[s], t || "";
94
+ },
95
+ formatedTimeRemaining() {
96
+ const s = this.timeRemaining, e = this.file;
97
+ if (s === Number.POSITIVE_INFINITY || s === 0)
98
+ return "";
99
+ let t = g(s);
100
+ const r = e.uploader.opts.parseTimeRemaining;
101
+ return r && (t = r(s, t)), t;
102
+ }
103
+ },
104
+ watch: {
105
+ status(s, e) {
106
+ e && s === "uploading" && e !== "uploading" ? this.tid = setTimeout(() => {
107
+ this.progressingClass = "uploader-file-progressing";
108
+ }, 200) : (clearTimeout(this.tid), this.progressingClass = "");
109
+ }
110
+ },
111
+ mounted() {
112
+ const s = ["paused", "error", "averageSpeed", "currentSpeed"], e = [
113
+ "isComplete",
114
+ "isUploading",
115
+ {
116
+ key: "size",
117
+ fn: "getSize"
118
+ },
119
+ {
120
+ key: "formatedSize",
121
+ fn: "getFormatSize"
122
+ },
123
+ {
124
+ key: "uploadedSize",
125
+ fn: "sizeUploaded"
126
+ },
127
+ "progress",
128
+ "timeRemaining",
129
+ {
130
+ key: "type",
131
+ fn: "getType"
132
+ },
133
+ {
134
+ key: "extension",
135
+ fn: "getExtension"
136
+ }
137
+ ];
138
+ s.forEach((i) => {
139
+ this[i] = this.file[i];
140
+ }), e.forEach((i) => {
141
+ typeof i == "string" ? this[i] = this.file[i]() : this[i.key] = this.file[i.fn]();
142
+ });
143
+ const t = this._handlers = {}, r = (i) => (t[i] = (...o) => {
144
+ this.fileEventsHandler(i, o);
145
+ }, t[i]);
146
+ c.forEach((i) => {
147
+ this.file.uploader.on(i, r(i));
148
+ });
149
+ },
150
+ destroyed() {
151
+ c.forEach((s) => {
152
+ this.file.uploader.off(s, this._handlers[s]);
153
+ }), this._handlers = null;
154
+ },
155
+ methods: {
156
+ _actionCheck() {
157
+ this.paused = this.file.paused, this.error = this.file.error, this.isUploading = this.file.isUploading();
158
+ },
159
+ pause() {
160
+ this.file.pause(), this._actionCheck(), this._fileProgress();
161
+ },
162
+ resume() {
163
+ this.file.resume(), this._actionCheck();
164
+ },
165
+ remove() {
166
+ this.$set(this.file, "canceled", !0), this.file.cancel();
167
+ },
168
+ retry() {
169
+ this.file.retry(), this._actionCheck();
170
+ },
171
+ processResponse(s) {
172
+ let e = s;
173
+ try {
174
+ e = JSON.parse(s);
175
+ } catch {
176
+ }
177
+ this.response = e;
178
+ },
179
+ fileEventsHandler(s, e) {
180
+ var o;
181
+ const t = e[0], r = e[1], i = this.list ? t : r;
182
+ if (this.file === i) {
183
+ if (this.list && s === "fileSuccess") {
184
+ this.processResponse(e[2]);
185
+ return;
186
+ }
187
+ (o = this[`_${s}`]) == null || o.call(this, ...e);
188
+ }
189
+ },
190
+ _fileProgress() {
191
+ 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();
192
+ },
193
+ _fileSuccess(s, e, t) {
194
+ s && this.processResponse(t), this._fileProgress(), this.error = !1, this.isComplete = !0, this.isUploading = !1;
195
+ },
196
+ _fileComplete() {
197
+ this._fileSuccess();
198
+ },
199
+ _fileError(s, e, t) {
200
+ this._fileProgress(), this.processResponse(t), this.error = !0, this.isComplete = !1, this.isUploading = !1;
201
+ }
202
+ }
203
+ };
204
+ var S = function() {
205
+ var e = this, t = e._self._c;
206
+ return t("div", { staticClass: "chunk-file-uploader-file", attrs: { status: e.status } }, [e._t("default", function() {
207
+ return [t("div", { staticClass: "chunk-file-uploader-file-info" }, [t("div", { staticClass: "chunk-file-uploader-file-name", attrs: { title: e.file.name } }, [t("i", { staticClass: "chunk-file-uploader-file-icon", attrs: { icon: e.fileCategory } }), e._v(e._s(e.file.name))]), t("div", { staticClass: "chunk-file-uploader-file-size" }, [e._v(" " + e._s(e.formatedSize) + " ")]), t("div", { staticClass: "chunk-file-uploader-file-status" }, [t("span", { directives: [{ name: "show", rawName: "v-show", value: !["uploading", "md5"].includes(e.status), expression: "!['uploading', 'md5'].includes(status)" }] }, [e._v(e._s(e.statusText))]), t("span", { directives: [{ name: "show", rawName: "v-show", value: e.status === "md5", expression: "status === 'md5'" }] }, [e._v(e._s(e.file.md5Progress))]), t("span", { directives: [{ name: "show", rawName: "v-show", value: e.status === "uploading", expression: "status === 'uploading'" }], staticStyle: { "padding-left": "4px" } }, [t("span", [e._v(e._s(e.progressStyle.progress))]), e._v(" | "), t("em", [e._v(e._s(e.formatedAverageSpeed))]), e._v(" | "), t("i", [e._v(e._s(e.formatedTimeRemaining))])])]), t("div", { staticClass: "chunk-file-uploader-file-actions" }, [t("span", { staticClass: "chunk-file-uploader-file-pause", on: { click: e.pause } }), t("span", { staticClass: "chunk-file-uploader-file-resume", on: { click: e.resume } }, [e._v("️")]), t("span", { staticClass: "chunk-file-uploader-file-retry", on: { click: e.retry } }), t("span", { staticClass: "chunk-file-uploader-file-remove", on: { click: e.remove } })])])];
208
+ }, { file: e.file, list: e.list, status: e.status, paused: e.paused, error: e.error, response: e.response, averageSpeed: e.averageSpeed, formatedAverageSpeed: e.formatedAverageSpeed, currentSpeed: e.currentSpeed, isComplete: e.isComplete, isUploading: e.isUploading, size: e.size, formatedSize: e.formatedSize, uploadedSize: e.uploadedSize, progress: e.progress, progressStyle: e.progressStyle, progressingClass: e.progressingClass, timeRemaining: e.timeRemaining, formatedTimeRemaining: e.formatedTimeRemaining, type: e.type, extension: e.extension, fileCategory: e.fileCategory })], 2);
209
+ }, y = [], C = /* @__PURE__ */ a(
210
+ v,
211
+ S,
212
+ y,
213
+ !1,
214
+ null,
215
+ null
216
+ );
217
+ const x = C.exports, d = {
218
+ inject: ["uploader"]
219
+ }, f = {
220
+ data() {
221
+ return {
222
+ support: !0
223
+ };
224
+ },
225
+ mounted() {
226
+ this.support = this.uploader.uploader.support;
227
+ }
228
+ }, $ = {
229
+ name: "ChunkFileUploaderList",
230
+ mixins: [d],
231
+ computed: {
232
+ fileList() {
233
+ return this.uploader.fileList;
234
+ }
235
+ }
236
+ };
237
+ var k = function() {
238
+ var e = this, t = e._self._c;
239
+ return t("div", { staticClass: "uploader-list" }, [e._t("default", function() {
240
+ return [t("ul", e._l(e.fileList, function(r) {
241
+ return t("li", { key: r.id }, [t(x, { attrs: { file: r, list: !0 } })], 1);
242
+ }), 0)];
243
+ }, { fileList: e.fileList })], 2);
244
+ }, w = [], T = /* @__PURE__ */ a(
245
+ $,
246
+ k,
247
+ w,
248
+ !1,
249
+ null,
250
+ null
251
+ );
252
+ const E = T.exports, R = {
253
+ name: "ChunkFileUploaderButton",
254
+ mixins: [d, f],
255
+ props: {
256
+ directory: {
257
+ type: Boolean,
258
+ default: !1
259
+ },
260
+ single: {
261
+ type: Boolean,
262
+ default: !1
263
+ },
264
+ attrs: {
265
+ type: Object,
266
+ default() {
267
+ return {};
268
+ }
269
+ }
270
+ },
271
+ mounted() {
272
+ this.$nextTick(() => {
273
+ this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs);
274
+ });
275
+ }
276
+ };
277
+ var b = function() {
278
+ var e = this, t = e._self._c;
279
+ return t("label", { directives: [{ name: "show", rawName: "v-show", value: e.support, expression: "support" }], ref: "btn", staticClass: "uploader-btn" }, [e._t("default")], 2);
280
+ }, F = [], A = /* @__PURE__ */ a(
281
+ R,
282
+ b,
283
+ F,
284
+ !1,
285
+ null,
286
+ null
287
+ );
288
+ const h = A.exports, z = {
289
+ name: "ChunkFileUploaderDrop",
290
+ mixins: [d, f],
291
+ data() {
292
+ return {
293
+ dropClass: ""
294
+ };
295
+ },
296
+ async mounted() {
297
+ await this.$nextTick();
298
+ const s = this.$refs.drop, e = this.uploader.uploader;
299
+ e.assignDrop(s), e.on("dragenter", this.onDragEnter), e.on("dragleave", this.onDragLeave), e.on("drop", this.onDrop);
300
+ },
301
+ beforeDestroy() {
302
+ const s = this.$refs.drop, e = this.uploader.uploader;
303
+ e.off("dragenter", this.onDragEnter), e.off("dragleave", this.onDragLeave), e.off("drop", this.onDrop), e.unAssignDrop(s);
304
+ },
305
+ methods: {
306
+ onDragEnter() {
307
+ this.dropClass = "uploader-dragover";
308
+ },
309
+ onDragLeave() {
310
+ this.dropClass = "";
311
+ },
312
+ onDrop() {
313
+ this.dropClass = "uploader-droped";
314
+ }
315
+ }
316
+ };
317
+ var U = function() {
318
+ var e = this, t = e._self._c;
319
+ return t("div", { directives: [{ name: "show", rawName: "v-show", value: e.support, expression: "support" }], ref: "drop", staticClass: "uploader-drop", class: e.dropClass }, [e._t("default")], 2);
320
+ }, D = [], L = /* @__PURE__ */ a(
321
+ z,
322
+ U,
323
+ D,
324
+ !1,
325
+ null,
326
+ null
327
+ );
328
+ const M = L.exports, N = {
329
+ name: "ChunkFileUploaderUnSupport",
330
+ mixins: [d, f]
331
+ };
332
+ var P = function() {
333
+ var e = this, t = e._self._c;
334
+ return t("div", { directives: [{ name: "show", rawName: "v-show", value: !e.support, expression: "!support" }], staticClass: "uploader-unsupport" }, [e._t("default", function() {
335
+ return [e._m(0)];
336
+ })], 2);
337
+ }, I = [function() {
338
+ var s = this, e = s._self._c;
339
+ return e("p", [s._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "), e("a", { attrs: { href: "http://www.w3.org/TR/FileAPI/" } }, [s._v("the HTML5 File API")]), s._v(" along with "), e("a", { attrs: { href: "http://www.w3.org/TR/FileAPI/#normalization-of-params" } }, [s._v("file slicing")]), s._v(". ")]);
340
+ }], j = /* @__PURE__ */ a(
341
+ N,
342
+ P,
343
+ I,
344
+ !1,
345
+ null,
346
+ null
347
+ );
348
+ const O = j.exports, l = "fileAdded", u = "filesAdded", B = "uploadStart", V = {
7
349
  name: "ChunkFileUploader",
8
350
  provide() {
9
351
  return {
@@ -43,61 +385,61 @@ const s = "fileAdded", l = "filesAdded", u = "uploadStart", f = {
43
385
  },
44
386
  created() {
45
387
  this.options.initialPaused = !this.autoStart;
46
- const e = new a(this.options);
47
- this.uploader = e, this.uploader.fileStatusText = this.fileStatusText, e.on("catchAll", this.allEvent), e.on(s, this.fileAdded), e.on(l, this.filesAdded), e.on("fileRemoved", this.fileRemoved), e.on("filesSubmitted", this.filesSubmitted);
388
+ const s = new m(this.options);
389
+ this.uploader = s, this.uploader.fileStatusText = this.fileStatusText, s.on("catchAll", this.allEvent), s.on(l, this.fileAdded), s.on(u, this.filesAdded), s.on("fileRemoved", this.fileRemoved), s.on("filesSubmitted", this.filesSubmitted);
48
390
  },
49
391
  destroyed() {
50
- const e = this.uploader;
51
- e.off("catchAll", this.allEvent), e.off(s, this.fileAdded), e.off(l, this.filesAdded), e.off("fileRemoved", this.fileRemoved), e.off("filesSubmitted", this.filesSubmitted), this.uploader = null;
392
+ const s = this.uploader;
393
+ s.off("catchAll", this.allEvent), s.off(l, this.fileAdded), s.off(u, this.filesAdded), s.off("fileRemoved", this.fileRemoved), s.off("filesSubmitted", this.filesSubmitted), this.uploader = null;
52
394
  },
53
395
  methods: {
54
396
  uploadStart() {
55
397
  this.started = !0;
56
398
  },
57
- fileAdded(e) {
58
- if (this.$emit(r(s), e), e.ignored)
399
+ fileAdded(s) {
400
+ if (this.$emit(p(l), s), s.ignored)
59
401
  return !1;
60
402
  },
61
- filesAdded(e, t) {
62
- if (this.$emit(r(l), e, t), e.ignored || t.ignored)
403
+ filesAdded(s, e) {
404
+ if (this.$emit(p(u), s, e), s.ignored || e.ignored)
63
405
  return !1;
64
406
  },
65
- fileRemoved(e) {
66
- this.$emit("file-removed", e), this.files = this.uploader.files, this.fileList = this.uploader.fileList;
407
+ fileRemoved(s) {
408
+ this.$emit("file-removed", s), this.files = this.uploader.files, this.fileList = this.uploader.fileList;
67
409
  },
68
410
  filesSubmitted() {
69
411
  this.files = this.uploader.files, this.fileList = this.uploader.fileList, this.autoStart && this.uploader.upload();
70
412
  },
71
- allEvent(...e) {
72
- var d;
73
- const t = e[0], o = {
74
- [s]: !0,
413
+ allEvent(...s) {
414
+ var i;
415
+ const e = s[0], r = {
75
416
  [l]: !0,
76
- [u]: "uploadStart"
77
- }[t];
78
- if (o) {
79
- if (o === !0)
417
+ [u]: !0,
418
+ [B]: "uploadStart"
419
+ }[e];
420
+ if (r) {
421
+ if (r === !0)
80
422
  return;
81
- (d = this[o]) == null || d.call(this, e.slice(1));
423
+ (i = this[r]) == null || i.call(this, s.slice(1));
82
424
  }
83
- e[0] = r(t), this.$emit(...e);
425
+ s[0] = p(e), this.$emit(...s);
84
426
  }
85
427
  }
86
428
  };
87
- var p = function() {
88
- var t = this, i = t._self._c;
89
- return i("div", { staticClass: "uploader" }, [t._t("default", function() {
90
- return [i("ChunkFileUploaderUnSupport"), i("ChunkFileUploaderDrop", [i("p", [t._v("Drop files here to upload or")]), i("ChunkFileUploaderButton", [t._v("select files")]), i("ChunkFileUploaderButton", { attrs: { directory: !0 } }, [t._v(" select folder ")])], 1), i("ChunkFileUploaderList")];
91
- }, { files: t.files, fileList: t.fileList, started: t.started })], 2);
92
- }, h = [], c = /* @__PURE__ */ n(
93
- f,
94
- p,
95
- h,
429
+ var H = function() {
430
+ var e = this, t = e._self._c;
431
+ return t("div", { staticClass: "uploader" }, [e._t("default", function() {
432
+ return [t(O), t(M, [t("p", [e._v("Drop files here to upload or")]), t(h, [e._v("select files")]), t(h, { attrs: { directory: !0 } }, [e._v(" select folder ")])], 1), t(E)];
433
+ }, { files: e.files, fileList: e.fileList, started: e.started })], 2);
434
+ }, Y = [], q = /* @__PURE__ */ a(
435
+ V,
436
+ H,
437
+ Y,
96
438
  !1,
97
439
  null,
98
440
  null
99
441
  );
100
- const v = c.exports;
442
+ const Z = q.exports;
101
443
  export {
102
- v as default
444
+ Z as default
103
445
  };
@@ -1 +1 @@
1
- .uploader{position:relative}
1
+ .chunk-file-uploader-file{border-bottom:1px solid #cdcdcd;height:49px;line-height:49px;position:relative;overflow:hidden}.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{background:#e2eeff;width:100%;height:100%;position:absolute;transform:translate(-100%)}.chunk-file-uploader-file-progressing{transition:all .4s linear}.chunk-file-uploader-file-info{z-index:1;flex-direction:row;height:100%;display:flex;position:relative;overflow:hidden}.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{height:100%;padding:0 10px;position:relative}.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{white-space:nowrap;text-indent:14px;text-overflow:ellipsis;flex:auto;overflow:hidden}.chunk-file-uploader-file-icon{vertical-align:top;width:24px;height:24px;margin-top:13px;margin-right:8px;display:inline-block}.chunk-file-uploader-file-icon:before{color:gray;text-indent:0;content:"📃";height:100%;font-size:24px;line-height:1;display:block}.chunk-file-uploader-file-icon[icon=folder]:before{content:"📂"}.chunk-file-uploader-file-icon[icon=image]:before{content:"📊"}.chunk-file-uploader-file-icon[icon=video]:before{content:"📹"}.chunk-file-uploader-file-icon[icon=audio]:before{content:"🎵"}.chunk-file-uploader-file-icon[icon=document]:before{content:"📋"}.chunk-file-uploader-file-actions>span{float:left;cursor:pointer;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;width:16px;height:16px;margin-top:16px;margin-right:10px;display:none}.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{background-position-y:-34px;display:block}.uploader-list{position:relative}.uploader-list>ul{margin:0;padding:0;list-style:none}.uploader-btn{color:#666;cursor:pointer;background:0 0;border:1px solid #666;border-radius:2px;outline:none;padding:4px 8px;font-size:100%;line-height:1.4;display:inline-block;position:relative}.uploader-btn:hover{background-color:#00000014}.uploader-drop{background-color:#f5f5f5;border:1px dashed #ccc;padding:10px;position:relative;overflow:hidden}.uploader-dragover{background-color:#f7f7f7;border-color:#999}.uploader-unsupport{z-index:10;position:relative;overflow:hidden}.uploader{position:relative}