@qynpm/ui 1.0.6 → 1.0.8

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.
Files changed (85) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.mjs +21 -54
  3. package/dist/qy-action-bar/index.cjs +1 -1
  4. package/dist/qy-action-bar/index.mjs +2 -4
  5. package/dist/qy-date-picker/index.cjs +1 -0
  6. package/dist/qy-date-picker/index.mjs +4 -0
  7. package/dist/qy-dialog/index.cjs +1 -1
  8. package/dist/qy-dialog/index.mjs +2 -4
  9. package/dist/qy-form-section/index.cjs +1 -1
  10. package/dist/qy-form-section/index.mjs +2 -4
  11. package/dist/qy-input/index.cjs +1 -1
  12. package/dist/qy-input/index.mjs +2 -4
  13. package/dist/qy-input-number/index.cjs +1 -0
  14. package/dist/qy-input-number/index.mjs +4 -0
  15. package/dist/qy-money-input/index.cjs +1 -1
  16. package/dist/qy-money-input/index.mjs +2 -4
  17. package/dist/qy-radio-group/index.cjs +1 -1
  18. package/dist/qy-radio-group/index.mjs +2 -4
  19. package/dist/qy-record-quote-search/index.cjs +1 -1
  20. package/dist/qy-record-quote-search/index.mjs +2 -4
  21. package/dist/qy-remark-image/index.cjs +1 -1
  22. package/dist/qy-remark-image/index.mjs +2 -4
  23. package/dist/qy-remote-select/index.cjs +1 -1
  24. package/dist/qy-remote-select/index.mjs +2 -4
  25. package/dist/qy-search-input/index.cjs +1 -1
  26. package/dist/qy-search-input/index.mjs +2 -4
  27. package/dist/qy-select/index.cjs +1 -1
  28. package/dist/qy-select/index.mjs +2 -4
  29. package/dist/qy-upload/index.cjs +1 -1
  30. package/dist/qy-upload/index.mjs +2 -4
  31. package/dist/qy-voucher-upload/index.cjs +1 -1
  32. package/dist/qy-voucher-upload/index.mjs +2 -4
  33. package/dist/shared/index-C5EAafC0.cjs +1 -0
  34. package/dist/shared/index-DB0Fuuxi.mjs +2784 -0
  35. package/index.d.ts +20 -16
  36. package/package.json +13 -1
  37. package/qy-action-bar/index.js +1 -4
  38. package/qy-date-picker/index.d.ts +5 -0
  39. package/qy-date-picker/index.js +1 -0
  40. package/qy-dialog/index.js +1 -4
  41. package/qy-form-section/index.js +1 -4
  42. package/qy-input/index.js +1 -4
  43. package/qy-input-number/index.d.ts +5 -0
  44. package/qy-input-number/index.js +1 -0
  45. package/qy-money-input/index.js +1 -15
  46. package/qy-radio-group/index.js +1 -15
  47. package/qy-record-quote-search/index.js +1 -4
  48. package/qy-remark-image/index.js +1 -4
  49. package/qy-remote-select/index.js +1 -15
  50. package/qy-search-input/index.js +1 -4
  51. package/qy-select/index.js +1 -4
  52. package/qy-upload/index.js +1 -4
  53. package/qy-voucher-upload/index.js +1 -15
  54. package/dist/shared/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  55. package/dist/shared/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
  56. package/dist/shared/index-Bw9kVFsm.mjs +0 -56
  57. package/dist/shared/index-BzV4959-.mjs +0 -205
  58. package/dist/shared/index-C0ADdL4S.mjs +0 -88
  59. package/dist/shared/index-CBSjmD0C.mjs +0 -217
  60. package/dist/shared/index-CJb1S7CP.cjs +0 -1
  61. package/dist/shared/index-CO8lz02r.cjs +0 -1
  62. package/dist/shared/index-ClPxDFKd.cjs +0 -1
  63. package/dist/shared/index-CtOqRiaj.cjs +0 -1
  64. package/dist/shared/index-DXB7_Tb5.cjs +0 -1
  65. package/dist/shared/index-DeWkPj3O.mjs +0 -484
  66. package/dist/shared/index-PUYQxK94.mjs +0 -123
  67. package/dist/shared/index-UzZbxoqZ.cjs +0 -1
  68. package/dist/shared/index-a90QeEC4.cjs +0 -1
  69. package/dist/shared/index-wW02nNOp.mjs +0 -277
  70. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BcZg8D-y.mjs +0 -214
  71. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BmeBeCu0.mjs +0 -162
  72. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C85575cL.cjs +0 -1
  73. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DkYwdYdF.mjs +0 -90
  74. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Do5SZ8yS.cjs +0 -1
  75. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DpZzyX5f.cjs +0 -1
  76. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DuUkOqwY.cjs +0 -1
  77. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dvh1BFaR.mjs +0 -143
  78. package/dist/shared/index.vue_vue_type_script_setup_true_lang-RtfqJ73A.mjs +0 -171
  79. package/dist/shared/index.vue_vue_type_script_setup_true_lang-VVjCLNMD.cjs +0 -1
  80. package/dist/shared/index.vue_vue_type_style_index_0_lang-DpIL_6vO.mjs +0 -325
  81. package/dist/shared/index.vue_vue_type_style_index_0_lang-haqCjB5x.cjs +0 -1
  82. package/dist/shared/install-CxBnxbuN.mjs +0 -8
  83. package/dist/shared/install-c8il9DQv.cjs +0 -1
  84. package/dist/shared/js.cookie-CojEIxHg.cjs +0 -1
  85. package/dist/shared/js.cookie-OLEfuq_g.mjs +0 -74
