@snack-uikit/table 0.20.5 → 0.20.6
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/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/dist/components/ServerTable/ServerTable.d.ts +1 -12
- package/dist/components/ServerTable/utils.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +1 -12
- package/dist/helperComponents/Cells/Cell.d.ts +5 -5
- package/dist/helperComponents/Cells/StatusCell/constants.d.ts +1 -12
- package/package.json +2 -2
- package/src/helperComponents/Cells/StatusCell/constants.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.20.6 (2024-07-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **FF-3788:** updated typescript to v5 ([89e3338](https://github.com/cloud-ru-tech/snack-uikit/commit/89e3338a3ef4df24e4c20d9a9c8cd16e7934ba63))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.20.5 (2024-07-29)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
package/README.md
CHANGED
|
@@ -172,7 +172,6 @@ const columnDefinitions: ColumnDefinition<TableData>[] = [
|
|
|
172
172
|
|------|------|---------------|-------------|
|
|
173
173
|
| onChangePage* | `(offset: number, limit: number) => void` | - | |
|
|
174
174
|
| columnDefinitions* | `ColumnDefinition<TData>[]` | - | Определение внешнего вида и функционала колонок |
|
|
175
|
-
| loading | `boolean` | - | Состояние загрузки |
|
|
176
175
|
| keepPinnedRows | `boolean` | false | Параметр отвечает за отображение закрепленных строк на всех страницах таблицы |
|
|
177
176
|
| copyPinnedRows | `boolean` | false | Параметр отвечает за сохранение закрепленных строк в теле таблицы |
|
|
178
177
|
| enableSelectPinned | `boolean` | - | Параметр отвечает за чекбокс выбора закрепленных строк |
|
|
@@ -182,6 +181,7 @@ const columnDefinitions: ColumnDefinition<TableData>[] = [
|
|
|
182
181
|
| autoResetPageIndex | `boolean` | - | Автоматический сброс пагинации к первой странице при изменении данных или состояния (e.g фильтры, сортировки, и т.д) |
|
|
183
182
|
| onRowClick | `RowClickHandler<TData>` | - | Колбэк клика по строке |
|
|
184
183
|
| className | `string` | - | CSS-класс |
|
|
184
|
+
| loading | `boolean` | - | Состояние загрузки |
|
|
185
185
|
| onRefresh | `() => void` | - | Колбек обновления данных |
|
|
186
186
|
| onDelete | `(selectionState: RowSelectionState, resetRowSelection: (defaultState?: boolean) => void) => void` | - | Колбек удаления выбранных |
|
|
187
187
|
| outline | `boolean` | - | Внешний бордер для тулбара и таблицы |
|
|
@@ -2,17 +2,6 @@ import { ServerTableProps } from '../types';
|
|
|
2
2
|
export declare function ServerTable<TData extends object>({ items, total, limit, offset, onChangePage, search: searchProp, pagination, columnFilters, manualSorting, manualPagination, manualFiltering, ...rest }: ServerTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace ServerTable {
|
|
4
4
|
var getRowActionsColumnDef: typeof import("../../helperComponents").getRowActionsColumnDef;
|
|
5
|
-
var statusAppearances:
|
|
6
|
-
readonly Primary: "primary";
|
|
7
|
-
readonly Neutral: "neutral";
|
|
8
|
-
readonly Red: "red";
|
|
9
|
-
readonly Orange: "orange";
|
|
10
|
-
readonly Yellow: "yellow";
|
|
11
|
-
readonly Green: "green";
|
|
12
|
-
readonly Blue: "blue";
|
|
13
|
-
readonly Violet: "violet";
|
|
14
|
-
readonly Pink: "pink";
|
|
15
|
-
readonly Loading: "loading";
|
|
16
|
-
};
|
|
5
|
+
var statusAppearances: Record<string, string>;
|
|
17
6
|
var getStatusColumnDef: typeof import("../../helperComponents").getStatusColumnDef;
|
|
18
7
|
}
|
|
@@ -3,17 +3,6 @@ import { TableProps } from '../types';
|
|
|
3
3
|
export declare function Table<TData extends object>({ data, rowPinning, columnDefinitions, keepPinnedRows, copyPinnedRows, enableSelectPinned, rowSelection: rowSelectionProp, search, sorting: sortingProp, columnFilters, pagination: paginationProp, className, onRowClick, onRefresh, onDelete, pageSize, pageCount, loading, outline, moreActions, exportSettings, dataFiltered, dataError, noDataState, noResultsState, errorDataState, suppressToolbar, toolbarBefore, toolbarAfter, suppressPagination, manualSorting, manualPagination, manualFiltering, autoResetPageIndex, scrollRef, scrollContainerRef, getRowId, enableFuzzySearch, ...rest }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace Table {
|
|
5
5
|
var getStatusColumnDef: typeof import("../../helperComponents").getStatusColumnDef;
|
|
6
|
-
var statusAppearances:
|
|
7
|
-
readonly Primary: "primary";
|
|
8
|
-
readonly Neutral: "neutral";
|
|
9
|
-
readonly Red: "red";
|
|
10
|
-
readonly Orange: "orange";
|
|
11
|
-
readonly Yellow: "yellow";
|
|
12
|
-
readonly Green: "green";
|
|
13
|
-
readonly Blue: "blue";
|
|
14
|
-
readonly Violet: "violet";
|
|
15
|
-
readonly Pink: "pink";
|
|
16
|
-
readonly Loading: "loading";
|
|
17
|
-
};
|
|
6
|
+
var statusAppearances: Record<string, string>;
|
|
18
7
|
var getRowActionsColumnDef: typeof import("../../helperComponents").getRowActionsColumnDef;
|
|
19
8
|
}
|
|
@@ -10,9 +10,9 @@ export type CellProps = {
|
|
|
10
10
|
} & DataAttributes;
|
|
11
11
|
export declare const Cell: import("react").ForwardRefExoticComponent<{
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
onClick?: MouseEventHandler
|
|
14
|
-
onMouseUp?: MouseEventHandler
|
|
15
|
-
className?: string
|
|
16
|
-
style?: CSSProperties
|
|
17
|
-
role?: "cell" | "columnheader"
|
|
13
|
+
onClick?: MouseEventHandler;
|
|
14
|
+
onMouseUp?: MouseEventHandler;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
role?: "cell" | "columnheader";
|
|
18
18
|
} & DataAttributes & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
export declare const STATUS_APPEARANCE:
|
|
2
|
-
readonly Primary: "primary";
|
|
3
|
-
readonly Neutral: "neutral";
|
|
4
|
-
readonly Red: "red";
|
|
5
|
-
readonly Orange: "orange";
|
|
6
|
-
readonly Yellow: "yellow";
|
|
7
|
-
readonly Green: "green";
|
|
8
|
-
readonly Blue: "blue";
|
|
9
|
-
readonly Violet: "violet";
|
|
10
|
-
readonly Pink: "pink";
|
|
11
|
-
readonly Loading: "loading";
|
|
12
|
-
};
|
|
1
|
+
export declare const STATUS_APPEARANCE: Record<string, string>;
|
|
13
2
|
export declare const MIN_STATUS_CELL_SIZE = 16;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Table",
|
|
7
|
-
"version": "0.20.
|
|
7
|
+
"version": "0.20.6",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@snack-uikit/locale": "*"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0e8748072eba72660edad8aa462b762922e33c10"
|
|
61
61
|
}
|