hys-ui 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/README.md +3 -1
  3. package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
  4. package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
  5. package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
  6. package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
  7. package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
  8. package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
  9. package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
  10. package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
  11. package/dist/components/HysBadge/HysBadge.vue.js +2 -2
  12. package/dist/components/HysBadge/HysBadge2.vue.js +154 -27
  13. package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
  14. package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
  15. package/dist/components/HysButton/HysButton.vue.js +2 -2
  16. package/dist/components/HysButton/HysButton2.vue.js +29 -28
  17. package/dist/components/HysCalendar/HysCalendar.vue.js +5 -92
  18. package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
  19. package/dist/components/HysCard/HysCard.vue.js +2 -2
  20. package/dist/components/HysCard/HysCard2.vue.js +175 -42
  21. package/dist/components/HysCascader/HysCascader.vue.js +5 -194
  22. package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
  23. package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
  24. package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
  25. package/dist/components/HysCheckbox/HysCheckbox.vue.js +3 -3
  26. package/dist/components/HysCheckbox/HysCheckbox2.vue.js +180 -65
  27. package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
  28. package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
  29. package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
  30. package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
  31. package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
  32. package/dist/components/HysDataGrid/HysDataGrid2.vue.js +399 -392
  33. package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
  34. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
  35. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
  36. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
  37. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
  38. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
  39. package/dist/components/HysDivider/HysDivider.vue.js +2 -2
  40. package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
  41. package/dist/components/HysFileManager/HysFileManager.vue.js +3 -3
  42. package/dist/components/HysFileManager/HysFileManager2.vue.js +43 -42
  43. package/dist/components/HysForm/HysForm.vue.js +3 -3
  44. package/dist/components/HysForm/HysForm2.vue.js +578 -92
  45. package/dist/components/HysFormItem/HysFormItem.vue.js +5 -85
  46. package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
  47. package/dist/components/HysGantt/HysGantt.vue.js +1 -1
  48. package/dist/components/HysGantt/HysGantt2.vue.js +1369 -272
  49. package/dist/components/HysInput/HysInput.vue.js +2 -2
  50. package/dist/components/HysInput/HysInput2.vue.js +467 -120
  51. package/dist/components/HysMention/HysMention.vue.js +2 -2
  52. package/dist/components/HysMention/HysMention2.vue.js +89 -88
  53. package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
  54. package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -79
  55. package/dist/components/HysOrgTree/HysOrgTree.vue.js +29 -26
  56. package/dist/components/HysPagination/HysPagination.vue.js +1 -1
  57. package/dist/components/HysPagination/HysPagination2.vue.js +2 -0
  58. package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +2 -2
  59. package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +52 -51
  60. package/dist/components/HysRadio/HysRadio.vue.js +7 -0
  61. package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
  62. package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +2 -2
  63. package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +190 -65
  64. package/dist/components/HysRating/HysRating.vue.js +1 -1
  65. package/dist/components/HysRating/HysRating2.vue.js +288 -68
  66. package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +1 -1
  67. package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +70 -69
  68. package/dist/components/HysSearch/HysSearch.vue.js +37 -36
  69. package/dist/components/HysSegmented/HysSegmented.vue.js +5 -63
  70. package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
  71. package/dist/components/HysSelect/HysSelect.vue.js +3 -2
  72. package/dist/components/HysSelect/HysSelect2.vue.js +859 -185
  73. package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
  74. package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
  75. package/dist/components/HysSlider/HysSlider.vue.js +2 -2
  76. package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
  77. package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
  78. package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
  79. package/dist/components/HysSteps/HysSteps.vue.js +1 -1
  80. package/dist/components/HysSteps/HysSteps2.vue.js +110 -36
  81. package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
  82. package/dist/components/HysSwitch/HysSwitch2.vue.js +232 -50
  83. package/dist/components/HysTable/HysTable.vue.js +2 -2
  84. package/dist/components/HysTable/HysTable2.vue.js +1473 -88
  85. package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
  86. package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
  87. package/dist/components/HysTabs/HysTabs.vue.js +2 -2
  88. package/dist/components/HysTabs/HysTabs2.vue.js +262 -68
  89. package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
  90. package/dist/components/HysTextarea/HysTextarea.vue.js +138 -77
  91. package/dist/components/HysTransfer/HysTransfer.vue.js +5 -223
  92. package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
  93. package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
  94. package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
  95. package/dist/components/HysTree/HysTree.vue.js +2 -3
  96. package/dist/components/HysTree/HysTree2.vue.js +641 -302
  97. package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -136
  98. package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
  99. package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
  100. package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
  101. package/dist/components/HysUpload/HysUpload.vue.js +2 -2
  102. package/dist/components/HysUpload/HysUpload2.vue.js +77 -76
  103. package/dist/composables/autocomplete.js +50 -0
  104. package/dist/composables/avatar.js +57 -0
  105. package/dist/composables/calendar.js +96 -0
  106. package/dist/composables/cascader.js +79 -0
  107. package/dist/composables/choice.js +38 -0
  108. package/dist/composables/choiceModel.js +67 -0
  109. package/dist/composables/datePicker.js +227 -0
  110. package/dist/composables/formContext.js +92 -7
  111. package/dist/composables/formLayout.js +57 -0
  112. package/dist/composables/formValidation.js +240 -0
  113. package/dist/composables/ganttConflicts.js +143 -0
  114. package/dist/composables/numberInput.js +91 -0
  115. package/dist/composables/rating.js +16 -0
  116. package/dist/composables/selectOptions.js +54 -0
  117. package/dist/composables/table.js +150 -0
  118. package/dist/composables/textInput.js +34 -0
  119. package/dist/composables/transfer.js +63 -0
  120. package/dist/composables/tree.js +118 -0
  121. package/dist/composables/treeSelect.js +71 -0
  122. package/dist/composables/useCascader.js +438 -0
  123. package/dist/composables/useDatePicker.js +425 -0
  124. package/dist/composables/useFloating.js +97 -51
  125. package/dist/composables/useGanttDependencies.js +306 -0
  126. package/dist/composables/useGanttHistory.js +157 -0
  127. package/dist/composables/useGanttLabelResize.js +100 -0
  128. package/dist/composables/useTable.js +474 -0
  129. package/dist/composables/useTextareaSize.js +72 -0
  130. package/dist/composables/useTransfer.js +257 -0
  131. package/dist/composables/useTree.js +439 -0
  132. package/dist/composables/useTreeSelect.js +361 -0
  133. package/dist/index.js +149 -139
  134. package/dist/style.css +1 -1
  135. package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
  136. package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
  137. package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
  138. package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
  139. package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
  140. package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
  141. package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
  142. package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -31
  143. package/dist/types/components/HysCard/HysCard.vue.d.ts +55 -7
  144. package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
  145. package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
  146. package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +50 -39
  147. package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
  148. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
  149. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
  150. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
  151. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
  152. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
  153. package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
  154. package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
  155. package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
  156. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
  157. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +82 -4
  158. package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
  159. package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
  160. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -35
  161. package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +1 -0
  162. package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
  163. package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +2 -2
  164. package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
  165. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  166. package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
  167. package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +34 -12
  168. package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
  169. package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
  170. package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
  171. package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
  172. package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -20
  173. package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
  174. package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
  175. package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
  176. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +1 -1
  177. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +64 -9
  178. package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
  179. package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
  180. package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
  181. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
  182. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
  183. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
  184. package/dist/types/components/HysToast/HysToast.vue.d.ts +3 -3
  185. package/dist/types/components/HysTour/HysTour.vue.d.ts +2 -2
  186. package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -40
  187. package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
  188. package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
  189. package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
  190. package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
  191. package/dist/types/composables/autocomplete.d.ts +106 -0
  192. package/dist/types/composables/avatar.d.ts +70 -0
  193. package/dist/types/composables/calendar.d.ts +66 -0
  194. package/dist/types/composables/cascader.d.ts +192 -0
  195. package/dist/types/composables/choice.d.ts +110 -0
  196. package/dist/types/composables/choiceModel.d.ts +11 -0
  197. package/dist/types/composables/datePicker.d.ts +247 -0
  198. package/dist/types/composables/formContext.d.ts +133 -8
  199. package/dist/types/composables/formLayout.d.ts +11 -0
  200. package/dist/types/composables/formValidation.d.ts +13 -0
  201. package/dist/types/composables/gantt.d.ts +68 -0
  202. package/dist/types/composables/ganttConflicts.d.ts +30 -0
  203. package/dist/types/composables/numberInput.d.ts +45 -0
  204. package/dist/types/composables/rating.d.ts +18 -0
  205. package/dist/types/composables/segmented.d.ts +15 -0
  206. package/dist/types/composables/selectOptions.d.ts +44 -0
  207. package/dist/types/composables/slider.d.ts +21 -0
  208. package/dist/types/composables/table.d.ts +309 -0
  209. package/dist/types/composables/textInput.d.ts +76 -0
  210. package/dist/types/composables/transfer.d.ts +180 -0
  211. package/dist/types/composables/tree.d.ts +237 -0
  212. package/dist/types/composables/treeSelect.d.ts +167 -0
  213. package/dist/types/composables/useCascader.d.ts +162 -0
  214. package/dist/types/composables/useDatePicker.d.ts +79 -0
  215. package/dist/types/composables/useFloating.d.ts +8 -5
  216. package/dist/types/composables/useGanttDependencies.d.ts +83 -0
  217. package/dist/types/composables/useGanttHistory.d.ts +42 -0
  218. package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
  219. package/dist/types/composables/useTable.d.ts +60 -0
  220. package/dist/types/composables/useTextareaSize.d.ts +3 -0
  221. package/dist/types/composables/useTransfer.d.ts +58 -0
  222. package/dist/types/composables/useTree.d.ts +77 -0
  223. package/dist/types/composables/useTreeSelect.d.ts +117 -0
  224. package/dist/types/index.d.ts +33 -7
  225. package/package.json +2 -1
