import type { Ace } from "ace-builds"; export const AutocompleteOptions = [ // Personal Information "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "phone", // Contact Information "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", // Address Fields "street-address", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", // Phone Numbers "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", // Dates "bday", "bday-day", "bday-month", "bday-year", // Payment Information "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", // Additional Options "sex", "url", "photo", // Special Values "on", // Enables autofill (default) "off", // Disables autofill ] as const; export interface AceEditorOptions { animatedScroll?: boolean; autoScrollEditorIntoView?: boolean; behavioursEnabled?: boolean; copyWithEmptySelection?: boolean; cursorStyle?: "ace" | "slim" | "smooth" | "wide"; customScrollbar?: boolean; displayIndentGuides?: boolean; dragDelay?: number; dragEnabled?: boolean; enableAutoIndent?: boolean; enableBasicAutocompletion?: boolean | any[]; enableKeyboardAccessibility?: boolean; enableLiveAutocompletion?: boolean | any[]; enableMobileMenu?: boolean; enableMultiselect?: boolean; enableSnippets?: boolean; fadeFoldWidgets?: boolean; firstLineNumber?: number; fixedWidthGutter?: boolean; focusTimeout?: number; foldStyle?: "markbegin" | "markbeginend" | "manual"; fontFamily?: string; fontSize?: number; hScrollBarAlwaysVisible?: boolean; hasCssTransforms?: boolean; highlightActiveLine?: boolean; highlightGutterLine?: boolean; highlightIndentGuides?: boolean; highlightSelectedWord?: boolean; indentedSoftWrap?: boolean; keyboardHandler?: string; liveAutocompletionDelay?: number; liveAutocompletionThreshold?: number; maxLines?: number; maxPixelHeight?: number; mergeUndoDeltas?: boolean | "always"; minLines?: number; mode?: string; navigateWithinSoftTabs?: boolean; newLineMode?: Ace.NewLineMode; overwrite?: boolean; placeholder?: string; printMargin?: number | boolean; printMarginColumn?: number; readOnly?: boolean; relativeLineNumbers?: boolean; scrollPastEnd?: number; scrollSpeed?: number; selectionStyle?: string; session?: any; showFoldWidgets?: boolean; showFoldedAnnotations?: boolean; showGutter?: boolean; showInvisibles?: boolean; showLineNumbers?: boolean; showPrintMargin?: boolean; tabSize?: number; textInputAriaLabel?: string; theme?: string; tooltipFollowsMouse?: boolean; useSoftTabs?: boolean; useSvgGutterIcons?: boolean; useWorker?: boolean; vScrollBarAlwaysVisible?: boolean; value?: string; wrap?: number | boolean | "off" | "free" | "printmargin"; wrapBehavioursEnabled?: boolean; wrapMethod?: "code" | "text" | "auto"; }