@enki-tek/fms-web-components 0.1.30 → 0.1.32

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.
@@ -12,7 +12,7 @@
12
12
  padding: 1rem;
13
13
  border-radius: 0.75rem;
14
14
  font-family: Roboto;
15
- min-height: 14rem;
15
+ min-height: 11rem;
16
16
  }
17
17
  .card-mini {
18
18
  height: 6rem !important;
@@ -1,10 +1,13 @@
1
1
  <script>
2
+ import SensorWidgetTitle from '../WidgetCard/SensorWidgetTitle.svelte';
3
+
2
4
  export let title = 'Sensor Alert and Notification';
5
+ export let icon = 'null';
3
6
  </script>
4
7
 
5
8
  <div class=" m-2 card">
6
- <div class="row">
7
- <div class="col plain-card-title">{title}</div>
9
+ <div class="row-flex">
10
+ <SensorWidgetTitle sensorName={title} {icon} />
8
11
  <div class="col">
9
12
  <div class="float-end">
10
13
  <slot name="activity" />
@@ -23,7 +26,7 @@
23
26
  padding: 1rem;
24
27
  border-radius: 0.75rem;
25
28
  font-family: Roboto;
26
- min-height: 14rem;
29
+ min-height: 11rem;
27
30
  }
28
31
  .card-mini {
29
32
  height: 6rem !important;
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} PlainCardEvents */
3
3
  /** @typedef {typeof __propDef.slots} PlainCardSlots */
4
4
  export default class PlainCard extends SvelteComponentTyped<{
5
+ icon?: string | undefined;
5
6
  title?: string | undefined;
6
7
  }, {
7
8
  [evt: string]: CustomEvent<any>;
@@ -16,6 +17,7 @@ export type PlainCardSlots = typeof __propDef.slots;
16
17
  import { SvelteComponentTyped } from "svelte";
17
18
  declare const __propDef: {
18
19
  props: {
20
+ icon?: string | undefined;
19
21
  title?: string | undefined;
20
22
  };
21
23
  events: {
@@ -6,22 +6,27 @@
6
6
  padding: $rem;
7
7
  border-radius: calc((3*$rem)/4);
8
8
  font-family: $bodyFonts;
9
- min-height:14rem;
9
+ min-height: 11rem;
10
10
  }
11
- .card-mini{
11
+
12
+ .card-mini {
12
13
  height: 6rem !important;
13
14
  min-height: 6rem !important;
14
15
  }
15
- .title{
16
+
17
+ .title {
16
18
  font-size: $status-card-title;
17
19
  font-weight: $title-weight;
18
20
  }
19
- .text{
21
+
22
+ .text {
20
23
  font-size: $status-card-text;
21
24
  }
22
- .value{
25
+
26
+ .value {
23
27
  font-size: $status-card-value;
24
28
  }
29
+
25
30
  .index {
26
31
  font-size: medium !important;
27
32
  }
@@ -37,14 +42,17 @@
37
42
  width: fit-content;
38
43
  border-radius: calc($rem/3);
39
44
  }
40
- .sensor-box{
45
+
46
+ .sensor-box {
41
47
  background-color: $gray-600;
42
48
  }
43
- .plain-card-title{
49
+
50
+ .plain-card-title {
44
51
  font-size: $widget-card-title;
45
52
  font-weight: $title-weight;
46
53
  }
47
- .gray-card{
54
+
55
+ .gray-card {
48
56
  border-color: transparent;
49
57
  background-color: $gray-100;
50
58
  padding: $rem;
@@ -20,7 +20,7 @@
20
20
  padding: 1rem;
21
21
  border-radius: 0.75rem;
22
22
  font-family: Roboto;
23
- min-height: 14rem;
23
+ min-height: 11rem;
24
24
  }
25
25
  .card-mini {
26
26
  height: 6rem !important;
@@ -5,7 +5,7 @@
5
5
  export let value;
6
6
  </script>
7
7
 
8
- <div class="mt-5">
8
+ <div class="mt-1">
9
9
  <Row>
10
10
  <Col>
11
11
  <div class={Number(index) > 0 ? 'box1 mb-1' : 'box2 mb-1'}>
@@ -30,7 +30,7 @@
30
30
  padding: 1rem;
31
31
  border-radius: 0.75rem;
32
32
  font-family: Roboto;
33
- min-height: 14rem;
33
+ min-height: 11rem;
34
34
  }
35
35
  .card-mini {
36
36
  height: 6rem !important;
@@ -20,7 +20,7 @@
20
20
  padding: 1rem;
21
21
  border-radius: 0.75rem;
22
22
  font-family: Roboto;
23
- min-height: 14rem;
23
+ min-height: 11rem;
24
24
  }
25
25
  .card-mini {
26
26
  height: 6rem !important;
@@ -158,6 +158,7 @@
158
158
  font-family: Roboto;
159
159
  background-color: #f8f8f8;
160
160
  border-radius: 0.2rem;
161
+ height: fit-content;
161
162
  }
162
163
  .warning-icon {
163
164
  color: orange;
@@ -132,6 +132,7 @@
132
132
  font-family: Roboto;
133
133
  background-color: #f8f8f8;
134
134
  border-radius: 0.2rem;
135
+ height: fit-content;
135
136
  }
136
137
  .warning-icon {
137
138
  color: orange;
@@ -141,6 +141,7 @@
141
141
  font-family: $bodyFonts;
142
142
  background-color: #f8f8f8;
143
143
  border-radius: calc((.2*$rem));
144
+ height: fit-content;
144
145
  }
145
146
 
146
147
  .warning-icon {
@@ -151,6 +151,7 @@
151
151
  font-family: Roboto;
152
152
  background-color: #f8f8f8;
153
153
  border-radius: 0.2rem;
154
+ height: fit-content;
154
155
  }
155
156
  .warning-icon {
156
157
  color: orange;
@@ -1,16 +1,17 @@
1
1
  <script>
2
2
  import Icon from '../Icon/Icon.svelte';
3
3
  export let sensorName;
4
- export let icon="house-fill";
4
+ export let icon = 'house-fill';
5
5
  </script>
6
- <div class="row align-items-center p-0">
7
- <div class="col">
8
- <div class="text-dark h6"><Icon iconName="{icon}" />{sensorName}</div>
9
- <slot name='status' />
10
- </div>
11
- <div class="col p-0">
12
- <div class="float-end p-0">
6
+
7
+ <div class="row-flex align-items-center p-0">
8
+ <div class="col">
9
+ <div class="text-dark h6"><Icon iconName={icon} />{sensorName}</div>
10
+ <slot name="status" />
11
+ </div>
12
+ <div class="col p-0">
13
+ <div class="float-end p-0">
13
14
  <slot name="menu" />
14
- </div>
15
15
  </div>
16
16
  </div>
17
+ </div>
@@ -154,6 +154,7 @@
154
154
  font-family: Roboto;
155
155
  background-color: #f8f8f8;
156
156
  border-radius: 0.2rem;
157
+ height: fit-content;
157
158
  }
158
159
  .warning-icon {
159
160
  color: orange;
@@ -175,6 +175,7 @@
175
175
  font-family: Roboto;
176
176
  background-color: #f8f8f8;
177
177
  border-radius: 0.2rem;
178
+ height: fit-content;
178
179
  }
179
180
  .warning-icon {
180
181
  color: orange;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",