cft-builder 0.1.23 → 0.1.24

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.
@@ -61931,7 +61931,7 @@ var che = function() {
61931
61931
  theme: i.theme,
61932
61932
  formats: i.formats
61933
61933
  };
61934
- che ? C(new Quill(d.current, M)) : import("./quill-CKL8iKvR.js").then(function(z) {
61934
+ che ? C(new Quill(d.current, M)) : import("./quill-Dl2AkSmR.js").then(function(z) {
61935
61935
  if (z && Te.isExist(d.current)) {
61936
61936
  var k;
61937
61937
  z.default ? k = new z.default(d.current, M) : k = new z(d.current, M), C(k);
@@ -129522,103 +129522,100 @@ const MEe = () => /* @__PURE__ */ c(IEe, {}), REe = (t) => {
129522
129522
  ] })
129523
129523
  ] });
129524
129524
  }, LEe = () => {
129525
- const { renderType: t } = nn(), [e, n] = Ne(0), r = 4, i = 0, a = 1, s = 2, o = 5;
129526
- gn(() => (l(), () => {
129527
- }), [t]);
129528
- const l = () => {
129529
- const u = t;
129530
- let d = 0;
129531
- u === cf ? d = r : u === b3 ? d = o : u === v3 || u === _6 || u === lf ? d = s : u === y1 || u === Gh ? d = a : u === k0 && (d = i), console.log("Selected Tab Index:", d), n(d);
129532
- };
129533
- return /* @__PURE__ */ c(Ie, { children: /* @__PURE__ */ I(Na, { activeIndex: e, scrollable: !0, children: [
129534
- t === k0 && /* @__PURE__ */ c(rr, { header: "Survey", children: GJ.map((u, d) => /* @__PURE__ */ c(
129525
+ const { renderType: t } = nn(), e = 4, n = 0, r = 1, i = 2, a = 5;
129526
+ return /* @__PURE__ */ c(Ie, { children: /* @__PURE__ */ I(Na, { activeIndex: (() => {
129527
+ const o = t;
129528
+ let l = 0;
129529
+ return o === cf ? l = e : o === b3 ? l = a : o === v3 || o === _6 || o === lf ? l = i : o === y1 || o === Gh ? l = r : o === k0 && (l = n), console.log("Selected Tab Index:", l), l;
129530
+ })(), scrollable: !0, children: [
129531
+ t === k0 && /* @__PURE__ */ c(rr, { header: "Survey", children: GJ.map((o, l) => /* @__PURE__ */ c(
129535
129532
  Wr,
129536
129533
  {
129537
- header: u == null ? void 0 : u.label,
129534
+ header: o == null ? void 0 : o.label,
129538
129535
  toggleable: !0,
129539
129536
  style: { marginBottom: 10 },
129540
- children: /* @__PURE__ */ c("div", { className: "grid", children: u == null ? void 0 : u.items.map((f, p) => /* @__PURE__ */ c(
129537
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c(
129541
129538
  "div",
129542
129539
  {
129543
129540
  className: "xl:col-6 lg:col-12 md:col-12 sm:col-12",
129544
129541
  children: /* @__PURE__ */ c(
129545
129542
  D0,
129546
129543
  {
129547
- data: f
129544
+ data: u
129548
129545
  },
129549
- f.uuid
129546
+ u.uuid
129550
129547
  )
129551
129548
  },
129552
- "form_elements_" + p
129549
+ "form_elements_" + d
129553
129550
  )) })
129554
129551
  },
129555
- `pannel-tab-${d}`
129552
+ `pannel-tab-${l}`
129556
129553
  )) }),
129557
- (t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Form", children: KJ.map((u, d) => (
129554
+ (t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Form", children: KJ.map((o, l) => (
129558
129555
  // Temporary solution to fix linters. Need to ask meer
129559
129556
  /* @__PURE__ */ c(
129560
129557
  Wr,
129561
129558
  {
129562
- header: u == null ? void 0 : u.label,
129559
+ header: o == null ? void 0 : o.label,
129563
129560
  toggleable: !0,
129564
129561
  style: { marginBottom: 10 },
129565
- children: /* @__PURE__ */ c("div", { className: "grid", children: u == null ? void 0 : u.items.map((f, p) => /* @__PURE__ */ c(
129562
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c(
129566
129563
  "div",
129567
129564
  {
129568
129565
  className: "xl:col-6 lg:col-12 md:col-12 sm:col-12",
129569
129566
  children: /* @__PURE__ */ c(
129570
129567
  D0,
129571
129568
  {
129572
- data: f
129569
+ data: u
129573
129570
  },
129574
- f.uuid
129571
+ u.uuid
129575
129572
  )
129576
129573
  },
129577
- "form_elements_" + p
129574
+ "form_elements_" + d
129578
129575
  )) })
129579
129576
  },
129580
- `pannel-tab-${d}`
129577
+ `pannel-tab-${l}`
129581
129578
  )
129582
129579
  )) }),
129583
- (t === v3 || t === _6 || t === lf) && /* @__PURE__ */ c(rr, { header: "Layout", children: UK.map((u, d) => /* @__PURE__ */ c(
129580
+ (t === v3 || t === _6 || t === lf) && /* @__PURE__ */ c(rr, { header: "Layout", children: UK.map((o, l) => /* @__PURE__ */ c(
129584
129581
  Wr,
129585
129582
  {
129586
- header: u == null ? void 0 : u.label,
129583
+ header: o == null ? void 0 : o.label,
129587
129584
  toggleable: !0,
129588
129585
  style: { marginBottom: 10 },
129589
- children: /* @__PURE__ */ c("div", { className: "grid", children: u == null ? void 0 : u.items.map((f, p) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
129586
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
129590
129587
  D0,
129591
129588
  {
129592
- data: f
129589
+ data: u
129593
129590
  },
129594
- f.uuid
129595
- ) }, "form_elements_" + p)) })
129591
+ u.uuid
129592
+ ) }, "form_elements_" + d)) })
129596
129593
  },
129597
- `pannel-tab-${d}`
129594
+ `pannel-tab-${l}`
129598
129595
  )) }),
129599
- (t === k0 || t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Layout", children: XJ.map((u, d) => /* @__PURE__ */ c(
129596
+ (t === k0 || t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Layout", children: XJ.map((o, l) => /* @__PURE__ */ c(
129600
129597
  Wr,
129601
129598
  {
129602
- header: u == null ? void 0 : u.label,
129599
+ header: o == null ? void 0 : o.label,
129603
129600
  toggleable: !0,
129604
129601
  style: { marginBottom: 10 },
129605
- children: /* @__PURE__ */ c("div", { className: "grid", children: u == null ? void 0 : u.items.map((f, p) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
129602
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
129606
129603
  D0,
129607
129604
  {
129608
- data: f
129605
+ data: u
129609
129606
  },
129610
- f.uuid
129611
- ) }, "form_elements_" + p)) })
129607
+ u.uuid
129608
+ ) }, "form_elements_" + d)) })
129612
129609
  },
129613
- `pannel-tab-${d}`
129610
+ `pannel-tab-${l}`
129614
129611
  )) }),
