blixify-ui-web 0.2.25 → 0.2.27

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.
@@ -13,6 +13,8 @@ export interface Organise {
13
13
  darkMode?: boolean;
14
14
  hideSearch?: boolean;
15
15
  showExport?: boolean;
16
+ disabledOnEnter?: boolean;
17
+ filterComponentNewRow?: boolean;
16
18
  moreSettings?: {
17
19
  text: string;
18
20
  onClick: () => void;
@@ -29,6 +31,7 @@ export interface Edit {
29
31
  listAddable?: boolean;
30
32
  listEditable?: boolean;
31
33
  deleteBtn?: boolean;
34
+ disabledUpdate?: boolean;
32
35
  }
33
36
  export interface DataTemplateProps extends LinkProps {
34
37
  workspaceId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"dataStateModel.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/dataStateModel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EACL,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACf,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,WAAW,QAAQ;IACvB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UA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AAQ,GAAG,QAAQ,CAAC;IACrC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,IAAI,EAAE,GAAG,CAAC;QACV,UAAU,EAAE,GAAG,CAAC;QAChB,UAAU,CAAC,EAAE,GAAG,CAAC;KAClB,CAAC;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAqBzC,CAAC"}
1
+ {"version":3,"file":"dataStateModel.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/dataStateModel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAA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c,CAAC,EAAE,cAAc,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,YAAY,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAqBzC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dataStateModel.js","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/dataStateModel.tsx"],"names":[],"mappings":";;;AAyFa,QAAA,gBAAgB,GAAkB;IAC7C;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,OAAO;KACf;IACD;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;KACd;IACD;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;KACd;IACD;QACE,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC"}
1
+ {"version":3,"file":"dataStateModel.js","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/dataStateModel.tsx"],"names":[],"mappings":";;;AA4Fa,QAAA,gBAAgB,GAAkB;IAC7C;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,OAAO;KACf;IACD;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;KACd;IACD;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;KACd;IACD;QACE,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAON,MAAM,OAAO,CAAC;AAqDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFAwgJvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAON,MAAM,OAAO,CAAC;AAqDf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAO1B,eAAO,MAAM,YAAY,mFA4iJvB,CAAC"}
@@ -2802,17 +2802,17 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2802
2802
  return listElement;
2803
2803
  };
