blixify-ui-web 1.2.74 → 1.2.76

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwFf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAwD1B,eAAO,MAAM,YAAY,mFAynYvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAkCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwFf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAwD1B,eAAO,MAAM,YAAY,mFA0nYvB,CAAC"}
@@ -7935,7 +7935,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
7935
7935
  return groups;
7936
7936
  };
7937
7937
  var renderGroupTable = function (multipleSelect) {
7938
- 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;
7938
+ 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;
7939
7939
  if (groupId && !((_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareNewDTW)) {
7940
7940
  var groupAttributeDS_1 = structure.find(function (eachDS) { return eachDS.id === groupId; });
7941
7941
  var groupedSpaceTableData = spaceTableData.reduce(function (acc, eachData) {
@@ -8121,25 +8121,26 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8121
8121
  }, className: "mt-5", devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_u = props.organise) === null || _u === void 0 ? void 0 : _u.fixedPagination, advSettings: {
8122
8122
  // INFO: bareAddColumns routes the + to the name/type popup; without
8123
8123
  // it the flag behaves as it always did and opens the formula builder
8124
- addColumnEnabled: ((_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareAddColumns) ||
8125
- ((_w = props.organise) === null || _w === void 0 ? void 0 : _w.addColumnEnabled),
8126
- onAddColumn: ((_x = props.bareSettings) === null || _x === void 0 ? void 0 : _x.bareAddColumns)
8124
+ flat: (_v = props.bareSettings) === null || _v === void 0 ? void 0 : _v.bareFlatTable,
8125
+ addColumnEnabled: ((_w = props.bareSettings) === null || _w === void 0 ? void 0 : _w.bareAddColumns) ||
8126
+ ((_x = props.organise) === null || _x === void 0 ? void 0 : _x.addColumnEnabled),
8127
+ onAddColumn: ((_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareAddColumns)
8127
8128
  ? handleAddPlainColumn
8128
8129
  : undefined,
8129
- renderAddColumnElements: ((_y = props.bareSettings) === null || _y === void 0 ? void 0 : _y.bareAddColumns)
8130
+ renderAddColumnElements: ((_z = props.bareSettings) === null || _z === void 0 ? void 0 : _z.bareAddColumns)
8130
8131
  ? undefined
8131
8132
  : renderAddMathColumn,
8132
8133
  // INFO: the popup's reference pickers read from the same providers
8133
8134
  // the schema editor uses — without them a reference column would be
8134
8135
  // created with no target and resolve nothing
8135
- renderReferenceSpaceOptions: (_z = props.organise) === null || _z === void 0 ? void 0 : _z.renderReferenceSpaceOptions,
8136
- renderReferenceLabelOptions: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.renderReferenceLabelOptions,
8136
+ renderReferenceSpaceOptions: (_0 = props.organise) === null || _0 === void 0 ? void 0 : _0.renderReferenceSpaceOptions,
8137
+ renderReferenceLabelOptions: (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.renderReferenceLabelOptions,
8137
8138
  dragEnabled: isViewSettingsEnabled,
8138
8139
  sortEnabled: isViewSettingsEnabled,
8139
8140
  // INFO: per-column header filter is replaced by the flex filters
8140
8141
  filterEnabled: false,
8141
8142
  sortId: activeSortId,
8142
- sortOptions: (_3 = (_2 = (_1 = props.organise) === null || _1 === void 0 ? void 0 : _1.renderReferenceLabelOptions) === null || _2 === void 0 ? void 0 : _2.call(_1)) !== null && _3 !== void 0 ? _3 : (isViewSettingsEnabled
8143
+ sortOptions: (_4 = (_3 = (_2 = props.organise) === null || _2 === void 0 ? void 0 : _2.renderReferenceLabelOptions) === null || _3 === void 0 ? void 0 : _3.call(_2)) !== null && _4 !== void 0 ? _4 : (isViewSettingsEnabled
8143
8144
  ? getViewSettingsColumns().map(function (eachColumn) {
8144
8145
  var _a;
8145
8146
  return ({
@@ -8171,7 +8172,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8171
8172
  return renderSearchContent(newQuery);
8172
8173
  },
8173
8174
  }, editable: {
8174
- active: ((_4 = props.edit) === null || _4 === void 0 ? void 0 : _4.listEditable) && !props.edit.disabledUpdate
8175
+ active: ((_5 = props.edit) === null || _5 === void 0 ? void 0 : _5.listEditable) && !props.edit.disabledUpdate
8175
8176
  ? true
8176
8177
  : false,
8177
8178
  onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
@@ -8185,7 +8186,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8185
8186
  });
8186
8187
  }); },
8187
8188
  }, onObjectEdit: handleObjectCellEdit, addable: {
8188
- active: ((_5 = props.edit) === null || _5 === void 0 ? void 0 : _5.listAddable) ? true : false,
8189
+ active: ((_6 = props.edit) === null || _6 === void 0 ? void 0 : _6.listAddable) ? true : false,
8189
8190
  onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
8190
8191
  return __generator(this, function (_a) {
8191
8192
  switch (_a.label) {
@@ -8196,27 +8197,27 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8196
8197
  }
8197
8198
  });
8198
8199
  }); },
8199
- }, darkMode: (_6 = props.organise) === null || _6 === void 0 ? void 0 : _6.darkMode, hidePagination: (_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.hidePagination, 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 }));
8200
+ }, darkMode: (_7 = props.organise) === null || _7 === void 0 ? void 0 : _7.darkMode, hidePagination: (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_9 = props.organise) === null || _9 === void 0 ? void 0 : _9.disableEllipsisOnLongWord, pinColumns: (_10 = props.bareSettings) === null || _10 === void 0 ? void 0 : _10.bareListTablePinColumns }));
8200
8201
  }
