diff --git a/src/lib/components/elements/data-tables/core/data-table.svelte b/src/lib/components/elements/data-tables/core/data-table.svelte new file mode 100644 index 0000000..bc7237d --- /dev/null +++ b/src/lib/components/elements/data-tables/core/data-table.svelte @@ -0,0 +1,128 @@ + + +
+
+ + + {#each $headerRows as headerRow (headerRow.id)} + + + {#each headerRow.cells as cell (cell.id)} + + + {#if props.sort.disabled} + + {:else} + + {/if} + + + {/each} + + + {/each} + + + {#each $pageRows as row (row.id)} + + + {#each row.cells as cell (cell.id)} + + + + + + {/each} + + + {/each} + + +
+
+ + +
+
\ No newline at end of file diff --git a/src/lib/components/elements/data-tables/employees-data-table.svelte b/src/lib/components/elements/data-tables/employees-data-table.svelte new file mode 100644 index 0000000..a856333 --- /dev/null +++ b/src/lib/components/elements/data-tables/employees-data-table.svelte @@ -0,0 +1,77 @@ + + + diff --git a/src/lib/components/elements/data-tables/employees.svelte b/src/lib/components/elements/data-tables/employees.svelte deleted file mode 100644 index dd1ab65..0000000 --- a/src/lib/components/elements/data-tables/employees.svelte +++ /dev/null @@ -1,79 +0,0 @@ - - -
- - - {#each $headerRows as headerRow} - - - {#each headerRow.cells as cell (cell.id)} - - - - - - {/each} - - - {/each} - - - {#each $pageRows as row (row.id)} - - - {#each row.cells as cell (cell.id)} - - - - - - {/each} - - - {/each} - - -
\ No newline at end of file diff --git a/src/lib/components/elements/data-views/employees-data-view.svelte b/src/lib/components/elements/data-views/employees-data-view.svelte new file mode 100644 index 0000000..6207883 --- /dev/null +++ b/src/lib/components/elements/data-views/employees-data-view.svelte @@ -0,0 +1,32 @@ + + + + + + + + + + + + + filterValue.set(s)} /> + + + \ No newline at end of file diff --git a/src/lib/components/ui/search/search.svelte b/src/lib/components/ui/search/search.svelte index 2b9c969..390f619 100644 --- a/src/lib/components/ui/search/search.svelte +++ b/src/lib/components/ui/search/search.svelte @@ -1,11 +1,11 @@
diff --git a/src/lib/types/constraints.ts b/src/lib/types/constraints.ts index 695d8eb..e2c1360 100644 --- a/src/lib/types/constraints.ts +++ b/src/lib/types/constraints.ts @@ -4,9 +4,9 @@ import { Location, Person, Task } from "$lib/types/core.ts"; // ToDo: Discuss with Oz & add more constraints export enum ConstraintType { - NoLocations, - NoTasks, - NoPeople + NoLocations = "NoLocations", + NoTasks = "NoTasks", + NoPeople = "NoPeople" } export type NoLocationsConstraint = { diff --git a/src/routes/employees/+page.svelte b/src/routes/employees/+page.svelte index 37c50f8..e144d77 100644 --- a/src/routes/employees/+page.svelte +++ b/src/routes/employees/+page.svelte @@ -1,9 +1,9 @@
- +
\ No newline at end of file