@pequity/squirrel 8.4.4 → 8.4.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.
- package/README.md +2 -1
- package/dist/cjs/chunks/p-alert.js +3 -0
- package/dist/cjs/chunks/p-avatar.js +16 -0
- package/dist/cjs/chunks/p-btn.js +3 -0
- package/dist/cjs/chunks/p-card.js +4 -0
- package/dist/cjs/chunks/p-dropdown-select.js +34 -0
- package/dist/cjs/chunks/p-input-number.js +32 -0
- package/dist/cjs/chunks/p-input-percent.js +13 -2
- package/dist/cjs/chunks/p-input.js +28 -0
- package/dist/cjs/chunks/p-pagination-info.js +9 -5
- package/dist/cjs/chunks/p-pagination.js +23 -13
- package/dist/cjs/chunks/p-select-btn.js +2 -1
- package/dist/cjs/chunks/p-select.js +33 -0
- package/dist/cjs/chunks/p-table-loader.js +20 -0
- package/dist/cjs/chunks/p-tabs.js +12 -0
- package/dist/cjs/chunks/p-textarea.js +20 -0
- package/dist/cjs/index.js +40 -3
- package/dist/cjs/p-checkbox.js +8 -1
- package/dist/cjs/p-chips.js +17 -1
- package/dist/cjs/p-close-btn.js +6 -1
- package/dist/cjs/p-drawer.js +90 -2
- package/dist/cjs/p-dropdown.js +2 -1
- package/dist/cjs/p-input-search.js +13 -1
- package/dist/cjs/p-loading.js +1 -1
- package/dist/cjs/p-modal.js +82 -2
- package/dist/cjs/p-select-pill.js +36 -2
- package/dist/cjs/p-skeleton-loader.js +17 -1
- package/dist/cjs/p-table-filter-icon.js +4 -1
- package/dist/cjs/p-table-header-cell.js +29 -0
- package/dist/cjs/p-table-td.js +1 -1
- package/dist/cjs/p-toggle.js +22 -1
- package/dist/es/chunks/p-alert.js +3 -0
- package/dist/es/chunks/p-avatar.js +16 -0
- package/dist/es/chunks/p-btn.js +3 -0
- package/dist/es/chunks/p-card.js +4 -0
- package/dist/es/chunks/p-dropdown-select.js +34 -0
- package/dist/es/chunks/p-input-number.js +32 -0
- package/dist/es/chunks/p-input-percent.js +13 -2
- package/dist/es/chunks/p-input.js +28 -0
- package/dist/es/chunks/p-pagination-info.js +9 -5
- package/dist/es/chunks/p-pagination.js +24 -14
- package/dist/es/chunks/p-select-btn.js +2 -1
- package/dist/es/chunks/p-select.js +33 -0
- package/dist/es/chunks/p-table-loader.js +20 -0
- package/dist/es/chunks/p-tabs.js +12 -0
- package/dist/es/chunks/p-textarea.js +20 -0
- package/dist/es/index.js +40 -3
- package/dist/es/p-checkbox.js +8 -1
- package/dist/es/p-chips.js +17 -1
- package/dist/es/p-close-btn.js +6 -1
- package/dist/es/p-drawer.js +90 -2
- package/dist/es/p-dropdown.js +2 -1
- package/dist/es/p-input-search.js +13 -1
- package/dist/es/p-loading.js +1 -1
- package/dist/es/p-modal.js +82 -2
- package/dist/es/p-select-pill.js +36 -2
- package/dist/es/p-skeleton-loader.js +17 -1
- package/dist/es/p-table-filter-icon.js +4 -1
- package/dist/es/p-table-header-cell.js +29 -0
- package/dist/es/p-table-td.js +1 -1
- package/dist/es/p-toggle.js +22 -1
- package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +14 -2
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +16 -3
- package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +35 -0
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +18 -2
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +20 -7
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +25 -7
- package/dist/squirrel/components/p-chips/p-chips.vue.d.ts +24 -0
- package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +13 -0
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +16 -0
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +141 -3
- package/dist/squirrel/components/p-dropdown/p-dropdown.vue.d.ts +11 -2
- package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +69 -1
- package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +70 -6
- package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +4 -0
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +11 -4
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +27 -7
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +73 -8
- package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +83 -12
- package/dist/squirrel/components/p-input-percent/p-input-percent.vue.d.ts +22 -2
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +24 -0
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +185 -15
- package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +22 -12
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +16 -8
- package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +20 -0
- package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +10 -0
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +76 -6
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +67 -10
- package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +1 -1
- package/dist/squirrel/components/p-select-pill/p-select-pill.vue.d.ts +72 -2
- package/dist/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue.d.ts +40 -0
- package/dist/squirrel/components/p-steps/p-steps.vue.d.ts +12 -0
- package/dist/squirrel/components/p-table/p-table.vue.d.ts +32 -0
- package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +6 -0
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +56 -1
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +40 -0
- package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +12 -2
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +12 -0
- package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +33 -2
- package/dist/squirrel/components/p-tabs-pills/p-tabs-pills.vue.d.ts +22 -0
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +52 -8
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +50 -3
- package/dist/squirrel.css +68 -68
- package/package.json +15 -15
- package/squirrel/components/p-action-bar/p-action-bar.stories.js +5 -5
- package/squirrel/components/p-action-bar/p-action-bar.vue +30 -3
- package/squirrel/components/p-alert/p-alert.vue +24 -0
- package/squirrel/components/p-avatar/p-avatar.vue +28 -0
- package/squirrel/components/p-btn/p-btn.vue +35 -0
- package/squirrel/components/p-card/p-card.vue +24 -1
- package/squirrel/components/p-checkbox/p-checkbox.vue +23 -1
- package/squirrel/components/p-chips/p-chips.vue +24 -0
- package/squirrel/components/p-close-btn/p-close-btn.vue +15 -0
- package/squirrel/components/p-date-picker/p-date-picker.vue +23 -1
- package/squirrel/components/p-drawer/p-drawer.vue +95 -0
- package/squirrel/components/p-dropdown/p-dropdown.vue +12 -1
- package/squirrel/components/p-dropdown-select/p-dropdown-select.vue +41 -0
- package/squirrel/components/p-file-upload/p-file-upload.vue +58 -3
- package/squirrel/components/p-icon/p-icon.vue +16 -0
- package/squirrel/components/p-info-icon/p-info-icon.vue +19 -0
- package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +32 -0
- package/squirrel/components/p-input/p-input.vue +61 -1
- package/squirrel/components/p-input-number/p-input-number.vue +78 -1
- package/squirrel/components/p-input-percent/p-input-percent.vue +27 -3
- package/squirrel/components/p-input-search/p-input-search.vue +30 -2
- package/squirrel/components/p-link/p-link.vue +13 -0
- package/squirrel/components/p-loading/p-loading.vue +9 -2
- package/squirrel/components/p-modal/p-modal.vue +138 -2
- package/squirrel/components/p-pagination/p-pagination.vue +28 -8
- package/squirrel/components/p-pagination-info/p-pagination-info.vue +16 -4
- package/squirrel/components/p-progress-bar/p-progress-bar.vue +31 -4
- package/squirrel/components/p-ring-loader/p-ring-loader.vue +17 -0
- package/squirrel/components/p-select/p-select.vue +50 -1
- package/squirrel/components/p-select-btn/p-select-btn.vue +90 -2
- package/squirrel/components/p-select-list/p-select-list.vue +7 -0
- package/squirrel/components/p-select-pill/p-select-pill.vue +52 -2
- package/squirrel/components/p-skeleton-loader/p-skeleton-loader.vue +24 -0
- package/squirrel/components/p-steps/p-steps.vue +25 -0
- package/squirrel/components/p-table/p-table.vue +39 -0
- package/squirrel/components/p-table-header-cell/p-table-filter-icon.vue +9 -0
- package/squirrel/components/p-table-header-cell/p-table-header-cell.vue +36 -0
- package/squirrel/components/p-table-loader/p-table-loader.vue +28 -0
- package/squirrel/components/p-table-sort/p-table-sort.vue +19 -1
- package/squirrel/components/p-table-td/p-table-td.vue +20 -0
- package/squirrel/components/p-tabs/p-tabs.stories.js +2 -2
- package/squirrel/components/p-tabs/p-tabs.vue +33 -1
- package/squirrel/components/p-tabs-pills/p-tabs-pills.vue +33 -0
- package/squirrel/components/p-textarea/p-textarea.vue +43 -1
- package/squirrel/components/p-toggle/p-toggle.vue +44 -1
- package/squirrel/assets/pagination-left-icon.svg +0 -5
- package/squirrel/assets/pagination-right-icon.svg +0 -5
|
@@ -15,6 +15,10 @@ type __VLS_Slots = {
|
|
|
15
15
|
}): unknown;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
|
+
/**
|
|
19
|
+
* The selected value(s) for the dropdown (v-model).
|
|
20
|
+
* Can be a single value or array of values depending on multiple prop.
|
|
21
|
+
*/
|
|
18
22
|
modelValue: {
|
|
19
23
|
type: PropType<ModelValue>;
|
|
20
24
|
default: null;
|
|
@@ -36,18 +40,30 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
36
40
|
type: PropType<AnyValue[] | AnyObject[]>;
|
|
37
41
|
default: () => never[];
|
|
38
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Label text displayed above the dropdown.
|
|
45
|
+
*/
|
|
39
46
|
label: {
|
|
40
47
|
type: StringConstructor;
|
|
41
48
|
default: string;
|
|
42
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Error message to display below the dropdown.
|
|
52
|
+
*/
|
|
43
53
|
errorMsg: {
|
|
44
54
|
type: StringConstructor;
|
|
45
55
|
default: string;
|
|
46
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Whether the field is required.
|
|
59
|
+
*/
|
|
47
60
|
required: {
|
|
48
61
|
type: BooleanConstructor;
|
|
49
62
|
default: boolean;
|
|
50
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* The size of the dropdown component.
|
|
66
|
+
*/
|
|
51
67
|
size: {
|
|
52
68
|
type: PropType<Size>;
|
|
53
69
|
default: string;
|
|
@@ -82,26 +98,44 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
82
98
|
type: NumberConstructor;
|
|
83
99
|
default: number;
|
|
84
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* Additional attributes to apply to the dropdown menu.
|
|
103
|
+
*/
|
|
85
104
|
dropdownMenuAttrs: {
|
|
86
105
|
type: ObjectConstructor;
|
|
87
106
|
default: () => {};
|
|
88
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* CSS classes to apply to the dropdown menu.
|
|
110
|
+
*/
|
|
89
111
|
dropdownMenuClass: {
|
|
90
112
|
type: StringConstructor;
|
|
91
113
|
default: string;
|
|
92
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Inline styles to apply to the dropdown menu.
|
|
117
|
+
*/
|
|
93
118
|
dropdownMenuStyle: {
|
|
94
119
|
type: ObjectConstructor;
|
|
95
120
|
default: () => {};
|
|
96
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Props to pass to the underlying PDropdown component.
|
|
124
|
+
*/
|
|
97
125
|
pDropdownProps: {
|
|
98
126
|
type: ObjectConstructor;
|
|
99
127
|
default: () => {};
|
|
100
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Whether to enable search functionality within the dropdown.
|
|
131
|
+
*/
|
|
101
132
|
searchable: {
|
|
102
133
|
type: BooleanConstructor;
|
|
103
134
|
default: boolean;
|
|
104
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* Whether to show a clear button when items are selected.
|
|
138
|
+
*/
|
|
105
139
|
clearable: {
|
|
106
140
|
type: BooleanConstructor;
|
|
107
141
|
default: boolean;
|
|
@@ -160,6 +194,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
160
194
|
"update:modelValue": (...args: any[]) => void;
|
|
161
195
|
create: (...args: any[]) => void;
|
|
162
196
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
197
|
+
/**
|
|
198
|
+
* The selected value(s) for the dropdown (v-model).
|
|
199
|
+
* Can be a single value or array of values depending on multiple prop.
|
|
200
|
+
*/
|
|
163
201
|
modelValue: {
|
|
164
202
|
type: PropType<ModelValue>;
|
|
165
203
|
default: null;
|
|
@@ -181,18 +219,30 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
181
219
|
type: PropType<AnyValue[] | AnyObject[]>;
|
|
182
220
|
default: () => never[];
|
|
183
221
|
};
|
|
222
|
+
/**
|
|
223
|
+
* Label text displayed above the dropdown.
|
|
224
|
+
*/
|
|
184
225
|
label: {
|
|
185
226
|
type: StringConstructor;
|
|
186
227
|
default: string;
|
|
187
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* Error message to display below the dropdown.
|
|
231
|
+
*/
|
|
188
232
|
errorMsg: {
|
|
189
233
|
type: StringConstructor;
|
|
190
234
|
default: string;
|
|
191
235
|
};
|
|
236
|
+
/**
|
|
237
|
+
* Whether the field is required.
|
|
238
|
+
*/
|
|
192
239
|
required: {
|
|
193
240
|
type: BooleanConstructor;
|
|
194
241
|
default: boolean;
|
|
195
242
|
};
|
|
243
|
+
/**
|
|
244
|
+
* The size of the dropdown component.
|
|
245
|
+
*/
|
|
196
246
|
size: {
|
|
197
247
|
type: PropType<Size>;
|
|
198
248
|
default: string;
|
|
@@ -227,26 +277,44 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
227
277
|
type: NumberConstructor;
|
|
228
278
|
default: number;
|
|
229
279
|
};
|
|
280
|
+
/**
|
|
281
|
+
* Additional attributes to apply to the dropdown menu.
|
|
282
|
+
*/
|
|
230
283
|
dropdownMenuAttrs: {
|
|
231
284
|
type: ObjectConstructor;
|
|
232
285
|
default: () => {};
|
|
233
286
|
};
|
|
287
|
+
/**
|
|
288
|
+
* CSS classes to apply to the dropdown menu.
|
|
289
|
+
*/
|
|
234
290
|
dropdownMenuClass: {
|
|
235
291
|
type: StringConstructor;
|
|
236
292
|
default: string;
|
|
237
293
|
};
|
|
294
|
+
/**
|
|
295
|
+
* Inline styles to apply to the dropdown menu.
|
|
296
|
+
*/
|
|
238
297
|
dropdownMenuStyle: {
|
|
239
298
|
type: ObjectConstructor;
|
|
240
299
|
default: () => {};
|
|
241
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* Props to pass to the underlying PDropdown component.
|
|
303
|
+
*/
|
|
242
304
|
pDropdownProps: {
|
|
243
305
|
type: ObjectConstructor;
|
|
244
306
|
default: () => {};
|
|
245
307
|
};
|
|
308
|
+
/**
|
|
309
|
+
* Whether to enable search functionality within the dropdown.
|
|
310
|
+
*/
|
|
246
311
|
searchable: {
|
|
247
312
|
type: BooleanConstructor;
|
|
248
313
|
default: boolean;
|
|
249
314
|
};
|
|
315
|
+
/**
|
|
316
|
+
* Whether to show a clear button when items are selected.
|
|
317
|
+
*/
|
|
250
318
|
clearable: {
|
|
251
319
|
type: BooleanConstructor;
|
|
252
320
|
default: boolean;
|
|
@@ -306,13 +374,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
306
374
|
onCreate?: ((...args: any[]) => any) | undefined;
|
|
307
375
|
}>, {
|
|
308
376
|
size: "sm" | "md" | "lg";
|
|
377
|
+
placeholder: string;
|
|
309
378
|
label: string;
|
|
310
379
|
required: boolean;
|
|
311
380
|
modelValue: ModelValue;
|
|
312
381
|
items: AnyValue[] | AnyObject[];
|
|
313
382
|
itemText: string;
|
|
314
383
|
errorMsg: string;
|
|
315
|
-
placeholder: string;
|
|
316
384
|
clearable: boolean;
|
|
317
385
|
valueIsObject: boolean;
|
|
318
386
|
itemValue: string | number;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { type FileUploadFile } from './p-file-upload.types';
|
|
2
2
|
import { type PropType } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* The current file(s) value (v-model).
|
|
6
|
+
* Supports both single file and multiple files based on the multiple prop.
|
|
7
|
+
*/
|
|
4
8
|
modelValue: {
|
|
5
9
|
type: PropType<FileUploadFile | FileUploadFile[]>;
|
|
6
10
|
default: () => never[];
|
|
7
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Whether multiple files can be selected.
|
|
14
|
+
* When true, allows selecting multiple files at once.
|
|
15
|
+
*/
|
|
8
16
|
multiple: {
|
|
9
17
|
type: BooleanConstructor;
|
|
10
18
|
default: boolean;
|
|
@@ -17,39 +25,71 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
25
|
type: PropType<string[] | readonly string[]>;
|
|
18
26
|
default: () => never[];
|
|
19
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* Whether the file upload is disabled.
|
|
30
|
+
* Prevents user interaction when true.
|
|
31
|
+
*/
|
|
20
32
|
disabled: {
|
|
21
33
|
type: BooleanConstructor;
|
|
22
34
|
default: boolean;
|
|
23
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Whether the file upload is required.
|
|
38
|
+
* Adds required attribute and visual indicator.
|
|
39
|
+
*/
|
|
24
40
|
required: {
|
|
25
41
|
type: BooleanConstructor;
|
|
26
42
|
default: boolean;
|
|
27
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Error message to display below the file upload.
|
|
46
|
+
* When provided, the upload area will show error styling.
|
|
47
|
+
*/
|
|
28
48
|
errorMsg: {
|
|
29
49
|
type: StringConstructor;
|
|
30
50
|
default: string;
|
|
31
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* Text label for the file upload field.
|
|
54
|
+
* Displayed above the upload area.
|
|
55
|
+
*/
|
|
32
56
|
label: {
|
|
33
57
|
type: StringConstructor;
|
|
34
58
|
default: string;
|
|
35
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Maximum file size in bytes.
|
|
62
|
+
* Files exceeding this size will be rejected with an error message.
|
|
63
|
+
*/
|
|
36
64
|
maxSizeInBytes: {
|
|
37
65
|
type: NumberConstructor;
|
|
38
66
|
default: number;
|
|
39
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Maximum number of files that can be uploaded.
|
|
70
|
+
* Only applies when multiple is true.
|
|
71
|
+
*/
|
|
40
72
|
maxNumberOfFiles: {
|
|
41
73
|
type: NumberConstructor;
|
|
42
74
|
default: number;
|
|
43
75
|
};
|
|
44
76
|
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
-
"update:modelValue": (
|
|
46
|
-
"file-removed": (
|
|
47
|
-
"file-added": (
|
|
77
|
+
"update:modelValue": (value: FileUploadFile | FileUploadFile[]) => any;
|
|
78
|
+
"file-removed": (file: FileUploadFile) => any;
|
|
79
|
+
"file-added": (files: FileUploadFile[]) => any;
|
|
48
80
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
+
/**
|
|
82
|
+
* The current file(s) value (v-model).
|
|
83
|
+
* Supports both single file and multiple files based on the multiple prop.
|
|
84
|
+
*/
|
|
49
85
|
modelValue: {
|
|
50
86
|
type: PropType<FileUploadFile | FileUploadFile[]>;
|
|
51
87
|
default: () => never[];
|
|
52
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Whether multiple files can be selected.
|
|
91
|
+
* When true, allows selecting multiple files at once.
|
|
92
|
+
*/
|
|
53
93
|
multiple: {
|
|
54
94
|
type: BooleanConstructor;
|
|
55
95
|
default: boolean;
|
|
@@ -62,34 +102,58 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
102
|
type: PropType<string[] | readonly string[]>;
|
|
63
103
|
default: () => never[];
|
|
64
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Whether the file upload is disabled.
|
|
107
|
+
* Prevents user interaction when true.
|
|
108
|
+
*/
|
|
65
109
|
disabled: {
|
|
66
110
|
type: BooleanConstructor;
|
|
67
111
|
default: boolean;
|
|
68
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Whether the file upload is required.
|
|
115
|
+
* Adds required attribute and visual indicator.
|
|
116
|
+
*/
|
|
69
117
|
required: {
|
|
70
118
|
type: BooleanConstructor;
|
|
71
119
|
default: boolean;
|
|
72
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* Error message to display below the file upload.
|
|
123
|
+
* When provided, the upload area will show error styling.
|
|
124
|
+
*/
|
|
73
125
|
errorMsg: {
|
|
74
126
|
type: StringConstructor;
|
|
75
127
|
default: string;
|
|
76
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Text label for the file upload field.
|
|
131
|
+
* Displayed above the upload area.
|
|
132
|
+
*/
|
|
77
133
|
label: {
|
|
78
134
|
type: StringConstructor;
|
|
79
135
|
default: string;
|
|
80
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Maximum file size in bytes.
|
|
139
|
+
* Files exceeding this size will be rejected with an error message.
|
|
140
|
+
*/
|
|
81
141
|
maxSizeInBytes: {
|
|
82
142
|
type: NumberConstructor;
|
|
83
143
|
default: number;
|
|
84
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Maximum number of files that can be uploaded.
|
|
147
|
+
* Only applies when multiple is true.
|
|
148
|
+
*/
|
|
85
149
|
maxNumberOfFiles: {
|
|
86
150
|
type: NumberConstructor;
|
|
87
151
|
default: number;
|
|
88
152
|
};
|
|
89
153
|
}>> & Readonly<{
|
|
90
|
-
"onUpdate:modelValue"?: ((
|
|
91
|
-
"onFile-removed"?: ((
|
|
92
|
-
"onFile-added"?: ((
|
|
154
|
+
"onUpdate:modelValue"?: ((value: FileUploadFile | FileUploadFile[]) => any) | undefined;
|
|
155
|
+
"onFile-removed"?: ((file: FileUploadFile) => any) | undefined;
|
|
156
|
+
"onFile-added"?: ((files: FileUploadFile[]) => any) | undefined;
|
|
93
157
|
}>, {
|
|
94
158
|
label: string;
|
|
95
159
|
disabled: boolean;
|
|
@@ -2,6 +2,10 @@ import 'iconify-icon';
|
|
|
2
2
|
import { type PIconAlias } from './p-icon.types';
|
|
3
3
|
import { type IconifyIconProperties } from 'iconify-icon';
|
|
4
4
|
interface Props extends /* @vue-ignore */ IconifyIconProperties {
|
|
5
|
+
/**
|
|
6
|
+
* The icon to display. Can be an icon alias or any valid Iconify icon name.
|
|
7
|
+
* Icon aliases provide consistent icon naming across the application.
|
|
8
|
+
*/
|
|
5
9
|
icon: PIconAlias | (string & {});
|
|
6
10
|
}
|
|
7
11
|
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
/**
|
|
3
|
+
* Custom tooltip content - overrides the text prop.
|
|
4
|
+
* Use this slot for custom tooltip content instead of the text prop.
|
|
5
|
+
*/
|
|
6
|
+
default?: () => unknown;
|
|
7
|
+
};
|
|
1
8
|
type Props = {
|
|
9
|
+
/**
|
|
10
|
+
* Text content for the tooltip.
|
|
11
|
+
* If not provided, you can use the default slot instead.
|
|
12
|
+
*/
|
|
2
13
|
text?: string | null;
|
|
3
14
|
};
|
|
4
|
-
declare var __VLS_12: {};
|
|
5
|
-
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof __VLS_12) => any;
|
|
7
|
-
};
|
|
8
15
|
declare const __VLS_component: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
16
|
text: string | null;
|
|
10
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,20 +1,40 @@
|
|
|
1
1
|
import { type VueDatePickerProps } from '@vuepic/vue-datepicker';
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Custom label content - overrides the label prop.
|
|
5
|
+
* @param {string} label - The label text
|
|
6
|
+
* @param {string} label-classes - CSS classes for the label
|
|
7
|
+
*/
|
|
8
|
+
label?: (props: {
|
|
9
|
+
label: string;
|
|
10
|
+
labelClasses: string;
|
|
11
|
+
}) => unknown;
|
|
12
|
+
};
|
|
2
13
|
type Props = {
|
|
14
|
+
/**
|
|
15
|
+
* Text label for the date picker field.
|
|
16
|
+
* If not provided, you can use the label slot instead.
|
|
17
|
+
*/
|
|
3
18
|
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Error message to display below the date picker.
|
|
21
|
+
* When provided, the date picker will show error styling.
|
|
22
|
+
*/
|
|
4
23
|
errorMsg?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the date picker is required.
|
|
26
|
+
* Adds required attribute and visual indicator.
|
|
27
|
+
*/
|
|
5
28
|
required?: boolean;
|
|
6
29
|
} & VueDatePickerProps;
|
|
7
30
|
type __VLS_Props = Props;
|
|
8
31
|
type __VLS_PublicProps = __VLS_Props & {
|
|
32
|
+
/**
|
|
33
|
+
* The selected date value (v-model).
|
|
34
|
+
* Supports two-way binding for form inputs.
|
|
35
|
+
*/
|
|
9
36
|
modelValue?: Date | string | null;
|
|
10
37
|
};
|
|
11
|
-
declare var __VLS_1: {
|
|
12
|
-
label: string;
|
|
13
|
-
labelClasses: string;
|
|
14
|
-
};
|
|
15
|
-
type __VLS_Slots = {} & {
|
|
16
|
-
label?: (props: typeof __VLS_1) => any;
|
|
17
|
-
};
|
|
18
38
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
39
|
"update:modelValue": (value: string | Date | null) => any;
|
|
20
40
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -7,88 +7,153 @@ declare const INPUT_TYPES: {
|
|
|
7
7
|
type InputTypeKeys = keyof typeof INPUT_TYPES;
|
|
8
8
|
type InputType = (typeof INPUT_TYPES)[InputTypeKeys];
|
|
9
9
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
/**
|
|
11
|
+
* The current value of the input (v-model).
|
|
12
|
+
* Supports two-way binding for form inputs.
|
|
13
|
+
*/
|
|
10
14
|
modelValue: {
|
|
11
15
|
type: PropType<string | number | boolean | null>;
|
|
12
16
|
default: string;
|
|
13
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* The type of the input field.
|
|
20
|
+
* Valid values: 'text', 'password'
|
|
21
|
+
*/
|
|
14
22
|
type: {
|
|
15
23
|
type: PropType<InputType>;
|
|
16
24
|
default: string;
|
|
17
25
|
validator(value: InputType): boolean;
|
|
18
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Text label for the input field.
|
|
29
|
+
* If not provided, you can use the label slot instead.
|
|
30
|
+
*/
|
|
19
31
|
label: {
|
|
20
32
|
type: StringConstructor;
|
|
21
33
|
default: string;
|
|
22
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Error message to display below the input.
|
|
37
|
+
* When provided, the input will show error styling.
|
|
38
|
+
*/
|
|
23
39
|
errorMsg: {
|
|
24
40
|
type: StringConstructor;
|
|
25
41
|
default: string;
|
|
26
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Whether the input is required.
|
|
45
|
+
* Adds required attribute and visual indicator.
|
|
46
|
+
*/
|
|
27
47
|
required: {
|
|
28
48
|
type: BooleanConstructor;
|
|
29
49
|
default: boolean;
|
|
30
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* The size of the input - affects padding, font size, and spacing.
|
|
53
|
+
* Valid values: 'sm', 'md', 'lg'
|
|
54
|
+
*/
|
|
31
55
|
size: {
|
|
32
56
|
type: PropType<Size>;
|
|
33
57
|
default: string;
|
|
34
58
|
validator(value: Size): boolean;
|
|
35
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Whether the input has rounded corners.
|
|
62
|
+
* Applies rounded styling to the input field.
|
|
63
|
+
*/
|
|
36
64
|
rounded: {
|
|
37
65
|
type: BooleanConstructor;
|
|
38
66
|
default: boolean;
|
|
39
67
|
};
|
|
40
68
|
}>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
-
"update:modelValue": (
|
|
69
|
+
"update:modelValue": (value: string) => any;
|
|
42
70
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
+
/**
|
|
72
|
+
* The current value of the input (v-model).
|
|
73
|
+
* Supports two-way binding for form inputs.
|
|
74
|
+
*/
|
|
43
75
|
modelValue: {
|
|
44
76
|
type: PropType<string | number | boolean | null>;
|
|
45
77
|
default: string;
|
|
46
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* The type of the input field.
|
|
81
|
+
* Valid values: 'text', 'password'
|
|
82
|
+
*/
|
|
47
83
|
type: {
|
|
48
84
|
type: PropType<InputType>;
|
|
49
85
|
default: string;
|
|
50
86
|
validator(value: InputType): boolean;
|
|
51
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* Text label for the input field.
|
|
90
|
+
* If not provided, you can use the label slot instead.
|
|
91
|
+
*/
|
|
52
92
|
label: {
|
|
53
93
|
type: StringConstructor;
|
|
54
94
|
default: string;
|
|
55
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* Error message to display below the input.
|
|
98
|
+
* When provided, the input will show error styling.
|
|
99
|
+
*/
|
|
56
100
|
errorMsg: {
|
|
57
101
|
type: StringConstructor;
|
|
58
102
|
default: string;
|
|
59
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* Whether the input is required.
|
|
106
|
+
* Adds required attribute and visual indicator.
|
|
107
|
+
*/
|
|
60
108
|
required: {
|
|
61
109
|
type: BooleanConstructor;
|
|
62
110
|
default: boolean;
|
|
63
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* The size of the input - affects padding, font size, and spacing.
|
|
114
|
+
* Valid values: 'sm', 'md', 'lg'
|
|
115
|
+
*/
|
|
64
116
|
size: {
|
|
65
117
|
type: PropType<Size>;
|
|
66
118
|
default: string;
|
|
67
119
|
validator(value: Size): boolean;
|
|
68
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* Whether the input has rounded corners.
|
|
123
|
+
* Applies rounded styling to the input field.
|
|
124
|
+
*/
|
|
69
125
|
rounded: {
|
|
70
126
|
type: BooleanConstructor;
|
|
71
127
|
default: boolean;
|
|
72
128
|
};
|
|
73
129
|
}>> & Readonly<{
|
|
74
|
-
"onUpdate:modelValue"?: ((
|
|
130
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
75
131
|
}>, {
|
|
76
|
-
type: string;
|
|
77
132
|
size: "sm" | "md" | "lg";
|
|
133
|
+
type: string;
|
|
78
134
|
label: string;
|
|
79
135
|
required: boolean;
|
|
80
136
|
modelValue: string | number | boolean | null;
|
|
81
137
|
rounded: boolean;
|
|
82
138
|
errorMsg: string;
|
|
83
139
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
140
|
+
/**
|
|
141
|
+
* Custom label content - overrides the label prop.
|
|
142
|
+
* @param {string} label - The label text
|
|
143
|
+
* @param {string} label-classes - CSS classes for the label
|
|
144
|
+
*/
|
|
84
145
|
label?: (props: {
|
|
85
146
|
label: string;
|
|
86
147
|
labelClasses: string;
|
|
87
|
-
}) =>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
148
|
+
}) => unknown;
|
|
149
|
+
/**
|
|
150
|
+
* Content displayed before the input field.
|
|
151
|
+
*/
|
|
152
|
+
prefix?: () => unknown;
|
|
153
|
+
/**
|
|
154
|
+
* Content displayed after the input field.
|
|
155
|
+
*/
|
|
156
|
+
suffix?: () => unknown;
|
|
92
157
|
}>;
|
|
93
158
|
export default _default;
|
|
94
159
|
type __VLS_WithSlots<T, S> = T & {
|