@ni/spright-components 4.4.1 → 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 +394 -284
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +62 -7
- 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 +1 -1
|
@@ -15007,8 +15007,65 @@ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}
|
|
|
15007
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)
|
|
15008
15008
|
const KX=ZX.compose({baseName:"wafer-map",template:uY,styles:pY})
|
|
15009
15009
|
_i.getOrCreate().withPrefix("nimble").register(KX())
|
|
15010
|
-
const YX=Mt`
|
|
15011
|
-
${
|
|
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")}
|
|
15012
15069
|
|
|
15013
15070
|
:host {
|
|
15014
15071
|
border: 2px solid ${$l};
|
|
@@ -15030,9 +15087,7 @@ const YX=Mt`
|
|
|
15030
15087
|
:host([disabled]) slot {
|
|
15031
15088
|
color: ${ad};
|
|
15032
15089
|
}
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
const QX=class extends We{}.compose({baseName:"rectangle",template:JX,styles:YX})
|
|
15037
|
-
_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())}()
|
|
15038
15093
|
//# sourceMappingURL=all-components-bundle.min.js.map
|