urfu-ui-kit-vue 0.0.2 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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,110 @@ disabled: boolean;
104
105
  ariaLabel: string;
105
106
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
106
107
 
107
- declare const __VLS_component_10: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
108
+ declare const __VLS_component_10: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
109
+ pageChange: (page: number) => any;
110
+ pageSizeChange: (size: number) => any;
111
+ }, string, PublicProps, Readonly<Props_10> & Readonly<{
112
+ onPageChange?: ((page: number) => any) | undefined;
113
+ onPageSizeChange?: ((size: number) => any) | undefined;
114
+ }>, {
115
+ marginTop: number;
116
+ dataLength: number;
117
+ pageWindow: number;
118
+ pageSizeOptions: number[];
119
+ hideResults: boolean;
120
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
121
+
122
+ declare const __VLS_component_11: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
123
+ hide: () => any;
124
+ fadeOutEnd: () => any;
125
+ }, string, PublicProps, Readonly<Props_14> & Readonly<{
126
+ onHide?: (() => any) | undefined;
127
+ onFadeOutEnd?: (() => any) | undefined;
128
+ }>, {
129
+ left: string;
130
+ right: string;
131
+ variant: NotificationVariant;
132
+ top: string;
133
+ zIndex: string;
134
+ autoHide: boolean;
135
+ duration: number;
136
+ fadeOutDuration: number;
137
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
108
138
 
109
- declare const __VLS_component_11: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
139
+ declare const __VLS_component_12: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
140
+
141
+ declare const __VLS_component_13: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {
110
142
  className: string;
111
143
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
112
144
  barRef: HTMLElement;
113
145
  }, HTMLElement>;
114
146
 
115
- declare const __VLS_component_12: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
147
+ declare const __VLS_component_14: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
116
148
  cancel: () => any;
117
- }, string, PublicProps, Readonly<Props_19> & Readonly<{
149
+ }, string, PublicProps, Readonly<Props_21> & Readonly<{
118
150
  onCancel?: (() => any) | undefined;
119
151
  }>, {
120
152
  active: boolean;
121
153
  ariaLabel: string;
122
154
  height: string;
123
155
  maxHeight: string;
124
- maxWidth: string;
125
156
  className: string;
157
+ maxWidth: string;
126
158
  notCloseClickOnBack: boolean;
127
159
  ariaLabelledby: string;
160
+ closeOnEscape: boolean;
161
+ lockScroll: boolean;
162
+ unmountOnClose: boolean;
128
163
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
129
164
 
165
+ declare const __VLS_component_15: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
166
+ applySort: (field: string | undefined, dir: "desc" | "asc" | undefined) => any;
167
+ setSortField: (field: string) => any;
168
+ toggleSortDir: () => any;
169
+ }, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
170
+ onApplySort?: ((field: string | undefined, dir: "desc" | "asc" | undefined) => any) | undefined;
171
+ onSetSortField?: ((field: string) => any) | undefined;
172
+ onToggleSortDir?: (() => any) | undefined;
173
+ }>, {
174
+ dataLength: number;
175
+ isLoading: boolean;
176
+ messageForEmptyTable: string;
177
+ effectiveSortField: string;
178
+ effectiveSortDir: "asc" | "desc";
179
+ renderCell: (row: TableRow, column: TableColumn) => unknown;
180
+ mobileSortBar: boolean;
181
+ mobileSortLabel: string;
182
+ mobileSortStyle: "select" | "segments" | "menu";
183
+ mobileCardCollapsible: boolean;
184
+ mobileCardLabels: boolean;
185
+ mobileMaxVisible: number;
186
+ mobileCardColumns: 1 | 2;
187
+ mobileCardGap: number | string;
188
+ mobileCardDivider: boolean;
189
+ mobileCardFlat: boolean;
190
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
191
+ sortMenuRef: HTMLDivElement;
192
+ sortSegRef: HTMLDivElement;
193
+ }, HTMLDivElement>;
194
+
195
+ declare const __VLS_component_16: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
196
+ flat: boolean;
197
+ body: MobileField[];
198
+ details: MobileField[];
199
+ title: undefined;
200
+ inline: MobileField[];
201
+ showLabels: boolean;
202
+ titleLabel: undefined;
203
+ titleHideLabel: boolean;
204
+ titleColor: string;
205
+ titleLabelColor: string;
206
+ subtitle: undefined;
207
+ subtitleColor: string;
208
+ divider: boolean;
209
+ columns: 1 | 2;
210
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
211
+
130
212
  declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
131
213
  click: (event: MouseEvent) => any;
132
214
  change: (event: Event) => any;
@@ -157,9 +239,9 @@ disabled: boolean;
157
239
  ariaLabel: string;
158
240
  modelValue: boolean;
159
241
  id: string;
242
+ name: string;
160
243
  value: string | number;
161
244
  rightRadio: boolean;
162
- name: string;
163
245
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
164
246
 
165
247
  declare const __VLS_component_4: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -182,12 +264,14 @@ id: string;
182
264
 
183
265
  declare const __VLS_component_6: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
184
266
  id: string;
185
- tooltipText: string;
186
267
  position: TooltipPosition;
268
+ tooltipText: string;
187
269
  isActive: boolean;
188
270
  showWhenActive: boolean;
189
271
  tooltipStyle: Record<string, string>;
190
272
  autoPosition: boolean;
273
+ fullWidth: boolean;
274
+ portalOn: boolean;
191
275
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
192
276
  tooltipRef: HTMLDivElement;
193
277
  triggerRef: HTMLSpanElement;
@@ -195,28 +279,22 @@ triggerRef: HTMLSpanElement;
195
279
 
196
280
  declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
197
281
 
