@enki-tek/fms-web-components 0.1.17 → 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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enki-tek/fms-web-components",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "devDependencies": {
5
5
  "@storybook/addon-essentials": "^7.6.14",
6
6
  "@storybook/addon-interactions": "^7.6.14",