8201
- 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, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8202
+ 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: (_12 = (_11 = props.organise) === null || _11 === void 0 ? void 0 : _11.disableSelectFullData) === null || _12 === void 0 ? void 0 : _12.table, multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
8202
8203
  selectedIds.length > 0 &&
8203
- !((_12 = props.edit) === null || _12 === void 0 ? void 0 : _12.disabledUpdate) &&
8204
- !((_13 = props.bareSettings) === null || _13 === void 0 ? void 0 : _13.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
8204
+ !((_13 = props.edit) === null || _13 === void 0 ? void 0 : _13.disabledUpdate) &&
8205
+ !((_14 = props.bareSettings) === null || _14 === void 0 ? void 0 : _14.bareHideTableExtraMultipleAction) && (react_1.default.createElement(react_1.default.Fragment, null,
8205
8206
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Change to Draft", disable: loading, onClick: function () {
8206
8207
  handleBatchDraftData();
8207
8208
  } }),
8208
8209
  react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Clone Items", disable: loading, onClick: function () {
8209
8210
  handleCloneSelectedData();
8210
8211
  } }))),
8211
- ((_14 = props.edit) === null || _14 === void 0 ? void 0 : _14.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8212
+ ((_15 = props.edit) === null || _15 === void 0 ? void 0 : _15.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
8212
8213
  handleGenerateDeletePasscode();
8213
8214
  setDeleteModal(true);
8214
8215
  } })),
8215
- !isFirebase && !((_15 = props.edit) === null || _15 === void 0 ? void 0 : _15.disableBatchUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8216
+ !isFirebase && !((_16 = props.edit) === null || _16 === void 0 ? void 0 : _16.disableBatchUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
8216
8217
  setBatchUpdateModal(true);
8217
8218
  } })),