@@ -1,37 +1,59 @@
1
- export interface HysRadioOption<V extends string | number = string> {
2
- label: string;
3
- value: V;
4
- disabled?: boolean;
1
+ import { type HysChoiceValue, type HysChoiceDataOption, type HysChoiceFieldNames, type HysChoiceOption } from "../../composables/choice";
2
+ export interface HysRadioOption<V extends HysChoiceValue = string> extends HysChoiceOption<V> {
5
3
  }
6
- declare const __VLS_export: <T extends string | number = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ declare const __VLS_export: <T extends HysChoiceValue = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
5
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
8
- modelValue?: T;
9
- options: HysRadioOption<T>[];
6
+ modelValue?: T | null;
7
+ defaultValue?: T | null;
8
+ options?: readonly HysChoiceDataOption<T>[];
9
+ fieldNames?: HysChoiceFieldNames;
10
10
  name?: string;
11
+ form?: string;
11
12
  disabled?: boolean;
12
13
  readonly?: boolean;
13
14
  required?: boolean;
14
15
  vertical?: boolean;
15
16
  size?: "sm" | "md" | "lg";
16
17
  ariaLabel?: string;
18
+ type?: "radio" | "button";
19
+ buttonStyle?: "outline" | "solid";
20
+ border?: boolean;
21
+ block?: boolean;
22
+ loopNavigation?: boolean;
23
+ autofocus?: boolean;
24
+ error?: string;
25
+ status?: "error" | "warning" | "success";
26
+ emptyText?: string;
17
27
  } & {
18
- "onUpdate:modelValue"?: ((value: T) => any) | undefined;
19
28
  onChange?: ((value: T) => any) | undefined;
20
- onFocus?: ((event: FocusEvent) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
21
30
  onBlur?: ((event: FocusEvent) => any) | undefined;
31
+ onFocus?: ((event: FocusEvent) => any) | undefined;
22
32
  }> & (typeof globalThis extends {
23
33
  __VLS_PROPS_FALLBACK: infer P;
24
34
  } ? P : {});
25
35
  expose: (exposed: import("vue").ShallowUnwrapRef<{
26
- focus: () => void;
36
+ value: import("vue").ComputedRef<HysChoiceValue | null>;
37
+ focus: (next?: HysChoiceValue) => void;
38
+ blur: () => void;
39
+ select: (next: HysChoiceValue) => Promise<boolean>;
27
40
  }>) => void;
28
41
  attrs: any;
29
42
  slots: {
30
43
  label?: (props: {
31
- option: HysRadioOption<T>;
44
+ option: HysChoiceOption<T>;
45
+ checked: boolean;
32
46
  }) => any;
47
+ } & {
48
+ empty?: (props: {}) => any;
49
+ } & {
50
+ default?: (props: {
51
+ value: HysChoiceValue | null;
52
+ }) => any;
53
+ } & {
54
+ empty?: (props: {}) => any;
33
55
  };
34
- emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "change", value: T) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "blur", event: FocusEvent) => void);
56
+ emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void);
35
57
  }>) => import("vue").VNode & {
36
58
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
37
59
  };
