urfu-ui-kit-vue 0.0.4 → 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
@@ -105,10 +105,24 @@ disabled: boolean;
105
105
  ariaLabel: string;
106
106
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
107
107
 
108
- declare const __VLS_component_10: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
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, {} & {
109
123
  hide: () => any;
110
124
  fadeOutEnd: () => any;
111
- }, string, PublicProps, Readonly<Props_13> & Readonly<{
125
+ }, string, PublicProps, Readonly<Props_14> & Readonly<{
112
126
  onHide?: (() => any) | undefined;
113
127
  onFadeOutEnd?: (() => any) | undefined;
114
128
  }>, {
@@ -122,17 +136,17 @@ duration: number;
122
136
  fadeOutDuration: number;
123
137
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
124
138
 
125
- declare const __VLS_component_11: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
139
+ declare const __VLS_component_12: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
126
140
 
127
- declare const __VLS_component_12: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {
141
+ declare const __VLS_component_13: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {
128
142
  className: string;
129
143
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
130
144
  barRef: HTMLElement;
131
145
  }, HTMLElement>;
132
146
 
133
- declare const __VLS_component_13: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
147
+ declare const __VLS_component_14: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
134
148
  cancel: () => any;
135
- }, string, PublicProps, Readonly<Props_20> & Readonly<{
149
+ }, string, PublicProps, Readonly<Props_21> & Readonly<{
136
150
  onCancel?: (() => any) | undefined;
137
151
  }>, {
138
152
  active: boolean;
@@ -143,9 +157,12 @@ className: string;
143
157
  maxWidth: string;
144
158
  notCloseClickOnBack: boolean;
145
159
  ariaLabelledby: string;
160
+ closeOnEscape: boolean;
161
+ lockScroll: boolean;
162
+ unmountOnClose: boolean;
146
163
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
147
164
 
148
- declare const __VLS_component_14: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
165
+ declare const __VLS_component_15: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
149
166
  applySort: (field: string | undefined, dir: "desc" | "asc" | undefined) => any;
150
167
  setSortField: (field: string) => any;
151
168
  toggleSortDir: () => any;
@@ -175,12 +192,13 @@ sortMenuRef: HTMLDivElement;
175
192
  sortSegRef: HTMLDivElement;
176
193
  }, HTMLDivElement>;
177
194
 
178
- declare const __VLS_component_15: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
195
+ declare const __VLS_component_16: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
179
196
  flat: boolean;
180
197
  body: MobileField[];
181
198
  details: MobileField[];
182
199
  title: undefined;
183
200
  inline: MobileField[];
201
+ showLabels: boolean;
184
202
  titleLabel: undefined;
185
203
  titleHideLabel: boolean;
186
204
  titleColor: string;
@@ -188,7 +206,6 @@ titleLabelColor: string;
188
206
  subtitle: undefined;
189
207
  subtitleColor: string;
190
208
  divider: boolean;
191
- showLabels: boolean;
192
209
  columns: 1 | 2;
193
210
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
194
211
 
@@ -254,6 +271,7 @@ showWhenActive: boolean;
254
271
  tooltipStyle: Record<string, string>;
255
272
  autoPosition: boolean;
256
273
  fullWidth: boolean;
274
+ portalOn: boolean;
257
275
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
258
276
  tooltipRef: HTMLDivElement;
259
277
  triggerRef: HTMLSpanElement;
@@ -261,25 +279,22 @@ triggerRef: HTMLSpanElement;
261
279
 
262
280
  declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
263
281
 
264
- 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<{}>, {
265
294
  variant: MessageVariant;
266
295
  size: MessageSize;
267
296
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
268
297
 
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;
275
- }>, {
276
- marginTop: number;
277
- dataLength: number;
278
- pageWindow: number;
279
- pageSizeOptions: number[];
280
- hideResults: boolean;
281
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
282
-
283
298
  declare type __VLS_PrettifyLocal<T> = {
284
299
  [K in keyof T]: T[K];
285
300
  } & {};
@@ -362,6 +377,12 @@ declare type __VLS_Props_5 = {
362
377
  * контенту, и поле внутри получает `width: 100%` от сжатой обёртки.
363
378
  */
364
379
  fullWidth?: boolean;
380
+ /**
381
+ * Рендерить подсказку в `body`. Нужно, когда триггер лежит в контейнере с
382
+ * `overflow: hidden` (ячейка таблицы, карточка со скруглением) — иначе подсказка
383
+ * обрезается его границами. Позиция при этом считается от окна (`fixed`).
384
+ */
385
+ portalOn?: boolean;
365
386
  };
366
387
 
367
388
  declare type __VLS_Props_6 = {
@@ -402,6 +423,11 @@ declare type __VLS_Props_7 = {
402
423
  mobileCardFlat?: boolean;
403
424
  };
404
425
 
426
+ /**
427
+ * Карточка-строка мобильного вида таблицы: заголовок (primary) + компактные значения
428
+ * рядом с ним + видимая зона «подпись: значение» + скрытая зона, раскрываемая по тапу.
429
+ * Порт из React-кита (`TableMobileCard.tsx`), поведение и классы совпадают.
430
+ */
405
431
  declare type __VLS_Props_8 = {
406
432
  title?: unknown;
407
433
  titleLabel?: unknown;
@@ -432,7 +458,11 @@ declare function __VLS_template(): {
432
458
  declare function __VLS_template_10(): {
433
459
  attrs: Partial<{}>;
434
460
  slots: {
435
- default?(_: {}): any;
461
+ results?(_: {
462
+ startItem: number;
463
+ endItem: number;
464
+ totalItems: number;
465
+ }): any;
436
466
  };
437
467
  refs: {};
438
468
  rootEl: any;
@@ -448,6 +478,15 @@ declare function __VLS_template_11(): {
448
478
  };
449
479
 
450
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(): {
451
490
  attrs: Partial<{}>;
452
491
  slots: {
453
492
  default?(_: {}): any;
@@ -458,7 +497,7 @@ declare function __VLS_template_12(): {
458
497
  rootEl: HTMLElement;
459
498
  };
460
499
 
461
- declare function __VLS_template_13(): {
500
+ declare function __VLS_template_14(): {
462
501
  attrs: Partial<{}>;
463
502
  slots: {
464
503
  default?(_: {}): any;
@@ -467,7 +506,7 @@ declare function __VLS_template_13(): {
467
506
  rootEl: any;
468
507
  };
469
508
 
470
- declare function __VLS_template_14(): {
509
+ declare function __VLS_template_15(): {
471
510
  attrs: Partial<{}>;
472
511
  slots: {
473
512
  'mobile-toolbar'?(_: {}): any;
@@ -484,7 +523,7 @@ declare function __VLS_template_14(): {
484
523
  rootEl: HTMLDivElement;
485
524
  };
486
525
 
487
- declare function __VLS_template_15(): {
526
+ declare function __VLS_template_16(): {
488
527
  attrs: Partial<{}>;
489
528
  slots: {
490
529
  titleLabel?(_: {}): any;
@@ -565,14 +604,10 @@ declare function __VLS_template_8(): {
565
604
  declare function __VLS_template_9(): {
566
605
  attrs: Partial<{}>;
567
606
  slots: {
568
- results?(_: {
569
- startItem: number;
570
- endItem: number;
571
- totalItems: number;
572
- }): any;
607
+ default?(_: {}): any;
573
608
  };
574
609
  refs: {};
575
- rootEl: any;
610
+ rootEl: HTMLDivElement;
576
611
  };
577
612
 
578
613
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -589,6 +624,8 @@ declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
589
624
 
590
625
  declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
591
626
 
627
+ declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
628
+
592
629
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
593
630
 
594
631
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -665,6 +702,12 @@ declare type __VLS_WithTemplateSlots_18<T, S> = T & {
665
702
  };
666
703
  };
667
704
 
705
+ declare type __VLS_WithTemplateSlots_19<T, S> = T & {
706
+ new (): {
707
+ $slots: S;
708
+ };
709
+ };
710
+
668
711
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
669
712
  new (): {
670
713
  $slots: S;
@@ -713,7 +756,7 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
713
756
  };
714
757
  };
715
758
 
716
- export declare const Accordion: __VLS_WithTemplateSlots_11<DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_12> & Readonly<{}>, {
759
+ export declare const Accordion: __VLS_WithTemplateSlots_12<DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
717
760
  title: string;
718
761
  id: string;
719
762
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
@@ -727,9 +770,9 @@ declare interface BreadCrumbItem {
727
770
  to?: string;
728
771
  }
729
772
 
730
- export declare const BreadCrumbs: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
773
+ export declare const BreadCrumbs: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
731
774
  navigate: (to: string) => any;
732
- }, string, PublicProps, Readonly<Props_10> & Readonly<{
775
+ }, string, PublicProps, Readonly<Props_11> & Readonly<{
733
776
  onNavigate?: ((to: string) => any) | undefined;
734
777
  }>, {
735
778
  items: BreadCrumbItem[];
@@ -745,27 +788,29 @@ declare type ButtonType = typeof BUTTON_TYPES[number];
745
788
 
746
789
  declare type ButtonVariant = typeof VARIANTS[number];
747
790
 
748
- export declare const Calendar: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
791
+ export declare const Calendar: DefineComponent<Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
749
792
  "update:modelValue": (value: Date | null) => any;
750
793
  "update:optionState": (value: string) => any;
751
- }, string, PublicProps, Readonly<Props_22> & Readonly<{
794
+ }, string, PublicProps, Readonly<Props_23> & Readonly<{
752
795
  "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
753
796
  "onUpdate:optionState"?: ((value: string) => any) | undefined;
754
797
  }>, {
798
+ size: ComponentSize;
799
+ error: string | boolean;
755
800
  title: string;
756
801
  modelValue: Date | null;
757
802
  id: string;
758
- rowGap: string | number;
759
- columnGap: string | number;
760
803
  styleInputContainer: Record<string, string>;
761
804
  styleTitle: Record<string, string>;
805
+ rowGap: string | number;
806
+ columnGap: string | number;
762
807
  placeholder: string;
763
808
  tooltipMaxWidth: string | number;
764
809
  hintText: string;
765
810
  wheelEdit: boolean;
766
811
  showHint: boolean;
767
- className: string;
768
812
  validationText: string;
813
+ className: string;
769
814
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
770
815
 
771
816
  export declare const Card: __VLS_WithTemplateSlots_8<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
@@ -779,8 +824,20 @@ export declare interface CellSlotProps<TRow extends TableRow = TableRow> {
779
824
 
780
825
  export declare const Checkbox: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
781
826
 
827
+ /**
828
+ * Размер компонента. Порт `shared/size` из React-кита 1.11.0.
829
+ *
830
+ * Раньше плотный вариант включался булевым `tableView` — по месту, где он впервые
831
+ * понадобился (компактные поля внутри таблицы). Флагом выражаются ровно два состояния,
832
+ * поэтому третий размер добавить было некуда, а название говорило о месте применения
833
+ * вместо самого свойства.
834
+ */
835
+ export declare type ComponentSize = 'small' | 'medium';
836
+
782
837
  export declare type DateSegment = 'day' | 'month' | 'year';
783
838
 
839
+ export declare const DEFAULT_SIZE: ComponentSize;
840
+
784
841
  export declare interface FilterDateState {
785
842
  id: string;
786
843
  type: string;
@@ -791,6 +848,8 @@ export declare interface FilterDateState {
791
848
  /** Форматирует дату в «дд.мм.гггг» (пустая строка для null). */
792
849
  export declare const formatDateValue: (date: Date | null) => string;
793
850
 
851
+ export declare const FormField: __VLS_WithTemplateSlots_9<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
852
+
794
853
  /** Сегмент по позиции каретки. */
795
854
  export declare const getSegmentAtCaret: (caret: number) => DateSegment;
796
855
 
@@ -820,7 +879,7 @@ color: string;
820
879
  * Расхождение с китом ловит `iconsList.vitest.test.ts` — если в ките появились новые
821
880
  * иконки, тест упадёт и покажет, что дописать.
822
881
  */
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"];
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"];
824
883
 
825
884
  /** Строгий тип имени иконки — для пропсов компонентов. */
826
885
  declare type IconName = typeof ICON_NAMES[number];
@@ -853,6 +912,7 @@ change: (event: Event) => any;
853
912
  onChange?: ((event: Event) => any) | undefined;
854
913
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
855
914
  }>, {
915
+ size: ComponentSize;
856
916
  disabled: boolean;
857
917
  error: boolean | string;
858
918
  title: string;
@@ -874,9 +934,11 @@ textareaRef: HTMLTextAreaElement;
874
934
  export declare const InputFile: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
875
935
  "update:modelValue": (files: File[]) => any;
876
936
  fileReject: (reason: string, file: File) => any;
937
+ fileRemove: (file: File, index: number) => any;
877
938
  }, string, PublicProps, Readonly<Props_7> & Readonly<{
878
939
  "onUpdate:modelValue"?: ((files: File[]) => any) | undefined;
879
940
  onFileReject?: ((reason: string, file: File) => any) | undefined;
941
+ onFileRemove?: ((file: File, index: number) => any) | undefined;
880
942
  }>, {
881
943
  disabled: boolean;
882
944
  error: boolean | string;
@@ -938,6 +1000,7 @@ change: (event: Event) => any;
938
1000
  onChange?: ((event: Event) => any) | undefined;
939
1001
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
940
1002
  }>, {
1003
+ size: ComponentSize;
941
1004
  disabled: boolean;
942
1005
  error: boolean | string;
943
1006
  title: string;
@@ -969,12 +1032,12 @@ modelValue: string;
969
1032
  id: string;
970
1033
  name: string;
971
1034
  required: boolean;
1035
+ styleInputContainer: Record<string, string>;
1036
+ styleTitle: Record<string, string>;
972
1037
  lineUp: boolean;
973
1038
  rowGap: string | number;
974
1039
  columnGap: string | number;
975
1040
  errorAbsolute: boolean;
976
- styleInputContainer: Record<string, string>;
977
- styleTitle: Record<string, string>;
978
1041
  placeholder: string;
979
1042
  tooltipMaxWidth: string | number;
980
1043
  hintText: string;
@@ -989,17 +1052,20 @@ hoursColumnRef: HTMLDivElement;
989
1052
  minutesColumnRef: HTMLDivElement;
990
1053
  }, any>;
991
1054
 
1055
+ /** Плотный вариант — им включаются уменьшенные отступы и шрифт. */
1056
+ export declare function isCompact(size?: ComponentSize | '', tableView?: boolean): boolean;
1057
+
992
1058
  /** Маска дд.мм.гггг с валидацией дня (01–31) и месяца (01–12). */
993
1059
  export declare const maskDateValue: (raw: string) => string;
994
1060
 
995
- export declare const MaskedDateInput: DefineComponent<Props_23, {
1061
+ export declare const MaskedDateInput: DefineComponent<Props_24, {
996
1062
  inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
997
1063
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
998
1064
  "update-value": (value: string) => any;
999
1065
  "open-calendar": () => any;
1000
1066
  "focus-change": (focused: boolean) => any;
1001
1067
  "input-click": () => any;
1002
- }, string, PublicProps, Readonly<Props_23> & Readonly<{
1068
+ }, string, PublicProps, Readonly<Props_24> & Readonly<{
1003
1069
  "onUpdate-value"?: ((value: string) => any) | undefined;
1004
1070
  "onOpen-calendar"?: (() => any) | undefined;
1005
1071
  "onFocus-change"?: ((focused: boolean) => any) | undefined;
@@ -1016,7 +1082,7 @@ inputClass: string;
1016
1082
  inputRef: HTMLInputElement;
1017
1083
  }, HTMLInputElement>;
1018
1084
 
1019
- export declare const Menu: __VLS_WithTemplateSlots_15<DefineComponent< {
1085
+ export declare const Menu: __VLS_WithTemplateSlots_16<DefineComponent< {
1020
1086
  menuData?: MenuDataItem[];
1021
1087
  activeSection?: string | number;
1022
1088
  showMenu?: boolean;
@@ -1076,17 +1142,13 @@ export declare interface MenuDataItem {
1076
1142
  [key: string]: unknown;
1077
1143
  }
1078
1144
 
1079
- 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"]>;
1080
1146
 
1081
1147
  declare type MessageSize = 'medium' | 'small';
1082
1148
 
1083
1149
  declare type MessageVariant = 'info' | 'fail' | 'success' | 'warning';
1084
1150
 
1085
- /**
1086
- * Карточка-строка мобильного вида таблицы: заголовок (primary) + компактные значения
1087
- * рядом с ним + видимая зона «подпись: значение» + скрытая зона, раскрываемая по тапу.
1088
- * Порт из React-кита (`TableMobileCard.tsx`), поведение и классы совпадают.
1089
- */
1151
+ /** Поле мобильной карточки таблицы: подпись, значение и оформление из пропсов колонки. */
1090
1152
  declare interface MobileField {
1091
1153
  label?: unknown;
1092
1154
  /**
@@ -1098,27 +1160,36 @@ declare interface MobileField {
1098
1160
  hideLabel?: boolean;
1099
1161
  valueColor?: string;
1100
1162
  labelColor?: string;
1163
+ /** Длинное значение сворачивается и раскрывается по тапу (`column.mobileCollapsible`). */
1164
+ collapsible?: boolean;
1101
1165
  }
1102
1166
 
1103
- export declare const Modal: __VLS_WithTemplateSlots_16<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1167
+ export declare const Modal: __VLS_WithTemplateSlots_17<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1104
1168
 
1105
1169
  /** Названия месяцев для списка в шапке календаря (совпадают с React-китом). */
1106
1170
  export declare const MONTH_NAMES: string[];
1107
1171
 
1108
- export declare const Multiselect: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1172
+ export declare const Multiselect: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1109
1173
  "update:modelValue": (values: OptionItem[]) => any;
1110
- }, string, PublicProps, Readonly<Props_17> & Readonly<{
1174
+ "update:inputValue": (value: string) => any;
1175
+ inputChange: (value: string) => any;
1176
+ }, string, PublicProps, Readonly<Props_18> & Readonly<{
1111
1177
  "onUpdate:modelValue"?: ((values: OptionItem[]) => any) | undefined;
1178
+ "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1179
+ onInputChange?: ((value: string) => any) | undefined;
1112
1180
  }>, {
1181
+ size: ComponentSize;
1182
+ disabled: boolean;
1183
+ error: string | boolean;
1113
1184
  title: string;
1114
1185
  modelValue: OptionItem[];
1115
1186
  required: boolean;
1116
1187
  placeholder: string;
1117
1188
  options: OptionItem[];
1118
1189
  tableView: boolean;
1119
- className: string;
1120
- validationText: string;
1121
1190
  validationOn: boolean;
1191
+ validationText: string;
1192
+ className: string;
1122
1193
  absoluteValidationText: boolean;
1123
1194
  isSearchable: boolean;
1124
1195
  loading: boolean;
@@ -1129,7 +1200,7 @@ searchInputRef: HTMLInputElement;
1129
1200
  dropdownRef: HTMLDivElement;
1130
1201
  }, HTMLDivElement>;
1131
1202
 
1132
- declare const Notification_2: __VLS_WithTemplateSlots_12<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1203
+ declare const Notification_2: __VLS_WithTemplateSlots_13<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1133
1204
  export { Notification_2 as Notification }
1134
1205
 
1135
1206
  declare interface NotificationOptions_2 {
@@ -1143,7 +1214,7 @@ declare interface NotificationOptions_2 {
1143
1214
  id?: string | number;
1144
1215
  }
1145
1216
 
1146
- export declare const NotificationProvider: __VLS_WithTemplateSlots_13<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1217
+ export declare const NotificationProvider: __VLS_WithTemplateSlots_14<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1147
1218
 
1148
1219
  declare interface NotificationService {
1149
1220
  showNotification: (options: NotificationOptions_2 | string, message?: string, extra?: Partial<NotificationOptions_2>) => string | number;
@@ -1159,7 +1230,7 @@ export declare interface OptionItem {
1159
1230
  [key: string]: unknown;
1160
1231
  }
1161
1232
 
1162
- export declare const Pagination: __VLS_WithTemplateSlots_10<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1233
+ export declare const Pagination: __VLS_WithTemplateSlots_11<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1163
1234
 
1164
1235
  declare interface PaginationProps {
1165
1236
  totalItems: number;
@@ -1203,21 +1274,33 @@ declare interface Props extends InputBaseProps {
1203
1274
  }
1204
1275
 
1205
1276
  declare interface Props_10 {
1206
- items?: BreadCrumbItem[];
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;
1207
1286
  }
1208
1287
 
1209
1288
  declare interface Props_11 {
1289
+ items?: BreadCrumbItem[];
1290
+ }
1291
+
1292
+ declare interface Props_12 {
1210
1293
  tabsData?: TabItem[];
1211
1294
  activeTab?: string | number;
1212
1295
  variant?: 'line' | 'segment';
1213
1296
  }
1214
1297
 
1215
- declare interface Props_12 {
1298
+ declare interface Props_13 {
1216
1299
  title?: string;
1217
1300
  id?: string;
1218
1301
  }
1219
1302
 
1220
- declare interface Props_13 {
1303
+ declare interface Props_14 {
1221
1304
  variant?: NotificationVariant;
1222
1305
  show: boolean;
1223
1306
  top?: string;
@@ -1229,17 +1312,17 @@ declare interface Props_13 {
1229
1312
  fadeOutDuration?: number;
1230
1313
  }
1231
1314
 
1232
- declare interface Props_14 {
1315
+ declare interface Props_15 {
1233
1316
  className?: string;
1234
1317
  }
1235
1318
 
1236
- declare interface Props_15 {
1319
+ declare interface Props_16 {
1237
1320
  placeholder?: string;
1238
1321
  modelValue?: string;
1239
1322
  className?: string;
1240
1323
  }
1241
1324
 
1242
- declare interface Props_16 {
1325
+ declare interface Props_17 {
1243
1326
  title?: string;
1244
1327
  required?: boolean;
1245
1328
  options?: OptionItem[];
@@ -1247,8 +1330,15 @@ declare interface Props_16 {
1247
1330
  modelValue?: OptionItem | null;
1248
1331
  isClearable?: boolean;
1249
1332
  className?: string;
1333
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1334
+ size?: ComponentSize;
1335
+ /** @deprecated используйте `size="small"` */
1250
1336
  tableView?: boolean;
1337
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1338
+ error?: string | boolean;
1339
+ /** @deprecated используйте `error` */
1251
1340
  validationText?: string;
1341
+ /** @deprecated используйте `error` */
1252
1342
  validationOn?: boolean;
1253
1343
  absoluteValidationText?: boolean;
1254
1344
  disabled?: boolean;
@@ -1258,18 +1348,32 @@ declare interface Props_16 {
1258
1348
  columnGap?: string | number;
1259
1349
  }
1260
1350
 
1261
- declare interface Props_17 {
1351
+ declare interface Props_18 {
1262
1352
  title?: string;
1263
1353
  required?: boolean;
1264
1354
  options?: OptionItem[];
1265
1355
  placeholder?: string;
1266
1356
  modelValue?: OptionItem[];
1267
1357
  className?: string;
1358
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1359
+ size?: ComponentSize;
1360
+ /** @deprecated используйте `size="small"` */
1268
1361
  tableView?: boolean;
1362
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1363
+ error?: string | boolean;
1364
+ /** @deprecated используйте `error` */
1269
1365
  validationText?: string;
1366
+ /** @deprecated используйте `error` */
1270
1367
  validationOn?: boolean;
1271
1368
  absoluteValidationText?: boolean;
1272
1369
  isSearchable?: boolean;
1370
+ /** Поле не принимает ввод: список не раскрывается, теги не снимаются. */
1371
+ disabled?: boolean;
1372
+ /**
1373
+ * Управляемая строка поиска (`v-model:input-value`). Если не передана, компонент
1374
+ * держит её сам. Задавать вместе с серверным поиском по событию `inputChange`.
1375
+ */
1376
+ inputValue?: string;
1273
1377
  loading?: boolean;
1274
1378
  /**
1275
1379
  * Показывать строку «Выбрать все» над списком. Нужна, когда вариантов десятки и человеку
@@ -1278,16 +1382,28 @@ declare interface Props_17 {
1278
1382
  withSelectAll?: boolean;
1279
1383
  }
1280
1384
 
1281
- declare interface Props_18 {
1385
+ declare interface Props_19 {
1282
1386
  title?: string;
1283
1387
  required?: boolean;
1284
1388
  options?: OptionItem[];
1285
1389
  placeholder?: string;
1286
1390
  modelValue?: OptionItem | null;
1391
+ /**
1392
+ * Управляемая строка поиска (`v-model:input-value`). Если не передана, компонент
1393
+ * держит её сам. Задавать вместе с серверным поиском по событию `inputChange`.
1394
+ */
1395
+ inputValue?: string;
1287
1396
  isClearable?: boolean;
1288
1397
  className?: string;
1398
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1399
+ size?: ComponentSize;
1400
+ /** @deprecated используйте `size="small"` */
1289
1401
  tableView?: boolean;
1402
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1403
+ error?: string | boolean;
1404
+ /** @deprecated используйте `error` */
1290
1405
  validationText?: string;
1406
+ /** @deprecated используйте `error` */
1291
1407
  validationOn?: boolean;
1292
1408
  absoluteValidationText?: boolean;
1293
1409
  disabled?: boolean;
@@ -1298,15 +1414,29 @@ declare interface Props_18 {
1298
1414
  columnGap?: string | number;
1299
1415
  }
1300
1416
 
1301
- declare interface Props_19 {
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 {
1302
1425
  title?: string;
1303
1426
  required?: boolean;
1304
1427
  placeholder?: string;
1305
1428
  modelValue?: string | null;
1306
1429
  isClearable?: boolean;
1307
1430
  className?: string;
1431
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1432
+ size?: ComponentSize;
1433
+ /** @deprecated используйте `size="small"` */
1308
1434
  tableView?: boolean;
1435
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1436
+ error?: string | boolean;
1437
+ /** @deprecated используйте `error` */
1309
1438
  validationText?: string;
1439
+ /** @deprecated используйте `error` */
1310
1440
  validationOn?: boolean;
1311
1441
  absoluteValidationText?: boolean;
1312
1442
  data?: TreeDataItem[];
@@ -1317,14 +1447,7 @@ declare interface Props_19 {
1317
1447
  columnGap?: string | number;
1318
1448
  }
1319
1449
 
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 {
1450
+ declare interface Props_21 {
1328
1451
  active?: boolean;
1329
1452
  maxWidth?: string;
1330
1453
  maxHeight?: string;
@@ -1335,9 +1458,24 @@ declare interface Props_20 {
1335
1458
  ariaLabelledby?: string;
1336
1459
  /** ARIA: текстовая метка модалки (если нет видимого заголовка). */
1337
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;
1338
1476
  }
1339
1477
 
1340
- declare interface Props_21 {
1478
+ declare interface Props_22 {
1341
1479
  /** Ширина скелетона — число (px) или строка CSS ('100%', '200px') */
1342
1480
  width?: string | number;
1343
1481
  /** Высота одного блока — число (px) или строка CSS */
@@ -1351,7 +1489,7 @@ declare interface Props_21 {
1351
1489
  className?: string;
1352
1490
  }
1353
1491
 
1354
- declare interface Props_22 {
1492
+ declare interface Props_23 {
1355
1493
  modelValue?: Date | null;
1356
1494
  title?: string;
1357
1495
  placeholder?: string;
@@ -1359,10 +1497,16 @@ declare interface Props_22 {
1359
1497
  open?: boolean;
1360
1498
  greyIcon?: boolean;
1361
1499
  isClearable?: boolean;
1500
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1501
+ size?: ComponentSize;
1502
+ /** @deprecated используйте `size="small"` */
1362
1503
  tableView?: boolean;
1363
1504
  isFilter?: boolean;
1364
1505
  id?: string;
1365
1506
  required?: boolean;
1507
+ /** Ошибка одним значением: строка — текст под полем, `true` — только рамка. */
1508
+ error?: string | boolean;
1509
+ /** @deprecated используйте `error` */
1366
1510
  validationText?: string;
1367
1511
  validationOn?: boolean;
1368
1512
  validationOnWithoutText?: boolean;
@@ -1389,7 +1533,7 @@ declare interface Props_22 {
1389
1533
  tooltipMaxWidth?: string | number;
1390
1534
  }
1391
1535
 
1392
- declare interface Props_23 {
1536
+ declare interface Props_24 {
1393
1537
  /** Отображаемое значение в формате дд.мм.гггг. */
1394
1538
  value?: string;
1395
1539
  placeholder?: string;
@@ -1413,6 +1557,9 @@ declare interface Props_3 extends InputBaseProps {
1413
1557
  placeholder?: string;
1414
1558
  id?: string;
1415
1559
  name?: string;
1560
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1561
+ size?: ComponentSize;
1562
+ /** @deprecated используйте `size="small"` */
1416
1563
  tableView?: boolean;
1417
1564
  }
1418
1565
 
@@ -1427,6 +1574,9 @@ declare interface Props_5 extends InputBaseProps {
1427
1574
  modelValue?: string;
1428
1575
  placeholder?: string;
1429
1576
  id?: string;
1577
+ /** Размер поля. Заменяет `tableView`: тот остаётся и означает `size="small"`. */
1578
+ size?: ComponentSize;
1579
+ /** @deprecated используйте `size="small"` */
1430
1580
  tableView?: boolean;
1431
1581
  minHeight?: string | number;
1432
1582
  maxHeight?: string | number;
@@ -1494,16 +1644,37 @@ declare interface Props_8 extends InputBaseProps {
1494
1644
  styleInput?: Record<string, string>;
1495
1645
  }
1496
1646
 
1647
+ /**
1648
+ * Обёртка поля формы: подпись, расстановка и текст ошибки. Порт `FormField`
1649
+ * из React-кита 1.11.0.
1650
+ *
1651
+ * Раньше это умел каждый компонент сам — `title`, `required`, `lineUp`, `rowGap`,
1652
+ * `columnGap` и пропы проверки повторялись в десяти полях. Поле знало, как оно
1653
+ * расположено в форме, хотя это забота формы.
1654
+ *
1655
+ * Компонент необязательный: прежние пропы полей работают как работали. Он нужен там,
1656
+ * где раскладку удобнее задать снаружи — например, когда поле приходит из другой
1657
+ * библиотеки или это вовсе не поле.
1658
+ */
1497
1659
  declare interface Props_9 {
1498
- totalItems: number;
1499
- currentPage: number;
1500
- pageSize: number;
1501
- dataLength?: number;
1502
- pageWindow?: number;
1503
- pageSizeOptions?: number[];
1504
- hideResults?: boolean;
1505
- /** Внешний отступ сверху, px. Нужен, когда пагинация идёт вплотную к таблице. */
1506
- marginTop?: number;
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;
1507
1678
  }
1508
1679
 
1509
1680
  export declare const Radio: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
@@ -1512,6 +1683,16 @@ export declare const RadioGroup: __VLS_WithTemplateSlots_4<typeof __VLS_componen
1512
1683
 
1513
1684
  declare type RadioGroupValue = string | number | undefined;
1514
1685
 
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
+
1515
1696
  export declare const RichTextEditor: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1516
1697
  "update:modelValue": (value: string) => any;
1517
1698
  }, string, PublicProps, Readonly<Props> & Readonly<{
@@ -1529,9 +1710,9 @@ placeholder: string;
1529
1710
  minHeight: string | number;
1530
1711
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1531
1712
 
1532
- export declare const Search: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1713
+ export declare const Search: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1533
1714
  "update:modelValue": (value: string) => any;
1534
- }, string, PublicProps, Readonly<Props_15> & Readonly<{
1715
+ }, string, PublicProps, Readonly<Props_16> & Readonly<{
1535
1716
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1536
1717
  }>, {
1537
1718
  modelValue: string;
@@ -1539,14 +1720,18 @@ placeholder: string;
1539
1720
  className: string;
1540
1721
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1541
1722
 
1542
- export declare const SearchSelect: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1723
+ export declare const SearchSelect: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1543
1724
  "update:modelValue": (value: OptionItem | null) => any;
1725
+ "update:inputValue": (value: string) => any;
1544
1726
  inputChange: (value: string) => any;
1545
- }, string, PublicProps, Readonly<Props_18> & Readonly<{
1727
+ }, string, PublicProps, Readonly<Props_19> & Readonly<{
1546
1728
  "onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
1729
+ "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1547
1730
  onInputChange?: ((value: string) => any) | undefined;
1548
1731
  }>, {
1732
+ size: ComponentSize;
1549
1733
  disabled: boolean;
1734
+ error: string | boolean;
1550
1735
  title: string;
1551
1736
  modelValue: OptionItem | null;
1552
1737
  required: boolean;
@@ -1557,9 +1742,9 @@ placeholder: string;
1557
1742
  options: OptionItem[];
1558
1743
  tableView: boolean;
1559
1744
  isClearable: boolean;
1560
- className: string;
1561
- validationText: string;
1562
1745
  validationOn: boolean;
1746
+ validationText: string;
1747
+ className: string;
1563
1748
  absoluteValidationText: boolean;
1564
1749
  loading: boolean;
1565
1750
  emptyOptionsText: string;
@@ -1568,12 +1753,14 @@ triggerRef: HTMLDivElement;
1568
1753
  dropdownRef: HTMLDivElement;
1569
1754
  }, HTMLDivElement>;
1570
1755
 
1571
- export declare const Select: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1756
+ export declare const Select: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1572
1757
  "update:modelValue": (value: OptionItem | null) => any;
1573
- }, string, PublicProps, Readonly<Props_16> & Readonly<{
1758
+ }, string, PublicProps, Readonly<Props_17> & Readonly<{
1574
1759
  "onUpdate:modelValue"?: ((value: OptionItem | null) => any) | undefined;
1575
1760
  }>, {
1761
+ size: ComponentSize;
1576
1762
  disabled: boolean;
1763
+ error: string | boolean;
1577
1764
  title: string;
1578
1765
  modelValue: OptionItem | null;
1579
1766
  required: boolean;
@@ -1584,9 +1771,9 @@ placeholder: string;
1584
1771
  options: OptionItem[];
1585
1772
  tableView: boolean;
1586
1773
  isClearable: boolean;
1587
- className: string;
1588
- validationText: string;
1589
1774
  validationOn: boolean;
1775
+ validationText: string;
1776
+ className: string;
1590
1777
  absoluteValidationText: boolean;
1591
1778
  noScroll: boolean;
1592
1779
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -1596,13 +1783,13 @@ dropdownRef: HTMLDivElement;
1596
1783
 
1597
1784
  declare const SIZES: readonly ["medium", "small"];
1598
1785
 
1599
- export declare const Skeleton: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_21> & Readonly<{}>, {
1786
+ export declare const Skeleton: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_22> & Readonly<{}>, {
1600
1787
  width: string | number;
1601
1788
  height: string | number;
1602
1789
  borderRadius: string | number;
1790
+ gap: string | number;
1603
1791
  className: string;
1604
1792
  count: number;
1605
- gap: string | number;
1606
1793
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1607
1794
 
1608
1795
  export declare function sortRows<TRow extends TableRow>(rows: TRow[], state: SortState, columns: TableColumn<TRow>[], parentDataField?: string): TRow[];
@@ -1618,7 +1805,7 @@ declare type StatusSize = 'medium' | 'large';
1618
1805
 
1619
1806
  declare type StatusVariant = 'warning' | 'info' | 'neutral' | 'success' | 'danger' | 'intermediate' | 'prepared' | '';
1620
1807
 
1621
- export declare const StickyActionBar: __VLS_WithTemplateSlots_14<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1808
+ export declare const StickyActionBar: __VLS_WithTemplateSlots_15<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1622
1809
 
1623
1810
  export declare const Switch: __VLS_WithTemplateSlots_5<DefineComponent< {
1624
1811
  /** Управляемое состояние через v-model. */
@@ -1730,6 +1917,13 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
1730
1917
  resizeOff?: boolean;
1731
1918
  /** Включить сортировку по клику на заголовок (3-state toggle). */
1732
1919
  sortable?: boolean;
1920
+ /**
1921
+ * Свой порядок сортировки колонки: сравнивает строки целиком, а не значения ячеек.
1922
+ * Нужен, когда порядок не выводится из отображаемого текста — статусы по важности,
1923
+ * ФИО по фамилии, версии по номерам. Важнее `filterValuePath`. При сортировке по
1924
+ * убыванию результат инвертируется — компаратор всегда пишется «по возрастанию».
1925
+ */
1926
+ sortComparator?: (a: TRow, b: TRow) => number;
1733
1927
  /** Заголовок карточки. Если не задано ни у одной колонки — берётся первая. */
1734
1928
  mobilePrimary?: boolean;
1735
1929
  /** Подзаголовок под заголовком карточки. */
@@ -1742,6 +1936,11 @@ export declare interface TableColumn<TRow extends TableRow = TableRow> {
1742
1936
  mobileHidden?: boolean;
1743
1937
  /** Не показывать подпись поля в карточке. */
1744
1938
  mobileHideLabel?: boolean;
1939
+ /**
1940
+ * Длинное значение в карточке сворачивается: строка превращается в кнопку с
1941
+ * шевроном, значение обрезается по высоте и раскрывается по тапу.
1942
+ */
1943
+ mobileCollapsible?: boolean;
1745
1944
  /** Подпись поля в карточке, если она отличается от заголовка колонки. */
1746
1945
  mobileLabel?: string;
1747
1946
  /** Цвет значения в карточке. */
@@ -1796,9 +1995,9 @@ export declare interface TableExposed<TRow extends TableRow = TableRow> {
1796
1995
 
1797
1996
  export declare type TableFilterType = 'string' | 'number' | 'date' | 'boolean';
1798
1997
 
1799
- export declare const TableMobileCard: __VLS_WithTemplateSlots_18<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
1998
+ export declare const TableMobileCard: __VLS_WithTemplateSlots_19<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
1800
1999
 
1801
- export declare const TableMobileView: __VLS_WithTemplateSlots_17<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
2000
+ export declare const TableMobileView: __VLS_WithTemplateSlots_18<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
1802
2001
 
1803
2002
  export declare interface TableProps<TRow extends TableRow = TableRow> {
1804
2003
  /** Данные таблицы. */
@@ -1834,6 +2033,17 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
1834
2033
  column: string;
1835
2034
  asc?: boolean;
1836
2035
  };
2036
+ /**
2037
+ * Управляемая сортировка: состояние приходит снаружи (`v-model:sort`). Без неё
2038
+ * таблица держит своё и `defaultSort` задаёт начальное.
2039
+ */
2040
+ sort?: SortState;
2041
+ /**
2042
+ * Данные сортирует родитель — таблица только рисует стрелки и сообщает о клике.
2043
+ * Нужно для серверной сортировки: страница приходит уже упорядоченной, и повторная
2044
+ * сортировка на клиенте переставила бы строки внутри страницы неверно.
2045
+ */
2046
+ externalSort?: boolean;
1837
2047
  /** Включить карточный вид на узком контейнере. */
1838
2048
  mobileView?: boolean;
1839
2049
  /** Ширина контейнера (px), ниже которой включается карточный вид. */
@@ -1918,9 +2128,9 @@ export declare interface TableProps<TRow extends TableRow = TableRow> {
1918
2128
 
1919
2129
  export declare type TableRow = Record<string, unknown>;
1920
2130
 
1921
- export declare const Tabs: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2131
+ export declare const Tabs: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1922
2132
  tabClick: (tab: TabItem) => any;
1923
- }, string, PublicProps, Readonly<Props_11> & Readonly<{
2133
+ }, string, PublicProps, Readonly<Props_12> & Readonly<{
1924
2134
  onTabClick?: ((tab: TabItem) => any) | undefined;
1925
2135
  }>, {
1926
2136
  variant: "line" | "segment";
@@ -1960,16 +2170,18 @@ export declare interface TreeDataItem {
1960
2170
  [key: string]: unknown;
1961
2171
  }
1962
2172
 
1963
- export declare const TreeView: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2173
+ export declare const TreeView: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1964
2174
  "update:modelValue": (value: string | null) => any;
1965
2175
  nodeClick: (node: TreeDataItem) => any;
1966
2176
  nodeClear: () => any;
1967
- }, string, PublicProps, Readonly<Props_19> & Readonly<{
2177
+ }, string, PublicProps, Readonly<Props_20> & Readonly<{
1968
2178
  "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
1969
2179
  onNodeClick?: ((node: TreeDataItem) => any) | undefined;
1970
2180
  onNodeClear?: (() => any) | undefined;
1971
2181
  }>, {
2182
+ size: ComponentSize;
1972
2183
  disabled: boolean;
2184
+ error: string | boolean;
1973
2185
  data: TreeDataItem[];
1974
2186
  title: string;
1975
2187
  modelValue: string | null;
@@ -1980,9 +2192,9 @@ columnGap: string | number;
1980
2192
  placeholder: string;
1981
2193
  tableView: boolean;
1982
2194
  isClearable: boolean;
1983
- className: string;
1984
- validationText: string;
1985
2195
  validationOn: boolean;
2196
+ validationText: string;
2197
+ className: string;
1986
2198
  absoluteValidationText: boolean;
1987
2199
  isSearchable: boolean;
1988
2200
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -1991,6 +2203,8 @@ searchInputRef: HTMLInputElement;
1991
2203
  dropdownRef: HTMLDivElement;
1992
2204
  }, HTMLDivElement>;
1993
2205
 
2206
+ export declare function useAutoId(providedId?: string | number | null, prefix?: string): string;
2207
+
1994
2208
  export declare function useNotification(): NotificationService;
1995
2209
 
1996
2210
  export declare function useTableSort(): {
@@ -2005,6 +2219,39 @@ export declare function useTableSort(): {
2005
2219
  resetSort: () => void;
2006
2220
  };
2007
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
+
2008
2255
  declare const VARIANTS: readonly ["primary", "danger", "outline", "danger-outline", "simple", "icon", "text", "text-danger", "text-table", "text-danger-table"];
2009
2256
 
2010
2257
  export { }