@revisium/schema-toolkit-ui 0.4.0 → 0.5.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.cts CHANGED
@@ -3,7 +3,7 @@ import { Diagnostic, InferNode, JsonObjectSchema, JsonPatch, JsonSchema, JsonVal
3
3
  import * as React$1 from "react";
4
4
  import React, { FC, FocusEventHandler, FormEventHandler, KeyboardEventHandler, PropsWithChildren, RefCallback } from "react";
5
5
  import { BoxProps, IconButtonProps, Tooltip as Tooltip$1 } from "@chakra-ui/react";
6
- import * as react_jsx_runtime10 from "react/jsx-runtime";
6
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
7
7
  export * from "@revisium/schema-toolkit";
8
8
 
9
9
  //#region src/schema-editor/model/state/TreeState.d.ts
@@ -620,7 +620,11 @@ interface FileUploadResult {
620
620
  }
621
621
  interface RowEditorCallbacks {
622
622
  onSearchForeignKey?: (tableId: string, search: string) => Promise<ForeignKeySearchResult>;
623
- onUploadFile?: (fileId: string, file: File) => Promise<Record<string, unknown> | null>;
623
+ onUploadFile?: (params: {
624
+ rowId: string;
625
+ fileId: string;
626
+ file: File;
627
+ }) => Promise<Record<string, unknown> | null>;
624
628
  onOpenFile?: (url: string) => void;
625
629
  onNavigateToForeignKey?: (tableId: string, rowId: string) => void;
626
630
  onOpenTableSearch?: (tableId: string) => Promise<string | null>;
@@ -628,6 +632,7 @@ interface RowEditorCallbacks {
628
632
  }
629
633
  interface EditorContext {
630
634
  readonly isReadOnly: boolean;
635
+ readonly rowId: string;
631
636
  readonly callbacks: RowEditorCallbacks | null;
632
637
  }
633
638
  interface NodeVM {
@@ -885,6 +890,7 @@ declare class ColumnsModel {
885
890
  get canRemoveColumn(): boolean;
886
891
  get sortableFields(): ColumnSpec[];
887
892
  get filterableFields(): ColumnSpec[];
893
+ private get _operableFields();
888
894
  get pinnedLeftCount(): number;
889
895
  get pinnedRightCount(): number;
890
896
  init(columns: ColumnSpec[]): void;
@@ -905,6 +911,7 @@ declare class ColumnsModel {
905
911
  insertColumnAfter(targetField: string, newField: string): void;
906
912
  reorderColumns(fields: string[]): void;
907
913
  setColumnWidth(field: string, width: number): void;
914
+ commitColumnWidth(): void;
908
915
  getColumnWidth(field: string): number | undefined;
909
916
  resolveColumnWidth(field: string): number;
910
917
  getPinState(field: string): PinSide | undefined;
@@ -1246,6 +1253,7 @@ declare class FilterCore {
1246
1253
  applyAndClose(): void;
1247
1254
  reset(): void;
1248
1255
  applySnapshot(serialized: string): void;
1256
+ private static _stripInvalidConditions;
1249
1257
  clearAll(): void;
1250
1258
  clearAllAndClose(): void;
1251
1259
  isConditionValid(id: string): boolean;
@@ -1269,7 +1277,7 @@ interface FilterWidgetProps {
1269
1277
  declare const FilterWidget: (({
1270
1278
  model,
1271
1279
  availableFields
1272
- }: FilterWidgetProps) => react_jsx_runtime10.JSX.Element) & {
1280
+ }: FilterWidgetProps) => react_jsx_runtime24.JSX.Element) & {
1273
1281
  displayName: string;
1274
1282
  };
1275
1283
  //#endregion
@@ -1285,7 +1293,7 @@ declare const FilterGroupView: (({
1285
1293
  group,
1286
1294
  availableFields,
1287
1295
  isRoot
1288
- }: FilterGroupViewProps) => react_jsx_runtime10.JSX.Element) & {
1296
+ }: FilterGroupViewProps) => react_jsx_runtime24.JSX.Element) & {
1289
1297
  displayName: string;
1290
1298
  };
1291
1299
  //#endregion
@@ -1299,7 +1307,7 @@ declare const FilterConditionView: (({
1299
1307
  model,
1300
1308
  condition,
1301
1309
  availableFields
1302
- }: FilterConditionViewProps) => react_jsx_runtime10.JSX.Element) & {
1310
+ }: FilterConditionViewProps) => react_jsx_runtime24.JSX.Element) & {
1303
1311
  displayName: string;
1304
1312
  };
1305
1313
  //#endregion
@@ -1315,7 +1323,7 @@ declare const FieldSelect: (({
1315
1323
  fieldType,
1316
1324
  fields,
1317
1325
  onChange
1318
- }: FieldSelectProps) => react_jsx_runtime10.JSX.Element) & {
1326
+ }: FieldSelectProps) => react_jsx_runtime24.JSX.Element) & {
1319
1327
  displayName: string;
1320
1328
  };