2804
2804
  var renderActionButtons = function (type) {
2805
- var _a, _b, _c, _d, _e, _f;
2805
+ var _a, _b, _c, _d, _e, _f, _g;
2806
2806
  var bareActionComponent = (_c = (_b = (_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareUpdateActionComponent) === null || _b === void 0 ? void 0 : _b.call(_a, selectedData, formRef)) !== null && _c !== void 0 ? _c : undefined;
2807
2807
  if (type === "read") {
2808
2808
  return (react_1.default.createElement("div", { className: "flex flex-row mt-3 sm:ml-3 sm:mt-0" },
2809
2809
  bareActionComponent,
2810
- isEditor && !bareActionComponent && (react_1.default.createElement("div", { className: "w-xs" }, hasNavigation ? (react_1.default.createElement(button_1.Button, { text: "Update", className: "w-full", type: "normal", onClick: function () {
2810
+ isEditor && !bareActionComponent && !((_d = props.edit) === null || _d === void 0 ? void 0 : _d.disabledUpdate) && (react_1.default.createElement("div", { className: "w-xs" }, hasNavigation ? (react_1.default.createElement(button_1.Button, { text: "Update", className: "w-full", type: "normal", onClick: function () {
2811
2811
  var _a, _b;
2812
2812
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "update", props.id);
2813
2813
  } })) : (react_1.default.createElement(link_1.Link, { className: "w-full", href: "".concat(props.localURLEndpoint, "?data=").concat(props.id, "&type=update&collection=").concat(props.collectionId, "&view=general"), linkType: props.linkType, custom: props.custom },
2814
2814
  react_1.default.createElement(button_1.Button, { text: "Update", className: "w-full", type: "normal" }))))),
2815
- ((_d = props.edit) === null || _d === void 0 ? void 0 : _d.deleteBtn) && (react_1.default.createElement(button_1.Button, { text: "Delete", className: "w-xs ml-3", type: "danger", onClick: function () {
2815
+ ((_e = props.edit) === null || _e === void 0 ? void 0 : _e.deleteBtn) && (react_1.default.createElement(button_1.Button, { text: "Delete", className: "w-xs ml-3", type: "danger", onClick: function () {
2816
2816
  setDeleteModal(true);
2817
2817
  } }))));
2818
2818
  }
@@ -2828,14 +2828,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2828
2828
  }
2829
2829
  });
2830
2830
  }); } })),
2831
- ((_e = props.edit) === null || _e === void 0 ? void 0 : _e.deleteBtn) && isEditor && (react_1.default.createElement(button_1.Button, { text: "Delete", type: "danger", className: "w-xs ml-3", onClick: function () {
2831
+ ((_f = props.edit) === null || _f === void 0 ? void 0 : _f.deleteBtn) && isEditor && (react_1.default.createElement(button_1.Button, { text: "Delete", type: "danger", className: "w-xs ml-3", onClick: function () {
2832
2832
  setDeleteModal(true);
2833
2833
  } }))));
2834
2834
  }
2835
2835
  else if (type === "list") {
2836
2836
  return (react_1.default.createElement(react_1.default.Fragment, null, bareActionComponent
2837
2837
  ? bareActionComponent
2838
- : ((_f = props.edit) === null || _f === void 0 ? void 0 : _f.allEditable) && (react_1.default.createElement(react_1.default.Fragment, null,
2838
+ : ((_g = props.edit) === null || _g === void 0 ? void 0 : _g.allEditable) && (react_1.default.createElement(react_1.default.Fragment, null,
2839
2839
  hasNavigation ? (react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(outline_1.PlusIcon, { className: "h-7 w-7 text-white" }), background: "bg-primary-500 hover:bg-primary-600", onClick: function () {
2840
2840
  var _a, _b;
2841
2841
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "update", "new");
@@ -2855,7 +2855,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2855
2855
  return react_1.default.createElement(react_1.default.Fragment, null);
2856
2856
  };
2857
2857
  var renderContent = function () {
2858
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
2858
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
2859
2859
  var viewType = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.viewId) !== null && _b !== void 0 ? _b : "general";
2860
2860
  var isBottom = ((_c = props.bareSettings) === null || _c === void 0 ? void 0 : _c.bareUpdateActionBottom) ? true : false;
2861
2861
  var tabs = [
@@ -2956,7 +2956,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2956
2956
  current: true,
2957
2957
  });
2958
2958
  var filterModel_1 = [];
2959
- var disabledOnEnter_1 = false;
2959
+ var disabledOnEnter_1 = (_q = (_p = props.organise) === null || _p === void 0 ? void 0 : _p.disabledOnEnter) !== null && _q !== void 0 ? _q : false;
2960
2960
  props.model.map(function (eachModel) {
2961
2961
  var _a;
2962
2962
  var present = false;
@@ -2989,7 +2989,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2989
2989
  }, cond: {
2990
2990
  type: "get",
2991
2991
  id: props.id,
2992
- }, offline: (_p = props.bareSettings) === null || _p === void 0 ? void 0 : _p.bareOffline, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError })),
2992
+ }, offline: (_r = props.bareSettings) === null || _r === void 0 ? void 0 : _r.bareOffline, onChangeData: handleRetrieveSelectedData, onError: handleGetItemError })),
2993
2993
  renderBreadcrumb(pages),
2994
2994
  react_1.default.createElement("div", { className: "flex flex-col py-2 sm:items-center sm:flex-row" },
2995
2995
  react_1.default.createElement("div", { className: "flex flex-col w-full" },
@@ -2998,8 +2998,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
2998
2998
  !isBottom && renderActionButtons(props.type)),
2999
2999
  react_1.default.createElement(form_1.Form, { className: "grid ".concat(formColumn, " gap-6 mt-6"), ref: formRef, refList: modalFormInputRefs, handleComplete: handleSubmit, disabledOnEnter: disabledOnEnter_1 },
3000
3000
  renderDataTemplateFormContent(selectedData, filterModel_1, modalFormInputRefs, false, false),
3001
- ((_q = props.bareSettings) === null || _q === void 0 ? void 0 : _q.bareUpdateComponent) &&
3002
- ((_r = props.bareSettings) === null || _r === void 0 ? void 0 : _r.bareUpdateComponent(selectedData))),
3001
+ ((_s = props.bareSettings) === null || _s === void 0 ? void 0 : _s.bareUpdateComponent) &&
3002
+ ((_t = props.bareSettings) === null || _t === void 0 ? void 0 : _t.bareUpdateComponent(selectedData))),
3003
3003
  react_1.default.createElement("div", { className: "mt-8" }, renderListObject(props.type)),
3004
3004
  isBottom && renderActionButtons(props.type)));
3005
3005
  case "list":
@@ -3029,7 +3029,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3029
3029
  dbEndpoint: devSettings.dbEndpoint,
3030
3030
  dbAPIToken: devSettings.dbAPIToken,
3031
3031
  dbUserToken: devSettings.dbUserToken,
3032
- }, cond: handleReadQueryHocCond(), offline: (_s = props.bareSettings) === null || _s === void 0 ? void 0 : _s.bareOffline, onChangeData: handleGetListData, onError: handleGetItemError }));
3032
+ }, cond: handleReadQueryHocCond(), offline: (_u = props.bareSettings) === null || _u === void 0 ? void 0 : _u.bareOffline, onChangeData: handleGetListData, onError: handleGetItemError }));
3033
3033
  if (props.renderSettings) {
3034
3034
  return (react_1.default.createElement(react_1.default.Fragment, null,
3035
3035
  rqHOCComp,
@@ -3042,8 +3042,8 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3042
3042
  react_1.default.createElement("p", { className: "text-xl font-medium" }, props.title),
3043
3043
  react_1.default.createElement("span", { className: "text-sm text-gray-500" }, props.description)),
3044
3044
  react_1.default.createElement("div", { className: "grow" }),
3045
- react_1.default.createElement("div", { className: "flex flex-col items-center justify-center mt-3 space-y-3 md:space-x-3 md:space-y-0 md:flex-row md:mt-0 md:mx-3" }, filterComponent),
3046
- react_1.default.createElement("div", { className: "mb-0.5 flex flex-row items-center mt-2 justify-content space-x-2 md:mt-0" },
3045
+ !((_v = props.organise) === null || _v === void 0 ? void 0 : _v.filterComponentNewRow) && (react_1.default.createElement("div", { className: "flex flex-col items-center justify-center mt-6 space-y-3 md:space-x-3 md:space-y-0 md:flex-row md:mt-0 md:mx-3" }, filterComponent)),
3046
+ react_1.default.createElement("div", { className: "mb-0.5 flex flex-row items-center my-6 justify-content space-x-2 md:my-0" },
3047
3047
  schemaPresent && (react_1.default.createElement(react_1.default.Fragment, null,
3048
3048
  react_1.default.createElement(iconButton_1.IconButton, { icon: react_1.default.createElement(solid_1.ArrowsUpDownIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: "bg-white", onClick: function () {
3049
3049
  handlePopUpModal(true, "sort");
@@ -3064,14 +3064,15 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3064
3064
  });
3065
3065
  }, bgColor: "bg-white" }))),
3066
3066
  !isBottom && renderActionButtons(props.type),
3067
- (schemaPresent || ((_t = props.organise) === null || _t === void 0 ? void 0 : _t.showExport)) && (react_1.default.createElement(popUp_1.PopUp, { ctaComp: react_1.default.createElement(iconButton_1.IconButton, { className: "bg-primary-100", icon: react_1.default.createElement(solid_1.EllipsisVerticalIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
3067
+ (schemaPresent || ((_w = props.organise) === null || _w === void 0 ? void 0 : _w.showExport)) && (react_1.default.createElement(popUp_1.PopUp, { ctaComp: react_1.default.createElement(iconButton_1.IconButton, { className: "bg-primary-100", icon: react_1.default.createElement(solid_1.EllipsisVerticalIcon, { className: "h-7 w-7 text-primary-500" }), bgColor: "bg-white" }), renderComp: react_1.default.createElement("div", { className: "shadow-lg" }, moreButtonPopUp.map(function (eachPopup) { return (
3068
3068
  //TODO: Crash on Next Js
3069
3069
  // <Menu.Item>
3070
3070
  react_1.default.createElement("span", { className: "block w-40 py-3 text-sm text-center text-gray-700 cursor-pointer hover:bg-gray-100", onClick: eachPopup === null || eachPopup === void 0 ? void 0 : eachPopup.onClick }, eachPopup === null || eachPopup === void 0 ? void 0 : eachPopup.text)
3071
3071
  // </Menu.Item>
3072
3072
  ); })), lib: {
3073
- Transition: (_u = props === null || props === void 0 ? void 0 : props.lib) === null || _u === void 0 ? void 0 : _u.Transition,
3073
+ Transition: (_x = props === null || props === void 0 ? void 0 : props.lib) === null || _x === void 0 ? void 0 : _x.Transition,
3074
3074
  } })))),
3075
+ ((_y = props.organise) === null || _y === void 0 ? void 0 : _y.filterComponentNewRow) && (react_1.default.createElement("div", { className: "flex flex-col items-center justify-center my-6 space-y-3 md:space-x-3 md:space-y-0 md:flex-row" }, filterComponent)),
3075
3076
  schemaPresent && (react_1.default.createElement(tabs_1.Tabs, { tabs: tabs, selectedId: viewType, linkType: props.linkType, custom: props.custom, onClick: function (id) { return handleSelectTab(id, tabs); } })),
3076
3077
  renderTabContent(tabs, props.type, viewType),
3077
3078
  isBottom && renderActionButtons(props.type)));
@@ -3142,7 +3143,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3142
3143
  return null;
3143
3144
  });
3144
3145
  spaceTableData.forEach(function (eachData) {
3145
- var _a, _b, _c, _d, _e, _f;
3146
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
3146
3147
  var clonedEachData = JSON.parse(JSON.stringify(eachData));
3147
3148
  var allValues = Object.values(clonedEachData);
3148
3149
  var title = allValues.length > 0
@@ -3176,20 +3177,47 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3176
3177
  id: clonedEachData["id"],
3177
3178
  title: title,
3178
3179
  description: desc,
3180
+ tags: [],
3179
3181
  };
3180
3182
  if ((_b = (_a = props.bareSettings) === null || _a === void 0 ? void 0 : _a.bareListGridComponent) === null || _b === void 0 ? void 0 : _b.call(_a, eachData)) {
3181
3183
  data[type === "grid" ? "extra" : "action"] =
3182
3184
  (_d = (_c = props.bareSettings) === null || _c === void 0 ? void 0 : _c.bareListGridComponent) === null || _d === void 0 ? void 0 : _d.call(_c, eachData);
3183
3185
  }
3184
- data[type === "grid" ? "imageUrl" : "img"] = clonedEachData[imageTag]
3185
- ? (_f = (_e = clonedEachData[imageTag]) === null || _e === void 0 ? void 0 : _e.props) === null || _f === void 0 ? void 0 : _f.src
3186
- : "";
3186
+ if ((_f = (_e = props.bareSettings) === null || _e === void 0 ? void 0 : _e.bareListGridTags) === null || _f === void 0 ? void 0 : _f.call(_e, eachData)) {
3187
+ var eachDataTags = (_h = (_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareListGridTags) === null || _h === void 0 ? void 0 : _h.call(_g, eachData);
3188
+ if (Array.isArray(eachDataTags)) {
3189
+ var gridTagList_1 = [];
3190
+ eachDataTags.forEach(function (eachTag) {
3191
+ if (typeof eachTag === "string")
3192
+ gridTagList_1.push(eachTag);
3193
+ else if (typeof eachTag === "number")
3194
+ gridTagList_1.push(eachTag.toString());
3195
+ });
3196
+ data["tags"] = gridTagList_1;
3197
+ }
3198
+ }
3199
+ if (type === "grid") {
3200
+ var eachDataGridImage = "";
3201
+ var gridFallbackImg = (_k = (_j = props.bareSettings) === null || _j === void 0 ? void 0 : _j.bareListGridFallbackImg) === null || _k === void 0 ? void 0 : _k.call(_j, eachData);
3202
+ if (clonedEachData[imageTag] && clonedEachData[imageTag] !== " - ") {
3203
+ eachDataGridImage = (_m = (_l = clonedEachData[imageTag]) === null || _l === void 0 ? void 0 : _l.props) === null || _m === void 0 ? void 0 : _m.src;
3204
+ }
3205
+ else if (gridFallbackImg && typeof gridFallbackImg === "string") {
3206
+ eachDataGridImage = gridFallbackImg;
3207
+ }
3208
+ data["imageUrl"] = eachDataGridImage;
3209
+ }
3210
+ else {
3211
+ data["img"] = clonedEachData[imageTag]
3212
+ ? (_p = (_o = clonedEachData[imageTag]) === null || _o === void 0 ? void 0 : _o.props) === null || _p === void 0 ? void 0 : _p.src
3213
+ : "";
3214
+ }
3187
3215
  gridData.push(data);
3188
3216
  });
3189
3217
  return gridData;
3190
3218
  };
3191
3219
  var renderTabContent = function (tabs, dataType, viewType) {
3192
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
3220
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
3193
3221
  var selectedTabData = tabs.find(function (eachTab) {
3194
3222
  if (eachTab.id === viewType) {
3195
3223
  return eachTab;
@@ -3201,11 +3229,12 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3201
3229
  if (viewType === "general") {
3202
3230
  if (dataType === "list") {
3203
3231
  return (react_1.default.createElement(table_1.Table, { showId: showId, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", data: tableData, spaceData: spaceTableData, size: size, limit: limit, cursor: cursor, loading: tableLoading, checkbox: isEditor ? true : false, selectAll: selectAll, selectedIds: selectedIds, selectAllText: selectAll ? "from filter" : "", multiActionButton: react_1.default.createElement("div", { className: "flex flex-row space-x-3" },
3204
- react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
3232
+ ((_a = props.edit) === null || _a === void 0 ? void 0 : _a.deleteBtn) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm text-red-500 hover:text-red-600", text: "Delete", onClick: function () {
3205
3233
  handleGenerateDeletePasscode();
3206
3234
  setDeleteModal(true);
3207
- } }),
3208
- props.devSettings.server === "mongoServer" && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
3235
+ } })),
3236
+ props.devSettings.server === "mongoServer" &&
3237
+ !((_b = props.edit) === null || _b === void 0 ? void 0 : _b.disabledUpdate) && (react_1.default.createElement(textButton_1.TextButton, { className: "text-sm", text: "Update", onClick: function () {
3209
3238
  setBatchUpdateModal(true);
3210
3239
  } }))), handleSelectAll: handleSelectAllPages, handleSelectedIds: handleSelectIds, header: renderTableHeader(), pageIndex: pageIndex, onClickRow: function (id) {
3211
3240
  var _a, _b;
@@ -3215,7 +3244,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3215
3244
  name: props.type === "list" ? "Table View" : "Card View",
3216
3245
  href: "".concat(props.localURLEndpoint, "?data=").concat(props.id, "&type=").concat(props.type, "&collection=").concat(props.collectionId, "&view=general"),
3217
3246
  });
3218
- }, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, className: "mt-5", lib: { axios: (_a = props.lib) === null || _a === void 0 ? void 0 : _a.axios }, devSettings: {
3247
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, className: "mt-5", lib: { axios: (_c = props.lib) === null || _c === void 0 ? void 0 : _c.axios }, devSettings: {
3219
3248
  schemaEndpoint: devSettings.schemaEndpoint,
3220
3249
  server: devSettings.server,
3221
3250
  dbEndpoint: devSettings.dbEndpoint,
@@ -3223,7 +3252,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3223
3252
  dbUserToken: devSettings.dbUserToken,
3224
3253
  imageEndpoint: devSettings.imageEndpoint,
3225
3254
  }, bareSettings: props.bareSettings, editable: {
3226
- active: ((_b = props.edit) === null || _b === void 0 ? void 0 : _b.listEditable) ? true : false,
3255
+ active: ((_d = props.edit) === null || _d === void 0 ? void 0 : _d.listEditable) ? true : false,
3227
3256
  onUpdateData: function (rowId, columnId, data) { return __awaiter(void 0, void 0, void 0, function () {
3228
3257
  return __generator(this, function (_a) {
3229
3258
  switch (_a.label) {
@@ -3235,7 +3264,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3235
3264
  });
3236
3265
  }); },
3237
3266
  }, addable: {
3238
- active: ((_c = props.edit) === null || _c === void 0 ? void 0 : _c.listAddable) ? true : false,
3267
+ active: ((_e = props.edit) === null || _e === void 0 ? void 0 : _e.listAddable) ? true : false,
3239
3268
  onAddData: function (data) { return __awaiter(void 0, void 0, void 0, function () {
3240
3269
  return __generator(this, function (_a) {
3241
3270
  switch (_a.label) {
@@ -3246,24 +3275,24 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3246
3275
  }
3247
3276
  });
3248
3277
  }); },
3249
- }, darkMode: (_d = props.organise) === null || _d === void 0 ? void 0 : _d.darkMode }));
3278
+ }, darkMode: (_f = props.organise) === null || _f === void 0 ? void 0 : _f.darkMode }));
3250
3279
  }
