@naptics/vue-collection 0.2.3 → 0.2.5

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.
Files changed (65) hide show
  1. package/components/NAlert.d.ts +2 -2
  2. package/components/NAlert.js +3 -2
  3. package/components/NBadge.d.ts +2 -2
  4. package/components/NBadge.js +3 -2
  5. package/components/NBreadcrub.d.ts +2 -2
  6. package/components/NBreadcrub.js +3 -2
  7. package/components/NButton.d.ts +2 -2
  8. package/components/NButton.js +3 -2
  9. package/components/NCheckbox.d.ts +2 -2
  10. package/components/NCheckbox.js +3 -2
  11. package/components/NCheckboxLabel.d.ts +2 -2
  12. package/components/NCheckboxLabel.js +3 -2
  13. package/components/NCrudModal.d.ts +2 -2
  14. package/components/NCrudModal.js +3 -2
  15. package/components/NDialog.d.ts +2 -2
  16. package/components/NDialog.js +3 -2
  17. package/components/NDropdown.d.ts +4 -72
  18. package/components/NDropdown.js +3 -2
  19. package/components/NDropzone.d.ts +2 -2
  20. package/components/NDropzone.js +2 -1
  21. package/components/NForm.d.ts +2 -2
  22. package/components/NForm.js +3 -2
  23. package/components/NFormModal.d.ts +2 -2
  24. package/components/NFormModal.js +3 -2
  25. package/components/NIconButton.d.ts +2 -2
  26. package/components/NIconButton.js +3 -2
  27. package/components/NIconCircle.d.ts +2 -2
  28. package/components/NIconCircle.js +3 -2
  29. package/components/NInput.d.ts +2 -2
  30. package/components/NInput.js +3 -2
  31. package/components/NInputPhone.d.ts +6 -2
  32. package/components/NInputPhone.js +2 -1
  33. package/components/NInputSelect.d.ts +2 -2
  34. package/components/NInputSelect.js +3 -2
  35. package/components/NInputSuggestion.d.ts +6 -2
  36. package/components/NInputSuggestion.js +3 -2
  37. package/components/NLink.d.ts +2 -2
  38. package/components/NLink.js +3 -2
  39. package/components/NList.d.ts +2 -2
  40. package/components/NList.js +2 -1
  41. package/components/NLoadingIndicator.d.ts +2 -2
  42. package/components/NLoadingIndicator.js +3 -2
  43. package/components/NModal.d.ts +2 -2
  44. package/components/NModal.js +3 -2
  45. package/components/NPagination.d.ts +2 -2
  46. package/components/NPagination.js +2 -1
  47. package/components/NSearchbar.d.ts +2 -2
  48. package/components/NSearchbar.js +3 -2
  49. package/components/NSearchbarList.d.ts +2 -2
  50. package/components/NSearchbarList.js +3 -2
  51. package/components/NSelect.d.ts +2 -2
  52. package/components/NSelect.js +3 -2
  53. package/components/NSuggestionList.d.ts +4 -4
  54. package/components/NSuggestionList.js +3 -2
  55. package/components/NTable.d.ts +2 -2
  56. package/components/NTable.js +2 -1
  57. package/components/NTableAction.d.ts +2 -2
  58. package/components/NTableAction.js +3 -2
  59. package/components/NTextArea.d.ts +6 -2
  60. package/components/NTextArea.js +2 -1
  61. package/components/NTooltip.d.ts +2 -2
  62. package/components/NTooltip.js +2 -1
  63. package/components/NValInput.d.ts +35 -5
  64. package/components/NValInput.js +11 -4
  65. package/package.json +1 -1
@@ -64,7 +64,7 @@ export const nInputSelectProps = {
64
64
  * The user is forced to use a value from the specified options of the input.
65
65
  * While they type, the list of options is shown to them and filtered based on their input.
66
66
  */
67
- export default createComponentWithSlots('NInputSelect', nInputSelectProps, ['listItem'], props => {
67
+ const Component = createComponentWithSlots('NInputSelect', nInputSelectProps, ['listItem'], props => {
68
68
  const inputRef = ref();
69
69
  const inputValue = ref('');
70
70
  watch(() => props.value, newValue => {
@@ -111,4 +111,5 @@ export default createComponentWithSlots('NInputSelect', nInputSelectProps, ['lis
111
111
  inputRef?.value?.validate();
112
112
  }
113
113
  }, null);
114
- });
114
+ });
115
+ export { Component as NInputSelect, Component as default };
@@ -20,6 +20,7 @@ export declare const nInputSuggestionProps: {
20
20
  readonly default: () => never[];
21
21
  };
22
22
  readonly input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
23
+ readonly disableValidation: BooleanConstructor;
23
24
  readonly optional: BooleanConstructor;
24
25
  readonly rules: {
25
26
  readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -70,7 +71,7 @@ export declare const nInputSuggestionProps: {
70
71
  * `NInputSuggestion` is an input, which shows a list of possible suggestions to the user
71
72
  * which is filtered while typing. Contrary to {@link NInputSelect} the user is not required to choose any of the suggestions.
72
73
  */
73
- declare const _default: import("vue").DefineComponent<{
74
+ declare const Component: import("vue").DefineComponent<{
74
75
  /**
75
76
  * If set to `true` the list is hidden even if there are still matching items in the list.
76
77
  */
@@ -91,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
91
92
  readonly default: () => never[];
92
93
  };
93
94
  readonly input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
95
+ readonly disableValidation: BooleanConstructor;
94
96
  readonly optional: BooleanConstructor;
95
97
  readonly rules: {
96
98
  readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -157,6 +159,7 @@ declare const _default: import("vue").DefineComponent<{
157
159
  readonly default: () => never[];
158
160
  };
159
161
  readonly input: PropType<(props: import("./NValInput").InputSlotProps) => JSX.Element>;
162
+ readonly disableValidation: BooleanConstructor;
160
163
  readonly optional: BooleanConstructor;
161
164
  readonly rules: {
162
165
  readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -213,6 +216,7 @@ declare const _default: import("vue").DefineComponent<{
213
216
  readonly error: boolean;
214
217
  readonly autocomplete: string;
215
218
  readonly hideLabel: boolean;
219
+ readonly disableValidation: boolean;
216
220
  readonly optional: boolean;
217
221
  readonly rules: import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[];
218
222
  readonly hideErrorMessage: boolean;
@@ -221,4 +225,4 @@ declare const _default: import("vue").DefineComponent<{
221
225
  readonly hideList: boolean;
222
226
  readonly suggestions: string[];
223
227
  }>;
224
- export default _default;
228
+ export { Component as NInputSuggestion, Component as default };
@@ -27,7 +27,7 @@ export const nInputSuggestionProps = {
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.
29
29
  */
30
- export default createComponent('NInputSuggestion', nInputSuggestionProps, props => {
30
+ const Component = createComponent('NInputSuggestion', nInputSuggestionProps, props => {
31
31
  const suggestionItems = computed(() => props.suggestions.filter(suggestion => suggestion.includes(props.value || '')).map((value, index) => ({
32
32
  id: index.toString(),
33
33
  label: value
@@ -60,4 +60,5 @@ export default createComponent('NInputSuggestion', nInputSuggestionProps, props
60
60
  inputRef?.value?.validate();
61
61
  }
62
62
  }, null);
63
- });
63
+ });
64
+ export { Component as NInputSuggestion, Component as default };
@@ -38,7 +38,7 @@ export declare const nLinkProps: {
38
38
  /**
39
39
  * The `NLink` is a styled text which can be used as a {@link RouterLink} or a regular button.
40
40
  */
41
- declare const _default: import("vue").DefineComponent<{
41
+ declare const Component: import("vue").DefineComponent<{
42
42
  /**
43
43
  * The text of the link. Can also be set in the default slot.
44
44
  */
@@ -108,4 +108,4 @@ declare const _default: import("vue").DefineComponent<{
108
108
  readonly color: string;
109
109
  readonly shade: number;
110
110
  }>;
111
- export default _default;
111
+ export { Component as NLink, Component as default };
@@ -39,7 +39,7 @@ export const nLinkProps = {
39
39
  /**
40
40
  * The `NLink` is a styled text which can be used as a {@link RouterLink} or a regular button.
41
41
  */
42
- export default createComponent('NLink', nLinkProps, (props, {
42
+ const Component = createComponent('NLink', nLinkProps, (props, {
43
43
  slots
44
44
  }) => {
45
45
  const hoverShade = computed(() => {
@@ -56,4 +56,5 @@ export default createComponent('NLink', nLinkProps, (props, {
56
56
  "onClick": props.onClick,
57
57
  "class": classes.value
58
58
  }, [slots.default?.() || props.text]);
59
- });
59
+ });
60
+ export { Component as NLink, Component as default };
@@ -29,7 +29,7 @@ export declare const nListProps: {
29
29
  /**
30
30
  * The `NList` displays key-value data in an appealing way.
31
31
  */
32
- declare const _default: import("vue").DefineComponent<{
32
+ declare const Component: import("vue").DefineComponent<{
33
33
  /**
34
34
  * The items which are displayed in the list.
35
35
  */
@@ -64,4 +64,4 @@ declare const _default: import("vue").DefineComponent<{
64
64
  }>> & {}, {
65
65
  readonly items: ListItem[];
66
66
  }>;
67
- export default _default;
67
+ export { Component as NList, Component as default };
@@ -20,7 +20,7 @@ export const nListProps = {
20
20
  /**
21
21
  * The `NList` displays key-value data in an appealing way.
22
22
  */
23
- export default createComponent('NList', nListProps, props => {
23
+ const Component = createComponent('NList', nListProps, props => {
24
24
  return () => _createVNode("dl", null, [props.items.map((item, index) => _createVNode("div", {
25
25
  "key": index,
26
26
  "class": ['py-5 px-4 sm:grid sm:grid-cols-3 sm:gap-4', index % 2 === 1 ? 'bg-white' : 'bg-default-50']
@@ -30,6 +30,7 @@ export default createComponent('NList', nListProps, props => {
30
30
  "class": `mt-1 text-sm sm:mt-0 sm:col-span-2 ${props.textClass}`
31
31
  }, [buildElement(item.text)])]))]);
32
32
  });
33
+ export { Component as NList, Component as default };
33
34
  function buildElement(element) {
34
35
  if (typeof element === 'function') return element();else return _createVNode(_Fragment, null, [element]);
35
36
  }
@@ -25,7 +25,7 @@ export declare const nLoadingIndicator: {
25
25
  /**
26
26
  * The `NLoadingIndicator` is a styled loading indicator.
27
27
  */
28
- declare const _default: import("vue").DefineComponent<{
28
+ declare const Component: import("vue").DefineComponent<{
29
29
  /**
30
30
  * The color of the loading-indicator.
31
31
  */
@@ -74,4 +74,4 @@ declare const _default: import("vue").DefineComponent<{
74
74
  readonly shade: number;
75
75
  readonly size: number;
76
76
  }>;
77
- export default _default;
77
+ export { Component as NLoadingIndicator, Component as default };
@@ -28,7 +28,7 @@ export const nLoadingIndicator = {
28
28
  /**
29
29
  * The `NLoadingIndicator` is a styled loading indicator.
30
30
  */
31
- export default createComponent('NLoadingIndicator', nLoadingIndicator, props => {
31
+ const Component = createComponent('NLoadingIndicator', nLoadingIndicator, props => {
32
32
  const gap = computed(() => props.size / 13 * 24);
33
33
  const totalWidth = computed(() => gap.value * 2 + props.size);
34
34
  useCssVars(() => ({
@@ -50,4 +50,5 @@ export default createComponent('NLoadingIndicator', nLoadingIndicator, props =>
50
50
  "class": `bg-${props.color}-${props.shade}`,
51
51
  "style": `height:${props.size}px;width:${props.size}px;left:${2 * gap.value}px`
52
52
  }, null)]);
53
- });
53
+ });
54
+ export { Component as NLoadingIndicator, Component as default };
@@ -111,7 +111,7 @@ export type ModalSlotProps = {
111
111
  * The `NModal` is the base component for all modals and dialogs.
112
112
  * It provides the core mechanics to display a window in front of everything else.
113
113
  */
114
- declare const _default: import("vue").DefineComponent<{
114
+ declare const Component: import("vue").DefineComponent<{
115
115
  /**
116
116
  * If set to `true` the header of the modal is hidden.
117
117
  */
@@ -330,4 +330,4 @@ declare const _default: import("vue").DefineComponent<{
330
330
  readonly closeOnBackground: boolean;
331
331
  readonly hideCancel: boolean;
332
332
  }>;
333
- export default _default;
333
+ export { Component as NModal, Component as default };
@@ -112,7 +112,7 @@ export const nModalProps = {
112
112
  * The `NModal` is the base component for all modals and dialogs.
113
113
  * It provides the core mechanics to display a window in front of everything else.
114
114
  */
115
- export default createComponentWithSlots('NModal', nModalProps, ['modal', 'header', 'footer'], (props, {
115
+ const Component = createComponentWithSlots('NModal', nModalProps, ['modal', 'header', 'footer'], (props, {
116
116
  slots
117
117
  }) => {
118
118
  const ok = () => {
@@ -207,4 +207,5 @@ export default createComponentWithSlots('NModal', nModalProps, ['modal', 'header
207
207
  })])]
208
208
  })]
209
209
  });
210
- });
210
+ });
211
+ export { Component as NModal, Component as default };
@@ -33,7 +33,7 @@ export declare const nPaginationProps: {
33
33
  /**
34
34
  * The `NPagination` is a styled pagination component.
35
35
  */
36
- declare const _default: import("vue").DefineComponent<{
36
+ declare const Component: import("vue").DefineComponent<{
37
37
  /**
38
38
  * The page number which is currently selected.
39
39
  */
@@ -96,4 +96,4 @@ declare const _default: import("vue").DefineComponent<{
96
96
  readonly value: number;
97
97
  readonly total: number;
98
98
  }>;
99
- export default _default;
99
+ export { Component as NPagination, Component as default };
@@ -36,7 +36,7 @@ export const nPaginationProps = {
36
36
  /**
37
37
  * The `NPagination` is a styled pagination component.
38
38
  */
39
- export default createComponent('NPagination', nPaginationProps, props => {
39
+ const Component = createComponent('NPagination', nPaginationProps, props => {
40
40
  const numbers = computed(() => {
41
41
  if (props.total <= 7) {
42
42
  return range(1, props.total);
@@ -95,6 +95,7 @@ export default createComponent('NPagination', nPaginationProps, props => {
95
95
  "aria-hidden": "true"
96
96
  }, null)])]);
97
97
  });
98
+ export { Component as NPagination, Component as default };
98
99
  function range(from, to) {
99
100
  const array = [];
100
101
  for (let i = from; i <= to; i++) {
@@ -35,7 +35,7 @@ export type NSearchbarExposed = {
35
35
  /**
36
36
  * The `NSearchbar` is a styled input with a search icon.
37
37
  */
38
- declare const _default: import("vue").DefineComponent<{
38
+ declare const Component: import("vue").DefineComponent<{
39
39
  /**
40
40
  * The placeholder of the search-bar.
41
41
  */
@@ -91,4 +91,4 @@ declare const _default: import("vue").DefineComponent<{
91
91
  readonly small: boolean;
92
92
  readonly placeholder: string;
93
93
  }>;
94
- export default _default;
94
+ export { Component as NSearchbar, Component as default };
@@ -33,7 +33,7 @@ export const nSearchbarProps = {
33
33
  /**
34
34
  * The `NSearchbar` is a styled input with a search icon.
35
35
  */
36
- export default createComponent('NSearchbar', nSearchbarProps, (props, context) => {
36
+ const Component = createComponent('NSearchbar', nSearchbarProps, (props, context) => {
37
37
  const inputRef = ref();
38
38
  const exposed = {
39
39
  focus: () => {
@@ -60,4 +60,5 @@ export default createComponent('NSearchbar', nSearchbarProps, (props, context) =
60
60
  "onFocus": props.onFocus,
61
61
  "onBlur": props.onBlur
62
62
  }, null)]);
63
- });
63
+ });
64
+ export { Component as NSearchbar, Component as default };
@@ -29,7 +29,7 @@ export declare const nSearchbarListProps: {
29
29
  /**
30
30
  * The `NSearchbarList` is a {@link NSearchbar} with a {@link NSuggestionList}.
31
31
  */
32
- declare const _default: import("vue").DefineComponent<{
32
+ declare const Component: import("vue").DefineComponent<{
33
33
  /**
34
34
  * @see {@link nSearchbarProps.placeholder}
35
35
  */
@@ -90,4 +90,4 @@ declare const _default: import("vue").DefineComponent<{
90
90
  readonly maxItems: number;
91
91
  readonly hideList: boolean;
92
92
  }>;
93
- export default _default;
93
+ export { Component as NSearchbarList, Component as default };
@@ -19,7 +19,7 @@ export const nSearchbarListProps = {
19
19
  /**
20
20
  * The `NSearchbarList` is a {@link NSearchbar} with a {@link NSuggestionList}.
21
21
  */
22
- export default createComponentWithSlots('NSearchbarList', nSearchbarListProps, ['listItem'], props => {
22
+ const Component = createComponentWithSlots('NSearchbarList', nSearchbarListProps, ['listItem'], props => {
23
23
  const searchbarRef = ref();
24
24
  return () => _createVNode(NSuggestionList, _mergeProps(props, {
25
25
  "inputValue": props.value || '',
@@ -37,4 +37,5 @@ export default createComponentWithSlots('NSearchbarList', nSearchbarListProps, [
37
37
  }, null),
38
38
  "onRequestInputFocus": () => searchbarRef.value?.focus()
39
39
  }), null);
40
- });
40
+ });
41
+ export { Component as NSearchbarList, Component as default };
@@ -62,7 +62,7 @@ export type NSelectExposed = NValInputExposed;
62
62
  /**
63
63
  * The `NSelect` is a styled html select-input.
64
64
  */
65
- declare const _default: import("vue").DefineComponent<{
65
+ declare const Component: import("vue").DefineComponent<{
66
66
  readonly tooltipText: StringConstructor;
67
67
  readonly tooltipContent: PropType<() => JSX.Element>;
68
68
  readonly tooltipHide: BooleanConstructor;
@@ -177,4 +177,4 @@ declare const _default: import("vue").DefineComponent<{
177
177
  readonly disabled: boolean;
178
178
  readonly optional: boolean;
179
179
  }>;
180
- export default _default;
180
+ export { Component as NSelect, Component as default };
@@ -47,7 +47,7 @@ export const nSelectProps = {
47
47
  /**
48
48
  * The `NSelect` is a styled html select-input.
49
49
  */
50
- export default createComponent('NSelect', nSelectProps, (props, context) => {
50
+ const Component = createComponent('NSelect', nSelectProps, (props, context) => {
51
51
  const inputRef = ref();
52
52
  const exposed = {
53
53
  focus: () => inputRef.value?.focus(),
@@ -85,4 +85,5 @@ export default createComponent('NSelect', nSelectProps, (props, context) => {
85
85
  }, [option.label]))])]
86
86
  })])
87
87
  }), null);
88
- });
88
+ });
89
+ export { Component as NSelect, Component as default };
@@ -149,7 +149,7 @@ export type SuggestionItem = Identifiable & {
149
149
  /**
150
150
  * The `NSuggestionList` can be added to an input and adds a list below it which is shown when the input is focused.
151
151
  */
152
- declare const _default: import("vue").DefineComponent<{
152
+ declare const Component: import("vue").DefineComponent<{
153
153
  /**
154
154
  * The slot for the input, which will be enhanced with the suggestion list.
155
155
  */
@@ -201,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
201
201
  /**
202
202
  * The slot for every item of the list.
203
203
  */
204
- readonly listItem: PropType<(props: ItemSlotProps<SuggestionItem>) => JSX.Element>;
204
+ readonly listItem: PropType<(props: ItemSlotProps) => JSX.Element>;
205
205
  /**
206
206
  * This function is called, when the input and the suggestion list are really blurred.
207
207
  * This means, it's not just the input temporarly beeing blurred because the user clicks on the item list,
@@ -260,7 +260,7 @@ declare const _default: import("vue").DefineComponent<{
260
260
  /**
261
261
  * The slot for every item of the list.
262
262
  */
263
- readonly listItem: PropType<(props: ItemSlotProps<SuggestionItem>) => JSX.Element>;
263
+ readonly listItem: PropType<(props: ItemSlotProps) => JSX.Element>;
264
264
  /**
265
265
  * This function is called, when the input and the suggestion list are really blurred.
266
266
  * This means, it's not just the input temporarly beeing blurred because the user clicks on the item list,
@@ -273,4 +273,4 @@ declare const _default: import("vue").DefineComponent<{
273
273
  readonly maxItems: number;
274
274
  readonly hideList: boolean;
275
275
  }>;
276
- export default _default;
276
+ export { Component as NSuggestionList, Component as default };
@@ -72,7 +72,7 @@ export const nSuggestionListProps = {
72
72
  /**
73
73
  * The `NSuggestionList` can be added to an input and adds a list below it which is shown when the input is focused.
74
74
  */
75
- export default createComponentWithSlots('NSuggestionList', nSuggestionListProps, ['input', 'listItem'], props => {
75
+ const Component = createComponentWithSlots('NSuggestionList', nSuggestionListProps, ['input', 'listItem'], props => {
76
76
  const selectedIndex = ref(null);
77
77
  const displayItems = computed(() => props.items.slice(0, props.maxItems));
78
78
  const isInFocus = ref(false);
@@ -153,4 +153,5 @@ export default createComponentWithSlots('NSuggestionList', nSuggestionListProps,
153
153
  }, null), _createVNode("span", null, [_createTextVNode(" "), trsl('vue-collection.text.loading-search-results')])]) : _createVNode("div", null, [trsl('vue-collection.text.no-search-results', {
154
154
  input: props.inputValue
155
155
  })])])])])])]);
156
- });
156
+ });
157
+ export { Component as NSuggestionList, Component as default };
@@ -85,7 +85,7 @@ export declare const nTableProps: {
85
85
  /**
86
86
  * The `NTable` is a styled html table which accepts data and displays it appropriately.
87
87
  */
88
- declare const _default: import("vue").DefineComponent<{
88
+ declare const Component: import("vue").DefineComponent<{
89
89
  /**
90
90
  * The headings of the table. These define which columns are shown in the table and in which order.
91
91
  */
@@ -170,4 +170,4 @@ declare const _default: import("vue").DefineComponent<{
170
170
  }>> & {}, {
171
171
  readonly items: TableRow[];
172
172
  }>;
173
- export default _default;
173
+ export { Component as NTable, Component as default };
@@ -51,7 +51,7 @@ export const nTableProps = {
51
51
  /**
52
52
  * The `NTable` is a styled html table which accepts data and displays it appropriately.
53
53
  */
54
- export default createComponent('NTable', nTableProps, props => {
54
+ const Component = createComponent('NTable', nTableProps, props => {
55
55
  const headings = computed(() => {
56
56
  // filter out details headings
57
57
  const headings = props.headings.filter(heading => !isHeadingDetail(heading));
@@ -109,6 +109,7 @@ export default createComponent('NTable', nTableProps, props => {
109
109
  "colspan": headings.value.length - 1
110
110
  }, [item[detail.key] && buildItem(item[detail.key])])]))])]))])]);
111
111
  });
112
+ export { Component as NTable, Component as default };
112
113
  /**
113
114
  * Builds a JSX-Element out of the item
114
115
  */
@@ -26,7 +26,7 @@ export declare const nTableActionProps: {
26
26
  * The `NTableAction` is a button or {@link RouterLink} which is styled to fit into a table.
27
27
  * It is basically styled as an emphasized text in the table.
28
28
  */
29
- declare const _default: import("vue").DefineComponent<{
29
+ declare const Component: import("vue").DefineComponent<{
30
30
  /**
31
31
  * The route of the action. If set the component will be a {@link RouterLink}.
32
32
  */
@@ -71,4 +71,4 @@ declare const _default: import("vue").DefineComponent<{
71
71
  }>> & {}, {
72
72
  readonly type: "button" | "submit" | "reset";
73
73
  }>;
74
- export default _default;
74
+ export { Component as NTableAction, Component as default };
@@ -28,7 +28,7 @@ export const nTableActionProps = {
28
28
  * The `NTableAction` is a button or {@link RouterLink} which is styled to fit into a table.
29
29
  * It is basically styled as an emphasized text in the table.
30
30
  */
31
- export default createComponent('NTableAction', nTableActionProps, (props, {
31
+ const Component = createComponent('NTableAction', nTableActionProps, (props, {
32
32
  slots
33
33
  }) => {
34
34
  const content = () => slots.default?.() || _createVNode(_Fragment, null, [props.text]);
@@ -46,4 +46,5 @@ export default createComponent('NTableAction', nTableActionProps, (props, {
46
46
  "onClick": props.onClick
47
47
  }, [content()]);
48
48
  };
49
- });
49
+ });
50
+ export { Component as NTableAction, Component as default };
@@ -1,5 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  export declare const nTextAreaProps: {
3
+ readonly disableValidation: BooleanConstructor;
3
4
  readonly optional: BooleanConstructor;
4
5
  readonly rules: {
5
6
  readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -87,7 +88,8 @@ export type NTextAreaExposed = {
87
88
  */
88
89
  focus(): void;
89
90
  };
90
- declare const _default: import("vue").DefineComponent<{
91
+ declare const Component: import("vue").DefineComponent<{
92
+ readonly disableValidation: BooleanConstructor;
91
93
  readonly optional: BooleanConstructor;
92
94
  readonly rules: {
93
95
  readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -169,6 +171,7 @@ declare const _default: import("vue").DefineComponent<{
169
171
  readonly value: PropType<string>;
170
172
  readonly onUpdateValue: PropType<(newValue: string) => void>;
171
173
  }, 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<{
174
+ readonly disableValidation: BooleanConstructor;
172
175
  readonly optional: BooleanConstructor;
173
176
  readonly rules: {
174
177
  readonly type: PropType<import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[]>;
@@ -258,10 +261,11 @@ declare const _default: import("vue").DefineComponent<{
258
261
  readonly error: boolean;
259
262
  readonly autocomplete: string;
260
263
  readonly hideLabel: boolean;
264
+ readonly disableValidation: boolean;
261
265
  readonly optional: boolean;
262
266
  readonly rules: import("../utils/validation").ValidationRule | import("../utils/validation").ValidationRule[];
263
267
  readonly hideErrorMessage: boolean;
264
268
  readonly disableBlurValidation: boolean;
265
269
  readonly resizable: boolean;
266
270
  }>;
267
- export default _default;
271
+ export { Component as NTextArea, Component as default };
@@ -70,7 +70,7 @@ export const nTextAreaProps = {
70
70
  ...nTextAreaBaseProps,
71
71
  ...validationProps
72
72
  };
73
- export default createComponent('NTextArea', nTextAreaProps, (props, context) => {
73
+ const Component = createComponent('NTextArea', nTextAreaProps, (props, context) => {
74
74
  const textAreaRef = ref();
75
75
  const exposed = {
76
76
  focus: () => textAreaRef.value?.focus()
@@ -91,6 +91,7 @@ export default createComponent('NTextArea', nTextAreaProps, (props, context) =>
91
91
  }), null)
92
92
  }), null);
93
93
  });
94
+ export { Component as NTextArea, Component as default };
94
95
  /**
95
96
  * The `NTextArea` wraps the html text area with all the features from {@link NInput} and {@link NValInput}.
96
97
  */
@@ -131,7 +131,7 @@ export declare function mapTooltipProps(props: ExtractedProps<typeof nToolTipPro
131
131
  * <NButton />
132
132
  * </NTooltip>
133
133
  */
134
- declare const _default: import("vue").DefineComponent<{
134
+ declare const Component: import("vue").DefineComponent<{
135
135
  /**
136
136
  * The text content of the tooltip.
137
137
  */
@@ -236,5 +236,5 @@ declare const _default: import("vue").DefineComponent<{
236
236
  readonly placement: TooltipPlacement;
237
237
  readonly maxWidth: TWMaxWidth;
238
238
  }>;
239
- export default _default;
239
+ export { Component as NTooltip, Component as default };
240
240
  export type TooltipPlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
@@ -130,7 +130,7 @@ export function mapTooltipProps(props) {
130
130
  * <NButton />
131
131
  * </NTooltip>
132
132
  */
133
- export default createComponent('NTooltip', nTooltipProps, (props, {
133
+ const Component = createComponent('NTooltip', nTooltipProps, (props, {
134
134
  slots
135
135
  }) => {
136
136
  return () => _createVNode("div", {
@@ -139,6 +139,7 @@ export default createComponent('NTooltip', nTooltipProps, (props, {
139
139
  default: () => [slots.default?.()]
140
140
  }) : slots.default?.()]);
141
141
  });
142
+ export { Component as NTooltip, Component as default };
142
143
  const NTooltipBase = createComponent('NTooltipBase', nTooltipProps, (props, {
143
144
  slots
144
145
  }) => {
@@ -3,6 +3,11 @@ import { type NInputExposed } from './NInput';
3
3
  import { type ValidationRule, type ValidationResult } from '../utils/validation';
4
4
  import type { ValidatedForm } from './ValidatedForm';
5
5
  export declare const validationProps: {
6
+ /**
7
+ * If set to `true` this inputs validation will always succeed and all validation
8
+ * rules are ignored. Default is `false`.
9
+ */
10
+ readonly disableValidation: BooleanConstructor;
6
11
  /**
7
12
  * If set to `true` this input is always valid when its value is empty.
8
13
  * If set to `false` the input receives the {@link required} rule. Default is `false`.
@@ -45,6 +50,11 @@ export declare const nValInputProps: {
45
50
  * A slot to replace the input.
46
51
  */
47
52
  readonly input: PropType<(props: InputSlotProps) => JSX.Element>;
53
+ /**
54
+ * If set to `true` this inputs validation will always succeed and all validation
55
+ * rules are ignored. Default is `false`.
56
+ */
57
+ readonly disableValidation: BooleanConstructor;
48
58
  /**
49
59
  * If set to `true` this input is always valid when its value is empty.
50
60
  * If set to `false` the input receives the {@link required} rule. Default is `false`.
@@ -113,7 +123,10 @@ export declare const nValInputProps: {
113
123
  readonly hideLabel: BooleanConstructor;
114
124
  readonly inputClass: StringConstructor;
115
125
  readonly onFocus: PropType<() => void>;
116
- readonly onBlur: PropType<() => void>;
126
+ readonly onBlur: PropType<() => void>; /**
127
+ * If set to `true` the error message is not shown.
128
+ * However, the input is still marked red if it is in an error state.
129
+ */
117
130
  readonly value: PropType<string>;
118
131
  readonly onUpdateValue: PropType<(newValue: string) => void>;
119
132
  };
@@ -138,11 +151,16 @@ export type NValInputExposed = {
138
151
  /**
139
152
  * The `NValInput` is a `NInput` with custom validation.
140
153
  */
141
- declare const _default: import("vue").DefineComponent<{
154
+ declare const Component: import("vue").DefineComponent<{
142
155
  /**
143
156
  * A slot to replace the input.
144
157
  */
145
158
  readonly input: PropType<(props: InputSlotProps) => JSX.Element>;
159
+ /**
160
+ * If set to `true` this inputs validation will always succeed and all validation
161
+ * rules are ignored. Default is `false`.
162
+ */
163
+ readonly disableValidation: BooleanConstructor;
146
164
  /**
147
165
  * If set to `true` this input is always valid when its value is empty.
148
166
  * If set to `false` the input receives the {@link required} rule. Default is `false`.
@@ -211,7 +229,10 @@ declare const _default: import("vue").DefineComponent<{
211
229
  readonly hideLabel: BooleanConstructor;
212
230
  readonly inputClass: StringConstructor;
213
231
  readonly onFocus: PropType<() => void>;
214
- readonly onBlur: PropType<() => void>;
232
+ readonly onBlur: PropType<() => void>; /**
233
+ * If set to `true` the error message is not shown.
234
+ * However, the input is still marked red if it is in an error state.
235
+ */
215
236
  readonly value: PropType<string>;
216
237
  readonly onUpdateValue: PropType<(newValue: string) => void>;
217
238
  }, 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<{
@@ -219,6 +240,11 @@ declare const _default: import("vue").DefineComponent<{
219
240
  * A slot to replace the input.
220
241
  */
221
242
  readonly input: PropType<(props: InputSlotProps) => JSX.Element>;
243
+ /**
244
+ * If set to `true` this inputs validation will always succeed and all validation
245
+ * rules are ignored. Default is `false`.
246
+ */
247
+ readonly disableValidation: BooleanConstructor;
222
248
  /**
223
249
  * If set to `true` this input is always valid when its value is empty.
224
250
  * If set to `false` the input receives the {@link required} rule. Default is `false`.
@@ -287,7 +313,10 @@ declare const _default: import("vue").DefineComponent<{
287
313
  readonly hideLabel: BooleanConstructor;
288
314
  readonly inputClass: StringConstructor;
289
315
  readonly onFocus: PropType<() => void>;
290
- readonly onBlur: PropType<() => void>;
316
+ readonly onBlur: PropType<() => void>; /**
317
+ * If set to `true` the error message is not shown.
318
+ * However, the input is still marked red if it is in an error state.
319
+ */
291
320
  readonly value: PropType<string>;
292
321
  readonly onUpdateValue: PropType<(newValue: string) => void>;
293
322
  }>> & {}, {
@@ -301,9 +330,10 @@ declare const _default: import("vue").DefineComponent<{
301
330
  readonly error: boolean;
302
331
  readonly autocomplete: string;
303
332
  readonly hideLabel: boolean;
333
+ readonly disableValidation: boolean;
304
334
  readonly optional: boolean;
305
335
  readonly rules: ValidationRule | ValidationRule[];
306
336
  readonly hideErrorMessage: boolean;
307
337
  readonly disableBlurValidation: boolean;
308
338
  }>;
309
- export default _default;
339
+ export { Component as NValInput, Component as default };