@enki-tek/fms-web-components 0.0.90 → 0.1.1
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/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
@@ -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>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} StatusCardProps */
|
2
|
+
/** @typedef {typeof __propDef.events} StatusCardEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} StatusCardSlots */
|
4
|
+
export default class StatusCard extends SvelteComponentTyped<{
|
5
|
+
className?: string | undefined;
|
6
|
+
}, {
|
7
|
+
[evt: string]: CustomEvent<any>;
|
8
|
+
}, {
|
9
|
+
default: {};
|
10
|
+
}> {
|
11
|
+
}
|
12
|
+
export type StatusCardProps = typeof __propDef.props;
|
13
|
+
export type StatusCardEvents = typeof __propDef.events;
|
14
|
+
export type StatusCardSlots = typeof __propDef.slots;
|
15
|
+
import { SvelteComponentTyped } from "svelte";
|
16
|
+
declare const __propDef: {
|
17
|
+
props: {
|
18
|
+
className?: string | undefined;
|
19
|
+
};
|
20
|
+
events: {
|
21
|
+
[evt: string]: CustomEvent<any>;
|
22
|
+
};
|
23
|
+
slots: {
|
24
|
+
default: {};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export {};
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<script>
|
2
|
+
import { Col, Row } from 'sveltestrap';
|
3
|
+
export let index;
|
4
|
+
export let text;
|
5
|
+
export let value;
|
6
|
+
</script>
|
7
|
+
|
8
|
+
<div class="mt-5">
|
9
|
+
<Row>
|
10
|
+
<Col>
|
11
|
+
<div class={Number(index) > 0 ? 'box1 mb-1' : 'box2 mb-1'}>
|
12
|
+
<div class={Number(index) > 0 ? 'p-1 px-2 text-success' : 'p-1 px-2 text-danger'}>
|
13
|
+
<i class="material-icons index">{Number(index) > 0 ? 'call_made' : 'call_received'}</i>
|
14
|
+
{Number(index) > 0 ? '+' + index : index}
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<div class="text fw-normal">{text}</div></Col
|
18
|
+
>
|
19
|
+
<Col><div class="float-end value fw-bold">{value}</div></Col>
|
20
|
+
</Row>
|
21
|
+
</div>
|
22
|
+
<slot />
|
23
|
+
|
24
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
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
|
+
@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
|
+
.card {
|
28
|
+
background-color: #F8F9FA;
|
29
|
+
padding: 1rem;
|
30
|
+
border-radius: 0.75rem;
|
31
|
+
font-family: Roboto;
|
32
|
+
min-width: 22rem;
|
33
|
+
min-height: 14rem;
|
34
|
+
}
|
35
|
+
.title {
|
36
|
+
font-size: 24px;
|
37
|
+
font-weight: 400;
|
38
|
+
}
|
39
|
+
.text {
|
40
|
+
font-size: 12px;
|
41
|
+
}
|
42
|
+
.value {
|
43
|
+
font-size: 28px;
|
44
|
+
}
|
45
|
+
.index {
|
46
|
+
font-size: medium !important;
|
47
|
+
}
|
48
|
+
.box1 {
|
49
|
+
background-color: #D1E7DD;
|
50
|
+
width: fit-content;
|
51
|
+
border-radius: 0.3333333333rem;
|
52
|
+
}
|
53
|
+
.box2 {
|
54
|
+
background-color: #F8D7DA;
|
55
|
+
width: fit-content;
|
56
|
+
border-radius: 0.3333333333rem;
|
57
|
+
}</style>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} StatusCardBodyProps */
|
2
|
+
/** @typedef {typeof __propDef.events} StatusCardBodyEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} StatusCardBodySlots */
|
4
|
+
export default class StatusCardBody extends SvelteComponentTyped<{
|
5
|
+
index: any;
|
6
|
+
text: any;
|
7
|
+
value: any;
|
8
|
+
}, {
|
9
|
+
[evt: string]: CustomEvent<any>;
|
10
|
+
}, {
|
11
|
+
default: {};
|
12
|
+
}> {
|
13
|
+
}
|
14
|
+
export type StatusCardBodyProps = typeof __propDef.props;
|
15
|
+
export type StatusCardBodyEvents = typeof __propDef.events;
|
16
|
+
export type StatusCardBodySlots = typeof __propDef.slots;
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
18
|
+
declare const __propDef: {
|
19
|
+
props: {
|
20
|
+
index: any;
|
21
|
+
text: any;
|
22
|
+
value: any;
|
23
|
+
};
|
24
|
+
events: {
|
25
|
+
[evt: string]: CustomEvent<any>;
|
26
|
+
};
|
27
|
+
slots: {
|
28
|
+
default: {};
|
29
|
+
};
|
30
|
+
};
|
31
|
+
export {};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<script>
|
2
|
+
export let title = '';
|
3
|
+
export let subTitle = '';
|
4
|
+
</script>
|
5
|
+
|
6
|
+
<div class="title">
|
7
|
+
<h4>
|
8
|
+
<p class="text-secondary m-0 title fw-lighter">{title}</p>
|
9
|
+
<p class="text-primary m-0 sub_title fw-normal">{subTitle}</p>
|
10
|
+
</h4>
|
11
|
+
</div>
|
12
|
+
<slot />
|
13
|
+
|
14
|
+
<style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
|
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
|
+
@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
|
+
.card {
|
18
|
+
background-color: #F8F9FA;
|
19
|
+
padding: 1rem;
|
20
|
+
border-radius: 0.75rem;
|
21
|
+
font-family: Roboto;
|
22
|
+
min-width: 22rem;
|
23
|
+
min-height: 14rem;
|
24
|
+
}
|
25
|
+
.title {
|
26
|
+
font-size: 24px;
|
27
|
+
font-weight: 400;
|
28
|
+
}
|
29
|
+
.text {
|
30
|
+
font-size: 12px;
|
31
|
+
}
|
32
|
+
.value {
|
33
|
+
font-size: 28px;
|
34
|
+
}
|
35
|
+
.index {
|
36
|
+
font-size: medium !important;
|
37
|
+
}
|
38
|
+
.box1 {
|
39
|
+
background-color: #D1E7DD;
|
40
|
+
width: fit-content;
|
41
|
+
border-radius: 0.3333333333rem;
|
42
|
+
}
|
43
|
+
.box2 {
|
44
|
+
background-color: #F8D7DA;
|
45
|
+
width: fit-content;
|
46
|
+
border-radius: 0.3333333333rem;
|
47
|
+
}</style>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/** @typedef {typeof __propDef.props} StatusCardTitleProps */
|
2
|
+
/** @typedef {typeof __propDef.events} StatusCardTitleEvents */
|
3
|
+
/** @typedef {typeof __propDef.slots} StatusCardTitleSlots */
|
4
|
+
export default class StatusCardTitle extends SvelteComponentTyped<{
|
5
|
+
title?: string | undefined;
|
6
|
+
subTitle?: string | undefined;
|
7
|
+
}, {
|
8
|
+
[evt: string]: CustomEvent<any>;
|
9
|
+
}, {
|
10
|
+
default: {};
|
11
|
+
}> {
|
12
|
+
}
|
13
|
+
export type StatusCardTitleProps = typeof __propDef.props;
|
14
|
+
export type StatusCardTitleEvents = typeof __propDef.events;
|
15
|
+
export type StatusCardTitleSlots = typeof __propDef.slots;
|
16
|
+
import { SvelteComponentTyped } from "svelte";
|
17
|
+
declare const __propDef: {
|
18
|
+
props: {
|
19
|
+
title?: string | undefined;
|
20
|
+
subTitle?: string | undefined;
|
21
|
+
};
|
22
|
+
events: {
|
23
|
+
[evt: string]: CustomEvent<any>;
|
24
|
+
};
|
25
|
+
slots: {
|
26
|
+
default: {};
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export {};
|
@@ -4,8 +4,8 @@
|
|
4
4
|
export default class Switch extends SvelteComponentTyped<{
|
5
5
|
disable: any;
|
6
6
|
enable: any;
|
7
|
-
size?: string | undefined;
|
8
7
|
label?: string | undefined;
|
8
|
+
size?: string | undefined;
|
9
9
|
}, {
|
10
10
|
[evt: string]: CustomEvent<any>;
|
11
11
|
}, {}> {
|
@@ -18,8 +18,8 @@ declare const __propDef: {
|
|
18
18
|
props: {
|
19
19
|
disable: any;
|
20
20
|
enable: any;
|
21
|
-
size?: string | undefined;
|
22
21
|
label?: string | undefined;
|
22
|
+
size?: string | undefined;
|
23
23
|
};
|
24
24
|
events: {
|
25
25
|
[evt: string]: CustomEvent<any>;
|
@@ -3,16 +3,16 @@
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TextFieldSlots */
|
4
4
|
export default class TextField extends SvelteComponentTyped<{
|
5
5
|
[x: string]: any;
|
6
|
-
|
6
|
+
className?: string | undefined;
|
7
7
|
disabled?: boolean | undefined;
|
8
8
|
invalid?: boolean | undefined;
|
9
9
|
type?: string | undefined;
|
10
|
-
|
11
|
-
placeholder?: string | undefined;
|
12
|
-
value?: string | undefined;
|
10
|
+
size?: string | undefined;
|
13
11
|
name?: string | undefined;
|
12
|
+
value?: string | undefined;
|
14
13
|
valid?: boolean | undefined;
|
15
14
|
feedback?: null | undefined;
|
15
|
+
placeholder?: string | undefined;
|
16
16
|
}, {
|
17
17
|
change: Event;
|
18
18
|
input: Event;
|
@@ -29,16 +29,16 @@ import { SvelteComponentTyped } from "svelte";
|
|
29
29
|
declare const __propDef: {
|
30
30
|
props: {
|
31
31
|
[x: string]: any;
|
32
|
-
|
32
|
+
className?: string | undefined;
|
33
33
|
disabled?: boolean | undefined;
|
34
34
|
invalid?: boolean | undefined;
|
35
35
|
type?: string | undefined;
|
36
|
-
|
37
|
-
placeholder?: string | undefined;
|
38
|
-
value?: string | undefined;
|
36
|
+
size?: string | undefined;
|
39
37
|
name?: string | undefined;
|
38
|
+
value?: string | undefined;
|
40
39
|
valid?: boolean | undefined;
|
41
40
|
feedback?: null | undefined;
|
41
|
+
placeholder?: string | undefined;
|
42
42
|
};
|
43
43
|
events: {
|
44
44
|
change: Event;
|
@@ -2,9 +2,9 @@
|
|
2
2
|
/** @typedef {typeof __propDef.events} ToastEvents */
|
3
3
|
/** @typedef {typeof __propDef.slots} ToastSlots */
|
4
4
|
export default class Toast extends SvelteComponentTyped<{
|
5
|
+
className?: string | undefined;
|
5
6
|
type?: string | undefined;
|
6
7
|
label?: string | undefined;
|
7
|
-
className?: string | undefined;
|
8
8
|
}, {
|
9
9
|
[evt: string]: CustomEvent<any>;
|
10
10
|
}, {
|
@@ -17,9 +17,9 @@ export type ToastSlots = typeof __propDef.slots;
|
|
17
17
|
import { SvelteComponentTyped } from "svelte";
|
18
18
|
declare const __propDef: {
|
19
19
|
props: {
|
20
|
+
className?: string | undefined;
|
20
21
|
type?: string | undefined;
|
21
22
|
label?: string | undefined;
|
22
|
-
className?: string | undefined;
|
23
23
|
};
|
24
24
|
events: {
|
25
25
|
[evt: string]: CustomEvent<any>;
|