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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-popup-plus-plugin-preset",
3
- "version": "1.3.0",
3
+ "version": "1.3.3",
4
4
  "keywords": [
5
5
  "vue",
6
6
  "vue3",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "vue": "^3.5.22",
28
- "vue-popup-plus": "^1.3.0"
28
+ "vue-popup-plus": "^1.3.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@prettier/plugin-pug": "^3.4.2",
@@ -1,67 +0,0 @@
1
- import { defineComponent as d, inject as c, createElementBlock as m, openBlock as f, createVNode as e, withCtx as t, createElementVNode as u, toDisplayString as r, createTextVNode as p } from "vue";
2
- import { usePopup as P, POPUP_COMPONENT_INJECTS as _ } from "vue-popup-plus";
3
- import { P as g, a as C, b as N } from "./PBody-CggbeZs9.js";
4
- import { P as x } from "./PFooter-Cp_J7xg-.js";
5
- import { P as b, a as B } from "./PButtonGroup-C-RNjqPq.js";
6
- import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const v = { class: "p-alert" }, y = { class: "content" }, E = /* @__PURE__ */ d({
8
- name: "PAlert",
9
- __name: "PAlert",
10
- props: {
11
- title: {},
12
- content: {},
13
- confirmText: {},
14
- draggable: { type: Boolean }
15
- },
16
- setup(o) {
17
- const l = P(), i = c(_.INSTANCE_ID);
18
- function a() {
19
- l.destroy(i);
20
- }
21
- return (I, n) => (f(), m("div", v, [
22
- e(g, null, {
23
- header: t(() => [
24
- e(N, {
25
- draggable: o.draggable,
26
- title: o.title,
27
- onClose: n[0] || (n[0] = (s) => a()),
28
- iconClass: "alert"
29
- }, null, 8, ["draggable", "title"])
30
- ]),
31
- footer: t(() => [
32
- e(x, null, {
33
- default: t(() => [
34
- e(b, { align: "right" }, {
35
- default: t(() => [
36
- e(B, {
37
- onClick: n[1] || (n[1] = (s) => a()),
38
- theme: "primary"
39
- }, {
40
- default: t(() => [
41
- p(r(o.confirmText), 1)
42
- ]),
43
- _: 1
44
- })
45
- ]),
46
- _: 1
47
- })
48
- ]),
49
- _: 1
50
- })
51
- ]),
52
- default: t(() => [
53
- e(C, null, {
54
- default: t(() => [
55
- u("div", y, r(o.content), 1)
56
- ]),
57
- _: 1
58
- })
59
- ]),
60
- _: 1
61
- })
62
- ]));
63
- }
64
- }), D = /* @__PURE__ */ T(E, [["__scopeId", "data-v-9b975218"]]);
65
- export {
66
- D as default
67
- };
@@ -1,79 +0,0 @@
1
- import { defineComponent as m, inject as u, createElementBlock as p, openBlock as P, createVNode as e, withCtx as t, createElementVNode as C, toDisplayString as a, createTextVNode as i } from "vue";
2
- import { usePopup as _, POPUP_COMPONENT_INJECTS as g } from "vue-popup-plus";
3
- import { P as x, a as N, b as T } from "./PBody-CggbeZs9.js";
4
- import { P as B } from "./PFooter-Cp_J7xg-.js";
5
- import { P as y, a as s } from "./PButtonGroup-C-RNjqPq.js";
6
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const h = { class: "p-confirm" }, v = { class: "content" }, E = /* @__PURE__ */ m({
8
- name: "PConfirm",
9
- __name: "PConfirm",
10
- props: {
11
- title: {},
12
- content: {},
13
- confirmText: {},
14
- cancelText: {},
15
- draggable: { type: Boolean }
16
- },
17
- setup(o) {
18
- const c = _(), f = u(g.INSTANCE_ID);
19
- function l(r) {
20
- c.destroy(f, r);
21
- }
22
- return (r, n) => (P(), p("div", h, [
23
- e(x, null, {
24
- header: t(() => [
25
- e(T, {
26
- draggable: o.draggable,
27
- hasCloseButton: !1,
28
- title: o.title,
29
- iconClass: "confirm"
30
- }, null, 8, ["draggable", "title"])
31
- ]),
32
- footer: t(() => [
33
- e(B, null, {
34
- default: t(() => [
35
- e(y, {
36
- align: "right",
37
- theme: "primary"
38
- }, {
39
- default: t(() => [
40
- e(s, {
41
- onClick: n[0] || (n[0] = (d) => l(!1)),
42
- type: "plain"
43
- }, {
44
- default: t(() => [
45
- i(a(o.cancelText), 1)
46
- ]),
47
- _: 1
48
- }),
49
- e(s, {
50
- onClick: n[1] || (n[1] = (d) => l(!0))
51
- }, {
52
- default: t(() => [
53
- i(a(o.confirmText), 1)
54
- ]),
55
- _: 1
56
- })
57
- ]),
58
- _: 1
59
- })
60
- ]),
61
- _: 1
62
- })
63
- ]),
64
- default: t(() => [
65
- e(N, null, {
66
- default: t(() => [
67
- C("div", v, a(o.content), 1)
68
- ]),
69
- _: 1
70
- })
71
- ]),
72
- _: 1
73
- })
74
- ]));
75
- }
76
- }), $ = /* @__PURE__ */ b(E, [["__scopeId", "data-v-e79500d9"]]);
77
- export {
78
- $ as default
79
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as p, inject as P, ref as g, computed as d, defineAsyncComponent as y, onMounted as B, createElementBlock as h, openBlock as n, normalizeClass as v, createVNode as a, createSlots as b, withCtx as t, createBlock as s, resolveDynamicComponent as k, mergeProps as N, createCommentVNode as D } from "vue";
2
- import { usePopup as I, POPUP_COMPONENT_INJECTS as S } from "vue-popup-plus";
3
- import { P as x, a as E, b as M, c as $ } from "./PBody-CggbeZs9.js";
4
- import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const T = /* @__PURE__ */ p({
6
- name: "PDialog",
7
- __name: "PDialog",
8
- props: {
9
- id: {},
10
- title: {},
11
- customComponent: {},
12
- customComponentProps: {},
13
- header: { type: Boolean },
14
- headerCloseButton: { type: Boolean },
15
- draggable: { type: Boolean },
16
- debugMode: { type: Boolean }
17
- },
18
- setup(e) {
19
- const m = I(), u = P(S.INSTANCE_ID), l = g(1), r = d(
20
- () => `${e.id}-${l.value}`
21
- ), c = d(() => typeof e.customComponent == "function" ? y(e.customComponent) : e.customComponent);
22
- B(() => {
23
- });
24
- function i() {
25
- l.value++;
26
- }
27
- function C() {
28
- m.destroy(u);
29
- }
30
- return (w, o) => (n(), h("div", {
31
- class: v(["p-dialog", { "no-header": !e.header }])
32
- }, [
33
- a(x, null, b({
34
- default: t(() => [
35
- a(E, { withPadding: !1 }, {
36
- default: t(() => [
37
- (n(), s(k(c.value), N({ key: r.value }, e.customComponentProps), null, 16))
38
- ]),
39
- _: 1
40
- })
41
- ]),
42
- _: 2
43
- }, [
44
- e.header ? {
45
- name: "header",
46
- fn: t(() => [
47
- a(M, {
48
- draggable: e.draggable,
49
- hasCloseButton: e.headerCloseButton,
50
- title: e.title,
51
- onClose: o[1] || (o[1] = (f) => C())
52
- }, {
53
- buttons: t(() => [
54
- e.debugMode ? (n(), s($, {
55
- key: 0,
56
- onClick: o[0] || (o[0] = (f) => i()),
57
- iconClass: "reload",
58
- theme: "success"
59
- })) : D("", !0)
60
- ]),
61
- _: 1
62
- }, 8, ["draggable", "hasCloseButton", "title"])
63
- ]),
64
- key: "0"
65
- } : void 0
66
- ]), 1024)
67
- ], 2));
68
- }
69
- }), j = /* @__PURE__ */ O(T, [["__scopeId", "data-v-574a655b"]]);
70
- export {
71
- j as default
72
- };