overview-components 0.1.6 → 0.1.7

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.
@@ -528,37 +528,37 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
528
528
  (virtualColumns[virtualColumns.length - 1]?.end ?? 0);
529
529
  }
530
530
  let isMobile = window.matchMedia('(max-width: 600px)').matches;
531
- return html `
532
- <div class="data-grid__wrapper">
531
+ return html `
532
+ <div class="data-grid__wrapper">
533
533
  ${this.isScrollable && !isMobile
534
- ? html `
535
- <lit-icon-button
536
- class="scroll-button left"
537
- .disabled="${this.disableScrollLeft}"
538
- @pointerdown="${() => this.startScroll('left')}"
539
- @pointerup="${this.stopScroll}"
540
- @pointerleave="${this.stopScroll}"
541
- size="small"
542
- variant="contained"
543
- icon="arrowLeft"
544
- >
545
- </lit-icon-button>
546
- <lit-icon-button
547
- class="scroll-button right"
548
- .disabled="${this.disableScrollRight}"
549
- @pointerdown="${() => this.startScroll('right')}"
550
- @pointerup="${this.stopScroll}"
551
- @pointerleave="${this.stopScroll}"
552
- size="small"
553
- variant="contained"
554
- icon="arrowRight"
555
- >
556
- </lit-icon-button>
534
+ ? html `
535
+ <lit-icon-button
536
+ class="scroll-button left"
537
+ .disabled="${this.disableScrollLeft}"
538
+ @pointerdown="${() => this.startScroll('left')}"
539
+ @pointerup="${this.stopScroll}"
540
+ @pointerleave="${this.stopScroll}"
541
+ size="small"
542
+ variant="contained"
543
+ icon="arrowLeft"
544
+ >
545
+ </lit-icon-button>
546
+ <lit-icon-button
547
+ class="scroll-button right"
548
+ .disabled="${this.disableScrollRight}"
549
+ @pointerdown="${() => this.startScroll('right')}"
550
+ @pointerup="${this.stopScroll}"
551
+ @pointerleave="${this.stopScroll}"
552
+ size="small"
553
+ variant="contained"
554
+ icon="arrowRight"
555
+ >
556
+ </lit-icon-button>
557
557
  `
558
- : null}
559
- <div class="grid" ${ref(this.tableContainerRef)} @scroll="${this.handleScroll}">
560
- <table style="width: ${this.table.getCenterTotalSize()}px">
561
- <thead style="height: ${this.enableFiltering ? '4rem' : '1.625rem'};">
558
+ : null}
559
+ <div class="grid" ${ref(this.tableContainerRef)} @scroll="${this.handleScroll}">
560
+ <table style="width: ${this.table.getCenterTotalSize()}px">
561
+ <thead style="height: ${this.enableFiltering ? '4rem' : '1.625rem'};">
562
562
  ${repeat(this.table.getHeaderGroups(), (headerGroup) => headerGroup.id, (headerGroup) => {
563
563
  const headerColumns = this.enableColumnVirtualization
564
564
  ? virtualColumns.map((vc) => headerGroup.headers[vc.index])
@@ -569,15 +569,15 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
569
569
  ...headerColumns.filter((hc) => !hc.column.getIsPinned()),
570
570
  ]
571
571
  : headerColumns;
572
- return html `
573
- <tr class="head" data-index="${headerGroup.id}">
572
+ return html `
573
+ <tr class="head" data-index="${headerGroup.id}">
574
574
  ${virtualPaddingLeft
575
- ? html `
576
- <th
577
- style=" display: flex; width: ${virtualPaddingLeft}px;"
578
- ></th>
575
+ ? html `
576
+ <th
577
+ style=" display: flex; width: ${virtualPaddingLeft}px;"
578
+ ></th>
579
579
  `
580
- : ''}
580
+ : ''}
581
581
  ${repeat(newHeaderColumns, (header) => header.id, (header, index) => {
582
582
  const column = header.column;
583
583
  const style = {
@@ -585,22 +585,22 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
585
585
  width: `${column.getSize()}px`,
586
586
  flexGrow: `${column.columnDef.size === undefined ? 1 : 'unset'}`,
587
587
  };
588
- return html `
589
- <th
590
- class="head"
591
- style="${styleMap(style)}"
592
- colspan="${header.colSpan}"
593
- data-index="${header.id}"
594
- >
588
+ return html `
589
+ <th
590
+ class="head"
591
+ style="${styleMap(style)}"
592
+ colspan="${header.colSpan}"
593
+ data-index="${header.id}"
594
+ >
595
595
  ${header.isPlaceholder
596
596
  ? ''
597
- : html `
598
- <div
597
+ : html `
598
+ <div
599
599
  class="resizer ${this
600
600
  .table.options
601
601
  .columnResizeDirection} ${header.column.getIsResizing()
602
602
  ? 'is-resizing'
603
- : ''}"
603
+ : ''}"
604
604
  style="transform: ${this
605
605
  .table.options
606
606
  .columnResizeMode ===
@@ -616,167 +616,167 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
616
616
  .columnSizingInfo
617
617
  .deltaOffset ??
618
618
  0)}px)`
619
- : ''}"
620
- >
621
- <div
622
- style="display: flex; align-items: center; height: 100%;"
623
- >
624
- <div
625
- class="column-header"
626
- @click=${header.column.getToggleSortingHandler()}
627
- >
628
- <lit-overflow-tooltip
619
+ : ''}"
620
+ >
621
+ <div
622
+ style="display: flex; align-items: center; height: 100%;"
623
+ >
624
+ <div
625
+ class="column-header"
626
+ @click=${header.column.getToggleSortingHandler()}
627
+ >
628
+ <lit-overflow-tooltip
629
629
  label="${header
630
630
  .column
631
631
  .columnDef
632
- .header}"
633
- >
632
+ .header}"
633
+ >
634
634
  ${header
635
635
  .column
636
636
  .columnDef
637
- .header}
638
- </lit-overflow-tooltip>
639
- </div>
640
-
641
- <div
642
- class="icons-group-pin"
643
- >
637
+ .header}
638
+ </lit-overflow-tooltip>
639
+ </div>
640
+
641
+ <div
642
+ class="icons-group-pin"
643
+ >
644
644
  ${header.column.getIsSorted()
645
645
  ? header.column.getIsSorted() ===
646
646
  'asc'
647
- ? html `<slot
648
- name="iconSortUp"
649
- ><lit-icon
650
- size="0.75rem"
651
- icon="chevronUpFilled"
652
- ></lit-icon
647
+ ? html `<slot
648
+ name="iconSortUp"
649
+ ><lit-icon
650
+ size="0.75rem"
651
+ icon="chevronUpFilled"
652
+ ></lit-icon
653
653
  ></slot>`
