blixify-ui-web 1.2.24 → 1.2.26
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/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +37 -37
- 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/display/newTable/index.d.ts +3 -2
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +64 -15
- package/lib/components/display/newTable/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAiCA,OAAO,KASN,MAAM,OAAO,CAAC;AA+Ef,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAoC1B,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAiCA,OAAO,KASN,MAAM,OAAO,CAAC;AA+Ef,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAoC1B,eAAO,MAAM,YAAY,mFA47VvB,CAAC"}
|
|
@@ -7214,7 +7214,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7214
7214
|
return (react_1.default.createElement(settingsModal_1.ExpressionModal, { selectedId: id, model: structure, renderReferenceLabelOptions: (_a = props.organise) === null || _a === void 0 ? void 0 : _a.renderReferenceLabelOptions, renderReferenceSpaceOptions: (_b = props.organise) === null || _b === void 0 ? void 0 : _b.renderReferenceSpaceOptions, onAddModelSchema: (_c = props.organise) === null || _c === void 0 ? void 0 : _c.onAddColumns, onClose: onClose }));
|
|
7215
7215
|
};
|
|
7216
7216
|
var renderGroupTable = function (multipleSelect) {
|
|
7217
|
-
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;
|
|
7217
|
+
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;
|
|
7218
7218
|
if (groupId) {
|
|
7219
7219
|
var groupAttributeDS_1 = structure.find(function (eachDS) { return eachDS.id === groupId; });
|
|
7220
7220
|
var groupedSpaceTableData = spaceTableData.reduce(function (acc, eachData) {
|
|
@@ -7383,23 +7383,23 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7383
7383
|
return (_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
|
|
7384
7384
|
},
|
|
7385
7385
|
}); })
|
|
7386
|
-
: []), true), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
|
|
7386
|
+
: []), true), multiActionFloatingOffset: (_l = props.bareSettings) === null || _l === void 0 ? void 0 : _l.bareListFloatingActionOffset, handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
|
|
7387
7387
|
var _a, _b;
|
|
7388
7388
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
7389
|
-
}, linkType: props.linkType, custom: props.custom, newTabUrl: (
|
|
7389
|
+
}, linkType: props.linkType, custom: props.custom, newTabUrl: (_o = (_m = props.newTabUrl) === null || _m === void 0 ? void 0 : _m.default) !== null && _o !== void 0 ? _o : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_q = (_p = props.newTabUrl) === null || _p === void 0 ? void 0 : _p.addons) !== null && _q !== void 0 ? _q : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
|
|
7390
7390
|
handlePagination(value);
|
|
7391
|
-
}, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (
|
|
7392
|
-
addColumnEnabled: (
|
|
7391
|
+
}, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_r = props.organise) === null || _r === void 0 ? void 0 : _r.fixedPagination, advSettings: {
|
|
7392
|
+
addColumnEnabled: (_s = props.organise) === null || _s === void 0 ? void 0 : _s.addColumnEnabled,
|
|
7393
7393
|
renderAddColumnElements: renderAddMathColumn,
|
|
7394
|
-
dragEnabled: (
|
|
7395
|
-
sortEnabled: (
|
|
7396
|
-
filterEnabled: ((
|
|
7394
|
+
dragEnabled: (_t = props.organise) === null || _t === void 0 ? void 0 : _t.advDragEnabled,
|
|
7395
|
+
sortEnabled: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.advSortEnabled,
|
|
7396
|
+
filterEnabled: ((_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareFlexFilters)
|
|
7397
7397
|
? false
|
|
7398
|
-
: (
|
|
7399
|
-
sortId: (
|
|
7400
|
-
sortOptions: (
|
|
7401
|
-
onSortColumn: (
|
|
7402
|
-
onDragColumn: (
|
|
7398
|
+
: (_w = props.organise) === null || _w === void 0 ? void 0 : _w.advFilterEnabled,
|
|
7399
|
+
sortId: (_x = props.organise) === null || _x === void 0 ? void 0 : _x.sort,
|
|
7400
|
+
sortOptions: (_z = (_y = props.organise) === null || _y === void 0 ? void 0 : _y.renderReferenceLabelOptions) === null || _z === void 0 ? void 0 : _z.call(_y),
|
|
7401
|
+
onSortColumn: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.onChangeSort,
|
|
7402
|
+
onDragColumn: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.onChangeDrag,
|
|
7403
7403
|
filterOptions: additionalQuery === null || additionalQuery === void 0 ? void 0 : additionalQuery.map(function (eachQuery) {
|
|
7404
7404
|
var _a;
|
|
7405
7405
|
return {
|
|
@@ -7416,7 +7416,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7416
7416
|
return renderSearchContent(newQuery);
|
|
7417
7417
|
},
|
|
7418
7418
|
}, editable: {
|
|
7419
|
-
active: ((
|
|
7419
|
+
active: ((_2 = props.edit) === null || _2 === void 0 ? void 0 : _2.listEditable) && !props.edit.disabledUpdate
|
|
7420
7420
|
? true
|
|
7421
7421
|
: false,
|
|
7422
7422
|
onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -7430,7 +7430,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7430
7430
|
});
|
|
7431
7431
|
}); },
|
|
7432
7432
|
}, addable: {
|
|
7433
|
-
active: ((
|
|
7433
|
+
active: ((_3 = props.edit) === null || _3 === void 0 ? void 0 : _3.listAddable) ? true : false,
|
|
7434
7434
|
onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7435
7435
|
return __generator(this, function (_a) {
|
|
7436
7436
|
switch (_a.label) {
|
|
@@ -7441,27 +7441,27 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7441
7441
|
}
|
|
7442
7442
|
});
|
|
7443
7443
|
}); },
|
|
7444
|
-
}, darkMode: (
|
|
7444
|
+
}, darkMode: (_4 = props.organise) === null || _4 === void 0 ? void 0 : _4.darkMode, hidePagination: (_5 = props.organise) === null || _5 === void 0 ? void 0 : _5.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_6 = props.organise) === null || _6 === void 0 ? void 0 : _6.disableEllipsisOnLongWord, pinColumns: (_7 = props.bareSettings) === null || _7 === void 0 ? void 0 : _7.bareListTablePinColumns }));
|
|
7445
7445
|
}
|
|
7446
|
-
return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], 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: (
|
|
7446
|
+
return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: renderResolvedPaginationType(), data: tableData, spaceData: spaceTableData !== null && spaceTableData !== void 0 ? spaceTableData : [], 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: (_9 = (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.disableSelectFullData) === null || _9 === void 0 ? void 0 : _9.table, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
|
|
7447
7447
|
selectedIds.length > 0 &&
|
|
7448
|
-
!((
|
|
7449
|
-
!((
|
|
7448
|
+
!((_10 = props.edit) === null || _10 === void 0 ? void 0 : _10.disabledUpdate) &&
|
|
7449
|
+
!((_11 = props.bareSettings) === null || _11 === void 0 ? void 0 : _11.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
7450
7450
|
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
|
|
7451
7451
|
handleBatchDraftData();
|
|
7452
7452
|
} }),
|
|
7453
7453
|
react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
|
|
7454
7454
|
handleCloneSelectedData();
|
|
7455
7455
|
} }))),
|
|
7456
|
-
((
|
|
7456
|
+
((_12 = props.edit) === null || _12 === void 0 ? void 0 : _12.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
|
|
7457
7457
|
handleGenerateDeletePasscode();
|
|
7458
7458
|
setDeleteModal(true);
|
|
7459
7459
|
} })),
|
|
7460
|
-
!isFirebase && !((
|
|
7460
|
+
!isFirebase && !((_13 = props.edit) === null || _13 === void 0 ? void 0 : _13.disableBatchUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
|
|
7461
7461
|
setBatchUpdateModal(true);
|
|
7462
7462
|
} })),
|
|
7463
|
-
((
|
|
7464
|
-
((
|
|
7463
|
+
((_14 = props.bareSettings) === null || _14 === void 0 ? void 0 : _14.bareListMultipleSelectAddtionalActions) &&
|
|
7464
|
+
((_16 = (_15 = props.bareSettings) === null || _15 === void 0 ? void 0 : _15.bareListMultipleSelectAddtionalActions) === null || _16 === void 0 ? void 0 : _16.map(function (eachButton) {
|
|
7465
7465
|
return (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm ".concat(eachButton.className), text: eachButton.text, onClick: function () {
|
|
7466
7466
|
var _a, _b;
|
|
7467
7467
|
(_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
|
|
@@ -7469,20 +7469,20 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7469
7469
|
}))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
|
|
7470
7470
|
var _a, _b;
|
|
7471
7471
|
(_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
|
|
7472
|
-
}, linkType: props.linkType, custom: props.custom, newTabUrl: (
|
|
7472
|
+
}, linkType: props.linkType, custom: props.custom, newTabUrl: (_18 = (_17 = props.newTabUrl) === null || _17 === void 0 ? void 0 : _17.default) !== null && _18 !== void 0 ? _18 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_20 = (_19 = props.newTabUrl) === null || _19 === void 0 ? void 0 : _19.addons) !== null && _20 !== void 0 ? _20 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
|
|
7473
7473
|
handlePagination(value);
|
|
7474
|
-
}, className: "mt-5", lib: { axios: (
|
|
7475
|
-
addColumnEnabled: (
|
|
7474
|
+
}, className: "mt-5", lib: { axios: (_21 = props.lib) === null || _21 === void 0 ? void 0 : _21.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_22 = props.organise) === null || _22 === void 0 ? void 0 : _22.fixedPagination, advSettings: {
|
|
7475
|
+
addColumnEnabled: (_23 = props.organise) === null || _23 === void 0 ? void 0 : _23.addColumnEnabled,
|
|
7476
7476
|
renderAddColumnElements: renderAddMathColumn,
|
|
7477
|
-
dragEnabled: (
|
|
7478
|
-
sortEnabled: (
|
|
7479
|
-
filterEnabled: ((
|
|
7477
|
+
dragEnabled: (_24 = props.organise) === null || _24 === void 0 ? void 0 : _24.advDragEnabled,
|
|
7478
|
+
sortEnabled: (_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.advSortEnabled,
|
|
7479
|
+
filterEnabled: ((_26 = props.bareSettings) === null || _26 === void 0 ? void 0 : _26.bareFlexFilters)
|
|
7480
7480
|
? false
|
|
7481
|
-
: (
|
|
7482
|
-
sortId: (
|
|
7483
|
-
sortOptions: (
|
|
7484
|
-
onSortColumn: (
|
|
7485
|
-
onDragColumn: (
|
|
7481
|
+
: (_27 = props.organise) === null || _27 === void 0 ? void 0 : _27.advFilterEnabled,
|
|
7482
|
+
sortId: (_28 = props.organise) === null || _28 === void 0 ? void 0 : _28.sort,
|
|
7483
|
+
sortOptions: (_30 = (_29 = props.organise) === null || _29 === void 0 ? void 0 : _29.renderReferenceLabelOptions) === null || _30 === void 0 ? void 0 : _30.call(_29),
|
|
7484
|
+
onSortColumn: (_31 = props.organise) === null || _31 === void 0 ? void 0 : _31.onChangeSort,
|
|
7485
|
+
onDragColumn: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.onChangeDrag,
|
|
7486
7486
|
filterOptions: additionalQuery === null || additionalQuery === void 0 ? void 0 : additionalQuery.map(function (eachQuery) {
|
|
7487
7487
|
var _a;
|
|
7488
7488
|
return {
|
|
@@ -7499,7 +7499,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7499
7499
|
return renderSearchContent(newQuery);
|
|
7500
7500
|
},
|
|
7501
7501
|
}, editable: {
|
|
7502
|
-
active: ((
|
|
7502
|
+
active: ((_33 = props.edit) === null || _33 === void 0 ? void 0 : _33.listEditable) && !props.edit.disabledUpdate
|
|
7503
7503
|
? true
|
|
7504
7504
|
: false,
|
|
7505
7505
|
onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -7513,7 +7513,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7513
7513
|
});
|
|
7514
7514
|
}); },
|
|
7515
7515
|
}, addable: {
|
|
7516
|
-
active: ((
|
|
7516
|
+
active: ((_34 = props.edit) === null || _34 === void 0 ? void 0 : _34.listAddable) ? true : false,
|
|
7517
7517
|
onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7518
7518
|
return __generator(this, function (_a) {
|
|
7519
7519
|
switch (_a.label) {
|
|
@@ -7524,7 +7524,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
7524
7524
|
}
|
|
7525
7525
|
});
|
|
7526
7526
|
}); },
|
|
7527
|
-
}, darkMode: (
|
|
7527
|
+
}, darkMode: (_35 = props.organise) === null || _35 === void 0 ? void 0 : _35.darkMode, hidePagination: (_36 = props.organise) === null || _36 === void 0 ? void 0 : _36.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_37 = props.organise) === null || _37 === void 0 ? void 0 : _37.disableEllipsisOnLongWord }));
|
|
7528
7528
|
}
|
|
7529
7529
|
};
|
|
7530
7530
|
var renderTabContent = function (tabs, dataType, viewType) {
|