@nmorph/nmorph-ui-kit 2.0.2 → 2.0.3
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.
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphScrollProps, NmorphCoordsType } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
height?: string;
|
|
5
|
-
maxHeight?: string;
|
|
6
|
-
modelValue?: NmorphCoordsType;
|
|
7
|
-
scrollYProp?: keyof typeof NmorphOverflowProp;
|
|
8
|
-
scrollXProp?: keyof typeof NmorphOverflowProp;
|
|
9
|
-
cssScrollBehavior?: keyof typeof NmorphScrollBehavior;
|
|
10
|
-
scrollEndDelay?: number;
|
|
11
|
-
updateOnlyOnScrollEnd?: boolean;
|
|
12
|
-
yBarWidthInPx?: number;
|
|
13
|
-
xBarWidthInPx?: number;
|
|
14
|
-
xGapInPx?: number;
|
|
15
|
-
yGapInPx?: number;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphScrollProps, {
|
|
18
4
|
scrollDOMContainer: Ref<HTMLElement, HTMLElement>;
|
|
19
5
|
moveTo: (coords: NmorphCoordsType) => void;
|
|
20
6
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
21
7
|
"on-scroll": (event: Event) => any;
|
|
22
8
|
"update:model-value": (coords: NmorphCoordsType) => any;
|
|
23
9
|
"on-scroll-end": () => any;
|
|
24
|
-
}, string, PublicProps, Readonly<
|
|
10
|
+
}, string, PublicProps, Readonly<INmorphScrollProps> & Readonly<{
|
|
25
11
|
"onOn-scroll"?: (event: Event) => any;
|
|
26
12
|
"onUpdate:model-value"?: (coords: NmorphCoordsType) => any;
|
|
27
13
|
"onOn-scroll-end"?: () => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INmorphCoords } from '../../../types';
|
|
1
|
+
import { INmorphCoords, NmorphDomElementType } from '../../../types';
|
|
2
2
|
export type NmorphCoordsType = INmorphCoords<number>;
|
|
3
3
|
export declare enum NmorphOverflowProp {
|
|
4
4
|
auto = "auto",
|
|
@@ -12,3 +12,23 @@ export declare enum NmorphScrollBehavior {
|
|
|
12
12
|
initial = "initial",
|
|
13
13
|
unset = "unset"
|
|
14
14
|
}
|
|
15
|
+
export type NmorphScrollOverflowType = keyof typeof NmorphOverflowProp;
|
|
16
|
+
export type NmorphScrollBehaviorType = keyof typeof NmorphScrollBehavior;
|
|
17
|
+
export interface INmorphScrollProps {
|
|
18
|
+
height?: string;
|
|
19
|
+
maxHeight?: string;
|
|
20
|
+
modelValue?: NmorphCoordsType;
|
|
21
|
+
scrollYProp?: NmorphScrollOverflowType;
|
|
22
|
+
scrollXProp?: NmorphScrollOverflowType;
|
|
23
|
+
cssScrollBehavior?: NmorphScrollBehaviorType;
|
|
24
|
+
scrollEndDelay?: number;
|
|
25
|
+
updateOnlyOnScrollEnd?: boolean;
|
|
26
|
+
yBarWidthInPx?: number;
|
|
27
|
+
xBarWidthInPx?: number;
|
|
28
|
+
xGapInPx?: number;
|
|
29
|
+
yGapInPx?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface INmorphScrollExpose {
|
|
32
|
+
scrollDOMContainer: NmorphDomElementType;
|
|
33
|
+
moveTo: (coords: NmorphCoordsType) => void;
|
|
34
|
+
}
|