@pequity/squirrel 8.4.4 → 8.5.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/README.md +31 -1
- package/dist/cjs/chunks/index.js +530 -179
- package/dist/cjs/chunks/p-alert.js +14 -16
- package/dist/cjs/chunks/p-avatar.js +16 -0
- package/dist/cjs/chunks/p-btn.js +4 -1
- 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 +15 -4
- 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 +72 -29
- package/dist/cjs/inputClasses.js +3 -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-icon.js +2 -1
- package/dist/cjs/p-input-search.js +13 -1
- package/dist/cjs/p-loading.js +3 -3
- package/dist/cjs/p-modal.js +125 -43
- 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 +32 -2
- package/dist/cjs/p-table-td.js +1 -1
- package/dist/cjs/p-table.js +2 -0
- package/dist/cjs/p-toggle.js +22 -1
- package/dist/cjs/usePTableHeaderWrap.js +38 -0
- package/dist/es/chunks/index.js +530 -179
- package/dist/es/chunks/p-alert.js +14 -16
- package/dist/es/chunks/p-avatar.js +16 -0
- package/dist/es/chunks/p-btn.js +5 -2
- 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 +15 -4
- 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 +77 -34
- package/dist/es/inputClasses.js +4 -4
- 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-icon.js +2 -1
- package/dist/es/p-input-search.js +13 -1
- package/dist/es/p-loading.js +3 -3
- package/dist/es/p-modal.js +125 -43
- 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 +32 -2
- package/dist/es/p-table-td.js +1 -1
- package/dist/es/p-table.js +2 -0
- package/dist/es/p-toggle.js +22 -1
- package/dist/es/usePTableHeaderWrap.js +38 -0
- package/dist/squirrel/components/p-action-bar/p-action-bar.vue.d.ts +15 -3
- package/dist/squirrel/components/p-alert/p-alert.vue.d.ts +18 -5
- package/dist/squirrel/components/p-avatar/p-avatar.vue.d.ts +36 -1
- package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +21 -5
- package/dist/squirrel/components/p-card/p-card.vue.d.ts +21 -8
- package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +26 -8
- 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 +14 -1
- package/dist/squirrel/components/p-date-picker/p-date-picker.vue.d.ts +17 -1
- package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +153 -15
- 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 +70 -2
- package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +71 -7
- package/dist/squirrel/components/p-icon/p-icon.types.d.ts +1 -0
- package/dist/squirrel/components/p-icon/p-icon.vue.d.ts +5 -1
- package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +12 -5
- package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +28 -8
- package/dist/squirrel/components/p-input/p-input.vue.d.ts +74 -9
- 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 +23 -3
- package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +25 -1
- package/dist/squirrel/components/p-link/p-link.vue.d.ts +1 -1
- package/dist/squirrel/components/p-loading/p-loading.vue.d.ts +1 -1
- package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +190 -16
- package/dist/squirrel/components/p-pagination/p-pagination.vue.d.ts +23 -13
- package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +17 -9
- package/dist/squirrel/components/p-progress-bar/p-progress-bar.vue.d.ts +21 -1
- package/dist/squirrel/components/p-ring-loader/p-ring-loader.vue.d.ts +11 -1
- package/dist/squirrel/components/p-select/p-select.vue.d.ts +77 -7
- package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +68 -11
- package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +2 -2
- 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 +13 -1
- package/dist/squirrel/components/p-table/p-table.types.d.ts +1 -0
- package/dist/squirrel/components/p-table/p-table.vue.d.ts +33 -1
- package/dist/squirrel/components/p-table/usePTableHeaderWrap.d.ts +4 -0
- package/dist/squirrel/components/p-table-header-cell/p-table-filter-icon.vue.d.ts +7 -1
- package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +59 -4
- package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +41 -1
- package/dist/squirrel/components/p-table-sort/p-table-sort.vue.d.ts +13 -3
- package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +13 -1
- package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +34 -3
- package/dist/squirrel/components/p-tabs-pills/p-tabs-pills.vue.d.ts +23 -1
- package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +53 -9
- package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +51 -4
- package/dist/squirrel.css +68 -68
- package/package.json +24 -22
- 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.spec.js +4 -4
- package/squirrel/components/p-alert/p-alert.stories.js +19 -13
- package/squirrel/components/p-alert/p-alert.vue +33 -11
- 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.types.ts +1 -0
- 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-basic.spec.js +29 -3
- package/squirrel/components/p-modal/p-modal.vue +182 -35
- 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.spec.js +51 -15
- package/squirrel/components/p-table/p-table.types.ts +2 -0
- package/squirrel/components/p-table/p-table.vue +46 -4
- package/squirrel/components/p-table/usePTableHeaderWrap.spec.js +118 -0
- package/squirrel/components/p-table/usePTableHeaderWrap.ts +45 -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.spec.js +5 -1
- package/squirrel/components/p-table-header-cell/p-table-header-cell.vue +38 -1
- 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
|
@@ -1,64 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A drawer component that slides in from the side with backdrop and animations.
|
|
3
|
+
* Provides a side panel interface with customizable position, width, and content areas.
|
|
4
|
+
* Supports teleporting to different DOM elements and comprehensive lifecycle events.
|
|
5
|
+
*
|
|
6
|
+
* @displayName PDrawer
|
|
7
|
+
*/
|
|
1
8
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
/**
|
|
10
|
+
* Target element to append the drawer to.
|
|
11
|
+
* Usually 'body' for proper z-index stacking.
|
|
12
|
+
*/
|
|
2
13
|
appendTo: {
|
|
3
14
|
type: StringConstructor;
|
|
4
15
|
default: string;
|
|
5
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Title displayed in the drawer header.
|
|
19
|
+
* Used for accessibility and visual identification.
|
|
20
|
+
*/
|
|
6
21
|
title: {
|
|
7
22
|
type: StringConstructor;
|
|
8
23
|
default: string;
|
|
9
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Whether the drawer content is disabled.
|
|
27
|
+
* Prevents user interaction with drawer content.
|
|
28
|
+
*/
|
|
10
29
|
disabled: {
|
|
11
30
|
type: BooleanConstructor;
|
|
12
31
|
default: boolean;
|
|
13
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* Error message to display in the drawer.
|
|
35
|
+
* Shows an error alert above the drawer content.
|
|
36
|
+
*/
|
|
14
37
|
errorMsg: {
|
|
15
38
|
type: StringConstructor;
|
|
16
39
|
default: string;
|
|
17
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* The position of the drawer on the screen.
|
|
43
|
+
* Valid values: 'left', 'right'
|
|
44
|
+
* @values left, right
|
|
45
|
+
*/
|
|
18
46
|
position: {
|
|
19
47
|
type: StringConstructor;
|
|
20
48
|
default: string;
|
|
21
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Base z-index for the drawer.
|
|
52
|
+
* Higher values ensure the drawer appears above other content.
|
|
53
|
+
*/
|
|
22
54
|
zIndex: {
|
|
23
55
|
type: NumberConstructor;
|
|
24
56
|
default: number;
|
|
25
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Inline styles for the drawer element.
|
|
60
|
+
* Applied directly to the drawer element.
|
|
61
|
+
*/
|
|
26
62
|
drawerStyle: {
|
|
27
63
|
type: ObjectConstructor;
|
|
28
64
|
default: () => {};
|
|
29
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* CSS class for the drawer container.
|
|
68
|
+
* Controls the base styling of the drawer.
|
|
69
|
+
*/
|
|
30
70
|
drawerClass: {
|
|
31
71
|
type: StringConstructor;
|
|
32
72
|
default: string;
|
|
33
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* CSS class for the drawer entrance animation.
|
|
76
|
+
* Overrides the default position-based animation.
|
|
77
|
+
*/
|
|
34
78
|
inClass: {
|
|
35
79
|
type: StringConstructor;
|
|
36
80
|
default: string;
|
|
37
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* CSS class for the drawer exit animation.
|
|
84
|
+
* Overrides the default position-based animation.
|
|
85
|
+
*/
|
|
38
86
|
outClass: {
|
|
39
87
|
type: StringConstructor;
|
|
40
88
|
default: string;
|
|
41
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* Whether the drawer should be mounted immediately.
|
|
92
|
+
* Useful for drawers that are always present in the DOM.
|
|
93
|
+
*/
|
|
42
94
|
live: {
|
|
43
95
|
type: BooleanConstructor;
|
|
44
96
|
default: boolean;
|
|
45
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* Controls the visibility of the drawer (v-model).
|
|
100
|
+
* Supports two-way binding for drawer state.
|
|
101
|
+
*/
|
|
46
102
|
modelValue: {
|
|
47
103
|
type: BooleanConstructor;
|
|
48
104
|
default: boolean;
|
|
49
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* Accessibility label for the close button.
|
|
108
|
+
* Used by screen readers for better accessibility.
|
|
109
|
+
*/
|
|
50
110
|
closeLabel: {
|
|
51
111
|
type: StringConstructor;
|
|
52
112
|
default: string;
|
|
53
113
|
};
|
|
114
|
+
/**
|
|
115
|
+
* Whether to show the backdrop behind the drawer.
|
|
116
|
+
* When true, displays a semi-transparent overlay.
|
|
117
|
+
*/
|
|
54
118
|
showBackdrop: {
|
|
55
119
|
type: BooleanConstructor;
|
|
56
120
|
default: boolean;
|
|
57
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Whether the drawer can be closed by user interaction.
|
|
124
|
+
* Controls close button visibility and backdrop click behavior.
|
|
125
|
+
*/
|
|
58
126
|
enableClose: {
|
|
59
127
|
type: BooleanConstructor;
|
|
60
128
|
default: boolean;
|
|
61
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Width of the drawer.
|
|
132
|
+
* Must be a valid CSS width value ending with 'px'.
|
|
133
|
+
* @values 460px, 600px, 800px, etc.
|
|
134
|
+
*/
|
|
62
135
|
width: {
|
|
63
136
|
type: StringConstructor;
|
|
64
137
|
default: string;
|
|
@@ -80,66 +153,132 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
153
|
closing(): void;
|
|
81
154
|
closed(): void;
|
|
82
155
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "closed" | "before-open" | "opening" | "opened" | "before-close" | "closing")[], "update:modelValue" | "closed" | "before-open" | "opening" | "opened" | "before-close" | "closing", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
156
|
+
/**
|
|
157
|
+
* Target element to append the drawer to.
|
|
158
|
+
* Usually 'body' for proper z-index stacking.
|
|
159
|
+
*/
|
|
83
160
|
appendTo: {
|
|
84
161
|
type: StringConstructor;
|
|
85
162
|
default: string;
|
|
86
163
|
};
|
|
164
|
+
/**
|
|
165
|
+
* Title displayed in the drawer header.
|
|
166
|
+
* Used for accessibility and visual identification.
|
|
167
|
+
*/
|
|
87
168
|
title: {
|
|
88
169
|
type: StringConstructor;
|
|
89
170
|
default: string;
|
|
90
171
|
};
|
|
172
|
+
/**
|
|
173
|
+
* Whether the drawer content is disabled.
|
|
174
|
+
* Prevents user interaction with drawer content.
|
|
175
|
+
*/
|
|
91
176
|
disabled: {
|
|
92
177
|
type: BooleanConstructor;
|
|
93
178
|
default: boolean;
|
|
94
179
|
};
|
|
180
|
+
/**
|
|
181
|
+
* Error message to display in the drawer.
|
|
182
|
+
* Shows an error alert above the drawer content.
|
|
183
|
+
*/
|
|
95
184
|
errorMsg: {
|
|
96
185
|
type: StringConstructor;
|
|
97
186
|
default: string;
|
|
98
187
|
};
|
|
188
|
+
/**
|
|
189
|
+
* The position of the drawer on the screen.
|
|
190
|
+
* Valid values: 'left', 'right'
|
|
191
|
+
* @values left, right
|
|
192
|
+
*/
|
|
99
193
|
position: {
|
|
100
194
|
type: StringConstructor;
|
|
101
195
|
default: string;
|
|
102
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* Base z-index for the drawer.
|
|
199
|
+
* Higher values ensure the drawer appears above other content.
|
|
200
|
+
*/
|
|
103
201
|
zIndex: {
|
|
104
202
|
type: NumberConstructor;
|
|
105
203
|
default: number;
|
|
106
204
|
};
|
|
205
|
+
/**
|
|
206
|
+
* Inline styles for the drawer element.
|
|
207
|
+
* Applied directly to the drawer element.
|
|
208
|
+
*/
|
|
107
209
|
drawerStyle: {
|
|
108
210
|
type: ObjectConstructor;
|
|
109
211
|
default: () => {};
|
|
110
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* CSS class for the drawer container.
|
|
215
|
+
* Controls the base styling of the drawer.
|
|
216
|
+
*/
|
|
111
217
|
drawerClass: {
|
|
112
218
|
type: StringConstructor;
|
|
113
219
|
default: string;
|
|
114
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* CSS class for the drawer entrance animation.
|
|
223
|
+
* Overrides the default position-based animation.
|
|
224
|
+
*/
|
|
115
225
|
inClass: {
|
|
116
226
|
type: StringConstructor;
|
|
117
227
|
default: string;
|
|
118
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* CSS class for the drawer exit animation.
|
|
231
|
+
* Overrides the default position-based animation.
|
|
232
|
+
*/
|
|
119
233
|
outClass: {
|
|
120
234
|
type: StringConstructor;
|
|
121
235
|
default: string;
|
|
122
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* Whether the drawer should be mounted immediately.
|
|
239
|
+
* Useful for drawers that are always present in the DOM.
|
|
240
|
+
*/
|
|
123
241
|
live: {
|
|
124
242
|
type: BooleanConstructor;
|
|
125
243
|
default: boolean;
|
|
126
244
|
};
|
|
245
|
+
/**
|
|
246
|
+
* Controls the visibility of the drawer (v-model).
|
|
247
|
+
* Supports two-way binding for drawer state.
|
|
248
|
+
*/
|
|
127
249
|
modelValue: {
|
|
128
250
|
type: BooleanConstructor;
|
|
129
251
|
default: boolean;
|
|
130
252
|
};
|
|
253
|
+
/**
|
|
254
|
+
* Accessibility label for the close button.
|
|
255
|
+
* Used by screen readers for better accessibility.
|
|
256
|
+
*/
|
|
131
257
|
closeLabel: {
|
|
132
258
|
type: StringConstructor;
|
|
133
259
|
default: string;
|
|
134
260
|
};
|
|
261
|
+
/**
|
|
262
|
+
* Whether to show the backdrop behind the drawer.
|
|
263
|
+
* When true, displays a semi-transparent overlay.
|
|
264
|
+
*/
|
|
135
265
|
showBackdrop: {
|
|
136
266
|
type: BooleanConstructor;
|
|
137
267
|
default: boolean;
|
|
138
268
|
};
|
|
269
|
+
/**
|
|
270
|
+
* Whether the drawer can be closed by user interaction.
|
|
271
|
+
* Controls close button visibility and backdrop click behavior.
|
|
272
|
+
*/
|
|
139
273
|
enableClose: {
|
|
140
274
|
type: BooleanConstructor;
|
|
141
275
|
default: boolean;
|
|
142
276
|
};
|
|
277
|
+
/**
|
|
278
|
+
* Width of the drawer.
|
|
279
|
+
* Must be a valid CSS width value ending with 'px'.
|
|
280
|
+
* @values 460px, 600px, 800px, etc.
|
|
281
|
+
*/
|
|
143
282
|
width: {
|
|
144
283
|
type: StringConstructor;
|
|
145
284
|
default: string;
|
|
@@ -174,12 +313,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
174
313
|
PAlert: {
|
|
175
314
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
176
315
|
type: {
|
|
177
|
-
type: import("vue").PropType<"info" | "
|
|
316
|
+
type: import("vue").PropType<"info" | "warning" | "error" | "success">;
|
|
178
317
|
default: string;
|
|
179
|
-
validator(value: "info" | "
|
|
318
|
+
validator(value: "info" | "warning" | "error" | "success"): boolean;
|
|
180
319
|
};
|
|
181
|
-
}>> & Readonly<{}>,
|
|
182
|
-
type: "info" | "
|
|
320
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
321
|
+
type: "info" | "warning" | "error" | "success";
|
|
183
322
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
184
323
|
P: {};
|
|
185
324
|
B: {};
|
|
@@ -189,29 +328,28 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
189
328
|
Defaults: {};
|
|
190
329
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
191
330
|
type: {
|
|
192
|
-
type: import("vue").PropType<"info" | "
|
|
331
|
+
type: import("vue").PropType<"info" | "warning" | "error" | "success">;
|
|
193
332
|
default: string;
|
|
194
|
-
validator(value: "info" | "
|
|
333
|
+
validator(value: "info" | "warning" | "error" | "success"): boolean;
|
|
195
334
|
};
|
|
196
335
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
197
|
-
type: "info" | "
|
|
336
|
+
type: "info" | "warning" | "error" | "success";
|
|
198
337
|
}>;
|
|
199
338
|
__isFragment?: never;
|
|
200
339
|
__isTeleport?: never;
|
|
201
340
|
__isSuspense?: never;
|
|
202
341
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
203
342
|
type: {
|
|
204
|
-
type: import("vue").PropType<"info" | "
|
|
343
|
+
type: import("vue").PropType<"info" | "warning" | "error" | "success">;
|
|
205
344
|
default: string;
|
|
206
|
-
validator(value: "info" | "
|
|
345
|
+
validator(value: "info" | "warning" | "error" | "success"): boolean;
|
|
207
346
|
};
|
|
208
|
-
}>> & Readonly<{}>,
|
|
209
|
-
type: "info" | "
|
|
347
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
348
|
+
type: "info" | "warning" | "error" | "success";
|
|
210
349
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
211
350
|
$slots: {
|
|
212
|
-
icon?: (
|
|
213
|
-
|
|
214
|
-
default?: (props: {}) => any;
|
|
351
|
+
icon?: () => unknown;
|
|
352
|
+
default?: () => unknown;
|
|
215
353
|
};
|
|
216
354
|
});
|
|
217
355
|
PCloseBtn: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -219,7 +357,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
219
357
|
type: import("vue").PropType<"transparent" | "gray" | "dark">;
|
|
220
358
|
default: string;
|
|
221
359
|
};
|
|
222
|
-
}>,
|
|
360
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
223
361
|
variant: {
|
|
224
362
|
type: import("vue").PropType<"transparent" | "gray" | "dark">;
|
|
225
363
|
default: string;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { type ListKeyboardNavigationInstance } from '../../utils/listKeyboardNavigation';
|
|
2
|
+
/**
|
|
3
|
+
* A dropdown component that extends VDropdown with keyboard navigation and Pequity design system styling.
|
|
4
|
+
* Provides dropdown menu functionality with arrow key navigation, escape key closing, and customizable styling.
|
|
5
|
+
* Supports both dropdown lists and generic popover content with comprehensive accessibility features.
|
|
6
|
+
*
|
|
7
|
+
* @displayName PDropdown
|
|
8
|
+
*/
|
|
2
9
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
10
|
/**
|
|
4
11
|
* Enables navigation for `.dropdown-item` using the up/down keys.
|
|
@@ -10,6 +17,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
17
|
};
|
|
11
18
|
/**
|
|
12
19
|
* Enables closing the dropdown with the Escape key.
|
|
20
|
+
* When true, pressing Escape will close the dropdown.
|
|
13
21
|
*/
|
|
14
22
|
enableCloseOnEsc: {
|
|
15
23
|
type: BooleanConstructor;
|
|
@@ -17,7 +25,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
17
25
|
};
|
|
18
26
|
/**
|
|
19
27
|
* v-tooltip wraps the popper trigger with a div that has `display: inline-block` set by default.
|
|
20
|
-
* This prop is used to override the CSS style of that wrapper div
|
|
28
|
+
* This prop is used to override the CSS style of that wrapper div.
|
|
21
29
|
*/
|
|
22
30
|
triggerStyle: {
|
|
23
31
|
type: ObjectConstructor;
|
|
@@ -54,6 +62,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
54
62
|
};
|
|
55
63
|
/**
|
|
56
64
|
* Enables closing the dropdown with the Escape key.
|
|
65
|
+
* When true, pressing Escape will close the dropdown.
|
|
57
66
|
*/
|
|
58
67
|
enableCloseOnEsc: {
|
|
59
68
|
type: BooleanConstructor;
|
|
@@ -61,7 +70,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
70
|
};
|
|
62
71
|
/**
|
|
63
72
|
* v-tooltip wraps the popper trigger with a div that has `display: inline-block` set by default.
|
|
64
|
-
* This prop is used to override the CSS style of that wrapper div
|
|
73
|
+
* This prop is used to override the CSS style of that wrapper div.
|
|
65
74
|
*/
|
|
66
75
|
triggerStyle: {
|
|
67
76
|
type: ObjectConstructor;
|
|
@@ -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;
|
|
@@ -155,11 +189,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
155
189
|
type: BooleanConstructor;
|
|
156
190
|
default: boolean;
|
|
157
191
|
};
|
|
158
|
-
}>,
|
|
192
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
159
193
|
select: (...args: any[]) => void;
|
|
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;
|