@breadstone/mosaik-elements-svelte 0.1.5 → 0.1.6
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/CHANGELOG.md +6 -0
- package/index.mjs +73 -23
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/index.mjs
CHANGED
|
@@ -105996,7 +105996,7 @@ function GU(e) {
|
|
|
105996
105996
|
<mosaik-sticky part="sticky">
|
|
105997
105997
|
<slot name="header">
|
|
105998
105998
|
<mosaik-text part="header"
|
|
105999
|
-
.text="${e.header}
|
|
105999
|
+
.text="${e.header}"
|
|
106000
106000
|
.truncate="${!0}"></mosaik-text>
|
|
106001
106001
|
</slot>
|
|
106002
106002
|
<slot></slot>
|
|
@@ -106004,7 +106004,7 @@ function GU(e) {
|
|
|
106004
106004
|
`, () => V`
|
|
106005
106005
|
<slot name="header">
|
|
106006
106006
|
<mosaik-text part="header"
|
|
106007
|
-
.text="${e.header}
|
|
106007
|
+
.text="${e.header}"
|
|
106008
106008
|
.truncate="${!0}"></mosaik-text>
|
|
106009
106009
|
</slot>
|
|
106010
106010
|
<slot></slot>
|
|
@@ -112594,8 +112594,10 @@ function CG(e) {
|
|
|
112594
112594
|
function wG(e) {
|
|
112595
112595
|
return V`
|
|
112596
112596
|
<div part="root">
|
|
112597
|
-
<svg
|
|
112598
|
-
|
|
112597
|
+
<svg part="svg"
|
|
112598
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
112599
|
+
<line part="line"
|
|
112600
|
+
x1="${e.orientation === K.Vertical ? "50%" : "0"}"
|
|
112599
112601
|
y1="${e.orientation === K.Vertical ? "0" : "50%"}"
|
|
112600
112602
|
x2="${e.orientation === K.Vertical ? "50%" : "100%"}"
|
|
112601
112603
|
y2="${e.orientation === K.Vertical ? "100%" : "50%"}"/>
|
|
@@ -112677,14 +112679,13 @@ function TG() {
|
|
|
112677
112679
|
overflow: inherit;
|
|
112678
112680
|
}
|
|
112679
112681
|
|
|
112680
|
-
:host [part="root"] svg {
|
|
112682
|
+
:host [part="root"] [part="svg"] {
|
|
112681
112683
|
width: 100%;
|
|
112682
112684
|
height: 100%;
|
|
112683
112685
|
position: absolute;
|
|
112684
|
-
translate: -50%;
|
|
112685
112686
|
}
|
|
112686
112687
|
|
|
112687
|
-
:host [part="root"] svg line {
|
|
112688
|
+
:host [part="root"] [part="svg"] [part="line"] {
|
|
112688
112689
|
stroke: var(--divider-background-color);
|
|
112689
112690
|
stroke-width: var(--divider-thickness);
|
|
112690
112691
|
stroke-dasharray: none;
|
|
@@ -112773,14 +112774,13 @@ function EG() {
|
|
|
112773
112774
|
overflow: inherit;
|
|
112774
112775
|
}
|
|
112775
112776
|
|
|
112776
|
-
:host [part="root"] svg {
|
|
112777
|
+
:host [part="root"] [part="svg"] {
|
|
112777
112778
|
width: 100%;
|
|
112778
112779
|
height: 100%;
|
|
112779
112780
|
position: absolute;
|
|
112780
|
-
translate: -50%;
|
|
112781
112781
|
}
|
|
112782
112782
|
|
|
112783
|
-
:host [part="root"] svg line {
|
|
112783
|
+
:host [part="root"] [part="svg"] [part="line"] {
|
|
112784
112784
|
stroke: var(--divider-background-color);
|
|
112785
112785
|
stroke-width: var(--divider-thickness);
|
|
112786
112786
|
stroke-dasharray: none;
|
|
@@ -112873,14 +112873,13 @@ function DG() {
|
|
|
112873
112873
|
overflow: inherit;
|
|
112874
112874
|
}
|
|
112875
112875
|
|
|
112876
|
-
:host [part="root"] svg {
|
|
112876
|
+
:host [part="root"] [part="svg"] {
|
|
112877
112877
|
width: 100%;
|
|
112878
112878
|
height: 100%;
|
|
112879
112879
|
position: absolute;
|
|
112880
|
-
translate: -50%;
|
|
112881
112880
|
}
|
|
112882
112881
|
|
|
112883
|
-
:host [part="root"] svg line {
|
|
112882
|
+
:host [part="root"] [part="svg"] [part="line"] {
|
|
112884
112883
|
stroke: var(--divider-background-color);
|
|
112885
112884
|
stroke-width: var(--divider-thickness);
|
|
112886
112885
|
stroke-dasharray: none;
|
|
@@ -151860,15 +151859,18 @@ function wme(e) {
|
|
|
151860
151859
|
return V`
|
|
151861
151860
|
<slot name="header"></slot>
|
|
151862
151861
|
<div part="messagesWrapper">
|
|
151863
|
-
<
|
|
151864
|
-
|
|
151865
|
-
|
|
151866
|
-
|
|
151867
|
-
|
|
151868
|
-
|
|
151869
|
-
|
|
151870
|
-
|
|
151871
|
-
|
|
151862
|
+
<mosaik-scroll part="scroll"
|
|
151863
|
+
.orientation="${"vertical"}">
|
|
151864
|
+
<div part="messages">
|
|
151865
|
+
<slot name="message"></slot>
|
|
151866
|
+
${U(e.scrollToEnd, () => V`
|
|
151867
|
+
<mosaik-back-top part="backTop"
|
|
151868
|
+
.dir="${e.dir}"
|
|
151869
|
+
.lang="${e.lang}"
|
|
151870
|
+
.to="${"bottom"}"></mosaik-back-top>
|
|
151871
|
+
`)}
|
|
151872
|
+
</div>
|
|
151873
|
+
</mosaik-scroll>
|
|
151872
151874
|
</div>
|
|
151873
151875
|
<div part="empty">
|
|
151874
151876
|
<slot name="empty"></slot>
|
|
@@ -152989,6 +152991,8 @@ function Wme(e) {
|
|
|
152989
152991
|
.dir="${e.dir}"
|
|
152990
152992
|
.placeholder="${e.placeholder}"
|
|
152991
152993
|
.multiline="${!0}"
|
|
152994
|
+
.multilineRows="${e.minRows}"
|
|
152995
|
+
.multilineMaxRows="${e.maxRows}"
|
|
152992
152996
|
.value="${Wb(e.value.message)}"
|
|
152993
152997
|
.appearance="${q.Plain}"
|
|
152994
152998
|
.variant="${e.variant}"
|
|
@@ -153501,6 +153505,8 @@ var Y$ = function(e, t, n, r) {
|
|
|
153501
153505
|
_transformer;
|
|
153502
153506
|
_value;
|
|
153503
153507
|
_placeholder;
|
|
153508
|
+
_minRows;
|
|
153509
|
+
_maxRows;
|
|
153504
153510
|
constructor() {
|
|
153505
153511
|
super(), this._value = {
|
|
153506
153512
|
message: "",
|
|
@@ -153511,7 +153517,7 @@ var Y$ = function(e, t, n, r) {
|
|
|
153511
153517
|
files: e.files
|
|
153512
153518
|
},
|
|
153513
153519
|
isValid: () => !!e.text.length
|
|
153514
|
-
}), this._submitted = new E(this, "chatSubmit", { bubbles: !1 });
|
|
153520
|
+
}), this._minRows = 1, this._maxRows = 12, this._submitted = new E(this, "chatSubmit", { bubbles: !1 });
|
|
153515
153521
|
}
|
|
153516
153522
|
static get is() {
|
|
153517
153523
|
return "mosaik-chat-input";
|
|
@@ -153522,6 +153528,18 @@ var Y$ = function(e, t, n, r) {
|
|
|
153522
153528
|
set value(e) {
|
|
153523
153529
|
this._value !== e && (this._value = e, this.requestUpdate("value"));
|
|
153524
153530
|
}
|
|
153531
|
+
get minRows() {
|
|
153532
|
+
return this._minRows;
|
|
153533
|
+
}
|
|
153534
|
+
set minRows(e) {
|
|
153535
|
+
this._minRows !== e && (this._minRows = e, this.requestUpdate("minRows"));
|
|
153536
|
+
}
|
|
153537
|
+
get maxRows() {
|
|
153538
|
+
return this._maxRows;
|
|
153539
|
+
}
|
|
153540
|
+
set maxRows(e) {
|
|
153541
|
+
this._maxRows !== e && (this._maxRows = e, this.requestUpdate("maxRows"));
|
|
153542
|
+
}
|
|
153525
153543
|
get placeholder() {
|
|
153526
153544
|
return this._placeholder;
|
|
153527
153545
|
}
|
|
@@ -153597,6 +153615,14 @@ Y$([
|
|
|
153597
153615
|
X$("design:type", Object),
|
|
153598
153616
|
X$("design:paramtypes", [Object])
|
|
153599
153617
|
], Z$.prototype, "value", null), Y$([
|
|
153618
|
+
P({ type: Number }),
|
|
153619
|
+
X$("design:type", Number),
|
|
153620
|
+
X$("design:paramtypes", [Number])
|
|
153621
|
+
], Z$.prototype, "minRows", null), Y$([
|
|
153622
|
+
P({ type: Number }),
|
|
153623
|
+
X$("design:type", Number),
|
|
153624
|
+
X$("design:paramtypes", [Number])
|
|
153625
|
+
], Z$.prototype, "maxRows", null), Y$([
|
|
153600
153626
|
A({ type: String }),
|
|
153601
153627
|
X$("design:type", String),
|
|
153602
153628
|
X$("design:paramtypes", [String])
|
|
@@ -153765,6 +153791,10 @@ function Yme() {
|
|
|
153765
153791
|
display: inline-flex;
|
|
153766
153792
|
}
|
|
153767
153793
|
|
|
153794
|
+
:host [part="divider"]::part(svg) {
|
|
153795
|
+
translate: -50%;
|
|
153796
|
+
}
|
|
153797
|
+
|
|
153768
153798
|
:host [part="text"] {
|
|
153769
153799
|
flex-shrink: 0;
|
|
153770
153800
|
}
|
|
@@ -153865,6 +153895,10 @@ function Xme() {
|
|
|
153865
153895
|
display: inline-flex;
|
|
153866
153896
|
}
|
|
153867
153897
|
|
|
153898
|
+
:host [part="divider"]::part(svg) {
|
|
153899
|
+
translate: -50%;
|
|
153900
|
+
}
|
|
153901
|
+
|
|
153868
153902
|
:host [part="text"] {
|
|
153869
153903
|
flex-shrink: 0;
|
|
153870
153904
|
}
|
|
@@ -153965,6 +153999,10 @@ function Zme() {
|
|
|
153965
153999
|
display: inline-flex;
|
|
153966
154000
|
}
|
|
153967
154001
|
|
|
154002
|
+
:host [part="divider"]::part(svg) {
|
|
154003
|
+
translate: -50%;
|
|
154004
|
+
}
|
|
154005
|
+
|
|
153968
154006
|
:host [part="text"] {
|
|
153969
154007
|
flex-shrink: 0;
|
|
153970
154008
|
}
|
|
@@ -155541,6 +155579,10 @@ function ohe() {
|
|
|
155541
155579
|
overflow: hidden;
|
|
155542
155580
|
}
|
|
155543
155581
|
|
|
155582
|
+
:host [part="scroll"] {
|
|
155583
|
+
height: 100%;
|
|
155584
|
+
}
|
|
155585
|
+
|
|
155544
155586
|
:host [part="messages"] {
|
|
155545
155587
|
padding-top: var(--chat-padding-top);
|
|
155546
155588
|
padding-right: var(--chat-padding-right);
|
|
@@ -155680,6 +155722,10 @@ function she() {
|
|
|
155680
155722
|
overflow: hidden;
|
|
155681
155723
|
}
|
|
155682
155724
|
|
|
155725
|
+
:host [part="scroll"] {
|
|
155726
|
+
height: 100%;
|
|
155727
|
+
}
|
|
155728
|
+
|
|
155683
155729
|
:host [part="messages"] {
|
|
155684
155730
|
padding-top: var(--chat-padding-top);
|
|
155685
155731
|
padding-right: var(--chat-padding-right);
|
|
@@ -155828,6 +155874,10 @@ function che() {
|
|
|
155828
155874
|
overflow: hidden;
|
|
155829
155875
|
}
|
|
155830
155876
|
|
|
155877
|
+
:host [part="scroll"] {
|
|
155878
|
+
height: 100%;
|
|
155879
|
+
}
|
|
155880
|
+
|
|
155831
155881
|
:host [part="messages"] {
|
|
155832
155882
|
padding-top: var(--chat-padding-top);
|
|
155833
155883
|
padding-right: var(--chat-padding-right);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/mosaik-elements-svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Mosaik elements for Svelte.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"url": "git+ssh://git@github.com/RueDeRennes/mosaik.git"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@breadstone/mosaik-elements": "0.1.
|
|
15
|
-
"@breadstone/mosaik-elements-foundation": "0.1.
|
|
14
|
+
"@breadstone/mosaik-elements": "0.1.6",
|
|
15
|
+
"@breadstone/mosaik-elements-foundation": "0.1.6",
|
|
16
16
|
"tslib": "2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|