hys-ui 0.4.0 → 0.6.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 (152) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +3 -3
  3. package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +440 -119
  4. package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.js +7 -0
  5. package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas2.vue.js +166 -0
  6. package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.js +7 -0
  7. package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits2.vue.js +105 -0
  8. package/dist/components/HysAnimatedNumber/animation/digital.js +186 -0
  9. package/dist/components/HysAnimatedNumber/animation/morph.js +110 -0
  10. package/dist/components/HysAnimatedNumber/animation/paint.js +34 -0
  11. package/dist/components/HysAnimatedNumber/animation/particles.js +51 -0
  12. package/dist/components/HysAnimatedNumber/animation/paths.js +165 -0
  13. package/dist/components/HysAnimatedNumber/animation/physics.js +66 -0
  14. package/dist/components/HysAnimatedNumber/animation/render.js +89 -0
  15. package/dist/components/HysAnimatedNumber/animation/reveal.js +125 -0
  16. package/dist/components/HysAnimatedNumber/animation/rolling.js +66 -0
  17. package/dist/components/HysAnimatedNumber/animation/scenarios.js +217 -0
  18. package/dist/components/HysAnimatedNumber/animation/spatial.js +112 -0
  19. package/dist/components/HysAnimatedNumber/useNumberCountdown.js +58 -0
  20. package/dist/components/HysAnimatedNumber/useNumberVisuals.js +60 -0
  21. package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
  22. package/dist/components/HysDrawer/HysDrawer2.vue.js +2 -2
  23. package/dist/components/HysFormItem/HysFormItem.vue.js +1 -1
  24. package/dist/components/HysFormItem/HysFormItem2.vue.js +231 -229
  25. package/dist/components/HysInput/HysInput.vue.js +2 -2
  26. package/dist/components/HysInput/HysInput2.vue.js +327 -274
  27. package/dist/components/HysModal/HysModal.vue.js +2 -2
  28. package/dist/components/HysModal/HysModal2.vue.js +38 -38
  29. package/dist/components/HysSearch/HysSearch.vue.js +2 -2
  30. package/dist/components/HysSortableList/HysSortableList.vue.js +2 -2
  31. package/dist/components/HysSortableList/HysSortableList2.vue.js +498 -129
  32. package/dist/components/HysSortableList/SortableGhost/SortableGhost.vue.js +7 -0
  33. package/dist/components/HysSortableList/SortableGhost/SortableGhost2.vue.js +43 -0
  34. package/dist/components/HysSortableList/SortableGhost/useSortGhost.js +54 -0
  35. package/dist/components/HysSortableList/geometry.js +230 -0
  36. package/dist/components/HysSortableList/model.js +254 -0
  37. package/dist/components/HysSortableList/transactions.js +281 -0
  38. package/dist/components/HysSortableList/useSortDrag.js +270 -0
  39. package/dist/components/HysSortableList/useSortKeyboard.js +72 -0
  40. package/dist/components/HysSortableList/useSortWindow.js +144 -0
  41. package/dist/components/HysTextarea/HysTextarea.vue.js +56 -32
  42. package/dist/components/HysToast/HysToast.vue.js +3 -3
  43. package/dist/components/HysToast/HysToast2.vue.js +379 -107
  44. package/dist/components/HysToast/ToastViewport/ToastViewport.vue.js +7 -0
  45. package/dist/components/HysToast/ToastViewport/ToastViewport2.vue.js +211 -0
  46. package/dist/components/HysToast/ToastViewport/useToastStackDisclosure.js +71 -0
  47. package/dist/components/HysToast/toastPresentation.js +98 -0
  48. package/dist/components/HysToast/useToastActions.js +62 -0
  49. package/dist/components/HysToast/useToastSwipe.js +48 -0
  50. package/dist/components/HysToast/useToastTimer.js +90 -0
  51. package/dist/composables/animatedNumberDigits.js +106 -0
  52. package/dist/composables/animatedNumberFormat.js +222 -0
  53. package/dist/composables/animatedNumberTiming.js +66 -0
  54. package/dist/composables/numberAnimation.js +72 -0
  55. package/dist/composables/numberAnimationCatalog.js +301 -0
  56. package/dist/composables/numberAnimationSequence.js +45 -0
  57. package/dist/composables/popupReferenceBinding.js +41 -0
  58. package/dist/composables/textInput.js +23 -14
  59. package/dist/composables/toastEscape.js +18 -10
  60. package/dist/composables/toastQueue.js +276 -0
  61. package/dist/composables/toastQueueModel.js +86 -0
  62. package/dist/composables/toastTasks.js +58 -0
  63. package/dist/composables/useHysAnimatedNumber.js +264 -0
  64. package/dist/composables/useHysNumberAnimationGroup.js +23 -0
  65. package/dist/composables/useHysToast.js +117 -135
  66. package/dist/composables/usePopupSurface.js +190 -356
  67. package/dist/composables/usePopupSurfaceInteractions.js +172 -0
  68. package/dist/composables/useTextareaSize.js +62 -46
  69. package/dist/index.js +125 -111
  70. package/dist/style.css +1 -1
  71. package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +88 -49
  72. package/dist/types/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.d.ts +19 -0
  73. package/dist/types/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.d.ts +31 -0
  74. package/dist/types/components/HysAnimatedNumber/animation/digital.d.ts +3 -0
  75. package/dist/types/components/HysAnimatedNumber/animation/morph.d.ts +2 -0
  76. package/dist/types/components/HysAnimatedNumber/animation/paint.d.ts +44 -0
  77. package/dist/types/components/HysAnimatedNumber/animation/particles.d.ts +5 -0
  78. package/dist/types/components/HysAnimatedNumber/animation/paths.d.ts +12 -0
  79. package/dist/types/components/HysAnimatedNumber/animation/physics.d.ts +2 -0
  80. package/dist/types/components/HysAnimatedNumber/animation/render.d.ts +2 -0
  81. package/dist/types/components/HysAnimatedNumber/animation/reveal.d.ts +2 -0
  82. package/dist/types/components/HysAnimatedNumber/animation/rolling.d.ts +2 -0
  83. package/dist/types/components/HysAnimatedNumber/animation/scenarios.d.ts +4 -0
  84. package/dist/types/components/HysAnimatedNumber/animation/spatial.d.ts +2 -0
  85. package/dist/types/components/HysAnimatedNumber/useNumberCountdown.d.ts +8 -0
  86. package/dist/types/components/HysAnimatedNumber/useNumberVisuals.d.ts +12 -0
  87. package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +11 -2
  88. package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +2 -2
  89. package/dist/types/components/HysCard/HysCard.vue.d.ts +1 -1
  90. package/dist/types/components/HysCascader/HysCascader.vue.d.ts +3 -3
  91. package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
  92. package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +2 -2
  93. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +3 -3
  94. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +5 -5
  95. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +3 -3
  96. package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -1
  97. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
  98. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +1 -1
  99. package/dist/types/components/HysInput/HysInput.vue.d.ts +13 -1
  100. package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
  101. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
  102. package/dist/types/components/HysPopover/HysPopover.vue.d.ts +1 -1
  103. package/dist/types/components/HysSearch/HysSearch.vue.d.ts +1 -1
  104. package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +2 -2
  105. package/dist/types/components/HysSortableList/HysSortableList.vue.d.ts +48 -25
  106. package/dist/types/components/HysSortableList/SortableGhost/SortableGhost.vue.d.ts +31 -0
  107. package/dist/types/components/HysSortableList/SortableGhost/useSortGhost.d.ts +23 -0
  108. package/dist/types/components/HysSortableList/geometry.d.ts +35 -0
  109. package/dist/types/components/HysSortableList/model.d.ts +61 -0
  110. package/dist/types/components/HysSortableList/sortableList.d.ts +151 -0
  111. package/dist/types/components/HysSortableList/transactions.d.ts +10 -0
  112. package/dist/types/components/HysSortableList/useSortDrag.d.ts +25 -0
  113. package/dist/types/components/HysSortableList/useSortKeyboard.d.ts +17 -0
  114. package/dist/types/components/HysSortableList/useSortWindow.d.ts +16 -0
  115. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
  116. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +1 -1
  117. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +1 -1
  118. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +13 -2
  119. package/dist/types/components/HysToast/HysToast.vue.d.ts +44 -46
  120. package/dist/types/components/HysToast/ToastViewport/ToastViewport.vue.d.ts +25 -0
  121. package/dist/types/components/HysToast/ToastViewport/useToastStackDisclosure.d.ts +16 -0
  122. package/dist/types/components/HysToast/toastPresentation.d.ts +8 -0
  123. package/dist/types/components/HysToast/toastTypes.d.ts +212 -0
  124. package/dist/types/components/HysToast/useToastActions.d.ts +18 -0
  125. package/dist/types/components/HysToast/useToastSwipe.d.ts +11 -0
  126. package/dist/types/components/HysToast/useToastTimer.d.ts +22 -0
  127. package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +1 -1
  128. package/dist/types/components/HysTour/HysTour.vue.d.ts +1 -1
  129. package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +3 -3
  130. package/dist/types/components/HysUpload/HysUpload.vue.d.ts +2 -2
  131. package/dist/types/composables/animatedNumber.d.ts +220 -0
  132. package/dist/types/composables/animatedNumberDigits.d.ts +32 -0
  133. package/dist/types/composables/animatedNumberFormat.d.ts +16 -0
  134. package/dist/types/composables/animatedNumberTiming.d.ts +21 -0
  135. package/dist/types/composables/drawer.d.ts +1 -1
  136. package/dist/types/composables/numberAnimation.d.ts +29 -0
  137. package/dist/types/composables/numberAnimationCatalog.d.ts +58 -0
  138. package/dist/types/composables/numberAnimationSequence.d.ts +13 -0
  139. package/dist/types/composables/popupReferenceBinding.d.ts +9 -0
  140. package/dist/types/composables/textInput.d.ts +39 -4
  141. package/dist/types/composables/toastEscape.d.ts +1 -1
  142. package/dist/types/composables/toastQueue.d.ts +121 -0
  143. package/dist/types/composables/toastQueueModel.d.ts +116 -0
  144. package/dist/types/composables/toastTasks.d.ts +2 -0
  145. package/dist/types/composables/useHysAnimatedNumber.d.ts +37 -0
  146. package/dist/types/composables/useHysNumberAnimationGroup.d.ts +4 -0
  147. package/dist/types/composables/useHysToast.d.ts +4 -48
  148. package/dist/types/composables/usePopupSurface.d.ts +20 -20
  149. package/dist/types/composables/usePopupSurfaceInteractions.d.ts +33 -0
  150. package/dist/types/composables/useTextareaSize.d.ts +5 -2
  151. package/dist/types/index.d.ts +15 -6
  152. package/package.json +1 -1
