urfu-ui-kit-vue 0.0.2 → 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 +617 -130
- package/dist/index.es +27502 -8456
- 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,19 +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;
|
|
603
808
|
ariaLabel: string;
|
|
604
809
|
color: string;
|
|
605
810
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
606
811
|
|
|
607
|
-
|
|
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;
|
|
608
835
|
|
|
609
836
|
declare interface InputBaseProps {
|
|
610
837
|
title?: string;
|
|
@@ -619,10 +846,10 @@ declare interface InputBaseProps {
|
|
|
619
846
|
errorAbsolute?: boolean;
|
|
620
847
|
}
|
|
621
848
|
|
|
622
|
-
export declare const InputExpandTextarea: DefineComponent<
|
|
849
|
+
export declare const InputExpandTextarea: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
623
850
|
change: (event: Event) => any;
|
|
624
851
|
"update:modelValue": (value: string) => any;
|
|
625
|
-
}, string, PublicProps, Readonly<
|
|
852
|
+
}, string, PublicProps, Readonly<Props_5> & Readonly<{
|
|
626
853
|
onChange?: ((event: Event) => any) | undefined;
|
|
627
854
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
628
855
|
}>, {
|
|
@@ -631,23 +858,23 @@ error: boolean | string;
|
|
|
631
858
|
title: string;
|
|
632
859
|
modelValue: string;
|
|
633
860
|
id: string;
|
|
634
|
-
columnGap: string | number;
|
|
635
861
|
required: boolean;
|
|
636
862
|
lineUp: boolean;
|
|
637
863
|
rowGap: string | number;
|
|
864
|
+
columnGap: string | number;
|
|
638
865
|
errorAbsolute: boolean;
|
|
639
866
|
placeholder: string;
|
|
640
|
-
tableView: boolean;
|
|
641
867
|
minHeight: string | number;
|
|
868
|
+
tableView: boolean;
|
|
642
869
|
maxLength: number;
|
|
643
870
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
644
871
|
textareaRef: HTMLTextAreaElement;
|
|
645
872
|
}, HTMLDivElement>;
|
|
646
873
|
|
|
647
|
-
export declare const InputFile: DefineComponent<
|
|
874
|
+
export declare const InputFile: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
648
875
|
"update:modelValue": (files: File[]) => any;
|
|
649
876
|
fileReject: (reason: string, file: File) => any;
|
|
650
|
-
}, string, PublicProps, Readonly<
|
|
877
|
+
}, string, PublicProps, Readonly<Props_7> & Readonly<{
|
|
651
878
|
"onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
|
|
652
879
|
onFileReject?: ((reason: string, file: File) => any) | undefined;
|
|
653
880
|
}>, {
|
|
@@ -657,10 +884,10 @@ title: string;
|
|
|
657
884
|
modelValue: File[];
|
|
658
885
|
id: string;
|
|
659
886
|
name: string;
|
|
660
|
-
columnGap: string | number;
|
|
661
887
|
required: boolean;
|
|
662
888
|
lineUp: boolean;
|
|
663
889
|
rowGap: string | number;
|
|
890
|
+
columnGap: string | number;
|
|
664
891
|
errorAbsolute: boolean;
|
|
665
892
|
loadingInfo: string;
|
|
666
893
|
filesInfo: string;
|
|
@@ -673,14 +900,14 @@ maxFileSize: number;
|
|
|
673
900
|
fileNamePattern: RegExp;
|
|
674
901
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
675
902
|
fileInputRef: HTMLInputElement;
|
|
676
|
-
},
|
|
903
|
+
}, any>;
|
|
677
904
|
|
|
678
|
-
export declare const InputNumber: DefineComponent<
|
|
905
|
+
export declare const InputNumber: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
679
906
|
change: (event: Event) => any;
|
|
680
|
-
"update:modelValue": (value: string) => any;
|
|
681
|
-
}, string, PublicProps, Readonly<
|
|
907
|
+
"update:modelValue": (value: string | number) => any;
|
|
908
|
+
}, string, PublicProps, Readonly<Props_6> & Readonly<{
|
|
682
909
|
onChange?: ((event: Event) => any) | undefined;
|
|
683
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
910
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
684
911
|
}>, {
|
|
685
912
|
disabled: boolean;
|
|
686
913
|
error: boolean | string;
|
|
@@ -688,24 +915,26 @@ title: string;
|
|
|
688
915
|
modelValue: string | number;
|
|
689
916
|
id: string;
|
|
690
917
|
name: string;
|
|
691
|
-
columnGap: string | number;
|
|
692
918
|
required: boolean;
|
|
693
919
|
lineUp: boolean;
|
|
694
920
|
rowGap: string | number;
|
|
921
|
+
columnGap: string | number;
|
|
695
922
|
errorAbsolute: boolean;
|
|
696
923
|
placeholder: string;
|
|
697
924
|
min: string | number;
|
|
698
925
|
max: string | number;
|
|
699
926
|
tooltipMaxWidth: string | number;
|
|
927
|
+
restoreLastOnBlur: boolean;
|
|
928
|
+
hintText: string;
|
|
700
929
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
701
930
|
wheelZoneRef: HTMLDivElement;
|
|
702
931
|
inputRef: HTMLInputElement;
|
|
703
932
|
}, HTMLDivElement>;
|
|
704
933
|
|
|
705
|
-
export declare const InputText: DefineComponent<
|
|
934
|
+
export declare const InputText: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
706
935
|
change: (event: Event) => any;
|
|
707
936
|
"update:modelValue": (value: string) => any;
|
|
708
|
-
}, string, PublicProps, Readonly<
|
|
937
|
+
}, string, PublicProps, Readonly<Props_3> & Readonly<{
|
|
709
938
|
onChange?: ((event: Event) => any) | undefined;
|
|
710
939
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
711
940
|
}>, {
|
|
@@ -715,10 +944,10 @@ title: string;
|
|
|
715
944
|
modelValue: string;
|
|
716
945
|
id: string;
|
|
717
946
|
name: string;
|
|
718
|
-
columnGap: string | number;
|
|
719
947
|
required: boolean;
|
|
720
948
|
lineUp: boolean;
|
|
721
949
|
rowGap: string | number;
|
|
950
|
+
columnGap: string | number;
|
|
722
951
|
errorAbsolute: boolean;
|
|
723
952
|
placeholder: string;
|
|
724
953
|
tableView: boolean;
|
|
@@ -726,11 +955,11 @@ tableView: boolean;
|
|
|
726
955
|
inputRef: HTMLInputElement;
|
|
727
956
|
}, HTMLDivElement>;
|
|
728
957
|
|
|
729
|
-
export declare const InputTime: DefineComponent<
|
|
730
|
-
change: (
|
|
958
|
+
export declare const InputTime: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
959
|
+
change: (value: string) => any;
|
|
731
960
|
"update:modelValue": (value: string) => any;
|
|
732
|
-
}, string, PublicProps, Readonly<
|
|
733
|
-
onChange?: ((
|
|
961
|
+
}, string, PublicProps, Readonly<Props_8> & Readonly<{
|
|
962
|
+
onChange?: ((value: string) => any) | undefined;
|
|
734
963
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
735
964
|
}>, {
|
|
736
965
|
disabled: boolean;
|
|
@@ -739,21 +968,55 @@ title: string;
|
|
|
739
968
|
modelValue: string;
|
|
740
969
|
id: string;
|
|
741
970
|
name: string;
|
|
742
|
-
columnGap: string | number;
|
|
743
971
|
required: boolean;
|
|
744
972
|
lineUp: boolean;
|
|
745
973
|
rowGap: string | number;
|
|
974
|
+
columnGap: string | number;
|
|
746
975
|
errorAbsolute: boolean;
|
|
976
|
+
styleInputContainer: Record<string, string>;
|
|
977
|
+
styleTitle: Record<string, string>;
|
|
747
978
|
placeholder: string;
|
|
748
979
|
tooltipMaxWidth: string | number;
|
|
980
|
+
hintText: string;
|
|
981
|
+
isClearable: boolean;
|
|
982
|
+
wheelEdit: boolean;
|
|
983
|
+
showHint: boolean;
|
|
984
|
+
styleInput: Record<string, string>;
|
|
749
985
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
750
986
|
rootRef: HTMLDivElement;
|
|
751
987
|
inputRef: HTMLInputElement;
|
|
752
988
|
hoursColumnRef: HTMLDivElement;
|
|
753
989
|
minutesColumnRef: HTMLDivElement;
|
|
754
|
-
},
|
|
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>;
|
|
755
1018
|
|
|
756
|
-
export declare const Menu:
|
|
1019
|
+
export declare const Menu: __VLS_WithTemplateSlots_15<DefineComponent< {
|
|
757
1020
|
menuData?: MenuDataItem[];
|
|
758
1021
|
activeSection?: string | number;
|
|
759
1022
|
showMenu?: boolean;
|
|
@@ -785,13 +1048,13 @@ onClickSection?: ((item: MenuDataItem) => any) | undefined;
|
|
|
785
1048
|
onClickSwitchMenu?: ((show: boolean) => any) | undefined;
|
|
786
1049
|
}>, {
|
|
787
1050
|
type: "collapsible";
|
|
788
|
-
maxWidth: string | number;
|
|
789
1051
|
className: string;
|
|
790
1052
|
menuData: MenuDataItem[];
|
|
791
1053
|
activeSection: string | number;
|
|
792
1054
|
showMenu: boolean;
|
|
793
1055
|
paddingUl: string;
|
|
794
1056
|
foldedWidth: string | number;
|
|
1057
|
+
maxWidth: string | number;
|
|
795
1058
|
minWidth: string | number;
|
|
796
1059
|
overlayMaxWidth: number;
|
|
797
1060
|
LinkComponent: Component;
|
|
@@ -819,18 +1082,39 @@ declare type MessageSize = 'medium' | 'small';
|
|
|
819
1082
|
|
|
820
1083
|
declare type MessageVariant = 'info' | 'fail' | 'success' | 'warning';
|
|
821
1084
|
|
|
822
|
-
|
|
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"]>;
|
|
823
1104
|
|
|
824
|
-
|
|
1105
|
+
/** Названия месяцев для списка в шапке календаря (совпадают с React-китом). */
|
|
1106
|
+
export declare const MONTH_NAMES: string[];
|
|
1107
|
+
|
|
1108
|
+
export declare const Multiselect: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
825
1109
|
"update:modelValue": (values: OptionItem[]) => any;
|
|
826
|
-
}, string, PublicProps, Readonly<
|
|
1110
|
+
}, string, PublicProps, Readonly<Props_17> & Readonly<{
|
|
827
1111
|
"onUpdate:modelValue"?: ((values: OptionItem[]) => any) | undefined;
|
|
828
1112
|
}>, {
|
|
829
1113
|
title: string;
|
|
830
1114
|
modelValue: OptionItem[];
|
|
831
|
-
options: OptionItem[];
|
|
832
1115
|
required: boolean;
|
|
833
1116
|
placeholder: string;
|
|
1117
|
+
options: OptionItem[];
|
|
834
1118
|
tableView: boolean;
|
|
835
1119
|
className: string;
|
|
836
1120
|
validationText: string;
|
|
@@ -838,13 +1122,14 @@ validationOn: boolean;
|
|
|
838
1122
|
absoluteValidationText: boolean;
|
|
839
1123
|
isSearchable: boolean;
|
|
840
1124
|
loading: boolean;
|
|
1125
|
+
withSelectAll: boolean;
|
|
841
1126
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
842
1127
|
triggerRef: HTMLDivElement;
|
|
843
1128
|
searchInputRef: HTMLInputElement;
|
|
844
1129
|
dropdownRef: HTMLDivElement;
|
|
845
1130
|
}, HTMLDivElement>;
|
|
846
1131
|
|
|
847
|
-
declare const Notification_2:
|
|
1132
|
+
declare const Notification_2: __VLS_WithTemplateSlots_12<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
848
1133
|
export { Notification_2 as Notification }
|
|
849
1134
|
|
|
850
1135
|
declare interface NotificationOptions_2 {
|
|
@@ -858,7 +1143,7 @@ declare interface NotificationOptions_2 {
|
|
|
858
1143
|
id?: string | number;
|
|
859
1144
|
}
|
|
860
1145
|
|
|
861
|
-
export declare const NotificationProvider:
|
|
1146
|
+
export declare const NotificationProvider: __VLS_WithTemplateSlots_13<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
862
1147
|
|
|
863
1148
|
declare interface NotificationService {
|
|
864
1149
|
showNotification: (options: NotificationOptions_2 | string, message?: string, extra?: Partial<NotificationOptions_2>) => string | number;
|
|
@@ -874,18 +1159,7 @@ export declare interface OptionItem {
|
|
|
874
1159
|
[key: string]: unknown;
|
|
875
1160
|
}
|
|
876
1161
|
|
|
877
|
-
export declare const Pagination:
|
|
878
|
-
pageChange: (page: number) => any;
|
|
879
|
-
pageSizeChange: (size: number) => any;
|
|
880
|
-
}, string, PublicProps, Readonly<Props_8> & Readonly<{
|
|
881
|
-
onPageChange?: ((page: number) => any) | undefined;
|
|
882
|
-
onPageSizeChange?: ((size: number) => any) | undefined;
|
|
883
|
-
}>, {
|
|
884
|
-
dataLength: number;
|
|
885
|
-
pageWindow: number;
|
|
886
|
-
pageSizeOptions: number[];
|
|
887
|
-
hideResults: boolean;
|
|
888
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1162
|
+
export declare const Pagination: __VLS_WithTemplateSlots_10<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
889
1163
|
|
|
890
1164
|
declare interface PaginationProps {
|
|
891
1165
|
totalItems: number;
|
|
@@ -895,8 +1169,13 @@ declare interface PaginationProps {
|
|
|
895
1169
|
pageWindow?: number;
|
|
896
1170
|
pageSizeOptions?: number[];
|
|
897
1171
|
hideResults?: boolean;
|
|
1172
|
+
/** Внешний отступ сверху (px) — как в React-ките, чтобы не править стили у потребителя. */
|
|
1173
|
+
marginTop?: number;
|
|
898
1174
|
}
|
|
899
1175
|
|
|
1176
|
+
/** Парсит строку «дд.мм.гггг» в Date (полдень локального времени). null при невалидном вводе. */
|
|
1177
|
+
export declare const parseDateString: (value: string) => Date | null;
|
|
1178
|
+
|
|
900
1179
|
export declare const Preloader: DefineComponent< {
|
|
901
1180
|
/** Вариант прелоадера. */
|
|
902
1181
|
variant?: PreloaderVariant;
|
|
@@ -909,25 +1188,36 @@ variant: PreloaderVariant;
|
|
|
909
1188
|
|
|
910
1189
|
declare type PreloaderVariant = 'small-primary' | 'small-special' | 'large-primary' | 'large-special';
|
|
911
1190
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
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;
|
|
917
1203
|
}
|
|
918
1204
|
|
|
919
1205
|
declare interface Props_10 {
|
|
1206
|
+
items?: BreadCrumbItem[];
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
declare interface Props_11 {
|
|
920
1210
|
tabsData?: TabItem[];
|
|
921
1211
|
activeTab?: string | number;
|
|
922
1212
|
variant?: 'line' | 'segment';
|
|
923
1213
|
}
|
|
924
1214
|
|
|
925
|
-
declare interface
|
|
1215
|
+
declare interface Props_12 {
|
|
926
1216
|
title?: string;
|
|
927
1217
|
id?: string;
|
|
928
1218
|
}
|
|
929
1219
|
|
|
930
|
-
declare interface
|
|
1220
|
+
declare interface Props_13 {
|
|
931
1221
|
variant?: NotificationVariant;
|
|
932
1222
|
show: boolean;
|
|
933
1223
|
top?: string;
|
|
@@ -939,17 +1229,17 @@ declare interface Props_12 {
|
|
|
939
1229
|
fadeOutDuration?: number;
|
|
940
1230
|
}
|
|
941
1231
|
|
|
942
|
-
declare interface
|
|
1232
|
+
declare interface Props_14 {
|
|
943
1233
|
className?: string;
|
|
944
1234
|
}
|
|
945
1235
|
|
|
946
|
-
declare interface
|
|
1236
|
+
declare interface Props_15 {
|
|
947
1237
|
placeholder?: string;
|
|
948
1238
|
modelValue?: string;
|
|
949
1239
|
className?: string;
|
|
950
1240
|
}
|
|
951
1241
|
|
|
952
|
-
declare interface
|
|
1242
|
+
declare interface Props_16 {
|
|
953
1243
|
title?: string;
|
|
954
1244
|
required?: boolean;
|
|
955
1245
|
options?: OptionItem[];
|
|
@@ -968,7 +1258,7 @@ declare interface Props_15 {
|
|
|
968
1258
|
columnGap?: string | number;
|
|
969
1259
|
}
|
|
970
1260
|
|
|
971
|
-
declare interface
|
|
1261
|
+
declare interface Props_17 {
|
|
972
1262
|
title?: string;
|
|
973
1263
|
required?: boolean;
|
|
974
1264
|
options?: OptionItem[];
|
|
@@ -981,9 +1271,14 @@ declare interface Props_16 {
|
|
|
981
1271
|
absoluteValidationText?: boolean;
|
|
982
1272
|
isSearchable?: boolean;
|
|
983
1273
|
loading?: boolean;
|
|
1274
|
+
/**
|
|
1275
|
+
* Показывать строку «Выбрать все» над списком. Нужна, когда вариантов десятки и человеку
|
|
1276
|
+
* проще отметить всё разом (а с поиском — всё найденное), чем кликать по одному.
|
|
1277
|
+
*/
|
|
1278
|
+
withSelectAll?: boolean;
|
|
984
1279
|
}
|
|
985
1280
|
|
|
986
|
-
declare interface
|
|
1281
|
+
declare interface Props_18 {
|
|
987
1282
|
title?: string;
|
|
988
1283
|
required?: boolean;
|
|
989
1284
|
options?: OptionItem[];
|
|
@@ -1003,7 +1298,7 @@ declare interface Props_17 {
|
|
|
1003
1298
|
columnGap?: string | number;
|
|
1004
1299
|
}
|
|
1005
1300
|
|
|
1006
|
-
declare interface
|
|
1301
|
+
declare interface Props_19 {
|
|
1007
1302
|
title?: string;
|
|
1008
1303
|
required?: boolean;
|
|
1009
1304
|
placeholder?: string;
|
|
@@ -1022,7 +1317,14 @@ declare interface Props_18 {
|
|
|
1022
1317
|
columnGap?: string | number;
|
|
1023
1318
|
}
|
|
1024
1319
|
|
|
1025
|
-
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 {
|
|
1026
1328
|
active?: boolean;
|
|
1027
1329
|
maxWidth?: string;
|
|
1028
1330
|
maxHeight?: string;
|
|
@@ -1035,15 +1337,7 @@ declare interface Props_19 {
|
|
|
1035
1337
|
ariaLabel?: string;
|
|
1036
1338
|
}
|
|
1037
1339
|
|
|
1038
|
-
declare interface
|
|
1039
|
-
modelValue?: string;
|
|
1040
|
-
placeholder?: string;
|
|
1041
|
-
id?: string;
|
|
1042
|
-
name?: string;
|
|
1043
|
-
tableView?: boolean;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
declare interface Props_20 {
|
|
1340
|
+
declare interface Props_21 {
|
|
1047
1341
|
/** Ширина скелетона — число (px) или строка CSS ('100%', '200px') */
|
|
1048
1342
|
width?: string | number;
|
|
1049
1343
|
/** Высота одного блока — число (px) или строка CSS */
|
|
@@ -1057,7 +1351,7 @@ declare interface Props_20 {
|
|
|
1057
1351
|
className?: string;
|
|
1058
1352
|
}
|
|
1059
1353
|
|
|
1060
|
-
declare interface
|
|
1354
|
+
declare interface Props_22 {
|
|
1061
1355
|
modelValue?: Date | null;
|
|
1062
1356
|
title?: string;
|
|
1063
1357
|
placeholder?: string;
|
|
@@ -1078,6 +1372,40 @@ declare interface Props_21 {
|
|
|
1078
1372
|
columnGap?: string | number;
|
|
1079
1373
|
disabled?: boolean;
|
|
1080
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;
|
|
1081
1409
|
}
|
|
1082
1410
|
|
|
1083
1411
|
declare interface Props_3 extends InputBaseProps {
|
|
@@ -1085,9 +1413,17 @@ declare interface Props_3 extends InputBaseProps {
|
|
|
1085
1413
|
placeholder?: string;
|
|
1086
1414
|
id?: string;
|
|
1087
1415
|
name?: string;
|
|
1416
|
+
tableView?: boolean;
|
|
1088
1417
|
}
|
|
1089
1418
|
|
|
1090
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 {
|
|
1091
1427
|
modelValue?: string;
|
|
1092
1428
|
placeholder?: string;
|
|
1093
1429
|
id?: string;
|
|
@@ -1097,7 +1433,7 @@ declare interface Props_4 extends InputBaseProps {
|
|
|
1097
1433
|
maxLength?: number;
|
|
1098
1434
|
}
|
|
1099
1435
|
|
|
1100
|
-
declare interface
|
|
1436
|
+
declare interface Props_6 extends InputBaseProps {
|
|
1101
1437
|
modelValue?: string | number;
|
|
1102
1438
|
placeholder?: string;
|
|
1103
1439
|
id?: string;
|
|
@@ -1105,9 +1441,16 @@ declare interface Props_5 extends InputBaseProps {
|
|
|
1105
1441
|
min?: string | number;
|
|
1106
1442
|
max?: string | number;
|
|
1107
1443
|
tooltipMaxWidth?: string | number;
|
|
1444
|
+
/**
|
|
1445
|
+
* Разрешить очистку поля во время ввода: пока поле в фокусе, его можно стереть до
|
|
1446
|
+
* пустого, а при потере фокуса пустое значение восстанавливается последним валидным.
|
|
1447
|
+
*/
|
|
1448
|
+
restoreLastOnBlur?: boolean;
|
|
1449
|
+
/** Текст подсказки при фокусе. На узком экране подсказка не показывается. */
|
|
1450
|
+
hintText?: string;
|
|
1108
1451
|
}
|
|
1109
1452
|
|
|
1110
|
-
declare interface
|
|
1453
|
+
declare interface Props_7 extends InputBaseProps {
|
|
1111
1454
|
modelValue?: File[];
|
|
1112
1455
|
id?: string;
|
|
1113
1456
|
name?: string;
|
|
@@ -1122,15 +1465,36 @@ declare interface Props_6 extends InputBaseProps {
|
|
|
1122
1465
|
fileNamePattern?: RegExp;
|
|
1123
1466
|
}
|
|
1124
1467
|
|
|
1125
|
-
declare interface
|
|
1468
|
+
declare interface Props_8 extends InputBaseProps {
|
|
1126
1469
|
modelValue?: string;
|
|
1127
1470
|
placeholder?: string;
|
|
1128
1471
|
id?: string;
|
|
1129
1472
|
name?: string;
|
|
1130
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>;
|
|
1131
1495
|
}
|
|
1132
1496
|
|
|
1133
|
-
declare interface
|
|
1497
|
+
declare interface Props_9 {
|
|
1134
1498
|
totalItems: number;
|
|
1135
1499
|
currentPage: number;
|
|
1136
1500
|
pageSize: number;
|
|
@@ -1138,10 +1502,8 @@ declare interface Props_8 {
|
|
|
1138
1502
|
pageWindow?: number;
|
|
1139
1503
|
pageSizeOptions?: number[];
|
|
1140
1504
|
hideResults?: boolean;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
declare interface Props_9 {
|
|
1144
|
-
items?: BreadCrumbItem[];
|
|
1505
|
+
/** Внешний отступ сверху, px. Нужен, когда пагинация идёт вплотную к таблице. */
|
|
1506
|
+
marginTop?: number;
|
|
1145
1507
|
}
|
|
1146
1508
|
|
|
1147
1509
|
export declare const Radio: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
@@ -1150,9 +1512,26 @@ export declare const RadioGroup: __VLS_WithTemplateSlots_4<typeof __VLS_componen
|
|
|
1150
1512
|
|
|
1151
1513
|
declare type RadioGroupValue = string | number | undefined;
|
|
1152
1514
|
|
|
1153
|
-
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, {
|
|
1154
1533
|
"update:modelValue": (value: string) => any;
|
|
1155
|
-
}, string, PublicProps, Readonly<
|
|
1534
|
+
}, string, PublicProps, Readonly<Props_15> & Readonly<{
|
|
1156
1535
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1157
1536
|
}>, {
|
|
1158
1537
|
modelValue: string;
|
|
@@ -1160,25 +1539,25 @@ placeholder: string;
|
|
|
1160
1539
|
className: string;
|
|
1161
1540
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1162
1541
|
|
|
1163
|
-
export declare const SearchSelect: DefineComponent<
|
|
1542
|
+
export declare const SearchSelect: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1164
1543
|
"update:modelValue": (value: OptionItem | null) => any;
|
|
1165
1544
|
inputChange: (value: string) => any;
|
|
1166
|
-
}, string, PublicProps, Readonly<
|
|
1545
|
+
}, string, PublicProps, Readonly<Props_18> & Readonly<{
|
|
1167
1546
|
"onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
|
|
1168
1547
|
onInputChange?: ((value: string) => any) | undefined;
|
|
1169
1548
|
}>, {
|
|
1170
1549
|
disabled: boolean;
|
|
1171
1550
|
title: string;
|
|
1172
1551
|
modelValue: OptionItem | null;
|
|
1173
|
-
columnGap: string | number;
|
|
1174
|
-
options: OptionItem[];
|
|
1175
1552
|
required: boolean;
|
|
1176
1553
|
lineUp: boolean;
|
|
1177
1554
|
rowGap: string | number;
|
|
1555
|
+
columnGap: string | number;
|
|
1178
1556
|
placeholder: string;
|
|
1557
|
+
options: OptionItem[];
|
|
1179
1558
|
tableView: boolean;
|
|
1180
|
-
className: string;
|
|
1181
1559
|
isClearable: boolean;
|
|
1560
|
+
className: string;
|
|
1182
1561
|
validationText: string;
|
|
1183
1562
|
validationOn: boolean;
|
|
1184
1563
|
absoluteValidationText: boolean;
|
|
@@ -1189,23 +1568,23 @@ triggerRef: HTMLDivElement;
|
|
|
1189
1568
|
dropdownRef: HTMLDivElement;
|
|
1190
1569
|
}, HTMLDivElement>;
|
|
1191
1570
|
|
|
1192
|
-
export declare const Select: DefineComponent<
|
|
1571
|
+
export declare const Select: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1193
1572
|
"update:modelValue": (value: OptionItem | null) => any;
|
|
1194
|
-
}, string, PublicProps, Readonly<
|
|
1573
|
+
}, string, PublicProps, Readonly<Props_16> & Readonly<{
|
|
1195
1574
|
"onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
|
|
1196
1575
|
}>, {
|
|
1197
1576
|
disabled: boolean;
|
|
1198
1577
|
title: string;
|
|
1199
1578
|
modelValue: OptionItem | null;
|
|
1200
|
-
columnGap: string | number;
|
|
1201
|
-
options: OptionItem[];
|
|
1202
1579
|
required: boolean;
|
|
1203
1580
|
lineUp: boolean;
|
|
1204
1581
|
rowGap: string | number;
|
|
1582
|
+
columnGap: string | number;
|
|
1205
1583
|
placeholder: string;
|
|
1584
|
+
options: OptionItem[];
|
|
1206
1585
|
tableView: boolean;
|
|
1207
|
-
className: string;
|
|
1208
1586
|
isClearable: boolean;
|
|
1587
|
+
className: string;
|
|
1209
1588
|
validationText: string;
|
|
1210
1589
|
validationOn: boolean;
|
|
1211
1590
|
absoluteValidationText: boolean;
|
|
@@ -1217,7 +1596,7 @@ dropdownRef: HTMLDivElement;
|
|
|
1217
1596
|
|
|
1218
1597
|
declare const SIZES: readonly ["medium", "small"];
|
|
1219
1598
|
|
|
1220
|
-
export declare const Skeleton: DefineComponent<
|
|
1599
|
+
export declare const Skeleton: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_21> & Readonly<{}>, {
|
|
1221
1600
|
width: string | number;
|
|
1222
1601
|
height: string | number;
|
|
1223
1602
|
borderRadius: string | number;
|
|
@@ -1226,6 +1605,8 @@ count: number;
|
|
|
1226
1605
|
gap: string | number;
|
|
1227
1606
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1228
1607
|
|
|
1608
|
+
export declare function sortRows<TRow extends TableRow>(rows: TRow[], state: SortState, columns: TableColumn<TRow>[], parentDataField?: string): TRow[];
|
|
1609
|
+
|
|
1229
1610
|
export declare interface SortState {
|
|
1230
1611
|
column: string | null;
|
|
1231
1612
|
asc: boolean | null;
|
|
@@ -1237,7 +1618,7 @@ declare type StatusSize = 'medium' | 'large';
|
|
|
1237
1618
|
|
|
1238
1619
|
declare type StatusVariant = 'warning' | 'info' | 'neutral' | 'success' | 'danger' | 'intermediate' | 'prepared' | '';
|
|
1239
1620
|
|
|
1240
|
-
export declare const StickyActionBar:
|
|
1621
|
+
export declare const StickyActionBar: __VLS_WithTemplateSlots_14<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
1241
1622
|
|
|
1242
1623
|
export declare const Switch: __VLS_WithTemplateSlots_5<DefineComponent< {
|
|
1243
1624
|
/** Управляемое состояние через v-model. */
|
|
@@ -1289,8 +1670,36 @@ export declare const Table: <TRow extends TableRow>(__VLS_props: NonNullable<Awa
|
|
|
1289
1670
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDrop" | "onPageChange" | "onPageSizeChange" | "onUpdate:filteredData" | "onUpdate:sort"> & TableProps<TRow> & Partial<{}>> & PublicProps;
|
|
1290
1671
|
expose(exposed: ShallowUnwrapRef<TableExposed<TRow>>): void;
|
|
1291
1672
|
attrs: any;
|
|
1292
|
-
slots: {
|
|
1293
|
-
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;
|
|
1294
1703
|
};
|
|
1295
1704
|
emit: ((evt: "drop", payload: {
|
|
1296
1705
|
fromIndex: number;
|
|
@@ -1321,6 +1730,24 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
|
|
|
1321
1730
|
resizeOff?: boolean;
|
|
1322
1731
|
/** Включить сортировку по клику на заголовок (3-state toggle). */
|
|
1323
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;
|
|
1324
1751
|
/** Включить фильтр. */
|
|
1325
1752
|
filterable?: boolean;
|
|
1326
1753
|
/** Тип фильтра. */
|
|
@@ -1369,6 +1796,10 @@ export declare interface TableExposed<TRow extends TableRow = TableRow> {
|
|
|
1369
1796
|
|
|
1370
1797
|
export declare type TableFilterType = 'string' | 'number' | 'date' | 'boolean';
|
|
1371
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
|
+
|
|
1372
1803
|
export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
1373
1804
|
/** Данные таблицы. */
|
|
1374
1805
|
data: TRow[];
|
|
@@ -1390,6 +1821,43 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
1390
1821
|
withoutHeader?: boolean;
|
|
1391
1822
|
maxHeight?: string;
|
|
1392
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';
|
|
1393
1861
|
/** Показывает скелетон вместо строк. */
|
|
1394
1862
|
isLoading?: boolean;
|
|
1395
1863
|
/** Показывает прелоадер по центру вместо скелетона. */
|
|
@@ -1437,15 +1905,22 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
|
|
|
1437
1905
|
/** Количество видимых строк в окне виртуализации. По умолчанию 20. */
|
|
1438
1906
|
visibleRows?: number;
|
|
1439
1907
|
pagination?: PaginationProps;
|
|
1908
|
+
/**
|
|
1909
|
+
* Текущая страница для внутренней нарезки. Если задана вместе с `pageSize`, таблица сама
|
|
1910
|
+
* показывает только строки этой страницы — снаружи резать данные не нужно.
|
|
1911
|
+
*/
|
|
1912
|
+
page?: number;
|
|
1913
|
+
/** Размер страницы для внутренней нарезки (работает вместе с `page`). */
|
|
1914
|
+
pageSize?: number;
|
|
1440
1915
|
id?: string;
|
|
1441
1916
|
className?: string;
|
|
1442
1917
|
}
|
|
1443
1918
|
|
|
1444
1919
|
export declare type TableRow = Record<string, unknown>;
|
|
1445
1920
|
|
|
1446
|
-
export declare const Tabs: DefineComponent<
|
|
1921
|
+
export declare const Tabs: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1447
1922
|
tabClick: (tab: TabItem) => any;
|
|
1448
|
-
}, string, PublicProps, Readonly<
|
|
1923
|
+
}, string, PublicProps, Readonly<Props_11> & Readonly<{
|
|
1449
1924
|
onTabClick?: ((tab: TabItem) => any) | undefined;
|
|
1450
1925
|
}>, {
|
|
1451
1926
|
variant: "line" | "segment";
|
|
@@ -1453,10 +1928,10 @@ tabsData: TabItem[];
|
|
|
1453
1928
|
activeTab: string | number;
|
|
1454
1929
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1455
1930
|
|
|
1456
|
-
export declare const Textarea: DefineComponent<
|
|
1931
|
+
export declare const Textarea: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1457
1932
|
change: (event: Event) => any;
|
|
1458
1933
|
"update:modelValue": (value: string) => any;
|
|
1459
|
-
}, string, PublicProps, Readonly<
|
|
1934
|
+
}, string, PublicProps, Readonly<Props_4> & Readonly<{
|
|
1460
1935
|
onChange?: ((event: Event) => any) | undefined;
|
|
1461
1936
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1462
1937
|
}>, {
|
|
@@ -1466,10 +1941,10 @@ title: string;
|
|
|
1466
1941
|
modelValue: string;
|
|
1467
1942
|
id: string;
|
|
1468
1943
|
name: string;
|
|
1469
|
-
columnGap: string | number;
|
|
1470
1944
|
required: boolean;
|
|
1471
1945
|
lineUp: boolean;
|
|
1472
1946
|
rowGap: string | number;
|
|
1947
|
+
columnGap: string | number;
|
|
1473
1948
|
errorAbsolute: boolean;
|
|
1474
1949
|
placeholder: string;
|
|
1475
1950
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -1485,11 +1960,11 @@ export declare interface TreeDataItem {
|
|
|
1485
1960
|
[key: string]: unknown;
|
|
1486
1961
|
}
|
|
1487
1962
|
|
|
1488
|
-
export declare const TreeView: DefineComponent<
|
|
1963
|
+
export declare const TreeView: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1489
1964
|
"update:modelValue": (value: string | null) => any;
|
|
1490
1965
|
nodeClick: (node: TreeDataItem) => any;
|
|
1491
1966
|
nodeClear: () => any;
|
|
1492
|
-
}, string, PublicProps, Readonly<
|
|
1967
|
+
}, string, PublicProps, Readonly<Props_19> & Readonly<{
|
|
1493
1968
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
1494
1969
|
onNodeClick?: ((node: TreeDataItem) => any) | undefined;
|
|
1495
1970
|
onNodeClear?: (() => any) | undefined;
|
|
@@ -1498,14 +1973,14 @@ disabled: boolean;
|
|
|
1498
1973
|
data: TreeDataItem[];
|
|
1499
1974
|
title: string;
|
|
1500
1975
|
modelValue: string | null;
|
|
1501
|
-
columnGap: string | number;
|
|
1502
1976
|
required: boolean;
|
|
1503
1977
|
lineUp: boolean;
|
|
1504
1978
|
rowGap: string | number;
|
|
1979
|
+
columnGap: string | number;
|
|
1505
1980
|
placeholder: string;
|
|
1506
1981
|
tableView: boolean;
|
|
1507
|
-
className: string;
|
|
1508
1982
|
isClearable: boolean;
|
|
1983
|
+
className: string;
|
|
1509
1984
|
validationText: string;
|
|
1510
1985
|
validationOn: boolean;
|
|
1511
1986
|
absoluteValidationText: boolean;
|
|
@@ -1518,6 +1993,18 @@ dropdownRef: HTMLDivElement;
|
|
|
1518
1993
|
|
|
1519
1994
|
export declare function useNotification(): NotificationService;
|
|
1520
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
|
+
|
|
1521
2008
|
declare const VARIANTS: readonly ["primary", "danger", "outline", "danger-outline", "simple", "icon", "text", "text-danger", "text-table", "text-danger-table"];
|
|
1522
2009
|
|
|
1523
2010
|
export { }
|