@enki-tek/fms-web-components 0.1.2 → 0.1.4

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 (41) hide show
  1. package/components/Accordion/Accordion.svelte +24 -0
  2. package/components/Accordion/AccordionItem.svelte +24 -0
  3. package/components/Badge/Badge.svelte +24 -0
  4. package/components/Breadcrumb/Breadcrumb.svelte +24 -0
  5. package/components/Button/Button.svelte +24 -0
  6. package/components/CardIcon/CardIcon.svelte +24 -0
  7. package/components/CardIcon/CardiconBody.svelte +24 -0
  8. package/components/CardIcon/CardiconSubtitle.svelte +24 -0
  9. package/components/CardIcon/CardiconTitle.svelte +24 -0
  10. package/components/CheckBox/Checkbox.svelte +24 -0
  11. package/components/Dropdown/Dropdown.svelte +24 -0
  12. package/components/Dropdown/DropdownItem.svelte +24 -0
  13. package/components/EnkiSidbar/EnkiSidebar.svelte +24 -0
  14. package/components/EnkiSidbar/NavIcon.svelte +24 -0
  15. package/components/EnkiSidbar/NavItem.svelte +24 -0
  16. package/components/EnkiSidbar/NavLink.svelte +24 -0
  17. package/components/Header/Brand.svelte +25 -0
  18. package/components/Header/Header.scss +1 -0
  19. package/components/Header/Header.svelte +25 -0
  20. package/components/Header/HeaderItem.svelte +25 -0
  21. package/components/Header/UserAvatar.svelte +25 -0
  22. package/components/Layout/Content.svelte +1 -1
  23. package/components/Layout/Content.svelte.d.ts +2 -2
  24. package/components/Layout/Page.svelte +1 -1
  25. package/components/Layout/SortableGrid.svelte +0 -1
  26. package/components/ModalWindow/Modal.svelte +24 -0
  27. package/components/ModalWindow/ModalBody.svelte +24 -0
  28. package/components/ModalWindow/ModalFooter.svelte +24 -0
  29. package/components/ModalWindow/ModalHeader.svelte +24 -0
  30. package/components/NotFound/NotFound.svelte +24 -0
  31. package/components/Pagination/Pagination.svelte +24 -0
  32. package/components/RadioButton/RadioButton.svelte +24 -0
  33. package/components/Sidebar/SideBarMenu.svelte +2 -2
  34. package/components/Sidebar/Sidebar.svelte +24 -0
  35. package/components/Switches/Switch.svelte +24 -0
  36. package/components/Tab/Tab.svelte +24 -0
  37. package/components/TextField/TextField.svelte +24 -0
  38. package/components/Toast/Toast.svelte +24 -0
  39. package/components/Tooltip/Tooltip.svelte +24 -0
  40. package/components/common.scss +26 -1
  41. package/package.json +1 -1
@@ -587,6 +587,30 @@ export let stayOpen = true;
587
587
  :global(.bg-dark) {
588
588
  background-color: #05445E !important;
589
589
  }