1321
1329
  //#endregion
@@ -1329,7 +1337,7 @@ declare const OperatorSelect: (({
1329
1337
  value,
1330
1338
  fieldType,
1331
1339
  onChange
1332
- }: OperatorSelectProps) => react_jsx_runtime10.JSX.Element) & {
1340
+ }: OperatorSelectProps) => react_jsx_runtime24.JSX.Element) & {
1333
1341
  displayName: string;
1334
1342
  };
1335
1343
  //#endregion
@@ -1345,7 +1353,7 @@ declare const FilterValueInput: (({
1345
1353
  fieldType,
1346
1354
  onChange,
1347
1355
  error
1348
- }: FilterValueInputProps) => react_jsx_runtime10.JSX.Element) & {
1356
+ }: FilterValueInputProps) => react_jsx_runtime24.JSX.Element) & {
1349
1357
  displayName: string;
1350
1358
  };
1351
1359
  //#endregion
@@ -1370,7 +1378,7 @@ interface SearchWidgetProps {
1370
1378
  }
1371
1379
  declare const SearchWidget: (({
1372
1380
  model
1373
- }: SearchWidgetProps) => react_jsx_runtime10.JSX.Element) & {
1381
+ }: SearchWidgetProps) => react_jsx_runtime24.JSX.Element) & {
1374
1382
  displayName: string;
1375
1383
  };
1376
1384
  //#endregion
@@ -1462,7 +1470,7 @@ declare const SortingsWidget: (({
1462
1470
  model,
1463
1471
  availableFields,
1464
1472
  onChange
1465
- }: SortingsWidgetProps) => react_jsx_runtime10.JSX.Element) & {
1473
+ }: SortingsWidgetProps) => react_jsx_runtime24.JSX.Element) & {
1466
1474
  displayName: string;
1467
1475
  };
1468
1476
  //#endregion
@@ -1478,7 +1486,7 @@ declare const SortRow: (({
1478
1486
  index,
1479
1487
  model,
1480
1488
  availableFields
1481
- }: SortRowProps) => react_jsx_runtime10.JSX.Element) & {
1489
+ }: SortRowProps) => react_jsx_runtime24.JSX.Element) & {
1482
1490
  displayName: string;
1483
1491
  };
1484
1492
  //#endregion
@@ -1492,7 +1500,7 @@ declare const SortFieldSelect: (({
1492
1500
  currentField,
1493
1501
  availableFields,
1494
1502
  onChange
1495
- }: SortFieldSelectProps) => react_jsx_runtime10.JSX.Element) & {
1503
+ }: SortFieldSelectProps) => react_jsx_runtime24.JSX.Element) & {
1496
1504
  displayName: string;
1497
1505
  };
1498
1506
  //#endregion
@@ -1504,7 +1512,7 @@ interface SortDirectionSelectProps {
1504
1512
  declare const SortDirectionSelect: (({
1505
1513
  selectedDirection,
1506
1514
  onSelect
1507
- }: SortDirectionSelectProps) => react_jsx_runtime10.JSX.Element) & {
1515
+ }: SortDirectionSelectProps) => react_jsx_runtime24.JSX.Element) & {
1508
1516
  displayName: string;
1509
1517
  };
1510
1518
  //#endregion
