blue-web 1.12.0 → 1.14.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/README.md +15 -3
- package/dist/js/actions.bundle.js +1 -0
- package/dist/js/actions.d.ts +5 -0
- package/dist/js/actions.js +61 -0
- package/dist/js/color-mode.bundle.js +1 -0
- package/dist/js/color-mode.d.ts +4 -0
- package/dist/js/color-mode.js +37 -0
- package/dist/js/dialog.js +9 -17
- package/dist/js/edit-view.js +1 -8
- package/dist/js/progress.js +1 -7
- package/dist/js/read-view.js +1 -8
- package/dist/js/shared.js +1 -7
- package/dist/js/side-layout.js +1 -8
- package/dist/js/utils.js +9 -24
- package/dist/merged.scss +1019 -1048
- package/dist/style.css +101 -406
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +4 -4
- package/dist/style.scss +4 -1
- package/dist/styles/_action-menu.scss +3 -15
- package/dist/styles/_actions.css +21 -0
- package/dist/styles/_bootstrap-variables.scss +1 -2
- package/dist/styles/_collapse.scss +0 -4
- package/dist/styles/_devexpress.css +33 -0
- package/dist/styles/_hover.scss +0 -7
- package/dist/styles/_menu-item.scss +6 -60
- package/dist/styles/_variables.scss +26 -34
- package/package.json +6 -4
- package/dist/js/all.bundle.js +0 -2
- package/dist/js/all.bundle.js.LICENSE.txt +0 -5
- package/dist/js/all.js +0 -3
- package/dist/js/button.bundle.js +0 -1
- package/dist/js/button.d.ts +0 -1
- package/dist/js/button.js +0 -21
- package/dist/js/dialog.bundle.js.LICENSE.txt +0 -5
- package/dist/legacy-styles/_grid-layout.scss +0 -42
- package/dist/legacy-styles/_layout.scss +0 -211
- package/dist/legacy-styles/_router.scss +0 -19
- package/dist/legacy-styles/_sidebar.scss +0 -54
- package/dist/legacy-styles/mixins/_sidebar.scss +0 -209
package/README.md
CHANGED
|
@@ -24,14 +24,25 @@ import "blue-web/dist/js/progress.js"
|
|
|
24
24
|
// ...
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
**Important:** Since 1.14.0 JavaScript files are compiled as ES modules. When you embed them in HTML using the `<script>` don't forget the `type="module"` attribute.
|
|
28
|
+
|
|
27
29
|
You can also use a CDN like unpkg.com. Only recommended for testing, not for production.
|
|
28
30
|
|
|
29
31
|
```html
|
|
30
|
-
<script src="https://unpkg.com/blue-web@latest/dist/js/dialog.js"></script>
|
|
31
|
-
<script src="https://unpkg.com/blue-web@latest/dist/js/progress.js"></script>
|
|
32
|
+
<script type="module" src="https://unpkg.com/blue-web@latest/dist/js/dialog.js"></script>
|
|
33
|
+
<script type="module" src="https://unpkg.com/blue-web@latest/dist/js/progress.js"></script>
|
|
32
34
|
<!-- ... -->
|
|
33
35
|
```
|
|
34
36
|
|
|
37
|
+
JavaScript files are compiled as ES modules. This allows you to use import functions like this:
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<script type="module">
|
|
41
|
+
import { tell } from "https://unpkg.com/blue-web@latest/dist/js/dialog.js"
|
|
42
|
+
tell("You are awesome!")
|
|
43
|
+
</script>
|
|
44
|
+
```
|
|
45
|
+
|
|
35
46
|
## Customization and theming
|
|
36
47
|
|
|
37
48
|
Since Blue Web is based on Bootstrap, you can customize many things by overriding Sass or CSS variables. For more information, see the [Bootstrap documentation](https://getbootstrap.com/docs/5.3/customize/overview/). Blue Web also provides some additional variables that you can use and override. Take a look at [dist/styles/\_variables.scss](https://github.com/bruegmann/blue-web/blob/main/dist/styles/_variables.scss) to see all of them.
|
|
@@ -42,8 +53,9 @@ Here is an example of how to override variables using Sass:
|
|
|
42
53
|
// Override Bootstrap Sass variable
|
|
43
54
|
$primary: tomato;
|
|
44
55
|
|
|
45
|
-
// Override Blue Web Sass
|
|
56
|
+
// Override Blue Web Sass variables
|
|
46
57
|
$theme: orange;
|
|
58
|
+
$theme-dark: darken(orange, 10%);
|
|
47
59
|
|
|
48
60
|
// Stylesheet for Blue Web. Already contains Bootstrap.
|
|
49
61
|
@import "~blue-web/dist/style";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";window.blueWeb=window.blueWeb||{},window.blueWeb.actions={init:function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;function n(){for(const e of i.children)e.style.display="none";for(const e of t.children)e.style.display="",e.classList.add("BLUE-actions-collapse-visible");let n=0;for(const s of i.children){if(s.style.display="",t.children[n].style.display="none",t.children[n].classList.remove("BLUE-actions-collapse-visible"),e.scrollWidth>e.clientWidth){s.style.display="none",t.children[n].style.display="",t.children[n].classList.add("BLUE-actions-collapse-visible");break}n++}}i||(i=e.querySelector(".BLUE-actions-menu")),t||(t=e.querySelector(".BLUE-actions-collapse-menu")),n();const s=new ResizeObserver((()=>{requestAnimationFrame(n)}));s.observe(e);const l=i=>{if(!e)return;const t=e.querySelectorAll("details[open]");!t||t.length<=0||t.forEach((e=>{e.contains(i.target)||e.removeAttribute("open")}))};return document.addEventListener("click",l),{updateActions:n,resizeObserver:s,destroy(){s.disconnect(),document.removeEventListener("click",l)}}}}})();
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export function init(actionsElement) {
|
|
2
|
+
let menu = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
3
|
+
let collapseMenu = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
4
|
+
if (!menu) menu = actionsElement.querySelector(".BLUE-actions-menu");
|
|
5
|
+
if (!collapseMenu) collapseMenu = actionsElement.querySelector(".BLUE-actions-collapse-menu");
|
|
6
|
+
function updateActions() {
|
|
7
|
+
// reset
|
|
8
|
+
for (const item of menu.children) {
|
|
9
|
+
;
|
|
10
|
+
item.style.display = "none";
|
|
11
|
+
}
|
|
12
|
+
for (const item of collapseMenu.children) {
|
|
13
|
+
;
|
|
14
|
+
item.style.display = "";
|
|
15
|
+
item.classList.add("BLUE-actions-collapse-visible");
|
|
16
|
+
}
|
|
17
|
+
let i = 0;
|
|
18
|
+
for (const item of menu.children) {
|
|
19
|
+
;
|
|
20
|
+
item.style.display = "";
|
|
21
|
+
collapseMenu.children[i].style.display = "none";
|
|
22
|
+
collapseMenu.children[i].classList.remove("BLUE-actions-collapse-visible");
|
|
23
|
+
if (actionsElement.scrollWidth > actionsElement.clientWidth) {
|
|
24
|
+
;
|
|
25
|
+
item.style.display = "none";
|
|
26
|
+
collapseMenu.children[i].style.display = "";
|
|
27
|
+
collapseMenu.children[i].classList.add("BLUE-actions-collapse-visible");
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
i++;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
updateActions();
|
|
34
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
35
|
+
requestAnimationFrame(updateActions);
|
|
36
|
+
});
|
|
37
|
+
resizeObserver.observe(actionsElement);
|
|
38
|
+
const outsideClickHandler = event => {
|
|
39
|
+
if (!actionsElement) return;
|
|
40
|
+
const openDetails = actionsElement.querySelectorAll("details[open]");
|
|
41
|
+
if (!openDetails || openDetails.length <= 0) return;
|
|
42
|
+
openDetails.forEach(details => {
|
|
43
|
+
if (!details.contains(event.target)) {
|
|
44
|
+
details.removeAttribute("open");
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
document.addEventListener("click", outsideClickHandler);
|
|
49
|
+
return {
|
|
50
|
+
updateActions,
|
|
51
|
+
resizeObserver,
|
|
52
|
+
destroy() {
|
|
53
|
+
resizeObserver.disconnect();
|
|
54
|
+
document.removeEventListener("click", outsideClickHandler);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
window.blueWeb = window.blueWeb || {};
|
|
59
|
+
window.blueWeb.actions = {
|
|
60
|
+
init
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";const e=()=>localStorage.getItem("blue-web-color-mode"),t=()=>e()||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),o=()=>{const e=t();"auto"===e&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.setAttribute("data-bs-theme","dark"):document.documentElement.setAttribute("data-bs-theme",e)};window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(()=>{localStorage.removeItem("blue-web-color-mode"),o()})),o(),window.blueWeb=window.blueWeb||{},window.blueWeb.colorMode={getStored:e,getPreferred:t,set:e=>{"auto"===e?localStorage.removeItem("blue-web-color-mode"):localStorage.setItem("blue-web-color-mode",e),o()},init:o}})();
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const getStored = () => localStorage.getItem("blue-web-color-mode");
|
|
2
|
+
export const getPreferred = () => {
|
|
3
|
+
const stored = getStored();
|
|
4
|
+
if (stored) {
|
|
5
|
+
return stored;
|
|
6
|
+
}
|
|
7
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
8
|
+
};
|
|
9
|
+
export const set = colorMode => {
|
|
10
|
+
if (colorMode === "auto") {
|
|
11
|
+
localStorage.removeItem("blue-web-color-mode");
|
|
12
|
+
} else {
|
|
13
|
+
localStorage.setItem("blue-web-color-mode", colorMode);
|
|
14
|
+
}
|
|
15
|
+
init();
|
|
16
|
+
};
|
|
17
|
+
export const init = () => {
|
|
18
|
+
const colorMode = getPreferred();
|
|
19
|
+
if (colorMode === "auto" && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
20
|
+
document.documentElement.setAttribute("data-bs-theme", "dark");
|
|
21
|
+
} else {
|
|
22
|
+
document.documentElement.setAttribute("data-bs-theme", colorMode);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const onMatchMediaChange = () => {
|
|
26
|
+
localStorage.removeItem("blue-web-color-mode");
|
|
27
|
+
init();
|
|
28
|
+
};
|
|
29
|
+
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", onMatchMediaChange);
|
|
30
|
+
init();
|
|
31
|
+
window.blueWeb = window.blueWeb || {};
|
|
32
|
+
window.blueWeb.colorMode = {
|
|
33
|
+
getStored,
|
|
34
|
+
getPreferred,
|
|
35
|
+
set,
|
|
36
|
+
init
|
|
37
|
+
};
|
package/dist/js/dialog.js
CHANGED
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ask = ask;
|
|
7
|
-
exports.tell = tell;
|
|
8
|
-
exports.verify = verify;
|
|
9
|
-
var _utils = require("./utils");
|
|
10
|
-
var _shared = require("./shared");
|
|
11
|
-
async function ask(text) {
|
|
1
|
+
import { guid } from "./utils";
|
|
2
|
+
import { getPhrase } from "./shared";
|
|
3
|
+
export async function ask(text) {
|
|
12
4
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13
5
|
return await dialog("ask", text, options);
|
|
14
6
|
}
|
|
15
|
-
async function tell(text) {
|
|
7
|
+
export async function tell(text) {
|
|
16
8
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
17
9
|
await dialog("tell", text, options);
|
|
18
10
|
}
|
|
19
|
-
async function verify(text) {
|
|
11
|
+
export async function verify(text) {
|
|
20
12
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21
13
|
return (await dialog("verify", text, options)) === true;
|
|
22
14
|
}
|
|
23
15
|
async function dialog(dialogType, text) {
|
|
24
16
|
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
25
17
|
let {
|
|
26
|
-
title =
|
|
18
|
+
title = getPhrase("Message"),
|
|
27
19
|
icon = undefined,
|
|
28
20
|
switchPrimaryBtn = false,
|
|
29
|
-
acceptBtnText = dialogType === "verify" ?
|
|
30
|
-
cancelBtnText = dialogType === "verify" ?
|
|
21
|
+
acceptBtnText = dialogType === "verify" ? getPhrase("Yes") : "OK",
|
|
22
|
+
cancelBtnText = dialogType === "verify" ? getPhrase("No") : getPhrase("Cancel"),
|
|
31
23
|
inputType = "text"
|
|
32
24
|
} = options;
|
|
33
|
-
const id =
|
|
25
|
+
const id = guid();
|
|
34
26
|
const addToDom = () => {
|
|
35
27
|
document.body.insertAdjacentHTML("beforeend", /* HTML */`<dialog class="blue-modal modal" id="${id}" aria-labelledby="${id}-label">
|
|
36
28
|
<div class="modal-dialog">
|
package/dist/js/edit-view.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.EditView = void 0;
|
|
7
1
|
/**
|
|
8
2
|
* EditView is a Custom Element that displays a edit view of its content and allows the user to confirm or dismiss the changes.
|
|
9
3
|
*/
|
|
10
|
-
class EditView extends HTMLElement {
|
|
4
|
+
export class EditView extends HTMLElement {
|
|
11
5
|
connectedCallback() {
|
|
12
6
|
this.render();
|
|
13
7
|
}
|
|
@@ -59,5 +53,4 @@ class EditView extends HTMLElement {
|
|
|
59
53
|
}));
|
|
60
54
|
}
|
|
61
55
|
}
|
|
62
|
-
exports.EditView = EditView;
|
|
63
56
|
customElements.define("edit-view", EditView);
|
package/dist/js/progress.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
1
|
window.blueWeb = window.blueWeb || {};
|
|
8
2
|
window.blueWeb.progress = {
|
|
9
3
|
progress: 0
|
|
@@ -58,4 +52,4 @@ window.blueWeb.progress = {
|
|
|
58
52
|
}, 500);
|
|
59
53
|
}
|
|
60
54
|
};
|
|
61
|
-
|
|
55
|
+
export default window.blueWeb.progress;
|
package/dist/js/read-view.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ReadView = void 0;
|
|
7
1
|
const DRAG_THRESHOLD = 5;
|
|
8
2
|
|
|
9
3
|
/**
|
|
@@ -25,7 +19,7 @@ const DRAG_THRESHOLD = 5;
|
|
|
25
19
|
* setEditing(true)
|
|
26
20
|
* })
|
|
27
21
|
*/
|
|
28
|
-
class ReadView extends HTMLElement {
|
|
22
|
+
export class ReadView extends HTMLElement {
|
|
29
23
|
startX = 0;
|
|
30
24
|
startY = 0;
|
|
31
25
|
constructor() {
|
|
@@ -126,5 +120,4 @@ class ReadView extends HTMLElement {
|
|
|
126
120
|
}
|
|
127
121
|
}
|
|
128
122
|
}
|
|
129
|
-
exports.ReadView = ReadView;
|
|
130
123
|
customElements.define("read-view", ReadView);
|
package/dist/js/shared.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getPhrase = getPhrase;
|
|
7
1
|
const phrases = {
|
|
8
2
|
Cancel: ["Cancel", "Abbrechen"],
|
|
9
3
|
Yes: ["Yes", "Ja"],
|
|
@@ -14,7 +8,7 @@ const phrases = {
|
|
|
14
8
|
Error: ["Error", "Fehler"],
|
|
15
9
|
Information: ["Information", "Information"]
|
|
16
10
|
};
|
|
17
|
-
function getPhrase(keyword) {
|
|
11
|
+
export function getPhrase(keyword) {
|
|
18
12
|
let countryCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
19
13
|
let _phrases = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
20
14
|
countryCode = countryCode || navigator.language.toLowerCase().indexOf("de") > -1 ? "de-DE" : "en-US";
|
package/dist/js/side-layout.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SideLayout = void 0;
|
|
7
|
-
class SideLayout extends HTMLElement {
|
|
1
|
+
export class SideLayout extends HTMLElement {
|
|
8
2
|
constructor() {
|
|
9
3
|
super();
|
|
10
4
|
this.attachShadow({
|
|
@@ -173,5 +167,4 @@ class SideLayout extends HTMLElement {
|
|
|
173
167
|
}
|
|
174
168
|
}
|
|
175
169
|
}
|
|
176
|
-
exports.SideLayout = SideLayout;
|
|
177
170
|
customElements.define("side-layout", SideLayout);
|
package/dist/js/utils.js
CHANGED
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.fetchData = fetchData;
|
|
7
|
-
exports.finishLoading = finishLoading;
|
|
8
|
-
exports.guid = void 0;
|
|
9
|
-
exports.hideSuccess = hideSuccess;
|
|
10
|
-
exports.resetAlertMessage = resetAlertMessage;
|
|
11
|
-
exports.scrollToTop = scrollToTop;
|
|
12
|
-
exports.setAlertMessage = setAlertMessage;
|
|
13
|
-
exports.showSuccess = showSuccess;
|
|
14
|
-
exports.startLoading = startLoading;
|
|
15
|
-
function startLoading() {
|
|
1
|
+
export function startLoading() {
|
|
16
2
|
;
|
|
17
3
|
document.querySelector(".blue-loading").style.display = "block";
|
|
18
4
|
}
|
|
19
|
-
function finishLoading() {
|
|
5
|
+
export function finishLoading() {
|
|
20
6
|
;
|
|
21
7
|
document.querySelector(".blue-loading").style.display = "";
|
|
22
8
|
}
|
|
23
|
-
function showSuccess() {
|
|
9
|
+
export function showSuccess() {
|
|
24
10
|
;
|
|
25
11
|
document.querySelector(".blue-status-success").style.display = "flex";
|
|
26
12
|
}
|
|
27
|
-
function hideSuccess() {
|
|
13
|
+
export function hideSuccess() {
|
|
28
14
|
;
|
|
29
15
|
document.querySelector(".blue-status-success").style.display = "";
|
|
30
16
|
}
|
|
@@ -34,7 +20,7 @@ function hideSuccess() {
|
|
|
34
20
|
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
35
21
|
* @param alertClassName Leave empty to reset messages of any status type
|
|
36
22
|
*/
|
|
37
|
-
function resetAlertMessage(alertClassName) {
|
|
23
|
+
export function resetAlertMessage(alertClassName) {
|
|
38
24
|
if (!alertClassName) {
|
|
39
25
|
;
|
|
40
26
|
["loading", "success", "info", "warning", "danger"].forEach(status => {
|
|
@@ -54,7 +40,7 @@ function resetAlertMessage(alertClassName) {
|
|
|
54
40
|
/**
|
|
55
41
|
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
56
42
|
*/
|
|
57
|
-
function setAlertMessage(message) {
|
|
43
|
+
export function setAlertMessage(message) {
|
|
58
44
|
let alertClassName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "info";
|
|
59
45
|
let close = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
60
46
|
let detailText = arguments.length > 3 ? arguments[3] : undefined;
|
|
@@ -82,9 +68,8 @@ function setAlertMessage(message) {
|
|
|
82
68
|
function s4() {
|
|
83
69
|
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
|
84
70
|
}
|
|
85
|
-
const guid = () => s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
86
|
-
|
|
87
|
-
function scrollToTop() {
|
|
71
|
+
export const guid = () => s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
72
|
+
export function scrollToTop() {
|
|
88
73
|
const routerPage = document.querySelector(".router-page.active");
|
|
89
74
|
routerPage.scroll({
|
|
90
75
|
behavior: "smooth",
|
|
@@ -103,7 +88,7 @@ const httpStatusCodes = {
|
|
|
103
88
|
500: "Internal Server Error",
|
|
104
89
|
502: "Bad Gateway"
|
|
105
90
|
};
|
|
106
|
-
function fetchData(input, init) {
|
|
91
|
+
export function fetchData(input, init) {
|
|
107
92
|
let showErrorDetail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
108
93
|
let onError = arguments.length > 3 ? arguments[3] : undefined;
|
|
109
94
|
return fetch(input, init).then(response => {
|