@nmorph/nmorph-ui-kit 2.2.15 → 2.2.16
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 +0 -8
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +12 -12
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +17 -14
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +1 -1
- package/dist/components/data/nmorph-calendar/utils.js +65 -52
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +39 -37
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
- package/dist/components/data/nmorph-table/NmorphTable.vue.js +228 -225
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +57 -43
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +47 -47
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +28 -25
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +102 -92
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +67 -44
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +45 -33
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue2.js +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +135 -125
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +76 -65
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +15 -12
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +22 -21
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +16 -16
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -0
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +50 -0
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +69 -0
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +23 -23
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +31 -25
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +42 -18
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +66 -19
- package/dist/hooks/use-common-styles.js +42 -33
- package/dist/hooks/use-virtual-list.js +65 -37
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +539 -0
- package/dist/index.es.js +656 -653
- package/dist/index.umd.js +62 -64
- package/dist/nuxt.mjs +3 -3
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/nmorph-calendar/types.d.ts +8 -1
- package/dist/src/components/data/nmorph-calendar/utils.d.ts +2 -1
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +13 -1
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +2 -0
- package/dist/src/components/navigation/index.d.ts +1 -0
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +60 -0
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +10 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +12 -1
- package/dist/src/hooks/use-virtual-list.d.ts +3 -0
- package/dist/src/icons.d.ts +3 -0
- package/dist/src/styles.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/styles.d.ts +2 -0
- package/dist/styles.js +7 -0
- package/dist/utils/theme-style.js +27 -38
- package/package.json +11 -1
package/dist/nuxt.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNuxtModule as o, addPluginTemplate as m } from "@nuxt/kit";
|
|
2
|
-
const
|
|
2
|
+
const i = o({
|
|
3
3
|
meta: {
|
|
4
4
|
name: "@nmorph/nmorph-ui-kit",
|
|
5
5
|
configKey: "nmorph",
|
|
@@ -12,7 +12,7 @@ const r = o({
|
|
|
12
12
|
},
|
|
13
13
|
setup(t, e) {
|
|
14
14
|
const { styles: s, ...n } = t;
|
|
15
|
-
e.options.build.transpile.push("@nmorph/nmorph-ui-kit"), s === "all" && e.options.css.push("@nmorph/nmorph-ui-kit/
|
|
15
|
+
e.options.build.transpile.push("@nmorph/nmorph-ui-kit"), s === "all" && e.options.css.push("@nmorph/nmorph-ui-kit/styles.css"), m({
|
|
16
16
|
filename: "nmorph.mjs",
|
|
17
17
|
getContents: () => `
|
|
18
18
|
import { defineNuxtPlugin } from '#app'
|
|
@@ -91,5 +91,5 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
export {
|
|
94
|
-
|
|
94
|
+
i as default
|
|
95
95
|
};
|
package/dist/package.json.js
CHANGED
|
@@ -9,4 +9,11 @@ export interface INmorphCalendarDate {
|
|
|
9
9
|
export type NmorphCalendarRangeType = [Date, Date] | undefined;
|
|
10
10
|
export type NmorphCalendarDatesType = INmorphCalendarDate[];
|
|
11
11
|
export type NmorphDateType = Date;
|
|
12
|
-
export type NmorphSelectedDateModelType = NmorphDateType | NmorphDateType[];
|
|
12
|
+
export type NmorphSelectedDateModelType = NmorphDateType | NmorphDateType[] | null;
|
|
13
|
+
export type NmorphDateFormatterType = (date: Date) => string;
|
|
14
|
+
export interface INmorphDateFormatOptions {
|
|
15
|
+
locale?: string | string[];
|
|
16
|
+
options?: Intl.DateTimeFormatOptions;
|
|
17
|
+
format?: string;
|
|
18
|
+
formatter?: NmorphDateFormatterType;
|
|
19
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { NmorphCalendarDatesType, NmorphCalendarRangeType, NmorphSelectedDateModelType } from './types';
|
|
1
|
+
import { INmorphDateFormatOptions, NmorphCalendarDatesType, NmorphCalendarRangeType, NmorphSelectedDateModelType } from './types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
export declare const getDecadeYears: (year: number) => any[];
|
|
4
|
+
export declare const formatDate: (date: NmorphSelectedDateModelType, formatOptions?: INmorphDateFormatOptions) => string | string[];
|
|
4
5
|
export declare const formatDateIntl: (date: NmorphSelectedDateModelType) => string | string[];
|
|
5
6
|
export declare const hasAnyRangeDateInPrevMonth: (currentDate: Date, prevMonthRange: Date) => boolean;
|
|
6
7
|
export declare const hasAnyRangeDateInNextMonth: (currentDate: Date, nextMonthRange: Date) => boolean;
|
|
@@ -10,6 +10,7 @@ interface INmorphProps {
|
|
|
10
10
|
virtualHeight?: number | string;
|
|
11
11
|
virtualOverscan?: number;
|
|
12
12
|
virtualRowHeight?: number;
|
|
13
|
+
virtualDynamicHeight?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
15
16
|
sort: NmorphTableSortType;
|
|
@@ -21,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
21
22
|
virtualHeight: string | number;
|
|
22
23
|
virtualOverscan: number;
|
|
23
24
|
virtualRowHeight: number;
|
|
25
|
+
virtualDynamicHeight: boolean;
|
|
24
26
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
25
27
|
nmorphDOMTable: HTMLDivElement;
|
|
26
28
|
}, HTMLDivElement>, {
|
|
@@ -9,6 +9,7 @@ interface INmorphProps {
|
|
|
9
9
|
showClose?: boolean;
|
|
10
10
|
zIndex?: number;
|
|
11
11
|
closeOnOverlay?: boolean;
|
|
12
|
+
closeOnEscape?: boolean;
|
|
12
13
|
}
|
|
13
14
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
14
15
|
"update:model-value": (value: boolean) => any;
|
|
@@ -21,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
21
22
|
title: string;
|
|
22
23
|
modelValue: boolean;
|
|
23
24
|
zIndex: number;
|
|
25
|
+
closeOnEscape: boolean;
|
|
24
26
|
openDelay: number;
|
|
25
27
|
closeDelay: number;
|
|
26
28
|
closeOnClickModal: boolean;
|
|
@@ -12,6 +12,7 @@ interface INmorphProps extends INmorphCommonInputProps {
|
|
|
12
12
|
virtualItemHeight?: number;
|
|
13
13
|
virtualMaxHeight?: number | string;
|
|
14
14
|
virtualOverscan?: number;
|
|
15
|
+
virtualDynamicHeight?: boolean;
|
|
15
16
|
}
|
|
16
17
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
17
18
|
select: (value: unknown) => any;
|
|
@@ -27,6 +28,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
27
28
|
zIndex: number;
|
|
28
29
|
virtual: boolean;
|
|
29
30
|
virtualOverscan: number;
|
|
31
|
+
virtualDynamicHeight: boolean;
|
|
30
32
|
clearable: boolean;
|
|
31
33
|
list: INmorphAutocompleteListItem[];
|
|
32
34
|
actionCallback: NmorphAutocompleteActionCallbackType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INmorphCommonInputProps, NmorphSelectionDateType } from '../../../types';
|
|
2
|
-
import { NmorphSelectedDateModelType } from '../..';
|
|
2
|
+
import { NmorphDateFormatterType, NmorphSelectedDateModelType } from '../..';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
5
|
placeholder?: string;
|
|
@@ -8,6 +8,12 @@ interface INmorphProps extends INmorphCommonInputProps {
|
|
|
8
8
|
textSeparator?: string;
|
|
9
9
|
initialDate?: Date;
|
|
10
10
|
zIndex?: number;
|
|
11
|
+
dateLocale?: string | string[];
|
|
12
|
+
dateFormatOptions?: Intl.DateTimeFormatOptions;
|
|
13
|
+
dateFormat?: string;
|
|
14
|
+
dateFormatter?: NmorphDateFormatterType;
|
|
15
|
+
valueSeparator?: string;
|
|
16
|
+
rangeSeparator?: string;
|
|
11
17
|
}
|
|
12
18
|
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
19
|
"update:model-value": (modelValue: NmorphSelectedDateModelType) => any;
|
|
@@ -22,6 +28,12 @@ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentO
|
|
|
22
28
|
zIndex: number;
|
|
23
29
|
initialDate: Date;
|
|
24
30
|
textSeparator: string;
|
|
31
|
+
dateLocale: string | string[];
|
|
32
|
+
dateFormatOptions: Intl.DateTimeFormatOptions;
|
|
33
|
+
dateFormat: string;
|
|
34
|
+
dateFormatter: NmorphDateFormatterType;
|
|
35
|
+
valueSeparator: string;
|
|
36
|
+
rangeSeparator: string;
|
|
25
37
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
38
|
nmorphInputDOMRef: HTMLDivElement;
|
|
27
39
|
}, HTMLDivElement>;
|
|
@@ -16,6 +16,7 @@ interface INmorphProps extends INmorphCommonInputProps {
|
|
|
16
16
|
virtualItemHeight?: number;
|
|
17
17
|
virtualMaxHeight?: number | string;
|
|
18
18
|
virtualOverscan?: number;
|
|
19
|
+
virtualDynamicHeight?: boolean;
|
|
19
20
|
}
|
|
20
21
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
21
22
|
"update:model-value": (val: NmorphSelectModelValueType) => any;
|
|
@@ -31,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
31
32
|
open: boolean;
|
|
32
33
|
virtual: boolean;
|
|
33
34
|
virtualOverscan: number;
|
|
35
|
+
virtualDynamicHeight: boolean;
|
|
34
36
|
options: INmorphSelectOption[];
|
|
35
37
|
virtualItemHeight: number;
|
|
36
38
|
virtualMaxHeight: string | number;
|
|
@@ -16,11 +16,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
16
16
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
17
17
|
blur: () => any;
|
|
18
18
|
focus: () => any;
|
|
19
|
+
keydown: (event: KeyboardEvent) => any;
|
|
19
20
|
"update:model-value": (val: string) => any;
|
|
20
21
|
"on-enter": () => any;
|
|
21
22
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
22
23
|
onBlur?: () => any;
|
|
23
24
|
onFocus?: () => any;
|
|
25
|
+
onKeydown?: (event: KeyboardEvent) => any;
|
|
24
26
|
"onUpdate:model-value"?: (val: string) => any;
|
|
25
27
|
"onOn-enter"?: () => any;
|
|
26
28
|
}>, {
|
|
@@ -2,6 +2,7 @@ export { default as NmorphBacktop } from './nmorph-backtop/NmorphBacktop.vue';
|
|
|
2
2
|
export { default as NmorphBreadcrumb } from './nmorph-breadcrumb/NmorphBreadcrumb.vue';
|
|
3
3
|
export * from './nmorph-breadcrumb/types';
|
|
4
4
|
export { default as NmorphBreadcrumbItem } from './nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue';
|
|
5
|
+
export { default as NmorphContextMenu } from './nmorph-context-menu/NmorphContextMenu.vue';
|
|
5
6
|
export { default as NmorphDropdown } from './nmorph-dropdown/NmorphDropdown.vue';
|
|
6
7
|
export { default as NmorphTabs } from './nmorph-tabs/NmorphTabs.vue';
|
|
7
8
|
export * from './nmorph-tabs/type';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { NmorphPlacementType } from '../../../types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
placement?: NmorphPlacementType;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
minWidth?: number | string;
|
|
8
|
+
maxWidth?: number | string;
|
|
9
|
+
xOffset?: number;
|
|
10
|
+
yOffset?: number;
|
|
11
|
+
fillWidth?: boolean;
|
|
12
|
+
zIndex?: number;
|
|
13
|
+
closeOnEscape?: boolean;
|
|
14
|
+
trapFocus?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
role?: string;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
20
|
+
close: () => void;
|
|
21
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
22
|
+
close: () => any;
|
|
23
|
+
"update:model-value": (value: boolean) => any;
|
|
24
|
+
"on-outside-click": () => any;
|
|
25
|
+
"on-escape-keydown": () => any;
|
|
26
|
+
open: (event: MouseEvent | KeyboardEvent) => any;
|
|
27
|
+
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
28
|
+
onClose?: () => any;
|
|
29
|
+
"onUpdate:model-value"?: (value: boolean) => any;
|
|
30
|
+
"onOn-outside-click"?: () => any;
|
|
31
|
+
"onOn-escape-keydown"?: () => any;
|
|
32
|
+
onOpen?: (event: MouseEvent | KeyboardEvent) => any;
|
|
33
|
+
}>, {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
width: string | number;
|
|
36
|
+
minWidth: string | number;
|
|
37
|
+
zIndex: number;
|
|
38
|
+
closeOnEscape: boolean;
|
|
39
|
+
trapFocus: boolean;
|
|
40
|
+
role: string;
|
|
41
|
+
placement: NmorphPlacementType;
|
|
42
|
+
maxWidth: string | number;
|
|
43
|
+
xOffset: number;
|
|
44
|
+
yOffset: number;
|
|
45
|
+
fillWidth: boolean;
|
|
46
|
+
ariaLabel: string;
|
|
47
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
48
|
+
triggerDOMRef: HTMLDivElement;
|
|
49
|
+
}, HTMLDivElement>, {
|
|
50
|
+
default?(_: {}): any;
|
|
51
|
+
menu?(_: {
|
|
52
|
+
close: () => void;
|
|
53
|
+
}): any;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -11,20 +11,30 @@ interface INmorphProps {
|
|
|
11
11
|
yOffset?: number;
|
|
12
12
|
fillWidth?: boolean;
|
|
13
13
|
zIndex?: number;
|
|
14
|
+
closeOnEscape?: boolean;
|
|
15
|
+
trapFocus?: boolean;
|
|
16
|
+
role?: string;
|
|
17
|
+
ariaLabel?: string;
|
|
14
18
|
}
|
|
15
19
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
16
20
|
"on-outside-click": () => any;
|
|
21
|
+
"on-escape-keydown": () => any;
|
|
17
22
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
18
23
|
"onOn-outside-click"?: () => any;
|
|
24
|
+
"onOn-escape-keydown"?: () => any;
|
|
19
25
|
}>, {
|
|
20
26
|
width: string | number;
|
|
21
27
|
minWidth: string | number;
|
|
22
28
|
zIndex: number;
|
|
29
|
+
closeOnEscape: boolean;
|
|
30
|
+
trapFocus: boolean;
|
|
31
|
+
role: string;
|
|
23
32
|
placement: NmorphPlacementType;
|
|
24
33
|
maxWidth: string | number;
|
|
25
34
|
xOffset: number;
|
|
26
35
|
yOffset: number;
|
|
27
36
|
fillWidth: boolean;
|
|
37
|
+
ariaLabel: string;
|
|
28
38
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
29
39
|
dropdownDOMRef: HTMLDivElement;
|
|
30
40
|
}, any>, {
|
|
@@ -5,17 +5,28 @@ interface INmorphProps {
|
|
|
5
5
|
zIndex?: number;
|
|
6
6
|
teleportTo?: string | HTMLElement;
|
|
7
7
|
disabledTeleport?: boolean;
|
|
8
|
+
closeOnEscape?: boolean;
|
|
9
|
+
trapFocus?: boolean;
|
|
10
|
+
restoreFocus?: boolean;
|
|
8
11
|
}
|
|
9
12
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
13
|
"on-outside-click": () => any;
|
|
14
|
+
"on-escape-keydown": () => any;
|
|
11
15
|
}, string, PublicProps, Readonly<INmorphProps> & Readonly<{
|
|
12
16
|
"onOn-outside-click"?: () => any;
|
|
17
|
+
"onOn-escape-keydown"?: () => any;
|
|
13
18
|
}>, {
|
|
14
19
|
transparent: boolean;
|
|
15
20
|
zIndex: number;
|
|
16
21
|
teleportTo: string | HTMLElement;
|
|
17
22
|
disabledTeleport: boolean;
|
|
18
|
-
|
|
23
|
+
closeOnEscape: boolean;
|
|
24
|
+
trapFocus: boolean;
|
|
25
|
+
restoreFocus: boolean;
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
+
contentRef: HTMLDivElement;
|
|
28
|
+
}, any>, {
|
|
29
|
+
default?(_: {}): any;
|
|
19
30
|
default?(_: {}): any;
|
|
20
31
|
}>;
|
|
21
32
|
export default _default;
|
|
@@ -3,16 +3,19 @@ interface INmorphVirtualListOptions {
|
|
|
3
3
|
enabled?: Readonly<Ref<boolean>>;
|
|
4
4
|
itemHeight: Readonly<Ref<number>>;
|
|
5
5
|
overscan?: Readonly<Ref<number>>;
|
|
6
|
+
dynamic?: Readonly<Ref<boolean>>;
|
|
6
7
|
}
|
|
7
8
|
export declare const useVirtualList: <T>(items: Readonly<Ref<T[], T[]>>, options: INmorphVirtualListOptions) => {
|
|
8
9
|
containerRef: Ref<HTMLElement, HTMLElement>;
|
|
9
10
|
endIndex: ComputedRef<number>;
|
|
10
11
|
offsetTop: ComputedRef<number>;
|
|
11
12
|
refresh: () => void;
|
|
13
|
+
measureElement: (index: number, element?: Element | null) => void;
|
|
12
14
|
scrollHandler: () => void;
|
|
13
15
|
scrollToIndex: (index: number) => void;
|
|
14
16
|
startIndex: ComputedRef<number>;
|
|
15
17
|
totalHeight: ComputedRef<number>;
|
|
18
|
+
viewportHeight: Ref<number, number>;
|
|
16
19
|
virtualItems: ComputedRef<{
|
|
17
20
|
item: T;
|
|
18
21
|
index: number;
|