@@ -1,325 +0,0 @@
1
- import { ElDialog as ae, ElIcon as se } from "element-plus/es";
2
- import { defineComponent as re, mergeModels as W, useSlots as de, ref as d, computed as C, createVNode as v, useModel as ue, watchEffect as ce, useAttrs as me, h as Y, unref as s, onMounted as fe, nextTick as ge, onUnmounted as ye, resolveComponent as pe, createElementBlock as i, openBlock as n, withDirectives as ve, mergeProps as we, createSlots as he, withCtx as w, createElementVNode as t, normalizeStyle as E, normalizeClass as Z, createCommentVNode as u, renderSlot as h, toDisplayString as G, withModifiers as a, createBlock as J, vShow as xe } from "vue";
3
- import _e from "clsx";
4
- import { ElButton as K } from "element-plus";
5
- import { useBreakpoints as be, useDraggable as ke } from "@vueuse/core";
6
- const ze = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, Ce = { key: 0 }, qe = { key: 1 }, Me = {
7
- key: 0,
8
- class: "icon-[material-symbols--square-outline-rounded]",
9
- role: "img",
10
- "aria-hidden": "true"
11
- }, Se = {
12
- key: 1,
13
- class: "icon-[tdesign--fullscreen-exit-1]",
14
- role: "img",
15
- "aria-hidden": "true"
16
- }, Ie = {
17
- key: 0,
18
- class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
19
- }, Be = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, De = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, $e = { class: "flex items-center gap-2" }, Ee = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, Ze = { class: "flex items-center gap-2" }, Q = 5, A = 2e3, Fe = /* @__PURE__ */ re({
20
- __name: "index",
21
- props: /* @__PURE__ */ W({
22
- layout: { type: [Array, String, Boolean], default: () => ["confirm", "cancel"] },
23
- fullscreen: { type: Boolean, default: !1 },
24
- showFullscreen: { type: Boolean, default: !1 },
25
- confirmProps: { default: () => ({}) },
26
- size: { default: "default" },
27
- zIndex: { default: 2e3 }
28
- }, {
29
- modelValue: { default: !0 },
30
- modelModifiers: {}
31
- }),
32
- emits: /* @__PURE__ */ W(["confirm", "cancel", "close", "opened", "ok"], ["update:modelValue"]),
33
- setup(H, { expose: ee, emit: oe }) {
34
- const l = H, q = de(), L = d(!0), M = d(!1), O = d(A), te = be({
35
- mobile: 0,
36
- tablet: 640,
37
- laptop: 1024,
38
- desktop: 1280
39
- }).isSmaller("tablet"), S = C(() => {
40
- if (Array.isArray(l.layout)) return l.layout;
41
- if (typeof l.layout == "string")
42
- return l.layout.split(",").map((o) => o.trim());
43
- }), V = C(() => ({
44
- CancelButton: v(R),
45
- ConfirmButton: v(P)
46
- })), j = C(() => q.footer || l.layout !== !1), I = d(!1), g = d(
47
- l.showFullscreen && te ? !0 : l.fullscreen
48
- ), y = oe, B = ue(H, "modelValue");
49
- ce(() => {
50
- B.value && (I.value = !1);
51
- }), ee({});
52
- const D = me(), c = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, m = d(!1), x = d(null);
53
- window.minimizedCount || (window.minimizedCount = 0);
54
- const { x: N, y: $ } = ke(x, {
55
- initialValue: {
56
- x: 5,
57
- y: window.innerHeight - 100 - (window.minimizedCount || 0) * 60
58
- },
59
- onMove(o) {
60
- var e;
61
- (e = x.value) == null || e.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), N.value = Math.max(
62
- 0,
63
- Math.min(window.innerWidth - 300, o.x)
64
- ), $.value = Math.max(
65
- 0,
66
- Math.min(window.innerHeight - 50, o.y)
67
- );
68
- },
69
- onEnd() {
70
- var o;
71
- (o = x.value) == null || o.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
72
- }
73
- }), le = C(() => ({
74
- transform: `translate(${N.value}px, ${$.value}px)`,
75
- willChange: "transform"
76
- }));
77
- function F(o) {
78
- const e = o.target, { scrollTop: r, scrollHeight: f, clientHeight: b } = e;
79
- L.value = r <= Q, M.value = f - (r + b) <= Q;
80
- }
81
- function ne() {
82
- document.querySelector(`.${c}.el-dialog`).addEventListener("scroll", F), _(), y("opened");
83
- }
84
- function T() {
85
- g.value = !g.value, _();
86
- }
87
- function p() {
88
- I.value || (I.value = !0, m.value = !1, B.value = !1, y("cancel"), y("close"));
89
- }
90
- function ie(o) {
91
- l.showFullscreen && o.detail >= 2 && T();
92
- }
93
- function P() {
94
- return Y(
95
- K,
96
- {
97
- ...s(l.confirmProps),
98
- type: "primary",
99
- class: "dialog__footerBtn",
100
- onClick: () => {
101
- y("confirm"), y("ok");
102
- }
103
- },
104
- () => s(l.confirmProps).title || "确 认"
105
- );
106
- }
107
- function R() {
108
- return Y(
109
- K,
110
- { class: "dialog__footerBtn", onClick: () => p() },
111
- () => "取 消"
112
- );
113
- }
114
- fe(() => {
115
- typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = A), _();
116
- });
117
- function _() {
118
- var X;
119
- const o = Array.from(
120
- document.querySelectorAll(".el-overlay")
121
- ).filter((z) => window.getComputedStyle(z).display !== "none" && !z.classList.contains("is-message")), e = (X = document.querySelector(`.${c}`)) == null ? void 0 : X.closest(".el-overlay"), r = document.querySelector(
122
- `.${c}.el-dialog`
123
- );
124
- if (!e || !r) return;
125
- const f = A;
126
- window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || f;
127
- const k = Math.max(
128
- window.qyDialogMaxZIndex,
129
- ...o.map(
130
- (z) => parseInt(window.getComputedStyle(z).zIndex || f.toString())
131
- )
132
- ) + 2;
133
- window.qyDialogMaxZIndex = k, ge(() => {
134
- e.style.zIndex = k.toString(), r.style.zIndex = (k + 1).toString(), O.value = k + 1;
135
- });
136
- }
137
- ye(() => {
138
- const o = document.querySelector(
139
- `.${c} .qy-dialog__wrapper-container`
140
- );
141
- o && o.removeEventListener("scroll", F), m.value && window.minimizedCount--;
142
- });
143
- function U() {
144
- var e;
145
- m.value = !m.value;
146
- const o = (e = document.querySelector(`.${c}`)) == null ? void 0 : e.closest(".el-overlay");
147
- m.value ? (o.style.display = "none", window.minimizedCount++, $.value = window.innerHeight - 50 - (window.minimizedCount || 0) * 60) : (o.style.display = "block", window.minimizedCount--, _());
148
- }
149
- return (o, e) => {
150
- const r = pe("Close"), f = se, b = ae;
151
- return n(), i("div", null, [
152
- v(b, we({
153
- ref: "dialogRef",
154
- class: ["qy-dialog", [
155
- l.size === "small" && "[&_.el-dialog__header]:!hidden",
156
- c
157
- ]],
158
- "model-value": B.value,
159
- "align-center": "",
160
- "append-to-body": "",
161
- style: {
162
- "--el-dialog-padding-primary": 0
163
- },
164
- "show-close": !1,
165
- fullscreen: g.value,
166
- "z-index": O.value,
167
- onClosed: p,
168
- onOpened: ne,
169
- draggable: ""
170
- }, s(D)), he({
171
- header: w(() => [
172
- l.size === "default" ? (n(), i("div", {
173
- key: 0,
174
- style: E({
175
- borderBottom: "1px solid",
176
- borderColor: L.value ? "transparent" : "var(--block-outline-color)",
177
- transition: "border-color .2s linear"
178
- }),
179
- class: "flex justify-between h-[var(--header-height)]",
180
- onDblclick: ie
181
- }, [
182
- t("div", ze, [
183
- s(q).header ? s(q).header ? (n(), i("div", qe, [
184
- h(o.$slots, "header")
185
- ])) : u("", !0) : (n(), i("span", Ce, G(s(D).title), 1))
186
- ]),
187
- t("div", {
188
- class: "flex",
189
- onMousedown: e[3] || (e[3] = a(() => {
190
- }, ["stop"]))
191
- }, [
192
- l.size === "default" ? (n(), i("div", {
193
- key: 0,
194
- class: "qy-dialog__btn qy-dialog__btn--default",
195
- onClick: a(U, ["stop"]),
196
- onMousedown: e[0] || (e[0] = a(() => {
197
- }, ["stop"]))
198
- }, e[4] || (e[4] = [
199
- t("span", {
200
- class: "icon-[material-symbols--minimize] text-xl mb-3",
201
- role: "img",
202
- "aria-hidden": "true"
203
- }, null, -1)
204
- ]), 32)) : u("", !0),
205
- l.showFullscreen ? (n(), i("div", {
206
- key: 1,
207
- class: "qy-dialog__btn qy-dialog__btn--default",
208
- onClick: a(T, ["stop"]),
209
- onMousedown: e[1] || (e[1] = a(() => {
210
- }, ["stop"]))
211
- }, [
212
- g.value ? (n(), i("span", Se)) : (n(), i("span", Me))
213
- ], 32)) : u("", !0),
214
- t("div", {
215
- class: "qy-dialog__btn qy-dialog__btn--danger",
216
- onClick: a(p, ["stop"]),
217
- onMousedown: e[2] || (e[2] = a(() => {
218
- }, ["stop"]))
219
- }, e[5] || (e[5] = [
220
- t("span", {
221
- class: "icon-[ri--close-line] text-xl",
222
- role: "img",
223
- "aria-hidden": "true"
224
- }, null, -1)
225
- ]), 32)
226
- ], 32)
227
- ], 36)) : u("", !0)
228
- ]),
229
- default: w(() => [
230
- t("div", {
231
- class: Z(["qy-dialog__wrapper", s(_e)(g.value && "qy-dialog__wrapper--fullscreen")]),
232
- style: E({
233
- maxHeight: j.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
234
- padding: l.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
235
- })
236
- }, [
237
- l.size === "small" ? (n(), i("div", Ie, [
238
- v(f, {
239
- size: 36,
240
- class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
241
- onClick: p
242
- }, {
243
- default: w(() => [
244
- v(r)
245
- ]),
246
- _: 1
247
- })
248
- ])) : u("", !0),
249
- h(o.$slots, "default")
250
- ], 6)
251
- ]),
252
- _: 2
253
- }, [
254
- !o.$slots.footer && Array.isArray(S.value) ? {
255
- name: "footer",
256
- fn: w(() => [
257
- t("div", Be, [
258
- t("div", null, [
259
- h(o.$slots, "footer-left")
260
- ]),
261
- t("div", {
262
- class: Z([{
263
- "qy-dialog__footer--outline": M.value
264
- }, "qy-dialog__footer flex items-center justify-end"])
265
- }, [
266
- S.value.includes("cancel") ? (n(), J(R, { key: 0 })) : u("", !0),
267
- S.value.includes("confirm") ? (n(), J(P, { key: 1 })) : u("", !0),
268
- h(o.$slots, "footer-append")
269
- ], 2)
270
- ])
271
- ]),
272
- key: "0"
273
- } : j.value ? {
274
- name: "footer",
275
- fn: w(() => [
276
- t("div", {
277
- class: Z([{
278
- "qy-dialog__footer--outline": M.value
279
- }, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
280
- }, [
281
- h(o.$slots, "footer", {
282
- layouts: V.value,
283
- layoutsNode: Object.values(V.value)
284
- })
285
- ], 2)
286
- ]),
287
- key: "1"
288
- } : void 0
289
- ]), 1040, ["class", "model-value", "fullscreen", "z-index"]),
290
- ve(t("div", {
291
- ref_key: "minimizedRef",
292
- ref: x,
293
- class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
294
- style: E([le.value, { width: "300px", height: "50px", "will-change": "transform" }])
295
- }, [
296
- t("div", De, [
297
- t("div", $e, [
298
- e[6] || (e[6] = t("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
299
- t("span", Ee, G(s(D).title), 1)
300
- ]),
301
- t("div", Ze, [
302
- t("div", {
303
- class: "p-1 hover:bg-gray-200 rounded",
304
- onClick: a(U, ["stop"])
305
- }, e[7] || (e[7] = [
306
- t("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
307
- ])),
308
- t("div", {
309
- class: "p-1 hover:bg-red-100 rounded",
310
- onClick: a(p, ["stop"])
311
- }, e[8] || (e[8] = [
312
- t("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
313
- ]))
314
- ])
315
- ])
316
- ], 4), [
317
- [xe, m.value]
318
- ])
319
- ]);
320
- };
321
- }
322
- });
323
- export {
324
- Fe as _
325
- };
@@ -1 +0,0 @@
1
- "use strict";const Z=require("element-plus/es"),e=require("vue"),U=require("clsx"),A=require("element-plus"),H=require("@vueuse/core"),X={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},W={key:0},Y={key:1},G={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},J={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},K={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},Q={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},ee={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},te={class:"flex items-center gap-2"},oe={class:"text-sm text-gray-700 truncate max-w-[200px]"},le={class:"flex items-center gap-2"},L=5,C=2e3,ne=e.defineComponent({__name:"index",props:e.mergeModels({layout:{type:[Array,String,Boolean],default:()=>["confirm","cancel"]},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},confirmProps:{default:()=>({})},size:{default:"default"},zIndex:{default:2e3}},{modelValue:{default:!0},modelModifiers:{}}),emits:e.mergeModels(["confirm","cancel","close","opened","ok"],["update:modelValue"]),setup(E,{expose:O,emit:j}){const l=E,y=e.useSlots(),M=e.ref(!0),v=e.ref(!1),z=e.ref(C),F=H.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),w=e.computed(()=>{if(Array.isArray(l.layout))return l.layout;if(typeof l.layout=="string")return l.layout.split(",").map(o=>o.trim())}),B=e.computed(()=>({CancelButton:e.createVNode(I),ConfirmButton:e.createVNode(S)})),b=e.computed(()=>y.footer||l.layout!==!1),h=e.ref(!1),s=e.ref(l.showFullscreen&&F?!0:l.fullscreen),d=j,x=e.useModel(E,"modelValue");e.watchEffect(()=>{x.value&&(h.value=!1)}),O({});const k=e.useAttrs(),i=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,a=e.ref(!1),u=e.ref(null);window.minimizedCount||(window.minimizedCount=0);const{x:V,y:_}=H.useDraggable(u,{initialValue:{x:5,y:window.innerHeight-100-(window.minimizedCount||0)*60},onMove(o){var t;(t=u.value)==null||t.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),V.value=Math.max(0,Math.min(window.innerWidth-300,o.x)),_.value=Math.max(0,Math.min(window.innerHeight-50,o.y))},onEnd(){var o;(o=u.value)==null||o.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),P=e.computed(()=>({transform:`translate(${V.value}px, ${_.value}px)`,willChange:"transform"}));function q(o){const t=o.target,{scrollTop:n,scrollHeight:r,clientHeight:f}=t;M.value=n<=L,v.value=r-(n+f)<=L}function T(){document.querySelector(`.${i}.el-dialog`).addEventListener("scroll",q),m(),d("opened")}function N(){s.value=!s.value,m()}function c(){h.value||(h.value=!0,a.value=!1,x.value=!1,d("cancel"),d("close"))}function R(o){l.showFullscreen&&o.detail>=2&&N()}function S(){return e.h(A.ElButton,{...e.unref(l.confirmProps),type:"primary",class:"dialog__footerBtn",onClick:()=>{d("confirm"),d("ok")}},()=>e.unref(l.confirmProps).title||"确 认")}function I(){return e.h(A.ElButton,{class:"dialog__footerBtn",onClick:()=>c()},()=>"取 消")}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=C),m()});function m(){var $;const o=Array.from(document.querySelectorAll(".el-overlay")).filter(p=>window.getComputedStyle(p).display!=="none"&&!p.classList.contains("is-message")),t=($=document.querySelector(`.${i}`))==null?void 0:$.closest(".el-overlay"),n=document.querySelector(`.${i}.el-dialog`);if(!t||!n)return;const r=C;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||r;const g=Math.max(window.qyDialogMaxZIndex,...o.map(p=>parseInt(window.getComputedStyle(p).zIndex||r.toString())))+2;window.qyDialogMaxZIndex=g,e.nextTick(()=>{t.style.zIndex=g.toString(),n.style.zIndex=(g+1).toString(),z.value=g+1})}e.onUnmounted(()=>{const o=document.querySelector(`.${i} .qy-dialog__wrapper-container`);o&&o.removeEventListener("scroll",q),a.value&&window.minimizedCount--});function D(){var t;a.value=!a.value;const o=(t=document.querySelector(`.${i}`))==null?void 0:t.closest(".el-overlay");a.value?(o.style.display="none",window.minimizedCount++,_.value=window.innerHeight-50-(window.minimizedCount||0)*60):(o.style.display="block",window.minimizedCount--,m())}return(o,t)=>{const n=e.resolveComponent("Close"),r=Z.ElIcon,f=Z.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(f,e.mergeProps({ref:"dialogRef",class:["qy-dialog",[l.size==="small"&&"[&_.el-dialog__header]:!hidden",i]],"model-value":x.value,"align-center":"","append-to-body":"",style:{"--el-dialog-padding-primary":0},"show-close":!1,fullscreen:s.value,"z-index":z.value,onClosed:c,onOpened:T,draggable:""},e.unref(k)),e.createSlots({header:e.withCtx(()=>[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:M.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:R},[e.createElementVNode("div",X,[e.unref(y).header?e.unref(y).header?(e.openBlock(),e.createElementBlock("div",Y,[e.renderSlot(o.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(e.unref(k).title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:t[3]||(t[3]=e.withModifiers(()=>{},["stop"]))},[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(D,["stop"]),onMousedown:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},t[4]||(t[4]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)]),32)):e.createCommentVNode("",!0),l.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(N,["stop"]),onMousedown:t[1]||(t[1]=e.withModifiers(()=>{},["stop"]))},[s.value?(e.openBlock(),e.createElementBlock("span",J)):(e.openBlock(),e.createElementBlock("span",G))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:e.withModifiers(c,["stop"]),onMousedown:t[2]||(t[2]=e.withModifiers(()=>{},["stop"]))},t[5]||(t[5]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)]),32)],32)],36)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(U)(s.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:b.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:l.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[l.size==="small"?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(r,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:c},{default:e.withCtx(()=>[e.createVNode(n)]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")],6)]),_:2},[!o.$slots.footer&&Array.isArray(w.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Q,[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":v.value},"qy-dialog__footer flex items-center justify-end"])},[w.value.includes("cancel")?(e.openBlock(),e.createBlock(I,{key:0})):e.createCommentVNode("",!0),w.value.includes("confirm")?(e.openBlock(),e.createBlock(S,{key:1})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"footer-append")],2)])]),key:"0"}:b.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":v.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(o.$slots,"footer",{layouts:B.value,layoutsNode:Object.values(B.value)})],2)]),key:"1"}:void 0]),1040,["class","model-value","fullscreen","z-index"]),e.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:u,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([P.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[t[6]||(t[6]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",oe,e.toDisplayString(e.unref(k).title),1)]),e.createElementVNode("div",le,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(D,["stop"])},t[7]||(t[7]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:e.withModifiers(c,["stop"])},t[8]||(t[8]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)]))])])],4),[[e.vShow,a.value]])])}}});exports._sfc_main=ne;
@@ -1,8 +0,0 @@
1
- function a(r, i = r == null ? void 0 : r.name) {
2
- return i && (r.install = (l) => {
3
- l.component(i, r);
4
- }), r;
5
- }
6
- export {
7
- a as w
8
- };
@@ -1 +0,0 @@
1
- "use strict";function s(i,l=i==null?void 0:i.name){return l&&(i.install=r=>{r.component(l,i)}),i}exports.withInstall=s;
@@ -1 +0,0 @@
1
- "use strict";/*! js-cookie v3.0.5 | MIT */function d(r){for(var c=1;c<arguments.length;c++){var f=arguments[c];for(var p in f)r[p]=f[p]}return r}var g={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function s(r,c){function f(n,t,e){if(!(typeof document>"u")){e=d({},c,e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires&&(e.expires=e.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in e)e[i]&&(o+="; "+i,e[i]!==!0&&(o+="="+e[i].split(";")[0]));return document.cookie=n+"="+r.write(t,n)+o}}function p(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var t=document.cookie?document.cookie.split("; "):[],e={},o=0;o<t.length;o++){var i=t[o].split("="),v=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(e[u]=r.read(v,u),n===u)break}catch{}}return n?e[n]:e}}return Object.create({set:f,get:p,remove:function(n,t){f(n,"",d({},t,{expires:-1}))},withAttributes:function(n){return s(this.converter,d({},this.attributes,n))},withConverter:function(n){return s(d({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(c)},converter:{value:Object.freeze(r)}})}var C=s(g,{path:"/"});exports.api=C;
@@ -1,74 +0,0 @@
1
- /*! js-cookie v3.0.5 | MIT */
2
- function d(r) {
3
- for (var c = 1; c < arguments.length; c++) {
4
- var f = arguments[c];
5
- for (var p in f)
6
- r[p] = f[p];
7
- }
8
- return r;
9
- }
10
- var g = {
11
- read: function(r) {
12
- return r[0] === '"' && (r = r.slice(1, -1)), r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
13
- },
14
- write: function(r) {
15
- return encodeURIComponent(r).replace(
16
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
17
- decodeURIComponent
18
- );
19
- }
20
- };
21
- function s(r, c) {
22
- function f(n, t, e) {
23
- if (!(typeof document > "u")) {
24
- e = d({}, c, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires && (e.expires = e.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
25
- var o = "";
26
- for (var i in e)
27
- e[i] && (o += "; " + i, e[i] !== !0 && (o += "=" + e[i].split(";")[0]));
28
- return document.cookie = n + "=" + r.write(t, n) + o;
29
- }
30
- }
31
- function p(n) {
32
- if (!(typeof document > "u" || arguments.length && !n)) {
33
- for (var t = document.cookie ? document.cookie.split("; ") : [], e = {}, o = 0; o < t.length; o++) {
34
- var i = t[o].split("="), v = i.slice(1).join("=");
35
- try {
36
- var u = decodeURIComponent(i[0]);
37
- if (e[u] = r.read(v, u), n === u)
38
- break;
39
- } catch {
40
- }
41
- }
42
- return n ? e[n] : e;
43
- }
44
- }
45
- return Object.create(
46
- {
47
- set: f,
48
- get: p,
49
- remove: function(n, t) {
50
- f(
51
- n,
52
- "",
53
- d({}, t, {
54
- expires: -1
55
- })
56
- );
57
- },
58
- withAttributes: function(n) {
59
- return s(this.converter, d({}, this.attributes, n));
60
- },
61
- withConverter: function(n) {
62
- return s(d({}, this.converter, n), this.attributes);
63
- }
64
- },
65
- {
66
- attributes: { value: Object.freeze(c) },
67
- converter: { value: Object.freeze(r) }
68
- }
69
- );
70
- }
71
- var a = s(g, { path: "/" });
72
- export {
73
- a
74
- };