blixify-ui-web 0.2.83 → 0.2.85
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/lib/components/data/dataTemplate/dataStateModel.d.ts +1 -0
- package/lib/components/data/dataTemplate/dataStateModel.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/dataStateModel.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +191 -184
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/spaceModel.d.ts +5 -0
- package/lib/components/data/dataTemplate/spaceModel.d.ts.map +1 -1
- package/lib/components/data/dataWrapper/index.d.ts.map +1 -1
- package/lib/components/data/dataWrapper/index.js +3 -1
- package/lib/components/data/dataWrapper/index.js.map +1 -1
- package/lib/components/data/listModule.d.ts +2 -0
- package/lib/components/data/listModule.d.ts.map +1 -1
- package/lib/components/data/listModule.js +26 -11
- package/lib/components/data/listModule.js.map +1 -1
- package/package.json +1 -1
|
@@ -134,7 +134,7 @@ var indexedDb_1 = require("./indexedDb");
|
|
|
134
134
|
var pagination_1 = require("./pagination");
|
|
135
135
|
var settingsModal_1 = require("./settingsModal");
|
|
136
136
|
exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
137
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
137
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
138
138
|
var formRef = (0, react_1.createRef)();
|
|
139
139
|
var objectFormRef = (0, react_1.createRef)();
|
|
140
140
|
var listAddressFromRef = (0, react_1.createRef)();
|
|
@@ -149,107 +149,108 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
149
149
|
var typingTimeout = (0, react_1.useRef)();
|
|
150
150
|
// const oldCollectionId: any = useRef();
|
|
151
151
|
var mapViewRef = (0, react_1.useRef)();
|
|
152
|
-
var
|
|
153
|
-
var
|
|
152
|
+
var _1 = (0, react_1.useState)(false), loading = _1[0], setLoading = _1[1];
|
|
153
|
+
var _2 = (0, react_1.useState)(), notification = _2[0], setNotification = _2[1];
|
|
154
154
|
//INFO : Used by List
|
|
155
|
-
var
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
var
|
|
159
|
-
var
|
|
160
|
-
var
|
|
161
|
-
var
|
|
155
|
+
var _3 = (0, react_1.useState)({}), filterSearch = _3[0], setFilterSearch = _3[1];
|
|
156
|
+
var _4 = (0, react_1.useState)({}), filterSearchParams = _4[0], setFilterSearchParams = _4[1];
|
|
157
|
+
var _5 = (0, react_1.useState)({}), filterSelection = _5[0], setFilterSelection = _5[1];
|
|
158
|
+
var _6 = (0, react_1.useState)({}), filterReference = _6[0], setFilterReference = _6[1];
|
|
159
|
+
var _7 = (0, react_1.useState)({}), filterReferenceSearch = _7[0], setFilterReferenceSearch = _7[1];
|
|
160
|
+
var _8 = (0, react_1.useState)({}), filterReferenceList = _8[0], setFilterReferenceList = _8[1];
|
|
161
|
+
var _9 = (0, react_1.useState)({
|
|
162
162
|
startDate: undefined,
|
|
163
163
|
endDate: undefined,
|
|
164
|
-
}), filterReferenceDate =
|
|
165
|
-
var
|
|
166
|
-
var
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
var
|
|
170
|
-
var
|
|
171
|
-
var
|
|
172
|
-
var
|
|
173
|
-
var
|
|
174
|
-
var
|
|
175
|
-
var
|
|
176
|
-
var
|
|
164
|
+
}), filterReferenceDate = _9[0], setFilterReferenceDate = _9[1];
|
|
165
|
+
var _10 = (0, react_1.useState)(true), tableLoading = _10[0], setTableLoading = _10[1];
|
|
166
|
+
var _11 = (0, react_1.useState)(""), cursor = _11[0], setCursor = _11[1];
|
|
167
|
+
var _12 = (0, react_1.useState)(""), lastCursor = _12[0], setLastCursor = _12[1];
|
|
168
|
+
var _13 = (0, react_1.useState)([]), tableData = _13[0], setTableData = _13[1];
|
|
169
|
+
var _14 = (0, react_1.useState)([]), spaceTableData = _14[0], setSpaceTableData = _14[1];
|
|
170
|
+
var _15 = (0, react_1.useState)(0), size = _15[0], setSize = _15[1];
|
|
171
|
+
var _16 = (0, react_1.useState)(0), pageIndex = _16[0], setPageIndex = _16[1];
|
|
172
|
+
var _17 = (0, react_1.useState)([]), selectedIds = _17[0], setSelectedIds = _17[1];
|
|
173
|
+
var _18 = (0, react_1.useState)(false), selectAll = _18[0], setSelectAll = _18[1];
|
|
174
|
+
var _19 = (0, react_1.useState)(""), deletePasscode = _19[0], setDeletePasscode = _19[1];
|
|
175
|
+
var _20 = (0, react_1.useState)(""), deletePasscodeInput = _20[0], setDeletePasscodeInput = _20[1];
|
|
176
|
+
var _21 = (0, react_1.useState)(""), deleteFeedId = _21[0], setDeleteFeedId = _21[1];
|
|
177
177
|
var previousType = (0, react_1.useRef)();
|
|
178
178
|
//INFO : Used by List Organise
|
|
179
|
-
var
|
|
180
|
-
var
|
|
181
|
-
var
|
|
182
|
-
var
|
|
183
|
-
var
|
|
184
|
-
var
|
|
185
|
-
var
|
|
186
|
-
var
|
|
187
|
-
var
|
|
179
|
+
var _22 = (0, react_1.useState)(false), sortModal = _22[0], setSortModal = _22[1];
|
|
180
|
+
var _23 = (0, react_1.useState)(false), filterModal = _23[0], setFilterModal = _23[1];
|
|
181
|
+
var _24 = (0, react_1.useState)(false), addTabModal = _24[0], setAddTabModal = _24[1];
|
|
182
|
+
var _25 = (0, react_1.useState)((_a = props.defaultTab) !== null && _a !== void 0 ? _a : ""), selectedTab = _25[0], setSelectedTab = _25[1];
|
|
183
|
+
var _26 = (0, react_1.useState)("dayGridMonth"), calendarView = _26[0], setCalendarView = _26[1];
|
|
184
|
+
var _27 = (0, react_1.useState)((0, moment_1.default)().startOf("month").toDate()), calendarTabMonth = _27[0], setCalendarTabMonth = _27[1];
|
|
185
|
+
var _28 = (0, react_1.useState)(false), queryForm = _28[0], setQueryForm = _28[1];
|
|
186
|
+
var _29 = (0, react_1.useState)(false), batchUpdateModal = _29[0], setBatchUpdateModal = _29[1];
|
|
187
|
+
var _30 = (0, react_1.useState)({
|
|
188
188
|
columnId: "",
|
|
189
189
|
columnData: {},
|
|
190
|
-
}), batchUpdateData =
|
|
190
|
+
}), batchUpdateData = _30[0], setBatchUpdateData = _30[1];
|
|
191
191
|
// INFO: Used by Activity Log
|
|
192
|
-
var
|
|
193
|
-
var
|
|
192
|
+
var _31 = (0, react_1.useState)(false), activityModal = _31[0], setActivityModal = _31[1];
|
|
193
|
+
var _32 = (0, react_1.useState)(""), activityId = _32[0], setActivityId = _32[1];
|
|
194
194
|
//INFO : Used by Export
|
|
195
|
-
var
|
|
196
|
-
var
|
|
197
|
-
var
|
|
198
|
-
var
|
|
199
|
-
var
|
|
200
|
-
var
|
|
201
|
-
var
|
|
202
|
-
var
|
|
203
|
-
var
|
|
204
|
-
var
|
|
195
|
+
var _33 = (0, react_1.useState)(null), csvFile = _33[0], setCSVFile = _33[1];
|
|
196
|
+
var _34 = (0, react_1.useState)([]), csvFileData = _34[0], setCSVFileData = _34[1];
|
|
197
|
+
var _35 = (0, react_1.useState)(0), stepCSVIndex = _35[0], setStepCSVIndex = _35[1];
|
|
198
|
+
var _36 = (0, react_1.useState)({}), listCSVMapAttribute = _36[0], setListCSVMapAttribute = _36[1];
|
|
199
|
+
var _37 = (0, react_1.useState)({}), listCSVObjAttribute = _37[0], setListCSVObjAttribute = _37[1];
|
|
200
|
+
var _38 = (0, react_1.useState)([]), csvAPIAttribute = _38[0], setCSVAPIAttribute = _38[1];
|
|
201
|
+
var _39 = (0, react_1.useState)(((_b = props.devSettings.currentUser) === null || _b === void 0 ? void 0 : _b.userEmail) || ""), exportCSVEmail = _39[0], setExportCSVEmail = _39[1];
|
|
202
|
+
var _40 = (0, react_1.useState)([]), importTableData = _40[0], setImportTableData = _40[1];
|
|
203
|
+
var _41 = (0, react_1.useState)([]), queryList = _41[0], setQueryList = _41[1];
|
|
204
|
+
var _42 = (0, react_1.useState)(-1), queryIndex = _42[0], setQueryIndex = _42[1];
|
|
205
205
|
//INFO : Used by Read
|
|
206
206
|
//INFO : Used by Update
|
|
207
|
-
var
|
|
208
|
-
var
|
|
209
|
-
var
|
|
210
|
-
var
|
|
211
|
-
var
|
|
212
|
-
var
|
|
213
|
-
var
|
|
214
|
-
var
|
|
215
|
-
var
|
|
216
|
-
var
|
|
217
|
-
var
|
|
207
|
+
var _43 = (0, react_1.useState)(false), modalVisible = _43[0], setModalVisible = _43[1];
|
|
208
|
+
var _44 = (0, react_1.useState)(false), deleteModal = _44[0], setDeleteModal = _44[1];
|
|
209
|
+
var _45 = (0, react_1.useState)(false), excelModal = _45[0], setExcelModal = _45[1];
|
|
210
|
+
var _46 = (0, react_1.useState)(false), exportExcel = _46[0], setExportExcel = _46[1];
|
|
211
|
+
var _47 = (0, react_1.useState)(false), exportQR = _47[0], setExportQR = _47[1];
|
|
212
|
+
var _48 = (0, react_1.useState)(false), signatureSigning = _48[0], setSignatureSigning = _48[1];
|
|
213
|
+
var _49 = (0, react_1.useState)({}), selectedData = _49[0], setSelectedData = _49[1];
|
|
214
|
+
var _50 = (0, react_1.useState)(""), selectedObjectStructureId = _50[0], setSelectedObjectStructureId = _50[1];
|
|
215
|
+
var _51 = (0, react_1.useState)(""), selectedObjectId = _51[0], setSelectedObjectId = _51[1];
|
|
216
|
+
var _52 = (0, react_1.useState)(""), selectedListAddressId = _52[0], setSelectedListAddressId = _52[1];
|
|
217
|
+
var _53 = (0, react_1.useState)({
|
|
218
218
|
lat: 0,
|
|
219
219
|
lng: 0,
|
|
220
220
|
name: "",
|
|
221
|
-
}), selectedListAddress =
|
|
222
|
-
var
|
|
223
|
-
var
|
|
224
|
-
var
|
|
225
|
-
var
|
|
226
|
-
var
|
|
227
|
-
var
|
|
228
|
-
var
|
|
221
|
+
}), selectedListAddress = _53[0], setSelectedListAddress = _53[1];
|
|
222
|
+
var _54 = (0, react_1.useState)({}), selectedObjectData = _54[0], setSelectedObjectData = _54[1];
|
|
223
|
+
var _55 = (0, react_1.useState)(false), referenceLoading = _55[0], setReferenceLoading = _55[1];
|
|
224
|
+
var _56 = (0, react_1.useState)({}), referencesOptions = _56[0], setReferencesOptions = _56[1];
|
|
225
|
+
var _57 = (0, react_1.useState)({}), referencesDetails = _57[0], setReferencesDetails = _57[1];
|
|
226
|
+
var _58 = (0, react_1.useState)({}), referenceDeleteTableData = _58[0], setReferenceDeleteTableData = _58[1];
|
|
227
|
+
var _59 = (0, react_1.useState)(0), referenceDeleteIndex = _59[0], setReferenceDeleteIndex = _59[1];
|
|
228
|
+
var _60 = (0, react_1.useState)({}), referenceModelSchema = _60[0], setReferenceSchema = _60[1];
|
|
229
229
|
//INFO : Offline
|
|
230
|
-
var
|
|
231
|
-
var
|
|
230
|
+
var _61 = (0, react_1.useState)(0), offlineDataLength = _61[0], setOfflineDataLength = _61[1];
|
|
231
|
+
var _62 = (0, react_1.useState)(false), offlineModal = _62[0], setOfflineModal = _62[1];
|
|
232
232
|
var devSettings = props.devSettings;
|
|
233
233
|
var serverId = (0, utils_1.parseServerId)(devSettings.server);
|
|
234
234
|
var isFirebaseClient = devSettings.server === "firebase";
|
|
235
235
|
var isFirebase = isFirebaseClient || devSettings.server === "fbServer";
|
|
236
|
-
var dbModule = isFirebaseClient ? (
|
|
236
|
+
var dbModule = isFirebaseClient ? (_c = props.lib) === null || _c === void 0 ? void 0 : _c.firebase : (_d = props.lib) === null || _d === void 0 ? void 0 : _d.axios;
|
|
237
237
|
var schemaPresent = props.devSettings.schemaEndpoint ? true : false;
|
|
238
238
|
var limit = props.limit ? props.limit : 10;
|
|
239
|
-
var isEditor = ((
|
|
240
|
-
var isOffline = (
|
|
241
|
-
var showId = (
|
|
242
|
-
var
|
|
243
|
-
var
|
|
239
|
+
var isEditor = ((_e = props.edit) === null || _e === void 0 ? void 0 : _e.allEditable) ? true : false;
|
|
240
|
+
var isOffline = (_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareOffline;
|
|
241
|
+
var showId = (_g = props.space) === null || _g === void 0 ? void 0 : _g.showId;
|
|
242
|
+
var idField = (_h = props.space) === null || _h === void 0 ? void 0 : _h.idField;
|
|
243
|
+
var hasNavigation = ((_j = props.organise) === null || _j === void 0 ? void 0 : _j.handleNavigate) ? true : false;
|
|
244
|
+
var formColumn = ((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareUpdateOneColumn)
|
|
244
245
|
? "grid-cols-2"
|
|
245
246
|
: "grid-cols-4";
|
|
246
|
-
var isActivityLog = (((
|
|
247
|
-
((
|
|
248
|
-
(((
|
|
249
|
-
((
|
|
247
|
+
var isActivityLog = (((_m = (_l = props.edit) === null || _l === void 0 ? void 0 : _l.activityLog) === null || _m === void 0 ? void 0 : _m.enableComments) &&
|
|
248
|
+
((_o = props.edit) === null || _o === void 0 ? void 0 : _o.activityLog.commentCollectionId)) ||
|
|
249
|
+
(((_q = (_p = props.edit) === null || _p === void 0 ? void 0 : _p.activityLog) === null || _q === void 0 ? void 0 : _q.enableLogs) &&
|
|
250
|
+
((_r = props.edit) === null || _r === void 0 ? void 0 : _r.activityLog.logsCollectionId));
|
|
250
251
|
//TODO : Code - Pass ...devSettings, search dbEndpoint:
|
|
251
252
|
var writeServerQuery = new writeQuery_1.WriteQuery({
|
|
252
|
-
dbModule: (
|
|
253
|
+
dbModule: (_s = props.lib) === null || _s === void 0 ? void 0 : _s.axios,
|
|
253
254
|
dbType: devSettings.server,
|
|
254
255
|
dbCollection: props.collectionId,
|
|
255
256
|
dbEndpoint: devSettings.dbEndpoint,
|
|
@@ -257,7 +258,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
257
258
|
dbUserToken: devSettings.dbUserToken,
|
|
258
259
|
});
|
|
259
260
|
var readServerQuery = new readQuery_1.ReadQuery({
|
|
260
|
-
dbModule: (
|
|
261
|
+
dbModule: (_t = props.lib) === null || _t === void 0 ? void 0 : _t.axios,
|
|
261
262
|
dbType: devSettings.server,
|
|
262
263
|
dbCollection: props.collectionId,
|
|
263
264
|
dbEndpoint: devSettings.dbEndpoint,
|
|
@@ -265,7 +266,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
265
266
|
dbUserToken: devSettings.dbUserToken,
|
|
266
267
|
});
|
|
267
268
|
var moreButtonPopUp = [
|
|
268
|
-
((
|
|
269
|
+
((_u = props.edit) === null || _u === void 0 ? void 0 : _u.allEditable) && !isFirebase
|
|
269
270
|
? {
|
|
270
271
|
text: "Import Excel",
|
|
271
272
|
onClick: function () {
|
|
@@ -289,7 +290,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
289
290
|
},
|
|
290
291
|
},
|
|
291
292
|
].filter(Boolean);
|
|
292
|
-
if ((
|
|
293
|
+
if ((_v = props.organise) === null || _v === void 0 ? void 0 : _v.moreSettings)
|
|
293
294
|
moreButtonPopUp = moreButtonPopUp.concat(props.organise.moreSettings);
|
|
294
295
|
(0, react_1.useImperativeHandle)(ref, function () { return ({
|
|
295
296
|
handleRefresh: handleRefresh,
|
|
@@ -305,6 +306,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
305
306
|
/* eslint-enable */
|
|
306
307
|
//INFO : Change Data Type & ID Refresh
|
|
307
308
|
(0, react_1.useEffect)(function () {
|
|
309
|
+
var _a;
|
|
308
310
|
switch (props.type) {
|
|
309
311
|
case "read":
|
|
310
312
|
case "update":
|
|
@@ -325,8 +327,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
325
327
|
setModalVisible(true);
|
|
326
328
|
setLoading(true);
|
|
327
329
|
if (previousType.current === "read" && props.type === "update") {
|
|
328
|
-
|
|
329
|
-
readQueryHocRef.current.handleRefresh();
|
|
330
|
+
(_a = readQueryHocRef.current) === null || _a === void 0 ? void 0 : _a.handleRefresh();
|
|
330
331
|
}
|
|
331
332
|
}
|
|
332
333
|
break;
|
|
@@ -346,38 +347,22 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
346
347
|
// oldCollectionId.current = props.collectionId;
|
|
347
348
|
// }, [props.collectionId]);
|
|
348
349
|
(0, react_1.useEffect)(function () {
|
|
349
|
-
var _a, _b, _c, _d
|
|
350
|
-
if (
|
|
351
|
-
var currentTab = (
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
hrefPoint += "&data=".concat(props.id);
|
|
358
|
-
var id = (0, utils_1.lowercaseTextToId)(currentTab.name);
|
|
359
|
-
setSelectedTab({
|
|
360
|
-
id: id,
|
|
361
|
-
name: currentTab.name,
|
|
362
|
-
href: hrefPoint + "&view=".concat(id),
|
|
363
|
-
type: currentTab.type,
|
|
364
|
-
viewType: currentTab.viewType,
|
|
365
|
-
viewImage: currentTab.viewImage,
|
|
366
|
-
calendarSettings: (_c = currentTab.calendarSettings) !== null && _c !== void 0 ? _c : undefined,
|
|
367
|
-
feedsSettings: (_d = currentTab.feedsSettings) !== null && _d !== void 0 ? _d : undefined,
|
|
368
|
-
mapSettings: (_e = currentTab.mapSettings) !== null && _e !== void 0 ? _e : undefined,
|
|
369
|
-
});
|
|
370
|
-
if (listRQueryHocRef.current)
|
|
371
|
-
listRQueryHocRef.current.handleRefresh();
|
|
372
|
-
}
|
|
350
|
+
var _a, _b, _c, _d;
|
|
351
|
+
if (props.type === "list" && (selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.id) !== ((_a = props.organise) === null || _a === void 0 ? void 0 : _a.viewId)) {
|
|
352
|
+
var currentTab = (0, listModule_1.renderSelectedRefreshTab)(props.localURLEndpoint, props.type, props.collectionId, props.id, (_b = props.organise) === null || _b === void 0 ? void 0 : _b.extendedTabs, (_c = props.organise) === null || _c === void 0 ? void 0 : _c.viewId);
|
|
353
|
+
setSelectedTab(currentTab);
|
|
354
|
+
if ((currentTab === null || currentTab === void 0 ? void 0 : currentTab.viewType) === "calendar") {
|
|
355
|
+
setFilterSearch({});
|
|
356
|
+
setFilterSearchParams({});
|
|
357
|
+
(_d = listRQueryHocRef.current) === null || _d === void 0 ? void 0 : _d.handleRefresh();
|
|
373
358
|
}
|
|
374
359
|
}
|
|
375
360
|
}, [
|
|
376
361
|
props.collectionId,
|
|
377
362
|
props.id,
|
|
378
363
|
props.localURLEndpoint,
|
|
379
|
-
(
|
|
380
|
-
(
|
|
364
|
+
(_w = props.organise) === null || _w === void 0 ? void 0 : _w.extendedTabs,
|
|
365
|
+
(_x = props.organise) === null || _x === void 0 ? void 0 : _x.viewId,
|
|
381
366
|
props.type,
|
|
382
367
|
selectedTab,
|
|
383
368
|
]);
|
|
@@ -575,18 +560,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
575
560
|
}
|
|
576
561
|
}
|
|
577
562
|
};
|
|
578
|
-
var handleSelectTab = function (id
|
|
563
|
+
var handleSelectTab = function (id) {
|
|
579
564
|
var _a, _b;
|
|
580
565
|
if (id === "blixify_new_tab") {
|
|
581
566
|
handlePopUpModal(true, id);
|
|
582
567
|
}
|
|
583
568
|
else {
|
|
584
|
-
if (id === "calendar") {
|
|
585
|
-
setFilterSearch({});
|
|
586
|
-
setFilterSearchParams({});
|
|
587
|
-
}
|
|
588
|
-
var currentTab = tabs.find(function (eachTab) { return eachTab.id === id; });
|
|
589
|
-
setSelectedTab(currentTab);
|
|
590
569
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, props.type, props.id, id);
|
|
591
570
|
}
|
|
592
571
|
};
|
|
@@ -1368,19 +1347,19 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1368
1347
|
}); };
|
|
1369
1348
|
var handleRemoveSelectedData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
1370
1349
|
var deletable, selectedId_1, deleteIds, res, offlineDataResp, offlineData, selectedIndex_2, err_7;
|
|
1371
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1372
|
-
return __generator(this, function (
|
|
1373
|
-
switch (
|
|
1350
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1351
|
+
return __generator(this, function (_j) {
|
|
1352
|
+
switch (_j.label) {
|
|
1374
1353
|
case 0:
|
|
1375
|
-
|
|
1354
|
+
_j.trys.push([0, 11, , 12]);
|
|
1376
1355
|
deletable = true;
|
|
1377
1356
|
selectedId_1 = deleteFeedId || props.id;
|
|
1378
1357
|
return [4 /*yield*/, handleCheckDeleteReference([selectedData])];
|
|
1379
1358
|
case 1:
|
|
1380
|
-
deleteIds =
|
|
1359
|
+
deleteIds = _j.sent();
|
|
1381
1360
|
if (deleteIds && deleteIds.length <= 0)
|
|
1382
1361
|
deletable = false;
|
|
1383
|
-
if (!(selectedId_1 && deletable)) return [3 /*break*/,
|
|
1362
|
+
if (!(selectedId_1 && deletable)) return [3 /*break*/, 10];
|
|
1384
1363
|
setLoading(true);
|
|
1385
1364
|
setModalVisible(true);
|
|
1386
1365
|
setDeleteModal(true);
|
|
@@ -1388,7 +1367,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1388
1367
|
if (!((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareOffline)) return [3 /*break*/, 4];
|
|
1389
1368
|
return [4 /*yield*/, indexedDb_1.indexedDb.getValue("local", props.collectionId)];
|
|
1390
1369
|
case 2:
|
|
1391
|
-
offlineDataResp =
|
|
1370
|
+
offlineDataResp = _j.sent();
|
|
1392
1371
|
offlineData = (_b = offlineDataResp === null || offlineDataResp === void 0 ? void 0 : offlineDataResp.data) !== null && _b !== void 0 ? _b : [];
|
|
1393
1372
|
selectedIndex_2 = -1;
|
|
1394
1373
|
offlineData.map(function (eachOfflineData, index) {
|
|
@@ -1404,33 +1383,38 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1404
1383
|
type: props.collectionId,
|
|
1405
1384
|
})];
|
|
1406
1385
|
case 3:
|
|
1407
|
-
|
|
1386
|
+
_j.sent();
|
|
1408
1387
|
res = true;
|
|
1409
1388
|
return [3 /*break*/, 7];
|
|
1410
1389
|
case 4: return [4 /*yield*/, handleRemoveImage((_c = devSettings.bucketName) !== null && _c !== void 0 ? _c : "")];
|
|
1411
1390
|
case 5:
|
|
1412
|
-
|
|
1391
|
+
_j.sent();
|
|
1413
1392
|
return [4 /*yield*/, writeServerQuery.call("delete", { id: selectedId_1 })];
|
|
1414
1393
|
case 6:
|
|
1415
|
-
res =
|
|
1416
|
-
|
|
1394
|
+
res = _j.sent();
|
|
1395
|
+
_j.label = 7;
|
|
1417
1396
|
case 7:
|
|
1418
|
-
if (res)
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
(_g = (_f = props.organise) === null || _f === void 0 ? void 0 : _f.handleNavigate) === null || _g === void 0 ? void 0 : _g.call(_f, "list", "", "general");
|
|
1425
|
-
}
|
|
1426
|
-
_h.label = 8;
|
|
1427
|
-
case 8: return [3 /*break*/, 10];
|
|
1397
|
+
if (!res) return [3 /*break*/, 10];
|
|
1398
|
+
if (!((_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareUpdateHandlePostComplete)) return [3 /*break*/, 9];
|
|
1399
|
+
return [4 /*yield*/, props.bareSettings.bareUpdateHandlePostComplete({})];
|
|
1400
|
+
case 8:
|
|
1401
|
+
_j.sent();
|
|
1402
|
+
_j.label = 9;
|
|
1428
1403
|
case 9:
|
|
1429
|
-
|
|
1404
|
+
handleRefresh();
|
|
1405
|
+
if (selectedTab) {
|
|
1406
|
+
(_f = (_e = props.organise) === null || _e === void 0 ? void 0 : _e.handleNavigate) === null || _f === void 0 ? void 0 : _f.call(_e, "list", "", selectedTab.id);
|
|
1407
|
+
}
|
|
1408
|
+
else
|
|
1409
|
+
(_h = (_g = props.organise) === null || _g === void 0 ? void 0 : _g.handleNavigate) === null || _h === void 0 ? void 0 : _h.call(_g, "list", "", "general");
|
|
1410
|
+
_j.label = 10;
|
|
1411
|
+
case 10: return [3 /*break*/, 12];
|
|
1412
|
+
case 11:
|
|
1413
|
+
err_7 = _j.sent();
|
|
1430
1414
|
setDeleteModal(false);
|
|
1431
1415
|
setDeleteFeedId("");
|
|
1432
|
-
return [3 /*break*/,
|
|
1433
|
-
case
|
|
1416
|
+
return [3 /*break*/, 12];
|
|
1417
|
+
case 12:
|
|
1434
1418
|
setLoading(false);
|
|
1435
1419
|
setDeleteModal(false);
|
|
1436
1420
|
setModalVisible(false);
|
|
@@ -1830,7 +1814,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1830
1814
|
});
|
|
1831
1815
|
}); };
|
|
1832
1816
|
var handleUploadOfflineData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
1833
|
-
var dataUploadedId, offlineDataResp, offlineData,
|
|
1817
|
+
var dataUploadedId, offlineDataResp, offlineData, offlineDataIds, updateDataRes, updateDataList, _loop_1, i, err_12, success, filteredData;
|
|
1834
1818
|
var _a;
|
|
1835
1819
|
return __generator(this, function (_b) {
|
|
1836
1820
|
switch (_b.label) {
|
|
@@ -1841,28 +1825,58 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1841
1825
|
case 1:
|
|
1842
1826
|
offlineDataResp = _b.sent();
|
|
1843
1827
|
offlineData = (_a = offlineDataResp === null || offlineDataResp === void 0 ? void 0 : offlineDataResp.data) !== null && _a !== void 0 ? _a : [];
|
|
1828
|
+
offlineDataIds = offlineData.map(function (eachData) {
|
|
1829
|
+
return eachData[serverId];
|
|
1830
|
+
});
|
|
1844
1831
|
_b.label = 2;
|
|
1845
1832
|
case 2:
|
|
1846
1833
|
_b.trys.push([2, 8, , 9]);
|
|
1847
1834
|
if (!(offlineData.length > 0)) return [3 /*break*/, 7];
|
|
1848
|
-
|
|
1849
|
-
|
|
1835
|
+
return [4 /*yield*/, readServerQuery.call({
|
|
1836
|
+
type: "list",
|
|
1837
|
+
query: [
|
|
1838
|
+
{
|
|
1839
|
+
type: "in",
|
|
1840
|
+
queryId: serverId,
|
|
1841
|
+
value: offlineDataIds,
|
|
1842
|
+
},
|
|
1843
|
+
],
|
|
1844
|
+
stopLimit: true,
|
|
1845
|
+
})];
|
|
1850
1846
|
case 3:
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1847
|
+
updateDataRes = _b.sent();
|
|
1848
|
+
updateDataList = updateDataRes === null || updateDataRes === void 0 ? void 0 : updateDataRes.data;
|
|
1849
|
+
_loop_1 = function (i) {
|
|
1850
|
+
var eachOfflineData, offlineDataId, isUpdate, res;
|
|
1851
|
+
return __generator(this, function (_c) {
|
|
1852
|
+
switch (_c.label) {
|
|
1853
|
+
case 0:
|
|
1854
|
+
eachOfflineData = offlineData[i];
|
|
1855
|
+
return [4 /*yield*/, (0, utils_1.sleep)(300)];
|
|
1856
|
+
case 1:
|
|
1857
|
+
_c.sent();
|
|
1858
|
+
offlineDataId = eachOfflineData[serverId];
|
|
1859
|
+
isUpdate = updateDataList.some(function (eachData) { return eachData[serverId] === offlineDataId; });
|
|
1860
|
+
return [4 /*yield*/, handleSubmitData(undefined, undefined, undefined, eachOfflineData, offlineDataId, isUpdate)];
|
|
1861
|
+
case 2:
|
|
1862
|
+
res = _c.sent();
|
|
1863
|
+
if (res)
|
|
1864
|
+
dataUploadedId.push(offlineDataId);
|
|
1865
|
+
return [2 /*return*/];
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
};
|
|
1869
|
+
i = 0;
|
|
1870
|
+
_b.label = 4;
|
|
1854
1871
|
case 4:
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
return [4 /*yield*/, handleSubmitData(undefined, undefined, undefined, eachOfflineData, offlineDataId)];
|
|
1872
|
+
if (!(i < offlineData.length)) return [3 /*break*/, 7];
|
|
1873
|
+
return [5 /*yield**/, _loop_1(i)];
|
|
1858
1874
|
case 5:
|
|
1859
|
-
|
|
1860
|
-
if (res)
|
|
1861
|
-
dataUploadedId.push(offlineDataId);
|
|
1875
|
+
_b.sent();
|
|
1862
1876
|
_b.label = 6;
|
|
1863
1877
|
case 6:
|
|
1864
1878
|
i++;
|
|
1865
|
-
return [3 /*break*/,
|
|
1879
|
+
return [3 /*break*/, 4];
|
|
1866
1880
|
case 7: return [3 /*break*/, 9];
|
|
1867
1881
|
case 8:
|
|
1868
1882
|
err_12 = _b.sent();
|
|
@@ -1890,7 +1904,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1890
1904
|
}
|
|
1891
1905
|
});
|
|
1892
1906
|
}); };
|
|
1893
|
-
var handleSubmitData = function (type, rowId, columnId, data, offlineId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1907
|
+
var handleSubmitData = function (type, rowId, columnId, data, offlineId, isOfflineUpdate) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1894
1908
|
var selectedId_2, id, createSelectedData_1, uniqueDataStructure, uniqueColumnId, res, offlineDataResp, offlineData, tempData, err_13, offlineDataResp, tempData, selectedIndex_3, offlineData, err_14, dataToSubmit, operationType, selectedIndex_4, dataId, err_15;
|
|
1895
1909
|
var _a;
|
|
1896
1910
|
var _b, _c, _d, _e, _f;
|
|
@@ -1910,8 +1924,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1910
1924
|
id = "";
|
|
1911
1925
|
if (type === "update")
|
|
1912
1926
|
id = rowId !== null && rowId !== void 0 ? rowId : "";
|
|
1913
|
-
else if (selectedId_2 === "new" && !showId)
|
|
1914
|
-
|
|
1927
|
+
else if (selectedId_2 === "new" && !showId) {
|
|
1928
|
+
if (idField && selectedData[idField])
|
|
1929
|
+
id = selectedData[idField];
|
|
1930
|
+
else
|
|
1931
|
+
id = (0, uuid_1.v4)();
|
|
1932
|
+
}
|
|
1915
1933
|
else
|
|
1916
1934
|
id = (_b = props.id) !== null && _b !== void 0 ? _b : "";
|
|
1917
1935
|
if (offlineId) {
|
|
@@ -2017,7 +2035,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2017
2035
|
if (offlineId)
|
|
2018
2036
|
dataToSubmit[serverId] = offlineId;
|
|
2019
2037
|
}
|
|
2020
|
-
operationType =
|
|
2038
|
+
operationType = isOfflineUpdate
|
|
2039
|
+
? "update"
|
|
2040
|
+
: offlineId
|
|
2041
|
+
? "create"
|
|
2042
|
+
: "update";
|
|
2021
2043
|
return [4 /*yield*/, writeServerQuery.call(operationType, {
|
|
2022
2044
|
id: selectedId_2,
|
|
2023
2045
|
data: dataToSubmit,
|
|
@@ -2426,7 +2448,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2426
2448
|
}
|
|
2427
2449
|
};
|
|
2428
2450
|
var handleStepCSV = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
2429
|
-
var csvList_1,
|
|
2451
|
+
var csvList_1, _loop_2, _i, _a, _b, eachKey, eachValue, valid_1, errorValue_1, excelFormData, response, open_1, err_17;
|
|
2430
2452
|
var _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2431
2453
|
return __generator(this, function (_l) {
|
|
2432
2454
|
switch (_l.label) {
|
|
@@ -2441,7 +2463,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2441
2463
|
case 1:
|
|
2442
2464
|
if (!(stepCSVIndex === 1)) return [3 /*break*/, 3];
|
|
2443
2465
|
csvList_1 = [];
|
|
2444
|
-
|
|
2466
|
+
_loop_2 = function (eachKey, eachValue) {
|
|
2445
2467
|
if (eachKey && eachValue && typeof eachValue === "string") {
|
|
2446
2468
|
var selectedModel = props.model.find(function (eachModel) {
|
|
2447
2469
|
return eachModel.id === eachValue;
|
|
@@ -2500,7 +2522,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2500
2522
|
};
|
|
2501
2523
|
for (_i = 0, _a = Object.entries(listCSVMapAttribute); _i < _a.length; _i++) {
|
|
2502
2524
|
_b = _a[_i], eachKey = _b[0], eachValue = _b[1];
|
|
2503
|
-
|
|
2525
|
+
_loop_2(eachKey, eachValue);
|
|
2504
2526
|
}
|
|
2505
2527
|
valid_1 = true;
|
|
2506
2528
|
errorValue_1 = "";
|
|
@@ -2719,12 +2741,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2719
2741
|
}
|
|
2720
2742
|
}
|
|
2721
2743
|
};
|
|
2722
|
-
var handleBreadcrumbNavigate = function (
|
|
2723
|
-
var _a, _b
|
|
2724
|
-
|
|
2725
|
-
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "list", "", selectedTab.id);
|
|
2726
|
-
else
|
|
2727
|
-
(_d = (_c = props.organise) === null || _c === void 0 ? void 0 : _c.handleNavigate) === null || _d === void 0 ? void 0 : _d.call(_c, "list", "", "general");
|
|
2744
|
+
var handleBreadcrumbNavigate = function () {
|
|
2745
|
+
var _a, _b;
|
|
2746
|
+
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "list", "", (selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.id) ? selectedTab.id : "general");
|
|
2728
2747
|
};
|
|
2729
2748
|
//=====================================================================================
|
|
2730
2749
|
//SECTION: Render CSV
|
|
@@ -3011,7 +3030,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3011
3030
|
title: "",
|
|
3012
3031
|
};
|
|
3013
3032
|
var isTitle = true;
|
|
3014
|
-
var
|
|
3033
|
+
var _loop_3 = function (eachKey, eachValue) {
|
|
3015
3034
|
if (eachListObject.objectData) {
|
|
3016
3035
|
var model = eachListObject.objectData.find(function (eachAttribute) {
|
|
3017
3036
|
return eachAttribute.id === eachKey;
|
|
@@ -3072,7 +3091,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3072
3091
|
};
|
|
3073
3092
|
for (var _i = 0, _c = Object.entries(eachObject); _i < _c.length; _i++) {
|
|
3074
3093
|
var _d = _c[_i], eachKey = _d[0], eachValue = _d[1];
|
|
3075
|
-
|
|
3094
|
+
_loop_3(eachKey, eachValue);
|
|
3076
3095
|
}
|
|
3077
3096
|
if (!checkIdExists_1) {
|
|
3078
3097
|
delete eachNewList["id"];
|
|
@@ -3228,13 +3247,6 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3228
3247
|
current: false,
|
|
3229
3248
|
},
|
|
3230
3249
|
];
|
|
3231
|
-
if (selectedTab && selectedTab.viewType === "calendar") {
|
|
3232
|
-
pages.push({
|
|
3233
|
-
name: "Calendar",
|
|
3234
|
-
href: "".concat(props.localURLEndpoint, "?type=list&collection=").concat(props.collectionId),
|
|
3235
|
-
current: false,
|
|
3236
|
-
});
|
|
3237
|
-
}
|
|
3238
3250
|
switch (props.type) {
|
|
3239
3251
|
case "read":
|
|
3240
3252
|
pages.push({
|
|
@@ -3262,7 +3274,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3262
3274
|
react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title),
|
|
3263
3275
|
react_1.default.createElement("span", { className: "text-sm text-gray-500" }, props.description)),
|
|
3264
3276
|
!isBottom && renderActionButtons(props.type))),
|
|
3265
|
-
schemaPresent && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id
|
|
3277
|
+
schemaPresent && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id); }, darkMode: (_j = props.organise) === null || _j === void 0 ? void 0 : _j.darkMode })),
|
|
3266
3278
|
((_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareReadComponentPos) === "top" &&
|
|
3267
3279
|
renderBareReadComp(),
|
|
3268
3280
|
!((_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareReadComponentHide) &&
|
|
@@ -3395,7 +3407,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3395
3407
|
Transition: (_x = props === null || props === void 0 ? void 0 : props.lib) === null || _x === void 0 ? void 0 : _x.Transition,
|
|
3396
3408
|
} })))),
|
|
3397
3409
|
((_y = props.organise) === null || _y === void 0 ? void 0 : _y.filterComponentNewRow) && (react_1.default.createElement("div", { className: "flex flex-col items-center justify-center my-6 space-y-3 md:space-x-3 md:space-y-0 md:flex-row" }, filterComponent)),
|
|
3398
|
-
schemaPresent && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id
|
|
3410
|
+
schemaPresent && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id); }, darkMode: (_z = props.organise) === null || _z === void 0 ? void 0 : _z.darkMode })),
|
|
3399
3411
|
renderTabContent(tabs, props.type, viewType),
|
|
3400
3412
|
isBottom && renderActionButtons(props.type, true)));
|
|
3401
3413
|
default:
|
|
@@ -3595,11 +3607,6 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3595
3607
|
} }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex, onClickRow: function (id) {
|
|
3596
3608
|
var _a, _b;
|
|
3597
3609
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
3598
|
-
setSelectedTab({
|
|
3599
|
-
id: "general",
|
|
3600
|
-
name: props.type === "list" ? "Table View" : "Card View",
|
|
3601
|
-
href: "".concat(props.localURLEndpoint, "?data=").concat(props.id, "&type=").concat(props.type, "&collection=").concat(props.collectionId, "&view=general"),
|
|
3602
|
-
});
|
|
3603
3610
|
}, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, className: "mt-5", lib: { axios: (_d = props.lib) === null || _d === void 0 ? void 0 : _d.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, editable: {
|
|
3604
3611
|
active: ((_e = props.edit) === null || _e === void 0 ? void 0 : _e.listEditable) ? true : false,
|
|
3605
3612
|
onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3750,7 +3757,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3750
3757
|
}
|
|
3751
3758
|
return eventAvailabilities;
|
|
3752
3759
|
};
|
|
3753
|
-
return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement(calendar_1.Calendar, { currentDate: calendarTabMonth, calendarView: calendarSettings_1.customPlugin ? "timeGridWeek" : calendarView, handleMonthChange: function (date) {
|
|
3760
|
+
return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement(calendar_1.Calendar, { currentDate: calendarTabMonth, calendarView: (calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.customPlugin) ? "timeGridWeek" : calendarView, handleMonthChange: function (date) {
|
|
3754
3761
|
var startOfMonth = (0, moment_1.default)(calendarTabMonth).startOf("month");
|
|
3755
3762
|
var endOfMonth = (0, moment_1.default)(calendarTabMonth).endOf("month");
|
|
3756
3763
|
if (!(0, moment_1.default)(date).isBetween(startOfMonth, endOfMonth)) {
|
|
@@ -3761,7 +3768,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3761
3768
|
var _a, _b;
|
|
3762
3769
|
if (id)
|
|
3763
3770
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
3764
|
-
}, height: "95vh", dayCellMinHeight: 120, lib: { moment: moment_1.default }, customPlugin: calendarSettings_1.customPlugin }))));
|
|
3771
|
+
}, height: "95vh", dayCellMinHeight: 120, lib: { moment: moment_1.default }, customPlugin: calendarSettings_1 === null || calendarSettings_1 === void 0 ? void 0 : calendarSettings_1.customPlugin }))));
|
|
3765
3772
|
}
|
|
3766
3773
|
else if (selectedTabData.viewType === "feeds") {
|
|
3767
3774
|
var contentList_1 = [];
|
|
@@ -4295,7 +4302,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
4295
4302
|
};
|
|
4296
4303
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
4297
4304
|
renderNotification("root"),
|
|
4298
|
-
((
|
|
4305
|
+
((_z = (_y = props.renderSettings) === null || _y === void 0 ? void 0 : _y.renderLoadingUI) === null || _z === void 0 ? void 0 : _z.call(_y)) && loading ? ((_0 = props.renderSettings) === null || _0 === void 0 ? void 0 : _0.renderLoadingUI()) : (react_1.default.createElement(modal_1.Modal, { maxWidth: selectedObjectStructureId || excelModal ? "2xl" : undefined, open: modalVisible, title: renderModalTitle(), renderContent: renderModalContent, onClose: function () {
|
|
4299
4306
|
var _a, _b;
|
|
4300
4307
|
if (loading)
|
|
4301
4308
|
return;
|