Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { DOMContext, type ReadableBoxedValues, type WritableBoxedValues, type ReadableBox } from "svelte-toolbelt";2import { Context } from "runed";3import { CustomEventDispatcher } from "../../internal/events.js";4import type { AnyFn, BitsFocusEvent, BitsKeyboardEvent, BitsMouseEvent, BitsPointerEvent, OnChangeFn, RefAttachment, WithRefOpts } from "../../internal/types.js";5import type { Direction } from "../../shared/index.js";6import { IsUsingKeyboard } from "../utilities/is-using-keyboard/is-using-keyboard.svelte.js";7import type { KeyboardEventHandler, PointerEventHandler, MouseEventHandler } from "svelte/elements";8import { RovingFocusGroup } from "../../internal/roving-focus-group.js";9import { PresenceManager } from "../../internal/presence-manager.svelte.js";10export declare const CONTEXT_MENU_TRIGGER_ATTR = "data-context-menu-trigger";11export declare const CONTEXT_MENU_CONTENT_ATTR = "data-context-menu-content";12export declare const MenuCheckboxGroupContext: Context<MenuCheckboxGroupState>;13type MenuVariant = "context-menu" | "dropdown-menu" | "menubar";14export interface MenuRootStateOpts extends ReadableBoxedValues<{15 dir: Direction;16 variant: MenuVariant;17}> {18 onClose: AnyFn;19 /** When closing, if this returns true, exit animations are skipped (instant unmount). */20 shouldSkipExitAnimation?: () => boolean;21}22export declare const MenuOpenEvent: CustomEventDispatcher<unknown>;23export declare const menuAttrs: import("../../internal/attrs.js").CreateBitsAttrsReturn<readonly ["trigger", "content", "sub-trigger", "item", "group", "group-heading", "checkbox-group", "checkbox-item", "radio-group", "radio-item", "separator", "sub-content", "arrow"]>;24export declare class MenuRootState {25 static create(opts: MenuRootStateOpts): MenuRootState;26 readonly opts: MenuRootStateOpts;27 readonly isUsingKeyboard: IsUsingKeyboard;28 ignoreCloseAutoFocus: boolean;29 isPointerInTransit: boolean;30 constructor(opts: MenuRootStateOpts);31 getBitsAttr: typeof menuAttrs.getAttr;32}33interface MenuMenuStateOpts extends WritableBoxedValues<{34 open: boolean;35}>, ReadableBoxedValues<{36 onOpenChangeComplete: OnChangeFn<boolean>;37}> {38}39export declare class MenuMenuState {40 static create(opts: MenuMenuStateOpts, root: MenuRootState): MenuMenuState;41 readonly opts: MenuMenuStateOpts;42 readonly root: MenuRootState;43 readonly parentMenu: MenuMenuState | null;44 contentId: ReadableBox<string>;45 contentNode: HTMLElement | null;46 contentPresence: PresenceManager;47 triggerNode: HTMLElement | null;48 constructor(opts: MenuMenuStateOpts, root: MenuRootState, parentMenu: MenuMenuState | null);49 toggleOpen(): void;50 onOpen(): void;51 onClose(): void;52}53interface MenuContentStateOpts extends WithRefOpts, ReadableBoxedValues<{54 loop: boolean;55 onCloseAutoFocus: (event: Event) => void;56}> {57 isSub?: boolean;58}59export declare class MenuContentState {60 #private;61 static create(opts: MenuContentStateOpts): MenuContentState;62 readonly opts: MenuContentStateOpts;63 readonly parentMenu: MenuMenuState;64 readonly rovingFocusGroup: RovingFocusGroup;65 readonly domContext: DOMContext;66 readonly attachment: RefAttachment;67 search: string;68 mounted: boolean;69 constructor(opts: MenuContentStateOpts, parentMenu: MenuMenuState);70 onCloseAutoFocus: (e: Event) => void;71 handleTabKeyDown(e: BitsKeyboardEvent): void;72 onkeydown(e: BitsKeyboardEvent): void;73 onblur(e: BitsFocusEvent): void;74 onfocus(_: BitsFocusEvent): void;75 onItemEnter(): boolean;76 onItemLeave(e: BitsPointerEvent): void;77 onTriggerLeave(): boolean;78 handleInteractOutside(e: PointerEvent): void;79 get shouldRender(): boolean;80 readonly snippetProps: {81 open: boolean;82 };83 readonly props: {84 readonly onkeydown: (e: BitsKeyboardEvent) => void;85 readonly onblur: (e: BitsFocusEvent) => void;86 readonly onfocus: (_: BitsFocusEvent) => void;87 readonly dir: Direction;88 readonly style: {89 readonly pointerEvents: "auto";90 readonly contain: "layout style";91 };92 readonly "data-starting-style"?: "";93 readonly "data-ending-style"?: "";94 readonly id: string;95 readonly role: "menu";96 readonly "aria-orientation": "vertical";97 readonly "data-state": "open" | "closed";98 };99 readonly popperProps: {100 onCloseAutoFocus: (e: Event) => void;101 };102}103interface MenuItemSharedStateOpts extends WithRefOpts, ReadableBoxedValues<{104 disabled: boolean;105}> {106}107declare class MenuItemSharedState {108 #private;109 readonly opts: MenuItemSharedStateOpts;110 readonly content: MenuContentState;111 readonly attachment: RefAttachment;112 constructor(opts: MenuItemSharedStateOpts, content: MenuContentState);113 onpointermove(e: BitsPointerEvent): void;114 onpointerleave(e: BitsPointerEvent): void;115 onfocus(e: BitsFocusEvent): void;116 onblur(e: BitsFocusEvent): void;117 readonly props: {118 readonly id: string;119 readonly tabindex: -1;120 readonly role: "menuitem";121 readonly "aria-disabled": "true" | "false";122 readonly "data-disabled": "" | undefined;123 readonly "data-highlighted": "" | undefined;124 readonly onpointermove: (e: BitsPointerEvent) => void;125 readonly onpointerleave: (e: BitsPointerEvent) => void;126 readonly onfocus: (e: BitsFocusEvent) => void;127 readonly onblur: (e: BitsFocusEvent) => void;128 };129}130type MenuItemCombinedProps = MenuItemSharedStateOpts & MenuItemStateOpts;131interface MenuItemStateOpts extends ReadableBoxedValues<{132 onSelect: AnyFn;133 closeOnSelect: boolean;134}> {135}136export declare class MenuItemState {137 #private;138 static create(opts: MenuItemCombinedProps): MenuItemState;139 readonly opts: MenuItemStateOpts;140 readonly item: MenuItemSharedState;141 readonly root: MenuRootState;142 constructor(opts: MenuItemStateOpts, item: MenuItemSharedState);143 onkeydown(e: BitsKeyboardEvent): void;144 onclick(_: BitsMouseEvent): void;145 onpointerup(e: BitsPointerEvent): void;146 onpointerdown(_: BitsPointerEvent): void;147 readonly props: {148 readonly id: string;149 readonly tabindex: -1;150 readonly role: "menuitem";151 readonly "aria-disabled": "true" | "false";152 readonly "data-disabled": "" | undefined;153 readonly "data-highlighted": "" | undefined;154 readonly onpointermove: (e: BitsPointerEvent) => void;155 readonly onpointerleave: (e: BitsPointerEvent) => void;156 readonly onfocus: (e: BitsFocusEvent) => void;157 readonly onblur: (e: BitsFocusEvent) => void;158 } & {159 onclick: (_: BitsMouseEvent) => void;160 onpointerdown: (_: BitsPointerEvent) => void;161 onpointerup: (e: BitsPointerEvent) => void;162 onkeydown: (e: BitsKeyboardEvent) => void;163 } & {164 style?: string;165 };166}167interface MenuSubTriggerStateOpts extends MenuItemSharedStateOpts, Pick<MenuItemStateOpts, "onSelect"> {168 openDelay: ReadableBox<number>;169}170export declare class MenuSubTriggerState {171 #private;172 static create(opts: MenuSubTriggerStateOpts): MenuSubTriggerState;173 readonly opts: MenuSubTriggerStateOpts;174 readonly item: MenuItemSharedState;175 readonly content: MenuContentState;176 readonly submenu: MenuMenuState;177 readonly attachment: RefAttachment;178 constructor(opts: MenuSubTriggerStateOpts, item: MenuItemSharedState, content: MenuContentState, submenu: MenuMenuState);179 onpointermove(e: BitsPointerEvent): void;180 onpointerleave(e: BitsPointerEvent): void;181 onkeydown(e: BitsKeyboardEvent): void;182 onclick(e: BitsMouseEvent): void;183 readonly props: {184 readonly id: string;185 readonly tabindex: -1;186 readonly role: "menuitem";187 readonly "aria-disabled": "true" | "false";188 readonly "data-disabled": "" | undefined;189 readonly "data-highlighted": "" | undefined;190 readonly onpointermove: (e: BitsPointerEvent) => void;191 readonly onpointerleave: (e: BitsPointerEvent) => void;192 readonly onfocus: (e: BitsFocusEvent) => void;193 readonly onblur: (e: BitsFocusEvent) => void;194 } & {195 "aria-haspopup": string;196 "aria-expanded": "true" | "false";197 "data-state": "open" | "closed";198 "aria-controls": string | undefined;199 onclick: (e: BitsMouseEvent) => void;200 onpointermove: (e: BitsPointerEvent) => void;201 onpointerleave: (e: BitsPointerEvent) => void;202 onkeydown: (e: BitsKeyboardEvent) => void;203 } & {204 style?: string;205 };206}207interface MenuCheckboxItemStateOpts extends WritableBoxedValues<{208 checked: boolean;209 indeterminate: boolean;210}>, ReadableBoxedValues<{211 value: string;212}> {213}214export declare class MenuCheckboxItemState {215 static create(opts: MenuItemCombinedProps & MenuCheckboxItemStateOpts, checkboxGroup: MenuCheckboxGroupState | null): MenuCheckboxItemState;216 readonly opts: MenuCheckboxItemStateOpts;217 readonly item: MenuItemState;218 readonly group: MenuCheckboxGroupState | null;219 constructor(opts: MenuCheckboxItemStateOpts, item: MenuItemState, group?: MenuCheckboxGroupState | null);220 toggleChecked(): void;221 readonly snippetProps: {222 checked: boolean;223 indeterminate: boolean;224 };225 readonly props: {226 readonly role: "menuitemcheckbox";227 readonly "aria-checked": "true" | "false" | "mixed";228 readonly "data-state": "checked" | "indeterminate" | "unchecked";229 readonly id: string;230 readonly tabindex: -1;231 readonly "aria-disabled": "true" | "false";232 readonly "data-disabled": "" | undefined;233 readonly "data-highlighted": "" | undefined;234 readonly onpointermove: (e: BitsPointerEvent) => void;235 readonly onpointerleave: (e: BitsPointerEvent) => void;236 readonly onfocus: (e: BitsFocusEvent) => void;237 readonly onblur: (e: BitsFocusEvent) => void;238 readonly onclick: (_: BitsMouseEvent) => void;239 readonly onpointerdown: (_: BitsPointerEvent) => void;240 readonly onpointerup: (e: BitsPointerEvent) => void;241 readonly onkeydown: (e: BitsKeyboardEvent) => void;242 readonly style?: string;243 };244}245interface MenuGroupStateOpts extends WithRefOpts {246}247export declare class MenuGroupState {248 static create(opts: MenuGroupStateOpts): MenuGroupState | MenuRadioGroupState;249 readonly opts: MenuGroupStateOpts;250 readonly root: MenuRootState;251 readonly attachment: RefAttachment;252 groupHeadingId: string | undefined;253 constructor(opts: MenuGroupStateOpts, root: MenuRootState);254 readonly props: {255 readonly id: string;256 readonly role: "group";257 readonly "aria-labelledby": string | undefined;258 };259}260interface MenuGroupHeadingStateOpts extends WithRefOpts {261}262export declare class MenuGroupHeadingState {263 static create(opts: MenuGroupHeadingStateOpts): MenuGroupHeadingState;264 readonly opts: MenuGroupHeadingStateOpts;265 readonly group: MenuGroupState | MenuRadioGroupState | MenuCheckboxGroupState;266 readonly attachment: RefAttachment;267 constructor(opts: MenuGroupHeadingStateOpts, group: MenuGroupState | MenuRadioGroupState | MenuCheckboxGroupState);268 readonly props: {269 readonly id: string;270 readonly role: "group";271 };272}273interface MenuSeparatorStateOpts extends WithRefOpts {274}275export declare class MenuSeparatorState {276 static create(opts: MenuSeparatorStateOpts): MenuSeparatorState;277 readonly opts: MenuSeparatorStateOpts;278 readonly root: MenuRootState;279 readonly attachment: RefAttachment;280 constructor(opts: MenuSeparatorStateOpts, root: MenuRootState);281 readonly props: {282 readonly id: string;283 readonly role: "group";284 };285}286export declare class MenuArrowState {287 static create(): MenuArrowState;288 readonly root: MenuRootState;289 constructor(root: MenuRootState);290 readonly props: {291 readonly [x: string]: "";292 };293}294interface MenuRadioGroupStateOpts extends WithRefOpts, WritableBoxedValues<{295 value: string;296}> {297}298export declare class MenuRadioGroupState {299 static create(opts: MenuRadioGroupStateOpts): MenuGroupState | MenuRadioGroupState;300 readonly opts: MenuRadioGroupStateOpts;301 readonly content: MenuContentState;302 readonly attachment: RefAttachment;303 groupHeadingId: string | null;304 root: MenuRootState;305 constructor(opts: MenuRadioGroupStateOpts, content: MenuContentState);306 setValue(v: string): void;307 readonly props: {308 readonly id: string;309 readonly role: "group";310 readonly "aria-labelledby": string | null;311 };312}313interface MenuRadioItemStateOpts extends WithRefOpts, ReadableBoxedValues<{314 value: string;315 closeOnSelect: boolean;316}> {317}318export declare class MenuRadioItemState {319 static create(opts: MenuRadioItemStateOpts & MenuItemCombinedProps): MenuRadioItemState;320 readonly opts: MenuRadioItemStateOpts;321 readonly item: MenuItemState;322 readonly group: MenuRadioGroupState;323 readonly attachment: RefAttachment;324 readonly isChecked: boolean;325 constructor(opts: MenuRadioItemStateOpts, item: MenuItemState, group: MenuRadioGroupState);326 selectValue(): void;327 readonly props: {328 readonly role: "menuitemradio";329 readonly "aria-checked": "true" | "false" | "mixed";330 readonly "data-state": "checked" | "indeterminate" | "unchecked";331 readonly id: string;332 readonly tabindex: -1;333 readonly "aria-disabled": "true" | "false";334 readonly "data-disabled": "" | undefined;335 readonly "data-highlighted": "" | undefined;336 readonly onpointermove: (e: BitsPointerEvent) => void;337 readonly onpointerleave: (e: BitsPointerEvent) => void;338 readonly onfocus: (e: BitsFocusEvent) => void;339 readonly onblur: (e: BitsFocusEvent) => void;340 readonly onclick: (_: BitsMouseEvent) => void;341 readonly onpointerdown: (_: BitsPointerEvent) => void;342 readonly onpointerup: (e: BitsPointerEvent) => void;343 readonly onkeydown: (e: BitsKeyboardEvent) => void;344 readonly style?: string;345 };346}347interface DropdownMenuTriggerStateOpts extends WithRefOpts, ReadableBoxedValues<{348 disabled: boolean;349}> {350}351export declare class DropdownMenuTriggerState {352 #private;353 static create(opts: DropdownMenuTriggerStateOpts): DropdownMenuTriggerState;354 readonly opts: DropdownMenuTriggerStateOpts;355 readonly parentMenu: MenuMenuState;356 readonly attachment: RefAttachment;357 constructor(opts: DropdownMenuTriggerStateOpts, parentMenu: MenuMenuState);358 onclick: MouseEventHandler<HTMLElement>;359 onpointerdown: PointerEventHandler<HTMLElement>;360 onpointerup: PointerEventHandler<HTMLElement>;361 onkeydown: KeyboardEventHandler<HTMLElement>;362 readonly props: {363 readonly id: string;364 readonly disabled: boolean;365 readonly "aria-haspopup": "menu";366 readonly "aria-expanded": "true" | "false";367 readonly "aria-controls": string | undefined;368 readonly "data-disabled": "" | undefined;369 readonly "data-state": "open" | "closed";370 readonly onclick: MouseEventHandler<HTMLElement>;371 readonly onpointerdown: PointerEventHandler<HTMLElement>;372 readonly onpointerup: PointerEventHandler<HTMLElement>;373 readonly onkeydown: KeyboardEventHandler<HTMLElement>;374 };375}376interface ContextMenuTriggerStateOpts extends WithRefOpts, ReadableBoxedValues<{377 disabled: boolean;378}> {379}380export declare class ContextMenuTriggerState {381 #private;382 static create(opts: ContextMenuTriggerStateOpts): ContextMenuTriggerState;383 readonly opts: ContextMenuTriggerStateOpts;384 readonly parentMenu: MenuMenuState;385 readonly attachment: RefAttachment;386 virtualElement: import("svelte-toolbelt").WritableBox<{387 getBoundingClientRect: () => DOMRect;388 }>;389 constructor(opts: ContextMenuTriggerStateOpts, parentMenu: MenuMenuState);390 oncontextmenu(e: BitsMouseEvent): void;391 onpointerdown(e: BitsPointerEvent): void;392 onpointermove(e: BitsPointerEvent): void;393 onpointercancel(e: BitsPointerEvent): void;394 onpointerup(e: BitsPointerEvent): void;395 readonly props: {396 readonly id: string;397 readonly disabled: boolean;398 readonly "data-disabled": "" | undefined;399 readonly "data-state": "open" | "closed";400 readonly "data-context-menu-trigger": "";401 readonly tabindex: -1;402 readonly onpointerdown: (e: BitsPointerEvent) => void;403 readonly onpointermove: (e: BitsPointerEvent) => void;404 readonly onpointercancel: (e: BitsPointerEvent) => void;405 readonly onpointerup: (e: BitsPointerEvent) => void;406 readonly oncontextmenu: (e: BitsMouseEvent) => void;407 };408}409interface MenuCheckboxGroupStateOpts extends WithRefOpts, ReadableBoxedValues<{410 onValueChange: (value: string[]) => void;411}>, WritableBoxedValues<{412 value: string[];413}> {414}415export declare class MenuCheckboxGroupState {416 static create(opts: MenuCheckboxGroupStateOpts): MenuCheckboxGroupState;417 readonly opts: MenuCheckboxGroupStateOpts;418 readonly content: MenuContentState;419 readonly root: MenuRootState;420 readonly attachment: RefAttachment;421 groupHeadingId: string | null;422 constructor(opts: MenuCheckboxGroupStateOpts, content: MenuContentState);423 addValue(checkboxValue: string | undefined): void;424 removeValue(checkboxValue: string | undefined): void;425 readonly props: {426 readonly id: string;427 readonly role: "group";428 readonly "aria-labelledby": string | null;429 };430}431export declare class MenuSubmenuState {432 static create(opts: MenuMenuStateOpts): MenuMenuState;433}434export {};435 