code-monkey-ui
Version:
A Component Library for Vue 3
1 lines • 1.77 kB
Source Map (JSON)
{"version":3,"file":"token.mjs","sources":["../../../../../../packages/components/dsh-select/src/token.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\n\ninterface DshSelectGroupContext {\n disabled: boolean\n}\n\nexport interface DshQueryChangeCtx {\n query: string\n}\n\nexport interface DshSelectContext {\n props: {\n multiple?: boolean\n multipleLimit?: number\n valueKey?: string\n modelValue?: string | number | unknown | unknown[]\n popperClass?: string\n remote?: boolean\n fitInputWidth?: boolean\n }\n queryChange: Ref<DshQueryChangeCtx>\n groupQueryChange: Ref<string>\n selectWrapper: HTMLElement\n cachedOptions: Map<any, any>\n hoverIndex: number\n optionsCount: number\n filteredOptionsCount: number\n options: Map<any, any>\n optionsArray: any[]\n selected: any | any[]\n setSelected(): void\n onOptionCreate(vm: DshSelectOptionProxy): void\n onOptionDestroy(key: number | string | Record<string, any>): void\n handleOptionSelect(vm: unknown): void\n}\n\n// For individual build sharing injection key, we had to make `Symbol` to string\nexport const dshSelectGroupKey: InjectionKey<DshSelectGroupContext> =\n Symbol('ElDshSelectGroup')\n\nexport const dshSelectKey: InjectionKey<DshSelectContext> =\n Symbol('ElDshSelect')\n\nexport interface DshSelectOptionProxy {\n value: string | number | Record<string, string>\n label: string | number\n created: boolean\n disabled: boolean\n currentLabel: string\n itemSelected: boolean\n isDisabled: boolean\n select: DshSelectContext\n hoverItem: () => void\n visible: boolean\n hover: boolean\n selectOptionClick: () => void\n}\n"],"names":[],"mappings":"AAAY,MAAC,iBAAiB,GAAG,MAAM,CAAC,kBAAkB,EAAE;AAChD,MAAC,YAAY,GAAG,MAAM,CAAC,aAAa;;;;"}