svelte-common 4.17.5 → 4.17.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-common",
3
- "version": "4.17.5",
3
+ "version": "4.17.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/index.svelte CHANGED
@@ -9,8 +9,6 @@
9
9
  import ServerDetails from "./components/ServerDetails.svelte";
10
10
  import ServiceWorkerDetails from "./components/ServiceWorkerDetails.svelte";
11
11
  import ServiceWorkerRegistrationDetails from "./components/ServiceWorkerRegistrationDetails.svelte";
12
- import DataGrid from "./components/DataGrid.svelte";
13
- import DataGridColumn from "./components/DataGridColumn.svelte";
14
12
  import TopNav from "./components/TopNav.svelte";
15
13
  import Menue from "./components/Menue.svelte";
16
14
  import Collapse from "./components/Collapse.svelte";
@@ -23,8 +21,6 @@
23
21
  Duration,
24
22
  TopNav,
25
23
  Menue,
26
- DataGrid,
27
- DataGridColumn,
28
24
  Collapse,
29
25
  Modal,
30
26
  Peer,
@@ -53,7 +49,6 @@
53
49
  SORT_ASCENDING,
54
50
  SORT_DESCENDING
55
51
  } from "./sorting.mjs";
56
- export { filter } from "./filter.mjs";
57
-
52
+ export { filter } from "./filter.mjs";
58
53
  export { initializeServiceWorker } from "./service-worker.mjs";
59
54
  </script>
@@ -1,28 +0,0 @@
1
- <script>
2
- import { setContext } from "svelte";
3
- import { DataGrid, DATA_GRID} from "../data-grid.mjs";
4
-
5
- export let source = { entries: [] };
6
-
7
- const dataGrid = new DataGrid();
8
- setContext(DATA_GRID, dataGrid);
9
- </script>
10
-
11
- <table>
12
- <!--<slot/>-->
13
- <thead>
14
- {#each dataGrid.columns as column}
15
- {column.id} {column.headerComponent}
16
- <svelte:component this={column.headerComponent} />
17
- {/each}
18
- </thead>
19
- <tbody>
20
- {#each source.entries as entry}
21
- <tr>
22
- {#each dataGrid.columns as column}
23
- <td>{entry[column.id]}</td>
24
- {/each}
25
- </tr>
26
- {/each}
27
- </tbody>
28
- </table>
@@ -1,18 +0,0 @@
1
- <script>
2
- import { getContext } from "svelte";
3
- import { DATA_GRID} from "../data-grid.mjs";
4
-
5
- export let id;
6
-
7
- const dataGrid = getContext(DATA_GRID);
8
-
9
- let headerComponent;
10
-
11
- dataGrid.addColumn({ id, headerComponent });
12
- </script>
13
-
14
- <th {id} bind:this={headerComponent}>
15
- <slot name="header">
16
- {id}
17
- </slot>
18
- </th>
package/src/data-grid.mjs DELETED
@@ -1,10 +0,0 @@
1
-
2
- export const DATA_GRID = "DATA_GRID";
3
-
4
- export class DataGrid {
5
- columns = [];
6
-
7
- addColumn(c) {
8
- this.columns.push(c);
9
- }
10
- }