@@ -1,30 +1,110 @@
1
+ import { type HysRatingIcon, type HysRatingLevels } from "../../composables/rating";
1
2
  type __VLS_Props = {
2
- modelValue: number;
3
+ modelValue?: number | null;
4
+ defaultValue?: number;
3
5
  max?: number;
6
+ count?: number;
7
+ size?: "sm" | "md" | "lg";
8
+ iconSize?: number;
4
9
  readonly?: boolean;
5
10
  disabled?: boolean;
6
11
  allowClear?: boolean;
12
+ clearable?: boolean;
7
13
  allowHalf?: boolean;
8
14
  showScore?: boolean;
15
+ showText?: boolean;
16
+ texts?: readonly string[];
17
+ scoreTemplate?: string;
18
+ formatScore?: (value: number) => string;
19
+ textColor?: string;
20
+ color?: string;
21
+ colors?: HysRatingLevels<string>;
22
+ lowThreshold?: number;
23
+ highThreshold?: number;
24
+ voidColor?: string;
25
+ disabledVoidColor?: string;
26
+ icon?: HysRatingIcon;
27
+ icons?: HysRatingLevels<HysRatingIcon>;
28
+ voidIcon?: HysRatingIcon;
29
+ disabledVoidIcon?: HysRatingIcon;
30
+ character?: string;
31
+ tooltips?: readonly string[];
32
+ hoverValue?: number | null;
33
+ keyboard?: boolean;
34
+ autofocus?: boolean;
35
+ focusable?: boolean;
9
36
  ariaLabel?: string;
37
+ formatValueText?: (value: number, max: number) => string;
38
+ name?: string;
39
+ form?: string;
40
+ status?: "error" | "warning" | "success";
41
+ error?: string;
10
42
  };
