diff --git a/front/js/svelte/autocomplete/Selectlist.svelte b/front/js/svelte/autocomplete/Selectlist.svelte index 2da674c..b48d1b1 100644 --- a/front/js/svelte/autocomplete/Selectlist.svelte +++ b/front/js/svelte/autocomplete/Selectlist.svelte @@ -52,9 +52,7 @@ on:click={(e) => select(e, suggestion)} on:keypress={(e) => select(e, suggestion)} > - {suggestion.label} - {/each} {/if} diff --git a/front/js/svelte/common/Dropdown.svelte b/front/js/svelte/common/Dropdown.svelte index f78271f..3a4480e 100644 --- a/front/js/svelte/common/Dropdown.svelte +++ b/front/js/svelte/common/Dropdown.svelte @@ -8,6 +8,10 @@ dropdownMenu.classList.remove("hide") } + export function close() { + dropdownMenu.classList.add("hide") + } + function handleClickOutside() { dropdownMenu.classList.add("hide") } diff --git a/front/js/svelte/common/Icon.svelte b/front/js/svelte/common/Icon.svelte index fdd88e0..06cf6f0 100644 --- a/front/js/svelte/common/Icon.svelte +++ b/front/js/svelte/common/Icon.svelte @@ -109,9 +109,12 @@ path: '', viewBox: "0 0 24 24", }, + "arrow-left": { + path: '', + viewBox: "0 0 24 24", + }, }; - export let width = 16; export let height = 16; export let icon = ""; diff --git a/front/js/svelte/content/tools/FilterFields.svelte b/front/js/svelte/content/tools/FilterFields.svelte index 9fd7c65..8c84935 100644 --- a/front/js/svelte/content/tools/FilterFields.svelte +++ b/front/js/svelte/content/tools/FilterFields.svelte @@ -1,8 +1,8 @@ -
- -
- - Filter -
-
- -
-
- -
-
- {#if selectedField?.info?.name === "reference" && selectedOperator.name === "eq"} - - {:else} +
+ +
+ + Filter +
+
+ + + +
+
+ {#if !activeField} + + {#each dataFields as field} + + {/each} + {/if} + + {#if activeField && !activeOperator} + +
field: {activeField.label}
+ + {#each activeOperators as operator} + + {/each} + {/if} + {#if activeField && activeOperator} + +
field: {activeField.label} operator: {activeOperator.label}
+
- {/if} -
-
+
-
+ {/if} -
-
-
-
- +
+
+ {#if !activeReference} + + {#each referenceFields as field} + + {/each} + {/if} + {#if activeReference} + +
field: {activeReference.label}
+
+
+ {/if} + + +
+
+ + + + + + - + + +
+
+
diff --git a/front/js/svelte/content/tools/FilterReferenceInput.svelte b/front/js/svelte/content/tools/FilterReferenceInput.svelte index 4fa6010..e65b79e 100644 --- a/front/js/svelte/content/tools/FilterReferenceInput.svelte +++ b/front/js/svelte/content/tools/FilterReferenceInput.svelte @@ -42,35 +42,37 @@ } +
+ - +
-
diff --git a/front/js/svelte/dialog/Dialog.svelte b/front/js/svelte/dialog/Dialog.svelte index 89ee5de..56f6701 100644 --- a/front/js/svelte/dialog/Dialog.svelte +++ b/front/js/svelte/dialog/Dialog.svelte @@ -58,10 +58,7 @@ {#if data.schema} - -
- +
+ +
+ +
+ +
\ No newline at end of file diff --git a/front/js/svelte/files/Preview.svelte b/front/js/svelte/files/Preview.svelte index 2552ea4..8fc6e34 100644 --- a/front/js/svelte/files/Preview.svelte +++ b/front/js/svelte/files/Preview.svelte @@ -73,14 +73,5 @@ border-radius: 12px; padding: 4px; } - .file-preview-small{ - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - gap: 2px; - border-radius: 12px; - padding: 4px; - background: var(--background); - } + \ No newline at end of file diff --git a/front/js/svelte/records/Edit.svelte b/front/js/svelte/records/Edit.svelte index f5612a1..64b63d7 100644 --- a/front/js/svelte/records/Edit.svelte +++ b/front/js/svelte/records/Edit.svelte @@ -154,7 +154,7 @@
- + {#if isCreateMode}