3251
3280
  else if (dataType === "read") {
3252
3281
  return (react_1.default.createElement(react_1.default.Fragment, null,
3253
- react_1.default.createElement(detailList_1.DetailList, { model: props.model, referenceModel: referenceModelSchema, className: "mt-5 bg-white rounded-md", title: "General Details", list: renderDetailListData(props.model), handleReferenceLink: !schemaPresent && ((_e = props.bareSettings) === null || _e === void 0 ? void 0 : _e.bareReadReferenceView)
3282
+ react_1.default.createElement(detailList_1.DetailList, { model: props.model, referenceModel: referenceModelSchema, className: "mt-5 bg-white rounded-md", title: "General Details", list: renderDetailListData(props.model), handleReferenceLink: !schemaPresent && ((_g = props.bareSettings) === null || _g === void 0 ? void 0 : _g.bareReadReferenceView)
3254
3283
  ? props.bareSettings.bareReadReferenceView
3255
3284
  : undefined }),
3256
3285
  react_1.default.createElement("div", { className: "mt-8" }, renderListObject(dataType))));
3257
3286
  }
3258
3287
  }
3259
3288
  else if (selectedTabData) {
3260
- if ((_f = props.bareSettings) === null || _f === void 0 ? void 0 : _f.bareListComponent) {
3289
+ if ((_h = props.bareSettings) === null || _h === void 0 ? void 0 : _h.bareListComponent) {
3261
3290
  return (react_1.default.createElement(react_1.default.Fragment, null,
3262
3291
  props.bareSettings.bareListComponent(tableData, spaceTableData, tableLoading),
3263
- react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", handleUpdatePageIndex: handlePagination, darkMode: (_g = props.organise) === null || _g === void 0 ? void 0 : _g.darkMode })));
3292
+ react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", handleUpdatePageIndex: handlePagination, darkMode: (_j = props.organise) === null || _j === void 0 ? void 0 : _j.darkMode })));
3264
3293
  }
3265
3294
  else if (selectedTabData.viewType === "iframe") {
3266
- return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (_h = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.iframeSrc) !== null && _h !== void 0 ? _h : "", title: (_j = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.id) !== null && _j !== void 0 ? _j : "", onLoad: props.onLoadIframe }));
3295
+ return (react_1.default.createElement("iframe", { id: "blixify-iframe", className: "w-full mt-5", style: { height: "70vh" }, src: (_k = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.iframeSrc) !== null && _k !== void 0 ? _k : "", title: (_l = selectedTabData === null || selectedTabData === void 0 ? void 0 : selectedTabData.id) !== null && _l !== void 0 ? _l : "", onLoad: props.onLoadIframe }));
3267
3296
  }
3268
3297
  else if (selectedTabData.viewType === "list") {
3269
3298
  return (react_1.default.createElement(react_1.default.Fragment, null,
@@ -3277,7 +3306,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3277
3306
  react_1.default.createElement(grid_1.Grid, { paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", data: renderGridAndListData(selectedTabData.viewImage, "grid"), size: size, limit: limit, cursor: cursor, loading: tableLoading, pageIndex: pageIndex, onClickData: function (id) {
3278
3307
  var _a, _b;
3279
3308
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "read", id, "general");
3280
- }, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, gridColClassName: (_k = props.bareSettings) === null || _k === void 0 ? void 0 : _k.bareListGridColClassName, className: "mt-5" })));
3309
+ }, linkType: props.linkType, custom: props.custom, newTabUrl: "".concat(props.localURLEndpoint, "?data="), addNewTabUrl: "&type=read&collection=".concat(props.collectionId, "&view=general"), handleUpdatePageIndex: handlePagination, gridColClassName: (_m = props.bareSettings) === null || _m === void 0 ? void 0 : _m.bareListGridColClassName, className: "mt-5" })));
3281
3310
  }