590
+ .sidebar {
591
+ position: fixed;
592
+ top: 80px; /* Height of the navbar */
593
+ bottom: 0;
594
+ width: 315px;
595
+ transition: transform 0.3s ease;
596
+ }
597
+ .main-content {
598
+ margin-left: 315px; /* Width of the sidebar */
599
+ flex: 1;
600
+ overflow-y: auto;
601
+ transition: margin-left 0.3s ease;
602
+ }
603
+ .main-content.collapsed {
604
+ margin-left: 0;
605
+ }
606
+ @media (max-width: 767px) {
607
+ .sidebar {
608
+ display: none !important;
609
+ }
610
+ .main-content {
611
+ margin-left: 0;
612
+ }
613
+ }
590
614
  :global(.accordion-body) {
591
615
  color: #6C757D;
592
616
  font-size: 16px;
@@ -588,6 +588,30 @@ export let header;
588
588
  :global(.bg-dark) {
589
589
  background-color: #05445E !important;
590
590
  }
591
+ .sidebar {
592
+ position: fixed;
593
+ top: 80px; /* Height of the navbar */
594
+ bottom: 0;
595
+ width: 315px;
596
+ transition: transform 0.3s ease;
597
+ }
598
+ .main-content {
599
+ margin-left: 315px; /* Width of the sidebar */
600
+ flex: 1;
601
+ overflow-y: auto;
602
+ transition: margin-left 0.3s ease;
603
+ }
604
+ .main-content.collapsed {
605
+ margin-left: 0;
606
+ }
607
+ @media (max-width: 767px) {
608
+ .sidebar {
609
+ display: none !important;
610
+ }
611
+ .main-content {
612
+ margin-left: 0;
613
+ }
614
+ }
591
615
  :global(.accordion-body) {
592
616
  color: #6C757D;
593
617
  font-size: 16px;
@@ -592,4 +592,28 @@ if (badgeConfig.hasOwnProperty(config)) {
592
592
  }
593
593
  :global(.bg-dark) {
594
594
  background-color: #05445E !important;
595
+ }
596
+ .sidebar {
597
+ position: fixed;
598
+ top: 80px; /* Height of the navbar */
599
+ bottom: 0;
600
+ width: 315px;
601
+ transition: transform 0.3s ease;
602
+ }
603
+ .main-content {
604
+ margin-left: 315px; /* Width of the sidebar */
605
+ flex: 1;
606
+ overflow-y: auto;
607
+ transition: margin-left 0.3s ease;
608
+ }
609
+ .main-content.collapsed {
610
+ margin-left: 0;
611
+ }
612
+ @media (max-width: 767px) {
613
+ .sidebar {
614
+ display: none !important;
615
+ }
616
+ .main-content {
617
+ margin-left: 0;
618
+ }
595
619
  }</style>
@@ -602,4 +602,28 @@ let length = newBreadcrumbs.length;
602
602
  }
603
603
  :global(.bg-dark) {
604
604
  background-color: #05445E !important;
605
+ }
606
+ .sidebar {
607
+ position: fixed;
608
+ top: 80px; /* Height of the navbar */
609
+ bottom: 0;
610
+ width: 315px;
611
+ transition: transform 0.3s ease;
612
+ }
613
+ .main-content {
614
+ margin-left: 315px; /* Width of the sidebar */
615
+ flex: 1;
616
+ overflow-y: auto;
617
+ transition: margin-left 0.3s ease;
618
+ }
619
+ .main-content.collapsed {
620
+ margin-left: 0;
621
+ }
622
+ @media (max-width: 767px) {
623
+ .sidebar {
624
+ display: none !important;
625
+ }
626
+ .main-content {
627
+ margin-left: 0;
628
+ }
605
629
  }</style>
@@ -1339,6 +1339,30 @@
1339
1339
  :global(.bg-dark) {
1340
1340
  background-color: #05445E !important;
1341
1341
  }
1342
+ .sidebar {
1343
+ position: fixed;
1344
+ top: 80px; /* Height of the navbar */
1345
+ bottom: 0;
1346
+ width: 315px;
1347
+ transition: transform 0.3s ease;
1348
+ }
1349
+ .main-content {
1350
+ margin-left: 315px; /* Width of the sidebar */
1351
+ flex: 1;
1352
+ overflow-y: auto;
1353
+ transition: margin-left 0.3s ease;
1354
+ }
1355
+ .main-content.collapsed {
1356
+ margin-left: 0;
1357
+ }
1358
+ @media (max-width: 767px) {
1359
+ .sidebar {
1360
+ display: none !important;
1361
+ }
1362
+ .main-content {
1363
+ margin-left: 0;
1364
+ }
1365
+ }
1342
1366
  .ebg-active-secondary {
1343
1367
  background-color: #3AC82E;
1344
1368
  color: #ffffff;
@@ -669,4 +669,28 @@ if (titleConfig.includes(titleLocation)) {
669
669
  }
670
670
  :global(.bg-dark) {
671
671
  background-color: #05445E !important;
672
+ }
673
+ .sidebar {
674
+ position: fixed;
675
+ top: 80px; /* Height of the navbar */
676
+ bottom: 0;
677
+ width: 315px;
678
+ transition: transform 0.3s ease;
679
+ }
680
+ .main-content {
681
+ margin-left: 315px; /* Width of the sidebar */
682
+ flex: 1;
683
+ overflow-y: auto;
684
+ transition: margin-left 0.3s ease;
685
+ }
686
+ .main-content.collapsed {
687
+ margin-left: 0;
688
+ }
689
+ @media (max-width: 767px) {
690
+ .sidebar {
691
+ display: none !important;
692
+ }
693
+ .main-content {
694
+ margin-left: 0;
695
+ }
672
696
  }</style>
@@ -664,4 +664,28 @@
664
664
  }
665
665
  :global(.bg-dark) {
666
666
  background-color: #05445E !important;
667
+ }
668
+ .sidebar {
669
+ position: fixed;
670
+ top: 80px; /* Height of the navbar */
671
+ bottom: 0;
672
+ width: 315px;
673
+ transition: transform 0.3s ease;
674
+ }
675
+ .main-content {
676
+ margin-left: 315px; /* Width of the sidebar */
677
+ flex: 1;
678
+ overflow-y: auto;
679
+ transition: margin-left 0.3s ease;
680
+ }
681
+ .main-content.collapsed {
682
+ margin-left: 0;
683
+ }
684
+ @media (max-width: 767px) {
685
+ .sidebar {
686
+ display: none !important;
687
+ }
688
+ .main-content {
689
+ margin-left: 0;
690
+ }
667
691
  }</style>
@@ -673,4 +673,28 @@
673
673
  }
