@breadstone/mosaik-elements-svelte 0.1.46 → 0.1.47

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/index.mjs +202 -97
  3. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.1.47 (2026-07-07)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **dataList:** add caption/summary slot projection ([7e107dc5f1](https://github.com/RueDeRennes/mosaik/commit/7e107dc5f1))
6
+
1
7
  ## 0.1.46 (2026-07-07)
2
8
 
3
9
  ### 🚀 Features
package/index.mjs CHANGED
@@ -21813,10 +21813,10 @@ function Ede() {
21813
21813
  --menu-font-weight: var(--joy-typography-body1-font-weight);
21814
21814
  --menu-foreground-color: var(--joy-scheme-foreground);
21815
21815
  --menu-gap: unset;
21816
- --menu-padding-bottom: var(--joy-layout-spacing);
21817
- --menu-padding-left: calc(var(--joy-layout-spacing) * 2);
21818
- --menu-padding-right: calc(var(--joy-layout-spacing) * 2);
21819
- --menu-padding-top: var(--joy-layout-spacing);
21816
+ --menu-padding-bottom: var(--joy-layout-space);
21817
+ --menu-padding-left: calc(var(--joy-layout-space) * 2);
21818
+ --menu-padding-right: calc(var(--joy-layout-space) * 2);
21819
+ --menu-padding-top: var(--joy-layout-space);
21820
21820
  --menu-shadow: unset unset unset unset unset;
21821
21821
  --menu-shadow-blur: unset;
21822
21822
  --menu-shadow-color: unset;
@@ -107188,26 +107188,32 @@ var DU = class extends iL {
107188
107188
  //#region ../mosaik-elements-foundation/dist/Controls/Components/Selectors/List/ListElementTemplate.js
107189
107189
  function OU(e) {
107190
107190
  return V`
107191
- ${U(e.showFilter, () => V`
107192
- <div part="filter">
107193
- <slot name="filter"></slot>
107194
- <mosaik-spacer .thickness="${"all"}"
107195
- .size="${"tiny"}">
107196
- <mosaik-textbox .value="${e.filter}"
107197
- .placeholder="${e.filterPlaceholder.trim() || e.intl.filterPlaceholder}"
107198
- ?disabled="${e.disabled}"
107199
- @input="${(t) => e.filter = t.target.value}"></mosaik-textbox>
107200
- </mosaik-spacer>
107191
+ <div part="header"
107192
+ ?hidden="${!AM(e, "has-header", e.hasSlotContent("header"))}">
107193
+ <slot name="header"></slot>
107201
107194
  </div>
107202
- `)}
107203
- <slot name="header"></slot>
107204
107195
  <div part="items">
107196
+ ${U(e.showFilter, () => V`
107197
+ <div part="filter">
107198
+ <slot name="filter"></slot>
107199
+ <mosaik-spacer .thickness="${"all"}"
107200
+ .size="${"tiny"}">
107201
+ <mosaik-textbox .value="${e.filter}"
107202
+ .placeholder="${e.filterPlaceholder.trim() || e.intl.filterPlaceholder}"
107203
+ ?disabled="${e.disabled}"
107204
+ @input="${(t) => e.filter = t.target.value}"></mosaik-textbox>
107205
+ </mosaik-spacer>
107206
+ </div>
107207
+ `)}
107205
107208
  <slot></slot>
107206
107209
  </div>
107207
107210
  <div part="empty">
107208
107211
  <slot name="empty"></slot>
107209
107212
  </div>
107210
- <slot name="footer"></slot>
107213
+ <div part="footer"
107214
+ ?hidden="${!AM(e, "has-footer", e.hasSlotContent("footer"))}">
107215
+ <slot name="footer"></slot>
107216
+ </div>
107211
107217
  `;
107212
107218
  }
107213
107219
  //#endregion
@@ -108468,6 +108474,7 @@ function tW() {
108468
108474
  --list-font-weight: unset;
108469
108475
  --list-foreground-color: unset;
108470
108476
  --list-gap: unset;
108477
+ --list-line-thickness: unset;
108471
108478
  --list-padding-bottom: unset;
108472
108479
  --list-padding-left: unset;
108473
108480
  --list-padding-right: unset;
@@ -108529,38 +108536,78 @@ function tW() {
108529
108536
  transition-timing-function: var(--list-transition-mode);
108530
108537
  transition-property: var(--list-transition-property);
108531
108538
  box-shadow: var(--list-shadow);
108539
+ outline: none;
108540
+ flex-direction: column;
108541
+ width: 100%;
108542
+ height: 100%;
108543
+ display: flex;
108544
+ overflow: hidden;
108545
+ }
108546
+
108547
+ :host [part="header"], :host [part="footer"] {
108532
108548
  padding-top: var(--list-padding-top);
108533
108549
  padding-left: var(--list-padding-left);
108534
108550
  padding-bottom: var(--list-padding-bottom);
108535
108551
  padding-right: var(--list-padding-right);
108536
- gap: var(--list-gap);
108537
- overflow: overlay;
108538
- outline: none;
108539
- width: 100%;
108540
- height: 100%;
108552
+ flex: none;
108553
+ position: relative;
108541
108554
  }
108542
108555
 
108543
- :host [part="filter"] {
108544
- z-index: 2;
108545
- position: sticky;
108546
- top: 8px;
108556
+ :host [part="header"][hidden], :host [part="footer"][hidden] {
108557
+ display: none;
108558
+ }
108559
+
108560
+ :host [part="header"] {
108561
+ background-color: var(--list-background-color);
108562
+ }
108563
+
108564
+ :host [part="header"]:after {
108565
+ content: "";
108566
+ height: var(--list-line-thickness);
108567
+ background-color: var(--list-border-color);
108568
+ position: absolute;
108569
+ bottom: 0;
108570
+ left: 0;
108571
+ right: 0;
108572
+ }
108573
+
108574
+ :host [part="footer"] {
108575
+ background-color: var(--list-background-color);
108576
+ }
108577
+
108578
+ :host [part="footer"]:before {
108579
+ content: "";
108580
+ height: var(--list-line-thickness);
108581
+ background-color: var(--list-border-color);
108582
+ position: absolute;
108583
+ top: 0;
108584
+ left: 0;
108585
+ right: 0;
108586
+ }
108587
+
108588
+ :host [part="footer"] ::slotted(mosaik-paginator) {
108589
+ flex-direction: row-reverse;
108590
+ align-items: center;
108591
+ display: flex;
108547
108592
  }
108548
108593
 
108549
108594
  :host [part="items"] {
108550
108595
  gap: var(--list-gap);
108596
+ min-height: 0;
108597
+ overflow-y: overlay;
108551
108598
  flex-direction: column;
108599
+ flex: auto;
108552
108600
  display: flex;
108553
108601
  }
108554
108602
 
108555
- :host([orientation="horizontal"]) [part="items"] {
108556
- flex-flow: wrap;
108603
+ :host [part="items"] [part="filter"] {
108604
+ z-index: 2;
108605
+ position: sticky;
108606
+ top: 8px;
108557
108607
  }
108558
108608
 
108559
- :host([inset*="none"]), :host([empty]) {
108560
- --list-padding-top: 0px;
108561
- --list-padding-left: 0px;
108562
- --list-padding-bottom: 0px;
108563
- --list-padding-right: 0px;
108609
+ :host([orientation="horizontal"]) [part="items"] {
108610
+ flex-flow: wrap;
108564
108611
  }
108565
108612
 
108566
108613
  :host([mosaik-dropdown-button-projection]), :host([mosaik-split-button-projection]) {
@@ -108596,10 +108643,11 @@ function nW() {
108596
108643
  --list-font-weight: var(--joy-typography-body1-font-weight);
108597
108644
  --list-foreground-color: var(--joy-scheme-foreground);
108598
108645
  --list-gap: var(--joy-layout-space);
108599
- --list-padding-bottom: var(--joy-layout-spacing);
108600
- --list-padding-left: calc(var(--joy-layout-spacing) * 2);
108601
- --list-padding-right: calc(var(--joy-layout-spacing) * 2);
108602
- --list-padding-top: var(--joy-layout-spacing);
108646
+ --list-line-thickness: var(--joy-layout-thickness);
108647
+ --list-padding-bottom: calc(var(--joy-layout-space) * 2);
108648
+ --list-padding-left: calc(var(--joy-layout-space) * 2);
108649
+ --list-padding-right: calc(var(--joy-layout-space) * 2);
108650
+ --list-padding-top: calc(var(--joy-layout-space) * 2);
108603
108651
  --list-shadow: unset unset unset unset unset;
108604
108652
  --list-shadow-blur: unset;
108605
108653
  --list-shadow-color: unset;
@@ -108657,38 +108705,78 @@ function nW() {
108657
108705
  transition-timing-function: var(--list-transition-mode);
108658
108706
  transition-property: var(--list-transition-property);
108659
108707
  box-shadow: var(--list-shadow);
108708
+ outline: none;
108709
+ flex-direction: column;
108710
+ width: 100%;
108711
+ height: 100%;
108712
+ display: flex;
108713
+ overflow: hidden;
108714
+ }
108715
+
108716
+ :host [part="header"], :host [part="footer"] {
108660
108717
  padding-top: var(--list-padding-top);
108661
108718
  padding-left: var(--list-padding-left);
108662
108719
  padding-bottom: var(--list-padding-bottom);
108663
108720
  padding-right: var(--list-padding-right);
108664
- gap: var(--list-gap);
108665
- overflow: overlay;
108666
- outline: none;
108667
- width: 100%;
108668
- height: 100%;
108721
+ flex: none;
108722
+ position: relative;
108669
108723
  }
108670
108724
 
108671
- :host [part="filter"] {
108672
- z-index: 2;
108673
- position: sticky;
108674
- top: 8px;
108725
+ :host [part="header"][hidden], :host [part="footer"][hidden] {
108726
+ display: none;
108727
+ }
108728
+
108729
+ :host [part="header"] {
108730
+ background-color: var(--list-background-color);
108731
+ }
108732
+
108733
+ :host [part="header"]:after {
108734
+ content: "";
108735
+ height: var(--list-line-thickness);
108736
+ background-color: var(--list-border-color);
108737
+ position: absolute;
108738
+ bottom: 0;
108739
+ left: 0;
108740
+ right: 0;
108741
+ }
108742
+
108743
+ :host [part="footer"] {
108744
+ background-color: var(--list-background-color);
108745
+ }
108746
+
108747
+ :host [part="footer"]:before {
108748
+ content: "";
108749
+ height: var(--list-line-thickness);
108750
+ background-color: var(--list-border-color);
108751
+ position: absolute;
108752
+ top: 0;
108753
+ left: 0;
108754
+ right: 0;
108755
+ }
108756
+
108757
+ :host [part="footer"] ::slotted(mosaik-paginator) {
108758
+ flex-direction: row-reverse;
108759
+ align-items: center;
108760
+ display: flex;
108675
108761
  }
108676
108762
 
108677
108763
  :host [part="items"] {
108678
108764
  gap: var(--list-gap);
108765
+ min-height: 0;
108766
+ overflow-y: overlay;
108679
108767
  flex-direction: column;
108768
+ flex: auto;
108680
108769
  display: flex;
108681
108770
  }
108682
108771
 
108683
- :host([orientation="horizontal"]) [part="items"] {
108684
- flex-flow: wrap;
108772
+ :host [part="items"] [part="filter"] {
108773
+ z-index: 2;
108774
+ position: sticky;
108775
+ top: 8px;
108685
108776
  }
108686
108777
 
108687
- :host([inset*="none"]), :host([empty]) {
108688
- --list-padding-top: 0px;
108689
- --list-padding-left: 0px;
108690
- --list-padding-bottom: 0px;
108691
- --list-padding-right: 0px;
108778
+ :host([orientation="horizontal"]) [part="items"] {
108779
+ flex-flow: wrap;
108692
108780
  }
108693
108781
 
108694
108782
  :host([mosaik-dropdown-button-projection]), :host([mosaik-split-button-projection]) {
@@ -108724,6 +108812,7 @@ function rW() {
108724
108812
  --list-font-weight: unset;
108725
108813
  --list-foreground-color: unset;
108726
108814
  --list-gap: unset;
108815
+ --list-line-thickness: unset;
108727
108816
  --list-padding-bottom: unset;
108728
108817
  --list-padding-left: unset;
108729
108818
  --list-padding-right: unset;
@@ -108785,38 +108874,78 @@ function rW() {
108785
108874
  transition-timing-function: var(--list-transition-mode);
108786
108875
  transition-property: var(--list-transition-property);
108787
108876
  box-shadow: var(--list-shadow);
108877
+ outline: none;
108878
+ flex-direction: column;
108879
+ width: 100%;
108880
+ height: 100%;
108881
+ display: flex;
108882
+ overflow: hidden;
108883
+ }
108884
+
108885
+ :host [part="header"], :host [part="footer"] {
108788
108886
  padding-top: var(--list-padding-top);
108789
108887
  padding-left: var(--list-padding-left);
108790
108888
  padding-bottom: var(--list-padding-bottom);
108791
108889
  padding-right: var(--list-padding-right);
108792
- gap: var(--list-gap);
108793
- overflow: overlay;
108794
- outline: none;
108795
- width: 100%;
108796
- height: 100%;
108890
+ flex: none;
108891
+ position: relative;
108797
108892
  }
108798
108893
 
108799
- :host [part="filter"] {
108800
- z-index: 2;
108801
- position: sticky;
108802
- top: 8px;
108894
+ :host [part="header"][hidden], :host [part="footer"][hidden] {
108895
+ display: none;
108896
+ }
108897
+
108898
+ :host [part="header"] {
108899
+ background-color: var(--list-background-color);
108900
+ }
108901
+
108902
+ :host [part="header"]:after {
108903
+ content: "";
108904
+ height: var(--list-line-thickness);
108905
+ background-color: var(--list-border-color);
108906
+ position: absolute;
108907
+ bottom: 0;
108908
+ left: 0;
108909
+ right: 0;
108910
+ }
108911
+
108912
+ :host [part="footer"] {
108913
+ background-color: var(--list-background-color);
108914
+ }
108915
+
108916
+ :host [part="footer"]:before {
108917
+ content: "";
108918
+ height: var(--list-line-thickness);
108919
+ background-color: var(--list-border-color);
108920
+ position: absolute;
108921
+ top: 0;
108922
+ left: 0;
108923
+ right: 0;
108924
+ }
108925
+
108926
+ :host [part="footer"] ::slotted(mosaik-paginator) {
108927
+ flex-direction: row-reverse;
108928
+ align-items: center;
108929
+ display: flex;
108803
108930
  }
108804
108931
 
108805
108932
  :host [part="items"] {
108806
108933
  gap: var(--list-gap);
108934
+ min-height: 0;
108935
+ overflow-y: overlay;
108807
108936
  flex-direction: column;
108937
+ flex: auto;
108808
108938
  display: flex;
108809
108939
  }
108810
108940
 
108811
- :host([orientation="horizontal"]) [part="items"] {
108812
- flex-flow: wrap;
108941
+ :host [part="items"] [part="filter"] {
108942
+ z-index: 2;
108943
+ position: sticky;
108944
+ top: 8px;
108813
108945
  }
108814
108946
 
108815
- :host([inset*="none"]), :host([empty]) {
108816
- --list-padding-top: 0px;
108817
- --list-padding-left: 0px;
108818
- --list-padding-bottom: 0px;
108819
- --list-padding-right: 0px;
108947
+ :host([orientation="horizontal"]) [part="items"] {
108948
+ flex-flow: wrap;
108820
108949
  }
108821
108950
 
108822
108951
  :host([mosaik-dropdown-button-projection]), :host([mosaik-split-button-projection]) {
@@ -108842,7 +108971,7 @@ var iW = function(e, t, n, r) {
108842
108971
  return i > 3 && a && Object.defineProperty(t, n, a), a;
108843
108972
  }, aW = function(e, t) {
108844
108973
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
108845
- }, oW = class extends F(R(dU(hx(Xw(EU))))) {
108974
+ }, oW = class extends F(R(dU(hx(Xw(Y(EU)))))) {
108846
108975
  _provider = FS(this, {
108847
108976
  context: kU,
108848
108977
  values: () => ({ disabled: this.disabled })
@@ -109240,10 +109369,10 @@ function pW() {
109240
109369
  --table-foreground-color: var(--joy-scheme-foreground);
109241
109370
  --table-gap: var(--joy-layout-space);
109242
109371
  --table-line-thickness: var(--joy-layout-thickness);
109243
- --table-padding-bottom: var(--joy-layout-space);
109372
+ --table-padding-bottom: calc(var(--joy-layout-space) * 2);
109244
109373
  --table-padding-left: calc(var(--joy-layout-space) * 2);
109245
109374
  --table-padding-right: calc(var(--joy-layout-space) * 2);
109246
- --table-padding-top: var(--joy-layout-space);
109375
+ --table-padding-top: calc(var(--joy-layout-space) * 2);
109247
109376
  --table-row-border-color: var(--joy-scheme-highlight);
109248
109377
  --table-row-border-radius: unset;
109249
109378
  --table-row-border-style: solid;
@@ -189357,7 +189486,7 @@ function Jbe() {
189357
189486
  --dropdown-transition-duration: unset;
189358
189487
  --dropdown-transition-mode: unset;
189359
189488
  --dropdown-transition-property: unset;
189360
- --dropdown-translate: unset;
189489
+ --dropdown-translate: none;
189361
189490
  }
189362
189491
 
189363
189492
  @media screen and (prefers-reduced-motion: reduce) {
@@ -212993,18 +213122,10 @@ function Cwe() {
212993
213122
  :host {
212994
213123
  width: 100%;
212995
213124
  height: 100%;
212996
- overflow: overlay;
212997
213125
  display: block;
212998
213126
  position: relative;
212999
213127
  }
213000
213128
 
213001
- :host [part="list"] {
213002
- overflow: unset;
213003
- position: unset;
213004
- width: 100%;
213005
- height: 100%;
213006
- }
213007
-
213008
213129
  `;
213009
213130
  }
213010
213131
  //#endregion
@@ -213065,18 +213186,10 @@ function wwe() {
213065
213186
  :host {
213066
213187
  width: 100%;
213067
213188
  height: 100%;
213068
- overflow: overlay;
213069
213189
  display: block;
213070
213190
  position: relative;
213071
213191
  }
213072
213192
 
213073
- :host [part="list"] {
213074
- overflow: unset;
213075
- position: unset;
213076
- width: 100%;
213077
- height: 100%;
213078
- }
213079
-
213080
213193
  `;
213081
213194
  }
213082
213195
  //#endregion
@@ -213137,18 +213250,10 @@ function Twe() {
213137
213250
  :host {
213138
213251
  width: 100%;
213139
213252
  height: 100%;
213140
- overflow: overlay;
213141
213253
  display: block;
213142
213254
  position: relative;
213143
213255
  }
213144
213256
 
213145
- :host [part="list"] {
213146
- overflow: unset;
213147
- position: unset;
213148
- width: 100%;
213149
- height: 100%;
213150
- }
213151
-
213152
213257
  `;
213153
213258
  }
213154
213259
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breadstone/mosaik-elements-svelte",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
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.46",
15
- "@breadstone/mosaik-elements-foundation": "0.1.46",
14
+ "@breadstone/mosaik-elements": "0.1.47",
15
+ "@breadstone/mosaik-elements-foundation": "0.1.47",
16
16
  "tslib": "2.8.1"
17
17
  },
18
18
  "peerDependencies": {