43
+ declare function resetPreview(): void;
44
+ declare function setValue(value: number): Promise<boolean>;
45
+ declare function clear(): Promise<boolean>;
46
+ declare function focus(options?: FocusOptions): void;
47
+ declare function blur(): void;
11
48
  declare const __VLS_template: () => {
12
49
  __VLS_Slots: {
13
50
  character?: (props: {
14
51
  value: number;
52
+ index: number;
53
+ fraction: number;
54
+ filled: boolean;
55
+ }) => any;
56
+ } & {
57
+ character?: (props: {
58
+ value: number;
59
+ index: number;
60
+ fraction: number;
61
+ filled: boolean;
62
+ }) => any;
63
+ } & {
64
+ text?: (props: {
65
+ value: number;
66
+ text: string;
15
67
  }) => any;
16
68
  };
17
69
  };
18
70
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
19
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
- "update:modelValue": (value: number) => any;
71
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
72
+ element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
73
+ value: import("vue").ComputedRef<number>;
74
+ hoverValue: import("vue").ComputedRef<number | null>;
75
+ focus: typeof focus;
76
+ blur: typeof blur;
77
+ setValue: typeof setValue;
78
+ clear: typeof clear;
79
+ setCurrentValue: (value: number) => void;
80
+ resetCurrentValue: typeof resetPreview;
81
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
82
  change: (value: number) => any;
83
+ "update:modelValue": (value: number) => any;
84
+ clear: () => any;
85
+ keydown: (event: KeyboardEvent) => any;
86
+ blur: (event: FocusEvent) => any;
87
+ focus: (event: FocusEvent) => any;
88
+ "update:hoverValue": (value: number | null) => any;
89
+ hoverChange: (value: number | null) => any;
22
90
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
24
91
  onChange?: ((value: number) => any) | undefined;
