vue-popup-plus-plugin-preset 1.3.3 → 1.3.4

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,6 +1,6 @@
1
1
  import { defineComponent as i, inject as c, createElementBlock as f, openBlock as m, createVNode as t, withCtx as e, createElementVNode as u, toDisplayString as l, createTextVNode as p } from "vue";
2
2
  import { usePopup as P, POPUP_COMPONENT_INJECTS as C } from "vue-popup-plus";
3
- import { P as g, a as _, b as B } from "./PBody-AzUGJHWU.js";
3
+ import { P as g, a as _, b as B } from "./PBody-dDV4yMXv.js";
4
4
  import { P as h } from "./PFooter-Cp_J7xg-.js";
5
5
  import { P as N, a as x } from "./PButtonGroup-C-RNjqPq.js";
6
6
  import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -13,7 +13,7 @@ const V = { class: "p-scaffold" }, x = { class: "body" }, j = /* @__PURE__ */ p(
13
13
  c(a.$slots, "footer", {}, void 0, !0)
14
14
  ]));
15
15
  }
16
- }), Z = /* @__PURE__ */ g(j, [["__scopeId", "data-v-a0759a9a"]]), U = /* @__PURE__ */ p({
16
+ }), Z = /* @__PURE__ */ g(j, [["__scopeId", "data-v-001c1189"]]), U = /* @__PURE__ */ p({
17
17
  name: "PHeaderButton",
18
18
  __name: "PHeaderButton",
19
19
  props: {
@@ -64,26 +64,26 @@ const V = { class: "p-scaffold" }, x = { class: "body" }, j = /* @__PURE__ */ p(
64
64
  I((t) => ({
65
65
  v7e42c502: `${t.height}px`
66
66
  }));
67
- const l = L(), h = E(k.INSTANCE_ID), v = E(k.COMPUTED_VIEW_STYLE), C = a, i = s(0), d = s(0), P = s(0), $ = s(0), _ = s(0), B = s(0), b = s(!1), Y = w(() => !!e.iconClass);
68
- T([_, B], M);
67
+ const l = L(), h = E(k.INSTANCE_ID), v = E(k.COMPUTED_VIEW_STYLE), C = a, i = s(0), d = s(0), P = s(0), $ = s(0), _ = s(0), b = s(0), B = s(!1), Y = w(() => !!e.iconClass);
68
+ T([_, b], M);
69
69
  function D() {
70
70
  e.hasCloseButton && C("close");
71
71
  }
72
72
  function X(t) {
73
- e.draggable && (i.value = t.clientX, d.value = t.clientY, P.value = v.value.translateX, $.value = v.value.translateY, b.value = !0, t.preventDefault(), window.addEventListener("mousemove", y), window.addEventListener("mouseup", O));
73
+ e.draggable && (i.value = t.clientX, d.value = t.clientY, P.value = v.value.translateX, $.value = v.value.translateY, B.value = !0, t.preventDefault(), window.addEventListener("mousemove", y), window.addEventListener("mouseup", O));
74
74
  }
75
75
  function y(t) {
76
- if (!b.value) return;
76
+ if (!B.value) return;
77
77
  const n = t.clientX - i.value, m = t.clientY - d.value;
78
- _.value = P.value + n, B.value = $.value + m;
78
+ _.value = P.value + n, b.value = $.value + m;
79
79
  }
80
80
  function O(t) {
81
- b.value = !1, window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", O);
81
+ B.value = !1, window.removeEventListener("mousemove", y), window.removeEventListener("mouseup", O);
82
82
  }
83
83
  function M() {
84
84
  l.update(h, {
85
85
  viewTranslateX: _.value,
86
- viewTranslateY: B.value
86
+ viewTranslateY: b.value
87
87
  });
88
88
  }
89
89
  return (t, n) => (o(), r("div", {
@@ -120,7 +120,7 @@ const V = { class: "p-scaffold" }, x = { class: "body" }, j = /* @__PURE__ */ p(
120
120
  c(a.$slots, "default", {}, void 0, !0)
121
121
  ], 2));
122
122
  }
123
- }), te = /* @__PURE__ */ g(G, [["__scopeId", "data-v-232de61d"]]);
123
+ }), te = /* @__PURE__ */ g(G, [["__scopeId", "data-v-109bf0c1"]]);
124
124
  export {
125
125
  Z as P,
126
126
  te as a,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, inject as u, createElementBlock as C, openBlock as p, createVNode as t, withCtx as e, createElementVNode as P, toDisplayString as a, createTextVNode as d } from "vue";
