@web-utils/component 1.2.4 → 1.2.6

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 (111) hide show
  1. package/README.md +27 -27
  2. package/dist/chunks/163eed3b.js +16 -1
  3. package/dist/chunks/2bd4e340.js +184 -0
  4. package/dist/chunks/6499de3a.js +30 -1
  5. package/dist/chunks/7af3ceb1.js +75 -0
  6. package/dist/chunks/86bcadec.js +24 -0
  7. package/dist/chunks/8bbde9bf.js +81 -1
  8. package/dist/chunks/90bd3d52.js +26 -1
  9. package/dist/chunks/92404ceb.js +126 -0
  10. package/dist/chunks/a73fe8ee.js +11 -0
  11. package/dist/chunks/df803484.js +60 -0
  12. package/dist/components/address-input/index.js +113 -1
  13. package/dist/components/aside-menu/index.js +58 -1
  14. package/dist/components/awesome-button/index.js +82 -1
  15. package/dist/components/capsule-tab/index.js +52 -1
  16. package/dist/components/chunk-file-uploader/index.js +119 -1
  17. package/dist/components/chunk-file-uploader-button/index.js +60 -1
  18. package/dist/components/chunk-file-uploader-drop/index.js +65 -1
  19. package/dist/components/chunk-file-uploader-file/index.js +311 -1
  20. package/dist/components/chunk-file-uploader-files/index.js +49 -1
  21. package/dist/components/chunk-file-uploader-list/index.js +50 -1
  22. package/dist/components/chunk-file-uploader-un-support/index.js +51 -1
  23. package/dist/components/code-mirror-editor/index.js +310 -6
  24. package/dist/components/color-picker/index.js +110 -1
  25. package/dist/components/confirm-button/index.js +57 -1
  26. package/dist/components/confirmable/index.js +28 -1
  27. package/dist/components/context-menu/index.js +236 -1
  28. package/dist/components/custom-scrollbar/index.js +150 -1
  29. package/dist/components/data-table-picker/index.js +137 -1
  30. package/dist/components/dynamic-table/index.js +195 -1
  31. package/dist/components/e-charts/index.js +229 -1
  32. package/dist/components/editable-progress/index.js +141 -1
  33. package/dist/components/editable-tree/index.js +789 -1
  34. package/dist/components/egd-collapse/index.js +79 -1
  35. package/dist/components/egd-collapse-item/index.js +132 -1
  36. package/dist/components/el-color-picker-dropdown/index.js +170 -1
  37. package/dist/components/element-dialog/index.js +242 -1
  38. package/dist/components/empty-view/index.js +69 -1
  39. package/dist/components/error-view/index.js +61 -1
  40. package/dist/components/flex-column/index.js +50 -1
  41. package/dist/components/flex-item/index.js +66 -1
  42. package/dist/components/flex-row/index.js +50 -1
  43. package/dist/components/flex-scroller/index.js +47 -1
  44. package/dist/components/form-button/index.js +80 -1
  45. package/dist/components/form-cascader/index.js +151 -1
  46. package/dist/components/form-checkbox-group/index.js +192 -1
  47. package/dist/components/form-date-picker/index.js +182 -1
  48. package/dist/components/form-holder/index.js +90 -1
  49. package/dist/components/form-input/index.js +106 -1
  50. package/dist/components/form-input-email/index.js +97 -1
  51. package/dist/components/form-input-id-card/index.js +104 -1
  52. package/dist/components/form-input-number/index.js +123 -1
  53. package/dist/components/form-input-phone-number/index.js +98 -1
  54. package/dist/components/form-input-time/index.js +124 -1
  55. package/dist/components/form-item/index.js +120 -1
  56. package/dist/components/form-item-config-provider/index.js +63 -1
  57. package/dist/components/form-item-group/index.js +169 -1
  58. package/dist/components/form-radio-group/index.js +170 -1
  59. package/dist/components/form-select/index.js +154 -1
  60. package/dist/components/form-switch/index.js +97 -1
  61. package/dist/components/form-textarea/index.js +102 -1
  62. package/dist/components/form-view/index.js +343 -1
  63. package/dist/components/guide-steps/index.js +94 -1
  64. package/dist/components/icon-card/index.js +62 -1
  65. package/dist/components/iframe-window/index.js +99 -1
  66. package/dist/components/input-number/index.js +274 -1
  67. package/dist/components/input-number-range/index.js +110 -1
  68. package/dist/components/j-s-x-component/index.js +16 -1
  69. package/dist/components/keep-view-alive/index.js +119 -1
  70. package/dist/components/loading-view/index.js +61 -1
  71. package/dist/components/nav-bar/index.js +52 -1
  72. package/dist/components/not-implement/index.js +35 -1
  73. package/dist/components/page/index.js +40 -1
  74. package/dist/components/page-header/index.js +56 -1
  75. package/dist/components/page-index/index.js +151 -1
  76. package/dist/components/page-index-top/index.js +119 -1
  77. package/dist/components/page-skeleton/index.js +56 -1
  78. package/dist/components/page-skeleton-new/index.js +98 -1
  79. package/dist/components/pageable-table/index.js +429 -1
  80. package/dist/components/pageable-view/index.js +328 -2
  81. package/dist/components/photo-swipe/index.js +187 -1
  82. package/dist/components/resize-observer/index.js +62 -1
  83. package/dist/components/search-popover/index.js +391 -2
  84. package/dist/components/sign-panel/index.js +242 -1
  85. package/dist/components/split-pane/index.js +209 -1
  86. package/dist/components/stateful/index.js +84 -1
  87. package/dist/components/static-pageable-table/index.js +92 -1
  88. package/dist/components/swiper/index.js +158 -1
  89. package/dist/components/tab/index.js +145 -1
  90. package/dist/components/tab-item/index.js +73 -1
  91. package/dist/components/table-column/index.js +89 -1
  92. package/dist/components/table-view/index.js +363 -1
  93. package/dist/components/tag-render/index.js +97 -1
  94. package/dist/components/tinymce-editor/index.js +173 -1
  95. package/dist/components/tinymce-wrapper/index.js +618 -1
  96. package/dist/components/toolbar/index.js +217 -1
  97. package/dist/components/toolbar-button/index.js +90 -1
  98. package/dist/components/trigger/index.js +71 -1
  99. package/dist/components/vue-tags-input/index.js +439 -1
  100. package/dist/components/watermark/index.js +63 -1
  101. package/dist/components/x-dialog/index.js +173 -1
  102. package/dist/index.css +2102 -1
  103. package/dist/index.es.js +2995 -2078
  104. package/package.json +29 -29
  105. package/web-types.json +22 -16
  106. package/dist/chunks/23bd3525.js +0 -1
  107. package/dist/chunks/65f4f4f2.js +0 -1
  108. package/dist/chunks/8473fc69.js +0 -1
  109. package/dist/chunks/addb6ed5.js +0 -1
  110. package/dist/chunks/b8305633.js +0 -1
  111. package/dist/chunks/e8547f66.js +0 -1
