feat: WIP advanced filter.

This commit is contained in:
a.bouhuolia
2021-08-10 19:38:36 +02:00
parent aefb89e1c0
commit 23e8e251a1
97 changed files with 2008 additions and 1937 deletions

View File

@@ -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,
};

View File

@@ -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,
};

View File

@@ -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,
};

View File

@@ -10,6 +10,7 @@ const initialState = {
tableState: {
pageSize: 12,
pageIndex: 0,
filterRoles: [],
sortBy: [],
},
};

View File

@@ -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,
};

View File

@@ -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,
};

View File

@@ -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,

View File

@@ -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,
};

View File

@@ -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,
};

View File

@@ -2,6 +2,9 @@ import t from 'store/types';
import { createReducer } from '@reduxjs/toolkit';
const initialState = {
tableState: {
filterRoles: [],
},
categories: {},
loading: false,
};

View File

@@ -8,7 +8,7 @@ const initialState = {
tableState: {
pageSize: 12,
pageIndex: 0,
filters: [],
filterRoles: [],
inactiveMode: false,
},
selectedRows: [],

View File

@@ -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,
};

View File

@@ -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,
};

View File

@@ -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,
};