@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.
Files changed (103) hide show
  1. package/components/Accordion/Accordion.svelte +3 -0
  2. package/components/Accordion/AccordionItem.svelte +3 -0
  3. package/components/Alert/Alert.svelte.d.ts +1 -1
  4. package/components/Badge/Badge.svelte +3 -0
  5. package/components/Breadcrumb/Breadcrumb.svelte +3 -0
  6. package/components/Button/Button.svelte +3 -0
  7. package/components/Button/Button.svelte.d.ts +8 -8
  8. package/components/Card/Card.svelte.d.ts +4 -4
  9. package/components/CardIcon/CardIcon.svelte +3 -0
  10. package/components/CardIcon/CardiconBody.svelte +3 -0
  11. package/components/CardIcon/CardiconSubtitle.svelte +3 -0
  12. package/components/CardIcon/CardiconTitle.svelte +3 -0
  13. package/components/CardIcon/CardiconTitle.svelte.d.ts +2 -2
  14. package/components/Charts/Barchart.svelte +74 -0
  15. package/components/Charts/Barchart.svelte.d.ts +23 -0
  16. package/components/Charts/DoughnutChart.svelte +73 -0
  17. package/components/Charts/DoughnutChart.svelte.d.ts +29 -0
  18. package/components/Charts/LineChart.svelte +62 -0
  19. package/components/Charts/LineChart.svelte.d.ts +23 -0
  20. package/components/Charts/PieChart.svelte +75 -0
  21. package/components/Charts/PieChart.svelte.d.ts +29 -0
  22. package/components/CheckBox/Checkbox.svelte +3 -0
  23. package/components/CheckBox/Checkbox.svelte.d.ts +8 -8
  24. package/components/Dropdown/Dropdown.svelte +3 -0
  25. package/components/Dropdown/DropdownItem.svelte +3 -0
  26. package/components/EnkiCard/CardBody.svelte.d.ts +2 -2
  27. package/components/EnkiSidbar/EnkiSidebar.svelte +3 -0
  28. package/components/EnkiSidbar/EnkiSidebar.svelte.d.ts +2 -2
  29. package/components/EnkiSidbar/NavIcon.svelte +3 -0
  30. package/components/EnkiSidbar/NavItem.svelte +3 -0
  31. package/components/EnkiSidbar/NavLink.svelte +3 -0
  32. package/components/EnkiTable/EnkiTable.svelte.d.ts +4 -4
  33. package/components/EnkiTable/TableCell.svelte.d.ts +2 -2
  34. package/components/Header/Brand.svelte +25 -16
  35. package/components/Header/Header.scss +40 -34
  36. package/components/Header/Header.svelte +26 -20
  37. package/components/Header/Header.svelte.d.ts +6 -2
  38. package/components/Header/HeaderDropDownLink.svelte +11 -0
  39. package/components/Header/HeaderDropDownLink.svelte.d.ts +29 -0
  40. package/components/Header/HeaderDropDownLinkItem.svelte +9 -0
  41. package/components/Header/HeaderDropDownLinkItem.svelte.d.ts +31 -0
  42. package/components/Header/HeaderItem.svelte +9 -0
  43. package/components/Header/HeaderItem.svelte.d.ts +2 -2
  44. package/components/Header/HeaderLink.svelte +9 -0
  45. package/components/Header/HeaderLink.svelte.d.ts +31 -0
  46. package/components/Header/HeaderLinks.svelte +9 -0
  47. package/components/Header/HeaderLinks.svelte.d.ts +27 -0
  48. package/components/Header/UserAvatar.svelte +12 -3
  49. package/components/Icon/ActionIcon.svelte.d.ts +2 -2
  50. package/components/Layout/Content.svelte +9 -0
  51. package/components/Layout/Content.svelte.d.ts +29 -0
  52. package/components/Layout/Footer.svelte +2 -0
  53. package/components/Layout/Layout.svelte +6 -0
  54. package/components/Layout/Layout.svelte.d.ts +27 -0
  55. package/components/Layout/Page.svelte +35 -9
  56. package/components/Layout/Page.svelte.d.ts +6 -2
  57. package/components/Layout/SortableGrid.svelte +28 -0
  58. package/components/Layout/SortableGrid.svelte.d.ts +27 -0
  59. package/components/ModalWindow/Modal.svelte +3 -0
  60. package/components/ModalWindow/Modal.svelte.d.ts +2 -2
  61. package/components/ModalWindow/ModalBody.svelte +3 -0
  62. package/components/ModalWindow/ModalFooter.svelte +3 -0
  63. package/components/ModalWindow/ModalHeader.svelte +3 -0
  64. package/components/NotFound/NotFound.svelte +3 -0
  65. package/components/Pagination/Pagination.svelte +3 -0
  66. package/components/RadioButton/RadioButton.svelte +3 -0
  67. package/components/Sidebar/MenuGroup.svelte +108 -0
  68. package/components/Sidebar/MenuGroup.svelte.d.ts +29 -0
  69. package/components/Sidebar/MenuItem.svelte +122 -0
  70. package/components/Sidebar/MenuItem.svelte.d.ts +35 -0
  71. package/components/Sidebar/SideBarMenu.svelte +148 -0
  72. package/components/Sidebar/SideBarMenu.svelte.d.ts +27 -0
  73. package/components/Sidebar/Sidebar.scss +29 -0
  74. package/components/Sidebar/Sidebar.svelte +29 -0
  75. package/components/StatusCard/StatusCard.scss +35 -0
  76. package/components/StatusCard/StatusCard.svelte +42 -0
  77. package/components/StatusCard/StatusCard.svelte.d.ts +27 -0
  78. package/components/StatusCard/StatusCardBody.svelte +57 -0
  79. package/components/StatusCard/StatusCardBody.svelte.d.ts +31 -0
  80. package/components/StatusCard/StatusCardTitle.svelte +47 -0
  81. package/components/StatusCard/StatusCardTitle.svelte.d.ts +29 -0
  82. package/components/Switches/Switch.svelte +3 -0
  83. package/components/Switches/Switch.svelte.d.ts +2 -2
  84. package/components/Tab/Tab.svelte +3 -0
  85. package/components/TextField/TextField.svelte +3 -0
  86. package/components/TextField/TextField.svelte.d.ts +8 -8
  87. package/components/Toast/Toast.svelte +3 -0
  88. package/components/Toast/Toast.svelte.d.ts +2 -2
  89. package/components/Tooltip/Tooltip.svelte +3 -0
  90. package/components/WidgetCard/Card.scss +108 -0
  91. package/components/WidgetCard/SensorStatusCard.svelte +130 -0
  92. package/components/WidgetCard/SensorStatusCard.svelte.d.ts +27 -0
  93. package/components/WidgetCard/StateCard.svelte +133 -0
  94. package/components/WidgetCard/StateCard.svelte.d.ts +29 -0
  95. package/components/WidgetCard/WidgetCard.svelte +152 -0
  96. package/components/WidgetCard/WidgetCard.svelte.d.ts +35 -0
  97. package/components/WidgetCard/WidgetCardBody.svelte +13 -0
  98. package/components/WidgetCard/WidgetCardBody.svelte.d.ts +27 -0
  99. package/components/common.scss +4 -0
  100. package/components/variable.scss +13 -3
  101. package/index.d.ts +65 -48
  102. package/index.js +65 -48
  103. package/package.json +30 -2
