@v1nt1248/3nclient-lib 0.3.36 → 0.3.37
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/README.md +1 -0
- package/dist/src/components/index.d.ts +3 -1
- package/dist/src/components/ui3n-scrollbar/types.d.ts +61 -0
- package/dist/src/components/ui3n-scrollbar/ui3n-scrollbar.d.ts +53 -0
- package/dist/src/components/ui3n-scrollbar-vertical/ui3n-scrollbar-vertical.d.ts +1 -1
- package/dist/src/components/ui3n-table/composables/useTable.d.ts +6 -1
- package/dist/src/components/ui3n-table/types.d.ts +52 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/ui3n-components.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/ui3n-components.js +1319 -787
- package/package.json +1 -1
- package/src/components/index.ts +18 -0
- package/src/components/ui3n-scrollbar/types.ts +63 -0
- package/src/components/ui3n-scrollbar/ui3n-scrollbar.vue +697 -0
- package/src/components/ui3n-table/composables/useTable.ts +169 -16
- package/src/components/ui3n-table/types.ts +52 -0
- package/src/components/ui3n-table/ui3n-table.vue +376 -6
package/package.json
CHANGED
package/src/components/index.ts
CHANGED
|
@@ -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
|
+
}
|