92
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
93
+ onClear?: (() => any) | undefined;
94
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
95
+ onBlur?: ((event: FocusEvent) => any) | undefined;
96
+ onFocus?: ((event: FocusEvent) => any) | undefined;
97
+ "onUpdate:hoverValue"?: ((value: number | null) => any) | undefined;
98
+ onHoverChange?: ((value: number | null) => any) | undefined;
25
99
  }>, {
26
- max: number;
100
+ focusable: boolean;
101
+ defaultValue: number;
102
+ clearable: boolean;
103
+ keyboard: boolean;
27
104
  allowClear: boolean;
105
+ scoreTemplate: string;
106
+ lowThreshold: number;
107
+ highThreshold: number;
28
108
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
109
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
110
  declare const _default: typeof __VLS_export;
@@ -13,15 +13,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
13
  blur: () => void | undefined;
14
14
  getHTML: () => string;
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- "update:modelValue": (value: string) => any;
17
16
  change: (html: string) => any;
18
- focus: (event: FocusEvent) => any;
17
+ "update:modelValue": (value: string) => any;
19
18
  blur: (event: FocusEvent) => any;
19
+ focus: (event: FocusEvent) => any;
20
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
21
  onChange?: ((html: string) => any) | undefined;
23
- onFocus?: ((event: FocusEvent) => any) | undefined;
22
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
23
  onBlur?: ((event: FocusEvent) => any) | undefined;
24
+ onFocus?: ((event: FocusEvent) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  export default _default;
@@ -15,14 +15,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
15
15
  "update:modelValue": (value: string) => any;
16
16
  search: (value: string) => any;
17
17
  clear: () => any;
18
- focus: (event: FocusEvent) => any;
19
18
  blur: (event: FocusEvent) => any;
19
+ focus: (event: FocusEvent) => any;
20
20
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
21
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
22
  onSearch?: ((value: string) => any) | undefined;
23
23
  onClear?: (() => any) | undefined;
24
- onFocus?: ((event: FocusEvent) => any) | undefined;
25
24
  onBlur?: ((event: FocusEvent) => any) | undefined;
25
+ onFocus?: ((event: FocusEvent) => any) | undefined;
26
26
  }>, {
27
27
  placeholder: string;
28
28
  clearable: boolean;
@@ -1,39 +1,71 @@
1
- type __VLS_Props = {
2
- modelValue: string;
3
- options: {
4
- label: string;
5
- value: string;
1
+ import { type HysChoiceValue, type HysChoiceDataOption, type HysChoiceFieldNames } from "../../composables/choice";
2
+ import type { HysSegmentedOption } from "../../composables/segmented";
3
+ declare const __VLS_export: <T extends HysChoiceValue = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
5
+ modelValue?: T | null;
6
+ defaultValue?: T | null;
7
+ options?: readonly HysChoiceDataOption<T>[];
8
+ fieldNames?: HysChoiceFieldNames;
6
9
  disabled?: boolean;
7
- }[];
8
- disabled?: boolean;
9
- block?: boolean;
10
- size?: 'sm' | 'md' | 'lg';
11
- ariaLabel?: string;
12
- };
13
- declare const __VLS_template: () => {
14
- __VLS_Slots: {
10
+ readonly?: boolean;
11
+ block?: boolean;
12
+ vertical?: boolean;
13
+ direction?: "horizontal" | "vertical";
14
+ size?: "sm" | "md" | "lg";
15
+ round?: boolean;
16
+ keyboard?: boolean;
17
+ loopNavigation?: boolean;
18
+ focusable?: boolean;
19
+ autofocus?: boolean;
20
+ ariaLabel?: string;
21
+ name?: string;
22
+ form?: string;
23
+ status?: "error" | "warning" | "success";
24
+ error?: string;
25
+ emptyText?: string;
26
+ } & {
27
+ onChange?: ((value: T) => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
29
+ onBlur?: ((event: FocusEvent) => any) | undefined;
30
+ onFocus?: ((event: FocusEvent) => any) | undefined;
31
+ }> & (typeof globalThis extends {
32
+ __VLS_PROPS_FALLBACK: infer P;
33
+ } ? P : {});
34
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
35
+ element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
36
+ value: import("vue").ComputedRef<HysChoiceValue | null>;
37
+ focus: (next?: HysChoiceValue) => void;
38
+ blur: () => void;
39
+ select: (next: HysChoiceValue) => Promise<boolean>;
40
+ }>) => void;
41
+ attrs: any;
42
+ slots: {
43
+ icon?: (props: {
44
+ option: HysSegmentedOption<T>;
45
+ checked: boolean;
46
+ }) => any;
47
+ } & {
15
48
  label?: (props: {
16
- option: {
17
- label: string;
18
- value: string;
19
- disabled?: boolean;
20
- };
49
+ option: HysSegmentedOption<T>;
50
+ checked: boolean;
51
+ }) => any;
52
+ } & {
53
+ default?: (props: {
54
+ item: HysSegmentedOption<T>;
55
+ option: HysSegmentedOption<T>;
56
+ checked: boolean;
21
57
  }) => any;
58
+ } & {
59
+ empty?: (props: {}) => any;
22
60
  };
61
+ emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void);
62
+ }>) => import("vue").VNode & {
63
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
23
64
  };
24
- type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
25
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- "update:modelValue": (value: string) => any;
27
- change: (value: string) => any;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
- onChange?: ((value: string) => any) | undefined;
31
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
65
  declare const _default: typeof __VLS_export;
34
66
  export default _default;
35
- type __VLS_WithSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
67
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
68
+ [K in keyof T]: T[K];
69
+ } : {
70
+ [K in keyof T as K]: T[K];
71
+ }) & {};
@@ -1,60 +1,160 @@
1
- export interface HysSelectOption {
2
- label: string;
3
- value: string;
4
- disabled?: boolean;
5
- }
6
- declare const __VLS_export: <T extends string | string[] = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1
+ import { type CSSProperties } from "vue";
2
+ import { type Placement } from "../../composables/useFloating";
3
+ import { type HysSelectDataOption, type HysSelectFieldNames, type HysSelectModelValue, type HysSelectOption, type HysSelectSearchContext, type HysSelectValue } from "../../composables/selectOptions";
4
+ declare const __VLS_export: <T extends HysSelectModelValue = string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
5
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
8
- modelValue: T;
9
- options: HysSelectOption[];
6
+ modelValue?: T;
7
+ defaultValue?: T;
8
+ options?: HysSelectDataOption[];
9
+ fieldNames?: HysSelectFieldNames;
10
+ valueKey?: string;
10
11
  disabled?: boolean;
