@kodaris/krubble-app-components 1.0.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/LICENSE +14 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/krubble-app.bundled.js +3572 -0
- package/dist/krubble-app.bundled.js.map +1 -0
- package/dist/krubble-app.bundled.min.js +2005 -0
- package/dist/krubble-app.bundled.min.js.map +1 -0
- package/dist/krubble-app.umd.js +3577 -0
- package/dist/krubble-app.umd.js.map +1 -0
- package/dist/krubble-app.umd.min.js +2005 -0
- package/dist/krubble-app.umd.min.js.map +1 -0
- package/dist/scaffold/nav-item-edit.d.ts +34 -0
- package/dist/scaffold/nav-item-edit.d.ts.map +1 -0
- package/dist/scaffold/nav-item-edit.js +216 -0
- package/dist/scaffold/nav-item-edit.js.map +1 -0
- package/dist/scaffold.d.ts +368 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/scaffold.js +1853 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/screen-detail.d.ts +34 -0
- package/dist/screen-detail.d.ts.map +1 -0
- package/dist/screen-detail.js +104 -0
- package/dist/screen-detail.js.map +1 -0
- package/dist/screen-nav.d.ts +93 -0
- package/dist/screen-nav.d.ts.map +1 -0
- package/dist/screen-nav.js +297 -0
- package/dist/screen-nav.js.map +1 -0
- package/dist/shell.d.ts +104 -0
- package/dist/shell.d.ts.map +1 -0
- package/dist/shell.js +860 -0
- package/dist/shell.js.map +1 -0
- package/dist/subbar.d.ts +34 -0
- package/dist/subbar.d.ts.map +1 -0
- package/dist/subbar.js +133 -0
- package/dist/subbar.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,2005 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@kodaris/krubble-components")):"function"==typeof define&&define.amd?define(["exports","@kodaris/krubble-components"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).krApp={},e.kr)}(this,(function(e,t){"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2019 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/const i=globalThis,r=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),a=new WeakMap;let n=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(r&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&a.set(t,e))}return e}toString(){return this.cssText}};const o=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[r+1]),e[0]);return new n(i,e,s)},l=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new n("string"==typeof e?e:e+"",void 0,s))(t)})(e):e
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2017 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/,{is:d,defineProperty:c,getOwnPropertyDescriptor:p,getOwnPropertyNames:h,getOwnPropertySymbols:u,getPrototypeOf:v}=Object,f=globalThis,g=f.trustedTypes,m=g?g.emptyScript:"",b=f.reactiveElementPolyfillSupport,x=(e,t)=>e,_={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},y=(e,t)=>!d(e,t),$={attribute:!0,type:String,converter:_,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=$){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);void 0!==r&&c(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=p(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){const a=r?.call(this);s?.call(this,t),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??$}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const e=v(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,t=[...h(e),...u(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(l(e))}else void 0!==e&&t.push(l(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(r)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),s=i.litNonce;void 0!==s&&t.setAttribute("nonce",s),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(void 0!==r&&!0===i.reflect){const s=(void 0!==i.converter?.toAttribute?i.converter:_).toAttribute(t,i.type);this._$Em=e,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(e,t){const i=this.constructor,r=i._$Eh.get(e);if(void 0!==r&&this._$Em!==r){const e=i.getPropertyOptions(r),s="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:_;this._$Em=r;const a=s.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){const r=this.constructor,s=this[e];if(i??=r.getPropertyOptions(e),!((i.hasChanged??y)(s,t)||i.useDefault&&i.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(r._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},a){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==s||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,r=this[t];!0!==e||this._$AL.has(t)||void 0===r||this.C(t,void 0,i,r)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[x("elementProperties")]=new Map,k[x("finalized")]=new Map,b?.({ReactiveElement:k}),(f.reactiveElementVersions??=[]).push("2.1.1");
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2017 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*/
|
|
17
|
+
const w=globalThis,I=w.trustedTypes,A=I?I.createPolicy("lit-html",{createHTML:e=>e}):void 0,E="$lit$",S=`lit$${Math.random().toFixed(9).slice(2)}$`,C="?"+S,N=`<${C}>`,R=document,M=()=>R.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,O=Array.isArray,P="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,T=/>/g,j=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,H=/"/g,X=/^(?:script|style|textarea|title)$/i,L=(e=>(t,...i)=>({_$litType$:e,strings:t,values:i}))(1),q=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),B=new WeakMap,Y=R.createTreeWalker(R,129);function V(e,t){if(!O(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==A?A.createHTML(t):t}const W=(e,t)=>{const i=e.length-1,r=[];let s,a=2===t?"<svg>":3===t?"<math>":"",n=z;for(let t=0;t<i;t++){const i=e[t];let o,l,d=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===z?"!--"===l[1]?n=U:void 0!==l[1]?n=T:void 0!==l[2]?(X.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=j):void 0!==l[3]&&(n=j):n===j?">"===l[0]?(n=s??z,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,o=l[1],n=void 0===l[3]?j:'"'===l[3]?H:K):n===H||n===K?n=j:n===U||n===T?n=z:(n=j,s=void 0);const p=n===j&&e[t+1].startsWith("/>")?" ":"";a+=n===z?i+N:d>=0?(r.push(o),i.slice(0,d)+E+i.slice(d)+S+p):i+S+(-2===d?t:p)}return[V(e,a+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),r]};class Q{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let s=0,a=0;const n=e.length-1,o=this.parts,[l,d]=W(e,t);if(this.el=Q.createElement(l,i),Y.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(r=Y.nextNode())&&o.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const e of r.getAttributeNames())if(e.endsWith(E)){const t=d[a++],i=r.getAttribute(e).split(S),n=/([.?@])?(.*)/.exec(t);o.push({type:1,index:s,name:n[2],strings:i,ctor:"."===n[1]?te:"?"===n[1]?ie:"@"===n[1]?re:ee}),r.removeAttribute(e)}else e.startsWith(S)&&(o.push({type:6,index:s}),r.removeAttribute(e));if(X.test(r.tagName)){const e=r.textContent.split(S),t=e.length-1;if(t>0){r.textContent=I?I.emptyScript:"";for(let i=0;i<t;i++)r.append(e[i],M()),Y.nextNode(),o.push({type:2,index:++s});r.append(e[t],M())}}}else if(8===r.nodeType)if(r.data===C)o.push({type:2,index:s});else{let e=-1;for(;-1!==(e=r.data.indexOf(S,e+1));)o.push({type:7,index:s}),e+=S.length-1}s++}}static createElement(e,t){const i=R.createElement("template");return i.innerHTML=e,i}}function G(e,t,i=e,r){if(t===q)return t;let s=void 0!==r?i._$Co?.[r]:i._$Cl;const a=D(t)?void 0:t._$litDirective$;return s?.constructor!==a&&(s?._$AO?.(!1),void 0===a?s=void 0:(s=new a(e),s._$AT(e,i,r)),void 0!==r?(i._$Co??=[])[r]=s:i._$Cl=s),void 0!==s&&(t=G(e,s._$AS(e,t.values),s,r)),t}class J{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,r=(e?.creationScope??R).importNode(t,!0);Y.currentNode=r;let s=Y.nextNode(),a=0,n=0,o=i[0];for(;void 0!==o;){if(a===o.index){let t;2===o.type?t=new Z(s,s.nextSibling,this,e):1===o.type?t=new o.ctor(s,o.name,o.strings,this,e):6===o.type&&(t=new se(s,this,e)),this._$AV.push(t),o=i[++n]}a!==o?.index&&(s=Y.nextNode(),a++)}return Y.currentNode=R,r}p(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Z{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,r){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=G(this,e,t),D(e)?e===F||null==e||""===e?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==q&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>O(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==F&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(R.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=Q.createElement(V(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(t);else{const e=new J(r,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=B.get(e.strings);return void 0===t&&B.set(e.strings,t=new Q(e)),t}k(e){O(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const s of e)r===t.length?t.push(i=new Z(this.O(M()),this.O(M()),this,this.options)):i=t[r],i._$AI(s),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ee{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,r,s){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=F}_$AI(e,t=this,i,r){const s=this.strings;let a=!1;if(void 0===s)e=G(this,e,t,0),a=!D(e)||e!==this._$AH&&e!==q,a&&(this._$AH=e);else{const r=e;let n,o;for(e=s[0],n=0;n<s.length-1;n++)o=G(this,r[i+n],t,n),o===q&&(o=this._$AH[n]),a||=!D(o)||o!==this._$AH[n],o===F?e=F:e!==F&&(e+=(o??"")+s[n+1]),this._$AH[n]=o}a&&!r&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class te extends ee{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}}class ie extends ee{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==F)}}class re extends ee{constructor(e,t,i,r,s){super(e,t,i,r,s),this.type=5}_$AI(e,t=this){if((e=G(this,e,t,0)??F)===q)return;const i=this._$AH,r=e===F&&i!==F||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==F&&(i===F||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class se{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){G(this,e)}}const ae=w.litHtmlPolyfillSupport;ae?.(Q,Z),(w.litHtmlVersions??=[]).push("3.3.1");const ne=globalThis;
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/let oe=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{const r=i?.renderBefore??t;let s=r._$litPart$;if(void 0===s){const e=i?.renderBefore??null;r._$litPart$=s=new Z(t.insertBefore(M(),e),e,void 0,i??{})}return s._$AI(e),s})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return q}};oe._$litElement$=!0,oe.finalized=!0,ne.litElementHydrateSupport?.({LitElement:oe});const le=ne.litElementPolyfillSupport;le?.({LitElement:oe}),(ne.litElementVersions??=[]).push("4.2.1");
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/
|
|
28
|
+
const de=e=>(t,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)}
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright 2017 Google LLC
|
|
32
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
+
*/,ce={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:y},pe=(e=ce,t,i)=>{const{kind:r,metadata:s}=i;let a=globalThis.litPropertyMetadata.get(s);if(void 0===a&&globalThis.litPropertyMetadata.set(s,a=new Map),"setter"===r&&((e=Object.create(e)).wrapped=!0),a.set(i.name,e),"accessor"===r){const{name:r}=i;return{set(i){const s=t.get.call(this);t.set.call(this,i),this.requestUpdate(r,s,e)},init(t){return void 0!==t&&this.C(r,void 0,e,t),t}}}if("setter"===r){const{name:r}=i;return function(i){const s=this[r];t.call(this,i),this.requestUpdate(r,s,e)}}throw Error("Unsupported decorator location: "+r)};function he(e){return(t,i)=>"object"==typeof i?pe(e,t,i):((e,t,i)=>{const r=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),r?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)
|
|
34
|
+
/**
|
|
35
|
+
* @license
|
|
36
|
+
* Copyright 2017 Google LLC
|
|
37
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
+
*/}function ue(e){return he({...e,state:!0,attribute:!1})}
|
|
39
|
+
/**
|
|
40
|
+
* @license
|
|
41
|
+
* Copyright 2017 Google LLC
|
|
42
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
+
*/const ve=1,fe=2,ge=e=>(...t)=>({_$litDirective$:e,values:t});class me{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
|
|
44
|
+
/**
|
|
45
|
+
* @license
|
|
46
|
+
* Copyright 2018 Google LLC
|
|
47
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
+
*/const be=ge(class extends me{constructor(e){if(super(e),e.type!==ve||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const i=e.element.classList;for(const e of this.st)e in t||(i.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(i.add(e),this.st.add(e)):(i.remove(e),this.st.delete(e)))}return q}});
|
|
49
|
+
/**
|
|
50
|
+
* @license
|
|
51
|
+
* Copyright 2017 Google LLC
|
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
+
*/class xe extends me{constructor(e){if(super(e),this.it=F,e.type!==fe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||null==e)return this._t=void 0,this.it=e;if(e===q)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}xe.directiveName="unsafeHTML",xe.resultType=1;const _e=ge(xe);var ye=function(e,t,i,r){var s,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,i,n):s(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};e.KRShell=class extends oe{constructor(){super(...arguments),this.logo="https://s3.amazonaws.com/kodariscom/kodariscom/content/website/kodaris-logo-icon-light-53.png",this.apps=[],this.activeAppId="",this.user=null,this.menuItems=[],this.isUserMenuOpen=!1,this.isAppsMenuOpen=!1,this.pendingRequests=0,this.originalFetch=null,this.originalXhrOpen=null,this.defaultLogoutIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>',this.appsGridIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/></svg>',this.closeIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'}connectedCallback(){super.connectedCallback(),this.installFetchInterceptor()}disconnectedCallback(){super.disconnectedCallback(),this.uninstallFetchInterceptor()}installFetchInterceptor(){if(this.originalFetch)return;const e=this;this.originalFetch=window.fetch.bind(window);const t=this.originalFetch;window.fetch=function(...i){return e.pendingRequests++,t(...i).finally((()=>{e.pendingRequests--}))},this.originalXhrOpen=XMLHttpRequest.prototype.open;const i=this.originalXhrOpen;XMLHttpRequest.prototype.open=function(t,r,s=!0,a,n){return e.pendingRequests++,this.addEventListener("loadend",(()=>{e.pendingRequests--}),{once:!0}),i.call(this,t,r,s,a,n)}}uninstallFetchInterceptor(){this.originalFetch&&(window.fetch=this.originalFetch,this.originalFetch=null),this.originalXhrOpen&&(XMLHttpRequest.prototype.open=this.originalXhrOpen,this.originalXhrOpen=null)}handleLogoClick(){this.dispatchEvent(new CustomEvent("logo-click",{bubbles:!0,composed:!0}))}toggleUserMenu(){this.isUserMenuOpen=!this.isUserMenuOpen,this.isAppsMenuOpen=!1}closeUserMenu(){this.isUserMenuOpen=!1}toggleAppsMenu(){this.isAppsMenuOpen=!this.isAppsMenuOpen,this.isUserMenuOpen=!1}closeAppsMenu(){this.isAppsMenuOpen=!1}handleMenuItemClick(e){this.closeUserMenu(),this.dispatchEvent(new CustomEvent("menu-item-click",{detail:{item:e},bubbles:!0,composed:!0}))}handleLogout(){this.closeUserMenu(),this.dispatchEvent(new CustomEvent("logout",{bubbles:!0,composed:!0}))}renderAppsMenu(){return L`
|
|
54
|
+
<div class="appbar-apps">
|
|
55
|
+
${this.isAppsMenuOpen?L`
|
|
56
|
+
<div class="menu-backdrop" @click=${this.closeAppsMenu}></div>
|
|
57
|
+
`:F}
|
|
58
|
+
|
|
59
|
+
<button
|
|
60
|
+
class=${be({"appbar-apps-btn":!0,"appbar-apps-btn--open":this.isAppsMenuOpen})}
|
|
61
|
+
@click=${this.toggleAppsMenu}
|
|
62
|
+
>
|
|
63
|
+
<span class="appbar-apps-btn__icon">${_e(this.appsGridIcon)}</span>
|
|
64
|
+
</button>
|
|
65
|
+
|
|
66
|
+
<div class=${be({"appbar-apps-menu":!0,"appbar-apps-menu--open":this.isAppsMenuOpen})}>
|
|
67
|
+
<div class="appbar-apps-menu__header">
|
|
68
|
+
<h2 class="appbar-apps-menu__title">Applications</h2>
|
|
69
|
+
<button class="appbar-apps-menu__close" @click=${this.closeAppsMenu}>
|
|
70
|
+
${_e(this.closeIcon)}
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="appbar-apps-menu__content">
|
|
74
|
+
<div class="appbar-apps-menu__list">
|
|
75
|
+
${this.apps.map((e=>L`
|
|
76
|
+
<a
|
|
77
|
+
class="appbar-apps-menu__item"
|
|
78
|
+
href=${e.url}
|
|
79
|
+
@click=${t=>{this.closeAppsMenu();const i=new CustomEvent("app-click",{detail:{app:e},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(i),i.defaultPrevented&&t.preventDefault()}}
|
|
80
|
+
>
|
|
81
|
+
${e.name}
|
|
82
|
+
</a>
|
|
83
|
+
`))}
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
`}renderUserMenu(){if(!this.user)return F;const e=this.user.name.split(" ").map((e=>e[0])).join("").toUpperCase().slice(0,2);return L`
|
|
89
|
+
<div class="appbar-user">
|
|
90
|
+
${this.isUserMenuOpen?L`
|
|
91
|
+
<div class="menu-backdrop" @click=${this.closeUserMenu}></div>
|
|
92
|
+
`:F}
|
|
93
|
+
|
|
94
|
+
<div
|
|
95
|
+
class="appbar-user__avatar"
|
|
96
|
+
@click=${this.toggleUserMenu}
|
|
97
|
+
>
|
|
98
|
+
${this.user.avatar?L`<img src=${this.user.avatar} alt=${this.user.name} />`:e}
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<div class=${be({"appbar-user__menu":!0,"appbar-user__menu--open":this.isUserMenuOpen})}>
|
|
102
|
+
<div class="appbar-user__header">
|
|
103
|
+
<p class="appbar-user__name">${this.user.name}</p>
|
|
104
|
+
${this.user.email?L`
|
|
105
|
+
<p class="appbar-user__email">${this.user.email}</p>
|
|
106
|
+
`:F}
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
${this.menuItems.map((e=>e.divider?L`<div class="appbar-user__menu-divider"></div>`:L`
|
|
110
|
+
<button
|
|
111
|
+
class="appbar-user__menu-item"
|
|
112
|
+
@click=${()=>this.handleMenuItemClick(e)}
|
|
113
|
+
>
|
|
114
|
+
${e.icon?L`
|
|
115
|
+
<span class="appbar-user__menu-item__icon">${_e(e.icon)}</span>
|
|
116
|
+
`:F}
|
|
117
|
+
${e.label}
|
|
118
|
+
</button>
|
|
119
|
+
`))}
|
|
120
|
+
|
|
121
|
+
${this.menuItems.length>0?L`
|
|
122
|
+
<div class="appbar-user__menu-divider"></div>
|
|
123
|
+
`:F}
|
|
124
|
+
|
|
125
|
+
<button
|
|
126
|
+
class="appbar-user__menu-item appbar-user__menu-item--danger"
|
|
127
|
+
@click=${this.handleLogout}
|
|
128
|
+
>
|
|
129
|
+
<span class="appbar-user__menu-item__icon">${_e(this.defaultLogoutIcon)}</span>
|
|
130
|
+
Sign Out
|
|
131
|
+
</button>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
`}render(){return L`
|
|
135
|
+
<div class=${be({progress:!0,"progress--loading":this.pendingRequests>0})}>
|
|
136
|
+
<div class="progress__track"></div>
|
|
137
|
+
<div class="progress__bar progress__bar--primary">
|
|
138
|
+
<span class="progress__bar-inner"></span>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="progress__bar progress__bar--secondary">
|
|
141
|
+
<span class="progress__bar-inner"></span>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
<header class="appbar">
|
|
146
|
+
<!-- Logo -->
|
|
147
|
+
${this.logo?L`
|
|
148
|
+
<div class="appbar-logo" @click=${this.handleLogoClick}>
|
|
149
|
+
<img src=${this.logo} alt="Home" />
|
|
150
|
+
</div>
|
|
151
|
+
<div class="appbar-divider"></div>
|
|
152
|
+
`:F}
|
|
153
|
+
|
|
154
|
+
<!-- App Switcher -->
|
|
155
|
+
${this.renderAppsMenu()}
|
|
156
|
+
|
|
157
|
+
<div class="appbar-spacer"></div>
|
|
158
|
+
|
|
159
|
+
<!-- User -->
|
|
160
|
+
${this.renderUserMenu()}
|
|
161
|
+
</header>
|
|
162
|
+
|
|
163
|
+
<div class="subbar">
|
|
164
|
+
<nav class="breadcrumbs">
|
|
165
|
+
<a href="#">Home</a>
|
|
166
|
+
<span class="breadcrumbs__separator">/</span>
|
|
167
|
+
<a href="#">Companies</a>
|
|
168
|
+
<span class="breadcrumbs__separator">/</span>
|
|
169
|
+
<span>Acme Corp</span>
|
|
170
|
+
</nav>
|
|
171
|
+
</div>
|
|
172
|
+
|
|
173
|
+
<main class="main">
|
|
174
|
+
<slot></slot>
|
|
175
|
+
</main>
|
|
176
|
+
`}},e.KRShell.styles=o`
|
|
177
|
+
:host {
|
|
178
|
+
display: flex;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
height: 100vh;
|
|
181
|
+
width: 100vw;
|
|
182
|
+
--kr-shell-bar-height: 48px;
|
|
183
|
+
--kr-shell-bar-bg: #10172a; /* matches scaffold nav-bg */
|
|
184
|
+
/* --kr-shell-bar-bg: #0a0f1a; */ /* original darker bg */
|
|
185
|
+
--kr-shell-bar-border: rgba(255, 255, 255, 0.08);
|
|
186
|
+
--kr-shell-icon-size: 36px;
|
|
187
|
+
--kr-shell-icon-color: rgba(255, 255, 255, 0.7);
|
|
188
|
+
--kr-shell-icon-color-hover: rgba(255, 255, 255, 1);
|
|
189
|
+
--kr-shell-icon-color-active: #beea4e;
|
|
190
|
+
--kr-shell-icon-bg-hover: rgba(255, 255, 255, 0.08);
|
|
191
|
+
--kr-shell-icon-bg-active: rgba(190, 234, 78, 0.15);
|
|
192
|
+
--kr-shell-tooltip-bg: #1a2332;
|
|
193
|
+
--kr-shell-tooltip-color: #ffffff;
|
|
194
|
+
--kr-shell-menu-bg: #1a2332;
|
|
195
|
+
--kr-shell-menu-border: rgba(255, 255, 255, 0.1);
|
|
196
|
+
--kr-shell-menu-hover: rgba(255, 255, 255, 0.08);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
*,
|
|
200
|
+
*::before,
|
|
201
|
+
*::after {
|
|
202
|
+
box-sizing: border-box;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* App Bar */
|
|
206
|
+
.appbar {
|
|
207
|
+
height: var(--kr-shell-bar-height);
|
|
208
|
+
background: var(--kr-shell-bar-bg);
|
|
209
|
+
border-bottom: 1px solid var(--kr-shell-bar-border);
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
padding: 0 16px;
|
|
213
|
+
flex-shrink: 0;
|
|
214
|
+
z-index: 100;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Logo */
|
|
218
|
+
.appbar-logo {
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
margin-right: 8px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.appbar-logo img {
|
|
224
|
+
display: block;
|
|
225
|
+
max-width: 24px;
|
|
226
|
+
max-height: 24px;
|
|
227
|
+
object-fit: contain;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Divider */
|
|
231
|
+
.appbar-divider {
|
|
232
|
+
width: 1px;
|
|
233
|
+
height: 24px;
|
|
234
|
+
background: #ffffff4f;
|
|
235
|
+
margin: 0 10px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Apps Button */
|
|
239
|
+
.appbar-apps {
|
|
240
|
+
position: relative;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.appbar-apps-btn {
|
|
244
|
+
width: var(--kr-shell-icon-size);
|
|
245
|
+
height: var(--kr-shell-icon-size);
|
|
246
|
+
display: flex;
|
|
247
|
+
align-items: center;
|
|
248
|
+
justify-content: center;
|
|
249
|
+
border-radius: 6px;
|
|
250
|
+
cursor: pointer;
|
|
251
|
+
color: var(--kr-shell-icon-color);
|
|
252
|
+
background: transparent;
|
|
253
|
+
border: none;
|
|
254
|
+
padding: 0;
|
|
255
|
+
transition: all 0.15s ease;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.appbar-apps-btn:hover {
|
|
259
|
+
color: var(--kr-shell-icon-color-hover);
|
|
260
|
+
background: var(--kr-shell-icon-bg-hover);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.appbar-apps-btn--open {
|
|
264
|
+
color: var(--kr-shell-icon-color-hover);
|
|
265
|
+
background: var(--kr-shell-icon-bg-hover);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.appbar-apps-btn__icon {
|
|
269
|
+
width: 24px;
|
|
270
|
+
height: 24px;
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: center;
|
|
274
|
+
color: #ffffff;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.appbar-apps-btn__icon svg {
|
|
278
|
+
width: 100%;
|
|
279
|
+
height: 100%;
|
|
280
|
+
fill: currentColor;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Apps Megamenu */
|
|
284
|
+
.appbar-apps-menu {
|
|
285
|
+
position: absolute;
|
|
286
|
+
left: 0;
|
|
287
|
+
top: 100%;
|
|
288
|
+
margin-top: 6px;
|
|
289
|
+
min-width: 320px;
|
|
290
|
+
min-height: 90vh;
|
|
291
|
+
max-height: calc(100vh - var(--kr-shell-bar-height));
|
|
292
|
+
background: #10172a;
|
|
293
|
+
border: 1px solid var(--kr-shell-menu-border);
|
|
294
|
+
border-top: none;
|
|
295
|
+
border-radius: 0 0 8px 8px;
|
|
296
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
297
|
+
z-index: 1000;
|
|
298
|
+
opacity: 0;
|
|
299
|
+
visibility: hidden;
|
|
300
|
+
transform: translateY(-10px);
|
|
301
|
+
transition: all 0.15s ease;
|
|
302
|
+
overflow-y: auto;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.appbar-apps-menu--open {
|
|
306
|
+
opacity: 1;
|
|
307
|
+
visibility: visible;
|
|
308
|
+
transform: translateY(0);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.appbar-apps-menu__header {
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: space-between;
|
|
315
|
+
padding: 16px 16px 16px 24px;
|
|
316
|
+
border-bottom: 1px solid var(--kr-shell-menu-border);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.appbar-apps-menu__title {
|
|
320
|
+
font-size: 16px;
|
|
321
|
+
font-weight: 500;
|
|
322
|
+
color: #ffffff;
|
|
323
|
+
margin: 0;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.appbar-apps-menu__close {
|
|
327
|
+
width: 32px;
|
|
328
|
+
height: 32px;
|
|
329
|
+
display: flex;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
background: none;
|
|
333
|
+
border: none;
|
|
334
|
+
color: rgba(255, 255, 255, 0.6);
|
|
335
|
+
cursor: pointer;
|
|
336
|
+
border-radius: 6px;
|
|
337
|
+
transition: all 0.15s ease;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.appbar-apps-menu__close:hover {
|
|
341
|
+
background: var(--kr-shell-menu-hover);
|
|
342
|
+
color: #ffffff;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.appbar-apps-menu__close svg {
|
|
346
|
+
width: 24px;
|
|
347
|
+
height: 24px;
|
|
348
|
+
fill: #ffffff;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.appbar-apps-menu__content {
|
|
352
|
+
padding: 16px 8px;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.appbar-apps-menu__list {
|
|
356
|
+
display: flex;
|
|
357
|
+
flex-direction: column;
|
|
358
|
+
gap: 2px;
|
|
359
|
+
max-width: 320px;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.appbar-apps-menu__item {
|
|
363
|
+
display: block;
|
|
364
|
+
width: 100%;
|
|
365
|
+
padding: 12px 16px;
|
|
366
|
+
background: none;
|
|
367
|
+
border: none;
|
|
368
|
+
color: #ffffff;
|
|
369
|
+
font-size: 14px;
|
|
370
|
+
font-family: inherit;
|
|
371
|
+
text-align: left;
|
|
372
|
+
text-decoration: none;
|
|
373
|
+
cursor: pointer;
|
|
374
|
+
border-radius: 6px;
|
|
375
|
+
transition: all 0.15s ease;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.appbar-apps-menu__item:hover {
|
|
379
|
+
background: var(--kr-shell-menu-hover);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.appbar-apps-menu__item--active,
|
|
383
|
+
.appbar-apps-menu__item--active:hover {
|
|
384
|
+
color: var(--kr-shell-icon-color-active);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* Spacer to push user to the right */
|
|
388
|
+
.appbar-spacer {
|
|
389
|
+
flex: 1;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* User Section */
|
|
393
|
+
.appbar-user {
|
|
394
|
+
position: relative;
|
|
395
|
+
margin-left: 8px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.appbar-user__avatar {
|
|
399
|
+
width: 32px;
|
|
400
|
+
height: 32px;
|
|
401
|
+
border-radius: 50%;
|
|
402
|
+
background: #beea4e;
|
|
403
|
+
color: #0a0f1a;
|
|
404
|
+
display: flex;
|
|
405
|
+
align-items: center;
|
|
406
|
+
justify-content: center;
|
|
407
|
+
font-size: 12px;
|
|
408
|
+
font-weight: 600;
|
|
409
|
+
cursor: pointer;
|
|
410
|
+
overflow: hidden;
|
|
411
|
+
border: 2px solid transparent;
|
|
412
|
+
transition: border-color 0.15s ease;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.appbar-user__avatar:hover {
|
|
416
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.appbar-user__avatar img {
|
|
420
|
+
width: 100%;
|
|
421
|
+
height: 100%;
|
|
422
|
+
object-fit: cover;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* User Menu */
|
|
426
|
+
.appbar-user__menu {
|
|
427
|
+
position: absolute;
|
|
428
|
+
right: 0;
|
|
429
|
+
top: calc(100% + 8px);
|
|
430
|
+
min-width: 200px;
|
|
431
|
+
background: var(--kr-shell-menu-bg);
|
|
432
|
+
border: 1px solid var(--kr-shell-menu-border);
|
|
433
|
+
border-radius: 8px;
|
|
434
|
+
padding: 8px;
|
|
435
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
436
|
+
z-index: 1000;
|
|
437
|
+
opacity: 0;
|
|
438
|
+
visibility: hidden;
|
|
439
|
+
transform: translateY(-8px);
|
|
440
|
+
transition: all 0.15s ease;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.appbar-user__menu--open {
|
|
444
|
+
opacity: 1;
|
|
445
|
+
visibility: visible;
|
|
446
|
+
transform: translateY(0);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.appbar-user__header {
|
|
450
|
+
padding: 8px 12px 12px;
|
|
451
|
+
border-bottom: 1px solid var(--kr-shell-menu-border);
|
|
452
|
+
margin-bottom: 8px;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.appbar-user__name {
|
|
456
|
+
font-size: 14px;
|
|
457
|
+
font-weight: 600;
|
|
458
|
+
color: #ffffff;
|
|
459
|
+
margin: 0 0 2px;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.appbar-user__email {
|
|
463
|
+
font-size: 12px;
|
|
464
|
+
color: rgba(255, 255, 255, 0.6);
|
|
465
|
+
margin: 0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.appbar-user__menu-item {
|
|
469
|
+
display: flex;
|
|
470
|
+
align-items: center;
|
|
471
|
+
gap: 10px;
|
|
472
|
+
width: 100%;
|
|
473
|
+
padding: 10px 12px;
|
|
474
|
+
background: none;
|
|
475
|
+
border: none;
|
|
476
|
+
color: rgba(255, 255, 255, 0.8);
|
|
477
|
+
font-size: 13px;
|
|
478
|
+
font-family: inherit;
|
|
479
|
+
text-align: left;
|
|
480
|
+
cursor: pointer;
|
|
481
|
+
border-radius: 6px;
|
|
482
|
+
transition: all 0.15s ease;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.appbar-user__menu-item:hover {
|
|
486
|
+
background: var(--kr-shell-menu-hover);
|
|
487
|
+
color: #ffffff;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.appbar-user__menu-item--danger {
|
|
491
|
+
color: #f87171;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.appbar-user__menu-item--danger:hover {
|
|
495
|
+
background: rgba(248, 113, 113, 0.1);
|
|
496
|
+
color: #f87171;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.appbar-user__menu-item__icon {
|
|
500
|
+
width: 16px;
|
|
501
|
+
height: 16px;
|
|
502
|
+
display: flex;
|
|
503
|
+
align-items: center;
|
|
504
|
+
justify-content: center;
|
|
505
|
+
flex-shrink: 0;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.appbar-user__menu-item__icon svg {
|
|
509
|
+
width: 100%;
|
|
510
|
+
height: 100%;
|
|
511
|
+
fill: currentColor;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.appbar-user__menu-divider {
|
|
515
|
+
height: 1px;
|
|
516
|
+
background: var(--kr-shell-menu-border);
|
|
517
|
+
margin: 8px 0;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/* Secondary App Bar */
|
|
521
|
+
.subbar {
|
|
522
|
+
height: 30px;
|
|
523
|
+
background: #364365;
|
|
524
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
525
|
+
display: flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
padding: 0 16px;
|
|
528
|
+
flex-shrink: 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.breadcrumbs {
|
|
532
|
+
display: flex;
|
|
533
|
+
align-items: center;
|
|
534
|
+
gap: 8px;
|
|
535
|
+
font-size: 12px;
|
|
536
|
+
color: #ffffff;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.breadcrumbs a {
|
|
540
|
+
color: #ffffff;
|
|
541
|
+
text-decoration: none;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.breadcrumbs a:hover {
|
|
545
|
+
text-decoration: underline;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.breadcrumbs__separator {
|
|
549
|
+
color: #ffffff;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* Main Content */
|
|
553
|
+
.main {
|
|
554
|
+
flex: 1;
|
|
555
|
+
min-height: 0;
|
|
556
|
+
display: flex;
|
|
557
|
+
flex-direction: column;
|
|
558
|
+
overflow: hidden;
|
|
559
|
+
position: relative;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* Click outside overlay */
|
|
563
|
+
.menu-backdrop {
|
|
564
|
+
position: fixed;
|
|
565
|
+
inset: 0;
|
|
566
|
+
z-index: 999;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/* Progress bar */
|
|
570
|
+
.progress {
|
|
571
|
+
position: fixed;
|
|
572
|
+
top: 0;
|
|
573
|
+
left: 0;
|
|
574
|
+
right: 0;
|
|
575
|
+
height: 4px;
|
|
576
|
+
overflow-x: hidden;
|
|
577
|
+
z-index: 1000;
|
|
578
|
+
display: none;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.progress--loading {
|
|
582
|
+
display: block;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.progress__track {
|
|
586
|
+
position: absolute;
|
|
587
|
+
top: 0;
|
|
588
|
+
bottom: 0;
|
|
589
|
+
width: 100%;
|
|
590
|
+
background: rgb(190 234 78 / 50%); // rgba(190, 234, 78, 0.3);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.progress__bar {
|
|
594
|
+
position: absolute;
|
|
595
|
+
top: 0;
|
|
596
|
+
bottom: 0;
|
|
597
|
+
width: 100%;
|
|
598
|
+
transform-origin: left center;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.progress__bar-inner {
|
|
602
|
+
display: inline-block;
|
|
603
|
+
position: absolute;
|
|
604
|
+
width: 100%;
|
|
605
|
+
height: 100%;
|
|
606
|
+
background: #beea4e;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.progress__bar--primary {
|
|
610
|
+
left: -145.166611%;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.progress--loading .progress__bar--primary {
|
|
614
|
+
animation: progress-primary-translate 2s infinite linear;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.progress--loading .progress__bar--primary .progress__bar-inner {
|
|
618
|
+
animation: progress-primary-scale 2s infinite linear;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.progress__bar--secondary {
|
|
622
|
+
left: -54.888891%;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.progress--loading .progress__bar--secondary {
|
|
626
|
+
animation: progress-secondary-translate 2s infinite linear;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.progress--loading .progress__bar--secondary .progress__bar-inner {
|
|
630
|
+
animation: progress-secondary-scale 2s infinite linear;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
@keyframes progress-primary-translate {
|
|
634
|
+
0% {
|
|
635
|
+
transform: translateX(0);
|
|
636
|
+
}
|
|
637
|
+
20% {
|
|
638
|
+
animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
|
|
639
|
+
transform: translateX(0);
|
|
640
|
+
}
|
|
641
|
+
59.15% {
|
|
642
|
+
animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
|
|
643
|
+
transform: translateX(83.67142%);
|
|
644
|
+
}
|
|
645
|
+
100% {
|
|
646
|
+
transform: translateX(200.611057%);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
@keyframes progress-primary-scale {
|
|
651
|
+
0% {
|
|
652
|
+
transform: scaleX(0.08);
|
|
653
|
+
}
|
|
654
|
+
36.65% {
|
|
655
|
+
animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);
|
|
656
|
+
transform: scaleX(0.08);
|
|
657
|
+
}
|
|
658
|
+
69.15% {
|
|
659
|
+
animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);
|
|
660
|
+
transform: scaleX(0.661479);
|
|
661
|
+
}
|
|
662
|
+
100% {
|
|
663
|
+
transform: scaleX(0.08);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
@keyframes progress-secondary-translate {
|
|
668
|
+
0% {
|
|
669
|
+
animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);
|
|
670
|
+
transform: translateX(0);
|
|
671
|
+
}
|
|
672
|
+
25% {
|
|
673
|
+
animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);
|
|
674
|
+
transform: translateX(37.651913%);
|
|
675
|
+
}
|
|
676
|
+
48.35% {
|
|
677
|
+
animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);
|
|
678
|
+
transform: translateX(84.386165%);
|
|
679
|
+
}
|
|
680
|
+
100% {
|
|
681
|
+
transform: translateX(160.277782%);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
@keyframes progress-secondary-scale {
|
|
686
|
+
0% {
|
|
687
|
+
animation-timing-function: cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);
|
|
688
|
+
transform: scaleX(0.08);
|
|
689
|
+
}
|
|
690
|
+
19.15% {
|
|
691
|
+
animation-timing-function: cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);
|
|
692
|
+
transform: scaleX(0.457104);
|
|
693
|
+
}
|
|
694
|
+
44.15% {
|
|
695
|
+
animation-timing-function: cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);
|
|
696
|
+
transform: scaleX(0.72796);
|
|
697
|
+
}
|
|
698
|
+
100% {
|
|
699
|
+
transform: scaleX(0.08);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
`,ye([he({type:String})],e.KRShell.prototype,"logo",void 0),ye([he({type:Array})],e.KRShell.prototype,"apps",void 0),ye([he({type:String,attribute:"active-app-id"})],e.KRShell.prototype,"activeAppId",void 0),ye([he({type:Object})],e.KRShell.prototype,"user",void 0),ye([he({type:Array,attribute:"menu-items"})],e.KRShell.prototype,"menuItems",void 0),ye([ue()],e.KRShell.prototype,"isUserMenuOpen",void 0),ye([ue()],e.KRShell.prototype,"isAppsMenuOpen",void 0),ye([ue()],e.KRShell.prototype,"pendingRequests",void 0),e.KRShell=ye([de("kr-shell")],e.KRShell);class $e{constructor(){this._url="https://content.kodaris.com"}static getInstance(){return $e._instance||($e._instance=new $e),$e._instance}fetch(e){let t,i,r=e.url;return 0!==r.indexOf("http")&&(r=this._url+r),e.params&&(r+="?",Object.keys(e.params).forEach(((t,i)=>{i>0&&(r+="&"),r+=`${t}=${e.params[t]}`}))),e||(e={}),e.headers||(e.headers={}),e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json"),e.credentials="include",t=r.indexOf("/api/user/")>-1||r.indexOf("/api/customer/")>-1?fetch(`${this._url}/api/user/customer/authToken`,{credentials:"include"}):Promise.resolve(null),t.then((e=>e?.json())).then((t=>(t?.data&&(e.headers["X-CSRF-TOKEN"]=t.data),fetch(r,e)))).then((e=>(i=e,e.json()))).then((e=>i?.ok?Promise.resolve(e):Promise.reject(e)))}}$e._instance=null;var ke=function(e,t,i,r){var s,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,i,n):s(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let we=class extends oe{constructor(){super(...arguments),this.label="",this.icon="",this.url="",this.active=!0}connectedCallback(){super.connectedCallback(),this.data&&(this.label=this.data.label||"",this.icon=this.data.icon||"",this.url=this.data.url||"",this.active=!1!==this.data.active)}handleLabelInput(e){const t=e.target;this.label=t.value}handleIconInput(e){const t=e.target;this.icon=t.value}handleUrlInput(e){const t=e.target;this.url=t.value}handleActiveChange(e){this.active=e.target.checked}handleCancel(){this.dialogRef.close(void 0)}handleSave(){this.dialogRef.close({label:this.label,icon:this.icon||void 0,url:this.url||void 0,active:this.active})}handleKeyDown(e){"Enter"===e.key&&this.handleSave()}render(){return L`
|
|
703
|
+
<h2>Edit Navigation Item</h2>
|
|
704
|
+
|
|
705
|
+
<div class="form-group">
|
|
706
|
+
<kr-text-field
|
|
707
|
+
label="Label"
|
|
708
|
+
name="label"
|
|
709
|
+
.value=${this.label}
|
|
710
|
+
@input=${this.handleLabelInput}
|
|
711
|
+
@keydown=${this.handleKeyDown}
|
|
712
|
+
placeholder="Enter label"
|
|
713
|
+
></kr-text-field>
|
|
714
|
+
</div>
|
|
715
|
+
|
|
716
|
+
<div class="form-group">
|
|
717
|
+
<kr-text-field
|
|
718
|
+
label="Icon (emoji or SVG)"
|
|
719
|
+
name="icon"
|
|
720
|
+
.value=${this.icon}
|
|
721
|
+
@input=${this.handleIconInput}
|
|
722
|
+
@keydown=${this.handleKeyDown}
|
|
723
|
+
placeholder="e.g. 📊 or <svg>...</svg>"
|
|
724
|
+
></kr-text-field>
|
|
725
|
+
</div>
|
|
726
|
+
|
|
727
|
+
<div class="form-group">
|
|
728
|
+
<kr-text-field
|
|
729
|
+
label="URL"
|
|
730
|
+
name="url"
|
|
731
|
+
.value=${this.url}
|
|
732
|
+
@input=${this.handleUrlInput}
|
|
733
|
+
@keydown=${this.handleKeyDown}
|
|
734
|
+
placeholder="e.g. /ci/my-page or https://..."
|
|
735
|
+
></kr-text-field>
|
|
736
|
+
</div>
|
|
737
|
+
|
|
738
|
+
<div class="form-group">
|
|
739
|
+
<div class="checkbox-group">
|
|
740
|
+
<input
|
|
741
|
+
type="checkbox"
|
|
742
|
+
id="active"
|
|
743
|
+
.checked=${this.active}
|
|
744
|
+
@change=${this.handleActiveChange}
|
|
745
|
+
/>
|
|
746
|
+
<label class="checkbox-label" for="active">Visible in navigation</label>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
|
|
750
|
+
<div class="actions">
|
|
751
|
+
<button class="btn-cancel" @click=${this.handleCancel}>Cancel</button>
|
|
752
|
+
<button class="btn-save" @click=${this.handleSave}>Save</button>
|
|
753
|
+
</div>
|
|
754
|
+
`}};we.styles=o`
|
|
755
|
+
:host {
|
|
756
|
+
display: block;
|
|
757
|
+
width: 360px;
|
|
758
|
+
padding: 24px;
|
|
759
|
+
color: rgba(255, 255, 255, 0.9);
|
|
760
|
+
|
|
761
|
+
/* Dark theme for kr-text-field */
|
|
762
|
+
--kr-text-field-label-color: rgba(255, 255, 255, 0.7);
|
|
763
|
+
--kr-text-field-border-color: rgba(255, 255, 255, 0.1);
|
|
764
|
+
--kr-text-field-bg: rgba(255, 255, 255, 0.05);
|
|
765
|
+
--kr-text-field-color: #ffffff;
|
|
766
|
+
--kr-text-field-focus-border-color: #beea4e;
|
|
767
|
+
--kr-text-field-focus-ring-color: rgba(190, 234, 78, 0.1);
|
|
768
|
+
--kr-text-field-placeholder-color: rgba(255, 255, 255, 0.3);
|
|
769
|
+
--kr-text-field-helper-color: rgba(255, 255, 255, 0.5);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
h2 {
|
|
773
|
+
margin: 0 0 24px 0;
|
|
774
|
+
font-size: 18px;
|
|
775
|
+
font-weight: 600;
|
|
776
|
+
color: #ffffff;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.form-group {
|
|
780
|
+
margin-bottom: 20px;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.checkbox-group {
|
|
784
|
+
display: flex;
|
|
785
|
+
align-items: center;
|
|
786
|
+
gap: 10px;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
input[type="checkbox"] {
|
|
790
|
+
width: 18px;
|
|
791
|
+
height: 18px;
|
|
792
|
+
accent-color: #beea4e;
|
|
793
|
+
cursor: pointer;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.checkbox-label {
|
|
797
|
+
font-size: 14px;
|
|
798
|
+
color: rgba(255, 255, 255, 0.9);
|
|
799
|
+
cursor: pointer;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
.actions {
|
|
803
|
+
display: flex;
|
|
804
|
+
gap: 12px;
|
|
805
|
+
justify-content: flex-end;
|
|
806
|
+
margin-top: 28px;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
button {
|
|
810
|
+
padding: 10px 20px;
|
|
811
|
+
border-radius: 6px;
|
|
812
|
+
font-size: 14px;
|
|
813
|
+
font-weight: 500;
|
|
814
|
+
font-family: inherit;
|
|
815
|
+
cursor: pointer;
|
|
816
|
+
transition: all 0.15s ease;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.btn-cancel {
|
|
820
|
+
background: rgba(255, 255, 255, 0.05);
|
|
821
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
822
|
+
color: rgba(255, 255, 255, 0.8);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.btn-cancel:hover {
|
|
826
|
+
background: rgba(255, 255, 255, 0.1);
|
|
827
|
+
color: #ffffff;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.btn-save {
|
|
831
|
+
background: #beea4e;
|
|
832
|
+
border: none;
|
|
833
|
+
color: #10172a;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.btn-save:hover {
|
|
837
|
+
background: #d4f472;
|
|
838
|
+
}
|
|
839
|
+
`,ke([ue()],we.prototype,"label",void 0),ke([ue()],we.prototype,"icon",void 0),ke([ue()],we.prototype,"url",void 0),ke([ue()],we.prototype,"active",void 0),we=ke([de("kr-nav-item-edit")],we);var Ie=function(e,t,i,r){var s,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,i,n):s(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};e.KRScaffold=class extends oe{constructor(){super(),this.http=$e.getInstance(),this.defaultNavItemIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="10"/></svg>',this.navItemsExpanded=new Set,this.navQuery="",this.activeNavItemId=null,this.isNavScrolled=!1,this.isNavOpened=!0,this.isEditing=!1,this.isUserMenuOpen=!1,this.pref={nav:{}},this.draggedNavItemId=null,this.navItemDropTargetId=null,this.navItemDropPosition="above",this.pendingRequests=0,this.originalFetch=null,this.originalXhrOpen=null,this.navItemDragPreview=null,this.navItemDragStartY=0,this.isNavItemDragging=!1,this.navItemDragExpandTimeout=null,this.navInitialized=!1,this.logo="",this.title="",this.scheme="light",this.nav=[],this.navIconsDisplayed=!1,this.navExpanded=!1,this.user=null,this.subbar=!1,this.breadcrumbs=[],this.boundHandleMouseMove=this.handleMouseMove.bind(this),this.boundHandleMouseUp=this.handleMouseUp.bind(this)}connectedCallback(){super.connectedCallback(),this.loadPref(),this.installFetchInterceptor()}updated(e){super.updated(e),e.has("nav")&&this.nav.length>0&&(this.updateActiveNavItem(),this.navExpanded&&!this.navInitialized&&(this.navInitialized=!0,this.getComputedNav().filter((e=>"group"===e.type)).forEach((e=>this.navItemsExpanded.add(e.id)))))}disconnectedCallback(){super.disconnectedCallback(),this.uninstallFetchInterceptor()}installFetchInterceptor(){if(this.originalFetch)return;const e=this;this.originalFetch=window.fetch.bind(window);const t=this.originalFetch;window.fetch=function(...i){return e.pendingRequests++,t(...i).finally((()=>{e.pendingRequests--}))},this.originalXhrOpen=XMLHttpRequest.prototype.open;const i=this.originalXhrOpen;XMLHttpRequest.prototype.open=function(t,r,s=!0,a,n){return e.pendingRequests++,this.addEventListener("loadend",(()=>{e.pendingRequests--}),{once:!0}),i.call(this,t,r,s,a,n)}}uninstallFetchInterceptor(){this.originalFetch&&(window.fetch=this.originalFetch,this.originalFetch=null),this.originalXhrOpen&&(XMLHttpRequest.prototype.open=this.originalXhrOpen,this.originalXhrOpen=null)}getComputedNav(){const e=[];return this.nav.forEach(((t,i)=>{const r=this.pref.nav[t.id];e.push({...t,...r,order:r?.order??t.order??i,parentId:r?.parentId??null}),"group"===t.type&&t.children&&t.children.forEach(((i,r)=>{const s=this.pref.nav[i.id];e.push({...i,...s,order:s?.order??i.order??r,parentId:void 0!==s?.parentId?s.parentId:t.id})}))})),Object.entries(this.pref.nav).forEach((([t,i])=>{t.startsWith("custom")&&i.type&&i.label&&e.push({id:t,type:i.type,label:i.label,icon:i.icon,url:i.url,active:i.active,order:i.order??e.length,parentId:i.parentId??null})})),e}getNavItemChildren(e){let t=this.getComputedNav().filter((t=>t.parentId===e)).sort(((e,t)=>e.order-t.order));if(this.isEditing||(t=t.filter((e=>!1!==e.active))),this.navQuery){const e=this.navQuery.toLowerCase(),i=this.getComputedNav();t=t.filter((t=>"group"===t.type?t.label.toLowerCase().includes(e)||i.some((i=>i.parentId===t.id&&!1!==i.active&&i.label.toLowerCase().includes(e))):t.label.toLowerCase().includes(e)))}return t}handleNavQueryChange(e){this.navQuery=e.target.value,this.navQuery?this.getComputedNav().forEach((e=>{"group"===e.type&&this.navItemsExpanded.add(e.id)})):this.navItemsExpanded.clear()}handleNavQueryClear(){this.navQuery="",this.navItemsExpanded.clear()}handleMenuClick(){this.isNavOpened=!this.isNavOpened}handleNavScroll(e){this.isNavScrolled=e.target.scrollTop>0}toggleNavItem(e){const t=this.shadowRoot?.querySelector(`.nav-item[data-id="${e}"]`),i=t?.nextElementSibling;i&&(this.navItemsExpanded.has(e)?(this.navItemsExpanded.delete(e),i.animate([{height:`${i.scrollHeight}px`},{height:"0px"}],{duration:300,easing:"ease-in-out"}).onfinish=()=>{i.classList.remove("nav-group--expanded")}):(this.navItemsExpanded.add(e),i.classList.add("nav-group--expanded"),i.animate([{height:"0px"},{height:`${i.scrollHeight}px`}],{duration:300,easing:"ease-in-out"})),this.requestUpdate())}handleNavItemClick(e,t){if("group"===t.type)this.toggleNavItem(t.id);else{const i=new CustomEvent("nav-item-click",{detail:{item:t},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(i),i.defaultPrevented&&e.preventDefault()}}updateActiveNavItem(){const e=window.location.pathname,t=this.getComputedNav().filter((e=>"item"===e.type&&e.url));let i=null,r=0;for(const s of t){const t=s.url;e.startsWith(t)&&t.length>r&&(i=s,r=t.length)}i?(this.activeNavItemId=i.id,i.parentId&&this.navItemsExpanded.add(i.parentId)):this.activeNavItemId=null}startEditing(){this.isEditing=!0}cancelEditing(){this.isEditing=!1,this.loadPref()}resetPref(){this.pref.nav={}}savePref(){const e=this.pref.uuid?`/api/system/preference/json/scaffold/${this.pref.uuid}?global=true`:"/api/system/preference/json/scaffold?global=true";this.http.fetch({url:e,method:this.pref.uuid?"PUT":"POST",body:JSON.stringify({nav:this.pref.nav})}).then((e=>{this.pref=e.data,this.isEditing=!1})).catch((e=>{console.error("Failed to save nav customizations:",e)}))}loadPref(){this.http.fetch({url:"/api/system/preference/json/scaffold?global=true",method:"GET"}).then((e=>{const t=e?.data?.[0];t&&(this.pref=t)})).catch((()=>{}))}handleNavItemContextMenu(e,i){this.isEditing&&(e.preventDefault(),t.KRContextMenu.open({x:e.clientX,y:e.clientY,items:[{id:"edit",label:"Edit Item"},{id:"divider-1",label:"",divider:!0},{id:"add-above",label:"Add Item Above"},{id:"add-below",label:"Add Item Below"}]}).then((e=>{if(e)switch(e.id){case"edit":this.openNavItemEdit(i);break;case"add-above":this.addNavItem(i,"above");break;case"add-below":this.addNavItem(i,"below")}})))}openNavItemEdit(e){t.KRDialog.open(we,{data:e}).afterClosed().then((t=>{const i=t;i&&(this.pref.nav[e.id]||(this.pref.nav[e.id]={}),this.pref.nav[e.id]={...this.pref.nav[e.id],...i},this.requestUpdate())}))}addNavItem(e,t){const i=`custom-${Date.now()}`,r=this.getComputedNav().filter((t=>t.parentId===e.parentId)).sort(((e,t)=>e.order-t.order)),s=r.findIndex((t=>t.id===e.id)),a="above"===t?s:s+1;r.forEach(((e,t)=>{t>=a&&(this.pref.nav[e.id]||(this.pref.nav[e.id]={}),this.pref.nav[e.id].order=t+1)}));const n={id:i,type:"item",label:"New Item",order:a,parentId:e.parentId,active:!0};this.pref.nav[i]=n,this.requestUpdate(),this.openNavItemEdit(n)}handleNavItemMouseDown(e,t){this.isEditing&&(e.preventDefault(),this.draggedNavItemId=t.id,this.navItemDragStartY=e.clientY,this.isNavItemDragging=!1,document.addEventListener("mousemove",this.boundHandleMouseMove),document.addEventListener("mouseup",this.boundHandleMouseUp))}handleMouseMove(e){if(this.draggedNavItemId){if(!this.isNavItemDragging&&Math.abs(e.clientY-this.navItemDragStartY)>5){this.isNavItemDragging=!0,this.classList.add("kr-scaffold--dragging");const t=this.getComputedNav().find((e=>e.id===this.draggedNavItemId));t&&(this.navItemDragPreview=document.createElement("div"),this.navItemDragPreview.className="nav-item-drag-preview",this.navItemDragPreview.textContent=t.label,this.navItemDragPreview.style.left=`${e.clientX+10}px`,this.navItemDragPreview.style.top=e.clientY-20+"px",this.shadowRoot?.appendChild(this.navItemDragPreview))}this.isNavItemDragging&&(this.navItemDragPreview&&(this.navItemDragPreview.style.left=`${e.clientX+10}px`,this.navItemDragPreview.style.top=e.clientY-20+"px"),this.updateNavItemDropTarget(e))}}handleMouseUp(){document.removeEventListener("mousemove",this.boundHandleMouseMove),document.removeEventListener("mouseup",this.boundHandleMouseUp),this.isNavItemDragging&&this.navItemDropTargetId&&this.executeNavItemDrop(),this.draggedNavItemId=null,this.navItemDropTargetId=null,this.isNavItemDragging=!1,this.classList.remove("kr-scaffold--dragging"),this.navItemDragPreview&&(this.navItemDragPreview.remove(),this.navItemDragPreview=null),this.clearNavItemDragExpandTimeout(),this.requestUpdate()}updateNavItemDropTarget(e){const t=this.shadowRoot?.querySelectorAll(".nav-item[data-id]");if(!t)return;let i=!1;t.forEach((t=>{const r=t.getBoundingClientRect(),s=t.getAttribute("data-id");if(!s||s===this.draggedNavItemId)return;if(e.clientX<r.left||e.clientX>r.right||e.clientY<r.top||e.clientY>r.bottom)return;const a=this.getComputedNav().find((e=>e.id===s));if(!a)return;const n=e.clientY-r.top;let o;"group"===a.type?n<r.height/3?(o="above",this.clearNavItemDragExpandTimeout()):n>2*r.height/3?(o="below",this.clearNavItemDragExpandTimeout()):(o="center",this.navItemsExpanded.has(a.id)||this.navItemDragExpandTimeout||this.expandNavGroupOnDrag(a.id)):(o=n<r.height/2?"above":"below",this.clearNavItemDragExpandTimeout());const l="center"===o?a.id:a.parentId,d=this.getComputedNav().find((e=>e.id===this.draggedNavItemId));if(l===this.draggedNavItemId||"group"===d?.type&&null!==l)return this.navItemDropTargetId=null,void this.clearNavItemDragExpandTimeout();this.navItemDropTargetId=a.id,this.navItemDropPosition=o,i=!0})),i||(this.navItemDropTargetId=null,this.clearNavItemDragExpandTimeout()),this.requestUpdate()}clearNavItemDragExpandTimeout(){this.navItemDragExpandTimeout&&(clearTimeout(this.navItemDragExpandTimeout),this.navItemDragExpandTimeout=null)}expandNavGroupOnDrag(e){this.navItemDragExpandTimeout=window.setTimeout((()=>{this.navItemDropTargetId===e&&"center"===this.navItemDropPosition&&(this.navItemsExpanded.add(e),this.requestUpdate()),this.navItemDragExpandTimeout=null}),500)}executeNavItemDrop(){if(!this.draggedNavItemId||!this.navItemDropTargetId)return;const e=this.getComputedNav(),t=e.find((e=>e.id===this.draggedNavItemId)),i=e.find((e=>e.id===this.navItemDropTargetId));if(!t||!i)return;let r;if("center"===this.navItemDropPosition&&"group"===i.type){if(i.id===this.draggedNavItemId)return;r=i.id}else r=i.parentId;if(r===this.draggedNavItemId)return;const s=e.filter((e=>e.parentId===r&&e.id!==this.draggedNavItemId)).sort(((e,t)=>e.order-t.order)),a=this.pref.nav;let n;if("center"===this.navItemDropPosition)n=s.length>0?Math.max(...s.map((e=>e.order)))+1:0;else{const e=s.findIndex((e=>e.id===i.id));n=-1===e?0:"above"===this.navItemDropPosition?e:e+1,s.forEach(((e,t)=>{a[e.id]||(a[e.id]={}),a[e.id].order=t>=n?t+1:t}))}a[this.draggedNavItemId]||(a[this.draggedNavItemId]={}),a[this.draggedNavItemId].order=n,a[this.draggedNavItemId].parentId=r,this.pref.nav=a,this.requestUpdate()}toggleUserMenu(){this.isUserMenuOpen=!this.isUserMenuOpen}closeUserMenu(){this.isUserMenuOpen=!1}handleCustomize(){this.closeUserMenu(),this.startEditing()}renderNormalFooter(){if(!this.user)return F;const e=this.user.name.split(" ").map((e=>e[0])).join("").toUpperCase().slice(0,2);return L`
|
|
840
|
+
<div class="user-menu-container">
|
|
841
|
+
${this.isUserMenuOpen?L`
|
|
842
|
+
<div class="user-menu">
|
|
843
|
+
<button class="user-menu__item" @click=${this.handleCustomize}>
|
|
844
|
+
Customize Navigation
|
|
845
|
+
</button>
|
|
846
|
+
</div>
|
|
847
|
+
`:F}
|
|
848
|
+
<div class="user" @click=${this.toggleUserMenu}>
|
|
849
|
+
<div class="user__avatar">
|
|
850
|
+
${this.user.avatar?L`<img src=${this.user.avatar} alt=${this.user.name} />`:e}
|
|
851
|
+
</div>
|
|
852
|
+
<div class="user__info">
|
|
853
|
+
<div class="user__name">${this.user.name}</div>
|
|
854
|
+
${this.user.email?L`<div class="user__email">${this.user.email}</div>`:F}
|
|
855
|
+
</div>
|
|
856
|
+
</div>
|
|
857
|
+
</div>
|
|
858
|
+
`}renderEditFooter(){return L`
|
|
859
|
+
<div class="edit-actions">
|
|
860
|
+
<button class="edit-actions__btn edit-actions__btn--primary" @click=${this.savePref}>
|
|
861
|
+
Save
|
|
862
|
+
</button>
|
|
863
|
+
<div class="edit-actions__secondary">
|
|
864
|
+
<button class="edit-actions__btn" @click=${this.resetPref}>
|
|
865
|
+
Reset
|
|
866
|
+
</button>
|
|
867
|
+
<button class="edit-actions__btn" @click=${this.cancelEditing}>
|
|
868
|
+
Cancel
|
|
869
|
+
</button>
|
|
870
|
+
</div>
|
|
871
|
+
</div>
|
|
872
|
+
`}renderNavItem(e,t=!1){if("section"===e.type)return L`
|
|
873
|
+
<div class="nav-section">${e.label}</div>
|
|
874
|
+
`;if("group"===e.type){const t=this.getNavItemChildren(e.id);return L`
|
|
875
|
+
<button
|
|
876
|
+
class=${be({"nav-item":!0,"nav-item--expanded":this.navItemsExpanded.has(e.id),"nav-item--hidden":this.isEditing&&!1===e.active,"nav-item--drop-above":this.navItemDropTargetId===e.id&&"above"===this.navItemDropPosition,"nav-item--drop-below":this.navItemDropTargetId===e.id&&"below"===this.navItemDropPosition,"nav-item--drop-center":this.navItemDropTargetId===e.id&&"center"===this.navItemDropPosition})}
|
|
877
|
+
data-id="${e.id}"
|
|
878
|
+
@mousedown=${t=>this.handleNavItemMouseDown(t,e)}
|
|
879
|
+
@click=${t=>this.handleNavItemClick(t,e)}
|
|
880
|
+
@contextmenu=${t=>this.handleNavItemContextMenu(t,e)}
|
|
881
|
+
>
|
|
882
|
+
${this.navIconsDisplayed?L`<span class="nav-item__icon">${_e(e.icon||this.defaultNavItemIcon)}</span>`:F}
|
|
883
|
+
<span class="nav-item__label">${e.label}</span>
|
|
884
|
+
<svg
|
|
885
|
+
class="nav-item__chevron"
|
|
886
|
+
viewBox="0 0 24 24"
|
|
887
|
+
fill="none"
|
|
888
|
+
stroke="currentColor"
|
|
889
|
+
stroke-width="2"
|
|
890
|
+
>
|
|
891
|
+
<path d="M6 9l6 6 6-6" stroke-linecap="round" stroke-linejoin="round" />
|
|
892
|
+
</svg>
|
|
893
|
+
</button>
|
|
894
|
+
<div class=${be({"nav-group":!0,"nav-group--expanded":this.navItemsExpanded.has(e.id)})}>
|
|
895
|
+
${t.map((e=>this.renderNavItem(e,!0)))}
|
|
896
|
+
</div>
|
|
897
|
+
`}return L`
|
|
898
|
+
<a
|
|
899
|
+
class=${be({"nav-item":!0,"nav-item--active":this.activeNavItemId===e.id,"nav-item--hidden":this.isEditing&&!1===e.active,"nav-item--drop-above":this.navItemDropTargetId===e.id&&"above"===this.navItemDropPosition,"nav-item--drop-below":this.navItemDropTargetId===e.id&&"below"===this.navItemDropPosition})}
|
|
900
|
+
data-id="${e.id}"
|
|
901
|
+
href=${e.url||"#"}
|
|
902
|
+
@mousedown=${t=>this.handleNavItemMouseDown(t,e)}
|
|
903
|
+
@click=${t=>this.handleNavItemClick(t,e)}
|
|
904
|
+
@contextmenu=${t=>this.handleNavItemContextMenu(t,e)}
|
|
905
|
+
>
|
|
906
|
+
${this.navIconsDisplayed&&!t?L`<span class="nav-item__icon">${_e(e.icon||this.defaultNavItemIcon)}</span>`:F}
|
|
907
|
+
<span class="nav-item__label">${e.label}</span>
|
|
908
|
+
</a>
|
|
909
|
+
`}render(){const e=this.getNavItemChildren(null),t=this.getComputedNav().filter((e=>null===e.parentId)).length;return L`
|
|
910
|
+
<div class=${be({progress:!0,"progress--loading":this.pendingRequests>0})}>
|
|
911
|
+
<div class="progress__track"></div>
|
|
912
|
+
<div class="progress__bar progress__bar--primary">
|
|
913
|
+
<span class="progress__bar-inner"></span>
|
|
914
|
+
</div>
|
|
915
|
+
<div class="progress__bar progress__bar--secondary">
|
|
916
|
+
<span class="progress__bar-inner"></span>
|
|
917
|
+
</div>
|
|
918
|
+
</div>
|
|
919
|
+
|
|
920
|
+
${this.subbar?L`
|
|
921
|
+
<kr-subbar menu .breadcrumbs=${this.breadcrumbs} @menu-click=${this.handleMenuClick}>
|
|
922
|
+
<slot name="subbar"></slot>
|
|
923
|
+
</kr-subbar>
|
|
924
|
+
`:F}
|
|
925
|
+
|
|
926
|
+
<div class="wrapper">
|
|
927
|
+
<nav class=${be({nav:!0,"nav--scrolled":this.isNavScrolled,"nav--opened":!this.subbar||this.isNavOpened})}>
|
|
928
|
+
<div class="nav-header">
|
|
929
|
+
${this.title?L`<span class="nav-title">${this.title}</span>`:this.logo?L`<img class="nav-logo" src=${this.logo} alt="Logo" />`:F}
|
|
930
|
+
</div>
|
|
931
|
+
<div class="nav-content" @scroll=${this.handleNavScroll}>
|
|
932
|
+
${t>20?L`
|
|
933
|
+
<div class="nav-search">
|
|
934
|
+
<div class="nav-search__wrapper">
|
|
935
|
+
<span class="nav-search__icon">
|
|
936
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
937
|
+
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
|
|
938
|
+
</svg>
|
|
939
|
+
</span>
|
|
940
|
+
<input
|
|
941
|
+
class="nav-search__input"
|
|
942
|
+
type="text"
|
|
943
|
+
placeholder="Search..."
|
|
944
|
+
.value=${this.navQuery}
|
|
945
|
+
@input=${this.handleNavQueryChange}
|
|
946
|
+
/>
|
|
947
|
+
${this.navQuery?L`
|
|
948
|
+
<button class="nav-search__clear" @click=${this.handleNavQueryClear}>
|
|
949
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
950
|
+
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
|
|
951
|
+
</svg>
|
|
952
|
+
</button>
|
|
953
|
+
`:F}
|
|
954
|
+
</div>
|
|
955
|
+
</div>
|
|
956
|
+
`:F}
|
|
957
|
+
<div class="nav-items">
|
|
958
|
+
${e.map((e=>this.renderNavItem(e)))}
|
|
959
|
+
</div>
|
|
960
|
+
</div>
|
|
961
|
+
<!-- <div class="nav-footer">
|
|
962
|
+
${this.isEditing?this.renderEditFooter():this.renderNormalFooter()}
|
|
963
|
+
</div> -->
|
|
964
|
+
</nav>
|
|
965
|
+
|
|
966
|
+
<main class="main">
|
|
967
|
+
<slot></slot>
|
|
968
|
+
</main>
|
|
969
|
+
</div>
|
|
970
|
+
|
|
971
|
+
`}},e.KRScaffold.styles=o`
|
|
972
|
+
:host {
|
|
973
|
+
display: flex;
|
|
974
|
+
flex-direction: column;
|
|
975
|
+
width: 100%;
|
|
976
|
+
height: 100%;
|
|
977
|
+
font-size: 14px;
|
|
978
|
+
--kr-scaffold-nav-width: 210px;
|
|
979
|
+
|
|
980
|
+
/* Default to light scheme */
|
|
981
|
+
--kr-scaffold-nav-bg: #ffffff;
|
|
982
|
+
--kr-scaffold-nav-text: #000000;
|
|
983
|
+
--kr-scaffold-nav-text-active: #000000;
|
|
984
|
+
--kr-scaffold-nav-hover: #f3f4f6;
|
|
985
|
+
--kr-scaffold-nav-active-bg: #e5e7eb;
|
|
986
|
+
--kr-scaffold-nav-border: rgb(229, 229, 228);
|
|
987
|
+
--kr-scaffold-nav-divider: #e5e7eb;
|
|
988
|
+
--kr-scaffold-nav-search-bg: #f3f4f6;
|
|
989
|
+
--kr-scaffold-nav-search-focus-bg: #ffffff;
|
|
990
|
+
--kr-scaffold-nav-search-focus-border: #d1d5db;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/* Dark scheme */
|
|
994
|
+
:host([scheme="dark"]) {
|
|
995
|
+
--kr-scaffold-nav-bg: #10172a;
|
|
996
|
+
--kr-scaffold-nav-text: rgb(255 255 255 / 80%);
|
|
997
|
+
--kr-scaffold-nav-text-active: #ffffff;
|
|
998
|
+
--kr-scaffold-nav-hover: rgba(255, 255, 255, 0.05);
|
|
999
|
+
--kr-scaffold-nav-active-bg: rgb(255 255 255 / 12%);
|
|
1000
|
+
--kr-scaffold-nav-border: transparent;
|
|
1001
|
+
--kr-scaffold-nav-divider: rgba(255, 255, 255, 0.06);
|
|
1002
|
+
--kr-scaffold-nav-search-bg: rgba(255, 255, 255, 0.15);
|
|
1003
|
+
--kr-scaffold-nav-search-focus-bg: rgba(255, 255, 255, 0.2);
|
|
1004
|
+
--kr-scaffold-nav-search-focus-border: rgba(255, 255, 255, 0.3);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
*,
|
|
1008
|
+
*::before,
|
|
1009
|
+
*::after {
|
|
1010
|
+
box-sizing: border-box;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/* Nav */
|
|
1014
|
+
.nav {
|
|
1015
|
+
width: var(--kr-scaffold-nav-width);
|
|
1016
|
+
background: var(--kr-scaffold-nav-bg);
|
|
1017
|
+
color: var(--kr-scaffold-nav-text);
|
|
1018
|
+
display: flex;
|
|
1019
|
+
flex-direction: column;
|
|
1020
|
+
flex-shrink: 0;
|
|
1021
|
+
overflow: hidden;
|
|
1022
|
+
border-right: 1px solid var(--kr-scaffold-nav-border);
|
|
1023
|
+
transition: margin-left 0.3s ease;
|
|
1024
|
+
margin-left: calc(-1 * var(--kr-scaffold-nav-width));
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.nav--opened {
|
|
1028
|
+
margin-left: 0;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.wrapper {
|
|
1032
|
+
display: flex;
|
|
1033
|
+
flex: 1;
|
|
1034
|
+
min-height: 0;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.nav-header {
|
|
1038
|
+
height: 64px;
|
|
1039
|
+
padding: 0 20px;
|
|
1040
|
+
display: flex;
|
|
1041
|
+
align-items: center;
|
|
1042
|
+
position: relative;
|
|
1043
|
+
z-index: 1;
|
|
1044
|
+
transition: box-shadow 0.2s ease;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.nav--scrolled .nav-header {
|
|
1048
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.nav-logo {
|
|
1052
|
+
max-width: 100%;
|
|
1053
|
+
height: 32px;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.nav-title {
|
|
1057
|
+
font-size: 18px;
|
|
1058
|
+
font-weight: 600;
|
|
1059
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1060
|
+
letter-spacing: .2px;
|
|
1061
|
+
white-space: nowrap;
|
|
1062
|
+
overflow: hidden;
|
|
1063
|
+
text-overflow: ellipsis;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.nav-search {
|
|
1067
|
+
padding: 4px 0 8px;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
.nav-search__wrapper {
|
|
1071
|
+
display: flex;
|
|
1072
|
+
align-items: center;
|
|
1073
|
+
background: var(--kr-scaffold-nav-search-bg);
|
|
1074
|
+
border-radius: 8px;
|
|
1075
|
+
padding: 0 12px;
|
|
1076
|
+
height: 40px;
|
|
1077
|
+
gap: 8px;
|
|
1078
|
+
border: 1px solid transparent;
|
|
1079
|
+
transition: all 0.15s ease;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.nav-search__wrapper:focus-within {
|
|
1083
|
+
background: var(--kr-scaffold-nav-search-focus-bg);
|
|
1084
|
+
border-color: var(--kr-scaffold-nav-search-focus-border);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
.nav-search__icon {
|
|
1088
|
+
width: 18px;
|
|
1089
|
+
height: 18px;
|
|
1090
|
+
flex-shrink: 0;
|
|
1091
|
+
opacity: 0.6;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.nav-search__icon svg {
|
|
1095
|
+
width: 100%;
|
|
1096
|
+
height: 100%;
|
|
1097
|
+
fill: currentColor;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
.nav-search__input {
|
|
1101
|
+
flex: 1;
|
|
1102
|
+
background: none;
|
|
1103
|
+
border: none;
|
|
1104
|
+
outline: none;
|
|
1105
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1106
|
+
font-size: 13px;
|
|
1107
|
+
font-family: inherit;
|
|
1108
|
+
min-width: 0;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.nav-search__input::placeholder {
|
|
1112
|
+
color: var(--kr-scaffold-nav-text);
|
|
1113
|
+
opacity: 0.7;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
.nav-search__clear {
|
|
1117
|
+
width: 18px;
|
|
1118
|
+
height: 18px;
|
|
1119
|
+
padding: 0;
|
|
1120
|
+
background: none;
|
|
1121
|
+
border: none;
|
|
1122
|
+
color: var(--kr-scaffold-nav-text);
|
|
1123
|
+
cursor: pointer;
|
|
1124
|
+
display: flex;
|
|
1125
|
+
align-items: center;
|
|
1126
|
+
justify-content: center;
|
|
1127
|
+
opacity: 0.6;
|
|
1128
|
+
transition: opacity 0.15s ease;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.nav-search__clear:hover {
|
|
1132
|
+
opacity: 1;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.nav-search__clear svg {
|
|
1136
|
+
width: 100%;
|
|
1137
|
+
height: 100%;
|
|
1138
|
+
fill: currentColor;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.nav-content {
|
|
1142
|
+
flex: 1;
|
|
1143
|
+
overflow-y: auto;
|
|
1144
|
+
padding: 0 9px 0.75rem 8px;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
.nav-footer {
|
|
1148
|
+
padding: 12px;
|
|
1149
|
+
border-top: 1px solid var(--kr-scaffold-nav-divider);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
.user {
|
|
1153
|
+
display: flex;
|
|
1154
|
+
align-items: center;
|
|
1155
|
+
gap: 12px;
|
|
1156
|
+
padding: 8px;
|
|
1157
|
+
border-radius: 8px;
|
|
1158
|
+
cursor: pointer;
|
|
1159
|
+
transition: background 0.15s ease;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.user:hover {
|
|
1163
|
+
background: var(--kr-scaffold-nav-hover);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.user__avatar {
|
|
1167
|
+
width: 36px;
|
|
1168
|
+
height: 36px;
|
|
1169
|
+
border-radius: 50%;
|
|
1170
|
+
background: var(--kr-scaffold-avatar-bg, #beea4e);
|
|
1171
|
+
color: var(--kr-scaffold-avatar-text, #10172a);
|
|
1172
|
+
display: flex;
|
|
1173
|
+
align-items: center;
|
|
1174
|
+
justify-content: center;
|
|
1175
|
+
font-size: 14px;
|
|
1176
|
+
font-weight: 600;
|
|
1177
|
+
flex-shrink: 0;
|
|
1178
|
+
overflow: hidden;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.user__avatar img {
|
|
1182
|
+
width: 100%;
|
|
1183
|
+
height: 100%;
|
|
1184
|
+
object-fit: cover;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.user__info {
|
|
1188
|
+
flex: 1;
|
|
1189
|
+
min-width: 0;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.user__name {
|
|
1193
|
+
font-size: 13px;
|
|
1194
|
+
font-weight: 500;
|
|
1195
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1196
|
+
white-space: nowrap;
|
|
1197
|
+
overflow: hidden;
|
|
1198
|
+
text-overflow: ellipsis;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.user__email {
|
|
1202
|
+
font-size: 12px;
|
|
1203
|
+
color: var(--kr-scaffold-nav-text);
|
|
1204
|
+
white-space: nowrap;
|
|
1205
|
+
overflow: hidden;
|
|
1206
|
+
text-overflow: ellipsis;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
.user-menu-container {
|
|
1210
|
+
position: relative;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
.user-menu {
|
|
1214
|
+
position: absolute;
|
|
1215
|
+
bottom: 100%;
|
|
1216
|
+
left: 0;
|
|
1217
|
+
right: 0;
|
|
1218
|
+
margin-bottom: 8px;
|
|
1219
|
+
background: var(--kr-scaffold-nav-bg);
|
|
1220
|
+
border: 1px solid var(--kr-scaffold-nav-divider);
|
|
1221
|
+
border-radius: 8px;
|
|
1222
|
+
padding: 4px;
|
|
1223
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
.user-menu__item {
|
|
1227
|
+
display: block;
|
|
1228
|
+
width: 100%;
|
|
1229
|
+
padding: 10px 12px;
|
|
1230
|
+
background: none;
|
|
1231
|
+
border: none;
|
|
1232
|
+
color: var(--kr-scaffold-nav-text);
|
|
1233
|
+
font-size: 13px;
|
|
1234
|
+
font-family: inherit;
|
|
1235
|
+
text-align: left;
|
|
1236
|
+
cursor: pointer;
|
|
1237
|
+
border-radius: 6px;
|
|
1238
|
+
transition: background 0.15s ease;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.user-menu__item:hover {
|
|
1242
|
+
background: var(--kr-scaffold-nav-hover);
|
|
1243
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.user-menu__divider {
|
|
1247
|
+
height: 1px;
|
|
1248
|
+
background: var(--kr-scaffold-nav-divider);
|
|
1249
|
+
margin: 4px 0;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/* Main */
|
|
1253
|
+
.main {
|
|
1254
|
+
flex: 1;
|
|
1255
|
+
min-width: 0;
|
|
1256
|
+
overflow-y: auto;
|
|
1257
|
+
background: #ffffff;
|
|
1258
|
+
display: flex;
|
|
1259
|
+
flex-direction: column;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.breadcrumbs {
|
|
1263
|
+
height: 32px;
|
|
1264
|
+
padding: 0 1rem;
|
|
1265
|
+
display: flex;
|
|
1266
|
+
align-items: center;
|
|
1267
|
+
gap: 6px;
|
|
1268
|
+
font-size: 12px;
|
|
1269
|
+
color: #6b7280;
|
|
1270
|
+
background: #f9fafb;
|
|
1271
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1272
|
+
flex-shrink: 0;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
.breadcrumbs a {
|
|
1276
|
+
color: #6b7280;
|
|
1277
|
+
text-decoration: none;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
.breadcrumbs a:hover {
|
|
1281
|
+
color: #111827;
|
|
1282
|
+
text-decoration: underline;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
.breadcrumbs__separator {
|
|
1286
|
+
color: #d1d5db;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.breadcrumbs__current {
|
|
1290
|
+
color: #111827;
|
|
1291
|
+
font-weight: 500;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
.main__content {
|
|
1295
|
+
flex: 1;
|
|
1296
|
+
overflow-y: auto;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/* Nav Items */
|
|
1300
|
+
.nav-items {
|
|
1301
|
+
display: flex;
|
|
1302
|
+
flex-direction: column;
|
|
1303
|
+
gap: 2px;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.nav-item {
|
|
1307
|
+
display: flex;
|
|
1308
|
+
align-items: center;
|
|
1309
|
+
gap: 16px;
|
|
1310
|
+
padding: 0 12px;
|
|
1311
|
+
height: 32px;
|
|
1312
|
+
border-radius: 8px;
|
|
1313
|
+
color: var(--kr-scaffold-nav-text);
|
|
1314
|
+
text-decoration: none;
|
|
1315
|
+
cursor: pointer;
|
|
1316
|
+
border: none;
|
|
1317
|
+
background: none;
|
|
1318
|
+
width: 100%;
|
|
1319
|
+
text-align: left;
|
|
1320
|
+
font-size: 13px;
|
|
1321
|
+
font-weight: 400;
|
|
1322
|
+
font-family: inherit;
|
|
1323
|
+
transition: all 0.15s ease;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.nav-item:hover {
|
|
1327
|
+
background: #F3F7FC;
|
|
1328
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
.nav-item--active,
|
|
1332
|
+
.nav-item--active:hover {
|
|
1333
|
+
background: #e1e9f6;
|
|
1334
|
+
color: #1a2332;
|
|
1335
|
+
font-weight: 500;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.nav-item__icon {
|
|
1339
|
+
width: 16px;
|
|
1340
|
+
height: 16px;
|
|
1341
|
+
display: flex;
|
|
1342
|
+
align-items: center;
|
|
1343
|
+
justify-content: center;
|
|
1344
|
+
flex-shrink: 0;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.nav-item__icon svg {
|
|
1348
|
+
width: 16px;
|
|
1349
|
+
height: 16px;
|
|
1350
|
+
fill: currentColor;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.nav-item__label {
|
|
1354
|
+
flex: 1;
|
|
1355
|
+
white-space: nowrap;
|
|
1356
|
+
overflow: hidden;
|
|
1357
|
+
text-overflow: ellipsis;
|
|
1358
|
+
letter-spacing: 0.01em;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.nav-item__chevron {
|
|
1362
|
+
width: 16px;
|
|
1363
|
+
height: 16px;
|
|
1364
|
+
transition: transform 0.2s ease;
|
|
1365
|
+
transform: rotate(-90deg);
|
|
1366
|
+
stroke: currentColor;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.nav-item--expanded .nav-item__chevron {
|
|
1370
|
+
transform: rotate(0deg);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.nav-group {
|
|
1374
|
+
display: flex;
|
|
1375
|
+
flex-direction: column;
|
|
1376
|
+
overflow: hidden;
|
|
1377
|
+
height: 0;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
.nav-group--expanded {
|
|
1381
|
+
height: auto;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
.nav-group .nav-item {
|
|
1385
|
+
padding: 0 12px 0 44px;
|
|
1386
|
+
height: 32px;
|
|
1387
|
+
font-size: 13px;
|
|
1388
|
+
font-weight: 400;
|
|
1389
|
+
margin-top: 2px;
|
|
1390
|
+
flex-shrink: 0;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
.nav-group .nav-item:first-child {
|
|
1394
|
+
margin-top: 0;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/* Nav items in groups when icons are hidden */
|
|
1398
|
+
:host(:not([nav-icons-displayed])) .nav-group .nav-item {
|
|
1399
|
+
padding-left: 24px;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/* Sections */
|
|
1403
|
+
.nav-section {
|
|
1404
|
+
padding: 16px 12px 8px;
|
|
1405
|
+
font-size: 11px;
|
|
1406
|
+
font-weight: 600;
|
|
1407
|
+
text-transform: uppercase;
|
|
1408
|
+
letter-spacing: 0.05em;
|
|
1409
|
+
color: var(--kr-scaffold-nav-text);
|
|
1410
|
+
opacity: 0.6;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
.nav-section:first-child {
|
|
1414
|
+
padding-top: 0;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* Edit mode actions */
|
|
1418
|
+
.edit-actions {
|
|
1419
|
+
display: flex;
|
|
1420
|
+
flex-direction: column;
|
|
1421
|
+
gap: 8px;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
.edit-actions__btn {
|
|
1425
|
+
display: block;
|
|
1426
|
+
width: 100%;
|
|
1427
|
+
padding: 10px 12px;
|
|
1428
|
+
background: var(--kr-scaffold-nav-hover);
|
|
1429
|
+
border: none;
|
|
1430
|
+
color: var(--kr-scaffold-nav-text);
|
|
1431
|
+
font-size: 13px;
|
|
1432
|
+
font-weight: 500;
|
|
1433
|
+
font-family: inherit;
|
|
1434
|
+
cursor: pointer;
|
|
1435
|
+
border-radius: 6px;
|
|
1436
|
+
transition: background 0.15s ease;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.edit-actions__btn:hover {
|
|
1440
|
+
background: var(--kr-scaffold-nav-active-bg);
|
|
1441
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.edit-actions__btn--primary {
|
|
1445
|
+
background: #beea4e;
|
|
1446
|
+
color: #10172a;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
.edit-actions__btn--primary:hover {
|
|
1450
|
+
background: #d4f472;
|
|
1451
|
+
color: #10172a;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
.edit-actions__secondary {
|
|
1455
|
+
display: flex;
|
|
1456
|
+
gap: 8px;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.edit-actions__secondary .edit-actions__btn {
|
|
1460
|
+
flex: 1;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/* Hidden/inactive items in edit mode */
|
|
1464
|
+
.nav-item--hidden {
|
|
1465
|
+
opacity: 0.4;
|
|
1466
|
+
font-style: italic;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
.nav-item--hidden:hover {
|
|
1470
|
+
opacity: 0.6;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
/* Dragging state */
|
|
1474
|
+
:host(.kr-scaffold--dragging),
|
|
1475
|
+
:host(.kr-scaffold--dragging) * {
|
|
1476
|
+
cursor: grabbing;
|
|
1477
|
+
user-select: none;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
.nav-item-drag-preview {
|
|
1481
|
+
position: fixed;
|
|
1482
|
+
pointer-events: none;
|
|
1483
|
+
z-index: 1000;
|
|
1484
|
+
opacity: 0.9;
|
|
1485
|
+
background: var(--kr-scaffold-nav-bg);
|
|
1486
|
+
border: 1px solid var(--kr-scaffold-nav-divider);
|
|
1487
|
+
border-radius: 8px;
|
|
1488
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
1489
|
+
padding: 0 12px;
|
|
1490
|
+
height: 40px;
|
|
1491
|
+
min-width: 200px;
|
|
1492
|
+
display: flex;
|
|
1493
|
+
align-items: center;
|
|
1494
|
+
gap: 16px;
|
|
1495
|
+
color: var(--kr-scaffold-nav-text-active);
|
|
1496
|
+
font-size: 13px;
|
|
1497
|
+
font-weight: 500;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
/* Drop indicator */
|
|
1501
|
+
.nav-item--drop-above,
|
|
1502
|
+
.nav-item--drop-below,
|
|
1503
|
+
.nav-item--drop-center {
|
|
1504
|
+
position: relative;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
.nav-item--drop-above::before,
|
|
1508
|
+
.nav-item--drop-below::after {
|
|
1509
|
+
content: '';
|
|
1510
|
+
position: absolute;
|
|
1511
|
+
left: 0;
|
|
1512
|
+
right: 0;
|
|
1513
|
+
height: 2px;
|
|
1514
|
+
background: #beea4e;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.nav-item--drop-above::before {
|
|
1518
|
+
top: 0;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
.nav-item--drop-below::after {
|
|
1522
|
+
bottom: 0;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
.nav-item--drop-center {
|
|
1526
|
+
background: var(--kr-scaffold-nav-active-bg);
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
.breadcrumbs {
|
|
1530
|
+
height: 32px;
|
|
1531
|
+
padding: 0 1rem;
|
|
1532
|
+
display: flex;
|
|
1533
|
+
align-items: center;
|
|
1534
|
+
gap: 6px;
|
|
1535
|
+
font-size: 12px;
|
|
1536
|
+
color: #6b7280;
|
|
1537
|
+
//background: #f9fafb;
|
|
1538
|
+
background: #beea4e;
|
|
1539
|
+
border-top: 1px solid #e5e7eb;
|
|
1540
|
+
flex-shrink: 0;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.breadcrumbs a {
|
|
1544
|
+
//color: #6b7280;
|
|
1545
|
+
color: #10172a;
|
|
1546
|
+
font-size: 13px;
|
|
1547
|
+
font-weight: 600;
|
|
1548
|
+
text-decoration: none;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.breadcrumbs a:hover {
|
|
1552
|
+
color: #111827;
|
|
1553
|
+
text-decoration: underline;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.breadcrumbs__separator {
|
|
1557
|
+
color: #d1d5db;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.breadcrumbs__current {
|
|
1561
|
+
color: #111827;
|
|
1562
|
+
font-weight: 500;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
/* Progress bar */
|
|
1566
|
+
.progress {
|
|
1567
|
+
position: fixed;
|
|
1568
|
+
top: 0;
|
|
1569
|
+
left: 0;
|
|
1570
|
+
right: 0;
|
|
1571
|
+
height: 4px;
|
|
1572
|
+
overflow-x: hidden;
|
|
1573
|
+
z-index: 1000;
|
|
1574
|
+
display: none;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.progress--loading {
|
|
1578
|
+
display: block;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.progress__track {
|
|
1582
|
+
position: absolute;
|
|
1583
|
+
top: 0;
|
|
1584
|
+
bottom: 0;
|
|
1585
|
+
width: 100%;
|
|
1586
|
+
background: rgba(190, 234, 78, 0.3);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.progress__bar {
|
|
1590
|
+
position: absolute;
|
|
1591
|
+
top: 0;
|
|
1592
|
+
bottom: 0;
|
|
1593
|
+
width: 100%;
|
|
1594
|
+
transform-origin: left center;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
.progress__bar-inner {
|
|
1598
|
+
display: inline-block;
|
|
1599
|
+
position: absolute;
|
|
1600
|
+
width: 100%;
|
|
1601
|
+
height: 100%;
|
|
1602
|
+
background: #beea4e;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.progress__bar--primary {
|
|
1606
|
+
left: -145.166611%;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
.progress--loading .progress__bar--primary {
|
|
1610
|
+
animation: progress-primary-translate 2s infinite linear;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
.progress--loading .progress__bar--primary .progress__bar-inner {
|
|
1614
|
+
animation: progress-primary-scale 2s infinite linear;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
.progress__bar--secondary {
|
|
1618
|
+
left: -54.888891%;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
.progress--loading .progress__bar--secondary {
|
|
1622
|
+
animation: progress-secondary-translate 2s infinite linear;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
.progress--loading .progress__bar--secondary .progress__bar-inner {
|
|
1626
|
+
animation: progress-secondary-scale 2s infinite linear;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
@keyframes progress-primary-translate {
|
|
1630
|
+
0% {
|
|
1631
|
+
transform: translateX(0);
|
|
1632
|
+
}
|
|
1633
|
+
20% {
|
|
1634
|
+
animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);
|
|
1635
|
+
transform: translateX(0);
|
|
1636
|
+
}
|
|
1637
|
+
59.15% {
|
|
1638
|
+
animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);
|
|
1639
|
+
transform: translateX(83.67142%);
|
|
1640
|
+
}
|
|
1641
|
+
100% {
|
|
1642
|
+
transform: translateX(200.611057%);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
@keyframes progress-primary-scale {
|
|
1647
|
+
0% {
|
|
1648
|
+
transform: scaleX(0.08);
|
|
1649
|
+
}
|
|
1650
|
+
36.65% {
|
|
1651
|
+
animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);
|
|
1652
|
+
transform: scaleX(0.08);
|
|
1653
|
+
}
|
|
1654
|
+
69.15% {
|
|
1655
|
+
animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);
|
|
1656
|
+
transform: scaleX(0.661479);
|
|
1657
|
+
}
|
|
1658
|
+
100% {
|
|
1659
|
+
transform: scaleX(0.08);
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
@keyframes progress-secondary-translate {
|
|
1664
|
+
0% {
|
|
1665
|
+
animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);
|
|
1666
|
+
transform: translateX(0);
|
|
1667
|
+
}
|
|
1668
|
+
25% {
|
|
1669
|
+
animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);
|
|
1670
|
+
transform: translateX(37.651913%);
|
|
1671
|
+
}
|
|
1672
|
+
48.35% {
|
|
1673
|
+
animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);
|
|
1674
|
+
transform: translateX(84.386165%);
|
|
1675
|
+
}
|
|
1676
|
+
100% {
|
|
1677
|
+
transform: translateX(160.277782%);
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
@keyframes progress-secondary-scale {
|
|
1682
|
+
0% {
|
|
1683
|
+
animation-timing-function: cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);
|
|
1684
|
+
transform: scaleX(0.08);
|
|
1685
|
+
}
|
|
1686
|
+
19.15% {
|
|
1687
|
+
animation-timing-function: cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);
|
|
1688
|
+
transform: scaleX(0.457104);
|
|
1689
|
+
}
|
|
1690
|
+
44.15% {
|
|
1691
|
+
animation-timing-function: cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);
|
|
1692
|
+
transform: scaleX(0.72796);
|
|
1693
|
+
}
|
|
1694
|
+
100% {
|
|
1695
|
+
transform: scaleX(0.08);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
`,Ie([ue()],e.KRScaffold.prototype,"navItemsExpanded",void 0),Ie([ue()],e.KRScaffold.prototype,"navQuery",void 0),Ie([ue()],e.KRScaffold.prototype,"activeNavItemId",void 0),Ie([ue()],e.KRScaffold.prototype,"isNavScrolled",void 0),Ie([ue()],e.KRScaffold.prototype,"isNavOpened",void 0),Ie([ue()],e.KRScaffold.prototype,"isEditing",void 0),Ie([ue()],e.KRScaffold.prototype,"isUserMenuOpen",void 0),Ie([ue()],e.KRScaffold.prototype,"pref",void 0),Ie([ue()],e.KRScaffold.prototype,"draggedNavItemId",void 0),Ie([ue()],e.KRScaffold.prototype,"navItemDropTargetId",void 0),Ie([ue()],e.KRScaffold.prototype,"navItemDropPosition",void 0),Ie([ue()],e.KRScaffold.prototype,"pendingRequests",void 0),Ie([he({type:String})],e.KRScaffold.prototype,"logo",void 0),Ie([he({type:String})],e.KRScaffold.prototype,"title",void 0),Ie([he({type:String,reflect:!0})],e.KRScaffold.prototype,"scheme",void 0),Ie([he({type:Array})],e.KRScaffold.prototype,"nav",void 0),Ie([he({type:Boolean,attribute:"nav-icons-displayed",reflect:!0})],e.KRScaffold.prototype,"navIconsDisplayed",void 0),Ie([he({type:Boolean,attribute:"nav-expanded"})],e.KRScaffold.prototype,"navExpanded",void 0),Ie([he({type:Object})],e.KRScaffold.prototype,"user",void 0),Ie([he({type:Boolean})],e.KRScaffold.prototype,"subbar",void 0),Ie([he({type:Array})],e.KRScaffold.prototype,"breadcrumbs",void 0),e.KRScaffold=Ie([de("kr-scaffold")],e.KRScaffold);var Ae=function(e,t,i,r){var s,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,i,n):s(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};e.KRScreenNav=class extends oe{constructor(){super(...arguments),this.title="",this.subtitle="",this.backUrl="",this.navItems=[],this.activeId=""}handleNavItemClick(e,t){const i=new CustomEvent("nav-item-click",{detail:{item:t},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(i),i.defaultPrevented&&e.preventDefault()}updateActiveNavItem(){const e=window.location.pathname,t=this.navItems.find((t=>{if(!t.url)return!1;if(t.url.startsWith("./")){const i=t.url.replace(/^\.\//,"");return e.endsWith("/"+i)}return e===t.url||e.startsWith(t.url+"/")}));t&&(this.activeId=t.id)}render(){return L`
|
|
1699
|
+
<nav class="nav">
|
|
1700
|
+
${this.title?L`
|
|
1701
|
+
<div class="nav-header">
|
|
1702
|
+
<div class="nav-header__text">
|
|
1703
|
+
${this.subtitle?L`<div class="nav-header__subtitle">${this.subtitle}</div>`:F}
|
|
1704
|
+
<div class="nav-header__title">${this.title}</div>
|
|
1705
|
+
</div>
|
|
1706
|
+
</div>
|
|
1707
|
+
`:F}
|
|
1708
|
+
<div class="nav-content">
|
|
1709
|
+
<div class="nav-items">
|
|
1710
|
+
${this.navItems.map((e=>L`
|
|
1711
|
+
<a
|
|
1712
|
+
class="nav-item ${e.id===this.activeId?"nav-item--active":""}"
|
|
1713
|
+
href=${e.url||"#"}
|
|
1714
|
+
@click=${t=>this.handleNavItemClick(t,e)}
|
|
1715
|
+
>
|
|
1716
|
+
${e.label}
|
|
1717
|
+
</a>
|
|
1718
|
+
`))}
|
|
1719
|
+
</div>
|
|
1720
|
+
</div>
|
|
1721
|
+
</nav>
|
|
1722
|
+
<main class="content">
|
|
1723
|
+
<div class="content__main">
|
|
1724
|
+
<slot></slot>
|
|
1725
|
+
</div>
|
|
1726
|
+
<!--<div class="breadcrumbs">
|
|
1727
|
+
<a href="/crm">CRM</a>
|
|
1728
|
+
<span class="breadcrumbs__separator">/</span>
|
|
1729
|
+
<a href="/crm/companies">Companies</a>
|
|
1730
|
+
<span class="breadcrumbs__separator">/</span>
|
|
1731
|
+
<span class="breadcrumbs__current">Acme Corporation</span>
|
|
1732
|
+
</div>-->
|
|
1733
|
+
</main>
|
|
1734
|
+
`}},e.KRScreenNav.styles=o`
|
|
1735
|
+
:host {
|
|
1736
|
+
display: flex;
|
|
1737
|
+
height: 100%;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
.nav {
|
|
1741
|
+
width: 200px;
|
|
1742
|
+
background: #F3F7FC;
|
|
1743
|
+
//border-right: 1px solid #000000;
|
|
1744
|
+
display: flex;
|
|
1745
|
+
flex-direction: column;
|
|
1746
|
+
flex-shrink: 0;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.nav-header {
|
|
1750
|
+
padding: 20px 16px 16px;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
.nav-header__text {
|
|
1754
|
+
display: flex;
|
|
1755
|
+
flex-direction: column;
|
|
1756
|
+
gap: 4px;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
.nav-header__title {
|
|
1760
|
+
font-size: 16px;
|
|
1761
|
+
font-weight: 600;
|
|
1762
|
+
color: #111827;
|
|
1763
|
+
white-space: nowrap;
|
|
1764
|
+
overflow: hidden;
|
|
1765
|
+
text-overflow: ellipsis;
|
|
1766
|
+
line-height: 1.3;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
.nav-header__subtitle {
|
|
1770
|
+
font-size: 12px;
|
|
1771
|
+
font-weight: 400;
|
|
1772
|
+
color: rgb(0 0 0 / 70%);
|
|
1773
|
+
line-height: 1;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
.nav-content {
|
|
1777
|
+
flex: 1;
|
|
1778
|
+
overflow-y: auto;
|
|
1779
|
+
padding: 0 0 0.75rem;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
.nav-items {
|
|
1783
|
+
display: flex;
|
|
1784
|
+
flex-direction: column;
|
|
1785
|
+
padding: 0 8px;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
.nav-item {
|
|
1789
|
+
display: block;
|
|
1790
|
+
padding: 0 12px;
|
|
1791
|
+
height: 40px;
|
|
1792
|
+
line-height: 40px;
|
|
1793
|
+
letter-spacing: 0.13px;
|
|
1794
|
+
color: rgb(32, 33, 36);
|
|
1795
|
+
text-decoration: none;
|
|
1796
|
+
font-size: 13px;
|
|
1797
|
+
font-weight: 500;
|
|
1798
|
+
border-radius: 8px;
|
|
1799
|
+
transition: all 0.15s ease;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.nav-item:hover {
|
|
1803
|
+
background: rgba(0, 0, 0, 0.04);
|
|
1804
|
+
color: #163052;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
.nav-item--active {
|
|
1808
|
+
background: rgba(22, 48, 82, 0.08);
|
|
1809
|
+
color: #163052;
|
|
1810
|
+
font-weight: 600;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.content {
|
|
1814
|
+
flex: 1;
|
|
1815
|
+
min-width: 0;
|
|
1816
|
+
display: flex;
|
|
1817
|
+
flex-direction: column;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.breadcrumbs {
|
|
1821
|
+
height: 32px;
|
|
1822
|
+
padding: 0 1rem;
|
|
1823
|
+
display: flex;
|
|
1824
|
+
align-items: center;
|
|
1825
|
+
gap: 6px;
|
|
1826
|
+
font-size: 12px;
|
|
1827
|
+
color: #6b7280;
|
|
1828
|
+
//background: #f9fafb;
|
|
1829
|
+
background: #beea4e;
|
|
1830
|
+
border-top: 1px solid #e5e7eb;
|
|
1831
|
+
flex-shrink: 0;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
.breadcrumbs a {
|
|
1835
|
+
//color: #6b7280;
|
|
1836
|
+
color: #10172a;
|
|
1837
|
+
font-size: 13px;
|
|
1838
|
+
font-weight: 600;
|
|
1839
|
+
text-decoration: none;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
.breadcrumbs a:hover {
|
|
1843
|
+
color: #111827;
|
|
1844
|
+
text-decoration: underline;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.breadcrumbs__separator {
|
|
1848
|
+
color: #d1d5db;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
.breadcrumbs__current {
|
|
1852
|
+
color: #111827;
|
|
1853
|
+
font-weight: 500;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
.content__main {
|
|
1857
|
+
flex: 1;
|
|
1858
|
+
overflow-y: auto;
|
|
1859
|
+
}
|
|
1860
|
+
`,Ae([he({type:String})],e.KRScreenNav.prototype,"title",void 0),Ae([he({type:String})],e.KRScreenNav.prototype,"subtitle",void 0),Ae([he({type:String})],e.KRScreenNav.prototype,"backUrl",void 0),Ae([he({type:Array})],e.KRScreenNav.prototype,"navItems",void 0),Ae([he({type:String})],e.KRScreenNav.prototype,"activeId",void 0),e.KRScreenNav=Ae([de("kr-screen-nav")],e.KRScreenNav);var Ee=function(e,t,i,r){var s,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,i,n):s(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};e.KRScreenDetail=class extends oe{constructor(){super(...arguments),this.title=""}render(){return L`
|
|
1861
|
+
<div class="header">
|
|
1862
|
+
<h2 class="header__title">${this.title}</h2>
|
|
1863
|
+
<div class="header__actions">
|
|
1864
|
+
<slot name="actions"></slot>
|
|
1865
|
+
</div>
|
|
1866
|
+
</div>
|
|
1867
|
+
<div class="content">
|
|
1868
|
+
<div class="content__inner">
|
|
1869
|
+
<slot></slot>
|
|
1870
|
+
</div>
|
|
1871
|
+
</div>
|
|
1872
|
+
`}},e.KRScreenDetail.styles=o`
|
|
1873
|
+
:host {
|
|
1874
|
+
display: flex;
|
|
1875
|
+
flex-direction: column;
|
|
1876
|
+
height: 100%;
|
|
1877
|
+
overflow: hidden;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
.header {
|
|
1881
|
+
height: 64px;
|
|
1882
|
+
display: flex;
|
|
1883
|
+
align-items: center;
|
|
1884
|
+
justify-content: space-between;
|
|
1885
|
+
padding: 0 1.5rem;
|
|
1886
|
+
background: #ffffff;
|
|
1887
|
+
border-bottom: 1px solid #e5e7eb;
|
|
1888
|
+
flex-shrink: 0;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.header__title {
|
|
1892
|
+
font-size: 18px;
|
|
1893
|
+
font-weight: 600;
|
|
1894
|
+
color: #111827;
|
|
1895
|
+
margin: 0;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
.header__actions {
|
|
1899
|
+
display: flex;
|
|
1900
|
+
align-items: center;
|
|
1901
|
+
gap: 8px;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
.content {
|
|
1905
|
+
flex: 1;
|
|
1906
|
+
overflow-y: auto;
|
|
1907
|
+
padding: 1.5rem;
|
|
1908
|
+
display: flex;
|
|
1909
|
+
justify-content: center;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
.content__inner {
|
|
1913
|
+
width: 100%;
|
|
1914
|
+
max-width: 700px;
|
|
1915
|
+
}
|
|
1916
|
+
`,Ee([he({type:String})],e.KRScreenDetail.prototype,"title",void 0),e.KRScreenDetail=Ee([de("kr-screen-detail")],e.KRScreenDetail);var Se=function(e,t,i,r){var s,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(n=(a<3?s(n):a>3?s(t,i,n):s(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};e.KRSubbar=class extends oe{constructor(){super(...arguments),this.breadcrumbs=[],this.menu=!1}_handleMenuClick(){this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0}))}render(){return L`
|
|
1917
|
+
${this.menu?L`
|
|
1918
|
+
<div class="menu" @click=${this._handleMenuClick}>
|
|
1919
|
+
<svg class="menu__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
1920
|
+
<line x1="3" y1="6" x2="21" y2="6"></line>
|
|
1921
|
+
<line x1="3" y1="12" x2="21" y2="12"></line>
|
|
1922
|
+
<line x1="3" y1="18" x2="21" y2="18"></line>
|
|
1923
|
+
</svg>
|
|
1924
|
+
</div>
|
|
1925
|
+
`:F}
|
|
1926
|
+
<div class="breadcrumbs">
|
|
1927
|
+
${this.breadcrumbs.map(((e,t)=>L`
|
|
1928
|
+
${t>0?L`<span class="breadcrumb-separator">/</span>`:""}
|
|
1929
|
+
<a
|
|
1930
|
+
class=${be({breadcrumb:!0,"breadcrumb--current":t===this.breadcrumbs.length-1})}
|
|
1931
|
+
href=${e.url||""}
|
|
1932
|
+
>${e.label}</a>
|
|
1933
|
+
`))}
|
|
1934
|
+
</div>
|
|
1935
|
+
<div class="content">
|
|
1936
|
+
<slot></slot>
|
|
1937
|
+
</div>
|
|
1938
|
+
|
|
1939
|
+
`}},e.KRSubbar.styles=o`
|
|
1940
|
+
:host {
|
|
1941
|
+
display: flex;
|
|
1942
|
+
flex-direction: row;
|
|
1943
|
+
flex-wrap: nowrap;
|
|
1944
|
+
height: 40px;
|
|
1945
|
+
background: #ffffff;
|
|
1946
|
+
border-bottom: 1px solid rgb(229, 229, 228);
|
|
1947
|
+
align-items: center;
|
|
1948
|
+
padding: 0 16px;
|
|
1949
|
+
width: 100%;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
.breadcrumbs {
|
|
1953
|
+
display: flex;
|
|
1954
|
+
align-items: center;
|
|
1955
|
+
gap: 4px;
|
|
1956
|
+
font-size: 13px;
|
|
1957
|
+
flex: 1;
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
.breadcrumb {
|
|
1961
|
+
color: #000000;
|
|
1962
|
+
text-decoration: none;
|
|
1963
|
+
cursor: pointer;
|
|
1964
|
+
font-size: 13px;
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
.breadcrumb:hover {
|
|
1968
|
+
text-decoration: underline;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
.breadcrumb--current {
|
|
1972
|
+
cursor: default;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
.breadcrumb--current:hover {
|
|
1976
|
+
text-decoration: none;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
.breadcrumb-separator {
|
|
1980
|
+
color: #9ca3af;
|
|
1981
|
+
font-size: 12px;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
.content {
|
|
1985
|
+
display: flex;
|
|
1986
|
+
align-items: center;
|
|
1987
|
+
margin-left: auto;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
.menu {
|
|
1991
|
+
display: flex;
|
|
1992
|
+
align-items: center;
|
|
1993
|
+
justify-content: center;
|
|
1994
|
+
width: 24px;
|
|
1995
|
+
height: 24px;
|
|
1996
|
+
margin-right: 8px;
|
|
1997
|
+
cursor: pointer;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
.menu__icon {
|
|
2001
|
+
width: 18px;
|
|
2002
|
+
height: 18px;
|
|
2003
|
+
}
|
|
2004
|
+
`,Se([he({type:Array})],e.KRSubbar.prototype,"breadcrumbs",void 0),Se([he({type:Boolean})],e.KRSubbar.prototype,"menu",void 0),e.KRSubbar=Se([de("kr-subbar")],e.KRSubbar)})),function(e){Object.keys(e).forEach((function(t){t.startsWith("KR")&&"function"==typeof e[t]&&(e[t.slice(2)]=e[t],delete e[t])}))}(krApp);
|
|
2005
|
+
//# sourceMappingURL=krubble-app.umd.min.js.map
|