diff --git a/src/routes/components/RangeFilter.svelte b/src/routes/components/RangeFilter.svelte new file mode 100644 index 0000000..19ae376 --- /dev/null +++ b/src/routes/components/RangeFilter.svelte @@ -0,0 +1,75 @@ + + +
+
+ + +
+
+ + +
+
diff --git a/src/routes/components/ServerPartsGrid.svelte b/src/routes/components/ServerPartsGrid.svelte index 52efa3f..c2631ab 100644 --- a/src/routes/components/ServerPartsGrid.svelte +++ b/src/routes/components/ServerPartsGrid.svelte @@ -6,10 +6,14 @@ import CheckBoxFilter from './CheckBoxFilter.svelte' import { mount } from 'svelte' import CellLink from './CellLink.svelte' + import RangeFilter from './RangeFilter.svelte' const uid = $props.id() const { rowData } = $props() + const filterDivClass = + 'm-1 rounded-sm border-1 bg-gray-50 px-1 drop-shadow-md' + let gridApi: GridApi | undefined = $state() const columnDefs: ColDef[] = [ @@ -125,11 +129,29 @@
{#if gridApi} {#each checkboxFilterDefs as { label, column } (`${uid}-${column}`)} -
+
{label}
{/each} +
+ Capacity + value * 1000} + /> +
+
+ Warranty Months + value * 30} + /> +
{:else} {/if}