urfu-ui-kit-vue 0.0.1 → 0.0.4
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 +618 -129
- package/dist/index.es +27570 -8490
- package/dist/index.js +144 -1
- package/dist/style.css +1 -1
- package/package.json +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { DefineComponent } from 'vue';
|
|
|
8
8
|
import { ExtractPropTypes } from 'vue';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
import { PublicProps } from 'vue';
|
|
11
|
+
import { Ref } from 'vue';
|
|
11
12
|
import { ShallowUnwrapRef } from 'vue';
|
|
12
13
|
import { VNode } from 'vue';
|
|
13
14
|
import { VNodeProps } from 'vue';
|
|
@@ -104,29 +105,93 @@ disabled: boolean;
|
|
|
104
105
|
ariaLabel: string;
|
|
105
106
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
106
107
|
|
|
107
|
-
declare const __VLS_component_10: DefineComponent<
|
|
108
|
+
declare const __VLS_component_10: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
109
|
+
hide: () => any;
|
|
110
|
+
fadeOutEnd: () => any;
|
|
111
|
+
}, string, PublicProps, Readonly<Props_13> & Readonly<{
|
|
112
|
+
onHide?: (() => any) | undefined;
|
|
113
|
+
onFadeOutEnd?: (() => any) | undefined;
|
|
114
|
+
}>, {
|
|
115
|
+
left: string;
|
|
116
|
+
right: string;
|
|
117
|
+
variant: NotificationVariant;
|
|
118
|
+
top: string;
|
|
119
|
+
zIndex: string;
|
|
120
|
+
autoHide: boolean;
|
|
121
|
+
duration: number;
|
|
122
|
+
fadeOutDuration: number;
|
|
123
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
124
|
+
|
|
125
|
+
declare const __VLS_component_11: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
108
126
|
|
|
109
|
-
declare const
|
|
127
|
+
declare const __VLS_component_12: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {
|
|
110
128
|
className: string;
|
|
111
129
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
112
130
|
barRef: HTMLElement;
|
|
113
131
|
}, HTMLElement>;
|
|
114
132
|
|
|
115
|
-
declare const
|
|
133
|
+
declare const __VLS_component_13: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
116
134
|
cancel: () => any;
|
|
117
|
-
}, string, PublicProps, Readonly<
|
|
135
|
+
}, string, PublicProps, Readonly<Props_20> & Readonly<{
|
|
118
136
|
onCancel?: (() => any) | undefined;
|
|
119
137
|
}>, {
|
|
120
138
|
active: boolean;
|
|
121
139
|
ariaLabel: string;
|
|
122
140
|
height: string;
|
|
123
141
|
maxHeight: string;
|
|
124
|
-
maxWidth: string;
|
|
125
142
|
className: string;
|
|
143
|
+
maxWidth: string;
|
|
126
144
|
notCloseClickOnBack: boolean;
|
|
127
145
|
ariaLabelledby: string;
|
|
128
146
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
129
147
|
|
|
148
|
+
declare const __VLS_component_14: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
149
|
+
applySort: (field: string | undefined, dir: "desc" | "asc" | undefined) => any;
|
|
150
|
+
setSortField: (field: string) => any;
|
|
151
|
+
toggleSortDir: () => any;
|
|
152
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
153
|
+
onApplySort?: ((field: string | undefined, dir: "desc" | "asc" | undefined) => any) | undefined;
|
|
154
|
+
onSetSortField?: ((field: string) => any) | undefined;
|
|
155
|
+
onToggleSortDir?: (() => any) | undefined;
|
|
156
|
+
}>, {
|
|
157
|
+
dataLength: number;
|
|
158
|
+
isLoading: boolean;
|
|
159
|
+
messageForEmptyTable: string;
|
|
160
|
+
effectiveSortField: string;
|
|
161
|
+
effectiveSortDir: "asc" | "desc";
|
|
162
|
+
renderCell: (row: TableRow, column: TableColumn) => unknown;
|
|
163
|
+
mobileSortBar: boolean;
|
|
164
|
+
mobileSortLabel: string;
|
|
165
|
+
mobileSortStyle: "select" | "segments" | "menu";
|
|
166
|
+
mobileCardCollapsible: boolean;
|
|
167
|
+
mobileCardLabels: boolean;
|
|
168
|
+
mobileMaxVisible: number;
|
|
169
|
+
mobileCardColumns: 1 | 2;
|
|
170
|
+
mobileCardGap: number | string;
|
|
171
|
+
mobileCardDivider: boolean;
|
|
172
|
+
mobileCardFlat: boolean;
|
|
173
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
174
|
+
sortMenuRef: HTMLDivElement;
|
|
175
|
+
sortSegRef: HTMLDivElement;
|
|
176
|
+
}, HTMLDivElement>;
|
|
177
|
+
|
|
178
|
+
declare const __VLS_component_15: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
|
|
179
|
+
flat: boolean;
|
|
180
|
+
body: MobileField[];
|
|
181
|
+
details: MobileField[];
|
|
182
|
+
title: undefined;
|
|
183
|
+
inline: MobileField[];
|
|
184
|
+
titleLabel: undefined;
|
|
185
|
+
titleHideLabel: boolean;
|
|
186
|
+
titleColor: string;
|
|
187
|
+
titleLabelColor: string;
|
|
188
|
+
subtitle: undefined;
|
|
189
|
+
subtitleColor: string;
|
|
190
|
+
divider: boolean;
|
|
191
|
+
showLabels: boolean;
|
|
192
|
+
columns: 1 | 2;
|
|
193
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
194
|
+
|
|
130
195
|
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
131
196
|
click: (event: MouseEvent) => any;
|
|
132
197
|
change: (event: Event) => any;
|
|
@@ -157,9 +222,9 @@ disabled: boolean;
|
|
|
157
222
|
ariaLabel: string;
|
|
158
223
|
modelValue: boolean;
|
|
159
224
|
id: string;
|
|
225
|
+
name: string;
|
|
160
226
|
value: string | number;
|
|
161
227
|
rightRadio: boolean;
|
|
162
|
-
name: string;
|
|
163
228
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
164
229
|
|
|
165
230
|
declare const __VLS_component_4: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -182,12 +247,13 @@ id: string;
|
|
|
182
247
|
|
|
183
248
|
declare const __VLS_component_6: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
184
249
|
id: string;
|
|
185
|
-
tooltipText: string;
|
|
186
250
|
position: TooltipPosition;
|
|
251
|
+
tooltipText: string;
|
|
187
252
|
isActive: boolean;
|
|
188
253
|
showWhenActive: boolean;
|
|
189
254
|
tooltipStyle: Record<string, string>;
|
|
190
255
|
autoPosition: boolean;
|
|
256
|
+
fullWidth: boolean;
|
|
191
257
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
192
258
|
tooltipRef: HTMLDivElement;
|
|
193
259
|
triggerRef: HTMLSpanElement;
|
|
@@ -200,21 +266,18 @@ variant: MessageVariant;
|
|
|
200
266
|
size: MessageSize;
|
|
201
267
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
202
268
|
|
|
203
|
-
declare const __VLS_component_9: DefineComponent<
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}, string, PublicProps, Readonly<
|
|
207
|
-
|
|
208
|
-
|
|
269
|
+
declare const __VLS_component_9: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
270
|
+
pageChange: (page: number) => any;
|
|
271
|
+
pageSizeChange: (size: number) => any;
|
|
272
|
+
}, string, PublicProps, Readonly<Props_9> & Readonly<{
|
|
273
|
+
onPageChange?: ((page: number) => any) | undefined;
|
|
274
|
+
onPageSizeChange?: ((size: number) => any) | undefined;
|
|
209
275
|
}>, {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
autoHide: boolean;
|
|
216
|
-
duration: number;
|
|
217
|
-
fadeOutDuration: number;
|
|
276
|
+
marginTop: number;
|
|
277
|
+
dataLength: number;
|
|
278
|
+
pageWindow: number;
|
|
279
|
+
pageSizeOptions: number[];
|
|
280
|
+
hideResults: boolean;
|
|
218
281
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
219
282
|
|
|
220
283
|
declare type __VLS_PrettifyLocal<T> = {
|
|
@@ -293,6 +356,12 @@ declare type __VLS_Props_5 = {
|
|
|
293
356
|
* Если включено — `position` используется только как стартовая попытка.
|
|
294
357
|
*/
|
|
295
358
|
autoPosition?: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* Растянуть обёртку и триггер на всю ширину контейнера. Нужно, когда подсказкой
|
|
361
|
+
* оборачивается поле ввода: по умолчанию обёртка `inline-block` сжимается по
|
|
362
|
+
* контенту, и поле внутри получает `width: 100%` от сжатой обёртки.
|
|
363
|
+
*/
|
|
364
|
+
fullWidth?: boolean;
|
|
296
365
|
};
|
|
297
366
|
|
|
298
367
|
declare type __VLS_Props_6 = {
|
|
@@ -300,6 +369,56 @@ declare type __VLS_Props_6 = {
|
|
|
300
369
|
variant?: MessageVariant;
|
|
301
370
|
};
|
|
302
371
|
|
|
372
|
+
/**
|
|
373
|
+
* Мобильный (карточный) вид таблицы. Порт из React-кита (`TableMobileView.tsx`):
|
|
374
|
+
* панель сортировки в трёх стилях (select / segments / menu), роли колонок и карточки-
|
|
375
|
+
* строки. Роли колонок задаются пропсами колонки (`mobilePrimary`, `mobileSubtitle`,
|
|
376
|
+
* `mobileInline`, `mobileSecondary`, `mobileHidden`).
|
|
377
|
+
*/
|
|
378
|
+
declare type __VLS_Props_7 = {
|
|
379
|
+
filteredColumns: TableColumn[];
|
|
380
|
+
pagedData: TableRow[];
|
|
381
|
+
filteredDataLength: number;
|
|
382
|
+
dataLength?: number;
|
|
383
|
+
isCardMode: boolean;
|
|
384
|
+
isLoading?: boolean;
|
|
385
|
+
messageForEmptyTable?: string;
|
|
386
|
+
effectiveSortField?: string;
|
|
387
|
+
effectiveSortDir?: 'asc' | 'desc';
|
|
388
|
+
/**
|
|
389
|
+
* Рендер значения ячейки из таблицы: слот `cell-<field>` или `column.render`.
|
|
390
|
+
* Без него в карточке было бы сырое значение поля.
|
|
391
|
+
*/
|
|
392
|
+
renderCell?: (row: TableRow, column: TableColumn) => unknown;
|
|
393
|
+
mobileSortBar?: boolean;
|
|
394
|
+
mobileSortLabel?: string;
|
|
395
|
+
mobileSortStyle?: 'select' | 'segments' | 'menu';
|
|
396
|
+
mobileCardCollapsible?: boolean;
|
|
397
|
+
mobileCardLabels?: boolean;
|
|
398
|
+
mobileMaxVisible?: number;
|
|
399
|
+
mobileCardColumns?: 1 | 2;
|
|
400
|
+
mobileCardGap?: number | string;
|
|
401
|
+
mobileCardDivider?: boolean;
|
|
402
|
+
mobileCardFlat?: boolean;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare type __VLS_Props_8 = {
|
|
406
|
+
title?: unknown;
|
|
407
|
+
titleLabel?: unknown;
|
|
408
|
+
titleHideLabel?: boolean;
|
|
409
|
+
titleColor?: string;
|
|
410
|
+
titleLabelColor?: string;
|
|
411
|
+
subtitle?: unknown;
|
|
412
|
+
subtitleColor?: string;
|
|
413
|
+
inline?: MobileField[];
|
|
414
|
+
body?: MobileField[];
|
|
415
|
+
details?: MobileField[];
|
|
416
|
+
flat?: boolean;
|
|
417
|
+
divider?: boolean;
|
|
418
|
+
showLabels?: boolean;
|
|
419
|
+
columns?: 1 | 2;
|
|
420
|
+
};
|
|
421
|
+
|
|
303
422
|
declare function __VLS_template(): {
|
|
304
423
|
attrs: Partial<{}>;
|
|
305
424
|
slots: {
|
|
@@ -320,6 +439,15 @@ declare function __VLS_template_10(): {
|
|
|
320
439
|
};
|
|
321
440
|
|
|
322
441
|
declare function __VLS_template_11(): {
|
|
442
|
+
attrs: Partial<{}>;
|
|
443
|
+
slots: {
|
|
444
|
+
default?(_: {}): any;
|
|
445
|
+
};
|
|
446
|
+
refs: {};
|
|
447
|
+
rootEl: any;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
declare function __VLS_template_12(): {
|
|
323
451
|
attrs: Partial<{}>;
|
|
324
452
|
slots: {
|
|
325
453
|
default?(_: {}): any;
|
|
@@ -330,7 +458,7 @@ declare function __VLS_template_11(): {
|
|
|
330
458
|
rootEl: HTMLElement;
|
|
331
459
|
};
|
|
332
460
|
|
|
333
|
-
declare function
|
|
461
|
+
declare function __VLS_template_13(): {
|
|
334
462
|
attrs: Partial<{}>;
|
|
335
463
|
slots: {
|
|
336
464
|
default?(_: {}): any;
|
|
@@ -339,6 +467,33 @@ declare function __VLS_template_12(): {
|
|
|
339
467
|
rootEl: any;
|
|
340
468
|
};
|
|
341
469
|
|
|
470
|
+
declare function __VLS_template_14(): {
|
|
471
|
+
attrs: Partial<{}>;
|
|
472
|
+
slots: {
|
|
473
|
+
'mobile-toolbar'?(_: {}): any;
|
|
474
|
+
'mobile-card'?(_: {
|
|
475
|
+
key: string;
|
|
476
|
+
row: TableRow;
|
|
477
|
+
index: number;
|
|
478
|
+
}): any;
|
|
479
|
+
};
|
|
480
|
+
refs: {
|
|
481
|
+
sortMenuRef: HTMLDivElement;
|
|
482
|
+
sortSegRef: HTMLDivElement;
|
|
483
|
+
};
|
|
484
|
+
rootEl: HTMLDivElement;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
declare function __VLS_template_15(): {
|
|
488
|
+
attrs: Partial<{}>;
|
|
489
|
+
slots: {
|
|
490
|
+
titleLabel?(_: {}): any;
|
|
491
|
+
title?(_: {}): any;
|
|
492
|
+
};
|
|
493
|
+
refs: {};
|
|
494
|
+
rootEl: HTMLDivElement;
|
|
495
|
+
};
|
|
496
|
+
|
|
342
497
|
declare function __VLS_template_2(): {
|
|
343
498
|
attrs: Partial<{}>;
|
|
344
499
|
slots: {
|
|
@@ -410,7 +565,11 @@ declare function __VLS_template_8(): {
|
|
|
410
565
|
declare function __VLS_template_9(): {
|
|
411
566
|
attrs: Partial<{}>;
|
|
412
567
|
slots: {
|
|
413
|
-
|
|
568
|
+
results?(_: {
|
|
569
|
+
startItem: number;
|
|
570
|
+
endItem: number;
|
|
571
|
+
totalItems: number;
|
|
572
|
+
}): any;
|
|
414
573
|
};
|
|
415
574
|
refs: {};
|
|
416
575
|
rootEl: any;
|
|
@@ -424,6 +583,12 @@ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
|
424
583
|
|
|
425
584
|
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
426
585
|
|
|
586
|
+
declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
|
|
587
|
+
|
|
588
|
+
declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
|
|
589
|
+
|
|
590
|
+
declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
|
|
591
|
+
|
|
427
592
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
428
593
|
|
|
429
594
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -482,6 +647,24 @@ declare type __VLS_WithTemplateSlots_15<T, S> = T & {
|
|
|
482
647
|
};
|
|
483
648
|
};
|
|
484
649
|
|
|
650
|
+
declare type __VLS_WithTemplateSlots_16<T, S> = T & {
|
|
651
|
+
new (): {
|
|
652
|
+
$slots: S;
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
declare type __VLS_WithTemplateSlots_17<T, S> = T & {
|
|
657
|
+
new (): {
|
|
658
|
+
$slots: S;
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
declare type __VLS_WithTemplateSlots_18<T, S> = T & {
|
|
663
|
+
new (): {
|
|
664
|
+
$slots: S;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
|
|
485
668
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
486
669
|
new (): {
|
|
487
670
|
$slots: S;
|
|
@@ -530,7 +713,7 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
530
713
|
};
|
|
531
714
|
};
|
|
532
715
|
|
|
533
|
-
export declare const Accordion:
|
|
716
|
+
export declare const Accordion: __VLS_WithTemplateSlots_11<DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_12> & Readonly<{}>, {
|
|
534
717
|
title: string;
|
|
535
718
|
id: string;
|
|
536
719
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
@@ -544,9 +727,9 @@ declare interface BreadCrumbItem {
|
|
|
544
727
|
to?: string;
|
|
545
728
|
}
|
|
546
729
|
|
|
547
|
-
export declare const BreadCrumbs: DefineComponent<
|
|
730
|
+
export declare const BreadCrumbs: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
548
731
|
navigate: (to: string) => any;
|
|
549
|
-
}, string, PublicProps, Readonly<
|
|
732
|
+
}, string, PublicProps, Readonly<Props_10> & Readonly<{
|
|
550
733
|
onNavigate?: ((to: string) => any) | undefined;
|
|
551
734
|
}>, {
|
|
552
735
|
items: BreadCrumbItem[];
|
|
@@ -562,15 +745,26 @@ declare type ButtonType = typeof BUTTON_TYPES[number];
|
|
|
562
745
|
|
|
563
746
|
declare type ButtonVariant = typeof VARIANTS[number];
|
|
564
747
|
|
|
565
|
-
export declare const Calendar: DefineComponent<
|
|
748
|
+
export declare const Calendar: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
566
749
|
"update:modelValue": (value: Date | null) => any;
|
|
567
|
-
|
|
750
|
+
"update:optionState": (value: string) => any;
|
|
751
|
+
}, string, PublicProps, Readonly<Props_22> & Readonly<{
|
|
568
752
|
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
753
|
+
"onUpdate:optionState"?: ((value: string) => any) | undefined;
|
|
569
754
|
}>, {
|
|
755
|
+
title: string;
|
|
570
756
|
modelValue: Date | null;
|
|
571
|
-
|
|
757
|
+
id: string;
|
|
572
758
|
rowGap: string | number;
|
|
759
|
+
columnGap: string | number;
|
|
760
|
+
styleInputContainer: Record<string, string>;
|
|
761
|
+
styleTitle: Record<string, string>;
|
|
573
762
|
placeholder: string;
|
|
763
|
+
tooltipMaxWidth: string | number;
|
|
764
|
+
hintText: string;
|
|
765
|
+
wheelEdit: boolean;
|
|
766
|
+
showHint: boolean;
|
|
767
|
+
className: string;
|
|
574
768
|
validationText: string;
|
|
575
769
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
576
770
|
|
|
@@ -585,6 +779,8 @@ export declare interface CellSlotProps<TRow extends TableRow = TableRow> {
|
|
|
585
779
|
|
|
586
780
|
export declare const Checkbox: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
587
781
|
|
|
782
|
+
export declare type DateSegment = 'day' | 'month' | 'year';
|
|
783
|
+
|
|
588
784
|
export declare interface FilterDateState {
|
|
589
785
|
id: string;
|
|
590
786
|
type: string;
|
|
@@ -592,18 +788,50 @@ export declare interface FilterDateState {
|
|
|
592
788
|
end: unknown;
|
|
593
789
|
}
|
|
594
790
|
|
|
791
|
+
/** Форматирует дату в «дд.мм.гггг» (пустая строка для null). */
|
|
792
|
+
export declare const formatDateValue: (date: Date | null) => string;
|
|
793
|
+
|
|
794
|
+
/** Сегмент по позиции каретки. */
|
|
795
|
+
export declare const getSegmentAtCaret: (caret: number) => DateSegment;
|
|
796
|
+
|
|
797
|
+
/** Диапазоны символов сегментов в строке дд.мм.гггг. */
|
|
798
|
+
export declare const getSegmentRange: (segment: DateSegment) => [number, number];
|
|
799
|
+
|
|
595
800
|
/** Тип для слота #header / #header-${field}. */
|
|
596
801
|
export declare interface HeaderSlotProps<TRow extends TableRow = TableRow> {
|
|
597
802
|
column: TableColumn<TRow>;
|
|
598
803
|
columnIndex: number;
|
|
599
804
|
}
|
|
600
805
|
|
|
601
|
-
export declare const Icon: DefineComponent<
|
|
806
|
+
export declare const Icon: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
|
|
602
807
|
size: string | number;
|
|
808
|
+
ariaLabel: string;
|
|
603
809
|
color: string;
|
|
604
810
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
605
811
|
|
|
606
|
-
|
|
812
|
+
/**
|
|
813
|
+
* Имена иконок иконочного шрифта UI-кита.
|
|
814
|
+
*
|
|
815
|
+
* Источник правды — `urfu-ui-kit-vanilla/src/icons.json`, который генерируется вместе
|
|
816
|
+
* со шрифтом. Здесь список продублирован через `as const` только ради строгого типа
|
|
817
|
+
* `IconName`: JSON-импорт даёт `string[]` без литералов, а публичный API компонентов
|
|
818
|
+
* должен подсказывать конкретные значения.
|
|
819
|
+
*
|
|
820
|
+
* Расхождение с китом ловит `iconsList.vitest.test.ts` — если в ките появились новые
|
|
821
|
+
* иконки, тест упадёт и покажет, что дописать.
|
|
822
|
+
*/
|
|
823
|
+
declare const ICON_NAMES: readonly ["active", "application", "arrow-sideways", "attention", "audit", "basket", "block", "briefcase", "calculator", "calendar", "catalog", "chat", "check", "clock", "computer", "confederate", "context", "copy", "correct", "cross", "cross-small", "cup", "directory", "doc", "document", "documents", "down", "down-arrow", "download", "download-line", "dropdown", "dropdown-horisontal", "entrance", "events", "extracurricular-activities", "filter", "filter-mobile", "filter-tb", "folder", "folders", "full-screen", "hidden", "home", "img", "information", "jpg", "lamp", "left", "left-arrow", "letter", "library", "like", "link", "list-view", "lk-role", "map", "minus", "mobile", "moderation", "news", "notify", "ok", "participant", "pdf", "pencil", "people", "plus", "png", "ppt", "qr", "question", "rating", "right", "right-arrow", "role", "save", "search", "setting", "settlement", "sorting", "sport", "star", "star-top20", "star-top50", "star2", "structure", "submenu", "svg", "table-view", "telephone", "test-tube", "top100", "top20", "top50", "tube", "tv", "university", "unlink", "unlink2", "up", "up-arrow", "upload", "user", "video", "video-instruction", "warning", "xls", "zip"];
|
|
824
|
+
|
|
825
|
+
/** Строгий тип имени иконки — для пропсов компонентов. */
|
|
826
|
+
declare type IconName = typeof ICON_NAMES[number];
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Изменяет один сегмент на delta. День и месяц зацикливаются внутри своего диапазона и
|
|
830
|
+
* НЕ переносятся в соседний сегмент. Год — с ограничением снизу (без зацикливания).
|
|
831
|
+
* При смене месяца/года день ограничивается числом дней в выбранном месяце
|
|
832
|
+
* (30 января → февраль = 28/29, а не «перескок» на март).
|
|
833
|
+
*/
|
|
834
|
+
export declare const incrementDateSegment: (value: string, segment: DateSegment, delta: number) => string;
|
|
607
835
|
|
|
608
836
|
declare interface InputBaseProps {
|
|
609
837
|
title?: string;
|
|
@@ -618,10 +846,10 @@ declare interface InputBaseProps {
|
|
|
618
846
|
errorAbsolute?: boolean;
|
|
619
847
|
}
|
|
620
848
|
|
|
621
|
-
export declare const InputExpandTextarea: DefineComponent<
|
|
849
|
+
export declare const InputExpandTextarea: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
622
850
|
change: (event: Event) => any;
|
|
623
851
|
"update:modelValue": (value: string) => any;
|
|
624
|
-
}, string, PublicProps, Readonly<
|
|
852
|
+
}, string, PublicProps, Readonly<Props_5> & Readonly<{
|
|
625
853
|
onChange?: ((event: Event) => any) | undefined;
|
|
626
854
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
627
855
|
}>, {
|
|
@@ -630,23 +858,23 @@ error: boolean | string;
|
|
|
630
858
|
title: string;
|
|
631
859
|
modelValue: string;
|
|
632
860
|
id: string;
|
|
633
|
-
columnGap: string | number;
|
|
634
861
|
required: boolean;
|
|
635
862
|
lineUp: boolean;
|
|
636
863
|
rowGap: string | number;
|
|
864
|
+
columnGap: string | number;
|
|
637
865
|
errorAbsolute: boolean;
|
|
638
866
|
placeholder: string;
|
|
639
|
-
tableView: boolean;
|
|
640
867
|
minHeight: string | number;
|
|
868
|
+
tableView: boolean;
|
|
641
869
|
maxLength: number;
|
|
642
870
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
643
871
|
textareaRef: HTMLTextAreaElement;
|
|
644
872
|
}, HTMLDivElement>;
|
|
645
873
|
|
|
646
|
-
export declare const InputFile: DefineComponent<
|
|
874
|
+
export declare const InputFile: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
647
875
|
"update:modelValue": (files: File[]) => any;
|
|
648
876
|
fileReject: (reason: string, file: File) => any;
|
|
649
|
-
}, string, PublicProps, Readonly<
|
|
877
|
+
}, string, PublicProps, Readonly<Props_7> & Readonly<{
|
|
650
878
|
"onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
|
|
651
879
|
onFileReject?: ((reason: string, file: File) => any) | undefined;
|
|
652
880
|
}>, {
|
|
@@ -656,10 +884,10 @@ title: string;
|
|
|
656
884
|
modelValue: File[];
|
|
657
885
|
id: string;
|
|
658
886
|
name: string;
|
|
659
|
-
columnGap: string | number;
|
|
660
887
|
required: boolean;
|
|
661
888
|
lineUp: boolean;
|
|
662
889
|
rowGap: string | number;
|
|
890
|
+
columnGap: string | number;
|
|
663
891
|
errorAbsolute: boolean;
|
|
664
892
|
loadingInfo: string;
|
|
665
893
|
filesInfo: string;
|
|
@@ -672,14 +900,14 @@ maxFileSize: number;
|
|
|
672
900
|
fileNamePattern: RegExp;
|
|
673
901
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
674
902
|
fileInputRef: HTMLInputElement;
|
|
675
|
-
},
|
|
903
|
+
}, any>;
|
|
676
904
|
|
|
677
|
-
export declare const InputNumber: DefineComponent<
|
|
905
|
+
export declare const InputNumber: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
678
906
|
change: (event: Event) => any;
|
|
679
|
-
"update:modelValue": (value: string) => any;
|
|
680
|
-
}, string, PublicProps, Readonly<
|
|
907
|
+
"update:modelValue": (value: string | number) => any;
|
|
908
|
+
}, string, PublicProps, Readonly<Props_6> & Readonly<{
|
|
681
909
|
onChange?: ((event: Event) => any) | undefined;
|
|
682
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
910
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
683
911
|
}>, {
|
|
684
912
|
disabled: boolean;
|
|
685
913
|
error: boolean | string;
|
|
@@ -687,24 +915,26 @@ title: string;
|
|
|
687
915
|
modelValue: string | number;
|
|
688
916
|
id: string;
|
|
689
917
|
name: string;
|
|
690
|
-
columnGap: string | number;
|
|
691
918
|
required: boolean;
|
|
692
919
|
lineUp: boolean;
|
|
693
920
|
rowGap: string | number;
|
|
921
|
+
columnGap: string | number;
|
|
694
922
|
errorAbsolute: boolean;
|
|
695
923
|
placeholder: string;
|
|
696
924
|
min: string | number;
|
|
697
925
|
max: string | number;
|
|
698
926
|
tooltipMaxWidth: string | number;
|
|
927
|
+
restoreLastOnBlur: boolean;
|
|
928
|
+
hintText: string;
|
|
699
929
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
700
930
|
wheelZoneRef: HTMLDivElement;
|
|
701
931
|
inputRef: HTMLInputElement;
|
|
702
932
|
}, HTMLDivElement>;
|
|
703
933
|
|
|
704
|
-
export declare const InputText: DefineComponent<
|
|
934
|
+
export declare const InputText: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
705
935
|
change: (event: Event) => any;
|
|
706
936
|
"update:modelValue": (value: string) => any;
|
|
707
|
-
}, string, PublicProps, Readonly<
|
|
937
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
708
938
|
onChange?: ((event: Event) => any) | undefined;
|
|
709
939
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
710
940
|
}>, {
|
|
@@ -714,10 +944,10 @@ title: string;
|
|
|
714
944
|
modelValue: string;
|
|
715
945
|
id: string;
|
|
716
946
|
name: string;
|
|
717
|
-
columnGap: string | number;
|
|
718
947
|
required: boolean;
|
|
719
948
|
lineUp: boolean;
|
|
720
949
|
rowGap: string | number;
|
|
950
|
+
columnGap: string | number;
|
|
721
951
|
errorAbsolute: boolean;
|
|
722
952
|
placeholder: string;
|
|
723
953
|
tableView: boolean;
|
|
@@ -725,11 +955,11 @@ tableView: boolean;
|
|
|
725
955
|
inputRef: HTMLInputElement;
|
|
726
956
|
}, HTMLDivElement>;
|
|
727
957
|
|
|
728
|
-
export declare const InputTime: DefineComponent<
|
|
729
|
-
change: (
|
|
958
|
+
export declare const InputTime: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
959
|
+
change: (value: string) => any;
|
|
730
960
|
"update:modelValue": (value: string) => any;
|
|
731
|
-
}, string, PublicProps, Readonly<
|
|
732
|
-
onChange?: ((
|
|
961
|
+
}, string, PublicProps, Readonly<Props_8> & Readonly<{
|
|
962
|
+
onChange?: ((value: string) => any) | undefined;
|
|
733
963
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
734
964
|
}>, {
|
|
735
965
|
disabled: boolean;
|
|
@@ -738,21 +968,55 @@ title: string;
|
|
|
738
968
|
modelValue: string;
|
|
739
969
|
id: string;
|
|
740
970
|
name: string;
|
|
741
|
-
columnGap: string | number;
|
|
742
971
|
required: boolean;
|
|
743
972
|
lineUp: boolean;
|
|
744
973
|
rowGap: string | number;
|
|
974
|
+
columnGap: string | number;
|
|
745
975
|
errorAbsolute: boolean;
|
|
976
|
+
styleInputContainer: Record<string, string>;
|
|
977
|
+
styleTitle: Record<string, string>;
|
|
746
978
|
placeholder: string;
|
|
747
979
|
tooltipMaxWidth: string | number;
|
|
980
|
+
hintText: string;
|
|
981
|
+
isClearable: boolean;
|
|
982
|
+
wheelEdit: boolean;
|
|
983
|
+
showHint: boolean;
|
|
984
|
+
styleInput: Record<string, string>;
|
|
748
985
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
749
986
|
rootRef: HTMLDivElement;
|
|
750
987
|
inputRef: HTMLInputElement;
|
|
751
988
|
hoursColumnRef: HTMLDivElement;
|
|
752
989
|
minutesColumnRef: HTMLDivElement;
|
|
753
|
-
},
|
|
990
|
+
}, any>;
|
|
991
|
+
|
|
992
|
+
/** Маска дд.мм.гггг с валидацией дня (01–31) и месяца (01–12). */
|
|
993
|
+
export declare const maskDateValue: (raw: string) => string;
|
|
994
|
+
|
|
995
|
+
export declare const MaskedDateInput: DefineComponent<Props_23, {
|
|
996
|
+
inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
997
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
998
|
+
"update-value": (value: string) => any;
|
|
999
|
+
"open-calendar": () => any;
|
|
1000
|
+
"focus-change": (focused: boolean) => any;
|
|
1001
|
+
"input-click": () => any;
|
|
1002
|
+
}, string, PublicProps, Readonly<Props_23> & Readonly<{
|
|
1003
|
+
"onUpdate-value"?: ((value: string) => any) | undefined;
|
|
1004
|
+
"onOpen-calendar"?: (() => any) | undefined;
|
|
1005
|
+
"onFocus-change"?: ((focused: boolean) => any) | undefined;
|
|
1006
|
+
"onInput-click"?: (() => any) | undefined;
|
|
1007
|
+
}>, {
|
|
1008
|
+
disabled: boolean;
|
|
1009
|
+
id: string;
|
|
1010
|
+
placeholder: string;
|
|
1011
|
+
value: string;
|
|
1012
|
+
isClearable: boolean;
|
|
1013
|
+
wheelEdit: boolean;
|
|
1014
|
+
inputClass: string;
|
|
1015
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1016
|
+
inputRef: HTMLInputElement;
|
|
1017
|
+
}, HTMLInputElement>;
|
|
754
1018
|
|
|
755
|
-
export declare const Menu:
|
|
1019
|
+
export declare const Menu: __VLS_WithTemplateSlots_15<DefineComponent< {
|
|
756
1020
|
menuData?: MenuDataItem[];
|
|
757
1021
|
activeSection?: string | number;
|
|
758
1022
|
showMenu?: boolean;
|
|
@@ -784,13 +1048,13 @@ onClickSection?: ((item: MenuDataItem) => any) | undefined;
|
|
|
784
1048
|
onClickSwitchMenu?: ((show: boolean) => any) | undefined;
|
|
785
1049
|
}>, {
|
|
786
1050
|
type: "collapsible";
|
|
787
|
-
maxWidth: string | number;
|
|
788
1051
|
className: string;
|
|
789
1052
|
menuData: MenuDataItem[];
|
|
790
1053
|
activeSection: string | number;
|
|
791
1054
|
showMenu: boolean;
|
|
792
1055
|
paddingUl: string;
|
|
793
1056
|
foldedWidth: string | number;
|
|
1057
|
+
maxWidth: string | number;
|
|
794
1058
|
minWidth: string | number;
|
|
795
1059
|
overlayMaxWidth: number;
|
|
796
1060
|
LinkComponent: Component;
|
|
@@ -818,18 +1082,39 @@ declare type MessageSize = 'medium' | 'small';
|
|
|
818
1082
|
|
|
819
1083
|
declare type MessageVariant = 'info' | 'fail' | 'success' | 'warning';
|
|
820
1084
|
|
|
821
|
-
|
|
1085
|
+
/**
|
|
1086
|
+
* Карточка-строка мобильного вида таблицы: заголовок (primary) + компактные значения
|
|
1087
|
+
* рядом с ним + видимая зона «подпись: значение» + скрытая зона, раскрываемая по тапу.
|
|
1088
|
+
* Порт из React-кита (`TableMobileCard.tsx`), поведение и классы совпадают.
|
|
1089
|
+
*/
|
|
1090
|
+
declare interface MobileField {
|
|
1091
|
+
label?: unknown;
|
|
1092
|
+
/**
|
|
1093
|
+
* Значение ячейки. Кроме текста принимает готовый узел — таблица передаёт сюда то же,
|
|
1094
|
+
* что рисует в обычной строке (слот `cell-<field>` или `column.render`), иначе в
|
|
1095
|
+
* карточке оказалось бы сырое значение поля (`true` вместо «Активна»).
|
|
1096
|
+
*/
|
|
1097
|
+
value?: unknown;
|
|
1098
|
+
hideLabel?: boolean;
|
|
1099
|
+
valueColor?: string;
|
|
1100
|
+
labelColor?: string;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
export declare const Modal: __VLS_WithTemplateSlots_16<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
1104
|
+
|
|
1105
|
+
/** Названия месяцев для списка в шапке календаря (совпадают с React-китом). */
|
|
1106
|
+
export declare const MONTH_NAMES: string[];
|
|
822
1107
|
|
|
823
|
-
export declare const Multiselect: DefineComponent<
|
|
1108
|
+
export declare const Multiselect: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
824
1109
|
"update:modelValue": (values: OptionItem[]) => any;
|
|
825
|
-
}, string, PublicProps, Readonly<
|
|
1110
|
+
}, string, PublicProps, Readonly<Props_17> & Readonly<{
|
|
826
1111
|
"onUpdate:modelValue"?: ((values: OptionItem[]) => any) | undefined;
|
|
827
1112
|
}>, {
|
|
828
1113
|
title: string;
|
|
829
1114
|
modelValue: OptionItem[];
|
|
830
|
-
options: OptionItem[];
|
|
831
1115
|
required: boolean;
|
|
832
1116
|
placeholder: string;
|
|
1117
|
+
options: OptionItem[];
|
|
833
1118
|
tableView: boolean;
|
|
834
1119
|
className: string;
|
|
835
1120
|
validationText: string;
|
|
@@ -837,13 +1122,14 @@ validationOn: boolean;
|
|
|
837
1122
|
absoluteValidationText: boolean;
|
|
838
1123
|
isSearchable: boolean;
|
|
839
1124
|
loading: boolean;
|
|
1125
|
+
withSelectAll: boolean;
|
|
840
1126
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
841
1127
|
triggerRef: HTMLDivElement;
|
|
842
1128
|
searchInputRef: HTMLInputElement;
|
|
843
1129
|
dropdownRef: HTMLDivElement;
|
|
844
1130
|
}, HTMLDivElement>;
|
|
845
1131
|
|
|
846
|
-
declare const Notification_2:
|
|
1132
|
+
declare const Notification_2: __VLS_WithTemplateSlots_12<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
847
1133
|
export { Notification_2 as Notification }
|
|
848
1134
|
|
|
849
1135
|
declare interface NotificationOptions_2 {
|
|
@@ -857,7 +1143,7 @@ declare interface NotificationOptions_2 {
|
|
|
857
1143
|
id?: string | number;
|
|
858
1144
|
}
|
|
859
1145
|
|
|
860
|
-
export declare const NotificationProvider:
|
|
1146
|
+
export declare const NotificationProvider: __VLS_WithTemplateSlots_13<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
861
1147
|
|
|
862
1148
|
declare interface NotificationService {
|
|
863
1149
|
showNotification: (options: NotificationOptions_2 | string, message?: string, extra?: Partial<NotificationOptions_2>) => string | number;
|
|
@@ -873,18 +1159,7 @@ export declare interface OptionItem {
|
|
|
873
1159
|
[key: string]: unknown;
|
|
874
1160
|
}
|
|
875
1161
|
|
|
876
|
-
export declare const Pagination:
|
|
877
|
-
pageChange: (page: number) => any;
|
|
878
|
-
pageSizeChange: (size: number) => any;
|
|
879
|
-
}, string, PublicProps, Readonly<Props_8> & Readonly<{
|
|
880
|
-
onPageChange?: ((page: number) => any) | undefined;
|
|
881
|
-
onPageSizeChange?: ((size: number) => any) | undefined;
|
|
882
|
-
}>, {
|
|
883
|
-
dataLength: number;
|
|
884
|
-
pageWindow: number;
|
|
885
|
-
pageSizeOptions: number[];
|
|
886
|
-
hideResults: boolean;
|
|
887
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1162
|
+
export declare const Pagination: __VLS_WithTemplateSlots_10<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
888
1163
|
|
|
889
1164
|
declare interface PaginationProps {
|
|
890
1165
|
totalItems: number;
|
|
@@ -894,8 +1169,13 @@ declare interface PaginationProps {
|
|
|
894
1169
|
pageWindow?: number;
|
|
895
1170
|
pageSizeOptions?: number[];
|
|
896
1171
|
hideResults?: boolean;
|
|
1172
|
+
/** Внешний отступ сверху (px) — как в React-ките, чтобы не править стили у потребителя. */
|
|
1173
|
+
marginTop?: number;
|
|
897
1174
|
}
|
|
898
1175
|
|
|
1176
|
+
/** Парсит строку «дд.мм.гггг» в Date (полдень локального времени). null при невалидном вводе. */
|
|
1177
|
+
export declare const parseDateString: (value: string) => Date | null;
|
|
1178
|
+
|
|
899
1179
|
export declare const Preloader: DefineComponent< {
|
|
900
1180
|
/** Вариант прелоадера. */
|
|
901
1181
|
variant?: PreloaderVariant;
|
|
@@ -908,24 +1188,36 @@ variant: PreloaderVariant;
|
|
|
908
1188
|
|
|
909
1189
|
declare type PreloaderVariant = 'small-primary' | 'small-special' | 'large-primary' | 'large-special';
|
|
910
1190
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1191
|
+
/**
|
|
1192
|
+
* Редактор форматированного текста. Хранит значение в HTML — так форматирование
|
|
1193
|
+
* переносится в выгружаемые документы (.docx). Набор возможностей осознанно узкий:
|
|
1194
|
+
* полужирный, курсив, зачёркнутый, списки и ссылка — то, что умеет отрисовать Word.
|
|
1195
|
+
*
|
|
1196
|
+
* Построен на tiptap, том же движке, что используется в проектах экосистемы.
|
|
1197
|
+
*/
|
|
1198
|
+
declare interface Props extends InputBaseProps {
|
|
1199
|
+
modelValue: string;
|
|
1200
|
+
placeholder?: string;
|
|
1201
|
+
/** Минимальная высота области ввода. */
|
|
1202
|
+
minHeight?: string | number;
|
|
915
1203
|
}
|
|
916
1204
|
|
|
917
1205
|
declare interface Props_10 {
|
|
1206
|
+
items?: BreadCrumbItem[];
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
declare interface Props_11 {
|
|
918
1210
|
tabsData?: TabItem[];
|
|
919
1211
|
activeTab?: string | number;
|
|
920
1212
|
variant?: 'line' | 'segment';
|
|
921
1213
|
}
|
|
922
1214
|
|
|
923
|
-
declare interface
|
|
1215
|
+
declare interface Props_12 {
|
|
924
1216
|
title?: string;
|
|
925
1217
|
id?: string;
|
|
926
1218
|
}
|
|
927
1219
|
|
|
928
|
-
declare interface
|
|
1220
|
+
declare interface Props_13 {
|
|
929
1221
|
variant?: NotificationVariant;
|
|
930
1222
|
show: boolean;
|
|
931
1223
|
top?: string;
|
|
@@ -937,17 +1229,17 @@ declare interface Props_12 {
|
|
|
937
1229
|
fadeOutDuration?: number;
|
|
938
1230
|
}
|
|
939
1231
|
|
|
940
|
-
declare interface
|
|
1232
|
+
declare interface Props_14 {
|
|
941
1233
|
className?: string;
|
|
942
1234
|
}
|
|
943
1235
|
|
|
944
|
-
declare interface
|
|
1236
|
+
declare interface Props_15 {
|
|
945
1237
|
placeholder?: string;
|
|
946
1238
|
modelValue?: string;
|
|
947
1239
|
className?: string;
|
|
948
1240
|
}
|
|
949
1241
|
|
|
950
|
-
declare interface
|
|
1242
|
+
declare interface Props_16 {
|
|
951
1243
|
title?: string;
|
|
952
1244
|
required?: boolean;
|
|
953
1245
|
options?: OptionItem[];
|
|
@@ -966,7 +1258,7 @@ declare interface Props_15 {
|
|
|
966
1258
|
columnGap?: string | number;
|
|
967
1259
|
}
|
|
968
1260
|
|
|
969
|
-
declare interface
|
|
1261
|
+
declare interface Props_17 {
|
|
970
1262
|
title?: string;
|
|
971
1263
|
required?: boolean;
|
|
972
1264
|
options?: OptionItem[];
|
|
@@ -979,9 +1271,14 @@ declare interface Props_16 {
|
|
|
979
1271
|
absoluteValidationText?: boolean;
|
|
980
1272
|
isSearchable?: boolean;
|
|
981
1273
|
loading?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* Показывать строку «Выбрать все» над списком. Нужна, когда вариантов десятки и человеку
|
|
1276
|
+
* проще отметить всё разом (а с поиском — всё найденное), чем кликать по одному.
|
|
1277
|
+
*/
|
|
1278
|
+
withSelectAll?: boolean;
|
|
982
1279
|
}
|
|
983
1280
|
|
|
984
|
-
declare interface
|
|
1281
|
+
declare interface Props_18 {
|
|
985
1282
|
title?: string;
|
|
986
1283
|
required?: boolean;
|
|
987
1284
|
options?: OptionItem[];
|
|
@@ -1001,7 +1298,7 @@ declare interface Props_17 {
|
|
|
1001
1298
|
columnGap?: string | number;
|
|
1002
1299
|
}
|
|
1003
1300
|
|
|
1004
|
-
declare interface
|
|
1301
|
+
declare interface Props_19 {
|
|
1005
1302
|
title?: string;
|
|
1006
1303
|
required?: boolean;
|
|
1007
1304
|
placeholder?: string;
|
|
@@ -1020,7 +1317,14 @@ declare interface Props_18 {
|
|
|
1020
1317
|
columnGap?: string | number;
|
|
1021
1318
|
}
|
|
1022
1319
|
|
|
1023
|
-
declare interface
|
|
1320
|
+
declare interface Props_2 {
|
|
1321
|
+
name: IconName;
|
|
1322
|
+
size?: string | number;
|
|
1323
|
+
color?: string;
|
|
1324
|
+
ariaLabel?: string;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
declare interface Props_20 {
|
|
1024
1328
|
active?: boolean;
|
|
1025
1329
|
maxWidth?: string;
|
|
1026
1330
|
maxHeight?: string;
|
|
@@ -1033,15 +1337,7 @@ declare interface Props_19 {
|
|
|
1033
1337
|
ariaLabel?: string;
|
|
1034
1338
|
}
|
|
1035
1339
|
|
|
1036
|
-
declare interface
|
|
1037
|
-
modelValue?: string;
|
|
1038
|
-
placeholder?: string;
|
|
1039
|
-
id?: string;
|
|
1040
|
-
name?: string;
|
|
1041
|
-
tableView?: boolean;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
declare interface Props_20 {
|
|
1340
|
+
declare interface Props_21 {
|
|
1045
1341
|
/** Ширина скелетона — число (px) или строка CSS ('100%', '200px') */
|
|
1046
1342
|
width?: string | number;
|
|
1047
1343
|
/** Высота одного блока — число (px) или строка CSS */
|
|
@@ -1055,7 +1351,7 @@ declare interface Props_20 {
|
|
|
1055
1351
|
className?: string;
|
|
1056
1352
|
}
|
|
1057
1353
|
|
|
1058
|
-
declare interface
|
|
1354
|
+
declare interface Props_22 {
|
|
1059
1355
|
modelValue?: Date | null;
|
|
1060
1356
|
title?: string;
|
|
1061
1357
|
placeholder?: string;
|
|
@@ -1076,6 +1372,40 @@ declare interface Props_21 {
|
|
|
1076
1372
|
columnGap?: string | number;
|
|
1077
1373
|
disabled?: boolean;
|
|
1078
1374
|
className?: string;
|
|
1375
|
+
/** Inline-стили обёртки заголовка и поля. */
|
|
1376
|
+
styleInputContainer?: Record<string, string>;
|
|
1377
|
+
/** Inline-стили заголовка. */
|
|
1378
|
+
styleTitle?: Record<string, string>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Редактирование даты колесом мыши, стрелками ↑↓ и переход между сегментами по Enter.
|
|
1381
|
+
* По умолчанию выключено — поле работает как обычный masked-input (только ввод).
|
|
1382
|
+
*/
|
|
1383
|
+
wheelEdit?: boolean;
|
|
1384
|
+
/** Показывать подсказку-тултип при фокусе поля. */
|
|
1385
|
+
showHint?: boolean;
|
|
1386
|
+
/** Текст подсказки. */
|
|
1387
|
+
hintText?: string;
|
|
1388
|
+
/** Максимальная ширина подсказки. */
|
|
1389
|
+
tooltipMaxWidth?: string | number;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
declare interface Props_23 {
|
|
1393
|
+
/** Отображаемое значение в формате дд.мм.гггг. */
|
|
1394
|
+
value?: string;
|
|
1395
|
+
placeholder?: string;
|
|
1396
|
+
disabled?: boolean;
|
|
1397
|
+
id?: string;
|
|
1398
|
+
inputClass?: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Редактирование сегментов колесом мыши, стрелками ↑↓ и переход по Enter.
|
|
1401
|
+
* По умолчанию выключено — поле работает как обычный masked-input (только ввод).
|
|
1402
|
+
*/
|
|
1403
|
+
wheelEdit?: boolean;
|
|
1404
|
+
/**
|
|
1405
|
+
* Разрешает оставить поле пустым. Если false — на blur неполное/пустое значение
|
|
1406
|
+
* восстанавливается к последней полной введённой дате.
|
|
1407
|
+
*/
|
|
1408
|
+
isClearable?: boolean;
|
|
1079
1409
|
}
|
|
1080
1410
|
|
|
1081
1411
|
declare interface Props_3 extends InputBaseProps {
|
|
@@ -1083,9 +1413,17 @@ declare interface Props_3 extends InputBaseProps {
|
|
|
1083
1413
|
placeholder?: string;
|
|
1084
1414
|
id?: string;
|
|
1085
1415
|
name?: string;
|
|
1416
|
+
tableView?: boolean;
|
|
1086
1417
|
}
|
|
1087
1418
|
|
|
1088
1419
|
declare interface Props_4 extends InputBaseProps {
|
|
1420
|
+
modelValue?: string;
|
|
1421
|
+
placeholder?: string;
|
|
1422
|
+
id?: string;
|
|
1423
|
+
name?: string;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
declare interface Props_5 extends InputBaseProps {
|
|
1089
1427
|
modelValue?: string;
|
|
1090
1428
|
placeholder?: string;
|
|
1091
1429
|
id?: string;
|
|
@@ -1095,7 +1433,7 @@ declare interface Props_4 extends InputBaseProps {
|
|
|
1095
1433
|
maxLength?: number;
|
|
1096
1434
|
}
|
|
1097
1435
|
|
|
1098
|
-
declare interface
|
|
1436
|
+
declare interface Props_6 extends InputBaseProps {
|
|
1099
1437
|
modelValue?: string | number;
|
|
1100
1438
|
placeholder?: string;
|
|
1101
1439
|
id?: string;
|
|
@@ -1103,9 +1441,16 @@ declare interface Props_5 extends InputBaseProps {
|
|
|
1103
1441
|
min?: string | number;
|
|
1104
1442
|
max?: string | number;
|
|
1105
1443
|
tooltipMaxWidth?: string | number;
|
|
1444
|
+
/**
|
|
1445
|
+
* Разрешить очистку поля во время ввода: пока поле в фокусе, его можно стереть до
|
|
1446
|
+
* пустого, а при потере фокуса пустое значение восстанавливается последним валидным.
|
|
1447
|
+
*/
|
|
1448
|
+
restoreLastOnBlur?: boolean;
|
|
1449
|
+
/** Текст подсказки при фокусе. На узком экране подсказка не показывается. */
|
|
1450
|
+
hintText?: string;
|
|
1106
1451
|
}
|
|
1107
1452
|
|
|
1108
|
-
declare interface
|
|
1453
|
+
declare interface Props_7 extends InputBaseProps {
|
|
1109
1454
|
modelValue?: File[];
|
|
1110
1455
|
id?: string;
|
|
1111
1456
|
name?: string;
|
|
@@ -1120,15 +1465,36 @@ declare interface Props_6 extends InputBaseProps {
|
|
|
1120
1465
|
fileNamePattern?: RegExp;
|
|
1121
1466
|
}
|
|
1122
1467
|
|
|
1123
|
-
declare interface
|
|
1468
|
+
declare interface Props_8 extends InputBaseProps {
|
|
1124
1469
|
modelValue?: string;
|
|
1125
1470
|
placeholder?: string;
|
|
1126
1471
|
id?: string;
|
|
1127
1472
|
name?: string;
|
|
1128
1473
|
tooltipMaxWidth?: string | number;
|
|
1474
|
+
/**
|
|
1475
|
+
* Разрешает оставить поле пустым. Если false — на blur неполное значение
|
|
1476
|
+
* восстанавливается к последнему полному введённому времени.
|
|
1477
|
+
*/
|
|
1478
|
+
isClearable?: boolean;
|
|
1479
|
+
/**
|
|
1480
|
+
* Правка времени колесом мыши и стрелками ↑↓ с посегментным выделением.
|
|
1481
|
+
* По умолчанию выключено: иначе компонент перехватывал бы колесо и страница
|
|
1482
|
+
* переставала бы прокручиваться, пока поле в фокусе.
|
|
1483
|
+
*/
|
|
1484
|
+
wheelEdit?: boolean;
|
|
1485
|
+
/** Показывать подсказку-тултип при фокусе. По умолчанию выключено. */
|
|
1486
|
+
showHint?: boolean;
|
|
1487
|
+
/** Текст подсказки. */
|
|
1488
|
+
hintText?: string;
|
|
1489
|
+
/** Inline-стили обёртки заголовка и поля. */
|
|
1490
|
+
styleInputContainer?: Record<string, string>;
|
|
1491
|
+
/** Inline-стили заголовка. */
|
|
1492
|
+
styleTitle?: Record<string, string>;
|
|
1493
|
+
/** Inline-стили самого поля ввода. */
|
|
1494
|
+
styleInput?: Record<string, string>;
|
|
1129
1495
|
}
|
|
1130
1496
|
|
|
1131
|
-
declare interface
|
|
1497
|
+
declare interface Props_9 {
|
|
1132
1498
|
totalItems: number;
|
|
1133
1499
|
currentPage: number;
|
|
1134
1500
|
pageSize: number;
|
|
@@ -1136,10 +1502,8 @@ declare interface Props_8 {
|
|
|
1136
1502
|
pageWindow?: number;
|
|
1137
1503
|
pageSizeOptions?: number[];
|
|
1138
1504
|
hideResults?: boolean;
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
declare interface Props_9 {
|
|
1142
|
-
items?: BreadCrumbItem[];
|
|
1505
|
+
/** Внешний отступ сверху, px. Нужен, когда пагинация идёт вплотную к таблице. */
|
|
1506
|
+
marginTop?: number;
|
|
1143
1507
|
}
|
|
1144
1508
|
|
|
1145
1509
|
export declare const Radio: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
@@ -1148,9 +1512,26 @@ export declare const RadioGroup: __VLS_WithTemplateSlots_4<typeof __VLS_componen
|
|
|
1148
1512
|
|
|
1149
1513
|
declare type RadioGroupValue = string | number | undefined;
|
|
1150
1514
|
|
|
1151
|
-
export declare const
|
|
1515
|
+
export declare const RichTextEditor: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1516
|
+
"update:modelValue": (value: string) => any;
|
|
1517
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
1518
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1519
|
+
}>, {
|
|
1520
|
+
disabled: boolean;
|
|
1521
|
+
error: boolean | string;
|
|
1522
|
+
title: string;
|
|
1523
|
+
required: boolean;
|
|
1524
|
+
lineUp: boolean;
|
|
1525
|
+
rowGap: string | number;
|
|
1526
|
+
columnGap: string | number;
|
|
1527
|
+
errorAbsolute: boolean;
|
|
1528
|
+
placeholder: string;
|
|
1529
|
+
minHeight: string | number;
|
|
1530
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1531
|
+
|
|
1532
|
+
export declare const Search: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1152
1533
|
"update:modelValue": (value: string) => any;
|
|
1153
|
-
}, string, PublicProps, Readonly<
|
|
1534
|
+
}, string, PublicProps, Readonly<Props_15> & Readonly<{
|
|
1154
1535
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1155
1536
|
}>, {
|
|
1156
1537
|
modelValue: string;
|
|
@@ -1158,25 +1539,25 @@ placeholder: string;
|
|
|
1158
1539
|
className: string;
|
|
1159
1540
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1160
1541
|
|
|
1161
|
-
export declare const SearchSelect: DefineComponent<
|
|
1542
|
+
export declare const SearchSelect: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1162
1543
|
"update:modelValue": (value: OptionItem | null) => any;
|
|
1163
1544
|
inputChange: (value: string) => any;
|
|
1164
|
-
}, string, PublicProps, Readonly<
|
|
1545
|
+
}, string, PublicProps, Readonly<Props_18> & Readonly<{
|
|
1165
1546
|
"onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
|
|
1166
1547
|
onInputChange?: ((value: string) => any) | undefined;
|
|
1167
1548
|
}>, {
|
|
1168
1549
|
disabled: boolean;
|
|
1169
1550
|
title: string;
|
|
1170
1551
|
modelValue: OptionItem | null;
|
|
1171
|
-
columnGap: string | number;
|
|
1172
|
-
options: OptionItem[];
|
|
1173
1552
|
required: boolean;
|
|
1174
1553
|
lineUp: boolean;
|
|
1175
1554
|
rowGap: string | number;
|
|
1555
|
+
columnGap: string | number;
|
|
1176
1556
|
placeholder: string;
|
|
1557
|
+
options: OptionItem[];
|
|
1177
1558
|
tableView: boolean;
|
|
1178
|
-
className: string;
|
|
1179
1559
|
isClearable: boolean;
|
|
1560
|
+
className: string;
|
|
1180
1561
|
validationText: string;
|
|
1181
1562
|
validationOn: boolean;
|
|
1182
1563
|
absoluteValidationText: boolean;
|
|
@@ -1187,23 +1568,23 @@ triggerRef: HTMLDivElement;
|
|
|
1187
1568
|
dropdownRef: HTMLDivElement;
|
|
1188
1569
|
}, HTMLDivElement>;
|
|
1189
1570
|
|
|
1190
|
-
export declare const Select: DefineComponent<
|
|
1571
|
+
export declare const Select: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1191
1572
|
"update:modelValue": (value: OptionItem | null) => any;
|
|
1192
|
-
}, string, PublicProps, Readonly<
|
|
1573
|
+
}, string, PublicProps, Readonly<Props_16> & Readonly<{
|
|
1193
1574
|
"onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
|
|
1194
1575
|
}>, {
|
|
1195
1576
|
disabled: boolean;
|
|
1196
1577
|
title: string;
|
|
1197
1578
|
modelValue: OptionItem | null;
|
|
1198
|
-
columnGap: string | number;
|
|
1199
|
-
options: OptionItem[];
|
|
1200
1579
|
required: boolean;
|
|
1201
1580
|
lineUp: boolean;
|
|
1202
1581
|
rowGap: string | number;
|
|
1582
|
+
columnGap: string | number;
|
|
1203
1583
|
placeholder: string;
|
|
1584
|
+
options: OptionItem[];
|
|
1204
1585
|
tableView: boolean;
|
|
1205
|
-
className: string;
|
|
1206
1586
|
isClearable: boolean;
|
|
1587
|
+
className: string;
|
|
1207
1588
|
validationText: string;
|
|
1208
1589
|
validationOn: boolean;
|
|
1209
1590
|
absoluteValidationText: boolean;
|
|
@@ -1215,7 +1596,7 @@ dropdownRef: HTMLDivElement;
|
|
|
1215
1596
|
|
|
1216
1597
|
declare const SIZES: readonly ["medium", "small"];
|
|
1217
1598
|
|
|
1218
|
-
export declare const Skeleton: DefineComponent<
|
|
1599
|
+
export declare const Skeleton: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_21> & Readonly<{}>, {
|
|
1219
1600
|
width: string | number;
|
|
1220
1601
|
height: string | number;
|
|
1221
1602
|
borderRadius: string | number;
|
|
@@ -1224,6 +1605,8 @@ count: number;
|
|
|
1224
1605
|
gap: string | number;
|
|
1225
1606
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1226
1607
|
|
|
1608
|
+
export declare function sortRows<TRow extends TableRow>(rows: TRow[], state: SortState, columns: TableColumn<TRow>[], parentDataField?: string): TRow[];
|
|
1609
|
+
|
|
1227
1610
|
export declare interface SortState {
|
|
1228
1611
|
column: string | null;
|
|
1229
1612
|
asc: boolean | null;
|
|
@@ -1235,7 +1618,7 @@ declare type StatusSize = 'medium' | 'large';
|
|
|
1235
1618
|
|
|
1236
1619
|
declare type StatusVariant = 'warning' | 'info' | 'neutral' | 'success' | 'danger' | 'intermediate' | 'prepared' | '';
|
|
1237
1620
|
|
|
1238
|
-
export declare const StickyActionBar:
|
|
1621
|
+
export declare const StickyActionBar: __VLS_WithTemplateSlots_14<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
1239
1622
|
|
|
1240
1623
|
export declare const Switch: __VLS_WithTemplateSlots_5<DefineComponent< {
|
|
1241
1624
|
/** Управляемое состояние через v-model. */
|
|
@@ -1287,8 +1670,36 @@ export declare const Table: <TRow extends TableRow>(__VLS_props: NonNullable<Awa
|
|
|
1287
1670
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDrop" | "onPageChange" | "onPageSizeChange" | "onUpdate:filteredData" | "onUpdate:sort"> & TableProps<TRow> & Partial<{}>> & PublicProps;
|
|
1288
1671
|
expose(exposed: ShallowUnwrapRef<TableExposed<TRow>>): void;
|
|
1289
1672
|
attrs: any;
|
|
1290
|
-
slots: {
|
|
1291
|
-
empty
|
|
1673
|
+
slots: Readonly<{
|
|
1674
|
+
empty?: () => unknown;
|
|
1675
|
+
cell?: (props: CellSlotProps<TRow>) => unknown;
|
|
1676
|
+
header?: (props: HeaderSlotProps<TRow>) => unknown;
|
|
1677
|
+
/** Своя панель над карточками в мобильном виде (вместо штатной сортировки). */
|
|
1678
|
+
'mobile-toolbar'?: () => unknown;
|
|
1679
|
+
/** Своя карточка строки в мобильном виде (вместо автоматической). */
|
|
1680
|
+
'mobile-card'?: (props: {
|
|
1681
|
+
row: TRow;
|
|
1682
|
+
index: number;
|
|
1683
|
+
}) => unknown;
|
|
1684
|
+
} & {
|
|
1685
|
+
[x: `cell-${string}`]: ((props: CellSlotProps<TRow>) => unknown) | undefined;
|
|
1686
|
+
} & {
|
|
1687
|
+
[x: `header-${string}`]: ((props: HeaderSlotProps<TRow>) => unknown) | undefined;
|
|
1688
|
+
}> & {
|
|
1689
|
+
empty?: () => unknown;
|
|
1690
|
+
cell?: (props: CellSlotProps<TRow>) => unknown;
|
|
1691
|
+
header?: (props: HeaderSlotProps<TRow>) => unknown;
|
|
1692
|
+
/** Своя панель над карточками в мобильном виде (вместо штатной сортировки). */
|
|
1693
|
+
'mobile-toolbar'?: () => unknown;
|
|
1694
|
+
/** Своя карточка строки в мобильном виде (вместо автоматической). */
|
|
1695
|
+
'mobile-card'?: (props: {
|
|
1696
|
+
row: TRow;
|
|
1697
|
+
index: number;
|
|
1698
|
+
}) => unknown;
|
|
1699
|
+
} & {
|
|
1700
|
+
[x: `cell-${string}`]: ((props: CellSlotProps<TRow>) => unknown) | undefined;
|
|
1701
|
+
} & {
|
|
1702
|
+
[x: `header-${string}`]: ((props: HeaderSlotProps<TRow>) => unknown) | undefined;
|
|
1292
1703
|
};
|
|
1293
1704
|
emit: ((evt: "drop", payload: {
|
|
1294
1705
|
fromIndex: number;
|
|
@@ -1319,6 +1730,24 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
|
|
|
1319
1730
|
resizeOff?: boolean;
|
|
1320
1731
|
/** Включить сортировку по клику на заголовок (3-state toggle). */
|
|
1321
1732
|
sortable?: boolean;
|
|
1733
|
+
/** Заголовок карточки. Если не задано ни у одной колонки — берётся первая. */
|
|
1734
|
+
mobilePrimary?: boolean;
|
|
1735
|
+
/** Подзаголовок под заголовком карточки. */
|
|
1736
|
+
mobileSubtitle?: boolean;
|
|
1737
|
+
/** Компактное значение рядом с заголовком (для статусов, чисел). */
|
|
1738
|
+
mobileInline?: boolean;
|
|
1739
|
+
/** Значение уходит в скрытую зону карточки (раскрывается по тапу). */
|
|
1740
|
+
mobileSecondary?: boolean;
|
|
1741
|
+
/** Колонку в мобильном виде не показывать вовсе. */
|
|
1742
|
+
mobileHidden?: boolean;
|
|
1743
|
+
/** Не показывать подпись поля в карточке. */
|
|
1744
|
+
mobileHideLabel?: boolean;
|
|
1745
|
+
/** Подпись поля в карточке, если она отличается от заголовка колонки. */
|
|
1746
|
+
mobileLabel?: string;
|
|
1747
|
+
/** Цвет значения в карточке. */
|
|
1748
|
+
mobileValueColor?: string;
|
|
1749
|
+
/** Цвет подписи в карточке. */
|
|
1750
|
+
mobileLabelColor?: string;
|
|
1322
1751
|
/** Включить фильтр. */
|
|
1323
1752
|
filterable?: boolean;
|
|
1324
1753
|
/** Тип фильтра. */
|
|
@@ -1367,6 +1796,10 @@ export declare interface TableExposed<TRow extends TableRow = TableRow> {
|
|
|
1367
1796
|
|
|
1368
1797
|
export declare type TableFilterType = 'string' | 'number' | 'date' | 'boolean';
|
|
1369
1798
|
|
|
1799
|
+
export declare const TableMobileCard: __VLS_WithTemplateSlots_18<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1800
|
+
|
|
1801
|
+
export declare const TableMobileView: __VLS_WithTemplateSlots_17<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
1802
|
+
|
|
1370
1803
|
export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
1371
1804
|
/** Данные таблицы. */
|
|
1372
1805
|
data: TRow[];
|
|
@@ -1388,6 +1821,43 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
1388
1821
|
withoutHeader?: boolean;
|
|
1389
1822
|
maxHeight?: string;
|
|
1390
1823
|
minHeight?: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* Сигнал сброса фильтров: при любом изменении значения снятые галочки в фильтрах
|
|
1826
|
+
* колонок возвращаются в исходное состояние (например, при смене набора данных).
|
|
1827
|
+
*/
|
|
1828
|
+
filterResetParam?: unknown;
|
|
1829
|
+
/**
|
|
1830
|
+
* Сортировка при первом рендере: поле и направление. Нужна, чтобы таблица (и панель
|
|
1831
|
+
* сортировки мобильного вида) открывалась в осмысленном порядке.
|
|
1832
|
+
*/
|
|
1833
|
+
defaultSort?: {
|
|
1834
|
+
column: string;
|
|
1835
|
+
asc?: boolean;
|
|
1836
|
+
};
|
|
1837
|
+
/** Включить карточный вид на узком контейнере. */
|
|
1838
|
+
mobileView?: boolean;
|
|
1839
|
+
/** Ширина контейнера (px), ниже которой включается карточный вид. */
|
|
1840
|
+
mobileBreakpoint?: number;
|
|
1841
|
+
/** Часть полей скрыть под тап (раскрывающаяся карточка). */
|
|
1842
|
+
mobileCardCollapsible?: boolean;
|
|
1843
|
+
/** Показывать подписи полей в карточке. */
|
|
1844
|
+
mobileCardLabels?: boolean;
|
|
1845
|
+
/** Сколько полей оставить видимыми; остальные — под тап. */
|
|
1846
|
+
mobileMaxVisible?: number;
|
|
1847
|
+
/** Раскладка полей карточки: одна колонка или две. */
|
|
1848
|
+
mobileCardColumns?: 1 | 2;
|
|
1849
|
+
/** Зазор между карточками. */
|
|
1850
|
+
mobileCardGap?: number | string;
|
|
1851
|
+
/** Карточки без рамки и фона (для вложения в обрамлённый контейнер). */
|
|
1852
|
+
mobileCardFlat?: boolean;
|
|
1853
|
+
/** Тонкая линия-разделитель между карточками. */
|
|
1854
|
+
mobileCardDivider?: boolean;
|
|
1855
|
+
/** Показывать панель сортировки (по умолчанию — если есть сортируемые колонки). */
|
|
1856
|
+
mobileSortBar?: boolean;
|
|
1857
|
+
/** Подпись панели сортировки. */
|
|
1858
|
+
mobileSortLabel?: string;
|
|
1859
|
+
/** Вид панели сортировки. */
|
|
1860
|
+
mobileSortStyle?: 'select' | 'segments' | 'menu';
|
|
1391
1861
|
/** Показывает скелетон вместо строк. */
|
|
1392
1862
|
isLoading?: boolean;
|
|
1393
1863
|
/** Показывает прелоадер по центру вместо скелетона. */
|
|
@@ -1435,15 +1905,22 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
1435
1905
|
/** Количество видимых строк в окне виртуализации. По умолчанию 20. */
|
|
1436
1906
|
visibleRows?: number;
|
|
1437
1907
|
pagination?: PaginationProps;
|
|
1908
|
+
/**
|
|
1909
|
+
* Текущая страница для внутренней нарезки. Если задана вместе с `pageSize`, таблица сама
|
|
1910
|
+
* показывает только строки этой страницы — снаружи резать данные не нужно.
|
|
1911
|
+
*/
|
|
1912
|
+
page?: number;
|
|
1913
|
+
/** Размер страницы для внутренней нарезки (работает вместе с `page`). */
|
|
1914
|
+
pageSize?: number;
|
|
1438
1915
|
id?: string;
|
|
1439
1916
|
className?: string;
|
|
1440
1917
|
}
|
|
1441
1918
|
|
|
1442
1919
|
export declare type TableRow = Record<string, unknown>;
|
|
1443
1920
|
|
|
1444
|
-
export declare const Tabs: DefineComponent<
|
|
1921
|
+
export declare const Tabs: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1445
1922
|
tabClick: (tab: TabItem) => any;
|
|
1446
|
-
}, string, PublicProps, Readonly<
|
|
1923
|
+
}, string, PublicProps, Readonly<Props_11> & Readonly<{
|
|
1447
1924
|
onTabClick?: ((tab: TabItem) => any) | undefined;
|
|
1448
1925
|
}>, {
|
|
1449
1926
|
variant: "line" | "segment";
|
|
@@ -1451,10 +1928,10 @@ tabsData: TabItem[];
|
|
|
1451
1928
|
activeTab: string | number;
|
|
1452
1929
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1453
1930
|
|
|
1454
|
-
export declare const Textarea: DefineComponent<
|
|
1931
|
+
export declare const Textarea: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1455
1932
|
change: (event: Event) => any;
|
|
1456
1933
|
"update:modelValue": (value: string) => any;
|
|
1457
|
-
}, string, PublicProps, Readonly<
|
|
1934
|
+
}, string, PublicProps, Readonly<Props_4> & Readonly<{
|
|
1458
1935
|
onChange?: ((event: Event) => any) | undefined;
|
|
1459
1936
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1460
1937
|
}>, {
|
|
@@ -1464,10 +1941,10 @@ title: string;
|
|
|
1464
1941
|
modelValue: string;
|
|
1465
1942
|
id: string;
|
|
1466
1943
|
name: string;
|
|
1467
|
-
columnGap: string | number;
|
|
1468
1944
|
required: boolean;
|
|
1469
1945
|
lineUp: boolean;
|
|
1470
1946
|
rowGap: string | number;
|
|
1947
|
+
columnGap: string | number;
|
|
1471
1948
|
errorAbsolute: boolean;
|
|
1472
1949
|
placeholder: string;
|
|
1473
1950
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1483,11 +1960,11 @@ export declare interface TreeDataItem {
|
|
|
1483
1960
|
[key: string]: unknown;
|
|
1484
1961
|
}
|
|
1485
1962
|
|
|
1486
|
-
export declare const TreeView: DefineComponent<
|
|
1963
|
+
export declare const TreeView: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1487
1964
|
"update:modelValue": (value: string | null) => any;
|
|
1488
1965
|
nodeClick: (node: TreeDataItem) => any;
|
|
1489
1966
|
nodeClear: () => any;
|
|
1490
|
-
}, string, PublicProps, Readonly<
|
|
1967
|
+
}, string, PublicProps, Readonly<Props_19> & Readonly<{
|
|
1491
1968
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
1492
1969
|
onNodeClick?: ((node: TreeDataItem) => any) | undefined;
|
|
1493
1970
|
onNodeClear?: (() => any) | undefined;
|
|
@@ -1496,14 +1973,14 @@ disabled: boolean;
|
|
|
1496
1973
|
data: TreeDataItem[];
|
|
1497
1974
|
title: string;
|
|
1498
1975
|
modelValue: string | null;
|
|
1499
|
-
columnGap: string | number;
|
|
1500
1976
|
required: boolean;
|
|
1501
1977
|
lineUp: boolean;
|
|
1502
1978
|
rowGap: string | number;
|
|
1979
|
+
columnGap: string | number;
|
|
1503
1980
|
placeholder: string;
|
|
1504
1981
|
tableView: boolean;
|
|
1505
|
-
className: string;
|
|
1506
1982
|
isClearable: boolean;
|
|
1983
|
+
className: string;
|
|
1507
1984
|
validationText: string;
|
|
1508
1985
|
validationOn: boolean;
|
|
1509
1986
|
absoluteValidationText: boolean;
|
|
@@ -1516,6 +1993,18 @@ dropdownRef: HTMLDivElement;
|
|
|
1516
1993
|
|
|
1517
1994
|
export declare function useNotification(): NotificationService;
|
|
1518
1995
|
|
|
1996
|
+
export declare function useTableSort(): {
|
|
1997
|
+
sort: Ref< {
|
|
1998
|
+
column: string | null;
|
|
1999
|
+
asc: boolean | null;
|
|
2000
|
+
}, SortState | {
|
|
2001
|
+
column: string | null;
|
|
2002
|
+
asc: boolean | null;
|
|
2003
|
+
}>;
|
|
2004
|
+
toggleSort: (field: string) => void;
|
|
2005
|
+
resetSort: () => void;
|
|
2006
|
+
};
|
|
2007
|
+
|
|
1519
2008
|
declare const VARIANTS: readonly ["primary", "danger", "outline", "danger-outline", "simple", "icon", "text", "text-danger", "text-table", "text-danger-table"];
|
|
1520
2009
|
|
|
1521
2010
|
export { }
|