654
- : html `<slothea
655
- name="iconSortDown"
656
- >
657
- <lit-icon
658
- size="0.75rem"
659
- icon="chevronDownFilled"
660
- ></lit-icon>
654
+ : html `<slothea
655
+ name="iconSortDown"
656
+ >
657
+ <lit-icon
658
+ size="0.75rem"
659
+ icon="chevronDownFilled"
660
+ ></lit-icon>
661
661
  </slothea>`
662
- : html `<div></div>`}
663
- <div class="flex">
662
+ : html `<div></div>`}
663
+ <div class="flex">
664
664
  ${!this
665
665
  .actionButtonsInMenu
666
- ? html `
666
+ ? html `
667
667
  ${header.column.getCanPin()
668
- ? html `
669
- <lit-tooltip
668
+ ? html `
669
+ <lit-tooltip
670
670
  label="${header.column.getIsPinned()
671
671
  ? msg('Zrušit připnutí sloupce')
672
- : msg('Připnout sloupec vlevo')}"
673
- variant="bottom"
674
- >
675
- <lit-icon-button
676
- @click="${() => this.togglePin(header)}"
677
- size="small"
678
- variant="text"
679
- icon="pin"
680
- .active="${header.column.getIsPinned()}"
681
- >
682
- </lit-icon-button>
683
- </lit-tooltip>
672
+ : msg('Připnout sloupec vlevo')}"
673
+ variant="bottom"
674
+ >
675
+ <lit-icon-button
676
+ @click="${() => this.togglePin(header)}"
677
+ size="small"
678
+ variant="text"
679
+ icon="pin"
680
+ .active="${header.column.getIsPinned()}"
681
+ >
682
+ </lit-icon-button>
683
+ </lit-tooltip>
684
684
  `
685
- : ''}
685
+ : ''}
686
686
  ${header.column.getCanGroup()
687
- ? html `
688
- <lit-tooltip
687
+ ? html `
688
+ <lit-tooltip
689
689
  label="${header.column.getIsGrouped()
690
690
  ? msg('Zrušit seskupení')
691
- : msg('Seskupit sloupec')}"
692
- variant="bottom"
693
- >
694
- <lit-icon-button
695
- @click="${header.column.getToggleGroupingHandler()}"
696
- size="small"
697
- variant="text"
698
- .active="${header.column.getIsGrouped()}"
699
- icon="agregation"
700
- >
701
- </lit-icon-button>
702
- </lit-tooltip>
691
+ : msg('Seskupit sloupec')}"
692
+ variant="bottom"
693
+ >
694
+ <lit-icon-button
695
+ @click="${header.column.getToggleGroupingHandler()}"
696
+ size="small"
697
+ variant="text"
698
+ .active="${header.column.getIsGrouped()}"
699
+ icon="agregation"
700
+ >
701
+ </lit-icon-button>
702
+ </lit-tooltip>
703
703
  `
704
- : ''}
704
+ : ''}
705
705
  `
