ui.svelte.ts

Declarations
#

4 declarations

view source

Ui
#

ui.svelte.ts view source

inheritance

extends:
  • Cell<typeof UiJson>

show_main_dialog

type boolean

show_sidebar

type boolean

tutorial_for_database

type boolean

tutorial_for_chats

type boolean

tutorial_for_prompts

type boolean

tutorial_for_diskfiles

type boolean

pending_element_to_focus_key

Consumed by components like ContentEditor for focusing elements.

type string | number | null

constructor

type new (options: UiOptions): Ui

options

toggle_main_menu

Toggle the main menu visibility.

type (value?: boolean): boolean

value
type boolean
default !this.show_main_dialog
returns boolean

toggle_sidebar

Toggle the sidebar visibility.

type (value?: boolean): boolean

value
type boolean
default !this.show_sidebar
returns boolean

UiJson
#

ui.svelte.ts view source

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

UiJsonInput
#

ui.svelte.ts view source

{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; show_main_dialog?: boolean | undefined; show_sidebar?: boolean | undefined; tutorial_for_database?: boolean | undefined; tutorial_for_chats?: boolean | undefined; tutorial_for_prompts?: boolean | undefined; tutorial_for_diskfiles?...

UiOptions
#

Depends on
#

Imported by
#