@enki-tek/fms-web-components 0.0.89 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/Accordion/Accordion.svelte +3 -0
- package/components/Accordion/AccordionItem.svelte +3 -0
- package/components/Badge/Badge.svelte +3 -0
- package/components/Breadcrumb/Breadcrumb.svelte +3 -0
- package/components/Button/Button.svelte +3 -0
- package/components/CardIcon/CardIcon.svelte +3 -0
- package/components/CardIcon/CardiconBody.svelte +3 -0
- package/components/CardIcon/CardiconSubtitle.svelte +3 -0
- package/components/CardIcon/CardiconTitle.svelte +3 -0
- package/components/Charts/Barchart.svelte +74 -0
- package/components/Charts/Barchart.svelte.d.ts +23 -0
- package/components/Charts/DoughnutChart.svelte +73 -0
- package/components/Charts/DoughnutChart.svelte.d.ts +29 -0
- package/components/Charts/LineChart.svelte +62 -0
- package/components/Charts/LineChart.svelte.d.ts +23 -0
- package/components/Charts/PieChart.svelte +75 -0
- package/components/Charts/PieChart.svelte.d.ts +29 -0
- package/components/CheckBox/Checkbox.svelte +3 -0
- package/components/Dropdown/Dropdown.svelte +3 -0
- package/components/Dropdown/DropdownItem.svelte +3 -0
- package/components/EnkiSidbar/EnkiSidebar.svelte +3 -0
- package/components/EnkiSidbar/NavIcon.svelte +3 -0
- package/components/EnkiSidbar/NavItem.svelte +3 -0
- package/components/EnkiSidbar/NavLink.svelte +3 -0
- package/components/Header/Brand.svelte +25 -16
- package/components/Header/Header.scss +40 -34
- package/components/Header/Header.svelte +26 -20
- package/components/Header/Header.svelte.d.ts +6 -2
- package/components/Header/HeaderDropDownLink.svelte +11 -0
- package/components/Header/HeaderDropDownLink.svelte.d.ts +29 -0
- package/components/Header/HeaderDropDownLinkItem.svelte +9 -0
- package/components/Header/HeaderDropDownLinkItem.svelte.d.ts +31 -0
- package/components/Header/HeaderItem.svelte +9 -0
- package/components/Header/HeaderLink.svelte +9 -0
- package/components/Header/HeaderLink.svelte.d.ts +31 -0
- package/components/Header/HeaderLinks.svelte +9 -0
- package/components/Header/HeaderLinks.svelte.d.ts +27 -0
- package/components/Header/UserAvatar.svelte +12 -3
- package/components/Layout/Content.svelte +9 -0
- package/components/Layout/Content.svelte.d.ts +29 -0
- package/components/Layout/Footer.svelte +2 -0
- package/components/Layout/Layout.svelte +6 -0
- package/components/Layout/Layout.svelte.d.ts +27 -0
- package/components/Layout/Page.svelte +35 -9
- package/components/Layout/Page.svelte.d.ts +6 -2
- package/components/Layout/SortableGrid.svelte +28 -0
- package/components/Layout/SortableGrid.svelte.d.ts +27 -0
- package/components/ModalWindow/Modal.svelte +3 -0
- package/components/ModalWindow/ModalBody.svelte +3 -0
- package/components/ModalWindow/ModalFooter.svelte +3 -0
- package/components/ModalWindow/ModalHeader.svelte +3 -0
- package/components/NotFound/NotFound.svelte +3 -0
- package/components/Pagination/Pagination.svelte +3 -0
- package/components/RadioButton/RadioButton.svelte +3 -0
- package/components/Sidebar/MenuGroup.svelte +108 -0
- package/components/Sidebar/MenuGroup.svelte.d.ts +29 -0
- package/components/Sidebar/MenuItem.svelte +122 -0
- package/components/Sidebar/MenuItem.svelte.d.ts +35 -0
- package/components/Sidebar/SideBarMenu.svelte +148 -0
- package/components/Sidebar/SideBarMenu.svelte.d.ts +27 -0
- package/components/Sidebar/Sidebar.scss +29 -0
- package/components/Sidebar/Sidebar.svelte +29 -0
- package/components/StatusCard/StatusCard.scss +35 -0
- package/components/StatusCard/StatusCard.svelte +42 -0
- package/components/StatusCard/StatusCard.svelte.d.ts +27 -0
- package/components/StatusCard/StatusCardBody.svelte +57 -0
- package/components/StatusCard/StatusCardBody.svelte.d.ts +31 -0
- package/components/StatusCard/StatusCardTitle.svelte +47 -0
- package/components/StatusCard/StatusCardTitle.svelte.d.ts +29 -0
- package/components/Switches/Switch.svelte +3 -0
- package/components/Tab/Tab.svelte +3 -0
- package/components/TextField/TextField.svelte +3 -0
- package/components/Toast/Toast.scss +0 -2
- package/components/Toast/Toast.svelte +7 -6
- package/components/Tooltip/Tooltip.svelte +3 -0
- package/components/WidgetCard/Card.scss +108 -0
- package/components/WidgetCard/SensorStatusCard.svelte +130 -0
- package/components/WidgetCard/SensorStatusCard.svelte.d.ts +27 -0
- package/components/WidgetCard/StateCard.svelte +133 -0
- package/components/WidgetCard/StateCard.svelte.d.ts +29 -0
- package/components/WidgetCard/WidgetCard.svelte +152 -0
- package/components/WidgetCard/WidgetCard.svelte.d.ts +35 -0
- package/components/WidgetCard/WidgetCardBody.svelte +13 -0
- package/components/WidgetCard/WidgetCardBody.svelte.d.ts +27 -0
- package/components/common.scss +4 -0
- package/components/variable.scss +13 -3
- package/package.json +30 -2
@@ -0,0 +1,108 @@
|
|
1
|
+
<script>
|
2
|
+
export let className="";
|
3
|
+
export let bottomFlag=false;
|
4
|
+
</script>
|
5
|
+
|
6
|
+
<ul class="nav flex-column {className} {bottomFlag ? "bottom" : '' }">
|
7
|
+
<slot />
|
8
|
+
</ul>
|
9
|
+
|
10
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
11
|
+
@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");
|
12
|
+
@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");
|
13
|
+
ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
14
|
+
color: #ffffff;
|
15
|
+
}
|
16
|
+
.line-open, .line {
|
17
|
+
background: #ffffff;
|
18
|
+
}
|
19
|
+
:global(.offcanvas-body) {
|
20
|
+
background: #007FD8;
|
21
|
+
}
|
22
|
+
.nav .nav-item.active, .icon-sidebar-content ul .active {
|
23
|
+
border-left: 2px solid #ffffff;
|
24
|
+
background: #084298;
|
25
|
+
}
|
26
|
+
.nav-item, .icon-sidebar-content ul li {
|
27
|
+
display: flex;
|
28
|
+
padding: 15px 32px;
|
29
|
+
align-items: center;
|
30
|
+
gap: 8px;
|
31
|
+
}
|
32
|
+
.row {
|
33
|
+
--bs-gutter-x: 0rem;
|
34
|
+
}
|
35
|
+
.icon-sidebar {
|
36
|
+
position: fixed;
|
37
|
+
top: 0;
|
38
|
+
left: 0;
|
39
|
+
height: 100%;
|
40
|
+
width: 88px;
|
41
|
+
background: #007FD8;
|
42
|
+
}
|
43
|
+
.line {
|
44
|
+
width: 88px;
|
45
|
+
height: 1px;
|
46
|
+
}
|
47
|
+
.icon-btn {
|
48
|
+
padding: 20px 27px;
|
49
|
+
}
|
50
|
+
.icon-sidebar-content ul li {
|
51
|
+
padding: 16px 32px;
|
52
|
+
}
|
53
|
+
:global(.offcanvas-body) {
|
54
|
+
padding: 0rem 0rem;
|
55
|
+
}
|
56
|
+
.offcanvas-title {
|
57
|
+
color: #ffffff;
|
58
|
+
font-size: 28px;
|
59
|
+
}
|
60
|
+
.nav-item .item-name {
|
61
|
+
line-height: 22px;
|
62
|
+
}
|
63
|
+
.toggle-button {
|
64
|
+
background-color: transparent;
|
65
|
+
border: #ffffff;
|
66
|
+
cursor: pointer;
|
67
|
+
}
|
68
|
+
.material-icons {
|
69
|
+
font-size: 16px;
|
70
|
+
color: #ffffff;
|
71
|
+
}
|
72
|
+
:global(.offcanvas.offcanvas-start) {
|
73
|
+
width: 274px;
|
74
|
+
border-right: none;
|
75
|
+
}
|
76
|
+
.offcanvas-header {
|
77
|
+
padding: 1.5rem 1.5rem;
|
78
|
+
}
|
79
|
+
.line-open {
|
80
|
+
width: 274px;
|
81
|
+
height: 1px;
|
82
|
+
}
|
83
|
+
.title {
|
84
|
+
font-size: 16px;
|
85
|
+
}
|
86
|
+
.bottom {
|
87
|
+
bottom: 0;
|
88
|
+
position: absolute;
|
89
|
+
}
|
90
|
+
.box {
|
91
|
+
width: 100% !important;
|
92
|
+
height: 48px;
|
93
|
+
border-radius: 5px;
|
94
|
+
}
|
95
|
+
.box a {
|
96
|
+
color: #05445e;
|
97
|
+
}
|
98
|
+
@media (max-width: 768px) {
|
99
|
+
.box a {
|
100
|
+
color: #ffffff;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
.active {
|
104
|
+
background-color: #ddf9f6;
|
105
|
+
}
|
106
|
+
#sidebarMenu {
|
107
|
+
min-height: calc(100vh - 112px);
|
108
|
+
}</style>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} MenuGroupProps */
|
2
|
+
/** @typedef {typeof __propDef.events} MenuGroupEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} MenuGroupSlots */
|
4
|
+
export default class MenuGroup extends SvelteComponentTyped<{
|
5
|
+
className?: string | undefined;
|
6
|
+
bottomFlag?: boolean | undefined;
|
7
|
+
}, {
|
8
|
+
[evt: string]: CustomEvent<any>;
|
9
|
+
}, {
|
10
|
+
default: {};
|
11
|
+
}> {
|
12
|
+
}
|
13
|
+
export type MenuGroupProps = typeof __propDef.props;
|
14
|
+
export type MenuGroupEvents = typeof __propDef.events;
|
15
|
+
export type MenuGroupSlots = typeof __propDef.slots;
|
16
|
+
import { SvelteComponentTyped } from "svelte";
|
17
|
+
declare const __propDef: {
|
18
|
+
props: {
|
19
|
+
className?: string | undefined;
|
20
|
+
bottomFlag?: boolean | undefined;
|
21
|
+
};
|
22
|
+
events: {
|
23
|
+
[evt: string]: CustomEvent<any>;
|
24
|
+
};
|
25
|
+
slots: {
|
26
|
+
default: {};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export {};
|
@@ -0,0 +1,122 @@
|
|
1
|
+
<script>
|
2
|
+
import Icon from '../Icon/Icon.svelte';
|
3
|
+
|
4
|
+
export let link = '#';
|
5
|
+
export let icon = '';
|
6
|
+
export let active = false;
|
7
|
+
</script>
|
8
|
+
|
9
|
+
<li class="nav-item p-2 box {active ? "active" : ""}">
|
10
|
+
<a
|
11
|
+
class="nav-link d-flex align-items-center gap-2"
|
12
|
+
aria-current="page"
|
13
|
+
href={link}
|
14
|
+
on:click
|
15
|
+
>
|
16
|
+
{#if icon}
|
17
|
+
<Icon iconName={icon} />
|
18
|
+
{/if}
|
19
|
+
<slot />
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
|
23
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
24
|
+
@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");
|
25
|
+
@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");
|
26
|
+
ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
27
|
+
color: #ffffff;
|
28
|
+
}
|
29
|
+
.line-open, .line {
|
30
|
+
background: #ffffff;
|
31
|
+
}
|
32
|
+
:global(.offcanvas-body) {
|
33
|
+
background: #007FD8;
|
34
|
+
}
|
35
|
+
.nav .nav-item.active, .icon-sidebar-content ul .active {
|
36
|
+
border-left: 2px solid #ffffff;
|
37
|
+
background: #084298;
|
38
|
+
}
|
39
|
+
.nav-item, .icon-sidebar-content ul li {
|
40
|
+
display: flex;
|
41
|
+
padding: 15px 32px;
|
42
|
+
align-items: center;
|
43
|
+
gap: 8px;
|
44
|
+
}
|
45
|
+
.row {
|
46
|
+
--bs-gutter-x: 0rem;
|
47
|
+
}
|
48
|
+
.icon-sidebar {
|
49
|
+
position: fixed;
|
50
|
+
top: 0;
|
51
|
+
left: 0;
|
52
|
+
height: 100%;
|
53
|
+
width: 88px;
|
54
|
+
background: #007FD8;
|
55
|
+
}
|
56
|
+
.line {
|
57
|
+
width: 88px;
|
58
|
+
height: 1px;
|
59
|
+
}
|
60
|
+
.icon-btn {
|
61
|
+
padding: 20px 27px;
|
62
|
+
}
|
63
|
+
.icon-sidebar-content ul li {
|
64
|
+
padding: 16px 32px;
|
65
|
+
}
|
66
|
+
:global(.offcanvas-body) {
|
67
|
+
padding: 0rem 0rem;
|
68
|
+
}
|
69
|
+
.offcanvas-title {
|
70
|
+
color: #ffffff;
|
71
|
+
font-size: 28px;
|
72
|
+
}
|
73
|
+
.nav-item .item-name {
|
74
|
+
line-height: 22px;
|
75
|
+
}
|
76
|
+
.toggle-button {
|
77
|
+
background-color: transparent;
|
78
|
+
border: #ffffff;
|
79
|
+
cursor: pointer;
|
80
|
+
}
|
81
|
+
.material-icons {
|
82
|
+
font-size: 16px;
|
83
|
+
color: #ffffff;
|
84
|
+
}
|
85
|
+
:global(.offcanvas.offcanvas-start) {
|
86
|
+
width: 274px;
|
87
|
+
border-right: none;
|
88
|
+
}
|
89
|
+
.offcanvas-header {
|
90
|
+
padding: 1.5rem 1.5rem;
|
91
|
+
}
|
92
|
+
.line-open {
|
93
|
+
width: 274px;
|
94
|
+
height: 1px;
|
95
|
+
}
|
96
|
+
.title {
|
97
|
+
font-size: 16px;
|
98
|
+
}
|
99
|
+
.bottom {
|
100
|
+
bottom: 0;
|
101
|
+
position: absolute;
|
102
|
+
}
|
103
|
+
.box {
|
104
|
+
width: 100% !important;
|
105
|
+
height: 48px;
|
106
|
+
border-radius: 5px;
|
107
|
+
}
|
108
|
+
.box a {
|
109
|
+
color: #05445e;
|
110
|
+
}
|
111
|
+
@media (max-width: 768px) {
|
112
|
+
.box a {
|
113
|
+
color: #ffffff;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
.active {
|
117
|
+
background-color: #ddf9f6;
|
118
|
+
}
|
119
|
+
#sidebarMenu {
|
120
|
+
min-height: calc(100vh - 112px);
|
121
|
+
}</style>
|
122
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} MenuItemProps */
|
2
|
+
/** @typedef {typeof __propDef.events} MenuItemEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} MenuItemSlots */
|
4
|
+
export default class MenuItem extends SvelteComponentTyped<{
|
5
|
+
active?: boolean | undefined;
|
6
|
+
link?: string | undefined;
|
7
|
+
icon?: string | undefined;
|
8
|
+
}, {
|
9
|
+
click: MouseEvent;
|
10
|
+
} & {
|
11
|
+
[evt: string]: CustomEvent<any>;
|
12
|
+
}, {
|
13
|
+
default: {};
|
14
|
+
}> {
|
15
|
+
}
|
16
|
+
export type MenuItemProps = typeof __propDef.props;
|
17
|
+
export type MenuItemEvents = typeof __propDef.events;
|
18
|
+
export type MenuItemSlots = typeof __propDef.slots;
|
19
|
+
import { SvelteComponentTyped } from "svelte";
|
20
|
+
declare const __propDef: {
|
21
|
+
props: {
|
22
|
+
active?: boolean | undefined;
|
23
|
+
link?: string | undefined;
|
24
|
+
icon?: string | undefined;
|
25
|
+
};
|
26
|
+
events: {
|
27
|
+
click: MouseEvent;
|
28
|
+
} & {
|
29
|
+
[evt: string]: CustomEvent<any>;
|
30
|
+
};
|
31
|
+
slots: {
|
32
|
+
default: {};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
export {};
|
@@ -0,0 +1,148 @@
|
|
1
|
+
<script>
|
2
|
+
import MenuGroup from './MenuGroup.svelte';
|
3
|
+
import MenuItem from './MenuItem.svelte';
|
4
|
+
|
5
|
+
export let companyName = 'EnkiTek';
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<div class="sidebar col-md-3 col-lg-2">
|
9
|
+
<div
|
10
|
+
class="offcanvas-md offcanvas-end bg-light rounded m-3"
|
11
|
+
tabindex="-1"
|
12
|
+
id="sidebarMenu"
|
13
|
+
aria-labelledby="sidebarMenuLabel"
|
14
|
+
>
|
15
|
+
<div class="offcanvas-header">
|
16
|
+
<h5 class="offcanvas-title" id="sidebarMenuLabel">
|
17
|
+
{companyName}
|
18
|
+
</h5>
|
19
|
+
<button
|
20
|
+
type="button"
|
21
|
+
class="btn-close"
|
22
|
+
data-bs-dismiss="offcanvas"
|
23
|
+
data-bs-target="#sidebarMenu"
|
24
|
+
aria-label="Close"
|
25
|
+
/>
|
26
|
+
</div>
|
27
|
+
<div class="offcanvas-body d-md-flex flex-column p-0 pt-lg-3 overflow-y-auto m-3">
|
28
|
+
<slot />
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
34
|
+
@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");
|
35
|
+
@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");
|
36
|
+
ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
37
|
+
color: #ffffff;
|
38
|
+
}
|
39
|
+
.line-open, .line {
|
40
|
+
background: #ffffff;
|
41
|
+
}
|
42
|
+
:global(.offcanvas-body) {
|
43
|
+
background: #007FD8;
|
44
|
+
}
|
45
|
+
.nav .nav-item.active, .icon-sidebar-content ul .active {
|
46
|
+
border-left: 2px solid #ffffff;
|
47
|
+
background: #084298;
|
48
|
+
}
|
49
|
+
.nav-item, .icon-sidebar-content ul li {
|
50
|
+
display: flex;
|
51
|
+
padding: 15px 32px;
|
52
|
+
align-items: center;
|
53
|
+
gap: 8px;
|
54
|
+
}
|
55
|
+
.row {
|
56
|
+
--bs-gutter-x: 0rem;
|
57
|
+
}
|
58
|
+
.icon-sidebar {
|
59
|
+
position: fixed;
|
60
|
+
top: 0;
|
61
|
+
left: 0;
|
62
|
+
height: 100%;
|
63
|
+
width: 88px;
|
64
|
+
background: #007FD8;
|
65
|
+
}
|
66
|
+
.line {
|
67
|
+
width: 88px;
|
68
|
+
height: 1px;
|
69
|
+
}
|
70
|
+
.icon-btn {
|
71
|
+
padding: 20px 27px;
|
72
|
+
}
|
73
|
+
.icon-sidebar-content ul li {
|
74
|
+
padding: 16px 32px;
|
75
|
+
}
|
76
|
+
:global(.offcanvas-body) {
|
77
|
+
padding: 0rem 0rem;
|
78
|
+
}
|
79
|
+
.offcanvas-title {
|
80
|
+
color: #ffffff;
|
81
|
+
font-size: 28px;
|
82
|
+
}
|
83
|
+
.nav-item .item-name {
|
84
|
+
line-height: 22px;
|
85
|
+
}
|
86
|
+
.toggle-button {
|
87
|
+
background-color: transparent;
|
88
|
+
border: #ffffff;
|
89
|
+
cursor: pointer;
|
90
|
+
}
|
91
|
+
.material-icons {
|
92
|
+
font-size: 16px;
|
93
|
+
color: #ffffff;
|
94
|
+
}
|
95
|
+
:global(.offcanvas.offcanvas-start) {
|
96
|
+
width: 274px;
|
97
|
+
border-right: none;
|
98
|
+
}
|
99
|
+
.offcanvas-header {
|
100
|
+
padding: 1.5rem 1.5rem;
|
101
|
+
}
|
102
|
+
.line-open {
|
103
|
+
width: 274px;
|
104
|
+
height: 1px;
|
105
|
+
}
|
106
|
+
.title {
|
107
|
+
font-size: 16px;
|
108
|
+
}
|
109
|
+
.bottom {
|
110
|
+
bottom: 0;
|
111
|
+
position: absolute;
|
112
|
+
}
|
113
|
+
.box {
|
114
|
+
width: 100% !important;
|
115
|
+
height: 48px;
|
116
|
+
border-radius: 5px;
|
117
|
+
}
|
118
|
+
.box a {
|
119
|
+
color: #05445e;
|
120
|
+
}
|
121
|
+
@media (max-width: 768px) {
|
122
|
+
.box a {
|
123
|
+
color: #ffffff;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
.active {
|
127
|
+
background-color: #ddf9f6;
|
128
|
+
}
|
129
|
+
#sidebarMenu {
|
130
|
+
min-height: calc(100vh - 112px);
|
131
|
+
}
|
132
|
+
@media (min-width: 768px) {
|
133
|
+
.sidebar .offcanvas-lg {
|
134
|
+
position: -webkit-sticky;
|
135
|
+
position: sticky;
|
136
|
+
top: 48px;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
.sidebar .nav-link {
|
140
|
+
font-size: 0.875rem;
|
141
|
+
font-weight: 500;
|
142
|
+
}
|
143
|
+
.sidebar .nav-link.active {
|
144
|
+
color: #2470dc;
|
145
|
+
}
|
146
|
+
.sidebar-heading {
|
147
|
+
font-size: 0.75rem;
|
148
|
+
}</style>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} SideBarMenuProps */
|
2
|
+
/** @typedef {typeof __propDef.events} SideBarMenuEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} SideBarMenuSlots */
|
4
|
+
export default class SideBarMenu extends SvelteComponentTyped<{
|
5
|
+
companyName?: string | undefined;
|
6
|
+
}, {
|
7
|
+
[evt: string]: CustomEvent<any>;
|
8
|
+
}, {
|
9
|
+
default: {};
|
10
|
+
}> {
|
11
|
+
}
|
12
|
+
export type SideBarMenuProps = typeof __propDef.props;
|
13
|
+
export type SideBarMenuEvents = typeof __propDef.events;
|
14
|
+
export type SideBarMenuSlots = typeof __propDef.slots;
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
16
|
+
declare const __propDef: {
|
17
|
+
props: {
|
18
|
+
companyName?: string | undefined;
|
19
|
+
};
|
20
|
+
events: {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
};
|
23
|
+
slots: {
|
24
|
+
default: {};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export {};
|
@@ -115,4 +115,33 @@ ul {
|
|
115
115
|
width: 274px;
|
116
116
|
height: 1px;
|
117
117
|
@extend %commom-background-line;
|
118
|
+
}
|
119
|
+
|
120
|
+
.title {
|
121
|
+
font-size: $sidebar-title;
|
122
|
+
}
|
123
|
+
|
124
|
+
.bottom {
|
125
|
+
bottom: 0;
|
126
|
+
position: absolute;
|
127
|
+
}
|
128
|
+
|
129
|
+
.box {
|
130
|
+
width: 100% !important;
|
131
|
+
height: 48px;
|
132
|
+
border-radius: 5px;
|
133
|
+
}
|
134
|
+
.box a{
|
135
|
+
color: #05445e;
|
136
|
+
}
|
137
|
+
@media (max-width: 768px){
|
138
|
+
.box a{
|
139
|
+
color: #ffffff;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
.active{
|
143
|
+
background-color: #ddf9f6;
|
144
|
+
}
|
145
|
+
#sidebarMenu{
|
146
|
+
min-height: calc(100vh - 112px);
|
118
147
|
}
|
@@ -156,6 +156,32 @@ ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
|
156
156
|
width: 274px;
|
157
157
|
height: 1px;
|
158
158
|
}
|
159
|
+
.title {
|
160
|
+
font-size: 16px;
|
161
|
+
}
|
162
|
+
.bottom {
|
163
|
+
bottom: 0;
|
164
|
+
position: absolute;
|
165
|
+
}
|
166
|
+
.box {
|
167
|
+
width: 100% !important;
|
168
|
+
height: 48px;
|
169
|
+
border-radius: 5px;
|
170
|
+
}
|
171
|
+
.box a {
|
172
|
+
color: #05445e;
|
173
|
+
}
|
174
|
+
@media (max-width: 768px) {
|
175
|
+
.box a {
|
176
|
+
color: #ffffff;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
.active {
|
180
|
+
background-color: #ddf9f6;
|
181
|
+
}
|
182
|
+
#sidebarMenu {
|
183
|
+
min-height: calc(100vh - 112px);
|
184
|
+
}
|
159
185
|
:global(.ebg-none) {
|
160
186
|
background-color: #ffffff !important;
|
161
187
|
}
|
@@ -717,5 +743,8 @@ ul, .icon-sidebar-content ul li, .icon-sidebar-content .toggle-button {
|
|
717
743
|
font-style: normal;
|
718
744
|
font-weight: 400;
|
719
745
|
line-height: normal;
|
746
|
+
}
|
747
|
+
:global(.bg-dark) {
|
748
|
+
background-color: #05445E !important;
|
720
749
|
}</style>
|
721
750
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@import './../variable.scss';
|
2
|
+
|
3
|
+
.card {
|
4
|
+
background-color: $gray-100;
|
5
|
+
padding: $rem;
|
6
|
+
border-radius: calc((3*$rem)/4);
|
7
|
+
font-family: $bodyFonts;
|
8
|
+
min-width: 22rem;
|
9
|
+
min-height:14rem;
|
10
|
+
}
|
11
|
+
.title{
|
12
|
+
font-size: $status-card-title;
|
13
|
+
font-weight: $title-weight;
|
14
|
+
}
|
15
|
+
.text{
|
16
|
+
font-size: $status-card-text;
|
17
|
+
}
|
18
|
+
.value{
|
19
|
+
font-size: $status-card-value;
|
20
|
+
}
|
21
|
+
.index {
|
22
|
+
font-size: medium !important;
|
23
|
+
}
|
24
|
+
|
25
|
+
.box1 {
|
26
|
+
background-color: $green-100;
|
27
|
+
width: fit-content;
|
28
|
+
border-radius: calc($rem/3);
|
29
|
+
}
|
30
|
+
|
31
|
+
.box2 {
|
32
|
+
background-color: $red-100;
|
33
|
+
width: fit-content;
|
34
|
+
border-radius: calc($rem/3);
|
35
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<script>
|
2
|
+
export let className = "";
|
3
|
+
</script>
|
4
|
+
|
5
|
+
<div class="card m-2 {className}">
|
6
|
+
<slot />
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
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
|
+
@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
|
+
.card {
|
13
|
+
background-color: #F8F9FA;
|
14
|
+
padding: 1rem;
|
15
|
+
border-radius: 0.75rem;
|
16
|
+
font-family: Roboto;
|
17
|
+
min-width: 22rem;
|
18
|
+
min-height: 14rem;
|
19
|
+
}
|
20
|
+
.title {
|
21
|
+
font-size: 24px;
|
22
|
+
font-weight: 400;
|
23
|
+
}
|
24
|
+
.text {
|
25
|
+
font-size: 12px;
|
26
|
+
}
|
27
|
+
.value {
|
28
|
+
font-size: 28px;
|
29
|
+
}
|
30
|
+
.index {
|
31
|
+
font-size: medium !important;
|
32
|
+
}
|
33
|
+
.box1 {
|
34
|
+
background-color: #D1E7DD;
|
35
|
+
width: fit-content;
|
36
|
+
border-radius: 0.3333333333rem;
|
37
|
+
}
|
38
|
+
.box2 {
|
39
|
+
background-color: #F8D7DA;
|
40
|
+
width: fit-content;
|
41
|
+
border-radius: 0.3333333333rem;
|
42
|
+
}</style>
|