@@ -1605,7 +1613,8 @@ declare class CellVM {
1605
1613
  private readonly _rowId;
1606
1614
  private readonly _cellFSM;
1607
1615
  private readonly _onCommit;
1608
- constructor(rowModel: RowModel, column: ColumnSpec, rowId: string, cellFSM: CellFSM, onCommit?: CellCommitCallback);
1616
+ private readonly _systemValues;
1617
+ constructor(rowModel: RowModel, column: ColumnSpec, rowId: string, cellFSM: CellFSM, onCommit?: CellCommitCallback, systemValues?: Record<string, unknown>);
1609
1618
  get field(): string;
1610
1619
  get jsonPath(): string;
1611
1620
  get column(): ColumnSpec;
@@ -1614,6 +1623,15 @@ declare class CellVM {
1614
1623
  get displayValue(): string;
1615
1624
  get isReadOnly(): boolean;
1616
1625
  get foreignKeyTableId(): string | undefined;
1626
+ get fileData(): {
1627
+ status: string;
1628
+ fileId: string;
1629
+ url: string;
1630
+ fileName: string;
1631
+ mimeType: string;
1632
+ width: number;
1633
+ height: number;
1634
+ } | null;
1617
1635
  get isEditable(): boolean;
1618
1636
  get isFocused(): boolean;
1619
1637
  get isEditing(): boolean;
@@ -1630,6 +1648,7 @@ declare class CellVM {
1630
1648
  commitEdit(newValue: unknown): void;
1631
1649
  commitEditAndMoveDown(newValue?: unknown): void;
1632
1650
  cancelEdit(): void;
1651
+ commitFileUpload(result: Record<string, unknown>): void;
1633
1652
  clearToDefault(): void;
1634
1653
  copyToClipboard(): Promise<void>;
1635
1654
  pasteFromClipboard(): Promise<void>;
@@ -1648,6 +1667,8 @@ declare class CellVM {
1648
1667
  dragStart(): void;
1649
1668
  dragExtend(): void;
1650
1669
  private _getNode;
1670
+ private _getFileNameNode;
1671
+ private _commitFileNameEdit;
1651
1672
  private _applyPastedString;
1652
1673
  private _applyPastedNumber;
1653
1674
  private _applyPastedBoolean;
@@ -1660,8 +1681,9 @@ declare class RowVM {
1660
1681
  private readonly _cellFSM;
1661
1682
  private readonly _selection;
1662
1683
  private readonly _onCellCommit;
1684
+ private readonly _systemValues;
1663
1685
  private readonly _cellCache;
1664
- constructor(rowModel: RowModel, rowId: string, cellFSM: CellFSM, selection: SelectionModel, onCellCommit?: CellCommitCallback);
1686
+ constructor(rowModel: RowModel, rowId: string, cellFSM: CellFSM, selection: SelectionModel, onCellCommit?: CellCommitCallback, systemValues?: Record<string, unknown>);
1665
1687
  get rowId(): string;
1666
1688
  get rowModel(): RowModel;
1667
1689
  get isSelected(): boolean;
@@ -1722,11 +1744,19 @@ declare const SearchForeignKey: FC<SearchForeignKeyProps>;
1722
1744
  interface CellRendererProps {
1723
1745
  cell: CellVM;
1724
1746
  onSearchForeignKey?: SearchForeignKeySearchFn;
1747
+ onUploadFile?: (params: {
1748
+ rowId: string;
1749
+ fileId: string;
1750
+ file: File;
1751
+ }) => Promise<Record<string, unknown> | null>;
1752
+ onOpenFile?: (url: string) => void;
1725
1753
  }
1726
1754
  declare const CellRenderer: (({
1727
1755
  cell,
1728
- onSearchForeignKey
1729
- }: CellRendererProps) => react_jsx_runtime10.JSX.Element) & {
1756
+ onSearchForeignKey,
1757
+ onUploadFile,
1758
+ onOpenFile
1759
+ }: CellRendererProps) => react_jsx_runtime24.JSX.Element) & {
1730
1760
  displayName: string;
1731
1761
  };
1732
1762
  //#endregion
@@ -1746,7 +1776,7 @@ interface StringCellProps {
1746
1776
  }
1747
1777
  declare const StringCell: (({
1748
1778
  cell
1749
- }: StringCellProps) => react_jsx_runtime10.JSX.Element) & {
1779
+ }: StringCellProps) => react_jsx_runtime24.JSX.Element) & {
1750
1780
  displayName: string;
1751
1781
  };
1752
1782
  //#endregion
@@ -1756,7 +1786,7 @@ interface NumberCellProps {
1756
1786
  }
1757
1787
  declare const NumberCell: (({
1758
1788
  cell
1759
- }: NumberCellProps) => react_jsx_runtime10.JSX.Element) & {
1789
+ }: NumberCellProps) => react_jsx_runtime24.JSX.Element) & {
1760
1790
  displayName: string;
1761
1791
  };
1762
1792
  //#endregion
@@ -1766,7 +1796,7 @@ interface BooleanCellProps {
1766
1796
  }
1767
1797
  declare const BooleanCell: (({
1768
1798
  cell
1769
- }: BooleanCellProps) => react_jsx_runtime10.JSX.Element) & {
1799
+ }: BooleanCellProps) => react_jsx_runtime24.JSX.Element) & {
1770
1800
  displayName: string;
1771
1801
  };