674
674
  :global(.bg-dark) {
675
675
  background-color: #05445E !important;
676
+ }
677
+ .sidebar {
678
+ position: fixed;
679
+ top: 80px; /* Height of the navbar */
680
+ bottom: 0;
681
+ width: 315px;
682
+ transition: transform 0.3s ease;
683
+ }
684
+ .main-content {
685
+ margin-left: 315px; /* Width of the sidebar */
686
+ flex: 1;
687
+ overflow-y: auto;
688
+ transition: margin-left 0.3s ease;
689
+ }
690
+ .main-content.collapsed {
691
+ margin-left: 0;
692
+ }
693
+ @media (max-width: 767px) {
694
+ .sidebar {
695
+ display: none !important;
696
+ }
697
+ .main-content {
698
+ margin-left: 0;
699
+ }
676
700
  }</style>
@@ -673,4 +673,28 @@
673
673
  }
674
674
  :global(.bg-dark) {
675
675
  background-color: #05445E !important;
676
+ }
677
+ .sidebar {
678
+ position: fixed;
679
+ top: 80px; /* Height of the navbar */
680
+ bottom: 0;
681
+ width: 315px;
682
+ transition: transform 0.3s ease;
683
+ }
684
+ .main-content {
685
+ margin-left: 315px; /* Width of the sidebar */
686
+ flex: 1;
687
+ overflow-y: auto;
688
+ transition: margin-left 0.3s ease;
689
+ }
690
+ .main-content.collapsed {
691
+ margin-left: 0;
692
+ }
693
+ @media (max-width: 767px) {
694
+ .sidebar {
695
+ display: none !important;
696
+ }
697
+ .main-content {
698
+ margin-left: 0;
699
+ }
676
700
  }</style>
@@ -622,4 +622,28 @@
622
622
  }
623
623
  :global(.bg-dark) {
624
624
  background-color: #05445E !important;
625
+ }
626
+ .sidebar {
627
+ position: fixed;
628
+ top: 80px; /* Height of the navbar */
629
+ bottom: 0;
630
+ width: 315px;
631
+ transition: transform 0.3s ease;
632
+ }
633
+ .main-content {
634
+ margin-left: 315px; /* Width of the sidebar */
635
+ flex: 1;
636
+ overflow-y: auto;
637
+ transition: margin-left 0.3s ease;
638
+ }
639
+ .main-content.collapsed {
640
+ margin-left: 0;
641
+ }
642
+ @media (max-width: 767px) {
643
+ .sidebar {
644
+ display: none !important;
645
+ }
646
+ .main-content {
647
+ margin-left: 0;
648
+ }
625
649
  }</style>
@@ -647,4 +647,28 @@ export let title = "Dropdowns";
647
647
  }
648
648
  :global(.bg-dark) {
649
649
  background-color: #05445E !important;
650
+ }
651
+ .sidebar {
652
+ position: fixed;
653
+ top: 80px; /* Height of the navbar */
654
+ bottom: 0;
655
+ width: 315px;
656
+ transition: transform 0.3s ease;
657
+ }
658
+ .main-content {
659
+ margin-left: 315px; /* Width of the sidebar */
660
+ flex: 1;
661
+ overflow-y: auto;
662
+ transition: margin-left 0.3s ease;
663
+ }
664
+ .main-content.collapsed {
665
+ margin-left: 0;
666
+ }
667
+ @media (max-width: 767px) {
668
+ .sidebar {
669
+ display: none !important;
670
+ }
671
+ .main-content {
672
+ margin-left: 0;
673
+ }
650
674
  }</style>
@@ -640,4 +640,28 @@ export let disabled = false;
640
640
  }
641
641
  :global(.bg-dark) {
642
642
  background-color: #05445E !important;
643
+ }
644
+ .sidebar {
645
+ position: fixed;
646
+ top: 80px; /* Height of the navbar */
647
+ bottom: 0;
648
+ width: 315px;
649
+ transition: transform 0.3s ease;
650
+ }
651
+ .main-content {
652
+ margin-left: 315px; /* Width of the sidebar */
653
+ flex: 1;
654
+ overflow-y: auto;
655
+ transition: margin-left 0.3s ease;
656
+ }
657
+ .main-content.collapsed {
658
+ margin-left: 0;
659
+ }
660
+ @media (max-width: 767px) {
661
+ .sidebar {
662
+ display: none !important;
663
+ }
664
+ .main-content {
665
+ margin-left: 0;
666
+ }
643
667
  }</style>