@@ -31,14 +31,18 @@ declare const __VLS_template: () => {
31
31
  };
32
32
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
33
33
  declare const __VLS_base: import("vue").DefineComponent<HysInputProps, {
34
+ element: import("vue").Ref<HTMLInputElement | HTMLTextAreaElement | undefined, HTMLInputElement | HTMLTextAreaElement | undefined>;
34
35
  input: import("vue").Ref<HTMLInputElement | HTMLTextAreaElement | undefined, HTMLInputElement | HTMLTextAreaElement | undefined>;
35
36
  textarea: import("vue").ComputedRef<HTMLTextAreaElement | undefined>;
36
37
  isComposing: import("vue").Ref<boolean, boolean>;
38
+ passwordVisible: import("vue").ComputedRef<boolean>;
39
+ textareaStyle: import("vue").ShallowRef<import("../..").HysTextareaStyle, import("../..").HysTextareaStyle>;
37
40
  focus: (options?: FocusOptions) => void;
38
41
  blur: () => void | undefined;
39
42
  select: () => void | undefined;
40
43
  clear: typeof clear;
41
44
  resize: () => Promise<void>;
45
+ resizeTextarea: () => Promise<void>;
42
46
  setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
43
47
  scrollTo: (options: ScrollToOptions) => void | undefined;
44
48
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -46,11 +50,14 @@ declare const __VLS_base: import("vue").DefineComponent<HysInputProps, {
46
50
  "update:modelValue": (value: string) => any;
47
51
  clear: () => any;
48
52
  input: (value: string) => any;
53
+ keydown: (event: KeyboardEvent) => any;
49
54
  blur: (event: FocusEvent) => any;
50
55
  compositionend: (event: CompositionEvent) => any;
51
56
  compositionstart: (event: CompositionEvent) => any;
52
57
  compositionupdate: (event: CompositionEvent) => any;
53
58
  focus: (event: FocusEvent) => any;
59
+ mouseenter: (event: MouseEvent) => any;
60
+ mouseleave: (event: MouseEvent) => any;
54
61
  pressEnter: (event: KeyboardEvent) => any;
55
62
  "update:passwordVisible": (value: boolean) => any;
56
63
  passwordVisibleChange: (value: boolean) => any;
@@ -59,22 +66,27 @@ declare const __VLS_base: import("vue").DefineComponent<HysInputProps, {
59
66
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
60
67
  onClear?: (() => any) | undefined;
61
68
  onInput?: ((value: string) => any) | undefined;
69
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
62
70
  onBlur?: ((event: FocusEvent) => any) | undefined;
63
71
  onCompositionend?: ((event: CompositionEvent) => any) | undefined;
64
72
  onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
65
73
  onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
66
74
  onFocus?: ((event: FocusEvent) => any) | undefined;
75
+ onMouseenter?: ((event: MouseEvent) => any) | undefined;
76
+ onMouseleave?: ((event: MouseEvent) => any) | undefined;
67
77
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
68
78
  "onUpdate:passwordVisible"?: ((value: boolean) => any) | undefined;
69
79
  onPasswordVisibleChange?: ((value: boolean) => any) | undefined;
70
80
  }>, {
71
81
  bordered: boolean;
72
82
  type: string;
73
- resize: "none" | "both" | "horizontal" | "vertical";
83
+ resize: "none" | "horizontal" | "vertical" | "both";
74
84
  showPasswordOn: "click" | "mousedown";
75
85
  passwordVisible: boolean;
86
+ clearable: boolean;
76
87
  countPosition: "inside" | "outside";
77
88
  rows: number;
89
+ validateEvent: boolean;
78
90
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
80
92
  declare const _default: typeof __VLS_export;
@@ -92,6 +92,7 @@ declare const __VLS_base: import("vue").DefineComponent<HysModalProps, {
92
92
  cancelText: string;
93
93
  fullscreen: boolean;
94
94
  closeOnEscape: boolean;
95
+ dragThreshold: number;
95
96
  initialFocus: import("../../index.js").HysModalInitialFocus;
96
97
  closeOnMask: boolean;
97
98
  showClose: boolean;
@@ -113,7 +114,6 @@ declare const __VLS_base: import("vue").DefineComponent<HysModalProps, {
113
114
  centered: boolean;
114
115
  dragHandlePosition: "left" | "right" | "center" | "both";
115
116
  dragMode: "preview" | "live";
116
- dragThreshold: number;
117
117
  dragEffect: import("../../index.js").HysModalDragEffect;
118
118
  keepHandleVisible: boolean;
119
119
  resetPositionOnClose: boolean;
@@ -45,8 +45,8 @@ declare const __VLS_export: <T extends HysNumberInputValue = number | null>(__VL
45
45
  "onUpdate:modelValue"?: ((value: T) => any) | undefined;
46
46
  onClear?: (() => any) | undefined;
47
47
  onInput?: ((value: T | null) => any) | undefined;
48
- onStep?: ((value: T, info: HysNumberInputStepInfo) => any) | undefined;
49
48
  onBlur?: ((event: FocusEvent) => any) | undefined;
49
+ onStep?: ((value: T, info: HysNumberInputStepInfo) => any) | undefined;
50
50
  onFocus?: ((event: FocusEvent) => any) | undefined;
51
51
  onInvalid?: ((info: HysNumberInputInvalidInfo) => any) | undefined;
52
52
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
@@ -83,7 +83,7 @@ declare const __VLS_export: <T extends HysNumberInputValue = number | null>(__VL
83
83
  } & {
84
84
  append?: (props: {}) => any;
85
85
  };
86
- emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "clear") => void) & ((evt: "input", value: T | null) => void) & ((evt: "step", value: T, info: HysNumberInputStepInfo) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", info: HysNumberInputInvalidInfo) => void) & ((evt: "pressEnter", event: KeyboardEvent) => void);
86
+ emit: ((evt: "change", value: T) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "clear") => void) & ((evt: "input", value: T | null) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "step", value: T, info: HysNumberInputStepInfo) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "invalid", info: HysNumberInputInvalidInfo) => void) & ((evt: "pressEnter", event: KeyboardEvent) => void);
87
87
  }>) => import("vue").VNode & {
88
88
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
89
89
  };
