Lot of updates to Svelte 5 syntax
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
container_class_li?: string|Array<string>;
|
||||
// export let event_session_id_random_li: Array<string>;
|
||||
lq__event_session_obj_li: any;
|
||||
log_lvl?: number;
|
||||
show_location_fields?: boolean;
|
||||
}
|
||||
|
||||
let {
|
||||
container_class_li = [],
|
||||
lq__event_session_obj_li,
|
||||
log_lvl = 0,
|
||||
show_location_fields = true
|
||||
}: Props = $props();
|
||||
|
||||
// Imports
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
|
||||
@@ -8,27 +23,16 @@ import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
// import { events_loc, events_sess, events_slct, events_trigger, events_trig_kv } from '$lib/ae_events_stores';
|
||||
// import { db_events } from "$lib/db_events";
|
||||
|
||||
// Exports
|
||||
export let container_class_li: string|Array<string> = [];
|
||||
|
||||
// export let display_mode: string = 'default'; // 'default', 'compact', 'minimal', 'launcher';
|
||||
// export let link_to_type: string;
|
||||
// export let link_to_id: string;
|
||||
// export let event_session_id_random_li: Array<string>;
|
||||
export let lq__event_session_obj_li: any;
|
||||
export let log_lvl: number = 0;
|
||||
|
||||
export let show_location_fields: boolean = true;
|
||||
|
||||
// *** Functions and Logic
|
||||
if (log_lvl) {
|
||||
console.log(`container_class_li: ${container_class_li}; show_location_fields: ${show_location_fields}`);
|
||||
// console.log(`link_to_type: ${link_to_type}; link_to_id: ${link_to_id}`);
|
||||
}
|
||||
|
||||
// let lq_kv__event_session_obj_li = liveQuery(
|
||||
// () => db_events.sessions
|
||||
// .bulkGet(event_session_id_random_li)
|
||||
// );
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user