12
+ readonly?: boolean;
11
13
  ariaLabel?: string;
12
14
  placeholder?: string;
13
15
  multiple?: boolean;
14
16
  filterable?: boolean;
15
17
  clearable?: boolean;
18
+ emptyValues?: readonly unknown[];
19
+ clearValue?: HysSelectValue | null;
20
+ fallbackOption?: false | ((value: HysSelectValue) => HysSelectOption);
21
+ multipleLimit?: number;
22
+ maxTagCount?: number;
23
+ maxTagTextLength?: number;
24
+ removable?: boolean;
25
+ clearSearchAfterSelect?: boolean;
26
+ allowCreate?: boolean;
27
+ createOption?: (label: string) => HysSelectOption | false | null;
28
+ tokenSeparators?: string[];
29
+ clearCreatedOnClear?: boolean;
16
30
  loading?: boolean;
17
31
  remote?: boolean;
18
- popupMatchWidth?: boolean;
32
+ remoteMethod?: (query: string, context: HysSelectSearchContext) => void | HysSelectDataOption[] | Promise<void | HysSelectDataOption[]>;
33
+ debounce?: number;
34
+ searchValue?: string;
19
35
  filterMethod?: (query: string, option: HysSelectOption) => boolean;
36
+ filterSort?: (a: HysSelectOption, b: HysSelectOption) => number;
37
+ open?: boolean;
38
+ defaultOpen?: boolean;
39
+ showOnFocus?: boolean;
40
+ retainSearch?: boolean;
41
+ defaultActiveFirst?: boolean;
42
+ keyboard?: boolean;
43
+ popupMatchWidth?: boolean;
44
+ popupWidth?: number | string;
45
+ placement?: Placement;
46
+ appendTo?: string | HTMLElement | false;
47
+ popupClass?: string;
48
+ popupStyle?: CSSProperties;
49
+ listHeight?: number;
50
+ virtual?: boolean;
51
+ itemHeight?: number;
52
+ overscan?: number;
20
53
  emptyText?: string;
54
+ noMatchText?: string;
55
+ loadingText?: string;
21
56
  size?: "sm" | "md" | "lg";
57
+ status?: "error" | "warning" | "success";
58
+ showArrow?: boolean;
59
+ showCheckmark?: boolean;
60
+ bordered?: boolean;
61
+ autofocus?: boolean;
62
+ name?: string;
22
63
  } & {
64
+ onChange?: ((value: T, options: HysSelectOption | HysSelectOption[] | undefined) => any) | undefined;
23
65
  "onUpdate:modelValue"?: ((value: T) => any) | undefined;
24
- onChange?: ((value: T) => any) | undefined;
25
66
  onSearch?: ((query: string) => any) | undefined;
26
67
  onClear?: (() => any) | undefined;
68
+ onSelect?: ((value: HysSelectValue, option: HysSelectOption) => any) | undefined;
69
+ onBlur?: ((event: FocusEvent) => any) | undefined;
70
+ onFocus?: ((event: FocusEvent) => any) | undefined;
71
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
27
72
  onVisibleChange?: ((open: boolean) => any) | undefined;
73
+ onSearchError?: ((error: unknown, query: string) => any) | undefined;
74
+ "onUpdate:searchValue"?: ((query: string) => any) | undefined;
75
+ onDeselect?: ((value: HysSelectValue, option: HysSelectOption) => any) | undefined;
76
+ onRemoveTag?: ((value: HysSelectValue, option: HysSelectOption) => any) | undefined;
77
+ onCreate?: ((option: HysSelectOption) => any) | undefined;
78
+ onReject?: ((value: HysSelectValue, reason: "create" | "limit") => any) | undefined;
79
+ onPopupScroll?: ((event: Event) => any) | undefined;
80
+ onReachEnd?: (() => any) | undefined;
28
81
  }> & (typeof globalThis extends {
29
82
  __VLS_PROPS_FALLBACK: infer P;
30
83
  } ? P : {});
