lt-ppt 1.0.46 → 1.0.48

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.
@@ -1,4 +1,4 @@
1
- import { c as zo, l as Ki, g as Ko, a as qi } from "./lib-Rq3CFxDV.js";
1
+ import { c as zo, l as Ki, g as Ko, a as qi } from "./lib-rw4q3jVO.js";
2
2
  import { customAlphabet as qo } from "./index.browser-Wq18ov6h.js";
3
3
  import { defineStore as us } from "./pinia-CVat9nJz.js";
4
4
  var cs = /* @__PURE__ */ ((o) => (o.EL_ANIMATION = "elAnimation", o.EL_STYLE = "elStyle", o.EL_POSITION = "elPosition", o.SLIDE_DESIGN = "slideDesign", o.SLIDE_ANIMATION = "slideAnimation", o.MULTI_STYLE = "multiStyle", o.MULTI_POSITION = "multiPosition", o))(cs || {});
@@ -5742,9 +5742,11 @@ const el = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform
5742
5742
  updateSlideIndex(o) {
5743
5743
  this.slideIndex = o;
5744
5744
  },
5745
- addElement(o) {
5746
- const e = Array.isArray(o) ? o : [o], n = [...this.slides[this.slideIndex].elements, ...e];
5747
- this.slides[this.slideIndex].elements = n;
5745
+ addElement(o, e) {
5746
+ const t = Array.isArray(o) ? o : [o], n = e ? this.slides.findIndex((u) => u.id === e) : this.slideIndex;
5747
+ if (n === -1) return;
5748
+ const a = [...this.slides[n].elements, ...t];
5749
+ this.slides[n].elements = a;
5748
5750
  },
5749
5751
  deleteElement(o) {
5750
5752
  const e = Array.isArray(o) ? o : [o], n = this.slides[this.slideIndex].elements.filter((i) => !e.includes(i.id));
@@ -1,5 +1,5 @@
1
- import { u as o, a as r } from "./database-BZ03D3nd.js";
2
- import { u as t, a as S, b as u } from "./screen-D2QPPJex.js";
1
+ import { u as o, a as r } from "./database-Bf4mf4zB.js";
2
+ import { u as t, a as S, b as u } from "./screen-DyQzVM2d.js";
3
3
  export {
4
4
  t as useKeyboardStore,
5
5
  o as useMainStore,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as k, resolveComponent as P, openBlock as d, createElementBlock as c, Fragment as x, renderList as A, withModifiers as p, normalizeClass as L, createElementVNode as C, toDisplayString as I, createCommentVNode as v, createBlock as O, computed as S, normalizeStyle as U, createVNode as D, render as w } from "vue";
2
- import { _ as b } from "./lib-Rq3CFxDV.js";
2
+ import { _ as b } from "./lib-rw4q3jVO.js";
3
3
  import { t as G } from "./tippy.esm-Dos-q4Dz.js";
4
4
  const R = { class: "menu-content" }, X = ["onClick"], V = { class: "text" }, W = {
5
5
  key: 0,