@@ -721,4 +721,28 @@ li.icons:hover {
721
721
  }
722
722
  :global(.bg-dark) {
723
723
  background-color: #05445E !important;
724
+ }
725
+ .sidebar {
726
+ position: fixed;
727
+ top: 80px; /* Height of the navbar */
728
+ bottom: 0;
729
+ width: 315px;
730
+ transition: transform 0.3s ease;
731
+ }
732
+ .main-content {
733
+ margin-left: 315px; /* Width of the sidebar */
734
+ flex: 1;
735
+ overflow-y: auto;
736
+ transition: margin-left 0.3s ease;
737
+ }
738
+ .main-content.collapsed {
739
+ margin-left: 0;
740
+ }
741
+ @media (max-width: 767px) {
742
+ .sidebar {
743
+ display: none !important;
744
+ }
745
+ .main-content {
746
+ margin-left: 0;
747
+ }
724
748
  }</style>
@@ -664,4 +664,28 @@ li.icons:hover {
664
664
  }
665
665
  :global(.bg-dark) {
666
666
  background-color: #05445E !important;
667
+ }
668
+ .sidebar {
669
+ position: fixed;
670
+ top: 80px; /* Height of the navbar */
671
+ bottom: 0;
672
+ width: 315px;
673
+ transition: transform 0.3s ease;
674
+ }
675
+ .main-content {
676
+ margin-left: 315px; /* Width of the sidebar */
677
+ flex: 1;
678
+ overflow-y: auto;
679
+ transition: margin-left 0.3s ease;
680
+ }
681
+ .main-content.collapsed {
682
+ margin-left: 0;
683
+ }
684
+ @media (max-width: 767px) {
685
+ .sidebar {
686
+ display: none !important;
687
+ }
688
+ .main-content {
689
+ margin-left: 0;
690
+ }
667
691
  }</style>
@@ -662,4 +662,28 @@ li.icons:hover {
662
662
  }
663
663
  :global(.bg-dark) {
664
664
  background-color: #05445E !important;
665
+ }
666
+ .sidebar {
667
+ position: fixed;
668
+ top: 80px; /* Height of the navbar */
669
+ bottom: 0;
670
+ width: 315px;
671
+ transition: transform 0.3s ease;
672
+ }
673
+ .main-content {
674
+ margin-left: 315px; /* Width of the sidebar */
675
+ flex: 1;
676
+ overflow-y: auto;
677
+ transition: margin-left 0.3s ease;
678
+ }
679
+ .main-content.collapsed {
680
+ margin-left: 0;
681
+ }
682
+ @media (max-width: 767px) {
683
+ .sidebar {
684
+ display: none !important;
685
+ }
686
+ .main-content {
687
+ margin-left: 0;
688
+ }
665
689
  }</style>
@@ -671,4 +671,28 @@ li.icons:hover {
671
671
  }
672
672
  :global(.bg-dark) {
673
673
  background-color: #05445E !important;
674
+ }
675
+ .sidebar {
676
+ position: fixed;
677
+ top: 80px; /* Height of the navbar */
678
+ bottom: 0;
679
+ width: 315px;
680
+ transition: transform 0.3s ease;
681
+ }
682
+ .main-content {
683
+ margin-left: 315px; /* Width of the sidebar */
684
+ flex: 1;
685
+ overflow-y: auto;
686
+ transition: margin-left 0.3s ease;
687
+ }
688
+ .main-content.collapsed {
689
+ margin-left: 0;
690
+ }
691
+ @media (max-width: 767px) {
692
+ .sidebar {
693
+ display: none !important;
694
+ }
695
+ .main-content {
696
+ margin-left: 0;
697
+ }
674
698
  }</style>
@@ -77,6 +77,7 @@
77
77
  :global(.userProfile img) {
78
78
  width: 45px;
79
79
  height: 45px;
80
+ object-fit: contain;
80
81
  border-radius: 50%;
81
82
  }
82
83
  :global(.nav-link:focus, .nav-link:hover) {
@@ -649,4 +650,28 @@
649
650
  }
650
651
  :global(.bg-dark) {
651
652
  background-color: #05445E !important;
653
+ }
654
+ .sidebar {
655
+ position: fixed;
656
+ top: 80px; /* Height of the navbar */
657
+ bottom: 0;
658
+ width: 315px;
659
+ transition: transform 0.3s ease;
660
+ }
661
+ .main-content {
662
+ margin-left: 315px; /* Width of the sidebar */
663
+ flex: 1;
664
+ overflow-y: auto;
665
+ transition: margin-left 0.3s ease;
666
+ }
667
+ .main-content.collapsed {
668
+ margin-left: 0;
669
+ }
670
+ @media (max-width: 767px) {
671
+ .sidebar {
672
+ display: none !important;
673
+ }
674
+ .main-content {
675
+ margin-left: 0;
676
+ }
652
677
  }</style>