31
84
  expose: (exposed: import("vue").ShallowUnwrapRef<{
32
- focus: () => void | undefined;
33
- blur: () => void | undefined;
85
+ focus: () => void;
86
+ blur: () => void;
87
+ open: () => Promise<void>;
34
88
  close: () => void;
89
+ scrollTo: (value: HysSelectValue) => void;
90
+ retry: () => void;
91
+ selected: import("vue").ComputedRef<HysSelectOption[]>;
92
+ query: import("vue").ComputedRef<string>;
93
+ isOpen: import("vue").Ref<boolean, boolean>;
35
94
  }>) => void;
36
95
  attrs: any;
37
96
  slots: {
38
97
  label?: (props: {
39
- selected: {
40
- label: string;
41
- value: string;
42
- disabled?: boolean | undefined;
43
- }[];
98
+ selected: HysSelectOption[];
99
+ }) => any;
100
+ } & {
101
+ tag?: (props: {
102
+ option: HysSelectOption;
103
+ remove: () => void;
104
+ disabled: boolean | undefined;
105
+ }) => any;
106
+ } & {
107
+ 'remove-icon'?: (props: {}) => any;
108
+ } & {
109
+ 'max-tag'?: (props: {
110
+ omitted: HysSelectOption[];
111
+ }) => any;
112
+ } & {
113
+ suffix?: (props: {
114
+ open: boolean;
115
+ loading: boolean;
116
+ }) => any;
117
+ } & {
118
+ 'clear-icon'?: (props: {}) => any;
119
+ } & {
120
+ header?: (props: {
121
+ query: string;
122
+ selected: HysSelectOption[];
123
+ close: () => void;
44
124
  }) => any;
45
125
  } & {
46
126
  loading?: (props: {}) => any;
127
+ } & {
128
+ error?: (props: {
129
+ error: {};
130
+ retry: () => void;
131
+ }) => any;
132
+ } & {
133
+ group?: (props: {
134
+ label: string | undefined;
135
+ }) => any;
47
136
  } & {
48
137
  option?: (props: {
49
138
  option: HysSelectOption;
50
139
  selected: boolean;
140
+ created: boolean;
51
141
  }) => any;
52
142
  } & {
53
- empty?: (props: {}) => any;
143
+ 'selected-icon'?: (props: {
144
+ option: HysSelectOption;
145
+ }) => any;
54
146
  } & {
55
- footer?: (props: {}) => any;
147
+ empty?: (props: {
148
+ query: string;
149
+ }) => any;
150
+ } & {
151
+ footer?: (props: {
152
+ query: string;
153
+ selected: HysSelectOption[];
154
+ close: () => void;
155
+ }) => any;
56
156
  };
57
- emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "change", value: T) => void) & ((evt: "search", query: string) => void) & ((evt: "clear") => void) & ((evt: "visibleChange", open: boolean) => void);
157
+ emit: ((evt: "change", value: T, options: HysSelectOption | HysSelectOption[] | undefined) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "search", query: string) => void) & ((evt: "clear") => void) & ((evt: "select", value: HysSelectValue, option: HysSelectOption) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", open: boolean) => void) & ((evt: "visibleChange", open: boolean) => void) & ((evt: "searchError", error: unknown, query: string) => void) & ((evt: "update:searchValue", query: string) => void) & ((evt: "deselect", value: HysSelectValue, option: HysSelectOption) => void) & ((evt: "removeTag", value: HysSelectValue, option: HysSelectOption) => void) & ((evt: "create", option: HysSelectOption) => void) & ((evt: "reject", value: HysSelectValue, reason: "create" | "limit") => void) & ((evt: "popupScroll", event: Event) => void) & ((evt: "reachEnd") => void);
58
158
  }>) => import("vue").VNode & {
59
159
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
60
160
  };
@@ -1,23 +1,51 @@
1
+ export type HysSkeletonVariant = "paragraph" | "text" | "circle" | "rect" | "image" | "button" | "input";
1
2
  type __VLS_Props = {
2
3
  lines?: number;
3
4
  loading?: boolean;
4
5
  active?: boolean;
5
6
  avatar?: boolean;
6
7
  avatarSize?: number;
8
+ avatarShape?: "circle" | "square";
7
9
  title?: boolean;
10
+ titleWidth?: number | string;
11
+ widths?: readonly (number | string)[];
12
+ round?: boolean;
13
+ count?: number;
14
+ variant?: HysSkeletonVariant;
15
+ width?: number | string;
16
+ height?: number | string;
17
+ delay?: number;
18
+ minDuration?: number;
19
+ loadingText?: string;
8
20
  };
