@pequity/squirrel 6.1.0 → 7.0.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/dist/cjs/chunks/p-alert.js +52 -0
- package/dist/cjs/chunks/p-avatar.js +65 -0
- package/dist/cjs/chunks/p-btn.js +4 -4
- package/dist/cjs/chunks/p-date-picker.js +2 -2
- package/dist/cjs/chunks/p-input-number.js +161 -0
- package/dist/cjs/chunks/p-input-percent.js +2 -2
- package/dist/cjs/chunks/p-input.js +111 -0
- package/dist/cjs/chunks/p-progress-bar.js +38 -0
- package/dist/cjs/chunks/p-select-btn.js +3 -4
- package/dist/cjs/chunks/p-textarea.js +89 -0
- package/dist/cjs/index.js +69 -76
- package/dist/cjs/inputClasses.js +8 -2
- package/dist/cjs/p-alert.js +2 -64
- package/dist/cjs/p-avatar.js +2 -70
- package/dist/cjs/p-drawer.js +2 -2
- package/dist/cjs/p-input-number.js +2 -145
- package/dist/cjs/p-input-search.js +2 -2
- package/dist/cjs/p-input.js +2 -92
- package/dist/cjs/p-modal.js +2 -2
- package/dist/cjs/p-progress-bar.js +2 -40
- package/dist/cjs/p-table-filter-icon.js +14 -9
- package/dist/cjs/p-textarea.js +2 -72
- package/dist/cjs/p-toggle.js +76 -64
- package/dist/cjs/useInputClasses.js +13 -18
- package/dist/es/chunks/p-alert.js +53 -0
- package/dist/es/chunks/p-avatar.js +66 -0
- package/dist/es/chunks/p-btn.js +4 -4
- package/dist/es/chunks/p-date-picker.js +2 -2
- package/dist/es/chunks/p-input-number.js +162 -0
- package/dist/es/chunks/p-input-percent.js +2 -2
- package/dist/es/chunks/p-input.js +112 -0
- package/dist/es/chunks/p-progress-bar.js +39 -0
- package/dist/es/chunks/p-select-btn.js +4 -5
- package/dist/es/chunks/p-textarea.js +90 -0
- package/dist/es/index.js +119 -126
- package/dist/es/inputClasses.js +8 -2
- package/dist/es/p-alert.js +2 -64
- package/dist/es/p-avatar.js +2 -70
- package/dist/es/p-drawer.js +2 -2
- package/dist/es/p-input-number.js +2 -145
- package/dist/es/p-input-search.js +2 -2
- package/dist/es/p-input.js +2 -92
- package/dist/es/p-modal.js +2 -2
- package/dist/es/p-progress-bar.js +2 -40
- package/dist/es/p-table-filter-icon.js +14 -9
- package/dist/es/p-textarea.js +2 -72
- package/dist/es/p-toggle.js +77 -65
- package/dist/es/useInputClasses.js +14 -19
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +27 -10
- package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +9 -10
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +28 -28
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +2 -2
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +37 -13
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +2 -2
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +30 -61
- package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +101 -65
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +113 -83
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +2 -2
- package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +5 -20
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +1 -1
- package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +3 -7
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +79 -42
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +25 -62
- package/dist/squirrel/composables/useInputClasses.d.ts +2 -1
- package/dist/squirrel/utils/index.d.ts +1 -3
- package/dist/squirrel/utils/inputClasses.d.ts +12 -0
- package/dist/squirrel.css +5 -5
- package/package.json +19 -19
- package/squirrel/components/p-alert/p-alert.spec.js +9 -8
- package/squirrel/components/p-alert/p-alert.vue +19 -31
- package/squirrel/components/p-avatar/p-avatar.spec.ts +10 -3
- package/squirrel/components/p-avatar/p-avatar.vue +40 -42
- package/squirrel/components/p-btn/p-btn.spec.js +7 -7
- package/squirrel/components/p-btn/p-btn.vue +4 -4
- package/squirrel/components/p-input/p-input.vue +63 -40
- package/squirrel/components/p-input-number/p-input-number.vue +101 -86
- package/squirrel/components/p-progress-bar/p-progress-bar.vue +9 -14
- package/squirrel/components/p-select-btn/p-select-btn.spec.js +24 -5
- package/squirrel/components/p-select-btn/p-select-btn.vue +1 -1
- package/squirrel/components/p-table-header-cell/p-table-filter-icon.vue +8 -9
- package/squirrel/components/p-table-sort/p-table-sort.vue +13 -16
- package/squirrel/components/p-textarea/p-textarea.vue +55 -37
- package/squirrel/components/p-toggle/p-toggle.vue +59 -43
- package/squirrel/composables/useInputClasses.spec.js +50 -13
- package/squirrel/composables/useInputClasses.ts +18 -24
- package/squirrel/utils/index.ts +0 -7
- package/squirrel/utils/inputClasses.ts +8 -2
- package/dist/cjs/inputClassesMixin.js +0 -58
- package/dist/cjs/tailwind.js +0 -25
- package/dist/es/inputClassesMixin.js +0 -59
- package/dist/es/tailwind.js +0 -25
- package/dist/squirrel/utils/inputClassesMixin.d.ts +0 -56
- package/dist/squirrel/utils/tailwind.d.ts +0 -8
- package/squirrel/utils/inputClassesMixin.spec.js +0 -241
- package/squirrel/utils/inputClassesMixin.ts +0 -60
- package/squirrel/utils/tailwind.spec.js +0 -27
- package/squirrel/utils/tailwind.ts +0 -28
|
@@ -49,17 +49,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
49
49
|
};
|
|
50
50
|
readonly size: {
|
|
51
51
|
readonly sm: {
|
|
52
|
-
readonly button: "px-
|
|
52
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
53
53
|
readonly content: "gap-1";
|
|
54
|
-
readonly icon: "text-
|
|
54
|
+
readonly icon: "text-[20px]";
|
|
55
55
|
};
|
|
56
56
|
readonly md: {
|
|
57
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
57
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
58
58
|
readonly content: "gap-2";
|
|
59
59
|
readonly icon: "text-xl";
|
|
60
60
|
};
|
|
61
61
|
readonly lg: {
|
|
62
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
62
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
63
63
|
readonly content: "gap-2.5";
|
|
64
64
|
readonly icon: "text-2xl";
|
|
65
65
|
};
|
|
@@ -114,17 +114,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
114
114
|
};
|
|
115
115
|
readonly size: {
|
|
116
116
|
readonly sm: {
|
|
117
|
-
readonly button: "px-
|
|
117
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
118
118
|
readonly content: "gap-1";
|
|
119
|
-
readonly icon: "text-
|
|
119
|
+
readonly icon: "text-[20px]";
|
|
120
120
|
};
|
|
121
121
|
readonly md: {
|
|
122
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
122
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
123
123
|
readonly content: "gap-2";
|
|
124
124
|
readonly icon: "text-xl";
|
|
125
125
|
};
|
|
126
126
|
readonly lg: {
|
|
127
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
127
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
128
128
|
readonly content: "gap-2.5";
|
|
129
129
|
readonly icon: "text-2xl";
|
|
130
130
|
};
|
|
@@ -174,17 +174,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
174
174
|
};
|
|
175
175
|
readonly size: {
|
|
176
176
|
readonly sm: {
|
|
177
|
-
readonly button: "px-
|
|
177
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
178
178
|
readonly content: "gap-1";
|
|
179
|
-
readonly icon: "text-
|
|
179
|
+
readonly icon: "text-[20px]";
|
|
180
180
|
};
|
|
181
181
|
readonly md: {
|
|
182
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
182
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
183
183
|
readonly content: "gap-2";
|
|
184
184
|
readonly icon: "text-xl";
|
|
185
185
|
};
|
|
186
186
|
readonly lg: {
|
|
187
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
187
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
188
188
|
readonly content: "gap-2.5";
|
|
189
189
|
readonly icon: "text-2xl";
|
|
190
190
|
};
|
|
@@ -234,17 +234,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
234
234
|
};
|
|
235
235
|
readonly size: {
|
|
236
236
|
readonly sm: {
|
|
237
|
-
readonly button: "px-
|
|
237
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
238
238
|
readonly content: "gap-1";
|
|
239
|
-
readonly icon: "text-
|
|
239
|
+
readonly icon: "text-[20px]";
|
|
240
240
|
};
|
|
241
241
|
readonly md: {
|
|
242
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
242
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
243
243
|
readonly content: "gap-2";
|
|
244
244
|
readonly icon: "text-xl";
|
|
245
245
|
};
|
|
246
246
|
readonly lg: {
|
|
247
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
247
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
248
248
|
readonly content: "gap-2.5";
|
|
249
249
|
readonly icon: "text-2xl";
|
|
250
250
|
};
|
|
@@ -299,17 +299,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
299
299
|
};
|
|
300
300
|
readonly size: {
|
|
301
301
|
readonly sm: {
|
|
302
|
-
readonly button: "px-
|
|
302
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
303
303
|
readonly content: "gap-1";
|
|
304
|
-
readonly icon: "text-
|
|
304
|
+
readonly icon: "text-[20px]";
|
|
305
305
|
};
|
|
306
306
|
readonly md: {
|
|
307
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
307
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
308
308
|
readonly content: "gap-2";
|
|
309
309
|
readonly icon: "text-xl";
|
|
310
310
|
};
|
|
311
311
|
readonly lg: {
|
|
312
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
312
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
313
313
|
readonly content: "gap-2.5";
|
|
314
314
|
readonly icon: "text-2xl";
|
|
315
315
|
};
|
|
@@ -364,17 +364,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
364
364
|
};
|
|
365
365
|
readonly size: {
|
|
366
366
|
readonly sm: {
|
|
367
|
-
readonly button: "px-
|
|
367
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
368
368
|
readonly content: "gap-1";
|
|
369
|
-
readonly icon: "text-
|
|
369
|
+
readonly icon: "text-[20px]";
|
|
370
370
|
};
|
|
371
371
|
readonly md: {
|
|
372
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
372
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
373
373
|
readonly content: "gap-2";
|
|
374
374
|
readonly icon: "text-xl";
|
|
375
375
|
};
|
|
376
376
|
readonly lg: {
|
|
377
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
377
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
378
378
|
readonly content: "gap-2.5";
|
|
379
379
|
readonly icon: "text-2xl";
|
|
380
380
|
};
|
|
@@ -424,17 +424,17 @@ declare const btn: import("tailwind-variants").TVReturnType<{
|
|
|
424
424
|
};
|
|
425
425
|
readonly size: {
|
|
426
426
|
readonly sm: {
|
|
427
|
-
readonly button: "px-
|
|
427
|
+
readonly button: "px-3 has-[.slot-wrapper:empty]:px-1.5 py-1.5 text-sm leading-5";
|
|
428
428
|
readonly content: "gap-1";
|
|
429
|
-
readonly icon: "text-
|
|
429
|
+
readonly icon: "text-[20px]";
|
|
430
430
|
};
|
|
431
431
|
readonly md: {
|
|
432
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2 py-2 text-base";
|
|
432
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-2.5 has-[.slot-wrapper:empty]:py-2.5 py-2 text-base";
|
|
433
433
|
readonly content: "gap-2";
|
|
434
434
|
readonly icon: "text-xl";
|
|
435
435
|
};
|
|
436
436
|
readonly lg: {
|
|
437
|
-
readonly button: "px-6 has-[.slot-wrapper:empty]:px-
|
|
437
|
+
readonly button: "px-6 has-[.slot-wrapper:empty]:px-3 py-3 text-lg leading-6";
|
|
438
438
|
readonly content: "gap-2.5";
|
|
439
439
|
readonly icon: "text-2xl";
|
|
440
440
|
};
|
|
@@ -5,9 +5,9 @@ type Props = {
|
|
|
5
5
|
required?: boolean;
|
|
6
6
|
} & VueDatePickerProps;
|
|
7
7
|
type __VLS_Props = Props;
|
|
8
|
-
type __VLS_PublicProps = {
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
9
9
|
modelValue?: Date | string | null;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: string | Date | null) => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -157,11 +157,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
157
157
|
width: string;
|
|
158
158
|
title: string;
|
|
159
159
|
disabled: boolean;
|
|
160
|
-
zIndex: number;
|
|
161
160
|
modelValue: boolean;
|
|
162
161
|
errorMsg: string;
|
|
163
162
|
position: string;
|
|
164
163
|
appendTo: string;
|
|
164
|
+
zIndex: number;
|
|
165
165
|
drawerStyle: Record<string, any>;
|
|
166
166
|
drawerClass: string;
|
|
167
167
|
inClass: string;
|
|
@@ -171,24 +171,48 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
171
171
|
showBackdrop: boolean;
|
|
172
172
|
enableClose: boolean;
|
|
173
173
|
}, {}, {
|
|
174
|
-
PAlert:
|
|
175
|
-
|
|
176
|
-
type:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
174
|
+
PAlert: {
|
|
175
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
176
|
+
type: {
|
|
177
|
+
type: import("vue").PropType<"info" | "error" | "success" | "warning">;
|
|
178
|
+
default: string;
|
|
179
|
+
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
180
|
+
};
|
|
181
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
182
|
+
type: "info" | "error" | "success" | "warning";
|
|
183
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
184
|
+
P: {};
|
|
185
|
+
B: {};
|
|
186
|
+
D: {};
|
|
187
|
+
C: {};
|
|
188
|
+
M: {};
|
|
189
|
+
Defaults: {};
|
|
190
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
191
|
+
type: {
|
|
192
|
+
type: import("vue").PropType<"info" | "error" | "success" | "warning">;
|
|
193
|
+
default: string;
|
|
194
|
+
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
195
|
+
};
|
|
196
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
197
|
+
type: "info" | "error" | "success" | "warning";
|
|
198
|
+
}>;
|
|
199
|
+
__isFragment?: never;
|
|
200
|
+
__isTeleport?: never;
|
|
201
|
+
__isSuspense?: never;
|
|
202
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
184
203
|
type: {
|
|
185
204
|
type: import("vue").PropType<"info" | "error" | "success" | "warning">;
|
|
186
205
|
default: string;
|
|
187
206
|
validator(value: "info" | "error" | "success" | "warning"): boolean;
|
|
188
207
|
};
|
|
189
|
-
}>> & Readonly<{}>, {
|
|
208
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
190
209
|
type: "info" | "error" | "success" | "warning";
|
|
191
|
-
}, {},
|
|
210
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
211
|
+
$slots: {
|
|
212
|
+
icon?: ((props: {}) => any) | undefined;
|
|
213
|
+
default?: ((props: {}) => any) | undefined;
|
|
214
|
+
};
|
|
215
|
+
});
|
|
192
216
|
PCloseBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
193
217
|
variant: {
|
|
194
218
|
type: import("vue").PropType<"transparent" | "gray" | "dark">;
|
|
@@ -10,9 +10,9 @@ declare const model: import("vue").ModelRef<string | Date | null, string, string
|
|
|
10
10
|
declare const labelClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
|
|
11
11
|
declare const datePickerProps: import("vue").ComputedRef<VueDatePickerProps>;
|
|
12
12
|
declare const style: import("vue").ComputedRef<StyleValue>;
|
|
13
|
-
type __VLS_PublicProps = {
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
14
14
|
modelValue?: Date | string | null;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
17
17
|
declare var __VLS_1: {
|
|
18
18
|
label: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Size } from '../p-btn/p-btn.types';
|
|
2
|
+
import { type PropType } from 'vue';
|
|
2
3
|
declare const INPUT_TYPES: {
|
|
3
4
|
TEXT: string;
|
|
4
5
|
PASSWORD: string;
|
|
5
6
|
};
|
|
6
7
|
type InputTypeKeys = keyof typeof INPUT_TYPES;
|
|
7
8
|
type InputType = (typeof INPUT_TYPES)[InputTypeKeys];
|
|
8
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
10
|
modelValue: {
|
|
10
|
-
type:
|
|
11
|
+
type: PropType<string | number | boolean | null>;
|
|
11
12
|
default: string;
|
|
12
13
|
};
|
|
13
14
|
type: {
|
|
@@ -27,70 +28,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
28
|
type: BooleanConstructor;
|
|
28
29
|
default: boolean;
|
|
29
30
|
};
|
|
30
|
-
rounded: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
default: boolean;
|
|
33
|
-
};
|
|
34
|
-
}>, {}, {}, {
|
|
35
|
-
attrs(): {
|
|
36
|
-
[x: string]: unknown;
|
|
37
|
-
};
|
|
38
|
-
style(): StyleValue;
|
|
39
|
-
}, {}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
40
31
|
size: {
|
|
41
|
-
type: PropType<
|
|
32
|
+
type: PropType<Size>;
|
|
42
33
|
default: string;
|
|
43
|
-
validator(value:
|
|
44
|
-
};
|
|
45
|
-
errorMsg: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
required: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
34
|
+
validator(value: Size): boolean;
|
|
52
35
|
};
|
|
53
36
|
rounded: {
|
|
54
37
|
type: BooleanConstructor;
|
|
55
38
|
default: boolean;
|
|
56
39
|
};
|
|
57
|
-
}>, {}, {}, {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
label: string;
|
|
61
|
-
errorMessage: string;
|
|
62
|
-
};
|
|
63
|
-
inputClasses(): string;
|
|
64
|
-
labelClasses(): string;
|
|
65
|
-
errorMsgClasses(): string;
|
|
66
|
-
selectClasses(): string;
|
|
67
|
-
textareaClasses(): string;
|
|
68
|
-
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
-
size: {
|
|
70
|
-
type: PropType<import("../index.js").Size>;
|
|
71
|
-
default: string;
|
|
72
|
-
validator(value: import("../index.js").Size): boolean;
|
|
73
|
-
};
|
|
74
|
-
errorMsg: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
required: {
|
|
79
|
-
type: BooleanConstructor;
|
|
80
|
-
default: boolean;
|
|
81
|
-
};
|
|
82
|
-
rounded: {
|
|
83
|
-
type: BooleanConstructor;
|
|
84
|
-
default: boolean;
|
|
85
|
-
};
|
|
86
|
-
}>> & Readonly<{}>, {
|
|
87
|
-
size: "sm" | "md" | "lg";
|
|
88
|
-
required: boolean;
|
|
89
|
-
rounded: boolean;
|
|
90
|
-
errorMsg: string;
|
|
91
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
+
"update:modelValue": (...args: any[]) => void;
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
43
|
modelValue: {
|
|
93
|
-
type:
|
|
44
|
+
type: PropType<string | number | boolean | null>;
|
|
94
45
|
default: string;
|
|
95
46
|
};
|
|
96
47
|
type: {
|
|
@@ -110,6 +61,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
110
61
|
type: BooleanConstructor;
|
|
111
62
|
default: boolean;
|
|
112
63
|
};
|
|
64
|
+
size: {
|
|
65
|
+
type: PropType<Size>;
|
|
66
|
+
default: string;
|
|
67
|
+
validator(value: Size): boolean;
|
|
68
|
+
};
|
|
113
69
|
rounded: {
|
|
114
70
|
type: BooleanConstructor;
|
|
115
71
|
default: boolean;
|
|
@@ -117,11 +73,24 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
117
73
|
}>> & Readonly<{
|
|
118
74
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
119
75
|
}>, {
|
|
76
|
+
size: "sm" | "md" | "lg";
|
|
120
77
|
type: string;
|
|
121
78
|
label: string;
|
|
122
79
|
required: boolean;
|
|
123
|
-
modelValue: string | number;
|
|
80
|
+
modelValue: string | number | boolean | null;
|
|
124
81
|
rounded: boolean;
|
|
125
82
|
errorMsg: string;
|
|
126
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
84
|
+
label?: ((props: {
|
|
85
|
+
label: string;
|
|
86
|
+
labelClasses: string;
|
|
87
|
+
}) => any) | undefined;
|
|
88
|
+
prefix?: ((props: {}) => any) | undefined;
|
|
89
|
+
suffix?: ((props: {}) => any) | undefined;
|
|
90
|
+
}>;
|
|
127
91
|
export default _default;
|
|
92
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
93
|
+
new (): {
|
|
94
|
+
$slots: S;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
import { type Size } from '../p-btn/p-btn.types';
|
|
2
|
+
import PInfoIcon from '../p-info-icon/p-info-icon.vue';
|
|
1
3
|
import { type PropType, type StyleValue } from 'vue';
|
|
2
|
-
declare const
|
|
4
|
+
declare const labelClasses: import("vue").ComputedRef<string>, inputClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
|
|
5
|
+
declare const inputRef: import("vue").Ref<any, any>;
|
|
6
|
+
declare const computedAttrs: import("vue").ComputedRef<{
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
}>;
|
|
9
|
+
declare const style: import("vue").ComputedRef<StyleValue>;
|
|
10
|
+
declare const focus: () => void;
|
|
11
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
12
|
+
declare var __VLS_1: {
|
|
13
|
+
label: string;
|
|
14
|
+
labelClasses: string;
|
|
15
|
+
}, __VLS_6: {};
|
|
16
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
17
|
+
label?: (props: typeof __VLS_1) => any;
|
|
18
|
+
} & {
|
|
19
|
+
prefix?: (props: typeof __VLS_6) => any;
|
|
20
|
+
}>;
|
|
21
|
+
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
22
|
modelValue: {
|
|
4
23
|
type: PropType<number | string | null | undefined>;
|
|
5
24
|
default: null;
|
|
@@ -16,6 +35,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
16
35
|
type: BooleanConstructor;
|
|
17
36
|
default: boolean;
|
|
18
37
|
};
|
|
38
|
+
size: {
|
|
39
|
+
type: PropType<Size>;
|
|
40
|
+
default: string;
|
|
41
|
+
validator(value: Size): boolean;
|
|
42
|
+
};
|
|
19
43
|
selectOnClick: {
|
|
20
44
|
type: BooleanConstructor;
|
|
21
45
|
default: boolean;
|
|
@@ -25,17 +49,25 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
25
49
|
default: string;
|
|
26
50
|
};
|
|
27
51
|
}>, {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
52
|
+
PInfoIcon: typeof PInfoIcon;
|
|
53
|
+
labelClasses: typeof labelClasses;
|
|
54
|
+
inputClasses: typeof inputClasses;
|
|
55
|
+
errorMsgClasses: typeof errorMsgClasses;
|
|
56
|
+
inputRef: typeof inputRef;
|
|
57
|
+
computedAttrs: typeof computedAttrs;
|
|
58
|
+
style: typeof style;
|
|
59
|
+
focus: typeof focus;
|
|
60
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
change: (...args: any[]) => void;
|
|
62
|
+
"update:modelValue": (...args: any[]) => void;
|
|
63
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
modelValue: {
|
|
65
|
+
type: PropType<number | string | null | undefined>;
|
|
66
|
+
default: null;
|
|
67
|
+
};
|
|
68
|
+
label: {
|
|
69
|
+
type: StringConstructor;
|
|
37
70
|
default: string;
|
|
38
|
-
validator(value: import("../index.js").Size): boolean;
|
|
39
71
|
};
|
|
40
72
|
errorMsg: {
|
|
41
73
|
type: StringConstructor;
|
|
@@ -45,26 +77,39 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
77
|
type: BooleanConstructor;
|
|
46
78
|
default: boolean;
|
|
47
79
|
};
|
|
48
|
-
|
|
80
|
+
size: {
|
|
81
|
+
type: PropType<Size>;
|
|
82
|
+
default: string;
|
|
83
|
+
validator(value: Size): boolean;
|
|
84
|
+
};
|
|
85
|
+
selectOnClick: {
|
|
49
86
|
type: BooleanConstructor;
|
|
50
87
|
default: boolean;
|
|
51
88
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
89
|
+
tooltipText: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{
|
|
94
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
95
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
}>, {
|
|
97
|
+
size: "sm" | "md" | "lg";
|
|
98
|
+
label: string;
|
|
99
|
+
required: boolean;
|
|
100
|
+
modelValue: string | number | null | undefined;
|
|
101
|
+
errorMsg: string;
|
|
102
|
+
selectOnClick: boolean;
|
|
103
|
+
tooltipText: string;
|
|
104
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
106
|
+
modelValue: {
|
|
107
|
+
type: PropType<number | string | null | undefined>;
|
|
108
|
+
default: null;
|
|
109
|
+
};
|
|
110
|
+
label: {
|
|
111
|
+
type: StringConstructor;
|
|
66
112
|
default: string;
|
|
67
|
-
validator(value: import("../index.js").Size): boolean;
|
|
68
113
|
};
|
|
69
114
|
errorMsg: {
|
|
70
115
|
type: StringConstructor;
|
|
@@ -74,16 +119,25 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
74
119
|
type: BooleanConstructor;
|
|
75
120
|
default: boolean;
|
|
76
121
|
};
|
|
77
|
-
|
|
122
|
+
size: {
|
|
123
|
+
type: PropType<Size>;
|
|
124
|
+
default: string;
|
|
125
|
+
validator(value: Size): boolean;
|
|
126
|
+
};
|
|
127
|
+
selectOnClick: {
|
|
78
128
|
type: BooleanConstructor;
|
|
79
129
|
default: boolean;
|
|
80
130
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
131
|
+
tooltipText: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
}>, {
|
|
136
|
+
setValue: (number: number | null) => void;
|
|
137
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
138
|
+
change: (...args: any[]) => void;
|
|
139
|
+
"update:modelValue": (...args: any[]) => void;
|
|
140
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
141
|
modelValue: {
|
|
88
142
|
type: PropType<number | string | null | undefined>;
|
|
89
143
|
default: null;
|
|
@@ -100,6 +154,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
154
|
type: BooleanConstructor;
|
|
101
155
|
default: boolean;
|
|
102
156
|
};
|
|
157
|
+
size: {
|
|
158
|
+
type: PropType<Size>;
|
|
159
|
+
default: string;
|
|
160
|
+
validator(value: Size): boolean;
|
|
161
|
+
};
|
|
103
162
|
selectOnClick: {
|
|
104
163
|
type: BooleanConstructor;
|
|
105
164
|
default: boolean;
|
|
@@ -112,41 +171,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
112
171
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
113
172
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
114
173
|
}>, {
|
|
174
|
+
size: "sm" | "md" | "lg";
|
|
115
175
|
label: string;
|
|
116
176
|
required: boolean;
|
|
117
177
|
modelValue: string | number | null | undefined;
|
|
118
178
|
errorMsg: string;
|
|
119
179
|
selectOnClick: boolean;
|
|
120
180
|
tooltipText: string;
|
|
121
|
-
}, {}, {
|
|
122
|
-
|
|
123
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
124
|
-
text?: string | null;
|
|
125
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
126
|
-
text: string | null;
|
|
127
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
128
|
-
P: {};
|
|
129
|
-
B: {};
|
|
130
|
-
D: {};
|
|
131
|
-
C: {};
|
|
132
|
-
M: {};
|
|
133
|
-
Defaults: {};
|
|
134
|
-
}, Readonly<{
|
|
135
|
-
text?: string | null;
|
|
136
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
137
|
-
text: string | null;
|
|
138
|
-
}>;
|
|
139
|
-
__isFragment?: never;
|
|
140
|
-
__isTeleport?: never;
|
|
141
|
-
__isSuspense?: never;
|
|
142
|
-
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
143
|
-
text?: string | null;
|
|
144
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
145
|
-
text: string | null;
|
|
146
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
147
|
-
$slots: {
|
|
148
|
-
default?: ((props: {}) => any) | undefined;
|
|
149
|
-
};
|
|
150
|
-
});
|
|
151
|
-
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
181
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
182
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
152
183
|
export default _default;
|
|
184
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
185
|
+
new (): {
|
|
186
|
+
$slots: S;
|
|
187
|
+
};
|
|
188
|
+
};
|