urfu-ui-kit-vue 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +324 -87
- package/dist/index.es +14901 -14154
- package/dist/index.js +49 -49
- package/dist/style.css +1 -1
- package/package.json +96 -96
package/dist/index.d.ts
CHANGED
|
@@ -115,14 +115,19 @@ pageSizeChange: (size: number) => any;
|
|
|
115
115
|
onPageChange?: ((page: number) => any) | undefined;
|
|
116
116
|
onPageSizeChange?: ((size: number) => any) | undefined;
|
|
117
117
|
}>, {
|
|
118
|
-
marginTop: number;
|
|
118
|
+
marginTop: number | string;
|
|
119
119
|
dataLength: number;
|
|
120
120
|
pageWindow: number;
|
|
121
121
|
pageSizeOptions: number[];
|
|
122
122
|
hideResults: boolean;
|
|
123
123
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
124
124
|
|
|
125
|
-
declare const __VLS_component_11: DefineComponent<
|
|
125
|
+
declare const __VLS_component_11: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
|
|
126
|
+
title: string;
|
|
127
|
+
id: string;
|
|
128
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
129
|
+
|
|
130
|
+
declare const __VLS_component_12: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
126
131
|
hide: () => any;
|
|
127
132
|
fadeOutEnd: () => any;
|
|
128
133
|
}, string, PublicProps, Readonly<Props_14> & Readonly<{
|
|
@@ -134,20 +139,21 @@ right: string;
|
|
|
134
139
|
variant: NotificationVariant_2;
|
|
135
140
|
top: string;
|
|
136
141
|
zIndex: string;
|
|
137
|
-
autoHide: boolean;
|
|
138
142
|
duration: number;
|
|
143
|
+
autoHide: boolean;
|
|
139
144
|
fadeOutDuration: number;
|
|
140
145
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
141
146
|
|
|
142
|
-
declare const
|
|
147
|
+
declare const __VLS_component_13: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
143
148
|
|
|
144
|
-
declare const
|
|
149
|
+
declare const __VLS_component_14: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {
|
|
145
150
|
className: string;
|
|
151
|
+
mobileFixed: boolean;
|
|
146
152
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
147
153
|
barRef: HTMLElement;
|
|
148
154
|
}, HTMLElement>;
|
|
149
155
|
|
|
150
|
-
declare const
|
|
156
|
+
declare const __VLS_component_15: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
151
157
|
cancel: () => any;
|
|
152
158
|
}, string, PublicProps, Readonly<Props_21> & Readonly<{
|
|
153
159
|
onCancel?: (() => any) | undefined;
|
|
@@ -156,16 +162,20 @@ active: boolean;
|
|
|
156
162
|
ariaLabel: string;
|
|
157
163
|
maxHeight: string;
|
|
158
164
|
height: string;
|
|
159
|
-
className: string;
|
|
160
165
|
maxWidth: string;
|
|
161
|
-
|
|
166
|
+
portalOn: boolean;
|
|
162
167
|
ariaLabelledby: string;
|
|
168
|
+
className: string;
|
|
169
|
+
notCloseClickOnBack: boolean;
|
|
163
170
|
closeOnEscape: boolean;
|
|
171
|
+
trapFocus: boolean;
|
|
164
172
|
lockScroll: boolean;
|
|
165
173
|
unmountOnClose: boolean;
|
|
166
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
174
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
175
|
+
bodyRef: HTMLDivElement;
|
|
176
|
+
}, any>;
|
|
167
177
|
|
|
168
|
-
declare const
|
|
178
|
+
declare const __VLS_component_16: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
169
179
|
applySort: (field: string | undefined, dir: "desc" | "asc" | undefined) => any;
|
|
170
180
|
setSortField: (field: string) => any;
|
|
171
181
|
toggleSortDir: () => any;
|
|
@@ -187,7 +197,7 @@ mobileSortStyle: "select" | "segments" | "menu";
|
|
|
187
197
|
mobileCardCollapsible: boolean;
|
|
188
198
|
mobileCardLabels: boolean;
|
|
189
199
|
mobileMaxVisible: number;
|
|
190
|
-
mobileCardColumns: 1 | 2;
|
|
200
|
+
mobileCardColumns: 1 | 2 | 3;
|
|
191
201
|
mobileCardGap: number | string;
|
|
192
202
|
mobileCardDivider: boolean;
|
|
193
203
|
mobileCardFlat: boolean;
|
|
@@ -196,12 +206,13 @@ sortMenuRef: HTMLDivElement;
|
|
|
196
206
|
sortSegRef: HTMLDivElement;
|
|
197
207
|
}, HTMLDivElement>;
|
|
198
208
|
|
|
199
|
-
declare const
|
|
209
|
+
declare const __VLS_component_17: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
|
|
200
210
|
flat: boolean;
|
|
201
211
|
body: MobileField[];
|
|
202
212
|
details: MobileField[];
|
|
203
213
|
title: undefined;
|
|
204
214
|
inline: MobileField[];
|
|
215
|
+
columns: 1 | 2 | 3;
|
|
205
216
|
showLabels: boolean;
|
|
206
217
|
titleLabel: undefined;
|
|
207
218
|
titleHideLabel: boolean;
|
|
@@ -210,9 +221,24 @@ titleLabelColor: string;
|
|
|
210
221
|
subtitle: undefined;
|
|
211
222
|
subtitleColor: string;
|
|
212
223
|
divider: boolean;
|
|
213
|
-
columns: 1 | 2;
|
|
214
224
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
215
225
|
|
|
226
|
+
declare const __VLS_component_18: DefineComponent<ConfirmModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
227
|
+
cancel: () => any;
|
|
228
|
+
confirm: () => any;
|
|
229
|
+
}, string, PublicProps, Readonly<ConfirmModalProps> & Readonly<{
|
|
230
|
+
onCancel?: (() => any) | undefined;
|
|
231
|
+
onConfirm?: (() => any) | undefined;
|
|
232
|
+
}>, {
|
|
233
|
+
portalOn: boolean;
|
|
234
|
+
trapFocus: boolean;
|
|
235
|
+
description: string;
|
|
236
|
+
confirmText: string;
|
|
237
|
+
cancelText: string;
|
|
238
|
+
confirmVariant: ButtonVariant_2;
|
|
239
|
+
confirmDisabled: boolean;
|
|
240
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
241
|
+
|
|
216
242
|
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
217
243
|
change: (event: Event) => any;
|
|
218
244
|
click: (event: MouseEvent) => any;
|
|
@@ -264,6 +290,7 @@ declare const __VLS_component_5: DefineComponent<__VLS_Props_4, {}, {}, {}, {},
|
|
|
264
290
|
variant: StatusVariant;
|
|
265
291
|
size: StatusSize;
|
|
266
292
|
id: string;
|
|
293
|
+
truncate: boolean;
|
|
267
294
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
268
295
|
|
|
269
296
|
declare const __VLS_component_6: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
@@ -272,7 +299,7 @@ position: TooltipPosition;
|
|
|
272
299
|
tooltipText: string;
|
|
273
300
|
isActive: boolean;
|
|
274
301
|
showWhenActive: boolean;
|
|
275
|
-
tooltipStyle:
|
|
302
|
+
tooltipStyle: CSSProperties;
|
|
276
303
|
autoPosition: boolean;
|
|
277
304
|
fullWidth: boolean;
|
|
278
305
|
portalOn: boolean;
|
|
@@ -281,7 +308,20 @@ tooltipRef: HTMLDivElement;
|
|
|
281
308
|
triggerRef: HTMLSpanElement;
|
|
282
309
|
}, HTMLDivElement>;
|
|
283
310
|
|
|
284
|
-
declare const __VLS_component_7: DefineComponent<
|
|
311
|
+
declare const __VLS_component_7: DefineComponent<CardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
312
|
+
toggle: (value: boolean) => any;
|
|
313
|
+
"update:open": (value: boolean) => any;
|
|
314
|
+
}, string, PublicProps, Readonly<CardProps> & Readonly<{
|
|
315
|
+
onToggle?: ((value: boolean) => any) | undefined;
|
|
316
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
317
|
+
}>, {
|
|
318
|
+
header: string;
|
|
319
|
+
open: boolean;
|
|
320
|
+
className: string;
|
|
321
|
+
bordered: boolean;
|
|
322
|
+
collapsible: boolean;
|
|
323
|
+
defaultOpen: boolean;
|
|
324
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
285
325
|
|
|
286
326
|
declare const __VLS_component_8: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_9> & Readonly<{}>, {
|
|
287
327
|
error: string | boolean;
|
|
@@ -289,9 +329,9 @@ title: string;
|
|
|
289
329
|
required: boolean;
|
|
290
330
|
inline: boolean;
|
|
291
331
|
gap: string | number;
|
|
332
|
+
className: string;
|
|
292
333
|
hint: string;
|
|
293
334
|
htmlFor: string;
|
|
294
|
-
className: string;
|
|
295
335
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
296
336
|
|
|
297
337
|
declare const __VLS_component_9: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
@@ -303,6 +343,10 @@ declare type __VLS_PrettifyLocal<T> = {
|
|
|
303
343
|
[K in keyof T]: T[K];
|
|
304
344
|
} & {};
|
|
305
345
|
|
|
346
|
+
declare type __VLS_PrettifyLocal_2<T> = {
|
|
347
|
+
[K in keyof T]: T[K];
|
|
348
|
+
} & {};
|
|
349
|
+
|
|
306
350
|
declare type __VLS_Props = {
|
|
307
351
|
/** Управляемое состояние через v-model. */
|
|
308
352
|
modelValue?: boolean;
|
|
@@ -354,6 +398,7 @@ declare type __VLS_Props_4 = {
|
|
|
354
398
|
size?: StatusSize;
|
|
355
399
|
/** HTML id элемента. */
|
|
356
400
|
id?: string;
|
|
401
|
+
truncate?: boolean;
|
|
357
402
|
};
|
|
358
403
|
|
|
359
404
|
declare type __VLS_Props_5 = {
|
|
@@ -368,16 +413,16 @@ declare type __VLS_Props_5 = {
|
|
|
368
413
|
/** HTML id для элемента подсказки. */
|
|
369
414
|
id?: string;
|
|
370
415
|
/** Дополнительные inline-стили для элемента подсказки. */
|
|
371
|
-
tooltipStyle?:
|
|
416
|
+
tooltipStyle?: CSSProperties;
|
|
372
417
|
/**
|
|
373
418
|
* Автоматически определять позицию по доступному месту в viewport.
|
|
374
|
-
*
|
|
419
|
+
* Сначала запрошенная сторона, затем противоположная и остальные стороны.
|
|
375
420
|
* Если включено — `position` используется только как стартовая попытка.
|
|
376
421
|
*/
|
|
377
422
|
autoPosition?: boolean;
|
|
378
423
|
/**
|
|
379
424
|
* Растянуть обёртку и триггер на всю ширину контейнера. Нужно, когда подсказкой
|
|
380
|
-
* оборачивается поле ввода: по умолчанию обёртка `inline-
|
|
425
|
+
* оборачивается поле ввода: по умолчанию обёртка `inline-flex` сжимается по
|
|
381
426
|
* контенту, и поле внутри получает `width: 100%` от сжатой обёртки.
|
|
382
427
|
*/
|
|
383
428
|
fullWidth?: boolean;
|
|
@@ -422,10 +467,12 @@ declare type __VLS_Props_7 = {
|
|
|
422
467
|
mobileCardCollapsible?: boolean;
|
|
423
468
|
mobileCardLabels?: boolean;
|
|
424
469
|
mobileMaxVisible?: number;
|
|
425
|
-
mobileCardColumns?: 1 | 2;
|
|
470
|
+
mobileCardColumns?: 1 | 2 | 3;
|
|
426
471
|
mobileCardGap?: number | string;
|
|
427
472
|
mobileCardDivider?: boolean;
|
|
428
473
|
mobileCardFlat?: boolean;
|
|
474
|
+
mobileCardInset?: boolean;
|
|
475
|
+
mobileCardDensity?: 'normal' | 'compact';
|
|
429
476
|
};
|
|
430
477
|
|
|
431
478
|
/**
|
|
@@ -447,7 +494,9 @@ declare type __VLS_Props_8 = {
|
|
|
447
494
|
flat?: boolean;
|
|
448
495
|
divider?: boolean;
|
|
449
496
|
showLabels?: boolean;
|
|
450
|
-
columns?: 1 | 2;
|
|
497
|
+
columns?: 1 | 2 | 3;
|
|
498
|
+
inset?: boolean;
|
|
499
|
+
density?: 'normal' | 'compact';
|
|
451
500
|
};
|
|
452
501
|
|
|
453
502
|
declare function __VLS_template(): {
|
|
@@ -479,7 +528,7 @@ declare function __VLS_template_11(): {
|
|
|
479
528
|
default?(_: {}): any;
|
|
480
529
|
};
|
|
481
530
|
refs: {};
|
|
482
|
-
rootEl:
|
|
531
|
+
rootEl: HTMLDivElement;
|
|
483
532
|
};
|
|
484
533
|
|
|
485
534
|
declare function __VLS_template_12(): {
|
|
@@ -492,6 +541,15 @@ declare function __VLS_template_12(): {
|
|
|
492
541
|
};
|
|
493
542
|
|
|
494
543
|
declare function __VLS_template_13(): {
|
|
544
|
+
attrs: Partial<{}>;
|
|
545
|
+
slots: {
|
|
546
|
+
default?(_: {}): any;
|
|
547
|
+
};
|
|
548
|
+
refs: {};
|
|
549
|
+
rootEl: any;
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
declare function __VLS_template_14(): {
|
|
495
553
|
attrs: Partial<{}>;
|
|
496
554
|
slots: {
|
|
497
555
|
default?(_: {}): any;
|
|
@@ -502,19 +560,22 @@ declare function __VLS_template_13(): {
|
|
|
502
560
|
rootEl: HTMLElement;
|
|
503
561
|
};
|
|
504
562
|
|
|
505
|
-
declare function
|
|
563
|
+
declare function __VLS_template_15(): {
|
|
506
564
|
attrs: Partial<{}>;
|
|
507
565
|
slots: {
|
|
508
566
|
default?(_: {}): any;
|
|
509
567
|
};
|
|
510
|
-
refs: {
|
|
568
|
+
refs: {
|
|
569
|
+
bodyRef: HTMLDivElement;
|
|
570
|
+
};
|
|
511
571
|
rootEl: any;
|
|
512
572
|
};
|
|
513
573
|
|
|
514
|
-
declare function
|
|
574
|
+
declare function __VLS_template_16(): {
|
|
515
575
|
attrs: Partial<{}>;
|
|
516
576
|
slots: {
|
|
517
577
|
'mobile-toolbar'?(_: {}): any;
|
|
578
|
+
empty?(_: {}): any;
|
|
518
579
|
'mobile-card'?(_: {
|
|
519
580
|
key: string;
|
|
520
581
|
row: TableRow;
|
|
@@ -528,7 +589,7 @@ declare function __VLS_template_15(): {
|
|
|
528
589
|
rootEl: HTMLDivElement;
|
|
529
590
|
};
|
|
530
591
|
|
|
531
|
-
declare function
|
|
592
|
+
declare function __VLS_template_17(): {
|
|
532
593
|
attrs: Partial<{}>;
|
|
533
594
|
slots: {
|
|
534
595
|
titleLabel?(_: {}): any;
|
|
@@ -538,6 +599,15 @@ declare function __VLS_template_16(): {
|
|
|
538
599
|
rootEl: HTMLDivElement;
|
|
539
600
|
};
|
|
540
601
|
|
|
602
|
+
declare function __VLS_template_18(): {
|
|
603
|
+
attrs: Partial<{}>;
|
|
604
|
+
slots: {
|
|
605
|
+
description?(_: {}): any;
|
|
606
|
+
};
|
|
607
|
+
refs: {};
|
|
608
|
+
rootEl: any;
|
|
609
|
+
};
|
|
610
|
+
|
|
541
611
|
declare function __VLS_template_2(): {
|
|
542
612
|
attrs: Partial<{}>;
|
|
543
613
|
slots: {
|
|
@@ -571,6 +641,7 @@ declare function __VLS_template_5(): {
|
|
|
571
641
|
attrs: Partial<{}>;
|
|
572
642
|
slots: {
|
|
573
643
|
default?(_: {}): any;
|
|
644
|
+
default?(_: {}): any;
|
|
574
645
|
};
|
|
575
646
|
refs: {};
|
|
576
647
|
rootEl: HTMLDivElement;
|
|
@@ -592,6 +663,9 @@ declare function __VLS_template_6(): {
|
|
|
592
663
|
declare function __VLS_template_7(): {
|
|
593
664
|
attrs: Partial<{}>;
|
|
594
665
|
slots: {
|
|
666
|
+
header?(_: {}): any;
|
|
667
|
+
default?(_: {}): any;
|
|
668
|
+
default?(_: {}): any;
|
|
595
669
|
default?(_: {}): any;
|
|
596
670
|
};
|
|
597
671
|
refs: {};
|
|
@@ -632,6 +706,10 @@ declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
|
|
|
632
706
|
|
|
633
707
|
declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
|
|
634
708
|
|
|
709
|
+
declare type __VLS_TemplateResult_17 = ReturnType<typeof __VLS_template_17>;
|
|
710
|
+
|
|
711
|
+
declare type __VLS_TemplateResult_18 = ReturnType<typeof __VLS_template_18>;
|
|
712
|
+
|
|
635
713
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
636
714
|
|
|
637
715
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -720,6 +798,12 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
720
798
|
};
|
|
721
799
|
};
|
|
722
800
|
|
|
801
|
+
declare type __VLS_WithTemplateSlots_20<T, S> = T & {
|
|
802
|
+
new (): {
|
|
803
|
+
$slots: S;
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
|
|
723
807
|
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
724
808
|
new (): {
|
|
725
809
|
$slots: S;
|
|
@@ -762,12 +846,7 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
762
846
|
};
|
|
763
847
|
};
|
|
764
848
|
|
|
765
|
-
export declare const Accordion: __VLS_WithTemplateSlots_12<
|
|
766
|
-
title: string;
|
|
767
|
-
id: string;
|
|
768
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
769
|
-
default?(_: {}): any;
|
|
770
|
-
}>;
|
|
849
|
+
export declare const Accordion: __VLS_WithTemplateSlots_12<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
771
850
|
|
|
772
851
|
export declare type BordersType = 'horizontal' | 'vertical' | 'none' | 'both';
|
|
773
852
|
|
|
@@ -794,6 +873,8 @@ declare type ButtonType = typeof BUTTON_TYPES[number];
|
|
|
794
873
|
|
|
795
874
|
declare type ButtonVariant = typeof VARIANTS[number];
|
|
796
875
|
|
|
876
|
+
declare type ButtonVariant_2 = typeof VARIANTS[number];
|
|
877
|
+
|
|
797
878
|
export declare const Calendar: DefineComponent<Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
798
879
|
"update:modelValue": (value: Date | null) => any;
|
|
799
880
|
"update:optionState": (value: string) => any;
|
|
@@ -807,20 +888,29 @@ title: string;
|
|
|
807
888
|
modelValue: Date | null;
|
|
808
889
|
id: string;
|
|
809
890
|
placeholder: string;
|
|
810
|
-
styleInputContainer: Record<string, string>;
|
|
811
|
-
styleTitle: Record<string, string>;
|
|
812
891
|
rowGap: string | number;
|
|
813
892
|
columnGap: string | number;
|
|
893
|
+
styleInputContainer: CSSProperties;
|
|
894
|
+
styleTitle: CSSProperties;
|
|
895
|
+
validationText: string;
|
|
814
896
|
tooltipMaxWidth: string | number;
|
|
815
897
|
hintText: string;
|
|
816
898
|
wheelEdit: boolean;
|
|
817
899
|
showHint: boolean;
|
|
818
|
-
validationText: string;
|
|
819
900
|
className: string;
|
|
820
901
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
821
902
|
|
|
822
903
|
export declare const Card: __VLS_WithTemplateSlots_8<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
823
904
|
|
|
905
|
+
export declare interface CardProps {
|
|
906
|
+
className?: string;
|
|
907
|
+
bordered?: boolean;
|
|
908
|
+
collapsible?: boolean;
|
|
909
|
+
header?: string;
|
|
910
|
+
defaultOpen?: boolean;
|
|
911
|
+
open?: boolean;
|
|
912
|
+
}
|
|
913
|
+
|
|
824
914
|
/** Тип для слота #cell / #cell-${field}. */
|
|
825
915
|
export declare interface CellSlotProps<TRow extends TableRow = TableRow> {
|
|
826
916
|
row: TRow;
|
|
@@ -833,13 +923,17 @@ export declare const Checkbox: __VLS_WithTemplateSlots_2<typeof __VLS_component_
|
|
|
833
923
|
export declare const ColumnSettings: DefineComponent<ColumnSettingsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
834
924
|
"update:visible": (value: Set<string>) => any;
|
|
835
925
|
"update:pinned": (value: Set<string>) => any;
|
|
926
|
+
"update:order": (value: string[]) => any;
|
|
836
927
|
}, string, PublicProps, Readonly<ColumnSettingsProps> & Readonly<{
|
|
837
928
|
"onUpdate:visible"?: ((value: Set<string>) => any) | undefined;
|
|
838
929
|
"onUpdate:pinned"?: ((value: Set<string>) => any) | undefined;
|
|
930
|
+
"onUpdate:order"?: ((value: string[]) => any) | undefined;
|
|
839
931
|
}>, {
|
|
840
932
|
icon: IconName;
|
|
841
933
|
variant: ColumnSettingsVariant;
|
|
842
934
|
title: string;
|
|
935
|
+
order: readonly string[];
|
|
936
|
+
reorderable: boolean;
|
|
843
937
|
pinned: ReadonlySet<string> | readonly string[];
|
|
844
938
|
pinLabel: string;
|
|
845
939
|
buttonLabel: string;
|
|
@@ -861,6 +955,8 @@ export declare interface ColumnSettingsOption {
|
|
|
861
955
|
export declare interface ColumnSettingsProps {
|
|
862
956
|
options: readonly ColumnSettingsOption[];
|
|
863
957
|
visible: ReadonlySet<string> | readonly string[];
|
|
958
|
+
order?: readonly string[];
|
|
959
|
+
reorderable?: boolean;
|
|
864
960
|
pinned?: ReadonlySet<string> | readonly string[];
|
|
865
961
|
pinLabel?: string;
|
|
866
962
|
variant?: ColumnSettingsVariant;
|
|
@@ -893,10 +989,27 @@ export declare interface ConfigureUiKitOptions {
|
|
|
893
989
|
responsive?: UiKitResponsivePreset;
|
|
894
990
|
}
|
|
895
991
|
|
|
992
|
+
export declare const ConfirmModal: __VLS_WithTemplateSlots_20<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
|
|
993
|
+
|
|
994
|
+
export declare interface ConfirmModalProps extends Props_21 {
|
|
995
|
+
title: string;
|
|
996
|
+
description?: string;
|
|
997
|
+
confirmText?: string;
|
|
998
|
+
cancelText?: string;
|
|
999
|
+
confirmVariant?: ButtonVariant_2;
|
|
1000
|
+
confirmDisabled?: boolean;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
896
1003
|
export declare type DateSegment = 'day' | 'month' | 'year';
|
|
897
1004
|
|
|
898
1005
|
export declare const DEFAULT_SIZE: ComponentSize;
|
|
899
1006
|
|
|
1007
|
+
export declare interface FieldAccessibilityProps {
|
|
1008
|
+
ariaLabel?: string;
|
|
1009
|
+
ariaLabelledby?: string;
|
|
1010
|
+
ariaDescribedby?: string;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
900
1013
|
export declare interface FilterDateState {
|
|
901
1014
|
id: string;
|
|
902
1015
|
type: string;
|
|
@@ -954,6 +1067,8 @@ declare type IconName = typeof ICON_NAMES[number];
|
|
|
954
1067
|
export declare const incrementDateSegment: (value: string, segment: DateSegment, delta: number) => string;
|
|
955
1068
|
|
|
956
1069
|
declare interface InputBaseProps {
|
|
1070
|
+
styleInputContainer?: CSSProperties;
|
|
1071
|
+
styleTitle?: CSSProperties;
|
|
957
1072
|
title?: string;
|
|
958
1073
|
required?: boolean;
|
|
959
1074
|
disabled?: boolean;
|
|
@@ -1006,17 +1121,17 @@ disabled: boolean;
|
|
|
1006
1121
|
title: string;
|
|
1007
1122
|
modelValue: File[];
|
|
1008
1123
|
id: string;
|
|
1009
|
-
required: boolean;
|
|
1010
1124
|
name: string;
|
|
1125
|
+
required: boolean;
|
|
1011
1126
|
lineUp: boolean;
|
|
1012
1127
|
rowGap: string | number;
|
|
1013
1128
|
columnGap: string | number;
|
|
1014
1129
|
errorAbsolute: boolean;
|
|
1130
|
+
multiple: boolean;
|
|
1015
1131
|
loadingInfo: string;
|
|
1016
1132
|
filesInfo: string;
|
|
1017
1133
|
sizeInfo: string;
|
|
1018
1134
|
showLoading: boolean;
|
|
1019
|
-
multiple: boolean;
|
|
1020
1135
|
hideLoaderAfterSelect: number;
|
|
1021
1136
|
accept: string[];
|
|
1022
1137
|
maxFileSize: number;
|
|
@@ -1037,9 +1152,9 @@ disabled: boolean;
|
|
|
1037
1152
|
title: string;
|
|
1038
1153
|
modelValue: string | number;
|
|
1039
1154
|
id: string;
|
|
1155
|
+
name: string;
|
|
1040
1156
|
required: boolean;
|
|
1041
1157
|
placeholder: string;
|
|
1042
|
-
name: string;
|
|
1043
1158
|
lineUp: boolean;
|
|
1044
1159
|
rowGap: string | number;
|
|
1045
1160
|
columnGap: string | number;
|
|
@@ -1067,9 +1182,9 @@ disabled: boolean;
|
|
|
1067
1182
|
title: string;
|
|
1068
1183
|
modelValue: string;
|
|
1069
1184
|
id: string;
|
|
1185
|
+
name: string;
|
|
1070
1186
|
required: boolean;
|
|
1071
1187
|
placeholder: string;
|
|
1072
|
-
name: string;
|
|
1073
1188
|
lineUp: boolean;
|
|
1074
1189
|
rowGap: string | number;
|
|
1075
1190
|
columnGap: string | number;
|
|
@@ -1091,21 +1206,21 @@ disabled: boolean;
|
|
|
1091
1206
|
title: string;
|
|
1092
1207
|
modelValue: string;
|
|
1093
1208
|
id: string;
|
|
1209
|
+
name: string;
|
|
1094
1210
|
required: boolean;
|
|
1095
1211
|
placeholder: string;
|
|
1096
|
-
name: string;
|
|
1097
|
-
styleInputContainer: Record<string, string>;
|
|
1098
|
-
styleTitle: Record<string, string>;
|
|
1099
1212
|
lineUp: boolean;
|
|
1100
1213
|
rowGap: string | number;
|
|
1101
1214
|
columnGap: string | number;
|
|
1102
1215
|
errorAbsolute: boolean;
|
|
1216
|
+
styleInputContainer: CSSProperties;
|
|
1217
|
+
styleTitle: CSSProperties;
|
|
1218
|
+
styleInput: CSSProperties;
|
|
1103
1219
|
tooltipMaxWidth: string | number;
|
|
1104
1220
|
hintText: string;
|
|
1105
1221
|
isClearable: boolean;
|
|
1106
1222
|
wheelEdit: boolean;
|
|
1107
1223
|
showHint: boolean;
|
|
1108
|
-
styleInput: Record<string, string>;
|
|
1109
1224
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1110
1225
|
rootRef: HTMLDivElement;
|
|
1111
1226
|
inputRef: HTMLInputElement;
|
|
@@ -1149,6 +1264,7 @@ inputRef: HTMLInputElement;
|
|
|
1149
1264
|
}, HTMLInputElement>;
|
|
1150
1265
|
|
|
1151
1266
|
export declare const Menu: __VLS_WithTemplateSlots_16<DefineComponent< {
|
|
1267
|
+
id?: string;
|
|
1152
1268
|
menuData?: MenuDataItem[];
|
|
1153
1269
|
activeSection?: string | number;
|
|
1154
1270
|
showMenu?: boolean;
|
|
@@ -1164,6 +1280,7 @@ LinkComponent?: Component;
|
|
|
1164
1280
|
clickSection: (item: MenuDataItem) => any;
|
|
1165
1281
|
clickSwitchMenu: (show: boolean) => any;
|
|
1166
1282
|
}, string, PublicProps, Readonly<{
|
|
1283
|
+
id?: string;
|
|
1167
1284
|
menuData?: MenuDataItem[];
|
|
1168
1285
|
activeSection?: string | number;
|
|
1169
1286
|
showMenu?: boolean;
|
|
@@ -1180,14 +1297,14 @@ onClickSection?: ((item: MenuDataItem) => any) | undefined;
|
|
|
1180
1297
|
onClickSwitchMenu?: ((show: boolean) => any) | undefined;
|
|
1181
1298
|
}>, {
|
|
1182
1299
|
type: "collapsible";
|
|
1300
|
+
maxWidth: string | number;
|
|
1301
|
+
minWidth: string | number;
|
|
1183
1302
|
className: string;
|
|
1184
1303
|
menuData: MenuDataItem[];
|
|
1185
1304
|
activeSection: string | number;
|
|
1186
1305
|
showMenu: boolean;
|
|
1187
1306
|
paddingUl: string;
|
|
1188
1307
|
foldedWidth: string | number;
|
|
1189
|
-
maxWidth: string | number;
|
|
1190
|
-
minWidth: string | number;
|
|
1191
1308
|
overlayMaxWidth: number;
|
|
1192
1309
|
LinkComponent: Component;
|
|
1193
1310
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -1230,9 +1347,12 @@ declare interface MobileField {
|
|
|
1230
1347
|
headerTooltip?: string;
|
|
1231
1348
|
/** Длинное значение сворачивается и раскрывается по тапу (`column.mobileCollapsible`). */
|
|
1232
1349
|
collapsible?: boolean;
|
|
1350
|
+
expandLines?: number;
|
|
1351
|
+
gridSpan?: 2 | 'narrow' | 'full';
|
|
1352
|
+
gridRowSpan?: 2;
|
|
1233
1353
|
}
|
|
1234
1354
|
|
|
1235
|
-
export declare const Modal: __VLS_WithTemplateSlots_17<typeof
|
|
1355
|
+
export declare const Modal: __VLS_WithTemplateSlots_17<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1236
1356
|
|
|
1237
1357
|
/** Названия месяцев для списка в шапке календаря (совпадают с React-китом). */
|
|
1238
1358
|
export declare const MONTH_NAMES: string[];
|
|
@@ -1251,15 +1371,17 @@ size: ComponentSize;
|
|
|
1251
1371
|
disabled: boolean;
|
|
1252
1372
|
title: string;
|
|
1253
1373
|
modelValue: OptionItem[];
|
|
1254
|
-
options: OptionItem[];
|
|
1255
1374
|
required: boolean;
|
|
1375
|
+
options: OptionItem[];
|
|
1256
1376
|
placeholder: string;
|
|
1377
|
+
lineUp: boolean;
|
|
1257
1378
|
portalOn: PortalMode;
|
|
1258
|
-
tableView: boolean;
|
|
1259
1379
|
validationOn: boolean;
|
|
1260
1380
|
validationText: string;
|
|
1381
|
+
tableView: boolean;
|
|
1261
1382
|
className: string;
|
|
1262
1383
|
absoluteValidationText: boolean;
|
|
1384
|
+
noScroll: boolean;
|
|
1263
1385
|
isSearchable: boolean;
|
|
1264
1386
|
loading: boolean;
|
|
1265
1387
|
withSelectAll: boolean;
|
|
@@ -1271,7 +1393,7 @@ dropdownRef: HTMLDivElement;
|
|
|
1271
1393
|
|
|
1272
1394
|
export declare function nextSort(current: ListSortState, field: string): ListSortState;
|
|
1273
1395
|
|
|
1274
|
-
declare const Notification_2: __VLS_WithTemplateSlots_13<typeof
|
|
1396
|
+
declare const Notification_2: __VLS_WithTemplateSlots_13<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
1275
1397
|
export { Notification_2 as Notification }
|
|
1276
1398
|
|
|
1277
1399
|
export declare type NotificationApi = NotificationService;
|
|
@@ -1288,7 +1410,7 @@ declare interface NotificationOptions_2 {
|
|
|
1288
1410
|
}
|
|
1289
1411
|
export { NotificationOptions_2 as NotificationOptions }
|
|
1290
1412
|
|
|
1291
|
-
export declare const NotificationProvider: __VLS_WithTemplateSlots_14<typeof
|
|
1413
|
+
export declare const NotificationProvider: __VLS_WithTemplateSlots_14<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
1292
1414
|
|
|
1293
1415
|
export declare interface NotificationService {
|
|
1294
1416
|
showNotification: (options: NotificationOptions_2 | string, message?: VNodeChild, extra?: Partial<NotificationOptions_2>) => string | number;
|
|
@@ -1319,7 +1441,7 @@ declare interface PaginationProps {
|
|
|
1319
1441
|
pageSizeOptions?: number[];
|
|
1320
1442
|
hideResults?: boolean;
|
|
1321
1443
|
/** Внешний отступ сверху (px) — как в React-ките, чтобы не править стили у потребителя. */
|
|
1322
|
-
marginTop?: number;
|
|
1444
|
+
marginTop?: number | string;
|
|
1323
1445
|
}
|
|
1324
1446
|
|
|
1325
1447
|
/** Парсит строку «дд.мм.гггг» в Date (полдень локального времени). null при невалидном вводе. */
|
|
@@ -1363,7 +1485,7 @@ declare interface Props_10 {
|
|
|
1363
1485
|
pageSizeOptions?: number[];
|
|
1364
1486
|
hideResults?: boolean;
|
|
1365
1487
|
/** Внешний отступ сверху, px. Нужен, когда пагинация идёт вплотную к таблице. */
|
|
1366
|
-
marginTop?: number;
|
|
1488
|
+
marginTop?: number | string;
|
|
1367
1489
|
}
|
|
1368
1490
|
|
|
1369
1491
|
declare interface Props_11 {
|
|
@@ -1374,6 +1496,7 @@ declare interface Props_12 {
|
|
|
1374
1496
|
tabsData?: TabItem[];
|
|
1375
1497
|
activeTab?: string | number;
|
|
1376
1498
|
variant?: 'line' | 'segment';
|
|
1499
|
+
fullWidth?: boolean;
|
|
1377
1500
|
}
|
|
1378
1501
|
|
|
1379
1502
|
declare interface Props_13 {
|
|
@@ -1395,17 +1518,23 @@ declare interface Props_14 {
|
|
|
1395
1518
|
|
|
1396
1519
|
declare interface Props_15 {
|
|
1397
1520
|
className?: string;
|
|
1521
|
+
mobileFixed?: boolean;
|
|
1398
1522
|
}
|
|
1399
1523
|
|
|
1400
1524
|
declare interface Props_16 {
|
|
1525
|
+
id?: string;
|
|
1401
1526
|
placeholder?: string;
|
|
1402
1527
|
modelValue?: string;
|
|
1403
1528
|
className?: string;
|
|
1404
1529
|
disabled?: boolean;
|
|
1405
1530
|
}
|
|
1406
1531
|
|
|
1407
|
-
declare interface Props_17 {
|
|
1532
|
+
declare interface Props_17 extends FieldAccessibilityProps {
|
|
1533
|
+
styleSelectContainer?: CSSProperties;
|
|
1534
|
+
styleTitle?: CSSProperties;
|
|
1535
|
+
styleSelect?: CSSProperties;
|
|
1408
1536
|
title?: string;
|
|
1537
|
+
variant?: 'field' | 'button';
|
|
1409
1538
|
required?: boolean;
|
|
1410
1539
|
options?: OptionItem[];
|
|
1411
1540
|
placeholder?: string;
|
|
@@ -1432,7 +1561,11 @@ declare interface Props_17 {
|
|
|
1432
1561
|
columnGap?: string | number;
|
|
1433
1562
|
}
|
|
1434
1563
|
|
|
1435
|
-
declare interface Props_18 {
|
|
1564
|
+
declare interface Props_18 extends FieldAccessibilityProps {
|
|
1565
|
+
lineUp?: boolean;
|
|
1566
|
+
styleSelectContainer?: CSSProperties;
|
|
1567
|
+
styleTitle?: CSSProperties;
|
|
1568
|
+
styleSelect?: CSSProperties;
|
|
1436
1569
|
title?: string;
|
|
1437
1570
|
required?: boolean;
|
|
1438
1571
|
options?: OptionItem[];
|
|
@@ -1453,6 +1586,8 @@ declare interface Props_18 {
|
|
|
1453
1586
|
isSearchable?: boolean;
|
|
1454
1587
|
/** Поле не принимает ввод: список не раскрывается, теги не снимаются. */
|
|
1455
1588
|
disabled?: boolean;
|
|
1589
|
+
/** Снять ограничение высоты списка; прокрутка страницы не блокируется. */
|
|
1590
|
+
noScroll?: boolean;
|
|
1456
1591
|
/**
|
|
1457
1592
|
* Управляемая строка поиска (`v-model:input-value`). Если не передана, компонент
|
|
1458
1593
|
* держит её сам. Задавать вместе с серверным поиском по событию `inputChange`.
|
|
@@ -1468,7 +1603,10 @@ declare interface Props_18 {
|
|
|
1468
1603
|
withSelectAll?: boolean;
|
|
1469
1604
|
}
|
|
1470
1605
|
|
|
1471
|
-
declare interface Props_19 {
|
|
1606
|
+
declare interface Props_19 extends FieldAccessibilityProps {
|
|
1607
|
+
styleSelectContainer?: CSSProperties;
|
|
1608
|
+
styleTitle?: CSSProperties;
|
|
1609
|
+
styleSelect?: CSSProperties;
|
|
1472
1610
|
title?: string;
|
|
1473
1611
|
required?: boolean;
|
|
1474
1612
|
options?: OptionItem[];
|
|
@@ -1507,9 +1645,12 @@ declare interface Props_2 {
|
|
|
1507
1645
|
size?: string | number;
|
|
1508
1646
|
color?: string;
|
|
1509
1647
|
ariaLabel?: string;
|
|
1648
|
+
rotate?: number;
|
|
1510
1649
|
}
|
|
1511
1650
|
|
|
1512
1651
|
declare interface Props_20 {
|
|
1652
|
+
styleSelectContainer?: CSSProperties;
|
|
1653
|
+
styleTitle?: CSSProperties;
|
|
1513
1654
|
title?: string;
|
|
1514
1655
|
required?: boolean;
|
|
1515
1656
|
placeholder?: string;
|
|
@@ -1539,6 +1680,7 @@ declare interface Props_20 {
|
|
|
1539
1680
|
|
|
1540
1681
|
declare interface Props_21 {
|
|
1541
1682
|
active?: boolean;
|
|
1683
|
+
portalOn?: boolean;
|
|
1542
1684
|
maxWidth?: string;
|
|
1543
1685
|
maxHeight?: string;
|
|
1544
1686
|
height?: string;
|
|
@@ -1553,6 +1695,8 @@ declare interface Props_21 {
|
|
|
1553
1695
|
* потребителей Escape уже занят собственными обработчиками.
|
|
1554
1696
|
*/
|
|
1555
1697
|
closeOnEscape?: boolean;
|
|
1698
|
+
/** Focus stays inside the top modal and returns to its trigger on close. */
|
|
1699
|
+
trapFocus?: boolean;
|
|
1556
1700
|
/**
|
|
1557
1701
|
* Блокировать прокрутку страницы под окном. Выключено по умолчанию: приложения
|
|
1558
1702
|
* работают внутри Qiankun, и стиль `document.body` затрагивает оболочку ЛК целиком.
|
|
@@ -1579,7 +1723,7 @@ declare interface Props_22 {
|
|
|
1579
1723
|
className?: string;
|
|
1580
1724
|
}
|
|
1581
1725
|
|
|
1582
|
-
declare interface Props_23 {
|
|
1726
|
+
declare interface Props_23 extends FieldAccessibilityProps {
|
|
1583
1727
|
modelValue?: Date | null;
|
|
1584
1728
|
title?: string;
|
|
1585
1729
|
placeholder?: string;
|
|
@@ -1607,9 +1751,9 @@ declare interface Props_23 {
|
|
|
1607
1751
|
disabled?: boolean;
|
|
1608
1752
|
className?: string;
|
|
1609
1753
|
/** Inline-стили обёртки заголовка и поля. */
|
|
1610
|
-
styleInputContainer?:
|
|
1754
|
+
styleInputContainer?: CSSProperties;
|
|
1611
1755
|
/** Inline-стили заголовка. */
|
|
1612
|
-
styleTitle?:
|
|
1756
|
+
styleTitle?: CSSProperties;
|
|
1613
1757
|
/**
|
|
1614
1758
|
* Редактирование даты колесом мыши, стрелками ↑↓ и переход между сегментами по Enter.
|
|
1615
1759
|
* По умолчанию выключено — поле работает как обычный masked-input (только ввод).
|
|
@@ -1646,7 +1790,8 @@ declare interface Props_24 {
|
|
|
1646
1790
|
isClearable?: boolean;
|
|
1647
1791
|
}
|
|
1648
1792
|
|
|
1649
|
-
declare interface Props_3 extends InputBaseProps {
|
|
1793
|
+
declare interface Props_3 extends InputBaseProps, FieldAccessibilityProps {
|
|
1794
|
+
styleInput?: CSSProperties;
|
|
1650
1795
|
modelValue?: string;
|
|
1651
1796
|
placeholder?: string;
|
|
1652
1797
|
id?: string;
|
|
@@ -1657,14 +1802,16 @@ declare interface Props_3 extends InputBaseProps {
|
|
|
1657
1802
|
tableView?: boolean;
|
|
1658
1803
|
}
|
|
1659
1804
|
|
|
1660
|
-
declare interface Props_4 extends InputBaseProps {
|
|
1805
|
+
declare interface Props_4 extends InputBaseProps, FieldAccessibilityProps {
|
|
1806
|
+
styleInput?: CSSProperties;
|
|
1661
1807
|
modelValue?: string;
|
|
1662
1808
|
placeholder?: string;
|
|
1663
1809
|
id?: string;
|
|
1664
1810
|
name?: string;
|
|
1665
1811
|
}
|
|
1666
1812
|
|
|
1667
|
-
declare interface Props_5 extends InputBaseProps {
|
|
1813
|
+
declare interface Props_5 extends InputBaseProps, FieldAccessibilityProps {
|
|
1814
|
+
styleInput?: CSSProperties;
|
|
1668
1815
|
modelValue?: string;
|
|
1669
1816
|
placeholder?: string;
|
|
1670
1817
|
id?: string;
|
|
@@ -1677,7 +1824,7 @@ declare interface Props_5 extends InputBaseProps {
|
|
|
1677
1824
|
maxLength?: number;
|
|
1678
1825
|
}
|
|
1679
1826
|
|
|
1680
|
-
declare interface Props_6 extends InputBaseProps {
|
|
1827
|
+
declare interface Props_6 extends InputBaseProps, FieldAccessibilityProps {
|
|
1681
1828
|
modelValue?: string | number;
|
|
1682
1829
|
placeholder?: string;
|
|
1683
1830
|
id?: string;
|
|
@@ -1694,7 +1841,7 @@ declare interface Props_6 extends InputBaseProps {
|
|
|
1694
1841
|
hintText?: string;
|
|
1695
1842
|
}
|
|
1696
1843
|
|
|
1697
|
-
declare interface Props_7 extends InputBaseProps {
|
|
1844
|
+
declare interface Props_7 extends InputBaseProps, FieldAccessibilityProps {
|
|
1698
1845
|
modelValue?: File[];
|
|
1699
1846
|
id?: string;
|
|
1700
1847
|
name?: string;
|
|
@@ -1709,7 +1856,7 @@ declare interface Props_7 extends InputBaseProps {
|
|
|
1709
1856
|
fileNamePattern?: RegExp;
|
|
1710
1857
|
}
|
|
1711
1858
|
|
|
1712
|
-
declare interface Props_8 extends InputBaseProps {
|
|
1859
|
+
declare interface Props_8 extends InputBaseProps, FieldAccessibilityProps {
|
|
1713
1860
|
modelValue?: string;
|
|
1714
1861
|
placeholder?: string;
|
|
1715
1862
|
id?: string;
|
|
@@ -1731,11 +1878,11 @@ declare interface Props_8 extends InputBaseProps {
|
|
|
1731
1878
|
/** Текст подсказки. */
|
|
1732
1879
|
hintText?: string;
|
|
1733
1880
|
/** Inline-стили обёртки заголовка и поля. */
|
|
1734
|
-
styleInputContainer?:
|
|
1881
|
+
styleInputContainer?: CSSProperties;
|
|
1735
1882
|
/** Inline-стили заголовка. */
|
|
1736
|
-
styleTitle?:
|
|
1883
|
+
styleTitle?: CSSProperties;
|
|
1737
1884
|
/** Inline-стили самого поля ввода. */
|
|
1738
|
-
styleInput?:
|
|
1885
|
+
styleInput?: CSSProperties;
|
|
1739
1886
|
}
|
|
1740
1887
|
|
|
1741
1888
|
/**
|
|
@@ -1777,6 +1924,9 @@ export declare const RadioGroup: __VLS_WithTemplateSlots_4<typeof __VLS_componen
|
|
|
1777
1924
|
|
|
1778
1925
|
declare type RadioGroupValue = string | number | undefined;
|
|
1779
1926
|
|
|
1927
|
+
/** Удалённые ключи исключаются, новые добавляются в порядке исходной схемы. */
|
|
1928
|
+
export declare function reconcileColumnOrder<Key extends string>(keys: readonly Key[], order?: readonly Key[]): Key[];
|
|
1929
|
+
|
|
1780
1930
|
/**
|
|
1781
1931
|
* Итоговый размер с учётом устаревшего `tableView`.
|
|
1782
1932
|
*
|
|
@@ -1815,7 +1965,7 @@ disabled: boolean;
|
|
|
1815
1965
|
modelValue: string;
|
|
1816
1966
|
placeholder: string;
|
|
1817
1967
|
className: string;
|
|
1818
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
1968
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1819
1969
|
|
|
1820
1970
|
export declare const SearchSelect: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1821
1971
|
"update:modelValue": (value: OptionItem | null) => any;
|
|
@@ -1831,17 +1981,17 @@ size: ComponentSize;
|
|
|
1831
1981
|
disabled: boolean;
|
|
1832
1982
|
title: string;
|
|
1833
1983
|
modelValue: OptionItem | null;
|
|
1834
|
-
options: OptionItem[];
|
|
1835
1984
|
required: boolean;
|
|
1985
|
+
options: OptionItem[];
|
|
1836
1986
|
placeholder: string;
|
|
1837
1987
|
lineUp: boolean;
|
|
1838
1988
|
rowGap: string | number;
|
|
1839
1989
|
columnGap: string | number;
|
|
1840
1990
|
portalOn: PortalMode;
|
|
1841
|
-
tableView: boolean;
|
|
1842
|
-
isClearable: boolean;
|
|
1843
1991
|
validationOn: boolean;
|
|
1844
1992
|
validationText: string;
|
|
1993
|
+
tableView: boolean;
|
|
1994
|
+
isClearable: boolean;
|
|
1845
1995
|
className: string;
|
|
1846
1996
|
absoluteValidationText: boolean;
|
|
1847
1997
|
loading: boolean;
|
|
@@ -1857,21 +2007,22 @@ export declare const Select: DefineComponent<Props_17, {}, {}, {}, {}, Component
|
|
|
1857
2007
|
"onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
|
|
1858
2008
|
}>, {
|
|
1859
2009
|
error: string | boolean;
|
|
2010
|
+
variant: "field" | "button";
|
|
1860
2011
|
size: ComponentSize;
|
|
1861
2012
|
disabled: boolean;
|
|
1862
2013
|
title: string;
|
|
1863
2014
|
modelValue: OptionItem | null;
|
|
1864
|
-
options: OptionItem[];
|
|
1865
2015
|
required: boolean;
|
|
2016
|
+
options: OptionItem[];
|
|
1866
2017
|
placeholder: string;
|
|
1867
2018
|
lineUp: boolean;
|
|
1868
2019
|
rowGap: string | number;
|
|
1869
2020
|
columnGap: string | number;
|
|
1870
2021
|
portalOn: PortalMode;
|
|
1871
|
-
tableView: boolean;
|
|
1872
|
-
isClearable: boolean;
|
|
1873
2022
|
validationOn: boolean;
|
|
1874
2023
|
validationText: string;
|
|
2024
|
+
tableView: boolean;
|
|
2025
|
+
isClearable: boolean;
|
|
1875
2026
|
className: string;
|
|
1876
2027
|
absoluteValidationText: boolean;
|
|
1877
2028
|
noScroll: boolean;
|
|
@@ -1883,8 +2034,8 @@ dropdownRef: HTMLDivElement;
|
|
|
1883
2034
|
declare const SIZES: readonly ["medium", "small"];
|
|
1884
2035
|
|
|
1885
2036
|
export declare const Skeleton: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_22> & Readonly<{}>, {
|
|
1886
|
-
width: string | number;
|
|
1887
2037
|
height: string | number;
|
|
2038
|
+
width: string | number;
|
|
1888
2039
|
borderRadius: string | number;
|
|
1889
2040
|
gap: string | number;
|
|
1890
2041
|
className: string;
|
|
@@ -1914,7 +2065,7 @@ declare type StatusSize = 'medium' | 'large';
|
|
|
1914
2065
|
|
|
1915
2066
|
declare type StatusVariant = 'warning' | 'info' | 'neutral' | 'success' | 'danger' | 'intermediate' | 'prepared' | '';
|
|
1916
2067
|
|
|
1917
|
-
export declare const StickyActionBar: __VLS_WithTemplateSlots_15<typeof
|
|
2068
|
+
export declare const StickyActionBar: __VLS_WithTemplateSlots_15<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
1918
2069
|
|
|
1919
2070
|
export declare const Switch: __VLS_WithTemplateSlots_5<DefineComponent<SwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1920
2071
|
change: (value: boolean) => any;
|
|
@@ -1954,15 +2105,17 @@ export declare const Table: <TRow extends TableRow>(__VLS_props: NonNullable<Awa
|
|
|
1954
2105
|
readonly onPageChange?: ((page: number) => any) | undefined;
|
|
1955
2106
|
readonly onPageSizeChange?: ((size: number) => any) | undefined;
|
|
1956
2107
|
readonly "onUpdate:filteredData"?: ((rows: TRow[]) => any) | undefined;
|
|
2108
|
+
readonly "onUpdate:filters"?: ((filters: TableFilterState) => any) | undefined;
|
|
1957
2109
|
readonly "onUpdate:sort"?: ((sort: {
|
|
1958
2110
|
column: string | null;
|
|
1959
2111
|
asc: boolean | null;
|
|
1960
2112
|
}) => any) | undefined;
|
|
1961
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDrop" | "onPageChange" | "onPageSizeChange" | "onUpdate:filteredData" | "onUpdate:sort"> & TableProps<TRow> & Partial<{}>> & PublicProps;
|
|
2113
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDrop" | "onPageChange" | "onPageSizeChange" | "onUpdate:filteredData" | "onUpdate:filters" | "onUpdate:sort"> & TableProps<TRow> & Partial<{}>> & PublicProps;
|
|
1962
2114
|
expose(exposed: ShallowUnwrapRef<TableExposed<TRow>>): void;
|
|
1963
2115
|
attrs: any;
|
|
1964
2116
|
slots: Readonly<{
|
|
1965
2117
|
empty?: () => unknown;
|
|
2118
|
+
'empty-filter'?: () => unknown;
|
|
1966
2119
|
cell?: (props: CellSlotProps<TRow>) => unknown;
|
|
1967
2120
|
header?: (props: HeaderSlotProps<TRow>) => unknown;
|
|
1968
2121
|
/** Своя панель над карточками в мобильном виде (вместо штатной сортировки). */
|
|
@@ -1976,8 +2129,11 @@ export declare const Table: <TRow extends TableRow>(__VLS_props: NonNullable<Awa
|
|
|
1976
2129
|
[x: `cell-${string}`]: ((props: CellSlotProps<TRow>) => unknown) | undefined;
|
|
1977
2130
|
} & {
|
|
1978
2131
|
[x: `header-${string}`]: ((props: HeaderSlotProps<TRow>) => unknown) | undefined;
|
|
2132
|
+
} & {
|
|
2133
|
+
[x: `filter-${string}`]: ((props: TableFilterContext) => unknown) | undefined;
|
|
1979
2134
|
}> & {
|
|
1980
2135
|
empty?: () => unknown;
|
|
2136
|
+
'empty-filter'?: () => unknown;
|
|
1981
2137
|
cell?: (props: CellSlotProps<TRow>) => unknown;
|
|
1982
2138
|
header?: (props: HeaderSlotProps<TRow>) => unknown;
|
|
1983
2139
|
/** Своя панель над карточками в мобильном виде (вместо штатной сортировки). */
|
|
@@ -1991,12 +2147,14 @@ export declare const Table: <TRow extends TableRow>(__VLS_props: NonNullable<Awa
|
|
|
1991
2147
|
[x: `cell-${string}`]: ((props: CellSlotProps<TRow>) => unknown) | undefined;
|
|
1992
2148
|
} & {
|
|
1993
2149
|
[x: `header-${string}`]: ((props: HeaderSlotProps<TRow>) => unknown) | undefined;
|
|
2150
|
+
} & {
|
|
2151
|
+
[x: `filter-${string}`]: ((props: TableFilterContext) => unknown) | undefined;
|
|
1994
2152
|
};
|
|
1995
2153
|
emit: ((evt: "drop", payload: {
|
|
1996
2154
|
fromIndex: number;
|
|
1997
2155
|
toIndex: number;
|
|
1998
2156
|
event: DragEvent;
|
|
1999
|
-
}) => void) & ((evt: "pageChange", page: number) => void) & ((evt: "pageSizeChange", size: number) => void) & ((evt: "update:filteredData", rows: TRow[]) => void) & ((evt: "update:sort", sort: {
|
|
2157
|
+
}) => void) & ((evt: "pageChange", page: number) => void) & ((evt: "pageSizeChange", size: number) => void) & ((evt: "update:filteredData", rows: TRow[]) => void) & ((evt: "update:filters", filters: TableFilterState) => void) & ((evt: "update:sort", sort: {
|
|
2000
2158
|
column: string | null;
|
|
2001
2159
|
asc: boolean | null;
|
|
2002
2160
|
}) => void);
|
|
@@ -2031,6 +2189,7 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
|
|
|
2031
2189
|
* ФИО по фамилии, версии по номерам. Важнее `filterValuePath`. При сортировке по
|
|
2032
2190
|
* убыванию результат инвертируется — компаратор всегда пишется «по возрастанию».
|
|
2033
2191
|
*/
|
|
2192
|
+
sortValue?: (row: TRow) => unknown;
|
|
2034
2193
|
sortComparator?: (a: TRow, b: TRow) => number;
|
|
2035
2194
|
/** Заголовок карточки. Если не задано ни у одной колонки — берётся первая. */
|
|
2036
2195
|
mobilePrimary?: boolean;
|
|
@@ -2049,6 +2208,10 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
|
|
|
2049
2208
|
* шевроном, значение обрезается по высоте и раскрывается по тапу.
|
|
2050
2209
|
*/
|
|
2051
2210
|
mobileCollapsible?: boolean;
|
|
2211
|
+
mobileExpandLines?: number;
|
|
2212
|
+
mobileGridSpan?: 2 | 'narrow' | 'full';
|
|
2213
|
+
mobileGridRowSpan?: 2;
|
|
2214
|
+
renderMobile?: (row: TRow, index: number) => VNode | string | number | null;
|
|
2052
2215
|
/** Подпись поля в карточке, если она отличается от заголовка колонки. */
|
|
2053
2216
|
mobileLabel?: string;
|
|
2054
2217
|
/** Цвет значения в карточке. */
|
|
@@ -2057,6 +2220,11 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
|
|
|
2057
2220
|
mobileLabelColor?: string;
|
|
2058
2221
|
/** Включить фильтр. */
|
|
2059
2222
|
filterable?: boolean;
|
|
2223
|
+
filterConditions?: boolean;
|
|
2224
|
+
filterWidth?: number | string;
|
|
2225
|
+
filterActive?: boolean;
|
|
2226
|
+
filterSelectedCount?: number;
|
|
2227
|
+
renderFilter?: (context: TableFilterContext) => VNode | null;
|
|
2060
2228
|
/** Тип фильтра. */
|
|
2061
2229
|
filterType?: TableFilterType;
|
|
2062
2230
|
/**
|
|
@@ -2096,6 +2264,8 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
|
|
|
2096
2264
|
renderHeader?: () => VNode | string | number | null;
|
|
2097
2265
|
}
|
|
2098
2266
|
|
|
2267
|
+
export declare type TableDateFilter = FilterDateState;
|
|
2268
|
+
|
|
2099
2269
|
/** Императивный API через `defineExpose`. */
|
|
2100
2270
|
export declare interface TableExposed<TRow extends TableRow = TableRow> {
|
|
2101
2271
|
resetFilters: () => void;
|
|
@@ -2103,11 +2273,54 @@ export declare interface TableExposed<TRow extends TableRow = TableRow> {
|
|
|
2103
2273
|
getFilteredData: () => TRow[];
|
|
2104
2274
|
}
|
|
2105
2275
|
|
|
2276
|
+
export declare interface TableFilterContext {
|
|
2277
|
+
filters: TableFilterState;
|
|
2278
|
+
setFilters: (next: TableFilterState | ((previous: TableFilterState) => TableFilterState)) => void;
|
|
2279
|
+
close: () => void;
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
export declare interface TableFilterOption<Value = unknown> {
|
|
2283
|
+
value: Value;
|
|
2284
|
+
label: string;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
export declare const TableFilterOptions: <Value>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_2<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2288
|
+
props: __VLS_PrettifyLocal_2<Pick<Partial<{}> & Omit<{
|
|
2289
|
+
readonly onSort?: (() => any) | undefined;
|
|
2290
|
+
readonly "onUpdate:values"?: ((values: Value[]) => any) | undefined;
|
|
2291
|
+
readonly "onUpdate:search"?: ((search: string) => any) | undefined;
|
|
2292
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onSort" | "onUpdate:values" | "onUpdate:search"> & TableFilterOptionsProps<Value> & Partial<{}>> & PublicProps;
|
|
2293
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
2294
|
+
attrs: any;
|
|
2295
|
+
slots: {
|
|
2296
|
+
'condition-control'?(_: {}): any;
|
|
2297
|
+
};
|
|
2298
|
+
emit: ((evt: "sort") => void) & ((evt: "update:values", values: Value[]) => void) & ((evt: "update:search", search: string) => void);
|
|
2299
|
+
}>) => VNode & {
|
|
2300
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2301
|
+
};
|
|
2302
|
+
|
|
2303
|
+
export declare interface TableFilterOptionsProps<Value = unknown> {
|
|
2304
|
+
options: readonly TableFilterOption<Value>[];
|
|
2305
|
+
values: readonly Value[];
|
|
2306
|
+
search?: string;
|
|
2307
|
+
searchLabel?: string;
|
|
2308
|
+
sort?: 'asc' | 'desc';
|
|
2309
|
+
sortable?: boolean;
|
|
2310
|
+
sortUnavailableReason?: string;
|
|
2311
|
+
optionsAlreadyFiltered?: boolean;
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2314
|
+
export declare interface TableFilterState {
|
|
2315
|
+
uncheckedValues: Record<string, unknown[]>;
|
|
2316
|
+
dates: TableDateFilter[];
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2106
2319
|
export declare type TableFilterType = 'string' | 'number' | 'date' | 'boolean';
|
|
2107
2320
|
|
|
2108
|
-
export declare const TableMobileCard: __VLS_WithTemplateSlots_19<typeof
|
|
2321
|
+
export declare const TableMobileCard: __VLS_WithTemplateSlots_19<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
|
|
2109
2322
|
|
|
2110
|
-
export declare const TableMobileView: __VLS_WithTemplateSlots_18<typeof
|
|
2323
|
+
export declare const TableMobileView: __VLS_WithTemplateSlots_18<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
2111
2324
|
|
|
2112
2325
|
export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
2113
2326
|
/** Данные таблицы. */
|
|
@@ -2135,6 +2348,9 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
2135
2348
|
* колонок возвращаются в исходное состояние (например, при смене набора данных).
|
|
2136
2349
|
*/
|
|
2137
2350
|
filterResetParam?: unknown;
|
|
2351
|
+
filterMode?: 'client' | 'server';
|
|
2352
|
+
filters?: TableFilterState;
|
|
2353
|
+
defaultFilters?: TableFilterState;
|
|
2138
2354
|
/**
|
|
2139
2355
|
* Сортировка при первом рендере: поле и направление. Нужна, чтобы таблица (и панель
|
|
2140
2356
|
* сортировки мобильного вида) открывалась в осмысленном порядке.
|
|
@@ -2165,11 +2381,13 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
2165
2381
|
/** Сколько полей оставить видимыми; остальные — под тап. */
|
|
2166
2382
|
mobileMaxVisible?: number;
|
|
2167
2383
|
/** Раскладка полей карточки: одна колонка или две. */
|
|
2168
|
-
mobileCardColumns?: 1 | 2;
|
|
2384
|
+
mobileCardColumns?: 1 | 2 | 3;
|
|
2169
2385
|
/** Зазор между карточками. */
|
|
2170
2386
|
mobileCardGap?: number | string;
|
|
2171
2387
|
/** Карточки без рамки и фона (для вложения в обрамлённый контейнер). */
|
|
2172
2388
|
mobileCardFlat?: boolean;
|
|
2389
|
+
mobileCardInset?: boolean;
|
|
2390
|
+
mobileCardDensity?: 'normal' | 'compact';
|
|
2173
2391
|
/** Тонкая линия-разделитель между карточками. */
|
|
2174
2392
|
mobileCardDivider?: boolean;
|
|
2175
2393
|
/** Показывать панель сортировки (по умолчанию — если есть сортируемые колонки). */
|
|
@@ -2192,6 +2410,8 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
2192
2410
|
filterEmptyLabel?: string;
|
|
2193
2411
|
/** Сообщение в одной строке таблицы при пустых данных. */
|
|
2194
2412
|
messageForEmptyTable?: string;
|
|
2413
|
+
/** Client filter excluded every original row; custom content via empty-filter slot. */
|
|
2414
|
+
messageForEmptyFilter?: string;
|
|
2195
2415
|
/** Отдельная подпись пустого карточного вида; 'off' скрывает её. */
|
|
2196
2416
|
mobileMessageForEmptyTable?: string | 'off';
|
|
2197
2417
|
/** Контент, отображаемый вместо таблицы при пустых данных. */
|
|
@@ -2246,6 +2466,7 @@ tabClick: (tab: TabItem) => any;
|
|
|
2246
2466
|
onTabClick?: ((tab: TabItem) => any) | undefined;
|
|
2247
2467
|
}>, {
|
|
2248
2468
|
variant: "line" | "segment";
|
|
2469
|
+
fullWidth: boolean;
|
|
2249
2470
|
tabsData: TabItem[];
|
|
2250
2471
|
activeTab: string | number;
|
|
2251
2472
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -2262,14 +2483,14 @@ disabled: boolean;
|
|
|
2262
2483
|
title: string;
|
|
2263
2484
|
modelValue: string;
|
|
2264
2485
|
id: string;
|
|
2486
|
+
name: string;
|
|
2265
2487
|
required: boolean;
|
|
2266
2488
|
placeholder: string;
|
|
2267
|
-
name: string;
|
|
2268
2489
|
lineUp: boolean;
|
|
2269
2490
|
rowGap: string | number;
|
|
2270
2491
|
columnGap: string | number;
|
|
2271
2492
|
errorAbsolute: boolean;
|
|
2272
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
2493
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2273
2494
|
|
|
2274
2495
|
export declare const Tooltip: __VLS_WithTemplateSlots_7<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2275
2496
|
|
|
@@ -2303,10 +2524,10 @@ lineUp: boolean;
|
|
|
2303
2524
|
rowGap: string | number;
|
|
2304
2525
|
columnGap: string | number;
|
|
2305
2526
|
portalOn: PortalMode;
|
|
2306
|
-
tableView: boolean;
|
|
2307
|
-
isClearable: boolean;
|
|
2308
2527
|
validationOn: boolean;
|
|
2309
2528
|
validationText: string;
|
|
2529
|
+
tableView: boolean;
|
|
2530
|
+
isClearable: boolean;
|
|
2310
2531
|
className: string;
|
|
2311
2532
|
absoluteValidationText: boolean;
|
|
2312
2533
|
isSearchable: boolean;
|
|
@@ -2322,6 +2543,9 @@ export declare type UiKitViewport = 'desktop' | 'tablet' | 'mobile';
|
|
|
2322
2543
|
|
|
2323
2544
|
export declare function useAutoId(providedId?: string | number | null, prefix?: string): string;
|
|
2324
2545
|
|
|
2546
|
+
/** Register a custom child Teleport; Vue native focus events do not cross Teleports. */
|
|
2547
|
+
export declare function useModalFocusPortal(root: Ref<HTMLElement | null>): void;
|
|
2548
|
+
|
|
2325
2549
|
export declare function useNotification(): NotificationService;
|
|
2326
2550
|
|
|
2327
2551
|
/** Состояние и готовые пропсы для Pagination с автоматическим ограничением страницы. */
|
|
@@ -2350,7 +2574,7 @@ export declare interface UsePaginationOptions {
|
|
|
2350
2574
|
|
|
2351
2575
|
export declare type UsePaginationResult = ReturnType<typeof usePagination>;
|
|
2352
2576
|
|
|
2353
|
-
export declare function useTableSort(): {
|
|
2577
|
+
export declare function useTableSort<T = unknown>(options?: UseTableSortOptions<T>): {
|
|
2354
2578
|
sort: Ref< {
|
|
2355
2579
|
column: string | null;
|
|
2356
2580
|
asc: boolean | null;
|
|
@@ -2358,10 +2582,23 @@ export declare function useTableSort(): {
|
|
|
2358
2582
|
column: string | null;
|
|
2359
2583
|
asc: boolean | null;
|
|
2360
2584
|
}>;
|
|
2361
|
-
toggleSort: (
|
|
2585
|
+
toggleSort: (clickedField: string) => void;
|
|
2362
2586
|
resetSort: () => void;
|
|
2587
|
+
field: ComputedRef<string | undefined>;
|
|
2588
|
+
dir: ComputedRef<SortDir | undefined>;
|
|
2589
|
+
setSort: (nextField?: string, nextDir?: SortDir) => void;
|
|
2590
|
+
toggle: (clickedField: string) => void;
|
|
2591
|
+
sortData: (rows: T[]) => T[];
|
|
2363
2592
|
};
|
|
2364
2593
|
|
|
2594
|
+
export declare interface UseTableSortOptions<T> {
|
|
2595
|
+
defaultField?: string;
|
|
2596
|
+
defaultDir?: SortDir;
|
|
2597
|
+
getValue?: (row: T, field: string) => unknown;
|
|
2598
|
+
locale?: string;
|
|
2599
|
+
onChange?: (field?: string, dir?: SortDir) => void;
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2365
2602
|
export declare type UseTableSortResult = ReturnType<typeof useTableSort>;
|
|
2366
2603
|
|
|
2367
2604
|
/** Общий брейкпоинт для структурных решений, которые нельзя выразить через CSS. */
|