9
21
  declare const __VLS_template: () => {
10
22
  __VLS_Slots: {
23
+ template?: (props: {
24
+ index: number;
25
+ active: boolean;
26
+ }) => any;
27
+ } & {
11
28
  default?: (props: {}) => any;
12
29
  };
13
30
  };
14
31
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ visibilityChange: (visible: boolean) => any;
34
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ onVisibilityChange?: ((visible: boolean) => any) | undefined;
36
+ }>, {
16
37
  title: boolean;
17
- loading: boolean;
18
38
  active: boolean;
39
+ loading: boolean;
40
+ loadingText: string;
41
+ variant: HysSkeletonVariant;
19
42
  lines: number;
20
43
  avatarSize: number;
44
+ avatarShape: "circle" | "square";
45
+ titleWidth: string | number;
46
+ count: number;
47
+ delay: number;
48
+ minDuration: number;
21
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
50
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
51
  declare const _default: typeof __VLS_export;
@@ -1,24 +1,81 @@
1
- declare const __VLS_export: <T extends number | [number, number] = number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1
+ import type { HysSliderValue, HysSliderStep, HysSliderMarks, HysSliderDragInfo } from "../../composables/slider";
2
+ declare const __VLS_export: <T extends HysSliderValue = number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
3
- modelValue: T;
4
+ modelValue?: T;
5
+ defaultValue?: T;
6
+ range?: boolean;
4
7
  min?: number;
5
8
  max?: number;
6
- step?: number;
9
+ step?: HysSliderStep;
7
10
  disabled?: boolean;
11
+ readonly?: boolean;
8
12
  label?: string;
13
+ ariaLabel?: string;
14
+ rangeStartLabel?: string;
15
+ rangeEndLabel?: string;
9
16
  showValue?: boolean;
10
- marks?: Record<number, string>;
11
- formatTooltip?: (value: number) => string;
17
+ marks?: HysSliderMarks;
18
+ formatTooltip?: (value: number) => string | number | null;
19
+ formatValueText?: (value: number) => string;
20
+ showTooltip?: boolean;
21
+ tooltipVisible?: boolean;
22
+ tooltipPlacement?: "top" | "bottom" | "left" | "right";
23
+ showStops?: boolean;
24
+ maxStops?: number;
25
+ included?: boolean;
26
+ reverse?: boolean;
27
+ vertical?: boolean;
28
+ height?: number | string;
29
+ size?: "sm" | "md" | "lg";
30
+ keyboard?: boolean;
31
+ draggableTrack?: boolean;
32
+ showInput?: boolean;
33
+ showInputControls?: boolean;
34
+ name?: string;
35
+ tabindex?: number;
36
+ autofocus?: boolean;
37
+ status?: "error" | "warning" | "success";
38
+ error?: string;
12
39
  } & {
13
- "onUpdate:modelValue"?: ((value: T) => any) | undefined;
14
40
  onChange?: ((value: T) => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
42
+ onInput?: ((value: T) => any) | undefined;
43
+ onBlur?: ((event: FocusEvent) => any) | undefined;
44
+ onFocus?: ((event: FocusEvent) => any) | undefined;
45
+ onDragStart?: ((value: T, info: HysSliderDragInfo) => any) | undefined;
46
+ onDragEnd?: ((value: T, info: HysSliderDragInfo) => any) | undefined;
15
47
  }> & (typeof globalThis extends {
16
48
  __VLS_PROPS_FALLBACK: infer P;
17
49
  } ? P : {});
18
- expose: (exposed: {}) => void;
50
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
51
+ element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
52
+ dragging: import("vue").Ref<boolean, boolean>;
53
+ values: import("vue").ComputedRef<number[]>;
54
+ focus: (index?: number) => void;
55
+ blur: () => void;
56
+ setValue: (value: HysSliderValue) => void;
57
+ cancel: () => void;
58
+ }>) => void;
19
59
  attrs: any;
20
- slots: {};
21
- emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "change", value: T) => void);
60
+ slots: {
61
+ thumb?: (props: {
62
+ value: number;
63
+ index: number;
64
+ dragging: boolean;
65
+ }) => any;
66
+ } & {
67
+ tooltip?: (props: {
68
+ value: number;
69
+ index: number;
70
+ }) => any;
71
+ } & {
72
+ mark?: (props: {
73
+ value: number;
74
+ label: string;
75
+ active: boolean;
76
+ }) => any;
77
+ };
78
+ emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "input", value: T) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "dragStart", value: T, info: HysSliderDragInfo) => void) & ((evt: "dragEnd", value: T, info: HysSliderDragInfo) => void);
22
79
  }>) => import("vue").VNode & {
23
80
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
24
81
  };