@enki-tek/fms-web-components 0.1.5 → 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.
- package/components/Accordion/Accordion.svelte +4 -2
- package/components/Accordion/AccordionItem.svelte +4 -2
- package/components/Badge/Badge.svelte +4 -2
- package/components/Breadcrumb/Breadcrumb.svelte +4 -2
- package/components/Button/Button.svelte +4 -2
- package/components/CardIcon/CardIcon.svelte +4 -2
- package/components/CardIcon/CardiconBody.svelte +4 -2
- package/components/CardIcon/CardiconSubtitle.svelte +4 -2
- package/components/CardIcon/CardiconTitle.svelte +4 -2
- package/components/CheckBox/Checkbox.svelte +4 -2
- package/components/Dropdown/Dropdown.svelte +4 -2
- package/components/Dropdown/DropdownItem.svelte +4 -2
- package/components/EnkiSidbar/EnkiSidebar.svelte +4 -2
- package/components/EnkiSidbar/NavIcon.svelte +4 -2
- package/components/EnkiSidbar/NavItem.svelte +4 -2
- package/components/EnkiSidbar/NavLink.svelte +4 -2
- package/components/Header/Brand.svelte +5 -3
- package/components/Header/Header.scss +1 -1
- package/components/Header/Header.svelte +5 -3
- package/components/Header/HeaderItem.svelte +5 -3
- package/components/Header/UserAvatar.svelte +5 -3
- package/components/Layout/Content.svelte +8 -4
- package/components/Layout/Page.svelte +6 -5
- package/components/ModalWindow/Modal.svelte +4 -2
- package/components/ModalWindow/ModalBody.svelte +4 -2
- package/components/ModalWindow/ModalFooter.svelte +4 -2
- package/components/ModalWindow/ModalHeader.svelte +4 -2
- package/components/NotFound/NotFound.svelte +4 -2
- package/components/Pagination/Pagination.svelte +4 -2
- package/components/RadioButton/RadioButton.svelte +4 -2
- package/components/Sidebar/SideBarMenu.svelte +2 -2
- package/components/Sidebar/Sidebar.svelte +4 -2
- package/components/StatusCard/StatusCard.scss +2 -2
- package/components/StatusCard/StatusCard.svelte +11 -10
- package/components/StatusCard/StatusCardBody.svelte +2 -2
- package/components/StatusCard/StatusCardTitle.svelte +2 -2
- package/components/Switches/Switch.svelte +4 -2
- package/components/Tab/Tab.svelte +4 -2
- package/components/TextField/TextField.svelte +4 -2
- package/components/Toast/Toast.svelte +4 -2
- package/components/Tooltip/Tooltip.svelte +4 -2
- package/components/WidgetCard/Card.scss +2 -12
- package/components/WidgetCard/SensorStatusCard.svelte +2 -12
- package/components/WidgetCard/StateCard.svelte +2 -12
- package/components/WidgetCard/WidgetCard.svelte +46 -45
- package/components/common.scss +18 -12
- package/package.json +1 -1
@@ -589,13 +589,15 @@ export let stayOpen = true;
|
|
589
589
|
}
|
590
590
|
.sidebar {
|
591
591
|
position: fixed;
|
592
|
-
top:
|
592
|
+
top: 73px;
|
593
|
+
/* Height of the navbar */
|
593
594
|
bottom: 0;
|
594
595
|
width: 315px;
|
595
596
|
transition: transform 0.3s ease;
|
596
597
|
}
|
597
598
|
.main-content {
|
598
|
-
margin-left: 315px;
|
599
|
+
margin-left: 315px;
|
600
|
+
/* Width of the sidebar */
|
599
601
|
flex: 1;
|
600
602
|
overflow-y: auto;
|
601
603
|
transition: margin-left 0.3s ease;
|
@@ -590,13 +590,15 @@ export let header;
|
|
590
590
|
}
|
591
591
|
.sidebar {
|
592
592
|
position: fixed;
|
593
|
-
top:
|
593
|
+
top: 73px;
|
594
|
+
/* Height of the navbar */
|
594
595
|
bottom: 0;
|
595
596
|
width: 315px;
|
596
597
|
transition: transform 0.3s ease;
|
597
598
|
}
|
598
599
|
.main-content {
|
599
|
-
margin-left: 315px;
|
600
|
+
margin-left: 315px;
|
601
|
+
/* Width of the sidebar */
|
600
602
|
flex: 1;
|
601
603
|
overflow-y: auto;
|
602
604
|
transition: margin-left 0.3s ease;
|
@@ -595,13 +595,15 @@ if (badgeConfig.hasOwnProperty(config)) {
|
|
595
595
|
}
|
596
596
|
.sidebar {
|
597
597
|
position: fixed;
|
598
|
-
top:
|
598
|
+
top: 73px;
|
599
|
+
/* Height of the navbar */
|
599
600
|
bottom: 0;
|
600
601
|
width: 315px;
|
601
602
|
transition: transform 0.3s ease;
|
602
603
|
}
|
603
604
|
.main-content {
|
604
|
-
margin-left: 315px;
|
605
|
+
margin-left: 315px;
|
606
|
+
/* Width of the sidebar */
|
605
607
|
flex: 1;
|
606
608
|
overflow-y: auto;
|
607
609
|
transition: margin-left 0.3s ease;
|
@@ -605,13 +605,15 @@ let length = newBreadcrumbs.length;
|
|
605
605
|
}
|
606
606
|
.sidebar {
|
607
607
|
position: fixed;
|
608
|
-
top:
|
608
|
+
top: 73px;
|
609
|
+
/* Height of the navbar */
|
609
610
|
bottom: 0;
|
610
611
|
width: 315px;
|
611
612
|
transition: transform 0.3s ease;
|
612
613
|
}
|
613
614
|
.main-content {
|
614
|
-
margin-left: 315px;
|
615
|
+
margin-left: 315px;
|
616
|
+
/* Width of the sidebar */
|
615
617
|
flex: 1;
|
616
618
|
overflow-y: auto;
|
617
619
|
transition: margin-left 0.3s ease;
|
@@ -1341,13 +1341,15 @@
|
|
1341
1341
|
}
|
1342
1342
|
.sidebar {
|
1343
1343
|
position: fixed;
|
1344
|
-
top:
|
1344
|
+
top: 73px;
|
1345
|
+
/* Height of the navbar */
|
1345
1346
|
bottom: 0;
|
1346
1347
|
width: 315px;
|
1347
1348
|
transition: transform 0.3s ease;
|
1348
1349
|
}
|
1349
1350
|
.main-content {
|
1350
|
-
margin-left: 315px;
|
1351
|
+
margin-left: 315px;
|
1352
|
+
/* Width of the sidebar */
|
1351
1353
|
flex: 1;
|
1352
1354
|
overflow-y: auto;
|
1353
1355
|
transition: margin-left 0.3s ease;
|
@@ -672,13 +672,15 @@ if (titleConfig.includes(titleLocation)) {
|
|
672
672
|
}
|
673
673
|
.sidebar {
|
674
674
|
position: fixed;
|
675
|
-
top:
|
675
|
+
top: 73px;
|
676
|
+
/* Height of the navbar */
|
676
677
|
bottom: 0;
|
677
678
|
width: 315px;
|
678
679
|
transition: transform 0.3s ease;
|
679
680
|
}
|
680
681
|
.main-content {
|
681
|
-
margin-left: 315px;
|
682
|
+
margin-left: 315px;
|
683
|
+
/* Width of the sidebar */
|
682
684
|
flex: 1;
|
683
685
|
overflow-y: auto;
|
684
686
|
transition: margin-left 0.3s ease;
|
@@ -667,13 +667,15 @@
|
|
667
667
|
}
|
668
668
|
.sidebar {
|
669
669
|
position: fixed;
|
670
|
-
top:
|
670
|
+
top: 73px;
|
671
|
+
/* Height of the navbar */
|
671
672
|
bottom: 0;
|
672
673
|
width: 315px;
|
673
674
|
transition: transform 0.3s ease;
|
674
675
|
}
|
675
676
|
.main-content {
|
676
|
-
margin-left: 315px;
|
677
|
+
margin-left: 315px;
|
678
|
+
/* Width of the sidebar */
|
677
679
|
flex: 1;
|
678
680
|
overflow-y: auto;
|
679
681
|
transition: margin-left 0.3s ease;
|
@@ -676,13 +676,15 @@
|
|
676
676
|
}
|
677
677
|
.sidebar {
|
678
678
|
position: fixed;
|
679
|
-
top:
|
679
|
+
top: 73px;
|
680
|
+
/* Height of the navbar */
|
680
681
|
bottom: 0;
|
681
682
|
width: 315px;
|
682
683
|
transition: transform 0.3s ease;
|
683
684
|
}
|
684
685
|
.main-content {
|
685
|
-
margin-left: 315px;
|
686
|
+
margin-left: 315px;
|
687
|
+
/* Width of the sidebar */
|
686
688
|
flex: 1;
|
687
689
|
overflow-y: auto;
|
688
690
|
transition: margin-left 0.3s ease;
|
@@ -676,13 +676,15 @@
|
|
676
676
|
}
|
677
677
|
.sidebar {
|
678
678
|
position: fixed;
|
679
|
-
top:
|
679
|
+
top: 73px;
|
680
|
+
/* Height of the navbar */
|
680
681
|
bottom: 0;
|
681
682
|
width: 315px;
|
682
683
|
transition: transform 0.3s ease;
|
683
684
|
}
|
684
685
|
.main-content {
|
685
|
-
margin-left: 315px;
|
686
|
+
margin-left: 315px;
|
687
|
+
/* Width of the sidebar */
|
686
688
|
flex: 1;
|
687
689
|
overflow-y: auto;
|
688
690
|
transition: margin-left 0.3s ease;
|
@@ -625,13 +625,15 @@
|
|
625
625
|
}
|
626
626
|
.sidebar {
|
627
627
|
position: fixed;
|
628
|
-
top:
|
628
|
+
top: 73px;
|
629
|
+
/* Height of the navbar */
|
629
630
|
bottom: 0;
|
630
631
|
width: 315px;
|
631
632
|
transition: transform 0.3s ease;
|
632
633
|
}
|
633
634
|
.main-content {
|
634
|
-
margin-left: 315px;
|
635
|
+
margin-left: 315px;
|
636
|
+
/* Width of the sidebar */
|
635
637
|
flex: 1;
|
636
638
|
overflow-y: auto;
|
637
639
|
transition: margin-left 0.3s ease;
|
@@ -650,13 +650,15 @@ export let title = "Dropdowns";
|
|
650
650
|
}
|
651
651
|
.sidebar {
|
652
652
|
position: fixed;
|
653
|
-
top:
|
653
|
+
top: 73px;
|
654
|
+
/* Height of the navbar */
|
654
655
|
bottom: 0;
|
655
656
|
width: 315px;
|
656
657
|
transition: transform 0.3s ease;
|
657
658
|
}
|
658
659
|
.main-content {
|
659
|
-
margin-left: 315px;
|
660
|
+
margin-left: 315px;
|
661
|
+
/* Width of the sidebar */
|
660
662
|
flex: 1;
|
661
663
|
overflow-y: auto;
|
662
664
|
transition: margin-left 0.3s ease;
|
@@ -643,13 +643,15 @@ export let disabled = false;
|
|
643
643
|
}
|
644
644
|
.sidebar {
|
645
645
|
position: fixed;
|
646
|
-
top:
|
646
|
+
top: 73px;
|
647
|
+
/* Height of the navbar */
|
647
648
|
bottom: 0;
|
648
649
|
width: 315px;
|
649
650
|
transition: transform 0.3s ease;
|
650
651
|
}
|
651
652
|
.main-content {
|
652
|
-
margin-left: 315px;
|
653
|
+
margin-left: 315px;
|
654
|
+
/* Width of the sidebar */
|
653
655
|
flex: 1;
|
654
656
|
overflow-y: auto;
|
655
657
|
transition: margin-left 0.3s ease;
|
@@ -724,13 +724,15 @@ li.icons:hover {
|
|
724
724
|
}
|
725
725
|
.sidebar {
|
726
726
|
position: fixed;
|
727
|
-
top:
|
727
|
+
top: 73px;
|
728
|
+
/* Height of the navbar */
|
728
729
|
bottom: 0;
|
729
730
|
width: 315px;
|
730
731
|
transition: transform 0.3s ease;
|
731
732
|
}
|
732
733
|
.main-content {
|
733
|
-
margin-left: 315px;
|
734
|
+
margin-left: 315px;
|
735
|
+
/* Width of the sidebar */
|
734
736
|
flex: 1;
|
735
737
|
overflow-y: auto;
|
736
738
|
transition: margin-left 0.3s ease;
|
@@ -667,13 +667,15 @@ li.icons:hover {
|
|
667
667
|
}
|
668
668
|
.sidebar {
|
669
669
|
position: fixed;
|
670
|
-
top:
|
670
|
+
top: 73px;
|
671
|
+
/* Height of the navbar */
|
671
672
|
bottom: 0;
|
672
673
|
width: 315px;
|
673
674
|
transition: transform 0.3s ease;
|
674
675
|
}
|
675
676
|
.main-content {
|
676
|
-
margin-left: 315px;
|
677
|
+
margin-left: 315px;
|
678
|
+
/* Width of the sidebar */
|
677
679
|
flex: 1;
|
678
680
|
overflow-y: auto;
|
679
681
|
transition: margin-left 0.3s ease;
|
@@ -665,13 +665,15 @@ li.icons:hover {
|
|
665
665
|
}
|
666
666
|
.sidebar {
|
667
667
|
position: fixed;
|
668
|
-
top:
|
668
|
+
top: 73px;
|
669
|
+
/* Height of the navbar */
|
669
670
|
bottom: 0;
|
670
671
|
width: 315px;
|
671
672
|
transition: transform 0.3s ease;
|
672
673
|
}
|
673
674
|
.main-content {
|
674
|
-
margin-left: 315px;
|
675
|
+
margin-left: 315px;
|
676
|
+
/* Width of the sidebar */
|
675
677
|
flex: 1;
|
676
678
|
overflow-y: auto;
|
677
679
|
transition: margin-left 0.3s ease;
|
@@ -674,13 +674,15 @@ li.icons:hover {
|
|
674
674
|
}
|
675
675
|
.sidebar {
|
676
676
|
position: fixed;
|
677
|
-
top:
|
677
|
+
top: 73px;
|
678
|
+
/* Height of the navbar */
|
678
679
|
bottom: 0;
|
679
680
|
width: 315px;
|
680
681
|
transition: transform 0.3s ease;
|
681
682
|
}
|
682
683
|
.main-content {
|
683
|
-
margin-left: 315px;
|
684
|
+
margin-left: 315px;
|
685
|
+
/* Width of the sidebar */
|
684
686
|
flex: 1;
|
685
687
|
overflow-y: auto;
|
686
688
|
transition: margin-left 0.3s ease;
|
@@ -72,7 +72,7 @@
|
|
72
72
|
display: flex;
|
73
73
|
flex-direction: column;
|
74
74
|
align-items: flex-end;
|
75
|
-
color: #
|
75
|
+
color: #ffffff;
|
76
76
|
}
|
77
77
|
:global(.userProfile img) {
|
78
78
|
width: 45px;
|
@@ -653,13 +653,15 @@
|
|
653
653
|
}
|
654
654
|
.sidebar {
|
655
655
|
position: fixed;
|
656
|
-
top:
|
656
|
+
top: 73px;
|
657
|
+
/* Height of the navbar */
|
657
658
|
bottom: 0;
|
658
659
|
width: 315px;
|
659
660
|
transition: transform 0.3s ease;
|
660
661
|
}
|
661
662
|
.main-content {
|
662
|
-
margin-left: 315px;
|
663
|
+
margin-left: 315px;
|
664
|
+
/* Width of the sidebar */
|
663
665
|
flex: 1;
|
664
666
|
overflow-y: auto;
|
665
667
|
transition: margin-left 0.3s ease;
|
@@ -71,7 +71,7 @@
|
|
71
71
|
display: flex;
|
72
72
|
flex-direction: column;
|
73
73
|
align-items: flex-end;
|
74
|
-
color: #
|
74
|
+
color: #ffffff;
|
75
75
|
}
|
76
76
|
:global(.userProfile img) {
|
77
77
|
width: 45px;
|
@@ -652,13 +652,15 @@
|
|
652
652
|
}
|
653
653
|
.sidebar {
|
654
654
|
position: fixed;
|
655
|
-
top:
|
655
|
+
top: 73px;
|
656
|
+
/* Height of the navbar */
|
656
657
|
bottom: 0;
|
657
658
|
width: 315px;
|
658
659
|
transition: transform 0.3s ease;
|
659
660
|
}
|
660
661
|
.main-content {
|
661
|
-
margin-left: 315px;
|
662
|
+
margin-left: 315px;
|
663
|
+
/* Width of the sidebar */
|
662
664
|
flex: 1;
|
663
665
|
overflow-y: auto;
|
664
666
|
transition: margin-left 0.3s ease;
|
@@ -73,7 +73,7 @@
|
|
73
73
|
display: flex;
|
74
74
|
flex-direction: column;
|
75
75
|
align-items: flex-end;
|
76
|
-
color: #
|
76
|
+
color: #ffffff;
|
77
77
|
}
|
78
78
|
:global(.userProfile img) {
|
79
79
|
width: 45px;
|
@@ -654,13 +654,15 @@
|
|
654
654
|
}
|
655
655
|
.sidebar {
|
656
656
|
position: fixed;
|
657
|
-
top:
|
657
|
+
top: 73px;
|
658
|
+
/* Height of the navbar */
|
658
659
|
bottom: 0;
|
659
660
|
width: 315px;
|
660
661
|
transition: transform 0.3s ease;
|
661
662
|
}
|
662
663
|
.main-content {
|
663
|
-
margin-left: 315px;
|
664
|
+
margin-left: 315px;
|
665
|
+
/* Width of the sidebar */
|
664
666
|
flex: 1;
|
665
667
|
overflow-y: auto;
|
666
668
|
transition: margin-left 0.3s ease;
|
@@ -71,7 +71,7 @@
|
|
71
71
|
display: flex;
|
72
72
|
flex-direction: column;
|
73
73
|
align-items: flex-end;
|
74
|
-
color: #
|
74
|
+
color: #ffffff;
|
75
75
|
}
|
76
76
|
:global(.userProfile img) {
|
77
77
|
width: 45px;
|
@@ -652,13 +652,15 @@
|
|
652
652
|
}
|
653
653
|
.sidebar {
|
654
654
|
position: fixed;
|
655
|
-
top:
|
655
|
+
top: 73px;
|
656
|
+
/* Height of the navbar */
|
656
657
|
bottom: 0;
|
657
658
|
width: 315px;
|
658
659
|
transition: transform 0.3s ease;
|
659
660
|
}
|
660
661
|
.main-content {
|
661
|
-
margin-left: 315px;
|
662
|
+
margin-left: 315px;
|
663
|
+
/* Width of the sidebar */
|
662
664
|
flex: 1;
|
663
665
|
overflow-y: auto;
|
664
666
|
transition: margin-left 0.3s ease;
|
@@ -1,9 +1,13 @@
|
|
1
|
-
<
|
2
|
-
</script>
|
3
|
-
|
4
|
-
<div class="container-fluid" style="margin-top:80px;background-color: #EBECEF;">
|
1
|
+
<div class="container-fluid enki-main-content">
|
5
2
|
<div class="row">
|
6
3
|
<slot name="sidebar-menu" />
|
7
4
|
<slot />
|
8
5
|
</div>
|
9
6
|
</div>
|
7
|
+
|
8
|
+
<style>
|
9
|
+
.enki-main-content {
|
10
|
+
margin-top:77px;
|
11
|
+
background-color: #D4F1F4;
|
12
|
+
}
|
13
|
+
</style>
|
@@ -2,11 +2,12 @@
|
|
2
2
|
import { Col, Row } from 'sveltestrap';
|
3
3
|
</script>
|
4
4
|
|
5
|
-
<
|
5
|
+
<div class="main-content">
|
6
6
|
<div
|
7
|
-
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3
|
7
|
+
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 mb-3
|
8
|
+
"
|
8
9
|
>
|
9
|
-
<Row class="
|
10
|
+
<Row class="d-flex flex-lg-row flex-column px-3" style="width:100%">
|
10
11
|
<Col md="4">
|
11
12
|
<header>
|
12
13
|
<div class="d-flex flex-row justify-content-start mt-2 title">
|
@@ -23,12 +24,12 @@
|
|
23
24
|
</Row>
|
24
25
|
</div>
|
25
26
|
<div>
|
26
|
-
<slot name="statuscard"/>
|
27
|
+
<slot name="statuscard" />
|
27
28
|
</div>
|
28
29
|
<div>
|
29
30
|
<slot />
|
30
31
|
</div>
|
31
|
-
</
|
32
|
+
</div>
|
32
33
|
|
33
34
|
<style>
|
34
35
|
.screen-size-fix {
|
@@ -591,13 +591,15 @@
|
|
591
591
|
}
|
592
592
|
.sidebar {
|
593
593
|
position: fixed;
|
594
|
-
top:
|
594
|
+
top: 73px;
|
595
|
+
/* Height of the navbar */
|
595
596
|
bottom: 0;
|
596
597
|
width: 315px;
|
597
598
|
transition: transform 0.3s ease;
|
598
599
|
}
|
599
600
|
.main-content {
|
600
|
-
margin-left: 315px;
|
601
|
+
margin-left: 315px;
|
602
|
+
/* Width of the sidebar */
|
601
603
|
flex: 1;
|
602
604
|
overflow-y: auto;
|
603
605
|
transition: margin-left 0.3s ease;
|
@@ -589,13 +589,15 @@
|
|
589
589
|
}
|
590
590
|
.sidebar {
|
591
591
|
position: fixed;
|
592
|
-
top:
|
592
|
+
top: 73px;
|
593
|
+
/* Height of the navbar */
|
593
594
|
bottom: 0;
|
594
595
|
width: 315px;
|
595
596
|
transition: transform 0.3s ease;
|
596
597
|
}
|
597
598
|
.main-content {
|
598
|
-
margin-left: 315px;
|
599
|
+
margin-left: 315px;
|
600
|
+
/* Width of the sidebar */
|
599
601
|
flex: 1;
|
600
602
|
overflow-y: auto;
|
601
603
|
transition: margin-left 0.3s ease;
|
@@ -587,13 +587,15 @@
|
|
587
587
|
}
|
588
588
|
.sidebar {
|
589
589
|
position: fixed;
|
590
|
-
top:
|
590
|
+
top: 73px;
|
591
|
+
/* Height of the navbar */
|
591
592
|
bottom: 0;
|
592
593
|
width: 315px;
|
593
594
|
transition: transform 0.3s ease;
|
594
595
|
}
|
595
596
|
.main-content {
|
596
|
-
margin-left: 315px;
|
597
|
+
margin-left: 315px;
|
598
|
+
/* Width of the sidebar */
|
597
599
|
flex: 1;
|
598
600
|
overflow-y: auto;
|
599
601
|
transition: margin-left 0.3s ease;
|
@@ -592,13 +592,15 @@
|
|
592
592
|
}
|
593
593
|
.sidebar {
|
594
594
|
position: fixed;
|
595
|
-
top:
|
595
|
+
top: 73px;
|
596
|
+
/* Height of the navbar */
|
596
597
|
bottom: 0;
|
597
598
|
width: 315px;
|
598
599
|
transition: transform 0.3s ease;
|
599
600
|
}
|
600
601
|
.main-content {
|
601
|
-
margin-left: 315px;
|
602
|
+
margin-left: 315px;
|
603
|
+
/* Width of the sidebar */
|
602
604
|
flex: 1;
|
603
605
|
overflow-y: auto;
|
604
606
|
transition: margin-left 0.3s ease;
|
@@ -627,13 +627,15 @@
|
|
627
627
|
}
|
628
628
|
.sidebar {
|
629
629
|
position: fixed;
|
630
|
-
top:
|
630
|
+
top: 73px;
|
631
|
+
/* Height of the navbar */
|
631
632
|
bottom: 0;
|
632
633
|
width: 315px;
|
633
634
|
transition: transform 0.3s ease;
|
634
635
|
}
|
635
636
|
.main-content {
|
636
|
-
margin-left: 315px;
|
637
|
+
margin-left: 315px;
|
638
|
+
/* Width of the sidebar */
|
637
639
|
flex: 1;
|
638
640
|
overflow-y: auto;
|
639
641
|
transition: margin-left 0.3s ease;
|
@@ -724,13 +724,15 @@ function nextPage() {
|
|
724
724
|
}
|
725
725
|
.sidebar {
|
726
726
|
position: fixed;
|
727
|
-
top:
|
727
|
+
top: 73px;
|
728
|
+
/* Height of the navbar */
|
728
729
|
bottom: 0;
|
729
730
|
width: 315px;
|
730
731
|
transition: transform 0.3s ease;
|
731
732
|
}
|
732
733
|
.main-content {
|
733
|
-
margin-left: 315px;
|
734
|
+
margin-left: 315px;
|
735
|
+
/* Width of the sidebar */
|
734
736
|
flex: 1;
|
735
737
|
overflow-y: auto;
|
736
738
|
transition: margin-left 0.3s ease;
|
@@ -607,13 +607,15 @@
|
|
607
607
|
}
|
608
608
|
.sidebar {
|
609
609
|
position: fixed;
|
610
|
-
top:
|
610
|
+
top: 73px;
|
611
|
+
/* Height of the navbar */
|
611
612
|
bottom: 0;
|
612
613
|
width: 315px;
|
613
614
|
transition: transform 0.3s ease;
|
614
615
|
}
|
615
616
|
.main-content {
|
616
|
-
margin-left: 315px;
|
617
|
+
margin-left: 315px;
|
618
|
+
/* Width of the sidebar */
|
617
619
|
flex: 1;
|
618
620
|
overflow-y: auto;
|
619
621
|
transition: margin-left 0.3s ease;
|
@@ -5,9 +5,9 @@
|
|
5
5
|
export let companyName = 'EnkiTek';
|
6
6
|
</script>
|
7
7
|
|
8
|
-
<div class="sidebar">
|
8
|
+
<div class="sidebar pe-0" >
|
9
9
|
<div
|
10
|
-
class="offcanvas-md offcanvas-end bg-
|
10
|
+
class="offcanvas-md offcanvas-end bg-white rounded"
|
11
11
|
tabindex="-1"
|
12
12
|
id="sidebarMenu"
|
13
13
|
aria-labelledby="sidebarMenuLabel"
|
@@ -749,13 +749,15 @@ ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
|
749
749
|
}
|
750
750
|
.sidebar {
|
751
751
|
position: fixed;
|
752
|
-
top:
|
752
|
+
top: 73px;
|
753
|
+
/* Height of the navbar */
|
753
754
|
bottom: 0;
|
754
755
|
width: 315px;
|
755
756
|
transition: transform 0.3s ease;
|
756
757
|
}
|
757
758
|
.main-content {
|
758
|
-
margin-left: 315px;
|
759
|
+
margin-left: 315px;
|
760
|
+
/* Width of the sidebar */
|
759
761
|
flex: 1;
|
760
762
|
overflow-y: auto;
|
761
763
|
transition: margin-left 0.3s ease;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@import './../variable.scss';
|
2
2
|
|
3
3
|
.card {
|
4
|
-
|
4
|
+
border-color: transparent;
|
5
|
+
background-color: $white;
|
5
6
|
padding: $rem;
|
6
7
|
border-radius: calc((3*$rem)/4);
|
7
8
|
font-family: $bodyFonts;
|
8
|
-
min-width: 22rem;
|
9
9
|
min-height:14rem;
|
10
10
|
}
|
11
11
|
.title{
|
@@ -1,20 +1,20 @@
|
|
1
1
|
<script>
|
2
|
-
export let className = "";
|
3
|
-
</script>
|
4
|
-
|
5
|
-
<div class="
|
6
|
-
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
2
|
+
export let className = "";
|
3
|
+
</script>
|
4
|
+
<div class="col-12 col-md-6 col-sm-6 col-lg-3">
|
5
|
+
<div class="m-2 card {className}">
|
6
|
+
<slot />
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
10
10
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
11
11
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
12
12
|
.card {
|
13
|
-
|
13
|
+
border-color: transparent;
|
14
|
+
background-color: #ffffff;
|
14
15
|
padding: 1rem;
|
15
16
|
border-radius: 0.75rem;
|
16
17
|
font-family: Roboto;
|
17
|
-
min-width: 22rem;
|
18
18
|
min-height: 14rem;
|
19
19
|
}
|
20
20
|
.title {
|
@@ -40,3 +40,4 @@ export let className = "";
|
|
40
40
|
width: fit-content;
|
41
41
|
border-radius: 0.3333333333rem;
|
42
42
|
}</style>
|
43
|
+
|
@@ -25,11 +25,11 @@
|
|
25
25
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
26
26
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
27
27
|
.card {
|
28
|
-
|
28
|
+
border-color: transparent;
|
29
|
+
background-color: #ffffff;
|
29
30
|
padding: 1rem;
|
30
31
|
border-radius: 0.75rem;
|
31
32
|
font-family: Roboto;
|
32
|
-
min-width: 22rem;
|
33
33
|
min-height: 14rem;
|
34
34
|
}
|
35
35
|
.title {
|
@@ -15,11 +15,11 @@
|
|
15
15
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
16
16
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
17
17
|
.card {
|
18
|
-
|
18
|
+
border-color: transparent;
|
19
|
+
background-color: #ffffff;
|
19
20
|
padding: 1rem;
|
20
21
|
border-radius: 0.75rem;
|
21
22
|
font-family: Roboto;
|
22
|
-
min-width: 22rem;
|
23
23
|
min-height: 14rem;
|
24
24
|
}
|
25
25
|
.title {
|
@@ -598,13 +598,15 @@
|
|
598
598
|
}
|
599
599
|
.sidebar {
|
600
600
|
position: fixed;
|
601
|
-
top:
|
601
|
+
top: 73px;
|
602
|
+
/* Height of the navbar */
|
602
603
|
bottom: 0;
|
603
604
|
width: 315px;
|
604
605
|
transition: transform 0.3s ease;
|
605
606
|
}
|
606
607
|
.main-content {
|
607
|
-
margin-left: 315px;
|
608
|
+
margin-left: 315px;
|
609
|
+
/* Width of the sidebar */
|
608
610
|
flex: 1;
|
609
611
|
overflow-y: auto;
|
610
612
|
transition: margin-left 0.3s ease;
|
@@ -618,13 +618,15 @@ export let tabs = [
|
|
618
618
|
}
|
619
619
|
.sidebar {
|
620
620
|
position: fixed;
|
621
|
-
top:
|
621
|
+
top: 73px;
|
622
|
+
/* Height of the navbar */
|
622
623
|
bottom: 0;
|
623
624
|
width: 315px;
|
624
625
|
transition: transform 0.3s ease;
|
625
626
|
}
|
626
627
|
.main-content {
|
627
|
-
margin-left: 315px;
|
628
|
+
margin-left: 315px;
|
629
|
+
/* Width of the sidebar */
|
628
630
|
flex: 1;
|
629
631
|
overflow-y: auto;
|
630
632
|
transition: margin-left 0.3s ease;
|
@@ -626,13 +626,15 @@
|
|
626
626
|
}
|
627
627
|
.sidebar {
|
628
628
|
position: fixed;
|
629
|
-
top:
|
629
|
+
top: 73px;
|
630
|
+
/* Height of the navbar */
|
630
631
|
bottom: 0;
|
631
632
|
width: 315px;
|
632
633
|
transition: transform 0.3s ease;
|
633
634
|
}
|
634
635
|
.main-content {
|
635
|
-
margin-left: 315px;
|
636
|
+
margin-left: 315px;
|
637
|
+
/* Width of the sidebar */
|
636
638
|
flex: 1;
|
637
639
|
overflow-y: auto;
|
638
640
|
transition: margin-left 0.3s ease;
|
@@ -662,13 +662,15 @@
|
|
662
662
|
}
|
663
663
|
.sidebar {
|
664
664
|
position: fixed;
|
665
|
-
top:
|
665
|
+
top: 73px;
|
666
|
+
/* Height of the navbar */
|
666
667
|
bottom: 0;
|
667
668
|
width: 315px;
|
668
669
|
transition: transform 0.3s ease;
|
669
670
|
}
|
670
671
|
.main-content {
|
671
|
-
margin-left: 315px;
|
672
|
+
margin-left: 315px;
|
673
|
+
/* Width of the sidebar */
|
672
674
|
flex: 1;
|
673
675
|
overflow-y: auto;
|
674
676
|
transition: margin-left 0.3s ease;
|
@@ -605,13 +605,15 @@ const textAligns = {
|
|
605
605
|
}
|
606
606
|
.sidebar {
|
607
607
|
position: fixed;
|
608
|
-
top:
|
608
|
+
top: 73px;
|
609
|
+
/* Height of the navbar */
|
609
610
|
bottom: 0;
|
610
611
|
width: 315px;
|
611
612
|
transition: transform 0.3s ease;
|
612
613
|
}
|
613
614
|
.main-content {
|
614
|
-
margin-left: 315px;
|
615
|
+
margin-left: 315px;
|
616
|
+
/* Width of the sidebar */
|
615
617
|
flex: 1;
|
616
618
|
overflow-y: auto;
|
617
619
|
transition: margin-left 0.3s ease;
|
@@ -1,21 +1,11 @@
|
|
1
1
|
@import './../variable.scss';
|
2
2
|
.card {
|
3
3
|
font-family: $bodyFonts;
|
4
|
-
background-color:
|
5
|
-
border-radius: calc((3*$rem)/4);
|
6
|
-
padding: $rem;
|
7
|
-
border-color: transparent;
|
8
|
-
min-height: 354px;
|
9
|
-
min-width: 355px;
|
10
|
-
}
|
11
|
-
.doublecard{
|
12
|
-
font-family: $bodyFonts;
|
13
|
-
background-color: #f8f8f8;
|
4
|
+
background-color: $white;
|
14
5
|
border-radius: calc((3*$rem)/4);
|
15
6
|
padding: $rem;
|
16
7
|
border-color: transparent;
|
17
|
-
min-height:
|
18
|
-
min-width: 712px;
|
8
|
+
min-height: 22rem;
|
19
9
|
}
|
20
10
|
.state-card {
|
21
11
|
font-family: $bodyFonts;
|
@@ -30,21 +30,11 @@
|
|
30
30
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
31
31
|
.card {
|
32
32
|
font-family: Roboto;
|
33
|
-
background-color: #
|
34
|
-
border-radius: 0.75rem;
|
35
|
-
padding: 1rem;
|
36
|
-
border-color: transparent;
|
37
|
-
min-height: 354px;
|
38
|
-
min-width: 355px;
|
39
|
-
}
|
40
|
-
.doublecard {
|
41
|
-
font-family: Roboto;
|
42
|
-
background-color: #f8f8f8;
|
33
|
+
background-color: #ffffff;
|
43
34
|
border-radius: 0.75rem;
|
44
35
|
padding: 1rem;
|
45
36
|
border-color: transparent;
|
46
|
-
min-height:
|
47
|
-
min-width: 712px;
|
37
|
+
min-height: 22rem;
|
48
38
|
}
|
49
39
|
.state-card {
|
50
40
|
font-family: Roboto;
|
@@ -33,21 +33,11 @@
|
|
33
33
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
34
34
|
.card {
|
35
35
|
font-family: Roboto;
|
36
|
-
background-color: #
|
37
|
-
border-radius: 0.75rem;
|
38
|
-
padding: 1rem;
|
39
|
-
border-color: transparent;
|
40
|
-
min-height: 354px;
|
41
|
-
min-width: 355px;
|
42
|
-
}
|
43
|
-
.doublecard {
|
44
|
-
font-family: Roboto;
|
45
|
-
background-color: #f8f8f8;
|
36
|
+
background-color: #ffffff;
|
46
37
|
border-radius: 0.75rem;
|
47
38
|
padding: 1rem;
|
48
39
|
border-color: transparent;
|
49
|
-
min-height:
|
50
|
-
min-width: 712px;
|
40
|
+
min-height: 22rem;
|
51
41
|
}
|
52
42
|
.state-card {
|
53
43
|
font-family: Roboto;
|
@@ -5,68 +5,69 @@
|
|
5
5
|
export let resizable = false;
|
6
6
|
export let widthOnly = true;
|
7
7
|
export let resizeQuotient = 2;
|
8
|
-
export let cardLength =
|
8
|
+
export let cardLength = 3;
|
9
9
|
let maximized = false;
|
10
10
|
let element = null;
|
11
11
|
const toggleMaximize = () => {
|
12
12
|
maximized = !maximized;
|
13
|
-
if (
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
return;
|
20
|
-
}
|
21
|
-
element.style.width = element.getBoundingClientRect().width * resizeQuotient + 'px';
|
22
|
-
if (!widthOnly) {
|
23
|
-
element.style.height = element.getBoundingClientRect().height * resizeQuotient + 'px';
|
13
|
+
if (maximized) {
|
14
|
+
cardLength *= 2;
|
15
|
+
console.log(cardLength);
|
16
|
+
} else {
|
17
|
+
cardLength /= 2;
|
18
|
+
console.log(cardLength);
|
24
19
|
}
|
20
|
+
// if (!maximized) {
|
21
|
+
// element.style.width = element.getBoundingClientRect().width / resizeQuotient + 'px';
|
22
|
+
// if (!widthOnly) {
|
23
|
+
// element.style.height = element.getBoundingClientRect().height / resizeQuotient + 'px';
|
24
|
+
// }
|
25
|
+
|
26
|
+
// return;
|
27
|
+
// }
|
28
|
+
// element.style.width = element.getBoundingClientRect().width * resizeQuotient + 'px';
|
29
|
+
// if (!widthOnly) {
|
30
|
+
// element.style.height = element.getBoundingClientRect().height * resizeQuotient + 'px';
|
31
|
+
// }
|
25
32
|
};
|
26
33
|
</script>
|
27
34
|
|
28
|
-
|
29
|
-
<div class="
|
30
|
-
<
|
31
|
-
<
|
32
|
-
<
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<
|
38
|
-
>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
35
|
+
{#key cardLength}
|
36
|
+
<div class="col-12 col-md-{cardLength * 2} col-sm-{cardLength * 2} col-lg-{cardLength}">
|
37
|
+
<div bind:this={element}>
|
38
|
+
<div class="m-2 card">
|
39
|
+
<Row>
|
40
|
+
<Col>
|
41
|
+
<div class="title fw-normal">{title}</div>
|
42
|
+
</Col>
|
43
|
+
{#if resizable}
|
44
|
+
<Col>
|
45
|
+
<div class="float-end">
|
46
|
+
<i on:click={toggleMaximize} class="material-icons"
|
47
|
+
>{!maximized ? 'zoom_out_map' : 'zoom_in_map'}</i
|
48
|
+
>
|
49
|
+
</div>
|
50
|
+
</Col>
|
51
|
+
{/if}
|
52
|
+
</Row>
|
53
|
+
<Row>
|
54
|
+
<slot />
|
55
|
+
</Row>
|
56
|
+
</div>
|
57
|
+
</div>
|
47
58
|
</div>
|
48
|
-
|
59
|
+
{/key}
|
49
60
|
|
50
61
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
51
62
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
52
63
|
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
|
53
64
|
.card {
|
54
65
|
font-family: Roboto;
|
55
|
-
background-color: #
|
56
|
-
border-radius: 0.75rem;
|
57
|
-
padding: 1rem;
|
58
|
-
border-color: transparent;
|
59
|
-
min-height: 354px;
|
60
|
-
min-width: 355px;
|
61
|
-
}
|
62
|
-
.doublecard {
|
63
|
-
font-family: Roboto;
|
64
|
-
background-color: #f8f8f8;
|
66
|
+
background-color: #ffffff;
|
65
67
|
border-radius: 0.75rem;
|
66
68
|
padding: 1rem;
|
67
69
|
border-color: transparent;
|
68
|
-
min-height:
|
69
|
-
min-width: 712px;
|
70
|
+
min-height: 22rem;
|
70
71
|
}
|
71
72
|
.state-card {
|
72
73
|
font-family: Roboto;
|
@@ -149,4 +150,4 @@
|
|
149
150
|
color: #c9443a;
|
150
151
|
padding: 5px 10px;
|
151
152
|
border-radius: 5px;
|
152
|
-
}</style>
|
153
|
+
}</style>
|
package/components/common.scss
CHANGED
@@ -794,25 +794,31 @@
|
|
794
794
|
|
795
795
|
.sidebar {
|
796
796
|
position: fixed;
|
797
|
-
top:
|
797
|
+
top: 73px;
|
798
|
+
/* Height of the navbar */
|
798
799
|
bottom: 0;
|
799
800
|
width: 315px;
|
800
801
|
transition: transform 0.3s ease;
|
801
|
-
|
802
|
-
|
803
|
-
|
802
|
+
}
|
803
|
+
|
804
|
+
.main-content {
|
805
|
+
margin-left: 315px;
|
806
|
+
/* Width of the sidebar */
|
804
807
|
flex: 1;
|
805
808
|
overflow-y: auto;
|
806
809
|
transition: margin-left 0.3s ease;
|
807
|
-
|
808
|
-
|
810
|
+
}
|
811
|
+
|
812
|
+
.main-content.collapsed {
|
809
813
|
margin-left: 0;
|
810
|
-
|
811
|
-
|
814
|
+
}
|
815
|
+
|
816
|
+
@media (max-width: 767px) {
|
812
817
|
.sidebar {
|
813
|
-
|
818
|
+
display: none !important;
|
814
819
|
}
|
820
|
+
|
815
821
|
.main-content {
|
816
|
-
|
817
|
-
}
|
818
|
-
|
822
|
+
margin-left: 0;
|
823
|
+
}
|
824
|
+
}
|