@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.
- package/dist/components/tiptap/index.js +17 -13
- package/package.json +1 -1
|
@@ -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),
|
|
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
|
-
},
|
|
25519
|
-
|
|
25522
|
+
}, o = uE(t.value, e.editorContent ? e.editorContent : r), i = () => {
|
|
25523
|
+
t.value = !t.value, dE(o, t.value);
|
|
25520
25524
|
};
|
|
25521
|
-
return (
|
|
25522
|
-
le(
|
|
25525
|
+
return (s, l) => (T(), P(un, null, [
|
|
25526
|
+
le(o) ? (T(), Z(le(Uw), {
|
|
25523
25527
|
key: 0,
|
|
25524
|
-
editor: le(
|
|
25525
|
-
class: "w-full ml-8 mt-2 bg-steel-100 rounded-md
|
|
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:
|
|
25534
|
+
onClick: i
|
|
25531
25535
|
}, {
|
|
25532
25536
|
default: G(() => [
|
|
25533
|
-
At(at(
|
|
25537
|
+
At(at(t.value == !0 ? "Save Changes" : "Edit"), 1)
|
|
25534
25538
|
]),
|
|
25535
25539
|
_: 1
|
|
25536
25540
|
}),
|
|
25537
|
-
le(
|
|
25541
|
+
le(o) && t.value ? (T(), Z(SE, {
|
|
25538
25542
|
key: 1,
|
|
25539
|
-
editor: le(
|
|
25543
|
+
editor: le(o)
|
|
25540
25544
|
}, null, 8, ["editor"])) : H("", !0),
|
|
25541
|
-
le(
|
|
25545
|
+
le(o) && t.value ? (T(), Z(GE, {
|
|
25542
25546
|
key: 2,
|
|
25543
|
-
editor: le(
|
|
25547
|
+
editor: le(o),
|
|
25544
25548
|
class: "max-w-[450px]"
|
|
25545
25549
|
}, null, 8, ["editor"])) : H("", !0)
|
|
25546
25550
|
], 64));
|