@illinois-grad/grad-vue 3.0.8 → 3.0.9

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.
@@ -78,8 +78,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
78
78
  } & {
79
79
  modelValue?: string | number | null;
80
80
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
- change: (...args: any[]) => void;
82
- "update:modelValue": (value: string | number | null | undefined) => void;
81
+ "update:modelValue": (value: string | number | null | undefined) => any;
83
82
  }, string, import("vue").PublicProps, Readonly<{
84
83
  /**
85
84
  * List of options to choose from
@@ -143,7 +142,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
143
142
  modelValue?: string | number | null;
144
143
  }> & Readonly<{
145
144
  "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
146
- onChange?: ((...args: any[]) => any) | undefined;
147
145
  }>, {
148
146
  errors: string[];
149
147
  required: boolean;
@@ -56,8 +56,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
56
56
  } & {
57
57
  modelValue?: string | number;
58
58
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
- change: (...args: any[]) => void;
60
- "update:modelValue": (value: string | number) => void;
59
+ "update:modelValue": (value: string | number) => any;
61
60
  }, string, import("vue").PublicProps, Readonly<{
62
61
  /**
63
62
  * List of options to select from
@@ -102,7 +101,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
102
101
  modelValue?: string | number;
103
102
  }> & Readonly<{
104
103
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
105
- onChange?: ((...args: any[]) => any) | undefined;
106
104
  }>, {
107
105
  size: "small" | "medium" | "large";
108
106
  name: string;
@@ -39,8 +39,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
39
39
  } & {
40
40
  modelValue?: boolean | null;
41
41
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
- change: (...args: any[]) => void;
43
- "update:modelValue": (value: boolean | null) => void;
42
+ "update:modelValue": (value: boolean | null) => any;
44
43
  }, string, import("vue").PublicProps, Readonly<{
45
44
  /**
46
45
  * Accessible label
@@ -65,7 +64,6 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
65
64
  modelValue?: boolean | null;
66
65
  }> & Readonly<{
67
66
  "onUpdate:modelValue"?: ((value: boolean | null) => any) | undefined;
68
- onChange?: ((...args: any[]) => any) | undefined;
69
67
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
70
68
  label?: (props: {}) => any;
71
69
  }>;
@@ -0,0 +1,12 @@
1
+ import { type Ref } from "vue";
2
+ /**
3
+ * Composable to handle scroll position storage and automatic restoration for a component.
4
+ * Saves the scroll top of the nearest scrollable parent when scrolling,
5
+ * and restores it automatically on mount or when the component becomes visible.
6
+ *
7
+ * @param elementRef Ref to the element whose scrollable parent should be tracked.
8
+ * @param storageKey Session storage key prefix. Scroll position is saved under `${storageKey}:scroll`.
9
+ */
10
+ export declare function useScrollRestore(elementRef: Ref<HTMLElement | null>, storageKey: string | undefined): {
11
+ isPendingScrollRestore: Ref<boolean, boolean>;
12
+ };