@@ -58,6 +58,7 @@
58
58
  :global(.userProfile img) {
59
59
  width: 45px;
60
60
  height: 45px;
61
+ object-fit: contain;
61
62
  border-radius: 50%;
62
63
  }
63
64
 
@@ -76,6 +76,7 @@
76
76
  :global(.userProfile img) {
77
77
  width: 45px;
78
78
  height: 45px;
79
+ object-fit: contain;
79
80
  border-radius: 50%;
80
81
  }
81
82
  :global(.nav-link:focus, .nav-link:hover) {
@@ -648,4 +649,28 @@
648
649
  }
649
650
  :global(.bg-dark) {
650
651
  background-color: #05445E !important;
652
+ }
653
+ .sidebar {
654
+ position: fixed;
655
+ top: 80px; /* Height of the navbar */
656
+ bottom: 0;
657
+ width: 315px;
658
+ transition: transform 0.3s ease;
659
+ }
660
+ .main-content {
661
+ margin-left: 315px; /* Width of the sidebar */
662
+ flex: 1;
663
+ overflow-y: auto;
664
+ transition: margin-left 0.3s ease;
665
+ }
666
+ .main-content.collapsed {
667
+ margin-left: 0;
668
+ }
669
+ @media (max-width: 767px) {
670
+ .sidebar {
671
+ display: none !important;
672
+ }
673
+ .main-content {
674
+ margin-left: 0;
675
+ }
651
676
  }</style>
@@ -78,6 +78,7 @@
78
78
  :global(.userProfile img) {
79
79
  width: 45px;
80
80
  height: 45px;
81
+ object-fit: contain;
81
82
  border-radius: 50%;
82
83
  }
83
84
  :global(.nav-link:focus, .nav-link:hover) {
@@ -650,4 +651,28 @@
650
651
  }
651
652
  :global(.bg-dark) {
652
653
  background-color: #05445E !important;
654
+ }
655
+ .sidebar {
656
+ position: fixed;
657
+ top: 80px; /* Height of the navbar */
658
+ bottom: 0;
659
+ width: 315px;
660
+ transition: transform 0.3s ease;
661
+ }
662
+ .main-content {
663
+ margin-left: 315px; /* Width of the sidebar */
664
+ flex: 1;
665
+ overflow-y: auto;
666
+ transition: margin-left 0.3s ease;
667
+ }
668
+ .main-content.collapsed {
669
+ margin-left: 0;
670
+ }
671
+ @media (max-width: 767px) {
672
+ .sidebar {
673
+ display: none !important;
674
+ }
675
+ .main-content {
676
+ margin-left: 0;
677
+ }
653
678
  }</style>
@@ -76,6 +76,7 @@
76
76
  :global(.userProfile img) {
77
77
  width: 45px;
78
78
  height: 45px;
79
+ object-fit: contain;
79
80
  border-radius: 50%;
80
81
  }
81
82
  :global(.nav-link:focus, .nav-link:hover) {
@@ -648,4 +649,28 @@
648
649
  }
649
650
  :global(.bg-dark) {
650
651
  background-color: #05445E !important;
652
+ }
653
+ .sidebar {
654
+ position: fixed;
655
+ top: 80px; /* Height of the navbar */
656
+ bottom: 0;
657
+ width: 315px;
658
+ transition: transform 0.3s ease;
659
+ }
660
+ .main-content {
661
+ margin-left: 315px; /* Width of the sidebar */
662
+ flex: 1;
663
+ overflow-y: auto;
664
+ transition: margin-left 0.3s ease;
665
+ }
666
+ .main-content.collapsed {
667
+ margin-left: 0;
668
+ }
669
+ @media (max-width: 767px) {
670
+ .sidebar {
671
+ display: none !important;
672
+ }
673
+ .main-content {
674
+ margin-left: 0;
675
+ }
651
676
  }</style>
@@ -4,6 +4,6 @@
4
4
  <div class="container-fluid" style="margin-top:80px;background-color: #EBECEF;">
5
5
  <div class="row">
6
6
  <slot name="sidebar-menu" />
7
- <slot name="page" />
7
+ <slot />
8
8
  </div>
9
9
  </div>
@@ -7,7 +7,7 @@ export default class Content extends SvelteComponentTyped<{
7
7
  [evt: string]: CustomEvent<any>;
8
8
  }, {
9
9
  'sidebar-menu': {};
10
- page: {};
10
+ default: {};
11
11
  }> {
12
12
  }
13
13
  export type ContentProps = typeof __propDef.props;
@@ -23,7 +23,7 @@ declare const __propDef: {
23
23
  };