1772
1802
  //#endregion
@@ -1778,19 +1808,21 @@ interface ForeignKeyCellProps {
1778
1808
  declare const ForeignKeyCell: (({
1779
1809
  cell,
1780
1810
  onSearchForeignKey
1781
- }: ForeignKeyCellProps) => react_jsx_runtime10.JSX.Element) & {
1811
+ }: ForeignKeyCellProps) => react_jsx_runtime24.JSX.Element) & {
1782
1812
  displayName: string;
1783
1813
  };
1784
1814
  //#endregion
1785
1815
  //#region src/table-editor/Table/ui/Cell/FileCell.d.ts
1786
1816
  interface FileCellProps {
1787
1817
  cell: CellVM;
1818
+ onUploadFile?: (params: {
1819
+ rowId: string;
1820
+ fileId: string;
1821
+ file: File;
1822
+ }) => Promise<Record<string, unknown> | null>;
1823
+ onOpenFile?: (url: string) => void;
1788
1824
  }
1789
- declare const FileCell: (({
1790
- cell
1791
- }: FileCellProps) => react_jsx_runtime10.JSX.Element) & {
1792
- displayName: string;
1793
- };
1825
+ declare const FileCell: FC<FileCellProps>;
1794
1826
  //#endregion
1795
1827
  //#region src/table-editor/Table/ui/Cell/DateTimeCell.d.ts
1796
1828
  interface DateTimeCellProps {
@@ -1798,7 +1830,7 @@ interface DateTimeCellProps {
1798
1830
  }
1799
1831
  declare const DateTimeCell: (({
1800
1832
  cell
1801
- }: DateTimeCellProps) => react_jsx_runtime10.JSX.Element) & {
1833
+ }: DateTimeCellProps) => react_jsx_runtime24.JSX.Element) & {
1802
1834
  displayName: string;
1803
1835
  };
1804
1836
  //#endregion
@@ -1808,7 +1840,7 @@ interface ReadonlyCellProps {
1808
1840
  }
1809
1841
  declare const ReadonlyCell: (({
1810
1842
  cell
1811
- }: ReadonlyCellProps) => react_jsx_runtime10.JSX.Element) & {
1843
+ }: ReadonlyCellProps) => react_jsx_runtime24.JSX.Element) & {
1812
1844
  displayName: string;
1813
1845
  };
1814
1846
  //#endregion
