Files
openchamber-android-native/third_party/mygo/internal/uimigrate/uiapi.go
T
OpenChamber 6c0ee61750 feat: port the client to MyGo native UI (0.3.0)
Switch from Asuka to MyGo, keeping the API client and the feature set:

- servers: saved servers, passwordless and password login, proxy,
  self-signed certificates, per-server device tokens (Keystore), connect
  form, instance list sheet with switch/disconnect
- sessions: virtualized list, search, new session, rename/archive/delete,
  running indicator, event stream keeps it live
- chat: pushed window with system back bar, streaming Markdown via
  ui/markdown, reasoning and tool rows with image previews, footer menu
  (read aloud via a Kotlin TTS plugin, copy, fork), user message menu
  (copy, revert, fork), context usage ring and detail sheet, attachments
  (photos/files via the document picker), permissions
- release builds allow plain http:// LAN servers (Go's net/http dials
  directly, no cleartext manifest needed)
- a local fork of MyGo (third_party/mygo) lowers the Android host's
  minSdk to 24 (Android 7.0); Go 1.27.4 via mise

Version 0.3.0.
2026-11-18 13:22:59 +08:00

435 lines
14 KiB
Go

// Code generated by go test ./internal/uimigrate -update from package ui; DO NOT EDIT.
package uimigrate
// uiResults maps each function of package ui that returns one Element or
// custom parts value to that result's type. Other calls make neither.
var uiResults = map[string]string{
"Accordion": "Element",
"AccordionBase": "AccordionParts",
"AccordionItem": "Element",
"Autocomplete": "Element",
"Avatar": "Element",
"BackButton": "Element",
"Badge": "Element",
"Box": "Element",
"Breadcrumbs": "Element",
"Button": "Element",
"ButtonBase": "Element",
"Calendar": "Element",
"Checkbox": "Element",
"CheckboxBase": "Element",
"CheckboxGroup": "Element",
"CheckboxState": "Element",
"CheckboxStateBase": "Element",
"Collapsible": "Element",
"CollapsibleBase": "CollapsibleParts",
"ColorPicker": "Element",
"ColorWell": "Element",
"Column": "Element",
"Combobox": "Element",
"ComboboxBase": "ComboboxParts",
"ContextMenuBase": "MenuParts",
"DateInput": "Element",
"DecimalInput": "Element",
"DialogBase": "Element",
"Divider": "Element",
"EditableText": "Element",
"Field": "Element",
"Fieldset": "Element",
"FindBar": "Element",
"Form": "Element",
"ForwardButton": "Element",
"Grid": "Element",
"GridView": "Element",
"Icon": "Element",
"Image": "Element",
"Link": "Element",
"List": "Element",
"MenuBase": "MenuParts",
"MenuButton": "Element",
"Meter": "Element",
"Modal": "Element",
"NativeView": "Element",
"NumberInput": "Element",
"Outline": "Element",
"OutlineTable": "Element",
"Popover": "Element",
"PopoverBase": "Element",
"PopoverMenuButton": "Element",
"PrimaryButton": "Element",
"PrimarySplitButton": "SplitButtonParts",
"Progress": "Element",
"Radio": "Element",
"RadioBase": "Element",
"RadioGroup": "Element",
"RangeSlider": "Element",
"Rating": "Element",
"RichText": "Element",
"Row": "Element",
"Scroll": "Element",
"ScrollBoth": "Element",
"ScrollHorizontal": "Element",
"SearchField": "Element",
"Segmented": "Element",
"SegmentedBase": "SegmentedParts",
"Select": "Element",
"SelectBase": "SelectParts",
"SelectBaseOpen": "SelectParts",
"Sidebar": "Element",
"SidebarItem": "Element",
"SidebarSection": "Element",
"Slider": "Element",
"SliderBase": "Element",
"Spacer": "Element",
"Spinner": "Element",
"Split": "Element",
"SplitButton": "SplitButtonParts",
"SplitPercent": "Element",
"SplitVertical": "Element",
"SplitVerticalPercent": "Element",
"StepSlider": "Element",
"Stepper": "Element",
"Switch": "Element",
"SwitchBase": "Element",
"Table": "Element",
"Tabs": "Element",
"TabsBase": "TabsParts",
"Text": "Element",
"TextArea": "Element",
"TextAreaBase": "Element",
"TextAreaBuffer": "Element",
"TextAreaBufferBase": "Element",
"TextInput": "Element",
"TextInputBase": "Element",
"TextInputBuffer": "Element",
"TextInputBufferBase": "Element",
"Textf": "Element",
"Themed": "Element",
"TimeInput": "Element",
"ToastBase": "ToastParts",
"ToastViewportBase": "Element",
"Toggle": "Element",
"ToggleBase": "Element",
"ToggleGroup": "Element",
"TokenField": "Element",
"Toolbar": "Element",
"TooltipBase": "Element",
"Tree": "Element",
"TreeBase": "TreeParts",
"TreeItem": "Element",
"Video": "Element",
"WebView": "Element",
}
// elementChains lists the methods of Element that return an Element.
var elementChains = map[string]bool{
"Absolute": true,
"Access": true,
"AccessChildren": true,
"AccessDisabled": true,
"AccessHidden": true,
"AccessSelected": true,
"ActiveDescendant": true,
"AlignContent": true,
"AlignItems": true,
"AlignSelf": true,
"AnimatePose": true,
"AspectRatio": true,
"Attach": true,
"AttachEdgeMargin": true,
"AttachTo": true,
"AttachedOrigin": true,
"AutoComplete": true,
"AutoFocus": true,
"Autocorrect": true,
"Autofill": true,
"BackfaceHidden": true,
"Background": true,
"Balance": true,
"Basis": true,
"BasisPercent": true,
"Bind": true,
"Blur": true,
"Bold": true,
"Border": true,
"BorderColor": true,
"BorderConicGradient": true,
"BorderEndWidth": true,
"BorderLinearGradient": true,
"BorderStartWidth": true,
"BorderStyle": true,
"BorderWidth": true,
"Bottom": true,
"BottomPercent": true,
"Browse": true,
"Busy": true,
"Cache": true,
"Capitalize": true,
"CaretColor": true,
"CaretWidth": true,
"Center": true,
"Checked": true,
"ChildExit": true,
"Children": true,
"Clip": true,
"ClipInset": true,
"ClipInsetPercent": true,
"ClipX": true,
"ClipY": true,
"Column": true,
"ColumnCount": true,
"ColumnIndex": true,
"ColumnSpan": true,
"ColumnStart": true,
"ColumnTracks": true,
"Columns": true,
"ConicGradient": true,
"ContentTransition": true,
"ContextMenu": true,
"Controls": true,
"CopyData": true,
"Current": true,
"Cursor": true,
"Debug": true,
"DecorationColor": true,
"DecorationThickness": true,
"DescribedBy": true,
"Description": true,
"DimDisabled": true,
"Direction": true,
"Disabled": true,
"Dividers": true,
"DottedUnderline": true,
"Drag": true,
"DragData": true,
"DragDataFrom": true,
"DragWindow": true,
"Draggable": true,
"Draw": true,
"DrawObjects": true,
"DrawOver": true,
"Effect": true,
"Ellipsis": true,
"End": true,
"EndPercent": true,
"Error": true,
"ErrorMessage": true,
"Expanded": true,
"Fill": true,
"FillEqually": true,
"FillHeight": true,
"FillWidth": true,
"Fit": true,
"FixedLineHeight": true,
"Focus": true,
"FocusBind": true,
"FocusGroup": true,
"FocusRing": true,
"FocusRingColor": true,
"FocusRingOffset": true,
"Focusable": true,
"Font": true,
"FontFeatures": true,
"FontSize": true,
"FontWeight": true,
"Gap": true,
"GapX": true,
"GapY": true,
"Gradient": true,
"Grayscale": true,
"Grid": true,
"GridRows": true,
"Grow": true,
"HandleInput": true,
"HandleTextInput": true,
"HasPopup": true,
"Height": true,
"HeightPercent": true,
"Hidden": true,
"HitTest": true,
"IgnoreInput": true,
"InputMethod": true,
"InsetShadow": true,
"Invalid": true,
"Invisible": true,
"Italic": true,
"ItemKey": true,
"Justify": true,
"JustifyItems": true,
"JustifySelf": true,
"KeepFocus": true,
"KeepOpen": true,
"KeepScrollbars": true,
"Key": true,
"KeyShortcuts": true,
"Keyboard": true,
"Label": true,
"LabelledBy": true,
"Lang": true,
"Left": true,
"LeftPercent": true,
"LetterSpacing": true,
"Level": true,
"LineHeight": true,
"LinearGradient": true,
"Lines": true,
"Margin": true,
"MarginEnd": true,
"MarginStart": true,
"MarginX": true,
"MarginY": true,
"MaskConicGradient": true,
"MaskLinearGradient": true,
"MaskRadialGradient": true,
"Masks": true,
"Material": true,
"MaxHeight": true,
"MaxHeightPercent": true,
"MaxLength": true,
"MaxLines": true,
"MaxWidth": true,
"MaxWidthPercent": true,
"MaximizeButton": true,
"Menu": true,
"MinHeight": true,
"MinHeightPercent": true,
"MinWidth": true,
"MinWidthPercent": true,
"Mixed": true,
"Modal": true,
"Multiline": true,
"Multiselectable": true,
"NoShadow": true,
"NoWrap": true,
"ObjectPosition": true,
"ObserveInput": true,
"OnChange": true,
"OnClick": true,
"OnPaste": true,
"OnShortcut": true,
"OnSubmit": true,
"OnTextKey": true,
"OnUnmount": true,
"Opacity": true,
"Orientation": true,
"Padding": true,
"PaddingEnd": true,
"PaddingStart": true,
"PaddingX": true,
"PaddingY": true,
"PassThrough": true,
"Password": true,
"Perspective": true,
"Placeholder": true,
"PlaceholderColor": true,
"PopoverMenu": true,
"PopoverMenuButton": true,
"PositionInSet": true,
"PreserveSpaces": true,
"Pretty": true,
"Query": true,
"RadialGradient": true,
"Radius": true,
"Range": true,
"ReadOnly": true,
"Ref": true,
"ReplaceText": true,
"ReturnKey": true,
"Reverse": true,
"Right": true,
"RightPercent": true,
"Role": true,
"RoleDescription": true,
"Rotate": true,
"RotateX": true,
"RotateY": true,
"Row": true,
"RowCount": true,
"RowIndex": true,
"RowSpan": true,
"RowStart": true,
"RowTracks": true,
"RowWidth": true,
"Rows": true,
"Scale": true,
"ScrollIntoView": true,
"ScrollSnap": true,
"ScrollWith": true,
"ScrollbarAxes": true,
"ScrollbarInsets": true,
"ScrollbarStyle": true,
"Scrollbars": true,
"Search": true,
"Selectable": true,
"Selected": true,
"Selection": true,
"SelectionColor": true,
"SetChanged": true,
"SetTextSelection": true,
"Shadow": true,
"Shrink": true,
"SingleLine": true,
"Size": true,
"Skew": true,
"SnapAlign": true,
"SnapAlignX": true,
"SnapAlignY": true,
"Sort": true,
"SplitReset": true,
"Start": true,
"StartPercent": true,
"Step": true,
"Sticky": true,
"Strikethrough": true,
"Stripes": true,
"TabSize": true,
"TabStop": true,
"TextAlign": true,
"TextBackground": true,
"TextCaret": true,
"TextColor": true,
"TextRanges": true,
"TextShadow": true,
"TextStroke": true,
"Tooltip": true,
"Top": true,
"TopPercent": true,
"TrackLines": true,
"TrackScroll": true,
"Transform": true,
"TransformOrigin": true,
"Transition": true,
"Translate": true,
"TranslatePercent": true,
"TranslateZ": true,
"TruncateMiddle": true,
"TruncateStart": true,
"Underline": true,
"UnderlineOffset": true,
"Unselectable": true,
"Value": true,
"Vertical": true,
"WavyUnderline": true,
"Width": true,
"WidthPercent": true,
"Wrap": true,
"WrapReverse": true,
"ZIndex": true,
}
// uiParts lists package ui's custom parts types.
var uiParts = map[string]bool{
"AccordionParts": true,
"CollapsibleParts": true,
"ComboboxParts": true,
"MenuParts": true,
"SegmentedParts": true,
"SelectParts": true,
"SplitButtonParts": true,
"TabsParts": true,
"ToastParts": true,
"TreeItemParts": true,
"TreeParts": true,
}