cft-builder 0.2.264 → 0.2.267

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.
@@ -33684,6 +33684,7 @@ const bN = (t) => (e) => {
33684
33684
  assessmentData: null,
33685
33685
  task_status: 1
33686
33686
  }, tte = (t = S7, e) => {
33687
+ var n, r;
33687
33688
  switch (e.type) {
33688
33689
  case fN:
33689
33690
  return {
@@ -33715,8 +33716,8 @@ const bN = (t) => (e) => {
33715
33716
  case qee:
33716
33717
  return { ...t, ...e.payLoad };
33717
33718
  case Pee: {
33718
- const { record: n } = e.payLoad;
33719
- return { ...t, list: [...n, ...t.list] };
33719
+ const { record: i } = e.payLoad;
33720
+ return { ...t, list: [...i, ...t.list] };
33720
33721
  }
33721
33722
  case Mee:
33722
33723
  return { ...t, ...e.payLoad };
@@ -33725,10 +33726,10 @@ const bN = (t) => (e) => {
33725
33726
  case Lee:
33726
33727
  return { ...t, ...e.payLoad };
33727
33728
  case Ree: {
33728
- const n = t.list.filter(
33729
- (r) => r.task_id !== e.payLoad.task_id
33729
+ const i = t.list.filter(
33730
+ (a) => a.task_id !== e.payLoad.task_id
33730
33731
  );
33731
- return { ...t, list: [...n] };
33732
+ return { ...t, list: [...i] };
33732
33733
  }
33733
33734
  case mN:
33734
33735
  return {
@@ -33737,39 +33738,40 @@ const bN = (t) => (e) => {
33737
33738
  };
33738
33739
  case gN: {
33739
33740
  const {
33740
- pageIndex: n,
33741
- sectionIndex: r,
33742
- rowIndex: i,
33743
- columnIndex: a,
33744
- fieldIndex: s,
33745
- field: o
33746
- } = e.payLoad, l = [...t.taskSchema.layout];
33747
- l[n].children[r].children[i].children[a].children[s] = o;
33748
- const u = {
33741
+ pageIndex: i,
33742
+ sectionIndex: a,
33743
+ rowIndex: s,
33744
+ columnIndex: o,
33745
+ fieldIndex: l,
33746
+ field: u
33747
+ } = e.payLoad, d = [...t.taskSchema.layout];
33748
+ d[i].children[a].children[s].children[o].children[l] = u;
33749
+ const f = {
33749
33750
  ...t.taskSchema,
33750
- layout: l
33751
+ layout: d
33751
33752
  };
33752
33753
  return {
33753
33754
  ...t,
33754
- taskSchema: u
33755
+ taskSchema: f
33755
33756
  };
33756
33757
  }
33757
33758
  case hN: {
33758
- const { userSubmitFormIndex: n, repeatableData: r } = e.payLoad, i = t.userTaskSubmitFormData[n].repeatableFieldsData ? t.userTaskSubmitFormData[n].repeatableFieldsData : [];
33759
- return i.push(r), t.userTaskSubmitFormData[n].repeatableFieldsData = i, t;
33759
+ console.log("TASK_USER_SUBMIT_FORM_REPEATABLE_ADD*******", e.payLoad);
33760
+ const { userSubmitFormIndex: i, repeatableData: a } = e.payLoad, s = t.userTaskSubmitFormData[i].repeatableFieldsData ? (n = t.userTaskSubmitFormData[i]) == null ? void 0 : n.repeatableFieldsData : [];
33761
+ return s.push(a), t.userTaskSubmitFormData[i].repeatableFieldsData = s, t;
33760
33762
  }
33761
33763
  case pN: {
33762
- const { userSubmitFormIndex: n, repeatableDataRowIndex: r } = e.payLoad, i = [...t.userTaskSubmitFormData], a = [
33763
- ...i[n].repeatableFieldsData
33764
+ const { userSubmitFormIndex: i, repeatableDataRowIndex: a } = e.payLoad, s = [...t.userTaskSubmitFormData], o = [
33765
+ ...(r = s[i]) == null ? void 0 : r.repeatableFieldsData
33764
33766
  ];
33765
- return a.splice(r, 1), i[n] = {
33766
- ...i[n],
33767
- repeatableFieldsData: a
33768
- }, { ...t, userTaskSubmitFormData: i };
33767
+ return o.splice(a, 1), s[i] = {
33768
+ ...s[i],
33769
+ repeatableFieldsData: o
33770
+ }, { ...t, userTaskSubmitFormData: s };
33769
33771
  }
33770
33772
  case Vee: {
33771
- const { row: n, eventIndex: r } = e.payLoad, i = t.list[r];
33772
- return t.list[r] = { ...i, ...n }, t;
33773
+ const { row: i, eventIndex: a } = e.payLoad, s = t.list[a];
33774
+ return t.list[a] = { ...s, ...i }, t;
33773
33775
  }
33774
33776
  case $ee:
33775
33777
  return { ...t, ...e.payLoad };
@@ -60046,7 +60048,7 @@ var n0e = function() {
60046
60048
  theme: i.theme,
60047
60049
  formats: i.formats
60048
60050
  };
60049
- n0e ? C(new Quill(d.current, P)) : import("./quill-aJJ4nJ5O.js").then(function(z) {
60051
+ n0e ? C(new Quill(d.current, P)) : import("./quill-DZXb5Dtl.js").then(function(z) {
60050
60052
  if (z && we.isExist(d.current)) {
60051
60053
  var F;
60052
60054
  z.default ? F = new z.default(d.current, P) : F = new z(d.current, P), C(F);
@@ -127031,7 +127033,7 @@ const KCe = ({
127031
127033
  saveProgressDataHook: E,
127032
127034
  taskOptions: D
127033
127035
  } = mr(), R = D != null && D.successMessage ? D == null ? void 0 : D.successMessage : "Submitted Successfully";
127034
- fn(() => {
127036
+ console.log("taskData ------", v), fn(() => {
127035
127037
  if (m !== null && l((m == null ? void 0 : m.layout) || []), !u && e) {
127036
127038
  const re = { viewed_at: (/* @__PURE__ */ new Date()).toISOString() };
127037
127039
  g(
@@ -127078,10 +127080,7 @@ const KCe = ({
127078
127080
  o === !0 && /* @__PURE__ */ c("div", { className: "text-center text-900 text-3xl font-medium", children: v == null ? void 0 : v.task_title }),
127079
127081
  /* @__PURE__ */ c("div", { className: "ml-4 ", children: p === zee && /* @__PURE__ */ c(Xb, { classes: "", value: "Completed", level: "success" }) })
127080
127082
  ] }),
127081
- i === !1 && p === C ? /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ I("h3", { className: "text-center mt-5", children: [
127082
- R,
127083
- " ggggggg"
127084
- ] }) }) : /* @__PURE__ */ c("div", { className: "grid", children: /* @__PURE__ */ I("div", { className: "col-12", children: [
127083
+ i === !1 && p === C ? /* @__PURE__ */ c(Ce, { children: /* @__PURE__ */ c("h3", { className: "text-center mt-5", children: R }) }) : /* @__PURE__ */ c("div", { className: "grid", children: /* @__PURE__ */ I("div", { className: "col-12", children: [
127085
127084
  x && /* @__PURE__ */ c(N, {}),
127086
127085
  !x && /* @__PURE__ */ I(Ce, { children: [
127087
127086
  /* @__PURE__ */ c(vte, {}),
@@ -1,7 +1,7 @@
1
1
  var Bl = Object.defineProperty;
2
2
  var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-DlwryASK.js";
4
+ import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-FC4vIcii.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cft-builder",
3
- "version": "0.2.264",
3
+ "version": "0.2.267",
4
4
  "type": "module",
5
5
  "types": "dist/types/index",
6
6
  "files": [