sprintify-ui 0.8.69 → 0.9.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.
@@ -1,5 +1,6 @@
1
1
  import { RawOption } from '@/types';
2
2
  import { PropType } from 'vue';
3
+ import { Size } from '@/utils/sizes';
3
4
  declare function __VLS_template(): {
4
5
  slots: {
5
6
  items?(_: {
@@ -18,7 +19,6 @@ declare function __VLS_template(): {
18
19
  active: boolean;
19
20
  }): any;
20
21
  empty?(_: {
21
- firstSearch: boolean;
22
22
  focus: () => void;
23
23
  blur: () => void;
24
24
  open: () => void;
@@ -26,11 +26,11 @@ declare function __VLS_template(): {
26
26
  keywords: import("vue").ComputedRef<string>;
27
27
  }): any;
28
28
  footer?(_: {
29
- keywords: string;
30
29
  focus: () => void;
31
30
  blur: () => void;
32
31
  open: () => void;
33
32
  close: () => void;
33
+ keywords: import("vue").ComputedRef<string>;
34
34
  options: import("@/types").NormalizedOption[];
35
35
  }): any;
36
36
  };
@@ -39,30 +39,47 @@ declare function __VLS_template(): {
39
39
  $: import("vue").ComponentInternalInstance;
40
40
  $data: {};
41
41
  $props: Partial<{
42
+ filter: (option: import("@/types").NormalizedOption) => boolean;
42
43
  required: boolean;
44
+ size: "xs" | "sm" | "md" | "lg" | "xl";
45
+ name: string;
43
46
  disabled: boolean;
47
+ inline: boolean;
44
48
  placeholder: string;
45
49
  hasError: boolean;
46
50
  max: number;
51
+ visibleFocus: boolean;
52
+ loading: boolean;
53
+ loadingBottom: boolean;
54
+ dropdownShow: "always" | "focus";
47
55
  focusOnMount: boolean;
48
- queryKey: string;
56
+ twContainer: string | string[];
49
57
  }> & Omit<{
50
- readonly required: boolean;
58
+ readonly options: RawOption[];
51
59
  readonly disabled: boolean;
52
- readonly modelValue: RawOption[];
60
+ readonly inline: boolean;
61
+ readonly modelValue: RawOption[] | null;
53
62
  readonly hasError: boolean;
54
- readonly url: string;
63
+ readonly visibleFocus: boolean;
55
64
  readonly labelKey: string;
56
65
  readonly valueKey: string;
66
+ readonly loading: boolean;
67
+ readonly loadingBottom: boolean;
68
+ readonly dropdownShow: "always" | "focus";
57
69
  readonly focusOnMount: boolean;
58
- readonly queryKey: string;
70
+ readonly twContainer: string | string[];
71
+ readonly filter?: ((option: import("@/types").NormalizedOption) => boolean) | undefined;
72
+ readonly required?: boolean | undefined;
73
+ readonly size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
74
+ readonly name?: string | undefined;
59
75
  readonly placeholder?: string | undefined;
60
76
  readonly max?: number | undefined;
61
- readonly onFocus?: ((...args: any[]) => any) | undefined;
77
+ readonly onClose?: ((...args: any[]) => any) | undefined;
62
78
  readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
63
79
  readonly onScrollBottom?: ((...args: any[]) => any) | undefined;
64
80
  readonly onTyping?: ((...args: any[]) => any) | undefined;
65
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "disabled" | "placeholder" | "hasError" | "max" | "focusOnMount" | "queryKey">;
81
+ readonly onOpen?: ((...args: any[]) => any) | undefined;
82
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "filter" | "required" | "size" | "name" | "disabled" | "inline" | "placeholder" | "hasError" | "max" | "visibleFocus" | "loading" | "loadingBottom" | "dropdownShow" | "focusOnMount" | "twContainer">;
66
83
  $attrs: {
67
84
  [x: string]: unknown;
68
85
  };
@@ -75,16 +92,16 @@ declare function __VLS_template(): {
75
92
  $root: import("vue").ComponentPublicInstance | null;
76
93
  $parent: import("vue").ComponentPublicInstance | null;
77
94
  $host: Element | null;
78
- $emit: ((event: "focus", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void) & ((event: "typing", ...args: any[]) => void);
95
+ $emit: ((event: "close", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "scrollBottom", ...args: any[]) => void) & ((event: "typing", ...args: any[]) => void) & ((event: "open", ...args: any[]) => void);
79
96
  $el: any;
80
97
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
81
98
  modelValue: {
82
99
  required: true;
83
- type: PropType<RawOption[]>;
100
+ type: PropType<RawOption[] | null>;
84
101
  };
85
- url: {
102
+ options: {
86
103
  required: true;
87
- type: StringConstructor;
104
+ type: PropType<RawOption[]>;
88
105
  };
89
106
  labelKey: {
90
107
  required: true;
@@ -94,14 +111,26 @@ declare function __VLS_template(): {
94
111
  required: true;
95
112
  type: StringConstructor;
96
113
  };
114
+ name: {
115
+ default: undefined;
116
+ type: StringConstructor;
117
+ };
97
118
  placeholder: {
98
119
  default: undefined;
99
120
  type: StringConstructor;
100
121
  };
101
- required: {
122
+ loading: {
123
+ default: boolean;
124
+ type: BooleanConstructor;
125
+ };
126
+ loadingBottom: {
102
127
  default: boolean;
103
128
  type: BooleanConstructor;
104
129
  };
130
+ required: {
131
+ default: undefined;
132
+ type: BooleanConstructor;
133
+ };
105
134
  disabled: {
106
135
  default: boolean;
107
136
  type: BooleanConstructor;
@@ -110,42 +139,72 @@ declare function __VLS_template(): {
110
139
  default: undefined;
111
140
  type: NumberConstructor;
112
141
  };
113
- queryKey: {
114
- default: string;
115
- type: StringConstructor;
142
+ filter: {
143
+ default: undefined;
144
+ type: PropType<(option: import("@/types").NormalizedOption) => boolean>;
116
145
  };
117
146
  hasError: {
118
147
  default: boolean;
119
148
  type: BooleanConstructor;
120
149
  };
150
+ inline: {
151
+ default: boolean;
152
+ type: BooleanConstructor;
153
+ };
154
+ size: {
155
+ default: undefined;
156
+ type: PropType<Size>;
157
+ };
158
+ dropdownShow: {
159
+ default: string;
160
+ type: PropType<"focus" | "always">;
161
+ };
121
162
  focusOnMount: {
122
163
  default: boolean;
123
164
  type: BooleanConstructor;
124
165
  };
166
+ twContainer: {
167
+ default: string;
168
+ type: PropType<string | string[]>;
169
+ };
170
+ visibleFocus: {
171
+ default: boolean;
172
+ type: BooleanConstructor;
173
+ };
125
174
  }>> & Readonly<{
126
- onFocus?: ((...args: any[]) => any) | undefined;
175
+ onClose?: ((...args: any[]) => any) | undefined;
127
176
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
128
177
  onScrollBottom?: ((...args: any[]) => any) | undefined;
129
178
  onTyping?: ((...args: any[]) => any) | undefined;
179
+ onOpen?: ((...args: any[]) => any) | undefined;
130
180
  }>, {
131
- focus: () => void | undefined;
132
- blur: () => void | undefined;
133
- open: () => void | undefined;
134
- close: () => void | undefined;
135
- setKeywords: (input: string) => void | undefined;
181
+ focus: () => void;
182
+ blur: () => void;
183
+ close: () => void;
184
+ open: () => void;
185
+ setKeywords: (input: string) => void;
136
186
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
137
- focus: (...args: any[]) => void;
187
+ close: (...args: any[]) => void;
138
188
  "update:modelValue": (...args: any[]) => void;
139
189
  scrollBottom: (...args: any[]) => void;
140
190
  typing: (...args: any[]) => void;
191
+ open: (...args: any[]) => void;
141
192
  }, string, {
193
+ filter: (option: import("@/types").NormalizedOption) => boolean;
142
194
  required: boolean;
195
+ size: "xs" | "sm" | "md" | "lg" | "xl";
196
+ name: string;
143
197
  disabled: boolean;
198
+ inline: boolean;
144
199
  placeholder: string;
145
200
  hasError: boolean;
146
201
  max: number;
202
+ visibleFocus: boolean;
203
+ loading: boolean;
204
+ loadingBottom: boolean;
205
+ dropdownShow: "always" | "focus";
147
206
  focusOnMount: boolean;
148
- queryKey: string;
207
+ twContainer: string | string[];
149
208
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
150
209
  beforeCreate?: (() => void) | (() => void)[];
151
210
  created?: (() => void) | (() => void)[];
@@ -167,21 +226,29 @@ declare function __VLS_template(): {
167
226
  $nextTick: typeof import("vue").nextTick;
168
227
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
169
228
  } & Readonly<{
229
+ filter: (option: import("@/types").NormalizedOption) => boolean;
170
230
  required: boolean;
231
+ size: "xs" | "sm" | "md" | "lg" | "xl";
232
+ name: string;
171
233
  disabled: boolean;
234
+ inline: boolean;
172
235
  placeholder: string;
173
236
  hasError: boolean;
174
237
  max: number;
238
+ visibleFocus: boolean;
239
+ loading: boolean;
240
+ loadingBottom: boolean;
241
+ dropdownShow: "always" | "focus";
175
242
  focusOnMount: boolean;
176
- queryKey: string;
243
+ twContainer: string | string[];
177
244
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
178
245
  modelValue: {
179
246
  required: true;
180
- type: PropType<RawOption[]>;
247
+ type: PropType<RawOption[] | null>;
181
248
  };
182
- url: {
249
+ options: {
183
250
  required: true;
184
- type: StringConstructor;
251
+ type: PropType<RawOption[]>;
185
252
  };
186
253
  labelKey: {
187
254
  required: true;
@@ -191,14 +258,26 @@ declare function __VLS_template(): {
191
258
  required: true;
192
259
  type: StringConstructor;
193
260
  };
261
+ name: {
262
+ default: undefined;
263
+ type: StringConstructor;
264
+ };
194
265
  placeholder: {
195
266
  default: undefined;
196
267
  type: StringConstructor;
197
268
  };
198
- required: {
269
+ loading: {
199
270
  default: boolean;
200
271
  type: BooleanConstructor;
201
272
  };
273
+ loadingBottom: {
274
+ default: boolean;
275
+ type: BooleanConstructor;
276
+ };
277
+ required: {
278
+ default: undefined;
279
+ type: BooleanConstructor;
280
+ };
202
281
  disabled: {
203
282
  default: boolean;
204
283
  type: BooleanConstructor;
@@ -207,29 +286,50 @@ declare function __VLS_template(): {
207
286
  default: undefined;
208
287
  type: NumberConstructor;
209
288
  };
210
- queryKey: {
211
- default: string;
212
- type: StringConstructor;
289
+ filter: {
290
+ default: undefined;
291
+ type: PropType<(option: import("@/types").NormalizedOption) => boolean>;
213
292
  };
214
293
  hasError: {
215
294
  default: boolean;
216
295
  type: BooleanConstructor;
217
296
  };
297
+ inline: {
298
+ default: boolean;
299
+ type: BooleanConstructor;
300
+ };
301
+ size: {
302
+ default: undefined;
303
+ type: PropType<Size>;
304
+ };
305
+ dropdownShow: {
306
+ default: string;
307
+ type: PropType<"focus" | "always">;
308
+ };
218
309
  focusOnMount: {
219
310
  default: boolean;
220
311
  type: BooleanConstructor;
221
312
  };
313
+ twContainer: {
314
+ default: string;
315
+ type: PropType<string | string[]>;
316
+ };
317
+ visibleFocus: {
318
+ default: boolean;
319
+ type: BooleanConstructor;
320
+ };
222
321
  }>> & Readonly<{
223
- onFocus?: ((...args: any[]) => any) | undefined;
322
+ onClose?: ((...args: any[]) => any) | undefined;
224
323
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
225
324
  onScrollBottom?: ((...args: any[]) => any) | undefined;
226
325
  onTyping?: ((...args: any[]) => any) | undefined;
227
- }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("required" | "disabled" | "placeholder" | "hasError" | "max" | "focusOnMount" | "queryKey")> & import("vue").ShallowUnwrapRef<{
228
- focus: () => void | undefined;
229
- blur: () => void | undefined;
230
- open: () => void | undefined;
231
- close: () => void | undefined;
232
- setKeywords: (input: string) => void | undefined;
326
+ onOpen?: ((...args: any[]) => any) | undefined;
327
+ }>, "blur" | "close" | "focus" | "open" | "setKeywords" | ("filter" | "required" | "size" | "name" | "disabled" | "inline" | "placeholder" | "hasError" | "max" | "visibleFocus" | "loading" | "loadingBottom" | "dropdownShow" | "focusOnMount" | "twContainer")> & import("vue").ShallowUnwrapRef<{
328
+ focus: () => void;
329
+ blur: () => void;
330
+ close: () => void;
331
+ open: () => void;
332
+ setKeywords: (input: string) => void;
233
333
  }> & {} & import("vue").ComponentCustomProperties & {} & {
234
334
  $slots: {
235
335
  items?(_: {
@@ -237,31 +337,30 @@ declare function __VLS_template(): {
237
337
  removeOption: (option: import("@/types").NormalizedOption) => void;
238
338
  disabled: boolean;
239
339
  }): any;
240
- option?(_: {
340
+ empty?(_: {
241
341
  focus: () => void;
242
342
  blur: () => void;
243
343
  open: () => void;
244
344
  close: () => void;
245
345
  keywords: import("vue").ComputedRef<string>;
246
- option: RawOption;
247
- selected: boolean;
248
- active: boolean;
249
346
  }): any;
250
- footer?(_: {
251
- keywords: string;
347
+ option?(_: {
252
348
  focus: () => void;
253
349
  blur: () => void;
254
350
  open: () => void;
255
351
  close: () => void;
256
- options: import("@/types").NormalizedOption[];
352
+ keywords: import("vue").ComputedRef<string>;
353
+ option: RawOption;
354
+ selected: boolean;
355
+ active: boolean;
257
356
  }): any;
258
- empty?(_: {
259
- firstSearch: boolean;
357
+ footer?(_: {
260
358
  focus: () => void;
261
359
  blur: () => void;
262
360
  open: () => void;
263
361
  close: () => void;
264
362
  keywords: import("vue").ComputedRef<string>;
363
+ options: import("@/types").NormalizedOption[];
265
364
  }): any;
266
365
  };
267
366
  }) | null;
@@ -274,13 +373,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
274
373
  default: undefined;
275
374
  type: PropType<string[] | string | number | null | undefined>;
276
375
  };
277
- url: {
376
+ options: {
278
377
  required: true;
279
- type: StringConstructor;
280
- };
281
- showRouteUrl: {
282
- default: undefined;
283
- type: PropType<((ids: (string | number)[]) => string) | undefined>;
378
+ type: PropType<RawOption[]>;
284
379
  };
285
380
  primaryKey: {
286
381
  default: string;
@@ -298,22 +393,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
298
393
  default: boolean;
299
394
  type: BooleanConstructor;
300
395
  };
396
+ name: {
397
+ default: undefined;
398
+ type: StringConstructor;
399
+ };
301
400
  placeholder: {
302
401
  default: undefined;
303
402
  type: StringConstructor;
304
403
  };
404
+ size: {
405
+ default: undefined;
406
+ type: PropType<Size>;
407
+ };
305
408
  max: {
306
409
  default: undefined;
307
410
  type: NumberConstructor;
308
411
  };
309
- queryKey: {
310
- default: string;
311
- type: StringConstructor;
312
- };
313
- currentModels: {
314
- default(): undefined;
315
- type: PropType<RawOption[] | undefined>;
316
- };
317
412
  hasError: {
318
413
  default: boolean;
319
414
  type: BooleanConstructor;
@@ -331,13 +426,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
331
426
  default: undefined;
332
427
  type: PropType<string[] | string | number | null | undefined>;
333
428
  };
334
- url: {
429
+ options: {
335
430
  required: true;
336
- type: StringConstructor;
337
- };
338
- showRouteUrl: {
339
- default: undefined;
340
- type: PropType<((ids: (string | number)[]) => string) | undefined>;
431
+ type: PropType<RawOption[]>;
341
432
  };
342
433
  primaryKey: {
343
434
  default: string;
@@ -355,22 +446,22 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
355
446
  default: boolean;
356
447
  type: BooleanConstructor;
357
448
  };
449
+ name: {
450
+ default: undefined;
451
+ type: StringConstructor;
452
+ };
358
453
  placeholder: {
359
454
  default: undefined;
360
455
  type: StringConstructor;
361
456
  };
457
+ size: {
458
+ default: undefined;
459
+ type: PropType<Size>;
460
+ };
362
461
  max: {
363
462
  default: undefined;
364
463
  type: NumberConstructor;
365
464
  };
366
- queryKey: {
367
- default: string;
368
- type: StringConstructor;
369
- };
370
- currentModels: {
371
- default(): undefined;
372
- type: PropType<RawOption[] | undefined>;
373
- };
374
465
  hasError: {
375
466
  default: boolean;
376
467
  type: BooleanConstructor;
@@ -379,15 +470,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
379
470
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
380
471
  }>, {
381
472
  required: boolean;
473
+ size: "xs" | "sm" | "md" | "lg" | "xl";
474
+ name: string;
382
475
  disabled: boolean;
383
476
  modelValue: string | number | string[] | null | undefined;
384
477
  placeholder: string;
385
478
  hasError: boolean;
386
479
  max: number;
387
- queryKey: string;
388
480
  primaryKey: string;
389
- showRouteUrl: ((ids: (string | number)[]) => string) | undefined;
390
- currentModels: RawOption[] | undefined;
391
481
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
392
482
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
393
483
  export default _default;