jamespot-front-business 1.1.59 → 1.1.61
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/dist/cjs.js +12 -5
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +12 -5
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +922 -13271
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -46,7 +46,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
46
46
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
47
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
48
|
});
|
|
49
|
-
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
52
|
+
var e = new Error(message);
|
|
53
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
54
|
+
};
|
|
50
55
|
|
|
51
56
|
const toastAdapter = toolkit.createEntityAdapter({
|
|
52
57
|
selectId: (toast) => toast.id,
|
|
@@ -1493,10 +1498,10 @@ const mediaLibrarySlice = toolkit.createSlice({
|
|
|
1493
1498
|
return Object.assign(Object.assign({}, state), { page: action.payload });
|
|
1494
1499
|
},
|
|
1495
1500
|
setFolderList(state, action) {
|
|
1496
|
-
return Object.assign(Object.assign({}, state), {
|
|
1501
|
+
return Object.assign(Object.assign({}, state), { folders: action.payload });
|
|
1497
1502
|
},
|
|
1498
1503
|
setFileUnclassifiedList(state, action) {
|
|
1499
|
-
return Object.assign(Object.assign({}, state), {
|
|
1504
|
+
return Object.assign(Object.assign({}, state), { unclassifiedFiles: action.payload });
|
|
1500
1505
|
},
|
|
1501
1506
|
},
|
|
1502
1507
|
extraReducers: (builder) => {
|
|
@@ -1520,7 +1525,9 @@ const mediaLibrarySlice = toolkit.createSlice({
|
|
|
1520
1525
|
state.unclassifiedFiles = {
|
|
1521
1526
|
list: [...action.payload.result.data],
|
|
1522
1527
|
page: action.payload.result.page,
|
|
1523
|
-
totalPages:
|
|
1528
|
+
totalPages: action.payload.result.limit === null
|
|
1529
|
+
? 1
|
|
1530
|
+
: Math.ceil(action.payload.result.cnt / action.payload.result.limit),
|
|
1524
1531
|
};
|
|
1525
1532
|
state.nbResults = 0;
|
|
1526
1533
|
})
|
|
@@ -1795,7 +1802,7 @@ const fetchRecentFiles = toolkit.createAsyncThunk('/fetchRecentFiles', (_, { ext
|
|
|
1795
1802
|
const jApi = extra.jApi;
|
|
1796
1803
|
const state = getState();
|
|
1797
1804
|
const filters = state.wedoc.tab === 'my-documents' ? [{ name: 'idUser', value: '0' }] : [];
|
|
1798
|
-
return yield jApi.wedoc.getFiles(Object.assign(Object.assign({}, initialQuery), { filters, limit:
|
|
1805
|
+
return yield jApi.wedoc.getFiles(Object.assign(Object.assign({}, initialQuery), { filters, limit: 3 }));
|
|
1799
1806
|
}));
|
|
1800
1807
|
|
|
1801
1808
|
const initialState$8 = {
|