blue-web 1.28.2 → 1.30.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/js/dialog.bundle.js +1 -1
- package/dist/js/dialog.js +4 -4
- package/dist/js/shared.js +2 -2
- package/dist/merged.scss +19 -15
- package/dist/style.css +89 -75
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +4 -4
- package/dist/style.scss +1 -9
- package/dist/styles/_bootstrap-variables.scss +2 -2
- package/dist/styles/_devexpress.scss +16 -4
- package/package.json +1 -1
package/dist/js/dialog.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var n={762:(n,e,t)=>{function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}t.d(e,{Os:()=>a});const a=()=>o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o()},786:(n,e,t)=>{t.d(e,{k:()=>a});const o={Cancel:["Cancel","Abbrechen"],
|
|
1
|
+
(()=>{"use strict";var n={762:(n,e,t)=>{function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}t.d(e,{Os:()=>a});const a=()=>o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o()},786:(n,e,t)=>{t.d(e,{k:()=>a});const o={Cancel:["Cancel","Abbrechen"],Message:["Message","Nachricht"],Question:["Question","Frage"],Confirm:["Confirm","Bestätigen"],"Toggle menu":["Toggle menu","Menü umschalten"],"Close all":["Close all","Alle schließen"],Error:["Error","Fehler"],Information:["Information","Information"],Loading:["Loading","Laden"],Successful:["Successful","Erfolgreich"]};function a(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e=e||navigator.language.toLowerCase().indexOf("de")>-1?"de-DE":"en-US",t=t||o,t[n]?e.indexOf("de-")>-1?t[n][1]:t[n][0]:n}}},e={};function t(o){var a=e[o];if(void 0!==a)return a.exports;var l=e[o]={exports:{}};return n[o](l,l.exports,t),l.exports}t.d=(n,e)=>{for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var o=t(762),a=t(786);async function l(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{title:l=(0,a.k)("verify"===n?"Confirm":"ask"===n?"Question":"Message"),icon:c,switchPrimaryBtn:i=!1,acceptBtnText:r="OK",cancelBtnText:s=(0,a.k)("Cancel"),inputType:d="text",defaultValue:u}="string"==typeof t?JSON.parse(t):t;const m=(0,o.Os)();return document.getElementById(m)||document.body.insertAdjacentHTML("beforeend",'<dialog class="blue-modal modal" id="'.concat(m,'" aria-labelledby="').concat(m,'-label">\n <div class="modal-dialog">\n <div class="modal-content">\n <form>\n <div class="modal-header">\n ').concat(c?'<div class="me-2">'.concat(c,"</div>"):"",'\n <h1 class="modal-title fs-5" id="').concat(m,'-label">').concat(l,'</h1>\n </div>\n <div class="modal-body">\n ').concat("ask"===n?'<label for="'.concat(m,'-input" class="blue-label">').concat(e,'</label>\n <input\n type="').concat(d,'"\n ').concat(void 0!==u?' value="'.concat(u,'"'):"",'\n id="').concat(m,'-input"\n class="form-control"\n />'):e,'\n </div>\n <div class="modal-footer">\n ').concat("verify"===n||"ask"===n?'<button\n type="button"\n class="btn '.concat(i?"btn-primary":"blue-btn-plain-primary",'"\n onclick="document.getElementById(\'').concat(m,"').close()\"\n >\n ").concat(s,"\n </button>"):"",'\n <button\n type="submit"\n class="btn ').concat(i?"blue-btn-plain-primary":"btn-primary",'"\n >\n ').concat(r,'\n </button>\n </div>\n </form>\n </div>\n </div>\n\n <form method="dialog" class="blue-modal-backdrop">\n <button>').concat(s,"</button>\n </form>\n </dialog>")),new Promise(e=>{var t;const o=document.getElementById(m),a=()=>{const n=document.getElementById(m);n&&n.remove()};null==o||o.showModal(),null==o||o.addEventListener("close",()=>{a(),e(!1)}),null==o||null===(t=o.querySelector(".modal-content > form"))||void 0===t||t.addEventListener("submit",t=>{t.preventDefault(),"ask"===n&&(o.close(),a(),e((null==o?void 0:o.querySelector("input")).value||"")),o.close(),a(),e(!0)})})}window.blueWeb=window.blueWeb||{},window.blueWeb.dialog={ask:async function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await l("ask",n,e)},tell:async function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};await l("tell",n,e)},verify:async function(n){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!0===await l("verify",n,e)}}})();
|
package/dist/js/dialog.js
CHANGED
|
@@ -15,17 +15,17 @@ export async function verify(text) {
|
|
|
15
15
|
async function dialog(dialogType, text) {
|
|
16
16
|
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
17
17
|
let {
|
|
18
|
-
title = getPhrase("Message"),
|
|
18
|
+
title = getPhrase(dialogType === "verify" ? "Confirm" : dialogType === "ask" ? "Question" : "Message"),
|
|
19
19
|
icon = undefined,
|
|
20
20
|
switchPrimaryBtn = false,
|
|
21
|
-
acceptBtnText =
|
|
22
|
-
cancelBtnText =
|
|
21
|
+
acceptBtnText = "OK",
|
|
22
|
+
cancelBtnText = getPhrase("Cancel"),
|
|
23
23
|
inputType = "text",
|
|
24
24
|
defaultValue
|
|
25
25
|
} = typeof options === "string" ? JSON.parse(options) : options;
|
|
26
26
|
const id = guid();
|
|
27
27
|
const addToDom = () => {
|
|
28
|
-
document.body.insertAdjacentHTML("beforeend", /* HTML */"<dialog class=\"blue-modal modal\" id=\"".concat(id, "\" aria-labelledby=\"").concat(id, "-label\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <form>\n <div class=\"modal-header\">\n ").concat(icon ? /* html */"<div class=\"me-2\">".concat(icon, "</div>") : "", "\n <h1 class=\"modal-title fs-5\" id=\"").concat(id, "-label\">").concat(title, "</h1>\n </div>\n <div class=\"modal-body\">\n ").concat(dialogType === "ask" ? /* HTML */"<label for=\"".concat(id, "-input\">").concat(text, "</label>\n <input\n type=\"").concat(inputType, "\"\n ").concat(defaultValue !== undefined ? " value=\"".concat(defaultValue, "\"") : "", "\n id=\"").concat(id, "-input\"\n class=\"form-control
|
|
28
|
+
document.body.insertAdjacentHTML("beforeend", /* HTML */"<dialog class=\"blue-modal modal\" id=\"".concat(id, "\" aria-labelledby=\"").concat(id, "-label\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <form>\n <div class=\"modal-header\">\n ").concat(icon ? /* html */"<div class=\"me-2\">".concat(icon, "</div>") : "", "\n <h1 class=\"modal-title fs-5\" id=\"").concat(id, "-label\">").concat(title, "</h1>\n </div>\n <div class=\"modal-body\">\n ").concat(dialogType === "ask" ? /* HTML */"<label for=\"".concat(id, "-input\" class=\"blue-label\">").concat(text, "</label>\n <input\n type=\"").concat(inputType, "\"\n ").concat(defaultValue !== undefined ? " value=\"".concat(defaultValue, "\"") : "", "\n id=\"").concat(id, "-input\"\n class=\"form-control\"\n />") : text, "\n </div>\n <div class=\"modal-footer\">\n ").concat(dialogType === "verify" || dialogType === "ask" ? /* HTML */"<button\n type=\"button\"\n class=\"btn ".concat(switchPrimaryBtn ? "btn-primary" : "blue-btn-plain-primary", "\"\n onclick=\"document.getElementById('").concat(id, "').close()\"\n >\n ").concat(cancelBtnText, "\n </button>") : "", "\n <button\n type=\"submit\"\n class=\"btn ").concat(switchPrimaryBtn ? "blue-btn-plain-primary" : "btn-primary", "\"\n >\n ").concat(acceptBtnText, "\n </button>\n </div>\n </form>\n </div>\n </div>\n\n <form method=\"dialog\" class=\"blue-modal-backdrop\">\n <button>").concat(cancelBtnText, "</button>\n </form>\n </dialog>"));
|
|
29
29
|
};
|
|
30
30
|
if (!document.getElementById(id)) {
|
|
31
31
|
addToDom();
|
package/dist/js/shared.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const phrases = {
|
|
2
2
|
Cancel: ["Cancel", "Abbrechen"],
|
|
3
|
-
Yes: ["Yes", "Ja"],
|
|
4
|
-
No: ["No", "Nein"],
|
|
5
3
|
Message: ["Message", "Nachricht"],
|
|
4
|
+
Question: ["Question", "Frage"],
|
|
5
|
+
Confirm: ["Confirm", "Bestätigen"],
|
|
6
6
|
"Toggle menu": ["Toggle menu", "Menü umschalten"],
|
|
7
7
|
"Close all": ["Close all", "Alle schließen"],
|
|
8
8
|
Error: ["Error", "Fehler"],
|
package/dist/merged.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Blue Web v1.
|
|
2
|
+
* Blue Web v1.30.0 (https://bruegmann.github.io/blue-web)
|
|
3
3
|
* Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-web/blob/master/LICENSE).
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
// Main color theme. E.g. used for background for body and sidebar.
|
|
7
|
-
$theme: hsl(
|
|
7
|
+
$theme: hsl(217, 17%, 98%) !default;
|
|
8
8
|
$theme-dark: hsl(217deg 10% 8%) !default;
|
|
9
9
|
$primary: hsl(221, 97%, 53%) !default;
|
|
10
10
|
$white: #fff !default;
|
|
@@ -47,7 +47,7 @@ $link-hover-decoration: underline !default;
|
|
|
47
47
|
$focus-ring-color: #{rgba(var(--bs-primary-rgb), 25%)} !default;
|
|
48
48
|
$input-focus-border-color: #{rgba(var(--bs-primary-rgb), 50%)} !default;
|
|
49
49
|
|
|
50
|
-
$enable-button-pointers:
|
|
50
|
+
$enable-button-pointers: true !default;
|
|
51
51
|
$focus-ring-width: 0.125rem !default;
|
|
52
52
|
|
|
53
53
|
|
|
@@ -10814,14 +10814,6 @@ $utilities: map-merge(
|
|
|
10814
10814
|
border-color: var(--bs-primary, #{$form-check-input-checked-border-color});
|
|
10815
10815
|
}
|
|
10816
10816
|
|
|
10817
|
-
// Resets cursor from Bootstrap' _reboot.scss based on option.
|
|
10818
|
-
@if ($enable-button-pointers: false) {
|
|
10819
|
-
summary,
|
|
10820
|
-
[role="button"] {
|
|
10821
|
-
cursor: unset;
|
|
10822
|
-
}
|
|
10823
|
-
}
|
|
10824
|
-
|
|
10825
10817
|
// In previous versions of Bootstrap, `.page-header` was a class that could be used to add a border to the bottom of a page header.
|
|
10826
10818
|
// Unfortunately his class was removed in Bootstrap 5, so it's now part of Blue Web CSS.
|
|
10827
10819
|
.blue-page-header,
|
|
@@ -12397,9 +12389,7 @@ dialog.blue-modal:has(.offcanvas-start) {
|
|
|
12397
12389
|
|
|
12398
12390
|
|
|
12399
12391
|
/* Make DevExpress components look more like Bootstrap/Blue */
|
|
12400
|
-
[class^="dxbl-"]:not(.dxbl-
|
|
12401
|
-
:is(.dxbl-toolbar-btn-ellipsis > .dxbl-btn)
|
|
12402
|
-
) {
|
|
12392
|
+
[class^="dxbl-"]:not(.dxbl-btn-tool):not(.dxbl-toolbar-item):not(:is(.dxbl-toolbar-btn-ellipsis > .dxbl-btn)) {
|
|
12403
12393
|
--dxbl-btn-padding-x: 0.75rem !important;
|
|
12404
12394
|
--dxbl-btn-padding-y: 0.375rem !important;
|
|
12405
12395
|
}
|
|
@@ -12548,7 +12538,12 @@ body.modal-open .dxbl-popup-cell[style="z-index: 1050;"] {
|
|
|
12548
12538
|
> .dxbl-scroll-viewer-content
|
|
12549
12539
|
> :not(.dxbl-list-box-empty-data-container)
|
|
12550
12540
|
> tbody
|
|
12551
|
-
> tr:not(.dxbl-list-box-group-item):not(.dxbl-list-box-item-disabled):not(.dxbl-list-box-empty-list-item)
|
|
12541
|
+
> tr:not(.dxbl-list-box-group-item):not(.dxbl-list-box-item-disabled):not(.dxbl-list-box-empty-list-item),
|
|
12542
|
+
.dxbl-treeview
|
|
12543
|
+
.dxbl-treeview-item
|
|
12544
|
+
> .dxbl-treeview-item-content
|
|
12545
|
+
> .dxbl-treeview-item-container:not(.dxbl-disabled),
|
|
12546
|
+
.dxbl-grid-action {
|
|
12552
12547
|
cursor: default;
|
|
12553
12548
|
}
|
|
12554
12549
|
}
|
|
@@ -12600,6 +12595,15 @@ body.modal-open .dxbl-popup-cell[style="z-index: 1050;"] {
|
|
|
12600
12595
|
--dxbl-popup-border-radius: var(--bs-border-radius-lg);
|
|
12601
12596
|
}
|
|
12602
12597
|
|
|
12598
|
+
.dxbl-checkbox:not(.dxbl-checkbox-switch):not(.dxbl-checkbox-radio) .dxbl-checkbox-check-element {
|
|
12599
|
+
border-radius: 0.25em;
|
|
12600
|
+
}
|
|
12601
|
+
|
|
12602
|
+
.dxbl-checkbox:not(.dxbl-disabled):not(:disabled):not(.dxbl-readonly) input,
|
|
12603
|
+
.dxbl-checkbox:not(.dxbl-disabled):not(:disabled):not(.dxbl-readonly) label {
|
|
12604
|
+
cursor: initial;
|
|
12605
|
+
}
|
|
12606
|
+
|
|
12603
12607
|
:root {
|
|
12604
12608
|
--bs-font-sans-serif: Inter, #{$font-family-sans-serif};
|
|
12605
12609
|
--blue-font-feature-settings: "liga" 1, "calt" 1, "cv05" 1, "cv07" 1, "tnum" 1, "zero" 1;
|