@creatorsn/powereditor3 0.1.2 → 0.1.5

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.
@@ -73732,6 +73732,12 @@ const _5 = /* @__PURE__ */ yn(a3e, [["render", u3e]]), d3e = {
73732
73732
  f: "whitesmoke",
73733
73733
  b: "rgba(36, 36, 36, 1)"
73734
73734
  };
73735
+ },
73736
+ formatPainterStatus() {
73737
+ return !this.editor || !this.editor.storage || !this.editor.storage.formatPainter ? "off" : this.editor.storage.formatPainter.formatPainterStatus;
73738
+ },
73739
+ showFormatPainter() {
73740
+ this.formatPainterStatus;
73735
73741
  }
73736
73742
  },
73737
73743
  mounted() {
@@ -73933,8 +73939,8 @@ function h3e(n, e, t, r, i, o) {
73933
73939
  class: "power-editor-cmd-btn",
73934
73940
  theme: i.thisTheme,
73935
73941
  "border-color": "transparent",
73936
- background: o.getBackground(t.editor.storage.formatPainter.formatPainterStatus !== "off"),
73937
- foreground: o.getForeground(t.editor.storage.formatPainter.formatPainterStatus !== "off"),
73942
+ background: o.getBackground(o.showFormatPainter),
73943
+ foreground: o.getForeground(o.showFormatPainter),
73938
73944
  title: o.getTitle("Format Painter"),
73939
73945
  onClick: o.formatPainterClick,
73940
73946
  onDblclick: o.formatPainterDoubleClick
@@ -74445,6 +74451,12 @@ const v5 = /* @__PURE__ */ yn(d3e, [["render", h3e]]), f3e = {
74445
74451
  f: "whitesmoke",
74446
74452
  b: "rgba(36, 36, 36, 1)"
74447
74453
  };
74454
+ },
74455
+ formatPainterStatus() {
74456
+ return !this.editor || !this.editor.storage || !this.editor.storage.formatPainter ? "off" : this.editor.storage.formatPainter.formatPainterStatus;
74457
+ },
74458
+ showFormatPainter() {
74459
+ this.formatPainterStatus;
74448
74460
  }
74449
74461
  },
74450
74462
  mounted() {
@@ -74593,8 +74605,8 @@ function p3e(n, e, t, r, i, o) {
74593
74605
  fe(s, {
74594
74606
  class: "power-editor-bubble-cmd-btn",
74595
74607
  theme: i.thisTheme,
74596
- background: o.getBackground(t.editor.storage.formatPainter.formatPainterStatus !== "off"),
74597
- foreground: o.getForeground(t.editor.storage.formatPainter.formatPainterStatus !== "off"),
74608
+ background: o.getBackground(o.showFormatPainter),
74609
+ foreground: o.getForeground(o.showFormatPainter),
74598
74610
  "border-color": "transparent",
74599
74611
  title: o.getTitle("Format Painter"),
74600
74612
  onClick: o.formatPainterClick,
@@ -74761,6 +74773,9 @@ const y5 = /* @__PURE__ */ yn(f3e, [["render", p3e]]), m3e = { class: "power-edi
74761
74773
  computed: {
74762
74774
  formatPainterStatus() {
74763
74775
  return !this.editor || !this.editor.storage || !this.editor.storage.formatPainter ? "off" : this.editor.storage.formatPainter.formatPainterStatus;
74776
+ },
74777
+ showFormatPainter() {
74778
+ this.formatPainterStatus;
74764
74779
  }
74765
74780
  },
74766
74781
  mounted() {
@@ -75230,7 +75245,7 @@ const y5 = /* @__PURE__ */ yn(f3e, [["render", p3e]]), m3e = { class: "power-edi
75230
75245
  }, [
75231
75246
  Rt(o.$slots, "front-content"),
75232
75247
  fe(Yy(m3), {
75233
- class: St(["tip-tap-editor", [{ "format-painter": o.formatPainterStatus !== "off" }]]),
75248
+ class: St(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
75234
75249
  editor: o.editor,
75235
75250
  theme: n.theme,
75236
75251
  ref: "editor",
@@ -75249,7 +75264,6 @@ const y5 = /* @__PURE__ */ yn(f3e, [["render", p3e]]), m3e = { class: "power-edi
75249
75264
  foreground: n.foreground,
75250
75265
  language: n.language,
75251
75266
  "tippy-options": { duration: 100 },
75252
- ref: "bubbleToolBar",
75253
75267
  mobileMode: o.mobileMode,
75254
75268
  showSave: n.showSave
75255
75269
  }, null, 8, ["editor", "theme", "foreground", "language", "mobileMode", "showSave"])) : Yt("", !0)