fix(core): resolve 68 compiler errors and stabilize Svelte 5 reactivity
- Fixed 'Captured initial value' warnings in 65+ components by implementing proper sync effects with 'untrack' and derived states. - Hardened Event Settings JSON editors using a temporary string-buffer pattern to safely decouple object-based data from CodeMirror's string requirements. - Resolved strict TypeScript mismatches across core routes (Accounts, Sites, etc.) and improved property indexing safety in views. - Patched Flowbite-Svelte Drawer transitions for Svelte 5 compatibility using prop spreading. - Added comprehensive safety comments to high-risk reactivity blocks. - Synchronized 'ae_types.ts' with V3 backend models.
This commit is contained in:
@@ -563,17 +563,17 @@
|
||||
>-- purpose not set --</option
|
||||
>
|
||||
{#if $events_loc.pres_mgmt?.file_purpose_option_kv}
|
||||
{#each Object.entries($events_loc.pres_mgmt.file_purpose_option_kv) as [key, file_purpose_option]}
|
||||
{#each Object.entries($events_loc.pres_mgmt.file_purpose_option_kv as any) as [key, file_purpose_option]}
|
||||
<option
|
||||
value={key}
|
||||
selected={event_file_obj.file_purpose ===
|
||||
key}
|
||||
disabled={file_purpose_option?.disabled &&
|
||||
disabled={(file_purpose_option as any)?.disabled &&
|
||||
!$ae_loc.edit_mode}
|
||||
class:hidden={file_purpose_option?.hidden &&
|
||||
class:hidden={(file_purpose_option as any)?.hidden &&
|
||||
!$ae_loc.edit_mode}
|
||||
>
|
||||
{file_purpose_option?.name}
|
||||
{(file_purpose_option as any)?.name}
|
||||
</option>
|
||||
{/each}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user