2
2
  import { usePopup as g, POPUP_COMPONENT_INJECTS as x } from "vue-popup-plus";
3
- import { P as B, a as y, b as N } from "./PBody-AzUGJHWU.js";
3
+ import { P as B, a as y, b as N } from "./PBody-dDV4yMXv.js";
4
4
  import { P as T } from "./PFooter-Cp_J7xg-.js";
5
5
  import { P as _, a as f } from "./PButtonGroup-C-RNjqPq.js";
6
6
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, inject as m, ref as h, computed as t, defineAsyncComponent as v, onMounted as B, createElementBlock as b, openBlock as a, normalizeClass as k, createVNode as l, createSlots as E, withCtx as n, createBlock as u, resolveDynamicComponent as N, mergeProps as S, createCommentVNode as D } from "vue";
2
2
  import { usePopup as I, POPUP_COMPONENT_INJECTS as c } from "vue-popup-plus";
3
- import { P as M, a as T, b as w, c as x } from "./PBody-AzUGJHWU.js";
3
+ import { P as M, a as T, b as w, c as x } from "./PBody-dDV4yMXv.js";
4
4
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const V = /* @__PURE__ */ y({
6
6
  name: "PDialog",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as y, inject as C, ref as v, computed as B, createElementBlock as d, openBlock as r, createVNode as l, withCtx as a, createCommentVNode as s, createElementVNode as N, toDisplayString as i, withDirectives as f, vModelText as p, createTextVNode as g } from "vue";
2
2
  import { usePopup as T, POPUP_COMPONENT_INJECTS as V } from "vue-popup-plus";
3
3
  import "./vue-popup-plus-plugin-preset.js";
4
- import { P as k, a as L, b } from "./PBody-AzUGJHWU.js";
4
+ import { P as k, a as L, b } from "./PBody-dDV4yMXv.js";
5
5
  import { P as E } from "./PFooter-Cp_J7xg-.js";
6
6
  import { P as I, a as h } from "./PButtonGroup-C-RNjqPq.js";
7
7
  import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as a, inject as i, onMounted as m, createElementBlock as r, openBlock as c, normalizeClass as d, createElementVNode as o, toDisplayString as l } from "vue";
2
2
  import { usePopup as p, POPUP_COMPONENT_INJECTS as u } from "vue-popup-plus";
3
3
  import "./vue-popup-plus-plugin-preset.js";
4
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const _ = { class: "content" }, f = /* @__PURE__ */ a({
4
+ import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const P = { class: "content" }, _ = /* @__PURE__ */ a({
6
6
  name: "PToast",
7
7
  __name: "PToast",
8
8
  props: {
@@ -21,10 +21,10 @@ const _ = { class: "content" }, f = /* @__PURE__ */ a({
21
21
  }, [
22
22
  t[0] || (t[0] = o("div", { class: "mask" }, null, -1)),
23
23
  t[1] || (t[1] = o("div", { class: "mask-background" }, null, -1)),
24
- o("div", _, l(e.content), 1)
24
+ o("div", P, l(e.content), 1)
25
25
  ], 2));
26
26
  }
27
- }), E = /* @__PURE__ */ P(f, [["__scopeId", "data-v-b911c797"]]);
27
+ }), E = /* @__PURE__ */ f(_, [["__scopeId", "data-v-faaec6d7"]]);
28
28
  export {
29
29
  E as default
30
30
  };
@@ -430,7 +430,7 @@ declare module 'vue-popup-plus' {
430
430
 
431
431
  declare module 'vue-popup-plus' {
432
432
  interface PopupCustomProperties {
433
- dialog: IDialog;
433
+ prompt: IPrompt;
434
434
  }
435
435
  }
436
436
 
@@ -451,13 +451,13 @@ declare module 'vue-popup-plus' {
451
451
 
452
452
  declare module 'vue-popup-plus' {
453
453
  interface PopupCustomProperties {
454
- confirm: IConfirm;
454
+ dialog: IDialog;
455
455
  }
456
456
  }
457
457
 
458
458
 
459
459
  declare module 'vue-popup-plus' {
460
460
  interface PopupCustomProperties {
461
- prompt: IPrompt;
461
+ confirm: IConfirm;
462
462
  }
463
463
  }