@enki-tek/fms-web-components 0.1.36 → 0.1.38
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/Layout/SortableGrid.svelte +1 -1
- package/components/StatusCard/StatusCard.svelte +1 -1
- package/components/WidgetCard/AlertFooter.svelte +2 -2
- package/components/WidgetCard/SensorWidgetTitle.svelte +1 -1
- package/components/WidgetCard/WidgetCard.svelte +10 -8
- package/package.json +1 -1
@@ -5,7 +5,7 @@
|
|
5
5
|
export let sensor = false;
|
6
6
|
</script>
|
7
7
|
|
8
|
-
<div class=" {sensor ? "col-12" : "col-
|
8
|
+
<div class=" {sensor ? "col-12 " : "col-md-12 col-sm-12 col-lg-6 col-xl-4 mb-3" } ">
|
9
9
|
<div class="{notify ? 'blip' : ''} card {className} {small ? 'card-mini' : ''}">
|
10
10
|
<slot />
|
11
11
|
</div>
|
@@ -8,14 +8,14 @@
|
|
8
8
|
</script>
|
9
9
|
|
10
10
|
<Row class="mt-2">
|
11
|
-
<Col
|
11
|
+
<Col class="col-12"
|
12
12
|
><div class={color ? 'plain-color-card' : 'plain-card'}>
|
13
13
|
<div>
|
14
14
|
<i class="material-icons px-1 pe-2 pt-1 warning-icon {color ? 'warning-icon-medium' : ''}"
|
15
15
|
>{icon}</i
|
16
16
|
>
|
17
17
|
</div>
|
18
|
-
<div class="pe-2 pt-1">{text}</div>
|
18
|
+
<div class="pe-2 pt-1 text-break">{text}</div>
|
19
19
|
</div>
|
20
20
|
</Col>
|
21
21
|
<Col md="3">
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<div class="row-flex align-items-center p-0">
|
8
8
|
<div class="col">
|
9
|
-
<div class="text-dark h6"><Icon iconName={icon} />{sensorName}</div>
|
9
|
+
<div class="text-dark text-break h6"><Icon iconName={icon} />{sensorName}</div>
|
10
10
|
<slot name="status" />
|
11
11
|
</div>
|
12
12
|
<div class="col p-0">
|
@@ -10,21 +10,23 @@
|
|
10
10
|
const toggleMaximize = () => {
|
11
11
|
maximized = !maximized;
|
12
12
|
if (maximized) {
|
13
|
-
cardLength
|
14
|
-
|
13
|
+
if (cardLength <= 6) {
|
14
|
+
cardLength *= 2;
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
cardLength = 12;
|
15
18
|
} else {
|
16
19
|
cardLength /= 2;
|
17
|
-
console.log(cardLength);
|
18
20
|
}
|
19
21
|
};
|
22
|
+
|
23
|
+
const getCardSize = (cardLength) => {
|
24
|
+
return `col-md-${cardLength} col-sm-${cardLength} col-lg-${cardLength} col-xl-${cardLength}`;
|
25
|
+
};
|
20
26
|
</script>
|
21
27
|
|
22
28
|
{#key cardLength}
|
23
|
-
<div
|
24
|
-
class="col-12 col-md-{cardLength * 2} col-sm-{cardLength * 2} col-lg-{cardLength < 6
|
25
|
-
? cardLength * 2
|
26
|
-
: cardLength} col-xl-{cardLength}"
|
27
|
-
>
|
29
|
+
<div class="col-12 mb-3 ${getCardSize(cardLength)}">
|
28
30
|
<div bind:this={element}>
|
29
31
|
<div class="card">
|
30
32
|
<Row>
|