@kodaris/krubble-app-components 1.0.119 → 1.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chatbot.d.ts.map +1 -1
- package/dist/chatbot.js +9 -7
- package/dist/chatbot.js.map +1 -1
- package/dist/krubble-app.bundled.js +98 -90
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +61 -67
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +196 -182
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +64 -70
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +8 -13
- package/dist/router.js.map +1 -1
- package/dist/scaffold/nav-item-edit.d.ts.map +1 -1
- package/dist/scaffold/nav-item-edit.js +9 -7
- package/dist/scaffold/nav-item-edit.js.map +1 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +9 -7
- package/dist/scaffold.js.map +1 -1
- package/dist/screen-detail.d.ts.map +1 -1
- package/dist/screen-detail.js +9 -7
- package/dist/screen-detail.js.map +1 -1
- package/dist/screen-nav.d.ts.map +1 -1
- package/dist/screen-nav.js +9 -7
- package/dist/screen-nav.js.map +1 -1
- package/dist/subbar.d.ts.map +1 -1
- package/dist/subbar.js +9 -7
- package/dist/subbar.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { KRHttp } from '@kodaris/krubble-http';
|
|
|
6
6
|
* Copyright 2019 Google LLC
|
|
7
7
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
8
|
*/
|
|
9
|
-
const t$
|
|
9
|
+
const t$3=globalThis,e$7=t$3.ShadowRoot&&(void 0===t$3.ShadyCSS||t$3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$3=Symbol(),o$6=new WeakMap;let n$4 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$7&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$6.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$6.set(s,t));}return t}toString(){return this.cssText}};const r$4=t=>new n$4("string"==typeof t?t:t+"",void 0,s$3),i$6=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new n$4(o,t,s$3)},S$1=(s,o)=>{if(e$7)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement("style"),n=t$3.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$3=e$7?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$4(e)})(t):t;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
@@ -19,7 +19,7 @@ const t$4=globalThis,e$7=t$4.ShadowRoot&&(void 0===t$4.ShadyCSS||t$4.ShadyCSS.na
|
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
21
|
*/
|
|
22
|
-
const t$
|
|
22
|
+
const t$2=globalThis,i$4=t=>t,s$2=t$2.trustedTypes,e$5=s$2?s$2.createPolicy("lit-html",{createHTML:t=>t}):void 0,h$1="$lit$",o$4=`lit$${Math.random().toFixed(9).slice(2)}$`,n$2="?"+o$4,r$2=`<${n$2}>`,l=document,c$1=()=>l.createComment(""),a=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u$2=Array.isArray,d=t=>u$2(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",v$1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,m$1=/>/g,p$1=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),g=/'/g,$=/"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),b=x(1),E=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==e$5?e$5.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?"<svg>":3===i?"<math>":"",c=v$1;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v$1?"!--"===u[1]?c=_:void 0!==u[1]?c=m$1:void 0!==u[2]?(y.test(u[2])&&(n=RegExp("</"+u[2],"g")),c=p$1):void 0!==u[3]&&(c=p$1):c===p$1?">"===u[0]?(c=n??v$1,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p$1:'"'===u[3]?$:g):c===$||c===g?c=p$1:c===_||c===m$1?c=v$1:(c=p$1,n=void 0);const x=c===p$1&&t[i+1].startsWith("/>")?" ":"";l+=c===v$1?s+r$2:d>=0?(e.push(a),s.slice(0,d)+h$1+s.slice(d)+o$4+x):s+o$4+(-2===d?i:x);}return [V(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h$1)){const i=v[a++],s=r.getAttribute(t).split(o$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:"."===e[1]?I:"?"===e[1]?L:"@"===e[1]?z:H}),r.removeAttribute(t);}else t.startsWith(o$4)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o$4),i=t.length-1;if(i>0){r.textContent=s$2?s$2.emptyScript:"";for(let s=0;s<i;s++)r.append(t[s],c$1()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c$1());}}}else if(8===r.nodeType)if(r.data===n$2)d.push({type:2,index:l});else {let t=-1;for(;-1!==(t=r.data.indexOf(o$4,t+1));)d.push({type:7,index:l}),t+=o$4.length-1;}l++;}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function M$1(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M$1(t,h._$AS(t,i.values),h,e)),i}class R{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,true);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new k(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new Z(h,this,t)),this._$AV.push(i),r=s[++n];}o!==r?.index&&(h=P.nextNode(),o++);}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M$1(this,t,i),a(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new R(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new k(this.O(c$1()),this.O(c$1()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(false,true,s);t!==this._$AB;){const s=i$4(t).nextSibling;i$4(t).remove(),t=s;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=M$1(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M$1(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class I extends H{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A?void 0:t;}}class L extends H{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A);}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=M$1(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class Z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){M$1(this,t);}}const j={I:k},B=t$2.litHtmlPolyfillSupport;B?.(S,k),(t$2.litHtmlVersions??=[]).push("3.3.2");const D=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new k(i.insertBefore(c$1(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
@@ -27,13 +27,6 @@ const t$3=globalThis,i$4=t=>t,s$2=t$3.trustedTypes,e$5=s$2?s$2.createPolicy("lit
|
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*/const s$1=globalThis;let i$3 = class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return E}};i$3._$litElement$=true,i$3["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i$3});const o$3=s$1.litElementPolyfillSupport;o$3?.({LitElement:i$3});(s$1.litElementVersions??=[]).push("4.2.2");
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* @license
|
|
32
|
-
* Copyright 2017 Google LLC
|
|
33
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/
|
|
35
|
-
const t$2=t=>(e,o)=>{ void 0!==o?o.addInitializer(()=>{customElements.define(t,e);}):customElements.define(t,e);};
|
|
36
|
-
|
|
37
30
|
/**
|
|
38
31
|
* @license
|
|
39
32
|
* Copyright 2017 Google LLC
|
|
@@ -78,13 +71,13 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$2=t=>(...e)=>({_$litDirective$:t,values:e});le
|
|
|
78
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
79
72
|
*/const e=e$2(class extends i$2{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter(s=>t[s]).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return E}});
|
|
80
73
|
|
|
81
|
-
var __decorate$
|
|
74
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
82
75
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
83
76
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
84
77
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
85
78
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
86
79
|
};
|
|
87
|
-
|
|
80
|
+
class KRNavItemEdit extends i$3 {
|
|
88
81
|
constructor() {
|
|
89
82
|
super(...arguments);
|
|
90
83
|
this.label = '';
|
|
@@ -187,7 +180,7 @@ let KRNavItemEdit = class KRNavItemEdit extends i$3 {
|
|
|
187
180
|
</div>
|
|
188
181
|
`;
|
|
189
182
|
}
|
|
190
|
-
}
|
|
183
|
+
}
|
|
191
184
|
KRNavItemEdit.styles = i$6 `
|
|
192
185
|
:host {
|
|
193
186
|
display: block;
|
|
@@ -274,23 +267,26 @@ KRNavItemEdit.styles = i$6 `
|
|
|
274
267
|
background: #d4f472;
|
|
275
268
|
}
|
|
276
269
|
`;
|
|
277
|
-
__decorate$
|
|
270
|
+
__decorate$5([
|
|
278
271
|
r()
|
|
279
272
|
], KRNavItemEdit.prototype, "label", void 0);
|
|
280
|
-
__decorate$
|
|
273
|
+
__decorate$5([
|
|
281
274
|
r()
|
|
282
275
|
], KRNavItemEdit.prototype, "icon", void 0);
|
|
283
|
-
__decorate$
|
|
276
|
+
__decorate$5([
|
|
284
277
|
r()
|
|
285
278
|
], KRNavItemEdit.prototype, "url", void 0);
|
|
286
|
-
__decorate$
|
|
279
|
+
__decorate$5([
|
|
287
280
|
r()
|
|
288
281
|
], KRNavItemEdit.prototype, "active", void 0);
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
282
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
283
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
284
|
+
// own copy) doesn't throw. First definition wins.
|
|
285
|
+
if (!customElements.get('kr-nav-item-edit')) {
|
|
286
|
+
customElements.define('kr-nav-item-edit', KRNavItemEdit);
|
|
287
|
+
}
|
|
292
288
|
|
|
293
|
-
var __decorate$
|
|
289
|
+
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
294
290
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
295
291
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
296
292
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -349,7 +345,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
349
345
|
* - Don't hardcode breadcrumbs
|
|
350
346
|
* - Look at renderNormalFooter and renderEditFooter and see if that is what we want to do
|
|
351
347
|
*/
|
|
352
|
-
|
|
348
|
+
class KRScaffold extends i$3 {
|
|
353
349
|
constructor() {
|
|
354
350
|
super();
|
|
355
351
|
/**
|
|
@@ -1501,7 +1497,7 @@ let KRScaffold = class KRScaffold extends i$3 {
|
|
|
1501
1497
|
|
|
1502
1498
|
`;
|
|
1503
1499
|
}
|
|
1504
|
-
}
|
|
1500
|
+
}
|
|
1505
1501
|
KRScaffold.styles = i$6 `
|
|
1506
1502
|
:host {
|
|
1507
1503
|
display: flex;
|
|
@@ -2228,102 +2224,105 @@ KRScaffold.styles = i$6 `
|
|
|
2228
2224
|
}
|
|
2229
2225
|
}
|
|
2230
2226
|
`;
|
|
2231
|
-
__decorate$
|
|
2227
|
+
__decorate$4([
|
|
2232
2228
|
n$1({ type: String })
|
|
2233
2229
|
], KRScaffold.prototype, "logo", void 0);
|
|
2234
|
-
__decorate$
|
|
2230
|
+
__decorate$4([
|
|
2235
2231
|
n$1({ type: String })
|
|
2236
2232
|
], KRScaffold.prototype, "label", void 0);
|
|
2237
|
-
__decorate$
|
|
2233
|
+
__decorate$4([
|
|
2238
2234
|
n$1({
|
|
2239
2235
|
type: String,
|
|
2240
2236
|
attribute: 'home-url'
|
|
2241
2237
|
})
|
|
2242
2238
|
], KRScaffold.prototype, "homeUrl", void 0);
|
|
2243
|
-
__decorate$
|
|
2239
|
+
__decorate$4([
|
|
2244
2240
|
n$1({
|
|
2245
2241
|
type: String,
|
|
2246
2242
|
reflect: true
|
|
2247
2243
|
})
|
|
2248
2244
|
], KRScaffold.prototype, "scheme", void 0);
|
|
2249
|
-
__decorate$
|
|
2245
|
+
__decorate$4([
|
|
2250
2246
|
n$1({ type: Array })
|
|
2251
2247
|
], KRScaffold.prototype, "nav", void 0);
|
|
2252
|
-
__decorate$
|
|
2248
|
+
__decorate$4([
|
|
2253
2249
|
n$1({
|
|
2254
2250
|
type: Boolean,
|
|
2255
2251
|
attribute: 'nav-icons-displayed',
|
|
2256
2252
|
reflect: true
|
|
2257
2253
|
})
|
|
2258
2254
|
], KRScaffold.prototype, "navIconsDisplayed", void 0);
|
|
2259
|
-
__decorate$
|
|
2255
|
+
__decorate$4([
|
|
2260
2256
|
n$1({
|
|
2261
2257
|
type: Boolean,
|
|
2262
2258
|
attribute: 'nav-expanded'
|
|
2263
2259
|
})
|
|
2264
2260
|
], KRScaffold.prototype, "navExpanded", void 0);
|
|
2265
|
-
__decorate$
|
|
2261
|
+
__decorate$4([
|
|
2266
2262
|
n$1({ type: Object })
|
|
2267
2263
|
], KRScaffold.prototype, "user", void 0);
|
|
2268
|
-
__decorate$
|
|
2264
|
+
__decorate$4([
|
|
2269
2265
|
n$1({ type: Boolean })
|
|
2270
2266
|
], KRScaffold.prototype, "subbar", void 0);
|
|
2271
|
-
__decorate$
|
|
2267
|
+
__decorate$4([
|
|
2272
2268
|
n$1({
|
|
2273
2269
|
type: Boolean,
|
|
2274
2270
|
attribute: 'nav-enabled'
|
|
2275
2271
|
})
|
|
2276
2272
|
], KRScaffold.prototype, "navEnabled", void 0);
|
|
2277
|
-
__decorate$
|
|
2273
|
+
__decorate$4([
|
|
2278
2274
|
n$1({
|
|
2279
2275
|
type: String,
|
|
2280
2276
|
attribute: 'user-type'
|
|
2281
2277
|
})
|
|
2282
2278
|
], KRScaffold.prototype, "userType", void 0);
|
|
2283
|
-
__decorate$
|
|
2279
|
+
__decorate$4([
|
|
2284
2280
|
n$1({ type: Array })
|
|
2285
2281
|
], KRScaffold.prototype, "breadcrumbs", void 0);
|
|
2286
|
-
__decorate$
|
|
2282
|
+
__decorate$4([
|
|
2287
2283
|
r()
|
|
2288
2284
|
], KRScaffold.prototype, "navItemsExpanded", void 0);
|
|
2289
|
-
__decorate$
|
|
2285
|
+
__decorate$4([
|
|
2290
2286
|
r()
|
|
2291
2287
|
], KRScaffold.prototype, "navQuery", void 0);
|
|
2292
|
-
__decorate$
|
|
2288
|
+
__decorate$4([
|
|
2293
2289
|
r()
|
|
2294
2290
|
], KRScaffold.prototype, "activeNavItemId", void 0);
|
|
2295
|
-
__decorate$
|
|
2291
|
+
__decorate$4([
|
|
2296
2292
|
r()
|
|
2297
2293
|
], KRScaffold.prototype, "isNavScrolled", void 0);
|
|
2298
|
-
__decorate$
|
|
2294
|
+
__decorate$4([
|
|
2299
2295
|
r()
|
|
2300
2296
|
], KRScaffold.prototype, "isNavOpened", void 0);
|
|
2301
|
-
__decorate$
|
|
2297
|
+
__decorate$4([
|
|
2302
2298
|
r()
|
|
2303
2299
|
], KRScaffold.prototype, "isEditing", void 0);
|
|
2304
|
-
__decorate$
|
|
2300
|
+
__decorate$4([
|
|
2305
2301
|
r()
|
|
2306
2302
|
], KRScaffold.prototype, "isUserMenuOpen", void 0);
|
|
2307
|
-
__decorate$
|
|
2303
|
+
__decorate$4([
|
|
2308
2304
|
r()
|
|
2309
2305
|
], KRScaffold.prototype, "pref", void 0);
|
|
2310
|
-
__decorate$
|
|
2306
|
+
__decorate$4([
|
|
2311
2307
|
r()
|
|
2312
2308
|
], KRScaffold.prototype, "draggedNavItemId", void 0);
|
|
2313
|
-
__decorate$
|
|
2309
|
+
__decorate$4([
|
|
2314
2310
|
r()
|
|
2315
2311
|
], KRScaffold.prototype, "navItemDropTargetId", void 0);
|
|
2316
|
-
__decorate$
|
|
2312
|
+
__decorate$4([
|
|
2317
2313
|
r()
|
|
2318
2314
|
], KRScaffold.prototype, "navItemDropPosition", void 0);
|
|
2319
|
-
__decorate$
|
|
2315
|
+
__decorate$4([
|
|
2320
2316
|
r()
|
|
2321
2317
|
], KRScaffold.prototype, "pendingRequests", void 0);
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2318
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
2319
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
2320
|
+
// own copy) doesn't throw. First definition wins.
|
|
2321
|
+
if (!customElements.get('kr-scaffold')) {
|
|
2322
|
+
customElements.define('kr-scaffold', KRScaffold);
|
|
2323
|
+
}
|
|
2325
2324
|
|
|
2326
|
-
var __decorate$
|
|
2325
|
+
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2327
2326
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2328
2327
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2329
2328
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2357,7 +2356,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2357
2356
|
* @property {KRScreenNavItem[]} items - Navigation items as JSON array
|
|
2358
2357
|
* @property {string} activeId - Currently active item ID
|
|
2359
2358
|
*/
|
|
2360
|
-
|
|
2359
|
+
class KRScreenNav extends i$3 {
|
|
2361
2360
|
constructor() {
|
|
2362
2361
|
super(...arguments);
|
|
2363
2362
|
/**
|
|
@@ -2472,7 +2471,7 @@ let KRScreenNav = class KRScreenNav extends i$3 {
|
|
|
2472
2471
|
</main>
|
|
2473
2472
|
`;
|
|
2474
2473
|
}
|
|
2475
|
-
}
|
|
2474
|
+
}
|
|
2476
2475
|
KRScreenNav.styles = i$6 `
|
|
2477
2476
|
:host {
|
|
2478
2477
|
display: flex;
|
|
@@ -2564,23 +2563,26 @@ KRScreenNav.styles = i$6 `
|
|
|
2564
2563
|
overflow-y: auto;
|
|
2565
2564
|
}
|
|
2566
2565
|
`;
|
|
2567
|
-
__decorate$
|
|
2566
|
+
__decorate$3([
|
|
2568
2567
|
n$1({ type: String })
|
|
2569
2568
|
], KRScreenNav.prototype, "label", void 0);
|
|
2570
|
-
__decorate$
|
|
2569
|
+
__decorate$3([
|
|
2571
2570
|
n$1({ type: String })
|
|
2572
2571
|
], KRScreenNav.prototype, "subLabel", void 0);
|
|
2573
|
-
__decorate$
|
|
2572
|
+
__decorate$3([
|
|
2574
2573
|
n$1({ type: Array })
|
|
2575
2574
|
], KRScreenNav.prototype, "items", void 0);
|
|
2576
|
-
__decorate$
|
|
2575
|
+
__decorate$3([
|
|
2577
2576
|
n$1({ type: String })
|
|
2578
2577
|
], KRScreenNav.prototype, "activeId", void 0);
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2578
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
2579
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
2580
|
+
// own copy) doesn't throw. First definition wins.
|
|
2581
|
+
if (!customElements.get('kr-screen-nav')) {
|
|
2582
|
+
customElements.define('kr-screen-nav', KRScreenNav);
|
|
2583
|
+
}
|
|
2582
2584
|
|
|
2583
|
-
var __decorate$
|
|
2585
|
+
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2584
2586
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2585
2587
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2586
2588
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2605,7 +2607,7 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2605
2607
|
*
|
|
2606
2608
|
* @property {string} title - Section title (e.g., "Company Details")
|
|
2607
2609
|
*/
|
|
2608
|
-
|
|
2610
|
+
class KRScreenDetail extends i$3 {
|
|
2609
2611
|
constructor() {
|
|
2610
2612
|
super(...arguments);
|
|
2611
2613
|
/**
|
|
@@ -2628,7 +2630,7 @@ let KRScreenDetail = class KRScreenDetail extends i$3 {
|
|
|
2628
2630
|
</div>
|
|
2629
2631
|
`;
|
|
2630
2632
|
}
|
|
2631
|
-
}
|
|
2633
|
+
}
|
|
2632
2634
|
KRScreenDetail.styles = i$6 `
|
|
2633
2635
|
:host {
|
|
2634
2636
|
display: flex;
|
|
@@ -2674,14 +2676,17 @@ KRScreenDetail.styles = i$6 `
|
|
|
2674
2676
|
max-width: 700px;
|
|
2675
2677
|
}
|
|
2676
2678
|
`;
|
|
2677
|
-
__decorate$
|
|
2679
|
+
__decorate$2([
|
|
2678
2680
|
n$1({ type: String })
|
|
2679
2681
|
], KRScreenDetail.prototype, "title", void 0);
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2682
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
2683
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
2684
|
+
// own copy) doesn't throw. First definition wins.
|
|
2685
|
+
if (!customElements.get('kr-screen-detail')) {
|
|
2686
|
+
customElements.define('kr-screen-detail', KRScreenDetail);
|
|
2687
|
+
}
|
|
2683
2688
|
|
|
2684
|
-
var __decorate$
|
|
2689
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2685
2690
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2686
2691
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2687
2692
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2692,7 +2697,7 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
2692
2697
|
*
|
|
2693
2698
|
* @slot - Content to display in the subbar (right side)
|
|
2694
2699
|
*/
|
|
2695
|
-
|
|
2700
|
+
class KRSubbar extends i$3 {
|
|
2696
2701
|
constructor() {
|
|
2697
2702
|
super(...arguments);
|
|
2698
2703
|
/**
|
|
@@ -2807,7 +2812,7 @@ let KRSubbar = class KRSubbar extends i$3 {
|
|
|
2807
2812
|
|
|
2808
2813
|
`;
|
|
2809
2814
|
}
|
|
2810
|
-
}
|
|
2815
|
+
}
|
|
2811
2816
|
KRSubbar.styles = i$6 `
|
|
2812
2817
|
:host {
|
|
2813
2818
|
display: flex;
|
|
@@ -2875,22 +2880,19 @@ KRSubbar.styles = i$6 `
|
|
|
2875
2880
|
height: 18px;
|
|
2876
2881
|
}
|
|
2877
2882
|
`;
|
|
2878
|
-
__decorate$
|
|
2883
|
+
__decorate$1([
|
|
2879
2884
|
n$1({ type: Array })
|
|
2880
2885
|
], KRSubbar.prototype, "breadcrumbs", void 0);
|
|
2881
|
-
__decorate$
|
|
2886
|
+
__decorate$1([
|
|
2882
2887
|
n$1({ type: Boolean })
|
|
2883
2888
|
], KRSubbar.prototype, "menu", void 0);
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2889
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
2890
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
2891
|
+
// own copy) doesn't throw. First definition wins.
|
|
2892
|
+
if (!customElements.get('kr-subbar')) {
|
|
2893
|
+
customElements.define('kr-subbar', KRSubbar);
|
|
2894
|
+
}
|
|
2887
2895
|
|
|
2888
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2889
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2890
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2891
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2892
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2893
|
-
};
|
|
2894
2896
|
class KRRouter {
|
|
2895
2897
|
static configure(config) {
|
|
2896
2898
|
KRRouter.base = config.base;
|
|
@@ -3021,7 +3023,7 @@ class KRRouter {
|
|
|
3021
3023
|
KRRouter.base = '';
|
|
3022
3024
|
KRRouter.routes = [];
|
|
3023
3025
|
KRRouter.elementCache = new Map();
|
|
3024
|
-
|
|
3026
|
+
class KRRouterOutlet extends i$3 {
|
|
3025
3027
|
constructor() {
|
|
3026
3028
|
super(...arguments);
|
|
3027
3029
|
this.level = -1;
|
|
@@ -3065,16 +3067,19 @@ let KRRouterOutlet = class KRRouterOutlet extends i$3 {
|
|
|
3065
3067
|
}
|
|
3066
3068
|
return b `${el}`;
|
|
3067
3069
|
}
|
|
3068
|
-
}
|
|
3070
|
+
}
|
|
3069
3071
|
KRRouterOutlet.styles = i$6 `
|
|
3070
3072
|
:host {
|
|
3071
3073
|
display: block;
|
|
3072
3074
|
height: 100%;
|
|
3073
3075
|
}
|
|
3074
3076
|
`;
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3077
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
3078
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
3079
|
+
// own copy) doesn't throw. First definition wins.
|
|
3080
|
+
if (!customElements.get('kr-router-outlet')) {
|
|
3081
|
+
customElements.define('kr-router-outlet', KRRouterOutlet);
|
|
3082
|
+
}
|
|
3078
3083
|
|
|
3079
3084
|
/**
|
|
3080
3085
|
* @license
|
|
@@ -5638,7 +5643,7 @@ const ACCEPTED_FILE_EXTENSIONS = [
|
|
|
5638
5643
|
* @fires conversation-created - When a turn with no target creates a new conversation and the chatbot pins it. Detail: `{ conversation }` (the full conversation object).
|
|
5639
5644
|
* @fires conversation-title - When the server sends the generated title for a new conversation (end of its first turn). The header label is already updated; this is for consumers with their own chrome to sync (breadcrumbs, tab titles). Detail: `{ title }`.
|
|
5640
5645
|
*/
|
|
5641
|
-
|
|
5646
|
+
class KRChatbot extends i$3 {
|
|
5642
5647
|
constructor() {
|
|
5643
5648
|
super(...arguments);
|
|
5644
5649
|
// --- Private properties ---
|
|
@@ -9487,7 +9492,7 @@ let KRChatbot = class KRChatbot extends i$3 {
|
|
|
9487
9492
|
</div>
|
|
9488
9493
|
`;
|
|
9489
9494
|
}
|
|
9490
|
-
}
|
|
9495
|
+
}
|
|
9491
9496
|
KRChatbot.styles = i$6 `
|
|
9492
9497
|
*,
|
|
9493
9498
|
*::before,
|
|
@@ -11553,9 +11558,12 @@ __decorate([
|
|
|
11553
11558
|
__decorate([
|
|
11554
11559
|
e$3('.drawer__body')
|
|
11555
11560
|
], KRChatbot.prototype, "_drawerBodyEl", void 0);
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11561
|
+
// Guarded registration: no-op if the tag is already defined, so a second copy of krubble on
|
|
11562
|
+
// the page (e.g. the Operations shell loads krubble globally while an embedded app bundled its
|
|
11563
|
+
// own copy) doesn't throw. First definition wins.
|
|
11564
|
+
if (!customElements.get('kr-chatbot')) {
|
|
11565
|
+
customElements.define('kr-chatbot', KRChatbot);
|
|
11566
|
+
}
|
|
11559
11567
|
|
|
11560
11568
|
export { KRChatbot, KRRouter, KRRouterOutlet, KRScaffold, KRScreenDetail, KRScreenNav, KRSubbar };
|
|
11561
11569
|
//# sourceMappingURL=krubble-app.bundled.js.map
|