3282
3311
  else if (selectedTabData.viewType === "calendar") {
3283
3312
  var calendarSettings_1 = selectedTab === null || selectedTab === void 0 ? void 0 : selectedTab.calendarSettings;
@@ -3386,7 +3415,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3386
3415
  else if (selectedTabData.viewType === "feeds") {
3387
3416
  var contentList_1 = [];
3388
3417
  var feedsSettings_1 = selectedTabData.feedsSettings;
3389
- var customFeedsData = (_l = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _l === void 0 ? void 0 : _l.call(feedsSettings_1, tableData, spaceTableData);
3418
+ var customFeedsData = (_o = feedsSettings_1 === null || feedsSettings_1 === void 0 ? void 0 : feedsSettings_1.customFeedsData) === null || _o === void 0 ? void 0 : _o.call(feedsSettings_1, tableData, spaceTableData);
3390
3419
  if (customFeedsData && customFeedsData.length > 0) {
3391
3420
  customFeedsData.map(function (eachData) {
3392
3421
  var _a, _b, _c, _d;
@@ -3427,9 +3456,9 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3427
3456
  });
3428
3457
  }
3429
3458
  return (react_1.default.createElement("div", { className: "mt-4" }, tableLoading ? (react_1.default.createElement(loading_1.Loading, null)) : (react_1.default.createElement("div", { className: "p-4 bg-white rounded-lg" },
3430
- react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_m = props.organise) === null || _m === void 0 ? void 0 : _m.darkMode }),
3459
+ react_1.default.createElement(feeds_1.Feeds, { bold: true, content: contentList_1, darkMode: (_p = props.organise) === null || _p === void 0 ? void 0 : _p.darkMode }),
3431
3460
  react_1.default.createElement("div", { className: "my-10" }),
3432
- contentList_1.length > 0 && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", handleUpdatePageIndex: handlePagination, darkMode: (_o = props.organise) === null || _o === void 0 ? void 0 : _o.darkMode }))))));
3461
+ contentList_1.length > 0 && (react_1.default.createElement(pagination_1.Pagination, { data: tableData, size: size, limit: limit, cursor: cursor, pageIndex: pageIndex, paginationType: devSettings.server === "mongoServer" ? "page" : "cursor", handleUpdatePageIndex: handlePagination, darkMode: (_q = props.organise) === null || _q === void 0 ? void 0 : _q.darkMode }))))));
3433
3462
  }