@@ -1821,6 +1853,12 @@ interface TableWidgetProps {
1821
1853
  sortModel?: SortModel;
1822
1854
  filterModel?: FilterCore;
1823
1855
  onSearchForeignKey?: SearchForeignKeySearchFn;
1856
+ onUploadFile?: (params: {
1857
+ rowId: string;
1858
+ fileId: string;
1859
+ file: File;
1860
+ }) => Promise<Record<string, unknown> | null>;
1861
+ onOpenFile?: (url: string) => void;
1824
1862
  onOpenRow?: (rowId: string) => void;
1825
1863
  onDeleteSelected?: (ids: string[]) => void;
1826
1864
  onDuplicateSelected?: (ids: string[]) => void;
@@ -1839,6 +1877,8 @@ declare const TableWidget: (({
1839
1877
  sortModel,
1840
1878
  filterModel,
1841
1879
  onSearchForeignKey,
1880
+ onUploadFile,
1881
+ onOpenFile,
1842
1882
  onOpenRow,
1843
1883
  onDeleteSelected,
1844
1884
  onDuplicateSelected,
@@ -1848,10 +1888,19 @@ declare const TableWidget: (({
1848
1888
  onEndReached,
1849
1889
  isLoadingMore,
1850
1890
  useWindowScroll: useWindowScrollProp
1851
- }: TableWidgetProps) => react_jsx_runtime10.JSX.Element) & {
1891
+ }: TableWidgetProps) => react_jsx_runtime24.JSX.Element) & {
1852
1892
  displayName: string;
1853
1893
  };
1854
1894
  //#endregion
1895
+ //#region src/table-editor/Table/ui/hooks/useScrollShadow.d.ts
1896
+ declare class ScrollShadowModel {
1897
+ showLeftShadow: boolean;
1898
+ showRightShadow: boolean;
1899
+ constructor();
1900
+ update(left: boolean, right: boolean): void;
1901
+ reset(): void;
1902
+ }
1903
+ //#endregion
1855
1904
  //#region src/table-editor/Table/ui/HeaderRow.d.ts
1856
1905
  interface HeaderRowProps {
1857
1906
  columnsModel: ColumnsModel;
@@ -1859,8 +1908,7 @@ interface HeaderRowProps {
1859
1908
  filterModel?: FilterCore;
1860
1909
  onCopyPath?: (path: string) => void;
1861
1910
  showSelection?: boolean;
1862
- showLeftShadow?: boolean;
1863
- showRightShadow?: boolean;
1911
+ scrollShadow?: ScrollShadowModel;
1864
1912
  }
1865
1913
  declare const HeaderRow: (({
1866
1914
  columnsModel,
@@ -1868,9 +1916,8 @@ declare const HeaderRow: (({
1868
1916
  filterModel,
1869
1917
  onCopyPath,
1870
1918
  showSelection,
1871
- showLeftShadow,
1872
- showRightShadow
1873
- }: HeaderRowProps) => react_jsx_runtime10.JSX.Element) & {
1919
+ scrollShadow
1920
+ }: HeaderRowProps) => react_jsx_runtime24.JSX.Element) & {
1874
1921
  displayName: string;
1875
1922
  };
1876
1923
  //#endregion
@@ -1879,9 +1926,14 @@ interface DataRowProps {
1879
1926
  row: RowVM;
1880
1927
  columnsModel: ColumnsModel;
1881
1928
  showSelection: boolean;
1882
- showLeftShadow?: boolean;
1883
- showRightShadow?: boolean;
1929
+ scrollShadow?: ScrollShadowModel;
1884
1930
  onSearchForeignKey?: SearchForeignKeySearchFn;
1931
+ onUploadFile?: (params: {
1932
+ rowId: string;
1933
+ fileId: string;
1934
+ file: File;
1935
+ }) => Promise<Record<string, unknown> | null>;
1936
+ onOpenFile?: (url: string) => void;
1885
1937
  onOpenRow?: (rowId: string) => void;
1886
1938
  onSelectRow?: (rowId: string) => void;
1887
1939
  onDuplicateRow?: (rowId: string) => void;
@@ -1891,14 +1943,15 @@ declare const DataRow: (({
1891
1943
  row,
1892
1944
  columnsModel,
1893
1945
  showSelection,
1894
- showLeftShadow,
1895
- showRightShadow,
1946
+ scrollShadow,
1896
1947
  onSearchForeignKey,
1948
+ onUploadFile,
1949
+ onOpenFile,
1897
1950
  onOpenRow,
1898
1951
  onSelectRow,
1899
1952
  onDuplicateRow,
1900
1953
  onDeleteRow
1901
- }: DataRowProps) => react_jsx_runtime10.JSX.Element) & {
1954
+ }: DataRowProps) => react_jsx_runtime24.JSX.Element) & {
1902
1955
  displayName: string;
1903
1956
  };
1904
1957
  //#endregion
@@ -1910,7 +1963,7 @@ interface ResizeHandleProps {
1910
1963
  declare const ResizeHandle: (({
1911
1964
  field,
1912
1965
  columnsModel
1913
- }: ResizeHandleProps) => react_jsx_runtime10.JSX.Element) & {
1966
+ }: ResizeHandleProps) => react_jsx_runtime24.JSX.Element) & {
1914
1967
  displayName: string;
1915
1968
  };
1916
1969
  //#endregion
@@ -1926,7 +1979,7 @@ declare const SelectionToolbar: (({
1926
1979
  allRowIds,
1927
1980
  onDuplicate,
1928
1981
  onDelete
1929
- }: SelectionToolbarProps) => react_jsx_runtime10.JSX.Element) & {
1982
+ }: SelectionToolbarProps) => react_jsx_runtime24.JSX.Element) & {
1930
1983
  displayName: string;
1931
1984
  };
1932
1985
  //#endregion
@@ -1992,15 +2045,25 @@ declare class ViewSettingsBadgeModel {
1992
2045
  }
1993
2046
  //#endregion
1994
2047
  //#region src/table-editor/TableEditor/model/ITableDataSource.d.ts
2048
+ interface SystemFields {
2049
+ createdAt?: string;
2050
+ updatedAt?: string;
2051
+ publishedAt?: string;
2052
+ versionId?: string;
2053
+ createdId?: string;
2054
+ hash?: string;
2055
+ schemaHash?: string;
2056
+ }
1995
2057
  interface RowDataItem {
1996
2058
  rowId: string;
1997
2059
  data: Record<string, unknown>;
2060
+ systemFields?: SystemFields;
1998
2061
  }
