sharedui

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlueprintLocalFilePicker

func BlueprintLocalFilePicker(styles *stylespkg.Styles) (filepicker.Model, error)

BlueprintLocalFilePicker creates a new filepicker model for selecting a local blueprint file relative to the current working directory.

func ToFullBlueprintPath

func ToFullBlueprintPath(blueprintFile, source string) string

ToFullBlueprintPath returns the full path to the blueprint file based on the source.

Types

type BluelinkListItem

type BluelinkListItem struct {
	Key   string
	Label string
	Desc  string
}

BluelinkListItem represents an item in a Bluelink list component.

func (BluelinkListItem) Description

func (i BluelinkListItem) Description() string

func (BluelinkListItem) FilterValue

func (i BluelinkListItem) FilterValue() string

func (BluelinkListItem) Title

func (i BluelinkListItem) Title() string

type ClearSelectedBlueprintMsg

type ClearSelectedBlueprintMsg struct{}

type ItemDelegate

type ItemDelegate struct {
	// contains filtered or unexported fields
}

ItemDelegate renders list items using Bluelink styles.

func (ItemDelegate) Height

func (d ItemDelegate) Height() int

func (ItemDelegate) Render

func (d ItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (ItemDelegate) Spacing

func (d ItemDelegate) Spacing() int

func (ItemDelegate) Update

func (d ItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type SelectBlueprintFileErrorMsg

type SelectBlueprintFileErrorMsg struct {
	Err error
}

type SelectBlueprintLocalFileModel

type SelectBlueprintLocalFileModel struct {
	// contains filtered or unexported fields
}

func NewSelectBlueprintLocalFile

func NewSelectBlueprintLocalFile(
	fp *filepicker.Model,
	styles *stylespkg.Styles,
) (*SelectBlueprintLocalFileModel, error)

func (SelectBlueprintLocalFileModel) Init

func (SelectBlueprintLocalFileModel) Update

func (SelectBlueprintLocalFileModel) View

type SelectBlueprintModel

type SelectBlueprintModel struct {
	// contains filtered or unexported fields
}

func NewSelectBlueprint

func NewSelectBlueprint(
	blueprintFile string,
	autoSelect bool,
	action string,
	styles *stylespkg.Styles,
	fp *filepicker.Model,
) (*SelectBlueprintModel, error)

func (SelectBlueprintModel) Init

func (m SelectBlueprintModel) Init() tea.Cmd

func (SelectBlueprintModel) Update

func (m SelectBlueprintModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SelectBlueprintModel) View

func (m SelectBlueprintModel) View() string

type SelectBlueprintMsg

type SelectBlueprintMsg struct {
	BlueprintFile string
	Source        string
}

type SelectBlueprintRemoteFileModel

type SelectBlueprintRemoteFileModel struct {
	// contains filtered or unexported fields
}

func NewSelectBlueprintRemoteFile

func NewSelectBlueprintRemoteFile(
	blueprintFile string,
	styles *stylespkg.Styles,
) *SelectBlueprintRemoteFileModel

func (SelectBlueprintRemoteFileModel) Init

func (SelectBlueprintRemoteFileModel) Update

func (SelectBlueprintRemoteFileModel) View

type SelectBlueprintSourceMsg

type SelectBlueprintSourceMsg struct {
	Source string
}

type SelectBlueprintStartMsg

type SelectBlueprintStartMsg struct {
	Selection string
}

type SelectModel

type SelectModel struct {
	// contains filtered or unexported fields
}

func NewSelect

func NewSelect(
	title string,
	listItems []list.Item,
	styles *stylespkg.Styles,
	selectCommand func(string) tea.Cmd,
	enableFiltering bool,
) *SelectModel

func (SelectModel) Init

func (m SelectModel) Init() tea.Cmd

func (SelectModel) Update

func (m SelectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SelectModel) View

func (m SelectModel) View() string

type SelectWithPreviewModel

type SelectWithPreviewModel struct {
	// contains filtered or unexported fields
}

func NewSelectWithPreview

func NewSelectWithPreview(
	title string,
	listItems []list.Item,
	styles *stylespkg.Styles,
	selectCommand func(string) tea.Cmd,
	enableFiltering bool,
) *SelectWithPreviewModel

func (SelectWithPreviewModel) Init

func (m SelectWithPreviewModel) Init() tea.Cmd

func (SelectWithPreviewModel) Update

func (m SelectWithPreviewModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SelectWithPreviewModel) View

func (m SelectWithPreviewModel) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL