@naptics/vue-collection 0.0.6 → 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.
Files changed (77) hide show
  1. package/README.md +1 -1
  2. package/components/NAlert.d.ts +20 -20
  3. package/components/NAlert.js +3 -3
  4. package/components/NBadge.d.ts +87 -87
  5. package/components/NBadge.js +3 -3
  6. package/components/NBreadcrub.d.ts +57 -57
  7. package/components/NBreadcrub.js +3 -3
  8. package/components/NButton.d.ts +69 -69
  9. package/components/NButton.js +3 -3
  10. package/components/NCheckbox.d.ts +20 -20
  11. package/components/NCheckbox.js +3 -3
  12. package/components/NCheckboxLabel.d.ts +30 -30
  13. package/components/NCheckboxLabel.js +3 -3
  14. package/components/NCrudModal.d.ts +238 -203
  15. package/components/NCrudModal.js +17 -4
  16. package/components/NDialog.d.ts +1 -1
  17. package/components/NDialog.js +3 -3
  18. package/components/NDropdown.d.ts +25 -25
  19. package/components/NDropdown.js +3 -3
  20. package/components/NDropzone.d.ts +52 -52
  21. package/components/NDropzone.js +3 -3
  22. package/components/NForm.d.ts +6 -6
  23. package/components/NForm.js +3 -3
  24. package/components/NFormModal.d.ts +136 -136
  25. package/components/NFormModal.js +3 -3
  26. package/components/NIconButton.d.ts +94 -94
  27. package/components/NIconButton.js +3 -3
  28. package/components/NIconCircle.d.ts +46 -46
  29. package/components/NIconCircle.js +3 -3
  30. package/components/NInput.d.ts +94 -94
  31. package/components/NInput.js +3 -3
  32. package/components/NInputPhone.d.ts +125 -125
  33. package/components/NInputPhone.js +2 -2
  34. package/components/NInputSelect.d.ts +131 -131
  35. package/components/NInputSelect.js +3 -3
  36. package/components/NInputSuggestion.d.ts +179 -167
  37. package/components/NInputSuggestion.js +3 -3
  38. package/components/NLink.d.ts +32 -32
  39. package/components/NLink.js +3 -3
  40. package/components/NList.d.ts +10 -10
  41. package/components/NList.js +3 -3
  42. package/components/NLoadingIndicator.d.ts +30 -30
  43. package/components/NLoadingIndicator.js +3 -3
  44. package/components/NModal.d.ts +118 -118
  45. package/components/NModal.js +3 -3
  46. package/components/NPagination.d.ts +30 -30
  47. package/components/NPagination.js +3 -3
  48. package/components/NSearchbar.d.ts +29 -29
  49. package/components/NSearchbar.js +3 -3
  50. package/components/NSearchbarList.d.ts +53 -62
  51. package/components/NSearchbarList.js +3 -3
  52. package/components/NSelect.d.ts +64 -64
  53. package/components/NSelect.js +3 -3
  54. package/components/NSuggestionList.d.ts +84 -84
  55. package/components/NSuggestionList.js +7 -7
  56. package/components/NTable.d.ts +29 -29
  57. package/components/NTable.js +3 -3
  58. package/components/NTableAction.d.ts +19 -19
  59. package/components/NTableAction.js +3 -3
  60. package/components/NTextArea.d.ts +118 -118
  61. package/components/NTextArea.js +5 -5
  62. package/components/NTooltip.d.ts +42 -42
  63. package/components/NTooltip.js +3 -3
  64. package/components/NValInput.d.ts +134 -134
  65. package/components/NValInput.js +5 -5
  66. package/index.d.ts +2 -2
  67. package/index.js +2 -2
  68. package/package.json +3 -1
  69. package/utils/breakpoints.d.ts +3 -0
  70. package/utils/breakpoints.js +3 -0
  71. package/utils/component.d.ts +0 -8
  72. package/utils/component.js +0 -10
  73. package/utils/identifiable.d.ts +8 -8
  74. package/utils/identifiable.js +4 -2
  75. package/utils/tailwind.d.ts +2 -0
  76. package/utils/utils.d.ts +25 -12
  77. package/utils/utils.js +30 -9