706
- : html `
707
- <lit-data-grid-action-buttons-popover
708
- .group="${header.column.getToggleGroupingHandler()}"
709
- .pin="${() => this.togglePin(header)}"
710
- .header="${header}"
706
+ : html `
707
+ <lit-data-grid-action-buttons-popover
708
+ .group="${header.column.getToggleGroupingHandler()}"
709
+ .pin="${() => this.togglePin(header)}"
710
+ .header="${header}"
711
711
  .table="${this
712
- .table}"
713
- ></lit-data-grid-action-buttons-popover>
714
- `}
715
- </div>
716
- </div>
717
- </div>
718
- </div>
712
+ .table}"
713
+ ></lit-data-grid-action-buttons-popover>
714
+ `}
715
+ </div>
716
+ </div>
717
+ </div>
718
+ </div>
719
719
  ${header.column.getCanFilter()
720
- ? html `
721
- <div>
722
- <filter-inputs
723
- .column=${header.column}
720
+ ? html `
721
+ <div>
722
+ <filter-inputs
723
+ .column=${header.column}
724
724
  .dateFormat=${this
725
- .dateFormat}
725
+ .dateFormat}
726
726
  .userLang=${this
727
- .userLang}
728
- ></filter-inputs>
729
- </div>
727
+ .userLang}
728
+ ></filter-inputs>
729
+ </div>
730
730
  `
731
- : null}
732
- `}
733
- <div
734
- class="resize-handle"
731
+ : null}
732
+ `}
733
+ <div
734
+ class="resize-handle"
735
735
  @dblclick="${(event) => {
736
736
  if (event.target.classList.contains('resize-handle')) {
737
737
  header.column.resetSize();
738
738
  }
739
- }}"
739
+ }}"
740
740
  @mousedown="${(event) => {
741
741
  if (event.target.classList.contains('resize-handle')) {
742
742
  header.getResizeHandler()(event);
743
743
  }
744
- }}"
744
+ }}"
745
745
  @touchstart="${(event) => {
746
746
  if (event.target.classList.contains('resize-handle')) {
747
747
  header.getResizeHandler()(event);
748
748
  }
749
- }}"
750
- ></div>
751
- </th>
749
+ }}"
750
+ ></div>
751
+ </th>
752
752
  `;