@@ -33,8 +33,8 @@ declare const __VLS_base: import("vue").DefineComponent<HysPopoverProps, {
33
33
  modelValue: boolean;
34
34
  destroyOnHide: boolean;
35
35
  effect: "dark" | "light";
36
- placement: import("../..").Placement;
37
36
  open: boolean;
37
+ placement: import("../..").Placement;
38
38
  appendTo: string | false | HTMLElement;
39
39
  showDelay: number;
40
40
  hideDelay: number;
@@ -54,9 +54,9 @@ declare const __VLS_base: import("vue").DefineComponent<HysSearchProps, {
54
54
  }>, {
55
55
  trigger: "input" | "submit";
56
56
  placeholder: string;
57
+ delay: number;
57
58
  defaultValue: string;
58
59
  clearable: boolean;
59
- delay: number;
60
60
  searchOnClear: boolean;
61
61
  searchLabel: string;
62
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -35,6 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
35
35
  onVisibilityChange?: ((visible: boolean) => any) | undefined;
36
36
  }>, {
37
37
  title: boolean;
38
+ count: number;
39
+ delay: number;
38
40
  active: boolean;
39
41
  loading: boolean;
40
42
  loadingText: string;
@@ -43,8 +45,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
43
45
  avatarSize: number;
44
46
  avatarShape: "circle" | "square";
45
47
  titleWidth: string | number;
46
- count: number;
47
- delay: number;
48
48
  minDuration: number;
49
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
50
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,29 +1,52 @@
1
- type Item = {
2
- id: string;
3
- label: string;
4
- };
5
- type __VLS_Props = {
6
- modelValue: Item[];
7
- disabled?: boolean;
8
- };
9
- declare const __VLS_template: () => {
10
- __VLS_Slots: {
11
- item?: (props: {
12
- item: Item;
13
- }) => any;
1
+ import { type VNodeChild } from "vue";
2
+ import type { HysSortChange, HysSortDrag, HysSortFeedback, HysSortItem, HysSortKey, HysSortMoveOptions, HysSortPreview, HysSortRow, HysSortableListProps } from "./sortableList";
3
+ declare const __VLS_export: <T extends object = HysSortItem>(__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<(Omit<HysSortableListProps<T>, "showHandle"> & {
5
+ showHandle?: boolean;
6
+ }) & {
7
+ onChange?: ((change: HysSortChange<T>) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
9
+ onStart?: ((drag: HysSortDrag<T>) => any) | undefined;
10
+ onCancel?: ((feedback: HysSortFeedback<T>) => any) | undefined;
11
+ onInvalid?: ((feedback: HysSortFeedback<T>) => any) | undefined;
12
+ "onUpdate:selectedKeys"?: ((keys: HysSortKey[]) => any) | undefined;
13
+ onConflict?: ((feedback: HysSortFeedback<T>) => any) | undefined;
14
+ onPreview?: ((preview: HysSortPreview<T> | null) => any) | undefined;
15
+ "onSave-error"?: ((feedback: HysSortFeedback<T>) => any) | undefined;
16
+ }> & (typeof globalThis extends {
17
+ __VLS_PROPS_FALLBACK: infer P;
18
+ } ? P : {});
19
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
20
+ move: (keys: HysSortKey | readonly HysSortKey[], options: HysSortMoveOptions) => Promise<boolean>;
21
+ select: (keys: readonly HysSortKey[]) => void;
22
+ scrollTo: (key: HysSortKey) => Promise<boolean>;
23
+ focus: (key: HysSortKey) => Promise<boolean>;
24
+ undo: () => Promise<boolean>;
25
+ redo: () => Promise<boolean>;
26
+ reset: () => Promise<boolean>;
27
+ cancel: () => void;
28
+ }>) => void;
29
+ attrs: any;
30
+ slots: {
31
+ item?: (row: HysSortRow<T>) => VNodeChild;
32
+ handle?: (row: HysSortRow<T>) => VNodeChild;
33
+ preview?: (context: {
34
+ drag: HysSortDrag<T>;
35
+ allowed: boolean;
36
+ }) => VNodeChild;
37
+ placeholder?: (row: HysSortRow<T>) => VNodeChild;
38
+ empty?: () => VNodeChild;
39
+ header?: () => VNodeChild;
40
+ cells?: (row: HysSortRow<T>) => VNodeChild;
14
41
  };
42
+ emit: ((evt: "change", change: HysSortChange<T>) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "start", drag: HysSortDrag<T>) => void) & ((evt: "cancel", feedback: HysSortFeedback<T>) => void) & ((evt: "invalid", feedback: HysSortFeedback<T>) => void) & ((evt: "update:selectedKeys", keys: HysSortKey[]) => void) & ((evt: "conflict", feedback: HysSortFeedback<T>) => void) & ((evt: "preview", preview: HysSortPreview<T> | null) => void) & ((evt: "save-error", feedback: HysSortFeedback<T>) => void);
43
+ }>) => import("vue").VNode & {
44
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
15
45
  };
16
- type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
17
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
- "update:modelValue": (value: Item[]) => any;
19
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
- "onUpdate:modelValue"?: ((value: Item[]) => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
46
  declare const _default: typeof __VLS_export;
24
47
  export default _default;
25
- type __VLS_WithSlots<T, S> = T & {
26
- new (): {
27
- $slots: S;
28
- };
29
- };
48
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
49
+ [K in keyof T]: T[K];
50
+ } : {
51
+ [K in keyof T as K]: T[K];
52
+ }) & {};
@@ -0,0 +1,31 @@
1
+ import type { StyleValue } from "vue";
2
+ import type { SortGhost } from "./useSortGhost";
3
+ declare const __VLS_export: <T extends object>(__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
+ track: SortGhost<T>;
6
+ appearance: Record<string, string>;
7
+ motion: boolean;
8
+ ghostClass?: string;
9
+ ghostStyle?: StyleValue;
10
+ }> & (typeof globalThis extends {
11
+ __VLS_PROPS_FALLBACK: infer P;
12
+ } ? P : {});
13
+ expose: (exposed: {}) => void;
14
+ attrs: any;
15
+ slots: {
16
+ default?: (props: {
17
+ drag: import("../sortableList").HysSortDrag<T>;
18
+ allowed: boolean;
19
+ }) => any;
20
+ };
21
+ emit: {};
22
+ }>) => import("vue").VNode & {
23
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
24
+ };
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
28
+ [K in keyof T]: T[K];
29
+ } : {
30
+ [K in keyof T as K]: T[K];
31
+ }) & {};
@@ -0,0 +1,23 @@
1
+ import { type Ref } from "vue";
2
+ import type { SortPoint } from "../geometry";
3
+ import type { HysSortDrag } from "../sortableList";
4
+ export interface SortGhost<T extends object> {
5
+ drag: HysSortDrag<T>;
6
+ position: Ref<SortPoint>;
7
+ returning: Ref<boolean>;
8
+ landing: Ref<{
9
+ duration: number;
10
+ easing: string;
11
+ } | null>;
12
+ allowed: Ref<boolean>;
13
+ width: number;
14
+ }
15
+ export declare function useSortGhost<T extends object>(animate: () => boolean, timing: () => {
16
+ duration: number;
17
+ easing: string;
18
+ }): {
19
+ ghost: import("vue").ShallowRef<SortGhost<T> | null, SortGhost<T> | null>;
20
+ show: (drag: HysSortDrag<T>, row: HTMLElement, point: SortPoint) => void;
21
+ clear: (rebound: boolean, row?: HTMLElement) => void;
22
+ release: (commit: (onLanding?: (row?: HTMLElement) => void) => Promise<boolean>, sourceRow: () => HTMLElement | undefined) => Promise<boolean>;
23
+ };
@@ -0,0 +1,35 @@
1
+ import { type SortCandidate, type SortPort, type SortProposal } from "./model";
2
+ import type { HysSortDrag, HysSortFeedback, HysSortableListProps, HysSortKey, HysSortPosition, HysSortScroll } from "./sortableList";
3
+ export interface SortPoint {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ export declare function wholeRowDrag(props: Pick<HysSortableListProps, "handle" | "showHandle">): boolean;
8
+ export declare function hitsSelectableText(element: Element, x: number, y: number): boolean;
9
+ export declare function dropMarkerFor<T extends object>(port: SortPort<T>, candidate: SortCandidate<T>, drag: HysSortDrag<T>, result?: SortProposal<T> | HysSortFeedback<T>): {
10
+ key?: HysSortKey;
11
+ position: HysSortPosition;
12
+ };
13
+ export interface SortHit<T extends object> {
14
+ element: Element | null;
15
+ rowKey?: string;
16
+ candidate?: SortCandidate<T>;
17
+ nearCenter?: boolean;
18
+ nearEdge?: boolean;
19
+ }
20
+ export declare function withinDragBounds<T extends object>(port: SortPort<T>, point: SortPoint, origin: SortPoint): {
21
+ point: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ inside: boolean;
26
+ };
27
+ export declare function gridColumns(element: HTMLElement | undefined): number;
28
+ export declare function findSortHit<T extends object>(source: SortPort<T>, point: SortPoint): SortHit<T>;
29
+ export declare function keepSortCandidate<T extends object>(source: SortPort<T>, current: SortCandidate<T> | undefined, hit?: SortHit<T>): boolean | undefined;
30
+ export declare function candidateAt<T extends object>(source: SortPort<T>, port: SortPort<T>, index: number): SortCandidate<T>;
31
+ export declare function relativeCandidate<T extends object>(port: SortPort<T>, key: HysSortKey, step: number): SortCandidate<T> | undefined;
32
+ export declare function keyStep<T extends object>(port: SortPort<T>, key: string): number;
33
+ export declare function sameCandidate<T extends object>(a?: SortCandidate<T>, b?: SortCandidate<T>): boolean;
34
+ export declare const tokenOf: (key: HysSortKey) => string;
35
+ export declare function autoScrollSort(element: Element | null, point: SortPoint, option: boolean | HysSortScroll | undefined): boolean;
@@ -0,0 +1,61 @@
1
+ import type { HysSortChange, HysSortDrag, HysSortFeedback, HysSortFixed, HysSortGroup, HysSortKey, HysSortOperation, HysSortPosition, HysSortPreview, HysSortProposal, HysSortReason, HysSortSource, HysSortableListProps } from "./sortableList";
2
+ export interface SortIndex<T extends object> {
3
+ keys: Map<HysSortKey, number>;
4
+ fixed: {
5
+ key: HysSortKey;
6
+ index: number;
7
+ placement: HysSortFixed;
8
+ }[];
9
+ items: readonly T[];
10
+ valid: boolean;
11
+ }
12
+ export interface SortPort<T extends object> {
13
+ id: () => string;
14
+ props: HysSortableListProps<T>;
15
+ root: () => HTMLElement | undefined;
16
+ surface: () => HTMLElement | undefined;
17
+ data: () => SortIndex<T>;
18
+ key: (item: T) => HysSortKey;
19
+ label: (item: T) => string;
20
+ row: (key: HysSortKey) => HTMLElement | undefined;
21
+ apply: (items: T[]) => void;
22
+ focus: (key: HysSortKey) => Promise<boolean>;
23
+ scroll: (key: HysSortKey) => Promise<boolean>;
24
+ lock: (busy: boolean) => void;
25
+ start: (drag: HysSortDrag<T>) => void;
26
+ preview: (preview: HysSortPreview<T> | null) => void;
27
+ change: (change: HysSortChange<T>) => void;
28
+ reject: (feedback: HysSortFeedback<T>) => void;
29
+ announce: (message: string) => void;
30
+ }
31
+ export interface SortCandidate<T extends object> {
32
+ port: SortPort<T>;
33
+ index: number;
34
+ position: HysSortPosition;
35
+ anchor?: HysSortKey;
36
+ operation?: HysSortOperation;
37
+ }
38
+ export interface SortProposal<T extends object> {
39
+ source: SortPort<T>;
40
+ target: SortPort<T>;
41
+ proposal: HysSortProposal<T>;
42
+ changes: {
43
+ port: SortPort<T>;
44
+ previous: readonly T[];
45
+ next: T[];
46
+ }[];
47
+ }
48
+ export declare function registerSortPort<T extends object>(element: HTMLElement, port: SortPort<T>): () => void;
49
+ export declare const sortPorts: <T extends object>() => SortPort<T>[];
50
+ export declare function portAt<T extends object>(element: Element | null): SortPort<T> | undefined;
51
+ export declare const groupOf: <T extends object>(port: SortPort<T>) => HysSortGroup<T> | undefined;
52
+ export declare function linkedPorts<T extends object>(port: SortPort<T>): SortPort<T>[];
53
+ export declare const keyToken: (key: HysSortKey) => string;
54
+ export declare const layoutOf: (props: Pick<HysSortableListProps, "layout" | "listTag">) => import("./sortableList").HysSortLayout;
55
+ export declare function buildSortIndex<T extends object>(items: readonly T[], keyOf: (item: T) => HysSortKey, fixed: HysSortableListProps<T>["fixed"]): SortIndex<T>;
56
+ export declare function feedback<T extends object>(reason: HysSortReason, proposal?: HysSortProposal<T>, message?: string, error?: unknown): HysSortFeedback<T>;
57
+ export declare function dragIssue<T extends object>(port: SortPort<T>, item: T, index: number): HysSortFeedback<T> | undefined;
58
+ export declare function makeDrag<T extends object>(port: SortPort<T>, keys: readonly HysSortKey[], source: HysSortSource): HysSortDrag<T> | HysSortFeedback<T>;
59
+ export declare function preserved<T extends object>(port: SortPort<T>, next: readonly T[]): boolean;
60
+ export declare const sameItems: <T>(left: readonly T[], right: readonly T[]) => boolean;
61
+ export declare function proposeSort<T extends object>(source: SortPort<T>, drag: HysSortDrag<T>, candidate: SortCandidate<T>, commit?: boolean): SortProposal<T> | HysSortFeedback<T>;
@@ -0,0 +1,151 @@
1
+ import type { StyleValue } from "vue";
2
+ export type HysSortKey = string | number;
3
+ export interface HysSortItem {
4
+ id: HysSortKey;
5
+ label: string;
6
+ }
7
+ export type HysSortLayout = "vertical" | "horizontal" | "grid";
8
+ export type HysSortMode = "insert" | "swap";
9
+ export type HysSortOperation = "move" | "copy" | "clone";
10
+ export type HysSortPosition = "before" | "after" | "inside";
11
+ export type HysSortSource = "pointer" | "keyboard" | "button" | "api";
12
+ export type HysSortFixed = boolean | "top" | "bottom";
13
+ export type HysSortDecision = boolean | string | void;
14
+ export type HysSortReason = "cancelled" | "outside" | "disabled" | "keys" | "group" | "capacity" | "fixed" | "cycle" | "noop" | "rule" | "conflict" | "save";
15
+ export interface HysSortListInfo<T extends object> {
16
+ id: string;
17
+ group?: string;
18
+ items: readonly T[];
19
+ }
20
+ export interface HysSortDrag<T extends object> {
21
+ source: HysSortSource;
22
+ from: HysSortListInfo<T>;
23
+ items: readonly T[];
24
+ keys: readonly HysSortKey[];
25
+ indices: readonly number[];
26
+ }
27
+ export interface HysSortProposal<T extends object> extends HysSortDrag<T> {
28
+ to: HysSortListInfo<T>;
29
+ /** 原列表中的插入边界,0 表示首位,length 表示末尾。交换模式下为目标项索引。 */
30
+ index: number;
31
+ position: HysSortPosition;
32
+ targetItem?: T;
33
+ operation: HysSortOperation;
34
+ mode: HysSortMode;
35
+ }
36
+ export interface HysSortListChange<T extends object> {
37
+ id: string;
38
+ previous: readonly T[];
39
+ next: readonly T[];
40
+ }
41
+ export interface HysSortPreview<T extends object> {
42
+ proposal: HysSortProposal<T>;
43
+ lists: readonly HysSortListChange<T>[];
44
+ }
45
+ export interface HysSortChange<T extends object> {
46
+ action: "sort" | "undo" | "redo" | "reset" | "rollback";
47
+ proposal?: HysSortProposal<T>;
48
+ lists: readonly HysSortListChange<T>[];
49
+ }
50
+ export interface HysSortFeedback<T extends object> {
51
+ reason: HysSortReason;
52
+ message: string;
53
+ proposal?: HysSortProposal<T>;
54
+ error?: unknown;
55
+ }
56
+ export interface HysSortGroup<T extends object> {
57
+ name: string;
58
+ pull?: boolean | HysSortOperation | ((proposal: HysSortProposal<T>) => boolean | HysSortOperation);
59
+ put?: boolean | readonly string[] | ((proposal: HysSortProposal<T>) => HysSortDecision);
60
+ }
61
+ export interface HysSortScroll {
62
+ threshold?: number;
63
+ speed?: number;
64
+ axis?: "x" | "y" | "both";
65
+ window?: boolean;
66
+ }
67
+ export interface HysSortVirtual {
68
+ height?: number | string;
69
+ estimateSize?: number;
70
+ overscan?: number;
71
+ /** 网格每一行的列数。设置为函数可根据容器宽度调整。 */
72
+ columns?: number | ((width: number) => number);
73
+ }
74
+ export interface HysSortRow<T extends object> {
75
+ item: T;
76
+ key: HysSortKey;
77
+ index: number;
78
+ selected: boolean;
79
+ dragging: boolean;
80
+ disabled: boolean;
81
+ fixed: HysSortFixed;
82
+ toggle: (event?: MouseEvent) => void;
83
+ move: (offset: number) => Promise<boolean>;
84
+ }
85
+ export interface HysSortableListProps<T extends object = HysSortItem> {
86
+ /** 受控列表。每项必须有唯一、稳定的键。 */
87
+ modelValue?: readonly T[];
88
+ /** 非受控初始数据,也可通过 reset 恢复挂载时的顺序。 */
89
+ defaultItems?: readonly T[];
90
+ itemKey?: keyof T | ((item: T) => HysSortKey);
91
+ itemLabel?: keyof T | ((item: T) => string);
92
+ listId?: string;
93
+ ariaLabel?: string;
94
+ layout?: HysSortLayout;
95
+ mode?: HysSortMode;
96
+ disabled?: boolean;
97
+ itemDisabled?: readonly HysSortKey[] | ((item: T, index: number) => boolean);
98
+ fixed?: readonly HysSortKey[] | ((item: T, index: number) => HysSortFixed | undefined);
99
+ handle?: boolean | string;
100
+ showHandle?: boolean;
101
+ showButtons?: boolean;
102
+ keyboard?: boolean;
103
+ dragDelay?: number;
104
+ touchDelay?: number;
105
+ dragThreshold?: number;
106
+ axis?: "x" | "y" | "both";
107
+ bounds?: "list" | "viewport" | HTMLElement | (() => HTMLElement | null | undefined);
108
+ snap?: boolean;
109
+ livePreview?: boolean;
110
+ group?: string | HysSortGroup<T>;
111
+ maxItems?: number;
112
+ selectable?: boolean;
113
+ selectedKeys?: readonly HysSortKey[];
114
+ defaultSelectedKeys?: readonly HysSortKey[];
115
+ /** copy 浅拷贝、clone 深拷贝。自定义时应返回有新键的项目。 */
116
+ clone?: (item: T, proposal: HysSortProposal<T>) => T;
117
+ canDrag?: (item: T, index: number) => HysSortDecision;
118
+ canDrop?: (proposal: HysSortProposal<T>) => HysSortDecision;
119
+ resolveIndex?: (proposal: HysSortProposal<T>) => number;
120
+ beforeDrop?: (proposal: HysSortProposal<T>, signal: AbortSignal) => HysSortDecision | Promise<HysSortDecision>;
121
+ save?: (change: HysSortChange<T>, signal: AbortSignal) => void | boolean | Promise<void | boolean>;
122
+ history?: boolean | number;
123
+ storageKey?: string;
124
+ autoScroll?: boolean | HysSortScroll;
125
+ virtual?: boolean | HysSortVirtual;
126
+ listTag?: "div" | "ul" | "ol" | "table";
127
+ tableColumns?: number;
128
+ motion?: boolean;
129
+ animationDuration?: number;
130
+ animationEasing?: string;
131
+ moveClass?: string;
132
+ ghostClass?: string;
133
+ ghostStyle?: StyleValue;
134
+ }
135
+ export interface HysSortMoveOptions {
136
+ /** 目标 listId;省略时在当前列表内移动。 */
137
+ to?: string;
138
+ /** 使用目标当前模型的插入边界;交换模式下为项目索引。 */
139
+ index: number;
140
+ operation?: HysSortOperation;
141
+ }
142
+ export interface HysSortableListInstance {
143
+ move: (keys: HysSortKey | readonly HysSortKey[], options: HysSortMoveOptions) => Promise<boolean>;
144
+ undo: () => Promise<boolean>;
145
+ redo: () => Promise<boolean>;
146
+ reset: () => Promise<boolean>;
147
+ cancel: () => void;
148
+ select: (keys: readonly HysSortKey[]) => void;
149
+ scrollTo: (key: HysSortKey) => Promise<boolean>;
150
+ focus: (key: HysSortKey) => Promise<boolean>;
151
+ }
@@ -0,0 +1,10 @@
1
+ import { type SortCandidate, type SortPort } from "./model";
2
+ import type { HysSortDrag, HysSortKey } from "./sortableList";
3
+ export declare const busySort: (port: object) => boolean;
4
+ export declare const abortSort: (port: object) => void | undefined;
5
+ export declare function discardSortHistory<T extends object>(port: SortPort<T>): void;
6
+ export declare function restoreStoredSort<T extends object>(port: SortPort<T>): void;
7
+ export declare function commitSort<T extends object>(source: SortPort<T>, drag: HysSortDrag<T>, candidate: SortCandidate<T>, onLanding?: (row?: HTMLElement) => void): Promise<boolean>;
8
+ export declare function navigateHistory<T extends object>(port: SortPort<T>, action: "undo" | "redo"): Promise<boolean>;
9
+ export declare function resetSort<T extends object>(port: SortPort<T>, initial: readonly T[]): Promise<boolean>;
10
+ export declare function keysArray(keys: HysSortKey | readonly HysSortKey[]): readonly HysSortKey[];
@@ -0,0 +1,25 @@
1
+ import { type SortCandidate, type SortPort, type SortProposal } from "./model";
2
+ import type { HysSortDrag, HysSortFeedback, HysSortKey, HysSortReason, HysSortSource } from "./sortableList";
3
+ interface ActiveSort<T extends object> {
4
+ source: SortPort<T>;
5
+ drag: HysSortDrag<T>;
6
+ candidate?: SortCandidate<T>;
7
+ result?: SortProposal<T> | HysSortFeedback<T>;
8
+ }
9
+ export declare function useSortDrag<T extends object>(port: SortPort<T>, pickedKeys: (key: HysSortKey) => readonly HysSortKey[], animate: () => boolean): {
10
+ own: import("vue").ComputedRef<ActiveSort<T> | null>;
11
+ over: import("vue").ComputedRef<ActiveSort<T> | null>;
12
+ ghost: import("vue").ShallowRef<import("./SortableGhost/useSortGhost").SortGhost<T> | null, import("./SortableGhost/useSortGhost").SortGhost<T> | null>;
13
+ anchorForDisplay: import("vue").ComputedRef<{
14
+ key?: HysSortKey;
15
+ position: import("./sortableList").HysSortPosition;
16
+ } | undefined>;
17
+ pointerDown: (event: PointerEvent, key: HysSortKey, rowDisabled: boolean) => void;
18
+ keyboard: (event: KeyboardEvent, key: HysSortKey, rowDisabled: boolean) => void;
19
+ move: (keys: readonly HysSortKey[], candidate: SortCandidate<T>, source: HysSortSource) => Promise<boolean>;
20
+ relative: (key: HysSortKey, step: number, source: HysSortSource) => Promise<boolean>;
21
+ cancel: (reason?: HysSortReason, rebound?: boolean) => void;
22
+ detach: () => void;
23
+ dataChanged: () => void;
24
+ };
25
+ export {};
@@ -0,0 +1,17 @@
1
+ import { type SortCandidate, type SortPort, type SortProposal } from "./model";
2
+ import type { HysSortDrag, HysSortFeedback, HysSortKey } from "./sortableList";
3
+ export declare const sortInteractive = "button,input,select,textarea,a[href],label,[contenteditable=true],[role=button],[data-sort-ignore]";
4
+ export declare function keyboardPreviewLabel<T extends object>(source: SortPort<T>, item: T, result?: SortProposal<T> | HysSortFeedback<T>): string;
5
+ interface KeyboardSort<T extends object> {
6
+ current: () => {
7
+ drag: HysSortDrag<T>;
8
+ candidate?: SortCandidate<T>;
9
+ } | null;
10
+ begin: (key: HysSortKey) => void;
11
+ update: (candidate: SortCandidate<T>) => void;
12
+ finish: () => Promise<boolean>;
13
+ cancel: () => void;
14
+ relative: (key: HysSortKey, step: number) => Promise<boolean>;
15
+ }
16
+ export declare function useSortKeyboard<T extends object>(port: SortPort<T>, actions: KeyboardSort<T>): (event: KeyboardEvent, key: HysSortKey, rowDisabled: boolean) => void;
17
+ export {};
@@ -0,0 +1,16 @@
1
+ import { type Ref } from "vue";
2
+ import type { HysSortableListProps, HysSortKey } from "./sortableList";
3
+ export declare function useSortWindow<T extends object>(props: HysSortableListProps<T>, items: Ref<readonly T[]>, viewport: Ref<HTMLElement | null>, surface: Ref<HTMLElement | null>, keyOf: (item: T) => HysSortKey): {
4
+ visibleItems: import("vue").ComputedRef<T[]>;
5
+ range: import("vue").ComputedRef<{
6
+ start: number;
7
+ end: number;
8
+ before: number;
9
+ after: number;
10
+ }>;
11
+ horizontal: import("vue").ComputedRef<boolean>;
12
+ length: import("vue").ComputedRef<string | undefined>;
13
+ columns: import("vue").ComputedRef<number>;
14
+ reveal: (index: number) => Promise<void>;
15
+ syncPosition: () => void;
16
+ };
@@ -62,8 +62,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
62
62
  }>, {
63
63
  size: "sm" | "md";
64
64
  status: HysStepStatus;
65
- responsive: boolean;
66
65
  current: number;
66
+ responsive: boolean;
67
67
  labelPlacement: "right" | "bottom";
68
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
69
69
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -88,7 +88,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
88
88
  destroyOnHide: boolean;
89
89
  type: "line" | "card" | "segment" | "border-card";
90
90
  animated: boolean;
91
- activation: "auto" | "manual";
91
+ activation: "manual" | "auto";
92
92
  showScrollButtons: boolean;
93
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
94
94
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<HysTagInputProps, {
47
47
  max: number;
48
48
  placeholder: string;
49
49
  autocomplete: string;
50
- caseSensitive: boolean;
51
50
  validateEvent: boolean;
51
+ caseSensitive: boolean;
52
52
  addOnBlur: boolean;
53
53
  tagTone: "primary" | "success" | "warning" | "danger" | "neutral";
54
54
  tagEffect: "dark" | "light" | "outline";