blixify-ui-web 1.2.251 → 1.2.252
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/blobModule.d.ts +1 -0
- package/lib/components/data/blobModule.d.ts.map +1 -1
- package/lib/components/data/blobModule.js +24 -2
- package/lib/components/data/blobModule.js.map +1 -1
- package/lib/components/data/columnTypes/dateRangeCalendar.d.ts +36 -0
- package/lib/components/data/columnTypes/dateRangeCalendar.d.ts.map +1 -0
- package/lib/components/data/columnTypes/dateRangeCalendar.js +226 -0
- package/lib/components/data/columnTypes/dateRangeCalendar.js.map +1 -0
- package/lib/components/data/columnTypes/dateRangeCell.d.ts +2 -0
- package/lib/components/data/columnTypes/dateRangeCell.d.ts.map +1 -1
- package/lib/components/data/columnTypes/dateRangeCell.js +63 -11
- package/lib/components/data/columnTypes/dateRangeCell.js.map +1 -1
- package/lib/components/data/columnTypes/lookup.d.ts.map +1 -1
- package/lib/components/data/columnTypes/lookup.js +11 -2
- package/lib/components/data/columnTypes/lookup.js.map +1 -1
- package/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +78 -46
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/model.d.ts +1 -0
- package/lib/components/data/dataTemplate/model.d.ts.map +1 -1
- package/lib/components/data/listModule.d.ts +1 -1
- package/lib/components/data/listModule.d.ts.map +1 -1
- package/lib/components/data/listModule.js +11 -5
- package/lib/components/data/listModule.js.map +1 -1
- package/lib/components/data/updateModule.d.ts +5 -0
- package/lib/components/data/updateModule.d.ts.map +1 -1
- package/lib/components/data/updateModule.js +24 -2
- package/lib/components/data/updateModule.js.map +1 -1
- package/lib/components/display/newTable/index.d.ts +5 -0
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +576 -107
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/display/newTable/labelPicker.d.ts +24 -0
- package/lib/components/display/newTable/labelPicker.d.ts.map +1 -0
- package/lib/components/display/newTable/labelPicker.js +228 -0
- package/lib/components/display/newTable/labelPicker.js.map +1 -0
- package/lib/components/input/datePicker/index.d.ts.map +1 -1
- package/lib/components/input/datePicker/index.js +18 -8
- package/lib/components/input/datePicker/index.js.map +1 -1
- package/lib/components/input/select/index.d.ts +13 -0
- package/lib/components/input/select/index.d.ts.map +1 -1
- package/lib/components/input/select/index.js +248 -31
- package/lib/components/input/select/index.js.map +1 -1
- package/lib/components/input/textInput/index.d.ts.map +1 -1
- package/lib/components/input/textInput/index.js +41 -6
- package/lib/components/input/textInput/index.js.map +1 -1
- package/lib/components/input/utils.d.ts +12 -0
- package/lib/components/input/utils.d.ts.map +1 -1
- package/lib/components/input/utils.js.map +1 -1
- package/lib/tail.css +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAiHf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAgI1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAiHf,OAAO,EACL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAgI1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFAwlgBvB,CAAC"}
|
|
@@ -696,26 +696,29 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
696
696
|
var _227 = (0, react_1.useState)({}), referencesOptions = _227[0], setReferencesOptions = _227[1];
|
|
697
697
|
var _228 = (0, react_1.useState)({}), referencesDetails = _228[0], setReferencesDetails = _228[1];
|
|
698
698
|
var _229 = (0, react_1.useState)({}), listReferencesOptions = _229[0], setListReferencesOptions = _229[1];
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
var
|
|
702
|
-
var
|
|
699
|
+
// INFO: the referenced records themselves, for a table cell that picks from
|
|
700
|
+
// a list on one (referenceSelection)
|
|
701
|
+
var _230 = (0, react_1.useState)({}), listReferencesDetails = _230[0], setListReferencesDetails = _230[1];
|
|
702
|
+
var _231 = (0, react_1.useState)({}), referenceDeleteTableData = _231[0], setReferenceDeleteTableData = _231[1];
|
|
703
|
+
var _232 = (0, react_1.useState)([]), relatedSections = _232[0], setRelatedSections = _232[1];
|
|
704
|
+
var _233 = (0, react_1.useState)(0), referenceDeleteIndex = _233[0], setReferenceDeleteIndex = _233[1];
|
|
705
|
+
var _234 = (0, react_1.useState)({
|
|
703
706
|
id: "",
|
|
704
707
|
name: "",
|
|
705
708
|
type: "string",
|
|
706
|
-
}), referenceCreationModal =
|
|
707
|
-
var
|
|
708
|
-
var
|
|
709
|
+
}), referenceCreationModal = _234[0], setReferenceCreationModal = _234[1];
|
|
710
|
+
var _235 = (0, react_1.useState)({}), referenceModelSchema = _235[0], setReferenceSchema = _235[1];
|
|
711
|
+
var _236 = (0, react_1.useState)([]), kanbanChecked = _236[0], setKanbanChecked = _236[1];
|
|
709
712
|
//INFO : Offline
|
|
710
|
-
var
|
|
711
|
-
var
|
|
713
|
+
var _237 = (0, react_1.useState)(0), offlineDataLength = _237[0], setOfflineDataLength = _237[1];
|
|
714
|
+
var _238 = (0, react_1.useState)(false), offlineModal = _238[0], setOfflineModal = _238[1];
|
|
712
715
|
// INFO: live-stream state — driven by socket connection and navigator.onLine
|
|
713
|
-
var
|
|
714
|
-
var
|
|
716
|
+
var _239 = (0, react_1.useState)(false), isLive = _239[0], setIsLive = _239[1];
|
|
717
|
+
var _240 = (0, react_1.useState)(false), isLiveOffline = _240[0], setIsLiveOffline = _240[1];
|
|
715
718
|
// INFO: true when navigator is offline — used to switch ReadQueryHoc between
|
|
716
719
|
// server reads (online, full pagination) and IndexedDB reads (offline, cached data).
|
|
717
720
|
// Independent of SSE status so it works even when bareSocketName is not set.
|
|
718
|
-
var
|
|
721
|
+
var _241 = (0, react_1.useState)(typeof navigator !== "undefined" ? !navigator.onLine : false), isNetworkOffline = _241[0], setIsNetworkOffline = _241[1];
|
|
719
722
|
var previousType = (0, react_1.useRef)(null);
|
|
720
723
|
var previousSelectedData = (0, react_1.useRef)(null);
|
|
721
724
|
var scrollSentinelRef = (0, react_1.useRef)(null);
|
|
@@ -1032,7 +1035,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1032
1035
|
var isSchemaHideMode = ((_22 = props.organise) === null || _22 === void 0 ? void 0 : _22.onChangeHide) ? true : false;
|
|
1033
1036
|
// INFO: rows per page is a view setting the user can change, so it starts from
|
|
1034
1037
|
// the persisted value and falls back to the consumer's limit
|
|
1035
|
-
var
|
|
1038
|
+
var _242 = (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 = _242[0], setPageLimit = _242[1];
|
|
1036
1039
|
var limit = pageLimit;
|
|
1037
1040
|
var isSavedViewsEnabled = !!((_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.savedViews) && resolvedType === "list";
|
|
1038
1041
|
// INFO: an app that stores views takes over from this browser's storage, so
|
|
@@ -1173,7 +1176,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1173
1176
|
displayRows: filtered.map(function (eachEntry) { return eachEntry.displayRow; }),
|
|
1174
1177
|
};
|
|
1175
1178
|
};
|
|
1176
|
-
var
|
|
1179
|
+
var _243 = (0, permissions_1.handleResolveDataTemplateWritePermissions)(props.edit), canUpdateRecord = _243.canUpdateRecord, canInlineUpdate = _243.canInlineUpdate, canBatchUpdate = _243.canBatchUpdate, canDeleteRecord = _243.canDeleteRecord;
|
|
1177
1180
|
var isEditor = ((_36 = props.edit) === null || _36 === void 0 ? void 0 : _36.allEditable) ? true : false;
|
|
1178
1181
|
var isOffline = (_37 = props.bareSettings) === null || _37 === void 0 ? void 0 : _37.bareOffline;
|
|
1179
1182
|
// INFO: when bareOfflineNetworkAware is true, the save path is also gated on
|
|
@@ -3674,6 +3677,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
3674
3677
|
return;
|
|
3675
3678
|
formulaCondKeyRef.current = JSON.stringify(handleReadQueryHocCond());
|
|
3676
3679
|
});
|
|
3680
|
+
// INFO: the referenced records kept for the table's cells add up as pages
|
|
3681
|
+
// and groups load. Another collection starts afresh, as its list always
|
|
3682
|
+
// loads again; a new filter or search keeps them, as not every one reloads
|
|
3683
|
+
// the rows that read them
|
|
3684
|
+
var listReferencesCollectionRef = (0, react_1.useRef)(props.collectionId);
|
|
3685
|
+
(0, react_1.useEffect)(function () {
|
|
3686
|
+
if (listReferencesCollectionRef.current === props.collectionId)
|
|
3687
|
+
return;
|
|
3688
|
+
listReferencesCollectionRef.current = props.collectionId;
|
|
3689
|
+
setListReferencesDetails({});
|
|
3690
|
+
}, [props.collectionId]);
|
|
3677
3691
|
var handleSelectIds = function (selectedIds) {
|
|
3678
3692
|
var _a;
|
|
3679
3693
|
setSelectedIds(selectedIds);
|
|
@@ -3775,6 +3789,24 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
3775
3789
|
});
|
|
3776
3790
|
});
|
|
3777
3791
|
setListReferencesOptions(function (prev) { return (__assign(__assign({}, prev), seeded)); });
|
|
3792
|
+
// INFO: each group of a grouped list loads its own page of records, so a
|
|
3793
|
+
// column's records are added to what earlier groups loaded, not replaced
|
|
3794
|
+
setListReferencesDetails(function (prev) {
|
|
3795
|
+
var merged = __assign({}, prev);
|
|
3796
|
+
Object.entries(details !== null && details !== void 0 ? details : {}).forEach(function (_a) {
|
|
3797
|
+
var _b;
|
|
3798
|
+
var eachKey = _a[0], eachDocs = _a[1];
|
|
3799
|
+
if (!Array.isArray(eachDocs))
|
|
3800
|
+
return;
|
|
3801
|
+
var byId = new Map(((_b = merged[eachKey]) !== null && _b !== void 0 ? _b : []).map(function (eachDoc) { return [
|
|
3802
|
+
eachDoc[serverId],
|
|
3803
|
+
eachDoc,
|
|
3804
|
+
]; }));
|
|
3805
|
+
eachDocs.forEach(function (eachDoc) { return byId.set(eachDoc[serverId], eachDoc); });
|
|
3806
|
+
merged[eachKey] = Array.from(byId.values());
|
|
3807
|
+
});
|
|
3808
|
+
return merged;
|
|
3809
|
+
});
|
|
3778
3810
|
};
|
|
3779
3811
|
var handleSetListData = function (newTableData, newSpaceTableData) {
|
|
3780
3812
|
var _a, _b, _c, _d, _e;
|
|
@@ -10597,7 +10629,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10597
10629
|
};
|
|
10598
10630
|
};
|
|
10599
10631
|
var renderGroupTable = function (multipleSelect) {
|
|
10600
|
-
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;
|
|
10632
|
+
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;
|
|
10601
10633
|
if (groupId && !((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareNewDTW)) {
|
|
10602
10634
|
// INFO: sections are keyed off the raw rows, in option order, with
|
|
10603
10635
|
// Unknown and No Value last — the same sections the new table draws
|
|
@@ -10724,7 +10756,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10724
10756
|
else {
|
|
10725
10757
|
// INFO: when bareNewDTW is enabled, render NewTable instead of legacy Table
|
|
10726
10758
|
if ((_b = props.bareSettings) === null || _b === void 0 ? void 0 : _b.bareNewDTW) {
|
|
10727
|
-
return (react_1.default.createElement(newTable_1.NewTable, { darkModeBg: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkModeBg, showId: showId, paginationType: renderResolvedPaginationType(), data: newTableRows, spaceData: newTableSpaceRows !== null && newTableSpaceRows !== void 0 ? newTableSpaceRows : [], referencesOptions: listReferencesOptions, groups: handleBuildNewTableGroups(), groupColumnKey: groupId || undefined, onRowActivity: recordActivityAction, onRowEdit: recordEditAction, onRowOpen: recordOpenAction, commentCounts: ((_d = props.organise) === null || _d === void 0 ? void 0 : _d.onFetchCommentCounts) ? commentCounts : undefined, onMoveRowToGroup: isDatasheetDefaults && canUpdateRecord && groupId
|
|
10759
|
+
return (react_1.default.createElement(newTable_1.NewTable, { darkModeBg: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.darkModeBg, showId: showId, paginationType: renderResolvedPaginationType(), data: newTableRows, spaceData: newTableSpaceRows !== null && newTableSpaceRows !== void 0 ? newTableSpaceRows : [], referencesOptions: listReferencesOptions, referencesDetails: listReferencesDetails, groups: handleBuildNewTableGroups(), groupColumnKey: groupId || undefined, onRowActivity: recordActivityAction, onRowEdit: recordEditAction, onRowOpen: recordOpenAction, commentCounts: ((_d = props.organise) === null || _d === void 0 ? void 0 : _d.onFetchCommentCounts) ? commentCounts : undefined, onMoveRowToGroup: isDatasheetDefaults && canUpdateRecord && groupId
|
|
10728
10760
|
? handleMoveRowToGroup
|
|
10729
10761
|
: undefined,
|
|
10730
10762
|
// INFO: per-group paging — scroll appends inside a band, page
|
|
@@ -10735,8 +10767,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10735
10767
|
? function (groupKey, page) {
|
|
10736
10768
|
return handleFetchGroupPage(groupKey, page);
|
|
10737
10769
|
}
|
|
10738
|
-
: undefined, groupLoadingStatus: renderCheckGroupPaging() ? groupPageState : undefined, size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: ((_f = (_e = props.organise) === null || _e === void 0 ? void 0 : _e.disableSelectFullData) === null || _f === void 0 ? void 0 : _f.table) || isFormulaView, maxSelectedCount: (_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareListMaxSelectedCount, mobileView: (_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareListMobileView, mobileTooltip: (_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareMobileTooltip, multiActionFloatingBtns: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], (canBatchUpdate &&
|
|
10739
|
-
!((
|
|
10770
|
+
: undefined, groupLoadingStatus: renderCheckGroupPaging() ? groupPageState : undefined, size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: ((_f = (_e = props.organise) === null || _e === void 0 ? void 0 : _e.disableSelectFullData) === null || _f === void 0 ? void 0 : _f.table) || isFormulaView, maxSelectedCount: (_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareListMaxSelectedCount, mobileView: (_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareListMobileView, mobileTooltip: (_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareMobileTooltip, gridLines: (_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareListGridLines, multiActionFloatingBtns: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], (canBatchUpdate &&
|
|
10771
|
+
!((_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareHideTableExtraMultipleAction)
|
|
10740
10772
|
? [
|
|
10741
10773
|
{
|
|
10742
10774
|
id: "clone",
|
|
@@ -10764,7 +10796,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10764
10796
|
onClick: function () { return setBatchUpdateModal(true); },
|
|
10765
10797
|
},
|
|
10766
10798
|
]
|
|
10767
|
-
: []), true), (((
|
|
10799
|
+
: []), true), (((_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareListMultipleSelectAddtionalActions)
|
|
10768
10800
|
? props.bareSettings.bareListMultipleSelectAddtionalActions.map(function (eachButton) { return ({
|
|
10769
10801
|
id: "dt-list-multi-action-btn-" + eachButton.text,
|
|
10770
10802
|
btnText: eachButton.text,
|
|
@@ -10773,28 +10805,28 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10773
10805
|
return (_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
|
|
10774
10806
|
},
|
|
10775
10807
|
}); })
|
|
10776
|
-
: []), true), multiActionFloatingOffset: (
|
|
10808
|
+
: []), true), multiActionFloatingOffset: (_o = props.bareSettings) === null || _o === void 0 ? void 0 : _o.bareListFloatingActionOffset, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(true), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
|
|
10777
10809
|
var _a, _b;
|
|
10778
10810
|
handleCaptureListScroll(id);
|
|
10779
10811
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
10780
|
-
}, linkType: props.linkType, custom: props.custom, newTabUrl: (
|
|
10812
|
+
}, linkType: props.linkType, custom: props.custom, newTabUrl: (_q = (_p = props.newTabUrl) === null || _p === void 0 ? void 0 : _p.default) !== null && _q !== void 0 ? _q : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_s = (_r = props.newTabUrl) === null || _r === void 0 ? void 0 : _r.addons) !== null && _s !== void 0 ? _s : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
|
|
10781
10813
|
handlePagination(value);
|
|
10782
|
-
}, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (
|
|
10814
|
+
}, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_t = props.organise) === null || _t === void 0 ? void 0 : _t.fixedPagination, advSettings: {
|
|
10783
10815
|
// INFO: bareAddColumns routes the + to the name/type popup; without
|
|
10784
10816
|
// it the flag behaves as it always did and opens the formula builder
|
|
10785
|
-
flat: (
|
|
10786
|
-
addColumnEnabled: ((
|
|
10787
|
-
((
|
|
10788
|
-
onAddColumn: ((
|
|
10817
|
+
flat: (_u = props.bareSettings) === null || _u === void 0 ? void 0 : _u.bareFlatTable,
|
|
10818
|
+
addColumnEnabled: ((_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareAddColumns) ||
|
|
10819
|
+
((_w = props.organise) === null || _w === void 0 ? void 0 : _w.addColumnEnabled),
|
|
10820
|
+
onAddColumn: ((_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareAddColumns)
|
|
10789
10821
|
? handleAddPlainColumn
|
|
10790
10822
|
: undefined,
|
|
10791
|
-
onDeleteColumn: ((
|
|
10823
|
+
onDeleteColumn: ((_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareAddColumns)
|
|
10792
10824
|
? handleDeletePlainColumn
|
|
10793
10825
|
: undefined,
|
|
10794
|
-
onEditColumn: ((
|
|
10826
|
+
onEditColumn: ((_z = props.bareSettings) === null || _z === void 0 ? void 0 : _z.bareAddColumns)
|
|
10795
10827
|
? handleEditPlainColumn
|
|
10796
10828
|
: undefined,
|
|
10797
|
-
getColumnSchema: ((
|
|
10829
|
+
getColumnSchema: ((_0 = props.bareSettings) === null || _0 === void 0 ? void 0 : _0.bareAddColumns)
|
|
10798
10830
|
? function (columnId) {
|
|
10799
10831
|
var _a, _b;
|
|
10800
10832
|
// INFO: the dialog edits a lookup as the lookup it is,
|
|
@@ -10805,17 +10837,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10805
10837
|
})) !== null && _b !== void 0 ? _b : displayStructure.find(function (eachColumn) { return eachColumn.id === columnId; });
|
|
10806
10838
|
}
|
|
10807
10839
|
: undefined,
|
|
10808
|
-
getSchema: ((
|
|
10840
|
+
getSchema: ((_1 = props.bareSettings) === null || _1 === void 0 ? void 0 : _1.bareAddColumns)
|
|
10809
10841
|
? function () { return structure; }
|
|
10810
10842
|
: undefined,
|
|
10811
|
-
renderAddColumnElements: ((
|
|
10843
|
+
renderAddColumnElements: ((_2 = props.bareSettings) === null || _2 === void 0 ? void 0 : _2.bareAddColumns)
|
|
10812
10844
|
? undefined
|
|
10813
10845
|
: renderAddMathColumn,
|
|
10814
10846
|
// INFO: the popup's reference pickers read from the same providers
|
|
10815
10847
|
// the schema editor uses — without them a reference column would be
|
|
10816
10848
|
// created with no target and resolve nothing
|
|
10817
|
-
renderReferenceSpaceOptions: (
|
|
10818
|
-
renderReferenceLabelOptions: (
|
|
10849
|
+
renderReferenceSpaceOptions: (_3 = props.organise) === null || _3 === void 0 ? void 0 : _3.renderReferenceSpaceOptions,
|
|
10850
|
+
renderReferenceLabelOptions: (_4 = props.organise) === null || _4 === void 0 ? void 0 : _4.renderReferenceLabelOptions,
|
|
10819
10851
|
dragEnabled: isViewSettingsEnabled,
|
|
10820
10852
|
sortEnabled: isViewSettingsEnabled,
|
|
10821
10853
|
// INFO: per-column header filter is replaced by the flex filters
|
|
@@ -10861,7 +10893,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10861
10893
|
});
|
|
10862
10894
|
}); },
|
|
10863
10895
|
}, onObjectEdit: handleObjectCellEdit, addable: {
|
|
10864
|
-
active: ((
|
|
10896
|
+
active: ((_5 = props.edit) === null || _5 === void 0 ? void 0 : _5.listAddable) ? true : false,
|
|
10865
10897
|
onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10866
10898
|
var createdId;
|
|
10867
10899
|
return __generator(this, function (_a) {
|
|
@@ -10875,16 +10907,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10875
10907
|
}
|
|
10876
10908
|
});
|
|
10877
10909
|
}); },
|
|
10878
|
-
}, darkMode: (
|
|
10910
|
+
}, darkMode: (_6 = props.organise) === null || _6 === void 0 ? void 0 : _6.darkMode,
|
|
10879
10911
|
// INFO: each band pages itself, so the list-wide pager would only
|
|
10880
10912
|
// page the read that seeded them
|
|
10881
|
-
hidePagination: ((
|
|
10882
|
-
(renderCheckGroupPaging() && !renderCheckScrollMode()), customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (
|
|
10913
|
+
hidePagination: ((_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.hidePagination) ||
|
|
10914
|
+
(renderCheckGroupPaging() && !renderCheckScrollMode()), customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.disableEllipsisOnLongWord, pinColumns: (_9 = props.bareSettings) === null || _9 === void 0 ? void 0 : _9.bareListTablePinColumns }));
|
|
10883
10915
|
}
|
|
10884
|
-
return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], referencesOptions: listReferencesOptions, size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: ((
|
|
10916
|
+
return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], referencesOptions: listReferencesOptions, size: size !== null && size !== void 0 ? size : 0, limit: limit, cursor: cursor !== null && cursor !== void 0 ? cursor : "", loading: tableLoading !== null && tableLoading !== void 0 ? tableLoading : true, checkbox: multipleSelect, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", disableSelectFullData: ((_11 = (_10 = props.organise) === null || _10 === void 0 ? void 0 : _10.disableSelectFullData) === null || _11 === void 0 ? void 0 : _11.table) || isFormulaView, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
|
|
10885
10917
|
selectedIds.length > 0 &&
|
|
10886
10918
|
canBatchUpdate &&
|
|
10887
|
-
!((
|
|
10919
|
+
!((_12 = props.bareSettings) === null || _12 === void 0 ? void 0 : _12.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
10888
10920
|
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
|
|
10889
10921
|
handleCloneSelectedData();
|
|
10890
10922
|
} }))),
|
|
@@ -10895,8 +10927,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10895
10927
|
!isFirebase && canBatchUpdate && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
|
|
10896
10928
|
setBatchUpdateModal(true);
|
|
10897
10929
|
} })),
|
|
10898
|
-
((
|
|
10899
|
-
((
|
|
10930
|
+
((_13 = props.bareSettings) === null || _13 === void 0 ? void 0 : _13.bareListMultipleSelectAddtionalActions) &&
|
|
10931
|
+
((_15 = (_14 = props.bareSettings) === null || _14 === void 0 ? void 0 : _14.bareListMultipleSelectAddtionalActions) === null || _15 === void 0 ? void 0 : _15.map(function (eachButton) {
|
|
10900
10932
|
return (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm ".concat(eachButton.className), text: eachButton.text, onClick: function () {
|
|
10901
10933
|
var _a, _b;
|
|
10902
10934
|
(_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
|
|
@@ -10905,10 +10937,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10905
10937
|
var _a, _b;
|
|
10906
10938
|
handleCaptureListScroll(id);
|
|
10907
10939
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
10908
|
-
}, linkType: props.linkType, custom: props.custom, newTabUrl: (
|
|
10940
|
+
}, linkType: props.linkType, custom: props.custom, newTabUrl: (_17 = (_16 = props.newTabUrl) === null || _16 === void 0 ? void 0 : _16.default) !== null && _17 !== void 0 ? _17 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_19 = (_18 = props.newTabUrl) === null || _18 === void 0 ? void 0 : _18.addons) !== null && _19 !== void 0 ? _19 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
|
|
10909
10941
|
handlePagination(value);
|
|
10910
|
-
}, className: "mt-5", lib: { axios: (
|
|
10911
|
-
addColumnEnabled: (
|
|
10942
|
+
}, className: "mt-5", lib: { axios: (_20 = props.lib) === null || _20 === void 0 ? void 0 : _20.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_21 = props.organise) === null || _21 === void 0 ? void 0 : _21.fixedPagination, advSettings: {
|
|
10943
|
+
addColumnEnabled: (_22 = props.organise) === null || _22 === void 0 ? void 0 : _22.addColumnEnabled,
|
|
10912
10944
|
renderAddColumnElements: renderAddMathColumn,
|
|
10913
10945
|
dragEnabled: isViewSettingsEnabled,
|
|
10914
10946
|
sortEnabled: isViewSettingsEnabled,
|
|
@@ -10951,7 +10983,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10951
10983
|
});
|
|
10952
10984
|
}); },
|
|
10953
10985
|
}, onObjectEdit: handleObjectCellEdit, addable: {
|
|
10954
|
-
active: ((
|
|
10986
|
+
active: ((_23 = props.edit) === null || _23 === void 0 ? void 0 : _23.listAddable) ? true : false,
|
|
10955
10987
|
onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10956
10988
|
var createdId;
|
|
10957
10989
|
return __generator(this, function (_a) {
|
|
@@ -10965,7 +10997,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
10965
10997
|
}
|
|
10966
10998
|
});
|
|
10967
10999
|
}); },
|
|
10968
|
-
}, darkMode: (
|
|
11000
|
+
}, darkMode: (_24 = props.organise) === null || _24 === void 0 ? void 0 : _24.darkMode, hidePagination: (_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_26 = props.organise) === null || _26 === void 0 ? void 0 : _26.disableEllipsisOnLongWord }));
|
|
10969
11001
|
}
|
|
10970
11002
|
};
|
|
10971
11003
|
// INFO: `hidden` keeps the markers out of space-y spacing
|