@enki-tek/fms-web-components 0.0.90 → 0.1.1
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 +3 -0
- package/components/Accordion/AccordionItem.svelte +3 -0
- package/components/Alert/Alert.svelte.d.ts +1 -1
- package/components/Badge/Badge.svelte +3 -0
- package/components/Breadcrumb/Breadcrumb.svelte +3 -0
- package/components/Button/Button.svelte +3 -0
- package/components/Button/Button.svelte.d.ts +8 -8
- package/components/Card/Card.svelte.d.ts +4 -4
- 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/CardIcon/CardiconTitle.svelte.d.ts +2 -2
- 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/CheckBox/Checkbox.svelte.d.ts +8 -8
- package/components/Dropdown/Dropdown.svelte +3 -0
- package/components/Dropdown/DropdownItem.svelte +3 -0
- package/components/EnkiCard/CardBody.svelte.d.ts +2 -2
- package/components/EnkiSidbar/EnkiSidebar.svelte +3 -0
- package/components/EnkiSidbar/EnkiSidebar.svelte.d.ts +2 -2
- package/components/EnkiSidbar/NavIcon.svelte +3 -0
- package/components/EnkiSidbar/NavItem.svelte +3 -0
- package/components/EnkiSidbar/NavLink.svelte +3 -0
- package/components/EnkiTable/EnkiTable.svelte.d.ts +4 -4
- package/components/EnkiTable/TableCell.svelte.d.ts +2 -2
- 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/HeaderItem.svelte.d.ts +2 -2
- 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/Icon/ActionIcon.svelte.d.ts +2 -2
- 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/Modal.svelte.d.ts +2 -2
- 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/Switches/Switch.svelte.d.ts +2 -2
- package/components/Tab/Tab.svelte +3 -0
- package/components/TextField/TextField.svelte +3 -0
- package/components/TextField/TextField.svelte.d.ts +8 -8
- package/components/Toast/Toast.svelte +3 -0
- package/components/Toast/Toast.svelte.d.ts +2 -2
- 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/index.d.ts +65 -48
- package/index.js +65 -48
- package/package.json +30 -2
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} EnkiSidebarEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} EnkiSidebarSlots */
|
|
4
4
|
export default class EnkiSidebar extends SvelteComponentTyped<{
|
|
5
|
+
companyName?: string | undefined;
|
|
5
6
|
isOpen?: boolean | undefined;
|
|
6
7
|
backdrop?: boolean | undefined;
|
|
7
|
-
companyName?: string | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
10
10
|
}, {
|
|
@@ -20,9 +20,9 @@ export type EnkiSidebarSlots = typeof __propDef.slots;
|
|
|
20
20
|
import { SvelteComponentTyped } from "svelte";
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
|
+
companyName?: string | undefined;
|
|
23
24
|
isOpen?: boolean | undefined;
|
|
24
25
|
backdrop?: boolean | undefined;
|
|
25
|
-
companyName?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
28
28
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} EnkiTableSlots */
|
|
4
4
|
export default class EnkiTable extends SvelteComponentTyped<{
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
size?: string | undefined;
|
|
7
|
-
type?: string | undefined;
|
|
8
6
|
className?: string | undefined;
|
|
7
|
+
type?: string | undefined;
|
|
8
|
+
size?: string | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
}, {
|
|
@@ -19,9 +19,9 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
19
19
|
declare const __propDef: {
|
|
20
20
|
props: {
|
|
21
21
|
[x: string]: any;
|
|
22
|
-
size?: string | undefined;
|
|
23
|
-
type?: string | undefined;
|
|
24
22
|
className?: string | undefined;
|
|
23
|
+
type?: string | undefined;
|
|
24
|
+
size?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
export default class TableCell extends SvelteComponentTyped<{
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
className?: string | undefined;
|
|
7
|
+
dataLabel?: string | undefined;
|
|
7
8
|
colspan?: number | undefined;
|
|
8
9
|
rowspan?: number | undefined;
|
|
9
|
-
dataLabel?: string | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
12
12
|
}, {
|
|
@@ -21,9 +21,9 @@ declare const __propDef: {
|
|
|
21
21
|
props: {
|
|
22
22
|
[x: string]: any;
|
|
23
23
|
className?: string | undefined;
|
|
24
|
+
dataLabel?: string | undefined;
|
|
24
25
|
colspan?: number | undefined;
|
|
25
26
|
rowspan?: number | undefined;
|
|
26
|
-
dataLabel?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
events: {
|
|
29
29
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import {
|
|
3
|
-
NavbarBrand,
|
|
4
|
-
} from 'sveltestrap';
|
|
2
|
+
import { NavbarBrand } from 'sveltestrap';
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
let defaultBrandImage = 'https://i.postimg.cc/QCTH3KJ2/logo.png';
|
|
5
|
+
export let brandImage = 'https://i.postimg.cc/QCTH3KJ2/logo.png';
|
|
6
|
+
export let brandName = 'Farm Management System';
|
|
9
7
|
|
|
8
|
+
const verifyImage = (brandImage) => {
|
|
9
|
+
const imageURLVerification =
|
|
10
|
+
/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
|
|
11
|
+
return brandImage.match(imageURLVerification);
|
|
12
|
+
};
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (result == null) {
|
|
15
|
-
brandImage = defaultBrandImage;
|
|
16
|
-
}
|
|
14
|
+
if (!verifyImage(brandImage)) {
|
|
15
|
+
brandImage = defaultBrandImage;
|
|
16
|
+
}
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
|
-
<NavbarBrand href="/" class=
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
<NavbarBrand href="/" class="efs-small headerLogo" style="font-weight:300;">
|
|
20
|
+
<img src={brandImage} alt="ENKITEK" />
|
|
21
|
+
{brandName}
|
|
22
22
|
</NavbarBrand>
|
|
23
23
|
|
|
24
24
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
|
@@ -31,11 +31,17 @@
|
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
color: #000000;
|
|
34
|
+
filter: grayscale(100%) brightness(0) invert(1);
|
|
34
35
|
}
|
|
35
36
|
:global(.headerLogo img) {
|
|
36
37
|
width: 144px;
|
|
37
38
|
height: 34px;
|
|
38
39
|
}
|
|
40
|
+
.bi {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
width: 1rem;
|
|
43
|
+
height: 1rem;
|
|
44
|
+
}
|
|
39
45
|
:global(.headerIcons) {
|
|
40
46
|
display: flex;
|
|
41
47
|
align-items: center;
|
|
@@ -640,4 +646,7 @@
|
|
|
640
646
|
font-style: normal;
|
|
641
647
|
font-weight: 400;
|
|
642
648
|
line-height: normal;
|
|
643
|
-
}
|
|
649
|
+
}
|
|
650
|
+
:global(.bg-dark) {
|
|
651
|
+
background-color: #05445E !important;
|
|
652
|
+
}</style>
|
|
@@ -1,64 +1,70 @@
|
|
|
1
1
|
@import './../variable.scss';
|
|
2
2
|
|
|
3
3
|
:global(.headerLogo) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
color: $black;
|
|
7
|
+
filter: grayscale(100%) brightness(0) invert(1);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
:global(.headerLogo img) {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
width: 144px;
|
|
12
|
+
height: 34px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.bi {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
width: 1rem;
|
|
18
|
+
height: 1rem;
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
:global(.headerIcons) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
border: 1px solid $secondary;
|
|
26
|
+
border-radius: 50%;
|
|
27
|
+
color: $secondary;
|
|
28
|
+
padding: 8px 9px;
|
|
29
|
+
height: 45px;
|
|
30
|
+
width: 45px;
|
|
31
|
+
font-weight: bold;
|
|
26
32
|
}
|
|
27
33
|
|
|
28
|
-
.avatar-text{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
.avatar-text {
|
|
35
|
+
color: black;
|
|
36
|
+
margin-top: 2px;
|
|
37
|
+
text-transform: capitalize;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
:global(.headerIcons i) {
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
padding: 0 4px;
|
|
42
|
+
font-size: 18px;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
:global(.userProfile) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 15px;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
:global(.userProfileBox) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: flex-end;
|
|
55
|
+
color: $gray-600;
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
:global(.userProfile img) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
width: 45px;
|
|
60
|
+
height: 45px;
|
|
61
|
+
border-radius: 50%;
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
:global(.nav-link:focus, .nav-link:hover) {
|
|
59
|
-
|
|
65
|
+
color: $secondary;
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
:global(a:hover) {
|
|
63
|
-
|
|
69
|
+
color: $black;
|
|
64
70
|
}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
|
|
3
|
-
Collapse,
|
|
4
|
-
NavbarToggler,
|
|
5
|
-
Nav,
|
|
6
|
-
Navbar,
|
|
7
|
-
} from 'sveltestrap';
|
|
2
|
+
|
|
8
3
|
|
|
9
|
-
let isOpen = false;
|
|
10
|
-
|
|
11
|
-
function handleUpdate(event) {
|
|
12
|
-
isOpen = event.detail.isOpen;
|
|
13
|
-
}
|
|
14
4
|
</script>
|
|
15
5
|
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
<header class="navbar sticky-top bg-dark p-0 flex-md-nowrap" data-bs-theme="dark">
|
|
7
|
+
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
|
8
|
+
<div class="container-fluid">
|
|
9
|
+
<slot name="brand"></slot>
|
|
10
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
|
11
|
+
<span class="navbar-toggler-icon"></span>
|
|
12
|
+
</button>
|
|
13
|
+
<div class="collapse navbar-collapse justify-content-md-end" id="navbarCollapse">
|
|
14
|
+
<slot name="menu"></slot>
|
|
15
|
+
<hr class="my-3 d-md-none">
|
|
16
|
+
<slot name="footer-menu"></slot>
|
|
17
|
+
<slot name="nav-menu"></slot>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</nav>
|
|
21
|
+
</header>
|
|
25
22
|
|
|
26
23
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
|
27
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");
|
|
@@ -33,11 +30,17 @@
|
|
|
33
30
|
display: flex;
|
|
34
31
|
flex-direction: column;
|
|
35
32
|
color: #000000;
|
|
33
|
+
filter: grayscale(100%) brightness(0) invert(1);
|
|
36
34
|
}
|
|
37
35
|
:global(.headerLogo img) {
|
|
38
36
|
width: 144px;
|
|
39
37
|
height: 34px;
|
|
40
38
|
}
|
|
39
|
+
.bi {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
width: 1rem;
|
|
42
|
+
height: 1rem;
|
|
43
|
+
}
|
|
41
44
|
:global(.headerIcons) {
|
|
42
45
|
display: flex;
|
|
43
46
|
align-items: center;
|
|
@@ -642,4 +645,7 @@
|
|
|
642
645
|
font-style: normal;
|
|
643
646
|
font-weight: 400;
|
|
644
647
|
line-height: normal;
|
|
648
|
+
}
|
|
649
|
+
:global(.bg-dark) {
|
|
650
|
+
background-color: #05445E !important;
|
|
645
651
|
}</style>
|
|
@@ -7,7 +7,9 @@ export default class Header extends SvelteComponentTyped<{
|
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
}, {
|
|
9
9
|
brand: {};
|
|
10
|
-
|
|
10
|
+
menu: {};
|
|
11
|
+
'footer-menu': {};
|
|
12
|
+
'nav-menu': {};
|
|
11
13
|
}> {
|
|
12
14
|
}
|
|
13
15
|
export type HeaderProps = typeof __propDef.props;
|
|
@@ -23,7 +25,9 @@ declare const __propDef: {
|
|
|
23
25
|
};
|
|
24
26
|
slots: {
|
|
25
27
|
brand: {};
|
|
26
|
-
|
|
28
|
+
menu: {};
|
|
29
|
+
'footer-menu': {};
|
|
30
|
+
'nav-menu': {};
|
|
27
31
|
};
|
|
28
32
|
};
|
|
29
33
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<li class="nav-item dropdown">
|
|
5
|
+
<a class="nav-link " href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
6
|
+
<slot name="label" />
|
|
7
|
+
</a>
|
|
8
|
+
<ul class="dropdown-menu dropdown-menu-end flex-md-column">
|
|
9
|
+
<slot />
|
|
10
|
+
</ul>
|
|
11
|
+
</li>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} HeaderDropDownLinkProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} HeaderDropDownLinkEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} HeaderDropDownLinkSlots */
|
|
4
|
+
export default class HeaderDropDownLink extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
label: {};
|
|
10
|
+
default: {};
|
|
11
|
+
}> {
|
|
12
|
+
}
|
|
13
|
+
export type HeaderDropDownLinkProps = typeof __propDef.props;
|
|
14
|
+
export type HeaderDropDownLinkEvents = typeof __propDef.events;
|
|
15
|
+
export type HeaderDropDownLinkSlots = typeof __propDef.slots;
|
|
16
|
+
import { SvelteComponentTyped } from "svelte";
|
|
17
|
+
declare const __propDef: {
|
|
18
|
+
props: {
|
|
19
|
+
[x: string]: never;
|
|
20
|
+
};
|
|
21
|
+
events: {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
};
|
|
24
|
+
slots: {
|
|
25
|
+
label: {};
|
|
26
|
+
default: {};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} HeaderDropDownLinkItemProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} HeaderDropDownLinkItemEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} HeaderDropDownLinkItemSlots */
|
|
4
|
+
export default class HeaderDropDownLinkItem extends SvelteComponentTyped<{
|
|
5
|
+
link?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
click: MouseEvent;
|
|
8
|
+
} & {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {
|
|
11
|
+
default: {};
|
|
12
|
+
}> {
|
|
13
|
+
}
|
|
14
|
+
export type HeaderDropDownLinkItemProps = typeof __propDef.props;
|
|
15
|
+
export type HeaderDropDownLinkItemEvents = typeof __propDef.events;
|
|
16
|
+
export type HeaderDropDownLinkItemSlots = typeof __propDef.slots;
|
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
|
18
|
+
declare const __propDef: {
|
|
19
|
+
props: {
|
|
20
|
+
link?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
click: MouseEvent;
|
|
24
|
+
} & {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
};
|
|
27
|
+
slots: {
|
|
28
|
+
default: {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -32,11 +32,17 @@
|
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
color: #000000;
|
|
35
|
+
filter: grayscale(100%) brightness(0) invert(1);
|
|
35
36
|
}
|
|
36
37
|
:global(.headerLogo img) {
|
|
37
38
|
width: 144px;
|
|
38
39
|
height: 34px;
|
|
39
40
|
}
|
|
41
|
+
.bi {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
width: 1rem;
|
|
44
|
+
height: 1rem;
|
|
45
|
+
}
|
|
40
46
|
:global(.headerIcons) {
|
|
41
47
|
display: flex;
|
|
42
48
|
align-items: center;
|
|
@@ -641,4 +647,7 @@
|
|
|
641
647
|
font-style: normal;
|
|
642
648
|
font-weight: 400;
|
|
643
649
|
line-height: normal;
|
|
650
|
+
}
|
|
651
|
+
:global(.bg-dark) {
|
|
652
|
+
background-color: #05445E !important;
|
|
644
653
|
}</style>
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} HeaderItemSlots */
|
|
4
4
|
export default class HeaderItem extends SvelteComponentTyped<{
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
link?: string | undefined;
|
|
7
6
|
type?: string | undefined;
|
|
7
|
+
link?: string | undefined;
|
|
8
8
|
iconName?: string | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
click: MouseEvent;
|
|
@@ -21,8 +21,8 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
23
|
[x: string]: any;
|
|
24
|
-
link?: string | undefined;
|
|
25
24
|
type?: string | undefined;
|
|
25
|
+
link?: string | undefined;
|
|
26
26
|
iconName?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
events: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} HeaderLinkProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} HeaderLinkEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} HeaderLinkSlots */
|
|
4
|
+
export default class HeaderLink extends SvelteComponentTyped<{
|
|
5
|
+
link?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
click: MouseEvent;
|
|
8
|
+
} & {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
}, {
|
|
11
|
+
default: {};
|
|
12
|
+
}> {
|
|
13
|
+
}
|
|
14
|
+
export type HeaderLinkProps = typeof __propDef.props;
|
|
15
|
+
export type HeaderLinkEvents = typeof __propDef.events;
|
|
16
|
+
export type HeaderLinkSlots = typeof __propDef.slots;
|
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
|
18
|
+
declare const __propDef: {
|
|
19
|
+
props: {
|
|
20
|
+
link?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
events: {
|
|
23
|
+
click: MouseEvent;
|
|
24
|
+
} & {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
};
|
|
27
|
+
slots: {
|
|
28
|
+
default: {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} HeaderLinksProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} HeaderLinksEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} HeaderLinksSlots */
|
|
4
|
+
export default class HeaderLinks extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> {
|
|
11
|
+
}
|
|
12
|
+
export type HeaderLinksProps = typeof __propDef.props;
|
|
13
|
+
export type HeaderLinksEvents = typeof __propDef.events;
|
|
14
|
+
export type HeaderLinksSlots = typeof __propDef.slots;
|
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
|
16
|
+
declare const __propDef: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
20
|
+
events: {
|
|
21
|
+
[evt: string]: CustomEvent<any>;
|
|
22
|
+
};
|
|
23
|
+
slots: {
|
|
24
|
+
default: {};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
if (result == null) userImage = defaultImage;
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
|
-
<
|
|
15
|
+
<div class="userProfile">
|
|
16
|
+
<img src={userImage} alt="PROFILE" />
|
|
16
17
|
<div class="userProfileBox">
|
|
17
18
|
<p class="m-0 efs-small etext-black text-capitalize">{userName}</p>
|
|
18
19
|
<p class="m-0 efs-small text-capitalize">{userRole}</p>
|
|
19
20
|
</div>
|
|
20
|
-
|
|
21
|
-
</NavbarBrand>
|
|
21
|
+
</div>
|
|
22
22
|
|
|
23
23
|
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
|
24
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");
|
|
@@ -30,11 +30,17 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
color: #000000;
|
|
33
|
+
filter: grayscale(100%) brightness(0) invert(1);
|
|
33
34
|
}
|
|
34
35
|
:global(.headerLogo img) {
|
|
35
36
|
width: 144px;
|
|
36
37
|
height: 34px;
|
|
37
38
|
}
|
|
39
|
+
.bi {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
width: 1rem;
|
|
42
|
+
height: 1rem;
|
|
43
|
+
}
|
|
38
44
|
:global(.headerIcons) {
|
|
39
45
|
display: flex;
|
|
40
46
|
align-items: center;
|
|
@@ -639,4 +645,7 @@
|
|
|
639
645
|
font-style: normal;
|
|
640
646
|
font-weight: 400;
|
|
641
647
|
line-height: normal;
|
|
648
|
+
}
|
|
649
|
+
:global(.bg-dark) {
|
|
650
|
+
background-color: #05445E !important;
|
|
642
651
|
}</style>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ActionIconSlots */
|
|
4
4
|
export default class ActionIcon extends SvelteComponentTyped<{
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
link?: string | undefined;
|
|
7
6
|
type?: string | undefined;
|
|
8
7
|
icon?: string | undefined;
|
|
8
|
+
link?: string | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
click: MouseEvent;
|
|
11
11
|
} & {
|
|
@@ -19,9 +19,9 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
19
19
|
declare const __propDef: {
|
|
20
20
|
props: {
|
|
21
21
|
[x: string]: any;
|
|
22
|
-
link?: string | undefined;
|
|
23
22
|
type?: string | undefined;
|
|
24
23
|
icon?: string | undefined;
|
|
24
|
+
link?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
click: MouseEvent;
|