ninemoon-ui 0.1.8 → 0.1.9
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/dist/components/date/datepicker.vue.d.ts +3 -3
- package/dist/components/date/datepickerRange.vue.d.ts +2 -2
- package/dist/components/form/form.vue.d.ts +5 -0
- package/dist/components/form/formlabel.vue.d.ts +10 -0
- package/dist/components/input/input.vue.d.ts +10 -3
- package/dist/components/numberInput/numberinput.vue.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +3 -3
- package/dist/components/table/table.vue.d.ts +8 -1
- package/dist/components/table/tableItem.vue.d.ts +2 -0
- package/dist/directives/index.d.ts +1 -2
- package/dist/directives/looplead.d.ts +19 -0
- package/dist/directives/scrolllead.d.ts +3 -11
- package/dist/directives/watchwindow.d.ts +1 -1
- package/dist/hooks/teleportcontainer.d.ts +5 -0
- package/dist/index.d.ts +128 -30
- package/dist/index.es.js +26 -27
- package/dist/js/badge/badge.js +3 -3
- package/dist/js/carousel/carousel.js +1 -1
- package/dist/js/check/checkbox.js +4 -4
- package/dist/js/date/datepicker.js +4 -3
- package/dist/js/date/datepickerRange.js +22 -17
- package/dist/js/dialog/dialog.js +36 -37
- package/dist/js/form/form.js +3 -1
- package/dist/js/form/formlabel.js +39 -8
- package/dist/js/image/image.js +2 -2
- package/dist/js/index/index.js +130 -113
- package/dist/js/input/input.js +26 -6
- package/dist/js/numberInput/numberinput.js +2 -1
- package/dist/js/pagination/pagination.js +2 -1
- package/dist/js/popover/popover.js +10 -16
- package/dist/js/radio/radiobox.js +4 -4
- package/dist/js/select/select.js +4 -3
- package/dist/js/table/table.js +243 -188
- package/dist/js/table/tableItem.js +2 -1
- package/package.json +2 -1
- package/dist/directives/whitespaceclick.d.ts +0 -12
|
@@ -4,7 +4,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
disabledDate?: (params: any) => boolean;
|
|
6
6
|
placeholder?: string;
|
|
7
|
-
size?: "large" | "default" | "small";
|
|
7
|
+
size?: "large" | "default" | "small" | "mini";
|
|
8
8
|
}>, {
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
placeholder: string;
|
|
@@ -18,7 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
disabledDate?: (params: any) => boolean;
|
|
20
20
|
placeholder?: string;
|
|
21
|
-
size?: "large" | "default" | "small";
|
|
21
|
+
size?: "large" | "default" | "small" | "mini";
|
|
22
22
|
}>, {
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
placeholder: string;
|
|
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
size: "large" | "default" | "small";
|
|
30
|
+
size: "large" | "default" | "small" | "mini";
|
|
31
31
|
disabled: boolean;
|
|
32
32
|
placeholder: string;
|
|
33
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -4,7 +4,7 @@ type daterangeType = {
|
|
|
4
4
|
startPlaceholder?: string;
|
|
5
5
|
endPlaceholder?: string;
|
|
6
6
|
disabledDate?: (params: any) => boolean;
|
|
7
|
-
size?: "large" | "default" | "small";
|
|
7
|
+
size?: "large" | "default" | "small" | "mini";
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<daterangeType>, {
|
|
10
10
|
size: string;
|
|
@@ -15,7 +15,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
15
|
}>>> & Readonly<{
|
|
16
16
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
size: "large" | "default" | "small";
|
|
18
|
+
size: "large" | "default" | "small" | "mini";
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -7,8 +7,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
7
7
|
rule?: FormRules;
|
|
8
8
|
model: FormModel;
|
|
9
9
|
inline?: boolean;
|
|
10
|
+
labelPosition?: "top" | "left" | "right";
|
|
10
11
|
}>, {
|
|
11
12
|
inline: boolean;
|
|
13
|
+
labelPosition: string;
|
|
12
14
|
}>>, {
|
|
13
15
|
validate: (callBack: (isValid: boolean) => void) => Promise<boolean>;
|
|
14
16
|
validateField: (propname: string, callBack: Function) => Promise<void>;
|
|
@@ -17,10 +19,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
17
19
|
rule?: FormRules;
|
|
18
20
|
model: FormModel;
|
|
19
21
|
inline?: boolean;
|
|
22
|
+
labelPosition?: "top" | "left" | "right";
|
|
20
23
|
}>, {
|
|
21
24
|
inline: boolean;
|
|
25
|
+
labelPosition: string;
|
|
22
26
|
}>>> & Readonly<{}>, {
|
|
23
27
|
inline: boolean;
|
|
28
|
+
labelPosition: "top" | "left" | "right";
|
|
24
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
31
|
export default _default;
|
|
@@ -6,9 +6,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
6
6
|
prop?: string;
|
|
7
7
|
inline?: boolean;
|
|
8
8
|
width?: number;
|
|
9
|
+
showRequire?: boolean;
|
|
10
|
+
labelPosition?: "top" | "left" | "right";
|
|
9
11
|
}>, {
|
|
10
12
|
width: number;
|
|
11
13
|
inline: undefined;
|
|
14
|
+
showRequire: boolean;
|
|
15
|
+
labelPosition: undefined;
|
|
12
16
|
}>>, {
|
|
13
17
|
validateLabel: (callBack?: Function, eventName?: string) => Promise<void>;
|
|
14
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -16,12 +20,18 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
16
20
|
prop?: string;
|
|
17
21
|
inline?: boolean;
|
|
18
22
|
width?: number;
|
|
23
|
+
showRequire?: boolean;
|
|
24
|
+
labelPosition?: "top" | "left" | "right";
|
|
19
25
|
}>, {
|
|
20
26
|
width: number;
|
|
21
27
|
inline: undefined;
|
|
28
|
+
showRequire: boolean;
|
|
29
|
+
labelPosition: undefined;
|
|
22
30
|
}>>> & Readonly<{}>, {
|
|
23
31
|
width: number;
|
|
24
32
|
inline: boolean;
|
|
33
|
+
labelPosition: "top" | "left" | "right";
|
|
34
|
+
showRequire: boolean;
|
|
25
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
36
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
27
37
|
export default _default;
|
|
@@ -14,12 +14,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
14
14
|
type?: string;
|
|
15
15
|
placeHolder?: string;
|
|
16
16
|
clearable?: boolean;
|
|
17
|
-
|
|
17
|
+
rows?: number;
|
|
18
|
+
size?: "large" | "default" | "small" | "mini";
|
|
19
|
+
autocomplete?: string;
|
|
18
20
|
}>, {
|
|
19
21
|
modelValue: null;
|
|
20
22
|
type: string;
|
|
21
23
|
clearable: boolean;
|
|
22
24
|
size: string;
|
|
25
|
+
autocomplete: string;
|
|
23
26
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
27
|
"update:modelValue": (value: string | number | null) => void;
|
|
25
28
|
blur: (value: string | number | null) => void;
|
|
@@ -31,12 +34,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
31
34
|
type?: string;
|
|
32
35
|
placeHolder?: string;
|
|
33
36
|
clearable?: boolean;
|
|
34
|
-
|
|
37
|
+
rows?: number;
|
|
38
|
+
size?: "large" | "default" | "small" | "mini";
|
|
39
|
+
autocomplete?: string;
|
|
35
40
|
}>, {
|
|
36
41
|
modelValue: null;
|
|
37
42
|
type: string;
|
|
38
43
|
clearable: boolean;
|
|
39
44
|
size: string;
|
|
45
|
+
autocomplete: string;
|
|
40
46
|
}>>> & Readonly<{
|
|
41
47
|
onBlur?: ((value: string | number | null) => any) | undefined;
|
|
42
48
|
onChange?: ((value: string | number | null) => any) | undefined;
|
|
@@ -44,9 +50,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
44
50
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
45
51
|
}>, {
|
|
46
52
|
type: string;
|
|
47
|
-
size: "large" | "default" | "small";
|
|
53
|
+
size: "large" | "default" | "small" | "mini";
|
|
48
54
|
modelValue: any;
|
|
49
55
|
clearable: boolean;
|
|
56
|
+
autocomplete: string;
|
|
50
57
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
51
58
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
52
59
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
modelValue: number;
|
|
3
|
-
size?: "large" | "default" | "small";
|
|
3
|
+
size?: "large" | "default" | "small" | "mini";
|
|
4
4
|
min?: number;
|
|
5
5
|
max?: number;
|
|
6
6
|
strict?: boolean;
|
|
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
16
16
|
NumChange: (...args: any[]) => void;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
18
|
modelValue: number;
|
|
19
|
-
size?: "large" | "default" | "small";
|
|
19
|
+
size?: "large" | "default" | "small" | "mini";
|
|
20
20
|
min?: number;
|
|
21
21
|
max?: number;
|
|
22
22
|
strict?: boolean;
|
|
@@ -31,7 +31,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
31
31
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
onNumChange?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
size: "large" | "default" | "small";
|
|
34
|
+
size: "large" | "default" | "small" | "mini";
|
|
35
35
|
strict: boolean;
|
|
36
36
|
step: number;
|
|
37
37
|
integer: boolean;
|
|
@@ -6,7 +6,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
6
6
|
filter?: boolean;
|
|
7
7
|
placeHolder?: string;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
-
size?: "large" | "default" | "small";
|
|
9
|
+
size?: "large" | "default" | "small" | "mini";
|
|
10
10
|
}>, {
|
|
11
11
|
filter: boolean;
|
|
12
12
|
disabled: boolean;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
20
20
|
filter?: boolean;
|
|
21
21
|
placeHolder?: string;
|
|
22
22
|
disabled?: boolean;
|
|
23
|
-
size?: "large" | "default" | "small";
|
|
23
|
+
size?: "large" | "default" | "small" | "mini";
|
|
24
24
|
}>, {
|
|
25
25
|
filter: boolean;
|
|
26
26
|
disabled: boolean;
|
|
@@ -31,7 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
31
31
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
filter: boolean;
|
|
34
|
-
size: "large" | "default" | "small";
|
|
34
|
+
size: "large" | "default" | "small" | "mini";
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
placeHolder: string;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -13,17 +13,20 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
13
13
|
cellclass?: string;
|
|
14
14
|
tableclass?: string;
|
|
15
15
|
idKey?: string;
|
|
16
|
+
outSideCheck?: boolean;
|
|
16
17
|
}>, {
|
|
17
18
|
whiteword: string;
|
|
18
19
|
showHead: boolean;
|
|
20
|
+
outSideCheck: boolean;
|
|
19
21
|
}>>, {
|
|
20
22
|
clearSelection: () => void;
|
|
21
23
|
allSelection: () => void;
|
|
22
24
|
toggleSelection: () => void;
|
|
23
|
-
setSelection: (arr: Array<string>) => void;
|
|
25
|
+
setSelection: (arr: Array<string | number>) => void;
|
|
24
26
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
27
|
rowClick: (...args: any[]) => void;
|
|
26
28
|
selectionChange: (...args: any[]) => void;
|
|
29
|
+
finishRender: (...args: any[]) => void;
|
|
27
30
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
28
31
|
data: Array<any>;
|
|
29
32
|
whiteword?: string;
|
|
@@ -32,15 +35,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
32
35
|
cellclass?: string;
|
|
33
36
|
tableclass?: string;
|
|
34
37
|
idKey?: string;
|
|
38
|
+
outSideCheck?: boolean;
|
|
35
39
|
}>, {
|
|
36
40
|
whiteword: string;
|
|
37
41
|
showHead: boolean;
|
|
42
|
+
outSideCheck: boolean;
|
|
38
43
|
}>>> & Readonly<{
|
|
39
44
|
onRowClick?: ((...args: any[]) => any) | undefined;
|
|
40
45
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
onFinishRender?: ((...args: any[]) => any) | undefined;
|
|
41
47
|
}>, {
|
|
42
48
|
whiteword: string;
|
|
43
49
|
showHead: boolean;
|
|
50
|
+
outSideCheck: boolean;
|
|
44
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
45
52
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
46
53
|
export default _default;
|
|
@@ -15,6 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
};
|
|
17
17
|
index?: number;
|
|
18
|
+
cellclass?: string;
|
|
18
19
|
}>, {
|
|
19
20
|
type: string;
|
|
20
21
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -28,6 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
29
|
[key: string]: any;
|
|
29
30
|
};
|
|
30
31
|
index?: number;
|
|
32
|
+
cellclass?: string;
|
|
31
33
|
}>, {
|
|
32
34
|
type: string;
|
|
33
35
|
}>>> & Readonly<{}>, {
|
|
@@ -5,6 +5,5 @@ import { createBgClickDirective } from './outsideclick';
|
|
|
5
5
|
import { createLoadingDirective } from './scrolllead';
|
|
6
6
|
import { createScrollDirective } from './watchwindow';
|
|
7
7
|
import { createWheelDirective } from './wheel';
|
|
8
|
-
import { createBgClickeDirective } from './whitespaceclick';
|
|
9
8
|
|
|
10
|
-
export { createArrowKeysDirective, createDraggableDirective, createEscapeDirective, createBgClickDirective, createLoadingDirective, createScrollDirective, createWheelDirective,
|
|
9
|
+
export { createArrowKeysDirective, createDraggableDirective, createEscapeDirective, createBgClickDirective, createLoadingDirective, createScrollDirective, createWheelDirective, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
|
+
|
|
3
|
+
type ScrollElement = HTMLElement & {
|
|
4
|
+
_scroll_handlers_?: {
|
|
5
|
+
wheel: () => void;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
interface CheckWheelDirectiveOptions {
|
|
9
|
+
onWheel: () => void;
|
|
10
|
+
throttleTime?: number;
|
|
11
|
+
threshold?: number;
|
|
12
|
+
edge?: 'top' | 'bottom';
|
|
13
|
+
}
|
|
14
|
+
export declare const createLoadingDirective: (options: Partial<CheckWheelDirectiveOptions>) => {
|
|
15
|
+
mounted(el: ScrollElement, binding: DirectiveBinding<boolean>): void;
|
|
16
|
+
updated(el: ScrollElement, binding: DirectiveBinding<boolean>): void;
|
|
17
|
+
beforeUnmount(el: ScrollElement): void;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { DirectiveBinding } from 'vue';
|
|
2
2
|
|
|
3
|
-
type bindingType = {
|
|
4
|
-
value: {
|
|
5
|
-
ableLoading: boolean;
|
|
6
|
-
};
|
|
7
|
-
modifiers: {
|
|
8
|
-
top?: boolean;
|
|
9
|
-
};
|
|
10
|
-
} & DirectiveBinding;
|
|
11
3
|
type ScrollElement = HTMLElement & {
|
|
12
4
|
_scroll_handlers_?: {
|
|
13
5
|
wheel: () => void;
|
|
@@ -15,13 +7,13 @@ type ScrollElement = HTMLElement & {
|
|
|
15
7
|
};
|
|
16
8
|
interface CheckWheelDirectiveOptions {
|
|
17
9
|
onWheel: () => void;
|
|
18
|
-
|
|
10
|
+
debounceTime?: number;
|
|
19
11
|
threshold?: number;
|
|
20
12
|
edge?: 'top' | 'bottom';
|
|
21
13
|
}
|
|
22
14
|
export declare const createLoadingDirective: (options: Partial<CheckWheelDirectiveOptions>) => {
|
|
23
|
-
mounted(el: ScrollElement, binding:
|
|
24
|
-
updated(el: ScrollElement, binding:
|
|
15
|
+
mounted(el: ScrollElement, binding: DirectiveBinding<boolean>): void;
|
|
16
|
+
updated(el: ScrollElement, binding: DirectiveBinding<boolean>): void;
|
|
25
17
|
beforeUnmount(el: ScrollElement): void;
|
|
26
18
|
};
|
|
27
19
|
export {};
|
|
@@ -8,7 +8,7 @@ export type wheelDom = {
|
|
|
8
8
|
interface CheckMoveDirectiveOptions {
|
|
9
9
|
onMove: () => void;
|
|
10
10
|
debounceWait?: number;
|
|
11
|
-
scrollContainerId?:
|
|
11
|
+
scrollContainerId?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const createScrollDirective: (options: Partial<CheckMoveDirectiveOptions>) => ObjectDirective<wheelDom, any>;
|
|
14
14
|
export {};
|