@naptics/vue-collection 0.0.6 → 0.1.0
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 +8 -6
- 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 +100 -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 -124
- package/components/NTextArea.js +5 -5
- package/components/NTooltip.d.ts +44 -44
- package/components/NTooltip.js +4 -4
- package/components/NValInput.d.ts +134 -134
- package/components/NValInput.js +5 -5
- package/index.d.ts +2 -2
- package/index.js +2 -2
- 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
|
@@ -3,64 +3,68 @@ export declare const nInputSuggestionProps: {
|
|
|
3
3
|
/**
|
|
4
4
|
* If set to `true` the list is hidden even if there are still matching items in the list.
|
|
5
5
|
*/
|
|
6
|
-
hideList: BooleanConstructor;
|
|
6
|
+
readonly hideList: BooleanConstructor;
|
|
7
7
|
/**
|
|
8
8
|
* @see {@link nSuggestionListProps.maxItems}
|
|
9
9
|
*/
|
|
10
|
-
maxItems: {
|
|
11
|
-
type: NumberConstructor;
|
|
12
|
-
default: () =>
|
|
10
|
+
readonly maxItems: {
|
|
11
|
+
readonly type: NumberConstructor;
|
|
12
|
+
readonly default: () => number;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* The suggestions which are shown to the user for this input.
|
|
16
16
|
* The suggestions are filtered based on the user input.
|
|
17
17
|
*/
|
|
18
|
-
suggestions: {
|
|
19
|
-
type: PropType<string[]>;
|
|
20
|
-
default: () => never[];
|
|
21
|
-
};
|
|
22
|
-
input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
|
|
23
|
-
optional: BooleanConstructor;
|
|
24
|
-
rules: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type: PropType<import("
|
|
43
|
-
default:
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
type: StringConstructor;
|
|
53
|
-
default:
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
18
|
+
readonly suggestions: {
|
|
19
|
+
readonly type: PropType<string[]>;
|
|
20
|
+
readonly default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
readonly input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
|
|
23
|
+
readonly optional: BooleanConstructor;
|
|
24
|
+
readonly rules: {
|
|
25
|
+
/**
|
|
26
|
+
* `NInputSuggestion` is an input, which shows a list of possible suggestions to the user
|
|
27
|
+
* which is filtered while typing. Contrary to {@link NInputSelect} the user is not required to choose any of the suggestions.
|
|
28
|
+
*/
|
|
29
|
+
readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
|
|
30
|
+
readonly default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
|
|
33
|
+
readonly error: BooleanConstructor;
|
|
34
|
+
readonly errorMessage: StringConstructor;
|
|
35
|
+
readonly hideErrorMessage: BooleanConstructor;
|
|
36
|
+
readonly disableBlurValidation: BooleanConstructor;
|
|
37
|
+
readonly tooltipText: StringConstructor;
|
|
38
|
+
readonly tooltipContent: PropType<() => JSX.Element>;
|
|
39
|
+
readonly tooltipHide: BooleanConstructor;
|
|
40
|
+
readonly tooltipShow: BooleanConstructor;
|
|
41
|
+
readonly tooltipPlacement: {
|
|
42
|
+
readonly type: PropType<import("./NTooltip").TooltipPlacement>;
|
|
43
|
+
readonly default: "auto";
|
|
44
|
+
};
|
|
45
|
+
readonly tooltipMaxWidth: {
|
|
46
|
+
readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
|
|
47
|
+
readonly default: "max-w-xs";
|
|
48
|
+
};
|
|
49
|
+
readonly name: StringConstructor;
|
|
50
|
+
readonly placeholder: StringConstructor;
|
|
51
|
+
readonly autocomplete: {
|
|
52
|
+
readonly type: StringConstructor;
|
|
53
|
+
readonly default: "off";
|
|
54
|
+
};
|
|
55
|
+
readonly type: {
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly default: "text";
|
|
58
|
+
};
|
|
59
|
+
readonly max: StringConstructor;
|
|
60
|
+
readonly min: StringConstructor;
|
|
61
|
+
readonly disabled: BooleanConstructor;
|
|
62
|
+
readonly small: BooleanConstructor;
|
|
63
|
+
readonly hideLabel: BooleanConstructor;
|
|
64
|
+
readonly onFocus: PropType<() => void>;
|
|
65
|
+
readonly onBlur: PropType<() => void>;
|
|
66
|
+
readonly value: PropType<string>;
|
|
67
|
+
readonly onUpdateValue: PropType<(newValue: string) => void>;
|
|
64
68
|
};
|
|
65
69
|
/**
|
|
66
70
|
* `NInputSuggestion` is an input, which shows a list of possible suggestions to the user
|
|
@@ -70,143 +74,151 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
74
|
/**
|
|
71
75
|
* If set to `true` the list is hidden even if there are still matching items in the list.
|
|
72
76
|
*/
|
|
73
|
-
hideList: BooleanConstructor;
|
|
77
|
+
readonly hideList: BooleanConstructor;
|
|
74
78
|
/**
|
|
75
79
|
* @see {@link nSuggestionListProps.maxItems}
|
|
76
80
|
*/
|
|
77
|
-
maxItems: {
|
|
78
|
-
type: NumberConstructor;
|
|
79
|
-
default: () =>
|
|
81
|
+
readonly maxItems: {
|
|
82
|
+
readonly type: NumberConstructor;
|
|
83
|
+
readonly default: () => number;
|
|
80
84
|
};
|
|
81
85
|
/**
|
|
82
86
|
* The suggestions which are shown to the user for this input.
|
|
83
87
|
* The suggestions are filtered based on the user input.
|
|
84
88
|
*/
|
|
85
|
-
suggestions: {
|
|
86
|
-
type: PropType<string[]>;
|
|
87
|
-
default: () => never[];
|
|
88
|
-
};
|
|
89
|
-
input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
|
|
90
|
-
optional: BooleanConstructor;
|
|
91
|
-
rules: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
type: PropType<import("
|
|
110
|
-
default:
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
type: StringConstructor;
|
|
120
|
-
default:
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
89
|
+
readonly suggestions: {
|
|
90
|
+
readonly type: PropType<string[]>;
|
|
91
|
+
readonly default: () => never[];
|
|
92
|
+
};
|
|
93
|
+
readonly input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
|
|
94
|
+
readonly optional: BooleanConstructor;
|
|
95
|
+
readonly rules: {
|
|
96
|
+
/**
|
|
97
|
+
* `NInputSuggestion` is an input, which shows a list of possible suggestions to the user
|
|
98
|
+
* which is filtered while typing. Contrary to {@link NInputSelect} the user is not required to choose any of the suggestions.
|
|
99
|
+
*/
|
|
100
|
+
readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
|
|
101
|
+
readonly default: () => never[];
|
|
102
|
+
};
|
|
103
|
+
readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
|
|
104
|
+
readonly error: BooleanConstructor;
|
|
105
|
+
readonly errorMessage: StringConstructor;
|
|
106
|
+
readonly hideErrorMessage: BooleanConstructor;
|
|
107
|
+
readonly disableBlurValidation: BooleanConstructor;
|
|
108
|
+
readonly tooltipText: StringConstructor;
|
|
109
|
+
readonly tooltipContent: PropType<() => JSX.Element>;
|
|
110
|
+
readonly tooltipHide: BooleanConstructor;
|
|
111
|
+
readonly tooltipShow: BooleanConstructor;
|
|
112
|
+
readonly tooltipPlacement: {
|
|
113
|
+
readonly type: PropType<import("./NTooltip").TooltipPlacement>;
|
|
114
|
+
readonly default: "auto";
|
|
115
|
+
};
|
|
116
|
+
readonly tooltipMaxWidth: {
|
|
117
|
+
readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
|
|
118
|
+
readonly default: "max-w-xs";
|
|
119
|
+
};
|
|
120
|
+
readonly name: StringConstructor;
|
|
121
|
+
readonly placeholder: StringConstructor;
|
|
122
|
+
readonly autocomplete: {
|
|
123
|
+
readonly type: StringConstructor;
|
|
124
|
+
readonly default: "off";
|
|
125
|
+
};
|
|
126
|
+
readonly type: {
|
|
127
|
+
readonly type: StringConstructor;
|
|
128
|
+
readonly default: "text";
|
|
129
|
+
};
|
|
130
|
+
readonly max: StringConstructor;
|
|
131
|
+
readonly min: StringConstructor;
|
|
132
|
+
readonly disabled: BooleanConstructor;
|
|
133
|
+
readonly small: BooleanConstructor;
|
|
134
|
+
readonly hideLabel: BooleanConstructor;
|
|
135
|
+
readonly onFocus: PropType<() => void>;
|
|
136
|
+
readonly onBlur: PropType<() => void>;
|
|
137
|
+
readonly value: PropType<string>;
|
|
138
|
+
readonly onUpdateValue: PropType<(newValue: string) => void>;
|
|
131
139
|
}, 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<{
|
|
132
140
|
/**
|
|
133
141
|
* If set to `true` the list is hidden even if there are still matching items in the list.
|
|
134
142
|
*/
|
|
135
|
-
hideList: BooleanConstructor;
|
|
143
|
+
readonly hideList: BooleanConstructor;
|
|
136
144
|
/**
|
|
137
145
|
* @see {@link nSuggestionListProps.maxItems}
|
|
138
146
|
*/
|
|
139
|
-
maxItems: {
|
|
140
|
-
type: NumberConstructor;
|
|
141
|
-
default: () =>
|
|
147
|
+
readonly maxItems: {
|
|
148
|
+
readonly type: NumberConstructor;
|
|
149
|
+
readonly default: () => number;
|
|
142
150
|
};
|
|
143
151
|
/**
|
|
144
152
|
* The suggestions which are shown to the user for this input.
|
|
145
153
|
* The suggestions are filtered based on the user input.
|
|
146
154
|
*/
|
|
147
|
-
suggestions: {
|
|
148
|
-
type: PropType<string[]>;
|
|
149
|
-
default: () => never[];
|
|
150
|
-
};
|
|
151
|
-
input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
|
|
152
|
-
optional: BooleanConstructor;
|
|
153
|
-
rules: {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
type: PropType<import("
|
|
172
|
-
default:
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
type: StringConstructor;
|
|
182
|
-
default:
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
155
|
+
readonly suggestions: {
|
|
156
|
+
readonly type: PropType<string[]>;
|
|
157
|
+
readonly default: () => never[];
|
|
158
|
+
};
|
|
159
|
+
readonly input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
|
|
160
|
+
readonly optional: BooleanConstructor;
|
|
161
|
+
readonly rules: {
|
|
162
|
+
/**
|
|
163
|
+
* `NInputSuggestion` is an input, which shows a list of possible suggestions to the user
|
|
164
|
+
* which is filtered while typing. Contrary to {@link NInputSelect} the user is not required to choose any of the suggestions.
|
|
165
|
+
*/
|
|
166
|
+
readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
|
|
167
|
+
readonly default: () => never[];
|
|
168
|
+
};
|
|
169
|
+
readonly form: PropType<import("./ValidatedForm").ValidatedForm>;
|
|
170
|
+
readonly error: BooleanConstructor;
|
|
171
|
+
readonly errorMessage: StringConstructor;
|
|
172
|
+
readonly hideErrorMessage: BooleanConstructor;
|
|
173
|
+
readonly disableBlurValidation: BooleanConstructor;
|
|
174
|
+
readonly tooltipText: StringConstructor;
|
|
175
|
+
readonly tooltipContent: PropType<() => JSX.Element>;
|
|
176
|
+
readonly tooltipHide: BooleanConstructor;
|
|
177
|
+
readonly tooltipShow: BooleanConstructor;
|
|
178
|
+
readonly tooltipPlacement: {
|
|
179
|
+
readonly type: PropType<import("./NTooltip").TooltipPlacement>;
|
|
180
|
+
readonly default: "auto";
|
|
181
|
+
};
|
|
182
|
+
readonly tooltipMaxWidth: {
|
|
183
|
+
readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
|
|
184
|
+
readonly default: "max-w-xs";
|
|
185
|
+
};
|
|
186
|
+
readonly name: StringConstructor;
|
|
187
|
+
readonly placeholder: StringConstructor;
|
|
188
|
+
readonly autocomplete: {
|
|
189
|
+
readonly type: StringConstructor;
|
|
190
|
+
readonly default: "off";
|
|
191
|
+
};
|
|
192
|
+
readonly type: {
|
|
193
|
+
readonly type: StringConstructor;
|
|
194
|
+
readonly default: "text";
|
|
195
|
+
};
|
|
196
|
+
readonly max: StringConstructor;
|
|
197
|
+
readonly min: StringConstructor;
|
|
198
|
+
readonly disabled: BooleanConstructor;
|
|
199
|
+
readonly small: BooleanConstructor;
|
|
200
|
+
readonly hideLabel: BooleanConstructor;
|
|
201
|
+
readonly onFocus: PropType<() => void>;
|
|
202
|
+
readonly onBlur: PropType<() => void>;
|
|
203
|
+
readonly value: PropType<string>;
|
|
204
|
+
readonly onUpdateValue: PropType<(newValue: string) => void>;
|
|
193
205
|
}>> & {}, {
|
|
194
|
-
small: boolean;
|
|
195
|
-
type: string;
|
|
196
|
-
tooltipHide: boolean;
|
|
197
|
-
tooltipShow: boolean;
|
|
198
|
-
tooltipPlacement: import("./NTooltip").TooltipPlacement;
|
|
199
|
-
tooltipMaxWidth: import("../utils/tailwind").TWMaxWidth;
|
|
200
|
-
disabled: boolean;
|
|
201
|
-
error: boolean;
|
|
202
|
-
autocomplete: string;
|
|
203
|
-
hideLabel: boolean;
|
|
204
|
-
optional: boolean;
|
|
205
|
-
rules: import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[];
|
|
206
|
-
hideErrorMessage: boolean;
|
|
207
|
-
disableBlurValidation: boolean;
|
|
208
|
-
maxItems: number;
|
|
209
|
-
hideList: boolean;
|
|
210
|
-
suggestions: string[];
|
|
206
|
+
readonly small: boolean;
|
|
207
|
+
readonly type: string;
|
|
208
|
+
readonly tooltipHide: boolean;
|
|
209
|
+
readonly tooltipShow: boolean;
|
|
210
|
+
readonly tooltipPlacement: import("./NTooltip").TooltipPlacement;
|
|
211
|
+
readonly tooltipMaxWidth: import("../utils/tailwind").TWMaxWidth;
|
|
212
|
+
readonly disabled: boolean;
|
|
213
|
+
readonly error: boolean;
|
|
214
|
+
readonly autocomplete: string;
|
|
215
|
+
readonly hideLabel: boolean;
|
|
216
|
+
readonly optional: boolean;
|
|
217
|
+
readonly rules: import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[];
|
|
218
|
+
readonly hideErrorMessage: boolean;
|
|
219
|
+
readonly disableBlurValidation: boolean;
|
|
220
|
+
readonly maxItems: number;
|
|
221
|
+
readonly hideList: boolean;
|
|
222
|
+
readonly suggestions: string[];
|
|
211
223
|
}>;
|
|
212
224
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
|
2
|
-
import { createComponent
|
|
2
|
+
import { createComponent } from '../utils/component';
|
|
3
3
|
import { Id } from '../utils/identifiable';
|
|
4
4
|
import { computed, ref } from 'vue';
|
|
5
5
|
import NSuggestionList, { nSuggestionListProps } from './NSuggestionList';
|
|
6
6
|
import NValInput, { nValInputProps } from './NValInput';
|
|
7
|
-
export const nInputSuggestionProps =
|
|
7
|
+
export const nInputSuggestionProps = {
|
|
8
8
|
...nValInputProps,
|
|
9
9
|
/**
|
|
10
10
|
* If set to `true` the list is hidden even if there are still matching items in the list.
|
|
@@ -22,7 +22,7 @@ export const nInputSuggestionProps = createProps({
|
|
|
22
22
|
type: Array,
|
|
23
23
|
default: () => []
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
/**
|
|
27
27
|
* `NInputSuggestion` is an input, which shows a list of possible suggestions to the user
|
|
28
28
|
* which is filtered while typing. Contrary to {@link NInputSelect} the user is not required to choose any of the suggestions.
|
package/components/NLink.d.ts
CHANGED
|
@@ -5,35 +5,35 @@ export declare const nLinkProps: {
|
|
|
5
5
|
/**
|
|
6
6
|
* The text of the link. Can also be set in the default slot.
|
|
7
7
|
*/
|
|
8
|
-
text: StringConstructor;
|
|
8
|
+
readonly text: StringConstructor;
|
|
9
9
|
/**
|
|
10
10
|
* The route of the link. If this is set,
|
|
11
11
|
* the link becomes a {@link RouterLink} and does not emit the `onClick` event.
|
|
12
12
|
*/
|
|
13
|
-
route: PropType<RouteLocationRaw>;
|
|
13
|
+
readonly route: PropType<RouteLocationRaw>;
|
|
14
14
|
/**
|
|
15
15
|
* The color of the link.
|
|
16
16
|
*/
|
|
17
|
-
color: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default:
|
|
17
|
+
readonly color: {
|
|
18
|
+
readonly type: StringConstructor;
|
|
19
|
+
readonly default: "primary";
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* The text size, a standard tailwind text-size class.
|
|
23
23
|
*/
|
|
24
|
-
textSize: PropType<TWTextSize>;
|
|
24
|
+
readonly textSize: PropType<TWTextSize>;
|
|
25
25
|
/**
|
|
26
26
|
* The shade of the link.
|
|
27
27
|
*/
|
|
28
|
-
shade: {
|
|
29
|
-
type: NumberConstructor;
|
|
30
|
-
default:
|
|
28
|
+
readonly shade: {
|
|
29
|
+
readonly type: NumberConstructor;
|
|
30
|
+
readonly default: 500;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* This is called when the link is clicked but only, if the `route` prop is not set.
|
|
34
34
|
* If the `route` prop is not set, the link will act as a regular button.
|
|
35
35
|
*/
|
|
36
|
-
onClick: PropType<() => void>;
|
|
36
|
+
readonly onClick: PropType<() => void>;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* The `NLink` is a styled text which can be used as a {@link RouterLink} or a regular button.
|
|
@@ -42,70 +42,70 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
/**
|
|
43
43
|
* The text of the link. Can also be set in the default slot.
|
|
44
44
|
*/
|
|
45
|
-
text: StringConstructor;
|
|
45
|
+
readonly text: StringConstructor;
|
|
46
46
|
/**
|
|
47
47
|
* The route of the link. If this is set,
|
|
48
48
|
* the link becomes a {@link RouterLink} and does not emit the `onClick` event.
|
|
49
49
|
*/
|
|
50
|
-
route: PropType<RouteLocationRaw>;
|
|
50
|
+
readonly route: PropType<RouteLocationRaw>;
|
|
51
51
|
/**
|
|
52
52
|
* The color of the link.
|
|
53
53
|
*/
|
|
54
|
-
color: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default:
|
|
54
|
+
readonly color: {
|
|
55
|
+
readonly type: StringConstructor;
|
|
56
|
+
readonly default: "primary";
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
59
|
* The text size, a standard tailwind text-size class.
|
|
60
60
|
*/
|
|
61
|
-
textSize: PropType<TWTextSize>;
|
|
61
|
+
readonly textSize: PropType<TWTextSize>;
|
|
62
62
|
/**
|
|
63
63
|
* The shade of the link.
|
|
64
64
|
*/
|
|
65
|
-
shade: {
|
|
66
|
-
type: NumberConstructor;
|
|
67
|
-
default:
|
|
65
|
+
readonly shade: {
|
|
66
|
+
readonly type: NumberConstructor;
|
|
67
|
+
readonly default: 500;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* This is called when the link is clicked but only, if the `route` prop is not set.
|
|
71
71
|
* If the `route` prop is not set, the link will act as a regular button.
|
|
72
72
|
*/
|
|
73
|
-
onClick: PropType<() => void>;
|
|
73
|
+
readonly onClick: PropType<() => void>;
|
|
74
74
|
}, 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<{
|
|
75
75
|
/**
|
|
76
76
|
* The text of the link. Can also be set in the default slot.
|
|
77
77
|
*/
|
|
78
|
-
text: StringConstructor;
|
|
78
|
+
readonly text: StringConstructor;
|
|
79
79
|
/**
|
|
80
80
|
* The route of the link. If this is set,
|
|
81
81
|
* the link becomes a {@link RouterLink} and does not emit the `onClick` event.
|
|
82
82
|
*/
|
|
83
|
-
route: PropType<RouteLocationRaw>;
|
|
83
|
+
readonly route: PropType<RouteLocationRaw>;
|
|
84
84
|
/**
|
|
85
85
|
* The color of the link.
|
|
86
86
|
*/
|
|
87
|
-
color: {
|
|
88
|
-
type: StringConstructor;
|
|
89
|
-
default:
|
|
87
|
+
readonly color: {
|
|
88
|
+
readonly type: StringConstructor;
|
|
89
|
+
readonly default: "primary";
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
92
|
* The text size, a standard tailwind text-size class.
|
|
93
93
|
*/
|
|
94
|
-
textSize: PropType<TWTextSize>;
|
|
94
|
+
readonly textSize: PropType<TWTextSize>;
|
|
95
95
|
/**
|
|
96
96
|
* The shade of the link.
|
|
97
97
|
*/
|
|
98
|
-
shade: {
|
|
99
|
-
type: NumberConstructor;
|
|
100
|
-
default:
|
|
98
|
+
readonly shade: {
|
|
99
|
+
readonly type: NumberConstructor;
|
|
100
|
+
readonly default: 500;
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
103
|
* This is called when the link is clicked but only, if the `route` prop is not set.
|
|
104
104
|
* If the `route` prop is not set, the link will act as a regular button.
|
|
105
105
|
*/
|
|
106
|
-
onClick: PropType<() => void>;
|
|
106
|
+
readonly onClick: PropType<() => void>;
|
|
107
107
|
}>> & {}, {
|
|
108
|
-
color: string;
|
|
109
|
-
shade: number;
|
|
108
|
+
readonly color: string;
|
|
109
|
+
readonly shade: number;
|
|
110
110
|
}>;
|
|
111
111
|
export default _default;
|
package/components/NLink.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { createComponent
|
|
2
|
+
import { createComponent } from '../utils/component';
|
|
3
3
|
import { computed } from 'vue';
|
|
4
4
|
import { RouterLink } from 'vue-router';
|
|
5
|
-
export const nLinkProps =
|
|
5
|
+
export const nLinkProps = {
|
|
6
6
|
/**
|
|
7
7
|
* The text of the link. Can also be set in the default slot.
|
|
8
8
|
*/
|
|
@@ -35,7 +35,7 @@ export const nLinkProps = createProps({
|
|
|
35
35
|
* If the `route` prop is not set, the link will act as a regular button.
|
|
36
36
|
*/
|
|
37
37
|
onClick: Function
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
/**
|
|
40
40
|
* The `NLink` is a styled text which can be used as a {@link RouterLink} or a regular button.
|
|
41
41
|
*/
|
package/components/NList.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export declare const nListProps: {
|
|
|
13
13
|
/**
|
|
14
14
|
* The items which are displayed in the list.
|
|
15
15
|
*/
|
|
16
|
-
items: {
|
|
17
|
-
type: PropType<ListItem[]>;
|
|
18
|
-
default: () => never[];
|
|
16
|
+
readonly items: {
|
|
17
|
+
readonly type: PropType<ListItem[]>;
|
|
18
|
+
readonly default: () => never[];
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -25,19 +25,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
/**
|
|
26
26
|
* The items which are displayed in the list.
|
|
27
27
|
*/
|
|
28
|
-
items: {
|
|
29
|
-
type: PropType<ListItem[]>;
|
|
30
|
-
default: () => never[];
|
|
28
|
+
readonly items: {
|
|
29
|
+
readonly type: PropType<ListItem[]>;
|
|
30
|
+
readonly default: () => never[];
|
|
31
31
|
};
|
|
32
32
|
}, 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<{
|
|
33
33
|
/**
|
|
34
34
|
* The items which are displayed in the list.
|
|
35
35
|
*/
|
|
36
|
-
items: {
|
|
37
|
-
type: PropType<ListItem[]>;
|
|
38
|
-
default: () => never[];
|
|
36
|
+
readonly items: {
|
|
37
|
+
readonly type: PropType<ListItem[]>;
|
|
38
|
+
readonly default: () => never[];
|
|
39
39
|
};
|
|
40
40
|
}>> & {}, {
|
|
41
|
-
items: ListItem[];
|
|
41
|
+
readonly items: ListItem[];
|
|
42
42
|
}>;
|
|
43
43
|
export default _default;
|
package/components/NList.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { createComponent
|
|
3
|
-
export const nListProps =
|
|
2
|
+
import { createComponent } from '../utils/component';
|
|
3
|
+
export const nListProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The items which are displayed in the list.
|
|
6
6
|
*/
|
|
@@ -8,7 +8,7 @@ export const nListProps = createProps({
|
|
|
8
8
|
type: Array,
|
|
9
9
|
default: () => []
|
|
10
10
|
}
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/**
|
|
13
13
|
* The `NList` displays key-value data in an appealing way.
|
|
14
14
|
*/
|