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/esm.js
CHANGED
|
@@ -38,7 +38,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
38
38
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
39
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
40
|
});
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
44
|
+
var e = new Error(message);
|
|
45
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
46
|
+
};
|
|
42
47
|
|
|
43
48
|
const toastAdapter = createEntityAdapter({
|
|
44
49
|
selectId: (toast) => toast.id,
|
|
@@ -1485,10 +1490,10 @@ const mediaLibrarySlice = createSlice({
|
|
|
1485
1490
|
return Object.assign(Object.assign({}, state), { page: action.payload });
|
|
1486
1491
|
},
|
|
1487
1492
|
setFolderList(state, action) {
|
|
1488
|
-
return Object.assign(Object.assign({}, state), {
|
|
1493
|
+
return Object.assign(Object.assign({}, state), { folders: action.payload });
|
|
1489
1494
|
},
|
|
1490
1495
|
setFileUnclassifiedList(state, action) {
|
|
1491
|
-
return Object.assign(Object.assign({}, state), {
|
|
1496
|
+
return Object.assign(Object.assign({}, state), { unclassifiedFiles: action.payload });
|
|
1492
1497
|
},
|
|
1493
1498
|
},
|
|
1494
1499
|
extraReducers: (builder) => {
|
|
@@ -1512,7 +1517,9 @@ const mediaLibrarySlice = createSlice({
|
|
|
1512
1517
|
state.unclassifiedFiles = {
|
|
1513
1518
|
list: [...action.payload.result.data],
|
|
1514
1519
|
page: action.payload.result.page,
|
|
1515
|
-
totalPages:
|
|
1520
|
+
totalPages: action.payload.result.limit === null
|
|
1521
|
+
? 1
|
|
1522
|
+
: Math.ceil(action.payload.result.cnt / action.payload.result.limit),
|
|
1516
1523
|
};
|
|
1517
1524
|
state.nbResults = 0;
|
|
1518
1525
|
})
|
|
@@ -1787,7 +1794,7 @@ const fetchRecentFiles = createAsyncThunk('/fetchRecentFiles', (_, { extra, getS
|
|
|
1787
1794
|
const jApi = extra.jApi;
|
|
1788
1795
|
const state = getState();
|
|
1789
1796
|
const filters = state.wedoc.tab === 'my-documents' ? [{ name: 'idUser', value: '0' }] : [];
|
|
1790
|
-
return yield jApi.wedoc.getFiles(Object.assign(Object.assign({}, initialQuery), { filters, limit:
|
|
1797
|
+
return yield jApi.wedoc.getFiles(Object.assign(Object.assign({}, initialQuery), { filters, limit: 3 }));
|
|
1791
1798
|
}));
|
|
1792
1799
|
|
|
1793
1800
|
const initialState$8 = {
|