@naptics/vue-collection 0.0.5 → 0.0.7
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 -1
- package/components/NAlert.d.ts +20 -20
- package/components/NAlert.js +3 -3
- package/components/NBadge.d.ts +87 -87
- package/components/NBadge.js +3 -3
- package/components/NBreadcrub.d.ts +57 -57
- package/components/NBreadcrub.js +3 -3
- package/components/NButton.d.ts +69 -69
- package/components/NButton.js +3 -3
- package/components/NCheckbox.d.ts +20 -20
- package/components/NCheckbox.js +3 -3
- package/components/NCheckboxLabel.d.ts +30 -30
- package/components/NCheckboxLabel.js +3 -3
- package/components/NCrudModal.d.ts +238 -203
- package/components/NCrudModal.js +17 -4
- package/components/NDialog.d.ts +1 -1
- package/components/NDialog.js +3 -3
- package/components/NDropdown.d.ts +25 -25
- package/components/NDropdown.js +3 -3
- package/components/NDropzone.d.ts +52 -52
- package/components/NDropzone.js +3 -3
- package/components/NForm.d.ts +6 -6
- package/components/NForm.js +3 -3
- package/components/NFormModal.d.ts +136 -136
- package/components/NFormModal.js +3 -3
- package/components/NIconButton.d.ts +94 -94
- package/components/NIconButton.js +3 -3
- package/components/NIconCircle.d.ts +46 -46
- package/components/NIconCircle.js +3 -3
- package/components/NInput.d.ts +94 -94
- package/components/NInput.js +3 -3
- package/components/NInputPhone.d.ts +125 -125
- package/components/NInputPhone.js +2 -2
- package/components/NInputSelect.d.ts +131 -131
- package/components/NInputSelect.js +3 -3
- package/components/NInputSuggestion.d.ts +179 -167
- package/components/NInputSuggestion.js +3 -3
- package/components/NLink.d.ts +32 -32
- package/components/NLink.js +3 -3
- package/components/NList.d.ts +10 -10
- package/components/NList.js +3 -3
- package/components/NLoadingIndicator.d.ts +30 -30
- package/components/NLoadingIndicator.js +3 -3
- package/components/NModal.d.ts +118 -118
- package/components/NModal.js +3 -3
- package/components/NPagination.d.ts +30 -30
- package/components/NPagination.js +3 -3
- package/components/NSearchbar.d.ts +29 -29
- package/components/NSearchbar.js +3 -3
- package/components/NSearchbarList.d.ts +53 -62
- package/components/NSearchbarList.js +3 -3
- package/components/NSelect.d.ts +64 -64
- package/components/NSelect.js +3 -3
- package/components/NSuggestionList.d.ts +84 -84
- package/components/NSuggestionList.js +7 -7
- package/components/NTable.d.ts +29 -29
- package/components/NTable.js +3 -3
- package/components/NTableAction.d.ts +19 -19
- package/components/NTableAction.js +3 -3
- package/components/NTextArea.d.ts +118 -118
- package/components/NTextArea.js +5 -5
- package/components/NTooltip.d.ts +42 -42
- package/components/NTooltip.js +3 -3
- package/components/NValInput.d.ts +134 -134
- package/components/NValInput.js +5 -5
- package/index.d.ts +2 -66
- package/index.js +2 -67
- package/package.json +3 -1
- package/utils/breakpoints.d.ts +3 -0
- package/utils/breakpoints.js +3 -0
- package/utils/component.d.ts +0 -8
- package/utils/component.js +0 -10
- package/utils/identifiable.d.ts +8 -8
- package/utils/identifiable.js +4 -2
- package/utils/tailwind.d.ts +2 -0
- package/utils/utils.d.ts +25 -12
- package/utils/utils.js +30 -9
|
@@ -4,31 +4,31 @@ export declare const nPaginationProps: {
|
|
|
4
4
|
/**
|
|
5
5
|
* The page number which is currently selected.
|
|
6
6
|
*/
|
|
7
|
-
value: {
|
|
8
|
-
type: NumberConstructor;
|
|
9
|
-
default: () =>
|
|
7
|
+
readonly value: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly default: () => number;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* This is called, when a new page number has been selected.
|
|
13
13
|
*/
|
|
14
|
-
onUpdateValue: PropType<(newValue: number) => void>;
|
|
14
|
+
readonly onUpdateValue: PropType<(newValue: number) => void>;
|
|
15
15
|
/**
|
|
16
16
|
* The total pages which exists. This is needed to correctly display the selectable pages.
|
|
17
17
|
*/
|
|
18
|
-
total: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
default: () =>
|
|
18
|
+
readonly total: {
|
|
19
|
+
readonly type: NumberConstructor;
|
|
20
|
+
readonly default: () => number;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* If set to `true`, the pagination is displayed smaller.
|
|
24
24
|
*/
|
|
25
|
-
small: BooleanConstructor;
|
|
25
|
+
readonly small: BooleanConstructor;
|
|
26
26
|
/**
|
|
27
27
|
* This is called, when the visible pages, which are selectable in the pagination, have changed.
|
|
28
28
|
* This is useful as only these pages can be navigated to on the next click.
|
|
29
29
|
* This information can be useful for prefetching.
|
|
30
30
|
*/
|
|
31
|
-
onVisiblePagesChanged: PropType<(visiblePages: number[]) => void>;
|
|
31
|
+
readonly onVisiblePagesChanged: PropType<(visiblePages: number[]) => void>;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* The `NPagination` is a styled pagination component.
|
|
@@ -37,63 +37,63 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
/**
|
|
38
38
|
* The page number which is currently selected.
|
|
39
39
|
*/
|
|
40
|
-
value: {
|
|
41
|
-
type: NumberConstructor;
|
|
42
|
-
default: () =>
|
|
40
|
+
readonly value: {
|
|
41
|
+
readonly type: NumberConstructor;
|
|
42
|
+
readonly default: () => number;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* This is called, when a new page number has been selected.
|
|
46
46
|
*/
|
|
47
|
-
onUpdateValue: PropType<(newValue: number) => void>;
|
|
47
|
+
readonly onUpdateValue: PropType<(newValue: number) => void>;
|
|
48
48
|
/**
|
|
49
49
|
* The total pages which exists. This is needed to correctly display the selectable pages.
|
|
50
50
|
*/
|
|
51
|
-
total: {
|
|
52
|
-
type: NumberConstructor;
|
|
53
|
-
default: () =>
|
|
51
|
+
readonly total: {
|
|
52
|
+
readonly type: NumberConstructor;
|
|
53
|
+
readonly default: () => number;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
56
|
* If set to `true`, the pagination is displayed smaller.
|
|
57
57
|
*/
|
|
58
|
-
small: BooleanConstructor;
|
|
58
|
+
readonly small: BooleanConstructor;
|
|
59
59
|
/**
|
|
60
60
|
* This is called, when the visible pages, which are selectable in the pagination, have changed.
|
|
61
61
|
* This is useful as only these pages can be navigated to on the next click.
|
|
62
62
|
* This information can be useful for prefetching.
|
|
63
63
|
*/
|
|
64
|
-
onVisiblePagesChanged: PropType<(visiblePages: number[]) => void>;
|
|
64
|
+
readonly onVisiblePagesChanged: PropType<(visiblePages: number[]) => void>;
|
|
65
65
|
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
66
|
/**
|
|
67
67
|
* The page number which is currently selected.
|
|
68
68
|
*/
|
|
69
|
-
value: {
|
|
70
|
-
type: NumberConstructor;
|
|
71
|
-
default: () =>
|
|
69
|
+
readonly value: {
|
|
70
|
+
readonly type: NumberConstructor;
|
|
71
|
+
readonly default: () => number;
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* This is called, when a new page number has been selected.
|
|
75
75
|
*/
|
|
76
|
-
onUpdateValue: PropType<(newValue: number) => void>;
|
|
76
|
+
readonly onUpdateValue: PropType<(newValue: number) => void>;
|
|
77
77
|
/**
|
|
78
78
|
* The total pages which exists. This is needed to correctly display the selectable pages.
|
|
79
79
|
*/
|
|
80
|
-
total: {
|
|
81
|
-
type: NumberConstructor;
|
|
82
|
-
default: () =>
|
|
80
|
+
readonly total: {
|
|
81
|
+
readonly type: NumberConstructor;
|
|
82
|
+
readonly default: () => number;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* If set to `true`, the pagination is displayed smaller.
|
|
86
86
|
*/
|
|
87
|
-
small: BooleanConstructor;
|
|
87
|
+
readonly small: BooleanConstructor;
|
|
88
88
|
/**
|
|
89
89
|
* This is called, when the visible pages, which are selectable in the pagination, have changed.
|
|
90
90
|
* This is useful as only these pages can be navigated to on the next click.
|
|
91
91
|
* This information can be useful for prefetching.
|
|
92
92
|
*/
|
|
93
|
-
onVisiblePagesChanged: PropType<(visiblePages: number[]) => void>;
|
|
93
|
+
readonly onVisiblePagesChanged: PropType<(visiblePages: number[]) => void>;
|
|
94
94
|
}>> & {}, {
|
|
95
|
-
small: boolean;
|
|
96
|
-
value: number;
|
|
97
|
-
total: number;
|
|
95
|
+
readonly small: boolean;
|
|
96
|
+
readonly value: number;
|
|
97
|
+
readonly total: number;
|
|
98
98
|
}>;
|
|
99
99
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
|
|
2
|
-
import { createComponent
|
|
2
|
+
import { createComponent } from '../utils/component';
|
|
3
3
|
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/vue/24/solid';
|
|
4
4
|
import { computed, watch } from 'vue';
|
|
5
5
|
import './NPagination.css';
|
|
6
|
-
export const nPaginationProps =
|
|
6
|
+
export const nPaginationProps = {
|
|
7
7
|
/**
|
|
8
8
|
* The page number which is currently selected.
|
|
9
9
|
*/
|
|
@@ -32,7 +32,7 @@ export const nPaginationProps = createProps({
|
|
|
32
32
|
* This information can be useful for prefetching.
|
|
33
33
|
*/
|
|
34
34
|
onVisiblePagesChanged: Function
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
/**
|
|
37
37
|
* The `NPagination` is a styled pagination component.
|
|
38
38
|
*/
|
|
@@ -3,28 +3,28 @@ export declare const nSearchbarProps: {
|
|
|
3
3
|
/**
|
|
4
4
|
* The placeholder of the search-bar.
|
|
5
5
|
*/
|
|
6
|
-
placeholder: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
6
|
+
readonly placeholder: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: string;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* If set to `true` the search-bar is displayed smaller.
|
|
12
12
|
*/
|
|
13
|
-
small: BooleanConstructor;
|
|
13
|
+
readonly small: BooleanConstructor;
|
|
14
14
|
/**
|
|
15
15
|
* The classes are directly added to the input (e.g. for shadow).
|
|
16
16
|
*/
|
|
17
|
-
inputClass: StringConstructor;
|
|
17
|
+
readonly inputClass: StringConstructor;
|
|
18
18
|
/**
|
|
19
19
|
* This is called when the search-bar receives focus.
|
|
20
20
|
*/
|
|
21
|
-
onFocus: PropType<() => void>;
|
|
21
|
+
readonly onFocus: PropType<() => void>;
|
|
22
22
|
/**
|
|
23
23
|
* This is called when the search-bar looses focus.
|
|
24
24
|
*/
|
|
25
|
-
onBlur: PropType<() => void>;
|
|
26
|
-
value: PropType<string>;
|
|
27
|
-
onUpdateValue: PropType<(newValue: string) => void>;
|
|
25
|
+
readonly onBlur: PropType<() => void>;
|
|
26
|
+
readonly value: PropType<string>;
|
|
27
|
+
readonly onUpdateValue: PropType<(newValue: string) => void>;
|
|
28
28
|
};
|
|
29
29
|
export type NSearchbarExposed = {
|
|
30
30
|
/**
|
|
@@ -39,56 +39,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
/**
|
|
40
40
|
* The placeholder of the search-bar.
|
|
41
41
|
*/
|
|
42
|
-
placeholder: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
42
|
+
readonly placeholder: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: string;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* If set to `true` the search-bar is displayed smaller.
|
|
48
48
|
*/
|
|
49
|
-
small: BooleanConstructor;
|
|
49
|
+
readonly small: BooleanConstructor;
|
|
50
50
|
/**
|
|
51
51
|
* The classes are directly added to the input (e.g. for shadow).
|
|
52
52
|
*/
|
|
53
|
-
inputClass: StringConstructor;
|
|
53
|
+
readonly inputClass: StringConstructor;
|
|
54
54
|
/**
|
|
55
55
|
* This is called when the search-bar receives focus.
|
|
56
56
|
*/
|
|
57
|
-
onFocus: PropType<() => void>;
|
|
57
|
+
readonly onFocus: PropType<() => void>;
|
|
58
58
|
/**
|
|
59
59
|
* This is called when the search-bar looses focus.
|
|
60
60
|
*/
|
|
61
|
-
onBlur: PropType<() => void>;
|
|
62
|
-
value: PropType<string>;
|
|
63
|
-
onUpdateValue: PropType<(newValue: string) => void>;
|
|
61
|
+
readonly onBlur: PropType<() => void>;
|
|
62
|
+
readonly value: PropType<string>;
|
|
63
|
+
readonly onUpdateValue: PropType<(newValue: string) => void>;
|
|
64
64
|
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
65
|
/**
|
|
66
66
|
* The placeholder of the search-bar.
|
|
67
67
|
*/
|
|
68
|
-
placeholder: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
default: string;
|
|
68
|
+
readonly placeholder: {
|
|
69
|
+
readonly type: StringConstructor;
|
|
70
|
+
readonly default: string;
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* If set to `true` the search-bar is displayed smaller.
|
|
74
74
|
*/
|
|
75
|
-
small: BooleanConstructor;
|
|
75
|
+
readonly small: BooleanConstructor;
|
|
76
76
|
/**
|
|
77
77
|
* The classes are directly added to the input (e.g. for shadow).
|
|
78
78
|
*/
|
|
79
|
-
inputClass: StringConstructor;
|
|
79
|
+
readonly inputClass: StringConstructor;
|
|
80
80
|
/**
|
|
81
81
|
* This is called when the search-bar receives focus.
|
|
82
82
|
*/
|
|
83
|
-
onFocus: PropType<() => void>;
|
|
83
|
+
readonly onFocus: PropType<() => void>;
|
|
84
84
|
/**
|
|
85
85
|
* This is called when the search-bar looses focus.
|
|
86
86
|
*/
|
|
87
|
-
onBlur: PropType<() => void>;
|
|
88
|
-
value: PropType<string>;
|
|
89
|
-
onUpdateValue: PropType<(newValue: string) => void>;
|
|
87
|
+
readonly onBlur: PropType<() => void>;
|
|
88
|
+
readonly value: PropType<string>;
|
|
89
|
+
readonly onUpdateValue: PropType<(newValue: string) => void>;
|
|
90
90
|
}>> & {}, {
|
|
91
|
-
small: boolean;
|
|
92
|
-
placeholder: string;
|
|
91
|
+
readonly small: boolean;
|
|
92
|
+
readonly placeholder: string;
|
|
93
93
|
}>;
|
|
94
94
|
export default _default;
|
package/components/NSearchbar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import { trsl } from '../i18n';
|
|
3
|
-
import { createComponent
|
|
3
|
+
import { createComponent } from '../utils/component';
|
|
4
4
|
import { MagnifyingGlassIcon } from '@heroicons/vue/24/solid';
|
|
5
5
|
import { ref } from 'vue';
|
|
6
6
|
import { vModelProps } from '../utils/vModel';
|
|
7
|
-
export const nSearchbarProps =
|
|
7
|
+
export const nSearchbarProps = {
|
|
8
8
|
...vModelProps(String),
|
|
9
9
|
/**
|
|
10
10
|
* The placeholder of the search-bar.
|
|
@@ -29,7 +29,7 @@ export const nSearchbarProps = createProps({
|
|
|
29
29
|
* This is called when the search-bar looses focus.
|
|
30
30
|
*/
|
|
31
31
|
onBlur: Function
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
33
|
/**
|
|
34
34
|
* The `NSearchbar` is a styled input with a search icon.
|
|
35
35
|
*/
|
|
@@ -2,28 +2,25 @@ export declare const nSearchbarListProps: {
|
|
|
2
2
|
/**
|
|
3
3
|
* @see {@link nSearchbarProps.placeholder}
|
|
4
4
|
*/
|
|
5
|
-
placeholder: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
5
|
+
readonly placeholder: {
|
|
6
|
+
readonly type: StringConstructor;
|
|
7
|
+
readonly default: string;
|
|
8
8
|
};
|
|
9
|
-
value: import("vue").PropType<string>;
|
|
10
|
-
onUpdateValue: import("vue").PropType<(newValue: string) => void>;
|
|
11
|
-
items: {
|
|
12
|
-
type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
|
|
13
|
-
default: () => never[];
|
|
9
|
+
readonly value: import("vue").PropType<string>;
|
|
10
|
+
readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
|
|
11
|
+
readonly items: {
|
|
12
|
+
readonly type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
|
|
13
|
+
readonly default: () => never[];
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
maxItems: {
|
|
19
|
-
type: NumberConstructor;
|
|
20
|
-
default: () => 8;
|
|
15
|
+
readonly maxItems: {
|
|
16
|
+
readonly type: NumberConstructor;
|
|
17
|
+
readonly default: () => number;
|
|
21
18
|
};
|
|
22
|
-
hideList: BooleanConstructor;
|
|
23
|
-
loading: BooleanConstructor;
|
|
24
|
-
onSelect: import("vue").PropType<(id: string) => void>;
|
|
25
|
-
listItem: import("vue").PropType<(props: import("./NSuggestionList").ItemSlotProps<import("./NSuggestionList").SuggestionItem>) => JSX.Element>;
|
|
26
|
-
onRealBlur: import("vue").PropType<() => void>;
|
|
19
|
+
readonly hideList: BooleanConstructor;
|
|
20
|
+
readonly loading: BooleanConstructor;
|
|
21
|
+
readonly onSelect: import("vue").PropType<(id: string) => void>;
|
|
22
|
+
readonly listItem: import("vue").PropType<(props: import("./NSuggestionList").ItemSlotProps<import("./NSuggestionList").SuggestionItem>) => JSX.Element>;
|
|
23
|
+
readonly onRealBlur: import("vue").PropType<() => void>;
|
|
27
24
|
};
|
|
28
25
|
/**
|
|
29
26
|
* The `NSearchbarList` is a {@link NSearchbar} with a {@link NSuggestionList}.
|
|
@@ -32,59 +29,53 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
29
|
/**
|
|
33
30
|
* @see {@link nSearchbarProps.placeholder}
|
|
34
31
|
*/
|
|
35
|
-
placeholder: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
default: string;
|
|
32
|
+
readonly placeholder: {
|
|
33
|
+
readonly type: StringConstructor;
|
|
34
|
+
readonly default: string;
|
|
38
35
|
};
|
|
39
|
-
value: import("vue").PropType<string>;
|
|
40
|
-
onUpdateValue: import("vue").PropType<(newValue: string) => void>;
|
|
41
|
-
items: {
|
|
42
|
-
type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
|
|
43
|
-
default: () => never[];
|
|
36
|
+
readonly value: import("vue").PropType<string>;
|
|
37
|
+
readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
|
|
38
|
+
readonly items: {
|
|
39
|
+
readonly type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
|
|
40
|
+
readonly default: () => never[];
|
|
44
41
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
maxItems: {
|
|
49
|
-
type: NumberConstructor;
|
|
50
|
-
default: () => 8;
|
|
42
|
+
readonly maxItems: {
|
|
43
|
+
readonly type: NumberConstructor;
|
|
44
|
+
readonly default: () => number;
|
|
51
45
|
};
|
|
52
|
-
hideList: BooleanConstructor;
|
|
53
|
-
loading: BooleanConstructor;
|
|
54
|
-
onSelect: import("vue").PropType<(id: string) => void>;
|
|
55
|
-
listItem: import("vue").PropType<(props: import("./NSuggestionList").ItemSlotProps<import("./NSuggestionList").SuggestionItem>) => JSX.Element>;
|
|
56
|
-
onRealBlur: import("vue").PropType<() => void>;
|
|
46
|
+
readonly hideList: BooleanConstructor;
|
|
47
|
+
readonly loading: BooleanConstructor;
|
|
48
|
+
readonly onSelect: import("vue").PropType<(id: string) => void>;
|
|
49
|
+
readonly listItem: import("vue").PropType<(props: import("./NSuggestionList").ItemSlotProps<import("./NSuggestionList").SuggestionItem>) => JSX.Element>;
|
|
50
|
+
readonly onRealBlur: import("vue").PropType<() => void>;
|
|
57
51
|
}, import("vue").RenderFunction, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
52
|
/**
|
|
59
53
|
* @see {@link nSearchbarProps.placeholder}
|
|
60
54
|
*/
|
|
61
|
-
placeholder: {
|
|
62
|
-
type: StringConstructor;
|
|
63
|
-
default: string;
|
|
55
|
+
readonly placeholder: {
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly default: string;
|
|
64
58
|
};
|
|
65
|
-
value: import("vue").PropType<string>;
|
|
66
|
-
onUpdateValue: import("vue").PropType<(newValue: string) => void>;
|
|
67
|
-
items: {
|
|
68
|
-
type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
|
|
69
|
-
default: () => never[];
|
|
59
|
+
readonly value: import("vue").PropType<string>;
|
|
60
|
+
readonly onUpdateValue: import("vue").PropType<(newValue: string) => void>;
|
|
61
|
+
readonly items: {
|
|
62
|
+
readonly type: import("vue").PropType<import("./NSuggestionList").SuggestionItem[]>;
|
|
63
|
+
readonly default: () => never[];
|
|
70
64
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
maxItems: {
|
|
75
|
-
type: NumberConstructor;
|
|
76
|
-
default: () => 8;
|
|
65
|
+
readonly maxItems: {
|
|
66
|
+
readonly type: NumberConstructor;
|
|
67
|
+
readonly default: () => number;
|
|
77
68
|
};
|
|
78
|
-
hideList: BooleanConstructor;
|
|
79
|
-
loading: BooleanConstructor;
|
|
80
|
-
onSelect: import("vue").PropType<(id: string) => void>;
|
|
81
|
-
listItem: import("vue").PropType<(props: import("./NSuggestionList").ItemSlotProps<import("./NSuggestionList").SuggestionItem>) => JSX.Element>;
|
|
82
|
-
onRealBlur: import("vue").PropType<() => void>;
|
|
69
|
+
readonly hideList: BooleanConstructor;
|
|
70
|
+
readonly loading: BooleanConstructor;
|
|
71
|
+
readonly onSelect: import("vue").PropType<(id: string) => void>;
|
|
72
|
+
readonly listItem: import("vue").PropType<(props: import("./NSuggestionList").ItemSlotProps<import("./NSuggestionList").SuggestionItem>) => JSX.Element>;
|
|
73
|
+
readonly onRealBlur: import("vue").PropType<() => void>;
|
|
83
74
|
}>> & {}, {
|
|
84
|
-
loading: boolean;
|
|
85
|
-
items: import("./NSuggestionList").SuggestionItem[];
|
|
86
|
-
placeholder: string;
|
|
87
|
-
maxItems: number;
|
|
88
|
-
hideList: boolean;
|
|
75
|
+
readonly loading: boolean;
|
|
76
|
+
readonly items: import("./NSuggestionList").SuggestionItem[];
|
|
77
|
+
readonly placeholder: string;
|
|
78
|
+
readonly maxItems: number;
|
|
79
|
+
readonly hideList: boolean;
|
|
89
80
|
}>;
|
|
90
81
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
|
-
import { createComponent
|
|
2
|
+
import { createComponent } from '../utils/component';
|
|
3
3
|
import { ref } from 'vue';
|
|
4
4
|
import { vModelProps } from '../utils/vModel';
|
|
5
5
|
import NSearchbar, { nSearchbarProps } from './NSearchbar';
|
|
6
6
|
import NSuggestionList, { nSuggestionListPropsForConfig } from './NSuggestionList';
|
|
7
|
-
export const nSearchbarListProps =
|
|
7
|
+
export const nSearchbarListProps = {
|
|
8
8
|
...nSuggestionListPropsForConfig,
|
|
9
9
|
...vModelProps(String),
|
|
10
10
|
/**
|
|
11
11
|
* @see {@link nSearchbarProps.placeholder}
|
|
12
12
|
*/
|
|
13
13
|
placeholder: nSearchbarProps.placeholder
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
/**
|
|
16
16
|
* The `NSearchbarList` is a {@link NSearchbar} with a {@link NSuggestionList}.
|
|
17
17
|
*/
|