@snack-uikit/table 0.37.25-preview-624b485b.0 → 0.37.25

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 CHANGED
@@ -3,6 +3,14 @@
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
+ ## <small>0.37.25 (2025-12-02)</small>
7
+
8
+ * feat(FF-7560): export column settings hooks, utilities and types ([46a2c5c](https://github.com/cloud-ru-tech/snack-uikit/commit/46a2c5c))
9
+
10
+
11
+
12
+
13
+
6
14
  ## <small>0.37.24 (2025-12-01)</small>
7
15
 
8
16
  ### Only dependencies have been changed
package/README.md CHANGED
@@ -229,11 +229,20 @@ const columnDefinitions: ColumnDefinition<TableData>[] = [
229
229
  | areAllColumnsEnabled* | `boolean` | - | |
230
230
  | columnOrder* | `string[]` | - | |
231
231
  | pinnedGroups* | `PinnedGroupsState<TData>` | - | |
232
+ ## usePageReset
233
+ ### Props
234
+ | name | type | default value | description |
235
+ |------|------|---------------|-------------|
236
+ | autoResetPageIndex* | `boolean` | - | |
237
+ | onPaginationChange* | `(state: PaginationState) => void` | - | |
238
+ | pagination* | `PaginationState` | - | |
239
+ | maximumAvailablePage* | `number` | - | |
240
+ | manualPagination* | `boolean` | - | |
232
241
  ## getPinnedGroups
233
242
  ### Props
234
243
  | name | type | default value | description |
235
244
  |------|------|---------------|-------------|
236
- | __@unscopables@2256* | `{ [x: number]: boolean; length?: boolean; toString?: boolean; toLocaleString?: boolean; pop?: boolean; push?: boolean; concat?: boolean; join?: boolean; reverse?: boolean; shift?: boolean; slice?: boolean; sort?: boolean; ... 29 more ...; readonly [Symbol.unscopables]?: boolean; }` | - | Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement. |
245
+ | __@unscopables@2269* | `{ [x: number]: boolean; length?: boolean; toString?: boolean; toLocaleString?: boolean; pop?: boolean; push?: boolean; concat?: boolean; join?: boolean; reverse?: boolean; shift?: boolean; slice?: boolean; sort?: boolean; ... 29 more ...; readonly [Symbol.unscopables]?: boolean; }` | - | Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement. |
237
246
  | __@iterator@1571* | `() => IterableIterator<ColumnDefinition<TData>>` | - | Iterator |
238
247
  | with* | `(index: number, value: ColumnDefinition<TData>) => ColumnDefinition<TData>[]` | - | Copies an array, then overwrites the value at the provided index with the given value. If the index is negative, then it replaces from the end of the array. @param index The index of the value to overwrite. If the index is negative, then it replaces from the end of the array. @param value The value to write into the copied array. @returns The copied array with the updated value. |
239
248
  | toSpliced* | `{ (start: number, deleteCount: number, ...items: ColumnDefinition<TData>[]): ColumnDefinition<TData>[]; (start: number, deleteCount?: number): ColumnDefinition<...>[]; }` | - | Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array. Copies an array and removes elements while returning the remaining elements. @param start The zero-based location in the array from which to start removing elements. @param deleteCount The number of elements to remove. @param items Elements to insert into the copied array in place of the deleted elements. @returns The copied array. @param start The zero-based location in the array from which to start removing elements. @param deleteCount The number of elements to remove. @returns A copy of the original array with the remaining elements. |
@@ -6,4 +6,5 @@ export { type ColumnsSettingsProps } from './helperComponents/ColumnsSettings';
6
6
  export { useColumnOrderByDrag } from './components/Table/hooks/useColumnOrderByDrag';
7
7
  export { useColumnSettings } from './components/Table/hooks/useColumnSettings';
8
8
  export { getEnabledColumnsInitialState, isColumnEnabledInitially, isColumnVisibilityConfigurable, isFilterableColumn, prepareColumnsSettings, } from './components/Table/hooks/useColumnSettings/utils';
9
+ export { usePageReset } from './components/Table/hooks/usePageReset';
9
10
  export { getPinnedGroups, getTableColumnsDefinitions } from './components/Table/utils';
package/dist/cjs/index.js CHANGED
@@ -22,7 +22,7 @@ var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
22
22
  Object.defineProperty(exports, "__esModule", {
23
23
  value: true
24
24
  });
25
- exports.getTableColumnsDefinitions = exports.getPinnedGroups = exports.prepareColumnsSettings = exports.isFilterableColumn = exports.isColumnVisibilityConfigurable = exports.isColumnEnabledInitially = exports.getEnabledColumnsInitialState = exports.useColumnSettings = exports.useColumnOrderByDrag = exports.CopyCell = void 0;
25
+ exports.getTableColumnsDefinitions = exports.getPinnedGroups = exports.usePageReset = exports.prepareColumnsSettings = exports.isFilterableColumn = exports.isColumnVisibilityConfigurable = exports.isColumnEnabledInitially = exports.getEnabledColumnsInitialState = exports.useColumnSettings = exports.useColumnOrderByDrag = exports.CopyCell = void 0;
26
26
  __exportStar(require("./components"), exports);
27
27
  __exportStar(require("./exportTable"), exports);
28
28
  __exportStar(require("./types"), exports);
@@ -78,6 +78,13 @@ Object.defineProperty(exports, "prepareColumnsSettings", {
78
78
  return utils_1.prepareColumnsSettings;
79
79
  }
80
80
  });
81
+ var usePageReset_1 = require("./components/Table/hooks/usePageReset");
82
+ Object.defineProperty(exports, "usePageReset", {
83
+ enumerable: true,
84
+ get: function () {
85
+ return usePageReset_1.usePageReset;
86
+ }
87
+ });
81
88
  var utils_2 = require("./components/Table/utils");
82
89
  Object.defineProperty(exports, "getPinnedGroups", {
83
90
  enumerable: true,
@@ -6,4 +6,5 @@ export { type ColumnsSettingsProps } from './helperComponents/ColumnsSettings';
6
6
  export { useColumnOrderByDrag } from './components/Table/hooks/useColumnOrderByDrag';
7
7
  export { useColumnSettings } from './components/Table/hooks/useColumnSettings';
8
8
  export { getEnabledColumnsInitialState, isColumnEnabledInitially, isColumnVisibilityConfigurable, isFilterableColumn, prepareColumnsSettings, } from './components/Table/hooks/useColumnSettings/utils';
9
+ export { usePageReset } from './components/Table/hooks/usePageReset';
9
10
  export { getPinnedGroups, getTableColumnsDefinitions } from './components/Table/utils';
package/dist/esm/index.js CHANGED
@@ -5,4 +5,5 @@ export { CopyCell } from './helperComponents';
5
5
  export { useColumnOrderByDrag } from './components/Table/hooks/useColumnOrderByDrag';
6
6
  export { useColumnSettings } from './components/Table/hooks/useColumnSettings';
7
7
  export { getEnabledColumnsInitialState, isColumnEnabledInitially, isColumnVisibilityConfigurable, isFilterableColumn, prepareColumnsSettings, } from './components/Table/hooks/useColumnSettings/utils';
8
+ export { usePageReset } from './components/Table/hooks/usePageReset';
8
9
  export { getPinnedGroups, getTableColumnsDefinitions } from './components/Table/utils';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Table",
7
- "version": "0.37.25-preview-624b485b.0",
7
+ "version": "0.37.25",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -65,5 +65,5 @@
65
65
  "peerDependencies": {
66
66
  "@snack-uikit/locale": "*"
67
67
  },
68
- "gitHead": "c3d0d02976996f28fb6f7a9e2da4e43b73aedae0"
68
+ "gitHead": "5bcf501ae7460ad87f7a564b680da001740d9f62"
69
69
  }
package/src/index.ts CHANGED
@@ -14,5 +14,6 @@ export {
14
14
  isFilterableColumn,
15
15
  prepareColumnsSettings,
16
16
  } from './components/Table/hooks/useColumnSettings/utils';
17
+ export { usePageReset } from './components/Table/hooks/usePageReset';
17
18
 
18
19
  export { getPinnedGroups, getTableColumnsDefinitions } from './components/Table/utils';