@zealsolutions/zeal-ui 1.0.0-alpha.113 → 1.0.0-alpha.115

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.
@@ -25499,10 +25499,14 @@ const GE = /* @__PURE__ */ of(ME, [["render", KE]]), yA = {
25499
25499
  editorHeight: {
25500
25500
  type: String,
25501
25501
  default: "500px"
25502
+ },
25503
+ editorContent: {
25504
+ type: Object,
25505
+ default: null
25502
25506
  }
25503
25507
  },
25504
25508
  setup(n) {
25505
- const e = W(!1), t = {
25509
+ const e = n, t = W(!1), r = {
25506
25510
  type: "doc",
25507
25511
  content: [
25508
25512
  {
@@ -25515,32 +25519,32 @@ const GE = /* @__PURE__ */ of(ME, [["render", KE]]), yA = {
25515
25519
  ]
25516
25520
  }
25517
25521
  ]
25518
- }, r = uE(e.value, t), o = () => {
25519
- e.value = !e.value, dE(r, e.value);
25522
+ }, o = uE(t.value, e.editorContent ? e.editorContent : r), i = () => {
25523
+ t.value = !t.value, dE(o, t.value);
25520
25524
  };
25521
- return (i, s) => (T(), P(un, null, [
25522
- le(r) ? (T(), Z(le(Uw), {
25525
+ return (s, l) => (T(), P(un, null, [
25526
+ le(o) ? (T(), Z(le(Uw), {
25523
25527
  key: 0,
25524
- editor: le(r),
25525
- class: "w-full ml-8 mt-2 bg-steel-100 rounded-md p-2",
25528
+ editor: le(o),
25529
+ class: "w-full ml-8 mt-2 bg-steel-100 rounded-md px-2 pt-2",
25526
25530
  style: xt("min-height:" + n.editorHeight + "; max-height:" + n.editorHeight + ";")
25527
25531
  }, null, 8, ["editor", "style"])) : H("", !0),
25528
25532
  ee(le(fg), {
25529
25533
  class: "ml-8 mt-2",
25530
- onClick: o
25534
+ onClick: i
25531
25535
  }, {
25532
25536
  default: G(() => [
25533
- At(at(e.value == !0 ? "Save Changes" : "Edit"), 1)
25537
+ At(at(t.value == !0 ? "Save Changes" : "Edit"), 1)
25534
25538
  ]),
25535
25539
  _: 1
25536
25540
  }),
25537
- le(r) && e.value ? (T(), Z(SE, {
25541
+ le(o) && t.value ? (T(), Z(SE, {
25538
25542
  key: 1,
25539
- editor: le(r)
25543
+ editor: le(o)
25540
25544
  }, null, 8, ["editor"])) : H("", !0),
25541
- le(r) && e.value ? (T(), Z(GE, {
25545
+ le(o) && t.value ? (T(), Z(GE, {
25542
25546
  key: 2,
25543
- editor: le(r),
25547
+ editor: le(o),
25544
25548
  class: "max-w-[450px]"
25545
25549
  }, null, 8, ["editor"])) : H("", !0)
25546
25550
  ], 64));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealsolutions/zeal-ui",
3
- "version": "1.0.0-alpha.113",
3
+ "version": "1.0.0-alpha.115",
4
4
  "description": "UI library for Zeal Solutions",
5
5
  "author": "Zeal Solutions",
6
6
  "license": "ISC",