@fewangsit/wangsvue-fats 1.0.1-alpha.17 → 1.0.1-alpha.19

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
- import { defineComponent as f, inject as u, createBlock as m, openBlock as $, unref as s, mergeProps as y, createSlots as v, withCtx as t, renderSlot as l } from "vue";
2
- import { s as B } from "../vendor/primevue/dialog/dialog.esm.es.js";
3
- const g = /* @__PURE__ */ f({
1
+ import { defineComponent as u, inject as m, createBlock as $, openBlock as y, unref as s, mergeProps as v, createSlots as B, withCtx as t, renderSlot as l } from "vue";
2
+ import { s as g } from "../vendor/primevue/dialog/dialog.esm.es.js";
3
+ const A = /* @__PURE__ */ u({
4
4
  __name: "Dialog",
5
5
  props: {
6
6
  header: { default: void 0 },
@@ -39,14 +39,18 @@ const g = /* @__PURE__ */ f({
39
39
  },
40
40
  emits: ["update:visible", "hide", "afterHide", "show", "maximize", "unmaximize", "dragend"],
41
41
  setup(C) {
42
- const i = u("preset", {}).dialog;
42
+ const i = m("preset", {}).dialog, f = () => {
43
+ setTimeout(() => {
44
+ document.querySelectorAll('[data-pc-name="dialog"]').length && document.body.classList.add("p-overflow-hidden");
45
+ }, 10);
46
+ };
43
47
  return (e, o) => {
44
- var r, n, d, p;
45
- return $(), m(s(B), y(e.$props, {
48
+ var d, n, r, p;
49
+ return y(), $(s(g), v(e.$props, {
46
50
  pt: {
47
51
  root: {
48
52
  class: [
49
- ...(r = s(i)) == null ? void 0 : r.root({ state: {} }).class,
53
+ ...(d = s(i)) == null ? void 0 : d.root({ state: {} }).class,
50
54
  ...Array.isArray(e.$props.class) ? e.$props.class : [e.$props.class]
51
55
  ]
52
56
  },
@@ -59,7 +63,7 @@ const g = /* @__PURE__ */ f({
59
63
  },
60
64
  content: {
61
65
  class: [
62
- ...(d = s(i)) == null ? void 0 : d.content({ state: {}, instance: {} }).class,
66
+ ...(r = s(i)) == null ? void 0 : r.content({ state: {}, instance: {} }).class,
63
67
  ...Array.isArray(e.$props.contentClass) ? e.$props.contentClass : [e.$props.contentClass]
64
68
  ]
65
69
  },
@@ -71,14 +75,16 @@ const g = /* @__PURE__ */ f({
71
75
  },
72
76
  ...e.$props.pt
73
77
  },
74
- onAfterHide: o[0] || (o[0] = (a) => e.$emit("afterHide")),
78
+ onAfterHide: o[0] || (o[0] = (a) => {
79
+ e.$emit("afterHide"), f();
80
+ }),
75
81
  onDragend: o[1] || (o[1] = (a) => e.$emit("dragend", a)),
76
82
  onHide: o[2] || (o[2] = (a) => e.$emit("hide")),
77
83
  onMaximize: o[3] || (o[3] = (a) => e.$emit("maximize", a)),
78
84
  onShow: o[4] || (o[4] = (a) => e.$emit("show")),
79
85
  onUnmaximize: o[5] || (o[5] = (a) => e.$emit("unmaximize", a)),
80
86
  "onUpdate:visible": o[6] || (o[6] = (a) => e.$emit("update:visible", a))
81
- }), v({
87
+ }), B({
82
88
  default: t(() => [
83
89
  l(e.$slots, "default")
84
90
  ]),
@@ -117,5 +123,5 @@ const g = /* @__PURE__ */ f({
117
123
  }
118
124
  });
119
125
  export {
120
- g as _
126
+ A as _
121
127
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.1-alpha.17",
3
+ "version": "1.0.1-alpha.19",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",
@@ -16,7 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@wangs-ui/core": "latest",
19
- "@wangs-ui/vue": "latest"
19
+ "@wangs-ui/vue": "latest",
20
+ "xlsx": "npm:@e965/xlsx@0.20.3"
20
21
  },
21
22
  "sideEffects": false
22
23
  }