@ni/spright-components 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +1514 -1396
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +81 -22
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +2 -0
- package/dist/esm/all-components.js +2 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/chat/conversation/index.d.ts +12 -0
- package/dist/esm/chat/conversation/index.js +18 -0
- package/dist/esm/chat/conversation/index.js.map +1 -0
- package/dist/esm/chat/conversation/styles.d.ts +1 -0
- package/dist/esm/chat/conversation/styles.js +16 -0
- package/dist/esm/chat/conversation/styles.js.map +1 -0
- package/dist/esm/chat/conversation/template.d.ts +2 -0
- package/dist/esm/chat/conversation/template.js +6 -0
- package/dist/esm/chat/conversation/template.js.map +1 -0
- package/dist/esm/chat/message/index.d.ts +20 -0
- package/dist/esm/chat/message/index.js +32 -0
- package/dist/esm/chat/message/index.js.map +1 -0
- package/dist/esm/chat/message/styles.d.ts +1 -0
- package/dist/esm/chat/message/styles.js +44 -0
- package/dist/esm/chat/message/styles.js.map +1 -0
- package/dist/esm/chat/message/template.d.ts +2 -0
- package/dist/esm/chat/message/template.js +6 -0
- package/dist/esm/chat/message/template.js.map +1 -0
- package/dist/esm/chat/message/types.d.ts +10 -0
- package/dist/esm/chat/message/types.js +10 -0
- package/dist/esm/chat/message/types.js.map +1 -0
- package/package.json +2 -2
|
@@ -4383,7 +4383,7 @@ _i.getOrCreate().withPrefix("nimble").register(ey())
|
|
|
4383
4383
|
let ny=class t extends We{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&za(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem()
|
|
4384
4384
|
const t=this.menuItems.findIndex(this.isFocusableElement)
|
|
4385
4385
|
this.menuItems[this.focusIndex]?.setAttribute("tabindex","-1"),this.menuItems[t]?.setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target
|
|
4386
|
-
void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex]?.setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target
|
|
4386
|
+
void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex]?.setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||!this.menuItems?.includes(t.target))return
|
|
4387
4387
|
t.preventDefault()
|
|
4388
4388
|
const e=t.target
|
|
4389
4389
|
null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex]?.setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach((t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)}))},this.setItems=()=>{const t=this.domChildren()
|
|
@@ -7031,8 +7031,8 @@ class U_{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extens
|
|
|
7031
7031
|
return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(...t)=>{const n=e(...t)(o)
|
|
7032
7032
|
return s.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(s),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:i,state:s}=this,{view:o}=i,r=[],a=!!t,l=t||s.tr,c={...Object.fromEntries(Object.entries(n).map((([t,n])=>[t,(...t)=>{const i=this.buildProps(l,e),s=n(...t)(i)
|
|
7033
7033
|
return r.push(s),c}]))),run:()=>(a||!e||l.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(l),r.every((t=>!0===t)))}
|
|
7034
|
-
return c}createCan(t){const{rawCommands:e,state:n}=this,i=t||n.tr,
|
|
7035
|
-
return{...
|
|
7034
|
+
return c}createCan(t){const{rawCommands:e,state:n}=this,i=!1,s=t||n.tr,o=this.buildProps(s,i),r=Object.fromEntries(Object.entries(e).map((([t,e])=>[t,(...t)=>e(...t)({...o,dispatch:void 0})])))
|
|
7035
|
+
return{...r,chain:()=>this.createChain(s,i)}}buildProps(t,e=!0){const{rawCommands:n,editor:i,state:s}=this,{view:o}=i,r={tr:t,editor:i,view:o,state:H_({state:s,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map((([t,e])=>[t,(...t)=>e(...t)(r)])))}}
|
|
7036
7036
|
return r}}class q_{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t]
|
|
7037
7037
|
return n&&n.forEach((t=>t.apply(this,e))),this}off(t,e){const n=this.callbacks[t]
|
|
7038
7038
|
return n&&(e?this.callbacks[t]=n.filter((t=>t!==e)):delete this.callbacks[t]),this}once(t,e){const n=(...i)=>{this.off(t,n),e.apply(this,i)}
|
|
@@ -7456,10 +7456,10 @@ i=i.parent}return n}querySelector(t,e={}){return this.querySelectorAll(t,e,!0)[0
|
|
|
7456
7456
|
if(!this.children||0===this.children.length)return i
|
|
7457
7457
|
const s=Object.keys(e)
|
|
7458
7458
|
return this.children.forEach((o=>{if(!(n&&i.length>0)){if(o.node.type.name===t){s.every((t=>e[t]===o.node.attrs[t]))&&i.push(o)}n&&i.length>0||(i=i.concat(o.querySelectorAll(t,e,n)))}})),i}setAttribute(t){const{tr:e}=this.editor.state
|
|
7459
|
-
e.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(e)}}class rM extends q_{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",(({event:t,slice:e,moved:n})=>this.options.onDrop(t,e,n))),this.on("paste",(({event:t,slice:e})=>this.options.onPaste(t,e))),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(t,e
|
|
7460
|
-
if(null!==
|
|
7461
|
-
const
|
|
7462
|
-
return e&&
|
|
7459
|
+
e.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(e)}}class rM extends q_{constructor(t={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",(({event:t,slice:e,moved:n})=>this.options.onDrop(t,e,n))),this.on("paste",(({event:t,slice:e})=>this.options.onPaste(t,e))),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(t,e){const n=document.querySelector("style[data-tiptap-style]")
|
|
7460
|
+
if(null!==n)return n
|
|
7461
|
+
const i=document.createElement("style")
|
|
7462
|
+
return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=X_(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],i=this.state.reconfigure({plugins:n})
|
|
7463
7463
|
return this.view.updateState(i),i}unregisterPlugin(t){if(this.isDestroyed)return
|
|
7464
7464
|
const e=this.state.plugins
|
|
7465
7465
|
let n=e
|
|
@@ -9185,7 +9185,7 @@ if(null!==o&&!b)return null
|
|
|
9185
9185
|
const y=m+g.index
|
|
9186
9186
|
let w=y+g[0].length
|
|
9187
9187
|
return l&&d.test(f.slice(w-1,w+1))&&(g[0]+=" ",w+=1),y<a.pos&&w>=a.pos?{range:{from:y,to:w},query:g[0].slice(n.length),text:g[0]}:null}const FT=new Wx("suggestion")
|
|
9188
|
-
function NT({pluginKey:t=FT,editor:e,char:n="@",allowSpaces:i=!1,allowToIncludeChar:s=!1,allowedPrefixes:o=[" "],startOfLine:r=!1,decorationTag:a="span",decorationClass:l="suggestion",command:c=(
|
|
9188
|
+
function NT({pluginKey:t=FT,editor:e,char:n="@",allowSpaces:i=!1,allowToIncludeChar:s=!1,allowedPrefixes:o=[" "],startOfLine:r=!1,decorationTag:a="span",decorationClass:l="suggestion",command:c=()=>null,items:d=()=>[],render:h=()=>({}),allow:u=()=>!0,findSuggestionMatch:p=RT}){let f
|
|
9189
9189
|
const m=null==h?void 0:h(),g=new Ux({key:t,view(){return{update:async(t,n)=>{var i,s,o,r,a,l,h
|
|
9190
9190
|
const u=null===(i=this.key)||void 0===i?void 0:i.getState(n),p=null===(s=this.key)||void 0===s?void 0:s.getState(t.state),g=u.active&&p.active&&u.range.from!==p.range.from,v=!u.active&&p.active,b=u.active&&!p.active,y=!v&&!b&&u.query!==p.query,w=v||g&&y,x=y||g,C=b||g&&y
|
|
9191
9191
|
if(!w&&!x&&!C)return
|
|
@@ -9509,12 +9509,14 @@ const nR=Mt`
|
|
|
9509
9509
|
}
|
|
9510
9510
|
|
|
9511
9511
|
div.bit1 {
|
|
9512
|
-
animation-name:
|
|
9512
|
+
animation-name:
|
|
9513
|
+
ni-private-spinner-no-motion-opacity-keyframes,
|
|
9513
9514
|
ni-private-spinner-no-motion-transform-keyframes-1;
|
|
9514
9515
|
}
|
|
9515
9516
|
|
|
9516
9517
|
div.bit2 {
|
|
9517
|
-
animation-name:
|
|
9518
|
+
animation-name:
|
|
9519
|
+
ni-private-spinner-no-motion-opacity-keyframes,
|
|
9518
9520
|
ni-private-spinner-no-motion-transform-keyframes-2;
|
|
9519
9521
|
}
|
|
9520
9522
|
}
|
|
@@ -11565,9 +11567,10 @@ if(!i)return
|
|
|
11565
11567
|
const s=t=>{const{width:n,height:i}=t
|
|
11566
11568
|
e({width:Math.round(n),height:Math.round(i)})}
|
|
11567
11569
|
if(s(n.getBoundingClientRect()),!i.ResizeObserver)return()=>{}
|
|
11568
|
-
const o=new i.ResizeObserver((
|
|
11569
|
-
if(null==
|
|
11570
|
-
if(
|
|
11570
|
+
const o=new i.ResizeObserver((e=>{const i=()=>{const t=e[0]
|
|
11571
|
+
if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0]
|
|
11572
|
+
if(e)return void s({width:e.inlineSize,height:e.blockSize})}s(n.getBoundingClientRect())}
|
|
11573
|
+
t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()}))
|
|
11571
11574
|
return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},ON={passive:!0},TN="undefined"==typeof window||"onscrollend"in window,RN=(t,e)=>{const n=t.scrollElement
|
|
11572
11575
|
if(!n)return
|
|
11573
11576
|
const i=t.targetWindow
|
|
@@ -11582,11 +11585,12 @@ if(t){return Math.round(t[n.options.horizontal?"inlineSize":"blockSize"])}}retur
|
|
|
11582
11585
|
const r=t+e
|
|
11583
11586
|
null==(o=null==(s=i.scrollElement)?void 0:s.scrollTo)||o.call(s,{[i.options.horizontal?"left":"top"]:r,behavior:n})}
|
|
11584
11587
|
let LN=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null
|
|
11585
|
-
const e=()=>t||(this.targetWindow&&this.targetWindow.ResizeObserver?t=new this.targetWindow.ResizeObserver((t=>{t.forEach((t=>{this._measureElement(t.target,t)}
|
|
11588
|
+
const e=()=>t||(this.targetWindow&&this.targetWindow.ResizeObserver?t=new this.targetWindow.ResizeObserver((t=>{t.forEach((t=>{const e=()=>{this._measureElement(t.target,t)}
|
|
11589
|
+
this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(e):e()}))})):null)
|
|
11586
11590
|
return{disconnect:()=>{var n
|
|
11587
11591
|
null==(n=e())||n.disconnect(),t=null},observe:t=>{var n
|
|
11588
11592
|
return null==(n=e())?void 0:n.observe(t,{box:"border-box"})},unobserve:t=>{var n
|
|
11589
|
-
return null==(n=e())?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach((([e,n])=>{void 0===n&&delete t[e]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:DN,rangeExtractor:EN,onChange:()=>{},measureElement:FN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var e,n
|
|
11593
|
+
return null==(n=e())?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach((([e,n])=>{void 0===n&&delete t[e]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:DN,rangeExtractor:EN,onChange:()=>{},measureElement:FN,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var e,n
|
|
11590
11594
|
null==(n=(e=this.options).onChange)||n.call(e,this,t)},this.maybeNotify=IN((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(t=>{this.notify(t)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((t=>t())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t
|
|
11591
11595
|
const e=this.options.enabled?this.options.getScrollElement():null
|
|
11592
11596
|
if(this.scrollElement!==e){if(this.cleanup(),!e)return void this.maybeNotify()
|
|
@@ -15003,8 +15007,65 @@ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}
|
|
|
15003
15007
|
return zU(n)?n.then((e=>t(e))):n.isAsync()?n.readAll().then((t=>new uK(t))):new uK(n.readAll())}},t([ft({attribute:"origin-location"})],ZX.prototype,"originLocation",void 0),t([ft({attribute:"grid-min-x",converter:ut})],ZX.prototype,"gridMinX",void 0),t([ft({attribute:"grid-max-x",converter:ut})],ZX.prototype,"gridMaxX",void 0),t([ft({attribute:"grid-min-y",converter:ut})],ZX.prototype,"gridMinY",void 0),t([ft({attribute:"grid-max-y",converter:ut})],ZX.prototype,"gridMaxY",void 0),t([ft],ZX.prototype,"orientation",void 0),t([ft({attribute:"max-characters",converter:ut})],ZX.prototype,"maxCharacters",void 0),t([ft({attribute:"die-labels-hidden",mode:"boolean"})],ZX.prototype,"dieLabelsHidden",void 0),t([ft({attribute:"die-labels-suffix"})],ZX.prototype,"dieLabelsSuffix",void 0),t([ft({attribute:"color-scale-mode"})],ZX.prototype,"colorScaleMode",void 0),t([C],ZX.prototype,"renderer",void 0),t([C],ZX.prototype,"canvasWidth",void 0),t([C],ZX.prototype,"canvasHeight",void 0),t([C],ZX.prototype,"transform",void 0),t([C],ZX.prototype,"hoverTransform",void 0),t([C],ZX.prototype,"hoverOpacity",void 0),t([C],ZX.prototype,"hoverWidth",void 0),t([C],ZX.prototype,"hoverHeight",void 0),t([C],ZX.prototype,"hoverDie",void 0),t([C],ZX.prototype,"highlightedTags",void 0),t([C],ZX.prototype,"dies",void 0),t([C],ZX.prototype,"diesTable",void 0),t([C],ZX.prototype,"colorScale",void 0)
|
|
15004
15008
|
const KX=ZX.compose({baseName:"wafer-map",template:uY,styles:pY})
|
|
15005
15009
|
_i.getOrCreate().withPrefix("nimble").register(KX())
|
|
15006
|
-
const YX=Mt`
|
|
15007
|
-
${
|
|
15010
|
+
const YX=t=>`${Ns(t)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`,XX=Mt`
|
|
15011
|
+
${YX("flex")}
|
|
15012
|
+
|
|
15013
|
+
:host {
|
|
15014
|
+
flex-direction: column;
|
|
15015
|
+
justify-content: flex-start;
|
|
15016
|
+
row-gap: ${ql};
|
|
15017
|
+
padding: ${Ul};
|
|
15018
|
+
background: ${vl};
|
|
15019
|
+
overflow-y: auto;
|
|
15020
|
+
}
|
|
15021
|
+
`,JX=Q`<slot></slot>`
|
|
15022
|
+
const QX=class extends We{}.compose({baseName:"chat-conversation",template:JX,styles:XX})
|
|
15023
|
+
_i.getOrCreate().withPrefix("spright").register(QX())
|
|
15024
|
+
const tJ=Mt`
|
|
15025
|
+
${YX("flex")}
|
|
15026
|
+
|
|
15027
|
+
:host {
|
|
15028
|
+
min-width: 16px;
|
|
15029
|
+
min-height: 16px;
|
|
15030
|
+
|
|
15031
|
+
flex-direction: row;
|
|
15032
|
+
justify-content: center;
|
|
15033
|
+
flex-shrink: 0;
|
|
15034
|
+
font: ${od};
|
|
15035
|
+
color: ${rd};
|
|
15036
|
+
}
|
|
15037
|
+
|
|
15038
|
+
:host([message-type='outbound']) {
|
|
15039
|
+
justify-content: flex-end;
|
|
15040
|
+
}
|
|
15041
|
+
|
|
15042
|
+
:host([message-type='inbound']) {
|
|
15043
|
+
justify-content: flex-start;
|
|
15044
|
+
}
|
|
15045
|
+
|
|
15046
|
+
div {
|
|
15047
|
+
max-width: calc(100% - 200px);
|
|
15048
|
+
width: fit-content;
|
|
15049
|
+
height: fit-content;
|
|
15050
|
+
padding: ${Ul};
|
|
15051
|
+
overflow-x: auto;
|
|
15052
|
+
}
|
|
15053
|
+
|
|
15054
|
+
:host([message-type='outbound']) div {
|
|
15055
|
+
background: ${bl};
|
|
15056
|
+
border: ${Wl} solid ${$l};
|
|
15057
|
+
border-radius: 8px 8px 0px 8px;
|
|
15058
|
+
}
|
|
15059
|
+
|
|
15060
|
+
:host([message-type='inbound']) div {
|
|
15061
|
+
border-radius: 8px 8px 8px 0px;
|
|
15062
|
+
}
|
|
15063
|
+
`,eJ=Q`<div><slot></slot></div>`,nJ={system:void 0}
|
|
15064
|
+
class iJ extends We{constructor(){super(...arguments),this.messageType=nJ.system}}t([ft({attribute:"message-type"})],iJ.prototype,"messageType",void 0)
|
|
15065
|
+
const sJ=iJ.compose({baseName:"chat-message",template:eJ,styles:tJ})
|
|
15066
|
+
_i.getOrCreate().withPrefix("spright").register(sJ())
|
|
15067
|
+
const oJ=Mt`
|
|
15068
|
+
${YX("inline-block")}
|
|
15008
15069
|
|
|
15009
15070
|
:host {
|
|
15010
15071
|
border: 2px solid ${$l};
|
|
@@ -15026,9 +15087,7 @@ const YX=Mt`
|
|
|
15026
15087
|
:host([disabled]) slot {
|
|
15027
15088
|
color: ${ad};
|
|
15028
15089
|
}
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
const QX=class extends We{}.compose({baseName:"rectangle",template:JX,styles:YX})
|
|
15033
|
-
_i.getOrCreate().withPrefix("spright").register(QX())}()
|
|
15090
|
+
`,rJ=Q`<slot></slot>`
|
|
15091
|
+
const aJ=class extends We{}.compose({baseName:"rectangle",template:rJ,styles:oJ})
|
|
15092
|
+
_i.getOrCreate().withPrefix("spright").register(aJ())}()
|
|
15034
15093
|
//# sourceMappingURL=all-components-bundle.min.js.map
|