@breadstone/mosaik-elements-svelte 0.1.46 → 0.1.48

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 +10 -0
  2. package/index.mjs +713 -257
  3. package/package.json +3 -3
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;
@@ -177551,7 +177680,7 @@ function Ive(e) {
177551
177680
  `;
177552
177681
  }
177553
177682
  //#endregion
177554
- //#region ../mosaik-elements-foundation/dist/Controls/Components/Overlays/Drawer/Themes/DrawerContentElement.Joy.js
177683
+ //#region ../mosaik-elements-foundation/dist/Controls/Components/Overlays/Drawer/Themes/DrawerContentElement.Cosmopolitan.js
177555
177684
  function Lve() {
177556
177685
  return B`
177557
177686
  :host {
@@ -177562,7 +177691,11 @@ function Lve() {
177562
177691
  --drawer-content-font-text-decoration: unset;
177563
177692
  --drawer-content-font-text-transform: unset;
177564
177693
  --drawer-content-font-weight: unset;
177565
- --drawer-content-gap: var(--joy-layout-space);
177694
+ --drawer-content-gap: unset;
177695
+ --drawer-content-inset-bottom: unset;
177696
+ --drawer-content-inset-left: unset;
177697
+ --drawer-content-inset-right: unset;
177698
+ --drawer-content-inset-top: unset;
177566
177699
  --drawer-content-padding-bottom: unset;
177567
177700
  --drawer-content-padding-left: unset;
177568
177701
  --drawer-content-padding-right: unset;
@@ -177606,10 +177739,13 @@ function Lve() {
177606
177739
  }
177607
177740
 
177608
177741
  :host {
177742
+ margin-left: var(--drawer-content-inset-left);
177743
+ margin-right: var(--drawer-content-inset-right);
177744
+ margin-top: var(--drawer-content-inset-top);
177745
+ margin-bottom: var(--drawer-content-inset-bottom);
177746
+ height: calc(100% - var(--drawer-content-inset-top) - var(--drawer-content-inset-bottom));
177609
177747
  z-index: 1;
177610
- height: 100%;
177611
- padding: var(--drawer-content-padding-top) var(--drawer-content-padding-right) var(--drawer-content-padding-bottom) var(--drawer-content-padding-left);
177612
- transition-property: transform, margin-left, margin-right;
177748
+ transition-property: transform, margin-left, margin-right, margin-top, margin-bottom;
177613
177749
  transition-duration: .4s;
177614
177750
  transition-timing-function: cubic-bezier(.25, .8, .25, 1);
177615
177751
  display: block;
@@ -177620,7 +177756,7 @@ function Lve() {
177620
177756
  `;
177621
177757
  }
177622
177758
  //#endregion
177623
- //#region ../mosaik-elements-foundation/dist/Controls/Components/Overlays/Drawer/Themes/DrawerContentElement.Memphis.js
177759
+ //#region ../mosaik-elements-foundation/dist/Controls/Components/Overlays/Drawer/Themes/DrawerContentElement.Joy.js
177624
177760
  function Rve() {
177625
177761
  return B`
177626
177762
  :host {
@@ -177631,7 +177767,11 @@ function Rve() {
177631
177767
  --drawer-content-font-text-decoration: unset;
177632
177768
  --drawer-content-font-text-transform: unset;
177633
177769
  --drawer-content-font-weight: unset;
177634
- --drawer-content-gap: var(--memphis-layout-space);
177770
+ --drawer-content-gap: var(--joy-layout-space);
177771
+ --drawer-content-inset-bottom: var(--joy-layout-space);
177772
+ --drawer-content-inset-left: unset;
177773
+ --drawer-content-inset-right: var(--joy-layout-space);
177774
+ --drawer-content-inset-top: var(--joy-layout-space);
177635
177775
  --drawer-content-padding-bottom: unset;
177636
177776
  --drawer-content-padding-left: unset;
177637
177777
  --drawer-content-padding-right: unset;
@@ -177675,10 +177815,13 @@ function Rve() {
177675
177815
  }
177676
177816
 
177677
177817
  :host {
177818
+ margin-left: var(--drawer-content-inset-left);
177819
+ margin-right: var(--drawer-content-inset-right);
177820
+ margin-top: var(--drawer-content-inset-top);
177821
+ margin-bottom: var(--drawer-content-inset-bottom);
177822
+ height: calc(100% - var(--drawer-content-inset-top) - var(--drawer-content-inset-bottom));
177678
177823
  z-index: 1;
177679
- height: 100%;
177680
- padding: var(--drawer-content-padding-top) var(--drawer-content-padding-right) var(--drawer-content-padding-bottom) var(--drawer-content-padding-left);
177681
- transition-property: transform, margin-left, margin-right;
177824
+ transition-property: transform, margin-left, margin-right, margin-top, margin-bottom;
177682
177825
  transition-duration: .4s;
177683
177826
  transition-timing-function: cubic-bezier(.25, .8, .25, 1);
177684
177827
  display: block;
@@ -177689,7 +177832,7 @@ function Rve() {
177689
177832
  `;
177690
177833
  }
177691
177834
  //#endregion
177692
- //#region ../mosaik-elements-foundation/dist/Controls/Components/Overlays/Drawer/Themes/DrawerContentElement.Cosmopolitan.js
177835
+ //#region ../mosaik-elements-foundation/dist/Controls/Components/Overlays/Drawer/Themes/DrawerContentElement.Memphis.js
177693
177836
  function zve() {
177694
177837
  return B`
177695
177838
  :host {
@@ -177700,7 +177843,11 @@ function zve() {
177700
177843
  --drawer-content-font-text-decoration: unset;
177701
177844
  --drawer-content-font-text-transform: unset;
177702
177845
  --drawer-content-font-weight: unset;
177703
- --drawer-content-gap: unset;
177846
+ --drawer-content-gap: var(--memphis-layout-space);
177847
+ --drawer-content-inset-bottom: unset;
177848
+ --drawer-content-inset-left: unset;
177849
+ --drawer-content-inset-right: unset;
177850
+ --drawer-content-inset-top: unset;
177704
177851
  --drawer-content-padding-bottom: unset;
177705
177852
  --drawer-content-padding-left: unset;
177706
177853
  --drawer-content-padding-right: unset;
@@ -177744,10 +177891,13 @@ function zve() {
177744
177891
  }
177745
177892
 
177746
177893
  :host {
177894
+ margin-left: var(--drawer-content-inset-left);
177895
+ margin-right: var(--drawer-content-inset-right);
177896
+ margin-top: var(--drawer-content-inset-top);
177897
+ margin-bottom: var(--drawer-content-inset-bottom);
177898
+ height: calc(100% - var(--drawer-content-inset-top) - var(--drawer-content-inset-bottom));
177747
177899
  z-index: 1;
177748
- height: 100%;
177749
- padding: var(--drawer-content-padding-top) var(--drawer-content-padding-right) var(--drawer-content-padding-bottom) var(--drawer-content-padding-left);
177750
- transition-property: transform, margin-left, margin-right;
177900
+ transition-property: transform, margin-left, margin-right, margin-top, margin-bottom;
177751
177901
  transition-duration: .4s;
177752
177902
  transition-timing-function: cubic-bezier(.25, .8, .25, 1);
177753
177903
  display: block;
@@ -177767,27 +177917,25 @@ var p2 = function(e, t, n, r) {
177767
177917
  }, m2 = function(e, t) {
177768
177918
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
177769
177919
  }, h2 = class extends F(j) {
177770
- _opened;
177920
+ _isOpen;
177771
177921
  constructor() {
177772
- super(), this._opened = !1;
177922
+ super(), this._isOpen = !1;
177773
177923
  }
177774
177924
  static get is() {
177775
177925
  return "mosaik-drawer-content";
177776
177926
  }
177777
- get opened() {
177778
- return this._opened;
177927
+ get isOpen() {
177928
+ return this._isOpen;
177779
177929
  }
177780
- set opened(e) {
177781
- this._opened !== e && (this._opened = e);
177930
+ set isOpen(e) {
177931
+ this._isOpen !== e && (this._isOpen = e, this.requestUpdate("isOpen"));
177782
177932
  }
177783
177933
  onApplyTemplate() {
177784
- super.onApplyTemplate();
177785
- let e = O.current.findAncestor(this, z2, { strict: !1 });
177786
- e?.on("contentMarginChanged", (t) => {
177787
- I.current.setStyle(this, "margin-left", `${t.detail.left}px`), I.current.setStyle(this, "margin-right", `${t.detail.right}px`), this.opened = e.drawer?.isOpen ?? !1;
177934
+ super.onApplyTemplate(), O.current.findAncestor(this, z2, { strict: !1 })?.on("contentMarginChanged", (e) => {
177935
+ I.current.setStyle(this, "margin-left", `calc(${e.detail.left}px + var(--drawer-content-inset-left, 0px))`), I.current.setStyle(this, "margin-right", `calc(${e.detail.right}px + var(--drawer-content-inset-right, 0px))`);
177788
177936
  }, { passive: !0 });
177789
177937
  }
177790
- onOpenedPropertyChanged(e, t) {
177938
+ onIsOpenPropertyChanged(e, t) {
177791
177939
  t ? I.current.addClass(this, "drawer-opened") : I.current.removeClass(this, "drawer-opened");
177792
177940
  }
177793
177941
  };
@@ -177798,18 +177946,18 @@ p2([
177798
177946
  }),
177799
177947
  m2("design:type", Boolean),
177800
177948
  m2("design:paramtypes", [Boolean])
177801
- ], h2.prototype, "opened", null), p2([
177802
- L("opened"),
177949
+ ], h2.prototype, "isOpen", null), p2([
177950
+ L("isOpen"),
177803
177951
  m2("design:type", Function),
177804
177952
  m2("design:paramtypes", [Boolean, Boolean]),
177805
177953
  m2("design:returntype", void 0)
177806
- ], h2.prototype, "onOpenedPropertyChanged", null), h2 = p2([H({
177954
+ ], h2.prototype, "onIsOpenPropertyChanged", null), h2 = p2([H({
177807
177955
  selector: "mosaik-drawer-content",
177808
177956
  template: Ive,
177809
177957
  themes: {
177810
- joy: Lve,
177811
- memphis: Rve,
177812
- cosmopolitan: zve
177958
+ joy: Rve,
177959
+ memphis: zve,
177960
+ cosmopolitan: Lve
177813
177961
  },
177814
177962
  options: {
177815
177963
  mode: "open",
@@ -179348,8 +179496,12 @@ function cye() {
179348
179496
  transition-duration: var(--drawer-transition-duration);
179349
179497
  transition-timing-function: var(--drawer-transition-mode);
179350
179498
  transition-property: var(--drawer-transition-property);
179499
+ padding: 0;
179500
+ padding-top: env(safe-area-inset-top);
179501
+ padding-bottom: env(safe-area-inset-bottom);
179351
179502
  border-radius: 0;
179352
179503
  flex-direction: column;
179504
+ margin: 0;
179353
179505
  display: flex;
179354
179506
  position: absolute;
179355
179507
  overflow: hidden;
@@ -179597,8 +179749,12 @@ function lye() {
179597
179749
  transition-duration: var(--drawer-transition-duration);
179598
179750
  transition-timing-function: var(--drawer-transition-mode);
179599
179751
  transition-property: var(--drawer-transition-property);
179752
+ padding: 0;
179753
+ padding-top: env(safe-area-inset-top);
179754
+ padding-bottom: env(safe-area-inset-bottom);
179600
179755
  border-radius: 0;
179601
179756
  flex-direction: column;
179757
+ margin: 0;
179602
179758
  display: flex;
179603
179759
  position: absolute;
179604
179760
  overflow: hidden;
@@ -179853,8 +180009,12 @@ function uye() {
179853
180009
  transition-duration: var(--drawer-transition-duration);
179854
180010
  transition-timing-function: var(--drawer-transition-mode);
179855
180011
  transition-property: var(--drawer-transition-property);
180012
+ padding: 0;
180013
+ padding-top: env(safe-area-inset-top);
180014
+ padding-bottom: env(safe-area-inset-bottom);
179856
180015
  border-radius: 0;
179857
180016
  flex-direction: column;
180017
+ margin: 0;
179858
180018
  display: flex;
179859
180019
  position: absolute;
179860
180020
  overflow: hidden;
@@ -180138,6 +180298,9 @@ var N2 = function(e, t, n, r) {
180138
180298
  onApplyTemplate() {
180139
180299
  super.onApplyTemplate(), O.current.findAncestor(this, z2) && (this.isComposed = !0);
180140
180300
  }
180301
+ onIsOpenChanged(e, t) {
180302
+ super.onIsOpenChanged(e, t), O.current.findAncestor(this, z2, { strict: !1 })?.updateDrawerState();
180303
+ }
180141
180304
  createVerticalDrawerRootStyles(e) {
180142
180305
  let t = this.getDrawerViewportInset(), n = this.createInsetSize(F2.FULL_SIZE, t);
180143
180306
  return {
@@ -180246,6 +180409,7 @@ N2([
180246
180409
  function dye() {
180247
180410
  return B`
180248
180411
  :host {
180412
+ --drawer-container-background-color: unset;
180249
180413
  --drawer-container-font-family: unset;
180250
180414
  --drawer-container-font-letter-spacing: unset;
180251
180415
  --drawer-container-font-line-height: unset;
@@ -180297,8 +180461,8 @@ function dye() {
180297
180461
  }
180298
180462
 
180299
180463
  :host {
180464
+ background-color: var(--drawer-container-background-color);
180300
180465
  z-index: 1;
180301
- box-sizing: border-box;
180302
180466
  -webkit-overflow-scrolling: touch;
180303
180467
  overflow: hidden;
180304
180468
  }
@@ -180336,6 +180500,7 @@ function dye() {
180336
180500
  function fye() {
180337
180501
  return B`
180338
180502
  :host {
180503
+ --drawer-container-background-color: var(--joy-scheme-surface);
180339
180504
  --drawer-container-font-family: unset;
180340
180505
  --drawer-container-font-letter-spacing: unset;
180341
180506
  --drawer-container-font-line-height: unset;
@@ -180387,8 +180552,8 @@ function fye() {
180387
180552
  }
180388
180553
 
180389
180554
  :host {
180555
+ background-color: var(--drawer-container-background-color);
180390
180556
  z-index: 1;
180391
- box-sizing: border-box;
180392
180557
  -webkit-overflow-scrolling: touch;
180393
180558
  overflow: hidden;
180394
180559
  }
@@ -180426,6 +180591,7 @@ function fye() {
180426
180591
  function pye() {
180427
180592
  return B`
180428
180593
  :host {
180594
+ --drawer-container-background-color: unset;
180429
180595
  --drawer-container-font-family: unset;
180430
180596
  --drawer-container-font-letter-spacing: unset;
180431
180597
  --drawer-container-font-line-height: unset;
@@ -180477,8 +180643,8 @@ function pye() {
180477
180643
  }
180478
180644
 
180479
180645
  :host {
180646
+ background-color: var(--drawer-container-background-color);
180480
180647
  z-index: 1;
180481
- box-sizing: border-box;
180482
180648
  -webkit-overflow-scrolling: touch;
180483
180649
  overflow: hidden;
180484
180650
  }
@@ -180527,8 +180693,9 @@ var L2 = function(e, t, n, r) {
180527
180693
  _content;
180528
180694
  _autoSize;
180529
180695
  _hasBackdrop;
180696
+ _isOpen;
180530
180697
  constructor() {
180531
- super(), this._drawer = null, this._content = null, this._autoSize = !1, this._hasBackdrop = !1, this._contentMarginChanged = new E(this, "contentMarginChanged", { bubbles: !1 }), this._resizeController = new Yz(this, { callback: () => this.updateContentMargins() });
180698
+ super(), this._drawer = null, this._content = null, this._autoSize = !1, this._hasBackdrop = !1, this._isOpen = !1, this._contentMarginChanged = new E(this, "contentMarginChanged", { bubbles: !1 }), this._resizeController = new Yz(this, { callback: () => this.updateContentMargins() });
180532
180699
  }
180533
180700
  static get is() {
180534
180701
  return "mosaik-drawer-container";
@@ -180545,6 +180712,12 @@ var L2 = function(e, t, n, r) {
180545
180712
  set hasBackdrop(e) {
180546
180713
  this._hasBackdrop !== e && (this._hasBackdrop = e, this.requestUpdate("hasBackdrop"));
180547
180714
  }
180715
+ get isOpen() {
180716
+ return this._isOpen;
180717
+ }
180718
+ set isOpen(e) {
180719
+ this._isOpen !== e && (this._isOpen = e, this.classList.toggle("drawer-container-has-open", e), this.requestUpdate("isOpen"));
180720
+ }
180548
180721
  get contentMarginChanged() {
180549
180722
  return this._contentMarginChanged;
180550
180723
  }
@@ -180560,8 +180733,12 @@ var L2 = function(e, t, n, r) {
180560
180733
  close() {
180561
180734
  this._drawer?.close();
180562
180735
  }
180736
+ updateDrawerState() {
180737
+ let e = this._drawer?.isOpen ?? !1;
180738
+ this.isOpen = e, this._content && (this._content.isOpen = e), this.updateContentMargins();
180739
+ }
180563
180740
  onApplyTemplate() {
180564
- super.onApplyTemplate(), this._drawer = O.current.findDescendant(this, I2), this._content = O.current.findDescendant(this, h2), this._drawer?.parentElement === this && (this._drawer.on("opened", () => this.updateContentMargins()), this._drawer.on("closed", () => this.updateContentMargins()), this.updateContentMargins());
180741
+ super.onApplyTemplate(), this._drawer = O.current.findDescendant(this, I2), this._content = O.current.findDescendant(this, h2), this._drawer?.parentElement === this && (this._drawer.on("opened", () => this.updateContentMargins()), this._drawer.on("closed", () => this.updateContentMargins()), this.updateDrawerState());
180565
180742
  }
180566
180743
  updateContentMargins() {
180567
180744
  this.updateComplete.then(() => {
@@ -180602,6 +180779,13 @@ L2([
180602
180779
  R2("design:type", Boolean),
180603
180780
  R2("design:paramtypes", [Boolean])
180604
180781
  ], z2.prototype, "hasBackdrop", null), L2([
180782
+ A({
180783
+ type: Boolean,
180784
+ useDefault: !0
180785
+ }),
180786
+ R2("design:type", Boolean),
180787
+ R2("design:paramtypes", [Boolean])
180788
+ ], z2.prototype, "isOpen", null), L2([
180605
180789
  k({ eventName: "contentMarginChanged" }),
180606
180790
  R2("design:type", Object),
180607
180791
  R2("design:paramtypes", [])
@@ -189357,7 +189541,7 @@ function Jbe() {
189357
189541
  --dropdown-transition-duration: unset;
189358
189542
  --dropdown-transition-mode: unset;
189359
189543
  --dropdown-transition-property: unset;
189360
- --dropdown-translate: unset;
189544
+ --dropdown-translate: none;
189361
189545
  }
189362
189546
 
189363
189547
  @media screen and (prefers-reduced-motion: reduce) {
@@ -199117,7 +199301,9 @@ var n6;
199117
199301
  variant: Gy.DEFAULTS.variant,
199118
199302
  appearance: Jx.DEFAULTS.appearance,
199119
199303
  total: 0,
199304
+ totalRecords: 0,
199120
199305
  size: 20,
199306
+ rows: 20,
199121
199307
  sizes: [
199122
199308
  20,
199123
199309
  50,
@@ -199125,7 +199311,14 @@ var n6;
199125
199311
  ],
199126
199312
  showSizes: !1,
199127
199313
  currentPage: 0,
199128
- showFirstLastButtons: !0
199314
+ first: 0,
199315
+ pageLinkSize: 5,
199316
+ alwaysShow: !0,
199317
+ showPageLinks: !0,
199318
+ showFirstLastIcon: !0,
199319
+ showFirstLastButtons: !0,
199320
+ showCurrentPageReport: !1,
199321
+ currentPageReportTemplate: "{currentPage} of {totalPages}"
199129
199322
  };
199130
199323
  })(n6 ||= {});
199131
199324
  //#endregion
@@ -199137,8 +199330,9 @@ var r6 = class extends iL {
199137
199330
  _nextPageLabel;
199138
199331
  _previousPageLabel;
199139
199332
  _itemsPerPageLabel;
199333
+ _pageLabel;
199140
199334
  constructor(e) {
199141
- super(e), this._rangeLabel = "{0}-{1} of {2}", this._firstPageLabel = "First page", this._lastPageLabel = "Last page", this._nextPageLabel = "Next page", this._previousPageLabel = "Previous page", this._itemsPerPageLabel = "Items per page";
199335
+ super(e), this._rangeLabel = "{0}-{1} of {2}", this._firstPageLabel = "First page", this._lastPageLabel = "Last page", this._nextPageLabel = "Next page", this._previousPageLabel = "Previous page", this._itemsPerPageLabel = "Items per page", this._pageLabel = "Page {0}";
199142
199336
  }
199143
199337
  get rangeLabel() {
199144
199338
  return this._rangeLabel;
@@ -199176,17 +199370,23 @@ var r6 = class extends iL {
199176
199370
  set itemsPerPageLabel(e) {
199177
199371
  this._itemsPerPageLabel = e;
199178
199372
  }
199373
+ get pageLabel() {
199374
+ return this._pageLabel;
199375
+ }
199376
+ set pageLabel(e) {
199377
+ this._pageLabel = e;
199378
+ }
199179
199379
  };
199180
199380
  //#endregion
199181
199381
  //#region ../mosaik-elements-foundation/dist/Controls/Components/Primitives/Paginator/PaginatorElementTemplate.js
199182
199382
  function CSe(e) {
199183
199383
  return V`
199184
- <mosaik-stack part="container"
199185
- .lang="${e.lang}"
199186
- .dir="${e.dir}"
199187
- .gap="${"8px"}"
199188
- .verticalAlignment="${Zb.Center}">
199189
- ${U(e.showFirstLastButtons, () => V`
199384
+ ${U(e.isVisible, () => V`
199385
+ <div part="container navigation-container"
199386
+ lang="${e.lang}"
199387
+ dir="${e.dir}"
199388
+ role="navigation">
199389
+ ${U(e.showFirstLastIcon, () => V`
199190
199390
  <mosaik-button part="first"
199191
199391
  .lang="${e.lang}"
199192
199392
  .dir="${e.dir}"
@@ -199206,8 +199406,10 @@ function CSe(e) {
199206
199406
  .disabled="${e.disabled || !e.hasPreviousPage}"
199207
199407
  .ariaLabel="${e.intl.previousPageLabel}"
199208
199408
  @click="${() => e.goToPreviousPage()}"></mosaik-button>
199209
- <mosaik-stack part="pages-container" .lang="${e.lang}"
199210
- .dir="${e.dir}">
199409
+ ${U(e.showPageLinks, () => V`
199410
+ <div part="pages-container page-links"
199411
+ lang="${e.lang}"
199412
+ dir="${e.dir}">
199211
199413
  ${Pb(e.calculatePages(e.total, e.size), (e) => e, (t) => V`
199212
199414
  <mosaik-button part="page"
199213
199415
  .lang="${e.lang}"
@@ -199216,11 +199418,12 @@ function CSe(e) {
199216
199418
  .appearance="${t - 1 === e.currentPage ? e.appearance : q.Plain}"
199217
199419
  .variant="${t - 1 === e.currentPage ? e.variant : Uy.Default}"
199218
199420
  .disabled="${e.disabled}"
199219
- .ariaLabel="${"Page " + t}"
199421
+ .ariaLabel="${CR(e.intl.pageLabel, t)}"
199220
199422
  .ariaCurrent="${t - 1 === e.currentPage ? "page" : null}"
199221
199423
  @click="${() => e.goToPage(t - 1)}"></mosaik-button>
199222
199424
  `)}
199223
- </mosaik-stack>
199425
+ </div>
199426
+ `)}
199224
199427
  <mosaik-button part="next"
199225
199428
  .lang="${e.lang}"
199226
199429
  .dir="${e.dir}"
@@ -199230,7 +199433,7 @@ function CSe(e) {
199230
199433
  .disabled="${e.disabled || !e.hasNextPage}"
199231
199434
  .ariaLabel="${e.intl.nextPageLabel}"
199232
199435
  @click="${() => e.goToNextPage()}"></mosaik-button>
199233
- ${U(e.showFirstLastButtons, () => V`
199436
+ ${U(e.showFirstLastIcon, () => V`
199234
199437
  <mosaik-button part="last"
199235
199438
  .lang="${e.lang}"
199236
199439
  .dir="${e.dir}"
@@ -199243,17 +199446,18 @@ function CSe(e) {
199243
199446
  `)}
199244
199447
 
199245
199448
  ${U(e.showSizes, () => V`
199246
- <mosaik-stack part="size-selector-container"
199247
- .lang="${e.lang}"
199248
- .dir="${e.dir}">
199249
- <mosaik-select part="size-selector" .lang="${e.lang}"
199449
+ <div part="size-selector-container page-size-container"
199450
+ lang="${e.lang}"
199451
+ dir="${e.dir}">
199452
+ <mosaik-select part="size-selector"
199453
+ .lang="${e.lang}"
199250
199454
  .dir="${e.dir}"
199251
- .appearance="${e.appearance}"
199455
+ .appearance="${"plain"}"
199252
199456
  .variant="${e.variant}"
199253
199457
  .disabled="${e.disabled}"
199254
199458
  .value="${e.size.toString()}"
199255
199459
  .ariaLabel="${e.intl.itemsPerPageLabel}"
199256
- @selectionChanged="${(t) => e.changePageSize(t.detail.newValue.value)}">
199460
+ @selectionChanged="${(t) => e.changePageSize(Number(t.detail.newValue.value))}">
199257
199461
  ${Pb(e.sizes, (e) => e, (t) => V`
199258
199462
  <mosaik-select-item .lang="${e.lang}"
199259
199463
  .dir="${e.dir}"
@@ -199261,17 +199465,21 @@ function CSe(e) {
199261
199465
  .label="${t.toString()}"></mosaik-select-item>
199262
199466
  `)}
199263
199467
  </mosaik-select>
199264
- </mosaik-stack>
199468
+ </div>
199265
199469
  `)}
199266
- </mosaik-stack>
199267
- <mosaik-stack part="range-container"
199268
- .lang="${e.lang}"
199269
- .dir="${e.dir}">
199270
- <mosaik-text part="range"
199271
- .lang="${e.lang}"
199272
- .dir="${e.dir}"
199273
- .text="${CR(e.intl.rangeLabel, e.rangeStart, e.rangeEnd, e.total)}"></mosaik-text>
199274
- </mosaik-stack>
199470
+ ${U(e.showCurrentPageReport, () => V`
199471
+ <div part="range-container report-container"
199472
+ lang="${e.lang}"
199473
+ dir="${e.dir}">
199474
+ <mosaik-text part="range current-page-report"
199475
+ .lang="${e.lang}"
199476
+ .dir="${e.dir}"
199477
+ .ariaLive="${"polite"}"
199478
+ .text="${e.currentPageReport}"></mosaik-text>
199479
+ </div>
199480
+ `)}
199481
+ </div>
199482
+ `)}
199275
199483
  `;
199276
199484
  }
199277
199485
  //#endregion
@@ -199330,12 +199538,38 @@ function wSe() {
199330
199538
  display: none !important;
199331
199539
  }
199332
199540
 
199333
- :host [part^="page"], :host [part="page more"] {
199541
+ :host [part~="container"] {
199542
+ flex-wrap: nowrap;
199543
+ align-items: center;
199544
+ gap: 8px;
199545
+ min-width: 0;
199546
+ display: flex;
199547
+ }
199548
+
199549
+ :host [part~="pages-container"], :host [part~="size-selector-container"], :host [part~="range-container"] {
199550
+ flex: none;
199551
+ align-items: center;
199552
+ min-width: 0;
199553
+ display: flex;
199554
+ }
199555
+
199556
+ :host [part~="pages-container"], :host [part~="range-container"] {
199557
+ flex-wrap: nowrap;
199558
+ }
199559
+
199560
+ :host [part~="range"] {
199561
+ white-space: nowrap;
199562
+ }
199563
+
199564
+ :host [part~="page"] {
199565
+ flex: none;
199334
199566
  min-width: 40px;
199335
199567
  }
199336
199568
 
199337
- :host [part="size-selector"] {
199569
+ :host [part~="size-selector"] {
199570
+ flex: none;
199338
199571
  width: 160px;
199572
+ min-width: 160px;
199339
199573
  }
199340
199574
 
199341
199575
  `;
@@ -199396,12 +199630,38 @@ function TSe() {
199396
199630
  display: none !important;
199397
199631
  }
199398
199632
 
199399
- :host [part^="page"], :host [part="page more"] {
199633
+ :host [part~="container"] {
199634
+ flex-wrap: nowrap;
199635
+ align-items: center;
199636
+ gap: 8px;
199637
+ min-width: 0;
199638
+ display: flex;
199639
+ }
199640
+
199641
+ :host [part~="pages-container"], :host [part~="size-selector-container"], :host [part~="range-container"] {
199642
+ flex: none;
199643
+ align-items: center;
199644
+ min-width: 0;
199645
+ display: flex;
199646
+ }
199647
+
199648
+ :host [part~="pages-container"], :host [part~="range-container"] {
199649
+ flex-wrap: nowrap;
199650
+ }
199651
+
199652
+ :host [part~="range"] {
199653
+ white-space: nowrap;
199654
+ }
199655
+
199656
+ :host [part~="page"] {
199657
+ flex: none;
199400
199658
  min-width: 40px;
199401
199659
  }
199402
199660
 
199403
- :host [part="size-selector"] {
199661
+ :host [part~="size-selector"] {
199662
+ flex: none;
199404
199663
  width: 160px;
199664
+ min-width: 160px;
199405
199665
  }
199406
199666
 
199407
199667
  `;
@@ -199462,12 +199722,38 @@ function ESe() {
199462
199722
  display: none !important;
199463
199723
  }
199464
199724
 
199465
- :host [part^="page"], :host [part="page more"] {
199725
+ :host [part~="container"] {
199726
+ flex-wrap: nowrap;
199727
+ align-items: center;
199728
+ gap: 8px;
199729
+ min-width: 0;
199730
+ display: flex;
199731
+ }
199732
+
199733
+ :host [part~="pages-container"], :host [part~="size-selector-container"], :host [part~="range-container"] {
199734
+ flex: none;
199735
+ align-items: center;
199736
+ min-width: 0;
199737
+ display: flex;
199738
+ }
199739
+
199740
+ :host [part~="pages-container"], :host [part~="range-container"] {
199741
+ flex-wrap: nowrap;
199742
+ }
199743
+
199744
+ :host [part~="range"] {
199745
+ white-space: nowrap;
199746
+ }
199747
+
199748
+ :host [part~="page"] {
199749
+ flex: none;
199466
199750
  min-width: 40px;
199467
199751
  }
199468
199752
 
199469
- :host [part="size-selector"] {
199753
+ :host [part~="size-selector"] {
199754
+ flex: none;
199470
199755
  width: 160px;
199756
+ min-width: 160px;
199471
199757
  }
199472
199758
 
199473
199759
  `;
@@ -199490,9 +199776,14 @@ var i6 = function(e, t, n, r) {
199490
199776
  _sizes;
199491
199777
  _showSizes;
199492
199778
  _currentPage;
199493
- _showFirstLastButtons;
199779
+ _pageLinkSize;
199780
+ _alwaysShow;
199781
+ _showPageLinks;
199782
+ _showFirstLastIcon;
199783
+ _showCurrentPageReport;
199784
+ _currentPageReportTemplate;
199494
199785
  constructor() {
199495
- super(), this._intl = new OI(this, { factory: () => new r6() }), this._pageChanged = new E(this, "pageChanged"), this._pageSizeChanged = new E(this, "pageSizeChanged"), this._total = n6.DEFAULTS.total, this._size = n6.DEFAULTS.size, this._sizes = n6.DEFAULTS.sizes, this._showSizes = n6.DEFAULTS.showSizes, this._currentPage = n6.DEFAULTS.currentPage, this._showFirstLastButtons = n6.DEFAULTS.showFirstLastButtons;
199786
+ super(), this._intl = new OI(this, { factory: () => new r6() }), this._pageChanged = new E(this, "pageChanged"), this._pageSizeChanged = new E(this, "pageSizeChanged"), this._total = n6.DEFAULTS.total, this._size = n6.DEFAULTS.size, this._sizes = n6.DEFAULTS.sizes, this._showSizes = n6.DEFAULTS.showSizes, this._currentPage = n6.DEFAULTS.currentPage, this._pageLinkSize = n6.DEFAULTS.pageLinkSize, this._alwaysShow = n6.DEFAULTS.alwaysShow, this._showPageLinks = n6.DEFAULTS.showPageLinks, this._showFirstLastIcon = n6.DEFAULTS.showFirstLastIcon, this._showCurrentPageReport = n6.DEFAULTS.showCurrentPageReport, this._currentPageReportTemplate = n6.DEFAULTS.currentPageReportTemplate;
199496
199787
  }
199497
199788
  static get is() {
199498
199789
  return "mosaik-paginator";
@@ -199501,13 +199792,27 @@ var i6 = function(e, t, n, r) {
199501
199792
  return this._total;
199502
199793
  }
199503
199794
  set total(e) {
199504
- this._total !== e && (this._total = e, this.requestUpdate("total"));
199795
+ let t = this.normalizeNonNegativeNumber(e);
199796
+ this._total !== t && (this._total = t, this.clampCurrentPage(), this.requestUpdate("total"), this.requestUpdate("totalRecords"));
199797
+ }
199798
+ get totalRecords() {
199799
+ return this._total;
199800
+ }
199801
+ set totalRecords(e) {
199802
+ this.total = e, this.requestUpdate("totalRecords");
199505
199803
  }
199506
199804
  get size() {
199507
199805
  return this._size;
199508
199806
  }
199509
199807
  set size(e) {
199510
- this._size !== e && (this._size = e, this.requestUpdate("size"));
199808
+ let t = this.normalizeNonNegativeNumber(e);
199809
+ this._size !== t && (this._size = t, this.clampCurrentPage(), this.requestUpdate("size"), this.requestUpdate("rows"), this.requestUpdate("first"));
199810
+ }
199811
+ get rows() {
199812
+ return this._size;
199813
+ }
199814
+ set rows(e) {
199815
+ this.size = e, this.requestUpdate("rows");
199511
199816
  }
199512
199817
  get sizes() {
199513
199818
  return this._sizes;
@@ -199531,14 +199836,58 @@ var i6 = function(e, t, n, r) {
199531
199836
  return this._currentPage;
199532
199837
  }
199533
199838
  set currentPage(e) {
199534
- let t = Math.max(0, Math.min(e, this.totalPages - 1));
199535
- this._currentPage !== t && (this._currentPage = t, this.requestUpdate("currentPage"));
199839
+ let t = this.normalizePageIndex(e);
199840
+ this._currentPage !== t && (this._currentPage = t, this.requestUpdate("currentPage"), this.requestUpdate("first"));
199841
+ }
199842
+ get first() {
199843
+ return this._currentPage * this._size;
199844
+ }
199845
+ set first(e) {
199846
+ let t = this.normalizeNonNegativeNumber(e), n = this._size > 0 ? Math.floor(t / this._size) : 0;
199847
+ this._currentPage !== this.normalizePageIndex(n) && (this.currentPage = n, this.requestUpdate("first"));
199848
+ }
199849
+ get pageLinkSize() {
199850
+ return this._pageLinkSize;
199851
+ }
199852
+ set pageLinkSize(e) {
199853
+ let t = this.normalizeNonNegativeNumber(e);
199854
+ this._pageLinkSize !== t && (this._pageLinkSize = t, this.requestUpdate("pageLinkSize"));
199855
+ }
199856
+ get alwaysShow() {
199857
+ return this._alwaysShow;
199858
+ }
199859
+ set alwaysShow(e) {
199860
+ this._alwaysShow !== e && (this._alwaysShow = e, this.requestUpdate("alwaysShow"));
199861
+ }
199862
+ get showPageLinks() {
199863
+ return this._showPageLinks;
199864
+ }
199865
+ set showPageLinks(e) {
199866
+ this._showPageLinks !== e && (this._showPageLinks = e, this.requestUpdate("showPageLinks"));
199867
+ }
199868
+ get showFirstLastIcon() {
199869
+ return this._showFirstLastIcon;
199870
+ }
199871
+ set showFirstLastIcon(e) {
199872
+ this._showFirstLastIcon !== e && (this._showFirstLastIcon = e, this.requestUpdate("showFirstLastIcon"), this.requestUpdate("showFirstLastButtons"));
199536
199873
  }
199537
199874
  get showFirstLastButtons() {
199538
- return this._showFirstLastButtons;
199875
+ return this._showFirstLastIcon;
199539
199876
  }
199540
199877
  set showFirstLastButtons(e) {
199541
- this._showFirstLastButtons !== e && (this._showFirstLastButtons = e, this.requestUpdate("showFirstLastButtons"));
199878
+ this.showFirstLastIcon = e, this.requestUpdate("showFirstLastButtons");
199879
+ }
199880
+ get showCurrentPageReport() {
199881
+ return this._showCurrentPageReport;
199882
+ }
199883
+ set showCurrentPageReport(e) {
199884
+ this._showCurrentPageReport !== e && (this._showCurrentPageReport = e, this.requestUpdate("showCurrentPageReport"));
199885
+ }
199886
+ get currentPageReportTemplate() {
199887
+ return this._currentPageReportTemplate;
199888
+ }
199889
+ set currentPageReportTemplate(e) {
199890
+ this._currentPageReportTemplate !== e && (this._currentPageReportTemplate = e, this.requestUpdate("currentPageReportTemplate"));
199542
199891
  }
199543
199892
  get totalPages() {
199544
199893
  return this._total <= 0 || this._size <= 0 ? 0 : Math.ceil(this._total / this._size);
@@ -199555,6 +199904,12 @@ var i6 = function(e, t, n, r) {
199555
199904
  get hasNextPage() {
199556
199905
  return this._currentPage < this.totalPages - 1;
199557
199906
  }
199907
+ get isVisible() {
199908
+ return this._alwaysShow || this.totalPages > 1;
199909
+ }
199910
+ get currentPageReport() {
199911
+ return this._currentPageReportTemplate.replace("{currentPage}", String(this.currentPageNumber)).replace("{totalPages}", String(this.totalPages)).replace("{rows}", String(this._size)).replace("{first}", String(this._total > 0 ? this.first + 1 : 0)).replace("{last}", String(this.rangeEnd)).replace("{totalRecords}", String(this._total));
199912
+ }
199558
199913
  get pageChanged() {
199559
199914
  return this._pageChanged;
199560
199915
  }
@@ -199576,26 +199931,47 @@ var i6 = function(e, t, n, r) {
199576
199931
  goToPage(e) {
199577
199932
  if (this.disabled) return;
199578
199933
  let t = this._currentPage;
199579
- this.currentPage = e, t !== this._currentPage && this._pageChanged.emit({
199580
- pageIndex: this._currentPage,
199581
- pageSize: this._size,
199582
- totalItems: this._total
199583
- });
199934
+ this.currentPage = e, t !== this._currentPage && this._pageChanged.emit(this.createPaginatedEventDetail());
199584
199935
  }
199585
199936
  changePageSize(e) {
199586
- if (this.disabled || e <= 0) return;
199587
- let t = this._size;
199588
- this._size = e, this._currentPage = 0, this.requestUpdate("size"), this.requestUpdate("currentPage"), t !== this._size && this._pageSizeChanged.emit({
199589
- pageIndex: this._currentPage,
199590
- pageSize: this._size,
199591
- totalItems: this._total
199592
- });
199937
+ let t = this.normalizeNonNegativeNumber(e);
199938
+ if (this.disabled || t <= 0) return;
199939
+ let n = this._size;
199940
+ this._size = t, this._currentPage = 0, this.requestUpdate("size"), this.requestUpdate("rows"), this.requestUpdate("currentPage"), this.requestUpdate("first"), n !== this._size && this._pageSizeChanged.emit(this.createPaginatedEventDetail());
199593
199941
  }
199594
199942
  calculatePages(e, t) {
199595
199943
  if (e <= 0 || t <= 0) return [];
199596
- let n = Math.ceil(e / t), r = [];
199597
- for (let e = 1; e <= n; e++) r.push(e);
199598
- return r;
199944
+ let n = Math.ceil(e / t), r = Math.min(this._pageLinkSize, n);
199945
+ if (r <= 0) return [];
199946
+ let i = [], a = Math.max(0, Math.ceil(this._currentPage - r / 2)), o = Math.min(n - 1, a + r - 1), s = this._pageLinkSize - (o - a + 1);
199947
+ a = Math.max(0, a - s);
199948
+ for (let e = a; e <= o; e++) i.push(e + 1);
199949
+ return i;
199950
+ }
199951
+ get currentPageNumber() {
199952
+ return this.totalPages > 0 ? this._currentPage + 1 : 0;
199953
+ }
199954
+ clampCurrentPage() {
199955
+ let e = this.normalizePageIndex(this._currentPage);
199956
+ this._currentPage !== e && (this._currentPage = e, this.requestUpdate("currentPage"), this.requestUpdate("first"));
199957
+ }
199958
+ normalizeNonNegativeNumber(e) {
199959
+ return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
199960
+ }
199961
+ normalizePageIndex(e) {
199962
+ return Number.isFinite(e) ? Math.max(0, Math.min(Math.floor(e), Math.max(this.totalPages - 1, 0))) : 0;
199963
+ }
199964
+ createPaginatedEventDetail() {
199965
+ return {
199966
+ pageIndex: this._currentPage,
199967
+ page: this._currentPage,
199968
+ first: this.first,
199969
+ pageSize: this._size,
199970
+ rows: this._size,
199971
+ pageCount: this.totalPages,
199972
+ totalItems: this._total,
199973
+ totalRecords: this._total
199974
+ };
199599
199975
  }
199600
199976
  };
199601
199977
  i6([
@@ -199606,7 +199982,15 @@ i6([
199606
199982
  A({ type: Number }),
199607
199983
  a6("design:type", Number),
199608
199984
  a6("design:paramtypes", [Number])
199985
+ ], o6.prototype, "totalRecords", null), i6([
199986
+ A({ type: Number }),
199987
+ a6("design:type", Number),
199988
+ a6("design:paramtypes", [Number])
199609
199989
  ], o6.prototype, "size", null), i6([
199990
+ A({ type: Number }),
199991
+ a6("design:type", Number),
199992
+ a6("design:paramtypes", [Number])
199993
+ ], o6.prototype, "rows", null), i6([
199610
199994
  A({ type: Array }),
199611
199995
  a6("design:type", Array),
199612
199996
  a6("design:paramtypes", [Array])
@@ -199626,6 +200010,35 @@ i6([
199626
200010
  a6("design:type", Number),
199627
200011
  a6("design:paramtypes", [Number])
199628
200012
  ], o6.prototype, "currentPage", null), i6([
200013
+ A({ type: Number }),
200014
+ a6("design:type", Number),
200015
+ a6("design:paramtypes", [Number])
200016
+ ], o6.prototype, "first", null), i6([
200017
+ A({ type: Number }),
200018
+ a6("design:type", Number),
200019
+ a6("design:paramtypes", [Number])
200020
+ ], o6.prototype, "pageLinkSize", null), i6([
200021
+ A({
200022
+ type: Boolean,
200023
+ useDefault: !0
200024
+ }),
200025
+ a6("design:type", Boolean),
200026
+ a6("design:paramtypes", [Boolean])
200027
+ ], o6.prototype, "alwaysShow", null), i6([
200028
+ A({
200029
+ type: Boolean,
200030
+ useDefault: !0
200031
+ }),
200032
+ a6("design:type", Boolean),
200033
+ a6("design:paramtypes", [Boolean])
200034
+ ], o6.prototype, "showPageLinks", null), i6([
200035
+ A({
200036
+ type: Boolean,
200037
+ useDefault: !0
200038
+ }),
200039
+ a6("design:type", Boolean),
200040
+ a6("design:paramtypes", [Boolean])
200041
+ ], o6.prototype, "showFirstLastIcon", null), i6([
199629
200042
  A({
199630
200043
  type: Boolean,
199631
200044
  useDefault: !0
@@ -199633,6 +200046,17 @@ i6([
199633
200046
  a6("design:type", Boolean),
199634
200047
  a6("design:paramtypes", [Boolean])
199635
200048
  ], o6.prototype, "showFirstLastButtons", null), i6([
200049
+ A({
200050
+ type: Boolean,
200051
+ useDefault: !0
200052
+ }),
200053
+ a6("design:type", Boolean),
200054
+ a6("design:paramtypes", [Boolean])
200055
+ ], o6.prototype, "showCurrentPageReport", null), i6([
200056
+ A({ type: String }),
200057
+ a6("design:type", String),
200058
+ a6("design:paramtypes", [String])
200059
+ ], o6.prototype, "currentPageReportTemplate", null), i6([
199636
200060
  k({ eventName: "pageChanged" }),
199637
200061
  a6("design:type", Object),
199638
200062
  a6("design:paramtypes", [])
@@ -212993,18 +213417,10 @@ function Cwe() {
212993
213417
  :host {
212994
213418
  width: 100%;
212995
213419
  height: 100%;
212996
- overflow: overlay;
212997
213420
  display: block;
212998
213421
  position: relative;
212999
213422
  }
213000
213423
 
213001
- :host [part="list"] {
213002
- overflow: unset;
213003
- position: unset;
213004
- width: 100%;
213005
- height: 100%;
213006
- }
213007
-
213008
213424
  `;
213009
213425
  }
213010
213426
  //#endregion
@@ -213065,18 +213481,10 @@ function wwe() {
213065
213481
  :host {
213066
213482
  width: 100%;
213067
213483
  height: 100%;
213068
- overflow: overlay;
213069
213484
  display: block;
213070
213485
  position: relative;
213071
213486
  }
213072
213487
 
213073
- :host [part="list"] {
213074
- overflow: unset;
213075
- position: unset;
213076
- width: 100%;
213077
- height: 100%;
213078
- }
213079
-
213080
213488
  `;
213081
213489
  }
213082
213490
  //#endregion
@@ -213137,18 +213545,10 @@ function Twe() {
213137
213545
  :host {
213138
213546
  width: 100%;
213139
213547
  height: 100%;
213140
- overflow: overlay;
213141
213548
  display: block;
213142
213549
  position: relative;
213143
213550
  }
213144
213551
 
213145
- :host [part="list"] {
213146
- overflow: unset;
213147
- position: unset;
213148
- width: 100%;
213149
- height: 100%;
213150
- }
213151
-
213152
213552
  `;
213153
213553
  }
213154
213554
  //#endregion
@@ -229353,13 +229753,14 @@ R7([
229353
229753
  function aDe(e) {
229354
229754
  return V`
229355
229755
  <mosaik-theme2 .theme="${e.theme}">
229356
- <mosaik-drawer-container .lang="${e.lang}"
229756
+ <mosaik-drawer-container part="root"
229757
+ .lang="${e.lang}"
229357
229758
  .dir="${e.dir}"
229358
229759
  .fit="${nx.Both}"
229359
229760
  .hasBackdrop="${e.isMobile}">
229360
229761
  ${U(e.hasNav, () => V`
229361
- <mosaik-drawer slot="drawer"
229362
- part="drawer"
229762
+ <mosaik-drawer part="nav"
229763
+ slot="drawer"
229363
229764
  .lang="${e.lang}"
229364
229765
  .dir="${e.dir}"
229365
229766
  .isOpen="${e.isNavOpen}"
@@ -229367,12 +229768,13 @@ function aDe(e) {
229367
229768
  .hasBackdrop="${e.isMobile}"
229368
229769
  .hasShadow="${e.isMobile}"
229369
229770
  .clickOutsideToClose="${e.isMobile}">
229370
- <nav part="nav">
229771
+ <nav part="nav-body">
229371
229772
  <slot name="nav"></slot>
229372
229773
  </nav>
229373
229774
  </mosaik-drawer>
229374
229775
  `)}
229375
- <mosaik-drawer-content slot="content"
229776
+ <mosaik-drawer-content part="view"
229777
+ slot="content"
229376
229778
  .lang="${e.lang}"
229377
229779
  .dir="${e.dir}">
229378
229780
  <slot name="header"></slot>
@@ -229392,7 +229794,7 @@ function aDe(e) {
229392
229794
  name="headerActions"></slot>
229393
229795
  </mosaik-app-header>
229394
229796
  `)}
229395
- <div part="content">
229797
+ <div part="body">
229396
229798
  <main part="main">
229397
229799
  <slot name="content"></slot>
229398
229800
  </main>
@@ -229996,10 +230398,11 @@ function dDe() {
229996
230398
  return B`
229997
230399
  :host {
229998
230400
  --app-background-color: var(--cosmopolitan-scheme-background);
230401
+ --app-body-offset-top: unset;
230402
+ --app-border-color: unset;
229999
230403
  --app-border-radius: unset;
230000
- --app-content-offset-top: unset;
230001
- --app-drawer-height: 100%;
230002
- --app-drawer-width: 320px;
230404
+ --app-border-style: solid;
230405
+ --app-border-width: unset;
230003
230406
  --app-font-family: var(--cosmopolitan-typography-body1-font-family);
230004
230407
  --app-font-letter-spacing: var(--cosmopolitan-typography-body1-letter-spacing);
230005
230408
  --app-font-line-height: var(--cosmopolitan-typography-body1-line-height);
@@ -230010,6 +230413,8 @@ function dDe() {
230010
230413
  --app-foreground-color: var(--cosmopolitan-scheme-foreground);
230011
230414
  --app-gap: var(--cosmopolitan-layout-space);
230012
230415
  --app-line-thickness: var(--cosmopolitan-layout-thickness);
230416
+ --app-nav-height: 100%;
230417
+ --app-nav-width: 320px;
230013
230418
  --app-padding-bottom: unset;
230014
230419
  --app-padding-left: unset;
230015
230420
  --app-padding-right: unset;
@@ -230024,6 +230429,10 @@ function dDe() {
230024
230429
  --app-transition-mode: ease;
230025
230430
  --app-transition-property: background-color, color, border-color, opacity, box-shadow, translate;
230026
230431
  --app-translate: none;
230432
+ --app-view-border-color: unset;
230433
+ --app-view-border-radius: unset;
230434
+ --app-view-border-style: solid;
230435
+ --app-view-border-width: unset;
230027
230436
  }
230028
230437
 
230029
230438
  @media screen and (prefers-reduced-motion: reduce) {
@@ -230066,7 +230475,10 @@ function dDe() {
230066
230475
  transition-property: var(--app-transition-property);
230067
230476
  background-color: var(--app-background-color);
230068
230477
  color: var(--app-foreground-color);
230478
+ border-color: var(--app-border-color);
230069
230479
  border-radius: var(--app-border-radius);
230480
+ border-style: var(--app-border-style);
230481
+ border-width: var(--app-border-width);
230070
230482
  width: 100vw;
230071
230483
  height: 100vh;
230072
230484
  display: block;
@@ -230075,35 +230487,43 @@ function dDe() {
230075
230487
  overflow: clip;
230076
230488
  }
230077
230489
 
230078
- :host [part="drawer"] {
230079
- --drawer-width: var(--app-drawer-width);
230080
- --drawer-height: var(--app-drawer-height);
230490
+ :host [part="nav"] {
230491
+ --drawer-width: var(--app-nav-width);
230492
+ --drawer-height: var(--app-nav-height);
230493
+ --drawer-line-thickness: var(--app-line-thickness);
230081
230494
  --drawer-viewport-inset: 0px;
230082
230495
  }
230083
230496
 
230084
- :host [part="content"] {
230085
- height: calc(100% - var(--app-content-offset-top));
230497
+ :host [part="nav-body"] {
230498
+ height: 100%;
230499
+ width: var(--app-nav-width);
230500
+ flex-direction: column;
230501
+ flex: 1;
230502
+ display: flex;
230503
+ overflow: auto;
230504
+ }
230505
+
230506
+ :host [part="view"] {
230507
+ border-color: var(--app-view-border-color);
230508
+ border-radius: var(--app-view-border-radius);
230509
+ border-style: var(--app-view-border-style);
230510
+ border-width: var(--app-view-border-width);
230511
+ }
230512
+
230513
+ :host [part="body"] {
230514
+ height: calc(100% - var(--app-body-offset-top));
230086
230515
  flex-direction: row;
230087
230516
  width: 100%;
230088
230517
  display: flex;
230089
230518
  }
230090
230519
 
230091
- :host [part="content"] [part="main"] {
230520
+ :host [part="body"] [part="main"] {
230092
230521
  flex: 1;
230093
230522
  width: 100%;
230094
230523
  overflow: auto;
230095
230524
  }
230096
230525
 
230097
- :host [part="content"] [part="rail"] {
230098
- overflow: auto;
230099
- }
230100
-
230101
- :host [part="nav"] {
230102
- height: 100%;
230103
- width: var(--app-drawer-width);
230104
- flex-direction: column;
230105
- flex: 1;
230106
- display: flex;
230526
+ :host [part="body"] [part="rail"] {
230107
230527
  overflow: auto;
230108
230528
  }
230109
230529
 
@@ -230115,10 +230535,11 @@ function fDe() {
230115
230535
  return B`
230116
230536
  :host {
230117
230537
  --app-background-color: var(--joy-scheme-background);
230118
- --app-border-radius: none;
230119
- --app-content-offset-top: none;
230120
- --app-drawer-height: 100%;
230121
- --app-drawer-width: 320px;
230538
+ --app-body-offset-top: none;
230539
+ --app-border-color: unset;
230540
+ --app-border-radius: unset;
230541
+ --app-border-style: solid;
230542
+ --app-border-width: unset;
230122
230543
  --app-font-family: var(--joy-typography-body1-font-family);
230123
230544
  --app-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
230124
230545
  --app-font-line-height: var(--joy-typography-body1-line-height);
@@ -230129,6 +230550,8 @@ function fDe() {
230129
230550
  --app-foreground-color: var(--joy-scheme-foreground);
230130
230551
  --app-gap: var(--joy-layout-space);
230131
230552
  --app-line-thickness: var(--joy-layout-thickness);
230553
+ --app-nav-height: 100%;
230554
+ --app-nav-width: 320px;
230132
230555
  --app-padding-bottom: unset;
230133
230556
  --app-padding-left: unset;
230134
230557
  --app-padding-right: unset;
@@ -230143,6 +230566,10 @@ function fDe() {
230143
230566
  --app-transition-mode: ease;
230144
230567
  --app-transition-property: background-color, color, border-color, opacity, box-shadow, translate;
230145
230568
  --app-translate: none;
230569
+ --app-view-border-color: unset;
230570
+ --app-view-border-radius: unset;
230571
+ --app-view-border-style: solid;
230572
+ --app-view-border-width: unset;
230146
230573
  }
230147
230574
 
230148
230575
  @media screen and (prefers-reduced-motion: reduce) {
@@ -230185,7 +230612,10 @@ function fDe() {
230185
230612
  transition-property: var(--app-transition-property);
230186
230613
  background-color: var(--app-background-color);
230187
230614
  color: var(--app-foreground-color);
230615
+ border-color: var(--app-border-color);
230188
230616
  border-radius: var(--app-border-radius);
230617
+ border-style: var(--app-border-style);
230618
+ border-width: var(--app-border-width);
230189
230619
  width: 100vw;
230190
230620
  height: 100vh;
230191
230621
  display: block;
@@ -230194,35 +230624,43 @@ function fDe() {
230194
230624
  overflow: clip;
230195
230625
  }
230196
230626
 
230197
- :host [part="drawer"] {
230198
- --drawer-width: var(--app-drawer-width);
230199
- --drawer-height: var(--app-drawer-height);
230627
+ :host [part="nav"] {
230628
+ --drawer-width: var(--app-nav-width);
230629
+ --drawer-height: var(--app-nav-height);
230630
+ --drawer-line-thickness: var(--app-line-thickness);
230200
230631
  --drawer-viewport-inset: 0px;
230201
230632
  }
230202
230633
 
230203
- :host [part="content"] {
230204
- height: calc(100% - var(--app-content-offset-top));
230634
+ :host [part="nav-body"] {
230635
+ height: 100%;
230636
+ width: var(--app-nav-width);
230637
+ flex-direction: column;
230638
+ flex: 1;
230639
+ display: flex;
230640
+ overflow: auto;
230641
+ }
230642
+
230643
+ :host [part="view"] {
230644
+ border-color: var(--app-view-border-color);
230645
+ border-radius: var(--app-view-border-radius);
230646
+ border-style: var(--app-view-border-style);
230647
+ border-width: var(--app-view-border-width);
230648
+ }
230649
+
230650
+ :host [part="body"] {
230651
+ height: calc(100% - var(--app-body-offset-top));
230205
230652
  flex-direction: row;
230206
230653
  width: 100%;
230207
230654
  display: flex;
230208
230655
  }
230209
230656
 
230210
- :host [part="content"] [part="main"] {
230657
+ :host [part="body"] [part="main"] {
230211
230658
  flex: 1;
230212
230659
  width: 100%;
230213
230660
  overflow: auto;
230214
230661
  }
230215
230662
 
230216
- :host [part="content"] [part="rail"] {
230217
- overflow: auto;
230218
- }
230219
-
230220
- :host [part="nav"] {
230221
- height: 100%;
230222
- width: var(--app-drawer-width);
230223
- flex-direction: column;
230224
- flex: 1;
230225
- display: flex;
230663
+ :host [part="body"] [part="rail"] {
230226
230664
  overflow: auto;
230227
230665
  }
230228
230666
 
@@ -230238,10 +230676,11 @@ function pDe() {
230238
230676
  return B`
230239
230677
  :host {
230240
230678
  --app-background-color: var(--memphis-scheme-background);
230679
+ --app-body-offset-top: unset;
230680
+ --app-border-color: unset;
230241
230681
  --app-border-radius: unset;
230242
- --app-content-offset-top: unset;
230243
- --app-drawer-height: 100%;
230244
- --app-drawer-width: 320px;
230682
+ --app-border-style: solid;
230683
+ --app-border-width: unset;
230245
230684
  --app-font-family: var(--memphis-typography-body1-font-family);
230246
230685
  --app-font-letter-spacing: var(--memphis-typography-body1-letter-spacing);
230247
230686
  --app-font-line-height: var(--memphis-typography-body1-line-height);
@@ -230252,6 +230691,8 @@ function pDe() {
230252
230691
  --app-foreground-color: var(--memphis-scheme-foreground);
230253
230692
  --app-gap: var(--memphis-layout-space);
230254
230693
  --app-line-thickness: var(--memphis-layout-thickness);
230694
+ --app-nav-height: 100%;
230695
+ --app-nav-width: 320px;
230255
230696
  --app-padding-bottom: unset;
230256
230697
  --app-padding-left: unset;
230257
230698
  --app-padding-right: unset;
@@ -230266,6 +230707,10 @@ function pDe() {
230266
230707
  --app-transition-mode: ease;
230267
230708
  --app-transition-property: background-color, color, border-color, opacity, box-shadow, translate;
230268
230709
  --app-translate: none;
230710
+ --app-view-border-color: unset;
230711
+ --app-view-border-radius: unset;
230712
+ --app-view-border-style: solid;
230713
+ --app-view-border-width: unset;
230269
230714
  }
230270
230715
 
230271
230716
  @media screen and (prefers-reduced-motion: reduce) {
@@ -230308,7 +230753,10 @@ function pDe() {
230308
230753
  transition-property: var(--app-transition-property);
230309
230754
  background-color: var(--app-background-color);
230310
230755
  color: var(--app-foreground-color);
230756
+ border-color: var(--app-border-color);
230311
230757
  border-radius: var(--app-border-radius);
230758
+ border-style: var(--app-border-style);
230759
+ border-width: var(--app-border-width);
230312
230760
  width: 100vw;
230313
230761
  height: 100vh;
230314
230762
  display: block;
@@ -230317,35 +230765,43 @@ function pDe() {
230317
230765
  overflow: clip;
230318
230766
  }
230319
230767
 
230320
- :host [part="drawer"] {
230321
- --drawer-width: var(--app-drawer-width);
230322
- --drawer-height: var(--app-drawer-height);
230768
+ :host [part="nav"] {
230769
+ --drawer-width: var(--app-nav-width);
230770
+ --drawer-height: var(--app-nav-height);
230771
+ --drawer-line-thickness: var(--app-line-thickness);
230323
230772
  --drawer-viewport-inset: 0px;
230324
230773
  }
230325
230774
 
230326
- :host [part="content"] {
230327
- height: calc(100% - var(--app-content-offset-top));
230775
+ :host [part="nav-body"] {
230776
+ height: 100%;
230777
+ width: var(--app-nav-width);
230778
+ flex-direction: column;
230779
+ flex: 1;
230780
+ display: flex;
230781
+ overflow: auto;
230782
+ }
230783
+
230784
+ :host [part="view"] {
230785
+ border-color: var(--app-view-border-color);
230786
+ border-radius: var(--app-view-border-radius);
230787
+ border-style: var(--app-view-border-style);
230788
+ border-width: var(--app-view-border-width);
230789
+ }
230790
+
230791
+ :host [part="body"] {
230792
+ height: calc(100% - var(--app-body-offset-top));
230328
230793
  flex-direction: row;
230329
230794
  width: 100%;
230330
230795
  display: flex;
230331
230796
  }
230332
230797
 
230333
- :host [part="content"] [part="main"] {
230798
+ :host [part="body"] [part="main"] {
230334
230799
  flex: 1;
230335
230800
  width: 100%;
230336
230801
  overflow: auto;
230337
230802
  }
230338
230803
 
230339
- :host [part="content"] [part="rail"] {
230340
- overflow: auto;
230341
- }
230342
-
230343
- :host [part="nav"] {
230344
- height: 100%;
230345
- width: var(--app-drawer-width);
230346
- flex-direction: column;
230347
- flex: 1;
230348
- display: flex;
230804
+ :host [part="body"] [part="rail"] {
230349
230805
  overflow: auto;
230350
230806
  }
230351
230807
 
@@ -230433,7 +230889,7 @@ var W7 = function(e, t, n, r) {
230433
230889
  }
230434
230890
  }
230435
230891
  onApplyTemplate() {
230436
- super.onApplyTemplate(), this._contentElement = this.getTemplatePart("content"), this._headerElement = this.getTemplatePart("header"), this._drawerElement = this.getTemplatePart("drawer");
230892
+ super.onApplyTemplate(), this._contentElement = this.getTemplatePart("main"), this._headerElement = this.getTemplatePart("header"), this._drawerElement = this.getTemplatePart("nav");
230437
230893
  }
230438
230894
  onIsNavOpenPropertyChanged(e, t) {
230439
230895
  this._headerElement.isToggled = t ?? !1;