mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: WIP advanced filter.
This commit is contained in:
@@ -8,6 +8,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: []
|
||||
},
|
||||
};
|
||||
|
||||
@@ -15,7 +16,7 @@ const STORAGE_KEY = 'bigcapital:bills';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: [],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -17,7 +18,7 @@ const STORAGE_KEY = 'bigcapital:estimates';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: []
|
||||
},
|
||||
};
|
||||
|
||||
@@ -17,7 +18,7 @@ const STORAGE_KEY = 'bigcapital:invoices';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: [],
|
||||
sortBy: [],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: [],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -17,7 +18,7 @@ const STORAGE_KEY = 'bigcapital:paymentReceives';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -5,14 +5,18 @@ import { createTableStateReducers } from 'store/tableState.reducer';
|
||||
import t from 'store/types';
|
||||
|
||||
const initialState = {
|
||||
tableState: {},
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: [],
|
||||
},
|
||||
};
|
||||
|
||||
const STORAGE_KEY = 'bigcapital:accounts';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ const initialState = {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
inactiveMode: false,
|
||||
filterRoles: []
|
||||
},
|
||||
};
|
||||
|
||||
@@ -20,7 +21,7 @@ const STORAGE_KEY = 'bigcapital:estimates';
|
||||
export default persistReducer(
|
||||
{
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
},
|
||||
reducerInstance,
|
||||
|
||||
@@ -8,6 +8,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: [],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -15,7 +16,7 @@ const STORAGE_KEY = 'bigcapital:expenses';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -8,14 +8,16 @@ import t from 'store/types';
|
||||
|
||||
// Initial state.
|
||||
const initialState = {
|
||||
tableState: {},
|
||||
tableState: {
|
||||
filterRoles: []
|
||||
},
|
||||
};
|
||||
|
||||
const STORAGE_KEY = 'bigcapital:itemCategories';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@ import t from 'store/types';
|
||||
import { createReducer } from '@reduxjs/toolkit';
|
||||
|
||||
const initialState = {
|
||||
tableState: {
|
||||
filterRoles: [],
|
||||
},
|
||||
categories: {},
|
||||
loading: false,
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filters: [],
|
||||
filterRoles: [],
|
||||
inactiveMode: false,
|
||||
},
|
||||
selectedRows: [],
|
||||
|
||||
@@ -8,6 +8,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: [],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -15,7 +16,7 @@ const STORAGE_KEY = 'bigcapital:manualJournals';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ const initialState = {
|
||||
tableState: {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
filterRoles: []
|
||||
},
|
||||
};
|
||||
|
||||
@@ -17,7 +18,7 @@ const STORAGE_KEY = 'bigcapital:receipts';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
3
client/src/store/vendors/vendors.reducer.js
vendored
3
client/src/store/vendors/vendors.reducer.js
vendored
@@ -9,6 +9,7 @@ const initialState = {
|
||||
pageSize: 12,
|
||||
pageIndex: 0,
|
||||
inactiveMode: false,
|
||||
filterRoles: [],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -16,7 +17,7 @@ const STORAGE_KEY = 'bigcapital:vendors';
|
||||
|
||||
const CONFIG = {
|
||||
key: STORAGE_KEY,
|
||||
whitelist: ['tableState'],
|
||||
whitelist: [],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user