@progress/kendo-vue-upload 10.2.0-develop.8 → 11.0.0-develop.1
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/README.md +1 -1
- package/Upload.d.ts +2 -2
- package/Upload.js +1 -1
- package/Upload.mjs +63 -65
- package/dist/cdn/js/kendo-vue-upload.js +1 -1
- package/interfaces/UploadAsyncProps.d.ts +4 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
- package/utils/connectionUtils.d.ts +1 -0
- package/utils/connectionUtils.js +1 -1
- package/utils/connectionUtils.mjs +46 -33
- package/EULA.pdf +0 -0
- package/EULA.rtf +0 -2730
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "
|
|
13
|
+
publishDate: 1794299505,
|
|
14
|
+
version: "11.0.0-develop.1",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-upload",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-develop.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@progress/kendo-licensing": "^1.
|
|
28
|
-
"@progress/kendo-vue-buttons": "
|
|
29
|
-
"@progress/kendo-vue-common": "
|
|
30
|
-
"@progress/kendo-vue-intl": "
|
|
31
|
-
"@progress/kendo-vue-progressbars": "
|
|
27
|
+
"@progress/kendo-licensing": "^1.13.0",
|
|
28
|
+
"@progress/kendo-vue-buttons": "11.0.0-develop.1",
|
|
29
|
+
"@progress/kendo-vue-common": "11.0.0-develop.1",
|
|
30
|
+
"@progress/kendo-vue-intl": "11.0.0-develop.1",
|
|
31
|
+
"@progress/kendo-vue-progressbars": "11.0.0-develop.1",
|
|
32
32
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
33
33
|
"vue": "^3.0.2"
|
|
34
34
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"package": {
|
|
50
50
|
"productName": "Kendo UI for Vue",
|
|
51
51
|
"productCode": "KENDOUIVUE",
|
|
52
|
-
"publishDate":
|
|
52
|
+
"publishDate": 1794299505,
|
|
53
53
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
@@ -24,6 +24,7 @@ declare const _default: {
|
|
|
24
24
|
populateUploadFormData: (files: UploadFileInfo[], saveField: string, clientData: Object) => FormData;
|
|
25
25
|
populateRemoveFormData: (fileNames: string[], removeField: string, clientData: Object) => FormData;
|
|
26
26
|
populateRequestOptions: (headers: UploadHttpHeaders, async: UploadAsyncProps) => any;
|
|
27
|
+
resolveWithCredentials: (withCredentials: boolean, url?: string) => boolean;
|
|
27
28
|
cloneRequestHeaders: (headers: UploadHttpHeaders) => UploadHttpHeaders;
|
|
28
29
|
convertResponse: (event: XHRResponseData) => UploadResponse;
|
|
29
30
|
};
|
package/utils/connectionUtils.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";const n=(t,e)=>{Object.keys(e).forEach(s=>{t.append(s,e[s])})},
|
|
8
|
+
"use strict";const n=(t,e)=>{Object.keys(e).forEach(s=>{t.append(s,e[s])})},c=(t,e,s)=>{const r=new FormData;return n(r,s),t.forEach(o=>{const a=o.getRawFile?o.getRawFile():"";a?r.append(e,a,o.name):r.append(e,a)}),r},i=(t,e,s)=>{const r=new FormData;return n(r,s),t.forEach(o=>{r.append(e,o)}),r},u=(t,e)=>({headers:t,responseType:e.responseType,withCredentials:e.withCredentials}),p=(t,e)=>{var r;if(t!==void 0)return t;if(!e||globalThis.location===void 0)return!0;const s=((r=globalThis.document)==null?void 0:r.baseURI)||globalThis.location.href;try{return new URL(e,s).origin===globalThis.location.origin}catch{return!0}},l=t=>{const e={};return Object.keys(t).forEach(s=>{e[s]=t[s]}),e},d=t=>{const e=t.getAllResponseHeaders(),s={};return e&&e.trim().split(/[\r\n]+/).forEach(r=>{const o=r.indexOf(":");o>0&&(s[r.substring(0,o).trim().toLowerCase()]=r.substring(o+1).trim())}),s},h=t=>({response:t.response,status:t.status,statusText:t.statusText,headers:t.request?d(t.request):t.headers||{},request:t.request}),g={populateClientFormData:n,populateUploadFormData:c,populateRemoveFormData:i,populateRequestOptions:u,resolveWithCredentials:p,cloneRequestHeaders:l,convertResponse:h};module.exports=g;
|
|
@@ -5,50 +5,63 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const n = (
|
|
9
|
-
Object.keys(
|
|
10
|
-
|
|
8
|
+
const n = (t, e) => {
|
|
9
|
+
Object.keys(e).forEach((s) => {
|
|
10
|
+
t.append(s, e[s]);
|
|
11
11
|
});
|
|
12
|
-
},
|
|
12
|
+
}, c = (t, e, s) => {
|
|
13
13
|
const r = new FormData();
|
|
14
|
-
return n(r, s),
|
|
14
|
+
return n(r, s), t.forEach((o) => {
|
|
15
15
|
const a = o.getRawFile ? o.getRawFile() : "";
|
|
16
|
-
a ? r.append(
|
|
16
|
+
a ? r.append(e, a, o.name) : r.append(e, a);
|
|
17
17
|
}), r;
|
|
18
|
-
},
|
|
18
|
+
}, i = (t, e, s) => {
|
|
19
19
|
const r = new FormData();
|
|
20
|
-
return n(r, s),
|
|
21
|
-
r.append(
|
|
20
|
+
return n(r, s), t.forEach((o) => {
|
|
21
|
+
r.append(e, o);
|
|
22
22
|
}), r;
|
|
23
|
-
}, u = (
|
|
24
|
-
headers:
|
|
25
|
-
responseType:
|
|
26
|
-
withCredentials:
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
t
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
23
|
+
}, u = (t, e) => ({
|
|
24
|
+
headers: t,
|
|
25
|
+
responseType: e.responseType,
|
|
26
|
+
withCredentials: e.withCredentials
|
|
27
|
+
}), p = (t, e) => {
|
|
28
|
+
var r;
|
|
29
|
+
if (t !== void 0)
|
|
30
|
+
return t;
|
|
31
|
+
if (!e || globalThis.location === void 0)
|
|
32
|
+
return !0;
|
|
33
|
+
const s = ((r = globalThis.document) == null ? void 0 : r.baseURI) || globalThis.location.href;
|
|
34
|
+
try {
|
|
35
|
+
return new URL(e, s).origin === globalThis.location.origin;
|
|
36
|
+
} catch {
|
|
37
|
+
return !0;
|
|
38
|
+
}
|
|
39
|
+
}, l = (t) => {
|
|
40
|
+
const e = {};
|
|
41
|
+
return Object.keys(t).forEach((s) => {
|
|
42
|
+
e[s] = t[s];
|
|
43
|
+
}), e;
|
|
44
|
+
}, d = (t) => {
|
|
45
|
+
const e = t.getAllResponseHeaders(), s = {};
|
|
46
|
+
return e && e.trim().split(/[\r\n]+/).forEach((r) => {
|
|
35
47
|
const o = r.indexOf(":");
|
|
36
48
|
o > 0 && (s[r.substring(0, o).trim().toLowerCase()] = r.substring(o + 1).trim());
|
|
37
49
|
}), s;
|
|
38
|
-
},
|
|
39
|
-
response:
|
|
40
|
-
status:
|
|
41
|
-
statusText:
|
|
42
|
-
headers:
|
|
43
|
-
request:
|
|
44
|
-
}),
|
|
50
|
+
}, h = (t) => ({
|
|
51
|
+
response: t.response,
|
|
52
|
+
status: t.status,
|
|
53
|
+
statusText: t.statusText,
|
|
54
|
+
headers: t.request ? d(t.request) : t.headers || {},
|
|
55
|
+
request: t.request
|
|
56
|
+
}), f = {
|
|
45
57
|
populateClientFormData: n,
|
|
46
|
-
populateUploadFormData:
|
|
47
|
-
populateRemoveFormData:
|
|
58
|
+
populateUploadFormData: c,
|
|
59
|
+
populateRemoveFormData: i,
|
|
48
60
|
populateRequestOptions: u,
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
resolveWithCredentials: p,
|
|
62
|
+
cloneRequestHeaders: l,
|
|
63
|
+
convertResponse: h
|
|
51
64
|
};
|
|
52
65
|
export {
|
|
53
|
-
|
|
66
|
+
f as default
|
|
54
67
|
};
|
package/EULA.pdf
DELETED
|
Binary file
|