@v1nt1248/3nclient-lib 0.3.36 → 0.3.38

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.3.36",
5
+ "version": "0.3.38",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -155,6 +155,16 @@ import type {
155
155
  Ui3nScrollbarHorizontalSlots,
156
156
  Ui3nScrollbarHorizontalExpose,
157
157
  } from './ui3n-scrollbar-horizontal/types';
158
+ import Ui3nScrollbar from './ui3n-scrollbar/ui3n-scrollbar.vue';
159
+ import type {
160
+ Ui3nScrollbarProps,
161
+ Ui3nScrollbarEmits,
162
+ Ui3nScrollbarSlots,
163
+ Ui3nScrollbarExpose,
164
+ Ui3nScrollbarAxes,
165
+ Ui3nScrollbarVerticalOptions,
166
+ Ui3nScrollbarHorizontalOptions,
167
+ } from './ui3n-scrollbar/types';
158
168
 
159
169
  export {
160
170
  Ui3nIcon,
@@ -311,4 +321,12 @@ export {
311
321
  Ui3nScrollbarHorizontalEmits,
312
322
  Ui3nScrollbarHorizontalSlots,
313
323
  Ui3nScrollbarHorizontalExpose,
324
+ Ui3nScrollbar,
325
+ Ui3nScrollbarProps,
326
+ Ui3nScrollbarEmits,
327
+ Ui3nScrollbarSlots,
328
+ Ui3nScrollbarExpose,
329
+ Ui3nScrollbarAxes,
330
+ Ui3nScrollbarVerticalOptions,
331
+ Ui3nScrollbarHorizontalOptions,
314
332
  };
@@ -0,0 +1,63 @@
1
+ import type { VNode } from 'vue';
2
+
3
+ export type Ui3nScrollbarAxes = 'vertical' | 'horizontal' | 'both';
4
+
5
+ export type Ui3nScrollbarVerticalOptions = {
6
+ thumbMinHeight?: number | string;
7
+ thumbHeight?: number | string | 'auto';
8
+ thumbRadius?: number | string;
9
+ thumbColor?: string;
10
+ thumbHoverColor?: string;
11
+ thumbActiveColor?: string;
12
+ trackWidth?: number;
13
+ trackRadius?: number | string;
14
+ trackColor?: string;
15
+ /**
16
+ * Offset of the vertical track from the top of the scrollport (px).
17
+ * Useful when content has a sticky header that should not be covered by the track.
18
+ */
19
+ trackOffsetTop?: number | string;
20
+ };
21
+
22
+ export type Ui3nScrollbarHorizontalOptions = {
23
+ thumbMinWidth?: number | string;
24
+ thumbWidth?: number | string | 'auto';
25
+ thumbRadius?: number | string;
26
+ thumbColor?: string;
27
+ thumbHoverColor?: string;
28
+ thumbActiveColor?: string;
29
+ trackHeight?: number | string;
30
+ trackRadius?: number | string;
31
+ trackColor?: string;
32
+ };
33
+
34
+ export interface Ui3nScrollbarProps {
35
+ axes?: Ui3nScrollbarAxes;
36
+ vertical?: Ui3nScrollbarVerticalOptions;
37
+ horizontal?: Ui3nScrollbarHorizontalOptions;
38
+ autoUpdate?: boolean;
39
+ }
40
+
41
+ export interface Ui3nScrollbarScrollPayload {
42
+ event: Event;
43
+ scrollTop: number;
44
+ scrollLeft: number;
45
+ }
46
+
47
+ export interface Ui3nScrollbarEmits {
48
+ (ev: 'scroll', value: Ui3nScrollbarScrollPayload): void;
49
+ (ev: 'scroll:vertical', value: Ui3nScrollbarScrollPayload): void;
50
+ (ev: 'scroll:horizontal', value: Ui3nScrollbarScrollPayload): void;
51
+ }
52
+
53
+ export interface Ui3nScrollbarSlots {
54
+ default: () => VNode;
55
+ }
56
+
57
+ export interface Ui3nScrollbarExpose {
58
+ scrollTo(options: ScrollToOptions): void;
59
+ scrollToVertical(options?: { top?: number; behavior?: ScrollBehavior }): void;
60
+ scrollToHorizontal(options?: { left?: number; behavior?: ScrollBehavior }): void;
61
+ getContainer(): HTMLDivElement;
62
+ updateMetrics(): void;
63
+ }