8218
- ((_16 = props.bareSettings) === null || _16 === void 0 ? void 0 : _16.bareListMultipleSelectAddtionalActions) &&
8219
- ((_18 = (_17 = props.bareSettings) === null || _17 === void 0 ? void 0 : _17.bareListMultipleSelectAddtionalActions) === null || _18 === void 0 ? void 0 : _18.map(function (eachButton) {
8219
+ ((_17 = props.bareSettings) === null || _17 === void 0 ? void 0 : _17.bareListMultipleSelectAddtionalActions) &&
8220
+ ((_19 = (_18 = props.bareSettings) === null || _18 === void 0 ? void 0 : _18.bareListMultipleSelectAddtionalActions) === null || _19 === void 0 ? void 0 : _19.map(function (eachButton) {
8220
8221
  return (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm ".concat(eachButton.className), text: eachButton.text, onClick: function () {
8221
8222
  var _a, _b;
8222
8223
  (_a = eachButton.onClick) === null || _a === void 0 ? void 0 : _a.call(eachButton, selectedIds, selectAll, (_b = renderImpSearchFilterConditions()) !== null && _b !== void 0 ? _b : []);
@@ -8224,17 +8225,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8224
8225
  }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex !== null && pageIndex !== void 0 ? pageIndex : 0, onClickRow: function (id) {
8225
8226
  var _a, _b;
8226
8227
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
8227
- }, linkType: props.linkType, custom: props.custom, newTabUrl: (_20 = (_19 = props.newTabUrl) === null || _19 === void 0 ? void 0 : _19.default) !== null && _20 !== void 0 ? _20 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_22 = (_21 = props.newTabUrl) === null || _21 === void 0 ? void 0 : _21.addons) !== null && _22 !== void 0 ? _22 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8228
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: (_21 = (_20 = props.newTabUrl) === null || _20 === void 0 ? void 0 : _20.default) !== null && _21 !== void 0 ? _21 : "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: (_23 = (_22 = props.newTabUrl) === null || _22 === void 0 ? void 0 : _22.addons) !== null && _23 !== void 0 ? _23 : "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: function (value) {
8228
8229
  handlePagination(value);
8229
- }, className: "mt-5", lib: { axios: (_23 = props.lib) === null || _23 === void 0 ? void 0 : _23.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_24 = props.organise) === null || _24 === void 0 ? void 0 : _24.fixedPagination, advSettings: {
8230
- addColumnEnabled: (_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.addColumnEnabled,
8230
+ }, className: "mt-5", lib: { axios: (_24 = props.lib) === null || _24 === void 0 ? void 0 : _24.axios }, devSettings: props.devSettings, bareSettings: props.bareSettings, fixedPagination: (_25 = props.organise) === null || _25 === void 0 ? void 0 : _25.fixedPagination, advSettings: {
8231
+ addColumnEnabled: (_26 = props.organise) === null || _26 === void 0 ? void 0 : _26.addColumnEnabled,
8231
8232
  renderAddColumnElements: renderAddMathColumn,
8232
8233
  dragEnabled: isViewSettingsEnabled,
8233
8234
  sortEnabled: isViewSettingsEnabled,
8234
8235
  // INFO: per-column header filter is replaced by the flex filters
8235
8236
  filterEnabled: false,
8236
8237
  sortId: activeSortId,
8237
- sortOptions: (_28 = (_27 = (_26 = props.organise) === null || _26 === void 0 ? void 0 : _26.renderReferenceLabelOptions) === null || _27 === void 0 ? void 0 : _27.call(_26)) !== null && _28 !== void 0 ? _28 : (isViewSettingsEnabled
8238
+ sortOptions: (_29 = (_28 = (_27 = props.organise) === null || _27 === void 0 ? void 0 : _27.renderReferenceLabelOptions) === null || _28 === void 0 ? void 0 : _28.call(_27)) !== null && _29 !== void 0 ? _29 : (isViewSettingsEnabled
8238
8239
  ? getViewSettingsColumns().map(function (eachColumn) {
8239
8240
  var _a;
8240
8241
  return ({
@@ -8263,7 +8264,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8263
8264
  return renderSearchContent(newQuery);
8264
8265
  },
8265
8266
  }, editable: {
8266
- active: ((_29 = props.edit) === null || _29 === void 0 ? void 0 : _29.listEditable) && !props.edit.disabledUpdate
8267
+ active: ((_30 = props.edit) === null || _30 === void 0 ? void 0 : _30.listEditable) && !props.edit.disabledUpdate
8267
8268
  ? true
8268
8269
  : false,
8269
8270
  onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
@@ -8277,7 +8278,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8277
8278
  });
8278
8279
  }); },
8279
8280
  }, onObjectEdit: handleObjectCellEdit, addable: {
8280
- active: ((_30 = props.edit) === null || _30 === void 0 ? void 0 : _30.listAddable) ? true : false,
8281
+ active: ((_31 = props.edit) === null || _31 === void 0 ? void 0 : _31.listAddable) ? true : false,
8281
8282
  onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
8282
8283
  return __generator(this, function (_a) {
8283
8284
  switch (_a.label) {
@@ -8288,7 +8289,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
8288
8289
  }
8289
8290
  });
8290
8291
  }); },
8291
- }, darkMode: (_31 = props.organise) === null || _31 === void 0 ? void 0 : _31.darkMode, hidePagination: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_33 = props.organise) === null || _33 === void 0 ? void 0 : _33.disableEllipsisOnLongWord }));
8292
+ }, darkMode: (_32 = props.organise) === null || _32 === void 0 ? void 0 : _32.darkMode, hidePagination: (_33 = props.organise) === null || _33 === void 0 ? void 0 : _33.hidePagination, customPaginationSize: customPaginationSize, disableEllipsisOnLongWord: (_34 = props.organise) === null || _34 === void 0 ? void 0 : _34.disableEllipsisOnLongWord }));
8292
8293
  }
8293
8294
  };
8294
8295
  var renderTabContent = function (tabs, dataType, viewType) {