198
- declare const __VLS_component_8: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
282
+ declare const __VLS_component_8: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_9> & Readonly<{}>, {
283
+ error: string | boolean;
284
+ title: string;
285
+ required: boolean;
286
+ inline: boolean;
287
+ gap: string | number;
288
+ hint: string;
289
+ htmlFor: string;
290
+ className: string;
291
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
292
+
293
+ declare const __VLS_component_9: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
199
294
  variant: MessageVariant;
200
295
  size: MessageSize;
201
296
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
202
297
 
203
- declare const __VLS_component_9: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
204
- hide: () => any;
205
- fadeOutEnd: () => any;
206
- }, string, PublicProps, Readonly<Props_12> & Readonly<{
207
- onHide?: (() => any) | undefined;
208
- onFadeOutEnd?: (() => any) | undefined;
209
- }>, {
210
- left: string;
211
- right: string;
212
- variant: NotificationVariant;
213
- top: string;
214
- zIndex: string;
215
- autoHide: boolean;
216
- duration: number;
217
- fadeOutDuration: number;
218
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
219
-
220
298
  declare type __VLS_PrettifyLocal<T> = {
221
299
  [K in keyof T]: T[K];
222
300
  } & {};
@@ -293,6 +371,18 @@ declare type __VLS_Props_5 = {
293
371
  * Если включено — `position` используется только как стартовая попытка.
294
372
  */
295
373
  autoPosition?: boolean;
374
+ /**
375
+ * Растянуть обёртку и триггер на всю ширину контейнера. Нужно, когда подсказкой
376
+ * оборачивается поле ввода: по умолчанию обёртка `inline-block` сжимается по
377
+ * контенту, и поле внутри получает `width: 100%` от сжатой обёртки.
378
+ */
379
+ fullWidth?: boolean;
380
+ /**
381
+ * Рендерить подсказку в `body`. Нужно, когда триггер лежит в контейнере с
382
+ * `overflow: hidden` (ячейка таблицы, карточка со скруглением) — иначе подсказка
383
+ * обрезается его границами. Позиция при этом считается от окна (`fixed`).
384
+ */
385
+ portalOn?: boolean;
296
386
  };
297
387
 
298
388
  declare type __VLS_Props_6 = {
@@ -300,6 +390,61 @@ declare type __VLS_Props_6 = {
300
390
  variant?: MessageVariant;
301
391
  };
302
392
 
393
+ /**
394
+ * Мобильный (карточный) вид таблицы. Порт из React-кита (`TableMobileView.tsx`):
395
+ * панель сортировки в трёх стилях (select / segments / menu), роли колонок и карточки-
396
+ * строки. Роли колонок задаются пропсами колонки (`mobilePrimary`, `mobileSubtitle`,
397
+ * `mobileInline`, `mobileSecondary`, `mobileHidden`).
398
+ */
399
+ declare type __VLS_Props_7 = {
400
+ filteredColumns: TableColumn[];
401
+ pagedData: TableRow[];
402
+ filteredDataLength: number;
403
+ dataLength?: number;
404
+ isCardMode: boolean;
405
+ isLoading?: boolean;
406
+ messageForEmptyTable?: string;
407
+ effectiveSortField?: string;
408
+ effectiveSortDir?: 'asc' | 'desc';
409
+ /**
410
+ * Рендер значения ячейки из таблицы: слот `cell-<field>` или `column.render`.
411
+ * Без него в карточке было бы сырое значение поля.
412
+ */
413
+ renderCell?: (row: TableRow, column: TableColumn) => unknown;
414
+ mobileSortBar?: boolean;
415
+ mobileSortLabel?: string;
416
+ mobileSortStyle?: 'select' | 'segments' | 'menu';
417
+ mobileCardCollapsible?: boolean;
418
+ mobileCardLabels?: boolean;
419
+ mobileMaxVisible?: number;
420
+ mobileCardColumns?: 1 | 2;
421
+ mobileCardGap?: number | string;
422
+ mobileCardDivider?: boolean;
423
+ mobileCardFlat?: boolean;
424
+ };
425
+
426
+ /**
427
+ * Карточка-строка мобильного вида таблицы: заголовок (primary) + компактные значения
428
+ * рядом с ним + видимая зона «подпись: значение» + скрытая зона, раскрываемая по тапу.
429
+ * Порт из React-кита (`TableMobileCard.tsx`), поведение и классы совпадают.
430
+ */
431
+ declare type __VLS_Props_8 = {
432
+ title?: unknown;
433
+ titleLabel?: unknown;
434
+ titleHideLabel?: boolean;
435
+ titleColor?: string;
436
+ titleLabelColor?: string;
437
+ subtitle?: unknown;
438
+ subtitleColor?: string;
439
+ inline?: MobileField[];
440
+ body?: MobileField[];
441
+ details?: MobileField[];
442
+ flat?: boolean;
443
+ divider?: boolean;
444
+ showLabels?: boolean;
445
+ columns?: 1 | 2;
446
+ };
447
+
303
448
  declare function __VLS_template(): {
304
449
  attrs: Partial<{}>;
305
450
  slots: {
@@ -313,13 +458,35 @@ declare function __VLS_template(): {
313
458
  declare function __VLS_template_10(): {
314
459
  attrs: Partial<{}>;
315
460
  slots: {
316
- default?(_: {}): any;
461
+ results?(_: {
462
+ startItem: number;
463
+ endItem: number;
464
+ totalItems: number;
465
+ }): any;
317
466
  };
318
467
  refs: {};
319
468
  rootEl: any;
320
469
  };
321
470
 
322
471
  declare function __VLS_template_11(): {
472
+ attrs: Partial<{}>;
473
+ slots: {
474
+ default?(_: {}): any;
475
+ };
476
+ refs: {};
477
+ rootEl: any;
478
+ };
479
+
480
+ declare function __VLS_template_12(): {
481
+ attrs: Partial<{}>;
482
+ slots: {
483
+ default?(_: {}): any;
484
+ };
485
+ refs: {};
486
+ rootEl: any;
487
+ };
488
+
489
+ declare function __VLS_template_13(): {
323
490
  attrs: Partial<{}>;
324
491
  slots: {
325
492
  default?(_: {}): any;
@@ -330,7 +497,7 @@ declare function __VLS_template_11(): {
330
497
  rootEl: HTMLElement;
331
498
  };
332
499
 
333
- declare function __VLS_template_12(): {
500
+ declare function __VLS_template_14(): {
334
501
  attrs: Partial<{}>;
335
502
  slots: {
336
503
  default?(_: {}): any;
@@ -339,6 +506,33 @@ declare function __VLS_template_12(): {
339
506
  rootEl: any;
340
507
  };
341
508
 
509
+ declare function __VLS_template_15(): {
510
+ attrs: Partial<{}>;
511
+ slots: {
512
+ 'mobile-toolbar'?(_: {}): any;
513
+ 'mobile-card'?(_: {
514
+ key: string;
515
+ row: TableRow;
516
+ index: number;
517
+ }): any;
518
+ };
519
+ refs: {
520
+ sortMenuRef: HTMLDivElement;
521
+ sortSegRef: HTMLDivElement;
522
+ };
523
+ rootEl: HTMLDivElement;
524
+ };
525
+
526
+ declare function __VLS_template_16(): {
527
+ attrs: Partial<{}>;
528
+ slots: {
529
+ titleLabel?(_: {}): any;
530
+ title?(_: {}): any;
531
+ };
532
+ refs: {};
533
+ rootEl: HTMLDivElement;
534
+ };
535
+
342
536
  declare function __VLS_template_2(): {
343
537
  attrs: Partial<{}>;
344
538
  slots: {
@@ -413,7 +607,7 @@ declare function __VLS_template_9(): {
413
607
  default?(_: {}): any;
414
608
  };
415
609
  refs: {};
416
- rootEl: any;
610
+ rootEl: HTMLDivElement;
417
611
  };
418
612
 
419
613
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -424,6 +618,14 @@ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
424
618
 
425
619
  declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
426
620
 
621
+ declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
622
+
623
+ declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
624
+
625
+ declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
626
+
627
+ declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
628
+
427
629
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
428
630
 
429
631
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -482,6 +684,30 @@ declare type __VLS_WithTemplateSlots_15<T, S> = T & {
482
684
  };
483
685
  };
484
686
 
687
+ declare type __VLS_WithTemplateSlots_16<T, S> = T & {
688
+ new (): {
689
+ $slots: S;
690
+ };
691
+ };
692
+
693
+ declare type __VLS_WithTemplateSlots_17<T, S> = T & {
694
+ new (): {
695
+ $slots: S;
696
+ };
697
+ };
698
+
699
+ declare type __VLS_WithTemplateSlots_18<T, S> = T & {
700
+ new (): {
701
+ $slots: S;
702
+ };
703
+ };
704
+
705
+ declare type __VLS_WithTemplateSlots_19<T, S> = T & {
706
+ new (): {
707
+ $slots: S;
708
+ };
709
+ };
710
+
485
711
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
486
712
  new (): {
487
713
  $slots: S;
@@ -530,7 +756,7 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
530
756
  };
531
757
  };
532
758
 
533
- export declare const Accordion: __VLS_WithTemplateSlots_10<DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_11> & Readonly<{}>, {
759
+ export declare const Accordion: __VLS_WithTemplateSlots_12<DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
534
760
  title: string;
535
761
  id: string;
536
762
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
@@ -544,9 +770,9 @@ declare interface BreadCrumbItem {
544
770
  to?: string;
545
771
  }
546
772
 
547
- export declare const BreadCrumbs: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
773
+ export declare const BreadCrumbs: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
548
774
  navigate: (to: string) => any;
549
- }, string, PublicProps, Readonly<Props_9> & Readonly<{
775
+ }, string, PublicProps, Readonly<Props_11> & Readonly<{
550
776
  onNavigate?: ((to: string) => any) | undefined;
551
777
  }>, {
552
778
  items: BreadCrumbItem[];
@@ -562,16 +788,29 @@ declare type ButtonType = typeof BUTTON_TYPES[number];
562
788
 
563
789
  declare type ButtonVariant = typeof VARIANTS[number];
564
790
 
565
- export declare const Calendar: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
791
+ export declare const Calendar: DefineComponent<Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
566
792
  "update:modelValue": (value: Date | null) => any;
567
- }, string, PublicProps, Readonly<Props_21> & Readonly<{
793
+ "update:optionState": (value: string) => any;
794
+ }, string, PublicProps, Readonly<Props_23> & Readonly<{
568
795
  "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
796
+ "onUpdate:optionState"?: ((value: string) => any) | undefined;
569
797
  }>, {
798
+ size: ComponentSize;
799
+ error: string | boolean;
800
+ title: string;
570
801
  modelValue: Date | null;
571
- columnGap: string | number;
802
+ id: string;
803
+ styleInputContainer: Record<string, string>;
804
+ styleTitle: Record<string, string>;
572
805
  rowGap: string | number;
806
+ columnGap: string | number;
573
807
  placeholder: string;
808
+ tooltipMaxWidth: string | number;
809
+ hintText: string;
810
+ wheelEdit: boolean;
811
+ showHint: boolean;
574
812
  validationText: string;
813
+ className: string;
575
814
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
576
815
 
577
816
  export declare const Card: __VLS_WithTemplateSlots_8<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
@@ -585,6 +824,20 @@ export declare interface CellSlotProps<TRow extends TableRow = TableRow> {
585
824
 
586
825
  export declare const Checkbox: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
587
826
 
827
+ /**
828
+ * Размер компонента. Порт `shared/size` из React-кита 1.11.0.
829
+ *
830
+ * Раньше плотный вариант включался булевым `tableView` — по месту, где он впервые
831
+ * понадобился (компактные поля внутри таблицы). Флагом выражаются ровно два состояния,
832
+ * поэтому третий размер добавить было некуда, а название говорило о месте применения
833
+ * вместо самого свойства.
834
+ */
835
+ export declare type ComponentSize = 'small' | 'medium';
836
+
837
+ export declare type DateSegment = 'day' | 'month' | 'year';
838
+
839
+ export declare const DEFAULT_SIZE: ComponentSize;
840
+
588
841
  export declare interface FilterDateState {
589
842
  id: string;
590
843
  type: string;
@@ -592,19 +845,52 @@ export declare interface FilterDateState {
592
845
  end: unknown;
593
846
  }
594
847
 
848
+ /** Форматирует дату в «дд.мм.гггг» (пустая строка для null). */
849
+ export declare const formatDateValue: (date: Date | null) => string;
850
+
851
+ export declare const FormField: __VLS_WithTemplateSlots_9<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
852
+
853
+ /** Сегмент по позиции каретки. */
854
+ export declare const getSegmentAtCaret: (caret: number) => DateSegment;
855
+
856
+ /** Диапазоны символов сегментов в строке дд.мм.гггг. */
857
+ export declare const getSegmentRange: (segment: DateSegment) => [number, number];
858
+
595
859
  /** Тип для слота #header / #header-${field}. */
596
860
  export declare interface HeaderSlotProps<TRow extends TableRow = TableRow> {
597
861
  column: TableColumn<TRow>;
598
862
  columnIndex: number;
599
863
  }
600
864
 
601
- export declare const Icon: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
865
+ export declare const Icon: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
602
866
  size: string | number;
603
867
  ariaLabel: string;
604
868
  color: string;
605
869
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
606
870
 
607
- declare type IconName = 'active' | 'application' | 'arrow-sideways' | 'attention' | 'audit' | 'basket' | 'block' | 'briefcase' | 'calculator' | 'calendar' | 'catalog' | 'chat' | 'check' | 'clock' | 'computer' | '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' | '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' | 'star' | 'star2' | 'star-top20' | 'star-top50' | 'submenu' | 'svg' | 'table-view' | 'telephone' | 'test-tube' | 'top100' | 'top20' | 'top50' | 'tube' | 'university' | 'unlink' | 'unlink2' | 'up' | 'up-arrow' | 'upload' | 'user' | 'video-instruction' | 'video' | 'warning' | 'xls' | 'zip';
871
+ /**
872
+ * Имена иконок иконочного шрифта UI-кита.
873
+ *
874
+ * Источник правды — `urfu-ui-kit-vanilla/src/icons.json`, который генерируется вместе
875
+ * со шрифтом. Здесь список продублирован через `as const` только ради строгого типа
876
+ * `IconName`: JSON-импорт даёт `string[]` без литералов, а публичный API компонентов
877
+ * должен подсказывать конкретные значения.
878
+ *
879
+ * Расхождение с китом ловит `iconsList.vitest.test.ts` — если в ките появились новые
880
+ * иконки, тест упадёт и покажет, что дописать.
881
+ */
882
+ 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", "file", "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"];
883
+
884
+ /** Строгий тип имени иконки — для пропсов компонентов. */
885
+ declare type IconName = typeof ICON_NAMES[number];
886
+
887
+ /**
888
+ * Изменяет один сегмент на delta. День и месяц зацикливаются внутри своего диапазона и
889
+ * НЕ переносятся в соседний сегмент. Год — с ограничением снизу (без зацикливания).
890
+ * При смене месяца/года день ограничивается числом дней в выбранном месяце
891
+ * (30 января → февраль = 28/29, а не «перескок» на март).
892
+ */
893
+ export declare const incrementDateSegment: (value: string, segment: DateSegment, delta: number) => string;
608
894
 
609
895
  declare interface InputBaseProps {
610
896
  title?: string;
@@ -619,37 +905,40 @@ declare interface InputBaseProps {
619
905
  errorAbsolute?: boolean;
620
906
  }
621
907
 
622
- export declare const InputExpandTextarea: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
908
+ export declare const InputExpandTextarea: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
623
909
  change: (event: Event) => any;
624
910
  "update:modelValue": (value: string) => any;
625
- }, string, PublicProps, Readonly<Props_4> & Readonly<{
911
+ }, string, PublicProps, Readonly<Props_5> & Readonly<{
626
912
  onChange?: ((event: Event) => any) | undefined;
627
913
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
628
914
  }>, {
915
+ size: ComponentSize;
629
916
  disabled: boolean;
630
917
  error: boolean | string;
631
918
  title: string;
632
919
  modelValue: string;
633
920
  id: string;
634
- columnGap: string | number;
635
921
  required: boolean;
636
922
  lineUp: boolean;
637
923
  rowGap: string | number;
924
+ columnGap: string | number;
638
925
  errorAbsolute: boolean;
639
926
  placeholder: string;
640
- tableView: boolean;
641
927
  minHeight: string | number;
928
+ tableView: boolean;
642
929
  maxLength: number;
643
930
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
644
931
  textareaRef: HTMLTextAreaElement;
645
932
  }, HTMLDivElement>;
646
933
 
647
- export declare const InputFile: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
934
+ export declare const InputFile: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
648
935
  "update:modelValue": (files: File[]) => any;
649
936
  fileReject: (reason: string, file: File) => any;
650
- }, string, PublicProps, Readonly<Props_6> & Readonly<{
937
+ fileRemove: (file: File, index: number) => any;
938
+ }, string, PublicProps, Readonly<Props_7> & Readonly<{
651
939
  "onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
652
940
  onFileReject?: ((reason: string, file: File) => any) | undefined;
941
+ onFileRemove?: ((file: File, index: number) => any) | undefined;
653
942
  }>, {
654
943
  disabled: boolean;
655
944
  error: boolean | string;
@@ -657,10 +946,10 @@ title: string;
657
946
  modelValue: File[];
658
947
  id: string;
659
948
  name: string;
660
- columnGap: string | number;
661
949
  required: boolean;
662
950
  lineUp: boolean;
663
951
  rowGap: string | number;
952
+ columnGap: string | number;
664
953
  errorAbsolute: boolean;
665
954
  loadingInfo: string;
666
955
  filesInfo: string;
@@ -673,14 +962,14 @@ maxFileSize: number;
673
962
  fileNamePattern: RegExp;
674
963
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
675
964
  fileInputRef: HTMLInputElement;
676
- }, HTMLDivElement>;
965
+ }, any>;
677
966
 
678
- export declare const InputNumber: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
967
+ export declare const InputNumber: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
679
968
  change: (event: Event) => any;
680
- "update:modelValue": (value: string) => any;
681
- }, string, PublicProps, Readonly<Props_5> & Readonly<{
969
+ "update:modelValue": (value: string | number) => any;
970
+ }, string, PublicProps, Readonly<Props_6> & Readonly<{
682
971
  onChange?: ((event: Event) => any) | undefined;
683
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
972
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
684
973
  }>, {
685
974
  disabled: boolean;
686
975
  error: boolean | string;
@@ -688,37 +977,40 @@ title: string;
688
977
  modelValue: string | number;
689
978
  id: string;
690
979
  name: string;
691
- columnGap: string | number;
692
980
  required: boolean;
693
981
  lineUp: boolean;
694
982
  rowGap: string | number;
983
+ columnGap: string | number;
695
984
  errorAbsolute: boolean;
696
985
  placeholder: string;
697
986
  min: string | number;
698
987
  max: string | number;
699
988
  tooltipMaxWidth: string | number;
989
+ restoreLastOnBlur: boolean;
990
+ hintText: string;
700
991
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
701
992
  wheelZoneRef: HTMLDivElement;
702
993
  inputRef: HTMLInputElement;
703
994
  }, HTMLDivElement>;
704
995
 
705
- export declare const InputText: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
996
+ export declare const InputText: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
706
997
  change: (event: Event) => any;
707
998
  "update:modelValue": (value: string) => any;
708
- }, string, PublicProps, Readonly<Props_2> & Readonly<{
999
+ }, string, PublicProps, Readonly<Props_3> & Readonly<{
709
1000
  onChange?: ((event: Event) => any) | undefined;
710
1001
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
711
1002
  }>, {
1003
+ size: ComponentSize;
712
1004
  disabled: boolean;
713
1005
  error: boolean | string;
714
1006
  title: string;
715
1007
  modelValue: string;
716
1008
  id: string;
717
1009
  name: string;
718
- columnGap: string | number;
719
1010
  required: boolean;
720
1011
  lineUp: boolean;
721
1012
  rowGap: string | number;
1013
+ columnGap: string | number;
722
1014
  errorAbsolute: boolean;
723
1015
  placeholder: string;
724
1016
  tableView: boolean;
@@ -726,11 +1018,11 @@ tableView: boolean;
726
1018
  inputRef: HTMLInputElement;
727
1019
  }, HTMLDivElement>;
728
1020
 
729
- export declare const InputTime: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
730
- change: (event: Event) => any;
1021
+ export declare const InputTime: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1022
+ change: (value: string) => any;
731
1023
  "update:modelValue": (value: string) => any;
732
- }, string, PublicProps, Readonly<Props_7> & Readonly<{
733
- onChange?: ((event: Event) => any) | undefined;
1024
+ }, string, PublicProps, Readonly<Props_8> & Readonly<{
1025
+ onChange?: ((value: string) => any) | undefined;
734
1026
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
735
1027
  }>, {
736
1028
  disabled: boolean;
@@ -739,21 +1031,58 @@ title: string;
739
1031
  modelValue: string;
740
1032
  id: string;
741
1033
  name: string;
742
- columnGap: string | number;
743
1034
  required: boolean;
1035
+ styleInputContainer: Record<string, string>;
1036
+ styleTitle: Record<string, string>;
744
1037
  lineUp: boolean;
745
1038
  rowGap: string | number;
1039
+ columnGap: string | number;
746
1040
  errorAbsolute: boolean;
747
1041
  placeholder: string;
748
1042
  tooltipMaxWidth: string | number;
1043
+ hintText: string;
1044
+ isClearable: boolean;
1045
+ wheelEdit: boolean;
1046
+ showHint: boolean;
1047
+ styleInput: Record<string, string>;
749
1048
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
750
1049
  rootRef: HTMLDivElement;
751
1050
  inputRef: HTMLInputElement;
752
1051
  hoursColumnRef: HTMLDivElement;
753
1052
  minutesColumnRef: HTMLDivElement;
754
- }, HTMLDivElement>;
1053
+ }, any>;
1054
+
1055
+ /** Плотный вариант — им включаются уменьшенные отступы и шрифт. */
1056
+ export declare function isCompact(size?: ComponentSize | '', tableView?: boolean): boolean;
1057
+
1058
+ /** Маска дд.мм.гггг с валидацией дня (01–31) и месяца (01–12). */
1059
+ export declare const maskDateValue: (raw: string) => string;
1060
+
1061
+ export declare const MaskedDateInput: DefineComponent<Props_24, {
1062
+ inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
1063
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1064
+ "update-value": (value: string) => any;
1065
+ "open-calendar": () => any;
1066
+ "focus-change": (focused: boolean) => any;
1067
+ "input-click": () => any;
1068
+ }, string, PublicProps, Readonly<Props_24> & Readonly<{
1069
+ "onUpdate-value"?: ((value: string) => any) | undefined;
1070
+ "onOpen-calendar"?: (() => any) | undefined;
1071
+ "onFocus-change"?: ((focused: boolean) => any) | undefined;
1072
+ "onInput-click"?: (() => any) | undefined;
1073
+ }>, {
1074
+ disabled: boolean;
1075
+ id: string;
1076
+ placeholder: string;
1077
+ value: string;
1078
+ isClearable: boolean;
1079
+ wheelEdit: boolean;
1080
+ inputClass: string;
1081
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
1082
+ inputRef: HTMLInputElement;
1083
+ }, HTMLInputElement>;
755
1084
 
756
- export declare const Menu: __VLS_WithTemplateSlots_14<DefineComponent< {
1085
+ export declare const Menu: __VLS_WithTemplateSlots_16<DefineComponent< {
757
1086
  menuData?: MenuDataItem[];
758
1087
  activeSection?: string | number;
759
1088
  showMenu?: boolean;
@@ -785,13 +1114,13 @@ onClickSection?: ((item: MenuDataItem) => any) | undefined;
785
1114
  onClickSwitchMenu?: ((show: boolean) => any) | undefined;
786
1115
  }>, {
787
1116
  type: "collapsible";
788
- maxWidth: string | number;
789
1117
  className: string;
790
1118
  menuData: MenuDataItem[];
791
1119
  activeSection: string | number;
792
1120
  showMenu: boolean;
793
1121
  paddingUl: string;
794
1122
  foldedWidth: string | number;
1123
+ maxWidth: string | number;
795
1124
  minWidth: string | number;
796
1125
  overlayMaxWidth: number;
797
1126
  LinkComponent: Component;
@@ -813,38 +1142,65 @@ export declare interface MenuDataItem {
813
1142
  [key: string]: unknown;
814
1143
  }
815
1144
 
816
- export declare const Message: __VLS_WithTemplateSlots_9<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1145
+ export declare const Message: __VLS_WithTemplateSlots_10<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
817
1146
 
818
1147
  declare type MessageSize = 'medium' | 'small';
819
1148
 
820
1149
  declare type MessageVariant = 'info' | 'fail' | 'success' | 'warning';
821
1150
 
822
- export declare const Modal: __VLS_WithTemplateSlots_15<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1151
+ /** Поле мобильной карточки таблицы: подпись, значение и оформление из пропсов колонки. */
1152
+ declare interface MobileField {
1153
+ label?: unknown;
1154
+ /**
1155
+ * Значение ячейки. Кроме текста принимает готовый узел — таблица передаёт сюда то же,
1156
+ * что рисует в обычной строке (слот `cell-<field>` или `column.render`), иначе в
1157
+ * карточке оказалось бы сырое значение поля (`true` вместо «Активна»).
1158
+ */
1159
+ value?: unknown;
1160
+ hideLabel?: boolean;
1161
+ valueColor?: string;
1162
+ labelColor?: string;
1163
+ /** Длинное значение сворачивается и раскрывается по тапу (`column.mobileCollapsible`). */
1164
+ collapsible?: boolean;
1165
+ }
1166
+
1167
+ export declare const Modal: __VLS_WithTemplateSlots_17<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1168
+
1169
+ /** Названия месяцев для списка в шапке календаря (совпадают с React-китом). */
1170
+ export declare const MONTH_NAMES: string[];
823
1171
 
824
- export declare const Multiselect: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1172
+ export declare const Multiselect: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
825
1173
  "update:modelValue": (values: OptionItem[]) => any;
826
- }, string, PublicProps, Readonly<Props_16> & Readonly<{
1174
+ "update:inputValue": (value: string) => any;
1175
+ inputChange: (value: string) => any;
1176
+ }, string, PublicProps, Readonly<Props_18> & Readonly<{
827
1177
  "onUpdate:modelValue"?: ((values: OptionItem[]) => any) | undefined;
1178
+ "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1179
+ onInputChange?: ((value: string) => any) | undefined;
828
1180
  }>, {
1181
+ size: ComponentSize;
1182
+ disabled: boolean;
1183
+ error: string | boolean;
829
1184
  title: string;
830
1185
  modelValue: OptionItem[];
831
- options: OptionItem[];
832
1186
  required: boolean;
833
1187
  placeholder: string;
1188
+ options: OptionItem[];
834
1189
  tableView: boolean;
835
- className: string;
836
- validationText: string;
837
1190
  validationOn: boolean;
1191
+ validationText: string;
1192
+ className: string;
838
1193
  absoluteValidationText: boolean;
839
1194
  isSearchable: boolean;
840
1195
  loading: boolean;
1196
+ withSelectAll: boolean;
841
1197
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
842
1198
  triggerRef: HTMLDivElement;
843
1199
  searchInputRef: HTMLInputElement;
844
1200
  dropdownRef: HTMLDivElement;
845
1201
  }, HTMLDivElement>;
846
1202
 
847
- declare const Notification_2: __VLS_WithTemplateSlots_11<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1203
+ declare const Notification_2: __VLS_WithTemplateSlots_13<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
848
1204
  export { Notification_2 as Notification }
849
1205
 
850
1206
  declare interface NotificationOptions_2 {
@@ -858,7 +1214,7 @@ declare interface NotificationOptions_2 {
858
1214
  id?: string | number;
859
1215
  }
860
1216
 
861
- export declare const NotificationProvider: __VLS_WithTemplateSlots_12<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1217
+ export declare const NotificationProvider: __VLS_WithTemplateSlots_14<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
862
1218
 
863
1219
  declare interface NotificationService {
864
1220
  showNotification: (options: NotificationOptions_2 | string, message?: string, extra?: Partial<NotificationOptions_2>) => string | number;
@@ -874,18 +1230,7 @@ export declare interface OptionItem {
874
1230
  [key: string]: unknown;
875
1231
  }
876
1232
 
877
- export declare const Pagination: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
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>;
1233
+ export declare const Pagination: __VLS_WithTemplateSlots_11<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
889
1234
 
890
1235
  declare interface PaginationProps {
891
1236
  totalItems: number;
@@ -895,8 +1240,13 @@ declare interface PaginationProps {
895
1240
  pageWindow?: number;
896
1241
  pageSizeOptions?: number[];
897
1242
  hideResults?: boolean;
1243
+ /** Внешний отступ сверху (px) — как в React-ките, чтобы не править стили у потребителя. */
1244
+ marginTop?: number;
898
1245
  }
899
1246
 
1247
+ /** Парсит строку «дд.мм.гггг» в Date (полдень локального времени). null при невалидном вводе. */
1248
+ export declare const parseDateString: (value: string) => Date | null;
1249
+
900
1250
  export declare const Preloader: DefineComponent< {
901
1251
  /** Вариант прелоадера. */
902
1252
  variant?: PreloaderVariant;
@@ -909,25 +1259,48 @@ variant: PreloaderVariant;
909
1259
 
910
1260
  declare type PreloaderVariant = 'small-primary' | 'small-special' | 'large-primary' | 'large-special';
911
1261
 
912
- declare interface Props {
913
- name: IconName;
914
- size?: string | number;
915
- color?: string;
916
- ariaLabel?: string;
1262
+ /**
1263
+ * Редактор форматированного текста. Хранит значение в HTML — так форматирование
1264
+ * переносится в выгружаемые документы (.docx). Набор возможностей осознанно узкий:
1265
+ * полужирный, курсив, зачёркнутый, списки и ссылка — то, что умеет отрисовать Word.
1266
+ *
1267
+ * Построен на tiptap, том же движке, что используется в проектах экосистемы.
1268
+ */
1269
+ declare interface Props extends InputBaseProps {
1270
+ modelValue: string;
1271
+ placeholder?: string;
1272
+ /** Минимальная высота области ввода. */
1273
+ minHeight?: string | number;
917
1274
  }
918
1275
 
919
1276
  declare interface Props_10 {
1277
+ totalItems: number;
1278
+ currentPage: number;
1279
+ pageSize: number;
1280
+ dataLength?: number;
1281
+ pageWindow?: number;
1282
+ pageSizeOptions?: number[];
1283
+ hideResults?: boolean;
1284
+ /** Внешний отступ сверху, px. Нужен, когда пагинация идёт вплотную к таблице. */
1285
+ marginTop?: number;
1286
+ }
1287
+
1288
+ declare interface Props_11 {
1289
+ items?: BreadCrumbItem[];
1290
+ }
1291
+
1292
+ declare interface Props_12 {
920
1293
  tabsData?: TabItem[];
921
1294
  activeTab?: string | number;
922
1295
  variant?: 'line' | 'segment';
923
1296
  }
924
1297
 
925
- declare interface Props_11 {
1298
+ declare interface Props_13 {
926
1299
  title?: string;
927
1300
  id?: string;
928
1301
  }
929
1302
 
930
- declare interface Props_12 {
1303
+ declare interface Props_14 {
931
1304
  variant?: NotificationVariant;
932
1305
  show: boolean;
933
1306
  top?: string;
@@ -939,17 +1312,17 @@ declare interface Props_12 {
939
1312
  fadeOutDuration?: number;
940
1313
  }
941
1314
 
942
- declare interface Props_13 {
1315
+ declare interface Props_15 {
943
1316
  className?: string;
944
1317
  }
945
1318
 
946
- declare interface Props_14 {
1319
+ declare interface Props_16 {
947
1320
  placeholder?: string;
948
1321
  modelValue?: string;
949
1322
  className?: string;
950
1323
  }
951
1324
 
952
- declare interface Props_15 {
1325
+ declare interface Props_17 {
953
1326
  title?: string;
954
1327
  required?: boolean;
955
1328
  options?: OptionItem[];
@@ -957,8 +1330,15 @@ declare interface Props_15 {
957
1330
  modelValue?: OptionItem | null;
958
1331
  isClearable?: boolean;
959
1332
  className?: string;
1333
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1334
+ size?: ComponentSize;
1335
+ /** @deprecated используйте `size="small"` */
960
1336
  tableView?: boolean;
1337
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1338
+ error?: string | boolean;
1339
+ /** @deprecated используйте `error` */
961
1340
  validationText?: string;
1341
+ /** @deprecated используйте `error` */
962
1342
  validationOn?: boolean;
963
1343
  absoluteValidationText?: boolean;
964
1344
  disabled?: boolean;
@@ -968,31 +1348,62 @@ declare interface Props_15 {
968
1348
  columnGap?: string | number;
969
1349
  }
970
1350
 
971
- declare interface Props_16 {
1351
+ declare interface Props_18 {
972
1352
  title?: string;
973
1353
  required?: boolean;
974
1354
  options?: OptionItem[];
975
1355
  placeholder?: string;
976
1356
  modelValue?: OptionItem[];
977
1357
  className?: string;
1358
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1359
+ size?: ComponentSize;
1360
+ /** @deprecated используйте `size="small"` */
978
1361
  tableView?: boolean;
1362
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1363
+ error?: string | boolean;
1364
+ /** @deprecated используйте `error` */
979
1365
  validationText?: string;
1366
+ /** @deprecated используйте `error` */
980
1367
  validationOn?: boolean;
981
1368
  absoluteValidationText?: boolean;
982
1369
  isSearchable?: boolean;
1370
+ /** Поле не принимает ввод: список не раскрывается, теги не снимаются. */
1371
+ disabled?: boolean;
1372
+ /**
1373
+ * Управляемая строка поиска (`v-model:input-value`). Если не передана, компонент
1374
+ * держит её сам. Задавать вместе с серверным поиском по событию `inputChange`.
1375
+ */
1376
+ inputValue?: string;
983
1377
  loading?: boolean;
1378
+ /**
1379
+ * Показывать строку «Выбрать все» над списком. Нужна, когда вариантов десятки и человеку
1380
+ * проще отметить всё разом (а с поиском — всё найденное), чем кликать по одному.
1381
+ */
1382
+ withSelectAll?: boolean;
984
1383
  }
985
1384
 
986
- declare interface Props_17 {
1385
+ declare interface Props_19 {
987
1386
  title?: string;
988
1387
  required?: boolean;
989
1388
  options?: OptionItem[];
990
1389
  placeholder?: string;
991
1390
  modelValue?: OptionItem | null;
1391
+ /**
1392
+ * Управляемая строка поиска (`v-model:input-value`). Если не передана, компонент
1393
+ * держит её сам. Задавать вместе с серверным поиском по событию `inputChange`.
1394
+ */
1395
+ inputValue?: string;
992
1396
  isClearable?: boolean;
993
1397
  className?: string;
1398
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1399
+ size?: ComponentSize;
1400
+ /** @deprecated используйте `size="small"` */
994
1401
  tableView?: boolean;
1402
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1403
+ error?: string | boolean;
1404
+ /** @deprecated используйте `error` */
995
1405
  validationText?: string;
1406
+ /** @deprecated используйте `error` */
996
1407
  validationOn?: boolean;
997
1408
  absoluteValidationText?: boolean;
998
1409
  disabled?: boolean;
@@ -1003,15 +1414,29 @@ declare interface Props_17 {
1003
1414
  columnGap?: string | number;
1004
1415
  }
1005
1416
 
1006
- declare interface Props_18 {
1417
+ declare interface Props_2 {
1418
+ name: IconName;
1419
+ size?: string | number;
1420
+ color?: string;
1421
+ ariaLabel?: string;
1422
+ }
1423
+
1424
+ declare interface Props_20 {
1007
1425
  title?: string;
1008
1426
  required?: boolean;
1009
1427
  placeholder?: string;
1010
1428
  modelValue?: string | null;
1011
1429
  isClearable?: boolean;
1012
1430
  className?: string;
1431
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1432
+ size?: ComponentSize;
1433
+ /** @deprecated используйте `size="small"` */
1013
1434
  tableView?: boolean;
1435
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1436
+ error?: string | boolean;
1437
+ /** @deprecated используйте `error` */
1014
1438
  validationText?: string;
1439
+ /** @deprecated используйте `error` */
1015
1440
  validationOn?: boolean;
1016
1441
  absoluteValidationText?: boolean;
1017
1442
  data?: TreeDataItem[];
@@ -1022,7 +1447,7 @@ declare interface Props_18 {
1022
1447
  columnGap?: string | number;
1023
1448
  }
1024
1449
 
1025
- declare interface Props_19 {
1450
+ declare interface Props_21 {
1026
1451
  active?: boolean;
1027
1452
  maxWidth?: string;
1028
1453
  maxHeight?: string;
@@ -1033,17 +1458,24 @@ declare interface Props_19 {
1033
1458
  ariaLabelledby?: string;
1034
1459
  /** ARIA: текстовая метка модалки (если нет видимого заголовка). */
1035
1460
  ariaLabel?: string;
1461
+ /**
1462
+ * Закрывать по Escape. Выключено по умолчанию, как в React-ките: у части
1463
+ * потребителей Escape уже занят собственными обработчиками.
1464
+ */
1465
+ closeOnEscape?: boolean;
1466
+ /**
1467
+ * Блокировать прокрутку страницы под окном. Выключено по умолчанию: приложения
1468
+ * работают внутри Qiankun, и стиль `document.body` затрагивает оболочку ЛК целиком.
1469
+ */
1470
+ lockScroll?: boolean;
1471
+ /**
1472
+ * Снимать содержимое с рендера у закрытого окна. Выключено по умолчанию: на
1473
+ * сохранении содержимого держится состояние форм между открытиями.
1474
+ */
1475
+ unmountOnClose?: boolean;
1036
1476
  }
1037
1477
 
1038
- declare interface Props_2 extends InputBaseProps {
1039
- modelValue?: string;
1040
- placeholder?: string;
1041
- id?: string;
1042
- name?: string;
1043
- tableView?: boolean;
1044
- }
1045
-
1046
- declare interface Props_20 {
1478
+ declare interface Props_22 {
1047
1479
  /** Ширина скелетона — число (px) или строка CSS ('100%', '200px') */
1048
1480
  width?: string | number;
1049
1481
  /** Высота одного блока — число (px) или строка CSS */
@@ -1057,7 +1489,7 @@ declare interface Props_20 {
1057
1489
  className?: string;
1058
1490
  }
1059
1491
 
1060
- declare interface Props_21 {
1492
+ declare interface Props_23 {
1061
1493
  modelValue?: Date | null;
1062
1494
  title?: string;
1063
1495
  placeholder?: string;
@@ -1065,10 +1497,16 @@ declare interface Props_21 {
1065
1497
  open?: boolean;
1066
1498
  greyIcon?: boolean;
1067
1499
  isClearable?: boolean;
1500
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1501
+ size?: ComponentSize;
1502
+ /** @deprecated используйте `size="small"` */
1068
1503
  tableView?: boolean;
1069
1504
  isFilter?: boolean;
1070
1505
  id?: string;
1071
1506
  required?: boolean;
1507
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1508
+ error?: string | boolean;
1509
+ /** @deprecated используйте `error` */
1072
1510
  validationText?: string;
1073
1511
  validationOn?: boolean;
1074
1512
  validationOnWithoutText?: boolean;
@@ -1078,6 +1516,40 @@ declare interface Props_21 {
1078
1516
  columnGap?: string | number;
1079
1517
  disabled?: boolean;
1080
1518
  className?: string;
1519
+ /** Inline-стили обёртки заголовка и поля. */
1520
+ styleInputContainer?: Record<string, string>;
1521
+ /** Inline-стили заголовка. */
1522
+ styleTitle?: Record<string, string>;
1523
+ /**
1524
+ * Редактирование даты колесом мыши, стрелками ↑↓ и переход между сегментами по Enter.
1525
+ * По умолчанию выключено — поле работает как обычный masked-input (только ввод).
1526
+ */
1527
+ wheelEdit?: boolean;
1528
+ /** Показывать подсказку-тултип при фокусе поля. */
1529
+ showHint?: boolean;
1530
+ /** Текст подсказки. */
1531
+ hintText?: string;
1532
+ /** Максимальная ширина подсказки. */
1533
+ tooltipMaxWidth?: string | number;
1534
+ }
1535
+
1536
+ declare interface Props_24 {
1537
+ /** Отображаемое значение в формате дд.мм.гггг. */
1538
+ value?: string;
1539
+ placeholder?: string;
1540
+ disabled?: boolean;
1541
+ id?: string;
1542
+ inputClass?: string;
1543
+ /**
1544
+ * Редактирование сегментов колесом мыши, стрелками ↑↓ и переход по Enter.
1545
+ * По умолчанию выключено — поле работает как обычный masked-input (только ввод).
1546
+ */
1547
+ wheelEdit?: boolean;
1548
+ /**
1549
+ * Разрешает оставить поле пустым. Если false — на blur неполное/пустое значение
1550
+ * восстанавливается к последней полной введённой дате.
1551
+ */
1552
+ isClearable?: boolean;
1081
1553
  }
1082
1554
 
1083
1555
  declare interface Props_3 extends InputBaseProps {
@@ -1085,19 +1557,33 @@ declare interface Props_3 extends InputBaseProps {
1085
1557
  placeholder?: string;
1086
1558
  id?: string;
1087
1559
  name?: string;
1560
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1561
+ size?: ComponentSize;
1562
+ /** @deprecated используйте `size="small"` */
1563
+ tableView?: boolean;
1088
1564
  }
1089
1565
 
1090
1566
  declare interface Props_4 extends InputBaseProps {
1091
1567
  modelValue?: string;
1092
1568
  placeholder?: string;
1093
1569
  id?: string;
1570
+ name?: string;
1571
+ }
1572
+
1573
+ declare interface Props_5 extends InputBaseProps {
1574
+ modelValue?: string;
1575
+ placeholder?: string;
1576
+ id?: string;
1577
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1578
+ size?: ComponentSize;
1579
+ /** @deprecated используйте `size="small"` */
1094
1580
  tableView?: boolean;
1095
1581
  minHeight?: string | number;
1096
1582
  maxHeight?: string | number;
1097
1583
  maxLength?: number;
1098
1584
  }
1099
1585
 
1100
- declare interface Props_5 extends InputBaseProps {
1586
+ declare interface Props_6 extends InputBaseProps {
1101
1587
  modelValue?: string | number;
1102
1588
  placeholder?: string;
1103
1589
  id?: string;
@@ -1105,9 +1591,16 @@ declare interface Props_5 extends InputBaseProps {
1105
1591
  min?: string | number;
1106
1592
  max?: string | number;
1107
1593
  tooltipMaxWidth?: string | number;
1594
+ /**
1595
+ * Разрешить очистку поля во время ввода: пока поле в фокусе, его можно стереть до
1596
+ * пустого, а при потере фокуса пустое значение восстанавливается последним валидным.
1597
+ */
1598
+ restoreLastOnBlur?: boolean;
1599
+ /** Текст подсказки при фокусе. На узком экране подсказка не показывается. */
1600
+ hintText?: string;
1108
1601
  }
1109
1602
 
1110
- declare interface Props_6 extends InputBaseProps {
1603
+ declare interface Props_7 extends InputBaseProps {
1111
1604
  modelValue?: File[];
1112
1605
  id?: string;
1113
1606
  name?: string;
@@ -1122,26 +1615,66 @@ declare interface Props_6 extends InputBaseProps {
1122
1615
  fileNamePattern?: RegExp;
1123
1616
  }
1124
1617
 
1125
- declare interface Props_7 extends InputBaseProps {
1618
+ declare interface Props_8 extends InputBaseProps {
1126
1619
  modelValue?: string;
1127
1620
  placeholder?: string;
1128
1621
  id?: string;
1129
1622
  name?: string;
1130
1623
  tooltipMaxWidth?: string | number;
1624
+ /**
1625
+ * Разрешает оставить поле пустым. Если false — на blur неполное значение
1626
+ * восстанавливается к последнему полному введённому времени.
1627
+ */
1628
+ isClearable?: boolean;
1629
+ /**
1630
+ * Правка времени колесом мыши и стрелками ↑↓ с посегментным выделением.
1631
+ * По умолчанию выключено: иначе компонент перехватывал бы колесо и страница
1632
+ * переставала бы прокручиваться, пока поле в фокусе.
1633
+ */
1634
+ wheelEdit?: boolean;
1635
+ /** Показывать подсказку-тултип при фокусе. По умолчанию выключено. */
1636
+ showHint?: boolean;
1637
+ /** Текст подсказки. */
1638
+ hintText?: string;
1639
+ /** Inline-стили обёртки заголовка и поля. */
1640
+ styleInputContainer?: Record<string, string>;
1641
+ /** Inline-стили заголовка. */
1642
+ styleTitle?: Record<string, string>;
1643
+ /** Inline-стили самого поля ввода. */
1644
+ styleInput?: Record<string, string>;
1131
1645
  }
1132
1646
 
1133
- declare interface Props_8 {
1134
- totalItems: number;
1135
- currentPage: number;
1136
- pageSize: number;
1137
- dataLength?: number;
1138
- pageWindow?: number;
1139
- pageSizeOptions?: number[];
1140
- hideResults?: boolean;
1141
- }
1142
-
1647
+ /**
1648
+ * Обёртка поля формы: подпись, расстановка и текст ошибки. Порт `FormField`
1649
+ * из React-кита 1.11.0.
1650
+ *
1651
+ * Раньше это умел каждый компонент сам — `title`, `required`, `lineUp`, `rowGap`,
1652
+ * `columnGap` и пропы проверки повторялись в десяти полях. Поле знало, как оно
1653
+ * расположено в форме, хотя это забота формы.
1654
+ *
1655
+ * Компонент необязательный: прежние пропы полей работают как работали. Он нужен там,
1656
+ * где раскладку удобнее задать снаружи — например, когда поле приходит из другой
1657
+ * библиотеки или это вовсе не поле.
1658
+ */
1143
1659
  declare interface Props_9 {
1144
- items?: BreadCrumbItem[];
1660
+ /** Подпись поля. */
1661
+ title?: string;
1662
+ /** Пометить подпись как обязательную. */
1663
+ required?: boolean;
1664
+ /**
1665
+ * Ошибка: строка — текст под полем, `true` — только пометка,
1666
+ * `false`/отсутствие — ошибки нет. Тот же вид, что у полей ввода.
1667
+ */
1668
+ error?: string | boolean;
1669
+ /** Подпись слева от поля вместо строки сверху. */
1670
+ inline?: boolean;
1671
+ /** Расстояние между подписью и полем. */
1672
+ gap?: string | number;
1673
+ /** Подсказка под полем, когда ошибки нет. */
1674
+ hint?: string;
1675
+ /** Идентификатор поля — им подпись связывается с элементом ввода. */
1676
+ htmlFor?: string;
1677
+ className?: string;
1145
1678
  }
1146
1679
 
1147
1680
  export declare const Radio: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
@@ -1150,9 +1683,36 @@ export declare const RadioGroup: __VLS_WithTemplateSlots_4<typeof __VLS_componen
1150
1683
 
1151
1684
  declare type RadioGroupValue = string | number | undefined;
1152
1685
 
1153
- export declare const Search: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1686
+ /**
1687
+ * Итоговый размер с учётом устаревшего `tableView`.
1688
+ *
1689
+ * Явно переданный `size` важнее: он новее и точнее. Если его нет, а `tableView`
1690
+ * выставлен — это прежний компактный вариант, ровно как и было.
1691
+ */
1692
+ export declare function resolveSize(size?: ComponentSize | '', tableView?: boolean): ComponentSize;
1693
+
1694
+ export declare function resolveValidation({ error, validationOn, validationOnWithoutText, validationText, }: ValidationParams): ValidationState;
1695
+
1696
+ export declare const RichTextEditor: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1154
1697
  "update:modelValue": (value: string) => any;
1155
- }, string, PublicProps, Readonly<Props_14> & Readonly<{
1698
+ }, string, PublicProps, Readonly<Props> & Readonly<{
1699
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1700
+ }>, {
1701
+ disabled: boolean;
1702
+ error: boolean | string;
1703
+ title: string;
1704
+ required: boolean;
1705
+ lineUp: boolean;
1706
+ rowGap: string | number;
1707
+ columnGap: string | number;
1708
+ errorAbsolute: boolean;
1709
+ placeholder: string;
1710
+ minHeight: string | number;
1711
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1712
+
1713
+ export declare const Search: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1714
+ "update:modelValue": (value: string) => any;
1715
+ }, string, PublicProps, Readonly<Props_16> & Readonly<{
1156
1716
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1157
1717
  }>, {
1158
1718
  modelValue: string;
@@ -1160,27 +1720,31 @@ placeholder: string;
1160
1720
  className: string;
1161
1721
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1162
1722
 
1163
- export declare const SearchSelect: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1723
+ export declare const SearchSelect: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1164
1724
  "update:modelValue": (value: OptionItem | null) => any;
1725
+ "update:inputValue": (value: string) => any;
1165
1726
  inputChange: (value: string) => any;
1166
- }, string, PublicProps, Readonly<Props_17> & Readonly<{
1727
+ }, string, PublicProps, Readonly<Props_19> & Readonly<{
1167
1728
  "onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
1729
+ "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1168
1730
  onInputChange?: ((value: string) => any) | undefined;
1169
1731
  }>, {
1732
+ size: ComponentSize;
1170
1733
  disabled: boolean;
1734
+ error: string | boolean;
1171
1735
  title: string;
1172
1736
  modelValue: OptionItem | null;
1173
- columnGap: string | number;
1174
- options: OptionItem[];
1175
1737
  required: boolean;
1176
1738
  lineUp: boolean;
1177
1739
  rowGap: string | number;
1740
+ columnGap: string | number;
1178
1741
  placeholder: string;
1742
+ options: OptionItem[];
1179
1743
  tableView: boolean;
1180
- className: string;
1181
1744
  isClearable: boolean;
1182
- validationText: string;
1183
1745
  validationOn: boolean;
1746
+ validationText: string;
1747
+ className: string;
1184
1748
  absoluteValidationText: boolean;
1185
1749
  loading: boolean;
1186
1750
  emptyOptionsText: string;
@@ -1189,25 +1753,27 @@ triggerRef: HTMLDivElement;
1189
1753
  dropdownRef: HTMLDivElement;
1190
1754
  }, HTMLDivElement>;
1191
1755
 
1192
- export declare const Select: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1756
+ export declare const Select: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1193
1757
  "update:modelValue": (value: OptionItem | null) => any;
1194
- }, string, PublicProps, Readonly<Props_15> & Readonly<{
1758
+ }, string, PublicProps, Readonly<Props_17> & Readonly<{
1195
1759
  "onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
1196
1760
  }>, {
1761
+ size: ComponentSize;
1197
1762
  disabled: boolean;
1763
+ error: string | boolean;
1198
1764
  title: string;
1199
1765
  modelValue: OptionItem | null;
1200
- columnGap: string | number;
1201
- options: OptionItem[];
1202
1766
  required: boolean;
1203
1767
  lineUp: boolean;
1204
1768
  rowGap: string | number;
1769
+ columnGap: string | number;
1205
1770
  placeholder: string;
1771
+ options: OptionItem[];
1206
1772
  tableView: boolean;
1207
- className: string;
1208
1773
  isClearable: boolean;
1209
- validationText: string;
1210
1774
  validationOn: boolean;
1775
+ validationText: string;
1776
+ className: string;
1211
1777
  absoluteValidationText: boolean;
1212
1778
  noScroll: boolean;
1213
1779
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -1217,15 +1783,17 @@ dropdownRef: HTMLDivElement;
1217
1783
 
1218
1784
  declare const SIZES: readonly ["medium", "small"];
1219
1785
 
1220
- export declare const Skeleton: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_20> & Readonly<{}>, {
1786
+ export declare const Skeleton: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_22> & Readonly<{}>, {
1221
1787
  width: string | number;
1222
1788
  height: string | number;
1223
1789
  borderRadius: string | number;
1790
+ gap: string | number;
1224
1791
  className: string;
1225
1792
  count: number;
1226
- gap: string | number;
1227
1793
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1228
1794
 
1795
+ export declare function sortRows<TRow extends TableRow>(rows: TRow[], state: SortState, columns: TableColumn<TRow>[], parentDataField?: string): TRow[];
1796
+
1229
1797
  export declare interface SortState {
1230
1798
  column: string | null;
1231
1799
  asc: boolean | null;
@@ -1237,7 +1805,7 @@ declare type StatusSize = 'medium' | 'large';
1237
1805
 
1238
1806
  declare type StatusVariant = 'warning' | 'info' | 'neutral' | 'success' | 'danger' | 'intermediate' | 'prepared' | '';
1239
1807
 
1240
- export declare const StickyActionBar: __VLS_WithTemplateSlots_13<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1808
+ export declare const StickyActionBar: __VLS_WithTemplateSlots_15<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1241
1809
 
1242
1810
  export declare const Switch: __VLS_WithTemplateSlots_5<DefineComponent< {
1243
1811
  /** Управляемое состояние через v-model. */
@@ -1289,8 +1857,36 @@ export declare const Table: <TRow extends TableRow>(__VLS_props: NonNullable<Awa
1289
1857
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onDrop" | "onPageChange" | "onPageSizeChange" | "onUpdate:filteredData" | "onUpdate:sort"> & TableProps<TRow> & Partial<{}>> & PublicProps;
1290
1858
  expose(exposed: ShallowUnwrapRef<TableExposed<TRow>>): void;
1291
1859
  attrs: any;
1292
- slots: {
1293
- empty?(_: {}): any;
1860
+ slots: Readonly<{
1861
+ empty?: () => unknown;
1862
+ cell?: (props: CellSlotProps<TRow>) => unknown;
1863
+ header?: (props: HeaderSlotProps<TRow>) => unknown;
1864
+ /** Своя панель над карточками в мобильном виде (вместо штатной сортировки). */
1865
+ 'mobile-toolbar'?: () => unknown;
1866
+ /** Своя карточка строки в мобильном виде (вместо автоматической). */
1867
+ 'mobile-card'?: (props: {
1868
+ row: TRow;
1869
+ index: number;
1870
+ }) => unknown;
1871
+ } & {
1872
+ [x: `cell-${string}`]: ((props: CellSlotProps<TRow>) => unknown) | undefined;
1873
+ } & {
1874
+ [x: `header-${string}`]: ((props: HeaderSlotProps<TRow>) => unknown) | undefined;
1875
+ }> & {
1876
+ empty?: () => unknown;
1877
+ cell?: (props: CellSlotProps<TRow>) => unknown;
1878
+ header?: (props: HeaderSlotProps<TRow>) => unknown;
1879
+ /** Своя панель над карточками в мобильном виде (вместо штатной сортировки). */
1880
+ 'mobile-toolbar'?: () => unknown;
1881
+ /** Своя карточка строки в мобильном виде (вместо автоматической). */
1882
+ 'mobile-card'?: (props: {
1883
+ row: TRow;
1884
+ index: number;
1885
+ }) => unknown;
1886
+ } & {
1887
+ [x: `cell-${string}`]: ((props: CellSlotProps<TRow>) => unknown) | undefined;
1888
+ } & {
1889
+ [x: `header-${string}`]: ((props: HeaderSlotProps<TRow>) => unknown) | undefined;
1294
1890
  };
1295
1891
  emit: ((evt: "drop", payload: {
1296
1892
  fromIndex: number;
@@ -1321,6 +1917,36 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
1321
1917
  resizeOff?: boolean;
1322
1918
  /** Включить сортировку по клику на заголовок (3-state toggle). */
1323
1919
  sortable?: boolean;
1920
+ /**
1921
+ * Свой порядок сортировки колонки: сравнивает строки целиком, а не значения ячеек.
1922
+ * Нужен, когда порядок не выводится из отображаемого текста — статусы по важности,
1923
+ * ФИО по фамилии, версии по номерам. Важнее `filterValuePath`. При сортировке по
1924
+ * убыванию результат инвертируется — компаратор всегда пишется «по возрастанию».
1925
+ */
1926
+ sortComparator?: (a: TRow, b: TRow) => number;
1927
+ /** Заголовок карточки. Если не задано ни у одной колонки — берётся первая. */
1928
+ mobilePrimary?: boolean;
1929
+ /** Подзаголовок под заголовком карточки. */
1930
+ mobileSubtitle?: boolean;
1931
+ /** Компактное значение рядом с заголовком (для статусов, чисел). */
1932
+ mobileInline?: boolean;
1933
+ /** Значение уходит в скрытую зону карточки (раскрывается по тапу). */
1934
+ mobileSecondary?: boolean;
1935
+ /** Колонку в мобильном виде не показывать вовсе. */
1936
+ mobileHidden?: boolean;
1937
+ /** Не показывать подпись поля в карточке. */
1938
+ mobileHideLabel?: boolean;
1939
+ /**
1940
+ * Длинное значение в карточке сворачивается: строка превращается в кнопку с
1941
+ * шевроном, значение обрезается по высоте и раскрывается по тапу.
1942
+ */
1943
+ mobileCollapsible?: boolean;
1944
+ /** Подпись поля в карточке, если она отличается от заголовка колонки. */
1945
+ mobileLabel?: string;
1946
+ /** Цвет значения в карточке. */
1947
+ mobileValueColor?: string;
1948
+ /** Цвет подписи в карточке. */
1949
+ mobileLabelColor?: string;
1324
1950
  /** Включить фильтр. */
1325
1951
  filterable?: boolean;
1326
1952
  /** Тип фильтра. */
@@ -1369,6 +1995,10 @@ export declare interface TableExposed<TRow extends TableRow = TableRow> {
1369
1995
 
1370
1996
  export declare type TableFilterType = 'string' | 'number' | 'date' | 'boolean';
1371
1997
 
1998
+ export declare const TableMobileCard: __VLS_WithTemplateSlots_19<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
1999
+
2000
+ export declare const TableMobileView: __VLS_WithTemplateSlots_18<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
2001
+
1372
2002
  export declare interface TableProps<TRow extends TableRow = TableRow> {
1373
2003
  /** Данные таблицы. */
1374
2004
  data: TRow[];
@@ -1390,6 +2020,54 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
1390
2020
  withoutHeader?: boolean;
1391
2021
  maxHeight?: string;
1392
2022
  minHeight?: string;
2023
+ /**
2024
+ * Сигнал сброса фильтров: при любом изменении значения снятые галочки в фильтрах
2025
+ * колонок возвращаются в исходное состояние (например, при смене набора данных).
2026
+ */
2027
+ filterResetParam?: unknown;
2028
+ /**
2029
+ * Сортировка при первом рендере: поле и направление. Нужна, чтобы таблица (и панель
2030
+ * сортировки мобильного вида) открывалась в осмысленном порядке.
2031
+ */
2032
+ defaultSort?: {
2033
+ column: string;
2034
+ asc?: boolean;
2035
+ };
2036
+ /**
2037
+ * Управляемая сортировка: состояние приходит снаружи (`v-model:sort`). Без неё
2038
+ * таблица держит своё и `defaultSort` задаёт начальное.
2039
+ */
2040
+ sort?: SortState;
2041
+ /**
2042
+ * Данные сортирует родитель — таблица только рисует стрелки и сообщает о клике.
2043
+ * Нужно для серверной сортировки: страница приходит уже упорядоченной, и повторная
2044
+ * сортировка на клиенте переставила бы строки внутри страницы неверно.
2045
+ */
2046
+ externalSort?: boolean;
2047
+ /** Включить карточный вид на узком контейнере. */
2048
+ mobileView?: boolean;
2049
+ /** Ширина контейнера (px), ниже которой включается карточный вид. */
2050
+ mobileBreakpoint?: number;
2051
+ /** Часть полей скрыть под тап (раскрывающаяся карточка). */
2052
+ mobileCardCollapsible?: boolean;
2053
+ /** Показывать подписи полей в карточке. */
2054
+ mobileCardLabels?: boolean;
2055
+ /** Сколько полей оставить видимыми; остальные — под тап. */
2056
+ mobileMaxVisible?: number;
2057
+ /** Раскладка полей карточки: одна колонка или две. */
2058
+ mobileCardColumns?: 1 | 2;
2059
+ /** Зазор между карточками. */
2060
+ mobileCardGap?: number | string;
2061
+ /** Карточки без рамки и фона (для вложения в обрамлённый контейнер). */
2062
+ mobileCardFlat?: boolean;
2063
+ /** Тонкая линия-разделитель между карточками. */
2064
+ mobileCardDivider?: boolean;
2065
+ /** Показывать панель сортировки (по умолчанию — если есть сортируемые колонки). */
2066
+ mobileSortBar?: boolean;
2067
+ /** Подпись панели сортировки. */
2068
+ mobileSortLabel?: string;
2069
+ /** Вид панели сортировки. */
2070
+ mobileSortStyle?: 'select' | 'segments' | 'menu';
1393
2071
  /** Показывает скелетон вместо строк. */
1394
2072
  isLoading?: boolean;
1395
2073
  /** Показывает прелоадер по центру вместо скелетона. */
@@ -1437,15 +2115,22 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
1437
2115
  /** Количество видимых строк в окне виртуализации. По умолчанию 20. */
1438
2116
  visibleRows?: number;
1439
2117
  pagination?: PaginationProps;
2118
+ /**
2119
+ * Текущая страница для внутренней нарезки. Если задана вместе с `pageSize`, таблица сама
2120
+ * показывает только строки этой страницы — снаружи резать данные не нужно.
2121
+ */
2122
+ page?: number;
2123
+ /** Размер страницы для внутренней нарезки (работает вместе с `page`). */
2124
+ pageSize?: number;
1440
2125
  id?: string;
1441
2126
  className?: string;
1442
2127
  }
1443
2128
 
1444
2129
  export declare type TableRow = Record<string, unknown>;
1445
2130
 
1446
- export declare const Tabs: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2131
+ export declare const Tabs: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1447
2132
  tabClick: (tab: TabItem) => any;
1448
- }, string, PublicProps, Readonly<Props_10> & Readonly<{
2133
+ }, string, PublicProps, Readonly<Props_12> & Readonly<{
1449
2134
  onTabClick?: ((tab: TabItem) => any) | undefined;
1450
2135
  }>, {
1451
2136
  variant: "line" | "segment";
@@ -1453,10 +2138,10 @@ tabsData: TabItem[];
1453
2138
  activeTab: string | number;
1454
2139
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1455
2140
 
1456
- export declare const Textarea: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2141
+ export declare const Textarea: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1457
2142
  change: (event: Event) => any;
1458
2143
  "update:modelValue": (value: string) => any;
1459
- }, string, PublicProps, Readonly<Props_3> & Readonly<{
2144
+ }, string, PublicProps, Readonly<Props_4> & Readonly<{
1460
2145
  onChange?: ((event: Event) => any) | undefined;
1461
2146
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1462
2147
  }>, {
@@ -1466,10 +2151,10 @@ title: string;
1466
2151
  modelValue: string;
1467
2152
  id: string;
1468
2153
  name: string;
1469
- columnGap: string | number;
1470
2154
  required: boolean;
1471
2155
  lineUp: boolean;
1472
2156
  rowGap: string | number;
2157
+ columnGap: string | number;
1473
2158
  errorAbsolute: boolean;
1474
2159
  placeholder: string;
1475
2160
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1485,29 +2170,31 @@ export declare interface TreeDataItem {
1485
2170
  [key: string]: unknown;
1486
2171
  }
1487
2172
 
1488
- export declare const TreeView: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2173
+ export declare const TreeView: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1489
2174
  "update:modelValue": (value: string | null) => any;
1490
2175
  nodeClick: (node: TreeDataItem) => any;
1491
2176
  nodeClear: () => any;
1492
- }, string, PublicProps, Readonly<Props_18> & Readonly<{
2177
+ }, string, PublicProps, Readonly<Props_20> & Readonly<{
1493
2178
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
1494
2179
  onNodeClick?: ((node: TreeDataItem) => any) | undefined;
1495
2180
  onNodeClear?: (() => any) | undefined;
1496
2181
  }>, {
2182
+ size: ComponentSize;
1497
2183
  disabled: boolean;
2184
+ error: string | boolean;
1498
2185
  data: TreeDataItem[];
1499
2186
  title: string;
1500
2187
  modelValue: string | null;
1501
- columnGap: string | number;
1502
2188
  required: boolean;
1503
2189
  lineUp: boolean;
1504
2190
  rowGap: string | number;
2191
+ columnGap: string | number;
1505
2192
  placeholder: string;
1506
2193
  tableView: boolean;
1507
- className: string;
1508
2194
  isClearable: boolean;
1509
- validationText: string;
1510
2195
  validationOn: boolean;
2196
+ validationText: string;
2197
+ className: string;
1511
2198
  absoluteValidationText: boolean;
1512
2199
  isSearchable: boolean;
1513
2200
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -1516,8 +2203,55 @@ searchInputRef: HTMLInputElement;
1516
2203
  dropdownRef: HTMLDivElement;
1517
2204
  }, HTMLDivElement>;
1518
2205
 
2206
+ export declare function useAutoId(providedId?: string | number | null, prefix?: string): string;
2207
+
1519
2208
  export declare function useNotification(): NotificationService;
1520
2209
 
2210
+ export declare function useTableSort(): {
2211
+ sort: Ref< {
2212
+ column: string | null;
2213
+ asc: boolean | null;
2214
+ }, SortState | {
2215
+ column: string | null;
2216
+ asc: boolean | null;
2217
+ }>;
2218
+ toggleSort: (field: string) => void;
2219
+ resetSort: () => void;
2220
+ };
2221
+
2222
+ declare interface ValidationParams {
2223
+ error?: string | boolean;
2224
+ validationOn?: boolean;
2225
+ validationOnWithoutText?: boolean;
2226
+ validationText?: string;
2227
+ }
2228
+
2229
+ /**
2230
+ * Состояние ошибки у поля. Порт `shared/validation` из React-кита 1.11.0.
2231
+ *
2232
+ * Раньше его описывали четыре пропа: `validationOn` (рамка и текст),
2233
+ * `validationOnWithoutText` (только рамка), `validationText` (сам текст) и
2234
+ * `absoluteValidationText` (как разместить подпись). Они появлялись по одному,
2235
+ * по мере надобности, и одно состояние приходилось собирать из нескольких флагов,
2236
+ * следя, чтобы они не противоречили друг другу.
2237
+ *
2238
+ * Новый проп `error` выражает то же самое одним значением:
2239
+ *
2240
+ * - строка — поле с ошибкой, строка и есть подпись;
2241
+ * - `true` — поле с ошибкой, без подписи;
2242
+ * - `false` или отсутствие — ошибки нет.
2243
+ *
2244
+ * Старые пропы продолжают работать: они учитываются, когда `error` не передан.
2245
+ */
2246
+ export declare interface ValidationState {
2247
+ /** Поле помечено как ошибочное — по нему рисуется красная рамка. */
2248
+ hasError: boolean;
2249
+ /** Показывать ли подпись под полем. */
2250
+ showText: boolean;
2251
+ /** Текст подписи. */
2252
+ text?: string;
2253
+ }
2254
+
1521
2255
  declare const VARIANTS: readonly ["primary", "danger", "outline", "danger-outline", "simple", "icon", "text", "text-danger", "text-table", "text-danger-table"];
1522
2256
 
1523
2257
  export { }