129615
129612
  t === cf && /* @__PURE__ */ c(rr, { header: "Question Bank", children: /* @__PURE__ */ I("div", { className: "grid", children: [
129616
- /* @__PURE__ */ c("div", { className: "col-12", children: $K.map((u, d) => /* @__PURE__ */ c(
129613
+ /* @__PURE__ */ c("div", { className: "col-12", children: $K.map((o, l) => /* @__PURE__ */ c(
129617
129614
  "div",
129618
129615
  {
129619
129616
  className: "grid",
129620
- children: u == null ? void 0 : u.items.map((f, p) => {
129621
- const g = Tt.cloneDeep(f);
129617
+ children: o == null ? void 0 : o.items.map((u, d) => {
129618
+ const f = Tt.cloneDeep(u);
129622
129619
  return /* @__PURE__ */ c(
129623
129620
  "div",
129624
129621
  {
@@ -129626,16 +129623,16 @@ const MEe = () => /* @__PURE__ */ c(IEe, {}), REe = (t) => {
129626
129623
  children: /* @__PURE__ */ c(
129627
129624
  D0,
129628
129625
  {
129629
- data: g
129626
+ data: f
129630
129627
  },
129631
- f.uuid
129628
+ u.uuid
129632
129629
  )
129633
129630
  },
129634
- "form_elements_" + p
129631
+ "form_elements_" + d
129635
129632
  );
129636
129633
  })
129637
129634
  },
129638
- `new-quiz-${d}`
129635
+ `new-quiz-${l}`
129639
129636
  )) }),
129640
129637
  /* @__PURE__ */ c("div", { className: "col-12 ", children: /* @__PURE__ */ I("div", { className: "p-inputgroup", children: [
129641
129638
  /* @__PURE__ */ c(pn, { placeholder: "Keyword" }),
@@ -129648,21 +129645,21 @@ const MEe = () => /* @__PURE__ */ c(IEe, {}), REe = (t) => {
129648
129645
  )
129649
129646
  ] }) })
129650
129647
  ] }) }),
129651
- t === b3 && /* @__PURE__ */ c(rr, { header: "Training", children: WJ.map((u, d) => /* @__PURE__ */ c(
129648
+ t === b3 && /* @__PURE__ */ c(rr, { header: "Training", children: WJ.map((o, l) => /* @__PURE__ */ c(
129652
129649
  Wr,
129653
129650
  {
129654
- header: u == null ? void 0 : u.label,
129651
+ header: o == null ? void 0 : o.label,
129655
129652
  toggleable: !0,
129656
129653
  style: { marginBottom: 10 },
129657
- children: /* @__PURE__ */ c("div", { className: "grid", children: u == null ? void 0 : u.items.map((f, p) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
129654
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
129658
129655
  D0,
129659
129656
  {
129660
- data: f
129657
+ data: u
129661
129658
  },
129662
- f.uuid
129663
- ) }, "form_elements_" + p)) })
129659
+ u.uuid
129660
+ ) }, "form_elements_" + d)) })
129664
129661
  },
129665
- `pannel-tab-${d}`
129662
+ `pannel-tab-${l}`
129666
129663
  )) }),
129667
129664
  (t === k0 || t === y1 || t === Gh) && /* @__PURE__ */ I(rr, { header: "Custom", children: [
129668
129665
  /* @__PURE__ */ c("h6", { children: "Custom Sections" }),
@@ -1,7 +1,7 @@
1
1
  var Ml = Object.defineProperty;
2
2
  var Dl = (n, t, e) => t in n ? Ml(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var T = (n, t, e) => (Dl(n, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, 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 jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-BiIfpGy6.js";
4
+ import { d as ti, i as Rr, a as Hi, b as Ul, e as Br, M as Pl, 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 jl, n as Hl, o as Fi, p as $l, q as Fl, r as zl, s as Kl, t as ii, u as Gl, v as Vl, w as Ft, x as zi, y as xe } from "./main-DXQhvDlW.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.1.23",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"