24
24
  slots: {
25
25
  'sidebar-menu': {};
26
- page: {};
26
+ default: {};
27
27
  };
28
28
  };
29
29
  export {};
@@ -2,7 +2,7 @@
2
2
  import { Col, Row } from 'sveltestrap';
3
3
  </script>
4
4
 
5
- <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
5
+ <main class="main-content">
6
6
  <div
7
7
  class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
8
8
  >
@@ -5,7 +5,6 @@
5
5
  export let id;
6
6
  onMount(() => {
7
7
  const el = document.getElementById(id);
8
- console.log(el);
9
8
  Sortable.create(el, {
10
9
  animation: 150,
11
10
  ghostClass: 'blue-background-class'
@@ -589,6 +589,30 @@
589
589
  :global(.bg-dark) {
590
590
  background-color: #05445E !important;
591
591
  }
592
+ .sidebar {
593
+ position: fixed;
594
+ top: 80px; /* Height of the navbar */
595
+ bottom: 0;
596
+ width: 315px;
597
+ transition: transform 0.3s ease;
598
+ }
599
+ .main-content {
600
+ margin-left: 315px; /* Width of the sidebar */
601
+ flex: 1;
602
+ overflow-y: auto;
603
+ transition: margin-left 0.3s ease;
604
+ }
605
+ .main-content.collapsed {
606
+ margin-left: 0;
607
+ }
608
+ @media (max-width: 767px) {
609
+ .sidebar {
610
+ display: none !important;
611
+ }
612
+ .main-content {
613
+ margin-left: 0;
614
+ }
615
+ }
592
616
  .content {
593
617
  color: #495057;
594
618
  line-height: normal;
@@ -587,6 +587,30 @@
587
587
  :global(.bg-dark) {
588
588
  background-color: #05445E !important;
589
589
  }
590
+ .sidebar {
591
+ position: fixed;
592
+ top: 80px; /* Height of the navbar */
593
+ bottom: 0;
594
+ width: 315px;
595
+ transition: transform 0.3s ease;
596
+ }
597
+ .main-content {
598
+ margin-left: 315px; /* Width of the sidebar */
599
+ flex: 1;
600
+ overflow-y: auto;
601
+ transition: margin-left 0.3s ease;
602
+ }
603
+ .main-content.collapsed {
604
+ margin-left: 0;
605
+ }
606
+ @media (max-width: 767px) {
607
+ .sidebar {
608
+ display: none !important;
609
+ }
610
+ .main-content {
611
+ margin-left: 0;
612
+ }
613
+ }
590
614
  .content {
591
615
  color: #495057;
592
616
  line-height: normal;
@@ -585,6 +585,30 @@
585
585
  :global(.bg-dark) {
586
586
  background-color: #05445E !important;
587
587
  }
588
+ .sidebar {
589
+ position: fixed;
590
+ top: 80px; /* Height of the navbar */
591
+ bottom: 0;
592
+ width: 315px;
593
+ transition: transform 0.3s ease;
594
+ }
595
+ .main-content {
596
+ margin-left: 315px; /* Width of the sidebar */
597
+ flex: 1;
598
+ overflow-y: auto;
599
+ transition: margin-left 0.3s ease;
600
+ }
601
+ .main-content.collapsed {
602
+ margin-left: 0;
603
+ }
604
+ @media (max-width: 767px) {
605
+ .sidebar {
606
+ display: none !important;
607
+ }
608
+ .main-content {
609
+ margin-left: 0;
610
+ }
611
+ }
588
612
  .content {
589
613
  color: #495057;
590
614
  line-height: normal;
@@ -590,6 +590,30 @@
590
590
  :global(.bg-dark) {
591
591
  background-color: #05445E !important;
592
592
  }
593
+ .sidebar {
594
+ position: fixed;
595
+ top: 80px; /* Height of the navbar */
596
+ bottom: 0;
597
+ width: 315px;
598
+ transition: transform 0.3s ease;
599
+ }
600
+ .main-content {
601
+ margin-left: 315px; /* Width of the sidebar */
602
+ flex: 1;
603
+ overflow-y: auto;
604
+ transition: margin-left 0.3s ease;
605
+ }
606
+ .main-content.collapsed {
607
+ margin-left: 0;
608
+ }
609
+ @media (max-width: 767px) {
610
+ .sidebar {
611
+ display: none !important;
612
+ }
613
+ .main-content {
614
+ margin-left: 0;
615
+ }
616
+ }
593
617
  .content {
594
618
  color: #495057;
595
619
  line-height: normal;
@@ -624,4 +624,28 @@
624
624
  }
625
625
  :global(.bg-dark) {
626
626
  background-color: #05445E !important;
627
+ }
628
+ .sidebar {
629
+ position: fixed;
630
+ top: 80px; /* Height of the navbar */
631
+ bottom: 0;
632
+ width: 315px;
633
+ transition: transform 0.3s ease;
634
+ }
635
+ .main-content {
636
+ margin-left: 315px; /* Width of the sidebar */
637
+ flex: 1;
638
+ overflow-y: auto;
639
+ transition: margin-left 0.3s ease;
640
+ }
641
+ .main-content.collapsed {
642
+ margin-left: 0;
643
+ }
644
+ @media (max-width: 767px) {
645
+ .sidebar {
646
+ display: none !important;
647
+ }
648
+ .main-content {
649
+ margin-left: 0;
650
+ }
627
651
  }</style>
@@ -721,4 +721,28 @@ function nextPage() {
721
721
  }
722
722
  :global(.bg-dark) {
723
723
  background-color: #05445E !important;
724
+ }
725
+ .sidebar {
726
+ position: fixed;
727
+ top: 80px; /* Height of the navbar */
728
+ bottom: 0;
729
+ width: 315px;
730
+ transition: transform 0.3s ease;
731
+ }
732
+ .main-content {
733
+ margin-left: 315px; /* Width of the sidebar */
734
+ flex: 1;
735
+ overflow-y: auto;
736
+ transition: margin-left 0.3s ease;
737
+ }
738
+ .main-content.collapsed {
739
+ margin-left: 0;
740
+ }
741
+ @media (max-width: 767px) {
742
+ .sidebar {
743
+ display: none !important;
744
+ }
745
+ .main-content {
746
+ margin-left: 0;
747
+ }
724
748
  }</style>
@@ -605,6 +605,30 @@
605
605
  :global(.bg-dark) {
606
606
  background-color: #05445E !important;
607
607
  }
608
+ .sidebar {
609
+ position: fixed;
610
+ top: 80px; /* Height of the navbar */
611
+ bottom: 0;
612
+ width: 315px;
613
+ transition: transform 0.3s ease;
614
+ }
615
+ .main-content {
616
+ margin-left: 315px; /* Width of the sidebar */
617
+ flex: 1;
618
+ overflow-y: auto;
619
+ transition: margin-left 0.3s ease;
620
+ }
621
+ .main-content.collapsed {
622
+ margin-left: 0;
623
+ }
624
+ @media (max-width: 767px) {
625
+ .sidebar {
626
+ display: none !important;
627
+ }
628
+ .main-content {
629
+ margin-left: 0;
630
+ }
631
+ }
608
632
  :global(.custom-radio .form-check-label) {
609
633
  color: #343A40;
610
634
  }
@@ -5,9 +5,9 @@
5
5
  export let companyName = 'EnkiTek';
6
6
  </script>
7
7
 
8
- <div class="sidebar col-md-3 col-lg-2">
8
+ <div class="sidebar">
9
9
  <div
10
- class="offcanvas-md offcanvas-end bg-light rounded m-3"
10
+ class="offcanvas-md offcanvas-end bg-light rounded"
11
11
  tabindex="-1"
12
12
  id="sidebarMenu"
13
13
  aria-labelledby="sidebarMenuLabel"
@@ -746,5 +746,29 @@ ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
746
746
  }
747
747
  :global(.bg-dark) {
748
748
  background-color: #05445E !important;
749
+ }
750
+ .sidebar {
751
+ position: fixed;
752
+ top: 80px; /* Height of the navbar */
753
+ bottom: 0;
754
+ width: 315px;
755
+ transition: transform 0.3s ease;
756
+ }
757
+ .main-content {
758
+ margin-left: 315px; /* Width of the sidebar */
759
+ flex: 1;
760
+ overflow-y: auto;
761
+ transition: margin-left 0.3s ease;
762
+ }
763
+ .main-content.collapsed {
764
+ margin-left: 0;
765
+ }
766
+ @media (max-width: 767px) {
767
+ .sidebar {
768
+ display: none !important;
769
+ }
770
+ .main-content {
771
+ margin-left: 0;
772
+ }
749
773
  }</style>
750
774
 
@@ -595,4 +595,28 @@
595
595
  }
596
596
  :global(.bg-dark) {
597
597
  background-color: #05445E !important;
598
+ }
599
+ .sidebar {
600
+ position: fixed;
601
+ top: 80px; /* Height of the navbar */
602
+ bottom: 0;
603
+ width: 315px;
604
+ transition: transform 0.3s ease;
605
+ }
606
+ .main-content {
607
+ margin-left: 315px; /* Width of the sidebar */
608
+ flex: 1;
609
+ overflow-y: auto;
610
+ transition: margin-left 0.3s ease;
611
+ }
612
+ .main-content.collapsed {
613
+ margin-left: 0;
614
+ }
615
+ @media (max-width: 767px) {
616
+ .sidebar {
617
+ display: none !important;
618
+ }
619
+ .main-content {
620
+ margin-left: 0;
621
+ }
598
622
  }</style>
@@ -615,4 +615,28 @@ export let tabs = [
615
615
  }
616
616
  :global(.bg-dark) {
617
617
  background-color: #05445E !important;
618
+ }
619
+ .sidebar {
620
+ position: fixed;
621
+ top: 80px; /* Height of the navbar */
622
+ bottom: 0;
623
+ width: 315px;
624
+ transition: transform 0.3s ease;
625
+ }
626
+ .main-content {
627
+ margin-left: 315px; /* Width of the sidebar */
628
+ flex: 1;
629
+ overflow-y: auto;
630
+ transition: margin-left 0.3s ease;
631
+ }
632
+ .main-content.collapsed {
633
+ margin-left: 0;
634
+ }
635
+ @media (max-width: 767px) {
636
+ .sidebar {
637
+ display: none !important;
638
+ }
639
+ .main-content {
640
+ margin-left: 0;
641
+ }
618
642
  }</style>
@@ -623,4 +623,28 @@
623
623
  }
624
624
  :global(.bg-dark) {
625
625
  background-color: #05445E !important;
626
+ }
627
+ .sidebar {
628
+ position: fixed;
629
+ top: 80px; /* Height of the navbar */
630
+ bottom: 0;
631
+ width: 315px;
632
+ transition: transform 0.3s ease;
633
+ }
634
+ .main-content {
635
+ margin-left: 315px; /* Width of the sidebar */
636
+ flex: 1;
637
+ overflow-y: auto;
638
+ transition: margin-left 0.3s ease;
639
+ }
640
+ .main-content.collapsed {
641
+ margin-left: 0;
642
+ }
643
+ @media (max-width: 767px) {
644
+ .sidebar {
645
+ display: none !important;
646
+ }
647
+ .main-content {
648
+ margin-left: 0;
649
+ }
626
650
  }</style>
@@ -659,4 +659,28 @@
659
659
  }
660
660
  :global(.bg-dark) {
661
661
  background-color: #05445E !important;
662
+ }
663
+ .sidebar {
664
+ position: fixed;
665
+ top: 80px; /* Height of the navbar */
666
+ bottom: 0;
667
+ width: 315px;
668
+ transition: transform 0.3s ease;
669
+ }
670
+ .main-content {
671
+ margin-left: 315px; /* Width of the sidebar */
672
+ flex: 1;
673
+ overflow-y: auto;
674
+ transition: margin-left 0.3s ease;
675
+ }
676
+ .main-content.collapsed {
677
+ margin-left: 0;
678
+ }
679
+ @media (max-width: 767px) {
680
+ .sidebar {
681
+ display: none !important;
682
+ }
683
+ .main-content {
684
+ margin-left: 0;
685
+ }
662
686
  }</style>
@@ -603,6 +603,30 @@ const textAligns = {
603
603
  :global(.bg-dark) {
604
604
  background-color: #05445E !important;
605
605
  }
606
+ .sidebar {
607
+ position: fixed;
608
+ top: 80px; /* Height of the navbar */
609
+ bottom: 0;
610
+ width: 315px;
611
+ transition: transform 0.3s ease;
612
+ }
613
+ .main-content {
614
+ margin-left: 315px; /* Width of the sidebar */
615
+ flex: 1;
616
+ overflow-y: auto;
617
+ transition: margin-left 0.3s ease;
618
+ }
619
+ .main-content.collapsed {
620
+ margin-left: 0;
621
+ }
622
+ @media (max-width: 767px) {
623
+ .sidebar {
624
+ display: none !important;
625
+ }
626
+ .main-content {
627
+ margin-left: 0;
628
+ }
629
+ }
606
630
  .label {
607
631
  color: #ffffff;
608
632
  font-size: 16px;
@@ -790,4 +790,29 @@
790
790
 
791
791
  :global(.bg-dark) {
792
792
  background-color: $bg-dark !important;
793
- }
793
+ }
794
+
795
+ .sidebar {
796
+ position: fixed;
797
+ top: 80px; /* Height of the navbar */
798
+ bottom: 0;
799
+ width: 315px;
800
+ transition: transform 0.3s ease;
801
+ }
802
+ .main-content {
803
+ margin-left: 315px; /* Width of the sidebar */
804
+ flex: 1;
805
+ overflow-y: auto;
806
+ transition: margin-left 0.3s ease;
807
+ }
808
+ .main-content.collapsed {
809
+ margin-left: 0;
810
+ }
811
+ @media (max-width: 767px) {
812
+ .sidebar {
813
+ display: none !important;
814
+ }
815
+ .main-content {
816
+ margin-left: 0;
817
+ }
818
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",