blue-web 1.36.2 → 1.37.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/701.bundle.js +1 -0
- package/dist/js/776.bundle.js +1 -0
- package/dist/js/actions.js +48 -57
- package/dist/js/color-mode.js +23 -29
- package/dist/js/dialog.js +82 -64
- package/dist/js/edit-view.js +52 -55
- package/dist/js/input-splitted.js +193 -244
- package/dist/js/layout.js +151 -192
- package/dist/js/modal-responsive.js +35 -48
- package/dist/js/odometer.js +132 -131
- package/dist/js/overflow-detector.js +51 -62
- package/dist/js/progress.js +41 -59
- package/dist/js/quick-look.bundle.js +1 -0
- package/dist/js/quick-look.d.ts +15 -0
- package/dist/js/quick-look.js +168 -0
- package/dist/js/read-view.js +125 -91
- package/dist/js/select-list.js +168 -177
- package/dist/js/shared.js +21 -26
- package/dist/js/utils.d.ts +1 -1
- package/dist/js/utils.js +4 -106
- package/dist/merged.scss +87 -9
- package/dist/style.css +75 -7
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +5 -5
- package/dist/style.scss +2 -1
- package/dist/styles/_quick-look.scss +56 -0
- package/package.json +8 -7
package/dist/js/utils.js
CHANGED
|
@@ -1,108 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
;
|
|
3
|
-
document.querySelector(".blue-loading").style.display = "block";
|
|
4
|
-
}
|
|
5
|
-
export function finishLoading() {
|
|
6
|
-
;
|
|
7
|
-
document.querySelector(".blue-loading").style.display = "";
|
|
8
|
-
}
|
|
9
|
-
export function showSuccess() {
|
|
10
|
-
;
|
|
11
|
-
document.querySelector(".blue-status-success").style.display = "flex";
|
|
12
|
-
}
|
|
13
|
-
export function hideSuccess() {
|
|
14
|
-
;
|
|
15
|
-
document.querySelector(".blue-status-success").style.display = "";
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Resets alert messages that was set with `setAlertMessage`.
|
|
20
|
-
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
21
|
-
* @param alertClassName Leave empty to reset messages of any status type
|
|
22
|
-
*/
|
|
23
|
-
export function resetAlertMessage(alertClassName) {
|
|
24
|
-
if (!alertClassName) {
|
|
25
|
-
;
|
|
26
|
-
["loading", "success", "info", "warning", "danger"].forEach(status => {
|
|
27
|
-
resetAlertMessage(status);
|
|
28
|
-
});
|
|
29
|
-
} else {
|
|
30
|
-
const alertElement = document.querySelector(".blue-status-alert");
|
|
31
|
-
const statusElement = document.querySelector(".blue-status-" + alertClassName);
|
|
32
|
-
if (statusElement) statusElement.style.display = "";
|
|
33
|
-
if (alertElement) {
|
|
34
|
-
alertElement.style.display = "";
|
|
35
|
-
alertElement.classList.remove("alert-" + (alertClassName === "loading" ? "info" : alertClassName));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* When using React, you should use `StatusProvider` instead: https://bruegmann.github.io/blue-react/v9/component/StatusProvider
|
|
42
|
-
*/
|
|
43
|
-
export function setAlertMessage(message) {
|
|
44
|
-
let alertClassName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "info";
|
|
45
|
-
let close = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
46
|
-
let detailText = arguments.length > 3 ? arguments[3] : undefined;
|
|
47
|
-
const alertElement = document.querySelector(".blue-status-alert");
|
|
48
|
-
const statusElement = document.querySelector(".blue-status-" + alertClassName);
|
|
49
|
-
if (statusElement) statusElement.style.display = "flex";
|
|
50
|
-
if (alertElement) {
|
|
51
|
-
alertElement.style.display = "block";
|
|
52
|
-
alertElement.classList.add("alert-" + (alertClassName === "loading" ? "info" : alertClassName));
|
|
53
|
-
alertElement.querySelector(".alert-body").innerHTML = "<h2>" + message + "</h2>";
|
|
54
|
-
if (detailText) {
|
|
55
|
-
alertElement.querySelector(".alert-body").innerHTML += "<span>" + detailText + "</span>";
|
|
56
|
-
}
|
|
57
|
-
const btnCloseElement = alertElement.querySelector(".btn-close");
|
|
58
|
-
if (close) {
|
|
59
|
-
btnCloseElement.style.display = "inline-block";
|
|
60
|
-
btnCloseElement.onclick = () => {
|
|
61
|
-
resetAlertMessage(alertClassName);
|
|
62
|
-
};
|
|
63
|
-
} else {
|
|
64
|
-
btnCloseElement.style.display = "none";
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
// src/js/utils.ts
|
|
68
2
|
function s4() {
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
export const guid = () => s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
72
|
-
export function scrollToTop() {
|
|
73
|
-
const routerPage = document.querySelector(".router-page.active");
|
|
74
|
-
routerPage.scroll({
|
|
75
|
-
behavior: "smooth",
|
|
76
|
-
left: 0,
|
|
77
|
-
top: 0
|
|
78
|
-
});
|
|
3
|
+
return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
79
4
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
401: "Unauthorized",
|
|
83
|
-
403: "Forbidden",
|
|
84
|
-
404: "Not Found",
|
|
85
|
-
405: "Method Not Allowed",
|
|
86
|
-
408: "Request Timeout",
|
|
87
|
-
409: "Conflict",
|
|
88
|
-
500: "Internal Server Error",
|
|
89
|
-
502: "Bad Gateway"
|
|
90
|
-
};
|
|
91
|
-
export function fetchData(input, init) {
|
|
92
|
-
let showErrorDetail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
93
|
-
let onError = arguments.length > 3 ? arguments[3] : undefined;
|
|
94
|
-
return fetch(input, init).then(response => {
|
|
95
|
-
if (!response.ok) throw response;
|
|
96
|
-
return response;
|
|
97
|
-
}).catch(reason => {
|
|
98
|
-
if (reason.text) {
|
|
99
|
-
reason.text().then(errorMessage => {
|
|
100
|
-
setAlertMessage("".concat(reason.status, " - ").concat(reason.statusText || httpStatusCodes[reason.status] || "Error"), "danger", true, showErrorDetail ? errorMessage.toString().replace(/(<style[\w\W]+style>)/g, "").replace(/<[^>]+>/g, "") : undefined);
|
|
101
|
-
if (onError) {
|
|
102
|
-
onError(errorMessage, reason);
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
throw reason;
|
|
107
|
-
});
|
|
108
|
-
}
|
|
5
|
+
var guid = () => s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
|
|
6
|
+
export { guid };
|
package/dist/merged.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Blue Web v1.
|
|
2
|
+
* Blue Web v1.37.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
|
|
|
@@ -1909,6 +1909,7 @@ $modal-sm: 300px !default;
|
|
|
1909
1909
|
$modal-md: 500px !default;
|
|
1910
1910
|
$modal-lg: 800px !default;
|
|
1911
1911
|
$modal-xl: 1140px !default;
|
|
1912
|
+
$modal-xxl: 1320px !default;
|
|
1912
1913
|
|
|
1913
1914
|
$modal-fade-transform: translate(0, -50px) !default;
|
|
1914
1915
|
$modal-show-transform: none !default;
|
|
@@ -3301,11 +3302,11 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
|
|
|
3301
3302
|
--#{$prefix}table-bg: #{$background};
|
|
3302
3303
|
--#{$prefix}table-border-color: #{$table-border-color};
|
|
3303
3304
|
--#{$prefix}table-striped-bg: #{$striped-bg};
|
|
3304
|
-
--#{$prefix}table-striped-color: #{color-contrast($striped-bg)};
|
|
3305
|
+
--#{$prefix}table-striped-color: #{color-contrast($striped-bg)}; // stylelint-disable-line scss/dollar-variable-no-missing-interpolation
|
|
3305
3306
|
--#{$prefix}table-active-bg: #{$active-bg};
|
|
3306
|
-
--#{$prefix}table-active-color: #{color-contrast($active-bg)};
|
|
3307
|
+
--#{$prefix}table-active-color: #{color-contrast($active-bg)}; // stylelint-disable-line scss/dollar-variable-no-missing-interpolation
|
|
3307
3308
|
--#{$prefix}table-hover-bg: #{$hover-bg};
|
|
3308
|
-
--#{$prefix}table-hover-color: #{color-contrast($hover-bg)};
|
|
3309
|
+
--#{$prefix}table-hover-color: #{color-contrast($hover-bg)}; // stylelint-disable-line scss/dollar-variable-no-missing-interpolation
|
|
3309
3310
|
|
|
3310
3311
|
color: var(--#{$prefix}table-color);
|
|
3311
3312
|
border-color: var(--#{$prefix}table-border-color);
|
|
@@ -4234,8 +4235,8 @@ $corner-shape: #{round} !default;
|
|
|
4234
4235
|
|
|
4235
4236
|
@mixin bsBanner($file) {
|
|
4236
4237
|
/*!
|
|
4237
|
-
* Bootstrap #{$file} v5.3.
|
|
4238
|
-
* Copyright 2011-
|
|
4238
|
+
* Bootstrap #{$file} v5.3.9 (https://getbootstrap.com/)
|
|
4239
|
+
* Copyright 2011-2026 The Bootstrap Authors
|
|
4239
4240
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
4240
4241
|
*/
|
|
4241
4242
|
}
|
|
@@ -5935,7 +5936,7 @@ legend {
|
|
|
5935
5936
|
|
|
5936
5937
|
::-webkit-datetime-edit-fields-wrapper,
|
|
5937
5938
|
::-webkit-datetime-edit-text,
|
|
5938
|
-
::-webkit-datetime-edit-minute,
|
|
5939
|
+
::-webkit-datetime-edit-minute-field,
|
|
5939
5940
|
::-webkit-datetime-edit-hour-field,
|
|
5940
5941
|
::-webkit-datetime-edit-day-field,
|
|
5941
5942
|
::-webkit-datetime-edit-month-field,
|
|
@@ -9707,17 +9708,25 @@ textarea {
|
|
|
9707
9708
|
|
|
9708
9709
|
@include media-breakpoint-up(lg) {
|
|
9709
9710
|
.modal-lg,
|
|
9710
|
-
.modal-xl
|
|
9711
|
+
.modal-xl,
|
|
9712
|
+
.modal-xxl {
|
|
9711
9713
|
--#{$prefix}modal-width: #{$modal-lg};
|
|
9712
9714
|
}
|
|
9713
9715
|
}
|
|
9714
9716
|
|
|
9715
9717
|
@include media-breakpoint-up(xl) {
|
|
9716
|
-
.modal-xl
|
|
9718
|
+
.modal-xl,
|
|
9719
|
+
.modal-xxl {
|
|
9717
9720
|
--#{$prefix}modal-width: #{$modal-xl};
|
|
9718
9721
|
}
|
|
9719
9722
|
}
|
|
9720
9723
|
|
|
9724
|
+
@include media-breakpoint-up(xxl) {
|
|
9725
|
+
.modal-xxl {
|
|
9726
|
+
--#{$prefix}modal-width: #{$modal-xxl};
|
|
9727
|
+
}
|
|
9728
|
+
}
|
|
9729
|
+
|
|
9721
9730
|
// scss-docs-start modal-fullscreen-loop
|
|
9722
9731
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
9723
9732
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
@@ -10559,6 +10568,12 @@ textarea {
|
|
|
10559
10568
|
.placeholder-glow {
|
|
10560
10569
|
.placeholder {
|
|
10561
10570
|
animation: placeholder-glow 2s ease-in-out infinite;
|
|
10571
|
+
|
|
10572
|
+
@if $enable-reduced-motion {
|
|
10573
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10574
|
+
animation: none;
|
|
10575
|
+
}
|
|
10576
|
+
}
|
|
10562
10577
|
}
|
|
10563
10578
|
}
|
|
10564
10579
|
|
|
@@ -10572,6 +10587,12 @@ textarea {
|
|
|
10572
10587
|
mask-image: linear-gradient(130deg, $black 55%, rgba(0, 0, 0, (1 - $placeholder-opacity-min)) 75%, $black 95%);
|
|
10573
10588
|
mask-size: 200% 100%;
|
|
10574
10589
|
animation: placeholder-wave 2s linear infinite;
|
|
10590
|
+
|
|
10591
|
+
@if $enable-reduced-motion {
|
|
10592
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10593
|
+
animation: none;
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10575
10596
|
}
|
|
10576
10597
|
|
|
10577
10598
|
@keyframes placeholder-wave {
|
|
@@ -12517,6 +12538,63 @@ details.accordion-item:last-of-type[open] > .accordion-header .accordion-button.
|
|
|
12517
12538
|
}
|
|
12518
12539
|
}
|
|
12519
12540
|
|
|
12541
|
+
// Base styles with focus on functionality
|
|
12542
|
+
bl-quick-look {
|
|
12543
|
+
display: contents;
|
|
12544
|
+
}
|
|
12545
|
+
|
|
12546
|
+
bl-quick-look-backdrop {
|
|
12547
|
+
position: fixed;
|
|
12548
|
+
z-index: 20;
|
|
12549
|
+
inset: 0;
|
|
12550
|
+
background: rgb(22 21 24 / 38%);
|
|
12551
|
+
backdrop-filter: blur(7px);
|
|
12552
|
+
opacity: 1;
|
|
12553
|
+
transition: opacity 180ms ease;
|
|
12554
|
+
}
|
|
12555
|
+
|
|
12556
|
+
bl-quick-look-backdrop[hidden],
|
|
12557
|
+
bl-quick-look-content[hidden] {
|
|
12558
|
+
display: none !important;
|
|
12559
|
+
}
|
|
12560
|
+
|
|
12561
|
+
bl-quick-look-backdrop:is([data-starting-style], [data-ending-style]) {
|
|
12562
|
+
opacity: 0;
|
|
12563
|
+
}
|
|
12564
|
+
|
|
12565
|
+
bl-quick-look-content {
|
|
12566
|
+
position: fixed;
|
|
12567
|
+
z-index: 21;
|
|
12568
|
+
inset: 50% auto auto 50%;
|
|
12569
|
+
display: grid;
|
|
12570
|
+
width: min(1320px, calc(100vw - 2rem));
|
|
12571
|
+
height: min(720px, calc(100dvh - 2rem));
|
|
12572
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
12573
|
+
padding: 0;
|
|
12574
|
+
overflow: hidden;
|
|
12575
|
+
transform: translate(-50%, -50%);
|
|
12576
|
+
opacity: 1;
|
|
12577
|
+
transition:
|
|
12578
|
+
opacity 180ms ease,
|
|
12579
|
+
scale 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
12580
|
+
}
|
|
12581
|
+
|
|
12582
|
+
bl-quick-look-content:is([data-starting-style], [data-ending-style]) {
|
|
12583
|
+
scale: 0.97;
|
|
12584
|
+
opacity: 0;
|
|
12585
|
+
}
|
|
12586
|
+
|
|
12587
|
+
// Themed styles
|
|
12588
|
+
|
|
12589
|
+
.blue-quick-look {
|
|
12590
|
+
bl-quick-look-content {
|
|
12591
|
+
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
12592
|
+
border-radius: var(--bs-border-radius-lg);
|
|
12593
|
+
background-color: var(--bs-body-bg);
|
|
12594
|
+
box-shadow: var(--bs-box-shadow-lg);
|
|
12595
|
+
}
|
|
12596
|
+
}
|
|
12597
|
+
|
|
12520
12598
|
|
|
12521
12599
|
/* Make DevExpress components look more like Bootstrap/Blue */
|
|
12522
12600
|
[class^="dxbl-"]:not(.dxbl-btn-tool):not(.dxbl-toolbar-item):not(:is(.dxbl-toolbar-btn-ellipsis > .dxbl-btn)) {
|