@mailstep/design-system 0.7.11-beta.2 → 0.7.11-beta.3
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/package.json
CHANGED
|
@@ -56,6 +56,7 @@ export declare const createSelectors: (gridName: string) => {
|
|
|
56
56
|
isConfigFormOpen: (state: DefaultRootState) => GridState['isConfigFormOpen'];
|
|
57
57
|
getColumnConfig: (state: DefaultRootState) => GridState['columnConfig'];
|
|
58
58
|
getPage: (state: DefaultRootState) => GridState['page'];
|
|
59
|
+
getPresets: (state: DefaultRootState) => GridState['presets'];
|
|
59
60
|
getRowsPerPage: (state: DefaultRootState) => GridState['rowsPerPage'];
|
|
60
61
|
getFilter: (state: DefaultRootState) => GridState['filter'];
|
|
61
62
|
getSorting: (state: DefaultRootState) => GridState['sorting'];
|
|
@@ -219,6 +219,7 @@ export var createSelectors = function (gridName) { return ({
|
|
|
219
219
|
return getOr(initialState.columnConfig, "commonGrid.".concat(gridName, ".columnConfig"), state);
|
|
220
220
|
},
|
|
221
221
|
getPage: function (state) { return getOr(initialState.page, "commonGrid.".concat(gridName, ".page"), state); },
|
|
222
|
+
getPresets: function (state) { return getOr(initialState.presets, "commonGrid.".concat(gridName, ".presets"), state); },
|
|
222
223
|
getRowsPerPage: function (state) {
|
|
223
224
|
return getOr(initialState.rowsPerPage, "commonGrid.".concat(gridName, ".rowsPerPage"), state);
|
|
224
225
|
},
|
|
@@ -236,11 +237,12 @@ export var createSelectors = function (gridName) { return ({
|
|
|
236
237
|
}); };
|
|
237
238
|
export var createFullSelector = function (gridName) {
|
|
238
239
|
var selectors = createSelectors(gridName);
|
|
239
|
-
return createSelector(function (state) { return selectors.getUxState(state); }, function (state) { return selectors.isConfigFormOpen(state); }, function (state) { return selectors.getColumnConfig(state); }, function (state) { return selectors.getPage(state); }, function (state) { return selectors.getRowsPerPage(state); }, function (state) { return selectors.getFilter(state); }, function (state) { return selectors.getSorting(state); }, function (state) { return selectors.getColumnsWidth(state); }, function (state) { return selectors.getColumnsWidthVariant(state); }, function (state) { return selectors.getColumnsOrder(state); }, function (uxState, isConfigFormOpen, columnConfig, page, rowsPerPage, filter, sorting, columnsWidth, columnsWidthVariant, columnsOrder) { return ({
|
|
240
|
+
return createSelector(function (state) { return selectors.getUxState(state); }, function (state) { return selectors.isConfigFormOpen(state); }, function (state) { return selectors.getColumnConfig(state); }, function (state) { return selectors.getPage(state); }, function (state) { return selectors.getPresets(state); }, function (state) { return selectors.getRowsPerPage(state); }, function (state) { return selectors.getFilter(state); }, function (state) { return selectors.getSorting(state); }, function (state) { return selectors.getColumnsWidth(state); }, function (state) { return selectors.getColumnsWidthVariant(state); }, function (state) { return selectors.getColumnsOrder(state); }, function (uxState, isConfigFormOpen, columnConfig, page, presets, rowsPerPage, filter, sorting, columnsWidth, columnsWidthVariant, columnsOrder) { return ({
|
|
240
241
|
uxState: uxState,
|
|
241
242
|
isConfigFormOpen: isConfigFormOpen,
|
|
242
243
|
columnConfig: columnConfig,
|
|
243
244
|
page: page,
|
|
245
|
+
presets: presets,
|
|
244
246
|
rowsPerPage: rowsPerPage,
|
|
245
247
|
filter: filter,
|
|
246
248
|
sorting: sorting,
|
|
@@ -189,7 +189,7 @@ export type UxState = {
|
|
|
189
189
|
export type ColumnLayout = 'normal' | 'no-scroll' | 'sticky';
|
|
190
190
|
export type GridState = {
|
|
191
191
|
page: number;
|
|
192
|
-
presets
|
|
192
|
+
presets?: GridPresets;
|
|
193
193
|
rowsPerPage?: number;
|
|
194
194
|
filter: Settings['filter'];
|
|
195
195
|
sorting: Settings['sorting'];
|