@@ -1 +1,311 @@
1
- import n from"simple-uploader.js";import{s as f}from"../../chunks/90bd3d52.js";import{n as p}from"../../chunks/6499de3a.js";const r=["fileProgress","fileSuccess","fileComplete","fileError"];var u=function(){var e=this,s=e.$createElement,i=e._self._c||s;return i("div",{staticClass:"chunk-file-uploader-file",attrs:{status:e.status}},[e._t("default",function(){return[i("div",{staticClass:"chunk-file-uploader-file-info"},[i("div",{staticClass:"chunk-file-uploader-file-name",attrs:{title:e.file.name}},[i("i",{staticClass:"chunk-file-uploader-file-icon",attrs:{icon:e.fileCategory}}),e._v(e._s(e.file.name)+" ")]),i("div",{staticClass:"chunk-file-uploader-file-size"},[e._v(e._s(e.formatedSize))]),i("div",{staticClass:"chunk-file-uploader-file-status"},[i("span",{directives:[{name:"show",rawName:"v-show",value:!["uploading","md5"].includes(e.status),expression:"!['uploading', 'md5'].includes(status)"}]},[e._v(e._s(e.statusText))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.status==="md5",expression:"status === 'md5'"}]},[e._v(e._s(e.file.md5Progress))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.status==="uploading",expression:"status === 'uploading'"}],staticStyle:{"padding-left":"4px"}},[i("span",[e._v(e._s(e.progressStyle.progress))]),e._v(" | "),i("em",[e._v(e._s(e.formatedAverageSpeed))]),e._v(" | "),i("i",[e._v(e._s(e.formatedTimeRemaining))])])]),i("div",{staticClass:"chunk-file-uploader-file-actions"},[i("span",{staticClass:"chunk-file-uploader-file-pause",on:{click:e.pause}}),i("span",{staticClass:"chunk-file-uploader-file-resume",on:{click:e.resume}},[e._v("\uFE0F")]),i("span",{staticClass:"chunk-file-uploader-file-retry",on:{click:e.retry}}),i("span",{staticClass:"chunk-file-uploader-file-remove",on:{click:e.remove}})])])]},{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)},c=[];const d={name:"ChunkFileUploaderFile",props:{file:{type:Object,default(){return{}}},list:{type:Boolean,default:!1}},data(){return{response:null,paused:!1,error:!1,averageSpeed:0,currentSpeed:0,isComplete:!1,isUploading:!1,size:0,formatedSize:"",uploadedSize:0,progress:0,timeRemaining:0,type:"",extension:"",progressingClass:""}},computed:{fileCategory(){const e=this.extension;let i=this.file.isFolder?"folder":"unknown";const t=this.file.uploader.opts.categoryMap||{image:["gif","jpg","jpeg","png","bmp","webp"],video:["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"],audio:["mp3","wav","wma","ogg","aac","flac"],document:["doc","txt","docx","pages","epub","pdf","numbers","csv","xls","xlsx","keynote","ppt","pptx"]};return Object.keys(t).forEach(o=>{t[o].indexOf(e)>-1&&(i=o)}),i},progressStyle(){const e=Math.floor(this.progress*100),s=`translateX(${Math.floor(e-100)}%)`;return{progress:`${e}%`,webkitTransform:s,mozTransform:s,msTransform:s,transform:s}},formatedAverageSpeed(){return`${n.utils.formatSize(this.averageSpeed)} / s`},status(){const{isUploading:e,isComplete:s,isError:i,paused:l}=this,{md5Computing:t}=this.file;return t?"md5":s?"success":i?"error":e?"uploading":l?"paused":"waiting"},statusText(){const e=this.status,s=this.file.uploader.fileStatusText;let i=e;return typeof s=="function"?i=s(e,this.response):i=s[e],i||""},formatedTimeRemaining(){const e=this.timeRemaining,s=this.file;if(e===Number.POSITIVE_INFINITY||e===0)return"";let i=f(e);const l=s.uploader.opts.parseTimeRemaining;return l&&(i=l(e,i)),i}},watch:{status(e,s){s&&e==="uploading"&&s!=="uploading"?this.tid=setTimeout(()=>{this.progressingClass="uploader-file-progressing"},200):(clearTimeout(this.tid),this.progressingClass="")}},mounted(){const e=["paused","error","averageSpeed","currentSpeed"],s=["isComplete","isUploading",{key:"size",fn:"getSize"},{key:"formatedSize",fn:"getFormatSize"},{key:"uploadedSize",fn:"sizeUploaded"},"progress","timeRemaining",{key:"type",fn:"getType"},{key:"extension",fn:"getExtension"}];e.forEach(t=>{this[t]=this.file[t]}),s.forEach(t=>{typeof t=="string"?this[t]=this.file[t]():this[t.key]=this.file[t.fn]()});const i=this._handlers={},l=t=>(i[t]=(...o)=>{this.fileEventsHandler(t,o)},i[t]);r.forEach(t=>{this.file.uploader.on(t,l(t))})},destroyed(){r.forEach(e=>{this.file.uploader.off(e,this._handlers[e])}),this._handlers=null},methods:{_actionCheck(){this.paused=this.file.paused,this.error=this.file.error,this.isUploading=this.file.isUploading()},pause(){this.file.pause(),this._actionCheck(),this._fileProgress()},resume(){this.file.resume(),this._actionCheck()},remove(){this.$set(this.file,"canceled",!0),this.file.cancel()},retry(){this.file.retry(),this._actionCheck()},processResponse(e){let s=e;try{s=JSON.parse(e)}catch{}this.response=s},fileEventsHandler(e,s){const i=s[0],l=s[1],t=this.list?i:l;if(this.file===t){if(this.list&&e==="fileSuccess"){this.processResponse(s[2]);return}this[`_${e}`].apply(this,s)}},_fileProgress(){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()},_fileSuccess(e,s,i){e&&this.processResponse(i),this._fileProgress(),this.error=!1,this.isComplete=!0,this.isUploading=!1},_fileComplete(){this._fileSuccess()},_fileError(e,s,i){this._fileProgress(),this.processResponse(i),this.error=!0,this.isComplete=!1,this.isUploading=!1}}},a={};var h=p(d,u,c,!1,g,null,null,null);function g(e){for(let s in a)this[s]=a[s]}var m=function(){return h.exports}();export{m as default};
1
+ import n from "simple-uploader.js";
2
+ import { s as p } from "../../chunks/90bd3d52.js";
3
+ import { n as f } from "../../chunks/6499de3a.js";
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("\uFE0F")]), 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 {
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 +1,49 @@
1
- import{u as r}from"../../chunks/163eed3b.js";import{n as s}from"../../chunks/6499de3a.js";var o=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"uploader-files"},[e._t("default",function(){return[n("ul",e._l(e.files,function(i){return n("li",{key:i.id},[n("ChunkFileUploaderFile",{attrs:{file:i}})],1)}),0)]},{files:e.files})],2)},a=[];const u={name:"ChunkFileUploaderFiles",mixins:[r],computed:{files(){return this.uploader.files}}},t={};var _=s(u,o,a,!1,d,null,null,null);function d(e){for(let l in t)this[l]=t[l]}var f=function(){return _.exports}();export{f as default};
1
+ import { u as r } from "../../chunks/163eed3b.js";
2
+ import { n as s } from "../../chunks/6499de3a.js";
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 +1,50 @@
1
- import{u as r}from"../../chunks/163eed3b.js";import{n as s}from"../../chunks/6499de3a.js";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"uploader-list"},[e._t("default",function(){return[i("ul",e._l(e.fileList,function(l){return i("li",{key:l.id},[i("ChunkFileUploaderFile",{attrs:{file:l,list:!0}})],1)}),0)]},{fileList:e.fileList})],2)},a=[];const u={name:"ChunkFileUploaderList",mixins:[r],computed:{fileList(){return this.uploader.fileList}}},n={};var _=s(u,o,a,!1,d,null,null,null);function d(e){for(let t in n)this[t]=n[t]}var p=function(){return _.exports}();export{p as default};
1
+ import { u as r } from "../../chunks/163eed3b.js";
2
+ import { n as s } from "../../chunks/6499de3a.js";
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 +1,51 @@
1
- import{u as o,s as a}from"../../chunks/163eed3b.js";import{n as i}from"../../chunks/6499de3a.js";var s=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("div",{directives:[{name:"show",rawName:"v-show",value:!e.support,expression:"!support"}],staticClass:"uploader-unsupport"},[e._t("default",function(){return[e._m(0)]})],2)},u=[function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("p",[e._v(" Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "),t("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[e._v("the HTML5 File API")]),e._v(" along with "),t("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[e._v("file slicing")]),e._v(". ")])}];const l={name:"ChunkFileUploaderUnSupport",mixins:[o,a]},n={};var p=i(l,s,u,!1,_,null,null,null);function _(e){for(let r in n)this[r]=n[r]}var v=function(){return p.exports}();export{v as default};
1
+ import { u as o, s } from "../../chunks/163eed3b.js";
2
+ import { n as a } from "../../chunks/6499de3a.js";
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
+ };