@@ -1,149 +1,149 @@
1
1
  import { type PropType } from 'vue';
2
2
  export declare const nButtonProps: {
3
- tooltipText: StringConstructor;
4
- tooltipContent: PropType<() => void>;
5
- tooltipHide: BooleanConstructor;
6
- tooltipShow: BooleanConstructor;
7
- tooltipPlacement: {
8
- type: PropType<import("./NTooltip").TooltipPlacement>;
9
- default: string;
3
+ readonly tooltipText: StringConstructor;
4
+ readonly tooltipContent: PropType<() => void>;
5
+ readonly tooltipHide: BooleanConstructor;
6
+ readonly tooltipShow: BooleanConstructor;
7
+ readonly tooltipPlacement: {
8
+ readonly type: PropType<import("./NTooltip").TooltipPlacement>;
9
+ readonly default: "auto";
10
10
  };
11
- tooltipMaxWidth: {
12
- type: PropType<import("../utils/tailwind").TWMaxWidth>;
13
- default: string;
11
+ readonly tooltipMaxWidth: {
12
+ readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
13
+ readonly default: "max-w-xs";
14
14
  };
15
15
  /**
16
16
  * The color of the button.
17
17
  */
18
- color: {
19
- type: StringConstructor;
20
- default: string;
18
+ readonly color: {
19
+ readonly type: StringConstructor;
20
+ readonly default: "primary";
21
21
  };
22
22
  /**
23
23
  * The html attribute, which indicates the type of the button.
24
24
  */
25
- type: {
26
- type: PropType<"button" | "submit" | "reset">;
27
- default: string;
25
+ readonly type: {
26
+ readonly type: PropType<"button" | "submit" | "reset">;
27
+ readonly default: "button";
28
28
  };
29
29
  /**
30
30
  * If set to `true` the button is disabled and no interaction is possible.
31
31
  */
32
- disabled: BooleanConstructor;
32
+ readonly disabled: BooleanConstructor;
33
33
  /**
34
34
  * If set to `true` the button will show a loading animation.
35
35
  * Setting `loading` to `true` will also disable the button.
36
36
  */
37
- loading: BooleanConstructor;
37
+ readonly loading: BooleanConstructor;
38
38
  /**
39
39
  * If set to `true` the button will appear smaller.
40
40
  */
41
- small: BooleanConstructor;
41
+ readonly small: BooleanConstructor;
42
42
  /**
43
43
  * This is called, when the button is clicked.
44
44
  */
45
- onClick: PropType<() => void>;
45
+ readonly onClick: PropType<() => void>;
46
46
  };
47
47
  /**
48
48
  * The `NButton` is a styled button.
49
49
  */
50
50
  declare const _default: import("vue").DefineComponent<{
51
- tooltipText: StringConstructor;
52
- tooltipContent: PropType<() => void>;
53
- tooltipHide: BooleanConstructor;
54
- tooltipShow: BooleanConstructor;
55
- tooltipPlacement: {
56
- type: PropType<import("./NTooltip").TooltipPlacement>;
57
- default: string;
51
+ readonly tooltipText: StringConstructor;
52
+ readonly tooltipContent: PropType<() => void>;
53
+ readonly tooltipHide: BooleanConstructor;
54
+ readonly tooltipShow: BooleanConstructor;
55
+ readonly tooltipPlacement: {
56
+ readonly type: PropType<import("./NTooltip").TooltipPlacement>;
57
+ readonly default: "auto";
58
58
  };
59
- tooltipMaxWidth: {
60
- type: PropType<import("../utils/tailwind").TWMaxWidth>;
61
- default: string;
59
+ readonly tooltipMaxWidth: {
60
+ readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
61
+ readonly default: "max-w-xs";
62
62
  };
63
63
  /**
64
64
  * The color of the button.
65
65
  */
66
- color: {
67
- type: StringConstructor;
68
- default: string;
66
+ readonly color: {
67
+ readonly type: StringConstructor;
68
+ readonly default: "primary";
69
69
  };
70
70
  /**
71
71
  * The html attribute, which indicates the type of the button.
72
72
  */
73
- type: {
74
- type: PropType<"button" | "submit" | "reset">;
75
- default: string;
73
+ readonly type: {
74
+ readonly type: PropType<"button" | "submit" | "reset">;
75
+ readonly default: "button";
76
76
  };
77
77
  /**
78
78
  * If set to `true` the button is disabled and no interaction is possible.
79
79
  */
80
- disabled: BooleanConstructor;
80
+ readonly disabled: BooleanConstructor;
81
81
  /**
82
82
  * If set to `true` the button will show a loading animation.
83
83
  * Setting `loading` to `true` will also disable the button.
84
84
  */
85
- loading: BooleanConstructor;
85
+ readonly loading: BooleanConstructor;
86
86
  /**
87
87
  * If set to `true` the button will appear smaller.
88
88
  */
89
- small: BooleanConstructor;
89
+ readonly small: BooleanConstructor;
90
90
  /**
91
91
  * This is called, when the button is clicked.
92
92
  */
93
- onClick: PropType<() => void>;
93
+ readonly onClick: PropType<() => void>;
94
94
  }, 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<{
95
- tooltipText: StringConstructor;
96
- tooltipContent: PropType<() => void>;
97
- tooltipHide: BooleanConstructor;
98
- tooltipShow: BooleanConstructor;
99
- tooltipPlacement: {
100
- type: PropType<import("./NTooltip").TooltipPlacement>;
101
- default: string;
95
+ readonly tooltipText: StringConstructor;
96
+ readonly tooltipContent: PropType<() => void>;
97
+ readonly tooltipHide: BooleanConstructor;
98
+ readonly tooltipShow: BooleanConstructor;
99
+ readonly tooltipPlacement: {
100
+ readonly type: PropType<import("./NTooltip").TooltipPlacement>;
101
+ readonly default: "auto";
102
102
  };
103
- tooltipMaxWidth: {
104
- type: PropType<import("../utils/tailwind").TWMaxWidth>;
105
- default: string;
103
+ readonly tooltipMaxWidth: {
104
+ readonly type: PropType<import("../utils/tailwind").TWMaxWidth>;
105
+ readonly default: "max-w-xs";
106
106
  };
107
107
  /**
108
108
  * The color of the button.
109
109
  */
110
- color: {
111
- type: StringConstructor;
112
- default: string;
110
+ readonly color: {
111
+ readonly type: StringConstructor;
112
+ readonly default: "primary";
113
113
  };
114
114
  /**
115
115
  * The html attribute, which indicates the type of the button.
116
116
  */
117
- type: {
118
- type: PropType<"button" | "submit" | "reset">;
119
- default: string;
117
+ readonly type: {
118
+ readonly type: PropType<"button" | "submit" | "reset">;
119
+ readonly default: "button";
120
120
  };
121
121
  /**
122
122
  * If set to `true` the button is disabled and no interaction is possible.
123
123
  */
124
- disabled: BooleanConstructor;
124
+ readonly disabled: BooleanConstructor;
125
125
  /**
126
126
  * If set to `true` the button will show a loading animation.
127
127
  * Setting `loading` to `true` will also disable the button.
128
128
  */
129
- loading: BooleanConstructor;
129
+ readonly loading: BooleanConstructor;
130
130
  /**
131
131
  * If set to `true` the button will appear smaller.
132
132
  */
133
- small: BooleanConstructor;
133
+ readonly small: BooleanConstructor;
134
134
  /**
135
135
  * This is called, when the button is clicked.
136
136
  */
137
- onClick: PropType<() => void>;
137
+ readonly onClick: PropType<() => void>;
138
138
  }>> & {}, {
139
- small: boolean;
140
- color: string;
141
- type: "button" | "submit" | "reset";
142
- tooltipHide: boolean;
143
- tooltipShow: boolean;
144
- tooltipPlacement: import("./NTooltip").TooltipPlacement;
145
- tooltipMaxWidth: import("../utils/tailwind").TWMaxWidth;
146
- disabled: boolean;
147
- loading: boolean;
139
+ readonly small: boolean;
140
+ readonly color: string;
141
+ readonly type: "button" | "submit" | "reset";
142
+ readonly tooltipHide: boolean;
143
+ readonly tooltipShow: boolean;
144
+ readonly tooltipPlacement: import("./NTooltip").TooltipPlacement;
145
+ readonly tooltipMaxWidth: import("../utils/tailwind").TWMaxWidth;
146
+ readonly disabled: boolean;
147
+ readonly loading: boolean;
148
148
  }>;
149
149
  export default _default;
@@ -1,9 +1,9 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { createComponent, createProps } from '../utils/component';
2
+ import { createComponent } from '../utils/component';
3
3
  import { computed } from 'vue';
4
4
  import NLoadingIndicator from './NLoadingIndicator';
5
5
  import NTooltip, { mapTooltipProps, nToolTipPropsForImplementor } from './NTooltip';
6
- export const nButtonProps = createProps({
6
+ export const nButtonProps = {
7
7
  /**
8
8
  * The color of the button.
9
9
  */
@@ -36,7 +36,7 @@ export const nButtonProps = createProps({
36
36
  */
37
37
  onClick: Function,
38
38
  ...nToolTipPropsForImplementor
39
- });
39
+ };
40
40
  /**
41
41
  * The `NButton` is a styled button.
42
42
  */
@@ -2,16 +2,16 @@ export declare const nCheckboxProps: {
2
2
  /**
3
3
  * The color of the checkbox.
4
4
  */
5
- color: {
6
- type: StringConstructor;
7
- default: string;
5
+ readonly color: {
6
+ readonly type: StringConstructor;
7
+ readonly default: "primary";
8
8
  };
9
9
  /**
10
10
  * If set to `true` the checkbox is disabled and no interaction is possible.
11
11
  */
12
- disabled: BooleanConstructor;
13
- value: import("vue").PropType<boolean>;
14
- onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
12
+ readonly disabled: BooleanConstructor;
13
+ readonly value: import("vue").PropType<boolean>;
14
+ readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
15
15
  };
16
16
  /**
17
17
  * The `NCheckbox` is a styled checkbox.
@@ -20,32 +20,32 @@ declare const _default: import("vue").DefineComponent<{
20
20
  /**
21
21
  * The color of the checkbox.
22
22
  */
23
- color: {
24
- type: StringConstructor;
25
- default: string;
23
+ readonly color: {
24
+ readonly type: StringConstructor;
25
+ readonly default: "primary";
26
26
  };
27
27
  /**
28
28
  * If set to `true` the checkbox is disabled and no interaction is possible.
29
29
  */
30
- disabled: BooleanConstructor;
31
- value: import("vue").PropType<boolean>;
32
- onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
30
+ readonly disabled: BooleanConstructor;
31
+ readonly value: import("vue").PropType<boolean>;
32
+ readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
33
33
  }, 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<{
34
34
  /**
35
35
  * The color of the checkbox.
36
36
  */
37
- color: {
38
- type: StringConstructor;
39
- default: string;
37
+ readonly color: {
38
+ readonly type: StringConstructor;
39
+ readonly default: "primary";
40
40
  };
41
41
  /**
42
42
  * If set to `true` the checkbox is disabled and no interaction is possible.
43
43
  */
44
- disabled: BooleanConstructor;
45
- value: import("vue").PropType<boolean>;
46
- onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
44
+ readonly disabled: BooleanConstructor;
45
+ readonly value: import("vue").PropType<boolean>;
46
+ readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
47
47
  }>> & {}, {
48
- color: string;
49
- disabled: boolean;
48
+ readonly color: string;
49
+ readonly disabled: boolean;
50
50
  }>;
51
51
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { createComponent, createProps } from '../utils/component';
2
+ import { createComponent } from '../utils/component';
3
3
  import { vModelProps } from '../utils/vModel';
4
4
  import { nextTick, ref } from 'vue';
5
- export const nCheckboxProps = createProps({
5
+ export const nCheckboxProps = {
6
6
  ...vModelProps(Boolean),
7
7
  /**
8
8
  * The color of the checkbox.
@@ -15,7 +15,7 @@ export const nCheckboxProps = createProps({
15
15
  * If set to `true` the checkbox is disabled and no interaction is possible.
16
16
  */
17
17
  disabled: Boolean
18
- });
18
+ };
19
19
  /**
20
20
  * The `NCheckbox` is a styled checkbox.
21
21
  */
@@ -2,22 +2,22 @@ export declare const nCheckboxLabelProps: {
2
2
  /**
3
3
  * The title of the checkbox.
4
4
  */
5
- title: StringConstructor;
5
+ readonly title: StringConstructor;
6
6
  /**
7
7
  * The description of the checkbox.
8
8
  */
9
- description: StringConstructor;
9
+ readonly description: StringConstructor;
10
10
  /**
11
11
  * If set to `true`, a smaller margin is applied between the label and the checkbox.
12
12
  */
13
- compact: BooleanConstructor;
14
- color: {
15
- type: StringConstructor;
16
- default: string;
13
+ readonly compact: BooleanConstructor;
14
+ readonly color: {
15
+ readonly type: StringConstructor;
16
+ readonly default: "primary";
17
17
  };
18
- disabled: BooleanConstructor;
19
- value: import("vue").PropType<boolean>;
20
- onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
18
+ readonly disabled: BooleanConstructor;
19
+ readonly value: import("vue").PropType<boolean>;
20
+ readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
21
21
  };
22
22
  /**
23
23
  * The `NCheckboxLabel` is a checkbox with a title and a description.
@@ -26,45 +26,45 @@ declare const _default: import("vue").DefineComponent<{
26
26
  /**
27
27
  * The title of the checkbox.
28
28
  */
29
- title: StringConstructor;
29
+ readonly title: StringConstructor;
30
30
  /**
31
31
  * The description of the checkbox.
32
32
  */
33
- description: StringConstructor;
33
+ readonly description: StringConstructor;
34
34
  /**
35
35
  * If set to `true`, a smaller margin is applied between the label and the checkbox.
36
36
  */
37
- compact: BooleanConstructor;
38
- color: {
39
- type: StringConstructor;
40
- default: string;
37
+ readonly compact: BooleanConstructor;
38
+ readonly color: {
39
+ readonly type: StringConstructor;
40
+ readonly default: "primary";
41
41
  };
42
- disabled: BooleanConstructor;
43
- value: import("vue").PropType<boolean>;
44
- onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
42
+ readonly disabled: BooleanConstructor;
43
+ readonly value: import("vue").PropType<boolean>;
44
+ readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
45
45
  }, 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<{
46
46
  /**
47
47
  * The title of the checkbox.
48
48
  */
49
- title: StringConstructor;
49
+ readonly title: StringConstructor;
50
50
  /**
51
51
  * The description of the checkbox.
52
52
  */
53
- description: StringConstructor;
53
+ readonly description: StringConstructor;
54
54
  /**
55
55
  * If set to `true`, a smaller margin is applied between the label and the checkbox.
56
56
  */
57
- compact: BooleanConstructor;
58
- color: {
59
- type: StringConstructor;
60
- default: string;
57
+ readonly compact: BooleanConstructor;
58
+ readonly color: {
59
+ readonly type: StringConstructor;
60
+ readonly default: "primary";
61
61
  };
62
- disabled: BooleanConstructor;
63
- value: import("vue").PropType<boolean>;
64
- onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
62
+ readonly disabled: BooleanConstructor;
63
+ readonly value: import("vue").PropType<boolean>;
64
+ readonly onUpdateValue: import("vue").PropType<(newValue: boolean) => void>;
65
65
  }>> & {}, {
66
- color: string;
67
- disabled: boolean;
68
- compact: boolean;
66
+ readonly color: string;
67
+ readonly disabled: boolean;
68
+ readonly compact: boolean;
69
69
  }>;
70
70
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
- import { createComponent, createProps } from '../utils/component';
2
+ import { createComponent } from '../utils/component';
3
3
  import NCheckbox, { nCheckboxProps } from './NCheckbox';
4
- export const nCheckboxLabelProps = createProps({
4
+ export const nCheckboxLabelProps = {
5
5
  ...nCheckboxProps,
6
6
  /**
7
7
  * The title of the checkbox.
@@ -15,7 +15,7 @@ export const nCheckboxLabelProps = createProps({
15
15
  * If set to `true`, a smaller margin is applied between the label and the checkbox.
16
16
  */
17
17
  compact: Boolean
18
- });
18
+ };
19
19
  /**
20
20
  * The `NCheckboxLabel` is a checkbox with a title and a description.
21
21
  */