@v1nt1248/3nclient-lib 0.3.35 → 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 +4 -2
- 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/components/ui3n-virtual-scroll/types.d.ts +38 -0
- package/dist/src/components/ui3n-virtual-scroll/ui3n-virtual-scroll.d.ts +9 -5
- 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 +1819 -1181
- package/package.json +2 -14
- package/src/components/index.ts +26 -1
- 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/src/components/ui3n-virtual-scroll/types.ts +40 -0
- package/src/components/ui3n-virtual-scroll/ui3n-virtual-scroll.vue +368 -59
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.
|
|
5
|
+
"version": "0.3.37",
|
|
6
6
|
"description": "Library for 3NWeb clients",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
@@ -104,17 +104,5 @@
|
|
|
104
104
|
"vue-eslint-parser": "10.4.0",
|
|
105
105
|
"vue-tsc": "3.3.2"
|
|
106
106
|
},
|
|
107
|
-
"packageManager": "pnpm@
|
|
108
|
-
"pnpm": {
|
|
109
|
-
"peerDependencyRules": {
|
|
110
|
-
"ignoreMissing": [
|
|
111
|
-
"@algolia/client-search",
|
|
112
|
-
"search-insights"
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
"onlyBuiltDependencies": [
|
|
116
|
-
"esbuild",
|
|
117
|
-
"vue-demi"
|
|
118
|
-
]
|
|
119
|
-
}
|
|
107
|
+
"packageManager": "pnpm@11.18.0"
|
|
120
108
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -67,7 +67,12 @@ import type {
|
|
|
67
67
|
import Ui3nList from './ui3n-list/ui3n-list.vue';
|
|
68
68
|
import type { Ui3nListProps, Ui3nListEmits, Ui3nListSlots } from './ui3n-list/types';
|
|
69
69
|
import Ui3nVirtualScroll from './ui3n-virtual-scroll/ui3n-virtual-scroll.vue';
|
|
70
|
-
import type {
|
|
70
|
+
import type {
|
|
71
|
+
Ui3nVirtualScrollProps,
|
|
72
|
+
Ui3nVirtualScrollEmits,
|
|
73
|
+
Ui3nVirtualScrollSlots,
|
|
74
|
+
Ui3nVirtualScrollExpose,
|
|
75
|
+
} from './ui3n-virtual-scroll/types';
|
|
71
76
|
import Ui3nTabs from './ui3n-tabs/ui3n-tabs.vue';
|
|
72
77
|
import type { Ui3nTabsProps, Ui3nTabsEmits, Ui3nTabsSlots } from './ui3n-tabs/types';
|
|
73
78
|
import Ui3nBadge from './ui3n-badge/ui3n-badge.vue';
|
|
@@ -150,6 +155,16 @@ import type {
|
|
|
150
155
|
Ui3nScrollbarHorizontalSlots,
|
|
151
156
|
Ui3nScrollbarHorizontalExpose,
|
|
152
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';
|
|
153
168
|
|
|
154
169
|
export {
|
|
155
170
|
Ui3nIcon,
|
|
@@ -225,7 +240,9 @@ export {
|
|
|
225
240
|
Ui3nListSlots,
|
|
226
241
|
Ui3nVirtualScroll,
|
|
227
242
|
Ui3nVirtualScrollProps,
|
|
243
|
+
Ui3nVirtualScrollEmits,
|
|
228
244
|
Ui3nVirtualScrollSlots,
|
|
245
|
+
Ui3nVirtualScrollExpose,
|
|
229
246
|
Ui3nTabs,
|
|
230
247
|
Ui3nTabsProps,
|
|
231
248
|
Ui3nTabsEmits,
|
|
@@ -304,4 +321,12 @@ export {
|
|
|
304
321
|
Ui3nScrollbarHorizontalEmits,
|
|
305
322
|
Ui3nScrollbarHorizontalSlots,
|
|
306
323
|
Ui3nScrollbarHorizontalExpose,
|
|
324
|
+
Ui3nScrollbar,
|
|
325
|
+
Ui3nScrollbarProps,
|
|
326
|
+
Ui3nScrollbarEmits,
|
|
327
|
+
Ui3nScrollbarSlots,
|
|
328
|
+
Ui3nScrollbarExpose,
|
|
329
|
+
Ui3nScrollbarAxes,
|
|
330
|
+
Ui3nScrollbarVerticalOptions,
|
|
331
|
+
Ui3nScrollbarHorizontalOptions,
|
|
307
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
|
+
}
|