3434
3463
  else if (selectedTabData.renderComp) {
3435
3464
  return react_1.default.createElement(react_1.default.Fragment, null, selectedTabData.renderComp());
@@ -3750,14 +3779,14 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
3750
3779
  return "";
3751
3780
  };
3752
3781
  var renderFeedsActionBtn = function (id, description) {
3753
- var _a, _b, _c, _d;
3754
- if (((_a = props.edit) === null || _a === void 0 ? void 0 : _a.allEditable) || ((_b = props.edit) === null || _b === void 0 ? void 0 : _b.deleteBtn)) {
3782
+ var _a, _b;
3783
+ if ((_a = props.edit) === null || _a === void 0 ? void 0 : _a.allEditable) {
3755
3784
  return (react_1.default.createElement("div", { className: "w-full flex justify-end gap-4 ".concat(description && "mt-2") },
3756
- ((_c = props.edit) === null || _c === void 0 ? void 0 : _c.allEditable) && (react_1.default.createElement(outline_1.PencilSquareIcon, { className: "h-5 w-5 text-primary-500 hover:cursor-pointer", onClick: function () {
3785
+ !props.edit.disabledUpdate && (react_1.default.createElement(outline_1.PencilSquareIcon, { className: "h-5 w-5 text-primary-500 hover:cursor-pointer", onClick: function () {
3757
3786
  var _a, _b;
3758
3787
  (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.handleNavigate) === null || _b === void 0 ? void 0 : _b.call(_a, "update", id);
3759
3788
  } })),
3760
- ((_d = props.edit) === null || _d === void 0 ? void 0 : _d.deleteBtn) && (react_1.default.createElement(outline_1.TrashIcon, { className: "h-5 w-5 text-red-500 hover:cursor-pointer", onClick: function () {
3789
+ ((_b = props.edit) === null || _b === void 0 ? void 0 : _b.deleteBtn) && (react_1.default.createElement(outline_1.TrashIcon, { className: "h-5 w-5 text-red-500 hover:cursor-pointer", onClick: function () {
3761
3790
  setDeleteModal(true);
3762
3791
  setDeleteFeedId(id);
3763
3792
  } }))));