@fiscozen/input 0.1.16-beta.1 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/input.js +5616 -0
- package/dist/input.umd.cjs +556 -0
- package/dist/src/FzCurrencyInput.vue.d.ts +166 -0
- package/dist/src/FzInput.vue.d.ts +155 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/types.d.ts +111 -0
- package/dist/src/useInputStyle.d.ts +12 -0
- package/package.json +5 -5
- package/src/FzInput.vue +1 -1
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
amount: import('vue').PropType<number>;
|
|
3
|
+
error: {
|
|
4
|
+
type: import('vue').PropType<boolean>;
|
|
5
|
+
};
|
|
6
|
+
name: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
};
|
|
9
|
+
size: {
|
|
10
|
+
type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
11
|
+
};
|
|
12
|
+
required: {
|
|
13
|
+
type: import('vue').PropType<boolean>;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: import('vue').PropType<boolean>;
|
|
17
|
+
};
|
|
18
|
+
max: {
|
|
19
|
+
type: import('vue').PropType<number>;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
type: import('vue').PropType<string>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
pattern: {
|
|
26
|
+
type: import('vue').PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
placeholder: {
|
|
29
|
+
type: import('vue').PropType<string>;
|
|
30
|
+
};
|
|
31
|
+
leftIcon: {
|
|
32
|
+
type: import('vue').PropType<string>;
|
|
33
|
+
};
|
|
34
|
+
leftIconVariant: {
|
|
35
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
36
|
+
};
|
|
37
|
+
rightIcon: {
|
|
38
|
+
type: import('vue').PropType<string>;
|
|
39
|
+
};
|
|
40
|
+
rightIconVariant: {
|
|
41
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
42
|
+
};
|
|
43
|
+
valid: {
|
|
44
|
+
type: import('vue').PropType<boolean>;
|
|
45
|
+
};
|
|
46
|
+
readonly: {
|
|
47
|
+
type: import('vue').PropType<boolean>;
|
|
48
|
+
};
|
|
49
|
+
maxlength: {
|
|
50
|
+
type: import('vue').PropType<number>;
|
|
51
|
+
};
|
|
52
|
+
rightIconClass: {
|
|
53
|
+
type: import('vue').PropType<string>;
|
|
54
|
+
};
|
|
55
|
+
leftIconClass: {
|
|
56
|
+
type: import('vue').PropType<string>;
|
|
57
|
+
};
|
|
58
|
+
nullOnEmpty: {
|
|
59
|
+
type: import('vue').PropType<boolean>;
|
|
60
|
+
};
|
|
61
|
+
forceStep: {
|
|
62
|
+
type: import('vue').PropType<boolean>;
|
|
63
|
+
};
|
|
64
|
+
minimumFractionDigits: {
|
|
65
|
+
type: import('vue').PropType<number>;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
maximumFractionDigits: {
|
|
69
|
+
type: import('vue').PropType<number>;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
min: {
|
|
73
|
+
type: import('vue').PropType<number>;
|
|
74
|
+
};
|
|
75
|
+
step: {
|
|
76
|
+
type: import('vue').PropType<number>;
|
|
77
|
+
};
|
|
78
|
+
}>, {
|
|
79
|
+
inputRef: import('vue').ComputedRef<HTMLInputElement | null | undefined>;
|
|
80
|
+
containerRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
|
|
81
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
82
|
+
"update:amount": (...args: any[]) => void;
|
|
83
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
84
|
+
amount: import('vue').PropType<number>;
|
|
85
|
+
error: {
|
|
86
|
+
type: import('vue').PropType<boolean>;
|
|
87
|
+
};
|
|
88
|
+
name: {
|
|
89
|
+
type: import('vue').PropType<string>;
|
|
90
|
+
};
|
|
91
|
+
size: {
|
|
92
|
+
type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
93
|
+
};
|
|
94
|
+
required: {
|
|
95
|
+
type: import('vue').PropType<boolean>;
|
|
96
|
+
};
|
|
97
|
+
disabled: {
|
|
98
|
+
type: import('vue').PropType<boolean>;
|
|
99
|
+
};
|
|
100
|
+
max: {
|
|
101
|
+
type: import('vue').PropType<number>;
|
|
102
|
+
};
|
|
103
|
+
label: {
|
|
104
|
+
type: import('vue').PropType<string>;
|
|
105
|
+
required: true;
|
|
106
|
+
};
|
|
107
|
+
pattern: {
|
|
108
|
+
type: import('vue').PropType<string>;
|
|
109
|
+
};
|
|
110
|
+
placeholder: {
|
|
111
|
+
type: import('vue').PropType<string>;
|
|
112
|
+
};
|
|
113
|
+
leftIcon: {
|
|
114
|
+
type: import('vue').PropType<string>;
|
|
115
|
+
};
|
|
116
|
+
leftIconVariant: {
|
|
117
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
118
|
+
};
|
|
119
|
+
rightIcon: {
|
|
120
|
+
type: import('vue').PropType<string>;
|
|
121
|
+
};
|
|
122
|
+
rightIconVariant: {
|
|
123
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
124
|
+
};
|
|
125
|
+
valid: {
|
|
126
|
+
type: import('vue').PropType<boolean>;
|
|
127
|
+
};
|
|
128
|
+
readonly: {
|
|
129
|
+
type: import('vue').PropType<boolean>;
|
|
130
|
+
};
|
|
131
|
+
maxlength: {
|
|
132
|
+
type: import('vue').PropType<number>;
|
|
133
|
+
};
|
|
134
|
+
rightIconClass: {
|
|
135
|
+
type: import('vue').PropType<string>;
|
|
136
|
+
};
|
|
137
|
+
leftIconClass: {
|
|
138
|
+
type: import('vue').PropType<string>;
|
|
139
|
+
};
|
|
140
|
+
nullOnEmpty: {
|
|
141
|
+
type: import('vue').PropType<boolean>;
|
|
142
|
+
};
|
|
143
|
+
forceStep: {
|
|
144
|
+
type: import('vue').PropType<boolean>;
|
|
145
|
+
};
|
|
146
|
+
minimumFractionDigits: {
|
|
147
|
+
type: import('vue').PropType<number>;
|
|
148
|
+
default: number;
|
|
149
|
+
};
|
|
150
|
+
maximumFractionDigits: {
|
|
151
|
+
type: import('vue').PropType<number>;
|
|
152
|
+
default: number;
|
|
153
|
+
};
|
|
154
|
+
min: {
|
|
155
|
+
type: import('vue').PropType<number>;
|
|
156
|
+
};
|
|
157
|
+
step: {
|
|
158
|
+
type: import('vue').PropType<number>;
|
|
159
|
+
};
|
|
160
|
+
}>> & Readonly<{
|
|
161
|
+
"onUpdate:amount"?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
}>, {
|
|
163
|
+
minimumFractionDigits: number;
|
|
164
|
+
maximumFractionDigits: number;
|
|
165
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
166
|
+
export default _default;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: import('vue').PropType<any>;
|
|
5
|
+
error: {
|
|
6
|
+
type: import('vue').PropType<boolean>;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
name: {
|
|
10
|
+
type: import('vue').PropType<string>;
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
type: {
|
|
17
|
+
type: import('vue').PropType<"number" | "text" | "password" | "email" | "tel" | "url">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
required: {
|
|
21
|
+
type: import('vue').PropType<boolean>;
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
type: import('vue').PropType<boolean>;
|
|
25
|
+
};
|
|
26
|
+
label: {
|
|
27
|
+
type: import('vue').PropType<string>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
pattern: {
|
|
31
|
+
type: import('vue').PropType<string>;
|
|
32
|
+
};
|
|
33
|
+
placeholder: {
|
|
34
|
+
type: import('vue').PropType<string>;
|
|
35
|
+
};
|
|
36
|
+
leftIcon: {
|
|
37
|
+
type: import('vue').PropType<string>;
|
|
38
|
+
};
|
|
39
|
+
leftIconVariant: {
|
|
40
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
41
|
+
};
|
|
42
|
+
rightIcon: {
|
|
43
|
+
type: import('vue').PropType<string>;
|
|
44
|
+
};
|
|
45
|
+
rightIconVariant: {
|
|
46
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
47
|
+
};
|
|
48
|
+
valid: {
|
|
49
|
+
type: import('vue').PropType<boolean>;
|
|
50
|
+
};
|
|
51
|
+
readonly: {
|
|
52
|
+
type: import('vue').PropType<boolean>;
|
|
53
|
+
};
|
|
54
|
+
maxlength: {
|
|
55
|
+
type: import('vue').PropType<number>;
|
|
56
|
+
};
|
|
57
|
+
rightIconClass: {
|
|
58
|
+
type: import('vue').PropType<string>;
|
|
59
|
+
};
|
|
60
|
+
leftIconClass: {
|
|
61
|
+
type: import('vue').PropType<string>;
|
|
62
|
+
};
|
|
63
|
+
}>, {
|
|
64
|
+
inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
65
|
+
containerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
66
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
67
|
+
blur: (...args: any[]) => void;
|
|
68
|
+
focus: (...args: any[]) => void;
|
|
69
|
+
input: (...args: any[]) => void;
|
|
70
|
+
paste: (...args: any[]) => void;
|
|
71
|
+
"fzinput:left-icon-click": (...args: any[]) => void;
|
|
72
|
+
"fzinput:right-icon-click": (...args: any[]) => void;
|
|
73
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
74
|
+
modelValue: import('vue').PropType<any>;
|
|
75
|
+
error: {
|
|
76
|
+
type: import('vue').PropType<boolean>;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
name: {
|
|
80
|
+
type: import('vue').PropType<string>;
|
|
81
|
+
};
|
|
82
|
+
size: {
|
|
83
|
+
type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
type: {
|
|
87
|
+
type: import('vue').PropType<"number" | "text" | "password" | "email" | "tel" | "url">;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
90
|
+
required: {
|
|
91
|
+
type: import('vue').PropType<boolean>;
|
|
92
|
+
};
|
|
93
|
+
disabled: {
|
|
94
|
+
type: import('vue').PropType<boolean>;
|
|
95
|
+
};
|
|
96
|
+
label: {
|
|
97
|
+
type: import('vue').PropType<string>;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
pattern: {
|
|
101
|
+
type: import('vue').PropType<string>;
|
|
102
|
+
};
|
|
103
|
+
placeholder: {
|
|
104
|
+
type: import('vue').PropType<string>;
|
|
105
|
+
};
|
|
106
|
+
leftIcon: {
|
|
107
|
+
type: import('vue').PropType<string>;
|
|
108
|
+
};
|
|
109
|
+
leftIconVariant: {
|
|
110
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
111
|
+
};
|
|
112
|
+
rightIcon: {
|
|
113
|
+
type: import('vue').PropType<string>;
|
|
114
|
+
};
|
|
115
|
+
rightIconVariant: {
|
|
116
|
+
type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
|
|
117
|
+
};
|
|
118
|
+
valid: {
|
|
119
|
+
type: import('vue').PropType<boolean>;
|
|
120
|
+
};
|
|
121
|
+
readonly: {
|
|
122
|
+
type: import('vue').PropType<boolean>;
|
|
123
|
+
};
|
|
124
|
+
maxlength: {
|
|
125
|
+
type: import('vue').PropType<number>;
|
|
126
|
+
};
|
|
127
|
+
rightIconClass: {
|
|
128
|
+
type: import('vue').PropType<string>;
|
|
129
|
+
};
|
|
130
|
+
leftIconClass: {
|
|
131
|
+
type: import('vue').PropType<string>;
|
|
132
|
+
};
|
|
133
|
+
}>> & Readonly<{
|
|
134
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
onPaste?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
"onFzinput:left-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
"onFzinput:right-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
}>, {
|
|
141
|
+
error: boolean;
|
|
142
|
+
size: "sm" | "md" | "lg";
|
|
143
|
+
type: "number" | "text" | "password" | "email" | "tel" | "url";
|
|
144
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
145
|
+
"left-icon"?(_: {}): any;
|
|
146
|
+
"right-icon"?(_: {}): any;
|
|
147
|
+
errorMessage?(_: {}): any;
|
|
148
|
+
helpText?(_: {}): any;
|
|
149
|
+
}>;
|
|
150
|
+
export default _default;
|
|
151
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
152
|
+
new (): {
|
|
153
|
+
$slots: S;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { IconVariant } from '@fiscozen/icons';
|
|
2
|
+
|
|
3
|
+
type FzInputProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The label displayed on top of the input
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* The size of the input
|
|
10
|
+
*/
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
/**
|
|
13
|
+
* The placeholder displayed in the input
|
|
14
|
+
*/
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/**
|
|
17
|
+
* If set to true, the input is required
|
|
18
|
+
*/
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* If set to true, the input is disabled
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* If set to true, the input is in error state
|
|
26
|
+
*/
|
|
27
|
+
error?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Left icon name
|
|
30
|
+
*/
|
|
31
|
+
leftIcon?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Left icon variant
|
|
34
|
+
*/
|
|
35
|
+
leftIconVariant?: IconVariant;
|
|
36
|
+
/**
|
|
37
|
+
* Right icon name
|
|
38
|
+
*/
|
|
39
|
+
rightIcon?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Right icon variant
|
|
42
|
+
*/
|
|
43
|
+
rightIconVariant?: IconVariant;
|
|
44
|
+
/**
|
|
45
|
+
* The input type
|
|
46
|
+
*/
|
|
47
|
+
type?: "text" | "password" | "email" | "number" | "tel" | "url";
|
|
48
|
+
/**
|
|
49
|
+
* If set to true, the input is valid
|
|
50
|
+
*/
|
|
51
|
+
valid?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Pattern to validate the input
|
|
54
|
+
*/
|
|
55
|
+
pattern?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Defines the textarea key in a form
|
|
58
|
+
*/
|
|
59
|
+
name?: string;
|
|
60
|
+
/**
|
|
61
|
+
* native readonly input value
|
|
62
|
+
*/
|
|
63
|
+
readonly?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* native maxlength input value
|
|
66
|
+
*/
|
|
67
|
+
maxlength?: number;
|
|
68
|
+
/**
|
|
69
|
+
* right icon class
|
|
70
|
+
*/
|
|
71
|
+
rightIconClass?: string;
|
|
72
|
+
/**
|
|
73
|
+
* left icon class
|
|
74
|
+
*/
|
|
75
|
+
leftIconClass?: string;
|
|
76
|
+
};
|
|
77
|
+
interface FzCurrencyInputProps extends Omit<FzInputProps, "type" | "modelValue"> {
|
|
78
|
+
/**
|
|
79
|
+
* Is set to true, an empty string will be casted to null
|
|
80
|
+
*/
|
|
81
|
+
nullOnEmpty?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Minimum number of decimal places allowed, set null to allow arbitrary decimal values length
|
|
84
|
+
* note that limits from Intl.NumberFormat still apply
|
|
85
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#digit_options
|
|
86
|
+
*/
|
|
87
|
+
minimumFractionDigits?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Maximum number of decimal places allowed, set null to allow arbitrary decimal values length
|
|
90
|
+
* note that limits from Intl.NumberFormat still apply
|
|
91
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#digit_options
|
|
92
|
+
*/
|
|
93
|
+
maximumFractionDigits?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Minimum number value
|
|
96
|
+
*/
|
|
97
|
+
min?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Maximum number value
|
|
100
|
+
*/
|
|
101
|
+
max?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Quantized step
|
|
104
|
+
*/
|
|
105
|
+
step?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Allow only mutiples of step
|
|
108
|
+
*/
|
|
109
|
+
forceStep?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export { FzInputProps, FzCurrencyInputProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FzInputProps } from './types';
|
|
3
|
+
|
|
4
|
+
export default function useInputStyle(props: FzInputProps, container: Ref<HTMLElement | null>): {
|
|
5
|
+
staticContainerClass: string;
|
|
6
|
+
computedContainerClass: import('vue').ComputedRef<string[]>;
|
|
7
|
+
computedLabelClass: import('vue').ComputedRef<string[]>;
|
|
8
|
+
staticInputClass: string;
|
|
9
|
+
computedHelpClass: import('vue').ComputedRef<string[]>;
|
|
10
|
+
computedErrorClass: import('vue').ComputedRef<string[]>;
|
|
11
|
+
containerWidth: import('vue').ComputedRef<string>;
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiscozen/input",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Design System Input component",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"tailwindcss": "^3.4.1",
|
|
11
11
|
"vue": "^3.4.13",
|
|
12
|
-
"@fiscozen/button": "^0.1.12-beta.1",
|
|
13
12
|
"@fiscozen/composables": "^0.1.36",
|
|
14
|
-
"@fiscozen/icons": "^0.1.28"
|
|
13
|
+
"@fiscozen/icons": "^0.1.28",
|
|
14
|
+
"@fiscozen/button": "^0.1.13"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vite-plugin-dts": "^3.8.3",
|
|
30
30
|
"vitest": "^1.2.0",
|
|
31
31
|
"vue-tsc": "^1.8.25",
|
|
32
|
-
"@fiscozen/eslint-config": "^0.1.0",
|
|
33
32
|
"@fiscozen/tsconfig": "^0.1.0",
|
|
34
|
-
"@fiscozen/prettier-config": "^0.1.0"
|
|
33
|
+
"@fiscozen/prettier-config": "^0.1.0",
|
|
34
|
+
"@fiscozen/eslint-config": "^0.1.0"
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"scripts": {
|
package/src/FzInput.vue
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
:class="leftIconClass"
|
|
25
25
|
/>
|
|
26
26
|
</slot>
|
|
27
|
-
<div class="flex flex-col space-around min-w-0">
|
|
27
|
+
<div class="flex flex-col space-around min-w-0 grow">
|
|
28
28
|
<span v-if="!showNormalPlaceholder" class="text-xs text-gray-300 grow-0 overflow-hidden text-ellipsis whitespace-nowrap">{{ placeholder }}</span>
|
|
29
29
|
<input
|
|
30
30
|
:type="type"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@vue+shared@3.5.13/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.5.13/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.5.13/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/csstype@3.1.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.5.13/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.5.13_typescript@5.3.3/node_modules/vue/jsx-runtime/index.d.ts","../../node_modules/.pnpm/@babel+types@7.26.9/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.26.9/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.5.13/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.5.13/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/vue@3.5.13_typescript@5.3.3/node_modules/vue/dist/vue.d.mts","../../node_modules/.pnpm/@vue+shared@3.5.12/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.5.12/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.5.12/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.5.12/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.5.12_typescript@5.4.2/node_modules/vue/jsx-runtime/index.d.ts","../../node_modules/.pnpm/@babel+types@7.25.8/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.25.8/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.5.12/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.5.12/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/vue@3.5.12_typescript@5.4.2/node_modules/vue/dist/vue.d.mts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.6.0/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.6.0/node_modules/@fortawesome/fontawesome-svg-core/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.7.2/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.248/node_modules/@awesome.me/kit-8137893ad3/icons/modules/icon-types.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.248/node_modules/@awesome.me/kit-8137893ad3/icons/modules/index.d.ts","../../node_modules/.pnpm/@fortawesome+vue-fontawesome@3.0.8_@fortawesome+fontawesome-svg-core@6.6.0_vue@3.5.12_typescript@5.4.2_/node_modules/@fortawesome/vue-fontawesome/index.d.ts","../icons/src/types.ts","../icons/src/fzicon.vue.ts","../icons/src/index.ts","./src/types.ts","./src/useinputstyle.ts","./src/fzinput.vue.ts","../composables/src/types.ts","../composables/src/utils/number/index.ts","../composables/src/utils/position/index.ts","../composables/src/utils/index.ts","../composables/src/composables/usefloating.ts","../composables/src/composables/usemediaquery.ts","../composables/src/composables/usebreakpoints.ts","../composables/src/composables/useclickoutside.ts","../composables/src/composables/usekeydown.ts","../composables/src/composables/usekeyup.ts","../composables/src/composables/usecurrency.ts","../composables/src/composables/index.ts","../composables/src/fzfloating.vue.ts","../composables/src/index.ts","./src/fzcurrencyinput.vue.ts","./__vls_types.d.ts","./dist/src/fzinput.vue.d.ts","./dist/src/fzcurrencyinput.vue.d.ts","./dist/src/types.d.ts","./dist/src/index.d.ts","./dist/index.d.ts","./dist/src/useinputstyle.d.ts","./src/index.ts","../../node_modules/.pnpm/@babel+types@7.23.6/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/vue@3.4.13_typescript@5.3.3/node_modules/vue/jsx-runtime/index.d.ts","../../node_modules/.pnpm/vue@3.4.13_typescript@5.3.3/node_modules/vue/dist/vue.d.mts"],"fileInfos":[{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0"],"root":[[76,78],[93,101]],"options":{"composite":true,"esModuleInterop":true,"jsx":1,"jsxImportSource":"vue","module":99,"noImplicitThis":true,"skipLibCheck":true,"strict":true,"target":99,"useDefineForClassFields":true},"fileIdsList":[[51,69],[70],[62],[52],[67],[66,68],[52,57,63],[46,52,53],[64],[54],[57],[46],[57,58,59,60],[46,47,48,50],[49,58,59,60],[47,48,49,50],[60,65],[60],[50,55],[50],[51,83,84,85,86,87,88,89],[51,84],[51,56],[51,56,79,82],[51,56,79,90],[51,79,82,90,91],[51,80,81],[51,79],[61,66,71,72,73],[61,66,68,71,73,74],[61],[98],[56,73],[95,96,97],[75],[56,97],[51,56,75,76,78,92],[51,56,75,76,77],[51,76,78,93],[51,75],[51,56,76],[57,63,102],[83,84,85,86,87,88,89,103],[84,103],[103,104],[79,103,104],[79,82,103,104],[79,90,103],[79,103],[68,73],[],[73,104],[75,103],[76,103,104]],"referencedMap":[[70,1],[71,2],[63,3],[53,4],[68,5],[72,6],[64,7],[54,8],[65,9],[55,10],[58,11],[47,12],[59,13],[48,14],[60,15],[50,16],[66,17],[61,18],[56,19],[51,20],[90,21],[85,22],[86,23],[89,24],[83,24],[87,23],[88,23],[84,23],[91,25],[92,26],[79,23],[82,27],[80,28],[81,28],[74,29],[75,30],[73,31],[94,23],[99,32],[96,33],[95,33],[98,34],[97,35],[100,36],[93,37],[78,38],[101,39],[76,40],[77,41]],"exportedModulesMap":[[70,1],[71,2],[63,3],[53,4],[68,5],[72,6],[64,42],[54,8],[65,9],[55,10],[58,11],[47,12],[59,13],[48,14],[60,15],[50,16],[66,17],[61,18],[56,19],[51,20],[90,43],[85,44],[86,45],[89,46],[83,47],[87,45],[88,45],[84,45],[91,25],[92,48],[79,45],[82,49],[80,49],[81,49],[74,29],[75,50],[73,51],[94,23],[99,52],[96,45],[95,45],[98,45],[97,45],[100,52],[93,37],[78,38],[101,35],[76,53],[77,54]],"semanticDiagnosticsPerFile":[70,71,63,53,62,52,67,69,68,72,64,54,65,55,58,47,59,48,60,50,57,46,49,44,45,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,1,66,61,56,51,90,85,86,89,83,87,88,84,91,92,79,82,80,81,74,75,73,94,99,96,95,98,97,100,93,78,101,76,77],"affectedFilesPendingEmit":[93,78,101,76,77],"emitSignatures":[76,77,78,93]},"version":"5.3.3"}
|