UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

1 lines 1.27 kB
{"version":3,"file":"symbol.mjs","sources":["../../../components/checkbox/symbol.ts"],"sourcesContent":["import type { InjectionKey, Ref } from 'vue'\r\nimport type { ComponentSize, ComponentState } from '@vexip-ui/config'\r\n\r\nexport interface ControlState {\r\n checked: boolean,\r\n partial: boolean,\r\n}\r\n\r\nexport interface GroupState {\r\n currentValues: (string | number)[],\r\n size: ComponentSize,\r\n state: ComponentState,\r\n disabled: boolean,\r\n loading: boolean,\r\n loadingLock: boolean,\r\n colorMap: Record<string, string> | null,\r\n stateColor: boolean,\r\n increaseItem(\r\n value: string | number,\r\n checked: boolean,\r\n input: Ref<HTMLElement | null | undefined>,\r\n ): void,\r\n decreaseItem(value: string | number, input: Ref<HTMLElement | null | undefined>): void,\r\n increaseControl(state: ControlState): void,\r\n decreaseControl(state: ControlState): void,\r\n handleControlChange(): void,\r\n setItemChecked(value: string | number, checked: boolean): void,\r\n replaceValue(prevValue: string | number, newValue: string | number): void,\r\n}\r\n\r\nexport const GROUP_STATE = '__VXP_CHECKBOX_GROUP_STATE' as unknown as InjectionKey<GroupState>\r\n"],"names":["GROUP_STATE"],"mappings":"AA8BO,MAAMA,IAAc;"}