darabos commited on
Commit
54c14ab
·
1 Parent(s): d43f961

Update JS dependencies.

Browse files
web/package-lock.json CHANGED
The diff for this file is too large to render. See raw diff
 
web/package.json CHANGED
@@ -10,28 +10,27 @@
10
  "check": "svelte-check --tsconfig ./tsconfig.json"
11
  },
12
  "devDependencies": {
13
- "@sveltejs/vite-plugin-svelte": "^3.0.2",
14
- "@syncedstore/core": "^0.6.0",
15
- "@syncedstore/svelte": "^0.6.0",
16
- "@tsconfig/svelte": "^5.0.4",
17
- "sass": "^1.77.2",
18
- "svelte": "^4.2.12",
19
- "svelte-check": "^3.6.9",
20
- "tslib": "^2.6.2",
21
- "typescript": "^5.4.4",
22
- "unplugin-icons": "^0.18.5",
23
- "vite": "^5.2.8",
24
- "y-websocket": "^2.0.4"
25
  },
26
  "dependencies": {
27
- "@iconify-json/tabler": "^1.1.110",
28
- "@popperjs/core": "^2.11.8",
29
- "@sveltestack/svelte-query": "^1.6.0",
30
- "@xyflow/svelte": "^0.1.3",
31
- "bootstrap": "^5.3.3",
32
- "echarts": "^5.5.0",
33
- "fuse.js": "^7.0.0",
34
- "svelte-echarts": "^1.0.0-rc1",
35
- "tabulator-tables": "^6.2.1"
36
  }
37
  }
 
10
  "check": "svelte-check --tsconfig ./tsconfig.json"
11
  },
12
  "devDependencies": {
13
+ "@sveltejs/vite-plugin-svelte": "3.1.2",
14
+ "@syncedstore/core": "0.6.0",
15
+ "@syncedstore/svelte": "0.6.0",
16
+ "@tsconfig/svelte": "5.0.4",
17
+ "sass": "1.79.5",
18
+ "svelte": "4.2.19",
19
+ "svelte-check": "4.0.5",
20
+ "tslib": "2.7.0",
21
+ "typescript": "5.6.3",
22
+ "unplugin-icons": "0.19.3",
23
+ "vite": "5.4.9",
24
+ "y-websocket": "2.0.4"
25
  },
26
  "dependencies": {
27
+ "@iconify-json/tabler": "1.2.5",
28
+ "@popperjs/core": "2.11.8",
29
+ "@sveltestack/svelte-query": "1.6.0",
30
+ "@xyflow/svelte": "0.1.21",
31
+ "bootstrap": "5.3.3",
32
+ "echarts": "5.5.1",
33
+ "fuse.js": "7.0.0",
34
+ "svelte-echarts": "^1.0.0-rc3"
 
35
  }
36
  }
web/src/LynxKiteNode.svelte CHANGED
@@ -11,6 +11,10 @@
11
  export let containerStyle = '';
12
  export let id: $$Props['id']; id;
13
  export let data: $$Props['data'];
 
 
 
 
14
  export let dragHandle: $$Props['dragHandle'] = undefined; dragHandle;
15
  export let type: $$Props['type'] = undefined; type;
16
  export let selected: $$Props['selected'] = undefined; selected;
 
11
  export let containerStyle = '';
12
  export let id: $$Props['id']; id;
13
  export let data: $$Props['data'];
14
+ export let deletable: $$Props['deletable'] = undefined; deletable;
15
+ export let draggable: $$Props['draggable'] = undefined; draggable;
16
+ export let parentId: $$Props['parentId'] = undefined; parentId;
17
+ export let selectable: $$Props['selectable'] = undefined; selectable;
18
  export let dragHandle: $$Props['dragHandle'] = undefined; dragHandle;
19
  export let type: $$Props['type'] = undefined; type;
20
  export let selected: $$Props['selected'] = undefined; selected;
web/src/NodeWithVisualization.svelte CHANGED
@@ -5,7 +5,7 @@
5
  import { init } from 'echarts';
6
  type $$Props = NodeProps;
7
  export let data: $$Props['data'];
8
- $: display = JSON.parse(JSON.stringify(data?.display?.value));
9
  </script>
10
 
11
  <NodeWithParams {...$$props}>
 
5
  import { init } from 'echarts';
6
  type $$Props = NodeProps;
7
  export let data: $$Props['data'];
8
+ $: display = data?.display?.value ? JSON.parse(JSON.stringify(data.display.value)) : {};
9
  </script>
10
 
11
  <NodeWithParams {...$$props}>
web/src/Table.svelte CHANGED
@@ -1,38 +1,22 @@
1
  <script lang="ts">
2
- import {TabulatorFull as Tabulator} from 'tabulator-tables';
3
- import {onMount} from 'svelte';
4
-
5
  export let data, columns;
6
-
7
- let tableComponent;
8
- let tab;
9
-
10
- // The rows in the data are arrays, but Tabulator expects objects.
11
- const objs = [];
12
- $: {
13
- objs.splice();
14
- for (const row of data) {
15
- const obj = {};
16
- for (let i = 0; i < columns.length; i++) {
17
- let d = row[i];
18
- if (typeof d !== 'string' && typeof d !== 'number') {
19
- d = JSON.stringify(d);
20
- }
21
- obj[columns[i]] = d;
22
- }
23
- objs.push(obj);
24
- }
25
- }
26
-
27
- onMount(() => {
28
- tab = new Tabulator(tableComponent, {
29
- data: objs,
30
- columns: columns.map(c => ({title: c, field: c, widthGrow: 1})),
31
- height: '311px',
32
- reactiveData: true,
33
- layout: "fitColumns",
34
- });
35
- });
36
  </script>
37
 
38
- <div bind:this={tableComponent}></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <script lang="ts">
 
 
 
2
  export let data, columns;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  </script>
4
 
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ {#each columns as column}
9
+ <th>{column}</th>
10
+ {/each}
11
+ </tr>
12
+ </thead>
13
+ <tbody>
14
+ {#each data as row}
15
+ <tr>
16
+ {#each columns as column}
17
+ <td>{row[column]}</td>
18
+ {/each}
19
+ </tr>
20
+ {/each}
21
+ </tbody>
22
+ </table>
web/src/app.scss CHANGED
@@ -1,7 +1,6 @@
1
  // Import all of Bootstrap's CSS
2
  $form-select-indicator-color: oklch(90% 0.01 55);
3
  @import "bootstrap/scss/bootstrap";
4
- @import "tabulator-tables";
5
  :root {
6
  --bs-border-color: oklch(90% 0.01 55);
7
  }
 
1
  // Import all of Bootstrap's CSS
2
  $form-select-indicator-color: oklch(90% 0.01 55);
3
  @import "bootstrap/scss/bootstrap";
 
4
  :root {
5
  --bs-border-color: oklch(90% 0.01 55);
6
  }