753
- })}
753
+ })}
754
754
  ${virtualPaddingRight
755
- ? html `
756
- <th
757
- style=" display: flex; width: ${virtualPaddingRight}px;"
758
- ></th>
755
+ ? html `
756
+ <th
757
+ style=" display: flex; width: ${virtualPaddingRight}px;"
758
+ ></th>
759
759
  `
760
- : ''}
761
- </tr>
760
+ : ''}
761
+ </tr>
762
762
  `;
763
- })}
763
+ })}
764
764
  ${this.isLoading
765
- ? html `
766
- <div class="progress-root">
767
- <div class="bar bar1Indeterminate"></div>
768
- <div class="bar bar2Indeterminate"></div>
769
- </div>
765
+ ? html `
766
+ <div class="progress-root">
767
+ <div class="bar bar1Indeterminate"></div>
768
+ <div class="bar bar2Indeterminate"></div>
769
+ </div>
770
770
  `
771
- : ''}
772
- </thead>
773
-
774
- <tbody
771
+ : ''}
772
+ </thead>
773
+
774
+ <tbody
775
775
  style="height: ${rowVirtualizer &&
776
776
  this.table.getRowModel().rows.length > 0
777
777
  ? rowVirtualizer.getTotalSize() + 'px'
778
- : 'auto'};"
779
- >
778
+ : 'auto'};"
779
+ >
780
780
  ${rows.length > 0
781
781
  ? repeat(rowItems, (item) => item.key, (item) => {
782
782
  const row = rows[item.index];
@@ -798,15 +798,15 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
798
798
  position: rowVirtualizer ? 'absolute' : 'relative',
799
799
  };
800
800
  return row
801
- ? html `
802
- <tr
801
+ ? html `
802
+ <tr
803
803
  class="${this.selectedRowId === row.id
804
804
  ? 'selected body'
805
- : 'body'}"
806
- data-index="${item.index}"
807
- @click="${() => this.handleRowClick(row)}"
808
- @dblclick="${() => this.handleRowDoubleClick(row)}"
809
- style="${styleMap(rowStyle)}"
805
+ : 'body'}"
806
+ data-index="${item.index}"
807
+ @click="${() => this.handleRowClick(row)}"
808
+ @dblclick="${() => this.handleRowDoubleClick(row)}"
809
+ style="${styleMap(rowStyle)}"
810
810
  ${ref((node) => {
811
811
  if (node &&
812
812
  this.enableRowVirtualization &&
@@ -814,16 +814,16 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
814
814
  // Only measure element if virtualization is enabled
815
815
  rowVirtualizer.measureElement(node);
816
816
  }
817
- })}
818
- >
817
+ })}
818
+ >
819
819
  ${virtualPaddingLeft
820
- ? html `
821
- <th
822
- style=" display: flex; width: ${virtualPaddingLeft}px;"
823
- ></th>
820
+ ? html `
821
+ <th
822
+ style=" display: flex; width: ${virtualPaddingLeft}px;"
823
+ ></th>
824
824
  `
825
- : ''}
826
- <!-- Cells for each row -->
825
+ : ''}
826
+ <!-- Cells for each row -->
827
827
  ${repeat(newBodyColumns, (cell) => cell.key, (cell) => {
828
828
  const buttonSize = this.getButtonSize();
829
829
  const { column } = cell;
@@ -834,48 +834,48 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
834
834
  background: this.getCellBackgroundColor(cell),
835
835
  lineHeight: `${this.rowHeight}px`,
836
836
  };
837
- return html `
838
- <td style="${styleMap(style)}">
837
+ return html `
838
+ <td style="${styleMap(style)}">
839
839
  ${cell.getIsGrouped()
840
- ? html `
841
- <lit-button
842
- @click="${row.getToggleExpandedHandler()}"
843
- variant="inherit"
844
- size="${buttonSize}"
840
+ ? html `
841
+ <lit-button
842
+ @click="${row.getToggleExpandedHandler()}"
843
+ variant="inherit"
844
+ size="${buttonSize}"
845
845
  count="${row
846
846
  .subRows
847
- .length}"
847
+ .length}"
848
848
  label="${flexRender(cell
849
849
  .column
850
850
  .columnDef
851
- .cell, cell.getContext())}"
851
+ .cell, cell.getContext())}"
852
852
  icon="${row.getIsExpanded()
853
853
  ? 'chevronDownFilled'
854
- : 'chevron'}"
855
- >
854
+ : 'chevron'}"
855
+ >
856
856
  <!-- ${row.getIsExpanded()
857
- ? html `<slot
858
- name="groupedIcon-expanded"
859
- slot="start-icon"
857
+ ? html `<slot
858
+ name="groupedIcon-expanded"
859
+ slot="start-icon"
860
860
  ></slot>`
861
- : html `<slot
862
- name="groupedIcon"
863
- slot="start-icon"
864
- ></slot>`} -->
865
- }
861
+ : html `<slot
862
+ name="groupedIcon"
863
+ slot="start-icon"
864
+ ></slot>`} -->
865
+ }
866
866
  ${row.subRows
867
- .length}
867
+ .length}
868
868
  ${flexRender(cell
869
869
  .column
870
870
  .columnDef
871
- .cell, cell.getContext())}
872
- </lit-button>
871
+ .cell, cell.getContext())}
872
+ </lit-button>
873
873
  `
874
874
  : cell.getIsAggregated()
875
- ? html `
876
- <div
877
- style="display: flex; flex-direction: row; align-items: center;"
878
- >
875
+ ? html `
876
+ <div
877
+ style="display: flex; flex-direction: row; align-items: center;"
878
+ >
879
879
  ${flexRender(cell
880
880
  .column
881
881
  .columnDef
@@ -883,351 +883,351 @@ let LitDataGridTanstack = class LitDataGridTanstack extends LitElement {
883
883
  cell
884
884
  .column
885
885
  .columnDef
886
- .cell, cell.getContext())}
887
- </div>
886
+ .cell, cell.getContext())}
887
+ </div>
888
888
  `
889
889
  : cell.getIsPlaceholder()
890
890
  ? null
891
891
  : flexRender(cell.column
892
892
  .columnDef
893
- .cell, cell.getContext())}
894
- </td>
893
+ .cell, cell.getContext())}
894
+ </td>
895
895
  `;
896
- })}
896
+ })}
897
897
  ${virtualPaddingRight
898
- ? html `
899
- <th
900
- style=" display: flex; width: ${virtualPaddingRight}px;"
901
- ></th>
898
+ ? html `
899
+ <th
900
+ style=" display: flex; width: ${virtualPaddingRight}px;"
901
+ ></th>
902
902
  `
903
- : ''}
904
- </tr>
903
+ : ''}
904
+ </tr>
905
905
  `
906
906
  : null;
907
907
  })
