blixify-ui-web 1.2.243 → 1.2.245
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/activityAttachments.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/activityAttachments.js +3 -1
- package/lib/components/data/dataTemplate/activityAttachments.js.map +1 -1
- package/lib/components/data/dataTemplate/chartView.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/chartView.js +13 -3
- package/lib/components/data/dataTemplate/chartView.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +324 -174
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/display/groupSection/index.d.ts.map +1 -1
- package/lib/components/display/groupSection/index.js +11 -8
- package/lib/components/display/groupSection/index.js.map +1 -1
- package/lib/components/display/modal/index.d.ts +1 -0
- package/lib/components/display/modal/index.d.ts.map +1 -1
- package/lib/components/display/modal/index.js +5 -4
- package/lib/components/display/modal/index.js.map +1 -1
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +87 -46
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/input/markdown/index.d.ts.map +1 -1
- package/lib/components/input/markdown/index.js +13 -0
- package/lib/components/input/markdown/index.js.map +1 -1
- package/lib/components/navigation/leftNav/index.d.ts +13 -1
- package/lib/components/navigation/leftNav/index.d.ts.map +1 -1
- package/lib/components/navigation/leftNav/index.js +91 -4
- package/lib/components/navigation/leftNav/index.js.map +1 -1
- package/lib/tail.css +1 -1
- package/package.json +1 -1
|
@@ -224,6 +224,8 @@ var handleGetCalendarSwitchRange = function (date, view) {
|
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
var RELATED_VIEW_PREFIX = "blixify_related_";
|
|
227
|
+
// INFO: views shown before the rest fold behind "+N more"
|
|
228
|
+
var SAVED_VIEWS_FOLDED_COUNT = 8;
|
|
227
229
|
// INFO: " - " is what the list prints for a lookup it could not resolve, an
|
|
228
230
|
// empty reference list included
|
|
229
231
|
var handleCheckEmptyCardValue = function (value) {
|
|
@@ -251,10 +253,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
251
253
|
// Every read of the view type below uses resolvedType. The distinction matters
|
|
252
254
|
// most in effect dependency arrays — following props.type there would leave
|
|
253
255
|
// the list never refetching while the panel is open, which fails silently.
|
|
254
|
-
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, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120;
|
|
256
|
+
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, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76, _77, _78, _79, _80, _81, _82, _83, _84, _85, _86, _87, _88, _89, _90, _91, _92, _93, _94, _95, _96, _97, _98, _99, _100, _101, _102, _103, _104, _105, _106, _107, _108, _109, _110, _111, _112, _113, _114, _115, _116, _117, _118, _119, _120, _121, _122, _123;
|
|
255
257
|
// INFO: the panel cannot navigate its way out — handleNavigate("read") is
|
|
256
258
|
// routed straight back into it — so expand-to-full-page is local state.
|
|
257
|
-
var
|
|
259
|
+
var _124 = (0, react_1.useState)(false), drawerPageView = _124[0], setDrawerPageView = _124[1];
|
|
258
260
|
// INFO: the panel keeps rendering the record it was opened with rather than
|
|
259
261
|
// live props. Without this, navigating back to the list would re-render the
|
|
260
262
|
// still-mounted panel as a second list behind the overlay.
|
|
@@ -310,7 +312,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
310
312
|
drawerFormEditedRef.current = false;
|
|
311
313
|
}
|
|
312
314
|
drawerOpenRef.current = isDrawerHost;
|
|
313
|
-
var
|
|
315
|
+
var _125 = (0, react_1.useState)(false), drawerDiscardModal = _125[0], setDrawerDiscardModal = _125[1];
|
|
314
316
|
// INFO: leaving the record ends the escape, so the next row opened from the
|
|
315
317
|
// list peeks in the panel again rather than inheriting a full page the user
|
|
316
318
|
// asked for once. Saving a form on the full page lands on its read view, which
|
|
@@ -389,14 +391,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
389
391
|
initialFilterReferenceDate: initialFilterReferenceDate,
|
|
390
392
|
};
|
|
391
393
|
};
|
|
392
|
-
var
|
|
394
|
+
var _126 = intialiseDefaultFilterValues(), initialFilterSearch = _126.initialFilterSearch, initialFilterSearchParams = _126.initialFilterSearchParams, initialFilterSelection = _126.initialFilterSelection, initialFilterReference = _126.initialFilterReference, initialFilterReferenceDate = _126.initialFilterReferenceDate;
|
|
393
395
|
// INFO: Persist view state hook — handles storage read/write for filter/sort/column state
|
|
394
|
-
var
|
|
396
|
+
var _127 = (0, viewStatePersistence_1.usePersistedViewState)({
|
|
395
397
|
mode: (_g = props.organise) === null || _g === void 0 ? void 0 : _g.persistViewState,
|
|
396
398
|
collectionId: props.collectionId,
|
|
397
399
|
persistKey: (_h = props.organise) === null || _h === void 0 ? void 0 : _h.persistKey,
|
|
398
400
|
type: resolvedType,
|
|
399
|
-
}), rawPersistedState =
|
|
401
|
+
}), rawPersistedState = _127.persistedState, isPersistEnabled = _127.isEnabled, handleSaveView = _127.handleSaveView, handleRegisterViewSnapshot = _127.handleRegisterViewSnapshot;
|
|
400
402
|
// INFO: drop stored filters/sort on removed columns — they would empty the table
|
|
401
403
|
var persistedState = (0, react_1.useMemo)(function () {
|
|
402
404
|
var _a, _b, _c, _d;
|
|
@@ -412,8 +414,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
412
414
|
(_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareFlexFilterListObjects,
|
|
413
415
|
(_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareFlexFilterRelated,
|
|
414
416
|
]);
|
|
415
|
-
var
|
|
416
|
-
var
|
|
417
|
+
var _128 = (0, react_1.useState)(false), loading = _128[0], setLoading = _128[1];
|
|
418
|
+
var _129 = (0, react_1.useState)(), notification = _129[0], setNotification = _129[1];
|
|
417
419
|
// INFO: a success toast is confirmation, not a decision — it clears itself so
|
|
418
420
|
// it never sits on the floating step bar; errors stay until dismissed
|
|
419
421
|
(0, react_1.useEffect)(function () {
|
|
@@ -423,67 +425,67 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
423
425
|
return function () { return clearTimeout(timer); };
|
|
424
426
|
}, [notification]);
|
|
425
427
|
//INFO : Used by List
|
|
426
|
-
var
|
|
427
|
-
var
|
|
428
|
-
var
|
|
429
|
-
var
|
|
430
|
-
var
|
|
431
|
-
var
|
|
432
|
-
var
|
|
428
|
+
var _130 = (0, react_1.useState)((_m = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSearchParams) !== null && _m !== void 0 ? _m : initialFilterSearch), filterSearch = _130[0], setFilterSearch = _130[1];
|
|
429
|
+
var _131 = (0, react_1.useState)((_o = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSearchParams) !== null && _o !== void 0 ? _o : initialFilterSearchParams), filterSearchParams = _131[0], setFilterSearchParams = _131[1];
|
|
430
|
+
var _132 = (0, react_1.useState)((_p = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterSelection) !== null && _p !== void 0 ? _p : initialFilterSelection), filterSelection = _132[0], setFilterSelection = _132[1];
|
|
431
|
+
var _133 = (0, react_1.useState)((_q = persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterReference) !== null && _q !== void 0 ? _q : initialFilterReference), filterReference = _133[0], setFilterReference = _133[1];
|
|
432
|
+
var _134 = (0, react_1.useState)({}), filterReferenceSearch = _134[0], setFilterReferenceSearch = _134[1];
|
|
433
|
+
var _135 = (0, react_1.useState)({}), filterReferenceList = _135[0], setFilterReferenceList = _135[1];
|
|
434
|
+
var _136 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.filterReferenceDate)
|
|
433
435
|
? (0, viewStatePersistence_1.parseDateFilterState)(persistedState.filterReferenceDate)
|
|
434
|
-
: initialFilterReferenceDate), filterReferenceDate =
|
|
435
|
-
var
|
|
436
|
-
var
|
|
437
|
-
var
|
|
438
|
-
var
|
|
439
|
-
var
|
|
436
|
+
: initialFilterReferenceDate), filterReferenceDate = _136[0], setFilterReferenceDate = _136[1];
|
|
437
|
+
var _137 = (0, react_1.useState)(true), tableLoading = _137[0], setTableLoading = _137[1];
|
|
438
|
+
var _138 = (0, react_1.useState)(""), cursor = _138[0], setCursor = _138[1];
|
|
439
|
+
var _139 = (0, react_1.useState)(""), lastCursor = _139[0], setLastCursor = _139[1];
|
|
440
|
+
var _140 = (0, react_1.useState)([]), tableData = _140[0], setTableData = _140[1];
|
|
441
|
+
var _141 = (0, react_1.useState)([]), spaceTableData = _141[0], setSpaceTableData = _141[1];
|
|
440
442
|
// INFO: a save resolves after later renders, so it reads the table from here —
|
|
441
443
|
// the state it closed over can predate an earlier save on the same row
|
|
442
444
|
var tableDataRef = (0, react_1.useRef)([]);
|
|
443
445
|
var spaceTableDataRef = (0, react_1.useRef)([]);
|
|
444
446
|
tableDataRef.current = tableData;
|
|
445
447
|
spaceTableDataRef.current = spaceTableData;
|
|
446
|
-
var
|
|
447
|
-
var
|
|
448
|
+
var _142 = (0, react_1.useState)(0), size = _142[0], setSize = _142[1];
|
|
449
|
+
var _143 = (0, react_1.useState)((_t = (_r = persistedState === null || persistedState === void 0 ? void 0 : persistedState.pageIndex) !== null && _r !== void 0 ? _r : (_s = props.organise) === null || _s === void 0 ? void 0 : _s.pageIndex) !== null && _t !== void 0 ? _t : 0), pageIndex = _143[0], setPageIndex = _143[1];
|
|
448
450
|
// INFO: every change of page, including the return to the first page when a
|
|
449
451
|
// filter or search changes, which onChangePagination does not always report
|
|
450
452
|
(0, react_1.useEffect)(function () {
|
|
451
453
|
var _a, _b;
|
|
452
454
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.onChangePageIndex) === null || _b === void 0 ? void 0 : _b.call(_a, pageIndex);
|
|
453
455
|
}, [pageIndex]);
|
|
454
|
-
var
|
|
455
|
-
var
|
|
456
|
-
var
|
|
457
|
-
var
|
|
458
|
-
var
|
|
456
|
+
var _144 = (0, react_1.useState)([]), selectedIds = _144[0], setSelectedIds = _144[1];
|
|
457
|
+
var _145 = (0, react_1.useState)(false), selectAll = _145[0], setSelectAll = _145[1];
|
|
458
|
+
var _146 = (0, react_1.useState)(""), deletePasscode = _146[0], setDeletePasscode = _146[1];
|
|
459
|
+
var _147 = (0, react_1.useState)(""), deletePasscodeInput = _147[0], setDeletePasscodeInput = _147[1];
|
|
460
|
+
var _148 = (0, react_1.useState)(""), deleteFeedId = _148[0], setDeleteFeedId = _148[1];
|
|
459
461
|
//INFO : Used by List Organise
|
|
460
462
|
// INFO: Internal sort state that overrides props.organise?.sort when
|
|
461
463
|
// persistViewState is enabled and a persisted sort exists
|
|
462
|
-
var
|
|
463
|
-
var
|
|
464
|
-
var
|
|
465
|
-
var
|
|
464
|
+
var _149 = (0, react_1.useState)((_u = persistedState === null || persistedState === void 0 ? void 0 : persistedState.sort) !== null && _u !== void 0 ? _u : undefined), persistedSort = _149[0], setPersistedSort = _149[1];
|
|
465
|
+
var _150 = (0, react_1.useState)(false), filterDraft = _150[0], setFilterDraft = _150[1];
|
|
466
|
+
var _151 = (0, react_1.useState)(false), addTabModal = _151[0], setAddTabModal = _151[1];
|
|
467
|
+
var _152 = (0, react_1.useState)(-1), editTabIndex = _152[0], setEditTabIndex = _152[1];
|
|
466
468
|
//INFO : resolve the initial tab synchronously so the mount cond is already
|
|
467
469
|
// tab-scoped — an empty initial tab caused a second wasted list fetch
|
|
468
|
-
var
|
|
470
|
+
var _153 = (0, react_1.useState)(function () {
|
|
469
471
|
var _a;
|
|
470
472
|
return (0, listModule_1.renderSelectedRefreshTab)(props.localURLEndpoint, resolvedType, props.collectionId, props.id, (_a = props.organise) === null || _a === void 0 ? void 0 : _a.extendedTabs, listViewId);
|
|
471
|
-
}), selectedTab =
|
|
472
|
-
var
|
|
473
|
+
}), selectedTab = _153[0], setSelectedTab = _153[1];
|
|
474
|
+
var _154 = (0, react_1.useState)("dayGridMonth"), calendarView = _154[0], setCalendarView = _154[1];
|
|
473
475
|
// INFO: bareNewDTW calendar viewSwitch mode — drives the NewCalendar variant
|
|
474
476
|
// (calendarView above drives the matching range query)
|
|
475
|
-
var
|
|
476
|
-
var
|
|
477
|
+
var _155 = (0, react_1.useState)("month"), newCalendarViewMode = _155[0], setNewCalendarViewMode = _155[1];
|
|
478
|
+
var _156 = (0, react_1.useState)(new Date()), calendarTabMonth = _156[0], setCalendarTabMonth = _156[1];
|
|
477
479
|
// INFO: defaultViewSwitch picks the opening view only — the tab re-inits
|
|
478
480
|
// whenever its settings change, and that must not undo the user's switch
|
|
479
481
|
var calendarViewInitRef = (0, react_1.useRef)(false);
|
|
480
|
-
var
|
|
481
|
-
var
|
|
482
|
-
var
|
|
483
|
-
var
|
|
482
|
+
var _157 = (0, react_1.useState)(true), kanbanDroppable = _157[0], setKanbanDroppable = _157[1];
|
|
483
|
+
var _158 = (0, react_1.useState)([]), kanbanOptions = _158[0], setKanbanOptions = _158[1];
|
|
484
|
+
var _159 = (0, react_1.useState)(false), batchUpdateModal = _159[0], setBatchUpdateModal = _159[1];
|
|
485
|
+
var _160 = (0, react_1.useState)({
|
|
484
486
|
columnId: "",
|
|
485
487
|
columnData: {},
|
|
486
|
-
}), batchUpdateData =
|
|
488
|
+
}), batchUpdateData = _160[0], setBatchUpdateData = _160[1];
|
|
487
489
|
// INFO: system columns (created / updated at and by, record id, number)
|
|
488
490
|
// join the structure hidden; the ones a user shows are kept per view
|
|
489
491
|
var isSystemColumnsEnabled = !!((_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareSystemColumns);
|
|
@@ -491,12 +493,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
491
493
|
var appendedSystemColumnIds = isSystemColumnsEnabled
|
|
492
494
|
? systemColumns_1.SYSTEM_COLUMN_IDS.filter(function (eachId) { var _a; return !((_a = props.model) !== null && _a !== void 0 ? _a : []).some(function (each) { return each.id === eachId; }); })
|
|
493
495
|
: [];
|
|
494
|
-
var
|
|
496
|
+
var _161 = (0, react_1.useState)((_x = persistedState === null || persistedState === void 0 ? void 0 : persistedState.shownSystemColumnIds) !== null && _x !== void 0 ? _x : []), shownSystemColumnIds = _161[0], setShownSystemColumnIds = _161[1];
|
|
495
497
|
var handleWithSystemColumns = function (model, shownIds) {
|
|
496
498
|
if (shownIds === void 0) { shownIds = shownSystemColumnIds; }
|
|
497
499
|
return isSystemColumnsEnabled ? (0, systemColumns_1.handleAppendSystemColumns)(model, shownIds) : model;
|
|
498
500
|
};
|
|
499
|
-
var
|
|
501
|
+
var _162 = (0, react_1.useState)(function () {
|
|
500
502
|
var _a;
|
|
501
503
|
var baseModel = handleWithSystemColumns((props === null || props === void 0 ? void 0 : props.model) || [], (_a = persistedState === null || persistedState === void 0 ? void 0 : persistedState.shownSystemColumnIds) !== null && _a !== void 0 ? _a : []);
|
|
502
504
|
if (!persistedState)
|
|
@@ -523,8 +525,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
523
525
|
});
|
|
524
526
|
}
|
|
525
527
|
return model;
|
|
526
|
-
}), structure =
|
|
527
|
-
var
|
|
528
|
+
}), structure = _162[0], setStructure = _162[1];
|
|
529
|
+
var _163 = (0, react_1.useState)(((_y = props === null || props === void 0 ? void 0 : props.organise) === null || _y === void 0 ? void 0 : _y.additionalQuery) || []), additionalQuery = _163[0], setAdditionalQuery = _163[1];
|
|
528
530
|
// INFO: State for user-configurable flex filters (Monday.com-style)
|
|
529
531
|
// INFO: Initialize with one empty row so users see inputs immediately without clicking "Add Filter"
|
|
530
532
|
var defaultFlexFilterRow = [
|
|
@@ -542,7 +544,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
542
544
|
: (persistedState === null || persistedState === void 0 ? void 0 : persistedState.flexFilters) && persistedState.flexFilters.length > 0
|
|
543
545
|
? persistedState.flexFilters
|
|
544
546
|
: defaultFlexFilterRow;
|
|
545
|
-
var
|
|
547
|
+
var _164 = (0, react_1.useState)(initialFlexFilterRows), flexFilters = _164[0], setFlexFilters = _164[1];
|
|
546
548
|
// INFO: always-current mirror of flexFilters, read by the imperative apply/
|
|
547
549
|
// clear methods so chained calls in one tick aren't stale.
|
|
548
550
|
var flexFiltersRef = (0, react_1.useRef)(flexFilters);
|
|
@@ -555,86 +557,89 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
555
557
|
}, [flexFilters]);
|
|
556
558
|
// INFO: Debounced version of flexFilters used by renderImpSearchFilterConditions
|
|
557
559
|
// to prevent API calls on every keystroke when typing in value inputs
|
|
558
|
-
var
|
|
560
|
+
var _165 = (0, react_1.useState)(initialFlexFilterRows), flexFiltersDebounced = _165[0], setFlexFiltersDebounced = _165[1];
|
|
559
561
|
// INFO: the filter rows of the export being set up — started from the
|
|
560
562
|
// list's own when the export opens, so changing them leaves the list as it is
|
|
561
|
-
var
|
|
562
|
-
var
|
|
563
|
-
var
|
|
564
|
-
var
|
|
565
|
-
var
|
|
563
|
+
var _166 = (0, react_1.useState)(defaultFlexFilterRow), exportFlexFilters = _166[0], setExportFlexFilters = _166[1];
|
|
564
|
+
var _167 = (0, react_1.useState)({}), flexFilterReferenceOptions = _167[0], setFlexFilterReferenceOptions = _167[1];
|
|
565
|
+
var _168 = (0, react_1.useState)({}), flexFilterReferenceSearch = _168[0], setFlexFilterReferenceSearch = _168[1];
|
|
566
|
+
var _169 = (0, react_1.useState)(false), flexFilterModalOpen = _169[0], setFlexFilterModalOpen = _169[1];
|
|
567
|
+
var _170 = (0, react_1.useState)(false), viewSettingsModalOpen = _170[0], setViewSettingsModalOpen = _170[1];
|
|
566
568
|
// INFO: Columns the end user chose to hide (bareSettings.bareViewSettings).
|
|
567
569
|
// Deliberately kept out of `structure`: the props-sync effect below resets
|
|
568
570
|
// structure to props.model whenever props change, which would wipe the
|
|
569
571
|
// choice, and the persist effect derives schema-level hiddenColumnIds from
|
|
570
572
|
// structure — writing user hides there would blur the two concepts.
|
|
571
|
-
var
|
|
572
|
-
var
|
|
573
|
-
var
|
|
574
|
-
var
|
|
573
|
+
var _171 = (0, react_1.useState)((_0 = persistedState === null || persistedState === void 0 ? void 0 : persistedState.userHiddenColumnIds) !== null && _0 !== void 0 ? _0 : []), userHiddenColumnIds = _171[0], setUserHiddenColumnIds = _171[1];
|
|
574
|
+
var _172 = (0, react_1.useState)(""), columnSearch = _172[0], setColumnSearch = _172[1];
|
|
575
|
+
var _173 = (0, react_1.useState)([]), savedViews = _173[0], setSavedViews = _173[1];
|
|
576
|
+
var _174 = (0, react_1.useState)(null), activeSavedViewId = _174[0], setActiveSavedViewId = _174[1];
|
|
575
577
|
// INFO: the widths of the view on screen, by column id ("180px")
|
|
576
|
-
var
|
|
578
|
+
var _175 = (0, react_1.useState)(function () { var _a, _b, _c; return (_c = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.allView) === null || _b === void 0 ? void 0 : _b.columnWidths) !== null && _c !== void 0 ? _c : {}; }), columnWidths = _175[0], setColumnWidths = _175[1];
|
|
577
579
|
// INFO: unsaved changes are kept only once the opening view is on screen,
|
|
578
580
|
// so the defaults drawn before it never overwrite a person's own
|
|
579
|
-
var
|
|
581
|
+
var _176 = (0, react_1.useState)(false), isViewDraftReady = _176[0], setIsViewDraftReady = _176[1];
|
|
580
582
|
// INFO: null while the name box is closed
|
|
581
|
-
var
|
|
582
|
-
var
|
|
583
|
-
var
|
|
583
|
+
var _177 = (0, react_1.useState)(null), savedViewName = _177[0], setSavedViewName = _177[1];
|
|
584
|
+
var _178 = (0, react_1.useState)(null), deletingSavedViewId = _178[0], setDeletingSavedViewId = _178[1];
|
|
585
|
+
var _179 = (0, react_1.useState)(null), renamingSavedView = _179[0], setRenamingSavedView = _179[1];
|
|
586
|
+
var _180 = (0, react_1.useState)(false), isSavedViewsExpanded = _180[0], setIsSavedViewsExpanded = _180[1];
|
|
587
|
+
var _181 = (0, react_1.useState)(null), draggingColumnId = _181[0], setDraggingColumnId = _181[1];
|
|
584
588
|
var columnRowRefs = (0, react_1.useRef)({});
|
|
585
589
|
//INFO : Used by Auth
|
|
586
|
-
var
|
|
590
|
+
var _182 = (0, react_1.useState)({
|
|
587
591
|
email: "",
|
|
588
592
|
google: "",
|
|
589
593
|
phone: "",
|
|
590
594
|
disabled: false,
|
|
591
595
|
create: false,
|
|
592
|
-
}), authMethods =
|
|
593
|
-
var
|
|
596
|
+
}), authMethods = _182[0], setAuthMethods = _182[1];
|
|
597
|
+
var _183 = (0, react_1.useState)(""), selectedAuthMethod = _183[0], setSelectedAuthMethod = _183[1];
|
|
594
598
|
// INFO: the sign-in check of a users datasheet's record is running; the
|
|
595
599
|
// panel shows a spinner rather than nothing, which read as "no login"
|
|
596
|
-
var
|
|
600
|
+
var _184 = (0, react_1.useState)(false), authLoading = _184[0], setAuthLoading = _184[1];
|
|
597
601
|
// INFO: a delete is running — the ref answers a second tap at once, before
|
|
598
602
|
// the state has rendered, and the state disables the confirm button
|
|
599
603
|
var deletingRef = (0, react_1.useRef)(false);
|
|
600
|
-
var
|
|
604
|
+
var _185 = (0, react_1.useState)(false), deleting = _185[0], setDeleting = _185[1];
|
|
601
605
|
// INFO: Used by Activity Log
|
|
602
|
-
var
|
|
603
|
-
var
|
|
606
|
+
var _186 = (0, react_1.useState)(false), activityModal = _186[0], setActivityModal = _186[1];
|
|
607
|
+
var _187 = (0, react_1.useState)(""), activityId = _187[0], setActivityId = _187[1];
|
|
604
608
|
//INFO : Used by Export
|
|
605
|
-
var
|
|
606
|
-
var
|
|
607
|
-
var
|
|
608
|
-
var
|
|
609
|
-
var
|
|
610
|
-
var
|
|
611
|
-
var
|
|
612
|
-
var
|
|
613
|
-
var
|
|
614
|
-
var
|
|
615
|
-
var
|
|
616
|
-
var
|
|
617
|
-
var
|
|
618
|
-
var
|
|
619
|
-
var
|
|
609
|
+
var _188 = (0, react_1.useState)(null), csvFile = _188[0], setCSVFile = _188[1];
|
|
610
|
+
var _189 = (0, react_1.useState)([]), csvFileData = _189[0], setCSVFileData = _189[1];
|
|
611
|
+
var _190 = (0, react_1.useState)(0), stepCSVIndex = _190[0], setStepCSVIndex = _190[1];
|
|
612
|
+
var _191 = (0, react_1.useState)({}), listCSVMapAttribute = _191[0], setListCSVMapAttribute = _191[1];
|
|
613
|
+
var _192 = (0, react_1.useState)({}), listCSVObjAttribute = _192[0], setListCSVObjAttribute = _192[1];
|
|
614
|
+
var _193 = (0, react_1.useState)([]), csvAPIAttribute = _193[0], setCSVAPIAttribute = _193[1];
|
|
615
|
+
var _194 = (0, react_1.useState)(((_1 = props.devSettings.currentUser) === null || _1 === void 0 ? void 0 : _1.userEmail) || ""), exportCSVEmail = _194[0], setExportCSVEmail = _194[1];
|
|
616
|
+
var _195 = (0, react_1.useState)(((_3 = (_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.exportSettings) === null || _3 === void 0 ? void 0 : _3.defaultExportPDFName) || ""), exportPDFTitle = _195[0], setExportPDFTitle = _195[1];
|
|
617
|
+
var _196 = (0, react_1.useState)(false), exportPDFLoading = _196[0], setExportPDFLoading = _196[1];
|
|
618
|
+
var _197 = (0, react_1.useState)(false), exportReadPDFLoading = _197[0], setExportReadPDFLoading = _197[1];
|
|
619
|
+
var _198 = (0, react_1.useState)((_6 = (_5 = (_4 = props.organise) === null || _4 === void 0 ? void 0 : _4.exportSettings) === null || _5 === void 0 ? void 0 : _5.sumColumnId) !== null && _6 !== void 0 ? _6 : []), exportSumAttributeIds = _198[0], setExportSumAttributeIds = _198[1];
|
|
620
|
+
var _199 = (0, react_1.useState)((_9 = (_8 = (_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.exportSettings) === null || _8 === void 0 ? void 0 : _8.hideSubItems) !== null && _9 !== void 0 ? _9 : false), hideSubItems = _199[0], setHideSubItems = _199[1];
|
|
621
|
+
var _200 = (0, react_1.useState)([]), importTableData = _200[0], setImportTableData = _200[1];
|
|
622
|
+
var _201 = (0, react_1.useState)([]), queryList = _201[0], setQueryList = _201[1];
|
|
623
|
+
var _202 = (0, react_1.useState)(undefined), allQueryList = _202[0], setAllQueryList = _202[1];
|
|
620
624
|
// INFO: a restored state wins over the prop; its "" is a list the user
|
|
621
625
|
// ungrouped, so it opens ungrouped
|
|
622
|
-
var
|
|
626
|
+
var _203 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.groupBy) !== undefined
|
|
623
627
|
? persistedState.groupBy || undefined
|
|
624
|
-
: (_10 = props.organise) === null || _10 === void 0 ? void 0 : _10.groupBy), groupId =
|
|
628
|
+
: (_10 = props.organise) === null || _10 === void 0 ? void 0 : _10.groupBy), groupId = _203[0], setGroupId = _203[1];
|
|
625
629
|
// INFO: each group's total per number column, keyed by section id
|
|
626
|
-
var
|
|
627
|
-
// INFO: each group's row count over every row the filters match
|
|
628
|
-
//
|
|
629
|
-
|
|
630
|
+
var _204 = (0, react_1.useState)({}), groupSummaries = _204[0], setGroupSummaries = _204[1];
|
|
631
|
+
// INFO: each group's row count over every row the filters match; null until
|
|
632
|
+
// read. A band paged alone shows it until its own first page lands, and a
|
|
633
|
+
// band it counts empty is left out instead of waiting to be read
|
|
634
|
+
var _205 = (0, react_1.useState)(null), groupTotals = _205[0], setGroupTotals = _205[1];
|
|
630
635
|
var groupSummaryRequestRef = (0, react_1.useRef)(0);
|
|
631
|
-
var
|
|
636
|
+
var _206 = (0, react_1.useState)({}), commentCounts = _206[0], setCommentCounts = _206[1];
|
|
632
637
|
// INFO: Monday-board per-group paging. Keyed by the group key that
|
|
633
638
|
// handleBuildNewTableGroups() produces (an option, Unknown or No Value).
|
|
634
639
|
// Each group tracks its own loaded cursor + total so it can lazily load its
|
|
635
640
|
// next page as the user scrolls inside that band, independent of every other
|
|
636
641
|
// group. Only used when renderCheckGroupPaging() is true.
|
|
637
|
-
var
|
|
642
|
+
var _207 = (0, react_1.useState)({}), groupPageState = _207[0], setGroupPageState = _207[1];
|
|
638
643
|
// INFO: read fresh inside the async per-group fetch so chained scroll fires
|
|
639
644
|
// in one tick do not re-fetch an already in-flight page.
|
|
640
645
|
var groupPageStateRef = (0, react_1.useRef)({});
|
|
@@ -643,59 +648,65 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
643
648
|
// list was re-read (new search, filter, sort or grouping) is dropped on
|
|
644
649
|
// arrival instead of appending rows that belong to the old list
|
|
645
650
|
var groupPagingGenRef = (0, react_1.useRef)(0);
|
|
646
|
-
|
|
647
|
-
|
|
651
|
+
// INFO: scroll-mode bands read one at a time. Bands not read yet sit
|
|
652
|
+
// stacked with no height, so scrolling brings many into view at once; read
|
|
653
|
+
// together they each re-group the whole list as they land and stall it
|
|
654
|
+
var groupLoadingKeyRef = (0, react_1.useRef)(null);
|
|
655
|
+
var groupLoadQueueRef = (0, react_1.useRef)([]);
|
|
656
|
+
var handleFetchGroupNextPageRef = (0, react_1.useRef)(function () { });
|
|
657
|
+
var _208 = (0, react_1.useState)(""), readTabSection = _208[0], setReadTabSection = _208[1];
|
|
658
|
+
var _209 = (0, react_1.useState)(false), readFloatingNav = _209[0], setReadFloatingNav = _209[1];
|
|
648
659
|
var readTabSectionRefs = (0, react_1.useRef)({});
|
|
649
660
|
//INFO : Used by Read
|
|
650
661
|
//INFO : Used by Update
|
|
651
|
-
var
|
|
652
|
-
var
|
|
653
|
-
var
|
|
654
|
-
var
|
|
655
|
-
var
|
|
656
|
-
var
|
|
657
|
-
var
|
|
662
|
+
var _210 = (0, react_1.useState)(false), modalVisible = _210[0], setModalVisible = _210[1];
|
|
663
|
+
var _211 = (0, react_1.useState)(false), deleteModal = _211[0], setDeleteModal = _211[1];
|
|
664
|
+
var _212 = (0, react_1.useState)(false), excelModal = _212[0], setExcelModal = _212[1];
|
|
665
|
+
var _213 = (0, react_1.useState)(false), exportExcel = _213[0], setExportExcel = _213[1];
|
|
666
|
+
var _214 = (0, react_1.useState)(""), exportType = _214[0], setExportType = _214[1];
|
|
667
|
+
var _215 = (0, react_1.useState)(false), exportQR = _215[0], setExportQR = _215[1];
|
|
668
|
+
var _216 = (0, react_1.useState)(function () {
|
|
658
669
|
var _a, _b;
|
|
659
670
|
var firstTabId = (_b = (_a = structure.find(function (item) { return item.tabId; })) === null || _a === void 0 ? void 0 : _a.tabId) !== null && _b !== void 0 ? _b : "";
|
|
660
671
|
return firstTabId;
|
|
661
|
-
}), activeTab =
|
|
662
|
-
var
|
|
663
|
-
var
|
|
664
|
-
var
|
|
665
|
-
var
|
|
666
|
-
var
|
|
667
|
-
var
|
|
668
|
-
var
|
|
672
|
+
}), activeTab = _216[0], setActiveTab = _216[1];
|
|
673
|
+
var _217 = (0, react_1.useState)(false), signatureSigning = _217[0], setSignatureSigning = _217[1];
|
|
674
|
+
var _218 = (0, react_1.useState)({}), selectedData = _218[0], setSelectedData = _218[1];
|
|
675
|
+
var _219 = (0, react_1.useState)(""), selectedObjectStructureId = _219[0], setSelectedObjectStructureId = _219[1];
|
|
676
|
+
var _220 = (0, react_1.useState)(""), selectedObjectId = _220[0], setSelectedObjectId = _220[1];
|
|
677
|
+
var _221 = (0, react_1.useState)(""), selectedListAddressId = _221[0], setSelectedListAddressId = _221[1];
|
|
678
|
+
var _222 = (0, react_1.useState)(-1), selectedListAddressIndex = _222[0], setSelectedListAddressIndex = _222[1];
|
|
679
|
+
var _223 = (0, react_1.useState)({
|
|
669
680
|
lat: 0,
|
|
670
681
|
lng: 0,
|
|
671
682
|
name: "",
|
|
672
|
-
}), selectedListAddress =
|
|
673
|
-
var
|
|
674
|
-
var
|
|
675
|
-
var
|
|
676
|
-
var
|
|
677
|
-
var
|
|
678
|
-
var
|
|
679
|
-
var
|
|
680
|
-
var
|
|
681
|
-
var
|
|
682
|
-
var
|
|
683
|
+
}), selectedListAddress = _223[0], setSelectedListAddress = _223[1];
|
|
684
|
+
var _224 = (0, react_1.useState)({}), selectedObjectData = _224[0], setSelectedObjectData = _224[1];
|
|
685
|
+
var _225 = (0, react_1.useState)(null), objectCellEdit = _225[0], setObjectCellEdit = _225[1];
|
|
686
|
+
var _226 = (0, react_1.useState)(false), referenceLoading = _226[0], setReferenceLoading = _226[1];
|
|
687
|
+
var _227 = (0, react_1.useState)({}), referencesOptions = _227[0], setReferencesOptions = _227[1];
|
|
688
|
+
var _228 = (0, react_1.useState)({}), referencesDetails = _228[0], setReferencesDetails = _228[1];
|
|
689
|
+
var _229 = (0, react_1.useState)({}), listReferencesOptions = _229[0], setListReferencesOptions = _229[1];
|
|
690
|
+
var _230 = (0, react_1.useState)({}), referenceDeleteTableData = _230[0], setReferenceDeleteTableData = _230[1];
|
|
691
|
+
var _231 = (0, react_1.useState)([]), relatedSections = _231[0], setRelatedSections = _231[1];
|
|
692
|
+
var _232 = (0, react_1.useState)(0), referenceDeleteIndex = _232[0], setReferenceDeleteIndex = _232[1];
|
|
693
|
+
var _233 = (0, react_1.useState)({
|
|
683
694
|
id: "",
|
|
684
695
|
name: "",
|
|
685
696
|
type: "string",
|
|
686
|
-
}), referenceCreationModal =
|
|
687
|
-
var
|
|
688
|
-
var
|
|
697
|
+
}), referenceCreationModal = _233[0], setReferenceCreationModal = _233[1];
|
|
698
|
+
var _234 = (0, react_1.useState)({}), referenceModelSchema = _234[0], setReferenceSchema = _234[1];
|
|
699
|
+
var _235 = (0, react_1.useState)([]), kanbanChecked = _235[0], setKanbanChecked = _235[1];
|
|
689
700
|
//INFO : Offline
|
|
690
|
-
var
|
|
691
|
-
var
|
|
701
|
+
var _236 = (0, react_1.useState)(0), offlineDataLength = _236[0], setOfflineDataLength = _236[1];
|
|
702
|
+
var _237 = (0, react_1.useState)(false), offlineModal = _237[0], setOfflineModal = _237[1];
|
|
692
703
|
// INFO: live-stream state — driven by socket connection and navigator.onLine
|
|
693
|
-
var
|
|
694
|
-
var
|
|
704
|
+
var _238 = (0, react_1.useState)(false), isLive = _238[0], setIsLive = _238[1];
|
|
705
|
+
var _239 = (0, react_1.useState)(false), isLiveOffline = _239[0], setIsLiveOffline = _239[1];
|
|
695
706
|
// INFO: true when navigator is offline — used to switch ReadQueryHoc between
|
|
696
707
|
// server reads (online, full pagination) and IndexedDB reads (offline, cached data).
|
|
697
708
|
// Independent of SSE status so it works even when bareSocketName is not set.
|
|
698
|
-
var
|
|
709
|
+
var _240 = (0, react_1.useState)(typeof navigator !== "undefined" ? !navigator.onLine : false), isNetworkOffline = _240[0], setIsNetworkOffline = _240[1];
|
|
699
710
|
var previousType = (0, react_1.useRef)(null);
|
|
700
711
|
var previousSelectedData = (0, react_1.useRef)(null);
|
|
701
712
|
var scrollSentinelRef = (0, react_1.useRef)(null);
|
|
@@ -850,39 +861,79 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
850
861
|
/* eslint-disable */
|
|
851
862
|
}, [groupId, tableData]);
|
|
852
863
|
/* eslint-enable */
|
|
853
|
-
// INFO:
|
|
854
|
-
//
|
|
864
|
+
// INFO: each row's comment count is asked for once — scrolling or a group
|
|
865
|
+
// loading another page asks only for the rows not counted yet, so the request
|
|
866
|
+
// stays the size of a page instead of growing with every row loaded
|
|
867
|
+
var commentCountedIdsRef = (0, react_1.useRef)(new Set());
|
|
868
|
+
var commentCollectionRef = (0, react_1.useRef)(props.collectionId);
|
|
869
|
+
commentCollectionRef.current = props.collectionId;
|
|
855
870
|
var commentCountKey = (tableData !== null && tableData !== void 0 ? tableData : [])
|
|
856
871
|
.map(function (eachRow) { var _a; return (_a = eachRow === null || eachRow === void 0 ? void 0 : eachRow.id) !== null && _a !== void 0 ? _a : eachRow === null || eachRow === void 0 ? void 0 : eachRow._id; })
|
|
857
872
|
.join(",");
|
|
858
|
-
|
|
873
|
+
var handleFetchCommentCounts = function (recordIds) {
|
|
859
874
|
var _a;
|
|
860
875
|
var onFetchCommentCounts = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.onFetchCommentCounts;
|
|
861
|
-
if (!onFetchCommentCounts)
|
|
876
|
+
if (!onFetchCommentCounts || recordIds.length === 0)
|
|
862
877
|
return;
|
|
863
|
-
var
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
878
|
+
var collectionId = props.collectionId;
|
|
879
|
+
recordIds.forEach(function (eachId) { return commentCountedIdsRef.current.add(eachId); });
|
|
880
|
+
onFetchCommentCounts(recordIds)
|
|
881
|
+
.then(function (counts) {
|
|
882
|
+
if (collectionId !== commentCollectionRef.current)
|
|
883
|
+
return;
|
|
884
|
+
var found = counts !== null && counts !== void 0 ? counts : {};
|
|
885
|
+
// INFO: a row with no comments is left out of the answer, so it is set
|
|
886
|
+
// to nothing rather than keeping an older number
|
|
887
|
+
setCommentCounts(function (previous) {
|
|
888
|
+
var next = __assign({}, previous);
|
|
889
|
+
recordIds.forEach(function (eachId) {
|
|
890
|
+
if (found[eachId] === undefined)
|
|
891
|
+
delete next[eachId];
|
|
892
|
+
else
|
|
893
|
+
next[eachId] = found[eachId];
|
|
894
|
+
});
|
|
895
|
+
return next;
|
|
896
|
+
});
|
|
897
|
+
})
|
|
898
|
+
.catch(function () {
|
|
899
|
+
recordIds.forEach(function (eachId) {
|
|
900
|
+
return commentCountedIdsRef.current.delete(eachId);
|
|
901
|
+
});
|
|
902
|
+
});
|
|
903
|
+
};
|
|
904
|
+
(0, react_1.useEffect)(function () {
|
|
905
|
+
commentCountedIdsRef.current = new Set();
|
|
906
|
+
setCommentCounts({});
|
|
907
|
+
}, [props.collectionId]);
|
|
908
|
+
(0, react_1.useEffect)(function () {
|
|
909
|
+
var _a;
|
|
910
|
+
if (!((_a = props.organise) === null || _a === void 0 ? void 0 : _a.onFetchCommentCounts))
|
|
868
911
|
return;
|
|
869
|
-
}
|
|
870
|
-
var isCurrent = true;
|
|
871
912
|
var timer = setTimeout(function () {
|
|
872
|
-
|
|
873
|
-
.
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
})
|
|
877
|
-
.catch(function () { });
|
|
913
|
+
var missing = (tableData !== null && tableData !== void 0 ? tableData : [])
|
|
914
|
+
.map(function (eachRow) { var _a, _b; return String((_b = (_a = eachRow === null || eachRow === void 0 ? void 0 : eachRow.id) !== null && _a !== void 0 ? _a : eachRow === null || eachRow === void 0 ? void 0 : eachRow._id) !== null && _b !== void 0 ? _b : ""); })
|
|
915
|
+
.filter(function (eachId) { return !!eachId && !commentCountedIdsRef.current.has(eachId); });
|
|
916
|
+
handleFetchCommentCounts(missing);
|
|
878
917
|
}, 300);
|
|
879
|
-
return function () {
|
|
880
|
-
isCurrent = false;
|
|
881
|
-
clearTimeout(timer);
|
|
882
|
-
};
|
|
918
|
+
return function () { return clearTimeout(timer); };
|
|
883
919
|
/* eslint-disable */
|
|
884
920
|
}, [commentCountKey]);
|
|
885
921
|
/* eslint-enable */
|
|
922
|
+
// INFO: a row's comments panel closing may have added or removed one, so
|
|
923
|
+
// that row alone is asked again
|
|
924
|
+
var lastActivityIdRef = (0, react_1.useRef)("");
|
|
925
|
+
(0, react_1.useEffect)(function () {
|
|
926
|
+
if (activityModal) {
|
|
927
|
+
lastActivityIdRef.current = activityId;
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
var closedId = lastActivityIdRef.current;
|
|
931
|
+
lastActivityIdRef.current = "";
|
|
932
|
+
if (closedId)
|
|
933
|
+
handleFetchCommentCounts([closedId]);
|
|
934
|
+
/* eslint-disable */
|
|
935
|
+
}, [activityModal]);
|
|
936
|
+
/* eslint-enable */
|
|
886
937
|
// INFO: each other space whose rows point at this record becomes a tab of
|
|
887
938
|
// the read view, so the counts are taken with the record — one schema query
|
|
888
939
|
// plus one single-row query per referencing column. The rows themselves load
|
|
@@ -972,7 +1023,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
972
1023
|
var isSchemaHideMode = ((_22 = props.organise) === null || _22 === void 0 ? void 0 : _22.onChangeHide) ? true : false;
|
|
973
1024
|
// INFO: rows per page is a view setting the user can change, so it starts from
|
|
974
1025
|
// the persisted value and falls back to the consumer's limit
|
|
975
|
-
var
|
|
1026
|
+
var _241 = (0, react_1.useState)((_24 = (_23 = (isPersistEnabled ? persistedState === null || persistedState === void 0 ? void 0 : persistedState.pageLimit : undefined)) !== null && _23 !== void 0 ? _23 : props.limit) !== null && _24 !== void 0 ? _24 : 10), pageLimit = _241[0], setPageLimit = _241[1];
|
|
976
1027
|
var limit = pageLimit;
|
|
977
1028
|
var isSavedViewsEnabled = !!((_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.savedViews) && resolvedType === "list";
|
|
978
1029
|
// INFO: an app that stores views takes over from this browser's storage, so
|
|
@@ -1113,7 +1164,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
1113
1164
|
displayRows: filtered.map(function (eachEntry) { return eachEntry.displayRow; }),
|
|
1114
1165
|
};
|
|
1115
1166
|
};
|
|
1116
|
-
var
|
|
1167
|
+
var _242 = (0, permissions_1.handleResolveDataTemplateWritePermissions)(props.edit), canUpdateRecord = _242.canUpdateRecord, canInlineUpdate = _242.canInlineUpdate, canBatchUpdate = _242.canBatchUpdate, canDeleteRecord = _242.canDeleteRecord;
|
|
1117
1168
|
var isEditor = ((_36 = props.edit) === null || _36 === void 0 ? void 0 : _36.allEditable) ? true : false;
|
|
1118
1169
|
var isOffline = (_37 = props.bareSettings) === null || _37 === void 0 ? void 0 : _37.bareOffline;
|
|
1119
1170
|
// INFO: when bareOfflineNetworkAware is true, the save path is also gated on
|
|
@@ -2019,6 +2070,25 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
2019
2070
|
});
|
|
2020
2071
|
});
|
|
2021
2072
|
};
|
|
2073
|
+
// INFO: a blank name, or one another view on this tab already has, keeps
|
|
2074
|
+
// the old name — saving by name would otherwise merge the two views
|
|
2075
|
+
var handleRenameSavedView = function (id, name) {
|
|
2076
|
+
var trimmed = name.trim();
|
|
2077
|
+
setRenamingSavedView(null);
|
|
2078
|
+
var views = handleGetTabSavedViews();
|
|
2079
|
+
if (!trimmed ||
|
|
2080
|
+
views.some(function (eachView) { return eachView.id !== id && eachView.name === trimmed; }))
|
|
2081
|
+
return;
|
|
2082
|
+
var rename = function (list) {
|
|
2083
|
+
return list.map(function (eachView) {
|
|
2084
|
+
return eachView.id === id ? __assign(__assign({}, eachView), { name: trimmed }) : eachView;
|
|
2085
|
+
});
|
|
2086
|
+
};
|
|
2087
|
+
if (isAppViews)
|
|
2088
|
+
handleStoreSharedViews(rename);
|
|
2089
|
+
else
|
|
2090
|
+
handleStoreSavedViews(rename);
|
|
2091
|
+
};
|
|
2022
2092
|
var handleDeleteSavedView = function (id) {
|
|
2023
2093
|
var _a, _b, _c;
|
|
2024
2094
|
// INFO: a deleted default leaves the list opening on All
|
|
@@ -3873,6 +3943,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
3873
3943
|
// INFO: per-group cursors and "exhausted" flags describe the old
|
|
3874
3944
|
// list; keeping them would skip rows or stop a group early
|
|
3875
3945
|
groupPagingGenRef.current += 1;
|
|
3946
|
+
groupLoadingKeyRef.current = null;
|
|
3947
|
+
groupLoadQueueRef.current = [];
|
|
3876
3948
|
groupPageStateRef.current = {};
|
|
3877
3949
|
setGroupPageState({});
|
|
3878
3950
|
newTableData = dataList;
|
|
@@ -4063,8 +4135,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
4063
4135
|
// cleared; dropping them now keeps a stale total off an emptied band and
|
|
4064
4136
|
// any band page still in flight off the new list
|
|
4065
4137
|
groupPagingGenRef.current += 1;
|
|
4138
|
+
groupLoadingKeyRef.current = null;
|
|
4139
|
+
groupLoadQueueRef.current = [];
|
|
4066
4140
|
groupPageStateRef.current = {};
|
|
4067
4141
|
setGroupPageState({});
|
|
4142
|
+
setGroupTotals(null);
|
|
4068
4143
|
// INFO: In scroll mode, accumulated rows must be cleared on refresh/filter change
|
|
4069
4144
|
// so the fresh response replaces stale data instead of being deduped away.
|
|
4070
4145
|
if (renderCheckScrollMode()) {
|
|
@@ -9978,7 +10053,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
9978
10053
|
// of its own, and a picked row opens in place instead of navigating away, so
|
|
9979
10054
|
// this record's tabs stay put.
|
|
9980
10055
|
var renderRelatedList = function (source, query, openId, onOpen) {
|
|
9981
|
-
var _a, _b, _c;
|
|
10056
|
+
var _a, _b, _c, _d;
|
|
9982
10057
|
return (react_1.default.createElement(exports.DataTemplate, { title: "", description: "", type: openId ? "read" : "list", id: openId, collectionId: source.collectionId, model: source.schema, localURLEndpoint: props.localURLEndpoint, devSettings: __assign(__assign({}, props.devSettings), { schemaEndpoint: "" }), lib: props.lib, organise: {
|
|
9983
10058
|
darkMode: (_a = props.organise) === null || _a === void 0 ? void 0 : _a.darkMode,
|
|
9984
10059
|
darkModeBg: (_b = props.organise) === null || _b === void 0 ? void 0 : _b.darkModeBg,
|
|
@@ -9989,6 +10064,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
9989
10064
|
}, bareSettings: {
|
|
9990
10065
|
bareListFilterQuery: query,
|
|
9991
10066
|
bareNewDTW: (_c = props.bareSettings) === null || _c === void 0 ? void 0 : _c.bareNewDTW,
|
|
10067
|
+
// INFO: the related list sits inside this record, so it takes the
|
|
10068
|
+
// record's layout rather than the full one
|
|
10069
|
+
bareCompactMode: (_d = props.bareSettings) === null || _d === void 0 ? void 0 : _d.bareCompactMode,
|
|
9992
10070
|
} }));
|
|
9993
10071
|
};
|
|
9994
10072
|
var renderAddMathColumn = function (id, onClose) {
|
|
@@ -10033,8 +10111,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10033
10111
|
count: isGroupPaging
|
|
10034
10112
|
? ((_a = groupPageState[eachSection.id]) === null || _a === void 0 ? void 0 : _a.fetched)
|
|
10035
10113
|
? Math.max(groupPageState[eachSection.id].size, eachSection.rowIds.length)
|
|
10036
|
-
:
|
|
10037
|
-
|
|
10114
|
+
: // INFO: a band the count puts at zero stays unknown and reads
|
|
10115
|
+
// itself — a list pipeline can hold rows the count does not see
|
|
10116
|
+
(groupTotals === null || groupTotals === void 0 ? void 0 : groupTotals[eachSection.id])
|
|
10117
|
+
? Math.max(groupTotals[eachSection.id], eachSection.rowIds.length)
|
|
10118
|
+
: undefined
|
|
10119
|
+
: (groupTotals === null || groupTotals === void 0 ? void 0 : groupTotals[eachSection.id]) !== undefined
|
|
10038
10120
|
? Math.max(groupTotals[eachSection.id], eachSection.rowIds.length)
|
|
10039
10121
|
: undefined }));
|
|
10040
10122
|
});
|
|
@@ -10117,7 +10199,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10117
10199
|
column = handleGetGroupColumn();
|
|
10118
10200
|
requestId = ++groupSummaryRequestRef.current;
|
|
10119
10201
|
sumIds = handleGetGroupSumIds();
|
|
10120
|
-
isCountNeeded = !renderCheckGroupPaging();
|
|
10202
|
+
isCountNeeded = !renderCheckGroupPaging() || renderCheckScrollMode();
|
|
10121
10203
|
if (!column ||
|
|
10122
10204
|
!isDatasheetDefaults ||
|
|
10123
10205
|
!((_c = props.bareSettings) === null || _c === void 0 ? void 0 : _c.bareNewDTW) ||
|
|
@@ -10131,9 +10213,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10131
10213
|
setGroupSummaries(function (previous) {
|
|
10132
10214
|
return Object.keys(previous).length > 0 ? {} : previous;
|
|
10133
10215
|
});
|
|
10134
|
-
setGroupTotals(
|
|
10135
|
-
return Object.keys(previous).length > 0 ? {} : previous;
|
|
10136
|
-
});
|
|
10216
|
+
setGroupTotals(null);
|
|
10137
10217
|
return [2 /*return*/];
|
|
10138
10218
|
}
|
|
10139
10219
|
query = (_f = renderImpSearchFilterConditions()) !== null && _f !== void 0 ? _f : [];
|
|
@@ -10175,12 +10255,11 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10175
10255
|
return [2 /*return*/];
|
|
10176
10256
|
options_1 = handleGetGroupColumnOptions();
|
|
10177
10257
|
totals_1 = {};
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
});
|
|
10258
|
+
(0, chartResults_1.handleFlattenGroupedResult)(countResult === null || countResult === void 0 ? void 0 : countResult.data).forEach(function (eachGroup) {
|
|
10259
|
+
var _a, _b;
|
|
10260
|
+
var sectionId = (0, groupSections_1.handleGetGroupKey)(column, eachGroup.key, options_1, isFirebase);
|
|
10261
|
+
totals_1[sectionId] = ((_a = totals_1[sectionId]) !== null && _a !== void 0 ? _a : 0) + ((_b = eachGroup.value) !== null && _b !== void 0 ? _b : 0);
|
|
10262
|
+
});
|
|
10184
10263
|
sums_1 = {};
|
|
10185
10264
|
results.forEach(function (eachResult, index) {
|
|
10186
10265
|
(0, chartResults_1.handleFlattenGroupedResult)(eachResult === null || eachResult === void 0 ? void 0 : eachResult.data).forEach(function (eachGroup) {
|
|
@@ -10192,13 +10271,13 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10192
10271
|
});
|
|
10193
10272
|
});
|
|
10194
10273
|
setGroupSummaries(sums_1);
|
|
10195
|
-
setGroupTotals(totals_1);
|
|
10274
|
+
setGroupTotals(countResult ? totals_1 : null);
|
|
10196
10275
|
return [3 /*break*/, 4];
|
|
10197
10276
|
case 3:
|
|
10198
10277
|
_b = _g.sent();
|
|
10199
10278
|
if (requestId === groupSummaryRequestRef.current) {
|
|
10200
10279
|
setGroupSummaries({});
|
|
10201
|
-
setGroupTotals(
|
|
10280
|
+
setGroupTotals(null);
|
|
10202
10281
|
}
|
|
10203
10282
|
return [3 /*break*/, 4];
|
|
10204
10283
|
case 4: return [2 /*return*/];
|
|
@@ -10302,7 +10381,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10302
10381
|
// tableData / spaceTableData, so handleBuildNewTableGroups() keeps building
|
|
10303
10382
|
// bands from one source; each group advances its own cursor
|
|
10304
10383
|
var handleFetchGroupNextPage = function (groupKey) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10305
|
-
var current, groupSize, cursor, generation, page_1, existingIds_1, appendRaw_1, appendPretty_1, nextCursor, err_29;
|
|
10384
|
+
var current, groupSize, cursor, generation, page_1, existingIds_1, appendRaw_1, appendPretty_1, nextCursor, err_29, nextKey;
|
|
10306
10385
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
10307
10386
|
return __generator(this, function (_h) {
|
|
10308
10387
|
switch (_h.label) {
|
|
@@ -10327,12 +10406,19 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10327
10406
|
});
|
|
10328
10407
|
return [2 /*return*/];
|
|
10329
10408
|
}
|
|
10409
|
+
if (groupLoadingKeyRef.current) {
|
|
10410
|
+
if (groupLoadingKeyRef.current !== groupKey &&
|
|
10411
|
+
!groupLoadQueueRef.current.includes(groupKey))
|
|
10412
|
+
groupLoadQueueRef.current.push(groupKey);
|
|
10413
|
+
return [2 /*return*/];
|
|
10414
|
+
}
|
|
10415
|
+
groupLoadingKeyRef.current = groupKey;
|
|
10330
10416
|
cursor = (_g = (_d = current === null || current === void 0 ? void 0 : current.cursor) !== null && _d !== void 0 ? _d : (_f = ((_e = handleBuildNewTableGroups()) !== null && _e !== void 0 ? _e : []).find(function (eachGroup) { return eachGroup.id === groupKey; })) === null || _f === void 0 ? void 0 : _f.rowIds.length) !== null && _g !== void 0 ? _g : 0;
|
|
10331
10417
|
generation = groupPagingGenRef.current;
|
|
10332
10418
|
handleSetGroupPageState(groupKey, { cursor: cursor, loadingMore: true });
|
|
10333
10419
|
_h.label = 1;
|
|
10334
10420
|
case 1:
|
|
10335
|
-
_h.trys.push([1, 3, ,
|
|
10421
|
+
_h.trys.push([1, 3, 4, 5]);
|
|
10336
10422
|
return [4 /*yield*/, handleReadGroupPage(groupKey, cursor)];
|
|
10337
10423
|
case 2:
|
|
10338
10424
|
page_1 = _h.sent();
|
|
@@ -10357,7 +10443,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10357
10443
|
fetched: true,
|
|
10358
10444
|
exhausted: page_1.rawRows.length === 0 || nextCursor >= page_1.count,
|
|
10359
10445
|
});
|
|
10360
|
-
return [3 /*break*/,
|
|
10446
|
+
return [3 /*break*/, 5];
|
|
10361
10447
|
case 3:
|
|
10362
10448
|
err_29 = _h.sent();
|
|
10363
10449
|
if (generation !== groupPagingGenRef.current)
|
|
@@ -10365,11 +10451,22 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10365
10451
|
// INFO: clear the in-flight flag so a failed page can be retried on the
|
|
10366
10452
|
// next scroll rather than wedging the band in a loading state
|
|
10367
10453
|
handleSetGroupPageState(groupKey, { loadingMore: false });
|
|
10368
|
-
return [3 /*break*/,
|
|
10369
|
-
case 4:
|
|
10454
|
+
return [3 /*break*/, 5];
|
|
10455
|
+
case 4:
|
|
10456
|
+
// INFO: a re-read already emptied the queue for the new list
|
|
10457
|
+
if (generation === groupPagingGenRef.current) {
|
|
10458
|
+
groupLoadingKeyRef.current = null;
|
|
10459
|
+
nextKey = groupLoadQueueRef.current.shift();
|
|
10460
|
+
// INFO: through the ref, so the next band reads with this render's rows
|
|
10461
|
+
if (nextKey)
|
|
10462
|
+
handleFetchGroupNextPageRef.current(nextKey);
|
|
10463
|
+
}
|
|
10464
|
+
return [7 /*endfinally*/];
|
|
10465
|
+
case 5: return [2 /*return*/];
|
|
10370
10466
|
}
|
|
10371
10467
|
});
|
|
10372
10468
|
}); };
|
|
10469
|
+
handleFetchGroupNextPageRef.current = handleFetchGroupNextPage;
|
|
10373
10470
|
// INFO: page mode — swaps ONE group's rows for its page `page`; every other
|
|
10374
10471
|
// group keeps the page it is on
|
|
10375
10472
|
var handleFetchGroupPage = function (groupKey, page) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -10839,11 +10936,47 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10839
10936
|
: "border-gray-300 text-gray-600 hover:bg-gray-50");
|
|
10840
10937
|
};
|
|
10841
10938
|
var actionClass = "text-xs font-medium ".concat(darkMode ? "text-primary-300" : "text-primary-600", " hover:underline");
|
|
10939
|
+
// INFO: past a row or so of views only the first few show, plus the one
|
|
10940
|
+
// that is open, so a long list does not push the table down the page
|
|
10941
|
+
var isViewsFolded = views.length > SAVED_VIEWS_FOLDED_COUNT && !isSavedViewsExpanded;
|
|
10942
|
+
var shownViews = isViewsFolded
|
|
10943
|
+
? views.filter(function (eachView, index) {
|
|
10944
|
+
return index < SAVED_VIEWS_FOLDED_COUNT ||
|
|
10945
|
+
eachView.id === (activeView === null || activeView === void 0 ? void 0 : activeView.id) ||
|
|
10946
|
+
eachView.id === (renamingSavedView === null || renamingSavedView === void 0 ? void 0 : renamingSavedView.id) ||
|
|
10947
|
+
eachView.id === deletingSavedViewId;
|
|
10948
|
+
})
|
|
10949
|
+
: views;
|
|
10842
10950
|
return (react_1.default.createElement("div", { "data-testid": "dtw-saved-views", className: "mt-3 flex flex-wrap items-center gap-2" },
|
|
10843
10951
|
react_1.default.createElement("span", { className: "text-xs font-medium ".concat(darkMode ? "text-gray-400" : "text-gray-500") }, "Views"),
|
|
10844
10952
|
react_1.default.createElement("button", { type: "button", "data-testid": "dtw-saved-view-all", className: renderChipClass(!activeView), onClick: function () { return handleApplySavedView(null); } }, "All"),
|
|
10845
|
-
|
|
10846
|
-
return
|
|
10953
|
+
shownViews.map(function (eachView) {
|
|
10954
|
+
return (renamingSavedView === null || renamingSavedView === void 0 ? void 0 : renamingSavedView.id) === eachView.id ? (
|
|
10955
|
+
// INFO: a form, so a mobile keyboard's Done renames the view;
|
|
10956
|
+
// stopPropagation keeps the submit from reaching any form around
|
|
10957
|
+
// the template
|
|
10958
|
+
react_1.default.createElement("form", { key: eachView.id, "data-testid": "dtw-saved-view-rename-form-".concat(eachView.id), className: "flex items-center gap-1", onSubmit: function (event) {
|
|
10959
|
+
event.preventDefault();
|
|
10960
|
+
event.stopPropagation();
|
|
10961
|
+
handleRenameSavedView(eachView.id, renamingSavedView.name);
|
|
10962
|
+
} },
|
|
10963
|
+
react_1.default.createElement(textInput_1.TextInput, { id: "dtw-saved-view-rename-input-".concat(eachView.id), type: "text", label: "", size: "xs", autoFocus: true, enterKeyHint: "done", darkMode: darkMode, value: renamingSavedView.name, placeholder: "View name", containerClassName: "w-32 sm:w-44", onChange: function (event) {
|
|
10964
|
+
return setRenamingSavedView({
|
|
10965
|
+
id: eachView.id,
|
|
10966
|
+
name: event.target.value,
|
|
10967
|
+
});
|
|
10968
|
+
}, onKeyDown: function (event) {
|
|
10969
|
+
if (event.key === "Escape")
|
|
10970
|
+
setRenamingSavedView(null);
|
|
10971
|
+
// INFO: some mobile keyboards send only the keyCode
|
|
10972
|
+
if (event.key === "Enter" || event.keyCode === 13) {
|
|
10973
|
+
event.preventDefault();
|
|
10974
|
+
event.stopPropagation();
|
|
10975
|
+
handleRenameSavedView(eachView.id, renamingSavedView.name);
|
|
10976
|
+
}
|
|
10977
|
+
} }),
|
|
10978
|
+
react_1.default.createElement("button", { type: "submit", className: actionClass }, "Save"),
|
|
10979
|
+
react_1.default.createElement("button", { type: "button", className: "text-xs font-medium ".concat(darkMode ? "text-gray-300" : "text-gray-500", " hover:underline"), onClick: function () { return setRenamingSavedView(null); } }, "Cancel"))) : deletingSavedViewId === eachView.id ? (react_1.default.createElement("span", { key: eachView.id, className: renderChipClass(false) },
|
|
10847
10980
|
"Delete \u201C",
|
|
10848
10981
|
eachView.name,
|
|
10849
10982
|
"\u201D?",
|
|
@@ -10863,9 +10996,21 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
10863
10996
|
var _a, _b;
|
|
10864
10997
|
return (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.onChangeDefaultSavedViewId) === null || _b === void 0 ? void 0 : _b.call(_a, eachView.id === defaultViewId ? null : eachView.id);
|
|
10865
10998
|
} }, eachView.id === defaultViewId ? "★" : "☆")),
|
|
10999
|
+
!eachView.locked && (react_1.default.createElement("button", { type: "button", "aria-label": "Rename ".concat(eachView.name), "data-testid": "dtw-saved-view-rename-".concat(eachView.id), className: "text-gray-400 hover:text-gray-600", onClick: function () {
|
|
11000
|
+
return setRenamingSavedView({
|
|
11001
|
+
id: eachView.id,
|
|
11002
|
+
name: eachView.name,
|
|
11003
|
+
});
|
|
11004
|
+
} },
|
|
11005
|
+
react_1.default.createElement(outline_1.PencilIcon, { className: "h-3.5 w-3.5" }))),
|
|
10866
11006
|
!eachView.locked && (react_1.default.createElement("button", { type: "button", "aria-label": "Delete ".concat(eachView.name), "data-testid": "dtw-saved-view-delete-".concat(eachView.id), onClick: function () { return setDeletingSavedViewId(eachView.id); } },
|
|
10867
11007
|
react_1.default.createElement(outline_1.XMarkIcon, { className: "h-3.5 w-3.5" })))));
|
|
10868
11008
|
}),
|
|
11009
|
+
(isViewsFolded
|
|
11010
|
+
? views.length > shownViews.length
|
|
11011
|
+
: views.length > SAVED_VIEWS_FOLDED_COUNT) ? (react_1.default.createElement("button", { type: "button", "data-testid": "dtw-saved-views-more", className: actionClass, onClick: function () { return setIsSavedViewsExpanded(!isSavedViewsExpanded); } }, isViewsFolded
|
|
11012
|
+
? "+".concat(views.length - shownViews.length, " more")
|
|
11013
|
+
: "Show less")) : null,
|
|
10869
11014
|
activeView && isModified && !activeView.locked && (react_1.default.createElement("button", { type: "button", "data-testid": "dtw-saved-view-update", className: actionClass, onClick: function () { return handleUpdateSavedView(activeView.id); } },
|
|
10870
11015
|
"Update \u201C",
|
|
10871
11016
|
activeView.name,
|
|
@@ -12357,7 +12502,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
12357
12502
|
// toolbar's collection-wide button clears it when it opens.
|
|
12358
12503
|
onClose: function () { return setActivityModal(false); }, anchor: "responsive", maxWidth: "2xl", maxHeight: "75", title: "Activity Log", content: react_1.default.createElement(activityModal_1.ActivityModal, { title: props.title && typeof props.title === "string"
|
|
12359
12504
|
? props.title
|
|
12360
|
-
: "this collection", devSettings: props.devSettings, collectionId: props.collectionId, dataId: resolvedType === "read" ? ((_119 = props.id) !== null && _119 !== void 0 ? _119 : "") : activityId, activityLog: (_120 = props.edit) === null || _120 === void 0 ? void 0 : _120.activityLog,
|
|
12505
|
+
: "this collection", devSettings: props.devSettings, collectionId: props.collectionId, dataId: resolvedType === "read" ? ((_119 = props.id) !== null && _119 !== void 0 ? _119 : "") : activityId, activityLog: (_120 = props.edit) === null || _120 === void 0 ? void 0 : _120.activityLog,
|
|
12506
|
+
// INFO: names the record in the drawer's heading; without it
|
|
12507
|
+
// the lookup reads a "title" field most datasheets lack and
|
|
12508
|
+
// the heading shows the record's id. A title or name column
|
|
12509
|
+
// comes first, then the first text column
|
|
12510
|
+
recordTitleColumn: (_123 = ((_122 = (_121 = structure.find(function (eachDS) { return eachDS.id === "title"; })) !== null && _121 !== void 0 ? _121 : structure.find(function (eachDS) { return eachDS.id === "name"; })) !== null && _122 !== void 0 ? _122 : structure.find(function (eachDS) { return eachDS.type === "string"; }))) === null || _123 === void 0 ? void 0 : _123.id, model: structure }) })), document.body),
|
|
12361
12511
|
renderScrollSentinel()));
|
|
12362
12512
|
});
|
|
12363
12513
|
//# sourceMappingURL=index.js.map
|