blue-web 1.31.0 → 1.32.1
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 +15 -10
- package/dist/js/input-splitted.bundle.js +1 -1
- package/dist/js/input-splitted.js +4 -10
- package/dist/js/layout.bundle.js +1 -1
- package/dist/js/layout.js +28 -32
- package/dist/js/odometer.bundle.js +1 -1
- package/dist/js/overflow-detector.bundle.js +1 -1
- package/dist/js/overflow-detector.js +2 -4
- package/dist/js/read-view.bundle.js +1 -1
- package/dist/js/select-list.bundle.js +1 -1
- package/dist/js/utils.bundle.js +0 -1
- package/dist/merged.scss +81 -29
- package/dist/style.css +70 -21
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +3 -3
- package/dist/style.scss +2 -1
- package/dist/styles/_accordion.scss +26 -0
- package/dist/styles/_bootstrap-variables.scss +3 -0
- package/dist/styles/_layout.scss +25 -28
- package/dist/styles/_mixins.scss +1 -0
- package/dist/styles/mixins/_layout.scss +24 -0
- package/package.json +1 -1
package/dist/js/dialog.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var n={
|
|
1
|
+
(()=>{"use strict";var n={73(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}},835(n,e,t){function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}t.d(e,["Os",0,()=>o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o()])}};const e={};function t(o){const a=e[o];if(void 0!==a)return a.exports;const l=e[o]={exports:{}};return n[o](l,l.exports,t),l.exports}t.d=(n,e)=>{if(Array.isArray(e))for(var o=0;o<e.length;){var a=e[o++],l=e[o++];t.o(n,a)?0===l&&o++:0===l?Object.defineProperty(n,a,{enumerable:!0,value:e[o++]}):Object.defineProperty(n,a,{enumerable:!0,get:l})}else for(var a in e)t.o(e,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:e[a]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var o=t(835),a=t(73);async function l(n,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l="string"==typeof t?JSON.parse(t):t,c=l.title,i=void 0===c?(0,a.k)("verify"===n?"Confirm":"ask"===n?"Question":"Message"):c,r=l.icon,d=void 0===r?void 0:r,s=l.switchPrimaryBtn,u=void 0!==s&&s,m=l.acceptBtnText,v=void 0===m?"OK":m,b=l.cancelBtnText,f=void 0===b?(0,a.k)("Cancel"):b,g=l.inputType,y=void 0===g?"text":g,p=l.defaultValue;const h=l.id||(0,o.Os)();return document.getElementById(h)||document.body.insertAdjacentHTML("beforeend",'<dialog class="blue-modal modal" id="'.concat(h,'" aria-labelledby="').concat(h,'-label">\n <div class="modal-dialog">\n <div class="modal-content">\n <form>\n <div class="modal-header">\n ').concat(d?'<div class="me-2">'.concat(d,"</div>"):"",'\n <h1 class="modal-title fs-5" id="').concat(h,'-label">').concat(i,'</h1>\n </div>\n <div class="modal-body">\n ').concat("ask"===n?'<label for="'.concat(h,'-input" class="blue-label">').concat(e,'</label>\n <input\n type="').concat(y,'"\n ').concat(void 0!==p?' value="'.concat(p,'"'):"",'\n id="').concat(h,'-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(u?"btn-primary":"blue-btn-plain-primary",'"\n onclick="document.getElementById(\'').concat(h,"').close()\"\n >\n ").concat(f,"\n </button>"):"",'\n <button\n type="submit"\n class="btn ').concat(u?"blue-btn-plain-primary":"btn-primary",'"\n >\n ').concat(v,'\n </button>\n </div>\n </form>\n </div>\n </div>\n\n <form method="dialog" class="blue-modal-backdrop">\n <button>').concat(f,"</button>\n </form>\n </dialog>")),new Promise(e=>{var t;const o=document.getElementById(h),a=()=>{const n=document.getElementById(h);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
|
@@ -14,16 +14,21 @@ export async function verify(text) {
|
|
|
14
14
|
}
|
|
15
15
|
async function dialog(dialogType, text) {
|
|
16
16
|
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
17
|
-
let
|
|
18
|
-
title =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
let _ref = typeof options === "string" ? JSON.parse(options) : options,
|
|
18
|
+
_ref$title = _ref.title,
|
|
19
|
+
title = _ref$title === void 0 ? getPhrase(dialogType === "verify" ? "Confirm" : dialogType === "ask" ? "Question" : "Message") : _ref$title,
|
|
20
|
+
_ref$icon = _ref.icon,
|
|
21
|
+
icon = _ref$icon === void 0 ? undefined : _ref$icon,
|
|
22
|
+
_ref$switchPrimaryBtn = _ref.switchPrimaryBtn,
|
|
23
|
+
switchPrimaryBtn = _ref$switchPrimaryBtn === void 0 ? false : _ref$switchPrimaryBtn,
|
|
24
|
+
_ref$acceptBtnText = _ref.acceptBtnText,
|
|
25
|
+
acceptBtnText = _ref$acceptBtnText === void 0 ? "OK" : _ref$acceptBtnText,
|
|
26
|
+
_ref$cancelBtnText = _ref.cancelBtnText,
|
|
27
|
+
cancelBtnText = _ref$cancelBtnText === void 0 ? getPhrase("Cancel") : _ref$cancelBtnText,
|
|
28
|
+
_ref$inputType = _ref.inputType,
|
|
29
|
+
inputType = _ref$inputType === void 0 ? "text" : _ref$inputType,
|
|
30
|
+
defaultValue = _ref.defaultValue,
|
|
31
|
+
id = _ref.id;
|
|
27
32
|
const _id = id || guid();
|
|
28
33
|
const addToDom = () => {
|
|
29
34
|
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>"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";
|
|
1
|
+
(()=>{"use strict";function t(t,i,s){e(t,i),i.set(t,s)}function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(t,e,i){return t.set(n(t,e),i),i}function s(t,e){return t.get(n(t,e))}function n(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,l=new WeakMap,o=new WeakMap,r=new WeakMap,a=new WeakMap,u=new WeakMap,d=new WeakMap,c=new WeakMap,b=new WeakMap,p=new WeakMap,g=new WeakSet;class v extends HTMLElement{get lightDom(){return s(r,this)}set lightDom(t){i(r,this,t),!0===this.lightDom?this.innerHTML=s(p,this):(this.shadowRoot||this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot.innerHTML=s(p,this)),n(g,this,m).call(this)}get value(){return s(a,this)}set value(t){const e=s(a,this);i(a,this,t),i(l,this,this.value.split(""));for(let t=0;t<this.length;t++)s(o,this)[t]&&(s(o,this)[t].value=s(l,this)[t]||"");e!==t&&this.dispatchEvent(new CustomEvent("changeValue",{bubbles:!0,detail:t}))}get length(){return s(u,this)}set length(t){if(i(u,this,t),this.length>s(o,this).length)for(let t=0;t<this.length;t++)!s(o,this)[t]&&this.didInit&&n(g,this,f).call(this,s(o,this).length);else if(this.length<s(o,this).length){const t=Math.abs(s(o,this).length-this.length);for(let e=0;e<t;e++){const t=s(o,this).pop();null==t||t.remove()}}i(o,this,[...s(o,this)])}get disabled(){return s(d,this)}set disabled(t){i(d,this,t);const e=this.lightDom?this.querySelectorAll("input"):this.shadowRoot.querySelectorAll("input");for(const i of e)i.disabled=t}get controlClass(){return s(c,this)}set controlClass(t){i(c,this,t);for(const t of s(o,this))t.className=this.controlClass}get control1Id(){return s(b,this)}set control1Id(t){i(b,this,t),s(o,this)[0]&&(s(o,this)[0].id=this.control1Id)}constructor(){var i;super(),e(this,i=g),i.add(this),t(this,h,void 0),t(this,l,[]),t(this,o,[]),t(this,r,!1),t(this,a,""),t(this,u,0),t(this,d,!1),t(this,c,""),t(this,b,""),t(this,p,"<style>\n input {\n display: var(--blue-input-splitted-display, revert);\n background-color: var(--blue-input-splitted-background-color, revert);\n border: var(--blue-input-splitted-border, revert);\n border-radius: var(--blue-input-splitted-border-radius, revert);\n box-shadow: var(--blue-input-splitted-box-shadow, revert);\n color: var(--blue-input-splitted-color, revert);\n margin: var(--blue-input-splitted-margin, revert);\n padding: var(--blue-input-splitted-padding, revert);\n text-align: var(--blue-input-splitted-text-align, revert);\n width: var(--blue-input-splitted-width, revert);\n }\n</style>"),function(t,e,i){(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(this,"didInit",!1),this.onFocus=this.onFocus.bind(this)}connectedCallback(){this.didInit=!0,this.lightDom=null!==this.getAttribute("light-dom"),this.disabled=null!==this.getAttribute("disabled"),n(g,this,m).call(this),this.value=this.getAttribute("value")||this.value,this.length=y(this),this.controlClass=this.getAttribute("control-class")||this.controlClass,this.control1Id=this.getAttribute("control-1-id")||this.control1Id,n(g,this,w).call(this)}onFocus(){s(o,this)[0]&&s(o,this)[0].focus()}disconnectedCallback(){n(g,this,k).call(this)}static get formAssociated(){return!0}}function f(t){const e=document.createElement("input");s(o,this).push(e),e.type="text",e.className=this.controlClass,0===t&&(e.id=this.control1Id),e.maxLength=1,e.value=s(l,this)[t]||"",e.disabled=this.disabled,e.addEventListener("input",e=>{const i=e.target;""!==i.value&&s(o,this)[t+1]&&s(o,this)[t+1].focus(),s(l,this)[t]=i.value,this.value=s(l,this).join("")}),e.addEventListener("keydown",e=>{let i=e.key,n=e.target;"Backspace"===i&&""===n.value&&void 0!==s(o,this)[t-1]&&s(o,this)[t-1].focus()}),e.addEventListener("paste",e=>{const i=e.clipboardData.getData("Text");let n=0;for(let e=t;e<this.length;e++)s(l,this)[e]=i.split("")[n],s(o,this)[e].focus(),n+=1;this.value=s(l,this).join("")}),this.lightDom?this.appendChild(e):this.shadowRoot.appendChild(e)}function m(){this.value=this.getAttribute("value")||"",this.length=y(this),this.lightDom?(this.innerHTML=s(p,this),this.addEventListener("focus",this.onFocus)):(this.shadowRoot.innerHTML=s(p,this),this.shadowRoot.addEventListener("focus",this.onFocus)),i(l,this,this.value.split("")),i(o,this,[]);for(let t=0;t<this.length;t++)n(g,this,f).call(this,t)}function w(){i(h,this,s(h,this)||new MutationObserver(t=>{t.forEach(t=>{"value"===t.attributeName&&(this.value=this.getAttribute("value")||this.value),"length"===t.attributeName&&(this.length=y(this)),"control-class"===t.attributeName&&(this.controlClass=this.getAttribute("control-class")||this.controlClass),"control-1-id"===t.attributeName&&(this.control1Id=this.getAttribute("control-1-id")||this.control1Id),"light-dom"===t.attributeName&&(this.lightDom=null!==this.getAttribute("light-dom")),"disabled"===t.attributeName&&(this.disabled=null!==this.getAttribute("disabled"))})})),s(h,this).observe(this,{attributeFilter:["value","length","control-class","control-1-id","light-dom","disabled"],attributeOldValue:!0,childList:!0,subtree:!0})}function k(){s(h,this)&&(s(h,this).takeRecords(),s(h,this).disconnect())}function y(t){const e=t.getAttribute("length");if(e)return parseInt(e)}customElements.define("bl-input-splitted",v)})();
|
|
@@ -153,9 +153,7 @@ function _addInput(i) {
|
|
|
153
153
|
input.value = _classPrivateFieldGet(_valueArray, this)[i] || "";
|
|
154
154
|
input.disabled = this.disabled;
|
|
155
155
|
input.addEventListener("input", _ref => {
|
|
156
|
-
let
|
|
157
|
-
target
|
|
158
|
-
} = _ref;
|
|
156
|
+
let target = _ref.target;
|
|
159
157
|
const inputTarget = target;
|
|
160
158
|
if (inputTarget.value !== "" && _classPrivateFieldGet(_refArray, this)[i + 1]) {
|
|
161
159
|
_classPrivateFieldGet(_refArray, this)[i + 1].focus();
|
|
@@ -164,19 +162,15 @@ function _addInput(i) {
|
|
|
164
162
|
this.value = _classPrivateFieldGet(_valueArray, this).join("");
|
|
165
163
|
});
|
|
166
164
|
input.addEventListener("keydown", _ref2 => {
|
|
167
|
-
let
|
|
168
|
-
|
|
169
|
-
target
|
|
170
|
-
} = _ref2;
|
|
165
|
+
let key = _ref2.key,
|
|
166
|
+
target = _ref2.target;
|
|
171
167
|
const inputTarget = target;
|
|
172
168
|
if (key === "Backspace" && inputTarget.value === "" && _classPrivateFieldGet(_refArray, this)[i - 1] !== undefined) {
|
|
173
169
|
_classPrivateFieldGet(_refArray, this)[i - 1].focus();
|
|
174
170
|
}
|
|
175
171
|
});
|
|
176
172
|
input.addEventListener("paste", _ref3 => {
|
|
177
|
-
let
|
|
178
|
-
clipboardData
|
|
179
|
-
} = _ref3;
|
|
173
|
+
let clipboardData = _ref3.clipboardData;
|
|
180
174
|
const pastedData = clipboardData.getData("Text");
|
|
181
175
|
let k = 0;
|
|
182
176
|
for (let j = i; j < this.length; j++) {
|
package/dist/js/layout.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={362(e,t,o){o.d(t,{A:()=>s,T:()=>l});const n=new Map;function l(e){if(!e)return;if(n.has(e)&&s(e),!e.querySelector(".offcanvas"))return;const t=new AbortController;n.set(e,t),window.addEventListener("popstate",()=>null==e?void 0:e.close(),{signal:t.signal}),window.addEventListener("resize",()=>{const t=e.querySelector(".offcanvas");t&&"fixed"!==getComputedStyle(t).position&&(null==e||e.close())},{signal:t.signal});const o=history.pushState;history.pushState=function(){for(var t=arguments.length,n=new Array(t),l=0;l<t;l++)n[l]=arguments[l];o.apply(history,n),null==e||e.close()};const l=history.replaceState;history.replaceState=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];l.apply(history,o),null==e||e.close()}}function s(e){const t=n.get(e);t&&(t.abort(),n.delete(e))}"undefined"!=typeof window&&(window.blueWeb=window.blueWeb||{},window.blueWeb.modalResponsive={init:l,dispose:s})}};const t={};function o(n){const l=t[n];if(void 0!==l)return l.exports;const s=t[n]={exports:{}};return e[n](s,s.exports,o),s.exports}o.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var l=t[n++],s=t[n++];o.o(e,l)?0===s&&n++:0===s?Object.defineProperty(e,l,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,l,{enumerable:!0,get:s})}else for(var l in t)o.o(t,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n=o(362);const l=new Map;function s(e){const t=l.get(e);if(!t)return;const o=t.controller,s=t.modalEl;o.abort(),s&&(0,n.A)(s),l.delete(e)}function r(e,t){t<0?e.splitterPos=0:e.maxPos&&t>e.maxPos?e.splitterPos=e.maxPos:e.splitterPos=t}function i(e,t){const o=localStorage.getItem("blueLayoutInspectorSize"),n=o?Number.parseInt(o,10):NaN;r(t,t.viewSize-(Number.isFinite(n)?n:244)),t.resizable=!0,t.dataset.blueInspectorSize=(t.viewSize-t.splitterPos).toString(),e.dataset.blueSplitterEnabled=""}function a(e,t){r(t,t.maxPos||t.viewSize),t.resizable=!1,delete e.dataset.blueSplitterEnabled}function c(e,t){t.resizable&&t.dataset.blueInspectorSize&&(r(t,t.viewSize-parseInt(t.dataset.blueInspectorSize)),u(e))}function u(e){const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const o=l.get(t);if(null==o||!o.splitterEl||!o.inspectorEl)return;const n=o.splitterEl,s=o.inspectorEl,r="fixed"===getComputedStyle(s).position?s.open:n.resizable,i=t.dataset.blueInspectorOpen;r?t.dataset.blueInspectorOpen="":delete t.dataset.blueInspectorOpen,i!==t.dataset.blueInspectorOpen&&t.dispatchEvent(new Event("blue-inspector-change"))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"show-modal";const o="string"==typeof e?document.querySelector(e):e;if(!o)return;const n=l.get(o);if(null==n||!n.splitterEl||!n.inspectorEl)return;const s=n.splitterEl,r=n.inspectorEl;"fixed"===getComputedStyle(r).position?"show"===t?r.show():r.showModal():(i(o,s),localStorage.setItem("blueLayoutInspectorEnabled","")),u(o)}function p(e){const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const o=l.get(t);if(null==o||!o.splitterEl||!o.inspectorEl)return;const n=o.splitterEl,s=o.inspectorEl;"fixed"===getComputedStyle(s).position?s.close():(a(t,n),localStorage.removeItem("blueLayoutInspectorEnabled")),u(t)}"undefined"!=typeof window&&(window.blueWeb=window.blueWeb||{},window.blueWeb.layout={init:function(e){if(!e)return;l.has(e)&&s(e);const t=e.querySelector('[data-blue-toggle="layout-side"]'),o=e.querySelector(".blue-layout-side"),r=e.querySelector(".blue-layout-side > dialog"),d=e.querySelector(".blue-layout-main > sp-split-view.blue-layout-splitter"),p=e.querySelector(".blue-layout-inspector");if(!t||!o||!r)return;const g=new AbortController,b={toggleLayoutSideEl:t,layoutSideEl:o,modalEl:r,splitterEl:d,inspectorEl:p,controller:g};return l.set(e,b),null!=localStorage.getItem("blueLayoutSideShrink")&&(o.classList.add("d-lg-none","w-lg-0"),t.setAttribute("aria-expanded","false")),t.addEventListener("click",()=>function(e){const t=l.get(e);if(!t)return;const o=t.layoutSideEl,n=t.toggleLayoutSideEl,s=t.splitterEl;if(!o||!n)return;o.classList.toggle("d-lg-none"),o.classList.toggle("w-lg-0");const r=!o.classList.contains("d-lg-none");n.setAttribute("aria-expanded",r.toString()),r?localStorage.removeItem("blueLayoutSideShrink"):localStorage.setItem("blueLayoutSideShrink",""),s&&setTimeout(()=>{c(e,s)},10)}(e),{signal:g.signal}),d&&p&&((0,n.T)(p),function(e,t){const o=t.splitterEl,n=t.inspectorEl,l=t.controller;o&&n&&l&&(null!=localStorage.getItem("blueLayoutInspectorEnabled")&&"fixed"!==getComputedStyle(n).position?i(e,o):a(e,o),u(e),window.addEventListener("resize",()=>{o&&(n&&"none"===getComputedStyle(n).display||!o.resizable?(a(e,o),u(e)):c(e,o))},{signal:l.signal}),o.addEventListener("change",e=>{const t=e.target;let o=t.viewSize-t.splitterPos;o&&(o=Math.round(o),t.dataset.blueInspectorSize=o.toString(),localStorage.setItem("blueLayoutInspectorSize",o.toString()))},{signal:l.signal}),n.addEventListener("close",()=>{u(e)},{signal:l.signal}))}(e,b)),(0,n.T)(r),o.classList.add("with-transition"),b},dispose:s,instances:l,toggleInspector:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"show-modal";const o="string"==typeof e?document.querySelector(e):e;if(!o)return;const n=l.get(o);if(null==n||!n.splitterEl||!n.inspectorEl)return;const s=n.splitterEl,r=n.inspectorEl;("fixed"===getComputedStyle(r).position?r.open:s.resizable)?p(e):d(e,t)},openInspector:d,closeInspector:p})})();
|
package/dist/js/layout.js
CHANGED
|
@@ -41,10 +41,8 @@ export function init(layoutEl) {
|
|
|
41
41
|
export function dispose(layoutEl) {
|
|
42
42
|
const instance = instances.get(layoutEl);
|
|
43
43
|
if (!instance) return;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
modalEl
|
|
47
|
-
} = instance;
|
|
44
|
+
const controller = instance.controller,
|
|
45
|
+
modalEl = instance.modalEl;
|
|
48
46
|
controller.abort();
|
|
49
47
|
if (modalEl) mrDispose(modalEl);
|
|
50
48
|
instances.delete(layoutEl);
|
|
@@ -52,10 +50,9 @@ export function dispose(layoutEl) {
|
|
|
52
50
|
function toggleSidebar(layoutEl) {
|
|
53
51
|
const instance = instances.get(layoutEl);
|
|
54
52
|
if (!instance) return;
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} = instance;
|
|
53
|
+
const layoutSideEl = instance.layoutSideEl,
|
|
54
|
+
toggleLayoutSideEl = instance.toggleLayoutSideEl,
|
|
55
|
+
splitterEl = instance.splitterEl;
|
|
59
56
|
if (!layoutSideEl || !toggleLayoutSideEl) return;
|
|
60
57
|
layoutSideEl.classList.toggle("d-lg-none");
|
|
61
58
|
layoutSideEl.classList.toggle("w-lg-0");
|
|
@@ -66,6 +63,10 @@ function toggleSidebar(layoutEl) {
|
|
|
66
63
|
} else {
|
|
67
64
|
localStorage.setItem("blueLayoutSideShrink", "");
|
|
68
65
|
}
|
|
66
|
+
if (!splitterEl) return;
|
|
67
|
+
setTimeout(() => {
|
|
68
|
+
adjustSplitter(layoutEl, splitterEl);
|
|
69
|
+
}, 10);
|
|
69
70
|
}
|
|
70
71
|
function setSplitterPosition(splitterEl, value) {
|
|
71
72
|
if (value < 0) splitterEl.splitterPos = 0;else if (splitterEl.maxPos && value > splitterEl.maxPos) splitterEl.splitterPos = splitterEl.maxPos;else splitterEl.splitterPos = value;
|
|
@@ -83,12 +84,16 @@ function disableSplitter(layoutEl, splitterEl) {
|
|
|
83
84
|
splitterEl.resizable = false;
|
|
84
85
|
delete layoutEl.dataset.blueSplitterEnabled;
|
|
85
86
|
}
|
|
87
|
+
function adjustSplitter(layoutEl, splitterEl) {
|
|
88
|
+
if (splitterEl.resizable && splitterEl.dataset.blueInspectorSize) {
|
|
89
|
+
setSplitterPosition(splitterEl, splitterEl.viewSize - parseInt(splitterEl.dataset.blueInspectorSize));
|
|
90
|
+
updateInspectorState(layoutEl);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
86
93
|
function initInspector(layoutEl, instance) {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
controller
|
|
91
|
-
} = instance;
|
|
94
|
+
const splitterEl = instance.splitterEl,
|
|
95
|
+
inspectorEl = instance.inspectorEl,
|
|
96
|
+
controller = instance.controller;
|
|
92
97
|
if (!splitterEl || !inspectorEl || !controller) return;
|
|
93
98
|
const enabled = localStorage.getItem("blueLayoutInspectorEnabled") != null;
|
|
94
99
|
if (enabled && getComputedStyle(inspectorEl).position !== "fixed") {
|
|
@@ -102,9 +107,8 @@ function initInspector(layoutEl, instance) {
|
|
|
102
107
|
if (inspectorEl && getComputedStyle(inspectorEl).display === "none" || !splitterEl.resizable) {
|
|
103
108
|
disableSplitter(layoutEl, splitterEl);
|
|
104
109
|
updateInspectorState(layoutEl);
|
|
105
|
-
} else
|
|
106
|
-
|
|
107
|
-
updateInspectorState(layoutEl);
|
|
110
|
+
} else {
|
|
111
|
+
adjustSplitter(layoutEl, splitterEl);
|
|
108
112
|
}
|
|
109
113
|
}
|
|
110
114
|
}, {
|
|
@@ -132,10 +136,8 @@ function updateInspectorState(layoutTarget) {
|
|
|
132
136
|
if (!layoutEl) return;
|
|
133
137
|
const instance = instances.get(layoutEl);
|
|
134
138
|
if (!(instance !== null && instance !== void 0 && instance.splitterEl) || !instance.inspectorEl) return;
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
inspectorEl
|
|
138
|
-
} = instance;
|
|
139
|
+
const splitterEl = instance.splitterEl,
|
|
140
|
+
inspectorEl = instance.inspectorEl;
|
|
139
141
|
const isOpen = getComputedStyle(inspectorEl).position === "fixed" ? inspectorEl.open : splitterEl.resizable;
|
|
140
142
|
const previousState = layoutEl.dataset.blueInspectorOpen;
|
|
141
143
|
if (isOpen) layoutEl.dataset.blueInspectorOpen = "";else delete layoutEl.dataset.blueInspectorOpen;
|
|
@@ -149,10 +151,8 @@ export function openInspector(layoutTarget) {
|
|
|
149
151
|
if (!layoutEl) return;
|
|
150
152
|
const instance = instances.get(layoutEl);
|
|
151
153
|
if (!(instance !== null && instance !== void 0 && instance.splitterEl) || !instance.inspectorEl) return;
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
inspectorEl
|
|
155
|
-
} = instance;
|
|
154
|
+
const splitterEl = instance.splitterEl,
|
|
155
|
+
inspectorEl = instance.inspectorEl;
|
|
156
156
|
if (getComputedStyle(inspectorEl).position === "fixed") {
|
|
157
157
|
// Is active as dialog
|
|
158
158
|
if (showCommand === "show") {
|
|
@@ -172,10 +172,8 @@ export function closeInspector(layoutTarget) {
|
|
|
172
172
|
if (!layoutEl) return;
|
|
173
173
|
const instance = instances.get(layoutEl);
|
|
174
174
|
if (!(instance !== null && instance !== void 0 && instance.splitterEl) || !instance.inspectorEl) return;
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
inspectorEl
|
|
178
|
-
} = instance;
|
|
175
|
+
const splitterEl = instance.splitterEl,
|
|
176
|
+
inspectorEl = instance.inspectorEl;
|
|
179
177
|
if (getComputedStyle(inspectorEl).position === "fixed") {
|
|
180
178
|
// Is active as dialog
|
|
181
179
|
inspectorEl.close();
|
|
@@ -192,10 +190,8 @@ export function toggleInspector(layoutTarget) {
|
|
|
192
190
|
if (!layoutEl) return;
|
|
193
191
|
const instance = instances.get(layoutEl);
|
|
194
192
|
if (!(instance !== null && instance !== void 0 && instance.splitterEl) || !instance.inspectorEl) return;
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
inspectorEl
|
|
198
|
-
} = instance;
|
|
193
|
+
const splitterEl = instance.splitterEl,
|
|
194
|
+
inspectorEl = instance.inspectorEl;
|
|
199
195
|
const isOpen = getComputedStyle(inspectorEl).position === "fixed" ? inspectorEl.open : splitterEl.resizable;
|
|
200
196
|
if (isOpen) {
|
|
201
197
|
closeInspector(layoutTarget);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";
|
|
1
|
+
(()=>{"use strict";function e(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class t extends HTMLElement{static get observedAttributes(){return["value","max"]}constructor(){super(),e(this,"_initialized",!1),e(this,"_resetTimer",null),this.attachShadow({mode:"open"})}connectedCallback(){this._initialized||(this.setup(),this._initialized=!0,this.updateValue(this.value))}setup(){const e=document.createElement("style");e.textContent="\n :host {\n display: inline-flex;\n min-width: 1em;\n height: 1em;\n text-align: center;\n overflow: hidden;\n line-height: 1em;\n }\n .numbers {\n display: flex;\n flex-direction: column;\n transition: transform var(--bl-odometer-duration, 0.4s) cubic-bezier(0.34, 1.56, 0.64, 1);\n }\n .numbers span {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 1em;\n }";const t=document.createElement("span");t.classList.add("numbers"),t.setAttribute("aria-hidden","true"),this.shadowRoot.append(e,t),this.wrapper=t,this.rebuildNumbers()}rebuildNumbers(){this.wrapper.innerHTML="";const e=this.max;for(let t=0;t<=e;t++){const e=document.createElement("span");e.textContent=String(t),this.wrapper.appendChild(e)}const t=document.createElement("span");t.textContent="".concat(e,"+"),this.wrapper.appendChild(t),this._initialized&&this.updateValue(this.value)}attributeChangedCallback(e,t,i){if(i!==t&&this._initialized)if("value"===e){const e=parseInt(null!=t?t:"0",10)||0,n=parseInt(null!=i?i:"0",10)||0;this.applyChangeState(e,n),this.updateValue(n)}else"max"===e&&this.rebuildNumbers()}updateValue(e){const t=this.max,i=e>t?t+1:Math.max(0,e),n=this.wrapper.getBoundingClientRect().height||16;this.wrapper.style.transform="translateY(-".concat(i*n,"px)");const s=e>t?"".concat(t,"+"):"".concat(e);this.setAttribute("aria-label",s)}clearResetTimer(){null!==this._resetTimer&&(clearTimeout(this._resetTimer),this._resetTimer=null)}scheduleResetChange(){this.clearResetTimer(),this._resetTimer=window.setTimeout(()=>{this.removeAttribute("data-change"),this._resetTimer=null},3e3)}applyChangeState(e,t){t>e?(this.setAttribute("data-change","up"),this.scheduleResetChange()):t<e&&(this.setAttribute("data-change","down"),this.scheduleResetChange())}set value(e){this.value!==e&&(this.setAttribute("value",String(e)),this._initialized&&this.dispatchEvent(new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0})))}get value(){return parseInt(this.getAttribute("value")||"0",10)||0}set max(e){this.setAttribute("max",String(e))}get max(){return parseInt(this.getAttribute("max")||"9",10)||9}}customElements.get("bl-odometer")||customElements.define("bl-odometer",t)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";
|
|
1
|
+
(()=>{"use strict";function e(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}window.blueWeb=window.blueWeb||{},window.blueWeb.OverflowDetector=class{constructor(){e(this,"resizeObserver",null),e(this,"entries",new Map),"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(e=>{for(const r of e){const e=r.target,t=this.entries.get(e);t&&this.check(t)}}))}check(e){const r=e.element.scrollWidth>e.element.clientWidth+1;r!==e.wasOverflowing&&(e.wasOverflowing=r,e.onChange(r,e.element))}observe(e){var r;const t=e.element,i=e.onChange;this.entries.has(t)&&this.unobserve(t);const n={element:t,onChange:i,wasOverflowing:!1};this.entries.set(t,n),null===(r=this.resizeObserver)||void 0===r||r.observe(t),this.check(n)}unobserve(e){var r;null===(r=this.resizeObserver)||void 0===r||r.unobserve(e),this.entries.delete(e)}checkAll(){this.entries.forEach(e=>{this.check(e)})}destroy(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.resizeObserver=null,this.entries.clear()}},window.blueWeb.isOverflowing=function(e){return e.scrollWidth>e.clientWidth+1}})();
|
|
@@ -26,10 +26,8 @@ export class OverflowDetector {
|
|
|
26
26
|
}
|
|
27
27
|
observe(options) {
|
|
28
28
|
var _this$resizeObserver;
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
onChange
|
|
32
|
-
} = options;
|
|
29
|
+
const element = options.element,
|
|
30
|
+
onChange = options.onChange;
|
|
33
31
|
if (this.entries.has(element)) {
|
|
34
32
|
this.unobserve(element);
|
|
35
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";
|
|
1
|
+
(()=>{"use strict";function t(t,e,n){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class e extends HTMLElement{constructor(){super(),t(this,"startX",0),t(this,"startY",0),this.attachShadow({mode:"open"})}static get observedAttributes(){return["disabled"]}connectedCallback(){this.render()}attributeChangedCallback(t,e,n){"disabled"===t&&this.updateDisabledState()}render(){this.shadowRoot&&(this.shadowRoot.innerHTML='\n <style>\n button {\n display: block;\n margin: 0;\n padding: 0;\n appearance: none;\n background-color: transparent;\n border: none;\n line-height: 1;\n outline: 0;\n }\n\n button:focus-visible + div {\n outline: 0;\n box-shadow:\n 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 25%),\n inset 0 0 0 1px rgba(var(--bs-primary-rgb), 50%);\n }\n\n div {\n display: inline-block;\n box-sizing: border-box;\n width: auto;\n max-width: 100%;\n border-color: transparent;\n border-radius: var(--bs-border-radius-sm, 3px);\n transition: background 0.2s;\n }\n\n div:hover {\n background-color: var(--bs-secondary-bg-subtle);\n }\n\n :host([disabled]) div {\n background-color: transparent;\n }\n </style>\n <button aria-label="Edit"></button>\n <div role="presentation">\n <slot></slot>\n </div>\n ',this.button=this.shadowRoot.querySelector("button"),this.container=this.shadowRoot.querySelector("div"),this.button.addEventListener("click",this.onEditRequested.bind(this)),this.container.addEventListener("click",this.onReadViewClick.bind(this)),this.container.addEventListener("mousedown",this.onMouseDown.bind(this)),this.updateDisabledState())}updateDisabledState(){var t,e;const n=this.hasAttribute("disabled");var i,s;null===(t=this.button)||void 0===t||t.setAttribute("aria-disabled",String(n)),n?null===(i=this.button)||void 0===i||i.setAttribute("tabindex","-1"):null===(s=this.button)||void 0===s||s.removeAttribute("tabindex"),null===(e=this.container)||void 0===e||e.setAttribute("aria-disabled",String(n))}onEditRequested(){this.hasAttribute("disabled")||this.dispatchEvent(new CustomEvent("EditRequested",{bubbles:!0,composed:!0}))}onMouseDown(t){this.hasAttribute("disabled")||(this.startX=t.clientX,this.startY=t.clientY)}mouseHasMovedAfterMouseDown(t){return Math.abs(this.startX-t.clientX)>=5||Math.abs(this.startY-t.clientY)>=5}onReadViewClick(t){this.hasAttribute("disabled")||"a"===t.target.tagName.toLowerCase()||this.mouseHasMovedAfterMouseDown(t)||(t.preventDefault(),this.onEditRequested())}}customElements.define("bl-read-view",e)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";
|
|
1
|
+
(()=>{"use strict";function t(t,e,i){return(e=function(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class e extends Event{constructor(t,i){super(e.eventName,{bubbles:!0,composed:!0}),this.index=t,this.item=i}}t(e,"eventName","bl-select");class i extends HTMLElement{constructor(){super(),t(this,"handleChildrenChanged",()=>{var t;const e=null===(t=this.items[this.activeIndex])||void 0===t?void 0:t.id;if(this.updateItems(),e){const t=this.items.findIndex(t=>t.id===e);this.activeIndex=t>=0?t:-1}else this.activeIndex=-1;this.updateActiveItem()}),this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML='<slot style="border-radius: inherit"></slot>',this.activeIndex=-1,this.items=[],this.inputElement=null,this.slotElement=null,this.observer=null}get activeClass(){return this.getAttribute("active-class")||"active"}connectedCallback(){var t,e;this.setAttribute("role","listbox"),this.tabIndex=-1,this.updateItems(),this.syncActiveIndexFromDataSelected(),this.updateActiveItem();const i=this.getAttribute("for");this.inputElement=i?document.getElementById(i):null,this.inputElement&&(this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-controls",this.id),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.addEventListener("keydown",this.onKeyDown.bind(this))),this.addEventListener("keydown",this.onKeyDown.bind(this)),this.addEventListener("click",t=>{const e=t.target instanceof Element?t.target.closest("[data-select-list-index]"):null;if(e&&e.hasAttribute("data-select-list-index")){const t=Number(e.getAttribute("data-select-list-index"));this.select(t)}}),this.observer=new MutationObserver(t=>{t.some(t=>"childList"===t.type)&&this.handleChildrenChanged(),t.some(t=>"attributes"===t.type&&"data-selected"===t.attributeName)&&(this.syncActiveIndexFromDataSelected(),this.updateActiveItem())}),this.observer.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-selected"]}),this.slotElement=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),null===(e=this.slotElement)||void 0===e||e.addEventListener("slotchange",this.handleChildrenChanged)}disconnectedCallback(){var t,e;null===(t=this.observer)||void 0===t||t.disconnect(),this.observer=null,null===(e=this.slotElement)||void 0===e||e.removeEventListener("slotchange",this.handleChildrenChanged)}syncActiveIndexFromDataSelected(){const t=this.items.findIndex(t=>t.hasAttribute("data-selected"));t>=0&&(this.activeIndex=t)}updateItems(){const t=["button:not([disabled])","a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[role="option"]'].join(", ");this.items=Array.from(this.querySelectorAll(t)),this.items.forEach((t,e)=>{t.hasAttribute("id")||t.setAttribute("id","".concat(this.id,"-option-").concat(e)),t.setAttribute("data-select-list-index",e.toString()),t.setAttribute("aria-selected","false"),t.setAttribute("role","option"),t.tabIndex=-1})}onKeyDown(t){if(this.items.length)if("ArrowDown"===t.key)t.preventDefault(),this.activeIndex=(this.activeIndex+1)%this.items.length,this.updateActiveItem();else if("ArrowUp"===t.key)t.preventDefault(),this.activeIndex=(this.activeIndex-1+this.items.length)%this.items.length,this.updateActiveItem();else if("Enter"===t.key&&this.activeIndex>=0){t.preventDefault();const e=this.items[this.activeIndex];null==e||e.click()}}updateActiveItem(){const t=this.activeClass.split(" ");this.items.forEach((e,i)=>{const s=i===this.activeIndex;t.forEach(t=>{e.classList.toggle(t,s)}),e.setAttribute("aria-selected",s.toString())});const e=this.items[this.activeIndex];e&&this.inputElement?(this.inputElement.setAttribute("aria-activedescendant",e.id),e.scrollIntoView({block:"nearest"})):this.inputElement&&this.inputElement.removeAttribute("aria-activedescendant")}select(t){this.activeIndex=t,this.items.forEach(t=>t.removeAttribute("data-selected"));const i=this.items[t];i&&(i.setAttribute("data-selected",""),this.dispatchEvent(new e(t,i)),this.updateActiveItem())}}customElements.get("bl-select-list")||customElements.define("bl-select-list",i)})();
|
package/dist/js/utils.bundle.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict"})();
|
package/dist/merged.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Blue Web v1.
|
|
2
|
+
* Blue Web v1.32.1 (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
|
|
|
@@ -50,6 +50,9 @@ $input-focus-border-color: #{rgba(var(--bs-primary-rgb), 50%)} !default;
|
|
|
50
50
|
$enable-button-pointers: true !default;
|
|
51
51
|
$focus-ring-width: 0.125rem !default;
|
|
52
52
|
|
|
53
|
+
$accordion-padding-x: 1rem !default;
|
|
54
|
+
$accordion-padding-y: 0.75rem !default;
|
|
55
|
+
|
|
53
56
|
|
|
54
57
|
// Bootstrap functions
|
|
55
58
|
//
|
|
@@ -4104,6 +4107,31 @@ $corner-shape: #{round} !default;
|
|
|
4104
4107
|
background-attachment: local, local, scroll, scroll;
|
|
4105
4108
|
}
|
|
4106
4109
|
|
|
4110
|
+
@mixin blue-layout-body($bg) {
|
|
4111
|
+
--spacing: 0.5rem;
|
|
4112
|
+
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
|
|
4113
|
+
--bs-link-hover-color: #{$link-hover-color};
|
|
4114
|
+
|
|
4115
|
+
width: calc(100% - var(--spacing) * 2);
|
|
4116
|
+
height: calc(100% - var(--spacing));
|
|
4117
|
+
margin-left: auto;
|
|
4118
|
+
margin-right: auto;
|
|
4119
|
+
overflow: auto;
|
|
4120
|
+
scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
|
|
4121
|
+
background-color: $bg;
|
|
4122
|
+
color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity, 1));
|
|
4123
|
+
box-shadow: var(--bs-box-shadow-sm);
|
|
4124
|
+
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
4125
|
+
border-radius: var(--bs-border-radius-lg);
|
|
4126
|
+
|
|
4127
|
+
@include color-mode(dark, false) {
|
|
4128
|
+
& {
|
|
4129
|
+
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
|
|
4130
|
+
--bs-link-hover-color: #{$link-hover-color-dark};
|
|
4131
|
+
}
|
|
4132
|
+
}
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4107
4135
|
|
|
4108
4136
|
@keyframes fade-in {
|
|
4109
4137
|
from {
|
|
@@ -12102,28 +12130,7 @@ dialog.blue-modal:has(.offcanvas-start) {
|
|
|
12102
12130
|
}
|
|
12103
12131
|
|
|
12104
12132
|
.blue-layout-body {
|
|
12105
|
-
--
|
|
12106
|
-
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
|
|
12107
|
-
--bs-link-hover-color: #{$link-hover-color};
|
|
12108
|
-
|
|
12109
|
-
width: calc(100% - var(--spacing) * 2);
|
|
12110
|
-
height: calc(100% - var(--spacing));
|
|
12111
|
-
margin-left: auto;
|
|
12112
|
-
margin-right: auto;
|
|
12113
|
-
overflow: auto;
|
|
12114
|
-
scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
|
|
12115
|
-
background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1));
|
|
12116
|
-
color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity, 1));
|
|
12117
|
-
box-shadow: var(--bs-box-shadow-sm);
|
|
12118
|
-
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
|
|
12119
|
-
border-radius: var(--bs-border-radius-lg);
|
|
12120
|
-
}
|
|
12121
|
-
|
|
12122
|
-
@include color-mode(dark, false) {
|
|
12123
|
-
.blue-layout-body {
|
|
12124
|
-
--blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
|
|
12125
|
-
--bs-link-hover-color: #{$link-hover-color-dark};
|
|
12126
|
-
}
|
|
12133
|
+
@include blue-layout-body(rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1)));
|
|
12127
12134
|
}
|
|
12128
12135
|
|
|
12129
12136
|
.blue-layout-splitter {
|
|
@@ -12164,22 +12171,40 @@ dialog.blue-modal:has(.offcanvas-start) {
|
|
|
12164
12171
|
}
|
|
12165
12172
|
}
|
|
12166
12173
|
}
|
|
12174
|
+
|
|
12175
|
+
.blue-layout-body,
|
|
12176
|
+
.blue-layout-inspector-body {
|
|
12177
|
+
width: calc(100% - var(--spacing));
|
|
12178
|
+
}
|
|
12179
|
+
|
|
12180
|
+
& > :first-child .blue-layout-body {
|
|
12181
|
+
margin-right: 0;
|
|
12182
|
+
}
|
|
12183
|
+
|
|
12184
|
+
& > :last-child .blue-layout-inspector-body {
|
|
12185
|
+
margin-left: 0;
|
|
12186
|
+
}
|
|
12167
12187
|
}
|
|
12168
12188
|
|
|
12169
12189
|
.blue-layout-inspector {
|
|
12170
12190
|
&:not([open]) {
|
|
12171
12191
|
& > .offcanvas {
|
|
12172
|
-
--spacing: 0.5rem;
|
|
12173
12192
|
width: 100%;
|
|
12174
|
-
height: calc(100% - var(--spacing));
|
|
12175
|
-
|
|
12176
|
-
& > .offcanvas-body {
|
|
12177
|
-
padding-inline: var(--spacing);
|
|
12178
|
-
}
|
|
12179
12193
|
}
|
|
12180
12194
|
}
|
|
12181
12195
|
}
|
|
12182
12196
|
|
|
12197
|
+
.blue-layout-inspector-body {
|
|
12198
|
+
width: 100%;
|
|
12199
|
+
height: 100%;
|
|
12200
|
+
}
|
|
12201
|
+
|
|
12202
|
+
@include media-breakpoint-up(lg) {
|
|
12203
|
+
.blue-layout-inspector-body {
|
|
12204
|
+
@include blue-layout-body(rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity, 1)));
|
|
12205
|
+
}
|
|
12206
|
+
}
|
|
12207
|
+
|
|
12183
12208
|
// Collapse with details and animated
|
|
12184
12209
|
.blue-collapse {
|
|
12185
12210
|
interpolate-size: allow-keywords;
|
|
@@ -12444,6 +12469,33 @@ dialog.blue-modal:has(.offcanvas-start) {
|
|
|
12444
12469
|
max-height: 100px;
|
|
12445
12470
|
}
|
|
12446
12471
|
|
|
12472
|
+
// Let's you use Bootstrap's Accordion component with the native HTML Details element. No JavaScript necessary then anymore.
|
|
12473
|
+
details[open] summary > .accordion-button {
|
|
12474
|
+
@extend .accordion-button, :not(.collapsed);
|
|
12475
|
+
}
|
|
12476
|
+
|
|
12477
|
+
details.accordion-item:last-of-type[open] > .accordion-header .accordion-button.collapsed {
|
|
12478
|
+
border-bottom-right-radius: 0;
|
|
12479
|
+
border-bottom-left-radius: 0;
|
|
12480
|
+
}
|
|
12481
|
+
|
|
12482
|
+
.blue-accordion {
|
|
12483
|
+
&,
|
|
12484
|
+
details.accordion-item {
|
|
12485
|
+
display: flex;
|
|
12486
|
+
flex-direction: column;
|
|
12487
|
+
}
|
|
12488
|
+
|
|
12489
|
+
details.accordion-item[open],
|
|
12490
|
+
details.accordion-item[open]::details-content {
|
|
12491
|
+
flex-grow: 1;
|
|
12492
|
+
}
|
|
12493
|
+
|
|
12494
|
+
.accordion-body {
|
|
12495
|
+
height: 100%;
|
|
12496
|
+
}
|
|
12497
|
+
}
|
|
12498
|
+
|
|
12447
12499
|
|
|
12448
12500
|
/* Make DevExpress components look more like Bootstrap/Blue */
|
|
12449
12501
|
[class^="dxbl-"]:not(.dxbl-btn-tool):not(.dxbl-toolbar-item):not(:is(.dxbl-toolbar-btn-ellipsis > .dxbl-btn)) {
|