blue-web 1.22.0 → 1.24.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/actions.bundle.js +1 -1
- package/dist/js/actions.js +5 -5
- package/dist/merged.scss +43 -22
- package/dist/style.css +97 -74
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +3 -3
- package/dist/style.scss +1 -1
- package/dist/styles/_action-menu.scss +2 -2
- package/dist/styles/_actions.scss +8 -8
- package/dist/styles/_text-icons.scss +24 -3
- package/dist/styles/mixins/_action-menu.scss +8 -8
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";window.blueWeb=window.blueWeb||{},window.blueWeb.actions={init:function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const t=e.parentElement||e;function
|
|
1
|
+
(()=>{"use strict";window.blueWeb=window.blueWeb||{},window.blueWeb.actions={init:function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const t=e.parentElement||e;function l(){for(const e of s.children)e.style.display="none";for(const e of i.children)e.style.display="",e.classList.add("blue-actions-collapse-visible");let e=0;for(const l of s.children){if(l.style.display="",i.children[e].style.display="none",i.children[e].classList.remove("blue-actions-collapse-visible"),t.scrollWidth>t.clientWidth){l.style.display="none",i.children[e].style.display="",i.children[e].classList.add("blue-actions-collapse-visible");break}e++}}s||(s=e.querySelector(".blue-actions-menu")),i||(i=e.querySelector(".blue-actions-collapse-menu")),l();const n=()=>{requestAnimationFrame(l)},o=new ResizeObserver(n);o.observe(t);const c=new MutationObserver(n);return c.observe(t,{attributes:!1,childList:!0,subtree:!0}),{updateActions:l,resizeObserver:o,mutationObserver:c,destroy(){o.disconnect(),c.disconnect()}}}}})();
|
package/dist/js/actions.js
CHANGED
|
@@ -2,8 +2,8 @@ export function init(actionsElement) {
|
|
|
2
2
|
let menu = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
3
3
|
let collapseMenu = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
4
4
|
const targetElement = actionsElement.parentElement || actionsElement;
|
|
5
|
-
if (!menu) menu = actionsElement.querySelector(".
|
|
6
|
-
if (!collapseMenu) collapseMenu = actionsElement.querySelector(".
|
|
5
|
+
if (!menu) menu = actionsElement.querySelector(".blue-actions-menu");
|
|
6
|
+
if (!collapseMenu) collapseMenu = actionsElement.querySelector(".blue-actions-collapse-menu");
|
|
7
7
|
function updateActions() {
|
|
8
8
|
// reset
|
|
9
9
|
for (const item of menu.children) {
|
|
@@ -13,19 +13,19 @@ export function init(actionsElement) {
|
|
|
13
13
|
for (const item of collapseMenu.children) {
|
|
14
14
|
;
|
|
15
15
|
item.style.display = "";
|
|
16
|
-
item.classList.add("
|
|
16
|
+
item.classList.add("blue-actions-collapse-visible");
|
|
17
17
|
}
|
|
18
18
|
let i = 0;
|
|
19
19
|
for (const item of menu.children) {
|
|
20
20
|
;
|
|
21
21
|
item.style.display = "";
|
|
22
22
|
collapseMenu.children[i].style.display = "none";
|
|
23
|
-
collapseMenu.children[i].classList.remove("
|
|
23
|
+
collapseMenu.children[i].classList.remove("blue-actions-collapse-visible");
|
|
24
24
|
if (targetElement.scrollWidth > targetElement.clientWidth) {
|
|
25
25
|
;
|
|
26
26
|
item.style.display = "none";
|
|
27
27
|
collapseMenu.children[i].style.display = "";
|
|
28
|
-
collapseMenu.children[i].classList.add("
|
|
28
|
+
collapseMenu.children[i].classList.add("blue-actions-collapse-visible");
|
|
29
29
|
break;
|
|
30
30
|
}
|
|
31
31
|
i++;
|
package/dist/merged.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Blue Web v1.
|
|
2
|
+
* Blue Web v1.24.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
|
|
|
@@ -3930,7 +3930,7 @@ $corner-shape: #{round} !default;
|
|
|
3930
3930
|
max-height: initial;
|
|
3931
3931
|
overflow: initial;
|
|
3932
3932
|
|
|
3933
|
-
.blue-actions-menu {
|
|
3933
|
+
.blue-legacy-actions-menu {
|
|
3934
3934
|
max-width: initial;
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
@@ -3955,11 +3955,11 @@ $corner-shape: #{round} !default;
|
|
|
3955
3955
|
|
|
3956
3956
|
@include show-action-menu-again();
|
|
3957
3957
|
|
|
3958
|
-
.blue-actions-menu-item:not(.blue-actions-menu-toggle) {
|
|
3958
|
+
.blue-legacy-actions-menu-item:not(.blue-legacy-actions-menu-toggle) {
|
|
3959
3959
|
display: flex;
|
|
3960
3960
|
}
|
|
3961
3961
|
|
|
3962
|
-
.blue-actions-menu {
|
|
3962
|
+
.blue-legacy-actions-menu {
|
|
3963
3963
|
flex-direction: column;
|
|
3964
3964
|
.blue-menu-item-dropdown {
|
|
3965
3965
|
--blue-sidebar-bg: #{darken($theme, 34%)};
|
|
@@ -3967,7 +3967,7 @@ $corner-shape: #{round} !default;
|
|
|
3967
3967
|
}
|
|
3968
3968
|
}
|
|
3969
3969
|
|
|
3970
|
-
.blue-actions-menu-item:not(.blue-actions-menu-toggle) {
|
|
3970
|
+
.blue-legacy-actions-menu-item:not(.blue-legacy-actions-menu-toggle) {
|
|
3971
3971
|
display: none;
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
@@ -3975,16 +3975,16 @@ $corner-shape: #{round} !default;
|
|
|
3975
3975
|
@media (min-width: $breakpoint) {
|
|
3976
3976
|
@include show-action-menu-again();
|
|
3977
3977
|
|
|
3978
|
-
.blue-actions-menu .blue-actions-label {
|
|
3978
|
+
.blue-legacy-actions-menu .blue-legacy-actions-label {
|
|
3979
3979
|
display: inline;
|
|
3980
3980
|
}
|
|
3981
3981
|
|
|
3982
|
-
.blue-actions-menu-toggle {
|
|
3982
|
+
.blue-legacy-actions-menu-toggle {
|
|
3983
3983
|
display: none;
|
|
3984
3984
|
}
|
|
3985
3985
|
|
|
3986
|
-
.blue-actions-menu > .blue-menu-item-wrapper > .blue-menu-item-dropdown,
|
|
3987
|
-
.blue-actions-menu > .blue-menu-item-wrapper > * > .blue-menu-item-dropdown {
|
|
3986
|
+
.blue-legacy-actions-menu > .blue-menu-item-wrapper > .blue-menu-item-dropdown,
|
|
3987
|
+
.blue-legacy-actions-menu > .blue-menu-item-wrapper > * > .blue-menu-item-dropdown {
|
|
3988
3988
|
position: absolute;
|
|
3989
3989
|
right: 0;
|
|
3990
3990
|
}
|
|
@@ -10813,9 +10813,30 @@ $utilities: map-merge(
|
|
|
10813
10813
|
// Unfortunately his class was removed in Bootstrap 5, so it's now part of Blue Web CSS.
|
|
10814
10814
|
.blue-page-header,
|
|
10815
10815
|
.page-header {
|
|
10816
|
-
padding-bottom: 0.
|
|
10817
|
-
margin:
|
|
10818
|
-
border-bottom:
|
|
10816
|
+
padding-bottom: 0.5rem;
|
|
10817
|
+
margin: 2rem 0 1rem;
|
|
10818
|
+
border-bottom: 3px solid var(--bs-border-color, $table-border-color);
|
|
10819
|
+
|
|
10820
|
+
&:is(h1, .h1) {
|
|
10821
|
+
border-width: 4px;
|
|
10822
|
+
}
|
|
10823
|
+
&:is(h2, .h2) {
|
|
10824
|
+
border-width: 3px;
|
|
10825
|
+
}
|
|
10826
|
+
&:is(h3, .h3) {
|
|
10827
|
+
border-width: 2px;
|
|
10828
|
+
}
|
|
10829
|
+
&:is(h4, .h4, h5, .h5, h6, .h6) {
|
|
10830
|
+
border-width: 1px;
|
|
10831
|
+
}
|
|
10832
|
+
}
|
|
10833
|
+
|
|
10834
|
+
// Styling for a form control label.
|
|
10835
|
+
.blue-label {
|
|
10836
|
+
color: var(--bs-primary-text-emphasis);
|
|
10837
|
+
font-weight: 500;
|
|
10838
|
+
font-size: 1rem;
|
|
10839
|
+
margin-bottom: 0;
|
|
10819
10840
|
}
|
|
10820
10841
|
|
|
10821
10842
|
// Vertically alignment, especially for Bootstrap Icons.
|
|
@@ -11173,7 +11194,7 @@ body {
|
|
|
11173
11194
|
}
|
|
11174
11195
|
}
|
|
11175
11196
|
|
|
11176
|
-
.blue-actions {
|
|
11197
|
+
.blue-legacy-actions {
|
|
11177
11198
|
--max-width: calc(
|
|
11178
11199
|
var(--bs-btn-border-width, 1px) + var(--bs-btn-padding-x, 0.75rem) + var(--bs-btn-font-size, 1rem) +
|
|
11179
11200
|
var(--bs-btn-padding-x, 0.75rem) + var(--bs-btn-border-width, 1px)
|
|
@@ -11182,7 +11203,7 @@ body {
|
|
|
11182
11203
|
max-height: var(--blue-header-height);
|
|
11183
11204
|
overflow: hidden;
|
|
11184
11205
|
|
|
11185
|
-
.blue-actions-menu {
|
|
11206
|
+
.blue-legacy-actions-menu {
|
|
11186
11207
|
max-width: var(--max-width);
|
|
11187
11208
|
& > .blue-menu-item-wrapper {
|
|
11188
11209
|
display: block;
|
|
@@ -12080,41 +12101,41 @@ dialog.blue-modal:has(.offcanvas-start) {
|
|
|
12080
12101
|
}
|
|
12081
12102
|
}
|
|
12082
12103
|
|
|
12083
|
-
.
|
|
12104
|
+
.blue-actions {
|
|
12084
12105
|
display: flex;
|
|
12085
12106
|
white-space: nowrap;
|
|
12086
12107
|
// overflow-x: auto;
|
|
12087
12108
|
// overflow-y: visible;
|
|
12088
12109
|
}
|
|
12089
12110
|
|
|
12090
|
-
.
|
|
12111
|
+
.blue-actions-menu {
|
|
12091
12112
|
display: flex;
|
|
12092
12113
|
max-width: 100%;
|
|
12093
12114
|
}
|
|
12094
12115
|
|
|
12095
|
-
.
|
|
12116
|
+
.blue-actions-collapse {
|
|
12096
12117
|
position: relative;
|
|
12097
12118
|
}
|
|
12098
12119
|
|
|
12099
|
-
.
|
|
12120
|
+
.blue-actions-collapse:not(:has(.blue-actions-collapse-visible)) {
|
|
12100
12121
|
display: none;
|
|
12101
12122
|
}
|
|
12102
12123
|
|
|
12103
|
-
.
|
|
12124
|
+
.blue-actions-collapse-menu {
|
|
12104
12125
|
position: absolute;
|
|
12105
12126
|
}
|
|
12106
12127
|
|
|
12107
|
-
.
|
|
12128
|
+
.blue-actions-collapse-menu:popover-open {
|
|
12108
12129
|
display: var(--display);
|
|
12109
12130
|
}
|
|
12110
12131
|
|
|
12111
12132
|
// Compatibility with MenuItems having dropdowns
|
|
12112
|
-
.
|
|
12133
|
+
.blue-actions-menu > .blue-menu-item-wrapper:has(> .blue-menu-item-dropdown) {
|
|
12113
12134
|
display: block;
|
|
12114
12135
|
position: relative;
|
|
12115
12136
|
}
|
|
12116
12137
|
|
|
12117
|
-
.
|
|
12138
|
+
.blue-actions-menu > .blue-menu-item-wrapper > .blue-menu-item-dropdown {
|
|
12118
12139
|
position: absolute;
|
|
12119
12140
|
}
|
|
12120
12141
|
|