@watermarkinsights/ripple 3.0.1 → 3.0.2-0
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/dist/cjs/{global-ccb9500c.js → global-1e540de6.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-datepicker.cjs.entry.js +25 -30
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +9 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +26 -32
- package/dist/esm/{global-4f914bb2.js → global-d6b49e98.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-datepicker.entry.js +1 -1
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-datepicker.entry.js +25 -30
- package/dist/ripple/p-129d94fa.entry.js +1 -0
- package/dist/ripple/{p-454ad552.entry.js → p-c0fe5201.entry.js} +1 -1
- package/dist/ripple/{p-69a73e86.js → p-e3843249.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +3 -3
- package/package.json +1 -1
- package/dist/cjs/app-globals-a07327ae.js +0 -47
- package/dist/cjs/css-shim-a7379e2b.js +0 -6
- package/dist/cjs/dom-3e7d9c3b.js +0 -75
- package/dist/cjs/functions-65513c61.js +0 -8360
- package/dist/cjs/global-06317e3f.js +0 -36
- package/dist/cjs/global-f6930bb0.js +0 -38
- package/dist/cjs/index-8dea8c13.js +0 -2976
- package/dist/cjs/shadow-css-09555044.js +0 -391
- package/dist/esm/app-globals-f62991a4.js +0 -45
- package/dist/esm/css-shim-bbdf0cc6.js +0 -4
- package/dist/esm/dom-1f98a75f.js +0 -73
- package/dist/esm/functions-316c1b23.js +0 -8340
- package/dist/esm/global-03372f70.js +0 -34
- package/dist/esm/global-fedbc323.js +0 -36
- package/dist/esm/index-e34aa595.js +0 -2938
- package/dist/esm/shadow-css-67b66845.js +0 -389
- package/dist/ripple/app-globals-b5693c90.js +0 -45
- package/dist/ripple/app-globals-d72c2d3c.js +0 -45
- package/dist/ripple/app-globals-f62991a4.js +0 -45
- package/dist/ripple/css-shim-bbdf0cc6.js +0 -4
- package/dist/ripple/dom-1f98a75f.js +0 -73
- package/dist/ripple/functions-316c1b23.js +0 -8340
- package/dist/ripple/http-service-5d037e16.js +0 -52
- package/dist/ripple/index-20b65f86.js +0 -2938
- package/dist/ripple/index-e34aa595.js +0 -2938
- package/dist/ripple/interfaces-50753346.js +0 -51
- package/dist/ripple/p-0c2498f4.js +0 -1
- package/dist/ripple/p-42ca2e15.entry.js +0 -1
- package/dist/ripple/p-e91befe3.js +0 -1
- package/dist/ripple/priv-chart-popover.entry.js +0 -85
- package/dist/ripple/priv-datepicker.entry.js +0 -668
- package/dist/ripple/priv-navigator-button.entry.js +0 -25
- package/dist/ripple/priv-navigator-item.entry.js +0 -30
- package/dist/ripple/ripple.css +0 -84
- package/dist/ripple/shadow-css-67b66845.js +0 -389
- package/dist/ripple/wm-action-menu.entry.js +0 -202
- package/dist/ripple/wm-button.entry.js +0 -148
- package/dist/ripple/wm-chart-slice.entry.js +0 -18
- package/dist/ripple/wm-chart.entry.js +0 -504
- package/dist/ripple/wm-datepicker.entry.js +0 -258
- package/dist/ripple/wm-input.entry.js +0 -106
- package/dist/ripple/wm-menuitem.entry.js +0 -114
- package/dist/ripple/wm-modal-footer.entry.js +0 -39
- package/dist/ripple/wm-modal-header.entry.js +0 -41
- package/dist/ripple/wm-modal.entry.js +0 -145
- package/dist/ripple/wm-navigator.entry.js +0 -275
- package/dist/ripple/wm-network-uploader.entry.js +0 -427
- package/dist/ripple/wm-option.entry.js +0 -119
- package/dist/ripple/wm-pagination.entry.js +0 -172
- package/dist/ripple/wm-search.entry.js +0 -227
- package/dist/ripple/wm-select.entry.js +0 -362
- package/dist/ripple/wm-snackbar.entry.js +0 -156
- package/dist/ripple/wm-tab-item.entry.js +0 -78
- package/dist/ripple/wm-tab-list.entry.js +0 -201
- package/dist/ripple/wm-tab-panel.entry.js +0 -38
- package/dist/ripple/wm-tag-input.entry.js +0 -534
- package/dist/ripple/wm-timepicker.entry.js +0 -382
- package/dist/ripple/wm-toggletip.entry.js +0 -124
- package/dist/ripple/wm-uploader.entry.js +0 -338
- package/dist/ripple/wm-wrapper.entry.js +0 -17
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts~ds312_tagInputMaxTags +0 -87
- package/dist/types/components.d.ts~ds312_tagInputMaxTags +0 -879
- package/dist/types/stencil-public-runtime.d.ts~ds312_tagInputMaxTags +0 -1555
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const getRequest = async (url) => {
|
|
2
|
-
const response = await fetch(url);
|
|
3
|
-
if (!!response && !!response.ok) {
|
|
4
|
-
return await response.json();
|
|
5
|
-
}
|
|
6
|
-
else {
|
|
7
|
-
throw new Error(response.statusText);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
const postRequest = async (url, payload) => {
|
|
11
|
-
const response = await fetch(url, {
|
|
12
|
-
method: "POST",
|
|
13
|
-
headers: { "Content-Type": "application/json; charset=utf-8" },
|
|
14
|
-
body: JSON.stringify(payload),
|
|
15
|
-
});
|
|
16
|
-
if (!!response && !!response.ok) {
|
|
17
|
-
return await response.json();
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error(response.statusText);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const deleteRequest = async (url) => {
|
|
24
|
-
const response = await fetch(url, { method: "DELETE" });
|
|
25
|
-
if (!!response && !!response.ok) {
|
|
26
|
-
return await response.json();
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
throw new Error(response.statusText);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const putRequest = (url, file, onProgress) => {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
// there's no way to track progress with the fetch API, so using XHR
|
|
35
|
-
const req = new XMLHttpRequest();
|
|
36
|
-
req.upload.addEventListener("progress", (ev) => onProgress(ev));
|
|
37
|
-
req.addEventListener("readystatechange", function () {
|
|
38
|
-
if (this.readyState === 4 && this.status === 200) {
|
|
39
|
-
resolve(this);
|
|
40
|
-
}
|
|
41
|
-
else if (this.readyState === 4 && this.status !== 200) {
|
|
42
|
-
reject();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
req.onerror = () => reject();
|
|
46
|
-
req.open("PUT", url, true);
|
|
47
|
-
req.setRequestHeader("Content-Disposition", `attachment;filename="${file.name}"`);
|
|
48
|
-
req.send(file);
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { postRequest as a, deleteRequest as d, getRequest as g, putRequest as p };
|