@enki-tek/fms-web-components 0.1.37 → 0.1.39

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.
@@ -1,10 +1,14 @@
1
1
  const colors = [
2
- "#E02899",
3
- "#FF8800",
4
- "#93E028",
5
- "#70B6F8",
6
- "#7821F1",
7
- "#F1C721"
2
+ "#278BFF",
3
+ "#50E3C2",
4
+ "#FFF14A",
5
+ "#F5A623",
6
+ "#9013FE",
7
+ "#FF6198",
8
+ "#00B8D9",
9
+ "#FFD3B5",
10
+ "#2D9CDB",
11
+ "#828282",
8
12
  ];
9
13
 
10
14
  export const getChartColors = (number = 1) => {
@@ -15,7 +15,7 @@
15
15
  });
16
16
  </script>
17
17
 
18
- <div class="enki-sortable-grid gap-3 mt-3" {id}>
18
+ <div class="enki-sortable-grid row " {id}>
19
19
  <slot />
20
20
  </div>
21
21
 
@@ -5,7 +5,7 @@
5
5
  export let sensor = false;
6
6
  </script>
7
7
 
8
- <div class=" {sensor ? "col-12" : "col-12 col-md-6 col-sm-6 col-lg-6 col-xl-3" } ">
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>
@@ -10,21 +10,23 @@
10
10
  const toggleMaximize = () => {
11
11
  maximized = !maximized;
12
12
  if (maximized) {
13
- cardLength *= 2;
14
- console.log(cardLength);
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",