@pantograph/pattern-vue 0.0.3 → 0.0.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 -2
- package/dist/ComponentMap-B1762IQM.js +21 -0
- package/dist/ComponentMap-Cwlxatbx.js +1 -0
- package/dist/ComponentMap.d.ts +1 -1
- package/dist/components/CoachMark/CoachMark.d.ts +52 -0
- package/dist/components/CoachMark/constant.d.ts +72 -0
- package/dist/components/CoachMark/index.d.ts +5 -0
- package/dist/components/CoachMark/model.d.ts +8 -0
- package/dist/components/CoachMark/types.d.ts +105 -0
- package/dist/components/Comment/Comment.d.ts +28 -0
- package/dist/components/Comment/CommentAction.d.ts +17 -0
- package/dist/components/Comment/CommentActions.d.ts +431 -0
- package/dist/components/Comment/CommentEditor.d.ts +67 -0
- package/dist/components/Comment/CommentFileList.d.ts +2 -0
- package/dist/components/Comment/CommentMention.d.ts +639 -0
- package/dist/components/Comment/CommentReaction.d.ts +11 -0
- package/dist/components/Comment/CommentReactionHoverCard.d.ts +10 -0
- package/dist/components/Comment/CommentReactionList.d.ts +217 -0
- package/dist/components/Comment/CommentReactionListItem.d.ts +3 -0
- package/dist/components/Comment/CommentTrigger.d.ts +15 -0
- package/dist/components/Comment/constant.d.ts +59 -0
- package/dist/components/Comment/context.d.ts +3 -0
- package/dist/components/Comment/index.d.ts +13 -0
- package/dist/components/Comment/types.d.ts +563 -0
- package/dist/components/Comment/useComment.d.ts +49 -0
- package/dist/components/DataTable/DataTable.d.ts +99 -0
- package/dist/components/DataTable/components/DataTableBatchActions.d.ts +9 -0
- package/dist/components/DataTable/components/DataTableBatchActionsContent.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableColGroup.d.ts +6 -0
- package/dist/components/DataTable/components/DataTableContent.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableEmpty.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableFooter.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableHeader.d.ts +57 -0
- package/dist/components/DataTable/components/DataTableHeaderCell.d.ts +243 -0
- package/dist/components/DataTable/components/DataTableHeaderCellActionsPopover.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableInsertBetween.d.ts +2 -0
- package/dist/components/DataTable/components/DataTableLazyLoading.d.ts +56 -0
- package/dist/components/DataTable/components/DataTableLoadingRow.d.ts +18 -0
- package/dist/components/DataTable/components/DataTableRow.d.ts +15 -0
- package/dist/components/DataTable/components/ThDragGhost.d.ts +16 -0
- package/dist/components/DataTable/constant.d.ts +20 -0
- package/dist/components/DataTable/context.d.ts +2 -0
- package/dist/components/DataTable/index.d.ts +5 -0
- package/dist/components/DataTable/types/cell.d.ts +15 -0
- package/dist/components/DataTable/types/column.d.ts +69 -0
- package/dist/components/DataTable/types/common.d.ts +18 -0
- package/dist/components/DataTable/types/context.d.ts +44 -0
- package/dist/components/DataTable/types/index.d.ts +139 -0
- package/dist/components/DataTable/types/select.d.ts +25 -0
- package/dist/components/DataTable/utils/index.d.ts +14 -0
- package/dist/components/DataTable/utils/useCell.d.ts +23 -0
- package/dist/components/DataTable/utils/useCol.d.ts +35 -0
- package/dist/components/DataTable/utils/useColumnFixed.d.ts +23 -0
- package/dist/components/DataTable/utils/useColumnOrder.d.ts +32 -0
- package/dist/components/DataTable/utils/useColumnPopover.d.ts +19 -0
- package/dist/components/DataTable/utils/useColumnSize.d.ts +14 -0
- package/dist/components/DataTable/utils/useColumnWrap.d.ts +7 -0
- package/dist/components/DataTable/utils/useFilter.d.ts +14 -0
- package/dist/components/DataTable/utils/useInsertBetween.d.ts +5 -0
- package/dist/components/DataTable/utils/useRow.d.ts +9 -0
- package/dist/components/DataTable/utils/useRowOrder.d.ts +114 -0
- package/dist/components/DataTable/utils/useRowVirtualizer.d.ts +12 -0
- package/dist/components/DataTable/utils/useSelection.d.ts +30 -0
- package/dist/components/DataTable/utils/useSort.d.ts +12 -0
- package/dist/components/Form/Form.d.ts +58 -0
- package/dist/components/Form/FormItem.d.ts +22 -0
- package/dist/components/Form/constant.d.ts +18 -0
- package/dist/components/Form/defineRules.d.ts +6 -0
- package/dist/components/Form/index.d.ts +5 -0
- package/dist/components/Form/types.d.ts +418 -0
- package/dist/components/GOPicker/GOItemSkeleton.d.ts +2 -0
- package/dist/components/GOPicker/GOPicker.d.ts +33 -0
- package/dist/components/GOPicker/constant.d.ts +40 -0
- package/dist/components/GOPicker/emojis.d.ts +24 -0
- package/dist/components/GOPicker/getEmojiList.d.ts +42 -0
- package/dist/components/GOPicker/icons.d.ts +9 -0
- package/dist/components/GOPicker/index.d.ts +6 -0
- package/dist/components/GOPicker/model.d.ts +16 -0
- package/dist/components/GOPicker/types.d.ts +353 -0
- package/dist/components/InputPassword/InputPassword.d.ts +4 -71
- package/dist/components/InputPassword/constant.d.ts +12 -0
- package/dist/components/InputPassword/index.d.ts +4 -8
- package/dist/components/InputPassword/types.d.ts +46 -0
- package/dist/components/ListView/ListView.d.ts +15 -0
- package/dist/components/ListView/ListViewItem.d.ts +10 -0
- package/dist/components/ListView/constant.d.ts +4 -0
- package/dist/components/ListView/index.d.ts +5 -0
- package/dist/components/ListView/types.d.ts +16 -0
- package/dist/index-D-WRsztv.js +3431 -0
- package/dist/index-DhcyeKI-.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +52 -4
- package/dist/index.umd.cjs +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/nuxt/index.umd.cjs +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/resolver/index.umd.cjs +1 -1
- package/dist/use/index.js +24437 -100
- package/dist/use/index.umd.cjs +30 -1
- package/package.json +11 -6
- package/dist/ComponentMap-BDQ8ar3z.js +0 -6
- package/dist/ComponentMap-CTyWVtmA.js +0 -1
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import { FormItemSize, FormContext as _FormContext, FormItemStatus, FormItemContext as _FormItemContext, DefineComponent } from '@pantograph/utils-vue';
|
|
2
|
+
import { ClassValue } from 'clsx';
|
|
3
|
+
import { FormOptions, GenericValidateFunction, InvalidSubmissionContext, RuleExpression, TypedSchema, FormContext as VeeValidateForm, YupSchema, FieldContext, FieldOptions } from 'vee-validate';
|
|
4
|
+
import { Direction, LabelProps } from '@pantograph/vue';
|
|
5
|
+
import { Ref } from 'vue';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the FormItem component
|
|
8
|
+
*/
|
|
9
|
+
export type FormItemProps = Partial<Omit<FieldOptions, 'initialValue'>> & Omit<LabelProps, 'size'> & {
|
|
10
|
+
/**
|
|
11
|
+
* Text direction for the component
|
|
12
|
+
*/
|
|
13
|
+
dir?: Direction;
|
|
14
|
+
/**
|
|
15
|
+
* CSS classes to apply to the form item
|
|
16
|
+
*/
|
|
17
|
+
class?: ClassValue;
|
|
18
|
+
/**
|
|
19
|
+
* CSS classes to apply to the input container
|
|
20
|
+
*/
|
|
21
|
+
inputCls?: ClassValue;
|
|
22
|
+
/**
|
|
23
|
+
* CSS classes to apply to the caption element
|
|
24
|
+
*/
|
|
25
|
+
captionCls?: ClassValue;
|
|
26
|
+
/**
|
|
27
|
+
* CSS classes to apply to the explanation container
|
|
28
|
+
*/
|
|
29
|
+
explanationCls?: ClassValue;
|
|
30
|
+
/**
|
|
31
|
+
* CSS classes to apply to individual explanation items
|
|
32
|
+
*/
|
|
33
|
+
explanationItemCls?: ClassValue;
|
|
34
|
+
/**
|
|
35
|
+
* Size of the form item
|
|
36
|
+
*/
|
|
37
|
+
size?: FormItemSize;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the form field (required)
|
|
40
|
+
*/
|
|
41
|
+
name: string | (string | number)[];
|
|
42
|
+
/**
|
|
43
|
+
* Validation rules for the field
|
|
44
|
+
*/
|
|
45
|
+
rules?: FormRuleItem;
|
|
46
|
+
/**
|
|
47
|
+
* Current value of the field (v-model)
|
|
48
|
+
*/
|
|
49
|
+
modelValue?: any;
|
|
50
|
+
/**
|
|
51
|
+
* ID for the form input element
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Caption text to display below the input
|
|
56
|
+
*/
|
|
57
|
+
caption?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Status of the form item (error, warning, success)
|
|
60
|
+
*/
|
|
61
|
+
status?: FormItemStatus;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the form item is disabled
|
|
64
|
+
*/
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to validate the field on blur
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
validateOnBlur?: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Events emitted by the FormItem component
|
|
74
|
+
*/
|
|
75
|
+
export interface FormItemEmits {
|
|
76
|
+
/**
|
|
77
|
+
* Emitted when the field value changes
|
|
78
|
+
*/
|
|
79
|
+
'update:modelValue': [value?: any];
|
|
80
|
+
/**
|
|
81
|
+
* Emitted when the field value changes
|
|
82
|
+
*/
|
|
83
|
+
change: [value?: any];
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Type for vee-validate field context
|
|
87
|
+
*/
|
|
88
|
+
export type FormField = FieldContext<any>;
|
|
89
|
+
/**
|
|
90
|
+
* Props passed to FormItem slots
|
|
91
|
+
*/
|
|
92
|
+
export type FormItemSlotsProps = {
|
|
93
|
+
status?: FormItemStatus;
|
|
94
|
+
/**
|
|
95
|
+
* FormField context from vee-validate
|
|
96
|
+
*/
|
|
97
|
+
field: FormField;
|
|
98
|
+
/**
|
|
99
|
+
* Form context (if inside a Form component)
|
|
100
|
+
*/
|
|
101
|
+
form?: FormType;
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated
|
|
104
|
+
*/
|
|
105
|
+
model: Ref<any, any>;
|
|
106
|
+
/**
|
|
107
|
+
* Blur event handler
|
|
108
|
+
*/
|
|
109
|
+
onBlur: (event: any) => void;
|
|
110
|
+
/**
|
|
111
|
+
* Change event handler
|
|
112
|
+
*/
|
|
113
|
+
onChange: (event: any) => void;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Type for individual form item slot items
|
|
117
|
+
*/
|
|
118
|
+
export type FormItemSlotItem = (data: FormItemSlotsProps) => never;
|
|
119
|
+
/**
|
|
120
|
+
* Slots for the FormItem component
|
|
121
|
+
*/
|
|
122
|
+
export interface FormItemSlots {
|
|
123
|
+
/**
|
|
124
|
+
* Slot for the label
|
|
125
|
+
*/
|
|
126
|
+
label?: FormItemSlotItem;
|
|
127
|
+
/**
|
|
128
|
+
* Slot for the leading icon
|
|
129
|
+
*/
|
|
130
|
+
leadingIcon?: FormItemSlotItem;
|
|
131
|
+
/**
|
|
132
|
+
* Slot for the required indicator
|
|
133
|
+
*/
|
|
134
|
+
required?: FormItemSlotItem;
|
|
135
|
+
/**
|
|
136
|
+
* Slot for the optional indicator
|
|
137
|
+
*/
|
|
138
|
+
optional?: FormItemSlotItem;
|
|
139
|
+
/**
|
|
140
|
+
* Slot for the info icon
|
|
141
|
+
*/
|
|
142
|
+
infoIcon?: FormItemSlotItem;
|
|
143
|
+
/**
|
|
144
|
+
* Slot for the info tooltip
|
|
145
|
+
*/
|
|
146
|
+
info?: FormItemSlotItem;
|
|
147
|
+
/**
|
|
148
|
+
* Slot for the description
|
|
149
|
+
*/
|
|
150
|
+
description?: FormItemSlotItem;
|
|
151
|
+
/**
|
|
152
|
+
* Default slot for the input component
|
|
153
|
+
*/
|
|
154
|
+
default?: (data: FormItemSlotsProps & {
|
|
155
|
+
id: string;
|
|
156
|
+
}) => never;
|
|
157
|
+
/**
|
|
158
|
+
* Slot for the caption
|
|
159
|
+
*/
|
|
160
|
+
caption?: FormItemSlotItem;
|
|
161
|
+
/**
|
|
162
|
+
* Slot for validation messages explanation
|
|
163
|
+
*/
|
|
164
|
+
explanation?: FormItemSlotItem;
|
|
165
|
+
/**
|
|
166
|
+
* Slot for individual validation messages
|
|
167
|
+
*/
|
|
168
|
+
explanationItem?: (data: FormItemSlotsProps & {
|
|
169
|
+
message: string;
|
|
170
|
+
}) => never;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Context type for the FormItem component
|
|
174
|
+
*/
|
|
175
|
+
export type FormItemContext = _FormItemContext<FormItemProps, FormField>;
|
|
176
|
+
/**
|
|
177
|
+
* Interface defining default validation rules available in the form
|
|
178
|
+
*/
|
|
179
|
+
interface DefaultValidators {
|
|
180
|
+
/**
|
|
181
|
+
* Validates that the field contains only alphabetic characters, numbers, dashes and underscores
|
|
182
|
+
*/
|
|
183
|
+
alpha_dash: string | {
|
|
184
|
+
/**
|
|
185
|
+
* Locale to use for validation
|
|
186
|
+
*/
|
|
187
|
+
locale?: string;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Validates that the field contains only alphabetic characters and numbers
|
|
191
|
+
*/
|
|
192
|
+
alpha_num: string | {
|
|
193
|
+
/**
|
|
194
|
+
* Locale to use for validation
|
|
195
|
+
*/
|
|
196
|
+
locale?: string;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Validates that the field contains only alphabetic characters and spaces
|
|
200
|
+
*/
|
|
201
|
+
alpha_spaces: string | {
|
|
202
|
+
/**
|
|
203
|
+
* Locale to use for validation
|
|
204
|
+
*/
|
|
205
|
+
locale?: string;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Validates that the field contains only alphabetic characters
|
|
209
|
+
*/
|
|
210
|
+
alpha: string | {
|
|
211
|
+
/**
|
|
212
|
+
* Locale to use for validation
|
|
213
|
+
*/
|
|
214
|
+
locale?: string;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Validates that the field value is between two values
|
|
218
|
+
*/
|
|
219
|
+
between: [string | number, string | number] | {
|
|
220
|
+
/**
|
|
221
|
+
* Minimum value
|
|
222
|
+
*/
|
|
223
|
+
min: number | string;
|
|
224
|
+
/**
|
|
225
|
+
* Maximum value
|
|
226
|
+
*/
|
|
227
|
+
max: number | string;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Validates that the field is confirmed by another field value
|
|
231
|
+
*/
|
|
232
|
+
confirmed: string | {
|
|
233
|
+
/**
|
|
234
|
+
* Target field name to confirm against
|
|
235
|
+
*/
|
|
236
|
+
target: string;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Validates that the field contains only digits with specified length
|
|
240
|
+
*/
|
|
241
|
+
digits: [string | number] | {
|
|
242
|
+
/**
|
|
243
|
+
* Required length of digits
|
|
244
|
+
*/
|
|
245
|
+
length: string | number;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Validates image dimensions
|
|
249
|
+
*/
|
|
250
|
+
dimensions: [number | string, number | string] | {
|
|
251
|
+
/**
|
|
252
|
+
* Required width
|
|
253
|
+
*/
|
|
254
|
+
width: string | number;
|
|
255
|
+
/**
|
|
256
|
+
* Required height
|
|
257
|
+
*/
|
|
258
|
+
height: string | number;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Validates that the field contains a valid email
|
|
262
|
+
*/
|
|
263
|
+
email: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Validates that the file has one of the specified extensions
|
|
266
|
+
*/
|
|
267
|
+
ext: string[];
|
|
268
|
+
/**
|
|
269
|
+
* Validates that the field contains an image file
|
|
270
|
+
*/
|
|
271
|
+
image: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Validates that the field contains an integer value
|
|
274
|
+
*/
|
|
275
|
+
integer: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Validates that the field value is not a specific value
|
|
278
|
+
*/
|
|
279
|
+
is_not: unknown;
|
|
280
|
+
/**
|
|
281
|
+
* Validates that the field value is a specific value
|
|
282
|
+
*/
|
|
283
|
+
is: unknown;
|
|
284
|
+
/**
|
|
285
|
+
* Validates the length of the field value
|
|
286
|
+
*/
|
|
287
|
+
length: string | number;
|
|
288
|
+
/**
|
|
289
|
+
* Validates that the field value is less than or equal to the maximum value
|
|
290
|
+
*/
|
|
291
|
+
max_value: string | number;
|
|
292
|
+
/**
|
|
293
|
+
* Validates that the field value length is less than or equal to the maximum
|
|
294
|
+
*/
|
|
295
|
+
max: string | number;
|
|
296
|
+
/**
|
|
297
|
+
* Validates that the file has one of the specified MIME types
|
|
298
|
+
*/
|
|
299
|
+
mimes: string[];
|
|
300
|
+
/**
|
|
301
|
+
* Validates that the field value is greater than or equal to the minimum value
|
|
302
|
+
*/
|
|
303
|
+
min_value: string | number;
|
|
304
|
+
/**
|
|
305
|
+
* Validates that the field value length is greater than or equal to the minimum
|
|
306
|
+
*/
|
|
307
|
+
min: string | number;
|
|
308
|
+
/**
|
|
309
|
+
* Validates that the field value is not one of the specified values
|
|
310
|
+
*/
|
|
311
|
+
not_one_of: unknown[];
|
|
312
|
+
/**
|
|
313
|
+
* Validates that the field contains only numeric characters
|
|
314
|
+
*/
|
|
315
|
+
numeric: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* Validates that the field value is one of the specified values
|
|
318
|
+
*/
|
|
319
|
+
one_of: unknown[];
|
|
320
|
+
/**
|
|
321
|
+
* Validates that the field matches a specified regular expression
|
|
322
|
+
*/
|
|
323
|
+
regex: string | RegExp;
|
|
324
|
+
/**
|
|
325
|
+
* Validates that the field is required and not empty
|
|
326
|
+
*/
|
|
327
|
+
required: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Validates the file size
|
|
330
|
+
*/
|
|
331
|
+
size: string | number;
|
|
332
|
+
/**
|
|
333
|
+
* Validates that the field contains a valid URL
|
|
334
|
+
*/
|
|
335
|
+
url: string | RegExp;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Type definition for form validation rules
|
|
339
|
+
*/
|
|
340
|
+
export type FormRuleItem<FT = any> = string | (Partial<DefaultValidators> & Record<string, unknown>) | GenericValidateFunction<FT> | GenericValidateFunction<FT>[] | TypedSchema<any> | YupSchema<any> | undefined;
|
|
341
|
+
/**
|
|
342
|
+
* Type for validation schema which can be an object of rules, a typed schema, or a Yup schema
|
|
343
|
+
*/
|
|
344
|
+
export type FormValidationSchema = Record<string, FormRuleItem> | TypedSchema | YupSchema;
|
|
345
|
+
/**
|
|
346
|
+
* Props for the Form component
|
|
347
|
+
*/
|
|
348
|
+
export interface FormProps extends Partial<Omit<FormOptions<any>, 'validationSchema'>> {
|
|
349
|
+
/**
|
|
350
|
+
* Text direction for the component
|
|
351
|
+
*/
|
|
352
|
+
dir?: Direction;
|
|
353
|
+
/**
|
|
354
|
+
* The validation schema for the form
|
|
355
|
+
*/
|
|
356
|
+
validationSchema?: FormValidationSchema;
|
|
357
|
+
/**
|
|
358
|
+
* The form data (v-model)
|
|
359
|
+
*/
|
|
360
|
+
modelValue?: object;
|
|
361
|
+
/**
|
|
362
|
+
* CSS classes to apply to the form
|
|
363
|
+
*/
|
|
364
|
+
class?: ClassValue;
|
|
365
|
+
/**
|
|
366
|
+
* Size for all form items in the form
|
|
367
|
+
*/
|
|
368
|
+
size?: FormItemSize;
|
|
369
|
+
/**
|
|
370
|
+
* Whether the form is disabled
|
|
371
|
+
*/
|
|
372
|
+
disabled?: boolean;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Events emitted by the Form component
|
|
376
|
+
*/
|
|
377
|
+
export interface FormEmits {
|
|
378
|
+
/**
|
|
379
|
+
* Emitted when the form data changes
|
|
380
|
+
*/
|
|
381
|
+
'update:modelValue': [value?: object];
|
|
382
|
+
/**
|
|
383
|
+
* Emitted when the form is submitted successfully
|
|
384
|
+
*/
|
|
385
|
+
submit: [data: object];
|
|
386
|
+
/**
|
|
387
|
+
* Emitted when form validation fails
|
|
388
|
+
*/
|
|
389
|
+
validationFail: [data: InvalidSubmissionContext];
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Type alias for the vee-validate form context
|
|
393
|
+
*/
|
|
394
|
+
export type FormType = VeeValidateForm;
|
|
395
|
+
/**
|
|
396
|
+
* Type for the form component exposes
|
|
397
|
+
*/
|
|
398
|
+
export type FormExposes = FormType;
|
|
399
|
+
/**
|
|
400
|
+
* Slots for the Form component
|
|
401
|
+
*/
|
|
402
|
+
export interface FormSlots {
|
|
403
|
+
/**
|
|
404
|
+
* Default slot for form content
|
|
405
|
+
*/
|
|
406
|
+
default?: (data: FormExposes) => never;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Context type for the Form component
|
|
410
|
+
*/
|
|
411
|
+
export type FormContext = _FormContext<FormProps, FormType, FormValidationSchema, FormRuleItem, RuleExpression<any>>;
|
|
412
|
+
declare module 'vue' {
|
|
413
|
+
interface GlobalComponents {
|
|
414
|
+
Form: DefineComponent<FormProps, FormSlots, FormEmits>;
|
|
415
|
+
FormItem: DefineComponent<FormItemProps, FormItemSlots, FormItemEmits>;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ColorSwatchGroupProps } from '@pantograph/vue';
|
|
2
|
+
import { GOItem, GOPickerModel, GOPickerProps, GOPickerSlots } from './types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<GOPickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
change: (value?: GOPickerModel | undefined) => any;
|
|
5
|
+
select: (value: GOItem) => any;
|
|
6
|
+
clear: () => any;
|
|
7
|
+
"update:group": (value?: "icon" | "emoji" | undefined) => any;
|
|
8
|
+
"update:search": (value?: string | undefined) => any;
|
|
9
|
+
"update:modelValue": (value?: GOPickerModel | undefined) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<GOPickerProps> & Readonly<{
|
|
11
|
+
onChange?: ((value?: GOPickerModel | undefined) => any) | undefined;
|
|
12
|
+
onSelect?: ((value: GOItem) => any) | undefined;
|
|
13
|
+
onClear?: (() => any) | undefined;
|
|
14
|
+
"onUpdate:group"?: ((value?: "icon" | "emoji" | undefined) => any) | undefined;
|
|
15
|
+
"onUpdate:search"?: ((value?: string | undefined) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value?: GOPickerModel | undefined) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
popoverProps: import('@pantograph/vue').PopoverProps;
|
|
20
|
+
bordered: boolean;
|
|
21
|
+
visibleTabs: ("icon" | "emoji")[];
|
|
22
|
+
colorPopoverProps: import('@pantograph/vue').PopoverProps;
|
|
23
|
+
fgColorSwatchGroupProps: ColorSwatchGroupProps;
|
|
24
|
+
bgColorSwatchGroupProps: ColorSwatchGroupProps;
|
|
25
|
+
brColorSwatchGroupProps: ColorSwatchGroupProps;
|
|
26
|
+
visibleColorPickers: ("br" | "fg" | "bg")[];
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<GOPickerSlots> & GOPickerSlots>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const goPickerPrefix: string;
|
|
2
|
+
export declare const GO_PICKER_DEFAULT_POPOVER_PROPS: {
|
|
3
|
+
forceMount: boolean;
|
|
4
|
+
disableOutsidePointerEvents: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Default props for the GOPicker component
|
|
8
|
+
*/
|
|
9
|
+
export declare const GO_PICKER_DEFAULT_PROPS: {
|
|
10
|
+
readonly visibleTabs: () => ("icon" | "emoji")[];
|
|
11
|
+
readonly visibleColorPickers: () => ("br" | "fg" | "bg")[];
|
|
12
|
+
readonly popoverProps: () => {
|
|
13
|
+
forceMount: boolean;
|
|
14
|
+
disableOutsidePointerEvents: boolean;
|
|
15
|
+
};
|
|
16
|
+
readonly colorPopoverProps: () => {
|
|
17
|
+
forceMount: boolean;
|
|
18
|
+
disableOutsidePointerEvents: boolean;
|
|
19
|
+
};
|
|
20
|
+
readonly fgColorSwatchGroupProps: () => {
|
|
21
|
+
popoverProps: {
|
|
22
|
+
forceMount: boolean;
|
|
23
|
+
disableOutsidePointerEvents: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly bgColorSwatchGroupProps: () => {
|
|
27
|
+
popoverProps: {
|
|
28
|
+
forceMount: boolean;
|
|
29
|
+
disableOutsidePointerEvents: boolean;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly brColorSwatchGroupProps: () => {
|
|
33
|
+
popoverProps: {
|
|
34
|
+
forceMount: boolean;
|
|
35
|
+
disableOutsidePointerEvents: boolean;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly disabled: undefined;
|
|
39
|
+
readonly bordered: true;
|
|
40
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of emoji items for the GOPicker component
|
|
3
|
+
* Each item includes the emoji character, group, and associated keywords
|
|
4
|
+
*/
|
|
5
|
+
declare const emojiList: ({
|
|
6
|
+
value: string;
|
|
7
|
+
group: number;
|
|
8
|
+
keywords: string[];
|
|
9
|
+
skins?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
value: string;
|
|
12
|
+
group: number;
|
|
13
|
+
skins: ({
|
|
14
|
+
value: string;
|
|
15
|
+
version: number;
|
|
16
|
+
tone: number;
|
|
17
|
+
} | {
|
|
18
|
+
value: string;
|
|
19
|
+
version: number;
|
|
20
|
+
tone: number[];
|
|
21
|
+
})[];
|
|
22
|
+
keywords: string[];
|
|
23
|
+
})[];
|
|
24
|
+
export default emojiList;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comprehensive list of emojis for the GOPicker component
|
|
3
|
+
* Contains detailed emoji data including values, groups, and keywords
|
|
4
|
+
*/
|
|
5
|
+
export declare const emojiList: ({
|
|
6
|
+
value: string;
|
|
7
|
+
group: number;
|
|
8
|
+
keywords: string[];
|
|
9
|
+
skins?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
value: string;
|
|
12
|
+
group: number;
|
|
13
|
+
skins: ({
|
|
14
|
+
value: string;
|
|
15
|
+
version: number;
|
|
16
|
+
tone: number;
|
|
17
|
+
} | {
|
|
18
|
+
value: string;
|
|
19
|
+
version: number;
|
|
20
|
+
tone: number[];
|
|
21
|
+
})[];
|
|
22
|
+
keywords: string[];
|
|
23
|
+
})[];
|
|
24
|
+
export declare const getEmojiList: (list: string[]) => ({
|
|
25
|
+
value: string;
|
|
26
|
+
group: number;
|
|
27
|
+
keywords: string[];
|
|
28
|
+
skins?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
value: string;
|
|
31
|
+
group: number;
|
|
32
|
+
skins: ({
|
|
33
|
+
value: string;
|
|
34
|
+
version: number;
|
|
35
|
+
tone: number;
|
|
36
|
+
} | {
|
|
37
|
+
value: string;
|
|
38
|
+
version: number;
|
|
39
|
+
tone: number[];
|
|
40
|
+
})[];
|
|
41
|
+
keywords: string[];
|
|
42
|
+
})[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of available picker groups
|
|
3
|
+
*/
|
|
4
|
+
export declare const GoPickerGroups: readonly ["icon", "emoji"];
|
|
5
|
+
/**
|
|
6
|
+
* Type representing the possible picker groups
|
|
7
|
+
*/
|
|
8
|
+
export type GoPickerGroup = (typeof GoPickerGroups)[number];
|
|
9
|
+
/**
|
|
10
|
+
* Array of available color options for the picker
|
|
11
|
+
*/
|
|
12
|
+
export declare const GoPickerColors: readonly ["fg", "bg", "br"];
|
|
13
|
+
/**
|
|
14
|
+
* Type representing the possible color options
|
|
15
|
+
*/
|
|
16
|
+
export type GoPickerColor = (typeof GoPickerColors)[number];
|