diskfiles_editor.svelte.ts

Declarations
#

5 declarations

view source

DiskfilesEditor
#

diskfiles_editor.svelte.ts view source

Editor state management for diskfiles.

inheritance

extends:
  • Cell<typeof DiskfilesEditorJson>

show_sort_controls

Controls visibility of sort controls in the file explorer.

type boolean

tabs

Tabs for managing the open diskfiles.

type DiskfileTabs

readonly

constructor

type new (options: DiskfilesEditorOptions): DiskfilesEditor

options

preview_diskfile

Opens a diskfile in preview mode.

type (diskfile_id: string & $brand<"Uuid">): void

diskfile_id
type string & $brand<"Uuid">
returns void

open_diskfile

Opens a diskfile in permanent mode.

type (diskfile_id: string & $brand<"Uuid">): void

diskfile_id
type string & $brand<"Uuid">
returns void

reorder_tabs

Reorders tabs.

type (from_index: number, to_index: number): void

from_index
type number
to_index
type number
returns void

select_tab

Selects a tab by id.

type (tab_id: string & $brand<"Uuid">): void

tab_id
type string & $brand<"Uuid">
returns void

close_tab

Closes a tab by id.

type (tab_id: string & $brand<"Uuid">): void

tab_id
type string & $brand<"Uuid">
returns void

reopen_last_closed_tab

Reopens the last closed tab.

type (): void

returns void

promote_preview_tab

Promotes the current preview tab to permanent.

type (): void

returns void

open_tab

Opens (makes permanent) a tab by id.

type (tab_id: string & $brand<"Uuid">): void

tab_id
type string & $brand<"Uuid">
returns void

handle_file_modified

Handles when a diskfile's content is modified.

type (diskfile_id: string & $brand<"Uuid">): void

diskfile_id
type string & $brand<"Uuid">
returns void

sync_selected_file

Syncs the selected diskfile in diskfiles with the selected tab.

type (): void

returns void

toggle_sort_controls

Toggles the visibility of sort controls in the file explorer.

type (value?: boolean): void

value
type boolean
default !this.show_sort_controls
returns void

DiskfilesEditorJson
#

diskfiles_editor.svelte.ts view source

ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime">>; updated: ZodDefault<...>; show_sort_controls: ZodDefault<...>; }, $strict>

DiskfilesEditorJsonInput
#

DiskfilesEditorOptions
#

DiskfilesEditorSchema
#

Depends on
#

Imported by
#