1999
2062
  interface TableMetadata {
2000
- schema: JsonSchema;
2001
- columns: ColumnSpec[];
2063
+ dataSchema: JsonObjectSchema;
2002
2064
  viewState: ViewState | null;
2003
2065
  readonly: boolean;
2066
+ refSchemas?: RefSchemas;
2004
2067
  }
2005
2068
  interface TableQuery {
2006
2069
  where: Record<string, unknown> | null;
@@ -2061,6 +2124,11 @@ interface TableEditorBreadcrumb {
2061
2124
  label: string;
2062
2125
  dataTestId?: string;
2063
2126
  }
2127
+ interface UploadFileParams {
2128
+ rowId: string;
2129
+ fileId: string;
2130
+ file: File;
2131
+ }
2064
2132
  interface TableEditorCallbacks {
2065
2133
  onBreadcrumbClick?: (segment: TableEditorBreadcrumb, index: number) => void;
2066
2134
  onCreateRow?: () => void;
@@ -2068,6 +2136,8 @@ interface TableEditorCallbacks {
2068
2136
  onDuplicateRow?: (rowId: string) => void;
2069
2137
  onSearchForeignKey?: SearchForeignKeySearchFn;
2070
2138
  onCopyPath?: (path: string) => void;
2139
+ onUploadFile?: (params: UploadFileParams) => Promise<Record<string, unknown> | null>;
2140
+ onOpenFile?: (url: string) => void;
2071
2141
  }
2072
2142
  interface TableEditorOptions {
2073
2143
  tableId: string;
@@ -2089,7 +2159,7 @@ declare class TableEditorCore {
2089
2159
  private readonly _breadcrumbs;
2090
2160
  private readonly _callbacks;
2091
2161
  private readonly _tableId;
2092
- private _schema;
2162
+ private readonly _schemaContext;
2093
2163
  private _readonly;
2094
2164
  private _rows;
2095
2165
  private _isBootstrapping;
@@ -2117,6 +2187,7 @@ declare class TableEditorCore {
2117
2187
  private _replaceRowVMs;
2118
2188
  private _appendRowVMs;
2119
2189
  private _createRowVMs;
2190
+ private _buildSystemValues;
2120
2191
  private _commitCell;
2121
2192
  private _updateNavigationContext;
2122
2193
  private _handleColumnsChange;
@@ -2133,27 +2204,27 @@ declare class TableEditorCore {
2133
2204
  //#endregion
2134
2205
  //#region src/table-editor/TableEditor/model/MockDataSource.d.ts
2135
2206
  interface MockDataSourceParams {
2136
- schema: JsonSchema;
2137
- columns: ColumnSpec[];
2207
+ dataSchema: JsonObjectSchema;
2138
2208
  rows: RowDataItem[];
2139
2209
  viewState?: ViewState | null;
2140
2210
  readonly?: boolean;
2141
2211
  failPatches?: Set<string>;
2212
+ refSchemas?: RefSchemas;
2142
2213
  }
2143
2214
  declare class MockDataSource implements ITableDataSource {
2144
2215
  private _allRows;
2145
- private readonly _schema;
2146
- private readonly _columns;
2216
+ private readonly _dataSchema;
2147
2217
  private readonly _viewState;
2148
2218
  private readonly _readonly;
2149
2219
  private readonly _failPatches;
2220
+ private readonly _refSchemas;
2150
2221
  readonly fetchMetadataLog: Array<true>;
2151
2222
  readonly fetchLog: TableQuery[];
2152
2223
  readonly patchLog: CellPatch[][];
2153
2224
  readonly deleteLog: string[][];
2154
2225
  readonly saveViewLog: ViewState[];
2155
2226
  constructor(params: MockDataSourceParams);
2156
- static createRow(rowId: string, data: Record<string, unknown>): RowDataItem;
2227
+ static createRow(rowId: string, data: Record<string, unknown>, systemFields?: SystemFields): RowDataItem;
2157
2228
  fetchMetadata(): Promise<TableMetadata>;
2158
2229
  fetchRows(query: TableQuery): Promise<FetchRowsResult>;
2159
2230
  patchCells(patches: CellPatch[]): Promise<CellPatchResult[]>;
@@ -2163,6 +2234,21 @@ declare class MockDataSource implements ITableDataSource {
2163
2234
  }>;
2164
2235
  }
2165
2236
  //#endregion
2237
+ //#region src/table-editor/TableEditor/model/SchemaContext.d.ts
2238
+ declare class SchemaContext {
2239
+ private _allColumns;
2240
+ private _dataSchema;
2241
+ private _fullRefSchemas;
2242
+ private _rootNode;
2243
+ get allColumns(): ColumnSpec[];
2244
+ get sortableFields(): ColumnSpec[];
2245
+ get filterableFields(): ColumnSpec[];
2246
+ get dataSchema(): JsonObjectSchema | null;
2247
+ get fullRefSchemas(): RefSchemas;
2248
+ get rootNode(): SchemaNode | null;
2249
+ init(dataSchema: JsonObjectSchema, refSchemas?: RefSchemas): void;
2250
+ }
2251
+ //#endregion
2166
2252
  //#region src/table-editor/TableEditor/ui/TableEditor.d.ts
2167
2253
  interface TableEditorProps {
2168
2254
  viewModel: TableEditorCore;
@@ -2176,7 +2262,7 @@ interface RowCountWidgetProps {
2176
2262
  }
2177
2263
  declare const RowCountWidget: (({
2178
2264
  model
2179
- }: RowCountWidgetProps) => react_jsx_runtime10.JSX.Element) & {
2265
+ }: RowCountWidgetProps) => react_jsx_runtime24.JSX.Element) & {
2180
2266
  displayName: string;
2181
2267
  };
2182
2268
  //#endregion
@@ -2186,7 +2272,7 @@ interface ViewSettingsBadgeProps {
2186
2272
  }
2187
2273
  declare const ViewSettingsBadge: (({
2188
2274
  model
2189
- }: ViewSettingsBadgeProps) => react_jsx_runtime10.JSX.Element | null) & {
2275
+ }: ViewSettingsBadgeProps) => react_jsx_runtime24.JSX.Element | null) & {
2190
2276
  displayName: string;
2191
2277
  };
2192
2278
  //#endregion
@@ -2301,5 +2387,5 @@ declare const ViewerSwitcher: React.FC<ViewerSwitcherProps>;
2301
2387
  //#region src/lib/initReactivity.d.ts
2302
2388
  declare function ensureReactivityProvider(): void;
2303
2389
  //#endregion
2304
- export { type ArrayNodeVM, BackButton, BooleanCell, type BreadcrumbEditableProps, type BreadcrumbSegment, Breadcrumbs, type BreadcrumbsProps, type CellAddress, CellCommitCallback, CellFSM, CellPatch, CellPatchResult, CellRenderer, CellVM, CellWrapper, CloseButton, ColumnSpec, ColumnsModel, ContentEditable, type ContentEditableProps, CopyButton, CreateButton, CreatingEditorVM, type CreatingEditorVMOptions, CreatingSchemaEditor, type CreatingSchemaEditorProps, DataRow, DateTimeCell, DeleteConfirmDialog, DeleteRowsResult, type EditTrigger, FetchRowsResult, FieldSelect, FileCell, type FileNodeVM, type FileUploadResult, FilterCondition, FilterConditionVM, FilterConditionView, FilterCore, FilterCore as FilterModel, FilterFieldType, FilterGroup, FilterGroupVM, FilterGroupView, FilterOperator, FilterValueInput, FilterWidget, type FlatItem, ForeignKeyCell, type ForeignKeyNodeVM, type ForeignKeySearchResult, type ForeignKeySelectionCallback, GrayButton, HeaderRow, ITableDataSource, JsonCard, type MenuGroup, type MenuOptionItem, MockDataSource, type NodeVM, NumberCell, OPERATORS_BY_TYPE, type ObjectNodeVM, OperatorInfo, OperatorSelect, PlusButton, type PlusButtonProps, type PrimitiveNodeVM, ReadonlyCell, ResizeHandle, RowActionsMenu, RowCountModel, RowCountWidget, RowDataItem, RowEditor, type RowEditorCallbacks, type RowEditorMode, type RowEditorProps, RowEditorVM, type RowEditorVMOptions, RowVM, SEARCH_LANGUAGES, SEARCH_TYPES, SORT_SCHEMA, SYSTEM_FIELDS, SYSTEM_FIELD_BY_REF, SYSTEM_FIELD_IDS, SchemaEditorCore, type SchemaEditorCoreOptions, SchemaTypeIds, SearchForeignKey, type SearchForeignKeyProps, type SearchForeignKeySearchFn, SearchForeignKeyVM, SearchLanguage, SearchModel, SearchType, SearchWidget, SelectionModel, SelectionToolbar, SettingsButton, SortDirectionSelect, SortEntry, SortFieldSelect, SortModel, SortRow, SortingsWidget, StringCell, SystemFieldDef, SystemFieldId, TableEditor, TableEditorBreadcrumb, TableEditorCallbacks, TableEditorCore, TableEditorOptions, type TableEditorProps, TableMetadata, TableQuery, TableWidget, Tooltip, type TooltipProps, UpdatingEditorVM, type UpdatingEditorVMOptions, UpdatingSchemaEditor, type UpdatingSchemaEditorProps, type UseContentEditableOptions, type UseContentEditableReturn, ViewColumn, type ViewMode, ViewSettingsBadge, ViewSettingsBadgeModel, ViewSort, ViewState, ViewerSwitcher, ViewerSwitcherMode, buildWhereClause, ensureReactivityProvider, extractColumns, getDefaultOperator, getLabelByRef, getOperatorLabel, getOperatorsForType, operatorRequiresValue, selectDefaultColumns, typeMenuGroups, useContentEditable };
2390
+ export { type ArrayNodeVM, BackButton, BooleanCell, type BreadcrumbEditableProps, type BreadcrumbSegment, Breadcrumbs, type BreadcrumbsProps, type CellAddress, CellCommitCallback, CellFSM, CellPatch, CellPatchResult, CellRenderer, CellVM, CellWrapper, CloseButton, ColumnSpec, ColumnsModel, ContentEditable, type ContentEditableProps, CopyButton, CreateButton, CreatingEditorVM, type CreatingEditorVMOptions, CreatingSchemaEditor, type CreatingSchemaEditorProps, DataRow, DateTimeCell, DeleteConfirmDialog, DeleteRowsResult, type EditTrigger, FetchRowsResult, FieldSelect, FileCell, type FileNodeVM, type FileUploadResult, FilterCondition, FilterConditionVM, FilterConditionView, FilterCore, FilterCore as FilterModel, FilterFieldType, FilterGroup, FilterGroupVM, FilterGroupView, FilterOperator, FilterValueInput, FilterWidget, type FlatItem, ForeignKeyCell, type ForeignKeyNodeVM, type ForeignKeySearchResult, type ForeignKeySelectionCallback, GrayButton, HeaderRow, ITableDataSource, JsonCard, type MenuGroup, type MenuOptionItem, MockDataSource, type NodeVM, NumberCell, OPERATORS_BY_TYPE, type ObjectNodeVM, OperatorInfo, OperatorSelect, PlusButton, type PlusButtonProps, type PrimitiveNodeVM, ReadonlyCell, ResizeHandle, RowActionsMenu, RowCountModel, RowCountWidget, RowDataItem, RowEditor, type RowEditorCallbacks, type RowEditorMode, type RowEditorProps, RowEditorVM, type RowEditorVMOptions, RowVM, SEARCH_LANGUAGES, SEARCH_TYPES, SORT_SCHEMA, SYSTEM_FIELDS, SYSTEM_FIELD_BY_REF, SYSTEM_FIELD_IDS, SchemaContext, SchemaEditorCore, type SchemaEditorCoreOptions, SchemaTypeIds, SearchForeignKey, type SearchForeignKeyProps, type SearchForeignKeySearchFn, SearchForeignKeyVM, SearchLanguage, SearchModel, SearchType, SearchWidget, SelectionModel, SelectionToolbar, SettingsButton, SortDirectionSelect, SortEntry, SortFieldSelect, SortModel, SortRow, SortingsWidget, StringCell, SystemFieldDef, SystemFieldId, SystemFields, TableEditor, TableEditorBreadcrumb, TableEditorCallbacks, TableEditorCore, TableEditorOptions, type TableEditorProps, TableMetadata, TableQuery, TableWidget, Tooltip, type TooltipProps, UpdatingEditorVM, type UpdatingEditorVMOptions, UpdatingSchemaEditor, type UpdatingSchemaEditorProps, UploadFileParams, type UseContentEditableOptions, type UseContentEditableReturn, ViewColumn, type ViewMode, ViewSettingsBadge, ViewSettingsBadgeModel, ViewSort, ViewState, ViewerSwitcher, ViewerSwitcherMode, buildWhereClause, ensureReactivityProvider, extractColumns, getDefaultOperator, getLabelByRef, getOperatorLabel, getOperatorsForType, operatorRequiresValue, selectDefaultColumns, typeMenuGroups, useContentEditable };
2305
2391
  //# sourceMappingURL=index.d.cts.map