@1337exp/taoui 5.50.0 → 5.52.0

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
@@ -1,3 +1,5 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
1
3
  import { ComponentOptionsMixin } from 'vue';
2
4
  import { ComponentProvideOptions } from 'vue';
3
5
  import { ComputedRef } from 'vue';
@@ -7,6 +9,9 @@ import { Plugin as Plugin_2 } from 'vue';
7
9
  import { PropType } from 'vue';
8
10
  import { PublicProps } from 'vue';
9
11
  import { Ref } from 'vue';
12
+ import { ShallowUnwrapRef } from 'vue';
13
+ import { VNode } from 'vue';
14
+ import { VNodeProps } from 'vue';
10
15
  import { WritableComputedRef } from 'vue';
11
16
 
12
17
  declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -1071,6 +1076,16 @@ dots?: "vertical" | "horizontal";
1071
1076
  * уходит из порядка Tab и по-прежнему открывается нажатием.
1072
1077
  */
1073
1078
  tabbable?: boolean;
1079
+ /**
1080
+ * The button fills the width (and the height) of its place and draws nothing of its own: no padding, no
1081
+ * background, the corners of its parent. For a trigger that is a whole chip of your own in `#button` (the
1082
+ * project of an app under the main action of TaoNav, an account in a header): the chip is the button, the hover
1083
+ * and the focus ring go round it.
1084
+ * Кнопка занимает ширину (и высоту) своего места и не рисует ничего своего: без отступа, без фона, с углами
1085
+ * родителя. Для кнопки, которая целиком ваша «фишка» в `#button` (проект приложения под главным действием TaoNav,
1086
+ * аккаунт в шапке): фишка и есть кнопка, наведение и рамка фокуса обходят её.
1087
+ */
1088
+ block?: boolean;
1074
1089
  }>, {
1075
1090
  items: () => never[];
1076
1091
  placement: string;
@@ -1078,6 +1093,7 @@ closeOnScroll: boolean;
1078
1093
  size: undefined;
1079
1094
  dots: string;
1080
1095
  tabbable: boolean;
1096
+ block: boolean;
1081
1097
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1082
1098
  select: (id: string) => void;
1083
1099
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_36<__VLS_TypePropsToRuntimeProps_40<{
@@ -1109,6 +1125,16 @@ dots?: "vertical" | "horizontal";
1109
1125
  * уходит из порядка Tab и по-прежнему открывается нажатием.
1110
1126
  */
1111
1127
  tabbable?: boolean;
1128
+ /**
1129
+ * The button fills the width (and the height) of its place and draws nothing of its own: no padding, no
1130
+ * background, the corners of its parent. For a trigger that is a whole chip of your own in `#button` (the
1131
+ * project of an app under the main action of TaoNav, an account in a header): the chip is the button, the hover
1132
+ * and the focus ring go round it.
1133
+ * Кнопка занимает ширину (и высоту) своего места и не рисует ничего своего: без отступа, без фона, с углами
1134
+ * родителя. Для кнопки, которая целиком ваша «фишка» в `#button` (проект приложения под главным действием TaoNav,
1135
+ * аккаунт в шапке): фишка и есть кнопка, наведение и рамка фокуса обходят её.
1136
+ */
1137
+ block?: boolean;
1112
1138
  }>, {
1113
1139
  items: () => never[];
1114
1140
  placement: string;
@@ -1116,12 +1142,14 @@ closeOnScroll: boolean;
1116
1142
  size: undefined;
1117
1143
  dots: string;
1118
1144
  tabbable: boolean;
1145
+ block: boolean;
1119
1146
  }>>> & Readonly<{
1120
1147
  onSelect?: ((id: string) => any) | undefined;
1121
1148
  }>, {
1122
1149
  size: TaoSize;
1123
1150
  items: TaoMenuItem[];
1124
1151
  dots: "vertical" | "horizontal";
1152
+ block: boolean;
1125
1153
  placement: TaoPlacement;
1126
1154
  closeOnScroll: boolean;
1127
1155
  tabbable: boolean;
@@ -1149,8 +1177,12 @@ placement?: TaoPlacement;
1149
1177
  /** Accessible name of the menu. / Имя меню для скринридера. */
1150
1178
  label?: string;
1151
1179
  /**
1152
- * Close when the page (or a scroll container) scrolls; scrolling inside the menu does not count. A root menu only.
1153
- * Закрывать при прокрутке страницы (или контейнера); прокрутка внутри меню не считается. Только корневое меню.
1180
+ * Close when the page, or a scroll container that holds the anchor, scrolls: the place the menu is for moves away.
1181
+ * A scroll elsewhere (an autoplaying carousel, a live log) and inside the menu does not count. For a point the holder
1182
+ * is the element under it when the menu opens. A root menu only.
1183
+ * Закрывать при прокрутке страницы или контейнера, в котором лежит якорь: место, для которого меню, уезжает.
1184
+ * Прокрутка в другом месте (карусель с автопрокруткой, живой лог) и внутри меню не считается. Для точки держатель —
1185
+ * элемент под ней в момент открытия. Только корневое меню.
1154
1186
  */
1155
1187
  closeOnScroll?: boolean;
1156
1188
  }>, {
@@ -1184,8 +1216,12 @@ placement?: TaoPlacement;
1184
1216
  /** Accessible name of the menu. / Имя меню для скринридера. */
1185
1217
  label?: string;
1186
1218
  /**
1187
- * Close when the page (or a scroll container) scrolls; scrolling inside the menu does not count. A root menu only.
1188
- * Закрывать при прокрутке страницы (или контейнера); прокрутка внутри меню не считается. Только корневое меню.
1219
+ * Close when the page, or a scroll container that holds the anchor, scrolls: the place the menu is for moves away.
1220
+ * A scroll elsewhere (an autoplaying carousel, a live log) and inside the menu does not count. For a point the holder
1221
+ * is the element under it when the menu opens. A root menu only.
1222
+ * Закрывать при прокрутке страницы или контейнера, в котором лежит якорь: место, для которого меню, уезжает.
1223
+ * Прокрутка в другом месте (карусель с автопрокруткой, живой лог) и внутри меню не считается. Для точки держатель —
1224
+ * элемент под ней в момент открытия. Только корневое меню.
1189
1225
  */
1190
1226
  closeOnScroll?: boolean;
1191
1227
  }>, {
@@ -1515,6 +1551,15 @@ moreLabel?: string;
1515
1551
  */
1516
1552
  floating?: boolean;
1517
1553
  /**
1554
+ * The shell of an app that fills its box (give the parent a height: `html, body, #app { height: 100% }`): TaoNav
1555
+ * takes all of it, the page scrolls inside its own panes instead of the document, and the footer stands at the
1556
+ * bottom of the side panel. Nothing scrolls as a document, so no page scrollbar comes and goes and nothing shifts.
1557
+ * Оболочка приложения на всю высоту своего блока (дайте родителю высоту: `html, body, #app { height: 100% }`):
1558
+ * TaoNav занимает её целиком, страница прокручивается внутри своих панелей, а не документом, подвал стоит внизу
1559
+ * боковой панели. Документ не прокручивается, поэтому полоса страницы не появляется и не исчезает, ничего не сдвигается.
1560
+ */
1561
+ fill?: boolean;
1562
+ /**
1518
1563
  * How the current section is marked: `pill` — a tint behind the item; `line` — the accent colour and a short line
1519
1564
  * (under the item in the bar look, along its start edge in the rail and the side panel).
1520
1565
  * Как отмечен текущий раздел: `pill` — подложка под пунктом; `line` — цвет акцента и короткая черта (под пунктом
@@ -1543,6 +1588,7 @@ maxBarItems: number;
1543
1588
  ariaLabel: undefined;
1544
1589
  moreLabel: undefined;
1545
1590
  floating: boolean;
1591
+ fill: boolean;
1546
1592
  indicator: string;
1547
1593
  surface: string;
1548
1594
  badgeTone: string;
@@ -1568,6 +1614,15 @@ moreLabel?: string;
1568
1614
  */
1569
1615
  floating?: boolean;
1570
1616
  /**
1617
+ * The shell of an app that fills its box (give the parent a height: `html, body, #app { height: 100% }`): TaoNav
1618
+ * takes all of it, the page scrolls inside its own panes instead of the document, and the footer stands at the
1619
+ * bottom of the side panel. Nothing scrolls as a document, so no page scrollbar comes and goes and nothing shifts.
1620
+ * Оболочка приложения на всю высоту своего блока (дайте родителю высоту: `html, body, #app { height: 100% }`):
1621
+ * TaoNav занимает её целиком, страница прокручивается внутри своих панелей, а не документом, подвал стоит внизу
1622
+ * боковой панели. Документ не прокручивается, поэтому полоса страницы не появляется и не исчезает, ничего не сдвигается.
1623
+ */
1624
+ fill?: boolean;
1625
+ /**
1571
1626
  * How the current section is marked: `pill` — a tint behind the item; `line` — the accent colour and a short line
1572
1627
  * (under the item in the bar look, along its start edge in the rail and the side panel).
1573
1628
  * Как отмечен текущий раздел: `pill` — подложка под пунктом; `line` — цвет акцента и короткая черта (под пунктом
@@ -1596,6 +1651,7 @@ maxBarItems: number;
1596
1651
  ariaLabel: undefined;
1597
1652
  moreLabel: undefined;
1598
1653
  floating: boolean;
1654
+ fill: boolean;
1599
1655
  indicator: string;
1600
1656
  surface: string;
1601
1657
  badgeTone: string;
@@ -1603,6 +1659,7 @@ badgeTone: string;
1603
1659
  onSelect?: ((id: string, event: Event) => any) | undefined;
1604
1660
  "onUpdate:modelValue"?: ((id: string) => any) | undefined;
1605
1661
  }>, {
1662
+ fill: boolean;
1606
1663
  surface: TaoSurface;
1607
1664
  ariaLabel: string;
1608
1665
  modelValue: string;
@@ -1629,9 +1686,43 @@ checked?: string[];
1629
1686
  load?: (node: TaoTreeNode) => Promise<TaoTreeNode[]>;
1630
1687
  /** Without it the size of ancestors. / Без него — размер предков. */
1631
1688
  size?: TaoSize;
1689
+ /**
1690
+ * The context menu of a row (right click, the Menu key, Shift+F10): a list, or `(node, selected) => items`.
1691
+ * A right click outside the selection selects that row first; the pick comes as `menu-select`.
1692
+ * Контекстное меню строки (правый клик, клавиша Menu, Shift+F10): список или `(node, selected) => items`.
1693
+ * Правый клик вне выбора сначала выбирает строку; выбранный пункт приходит в `menu-select`.
1694
+ */
1695
+ menu?: TaoTreeMenu;
1696
+ /**
1697
+ * `@move`: the rows can be dragged to another place, and cut / copied and pasted with Ctrl+X / Ctrl+C / Ctrl+V. The
1698
+ * tree changes nothing: make the move in your data (`moveTreeNodes`); return a promise and the rows wait for it,
1699
+ * a rejected one comes as `move-error`. A prop, not only an event, so the tree can wait for what it returns.
1700
+ * `@move`: строки можно перетащить в другое место, а также вырезать / скопировать и вставить (Ctrl+X / Ctrl+C /
1701
+ * Ctrl+V). Дерево ничего не меняет: перенос делаете вы в своих данных (`moveTreeNodes`); верните обещание, и
1702
+ * строки его подождут, отклонённое придёт в `move-error`. Проп, а не только событие: дерево ждёт его ответ.
1703
+ */
1704
+ onMove?: (move: TaoTreeMove) => unknown;
1705
+ /**
1706
+ * The order of the rows: `none` the data's (a drag can put a row between others), `name` folders first and by
1707
+ * name, or your compare. With a sort a drag only changes the folder: onto a folder puts the rows in it, onto
1708
+ * any other row into that row's folder. The tree sorts what it shows; `nodes` stays as it is.
1709
+ * Порядок строк: `none` — как в данных (перенос ставит строку между другими), `name` — папки первыми и по имени,
1710
+ * или своё сравнение. С сортировкой перенос меняет только папку: на папку — в неё, на другую строку — в её
1711
+ * папку. Дерево сортирует то, что показывает; `nodes` не меняется.
1712
+ */
1713
+ sort?: TaoTreeSort;
1714
+ /** Which rows can be moved (with `@move`); all but disabled ones by default. / Какие строки можно переносить. */
1715
+ movable?: boolean | ((node: TaoTreeNode) => boolean);
1716
+ /**
1717
+ * May the rows go there: false shows a «no» cursor and no mark (a file into a file is already refused).
1718
+ * Можно ли туда: false — курсор «нельзя» и нет метки (файл в файл и так не принимается).
1719
+ */
1720
+ canDrop?: (move: TaoTreeMove) => boolean;
1632
1721
  /** Accessible name of the tree. / Имя дерева для скринридера. */
1633
1722
  ariaLabel?: string;
1634
1723
  loadingLabel?: string;
1724
+ /** Accessible name of the context menu. / Имя контекстного меню для скринридера. */
1725
+ menuLabel?: string;
1635
1726
  }>, {
1636
1727
  expanded: undefined;
1637
1728
  selection: string;
@@ -1640,14 +1731,24 @@ checkable: boolean;
1640
1731
  checked: undefined;
1641
1732
  load: undefined;
1642
1733
  size: undefined;
1734
+ menu: undefined;
1735
+ onMove: undefined;
1736
+ sort: string;
1737
+ movable: boolean;
1738
+ canDrop: undefined;
1643
1739
  ariaLabel: undefined;
1644
1740
  loadingLabel: undefined;
1741
+ menuLabel: undefined;
1645
1742
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1743
+ menu: (node: TaoTreeNode, event: MouseEvent | KeyboardEvent) => void;
1646
1744
  select: (node: TaoTreeNode) => void;
1745
+ open: (node: TaoTreeNode) => void;
1647
1746
  "update:expanded": (ids: string[]) => void;
1648
1747
  "update:selected": (value: string | string[] | null) => void;
1649
1748
  "update:checked": (ids: string[]) => void;
1650
1749
  "load-error": (node: TaoTreeNode, error: unknown) => void;
1750
+ "menu-select": (id: string, node: TaoTreeNode, selected: string[]) => void;
1751
+ "move-error": (move: TaoTreeMove, error: unknown) => void;
1651
1752
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_46<__VLS_TypePropsToRuntimeProps_50<{
1652
1753
  nodes: TaoTreeNode[];
1653
1754
  /** Ids of the expanded nodes (`v-model:expanded`); without it the tree keeps them itself. / id раскрытых узлов. */
@@ -1663,9 +1764,43 @@ checked?: string[];
1663
1764
  load?: (node: TaoTreeNode) => Promise<TaoTreeNode[]>;
1664
1765
  /** Without it the size of ancestors. / Без него — размер предков. */
1665
1766
  size?: TaoSize;
1767
+ /**
1768
+ * The context menu of a row (right click, the Menu key, Shift+F10): a list, or `(node, selected) => items`.
1769
+ * A right click outside the selection selects that row first; the pick comes as `menu-select`.
1770
+ * Контекстное меню строки (правый клик, клавиша Menu, Shift+F10): список или `(node, selected) => items`.
1771
+ * Правый клик вне выбора сначала выбирает строку; выбранный пункт приходит в `menu-select`.
1772
+ */
1773
+ menu?: TaoTreeMenu;
1774
+ /**
1775
+ * `@move`: the rows can be dragged to another place, and cut / copied and pasted with Ctrl+X / Ctrl+C / Ctrl+V. The
1776
+ * tree changes nothing: make the move in your data (`moveTreeNodes`); return a promise and the rows wait for it,
1777
+ * a rejected one comes as `move-error`. A prop, not only an event, so the tree can wait for what it returns.
1778
+ * `@move`: строки можно перетащить в другое место, а также вырезать / скопировать и вставить (Ctrl+X / Ctrl+C /
1779
+ * Ctrl+V). Дерево ничего не меняет: перенос делаете вы в своих данных (`moveTreeNodes`); верните обещание, и
1780
+ * строки его подождут, отклонённое придёт в `move-error`. Проп, а не только событие: дерево ждёт его ответ.
1781
+ */
1782
+ onMove?: (move: TaoTreeMove) => unknown;
1783
+ /**
1784
+ * The order of the rows: `none` the data's (a drag can put a row between others), `name` folders first and by
1785
+ * name, or your compare. With a sort a drag only changes the folder: onto a folder puts the rows in it, onto
1786
+ * any other row into that row's folder. The tree sorts what it shows; `nodes` stays as it is.
1787
+ * Порядок строк: `none` — как в данных (перенос ставит строку между другими), `name` — папки первыми и по имени,
1788
+ * или своё сравнение. С сортировкой перенос меняет только папку: на папку — в неё, на другую строку — в её
1789
+ * папку. Дерево сортирует то, что показывает; `nodes` не меняется.
1790
+ */
1791
+ sort?: TaoTreeSort;
1792
+ /** Which rows can be moved (with `@move`); all but disabled ones by default. / Какие строки можно переносить. */
1793
+ movable?: boolean | ((node: TaoTreeNode) => boolean);
1794
+ /**
1795
+ * May the rows go there: false shows a «no» cursor and no mark (a file into a file is already refused).
1796
+ * Можно ли туда: false — курсор «нельзя» и нет метки (файл в файл и так не принимается).
1797
+ */
1798
+ canDrop?: (move: TaoTreeMove) => boolean;
1666
1799
  /** Accessible name of the tree. / Имя дерева для скринридера. */
1667
1800
  ariaLabel?: string;
1668
1801
  loadingLabel?: string;
1802
+ /** Accessible name of the context menu. / Имя контекстного меню для скринридера. */
1803
+ menuLabel?: string;
1669
1804
  }>, {
1670
1805
  expanded: undefined;
1671
1806
  selection: string;
@@ -1674,23 +1809,39 @@ checkable: boolean;
1674
1809
  checked: undefined;
1675
1810
  load: undefined;
1676
1811
  size: undefined;
1812
+ menu: undefined;
1813
+ onMove: undefined;
1814
+ sort: string;
1815
+ movable: boolean;
1816
+ canDrop: undefined;
1677
1817
  ariaLabel: undefined;
1678
1818
  loadingLabel: undefined;
1819
+ menuLabel: undefined;
1679
1820
  }>>> & Readonly<{
1821
+ onMenu?: ((node: TaoTreeNode, event: MouseEvent | KeyboardEvent) => any) | undefined;
1680
1822
  onSelect?: ((node: TaoTreeNode) => any) | undefined;
1823
+ onOpen?: ((node: TaoTreeNode) => any) | undefined;
1681
1824
  "onUpdate:expanded"?: ((ids: string[]) => any) | undefined;
1682
1825
  "onUpdate:selected"?: ((value: string | string[] | null) => any) | undefined;
1683
1826
  "onUpdate:checked"?: ((ids: string[]) => any) | undefined;
1684
1827
  "onLoad-error"?: ((node: TaoTreeNode, error: unknown) => any) | undefined;
1828
+ "onMenu-select"?: ((id: string, node: TaoTreeNode, selected: string[]) => any) | undefined;
1829
+ "onMove-error"?: ((move: TaoTreeMove, error: unknown) => any) | undefined;
1685
1830
  }>, {
1831
+ sort: TaoTreeSort;
1686
1832
  size: TaoSize;
1833
+ menu: TaoTreeMenu;
1687
1834
  load: (node: TaoTreeNode) => Promise<TaoTreeNode[]>;
1688
1835
  ariaLabel: string;
1689
1836
  checked: string[];
1690
1837
  selected: string | string[] | null;
1838
+ menuLabel: string;
1691
1839
  expanded: string[];
1692
1840
  selection: TaoTreeSelection;
1693
1841
  checkable: boolean;
1842
+ onMove: (move: TaoTreeMove) => unknown;
1843
+ movable: boolean | ((node: TaoTreeNode) => boolean);
1844
+ canDrop: (move: TaoTreeMove) => boolean;
1694
1845
  loadingLabel: string;
1695
1846
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1696
1847
 
@@ -2082,16 +2233,19 @@ to: undefined;
2082
2233
  newTab: boolean;
2083
2234
  private: boolean;
2084
2235
  exactPath: boolean;
2236
+ underline: string;
2085
2237
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_52<__VLS_TypePropsToRuntimeProps_56<Props_17>, {
2086
2238
  to: undefined;
2087
2239
  newTab: boolean;
2088
2240
  private: boolean;
2089
2241
  exactPath: boolean;
2242
+ underline: string;
2090
2243
  }>>> & Readonly<{}>, {
2091
2244
  to: string | Record<string, unknown>;
2092
2245
  newTab: boolean;
2093
2246
  private: boolean;
2094
2247
  exactPath: boolean;
2248
+ underline: "always" | "hover" | "none";
2095
2249
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2096
2250
 
2097
2251
  declare const __VLS_component_51: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_53<__VLS_TypePropsToRuntimeProps_57<Props_18>, {
@@ -2099,16 +2253,19 @@ to: undefined;
2099
2253
  newTab: boolean;
2100
2254
  private: boolean;
2101
2255
  exactPath: boolean;
2256
+ underline: string;
2102
2257
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_53<__VLS_TypePropsToRuntimeProps_57<Props_18>, {
2103
2258
  to: undefined;
2104
2259
  newTab: boolean;
2105
2260
  private: boolean;
2106
2261
  exactPath: boolean;
2262
+ underline: string;
2107
2263
  }>>> & Readonly<{}>, {
2108
2264
  to: string | Record<string, unknown>;
2109
2265
  newTab: boolean;
2110
2266
  private: boolean;
2111
2267
  exactPath: boolean;
2268
+ underline: "always" | "hover" | "none";
2112
2269
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2113
2270
 
2114
2271
  declare const __VLS_component_52: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_58<{
@@ -2914,104 +3071,6 @@ bordered: boolean;
2914
3071
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2915
3072
 
2916
3073
  declare const __VLS_component_67: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_76<{
2917
- columns: TaoTableColumn[];
2918
- rows?: Record<string, unknown>[];
2919
- rowKey?: string | ((row: Record<string, unknown>, index: number) => string | number);
2920
- loading?: boolean;
2921
- emptyText?: string;
2922
- /** Зебра. `true` / `odd` — с первой строки, `even` — со второй. */
2923
- striped?: boolean | "odd" | "even";
2924
- /** Cell padding and text; also the size of controls inside cells. Without it — the size of ancestors. / Отступы и текст ячеек, заодно размер контролов в ячейках. Без него — размер предков. */
2925
- size?: TaoSize;
2926
- hover?: boolean;
2927
- /** Подсветка шапки. */
2928
- head?: boolean;
2929
- /** Горизонтальные линии между рядами. */
2930
- lines?: boolean;
2931
- sticky?: boolean;
2932
- /** Number — px, string — any CSS length. / Число — px, строка — любая CSS-длина. */
2933
- maxHeight?: TaoLength;
2934
- clickable?: boolean;
2935
- sort?: TaoTableSort | null;
2936
- caption?: string;
2937
- /** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
2938
- bordered?: boolean;
2939
- }>, {
2940
- rows: () => never[];
2941
- rowKey: string;
2942
- loading: boolean;
2943
- striped: boolean;
2944
- hover: boolean;
2945
- head: boolean;
2946
- lines: boolean;
2947
- sticky: boolean;
2948
- maxHeight: string;
2949
- clickable: boolean;
2950
- sort: null;
2951
- caption: string;
2952
- bordered: undefined;
2953
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2954
- change: (value: TaoTableSort | null) => void;
2955
- "update:sort": (value: TaoTableSort | null) => void;
2956
- "row-click": (row: Record<string, unknown>, index: number) => void;
2957
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_76<{
2958
- columns: TaoTableColumn[];
2959
- rows?: Record<string, unknown>[];
2960
- rowKey?: string | ((row: Record<string, unknown>, index: number) => string | number);
2961
- loading?: boolean;
2962
- emptyText?: string;
2963
- /** Зебра. `true` / `odd` — с первой строки, `even` — со второй. */
2964
- striped?: boolean | "odd" | "even";
2965
- /** Cell padding and text; also the size of controls inside cells. Without it — the size of ancestors. / Отступы и текст ячеек, заодно размер контролов в ячейках. Без него — размер предков. */
2966
- size?: TaoSize;
2967
- hover?: boolean;
2968
- /** Подсветка шапки. */
2969
- head?: boolean;
2970
- /** Горизонтальные линии между рядами. */
2971
- lines?: boolean;
2972
- sticky?: boolean;
2973
- /** Number — px, string — any CSS length. / Число — px, строка — любая CSS-длина. */
2974
- maxHeight?: TaoLength;
2975
- clickable?: boolean;
2976
- sort?: TaoTableSort | null;
2977
- caption?: string;
2978
- /** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
2979
- bordered?: boolean;
2980
- }>, {
2981
- rows: () => never[];
2982
- rowKey: string;
2983
- loading: boolean;
2984
- striped: boolean;
2985
- hover: boolean;
2986
- head: boolean;
2987
- lines: boolean;
2988
- sticky: boolean;
2989
- maxHeight: string;
2990
- clickable: boolean;
2991
- sort: null;
2992
- caption: string;
2993
- bordered: undefined;
2994
- }>>> & Readonly<{
2995
- onChange?: ((value: TaoTableSort | null) => any) | undefined;
2996
- "onUpdate:sort"?: ((value: TaoTableSort | null) => any) | undefined;
2997
- "onRow-click"?: ((row: Record<string, unknown>, index: number) => any) | undefined;
2998
- }>, {
2999
- sort: TaoTableSort | null;
3000
- caption: string;
3001
- head: boolean;
3002
- loading: boolean;
3003
- bordered: boolean;
3004
- hover: boolean;
3005
- sticky: boolean;
3006
- rows: Record<string, unknown>[];
3007
- maxHeight: TaoLength;
3008
- clickable: boolean;
3009
- lines: boolean;
3010
- rowKey: string | ((row: Record<string, unknown>, index: number) => string | number);
3011
- striped: boolean | "odd" | "even";
3012
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3013
-
3014
- declare const __VLS_component_68: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_71<__VLS_TypePropsToRuntimeProps_77<{
3015
3074
  page?: number;
3016
3075
  total?: number;
3017
3076
  pageSize?: number;
@@ -3060,7 +3119,7 @@ pageInput: boolean;
3060
3119
  change: (value: number) => void;
3061
3120
  "update:page": (value: number) => void;
3062
3121
  "update:pageSize": (value: number) => void;
3063
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_71<__VLS_TypePropsToRuntimeProps_77<{
3122
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_70<__VLS_TypePropsToRuntimeProps_76<{
3064
3123
  page?: number;
3065
3124
  total?: number;
3066
3125
  pageSize?: number;
@@ -3120,58 +3179,13 @@ jump: number;
3120
3179
  pageInput: boolean | number;
3121
3180
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3122
3181
 
3123
- declare const __VLS_component_69: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_78<{
3182
+ declare const __VLS_component_68: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_71<__VLS_TypePropsToRuntimeProps_77<{
3124
3183
  title?: string;
3125
- }>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_78<{
3184
+ }>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_71<__VLS_TypePropsToRuntimeProps_77<{
3126
3185
  title?: string;
3127
3186
  }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3128
3187
 
3129
- declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_7<Props_4>, {
3130
- padding: undefined;
3131
- radius: undefined;
3132
- shadow: boolean;
3133
- shadowBottomOnly: boolean;
3134
- hover: boolean;
3135
- active: boolean;
3136
- overflow: boolean;
3137
- flush: boolean;
3138
- surface: string;
3139
- closable: boolean;
3140
- stripe: undefined;
3141
- stripeTone: string;
3142
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3143
- close: () => void;
3144
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_7<Props_4>, {
3145
- padding: undefined;
3146
- radius: undefined;
3147
- shadow: boolean;
3148
- shadowBottomOnly: boolean;
3149
- hover: boolean;
3150
- active: boolean;
3151
- overflow: boolean;
3152
- flush: boolean;
3153
- surface: string;
3154
- closable: boolean;
3155
- stripe: undefined;
3156
- stripeTone: string;
3157
- }>>> & Readonly<{
3158
- onClose?: (() => any) | undefined;
3159
- }>, {
3160
- surface: TaoSurface;
3161
- closable: boolean;
3162
- radius: TaoLength;
3163
- padding: TaoLength | TaoLength[];
3164
- shadow: boolean;
3165
- hover: boolean;
3166
- stripe: TaoStripe;
3167
- stripeTone: TaoStripeTone;
3168
- shadowBottomOnly: boolean;
3169
- active: boolean;
3170
- overflow: boolean;
3171
- flush: boolean;
3172
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3173
-
3174
- declare const __VLS_component_70: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_73<__VLS_TypePropsToRuntimeProps_79<{
3188
+ declare const __VLS_component_69: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_78<{
3175
3189
  /** Row height; items inherit it. Without it — the size of ancestors. / Высота строк, item наследует. Без него — размер предков. */
3176
3190
  size?: TaoSize;
3177
3191
  /** Рамка, как у списка файлов. */
@@ -3198,7 +3212,7 @@ divided: boolean;
3198
3212
  empty: boolean;
3199
3213
  ariaLabel: string;
3200
3214
  roving: boolean;
3201
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_73<__VLS_TypePropsToRuntimeProps_79<{
3215
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_72<__VLS_TypePropsToRuntimeProps_78<{
3202
3216
  /** Row height; items inherit it. Without it — the size of ancestors. / Высота строк, item наследует. Без него — размер предков. */
3203
3217
  size?: TaoSize;
3204
3218
  /** Рамка, как у списка файлов. */
@@ -3233,7 +3247,52 @@ divided: boolean;
3233
3247
  roving: boolean;
3234
3248
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3235
3249
 
3236
- declare const __VLS_component_71: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_74<__VLS_TypePropsToRuntimeProps_80<{
3250
+ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_7<Props_4>, {
3251
+ padding: undefined;
3252
+ radius: undefined;
3253
+ shadow: boolean;
3254
+ shadowBottomOnly: boolean;
3255
+ hover: boolean;
3256
+ active: boolean;
3257
+ overflow: boolean;
3258
+ flush: boolean;
3259
+ surface: string;
3260
+ closable: boolean;
3261
+ stripe: undefined;
3262
+ stripeTone: string;
3263
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3264
+ close: () => void;
3265
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_7<Props_4>, {
3266
+ padding: undefined;
3267
+ radius: undefined;
3268
+ shadow: boolean;
3269
+ shadowBottomOnly: boolean;
3270
+ hover: boolean;
3271
+ active: boolean;
3272
+ overflow: boolean;
3273
+ flush: boolean;
3274
+ surface: string;
3275
+ closable: boolean;
3276
+ stripe: undefined;
3277
+ stripeTone: string;
3278
+ }>>> & Readonly<{
3279
+ onClose?: (() => any) | undefined;
3280
+ }>, {
3281
+ surface: TaoSurface;
3282
+ closable: boolean;
3283
+ radius: TaoLength;
3284
+ padding: TaoLength | TaoLength[];
3285
+ shadow: boolean;
3286
+ hover: boolean;
3287
+ stripe: TaoStripe;
3288
+ stripeTone: TaoStripeTone;
3289
+ shadowBottomOnly: boolean;
3290
+ active: boolean;
3291
+ overflow: boolean;
3292
+ flush: boolean;
3293
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3294
+
3295
+ declare const __VLS_component_70: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_73<__VLS_TypePropsToRuntimeProps_79<{
3237
3296
  title?: string;
3238
3297
  description?: string;
3239
3298
  selected?: boolean;
@@ -3256,7 +3315,7 @@ clickable: boolean;
3256
3315
  actionAlways: boolean;
3257
3316
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3258
3317
  click: (event: MouseEvent) => void;
3259
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_74<__VLS_TypePropsToRuntimeProps_80<{
3318
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_73<__VLS_TypePropsToRuntimeProps_79<{
3260
3319
  title?: string;
3261
3320
  description?: string;
3262
3321
  selected?: boolean;
@@ -3289,7 +3348,7 @@ clickable: boolean;
3289
3348
  actionAlways: boolean;
3290
3349
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3291
3350
 
3292
- declare const __VLS_component_72: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_76<__VLS_TypePropsToRuntimeProps_82<{
3351
+ declare const __VLS_component_71: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_75<__VLS_TypePropsToRuntimeProps_81<{
3293
3352
  modelValue: boolean;
3294
3353
  title?: string;
3295
3354
  /**
@@ -3342,7 +3401,7 @@ swipeThreshold: number;
3342
3401
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3343
3402
  close: (...args: any[]) => void;
3344
3403
  "update:modelValue": (...args: any[]) => void;
3345
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_76<__VLS_TypePropsToRuntimeProps_82<{
3404
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_75<__VLS_TypePropsToRuntimeProps_81<{
3346
3405
  modelValue: boolean;
3347
3406
  title?: string;
3348
3407
  /**
@@ -3405,7 +3464,7 @@ swipeToClose: boolean;
3405
3464
  swipeThreshold: number;
3406
3465
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3407
3466
 
3408
- declare const __VLS_component_73: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_80<__VLS_TypePropsToRuntimeProps_86<{
3467
+ declare const __VLS_component_72: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_79<__VLS_TypePropsToRuntimeProps_85<{
3409
3468
  modelValue?: number;
3410
3469
  peek?: number;
3411
3470
  /** How many slides fit in the viewport. 5 = product strip. 1 = one card. With `centered`: how many whole slides around the middle one. */
@@ -3460,7 +3519,7 @@ pausable: boolean;
3460
3519
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3461
3520
  change: (value: number) => void;
3462
3521
  "update:modelValue": (value: number) => void;
3463
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_80<__VLS_TypePropsToRuntimeProps_86<{
3522
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_79<__VLS_TypePropsToRuntimeProps_85<{
3464
3523
  modelValue?: number;
3465
3524
  peek?: number;
3466
3525
  /** How many slides fit in the viewport. 5 = product strip. 1 = one card. With `centered`: how many whole slides around the middle one. */
@@ -3527,7 +3586,7 @@ indicator: "dots" | "bars" | "progress";
3527
3586
  pausable: boolean;
3528
3587
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3529
3588
 
3530
- declare const __VLS_component_74: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_81<__VLS_TypePropsToRuntimeProps_87<{
3589
+ declare const __VLS_component_73: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_80<__VLS_TypePropsToRuntimeProps_86<{
3531
3590
  items?: TaoStageItem[];
3532
3591
  /** `column` (default) — steps top to bottom, `row` — left to right. / `column` — сверху вниз, `row` — слева направо. */
3533
3592
  direction?: "row" | "column";
@@ -3537,7 +3596,7 @@ statusLabels?: Partial<Record<TaoStageStatus, string>>;
3537
3596
  items: () => never[];
3538
3597
  direction: string;
3539
3598
  statusLabels: () => {};
3540
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_81<__VLS_TypePropsToRuntimeProps_87<{
3599
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_80<__VLS_TypePropsToRuntimeProps_86<{
3541
3600
  items?: TaoStageItem[];
3542
3601
  /** `column` (default) — steps top to bottom, `row` — left to right. / `column` — сверху вниз, `row` — слева направо. */
3543
3602
  direction?: "row" | "column";
@@ -3779,10 +3838,10 @@ declare type __VLS_NonUndefinedable_85<T> = T extends undefined ? never : T;
3779
3838
 
3780
3839
  declare type __VLS_NonUndefinedable_86<T> = T extends undefined ? never : T;
3781
3840
 
3782
- declare type __VLS_NonUndefinedable_87<T> = T extends undefined ? never : T;
3783
-
3784
3841
  declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
3785
3842
 
3843
+ declare type __VLS_OmitKeepDiscriminatedUnion<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
3844
+
3786
3845
  declare type __VLS_Prettify<T> = {
3787
3846
  [K in keyof T]: T[K];
3788
3847
  } & {};
@@ -4684,23 +4743,7 @@ declare function __VLS_template_66(): {
4684
4743
  "close-icon"?(_: {}): any;
4685
4744
  };
4686
4745
 
4687
- declare function __VLS_template_67(): Partial<Record<`cell-${string}`, (_: {
4688
- row: Record<string, unknown>;
4689
- column: TaoTableColumn<Record<string, unknown>>;
4690
- value: unknown;
4691
- index: number;
4692
- }) => any>> & {
4693
- empty?(_: {}): any;
4694
- cell?(_: {
4695
- row: Record<string, unknown>;
4696
- column: TaoTableColumn<Record<string, unknown>>;
4697
- value: unknown;
4698
- index: number;
4699
- }): any;
4700
- loading?(_: {}): any;
4701
- };
4702
-
4703
- declare function __VLS_template_68(): {
4746
+ declare function __VLS_template_67(): {
4704
4747
  total?(_: {
4705
4748
  from: number;
4706
4749
  to: number;
@@ -4710,12 +4753,17 @@ declare function __VLS_template_68(): {
4710
4753
  "next-icon"?(_: {}): any;
4711
4754
  };
4712
4755
 
4713
- declare function __VLS_template_69(): {
4756
+ declare function __VLS_template_68(): {
4714
4757
  icon?(_: {}): any;
4715
4758
  default?(_: {}): any;
4716
4759
  action?(_: {}): any;
4717
4760
  };
4718
4761
 
4762
+ declare function __VLS_template_69(): {
4763
+ empty?(_: {}): any;
4764
+ default?(_: {}): any;
4765
+ };
4766
+
4719
4767
  declare function __VLS_template_7(): Readonly<{
4720
4768
  /** A picture or a carousel at the top. / Картинка или карусель сверху. */
4721
4769
  media?(): unknown;
@@ -4745,11 +4793,6 @@ declare function __VLS_template_7(): Readonly<{
4745
4793
  };
4746
4794
 
4747
4795
  declare function __VLS_template_70(): {
4748
- empty?(_: {}): any;
4749
- default?(_: {}): any;
4750
- };
4751
-
4752
- declare function __VLS_template_71(): {
4753
4796
  prefix?(_: {}): any;
4754
4797
  default?(_: {}): any;
4755
4798
  description?(_: {}): any;
@@ -4757,7 +4800,7 @@ declare function __VLS_template_71(): {
4757
4800
  action?(_: {}): any;
4758
4801
  };
4759
4802
 
4760
- declare function __VLS_template_72(): {
4803
+ declare function __VLS_template_71(): {
4761
4804
  header?(_: {
4762
4805
  close: typeof close_2;
4763
4806
  }): any;
@@ -4766,7 +4809,7 @@ declare function __VLS_template_72(): {
4766
4809
  footer?(_: {}): any;
4767
4810
  };
4768
4811
 
4769
- declare function __VLS_template_73(): Readonly<{
4812
+ declare function __VLS_template_72(): Readonly<{
4770
4813
  default(): unknown;
4771
4814
  prev(props: {
4772
4815
  disabled: boolean;
@@ -4812,7 +4855,7 @@ declare function __VLS_template_73(): Readonly<{
4812
4855
  }): unknown;
4813
4856
  };
4814
4857
 
4815
- declare function __VLS_template_74(): Readonly<{
4858
+ declare function __VLS_template_73(): Readonly<{
4816
4859
  default(props: {
4817
4860
  item: TaoStageItem;
4818
4861
  index: number;
@@ -5618,15 +5661,6 @@ declare type __VLS_TypePropsToRuntimeProps_86<T> = {
5618
5661
  };
5619
5662
  };
5620
5663
 
5621
- declare type __VLS_TypePropsToRuntimeProps_87<T> = {
5622
- [K in keyof T]-?: {} extends Pick<T, K> ? {
5623
- type: PropType<__VLS_NonUndefinedable_87<T[K]>>;
5624
- } : {
5625
- type: PropType<T[K]>;
5626
- required: true;
5627
- };
5628
- };
5629
-
5630
5664
  declare type __VLS_TypePropsToRuntimeProps_9<T> = {
5631
5665
  [K in keyof T]-?: {} extends Pick<T, K> ? {
5632
5666
  type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
@@ -6039,61 +6073,61 @@ declare type __VLS_WithDefaults_7<P, D> = {
6039
6073
  };
6040
6074
 
6041
6075
  declare type __VLS_WithDefaults_70<P, D> = {
6042
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_70<P[K] & {
6076
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_71<P[K] & {
6043
6077
  default: D[K];
6044
6078
  }> : P[K];
6045
6079
  };
6046
6080
 
6047
6081
  declare type __VLS_WithDefaults_71<P, D> = {
6048
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_71<P[K] & {
6082
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_72<P[K] & {
6049
6083
  default: D[K];
6050
6084
  }> : P[K];
6051
6085
  };
6052
6086
 
6053
6087
  declare type __VLS_WithDefaults_72<P, D> = {
6054
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_72<P[K] & {
6088
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_73<P[K] & {
6055
6089
  default: D[K];
6056
6090
  }> : P[K];
6057
6091
  };
6058
6092
 
6059
6093
  declare type __VLS_WithDefaults_73<P, D> = {
6060
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_73<P[K] & {
6094
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_74<P[K] & {
6061
6095
  default: D[K];
6062
6096
  }> : P[K];
6063
6097
  };
6064
6098
 
6065
6099
  declare type __VLS_WithDefaults_74<P, D> = {
6066
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_74<P[K] & {
6100
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_75<P[K] & {
6067
6101
  default: D[K];
6068
6102
  }> : P[K];
6069
6103
  };
6070
6104
 
6071
6105
  declare type __VLS_WithDefaults_75<P, D> = {
6072
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_75<P[K] & {
6106
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_76<P[K] & {
6073
6107
  default: D[K];
6074
6108
  }> : P[K];
6075
6109
  };
6076
6110
 
6077
6111
  declare type __VLS_WithDefaults_76<P, D> = {
6078
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_76<P[K] & {
6112
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_77<P[K] & {
6079
6113
  default: D[K];
6080
6114
  }> : P[K];
6081
6115
  };
6082
6116
 
6083
6117
  declare type __VLS_WithDefaults_77<P, D> = {
6084
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_77<P[K] & {
6118
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_78<P[K] & {
6085
6119
  default: D[K];
6086
6120
  }> : P[K];
6087
6121
  };
6088
6122
 
6089
6123
  declare type __VLS_WithDefaults_78<P, D> = {
6090
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_78<P[K] & {
6124
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_79<P[K] & {
6091
6125
  default: D[K];
6092
6126
  }> : P[K];
6093
6127
  };
6094
6128
 
6095
6129
  declare type __VLS_WithDefaults_79<P, D> = {
6096
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_79<P[K] & {
6130
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_80<P[K] & {
6097
6131
  default: D[K];
6098
6132
  }> : P[K];
6099
6133
  };
@@ -6105,12 +6139,6 @@ declare type __VLS_WithDefaults_8<P, D> = {
6105
6139
  };
6106
6140
 
6107
6141
  declare type __VLS_WithDefaults_80<P, D> = {
6108
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_80<P[K] & {
6109
- default: D[K];
6110
- }> : P[K];
6111
- };
6112
-
6113
- declare type __VLS_WithDefaults_81<P, D> = {
6114
6142
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_81<P[K] & {
6115
6143
  default: D[K];
6116
6144
  }> : P[K];
@@ -6548,12 +6576,6 @@ declare type __VLS_WithTemplateSlots_73<T, S> = T & {
6548
6576
  };
6549
6577
  };
6550
6578
 
6551
- declare type __VLS_WithTemplateSlots_74<T, S> = T & {
6552
- new (): {
6553
- $slots: S;
6554
- };
6555
- };
6556
-
6557
6579
  declare type __VLS_WithTemplateSlots_8<T, S> = T & {
6558
6580
  new (): {
6559
6581
  $slots: S;
@@ -6615,6 +6637,9 @@ export declare interface ColorModelOptions {
6615
6637
  precision?: number;
6616
6638
  }
6617
6639
 
6640
+ /** Folders first, then the labels by `Intl.Collator` with numbers as numbers. / Папки первыми, затем подписи. */
6641
+ export declare function compareTreeNodes(locale?: string): (a: TaoTreeNode, b: TaoTreeNode) => number;
6642
+
6618
6643
  declare const confirm_2: TaoConfirmApi;
6619
6644
  export { confirm_2 as confirm }
6620
6645
 
@@ -6745,6 +6770,16 @@ export declare function mergeRanges(ranges: readonly [number, number][]): [numbe
6745
6770
  */
6746
6771
  export declare function moveTarget(from: number, over: number, after: boolean, count: number): number | null;
6747
6772
 
6773
+ /**
6774
+ * The tree with a move made, for an app that keeps its data as `TaoTreeNode[]`: a new array, the nodes it passes
6775
+ * through copied, the others kept. A copy (`move.copy`) needs new ids, so it is the app's to make; this helper moves.
6776
+ * Children loaded by `load` are not in `nodes`: such an app moves them in its own store.
6777
+ * Дерево с выполненным переносом, для приложения, которое хранит данные как `TaoTreeNode[]`: новый массив, узлы по пути
6778
+ * скопированы, остальные те же. Копии (`move.copy`) нужны новые id, их делает приложение; помощник переносит.
6779
+ * Дети, подгруженные через `load`, не лежат в `nodes`: такое приложение переносит их в своём хранилище.
6780
+ */
6781
+ export declare function moveTreeNodes(nodes: readonly TaoTreeNode[], move: Pick<TaoTreeMove, 'ids' | 'parentId' | 'index'>): TaoTreeNode[];
6782
+
6748
6783
  declare interface NodeSlot {
6749
6784
  node: TaoTreeNode;
6750
6785
  level: number;
@@ -6955,6 +6990,13 @@ declare interface Props_17 {
6955
6990
  newTab?: boolean;
6956
6991
  private?: boolean;
6957
6992
  exactPath?: boolean;
6993
+ /**
6994
+ * Underline: `always` (the default: in a line of text a link must not rest on colour alone), `hover` (only under the pointer
6995
+ * and the keyboard focus: for a link that is clear from its place, a menu, a card title), `none`.
6996
+ * Подчёркивание: `always` (по умолчанию: в строке текста ссылка не должна держаться на одном цвете), `hover` (только под
6997
+ * курсором и фокусом: ссылка, понятная по месту, пункт меню, заголовок карточки), `none`.
6998
+ */
6999
+ underline?: 'always' | 'hover' | 'none';
6958
7000
  }
6959
7001
 
6960
7002
  declare interface Props_18 {
@@ -6964,6 +7006,8 @@ declare interface Props_18 {
6964
7006
  newTab?: boolean;
6965
7007
  private?: boolean;
6966
7008
  exactPath?: boolean;
7009
+ /** As in TaoLink; here `none`: the card is the sign of a link, not the line. / Как у TaoLink; здесь `none`: ссылку показывает карточка, а не линия. */
7010
+ underline?: 'always' | 'hover' | 'none';
6967
7011
  }
6968
7012
 
6969
7013
  declare interface Props_19 {
@@ -7222,7 +7266,7 @@ export declare type TaoAnchor = HTMLElement | TaoVirtualAnchor;
7222
7266
 
7223
7267
  export declare const TaoAnimatedBorder: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, ReturnType<typeof __VLS_template_31>>;
7224
7268
 
7225
- export declare const TaoAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_77<__VLS_TypePropsToRuntimeProps_83<{
7269
+ export declare const TaoAvatar: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_76<__VLS_TypePropsToRuntimeProps_82<{
7226
7270
  src?: string;
7227
7271
  name?: string;
7228
7272
  alt?: string;
@@ -7247,7 +7291,7 @@ size: string;
7247
7291
  dot: boolean;
7248
7292
  count: undefined;
7249
7293
  dotLabels: () => {};
7250
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_77<__VLS_TypePropsToRuntimeProps_83<{
7294
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_76<__VLS_TypePropsToRuntimeProps_82<{
7251
7295
  src?: string;
7252
7296
  name?: string;
7253
7297
  alt?: string;
@@ -7286,10 +7330,10 @@ declare type TaoAvatarDot = TaoTone;
7286
7330
 
7287
7331
  export declare const TaoBlock: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
7288
7332
 
7289
- export declare const TaoBreadcrumb: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_78<__VLS_TypePropsToRuntimeProps_84<{
7333
+ export declare const TaoBreadcrumb: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_77<__VLS_TypePropsToRuntimeProps_83<{
7290
7334
  items: TaoBreadcrumbItem[];
7291
7335
  ariaLabel?: string;
7292
- }>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_78<__VLS_TypePropsToRuntimeProps_84<{
7336
+ }>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_77<__VLS_TypePropsToRuntimeProps_83<{
7293
7337
  items: TaoBreadcrumbItem[];
7294
7338
  ariaLabel?: string;
7295
7339
  }>, {}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -7305,7 +7349,7 @@ export declare const TaoCalendar: __VLS_WithTemplateSlots_58<typeof __VLS_compon
7305
7349
 
7306
7350
  export declare const TaoCard: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, ReturnType<typeof __VLS_template_7>>;
7307
7351
 
7308
- export declare const TaoCarousel: __VLS_WithTemplateSlots_73<typeof __VLS_component_73, ReturnType<typeof __VLS_template_73>>;
7352
+ export declare const TaoCarousel: __VLS_WithTemplateSlots_72<typeof __VLS_component_72, ReturnType<typeof __VLS_template_72>>;
7309
7353
 
7310
7354
  /** The colours a chart library needs, resolved to `rgb()` / `rgba()` strings. / Цвета для библиотеки графиков в rgb(). */
7311
7355
  export declare interface TaoChartTheme {
@@ -7596,13 +7640,13 @@ export declare const TaoContextMenu: __VLS_WithTemplateSlots_49<typeof __VLS_com
7596
7640
 
7597
7641
  export declare const TaoCopy: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, ReturnType<typeof __VLS_template_16>>;
7598
7642
 
7599
- export declare const TaoCounter: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_79<__VLS_TypePropsToRuntimeProps_85<{
7643
+ export declare const TaoCounter: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_78<__VLS_TypePropsToRuntimeProps_84<{
7600
7644
  value?: number;
7601
7645
  maxDigits?: number;
7602
7646
  }>, {
7603
7647
  value: number;
7604
7648
  maxDigits: number;
7605
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_79<__VLS_TypePropsToRuntimeProps_85<{
7649
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_78<__VLS_TypePropsToRuntimeProps_84<{
7606
7650
  value?: number;
7607
7651
  maxDigits?: number;
7608
7652
  }>, {
@@ -7704,11 +7748,11 @@ export declare interface TaoDonutSegment {
7704
7748
  color?: string;
7705
7749
  }
7706
7750
 
7707
- export declare const TaoDrawer: __VLS_WithTemplateSlots_72<typeof __VLS_component_72, ReturnType<typeof __VLS_template_72>>;
7751
+ export declare const TaoDrawer: __VLS_WithTemplateSlots_71<typeof __VLS_component_71, ReturnType<typeof __VLS_template_71>>;
7708
7752
 
7709
7753
  export declare const TaoDropdownMenu: __VLS_WithTemplateSlots_37<typeof __VLS_component_37, ReturnType<typeof __VLS_template_37>>;
7710
7754
 
7711
- export declare const TaoEmpty: __VLS_WithTemplateSlots_69<typeof __VLS_component_69, ReturnType<typeof __VLS_template_69>>;
7755
+ export declare const TaoEmpty: __VLS_WithTemplateSlots_68<typeof __VLS_component_68, ReturnType<typeof __VLS_template_68>>;
7712
7756
 
7713
7757
  export declare const TaoFieldset: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, ReturnType<typeof __VLS_template_30>>;
7714
7758
 
@@ -7859,9 +7903,9 @@ export declare type TaoLength = number | string;
7859
7903
 
7860
7904
  export declare const TaoLink: __VLS_WithTemplateSlots_50<typeof __VLS_component_50, ReturnType<typeof __VLS_template_50>>;
7861
7905
 
7862
- export declare const TaoList: __VLS_WithTemplateSlots_70<typeof __VLS_component_70, ReturnType<typeof __VLS_template_70>>;
7906
+ export declare const TaoList: __VLS_WithTemplateSlots_69<typeof __VLS_component_69, ReturnType<typeof __VLS_template_69>>;
7863
7907
 
7864
- export declare const TaoListItem: __VLS_WithTemplateSlots_71<typeof __VLS_component_71, ReturnType<typeof __VLS_template_71>>;
7908
+ export declare const TaoListItem: __VLS_WithTemplateSlots_70<typeof __VLS_component_70, ReturnType<typeof __VLS_template_70>>;
7865
7909
 
7866
7910
  export declare const TaoLoader: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_25<__VLS_TypePropsToRuntimeProps_27<Props_11>, {
7867
7911
  variant: string;
@@ -8001,6 +8045,20 @@ export declare interface TaoLocale {
8001
8045
  tree: {
8002
8046
  ariaLabel: string;
8003
8047
  loadingLabel: string;
8048
+ /** The context menu (5.51.0; optional for locales written before, English then). / Контекстное меню. */
8049
+ menuLabel?: string;
8050
+ /**
8051
+ * Moving rows (5.51.0, optional): `{item}` is the name of a row or `countLabel`, `{target}` the folder or `rootLabel`.
8052
+ * Перенос строк (5.51.0, необязательно): `{item}` — имя строки или `countLabel`, `{target}` — папка или `rootLabel`.
8053
+ */
8054
+ countLabel?: TaoText;
8055
+ rootLabel?: string;
8056
+ cutText?: string;
8057
+ copyText?: string;
8058
+ movedText?: string;
8059
+ copiedText?: string;
8060
+ canceledText?: string;
8061
+ refusedText?: string;
8004
8062
  };
8005
8063
  /** `counterText`: `{checked}`, `{total}`. */
8006
8064
  checklist: {
@@ -8303,7 +8361,7 @@ export declare interface TaoNavItem {
8303
8361
  */
8304
8362
  export declare type TaoNavLayout = 'auto' | 'bar' | 'rail' | 'drawer';
8305
8363
 
8306
- export declare const TaoPagination: __VLS_WithTemplateSlots_68<typeof __VLS_component_68, ReturnType<typeof __VLS_template_68>>;
8364
+ export declare const TaoPagination: __VLS_WithTemplateSlots_67<typeof __VLS_component_67, ReturnType<typeof __VLS_template_67>>;
8307
8365
 
8308
8366
  export declare type TaoPaginationItem = {
8309
8367
  type: 'page';
@@ -8657,7 +8715,7 @@ export declare interface TaoSelectOption {
8657
8715
  /** One size scale for every control. / Единая шкала размеров для всех контролов. */
8658
8716
  export declare type TaoSize = 'small' | 'medium' | 'large';
8659
8717
 
8660
- export declare const TaoSkeleton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_75<__VLS_TypePropsToRuntimeProps_81<{
8718
+ export declare const TaoSkeleton: DefineComponent<ExtractPropTypes<__VLS_WithDefaults_74<__VLS_TypePropsToRuntimeProps_80<{
8661
8719
  variant?: "text" | "title" | "circle" | "rect";
8662
8720
  lines?: number;
8663
8721
  width?: string;
@@ -8667,7 +8725,7 @@ variant: string;
8667
8725
  lines: number;
8668
8726
  width: string;
8669
8727
  height: string;
8670
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_75<__VLS_TypePropsToRuntimeProps_81<{
8728
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_74<__VLS_TypePropsToRuntimeProps_80<{
8671
8729
  variant?: "text" | "title" | "circle" | "rect";
8672
8730
  lines?: number;
8673
8731
  width?: string;
@@ -8866,7 +8924,7 @@ export declare interface TaoStageItem {
8866
8924
  status?: TaoStageStatus;
8867
8925
  }
8868
8926
 
8869
- export declare const TaoStages: __VLS_WithTemplateSlots_74<typeof __VLS_component_74, ReturnType<typeof __VLS_template_74>>;
8927
+ export declare const TaoStages: __VLS_WithTemplateSlots_73<typeof __VLS_component_73, ReturnType<typeof __VLS_template_73>>;
8870
8928
 
8871
8929
  export declare type TaoStageStatus = 'wait' | 'work' | 'ok' | 'bad';
8872
8930
 
@@ -8898,19 +8956,97 @@ export declare interface TaoTabItem {
8898
8956
  disabled?: boolean;
8899
8957
  }
8900
8958
 
8901
- export declare const TaoTable: __VLS_WithTemplateSlots_67<typeof __VLS_component_67, ReturnType<typeof __VLS_template_67>>;
8959
+ export declare const TaoTable: <T extends object = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify_70<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8960
+ props: __VLS_Prettify_70<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
8961
+ readonly onChange?: ((value: TaoTableSort | null) => any) | undefined;
8962
+ readonly "onUpdate:sort"?: ((value: TaoTableSort | null) => any) | undefined;
8963
+ readonly "onRow-click"?: ((row: T, index: number) => any) | undefined;
8964
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>) & {
8965
+ /** `T` is inferred from `rows`: an interface, a class or a plain object. / `T` берётся из `rows`: interface, класс или обычный объект. */
8966
+ columns: readonly TaoTableColumn<NoInfer<T>>[];
8967
+ rows?: readonly T[];
8968
+ rowKey?: TaoTableRowKey<T>;
8969
+ loading?: boolean;
8970
+ emptyText?: string;
8971
+ /** Зебра. `true` / `odd` — с первой строки, `even` — со второй. */
8972
+ striped?: boolean | "odd" | "even";
8973
+ /** Cell padding and text; also the size of controls inside cells. Without it — the size of ancestors. / Отступы и текст ячеек, заодно размер контролов в ячейках. Без него — размер предков. */
8974
+ size?: TaoSize;
8975
+ hover?: boolean;
8976
+ /** Подсветка шапки. */
8977
+ head?: boolean;
8978
+ /** Горизонтальные линии между рядами. */
8979
+ lines?: boolean;
8980
+ sticky?: boolean;
8981
+ /** Number — px, string — any CSS length. / Число — px, строка — любая CSS-длина. */
8982
+ maxHeight?: TaoLength;
8983
+ clickable?: boolean;
8984
+ sort?: TaoTableSort | null;
8985
+ caption?: string;
8986
+ /** The outer frame; not set, it follows the frames context (`.tao-frames-soft`). / Внешняя рамка; не задан — идёт за контекстом рамок. */
8987
+ bordered?: boolean;
8988
+ /**
8989
+ * The table is never narrower than this (a number is px, a string any CSS length); in a narrower place it scrolls sideways
8990
+ * instead of squeezing its columns into words. Not under `stack` cards.
8991
+ * Таблица не уже этого (число — px, строка — любая CSS-длина); в более узком месте она прокручивается вбок, а не сжимает колонки
8992
+ * в столбики. В карточках `stack` не действует.
8993
+ */
8994
+ minWidth?: TaoLength;
8995
+ /**
8996
+ * In a place narrower than 600px (the width of the table itself, not of the window) every row turns into a card: each cell is
8997
+ * shown under its column label. No JavaScript: a container query.
8998
+ * В месте уже 600px (ширина самой таблицы, не окна) каждая строка становится карточкой: ячейка под подписью своей колонки.
8999
+ * Без JavaScript: контейнерный запрос.
9000
+ */
9001
+ stack?: boolean;
9002
+ }, keyof VNodeProps | keyof AllowedComponentProps>> & {} & (VNodeProps & AllowedComponentProps & ComponentCustomProps);
9003
+ expose(exposed: ShallowUnwrapRef< {}>): void;
9004
+ attrs: any;
9005
+ slots: ReturnType<() => Partial<Record<`cell-${string}`, (_: {
9006
+ row: T;
9007
+ column: TaoTableColumn<NoInfer<T>>;
9008
+ value: unknown;
9009
+ index: number;
9010
+ }) => any>> & {
9011
+ empty?(_: {}): any;
9012
+ cell?(_: {
9013
+ row: T;
9014
+ column: TaoTableColumn<NoInfer<T>>;
9015
+ value: unknown;
9016
+ index: number;
9017
+ }): any;
9018
+ loading?(_: {}): any;
9019
+ }>;
9020
+ emit: ((evt: "change", value: TaoTableSort | null) => void) & ((evt: "update:sort", value: TaoTableSort | null) => void) & ((evt: "row-click", row: T, index: number) => void);
9021
+ }>) => VNode & {
9022
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
9023
+ };
8902
9024
 
8903
9025
  export declare type TaoTableAlign = 'left' | 'center' | 'right';
8904
9026
 
8905
- export declare interface TaoTableColumn<T extends Record<string, unknown> = Record<string, unknown>> {
9027
+ /**
9028
+ * A column. `T` is the type of a row: an interface or a class will do (the rows were `Record<string, unknown>[]`, which an interface
9029
+ * does not satisfy). Without `T` (`TaoTableColumn[]`) the column goes with rows of any type.
9030
+ * Колонка. `T` — тип строки: подойдёт и interface, и класс (строки были `Record<string, unknown>[]`, а interface к такому типу не
9031
+ * приводится). Без `T` (`TaoTableColumn[]`) колонка идёт с любыми строками.
9032
+ */
9033
+ export declare interface TaoTableColumn<T extends object = any> {
8906
9034
  key: string;
8907
9035
  label: string;
8908
9036
  align?: TaoTableAlign;
8909
9037
  width?: string | number;
8910
9038
  sortable?: boolean;
8911
- value?: (row: T) => unknown;
9039
+ /** No line break in the cells of this column (a code, a date, a flag); in the cards of `stack` they wrap again. / Без переноса строк в ячейках колонки (код, дата, флаг); в карточках `stack` перенос возвращается. */
9040
+ nowrap?: boolean;
9041
+ /** The column is never narrower than this (a number is px, a string any CSS length). / Колонка не уже этого (число — px, строка — любая CSS-длина). */
9042
+ minWidth?: string | number;
9043
+ /** What the cell shows instead of `row[key]`. / Что показать в ячейке вместо `row[key]`. */
9044
+ value?(row: T): unknown;
8912
9045
  }
8913
9046
 
9047
+ /** A row key: the name of a field (`'id'`) or a function; a number or a string. / Ключ строки: имя поля или функция. */
9048
+ export declare type TaoTableRowKey<T extends object = any> = string | ((row: T, index: number) => string | number);
9049
+
8914
9050
  export declare interface TaoTableSort {
8915
9051
  key: string;
8916
9052
  dir: 'asc' | 'desc';
@@ -9273,6 +9409,38 @@ export declare const TaoTree: __VLS_WithTemplateSlots_45<typeof __VLS_component_
9273
9409
  /** The state of a checkbox: `mixed` is a parent with only some of its leaves checked. / Состояние чекбокса. */
9274
9410
  export declare type TaoTreeCheckState = 'checked' | 'unchecked' | 'mixed';
9275
9411
 
9412
+ /** How a drop meets the row it is aimed at. / Как перенос встаёт относительно строки. */
9413
+ export declare type TaoTreeDropPosition = 'before' | 'after' | 'inside';
9414
+
9415
+ /**
9416
+ * The context menu of a row: a list for every row, or a function of the node and the ids the menu acts on (the selection
9417
+ * after the right click, see `menuSelection`). An empty list leaves the browser's own menu.
9418
+ * Контекстное меню строки: один список для всех строк или функция от узла и id, на которые действует меню (выбор после
9419
+ * правого клика, см. `menuSelection`). Пустой список оставляет меню браузера.
9420
+ */
9421
+ export declare type TaoTreeMenu = TaoMenuItem[] | ((node: TaoTreeNode, selected: string[]) => TaoMenuItem[]);
9422
+
9423
+ /**
9424
+ * A move the tree asks the app to make (`@move`). The tree never changes `nodes`: the app moves the data (or sends it to a
9425
+ * server), and the tree shows the result. `index` is the place among the children of `parentId` once the moved nodes
9426
+ * are taken out of it, so `moveTreeNodes` (or a `splice`) can use it as it is.
9427
+ * Перенос, который дерево просит сделать приложение (`@move`). Дерево не меняет `nodes`: данные переносит приложение (или
9428
+ * отправляет на сервер), а дерево показывает результат. `index` — место среди детей `parentId`, когда переносимые узлы
9429
+ * из них уже вынуты, поэтому `moveTreeNodes` (или `splice`) берёт его как есть.
9430
+ */
9431
+ export declare interface TaoTreeMove {
9432
+ /** The moved nodes, the topmost only (a child goes with its parent), in the order of the rows. / Переносимые узлы. */
9433
+ ids: string[];
9434
+ /** The new parent; null for the top level. / Новый родитель; null — верхний уровень. */
9435
+ parentId: string | null;
9436
+ index: number;
9437
+ /** The row the drop was aimed at, and how. / Строка, на которую целились, и как. */
9438
+ targetId: string;
9439
+ position: TaoTreeDropPosition;
9440
+ /** Ctrl or Alt was held (or Ctrl+C was used): the app puts copies with new ids. / Копия, а не перенос. */
9441
+ copy: boolean;
9442
+ }
9443
+
9276
9444
  /**
9277
9445
  * One node of TaoTree: a file, a folder, an object. A plain data tree; the tree never changes it.
9278
9446
  * Один узел TaoTree: файл, папка, объект. Простое дерево данных; TaoTree его не меняет.
@@ -9289,11 +9457,36 @@ export declare interface TaoTreeNode {
9289
9457
  */
9290
9458
  hasChildren?: boolean;
9291
9459
  disabled?: boolean;
9460
+ /**
9461
+ * A quiet note after the label: «library root», «3 files», a branch name. It is part of the row's accessible name.
9462
+ * Тихая подпись после имени: «library root», «3 файла», имя ветки. Входит в доступное имя строки.
9463
+ */
9464
+ hint?: string;
9465
+ /**
9466
+ * The colour of the label: `muted` for an excluded or ignored node, the others for a state (added, changed, broken).
9467
+ * Not the only sign of a state for a screen reader: say it in `hint` or the label too.
9468
+ * Цвет подписи: `muted` для исключённого или игнорируемого узла, остальные для состояния (добавлен, изменён, сломан).
9469
+ * Для скринридера это не единственный признак: скажите о состоянии и в `hint` или подписи.
9470
+ */
9471
+ tone?: TaoTreeTone;
9292
9472
  }
9293
9473
 
9294
9474
  /** `none` — nothing to select, `single` — one node, `multiple` — a set. / Режим выбора. */
9295
9475
  export declare type TaoTreeSelection = 'none' | 'single' | 'multiple';
9296
9476
 
9477
+ /**
9478
+ * The order of the rows: `none` keeps the order of the data (and rows can be dragged between each other), `name` puts
9479
+ * folders first and sorts by name as people read it («file 2» before «file 10»), a function is your own compare. With a
9480
+ * sort the order is the tree's, so a drag only changes the folder, never the place among siblings.
9481
+ * Порядок строк: `none` держит порядок данных (и строки можно ставить между другими), `name` ставит папки первыми и
9482
+ * сортирует по имени так, как читают люди («файл 2» раньше «файл 10»), функция — своё сравнение. С сортировкой порядок
9483
+ * задаёт дерево, поэтому перенос меняет только папку, а не место среди соседей.
9484
+ */
9485
+ export declare type TaoTreeSort = 'none' | 'name' | ((a: TaoTreeNode, b: TaoTreeNode) => number);
9486
+
9487
+ /** The colour of a row's label. / Цвет подписи строки. */
9488
+ export declare type TaoTreeTone = 'muted' | 'accent' | 'info' | 'success' | 'warning' | 'danger';
9489
+
9297
9490
  declare const TaoUI: Plugin_2<[TaoUIOptions?]>;
9298
9491
  export { TaoUI }
9299
9492
  export default TaoUI;