1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-07 06:16:05 +02:00

chore(web): unique ID generation (#9932)

* chore(web): automatically generate unique IDs

* fix: revert changes to Slider

* chore: add test for id store
This commit is contained in:
Ben
2024-06-01 22:58:35 +00:00
committed by GitHub
parent 4e16e2520d
commit 01f52c9021
52 changed files with 83 additions and 150 deletions

View File

@ -19,17 +19,18 @@
import { clickOutside } from '$lib/actions/click-outside';
import { focusOutside } from '$lib/actions/focus-outside';
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
import { uniqueIdStore } from '$lib/stores/unique-id.store';
/**
* Unique identifier for the combobox.
*/
export let id: string;
export let label: string;
export let hideLabel = false;
export let options: ComboBoxOption[] = [];
export let selectedOption: ComboBoxOption | undefined;
export let placeholder = '';
/**
* Unique identifier for the combobox.
*/
let id: string = uniqueIdStore.generateId();
/**
* Indicates whether or not the dropdown autocomplete list should be visible.
*/