908
- : null}
909
- </tbody>
910
- </table>
911
- <div class="footer-container">
912
- <span class="numberCount">
913
- ${msg('Počet záznamů')}: ${this.table.getRowModel().rows.length}
914
- </span>
915
- <div class="right-actions">
916
- <lit-data-grid-density-popover
917
- .setDensity="${(density) => this.handleSetDensity(density)}"
918
- >
919
- </lit-data-grid-density-popover>
920
- <lit-responsive-button
921
- size="small"
922
- variant="text"
923
- label=${msg('Přizpůsobit sloupce')}
924
- icon="columns"
925
- @click=${() => this.table.resetColumnSizing()}
926
- ></lit-responsive-button>
908
+ : null}
909
+ </tbody>
910
+ </table>
911
+ <div class="footer-container">
912
+ <span class="numberCount">
913
+ ${msg('Počet záznamů')}: ${this.table.getRowModel().rows.length}
914
+ </span>
915
+ <div class="right-actions">
916
+ <lit-data-grid-density-popover
917
+ .setDensity="${(density) => this.handleSetDensity(density)}"
918
+ >
919
+ </lit-data-grid-density-popover>
920
+ <lit-responsive-button
921
+ size="small"
922
+ variant="text"
923
+ label=${msg('Přizpůsobit sloupce')}
924
+ icon="columns"
925
+ @click=${() => this.table.resetColumnSizing()}
926
+ ></lit-responsive-button>
927
927
  ${this.exportData
928
- ? html `
929
- <lit-data-grid-export-popover
930
- .exportToCsv="${() => this.exportDataToCsv()}"
931
- .exportToExcel="${() => this.exportDataToExcel()}"
932
- >
933
- </lit-data-grid-export-popover>
928
+ ? html `
929
+ <lit-data-grid-export-popover
930
+ .exportToCsv="${() => this.exportDataToCsv()}"
931
+ .exportToExcel="${() => this.exportDataToExcel()}"
932
+ >
933
+ </lit-data-grid-export-popover>
934
934
  `
935
- : null}
936
- </div>
937
- </div>
938
- </div>
939
- ${this.table.getRowModel().rows.length < 1
940
- ? html ` <div class="data-grid__empty">
941
- <div style="max-height: 7.125rem; max-width: 7.125rem">
942
- <not-found></not-found>
943
- </div>
944
- ${msg('Nic dalšího tu není')}
935
+ : null}
936
+ </div>
937
+ </div>
938
+ </div>
939
+ ${this.table.getRowModel().rows.length < 1 && !this.isLoading
940
+ ? html ` <div class="data-grid__empty">
941
+ <div style="max-height: 7.125rem; max-width: 7.125rem">
942
+ <not-found></not-found>
943
+ </div>
944
+ ${msg('Nic dalšího tu není')}
945
945
  </div>`
946
- : null}
947
- </div>
946
+ : null}
947
+ </div>
948
948
  `;
949
949
  }
950
950
  };
951
951
  LitDataGridTanstack.styles = [
952
952
  // styles,
953
- css `
954
- *,
955
- *::before,
956
- *::after {
957
- margin: 0;
958
- padding: 0;
959
- box-sizing: border-box;
960
- }
961
-
962
- display: block;
963
- font-family: 'Inter', sans-serif;
964
- box-sizing: border-box;
965
-
966
- td {
967
- padding: 0px;
968
- }
969
-
970
- .data-grid__wrapper {
971
- position: relative;
972
- background-color: var(--background-paper, #fff);
973
- height: 100%;
974
- z-index: 1;
975
- }
976
-
977
- .grid {
978
- overflow: auto;
979
- position: relative;
980
- height: 100%;
981
- }
982
-
983
- .data-grid__empty {
984
- position: absolute;
985
- top: 30%;
986
- left: 50%;
987
- transform: translate(-50%, -50%);
988
- font-size: 0.875rem;
989
- text-align: center;
990
- }
991
-
992
- table {
993
- border-collapse: collapse;
994
- border-spacing: 0;
995
- width: 100% !important;
996
- height: calc(100% - 38px);
997
- }
998
-
999
- thead {
1000
- display: flex;
1001
- position: sticky;
1002
- top: 0;
1003
- z-index: 10;
1004
- background-color: var(--background-paper, #fff);
1005
- border-bottom: 1px solid var(--color-divider, #d0d3db);
1006
- }
1007
-
1008
- tr.head {
1009
- display: flex;
1010
- width: 100%;
1011
- }
1012
-
1013
- th.head {
1014
- display: block;
1015
- position: relative;
1016
- padding: 0px 6px;
1017
- gap: 0.25rem;
1018
- //z-index: auto !important;
1019
- }
1020
-
1021
- tbody {
1022
- display: grid;
1023
- position: relative;
1024
- }
1025
-
1026
- tr.body {
1027
- width: 100%;
1028
- border-bottom: 1px solid var(--color-divider, #d0d3db);
1029
- display: flex;
1030
- }
1031
-
1032
- tr.body:hover {
1033
- cursor: pointer;
1034
- background-color: var(--background-default, #eff3f4);
1035
- }
1036
-
1037
- td {
1038
- display: table-cell;
1039
- white-space: nowrap;
1040
- overflow: hidden;
1041
- padding: 0px 14px;
1042
- font-weight: 500;
1043
- font-size: 13px;
1044
- color: var(--text-primary, #111827);
1045
- }
1046
-
1047
- .column-header {
1048
- font-size: 11px;
1049
- font-weight: 600;
1050
- color: var(--text-secondary, #5d6371);
1051
- cursor: pointer;
1052
- gap: 0.25rem;
1053
- justify-content: center;
1054
- align-items: center;
1055
- margin: 0 0.25rem;
1056
- overflow: hidden;
1057
- white-space: nowrap;
1058
- text-overflow: ellipsis;
1059
- height: inherit;
1060
- display: flex;
1061
- }
1062
-
1063
- .ellipsis {
1064
- overflow: hidden;
1065
- white-space: nowrap;
1066
- text-overflow: ellipsis;
1067
- }
1068
-
1069
- .icons-group-pin {
1070
- display: flex;
1071
- height: 100%;
1072
- justify-content: space-between;
1073
- flex-grow: 1;
1074
- }
1075
-
1076
- .flex {
1077
- display: flex;
1078
- }
1079
-
1080
- .resizer {
1081
- height: 23px;
1082
- padding: 0 0 0 6px;
1083
- text-align: start;
1084
- //cursor: col-resize;
1085
- user-select: none;
1086
- touch-action: none;
1087
- }
1088
-
1089
- .resize-handle {
1090
- position: absolute;
1091
- top: 0;
1092
- right: 0px;
1093
- width: 6px;
1094
- height: 100%;
1095
- background: transparent;
1096
- cursor: col-resize;
1097
- transition: background-color 0.2s ease-in-out;
1098
- // border-radius: 5px;
1099
- // padding-bottom: 5px;
1100
- }
1101
-
1102
- .resize-handle:hover {
1103
- border-right: 2px solid var(--color-primary-main, #75b603);
1104
- }
1105
-
1106
- .resizer.ltr {
1107
- right: 0;
1108
- }
1109
-
1110
- .resizer.rtl {
1111
- left: 0;
1112
- }
1113
-
1114
- .resizer.is-resizing {
1115
- opacity: 1;
1116
- }
1117
-
1118
- .footer-container {
1119
- position: sticky;
1120
- left: 0;
1121
- bottom: 0;
1122
- background-color: var(--background-paper, #fff);
1123
- width: auto;
1124
- border-top: 1px solid var(--color-divider, #d0d3db);
1125
- height: 2.375rem;
1126
- display: flex;
1127
- flex-direction: row;
1128
- justify-content: space-between;
1129
- align-items: center;
1130
- padding: 0 16px;
1131
- z-index: 10;
1132
- }
1133
-
1134
- .right-actions {
1135
- position: absolute;
1136
- right: 0;
1137
- display: flex;
1138
- }
1139
-
1140
- .numberCount {
1141
- margin: 0.375rem 0;
1142
- font-size: 12px;
1143
- font-weight: 400;
1144
- color: var(--text-primary, #111827);
1145
- }
1146
-
1147
- .scroll-button {
1148
- position: absolute;
1149
- top: 50%;
1150
- transform: translateY(-50%);
1151
- z-index: 1000;
1152
- cursor: pointer;
1153
- }
1154
-
1155
- .scroll-button.left {
1156
- left: 3rem;
1157
- }
1158
-
1159
- .scroll-button.right {
1160
- right: 3rem;
1161
- }
1162
-
1163
- .progress-root {
1164
- position: absolute;
1165
- bottom: 0;
1166
- left: 0;
1167
- overflow: hidden;
1168
- display: block;
1169
- width: 100%;
1170
- height: 0.125rem;
1171
- background-color: var(--color-primary-light, #f0fadf);
1172
- box-sizing: border-box;
1173
- }
1174
-
1175
- .bar {
1176
- position: absolute;
1177
- height: 100%;
1178
- display: block;
1179
- background-color: var(--color-primary-main, #76b703);
1180
- width: auto;
1181
- will-change: left, right;
1182
- box-sizing: border-box;
1183
- }
1184
-
1185
- .selected {
1186
- background-color: var(--color-primary-light, #f0fadf);
1187
- }
1188
-
1189
- /* Prvá animovaná "vlna" */
1190
-
1191
- .bar1Indeterminate {
1192
- animation: mui-indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
1193
- }
1194
-
1195
- /* Druhá animovaná "vlna" (oneskorená) */
1196
-
1197
- .bar2Indeterminate {
1198
- animation: mui-indeterminate2 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
1199
- animation-delay: 1.05s;
1200
- }
1201
-
1202
- @keyframes mui-indeterminate1 {
1203
- 0% {
1204
- left: -35%;
1205
- right: 100%;
1206
- }
1207
- 60% {
1208
- left: 100%;
1209
- right: -90%;
1210
- }
1211
- 100% {
1212
- left: 100%;
1213
- right: -90%;
1214
- }
1215
- }
1216
-
1217
- @keyframes mui-indeterminate2 {
1218
- 0% {
1219
- left: -200%;
1220
- right: 100%;
1221
- }
1222
- 60% {
1223
- left: 107%;
1224
- right: -8%;
1225
- }
1226
- 100% {
1227
- left: 107%;
1228
- right: -8%;
1229
- }
1230
- }
953
+ css `
954
+ *,
955
+ *::before,
956
+ *::after {
957
+ margin: 0;
958
+ padding: 0;
959
+ box-sizing: border-box;
960
+ }
961
+
962
+ display: block;
963
+ font-family: 'Inter', sans-serif;
964
+ box-sizing: border-box;
965
+
966
+ td {
967
+ padding: 0px;
968
+ }
969
+
970
+ .data-grid__wrapper {
971
+ position: relative;
972
+ background-color: var(--background-paper, #fff);
973
+ height: 100%;
974
+ z-index: 1;
975
+ }
976
+
977
+ .grid {
978
+ overflow: auto;
979
+ position: relative;
980
+ height: 100%;
981
+ }
982
+
983
+ .data-grid__empty {
984
+ position: absolute;
985
+ top: 30%;
986
+ left: 50%;
987
+ transform: translate(-50%, -50%);
988
+ font-size: 0.875rem;
989
+ text-align: center;
990
+ }
991
+
992
+ table {
993
+ border-collapse: collapse;
994
+ border-spacing: 0;
995
+ width: 100% !important;
996
+ height: calc(100% - 38px);
997
+ }
998
+
999
+ thead {
1000
+ display: flex;
1001
+ position: sticky;
1002
+ top: 0;
1003
+ z-index: 10;
1004
+ background-color: var(--background-paper, #fff);
1005
+ border-bottom: 1px solid var(--color-divider, #d0d3db);
1006
+ }
1007
+
1008
+ tr.head {
1009
+ display: flex;
1010
+ width: 100%;
1011
+ }
1012
+
1013
+ th.head {
1014
+ display: block;
1015
+ position: relative;
1016
+ padding: 0px 6px;
1017
+ gap: 0.25rem;
1018
+ //z-index: auto !important;
1019
+ }
1020
+
1021
+ tbody {
1022
+ display: grid;
1023
+ position: relative;
1024
+ }
1025
+
1026
+ tr.body {
1027
+ width: 100%;
1028
+ border-bottom: 1px solid var(--color-divider, #d0d3db);
1029
+ display: flex;
1030
+ }
1031
+
1032
+ tr.body:hover {
1033
+ cursor: pointer;
1034
+ background-color: var(--background-default, #eff3f4);
1035
+ }
1036
+
1037
+ td {
1038
+ display: table-cell;
1039
+ white-space: nowrap;
1040
+ overflow: hidden;
1041
+ padding: 0px 14px;
1042
+ font-weight: 500;
1043
+ font-size: 13px;
1044
+ color: var(--text-primary, #111827);
1045
+ }
1046
+
1047
+ .column-header {
1048
+ font-size: 11px;
1049
+ font-weight: 600;
1050
+ color: var(--text-secondary, #5d6371);
1051
+ cursor: pointer;
1052
+ gap: 0.25rem;
1053
+ justify-content: center;
1054
+ align-items: center;
1055
+ margin: 0 0.25rem;
1056
+ overflow: hidden;
1057
+ white-space: nowrap;
1058
+ text-overflow: ellipsis;
1059
+ height: inherit;
1060
+ display: flex;
1061
+ }
1062
+
1063
+ .ellipsis {
1064
+ overflow: hidden;
1065
+ white-space: nowrap;
1066
+ text-overflow: ellipsis;
1067
+ }
1068
+
1069
+ .icons-group-pin {
1070
+ display: flex;
1071
+ height: 100%;
1072
+ justify-content: space-between;
1073
+ flex-grow: 1;
1074
+ }
1075
+
1076
+ .flex {
1077
+ display: flex;
1078
+ }
1079
+
1080
+ .resizer {
1081
+ height: 23px;
1082
+ padding: 0 0 0 6px;
1083
+ text-align: start;
1084
+ //cursor: col-resize;
1085
+ user-select: none;
1086
+ touch-action: none;
1087
+ }
1088
+
1089
+ .resize-handle {
1090
+ position: absolute;
1091
+ top: 0;
1092
+ right: 0px;
1093
+ width: 6px;
1094
+ height: 100%;
1095
+ background: transparent;
1096
+ cursor: col-resize;
1097
+ transition: background-color 0.2s ease-in-out;
1098
+ // border-radius: 5px;
1099
+ // padding-bottom: 5px;
1100
+ }
1101
+
1102
+ .resize-handle:hover {
1103
+ border-right: 2px solid var(--color-primary-main, #75b603);
1104
+ }
1105
+
1106
+ .resizer.ltr {
1107
+ right: 0;
1108
+ }
1109
+
1110
+ .resizer.rtl {
1111
+ left: 0;
1112
+ }
1113
+
1114
+ .resizer.is-resizing {
1115
+ opacity: 1;
1116
+ }
1117
+
1118
+ .footer-container {
1119
+ position: sticky;
1120
+ left: 0;
1121
+ bottom: 0;
1122
+ background-color: var(--background-paper, #fff);
1123
+ width: auto;
1124
+ border-top: 1px solid var(--color-divider, #d0d3db);
1125
+ height: 2.375rem;
1126
+ display: flex;
1127
+ flex-direction: row;
1128
+ justify-content: space-between;
1129
+ align-items: center;
1130
+ padding: 0 16px;
1131
+ z-index: 10;
1132
+ }
1133
+
1134
+ .right-actions {
1135
+ position: absolute;
1136
+ right: 0;
1137
+ display: flex;
1138
+ }
1139
+
1140
+ .numberCount {
1141
+ margin: 0.375rem 0;
1142
+ font-size: 12px;
1143
+ font-weight: 400;
1144
+ color: var(--text-primary, #111827);
1145
+ }
1146
+
1147
+ .scroll-button {
1148
+ position: absolute;
1149
+ top: 50%;
1150
+ transform: translateY(-50%);
1151
+ z-index: 1000;
1152
+ cursor: pointer;
1153
+ }
1154
+
1155
+ .scroll-button.left {
1156
+ left: 3rem;
1157
+ }
1158
+
1159
+ .scroll-button.right {
1160
+ right: 3rem;
1161
+ }
1162
+
1163
+ .progress-root {
1164
+ position: absolute;
1165
+ bottom: 0;
1166
+ left: 0;
1167
+ overflow: hidden;
1168
+ display: block;
1169
+ width: 100%;
1170
+ height: 0.125rem;
1171
+ background-color: var(--color-primary-light, #f0fadf);
1172
+ box-sizing: border-box;
1173
+ }
1174
+
1175
+ .bar {
1176
+ position: absolute;
1177
+ height: 100%;
1178
+ display: block;
1179
+ background-color: var(--color-primary-main, #76b703);
1180
+ width: auto;
1181
+ will-change: left, right;
1182
+ box-sizing: border-box;
1183
+ }
1184
+
1185
+ .selected {
1186
+ background-color: var(--color-primary-light, #f0fadf);
1187
+ }
1188
+
1189
+ /* Prvá animovaná "vlna" */
1190
+
1191
+ .bar1Indeterminate {
1192
+ animation: mui-indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
1193
+ }
1194
+
1195
+ /* Druhá animovaná "vlna" (oneskorená) */
1196
+
1197
+ .bar2Indeterminate {
1198
+ animation: mui-indeterminate2 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
1199
+ animation-delay: 1.05s;
1200
+ }
1201
+
1202
+ @keyframes mui-indeterminate1 {
1203
+ 0% {
1204
+ left: -35%;
1205
+ right: 100%;
1206
+ }
1207
+ 60% {
1208
+ left: 100%;
1209
+ right: -90%;
1210
+ }
1211
+ 100% {
1212
+ left: 100%;
1213
+ right: -90%;
1214
+ }
1215
+ }
1216
+
1217
+ @keyframes mui-indeterminate2 {
1218
+ 0% {
1219
+ left: -200%;
1220
+ right: 100%;
1221
+ }
1222
+ 60% {
1223
+ left: 107%;
1224
+ right: -8%;
1225
+ }
1226
+ 100% {
1227
+ left: 107%;
1228
+ right: -8%;
1229
+ }
1230
+ }
1231
1231
  `,
1232
1232
  ];
1233
1233
  __decorate([