@uzum-tech/ui 1.10.1 → 1.11.1
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.
- package/dist/index.js +1248 -263
- package/dist/index.prod.js +3 -3
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/safe-top-scrollbar/index.d.ts +2 -0
- package/es/_internal/safe-top-scrollbar/index.js +1 -0
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +356 -0
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.js +708 -0
- package/es/_internal/safe-top-scrollbar/src/styles/index.cssr.d.ts +2 -0
- package/es/_internal/safe-top-scrollbar/src/styles/index.cssr.js +80 -0
- package/es/_internal/safe-top-scrollbar/src/styles/rtl.cssr.d.ts +2 -0
- package/es/_internal/safe-top-scrollbar/src/styles/rtl.cssr.js +10 -0
- package/es/_internal/safe-top-scrollbar/styles/common.d.ts +7 -0
- package/es/_internal/safe-top-scrollbar/styles/common.js +7 -0
- package/es/_internal/safe-top-scrollbar/styles/dark.d.ts +3 -0
- package/es/_internal/safe-top-scrollbar/styles/dark.js +8 -0
- package/es/_internal/safe-top-scrollbar/styles/index.d.ts +4 -0
- package/es/_internal/safe-top-scrollbar/styles/index.js +3 -0
- package/es/_internal/safe-top-scrollbar/styles/light.d.ts +18 -0
- package/es/_internal/safe-top-scrollbar/styles/light.js +12 -0
- package/es/_internal/safe-top-scrollbar/styles/rtl.d.ts +3 -0
- package/es/_internal/safe-top-scrollbar/styles/rtl.js +6 -0
- package/es/chat/src/Chat.d.ts +14 -1
- package/es/chat/src/Chat.js +5 -0
- package/es/chat/src/ChatParts/ChatAttachment.js +31 -3
- package/es/chat/src/ChatParts/MainArea.js +37 -41
- package/es/chat/src/interface.d.ts +6 -2
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/drawer/src/Drawer.d.ts +18 -0
- package/es/drawer/src/Drawer.js +28 -26
- package/es/drawer/src/DrawerBodyWrapper.d.ts +8 -0
- package/es/drawer/src/DrawerBodyWrapper.js +36 -8
- package/es/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/es/modal-fullscreen/src/ModalFull.js +31 -24
- package/es/modal-fullscreen/src/styles/index.cssr.js +11 -11
- package/es/safe-top-scrollbar/index.d.ts +2 -0
- package/es/safe-top-scrollbar/index.js +1 -0
- package/es/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +177 -0
- package/es/safe-top-scrollbar/src/SafeTopScrollbar.js +38 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_internal/safe-top-scrollbar/index.d.ts +2 -0
- package/lib/_internal/safe-top-scrollbar/index.js +9 -0
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +356 -0
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.js +714 -0
- package/lib/_internal/safe-top-scrollbar/src/styles/index.cssr.d.ts +2 -0
- package/lib/_internal/safe-top-scrollbar/src/styles/index.cssr.js +85 -0
- package/lib/_internal/safe-top-scrollbar/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/_internal/safe-top-scrollbar/src/styles/rtl.cssr.js +15 -0
- package/lib/_internal/safe-top-scrollbar/styles/common.d.ts +7 -0
- package/lib/_internal/safe-top-scrollbar/styles/common.js +10 -0
- package/lib/_internal/safe-top-scrollbar/styles/dark.d.ts +3 -0
- package/lib/_internal/safe-top-scrollbar/styles/dark.js +10 -0
- package/lib/_internal/safe-top-scrollbar/styles/index.d.ts +4 -0
- package/lib/_internal/safe-top-scrollbar/styles/index.js +12 -0
- package/lib/_internal/safe-top-scrollbar/styles/light.d.ts +18 -0
- package/lib/_internal/safe-top-scrollbar/styles/light.js +16 -0
- package/lib/_internal/safe-top-scrollbar/styles/rtl.d.ts +3 -0
- package/lib/_internal/safe-top-scrollbar/styles/rtl.js +12 -0
- package/lib/chat/src/Chat.d.ts +14 -1
- package/lib/chat/src/Chat.js +5 -0
- package/lib/chat/src/ChatParts/ChatAttachment.js +30 -2
- package/lib/chat/src/ChatParts/MainArea.js +37 -41
- package/lib/chat/src/interface.d.ts +6 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/drawer/src/Drawer.d.ts +18 -0
- package/lib/drawer/src/Drawer.js +28 -26
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +8 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +36 -8
- package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/lib/modal-fullscreen/src/ModalFull.js +30 -23
- package/lib/modal-fullscreen/src/styles/index.cssr.js +11 -11
- package/lib/safe-top-scrollbar/index.d.ts +2 -0
- package/lib/safe-top-scrollbar/index.js +9 -0
- package/lib/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +177 -0
- package/lib/safe-top-scrollbar/src/SafeTopScrollbar.js +41 -0
- package/lib/themes/dark.js +5 -0
- package/lib/themes/light.js +5 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +58 -2
package/lib/_internal/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.internalTextProps = exports.InternalUText = exports.UBaseAccountOption = exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
|
|
6
|
+
exports.internalTextProps = exports.InternalUText = exports.UBaseAccountOption = exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxSafeTopScrollbar = exports.USafeTopScrollbar = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
|
|
7
7
|
var icon_switch_transition_1 = require("./icon-switch-transition");
|
|
8
8
|
Object.defineProperty(exports, "UIconSwitchTransition", { enumerable: true, get: function () { return __importDefault(icon_switch_transition_1).default; } });
|
|
9
9
|
var fade_in_expand_transition_1 = require("./fade-in-expand-transition");
|
|
@@ -35,6 +35,9 @@ Object.defineProperty(exports, "UBaseSuffix", { enumerable: true, get: function
|
|
|
35
35
|
var scrollbar_1 = require("./scrollbar");
|
|
36
36
|
Object.defineProperty(exports, "UScrollbar", { enumerable: true, get: function () { return scrollbar_1.UScrollbar; } });
|
|
37
37
|
Object.defineProperty(exports, "UxScrollbar", { enumerable: true, get: function () { return scrollbar_1.UxScrollbar; } });
|
|
38
|
+
var safe_top_scrollbar_1 = require("./safe-top-scrollbar");
|
|
39
|
+
Object.defineProperty(exports, "USafeTopScrollbar", { enumerable: true, get: function () { return safe_top_scrollbar_1.USafeTopScrollbar; } });
|
|
40
|
+
Object.defineProperty(exports, "UxSafeTopScrollbar", { enumerable: true, get: function () { return safe_top_scrollbar_1.UxSafeTopScrollbar; } });
|
|
38
41
|
var checkbox_1 = require("./checkbox");
|
|
39
42
|
Object.defineProperty(exports, "checkboxGroupInjectionKey", { enumerable: true, get: function () { return checkbox_1.checkboxGroupInjectionKey; } });
|
|
40
43
|
Object.defineProperty(exports, "checkboxBaseProps", { enumerable: true, get: function () { return checkbox_1.checkboxBaseProps; } });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UxSafeTopScrollbar = exports.USafeTopScrollbar = void 0;
|
|
7
|
+
var SafeTopScrollbar_1 = require("./src/SafeTopScrollbar");
|
|
8
|
+
Object.defineProperty(exports, "USafeTopScrollbar", { enumerable: true, get: function () { return __importDefault(SafeTopScrollbar_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "UxSafeTopScrollbar", { enumerable: true, get: function () { return SafeTopScrollbar_1.XSafeTopScrollbar; } });
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, PropType } from 'vue';
|
|
2
|
+
import type { ExtractInternalPropTypes, ExtractPublicPropTypes } from '../../../_utils';
|
|
3
|
+
export interface ScrollTo {
|
|
4
|
+
(x: number, y: number): void;
|
|
5
|
+
(options: {
|
|
6
|
+
left?: number;
|
|
7
|
+
top?: number;
|
|
8
|
+
behavior?: ScrollBehavior;
|
|
9
|
+
debounce?: boolean;
|
|
10
|
+
}): void;
|
|
11
|
+
(options: {
|
|
12
|
+
el: HTMLElement;
|
|
13
|
+
behavior?: ScrollBehavior;
|
|
14
|
+
debounce?: boolean;
|
|
15
|
+
}): void;
|
|
16
|
+
(options: {
|
|
17
|
+
index: number;
|
|
18
|
+
elSize: number;
|
|
19
|
+
behavior?: ScrollBehavior;
|
|
20
|
+
debounce?: boolean;
|
|
21
|
+
}): void;
|
|
22
|
+
(options: {
|
|
23
|
+
position: 'top' | 'bottom';
|
|
24
|
+
behavior?: ScrollBehavior;
|
|
25
|
+
debounce?: boolean;
|
|
26
|
+
}): void;
|
|
27
|
+
}
|
|
28
|
+
export interface ScrollBy {
|
|
29
|
+
(x: number, y: number): void;
|
|
30
|
+
(options: {
|
|
31
|
+
left?: number;
|
|
32
|
+
top?: number;
|
|
33
|
+
behavior?: ScrollBehavior;
|
|
34
|
+
}): void;
|
|
35
|
+
}
|
|
36
|
+
export interface SafeTopScrollbarInstMethods {
|
|
37
|
+
syncUnifiedContainer: () => void;
|
|
38
|
+
scrollTo: ScrollTo;
|
|
39
|
+
scrollBy: ScrollBy;
|
|
40
|
+
sync: () => void;
|
|
41
|
+
handleMouseEnterWrapper: () => void;
|
|
42
|
+
handleMouseLeaveWrapper: () => void;
|
|
43
|
+
getScrollState: () => {
|
|
44
|
+
scrollHeight: number;
|
|
45
|
+
scrollTop: number;
|
|
46
|
+
clientHeight: number;
|
|
47
|
+
};
|
|
48
|
+
adjustScrollTop: (heightDiff: number) => void;
|
|
49
|
+
}
|
|
50
|
+
export interface SafeTopScrollbarInst extends SafeTopScrollbarInstMethods {
|
|
51
|
+
$el: HTMLElement;
|
|
52
|
+
containerRef: HTMLElement | null;
|
|
53
|
+
contentRef: HTMLElement | null;
|
|
54
|
+
containerScrollTop: number;
|
|
55
|
+
}
|
|
56
|
+
declare const safeTopscrollbarProps: {
|
|
57
|
+
readonly duration: {
|
|
58
|
+
readonly type: NumberConstructor;
|
|
59
|
+
readonly default: 0;
|
|
60
|
+
};
|
|
61
|
+
readonly scrollable: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly default: true;
|
|
64
|
+
};
|
|
65
|
+
readonly xScrollable: BooleanConstructor;
|
|
66
|
+
readonly trigger: {
|
|
67
|
+
readonly type: PropType<"none" | "hover">;
|
|
68
|
+
readonly default: "hover";
|
|
69
|
+
};
|
|
70
|
+
readonly useUnifiedContainer: BooleanConstructor;
|
|
71
|
+
readonly triggerDisplayManually: BooleanConstructor;
|
|
72
|
+
readonly container: PropType<() => HTMLElement | null | undefined>;
|
|
73
|
+
readonly content: PropType<() => HTMLElement | null | undefined>;
|
|
74
|
+
readonly containerClass: StringConstructor;
|
|
75
|
+
readonly containerStyle: PropType<string | CSSProperties>;
|
|
76
|
+
readonly contentClass: PropType<string | Array<string | undefined>>;
|
|
77
|
+
readonly contentStyle: PropType<string | CSSProperties>;
|
|
78
|
+
readonly horizontalRailStyle: PropType<string | CSSProperties>;
|
|
79
|
+
readonly verticalRailStyle: PropType<string | CSSProperties>;
|
|
80
|
+
readonly onScroll: PropType<(e: Event) => void>;
|
|
81
|
+
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
82
|
+
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
83
|
+
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
84
|
+
readonly internalHoistYRail: BooleanConstructor;
|
|
85
|
+
readonly yPlacement: {
|
|
86
|
+
readonly type: PropType<"left" | "right">;
|
|
87
|
+
readonly default: "right";
|
|
88
|
+
};
|
|
89
|
+
readonly xPlacement: {
|
|
90
|
+
readonly type: PropType<"top" | "bottom">;
|
|
91
|
+
readonly default: "bottom";
|
|
92
|
+
};
|
|
93
|
+
readonly theme: PropType<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
94
|
+
height: string;
|
|
95
|
+
width: string;
|
|
96
|
+
borderRadius: string;
|
|
97
|
+
color: string;
|
|
98
|
+
colorHover: string;
|
|
99
|
+
railInsetHorizontalBottom: string;
|
|
100
|
+
railInsetHorizontalTop: string;
|
|
101
|
+
railInsetVerticalRight: string;
|
|
102
|
+
railInsetVerticalLeft: string;
|
|
103
|
+
railColor: string;
|
|
104
|
+
}, any>>;
|
|
105
|
+
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
106
|
+
height: string;
|
|
107
|
+
width: string;
|
|
108
|
+
borderRadius: string;
|
|
109
|
+
color: string;
|
|
110
|
+
colorHover: string;
|
|
111
|
+
railInsetHorizontalBottom: string;
|
|
112
|
+
railInsetHorizontalTop: string;
|
|
113
|
+
railInsetVerticalRight: string;
|
|
114
|
+
railInsetVerticalLeft: string;
|
|
115
|
+
railColor: string;
|
|
116
|
+
}, any>>>;
|
|
117
|
+
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
118
|
+
height: string;
|
|
119
|
+
width: string;
|
|
120
|
+
borderRadius: string;
|
|
121
|
+
color: string;
|
|
122
|
+
colorHover: string;
|
|
123
|
+
railInsetHorizontalBottom: string;
|
|
124
|
+
railInsetHorizontalTop: string;
|
|
125
|
+
railInsetVerticalRight: string;
|
|
126
|
+
railInsetVerticalLeft: string;
|
|
127
|
+
railColor: string;
|
|
128
|
+
}, any>>>;
|
|
129
|
+
};
|
|
130
|
+
export type SafeTopScrollbarProps = ExtractPublicPropTypes<typeof safeTopscrollbarProps>;
|
|
131
|
+
export type SafeTopScrollbarInternalProps = ExtractInternalPropTypes<typeof safeTopscrollbarProps>;
|
|
132
|
+
declare const SafeTopScrollbar: import("vue").DefineComponent<{
|
|
133
|
+
readonly duration: {
|
|
134
|
+
readonly type: NumberConstructor;
|
|
135
|
+
readonly default: 0;
|
|
136
|
+
};
|
|
137
|
+
readonly scrollable: {
|
|
138
|
+
readonly type: BooleanConstructor;
|
|
139
|
+
readonly default: true;
|
|
140
|
+
};
|
|
141
|
+
readonly xScrollable: BooleanConstructor;
|
|
142
|
+
readonly trigger: {
|
|
143
|
+
readonly type: PropType<"none" | "hover">;
|
|
144
|
+
readonly default: "hover";
|
|
145
|
+
};
|
|
146
|
+
readonly useUnifiedContainer: BooleanConstructor;
|
|
147
|
+
readonly triggerDisplayManually: BooleanConstructor;
|
|
148
|
+
readonly container: PropType<() => HTMLElement | null | undefined>;
|
|
149
|
+
readonly content: PropType<() => HTMLElement | null | undefined>;
|
|
150
|
+
readonly containerClass: StringConstructor;
|
|
151
|
+
readonly containerStyle: PropType<string | CSSProperties>;
|
|
152
|
+
readonly contentClass: PropType<string | Array<string | undefined>>;
|
|
153
|
+
readonly contentStyle: PropType<string | CSSProperties>;
|
|
154
|
+
readonly horizontalRailStyle: PropType<string | CSSProperties>;
|
|
155
|
+
readonly verticalRailStyle: PropType<string | CSSProperties>;
|
|
156
|
+
readonly onScroll: PropType<(e: Event) => void>;
|
|
157
|
+
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
158
|
+
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
159
|
+
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
160
|
+
readonly internalHoistYRail: BooleanConstructor;
|
|
161
|
+
readonly yPlacement: {
|
|
162
|
+
readonly type: PropType<"left" | "right">;
|
|
163
|
+
readonly default: "right";
|
|
164
|
+
};
|
|
165
|
+
readonly xPlacement: {
|
|
166
|
+
readonly type: PropType<"top" | "bottom">;
|
|
167
|
+
readonly default: "bottom";
|
|
168
|
+
};
|
|
169
|
+
readonly theme: PropType<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
170
|
+
height: string;
|
|
171
|
+
width: string;
|
|
172
|
+
borderRadius: string;
|
|
173
|
+
color: string;
|
|
174
|
+
colorHover: string;
|
|
175
|
+
railInsetHorizontalBottom: string;
|
|
176
|
+
railInsetHorizontalTop: string;
|
|
177
|
+
railInsetVerticalRight: string;
|
|
178
|
+
railInsetVerticalLeft: string;
|
|
179
|
+
railColor: string;
|
|
180
|
+
}, any>>;
|
|
181
|
+
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
182
|
+
height: string;
|
|
183
|
+
width: string;
|
|
184
|
+
borderRadius: string;
|
|
185
|
+
color: string;
|
|
186
|
+
colorHover: string;
|
|
187
|
+
railInsetHorizontalBottom: string;
|
|
188
|
+
railInsetHorizontalTop: string;
|
|
189
|
+
railInsetVerticalRight: string;
|
|
190
|
+
railInsetVerticalLeft: string;
|
|
191
|
+
railColor: string;
|
|
192
|
+
}, any>>>;
|
|
193
|
+
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
194
|
+
height: string;
|
|
195
|
+
width: string;
|
|
196
|
+
borderRadius: string;
|
|
197
|
+
color: string;
|
|
198
|
+
colorHover: string;
|
|
199
|
+
railInsetHorizontalBottom: string;
|
|
200
|
+
railInsetHorizontalTop: string;
|
|
201
|
+
railInsetVerticalRight: string;
|
|
202
|
+
railInsetVerticalLeft: string;
|
|
203
|
+
railColor: string;
|
|
204
|
+
}, any>>>;
|
|
205
|
+
}, {
|
|
206
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
207
|
+
rtlEnabled: import("vue").Ref<import("../../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
208
|
+
containerScrollTop: import("vue").Ref<number>;
|
|
209
|
+
wrapperRef: import("vue").Ref<HTMLElement | null>;
|
|
210
|
+
containerRef: import("vue").Ref<HTMLElement | null>;
|
|
211
|
+
contentRef: import("vue").Ref<HTMLElement | null>;
|
|
212
|
+
yRailRef: import("vue").Ref<HTMLElement | null>;
|
|
213
|
+
xRailRef: import("vue").Ref<HTMLElement | null>;
|
|
214
|
+
needYBar: import("vue").ComputedRef<boolean>;
|
|
215
|
+
needXBar: import("vue").ComputedRef<boolean>;
|
|
216
|
+
yBarSizePx: import("vue").ComputedRef<string>;
|
|
217
|
+
xBarSizePx: import("vue").ComputedRef<string>;
|
|
218
|
+
yBarTopPx: import("vue").ComputedRef<string>;
|
|
219
|
+
xBarLeftPx: import("vue").ComputedRef<string>;
|
|
220
|
+
isShowXBar: import("vue").ComputedRef<boolean>;
|
|
221
|
+
isShowYBar: import("vue").ComputedRef<boolean>;
|
|
222
|
+
isIos: boolean;
|
|
223
|
+
handleScroll: (e: Event) => void;
|
|
224
|
+
handleContentResize: () => void;
|
|
225
|
+
handleContainerResize: (e: ResizeObserverEntry) => void;
|
|
226
|
+
handleYScrollMouseDown: (e: MouseEvent) => void;
|
|
227
|
+
handleXScrollMouseDown: (e: MouseEvent) => void;
|
|
228
|
+
cssVars: import("vue").ComputedRef<{
|
|
229
|
+
'--u-scrollbar-bezier': string;
|
|
230
|
+
'--u-scrollbar-color': string;
|
|
231
|
+
'--u-scrollbar-color-hover': string;
|
|
232
|
+
'--u-scrollbar-border-radius': string;
|
|
233
|
+
'--u-scrollbar-width': string;
|
|
234
|
+
'--u-scrollbar-height': string;
|
|
235
|
+
'--u-scrollbar-rail-top-horizontal-top': string;
|
|
236
|
+
'--u-scrollbar-rail-right-horizontal-top': string;
|
|
237
|
+
'--u-scrollbar-rail-bottom-horizontal-top': string;
|
|
238
|
+
'--u-scrollbar-rail-left-horizontal-top': string;
|
|
239
|
+
'--u-scrollbar-rail-top-horizontal-bottom': string;
|
|
240
|
+
'--u-scrollbar-rail-right-horizontal-bottom': string;
|
|
241
|
+
'--u-scrollbar-rail-bottom-horizontal-bottom': string;
|
|
242
|
+
'--u-scrollbar-rail-left-horizontal-bottom': string;
|
|
243
|
+
'--u-scrollbar-rail-top-vertical-right': string;
|
|
244
|
+
'--u-scrollbar-rail-right-vertical-right': string;
|
|
245
|
+
'--u-scrollbar-rail-bottom-vertical-right': string;
|
|
246
|
+
'--u-scrollbar-rail-left-vertical-right': string;
|
|
247
|
+
'--u-scrollbar-rail-top-vertical-left': string;
|
|
248
|
+
'--u-scrollbar-rail-right-vertical-left': string;
|
|
249
|
+
'--u-scrollbar-rail-bottom-vertical-left': string;
|
|
250
|
+
'--u-scrollbar-rail-left-vertical-left': string;
|
|
251
|
+
'--u-scrollbar-rail-color': string;
|
|
252
|
+
}> | undefined;
|
|
253
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
254
|
+
onRender: (() => void) | undefined;
|
|
255
|
+
syncUnifiedContainer: () => void;
|
|
256
|
+
scrollTo: ScrollTo;
|
|
257
|
+
scrollBy: ScrollBy;
|
|
258
|
+
sync: () => void;
|
|
259
|
+
handleMouseEnterWrapper: () => void;
|
|
260
|
+
handleMouseLeaveWrapper: () => void;
|
|
261
|
+
getScrollState: () => {
|
|
262
|
+
scrollHeight: number;
|
|
263
|
+
scrollTop: number;
|
|
264
|
+
clientHeight: number;
|
|
265
|
+
};
|
|
266
|
+
adjustScrollTop: (heightDiff: number) => void;
|
|
267
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
268
|
+
readonly duration: {
|
|
269
|
+
readonly type: NumberConstructor;
|
|
270
|
+
readonly default: 0;
|
|
271
|
+
};
|
|
272
|
+
readonly scrollable: {
|
|
273
|
+
readonly type: BooleanConstructor;
|
|
274
|
+
readonly default: true;
|
|
275
|
+
};
|
|
276
|
+
readonly xScrollable: BooleanConstructor;
|
|
277
|
+
readonly trigger: {
|
|
278
|
+
readonly type: PropType<"none" | "hover">;
|
|
279
|
+
readonly default: "hover";
|
|
280
|
+
};
|
|
281
|
+
readonly useUnifiedContainer: BooleanConstructor;
|
|
282
|
+
readonly triggerDisplayManually: BooleanConstructor;
|
|
283
|
+
readonly container: PropType<() => HTMLElement | null | undefined>;
|
|
284
|
+
readonly content: PropType<() => HTMLElement | null | undefined>;
|
|
285
|
+
readonly containerClass: StringConstructor;
|
|
286
|
+
readonly containerStyle: PropType<string | CSSProperties>;
|
|
287
|
+
readonly contentClass: PropType<string | Array<string | undefined>>;
|
|
288
|
+
readonly contentStyle: PropType<string | CSSProperties>;
|
|
289
|
+
readonly horizontalRailStyle: PropType<string | CSSProperties>;
|
|
290
|
+
readonly verticalRailStyle: PropType<string | CSSProperties>;
|
|
291
|
+
readonly onScroll: PropType<(e: Event) => void>;
|
|
292
|
+
readonly onWheel: PropType<(e: WheelEvent) => void>;
|
|
293
|
+
readonly onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
294
|
+
readonly internalOnUpdateScrollLeft: PropType<(scrollLeft: number) => void>;
|
|
295
|
+
readonly internalHoistYRail: BooleanConstructor;
|
|
296
|
+
readonly yPlacement: {
|
|
297
|
+
readonly type: PropType<"left" | "right">;
|
|
298
|
+
readonly default: "right";
|
|
299
|
+
};
|
|
300
|
+
readonly xPlacement: {
|
|
301
|
+
readonly type: PropType<"top" | "bottom">;
|
|
302
|
+
readonly default: "bottom";
|
|
303
|
+
};
|
|
304
|
+
readonly theme: PropType<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
305
|
+
height: string;
|
|
306
|
+
width: string;
|
|
307
|
+
borderRadius: string;
|
|
308
|
+
color: string;
|
|
309
|
+
colorHover: string;
|
|
310
|
+
railInsetHorizontalBottom: string;
|
|
311
|
+
railInsetHorizontalTop: string;
|
|
312
|
+
railInsetVerticalRight: string;
|
|
313
|
+
railInsetVerticalLeft: string;
|
|
314
|
+
railColor: string;
|
|
315
|
+
}, any>>;
|
|
316
|
+
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
317
|
+
height: string;
|
|
318
|
+
width: string;
|
|
319
|
+
borderRadius: string;
|
|
320
|
+
color: string;
|
|
321
|
+
colorHover: string;
|
|
322
|
+
railInsetHorizontalBottom: string;
|
|
323
|
+
railInsetHorizontalTop: string;
|
|
324
|
+
railInsetVerticalRight: string;
|
|
325
|
+
railInsetVerticalLeft: string;
|
|
326
|
+
railColor: string;
|
|
327
|
+
}, any>>>;
|
|
328
|
+
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"SafeTopScrollbar", {
|
|
329
|
+
height: string;
|
|
330
|
+
width: string;
|
|
331
|
+
borderRadius: string;
|
|
332
|
+
color: string;
|
|
333
|
+
colorHover: string;
|
|
334
|
+
railInsetHorizontalBottom: string;
|
|
335
|
+
railInsetHorizontalTop: string;
|
|
336
|
+
railInsetVerticalRight: string;
|
|
337
|
+
railInsetVerticalLeft: string;
|
|
338
|
+
railColor: string;
|
|
339
|
+
}, any>>>;
|
|
340
|
+
}>>, {
|
|
341
|
+
readonly duration: number;
|
|
342
|
+
readonly scrollable: boolean;
|
|
343
|
+
readonly xScrollable: boolean;
|
|
344
|
+
readonly trigger: "none" | "hover";
|
|
345
|
+
readonly useUnifiedContainer: boolean;
|
|
346
|
+
readonly triggerDisplayManually: boolean;
|
|
347
|
+
readonly internalHoistYRail: boolean;
|
|
348
|
+
readonly yPlacement: "left" | "right";
|
|
349
|
+
readonly xPlacement: "top" | "bottom";
|
|
350
|
+
}, {}>;
|
|
351
|
+
type NativeScrollbarProps = Omit<HTMLAttributes, keyof SafeTopScrollbarInternalProps>;
|
|
352
|
+
type MergedProps = Partial<SafeTopScrollbarInternalProps & NativeScrollbarProps>;
|
|
353
|
+
export default SafeTopScrollbar;
|
|
354
|
+
export declare const XSafeTopScrollbar: new () => {
|
|
355
|
+
$props: MergedProps;
|
|
356
|
+
};
|