@enki-tek/fms-web-components 0.1.16 → 0.1.18

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.
@@ -3,12 +3,15 @@
3
3
  import { Col, Row } from 'sveltestrap';
4
4
  import Sortable from 'sortablejs';
5
5
  export let id;
6
+ export let sortable = true;
6
7
  onMount(() => {
7
8
  const el = document.getElementById(id);
8
- Sortable.create(el, {
9
- animation: 150,
10
- ghostClass: 'blue-background-class'
11
- });
9
+ if (sortable) {
10
+ Sortable.create(el, {
11
+ animation: 150,
12
+ ghostClass: 'blue-background-class'
13
+ });
14
+ }
12
15
  });
13
16
  </script>
14
17
 
@@ -3,6 +3,7 @@
3
3
  /** @typedef {typeof __propDef.slots} SortableGridSlots */
4
4
  export default class SortableGrid extends SvelteComponentTyped<{
5
5
  id: any;
6
+ sortable?: boolean | undefined;
6
7
  }, {
7
8
  [evt: string]: CustomEvent<any>;
8
9
  }, {
@@ -16,6 +17,7 @@ import { SvelteComponentTyped } from "svelte";
16
17
  declare const __propDef: {
17
18
  props: {
18
19
  id: any;
20
+ sortable?: boolean | undefined;
19
21
  };
20
22
  events: {
21
23
  [evt: string]: CustomEvent<any>;
@@ -64,7 +64,7 @@
64
64
  font-family: Roboto;
65
65
  }
66
66
  .blip {
67
- animation: blip 1s infinite; /* Continuous animation */
67
+ animation: blip 5s; /* Continuous animation */
68
68
  }
69
69
  @keyframes blip {
70
70
  0% {
@@ -5,7 +5,7 @@
5
5
  </script>
6
6
  <div class="row align-items-center p-0">
7
7
  <div class="col">
8
- <div class="text-dark"><Icon iconName="{icon}" />{sensorName}</div>
8
+ <div class="text-dark h6"><Icon iconName="{icon}" />{sensorName}</div>
9
9
  <slot name='status' />
10
10
  </div>
11
11
  <div class="col p-0">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",