cft-builder 0.1.20 → 0.1.21

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-CDQjvrH2.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,96 +129522,100 @@ const MEe = () => /* @__PURE__ */ c(IEe, {}), REe = (t) => {
129522
129522
  ] })
129523
129523
  ] });
129524
129524
  }, LEe = () => {
129525
- const { renderType: t } = nn(), { formBuilderConfigurationType: e } = an(), n = 4, r = 0, i = 1, a = 2, s = 5;
129526
- return /* @__PURE__ */ c(Ie, { children: /* @__PURE__ */ I(Na, { activeIndex: (e == null ? void 0 : e.key) === cf ? n : (e == null ? void 0 : e.key) === b3 ? s : (e == null ? void 0 : e.key) === v3 || (e == null ? void 0 : e.key) === _6 || (e == null ? void 0 : e.key) === lf ? a : (e == null ? void 0 : e.key) === y1 || (e == null ? void 0 : e.key) === Gh ? i : (e == null ? void 0 : e.key) === k0 ? r : 0, scrollable: !0, children: [
129527
- t === k0 && /* @__PURE__ */ c(rr, { header: "Survey", children: GJ.map((l, u) => /* @__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(
129528
129532
  Wr,
129529
129533
  {
129530
- header: l == null ? void 0 : l.label,
129534
+ header: o == null ? void 0 : o.label,
129531
129535
  toggleable: !0,
129532
129536
  style: { marginBottom: 10 },
129533
- children: /* @__PURE__ */ c("div", { className: "grid", children: l == null ? void 0 : l.items.map((d, f) => /* @__PURE__ */ c(
129537
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c(
129534
129538
  "div",
129535
129539
  {
129536
129540
  className: "xl:col-6 lg:col-12 md:col-12 sm:col-12",
129537
129541
  children: /* @__PURE__ */ c(
129538
129542
  D0,
129539
129543
  {
129540
- data: d
129544
+ data: u
129541
129545
  },
129542
- d.uuid
129546
+ u.uuid
129543
129547
  )
129544
129548
  },
129545
- "form_elements_" + f
129549
+ "form_elements_" + d
129546
129550
  )) })
129547
129551
  },
129548
- `pannel-tab-${u}`
129552
+ `pannel-tab-${l}`
129549
129553
  )) }),
129550
- (t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Form", children: KJ.map((l, u) => (
129554
+ (t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Form", children: KJ.map((o, l) => (
129551
129555
  // Temporary solution to fix linters. Need to ask meer
129552
129556
  /* @__PURE__ */ c(
129553
129557
  Wr,
129554
129558
  {
129555
- header: l == null ? void 0 : l.label,
129559
+ header: o == null ? void 0 : o.label,
129556
129560
  toggleable: !0,
129557
129561
  style: { marginBottom: 10 },
129558
- children: /* @__PURE__ */ c("div", { className: "grid", children: l == null ? void 0 : l.items.map((d, f) => /* @__PURE__ */ c(
129562
+ children: /* @__PURE__ */ c("div", { className: "grid", children: o == null ? void 0 : o.items.map((u, d) => /* @__PURE__ */ c(
129559
129563
  "div",
129560
129564
  {
129561
129565
  className: "xl:col-6 lg:col-12 md:col-12 sm:col-12",
129562
129566
  children: /* @__PURE__ */ c(
129563
129567
  D0,
129564
129568
  {
129565
- data: d
129569
+ data: u
129566
129570
  },
129567
- d.uuid
129571
+ u.uuid
129568
129572
  )
129569
129573
  },
129570
- "form_elements_" + f
129574
+ "form_elements_" + d
129571
129575
  )) })
129572
129576
  },
129573
- `pannel-tab-${u}`
129577
+ `pannel-tab-${l}`
129574
129578
  )
129575
129579
  )) }),
129576
- (t === v3 || t === _6 || t === lf) && /* @__PURE__ */ c(rr, { header: "Layout", children: UK.map((l, u) => /* @__PURE__ */ c(
129580
+ (t === v3 || t === _6 || t === lf) && /* @__PURE__ */ c(rr, { header: "Layout", children: UK.map((o, l) => /* @__PURE__ */ c(
129577
129581
  Wr,
129578
129582
  {
129579
- header: l == null ? void 0 : l.label,
129583
+ header: o == null ? void 0 : o.label,
129580
129584
  toggleable: !0,
129581
129585
  style: { marginBottom: 10 },
129582
- children: /* @__PURE__ */ c("div", { className: "grid", children: l == null ? void 0 : l.items.map((d, f) => /* @__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(
129583
129587
  D0,
129584
129588
  {
129585
- data: d
129589
+ data: u
129586
129590
  },
129587
- d.uuid
129588
- ) }, "form_elements_" + f)) })
129591
+ u.uuid
129592
+ ) }, "form_elements_" + d)) })
129589
129593
  },
129590
- `pannel-tab-${u}`
129594
+ `pannel-tab-${l}`
129591
129595
  )) }),
129592
- (t === k0 || t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Layout", children: XJ.map((l, u) => /* @__PURE__ */ c(
129596
+ (t === k0 || t === y1 || t === Gh) && /* @__PURE__ */ c(rr, { header: "Layout", children: XJ.map((o, l) => /* @__PURE__ */ c(
129593
129597
  Wr,
129594
129598
  {
129595
- header: l == null ? void 0 : l.label,
129599
+ header: o == null ? void 0 : o.label,
129596
129600
  toggleable: !0,
129597
129601
  style: { marginBottom: 10 },
129598
- children: /* @__PURE__ */ c("div", { className: "grid", children: l == null ? void 0 : l.items.map((d, f) => /* @__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(
129599
129603
  D0,
129600
129604
  {
129601
- data: d
129605
+ data: u
129602
129606
  },
129603
- d.uuid
129604
- ) }, "form_elements_" + f)) })
129607
+ u.uuid
129608
+ ) }, "form_elements_" + d)) })
129605
129609
  },
129606
- `pannel-tab-${u}`
129610
+ `pannel-tab-${l}`
129607
129611
  )) }),
129608
129612
  t === cf && /* @__PURE__ */ c(rr, { header: "Question Bank", children: /* @__PURE__ */ I("div", { className: "grid", children: [
129609
- /* @__PURE__ */ c("div", { className: "col-12", children: $K.map((l, u) => /* @__PURE__ */ c(
129613
+ /* @__PURE__ */ c("div", { className: "col-12", children: $K.map((o, l) => /* @__PURE__ */ c(
129610
129614
  "div",
129611
129615
  {
129612
129616
  className: "grid",
129613
- children: l == null ? void 0 : l.items.map((d, f) => {
129614
- const p = Tt.cloneDeep(d);
129617
+ children: o == null ? void 0 : o.items.map((u, d) => {
129618
+ const f = Tt.cloneDeep(u);
129615
129619
  return /* @__PURE__ */ c(
129616
129620
  "div",
129617
129621
  {
@@ -129619,16 +129623,16 @@ const MEe = () => /* @__PURE__ */ c(IEe, {}), REe = (t) => {
129619
129623
  children: /* @__PURE__ */ c(
129620
129624
  D0,
129621
129625
  {
129622
- data: p
129626
+ data: f
129623
129627
  },
129624
- d.uuid
129628
+ u.uuid
129625
129629
  )
129626
129630
  },
129627
- "form_elements_" + f
129631
+ "form_elements_" + d
129628
129632
  );
129629
129633
  })
129630
129634
  },
129631
- `new-quiz-${u}`
129635
+ `new-quiz-${l}`
129632
129636
  )) }),
129633
129637
  /* @__PURE__ */ c("div", { className: "col-12 ", children: /* @__PURE__ */ I("div", { className: "p-inputgroup", children: [
129634
129638
  /* @__PURE__ */ c(pn, { placeholder: "Keyword" }),
@@ -129641,21 +129645,21 @@ const MEe = () => /* @__PURE__ */ c(IEe, {}), REe = (t) => {
129641
129645
  )
129642
129646
  ] }) })
129643
129647
  ] }) }),
129644
- t === b3 && /* @__PURE__ */ c(rr, { header: "Training", children: WJ.map((l, u) => /* @__PURE__ */ c(
129648
+ t === b3 && /* @__PURE__ */ c(rr, { header: "Training", children: WJ.map((o, l) => /* @__PURE__ */ c(
129645
129649
  Wr,
129646
129650
  {
129647
- header: l == null ? void 0 : l.label,
129651
+ header: o == null ? void 0 : o.label,
129648
129652
  toggleable: !0,
129649
129653
  style: { marginBottom: 10 },
129650
- children: /* @__PURE__ */ c("div", { className: "grid", children: l == null ? void 0 : l.items.map((d, f) => /* @__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(
129651
129655
  D0,
129652
129656
  {
129653
- data: d
129657
+ data: u
129654
129658
  },
129655
- d.uuid
129656
- ) }, "form_elements_" + f)) })
129659
+ u.uuid
129660
+ ) }, "form_elements_" + d)) })
129657
129661
  },
129658
- `pannel-tab-${u}`
129662
+ `pannel-tab-${l}`
129659
129663
  )) }),
129660
129664
  (t === k0 || t === y1 || t === Gh) && /* @__PURE__ */ I(rr, { header: "Custom", children: [
129661
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-COsDjMqL.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.20",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"