@fiscozen/dialog 0.1.0
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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/dialog.js +241 -0
- package/dist/dialog.umd.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/FzDialog.vue.d.ts +46 -0
- package/dist/src/FzSimpleDialog.vue.d.ts +38 -0
- package/dist/src/__test__/FzDialog.test.d.ts +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/types.d.ts +27 -0
- package/dist/style.css +1 -0
- package/package.json +44 -0
- package/src/FzConfirmDialog.vue +83 -0
- package/src/FzDialog.vue +168 -0
- package/src/__test__/FzDialog.test.ts +66 -0
- package/src/__test__/__snapshots__/FzDialog.test.ts.snap +187 -0
- package/src/index.ts +3 -0
- package/src/types.ts +28 -0
- package/tsconfig.json +4 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +33 -0
- package/vitest.config.ts +19 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Fiscozen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @fiscozen/dialog
|
package/dist/dialog.js
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { defineComponent as B, ref as u, onMounted as $, onUnmounted as F, computed as k, openBlock as L, createElementBlock as S, normalizeClass as x, createElementVNode as o, renderSlot as v, createBlock as M, mergeProps as E, withCtx as m, toDisplayString as g, createVNode as b, unref as _, withModifiers as C, createTextVNode as D } from "vue";
|
|
2
|
+
import { FzIconButton as N, FzButton as y } from "@fiscozen/button";
|
|
3
|
+
const V = { class: "flex items-center p-12 w-full border-b-1 border-grey-100" }, I = { class: "grow" }, X = { class: "flex flex-row p-12 border-t-1 border-grey-100 items-center" }, Y = /* @__PURE__ */ B({
|
|
4
|
+
__name: "FzDialog",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: "md" },
|
|
7
|
+
title: {},
|
|
8
|
+
confirmLabel: {},
|
|
9
|
+
cancelLabel: {},
|
|
10
|
+
text: {},
|
|
11
|
+
isDrawer: { type: Boolean }
|
|
12
|
+
},
|
|
13
|
+
emits: ["confirm", "cancel"],
|
|
14
|
+
setup(d, { expose: f, emit: z }) {
|
|
15
|
+
const a = d, r = u(), l = u(!1);
|
|
16
|
+
f({
|
|
17
|
+
show: () => {
|
|
18
|
+
var e;
|
|
19
|
+
(e = r.value) == null || e.showModal(), l.value = !0;
|
|
20
|
+
},
|
|
21
|
+
close: (e) => {
|
|
22
|
+
var s;
|
|
23
|
+
return (s = r.value) == null ? void 0 : s.close(e);
|
|
24
|
+
},
|
|
25
|
+
visible: l
|
|
26
|
+
});
|
|
27
|
+
const i = (e) => {
|
|
28
|
+
if (r.value) {
|
|
29
|
+
var s = r.value.getBoundingClientRect(), n = s.top <= e.clientY && e.clientY <= s.top + s.height && s.left <= e.clientX && e.clientX <= s.left + s.width;
|
|
30
|
+
n || r.value.close();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
$(() => {
|
|
34
|
+
var e;
|
|
35
|
+
(e = r.value) == null || e.addEventListener("click", i);
|
|
36
|
+
}), F(() => {
|
|
37
|
+
var e;
|
|
38
|
+
(e = r.value) == null || e.removeEventListener("click", i);
|
|
39
|
+
});
|
|
40
|
+
const h = [
|
|
41
|
+
"flex",
|
|
42
|
+
"flex-col",
|
|
43
|
+
"border-1",
|
|
44
|
+
"rounded",
|
|
45
|
+
"bg-core-white"
|
|
46
|
+
], p = k(() => {
|
|
47
|
+
let e = {};
|
|
48
|
+
if (a.isDrawer)
|
|
49
|
+
return e = {
|
|
50
|
+
"m-0": !0,
|
|
51
|
+
fixed: !0,
|
|
52
|
+
"top-0": !0,
|
|
53
|
+
"ml-auto": !0,
|
|
54
|
+
"max-h-screen": !0
|
|
55
|
+
}, e;
|
|
56
|
+
switch (a.size) {
|
|
57
|
+
case "sm":
|
|
58
|
+
e = {};
|
|
59
|
+
break;
|
|
60
|
+
case "md":
|
|
61
|
+
e = {
|
|
62
|
+
"xs:max-sm:m-0": !0,
|
|
63
|
+
"xs:max-sm:max-h-screen": !0,
|
|
64
|
+
"xs:max-sm:h-screen": !0,
|
|
65
|
+
"xs:max-sm:w-screen": !0,
|
|
66
|
+
"xs:max-sm:max-w-screen-xl": !0
|
|
67
|
+
};
|
|
68
|
+
case "lg":
|
|
69
|
+
e = {
|
|
70
|
+
"xs:max-md:m-0": !0,
|
|
71
|
+
"xs:max-md:max-h-screen": !0,
|
|
72
|
+
"xs:max-md:h-screen": !0,
|
|
73
|
+
"xs:max-md:w-screen": !0,
|
|
74
|
+
"xs:max-md:max-w-screen-xl": !0
|
|
75
|
+
};
|
|
76
|
+
case "xl":
|
|
77
|
+
e = {
|
|
78
|
+
"xs:max-xl:m-0": !0,
|
|
79
|
+
"xs:max-xl:max-h-screen": !0,
|
|
80
|
+
"xs:max-xl:h-screen": !0,
|
|
81
|
+
"xs:max-xl:w-screen": !0,
|
|
82
|
+
"xs:max-xl:max-w-screen-xl": !0
|
|
83
|
+
};
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
e = {};
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
return e;
|
|
90
|
+
}), w = k(() => {
|
|
91
|
+
let e = {};
|
|
92
|
+
if (a.isDrawer)
|
|
93
|
+
return e["w-[480px]"] = !0, e["h-screen"] = !0, e;
|
|
94
|
+
switch (a.size) {
|
|
95
|
+
case "sm":
|
|
96
|
+
e = {
|
|
97
|
+
"w-[320px]": !0,
|
|
98
|
+
"min-h-[200px]": !0,
|
|
99
|
+
"max-h-[432px]": !0
|
|
100
|
+
};
|
|
101
|
+
break;
|
|
102
|
+
case "md":
|
|
103
|
+
e = {
|
|
104
|
+
"w-screen sm:w-[480px]": !0,
|
|
105
|
+
"min-h-[300px]": !0,
|
|
106
|
+
"sm:max-h-[600px]": !0,
|
|
107
|
+
"h-screen sm:h-auto": !0
|
|
108
|
+
};
|
|
109
|
+
break;
|
|
110
|
+
case "lg":
|
|
111
|
+
e = {
|
|
112
|
+
"w-screen md:w-[640px]": !0,
|
|
113
|
+
"min-h-[300px]": !0,
|
|
114
|
+
"md:max-h-[600px]": !0,
|
|
115
|
+
"h-screen md:h-auto": !0
|
|
116
|
+
};
|
|
117
|
+
break;
|
|
118
|
+
case "xl":
|
|
119
|
+
e = {
|
|
120
|
+
"w-screen xl:w-[960px]": !0,
|
|
121
|
+
"min-h-[400px]": !0,
|
|
122
|
+
"xl:max-h-[600px]": !0,
|
|
123
|
+
"h-screen xl:h-auto": !0
|
|
124
|
+
};
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
return e;
|
|
128
|
+
});
|
|
129
|
+
return (e, s) => (L(), S("dialog", {
|
|
130
|
+
ref_key: "dialog",
|
|
131
|
+
ref: r,
|
|
132
|
+
onClose: s[0] || (s[0] = (n) => l.value = !1),
|
|
133
|
+
class: x(p.value)
|
|
134
|
+
}, [
|
|
135
|
+
o("div", {
|
|
136
|
+
class: x([h, w.value])
|
|
137
|
+
}, [
|
|
138
|
+
o("div", V, [
|
|
139
|
+
v(e.$slots, "header")
|
|
140
|
+
]),
|
|
141
|
+
o("div", I, [
|
|
142
|
+
v(e.$slots, "body")
|
|
143
|
+
]),
|
|
144
|
+
o("div", X, [
|
|
145
|
+
v(e.$slots, "footer")
|
|
146
|
+
])
|
|
147
|
+
], 2)
|
|
148
|
+
], 34));
|
|
149
|
+
}
|
|
150
|
+
}), j = { class: "grow h-28 font-medium" }, P = {
|
|
151
|
+
method: "dialog",
|
|
152
|
+
class: "w-full h-full"
|
|
153
|
+
}, q = /* @__PURE__ */ B({
|
|
154
|
+
__name: "FzSimpleDialog",
|
|
155
|
+
props: {
|
|
156
|
+
size: { default: "md" },
|
|
157
|
+
title: {},
|
|
158
|
+
confirmLabel: {},
|
|
159
|
+
cancelLabel: {},
|
|
160
|
+
text: {},
|
|
161
|
+
isDrawer: { type: Boolean }
|
|
162
|
+
},
|
|
163
|
+
emits: ["fzmodal:confirm", "fzmodal:cancel"],
|
|
164
|
+
setup(d, { expose: f, emit: z }) {
|
|
165
|
+
const a = d, r = z, l = u(), c = u(!1), i = ["flex flex-row items-center text-xl grow"], h = k(() => ({
|
|
166
|
+
"h-32": a.isDrawer,
|
|
167
|
+
"h-28": !a.isDrawer
|
|
168
|
+
})), p = [
|
|
169
|
+
"flex flex-row items-center h-32 grow justify-end"
|
|
170
|
+
], w = {
|
|
171
|
+
"h-32": !a.isDrawer,
|
|
172
|
+
"h-40": a.isDrawer
|
|
173
|
+
}, e = () => {
|
|
174
|
+
var t;
|
|
175
|
+
(t = l.value) == null || t.show(), c.value = !0;
|
|
176
|
+
}, s = () => {
|
|
177
|
+
var t;
|
|
178
|
+
(t = l.value) == null || t.close(), c.value = !1, r("fzmodal:cancel");
|
|
179
|
+
}, n = () => {
|
|
180
|
+
var t;
|
|
181
|
+
(t = l.value) == null || t.close(), c.value = !1, r("fzmodal:confirm");
|
|
182
|
+
};
|
|
183
|
+
return f({
|
|
184
|
+
cancel: s,
|
|
185
|
+
confirm: n,
|
|
186
|
+
visible: c,
|
|
187
|
+
show: e
|
|
188
|
+
}), (t, R) => (L(), M(Y, E(a, {
|
|
189
|
+
ref_key: "dialog",
|
|
190
|
+
ref: l
|
|
191
|
+
}), {
|
|
192
|
+
header: m(() => [
|
|
193
|
+
o("div", {
|
|
194
|
+
class: x([i, h.value])
|
|
195
|
+
}, [
|
|
196
|
+
o("div", j, g(t.title), 1),
|
|
197
|
+
b(_(N), {
|
|
198
|
+
onClick: s,
|
|
199
|
+
class: "mx-12",
|
|
200
|
+
iconName: "xmark",
|
|
201
|
+
size: "sm",
|
|
202
|
+
variant: "invisible"
|
|
203
|
+
})
|
|
204
|
+
], 2)
|
|
205
|
+
]),
|
|
206
|
+
footer: m(() => [
|
|
207
|
+
o("form", P, [
|
|
208
|
+
o("div", {
|
|
209
|
+
class: x([p, w])
|
|
210
|
+
}, [
|
|
211
|
+
b(_(y), {
|
|
212
|
+
variant: "invisible",
|
|
213
|
+
onClick: C(s, ["prevent"]),
|
|
214
|
+
value: "false"
|
|
215
|
+
}, {
|
|
216
|
+
default: m(() => [
|
|
217
|
+
D(g(t.cancelLabel), 1)
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}),
|
|
221
|
+
b(_(y), {
|
|
222
|
+
class: "ml-12",
|
|
223
|
+
onClick: C(n, ["prevent"]),
|
|
224
|
+
value: "true"
|
|
225
|
+
}, {
|
|
226
|
+
default: m(() => [
|
|
227
|
+
D(g(t.confirmLabel), 1)
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
})
|
|
231
|
+
], 2)
|
|
232
|
+
])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 16));
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
export {
|
|
239
|
+
Y as FzDialog,
|
|
240
|
+
q as FzSimpleDialog
|
|
241
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@fiscozen/button")):typeof define=="function"&&define.amd?define(["exports","vue","@fiscozen/button"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l.FzDialog={},l.Vue,l.button))})(this,function(l,e,d){"use strict";const b={class:"flex items-center p-12 w-full border-b-1 border-grey-100"},z={class:"grow"},C={class:"flex flex-row p-12 border-t-1 border-grey-100 items-center"},w=e.defineComponent({__name:"FzDialog",props:{size:{default:"md"},title:{},confirmLabel:{},cancelLabel:{},text:{},isDrawer:{type:Boolean}},emits:["confirm","cancel"],setup(x,{expose:f,emit:g}){const a=x,o=e.ref(),n=e.ref(!1);f({show:()=>{var t;(t=o.value)==null||t.showModal(),n.value=!0},close:t=>{var s;return(s=o.value)==null?void 0:s.close(t)},visible:n});const m=t=>{if(o.value){var s=o.value.getBoundingClientRect(),c=s.top<=t.clientY&&t.clientY<=s.top+s.height&&s.left<=t.clientX&&t.clientX<=s.left+s.width;c||o.value.close()}};e.onMounted(()=>{var t;(t=o.value)==null||t.addEventListener("click",m)}),e.onUnmounted(()=>{var t;(t=o.value)==null||t.removeEventListener("click",m)});const u=["flex","flex-col","border-1","rounded","bg-core-white"],h=e.computed(()=>{let t={};if(a.isDrawer)return t={"m-0":!0,fixed:!0,"top-0":!0,"ml-auto":!0,"max-h-screen":!0},t;switch(a.size){case"sm":t={};break;case"md":t={"xs:max-sm:m-0":!0,"xs:max-sm:max-h-screen":!0,"xs:max-sm:h-screen":!0,"xs:max-sm:w-screen":!0,"xs:max-sm:max-w-screen-xl":!0};case"lg":t={"xs:max-md:m-0":!0,"xs:max-md:max-h-screen":!0,"xs:max-md:h-screen":!0,"xs:max-md:w-screen":!0,"xs:max-md:max-w-screen-xl":!0};case"xl":t={"xs:max-xl:m-0":!0,"xs:max-xl:max-h-screen":!0,"xs:max-xl:h-screen":!0,"xs:max-xl:w-screen":!0,"xs:max-xl:max-w-screen-xl":!0};break;default:t={};break}return t}),p=e.computed(()=>{let t={};if(a.isDrawer)return t["w-[480px]"]=!0,t["h-screen"]=!0,t;switch(a.size){case"sm":t={"w-[320px]":!0,"min-h-[200px]":!0,"max-h-[432px]":!0};break;case"md":t={"w-screen sm:w-[480px]":!0,"min-h-[300px]":!0,"sm:max-h-[600px]":!0,"h-screen sm:h-auto":!0};break;case"lg":t={"w-screen md:w-[640px]":!0,"min-h-[300px]":!0,"md:max-h-[600px]":!0,"h-screen md:h-auto":!0};break;case"xl":t={"w-screen xl:w-[960px]":!0,"min-h-[400px]":!0,"xl:max-h-[600px]":!0,"h-screen xl:h-auto":!0};break}return t});return(t,s)=>(e.openBlock(),e.createElementBlock("dialog",{ref_key:"dialog",ref:o,onClose:s[0]||(s[0]=c=>n.value=!1),class:e.normalizeClass(h.value)},[e.createElementVNode("div",{class:e.normalizeClass([u,p.value])},[e.createElementVNode("div",b,[e.renderSlot(t.$slots,"header")]),e.createElementVNode("div",z,[e.renderSlot(t.$slots,"body")]),e.createElementVNode("div",C,[e.renderSlot(t.$slots,"footer")])],2)],34))}}),k={class:"grow h-28 font-medium"},_={method:"dialog",class:"w-full h-full"},D=e.defineComponent({__name:"FzSimpleDialog",props:{size:{default:"md"},title:{},confirmLabel:{},cancelLabel:{},text:{},isDrawer:{type:Boolean}},emits:["fzmodal:confirm","fzmodal:cancel"],setup(x,{expose:f,emit:g}){const a=x,o=g,n=e.ref(),i=e.ref(!1),m=["flex flex-row items-center text-xl grow"],u=e.computed(()=>({"h-32":a.isDrawer,"h-28":!a.isDrawer})),h=["flex flex-row items-center h-32 grow justify-end"],p={"h-32":!a.isDrawer,"h-40":a.isDrawer},t=()=>{var r;(r=n.value)==null||r.show(),i.value=!0},s=()=>{var r;(r=n.value)==null||r.close(),i.value=!1,o("fzmodal:cancel")},c=()=>{var r;(r=n.value)==null||r.close(),i.value=!1,o("fzmodal:confirm")};return f({cancel:s,confirm:c,visible:i,show:t}),(r,y)=>(e.openBlock(),e.createBlock(w,e.mergeProps(a,{ref_key:"dialog",ref:n}),{header:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([m,u.value])},[e.createElementVNode("div",k,e.toDisplayString(r.title),1),e.createVNode(e.unref(d.FzIconButton),{onClick:s,class:"mx-12",iconName:"xmark",size:"sm",variant:"invisible"})],2)]),footer:e.withCtx(()=>[e.createElementVNode("form",_,[e.createElementVNode("div",{class:e.normalizeClass([h,p])},[e.createVNode(e.unref(d.FzButton),{variant:"invisible",onClick:e.withModifiers(s,["prevent"]),value:"false"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.cancelLabel),1)]),_:1}),e.createVNode(e.unref(d.FzButton),{class:"ml-12",onClick:e.withModifiers(c,["prevent"]),value:"true"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.confirmLabel),1)]),_:1})],2)])]),_:1},16))}});l.FzDialog=w,l.FzSimpleDialog=D,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/index'
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FzDialogProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzDialogProps>, {
|
|
4
|
+
size: string;
|
|
5
|
+
}>, {
|
|
6
|
+
show: () => void;
|
|
7
|
+
close: (returnVal?: string | undefined) => void;
|
|
8
|
+
visible: import('vue').Ref<boolean>;
|
|
9
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
confirm: (...args: any[]) => void;
|
|
11
|
+
cancel: (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzDialogProps>, {
|
|
13
|
+
size: string;
|
|
14
|
+
}>>> & {
|
|
15
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
size: import('./types').FzDialogSizes;
|
|
19
|
+
}, {}>, {
|
|
20
|
+
header?(_: {}): any;
|
|
21
|
+
body?(_: {}): any;
|
|
22
|
+
footer?(_: {}): any;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FzDialogProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzDialogProps>, {
|
|
4
|
+
size: string;
|
|
5
|
+
}>, {
|
|
6
|
+
cancel: () => void;
|
|
7
|
+
confirm: () => void;
|
|
8
|
+
visible: import('vue').Ref<boolean>;
|
|
9
|
+
show: () => void;
|
|
10
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"fzmodal:confirm": (...args: any[]) => void;
|
|
12
|
+
"fzmodal:cancel": (...args: any[]) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzDialogProps>, {
|
|
14
|
+
size: string;
|
|
15
|
+
}>>> & {
|
|
16
|
+
"onFzmodal:confirm"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onFzmodal:cancel"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
size: import('./types').FzDialogSizes;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type FzDialogSizes = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
export type FzDialogProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The general size of the dialog
|
|
5
|
+
*/
|
|
6
|
+
size?: FzDialogSizes;
|
|
7
|
+
/**
|
|
8
|
+
* Text content in the header
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Text content in the confirm button
|
|
13
|
+
*/
|
|
14
|
+
confirmLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Text content in the cancel button
|
|
17
|
+
*/
|
|
18
|
+
cancelLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Text content in the body slot
|
|
21
|
+
*/
|
|
22
|
+
text?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Wether to show the modal as a drawer
|
|
25
|
+
*/
|
|
26
|
+
isDrawer?: boolean;
|
|
27
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dialog::backdrop{background:var(--core-black, #2c282f);opacity:.8}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fiscozen/dialog",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Design System Dialog component",
|
|
5
|
+
"main": "src/index.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [],
|
|
8
|
+
"author": "Riccardo Agnoletto",
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"tailwindcss": "^3.4.1",
|
|
11
|
+
"vue": "^3.4.13",
|
|
12
|
+
"@fiscozen/button": "^0.1.2",
|
|
13
|
+
"@fiscozen/style": "^0.1.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@rushstack/eslint-patch": "^1.3.3",
|
|
17
|
+
"@types/jsdom": "^21.1.6",
|
|
18
|
+
"@types/node": "^18.19.3",
|
|
19
|
+
"@vitejs/plugin-vue": "^4.5.2",
|
|
20
|
+
"@vitest/coverage-v8": "^1.2.1",
|
|
21
|
+
"@vue/test-utils": "^2.4.3",
|
|
22
|
+
"@vue/tsconfig": "^0.5.0",
|
|
23
|
+
"vite-plugin-dts": "^3.8.3",
|
|
24
|
+
"eslint": "^8.49.0",
|
|
25
|
+
"jsdom": "^23.0.1",
|
|
26
|
+
"prettier": "^3.0.3",
|
|
27
|
+
"typescript": "~5.3.0",
|
|
28
|
+
"vite": "^5.0.10",
|
|
29
|
+
"vitest": "^1.2.0",
|
|
30
|
+
"vue-tsc": "^1.8.25",
|
|
31
|
+
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
|
32
|
+
"@fortawesome/vue-fontawesome": "^3.0.6",
|
|
33
|
+
"@fiscozen/eslint-config": "^0.1.0",
|
|
34
|
+
"@fiscozen/prettier-config": "^0.1.0",
|
|
35
|
+
"@fiscozen/tsconfig": "^0.1.0"
|
|
36
|
+
},
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"scripts": {
|
|
39
|
+
"coverage": "vitest run --coverage",
|
|
40
|
+
"format": "prettier --write src/",
|
|
41
|
+
"test:unit": "vitest run",
|
|
42
|
+
"build": "vue-tsc && vite build"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<FzDialog v-bind="props" ref="dialog">
|
|
3
|
+
<template #header>
|
|
4
|
+
<div :class="[titleStaticClasses, titleClasses]">
|
|
5
|
+
<div class="grow h-28 font-medium">{{ title }}</div>
|
|
6
|
+
<FzIconButton
|
|
7
|
+
@click="handleCancel"
|
|
8
|
+
class="ml-12"
|
|
9
|
+
iconName="xmark"
|
|
10
|
+
size="sm"
|
|
11
|
+
variant="invisible"
|
|
12
|
+
></FzIconButton>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
<template #footer>
|
|
16
|
+
<form method="dialog" class="w-full h-full">
|
|
17
|
+
<div :class="[footerStaticClasses, footerClasses]">
|
|
18
|
+
<FzButton variant="invisible" @click.prevent="handleCancel" value="false">{{
|
|
19
|
+
cancelLabel
|
|
20
|
+
}}</FzButton>
|
|
21
|
+
<FzButton class="ml-12" @click.prevent="handleConfirm" value="true">{{
|
|
22
|
+
confirmLabel
|
|
23
|
+
}}</FzButton>
|
|
24
|
+
</div>
|
|
25
|
+
</form>
|
|
26
|
+
</template>
|
|
27
|
+
</FzDialog>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import { computed, ref } from "vue";
|
|
32
|
+
import { FzIconButton, FzButton } from "@fiscozen/button";
|
|
33
|
+
import { FzDialogProps } from "./types";
|
|
34
|
+
import FzDialog from "./FzDialog.vue";
|
|
35
|
+
|
|
36
|
+
const props = withDefaults(defineProps<FzDialogProps>(), {
|
|
37
|
+
size: "md",
|
|
38
|
+
});
|
|
39
|
+
const emit = defineEmits(["fzmodal:confirm", "fzmodal:cancel"]);
|
|
40
|
+
|
|
41
|
+
const dialog = ref<InstanceType<typeof FzDialog>>();
|
|
42
|
+
const visible = ref(false);
|
|
43
|
+
|
|
44
|
+
const titleStaticClasses = ["flex flex-row items-center text-xl grow"];
|
|
45
|
+
const titleClasses = computed(() => {
|
|
46
|
+
return {
|
|
47
|
+
"h-32": props.isDrawer,
|
|
48
|
+
"h-28": !props.isDrawer,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const footerStaticClasses = [
|
|
53
|
+
"flex flex-row items-center h-32 grow justify-end",
|
|
54
|
+
];
|
|
55
|
+
const footerClasses = {
|
|
56
|
+
"h-32": !props.isDrawer,
|
|
57
|
+
"h-40": props.isDrawer,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const show = () => {
|
|
61
|
+
dialog.value?.show();
|
|
62
|
+
visible.value = true;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const handleCancel = () => {
|
|
66
|
+
dialog.value?.close();
|
|
67
|
+
visible.value = false;
|
|
68
|
+
emit("fzmodal:cancel");
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const handleConfirm = () => {
|
|
72
|
+
dialog.value?.close();
|
|
73
|
+
visible.value = false;
|
|
74
|
+
emit("fzmodal:confirm");
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
defineExpose({
|
|
78
|
+
handleCancel,
|
|
79
|
+
handleConfirm,
|
|
80
|
+
visible,
|
|
81
|
+
show,
|
|
82
|
+
});
|
|
83
|
+
</script>
|
package/src/FzDialog.vue
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<dialog ref="dialog" @close="visible = false" :class="[dialogStaticClasses, dialogClasses]">
|
|
3
|
+
<div :class="[staticClasses, classes]">
|
|
4
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
5
|
+
<slot name="header"></slot>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="grow">
|
|
8
|
+
<slot name="body"></slot>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
11
|
+
<slot name="footer"></slot>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</dialog>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import { computed, ref, onMounted, onUnmounted } from "vue";
|
|
19
|
+
import { FzDialogProps } from "./types";
|
|
20
|
+
|
|
21
|
+
const props = withDefaults(defineProps<FzDialogProps>(), {
|
|
22
|
+
size: "md",
|
|
23
|
+
});
|
|
24
|
+
const emit = defineEmits(["confirm", "cancel"]);
|
|
25
|
+
|
|
26
|
+
const dialog = ref<HTMLDialogElement>();
|
|
27
|
+
const visible = ref(false);
|
|
28
|
+
|
|
29
|
+
const showModal = () => {
|
|
30
|
+
dialog.value!.showModal();
|
|
31
|
+
visible.value = true;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
defineExpose({
|
|
35
|
+
show: showModal,
|
|
36
|
+
close: (returnVal?: string): void => dialog.value!.close(returnVal),
|
|
37
|
+
visible,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const handleBackdropClick = (event: MouseEvent) => {
|
|
41
|
+
var rect = dialog.value!.getBoundingClientRect();
|
|
42
|
+
var isInDialog =
|
|
43
|
+
rect.top <= event.clientY &&
|
|
44
|
+
event.clientY <= rect.top + rect.height &&
|
|
45
|
+
rect.left <= event.clientX &&
|
|
46
|
+
event.clientX <= rect.left + rect.width;
|
|
47
|
+
if (!isInDialog) {
|
|
48
|
+
dialog.value!.close();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
onMounted(() => {
|
|
52
|
+
dialog.value!.addEventListener("click", handleBackdropClick);
|
|
53
|
+
});
|
|
54
|
+
onUnmounted(() => {
|
|
55
|
+
dialog.value!.removeEventListener("click", handleBackdropClick);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const staticClasses = [
|
|
59
|
+
"flex",
|
|
60
|
+
"flex-col",
|
|
61
|
+
"bg-core-white",
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
const dialogStaticClasses = {
|
|
65
|
+
"border-1": true,
|
|
66
|
+
'rounded': true,
|
|
67
|
+
'border-grey-100': true
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const dialogClasses = computed(() => {
|
|
71
|
+
let res: string[] = [];
|
|
72
|
+
if (props.isDrawer) {
|
|
73
|
+
res = [
|
|
74
|
+
"m-0",
|
|
75
|
+
"fixed",
|
|
76
|
+
"top-0",
|
|
77
|
+
"ml-auto",
|
|
78
|
+
"max-h-screen",
|
|
79
|
+
];
|
|
80
|
+
return res;
|
|
81
|
+
}
|
|
82
|
+
switch (props.size) {
|
|
83
|
+
case "sm":
|
|
84
|
+
res = [];
|
|
85
|
+
break;
|
|
86
|
+
case "md":
|
|
87
|
+
res = [
|
|
88
|
+
"xs:max-sm:m-0",
|
|
89
|
+
"xs:max-sm:max-h-screen",
|
|
90
|
+
"xs:max-sm:h-screen",
|
|
91
|
+
"xs:max-sm:w-screen",
|
|
92
|
+
"xs:max-sm:max-w-screen-xl",
|
|
93
|
+
];
|
|
94
|
+
case "lg":
|
|
95
|
+
res = [
|
|
96
|
+
"xs:max-md:m-0",
|
|
97
|
+
"xs:max-md:max-h-screen",
|
|
98
|
+
"xs:max-md:h-screen",
|
|
99
|
+
"xs:max-md:w-screen",
|
|
100
|
+
"xs:max-md:max-w-screen-xl",
|
|
101
|
+
];
|
|
102
|
+
case "xl":
|
|
103
|
+
res = [
|
|
104
|
+
"xs:max-xl:m-0",
|
|
105
|
+
"xs:max-xl:max-h-screen",
|
|
106
|
+
"xs:max-xl:h-screen",
|
|
107
|
+
"xs:max-xl:w-screen",
|
|
108
|
+
"xs:max-xl:max-w-screen-xl",
|
|
109
|
+
];
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
res = [];
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
return res;
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
const classes = computed(() => {
|
|
119
|
+
let res: string[] = [];
|
|
120
|
+
if (props.isDrawer) {
|
|
121
|
+
res = ["w-[480px]", "h-screen"];
|
|
122
|
+
return res;
|
|
123
|
+
}
|
|
124
|
+
switch (props.size) {
|
|
125
|
+
case "sm":
|
|
126
|
+
res = [
|
|
127
|
+
"w-[320px]",
|
|
128
|
+
"min-h-[200px]",
|
|
129
|
+
"max-h-[432px]",
|
|
130
|
+
];
|
|
131
|
+
break;
|
|
132
|
+
case "md":
|
|
133
|
+
res = [
|
|
134
|
+
"w-screen sm:w-[480px]",
|
|
135
|
+
"min-h-[300px]",
|
|
136
|
+
"sm:max-h-[600px]",
|
|
137
|
+
"h-screen sm:h-auto",
|
|
138
|
+
];
|
|
139
|
+
break;
|
|
140
|
+
case "lg":
|
|
141
|
+
res = [
|
|
142
|
+
"w-screen md:w-[640px]",
|
|
143
|
+
"min-h-[300px]",
|
|
144
|
+
"md:max-h-[600px]",
|
|
145
|
+
"h-screen md:h-auto",
|
|
146
|
+
];
|
|
147
|
+
break;
|
|
148
|
+
case "xl":
|
|
149
|
+
res = [
|
|
150
|
+
"w-screen xl:w-[960px]",
|
|
151
|
+
"min-h-[400px]",
|
|
152
|
+
"xl:max-h-[600px]",
|
|
153
|
+
"h-screen xl:h-auto",
|
|
154
|
+
];
|
|
155
|
+
break;
|
|
156
|
+
default:
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
return res;
|
|
160
|
+
});
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<style>
|
|
164
|
+
dialog::backdrop {
|
|
165
|
+
background: var(--core-black, #2c282f);
|
|
166
|
+
opacity: 0.8;
|
|
167
|
+
}
|
|
168
|
+
</style>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { mount } from "@vue/test-utils";
|
|
2
|
+
import figmaTokens from "@fiscozen/style/tokens.json";
|
|
3
|
+
import { describe, it, expect } from "vitest";
|
|
4
|
+
import { FzConfirmDialog } from "../";
|
|
5
|
+
|
|
6
|
+
const viewports: Record<string, number> = Object.entries(
|
|
7
|
+
figmaTokens.global.breakpoint,
|
|
8
|
+
).reduce((acc: Record<string, number>, curr: [string, any]) => {
|
|
9
|
+
acc[curr[0]] = Number(curr[1].value.slice(0, -2));
|
|
10
|
+
return acc;
|
|
11
|
+
}, {});
|
|
12
|
+
|
|
13
|
+
describe("FzDialog", () => {
|
|
14
|
+
it("should match snapshot - md", () => {
|
|
15
|
+
global.innerWidth = viewports["lg"];
|
|
16
|
+
const wrapper = mount(FzConfirmDialog, {
|
|
17
|
+
props: {},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
21
|
+
});
|
|
22
|
+
it("should match snapshot - md - xs screen", () => {
|
|
23
|
+
global.innerWidth = viewports["xs"];
|
|
24
|
+
const wrapper = mount(FzConfirmDialog, {
|
|
25
|
+
props: {},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
29
|
+
});
|
|
30
|
+
it("should match snapshot - sm", () => {
|
|
31
|
+
const wrapper = mount(FzConfirmDialog, {
|
|
32
|
+
props: {
|
|
33
|
+
size: "sm",
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
it("should match snapshot - lg", () => {
|
|
40
|
+
const wrapper = mount(FzConfirmDialog, {
|
|
41
|
+
props: {
|
|
42
|
+
size: "lg",
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
it("should match snapshot - xl", () => {
|
|
49
|
+
const wrapper = mount(FzConfirmDialog, {
|
|
50
|
+
props: {
|
|
51
|
+
size: "xl",
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
56
|
+
});
|
|
57
|
+
it("should match snapshot - drawer", () => {
|
|
58
|
+
const wrapper = mount(FzConfirmDialog, {
|
|
59
|
+
props: {
|
|
60
|
+
isDrawer: true,
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
expect(wrapper.html()).toMatchSnapshot();
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`FzDialog > should match snapshot - drawer 1`] = `
|
|
4
|
+
"<dialog class="m-0 fixed top-0 ml-auto max-h-screen">
|
|
5
|
+
<div class="flex flex-col border-1 rounded bg-core-white w-[480px] h-screen">
|
|
6
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
7
|
+
<div class="flex flex-row items-center text-xl grow h-32">
|
|
8
|
+
<div class="grow h-28 font-medium"></div><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-28 text-sm focus:border-blue-600 focus:border-solid focus:border-1 px-14 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100 w-28 h-28 mx-12">
|
|
9
|
+
<!--v-if-->
|
|
10
|
+
<div class="flex items-center justify-center w-[20px] h-[20px]"><svg class="svg-inline--fa fa-xmark h-[16px]" aria-hidden="true" focusable="false" data-prefix="far" data-icon="xmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
11
|
+
<path class="" fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"></path>
|
|
12
|
+
</svg></div>
|
|
13
|
+
<!--v-if-->
|
|
14
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
15
|
+
</button>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="grow"></div>
|
|
19
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
20
|
+
<form method="dialog" class="w-full h-full">
|
|
21
|
+
<div class="flex flex-row items-center h-32 grow justify-end h-40"><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100" value="false">
|
|
22
|
+
<!--v-if-->
|
|
23
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
24
|
+
</button><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 bg-blue-500 hover:bg-blue-600 disabled:bg-blue-200 text-core-white focus:bg-blue-500 ml-12" value="true">
|
|
25
|
+
<!--v-if-->
|
|
26
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
27
|
+
</button></div>
|
|
28
|
+
</form>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</dialog>"
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
exports[`FzDialog > should match snapshot - lg 1`] = `
|
|
35
|
+
"<dialog class="xs:max-xl:m-0 xs:max-xl:max-h-screen xs:max-xl:h-screen xs:max-xl:w-screen xs:max-xl:max-w-screen-xl">
|
|
36
|
+
<div class="flex flex-col border-1 rounded bg-core-white w-screen md:w-[640px] min-h-[300px] md:max-h-[600px] h-screen md:h-auto">
|
|
37
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
38
|
+
<div class="flex flex-row items-center text-xl grow h-28">
|
|
39
|
+
<div class="grow h-28 font-medium"></div><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-28 text-sm focus:border-blue-600 focus:border-solid focus:border-1 px-14 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100 w-28 h-28 mx-12">
|
|
40
|
+
<!--v-if-->
|
|
41
|
+
<div class="flex items-center justify-center w-[20px] h-[20px]"><svg class="svg-inline--fa fa-xmark h-[16px]" aria-hidden="true" focusable="false" data-prefix="far" data-icon="xmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
42
|
+
<path class="" fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"></path>
|
|
43
|
+
</svg></div>
|
|
44
|
+
<!--v-if-->
|
|
45
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
46
|
+
</button>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="grow"></div>
|
|
50
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
51
|
+
<form method="dialog" class="w-full h-full">
|
|
52
|
+
<div class="flex flex-row items-center h-32 grow justify-end h-32"><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100" value="false">
|
|
53
|
+
<!--v-if-->
|
|
54
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
55
|
+
</button><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 bg-blue-500 hover:bg-blue-600 disabled:bg-blue-200 text-core-white focus:bg-blue-500 ml-12" value="true">
|
|
56
|
+
<!--v-if-->
|
|
57
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
58
|
+
</button></div>
|
|
59
|
+
</form>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</dialog>"
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
exports[`FzDialog > should match snapshot - md - xs screen 1`] = `
|
|
66
|
+
"<dialog class="xs:max-xl:m-0 xs:max-xl:max-h-screen xs:max-xl:h-screen xs:max-xl:w-screen xs:max-xl:max-w-screen-xl">
|
|
67
|
+
<div class="flex flex-col border-1 rounded bg-core-white w-screen sm:w-[480px] min-h-[300px] sm:max-h-[600px] h-screen sm:h-auto">
|
|
68
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
69
|
+
<div class="flex flex-row items-center text-xl grow h-28">
|
|
70
|
+
<div class="grow h-28 font-medium"></div><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-28 text-sm focus:border-blue-600 focus:border-solid focus:border-1 px-14 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100 w-28 h-28 mx-12">
|
|
71
|
+
<!--v-if-->
|
|
72
|
+
<div class="flex items-center justify-center w-[20px] h-[20px]"><svg class="svg-inline--fa fa-xmark h-[16px]" aria-hidden="true" focusable="false" data-prefix="far" data-icon="xmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
73
|
+
<path class="" fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"></path>
|
|
74
|
+
</svg></div>
|
|
75
|
+
<!--v-if-->
|
|
76
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
77
|
+
</button>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="grow"></div>
|
|
81
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
82
|
+
<form method="dialog" class="w-full h-full">
|
|
83
|
+
<div class="flex flex-row items-center h-32 grow justify-end h-32"><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100" value="false">
|
|
84
|
+
<!--v-if-->
|
|
85
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
86
|
+
</button><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 bg-blue-500 hover:bg-blue-600 disabled:bg-blue-200 text-core-white focus:bg-blue-500 ml-12" value="true">
|
|
87
|
+
<!--v-if-->
|
|
88
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
89
|
+
</button></div>
|
|
90
|
+
</form>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</dialog>"
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
exports[`FzDialog > should match snapshot - md 1`] = `
|
|
97
|
+
"<dialog class="xs:max-xl:m-0 xs:max-xl:max-h-screen xs:max-xl:h-screen xs:max-xl:w-screen xs:max-xl:max-w-screen-xl">
|
|
98
|
+
<div class="flex flex-col border-1 rounded bg-core-white w-screen sm:w-[480px] min-h-[300px] sm:max-h-[600px] h-screen sm:h-auto">
|
|
99
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
100
|
+
<div class="flex flex-row items-center text-xl grow h-28">
|
|
101
|
+
<div class="grow h-28 font-medium"></div><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-28 text-sm focus:border-blue-600 focus:border-solid focus:border-1 px-14 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100 w-28 h-28 mx-12">
|
|
102
|
+
<!--v-if-->
|
|
103
|
+
<div class="flex items-center justify-center w-[20px] h-[20px]"><svg class="svg-inline--fa fa-xmark h-[16px]" aria-hidden="true" focusable="false" data-prefix="far" data-icon="xmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
104
|
+
<path class="" fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"></path>
|
|
105
|
+
</svg></div>
|
|
106
|
+
<!--v-if-->
|
|
107
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
108
|
+
</button>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="grow"></div>
|
|
112
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
113
|
+
<form method="dialog" class="w-full h-full">
|
|
114
|
+
<div class="flex flex-row items-center h-32 grow justify-end h-32"><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100" value="false">
|
|
115
|
+
<!--v-if-->
|
|
116
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
117
|
+
</button><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 bg-blue-500 hover:bg-blue-600 disabled:bg-blue-200 text-core-white focus:bg-blue-500 ml-12" value="true">
|
|
118
|
+
<!--v-if-->
|
|
119
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
120
|
+
</button></div>
|
|
121
|
+
</form>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</dialog>"
|
|
125
|
+
`;
|
|
126
|
+
|
|
127
|
+
exports[`FzDialog > should match snapshot - sm 1`] = `
|
|
128
|
+
"<dialog class="">
|
|
129
|
+
<div class="flex flex-col border-1 rounded bg-core-white w-[320px] min-h-[200px] max-h-[432px]">
|
|
130
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
131
|
+
<div class="flex flex-row items-center text-xl grow h-28">
|
|
132
|
+
<div class="grow h-28 font-medium"></div><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-28 text-sm focus:border-blue-600 focus:border-solid focus:border-1 px-14 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100 w-28 h-28 mx-12">
|
|
133
|
+
<!--v-if-->
|
|
134
|
+
<div class="flex items-center justify-center w-[20px] h-[20px]"><svg class="svg-inline--fa fa-xmark h-[16px]" aria-hidden="true" focusable="false" data-prefix="far" data-icon="xmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
135
|
+
<path class="" fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"></path>
|
|
136
|
+
</svg></div>
|
|
137
|
+
<!--v-if-->
|
|
138
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
139
|
+
</button>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
<div class="grow"></div>
|
|
143
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
144
|
+
<form method="dialog" class="w-full h-full">
|
|
145
|
+
<div class="flex flex-row items-center h-32 grow justify-end h-32"><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100" value="false">
|
|
146
|
+
<!--v-if-->
|
|
147
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
148
|
+
</button><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 bg-blue-500 hover:bg-blue-600 disabled:bg-blue-200 text-core-white focus:bg-blue-500 ml-12" value="true">
|
|
149
|
+
<!--v-if-->
|
|
150
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
151
|
+
</button></div>
|
|
152
|
+
</form>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</dialog>"
|
|
156
|
+
`;
|
|
157
|
+
|
|
158
|
+
exports[`FzDialog > should match snapshot - xl 1`] = `
|
|
159
|
+
"<dialog class="xs:max-xl:m-0 xs:max-xl:max-h-screen xs:max-xl:h-screen xs:max-xl:w-screen xs:max-xl:max-w-screen-xl">
|
|
160
|
+
<div class="flex flex-col border-1 rounded bg-core-white w-screen xl:w-[960px] min-h-[400px] xl:max-h-[600px] h-screen xl:h-auto">
|
|
161
|
+
<div class="flex items-center p-12 w-full border-b-1 border-grey-100">
|
|
162
|
+
<div class="flex flex-row items-center text-xl grow h-28">
|
|
163
|
+
<div class="grow h-28 font-medium"></div><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-28 text-sm focus:border-blue-600 focus:border-solid focus:border-1 px-14 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100 w-28 h-28 mx-12">
|
|
164
|
+
<!--v-if-->
|
|
165
|
+
<div class="flex items-center justify-center w-[20px] h-[20px]"><svg class="svg-inline--fa fa-xmark h-[16px]" aria-hidden="true" focusable="false" data-prefix="far" data-icon="xmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
|
|
166
|
+
<path class="" fill="currentColor" d="M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"></path>
|
|
167
|
+
</svg></div>
|
|
168
|
+
<!--v-if-->
|
|
169
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
170
|
+
</button>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
<div class="grow"></div>
|
|
174
|
+
<div class="flex flex-row p-12 border-t-1 border-grey-100 items-center">
|
|
175
|
+
<form method="dialog" class="w-full h-full">
|
|
176
|
+
<div class="flex flex-row items-center h-32 grow justify-end h-32"><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 text-grey-500 bg-transparent border-transparent hover:bg-grey-100 focus:!border-blue-600 disabled:text-grey-100" value="false">
|
|
177
|
+
<!--v-if-->
|
|
178
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
179
|
+
</button><button type="button" class="relative rounded flex flex-shrink items-center justify-center font-medium border-1 border-transparent h-32 focus:border-blue-600 focus:border-solid focus:border-1 px-16 bg-blue-500 hover:bg-blue-600 disabled:bg-blue-200 text-core-white focus:bg-blue-500 ml-12" value="true">
|
|
180
|
+
<!--v-if-->
|
|
181
|
+
<!--v-if--><span class="hidden h-0 w-0"></span>
|
|
182
|
+
</button></div>
|
|
183
|
+
</form>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</dialog>"
|
|
187
|
+
`;
|
package/src/index.ts
ADDED
package/src/types.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type FzDialogSizes = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
|
|
3
|
+
export type FzDialogProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The general size of the dialog
|
|
6
|
+
*/
|
|
7
|
+
size?: FzDialogSizes;
|
|
8
|
+
/**
|
|
9
|
+
* Text content in the header
|
|
10
|
+
*/
|
|
11
|
+
title?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Text content in the confirm button
|
|
14
|
+
*/
|
|
15
|
+
confirmLabel?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Text content in the cancel button
|
|
18
|
+
*/
|
|
19
|
+
cancelLabel?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Text content in the body slot
|
|
22
|
+
*/
|
|
23
|
+
text?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to show the modal as a drawer
|
|
26
|
+
*/
|
|
27
|
+
isDrawer?: boolean;
|
|
28
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@vue+shared@3.4.13/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.4.13/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.4.13/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/csstype@3.1.3/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.4.13/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.4.13_typescript@5.3.3/node_modules/vue/jsx-runtime/index.d.ts","../../node_modules/.pnpm/@babel+types@7.23.6/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.23.6/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/source-map-js@1.0.2/node_modules/source-map-js/source-map.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.4.13/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.4.13/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/vue@3.4.13_typescript@5.3.3/node_modules/vue/dist/vue.d.mts","./src/types.ts","./src/FzDialog.vue.ts","../button/src/types.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.5.1/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.5.1/node_modules/@fortawesome/fontawesome-svg-core/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.5.2/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.74/node_modules/@awesome.me/kit-8137893ad3/icons/modules/icon-types.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.74/node_modules/@awesome.me/kit-8137893ad3/icons/modules/index.d.ts","../../node_modules/.pnpm/@fortawesome+vue-fontawesome@3.0.6_@fortawesome+fontawesome-svg-core@6.5.1_vue@3.4.13/node_modules/@fortawesome/vue-fontawesome/index.d.ts","../icons/src/types.ts","../icons/src/FzIcon.vue.ts","../icons/src/index.ts","../button/src/utils.ts","../button/src/FzButton.vue.ts","../button/src/FzIconButton.vue.ts","../button/src/index.ts","./src/FzSimpleDialog.vue.ts","./__VLS_types.d.ts","./dist/src/FzDialog.vue.d.ts","./dist/src/index.d.ts","./dist/index.d.ts","./dist/src/types.d.ts","./dist/src/__test__/FzDialog.test.d.ts","./src/index.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/constants/dom-events.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/createDomEvent.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/types.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/vueWrapper.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/interfaces/wrapperLike.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/baseWrapper.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/domWrapper.d.ts","../../node_modules/.pnpm/vue-component-type-helpers@1.8.27/node_modules/vue-component-type-helpers/index.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/mount.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/renderToString.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/components/RouterLinkStub.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/errorWrapper.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/vnodeTransformers/util.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/vnodeTransformers/stubComponentsTransformer.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/config.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/utils/flushPromises.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/utils/autoUnmount.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_vue@3.4.13/node_modules/@vue/test-utils/dist/index.d.ts","../style/tokens.json","../../node_modules/.pnpm/@vitest+utils@1.2.0/node_modules/@vitest/utils/dist/types.d.ts","../../node_modules/.pnpm/@vitest+utils@1.2.0/node_modules/@vitest/utils/dist/helpers.d.ts","../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/.pnpm/pretty-format@29.7.0/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/@vitest+utils@1.2.0/node_modules/@vitest/utils/dist/index.d.ts","../../node_modules/.pnpm/@vitest+runner@1.2.0/node_modules/@vitest/runner/dist/tasks-rsXe_qLO.d.ts","../../node_modules/.pnpm/@vitest+utils@1.2.0/node_modules/@vitest/utils/dist/types-widbdqe5.d.ts","../../node_modules/.pnpm/@vitest+utils@1.2.0/node_modules/@vitest/utils/dist/diff.d.ts","../../node_modules/.pnpm/@vitest+runner@1.2.0/node_modules/@vitest/runner/dist/types.d.ts","../../node_modules/.pnpm/@vitest+utils@1.2.0/node_modules/@vitest/utils/dist/error.d.ts","../../node_modules/.pnpm/@vitest+runner@1.2.0/node_modules/@vitest/runner/dist/index.d.ts","../../node_modules/.pnpm/@vitest+runner@1.2.0/node_modules/@vitest/runner/dist/utils.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/dom-events.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@18.19.7/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/@types+estree@1.0.5/node_modules/@types/estree/index.d.ts","../../node_modules/.pnpm/rollup@4.9.5/node_modules/rollup/dist/rollup.d.ts","../../node_modules/.pnpm/rollup@4.9.5/node_modules/rollup/dist/parseAst.d.ts","../../node_modules/.pnpm/vite@5.0.11_@types+node@18.19.7/node_modules/vite/types/hmrPayload.d.ts","../../node_modules/.pnpm/vite@5.0.11_@types+node@18.19.7/node_modules/vite/types/customEvent.d.ts","../../node_modules/.pnpm/esbuild@0.19.11/node_modules/esbuild/lib/main.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/previous-map.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/input.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/css-syntax-error.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/declaration.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/root.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/warning.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/lazy-result.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/no-work-result.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/processor.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/result.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/document.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/rule.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/node.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/comment.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/container.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/at-rule.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/list.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/postcss.d.ts","../../node_modules/.pnpm/postcss@8.4.33/node_modules/postcss/lib/postcss.d.mts","../../node_modules/.pnpm/vite@5.0.11_@types+node@18.19.7/node_modules/vite/types/importGlob.d.ts","../../node_modules/.pnpm/vite@5.0.11_@types+node@18.19.7/node_modules/vite/types/metadata.d.ts","../../node_modules/.pnpm/vite@5.0.11_@types+node@18.19.7/node_modules/vite/dist/node/index.d.ts","../../node_modules/.pnpm/vite-node@1.2.0_@types+node@18.19.7/node_modules/vite-node/dist/trace-mapping.d-aA9jxPtH.d.ts","../../node_modules/.pnpm/vite-node@1.2.0_@types+node@18.19.7/node_modules/vite-node/dist/index-IeUJleJC.d.ts","../../node_modules/.pnpm/vite-node@1.2.0_@types+node@18.19.7/node_modules/vite-node/dist/index.d.ts","../../node_modules/.pnpm/@vitest+snapshot@1.2.0/node_modules/@vitest/snapshot/dist/environment-1emuyggI.d.ts","../../node_modules/.pnpm/@vitest+snapshot@1.2.0/node_modules/@vitest/snapshot/dist/index-K5cwkiJB.d.ts","../../node_modules/.pnpm/@vitest+snapshot@1.2.0/node_modules/@vitest/snapshot/dist/index.d.ts","../../node_modules/.pnpm/@vitest+expect@1.2.0/node_modules/@vitest/expect/dist/chai.d.cts","../../node_modules/.pnpm/@vitest+expect@1.2.0/node_modules/@vitest/expect/dist/index.d.ts","../../node_modules/.pnpm/@vitest+expect@1.2.0/node_modules/@vitest/expect/index.d.ts","../../node_modules/.pnpm/tinybench@2.5.1/node_modules/tinybench/dist/index.d.ts","../../node_modules/.pnpm/vite-node@1.2.0_@types+node@18.19.7/node_modules/vite-node/dist/client.d.ts","../../node_modules/.pnpm/@vitest+snapshot@1.2.0/node_modules/@vitest/snapshot/dist/manager.d.ts","../../node_modules/.pnpm/vite-node@1.2.0_@types+node@18.19.7/node_modules/vite-node/dist/server.d.ts","../../node_modules/.pnpm/vitest@1.2.0_@types+node@18.19.7_jsdom@23.2.0/node_modules/vitest/dist/reporters-trlZlObr.d.ts","../../node_modules/.pnpm/vitest@1.2.0_@types+node@18.19.7_jsdom@23.2.0/node_modules/vitest/dist/suite-6Pt_ep5V.d.ts","../../node_modules/.pnpm/@vitest+spy@1.2.0/node_modules/@vitest/spy/dist/index.d.ts","../../node_modules/.pnpm/@vitest+snapshot@1.2.0/node_modules/@vitest/snapshot/dist/environment.d.ts","../../node_modules/.pnpm/vitest@1.2.0_@types+node@18.19.7_jsdom@23.2.0/node_modules/vitest/dist/config.d.ts","../../node_modules/.pnpm/vitest@1.2.0_@types+node@18.19.7_jsdom@23.2.0/node_modules/vitest/dist/index.d.ts","./src/__test__/FzDialog.test.ts"],"fileInfos":[{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0",{"version":"0","affectsGlobalScope":true},"0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0","0",{"version":"0","affectsGlobalScope":true},"0",{"version":"0","affectsGlobalScope":true},"0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0",{"version":"0","affectsGlobalScope":true},{"version":"0","affectsGlobalScope":true},"0","0","0","0","0",{"version":"0","affectsGlobalScope":true},"0","0","0","0","0","0"],"root":[59,60,[75,82],249],"options":{"composite":true,"esModuleInterop":true,"jsx":1,"jsxImportSource":"vue","module":99,"noImplicitThis":true,"skipLibCheck":true,"strict":true,"target":99,"useDefineForClassFields":true},"fileIdsList":[[52,63,64,65],[64,65],[53],[62],[58,63,65],[104],[115],[151],[152,157,185],[153,164,165,172,182,193],[153,154,164,172],[155,194],[156,157,165,173],[157,182,190],[158,160,164,172],[151,159],[160,161],[164],[162,164],[151,164],[164,165,166,182,193],[164,165,166,179,182,185],[149,198],[160,164,167,172,182,193],[164,165,167,168,172,182,190,193],[167,169,182,190,193],[115,116,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200],[164,170],[171,193,198],[160,164,172,182],[173],[174],[151,175],[176,192,198],[177],[178],[164,179,180],[179,181,194,196],[152,164,182,183,184,185],[152,182,184],[182,183],[185],[186],[151,182],[164,188,189],[188,189],[157,172,182,190],[191],[172,192],[152,167,178,193],[157,194],[182,195],[171,196],[197],[152,157,164,166,175,182,193,196,198],[182,199],[107,110],[237],[107,108,110,111,112],[107],[107,108,110],[107,108],[233],[106,233],[106,233,234],[106,109],[102],[102,103,106],[106],[47,53,54,55],[56],[47],[47,48,49,51],[48,49,50],[58,83,84,85,86,87,89],[58],[85,86,89,96],[83],[58,85,88],[85,86,88,89,91,92,93,94,97,98,99],[58,83,84,85,86,89],[58,85,86,90],[58,85,91],[58,86],[58,95],[58,85,88,89],[222],[220,222],[211,219,220,221,223],[209],[212,217,222,225],[208,225],[212,213,216,217,218,225],[212,213,214,216,217,225],[209,210,211,212,213,217,218,219,221,222,223,225],[225],[55,209,210,211,212,213,214,216,217,218,219,220,221,222,223,224],[55,225],[212,214,215,217,218,225],[216,225],[217,218,222,225],[210,220],[105],[203,228],[202],[55],[126,130,193],[126,182,193],[121],[123,126,190,193],[172,190],[201],[121,201],[123,126,172,193],[118,119,122,125,152,164,182,193],[118,124],[122,126,152,185,193,201],[152,201],[142,152,201],[120,121,201],[126],[120,121,122,123,124,125,126,127,128,130,131,132,133,134,135,136,137,138,139,140,141,143,144,145,146,147,148],[126,133,134],[124,126,134,135],[125],[118,121,126],[126,130,134,135],[130],[124,126,129,193],[118,123,124,126,130,133],[152,182],[121,126,142,152,198,201],[230,231],[230],[229,230,231,243],[164,165,167,168,169,172,182,190,193,199,201,203,204,205,206,207,226,227,228],[205],[203],[107,113,114,165,198,229,232,235,236,238,239,240,241,242,243],[107,110,113,114,165,198,229,232,235,236,238,239,240,241,242,243,244,245,246,247],[113,114,239,243],[51,57],[51],[52,58,61,70,71],[52,58,61,70,71,72],[52,61,72,73],[52],[52,61,70],[52,58],[78],[77],[52,58,59],[52,58,59,60,74],[52,82,100,101,248],[52,59,60,75],[52,58,66,67,68],[52,58,63,65,66,68,69],[88,89,91,92,94,95,96,97,100,102,103],[185,202],[109,112],[110,111,113,114,115],[129],[123,124,125,126,127,128,129,130,131,133,134,135,136,137,138,139,140,141,142,143,144,146,147,148,149,150,151],[154],[155,160,188],[156,167,168,175,185,196],[156,157,167,175],[158,197],[159,160,168,176],[160,185,193],[161,163,167,175],[163,164],[154,162],[165,167],[167],[124],[200],[154,167],[167,168,169,185,196],[167,168,169,182,185,188],[155,160,167,169,178,185,196,199,201],[163,167,170,175,185,196],[167,168,170,171,175,185,193,196],[170,172,185,193,196],[167,173],[174,196,201],[163,167,175,185],[176],[154,178],[179,195,201],[180],[181],[167,182,183],[182,184,197,199],[155,167,185,186,187,188],[185,186],[155,185,187],[188],[189],[154,185],[167,191,192],[191,192],[160,175,185,193],[194],[175,195],[155,170,181,196],[160,197],[185,198],[174,199],[109,236],[109,236,237],[110],[110,111,113],[110,116,117,168,201,232,235,238,239,241,242,243,244,245,246],[233,234],[240],[232,233,234,246],[105,106,109],[109],[58,89],[108],[58,88,91,92],[58,88,89,93],[88,89,92,99],[86],[58,86,87,88,89,90,92],[58,88,91],[58,98],[58,88,94],[110,111],[206,231],[212,213,214,215,216,220,221,222,224,225,226,228],[215,220,225,228],[55,228],[215,216,217,219,220,228],[208],[223,225],[220,221,225,228],[219,228],[214,222,223,224,226],[213,223],[215,216,219,220,221,228],[211,228],[215,217,218,220,221,228],[212],[118,119,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203],[127,129,132,196],[129,133,137,138],[133],[126,129,175,196],[125,129,155,188,196,204],[155,204],[145,155,204],[128],[124,204],[175,193],[123,124,204],[129,185,196],[155,185],[126,129,193,196],[121,127],[118],[204],[124,129,145,155,201,204],[129,133,196],[129,136,137],[121,124,129],[121,126,127,129,133,136],[121,122,125,128,155,167,185,196],[127,129,137,138],[110,113],[206],[167,168,170,171,172,175,185,193,196,202,204,206,207,208,209,210,229,230,231],[228],[55,212,213,214,215,216,217,219,220,221,222,223,224,225,226,227],[116,117,242,246],[58,86,87,88,89,92],[236]],"referencedMap":[[65,1],[66,2],[54,3],[63,4],[67,5],[105,6],[115,7],[116,7],[151,8],[152,9],[153,10],[154,11],[155,12],[156,13],[157,14],[158,15],[159,16],[160,17],[161,17],[163,18],[162,19],[164,20],[165,21],[166,22],[150,23],[167,24],[168,25],[169,26],[201,27],[170,28],[171,29],[172,30],[173,31],[174,32],[175,33],[176,34],[177,35],[178,36],[179,37],[180,37],[181,38],[182,39],[184,40],[183,41],[185,42],[186,43],[187,44],[188,45],[189,46],[190,47],[191,48],[192,49],[193,50],[194,51],[195,52],[196,53],[197,54],[198,55],[199,56],[237,57],[238,58],[113,59],[108,60],[111,61],[114,62],[246,63],[234,64],[235,65],[241,65],[110,66],[112,66],[103,67],[107,68],[109,69],[56,70],[57,71],[48,72],[49,73],[51,74],[88,75],[93,76],[97,77],[84,78],[89,79],[100,80],[87,81],[91,82],[92,83],[85,76],[99,84],[96,85],[95,76],[86,86],[223,87],[221,88],[222,89],[210,90],[211,88],[218,91],[209,92],[214,93],[215,94],[220,95],[226,96],[225,97],[208,98],[216,99],[217,100],[212,101],[219,87],[213,102],[106,103],[204,104],[203,105],[55,106],[133,107],[140,108],[132,107],[147,109],[124,110],[123,111],[146,112],[141,113],[144,114],[126,115],[125,116],[121,117],[120,118],[143,119],[122,120],[127,121],[131,121],[149,122],[148,121],[135,123],[136,124],[138,125],[134,126],[137,127],[142,112],[129,128],[130,129],[139,130],[119,131],[145,132],[240,133],[231,134],[232,133],[242,135],[229,136],[206,137],[228,138],[247,139],[248,140],[243,139],[244,141],[58,142],[52,143],[72,144],[73,145],[74,146],[61,147],[71,148],[76,149],[79,150],[77,76],[78,151],[60,152],[75,153],[249,154],[82,155],[59,147],[69,156],[70,157],[68,147]],"exportedModulesMap":[[65,1],[66,2],[54,3],[63,4],[67,5],[104,158],[202,159],[115,160],[116,161],[151,162],[152,163],[153,118],[154,164],[155,165],[156,166],[157,167],[158,168],[159,169],[160,170],[161,171],[163,172],[162,173],[164,172],[165,174],[166,175],[150,176],[200,177],[167,178],[168,179],[169,180],[201,181],[170,182],[171,183],[172,184],[173,185],[174,186],[175,187],[176,188],[177,35],[178,189],[179,190],[180,191],[181,192],[182,193],[184,194],[183,193],[185,195],[186,196],[187,197],[188,198],[189,199],[190,200],[191,201],[192,202],[193,203],[194,204],[195,205],[196,206],[197,207],[198,208],[199,209],[237,210],[238,211],[113,160],[108,60],[111,212],[114,213],[246,214],[234,63],[235,215],[241,216],[245,217],[110,218],[112,219],[103,220],[109,221],[56,70],[57,71],[48,72],[49,73],[51,74],[88,76],[83,149],[84,147],[89,222],[94,223],[100,224],[87,225],[91,226],[92,227],[85,147],[99,228],[98,76],[96,76],[95,229],[117,230],[207,231],[223,232],[221,233],[222,96],[211,234],[218,235],[209,236],[214,237],[224,237],[215,238],[220,239],[226,96],[225,240],[216,241],[217,242],[212,243],[219,244],[213,245],[106,103],[204,246],[55,106],[133,247],[140,248],[132,249],[147,250],[124,251],[123,252],[146,253],[141,254],[144,255],[126,256],[125,257],[143,258],[122,259],[127,260],[128,261],[118,262],[149,263],[148,264],[135,265],[136,265],[138,266],[134,162],[137,267],[142,268],[129,269],[130,162],[139,270],[119,262],[145,263],[240,271],[231,272],[232,273],[229,274],[206,137],[228,275],[247,276],[243,215],[244,211],[90,277],[58,142],[52,143],[72,144],[73,145],[74,146],[61,147],[71,148],[76,149],[79,150],[77,76],[78,151],[60,152],[75,153],[249,278],[82,149],[59,149],[69,156],[70,157],[68,147]],"semanticDiagnosticsPerFile":[65,66,54,53,62,64,63,67,105,104,202,115,116,151,152,153,154,155,156,157,158,159,160,161,163,162,164,165,166,150,200,167,168,169,201,170,171,172,173,174,175,176,177,178,179,180,181,182,184,183,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,236,237,238,113,108,111,114,233,246,234,235,241,245,110,112,103,107,109,102,56,57,48,49,51,47,88,93,97,83,84,89,94,100,87,91,92,85,99,98,96,95,86,117,50,207,223,221,222,210,211,218,209,214,224,215,220,226,225,208,216,217,212,219,213,106,204,203,55,239,45,46,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,20,24,21,22,23,25,26,27,5,28,29,30,31,6,35,32,33,34,36,7,37,42,43,38,39,40,41,1,44,133,140,132,147,124,123,146,141,144,126,125,121,120,143,122,127,128,131,118,149,148,135,136,138,134,137,142,129,130,139,119,145,240,231,232,242,230,229,206,205,227,228,247,248,243,244,90,58,52,72,73,74,61,71,76,79,77,81,78,80,60,75,249,82,59,69,70,68,101],"affectedFilesPendingEmit":[60,75,249,82,59],"emitSignatures":[60,75]},"version":"5.3.3"}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
2
|
+
import { resolve } from 'node:path';
|
|
3
|
+
import { defineConfig } from 'vite'
|
|
4
|
+
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
import dts from 'vite-plugin-dts'
|
|
6
|
+
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
plugins: [
|
|
9
|
+
vue(),
|
|
10
|
+
dts({
|
|
11
|
+
insertTypesEntry: true,
|
|
12
|
+
})
|
|
13
|
+
],
|
|
14
|
+
resolve: {
|
|
15
|
+
alias: {
|
|
16
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
build: {
|
|
20
|
+
lib: {
|
|
21
|
+
entry: resolve(__dirname, './src/index.ts'),
|
|
22
|
+
name: 'FzDialog',
|
|
23
|
+
},
|
|
24
|
+
rollupOptions: {
|
|
25
|
+
external: ['vue', "@fiscozen/button"],
|
|
26
|
+
output: {
|
|
27
|
+
globals: {
|
|
28
|
+
vue: 'Vue',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
})
|
package/vitest.config.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url'
|
|
2
|
+
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
|
|
3
|
+
import viteConfig from './vite.config'
|
|
4
|
+
|
|
5
|
+
export default mergeConfig(
|
|
6
|
+
viteConfig,
|
|
7
|
+
defineConfig({
|
|
8
|
+
test: {
|
|
9
|
+
environment: 'jsdom',
|
|
10
|
+
exclude: [...configDefaults.exclude, 'e2e/*'],
|
|
11
|
+
root: fileURLToPath(new URL('./', import.meta.url)),
|
|
12
|
+
coverage: {
|
|
13
|
+
provider: 'v8',
|
|
14
|
+
include: ['**/src/**'],
|
|
15
|
+
exclude: ['**/index.ts']
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
)
|