@@ -0,0 +1,108 @@
1
+ @import './../variable.scss';
2
+ .card {
3
+ font-family: $bodyFonts;
4
+ background-color: #f8f8f8;
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;
14
+ border-radius: calc((3*$rem)/4);
15
+ padding: $rem;
16
+ border-color: transparent;
17
+ min-height: 354px;
18
+ min-width: 712px;
19
+ }
20
+ .state-card {
21
+ font-family: $bodyFonts;
22
+ background-color: #f8f8f8;
23
+ border-radius: calc((3*$rem)/4);
24
+ padding: $rem;
25
+ border-color: transparent;
26
+ background-color: $gray-200 !important;
27
+ }
28
+ .title{
29
+ font-size: $widget-card-title;
30
+ font-weight: $title-weight;
31
+ }
32
+ .full-screen {
33
+ width: 100%;
34
+ height: 100%;
35
+ position: fixed;
36
+ top: 0;
37
+ left: 0;
38
+ z-index: 1000;
39
+ margin: 0;
40
+ }
41
+
42
+ .full-screen .card {
43
+ width: 100%;
44
+ height: 100%;
45
+ border-radius: 0;
46
+ }
47
+
48
+ .content{
49
+ font-size: 16px;
50
+ }
51
+
52
+ .status {
53
+ top: 10px;
54
+ right: 10px;
55
+ font-size: 12px;
56
+ float:left;
57
+ }
58
+
59
+ .completed-tag {
60
+ background-color: #c0e4c1; /* Green */
61
+ color: #4CAF50;
62
+ padding: 5px 10px;
63
+ border-radius: 5px;
64
+ }
65
+ .overdue-tag {
66
+ background-color: #eba797; /* Green */
67
+ color: #c9443a;
68
+ padding: 5px 10px;
69
+ border-radius: 5px;
70
+ }
71
+ .progress-tag {
72
+ background-color: #e6be75; /* Green */
73
+ color: #db9833;
74
+ padding: 5px 10px;
75
+ border-radius: 5px;
76
+ }
77
+
78
+ .statecardtitle {
79
+ font-weight: 400;
80
+ float: right;
81
+ width: max-content;
82
+ }
83
+
84
+ .subtitle {
85
+ float: left;
86
+ font-size: 16px;
87
+ font-weight: 400;
88
+ width: max-content;
89
+ }
90
+
91
+ .time {
92
+ float: right;
93
+ font-size: 12px;
94
+ color: #999;
95
+ width: max-content;
96
+ }
97
+ .activeStatus{
98
+ background-color: #c0e4c1; /* Green */
99
+ color: #4CAF50;
100
+ padding: 5px 10px;
101
+ border-radius: 5px;
102
+ }
103
+ .errorStatus{
104
+ background-color: #eba797; /* Green */
105
+ color: #c9443a;
106
+ padding: 5px 10px;
107
+ border-radius: 5px;
108
+ }
@@ -0,0 +1,130 @@
1
+ <script>
2
+ import { Col, Row } from 'sveltestrap';
3
+ export let status = 'active';
4
+ export let title = '#RTD101';
5
+ export let time = '7 am to 12 pm';
6
+ </script>
7
+
8
+ <div class="state-card mb-2">
9
+ <Row>
10
+ <Col>
11
+ <div class="content float-start">
12
+ <div class="statecardtitle">{title}</div>
13
+ </div>
14
+ </Col>
15
+ <Col>
16
+ <div class="status float-end">
17
+ <span class={status == 'active' ? 'activeStatus' : 'errorStatus'}>
18
+ {status == 'active' ? 'active' : 'error'}</span
19
+ >
20
+ </div>
21
+ </Col>
22
+ </Row>
23
+ <Row>
24
+ <Col><div class="time mt-1 float-start">{time}</div></Col>
25
+ </Row>
26
+ </div>
27
+
28
+ <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
29
+ @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
+ @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
+ .card {
32
+ font-family: Roboto;
33
+ background-color: #f8f8f8;
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;
43
+ border-radius: 0.75rem;
44
+ padding: 1rem;
45
+ border-color: transparent;
46
+ min-height: 354px;
47
+ min-width: 712px;
48
+ }
49
+ .state-card {
50
+ font-family: Roboto;
51
+ background-color: #f8f8f8;
52
+ border-radius: 0.75rem;
53
+ padding: 1rem;
54
+ border-color: transparent;
55
+ background-color: #E9ECEF !important;
56
+ }
57
+ .title {
58
+ font-size: 20px;
59
+ font-weight: 400;
60
+ }
61
+ .full-screen {
62
+ width: 100%;
63
+ height: 100%;
64
+ position: fixed;
65
+ top: 0;
66
+ left: 0;
67
+ z-index: 1000;
68
+ margin: 0;
69
+ }
70
+ .full-screen .card {
71
+ width: 100%;
72
+ height: 100%;
73
+ border-radius: 0;
74
+ }
75
+ .content {
76
+ font-size: 16px;
77
+ }
78
+ .status {
79
+ top: 10px;
80
+ right: 10px;
81
+ font-size: 12px;
82
+ float: left;
83
+ }
84
+ .completed-tag {
85
+ background-color: #c0e4c1; /* Green */
86
+ color: #4CAF50;
87
+ padding: 5px 10px;
88
+ border-radius: 5px;
89
+ }
90
+ .overdue-tag {
91
+ background-color: #eba797; /* Green */
92
+ color: #c9443a;
93
+ padding: 5px 10px;
94
+ border-radius: 5px;
95
+ }
96
+ .progress-tag {
97
+ background-color: #e6be75; /* Green */
98
+ color: #db9833;
99
+ padding: 5px 10px;
100
+ border-radius: 5px;
101
+ }
102
+ .statecardtitle {
103
+ font-weight: 400;
104
+ float: right;
105
+ width: max-content;
106
+ }
107
+ .subtitle {
108
+ float: left;
109
+ font-size: 16px;
110
+ font-weight: 400;
111
+ width: max-content;
112
+ }
113
+ .time {
114
+ float: right;
115
+ font-size: 12px;
116
+ color: #999;
117
+ width: max-content;
118
+ }
119
+ .activeStatus {
120
+ background-color: #c0e4c1; /* Green */
121
+ color: #4CAF50;
122
+ padding: 5px 10px;
123
+ border-radius: 5px;
124
+ }
125
+ .errorStatus {
126
+ background-color: #eba797; /* Green */
127
+ color: #c9443a;
128
+ padding: 5px 10px;
129
+ border-radius: 5px;
130
+ }</style>
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} SensorStatusCardProps */
2
+ /** @typedef {typeof __propDef.events} SensorStatusCardEvents */
3
+ /** @typedef {typeof __propDef.slots} SensorStatusCardSlots */
4
+ export default class SensorStatusCard extends SvelteComponentTyped<{
5
+ title?: string | undefined;
6
+ time?: string | undefined;
7
+ status?: string | undefined;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {}> {
11
+ }
12
+ export type SensorStatusCardProps = typeof __propDef.props;
13
+ export type SensorStatusCardEvents = typeof __propDef.events;
14
+ export type SensorStatusCardSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ title?: string | undefined;
19
+ time?: string | undefined;
20
+ status?: string | undefined;
21
+ };
22
+ events: {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {};
26
+ };
27
+ export {};
@@ -0,0 +1,133 @@
1
+ <script>
2
+ import { Col, Row } from 'sveltestrap';
3
+ export let state = "overdue";
4
+ export let title = 'Fertilizing';
5
+ export let subtitle = 'Basil- G1B2';
6
+ export let time = '7 am to 12 pm';
7
+ </script>
8
+ <div class="state-card mb-2">
9
+ <Row>
10
+
11
+ <Col>
12
+ <div class="status">
13
+ <span class={state == "completed" ? "completed-tag" : (state == "inprogress" ? "progress-tag" : "overdue-tag")}>
14
+ {state == "completed" ? "completed" : (state == "inprogress" ? "inprogress" : "overdue")}</span>
15
+ </div>
16
+ </Col>
17
+ <Col>
18
+ <div class="content">
19
+ <div class="statecardtitle">{title}</div>
20
+ </div>
21
+ </Col>
22
+ </Row>
23
+ <Row>
24
+ <Col>
25
+ <div class="subtitle">{subtitle}</div>
26
+ </Col>
27
+ <Col> <div class="time mt-1">{time}</div>
28
+ </Col>
29
+ </Row>
30
+ </div>
31
+ <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
32
+ @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
+ @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
+ .card {
35
+ font-family: Roboto;
36
+ background-color: #f8f8f8;
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;
46
+ border-radius: 0.75rem;
47
+ padding: 1rem;
48
+ border-color: transparent;
49
+ min-height: 354px;
50
+ min-width: 712px;
51
+ }
52
+ .state-card {
53
+ font-family: Roboto;
54
+ background-color: #f8f8f8;
55
+ border-radius: 0.75rem;
56
+ padding: 1rem;
57
+ border-color: transparent;
58
+ background-color: #E9ECEF !important;
59
+ }
60
+ .title {
61
+ font-size: 20px;
62
+ font-weight: 400;
63
+ }
64
+ .full-screen {
65
+ width: 100%;
66
+ height: 100%;
67
+ position: fixed;
68
+ top: 0;
69
+ left: 0;
70
+ z-index: 1000;
71
+ margin: 0;
72
+ }
73
+ .full-screen .card {
74
+ width: 100%;
75
+ height: 100%;
76
+ border-radius: 0;
77
+ }
78
+ .content {
79
+ font-size: 16px;
80
+ }
81
+ .status {
82
+ top: 10px;
83
+ right: 10px;
84
+ font-size: 12px;
85
+ float: left;
86
+ }
87
+ .completed-tag {
88
+ background-color: #c0e4c1; /* Green */
89
+ color: #4CAF50;
90
+ padding: 5px 10px;
91
+ border-radius: 5px;
92
+ }
93
+ .overdue-tag {
94
+ background-color: #eba797; /* Green */
95
+ color: #c9443a;
96
+ padding: 5px 10px;
97
+ border-radius: 5px;
98
+ }
99
+ .progress-tag {
100
+ background-color: #e6be75; /* Green */
101
+ color: #db9833;
102
+ padding: 5px 10px;
103
+ border-radius: 5px;
104
+ }
105
+ .statecardtitle {
106
+ font-weight: 400;
107
+ float: right;
108
+ width: max-content;
109
+ }
110
+ .subtitle {
111
+ float: left;
112
+ font-size: 16px;
113
+ font-weight: 400;
114
+ width: max-content;
115
+ }
116
+ .time {
117
+ float: right;
118
+ font-size: 12px;
119
+ color: #999;
120
+ width: max-content;
121
+ }
122
+ .activeStatus {
123
+ background-color: #c0e4c1; /* Green */
124
+ color: #4CAF50;
125
+ padding: 5px 10px;
126
+ border-radius: 5px;
127
+ }
128
+ .errorStatus {
129
+ background-color: #eba797; /* Green */
130
+ color: #c9443a;
131
+ padding: 5px 10px;
132
+ border-radius: 5px;
133
+ }</style>
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} StateCardProps */
2
+ /** @typedef {typeof __propDef.events} StateCardEvents */
3
+ /** @typedef {typeof __propDef.slots} StateCardSlots */
4
+ export default class StateCard extends SvelteComponentTyped<{
5
+ title?: string | undefined;
6
+ time?: string | undefined;
7
+ subtitle?: string | undefined;
8
+ state?: string | undefined;
9
+ }, {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {}> {
12
+ }
13
+ export type StateCardProps = typeof __propDef.props;
14
+ export type StateCardEvents = typeof __propDef.events;
15
+ export type StateCardSlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
17
+ declare const __propDef: {
18
+ props: {
19
+ title?: string | undefined;
20
+ time?: string | undefined;
21
+ subtitle?: string | undefined;
22
+ state?: string | undefined;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {};
28
+ };
29
+ export {};
@@ -0,0 +1,152 @@
1
+ <script>
2
+ import { onMount } from 'svelte';
3
+ import { Col, Row } from 'sveltestrap';
4
+ export let title;
5
+ export let resizable = false;
6
+ export let widthOnly = true;
7
+ export let resizeQuotient = 2;
8
+ export let cardLength = 1;
9
+ let maximized = false;
10
+ let element = null;
11
+ const toggleMaximize = () => {
12
+ maximized = !maximized;
13
+ if (!maximized) {
14
+ element.style.width = element.getBoundingClientRect().width / resizeQuotient + 'px';
15
+ if (!widthOnly) {
16
+ element.style.height = element.getBoundingClientRect().height / resizeQuotient + 'px';
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';
24
+ }
25
+ };
26
+ </script>
27
+
28
+ <div bind:this={element}>
29
+ <div class="m-2 {cardLength == 1 ? "card" : "doublecard"}">
30
+ <Row>
31
+ <Col>
32
+ <div class="title fw-normal">{title}</div>
33
+ </Col>
34
+ {#if resizable}
35
+ <Col>
36
+ <div class="float-end">
37
+ <i on:click={toggleMaximize} class="material-icons"
38
+ >{!maximized ? 'zoom_out_map' : 'zoom_in_map'}</i
39
+ >
40
+ </div>
41
+ </Col>
42
+ {/if}
43
+ </Row>
44
+ <Row>
45
+ <slot />
46
+ </Row>
47
+ </div>
48
+ </div>
49
+
50
+ <style>@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
51
+ @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
+ @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
+ .card {
54
+ font-family: Roboto;
55
+ background-color: #f8f8f8;
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;
65
+ border-radius: 0.75rem;
66
+ padding: 1rem;
67
+ border-color: transparent;
68
+ min-height: 354px;
69
+ min-width: 712px;
70
+ }
71
+ .state-card {
72
+ font-family: Roboto;
73
+ background-color: #f8f8f8;
74
+ border-radius: 0.75rem;
75
+ padding: 1rem;
76
+ border-color: transparent;
77
+ background-color: #E9ECEF !important;
78
+ }
79
+ .title {
80
+ font-size: 20px;
81
+ font-weight: 400;
82
+ }
83
+ .full-screen {
84
+ width: 100%;
85
+ height: 100%;
86
+ position: fixed;
87
+ top: 0;
88
+ left: 0;
89
+ z-index: 1000;
90
+ margin: 0;
91
+ }
92
+ .full-screen .card {
93
+ width: 100%;
94
+ height: 100%;
95
+ border-radius: 0;
96
+ }
97
+ .content {
98
+ font-size: 16px;
99
+ }
100
+ .status {
101
+ top: 10px;
102
+ right: 10px;
103
+ font-size: 12px;
104
+ float: left;
105
+ }
106
+ .completed-tag {
107
+ background-color: #c0e4c1; /* Green */
108
+ color: #4CAF50;
109
+ padding: 5px 10px;
110
+ border-radius: 5px;
111
+ }
112
+ .overdue-tag {
113
+ background-color: #eba797; /* Green */
114
+ color: #c9443a;
115
+ padding: 5px 10px;
116
+ border-radius: 5px;
117
+ }
118
+ .progress-tag {
119
+ background-color: #e6be75; /* Green */
120
+ color: #db9833;
121
+ padding: 5px 10px;
122
+ border-radius: 5px;
123
+ }
124
+ .statecardtitle {
125
+ font-weight: 400;
126
+ float: right;
127
+ width: max-content;
128
+ }
129
+ .subtitle {
130
+ float: left;
131
+ font-size: 16px;
132
+ font-weight: 400;
133
+ width: max-content;
134
+ }
135
+ .time {
136
+ float: right;
137
+ font-size: 12px;
138
+ color: #999;
139
+ width: max-content;
140
+ }
141
+ .activeStatus {
142
+ background-color: #c0e4c1; /* Green */
143
+ color: #4CAF50;
144
+ padding: 5px 10px;
145
+ border-radius: 5px;
146
+ }
147
+ .errorStatus {
148
+ background-color: #eba797; /* Green */
149
+ color: #c9443a;
150
+ padding: 5px 10px;
151
+ border-radius: 5px;
152
+ }</style>
@@ -0,0 +1,35 @@
1
+ /** @typedef {typeof __propDef.props} WidgetCardProps */
2
+ /** @typedef {typeof __propDef.events} WidgetCardEvents */
3
+ /** @typedef {typeof __propDef.slots} WidgetCardSlots */
4
+ export default class WidgetCard extends SvelteComponentTyped<{
5
+ title: any;
6
+ resizable?: boolean | undefined;
7
+ widthOnly?: boolean | undefined;
8
+ resizeQuotient?: number | undefined;
9
+ cardLength?: number | undefined;
10
+ }, {
11
+ [evt: string]: CustomEvent<any>;
12
+ }, {
13
+ default: {};
14
+ }> {
15
+ }
16
+ export type WidgetCardProps = typeof __propDef.props;
17
+ export type WidgetCardEvents = typeof __propDef.events;
18
+ export type WidgetCardSlots = typeof __propDef.slots;
19
+ import { SvelteComponentTyped } from "svelte";
20
+ declare const __propDef: {
21
+ props: {
22
+ title: any;
23
+ resizable?: boolean | undefined;
24
+ widthOnly?: boolean | undefined;
25
+ resizeQuotient?: number | undefined;
26
+ cardLength?: number | undefined;
27
+ };
28
+ events: {
29
+ [evt: string]: CustomEvent<any>;
30
+ };
31
+ slots: {
32
+ default: {};
33
+ };
34
+ };
35
+ export {};
@@ -0,0 +1,13 @@
1
+ <script>
2
+ </script>
3
+
4
+ <div class="widget-card-body">
5
+ <slot />
6
+ </div>
7
+
8
+ <style>
9
+ .widget-card-body {
10
+ width: 100%;
11
+ position: relative;
12
+ }
13
+ </style>
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} WidgetCardBodyProps */
2
+ /** @typedef {typeof __propDef.events} WidgetCardBodyEvents */
3
+ /** @typedef {typeof __propDef.slots} WidgetCardBodySlots */
4
+ export default class WidgetCardBody extends SvelteComponentTyped<{
5
+ [x: string]: never;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {
9
+ default: {};
10
+ }> {
11
+ }
12
+ export type WidgetCardBodyProps = typeof __propDef.props;
13
+ export type WidgetCardBodyEvents = typeof __propDef.events;
14
+ export type WidgetCardBodySlots = 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 {};
@@ -786,4 +786,8 @@
786
786
  font-style: normal;
787
787
  font-weight: 400;
788
788
  line-height: normal;
789
+ }
790
+
791
+ :global(.bg-dark) {
792
+ background-color: $bg-dark !important;
789
793
  }
@@ -40,6 +40,8 @@ $warning: #FFBA3A;
40
40
  $warning-dark: #997404;
41
41
  $warning-light: #FFF3CD;
42
42
 
43
+ $bg-dark: #05445E;
44
+
43
45
  $gray-900: #212529;
44
46
  $gray-800: #343A40;
45
47
  $gray-700: #495057;
@@ -49,6 +51,7 @@ $gray-400: #CED4DA;
49
51
  $gray-300: #DEE2E6;
50
52
  $gray-200: #E9ECEF;
51
53
  $gray-100: #F8F9FA;
54
+ $gray-1000: #F7F8F8;
52
55
 
53
56
  $green-900: #051B11;
54
57
  $green-800: #0A3622;
@@ -97,8 +100,8 @@ $blue-500: rgba(13, 110, 253, 1);
97
100
  $Title-Color: #152536;
98
101
 
99
102
  // cardicon color private
100
- $gray-cardicon:#444;
101
- $white-cardicon:#B8B8B8;
103
+ $gray-cardicon: #444;
104
+ $white-cardicon: #B8B8B8;
102
105
 
103
106
  $box-shadow-green: rgba(11, 235, 49, 0.25);
104
107
  //Button sizes
@@ -123,4 +126,11 @@ $highShadow: 0px 1px 16px 0px rgba(0, 0, 0, 0.10);
123
126
 
124
127
  // transition variable hover
125
128
 
126
- $transitionTimeHover:.3s;
129
+ $transitionTimeHover: .3s;
130
+ $rem: 1rem;
131
+ $status-card-title : 24px;
132
+ $status-card-text : 12px;
133
+ $status-card-value : 28px;
134
+ $widget-card-title : 20px;
135
+ $sidebar-title : 16px;
136
+ $title-weight: 400;