@fiscozen/card 0.1.4 → 0.1.6
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/dist/card.js +124 -0
- package/dist/card.umd.cjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/src/FzCard.vue.d.ts +32 -0
- package/dist/src/__test__/FzCard.test.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/types.d.ts +77 -0
- package/package.json +5 -5
- package/src/FzCard.vue +36 -9
- package/src/__test__/FzCard.test.ts +31 -0
- package/src/types.ts +9 -9
- package/tsconfig.tsbuildinfo +1 -0
package/dist/card.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent as $, ref as D, computed as l, onMounted as E, openBlock as r, createElementBlock as c, normalizeClass as a, createElementVNode as y, toDisplayString as O, createCommentVNode as t, renderSlot as b, createBlock as u, unref as d, withDirectives as A, vShow as g } from "vue";
|
|
2
|
+
import { FzIconButton as C, FzButton as w } from "@fiscozen/button";
|
|
3
|
+
const j = { class: "flex flex-row gap-12 items-center" }, V = ["title"], Y = "border-1 border-solid border-grey-100 rounded flex flex-col", x = "h-64 border-solid p-16 flex flex-row justify-between", I = "h-64 border-t-1 border-solid p-16 flex justify-end gap-8 items-center", q = /* @__PURE__ */ $({
|
|
4
|
+
__name: "FzCard",
|
|
5
|
+
props: {
|
|
6
|
+
title: {},
|
|
7
|
+
color: {},
|
|
8
|
+
primaryAction: {},
|
|
9
|
+
secondaryAction: {},
|
|
10
|
+
tertiaryAction: {},
|
|
11
|
+
contentClass: {},
|
|
12
|
+
collapsible: { type: Boolean },
|
|
13
|
+
defaultExpanded: { type: Boolean },
|
|
14
|
+
alwaysAlive: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
emits: ["fzprimary:click", "fzsecondary:click", "fztertiary:click"],
|
|
17
|
+
setup(h, { expose: z, emit: B }) {
|
|
18
|
+
const e = h, p = B, i = D(e.defaultExpanded ?? !1), s = l(() => i.value || !e.collapsible), m = l(() => e.alwaysAlive || s.value), S = l(() => [
|
|
19
|
+
s.value ? "border-b-1" : "border-b-0",
|
|
20
|
+
e.collapsible ? "cursor-pointer" : ""
|
|
21
|
+
]), F = l(() => {
|
|
22
|
+
switch (e.color) {
|
|
23
|
+
case "blue":
|
|
24
|
+
return "bg-background-alice-blue";
|
|
25
|
+
case "orange":
|
|
26
|
+
return "bg-background-seashell";
|
|
27
|
+
case "purple":
|
|
28
|
+
return "bg-background-pale-purple";
|
|
29
|
+
default:
|
|
30
|
+
return "bg-core-white";
|
|
31
|
+
}
|
|
32
|
+
}), f = l(() => {
|
|
33
|
+
switch (e.color) {
|
|
34
|
+
case "blue":
|
|
35
|
+
return "border-blue-200";
|
|
36
|
+
case "orange":
|
|
37
|
+
return "border-orange-200";
|
|
38
|
+
case "purple":
|
|
39
|
+
return "border-purple-200";
|
|
40
|
+
default:
|
|
41
|
+
return "border-grey-100";
|
|
42
|
+
}
|
|
43
|
+
}), N = l(
|
|
44
|
+
() => e.primaryAction !== void 0 || e.secondaryAction !== void 0 || e.tertiaryAction !== void 0
|
|
45
|
+
);
|
|
46
|
+
function v() {
|
|
47
|
+
e.collapsible && (i.value = !i.value);
|
|
48
|
+
}
|
|
49
|
+
return E(() => {
|
|
50
|
+
e.tertiaryAction && !e.secondaryAction && !e.primaryAction ? console.warn(
|
|
51
|
+
"[Fiscozen Design System]: You should set primaryAction and secondaryAction if you want to set tertiaryAction"
|
|
52
|
+
) : e.secondaryAction && !e.primaryAction && console.warn(
|
|
53
|
+
"[Fiscozen Design System]: You should set primaryAction if you want to set secondaryAction"
|
|
54
|
+
);
|
|
55
|
+
}), z({
|
|
56
|
+
/**
|
|
57
|
+
* Method to toggle the card open/closed state
|
|
58
|
+
*/
|
|
59
|
+
toggleOpen: v
|
|
60
|
+
}), (o, n) => (r(), c("section", {
|
|
61
|
+
class: a([Y, F.value])
|
|
62
|
+
}, [
|
|
63
|
+
y("header", {
|
|
64
|
+
class: a([S.value, f.value]),
|
|
65
|
+
onClick: v
|
|
66
|
+
}, [
|
|
67
|
+
y("div", {
|
|
68
|
+
class: a(x)
|
|
69
|
+
}, [
|
|
70
|
+
y("div", j, [
|
|
71
|
+
o.title ? (r(), c("h2", {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "text-core-black font-medium text-2xl m-0 p-0 break-words",
|
|
74
|
+
title: o.title
|
|
75
|
+
}, O(o.title), 9, V)) : t("", !0),
|
|
76
|
+
b(o.$slots, "header")
|
|
77
|
+
]),
|
|
78
|
+
o.collapsible ? (r(), u(d(C), {
|
|
79
|
+
key: 0,
|
|
80
|
+
iconName: i.value ? "chevron-up" : "chevron-down",
|
|
81
|
+
variant: "invisible"
|
|
82
|
+
}, null, 8, ["iconName"])) : t("", !0)
|
|
83
|
+
]),
|
|
84
|
+
b(o.$slots, "header-content")
|
|
85
|
+
], 2),
|
|
86
|
+
m.value ? A((r(), c("article", {
|
|
87
|
+
key: 0,
|
|
88
|
+
class: a(["p-20", o.contentClass])
|
|
89
|
+
}, [
|
|
90
|
+
b(o.$slots, "default")
|
|
91
|
+
], 2)), [
|
|
92
|
+
[g, s.value]
|
|
93
|
+
]) : t("", !0),
|
|
94
|
+
N.value && m.value ? A((r(), c("footer", {
|
|
95
|
+
key: 1,
|
|
96
|
+
class: a([I, f.value])
|
|
97
|
+
}, [
|
|
98
|
+
o.tertiaryAction ? (r(), u(d(C), {
|
|
99
|
+
key: 0,
|
|
100
|
+
onClick: n[0] || (n[0] = (k) => p("fztertiary:click")),
|
|
101
|
+
iconName: o.tertiaryAction.icon,
|
|
102
|
+
variant: "invisible"
|
|
103
|
+
}, null, 8, ["iconName"])) : t("", !0),
|
|
104
|
+
o.secondaryAction ? (r(), u(d(w), {
|
|
105
|
+
key: 1,
|
|
106
|
+
onClick: n[1] || (n[1] = (k) => p("fzsecondary:click")),
|
|
107
|
+
label: o.secondaryAction.label,
|
|
108
|
+
variant: "secondary"
|
|
109
|
+
}, null, 8, ["label"])) : t("", !0),
|
|
110
|
+
o.primaryAction ? (r(), u(d(w), {
|
|
111
|
+
key: 2,
|
|
112
|
+
onClick: n[2] || (n[2] = (k) => p("fzprimary:click")),
|
|
113
|
+
label: o.primaryAction.label,
|
|
114
|
+
variant: "primary"
|
|
115
|
+
}, null, 8, ["label"])) : t("", !0)
|
|
116
|
+
], 2)), [
|
|
117
|
+
[g, s.value]
|
|
118
|
+
]) : t("", !0)
|
|
119
|
+
], 2));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
q as FzCard
|
|
124
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(r,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):(r=typeof globalThis<"u"?globalThis:r||self,e(r.FzCard={},r.Vue,r.button))})(this,function(r,e,l){"use strict";const y={class:"flex flex-row gap-12 items-center"},f=["title"],u="border-1 border-solid border-grey-100 rounded flex flex-col",b="h-64 border-solid p-16 flex flex-row justify-between",k="h-64 border-t-1 border-solid p-16 flex justify-end gap-8 items-center",C=e.defineComponent({__name:"FzCard",props:{title:{},color:{},primaryAction:{},secondaryAction:{},tertiaryAction:{},contentClass:{},collapsible:{type:Boolean},defaultExpanded:{type:Boolean},alwaysAlive:{type:Boolean}},emits:["fzprimary:click","fzsecondary:click","fztertiary:click"],setup(A,{expose:B,emit:z}){const o=A,c=z,a=e.ref(o.defaultExpanded??!1),i=e.computed(()=>a.value||!o.collapsible),s=e.computed(()=>o.alwaysAlive||i.value),h=e.computed(()=>[i.value?"border-b-1":"border-b-0",o.collapsible?"cursor-pointer":""]),g=e.computed(()=>{switch(o.color){case"blue":return"bg-background-alice-blue";case"orange":return"bg-background-seashell";case"purple":return"bg-background-pale-purple";default:return"bg-core-white"}}),d=e.computed(()=>{switch(o.color){case"blue":return"border-blue-200";case"orange":return"border-orange-200";case"purple":return"border-purple-200";default:return"border-grey-100"}}),w=e.computed(()=>o.primaryAction!==void 0||o.secondaryAction!==void 0||o.tertiaryAction!==void 0);function p(){o.collapsible&&(a.value=!a.value)}return e.onMounted(()=>{o.tertiaryAction&&!o.secondaryAction&&!o.primaryAction?console.warn("[Fiscozen Design System]: You should set primaryAction and secondaryAction if you want to set tertiaryAction"):o.secondaryAction&&!o.primaryAction&&console.warn("[Fiscozen Design System]: You should set primaryAction if you want to set secondaryAction")}),B({toggleOpen:p}),(t,n)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass([u,g.value])},[e.createElementVNode("header",{class:e.normalizeClass([h.value,d.value]),onClick:p},[e.createElementVNode("div",{class:e.normalizeClass(b)},[e.createElementVNode("div",y,[t.title?(e.openBlock(),e.createElementBlock("h2",{key:0,class:"text-core-black font-medium text-2xl m-0 p-0 break-words",title:t.title},e.toDisplayString(t.title),9,f)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"header")]),t.collapsible?(e.openBlock(),e.createBlock(e.unref(l.FzIconButton),{key:0,iconName:a.value?"chevron-up":"chevron-down",variant:"invisible"},null,8,["iconName"])):e.createCommentVNode("",!0)]),e.renderSlot(t.$slots,"header-content")],2),s.value?e.withDirectives((e.openBlock(),e.createElementBlock("article",{key:0,class:e.normalizeClass(["p-20",t.contentClass])},[e.renderSlot(t.$slots,"default")],2)),[[e.vShow,i.value]]):e.createCommentVNode("",!0),w.value&&s.value?e.withDirectives((e.openBlock(),e.createElementBlock("footer",{key:1,class:e.normalizeClass([k,d.value])},[t.tertiaryAction?(e.openBlock(),e.createBlock(e.unref(l.FzIconButton),{key:0,onClick:n[0]||(n[0]=m=>c("fztertiary:click")),iconName:t.tertiaryAction.icon,variant:"invisible"},null,8,["iconName"])):e.createCommentVNode("",!0),t.secondaryAction?(e.openBlock(),e.createBlock(e.unref(l.FzButton),{key:1,onClick:n[1]||(n[1]=m=>c("fzsecondary:click")),label:t.secondaryAction.label,variant:"secondary"},null,8,["label"])):e.createCommentVNode("",!0),t.primaryAction?(e.openBlock(),e.createBlock(e.unref(l.FzButton),{key:2,onClick:n[2]||(n[2]=m=>c("fzprimary:click")),label:t.primaryAction.label,variant:"primary"},null,8,["label"])):e.createCommentVNode("",!0)],2)),[[e.vShow,i.value]]):e.createCommentVNode("",!0)],2))}});r.FzCard=C,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/index'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FzCardProps, FzCardSlots } from './types';
|
|
2
|
+
|
|
3
|
+
declare function toggleOpen(): void;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<FzCardProps>, {
|
|
5
|
+
/**
|
|
6
|
+
* Method to toggle the card open/closed state
|
|
7
|
+
*/
|
|
8
|
+
toggleOpen: typeof toggleOpen;
|
|
9
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"fzprimary:click": () => void;
|
|
11
|
+
"fzsecondary:click": () => void;
|
|
12
|
+
"fztertiary:click": () => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FzCardProps>>> & {
|
|
14
|
+
"onFzprimary:click"?: (() => any) | undefined;
|
|
15
|
+
"onFzsecondary:click"?: (() => any) | undefined;
|
|
16
|
+
"onFztertiary:click"?: (() => any) | undefined;
|
|
17
|
+
}, {}, {}>, Readonly<FzCardSlots> & FzCardSlots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export type FzCardProps = {
|
|
2
|
+
/**
|
|
3
|
+
* The title of the card
|
|
4
|
+
*/
|
|
5
|
+
title: string;
|
|
6
|
+
/**
|
|
7
|
+
* The background color of the card
|
|
8
|
+
*/
|
|
9
|
+
color?: FzCardColor;
|
|
10
|
+
/**
|
|
11
|
+
* The primary action button
|
|
12
|
+
*/
|
|
13
|
+
primaryAction?: FzCardButton;
|
|
14
|
+
/**
|
|
15
|
+
* The secondary action button
|
|
16
|
+
*/
|
|
17
|
+
secondaryAction?: FzCardButton;
|
|
18
|
+
/**
|
|
19
|
+
* The tertiary action button
|
|
20
|
+
*/
|
|
21
|
+
tertiaryAction?: FzCardIconButton;
|
|
22
|
+
/**
|
|
23
|
+
* Custom css class to apply to the content
|
|
24
|
+
*/
|
|
25
|
+
contentClass?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the card is collapsible
|
|
28
|
+
*/
|
|
29
|
+
collapsible?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the card is expanded by default (only if collapsible)
|
|
32
|
+
*/
|
|
33
|
+
defaultExpanded?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the card content is always alive (never destroyed) when collapsed
|
|
36
|
+
*/
|
|
37
|
+
alwaysAlive?: boolean;
|
|
38
|
+
};
|
|
39
|
+
type FzCardButton = {
|
|
40
|
+
label: string;
|
|
41
|
+
};
|
|
42
|
+
type FzCardIconButton = {
|
|
43
|
+
icon: string;
|
|
44
|
+
};
|
|
45
|
+
export type FzCardColor = "purple" | "orange" | "blue";
|
|
46
|
+
export interface FzCardEvents {
|
|
47
|
+
/**
|
|
48
|
+
* Event emitted when the primary action is clicked
|
|
49
|
+
* @type {() => void}
|
|
50
|
+
*/
|
|
51
|
+
(event: 'fzprimary:click'): void;
|
|
52
|
+
/**
|
|
53
|
+
* Event emitted when the secondary action is clicked
|
|
54
|
+
* @type {() => void}
|
|
55
|
+
*/
|
|
56
|
+
(event: 'fzsecondary:click'): void;
|
|
57
|
+
/**
|
|
58
|
+
* Event emitted when the tertiary action is clicked
|
|
59
|
+
* @type {() => void}
|
|
60
|
+
*/
|
|
61
|
+
(event: 'fztertiary:click'): void;
|
|
62
|
+
}
|
|
63
|
+
export interface FzCardSlots {
|
|
64
|
+
/**
|
|
65
|
+
* Slot for the content of the card
|
|
66
|
+
*/
|
|
67
|
+
default(props: {}): any;
|
|
68
|
+
/**
|
|
69
|
+
* Slot for the header, it will be displayed on the left of the title
|
|
70
|
+
*/
|
|
71
|
+
header(props: {}): any;
|
|
72
|
+
/**
|
|
73
|
+
* Slot for the header content, it will be displayed below the title
|
|
74
|
+
*/
|
|
75
|
+
'header-content'(props: {}): any;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiscozen/card",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Design System Card component",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"keywords": [],
|
|
8
8
|
"author": "Cristian Barraco",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fiscozen/icons": "^0.1.
|
|
11
|
-
"@fiscozen/button": "^0.1.
|
|
10
|
+
"@fiscozen/icons": "^0.1.34",
|
|
11
|
+
"@fiscozen/button": "^0.1.13"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"tailwindcss": "^3.4.1",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@awesome.me/kit-8137893ad3": "^1.0.65",
|
|
34
34
|
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
|
35
35
|
"@fortawesome/vue-fontawesome": "^3.0.6",
|
|
36
|
+
"@fiscozen/prettier-config": "^0.1.0",
|
|
36
37
|
"@fiscozen/eslint-config": "^0.1.0",
|
|
37
|
-
"@fiscozen/tsconfig": "^0.1.0"
|
|
38
|
-
"@fiscozen/prettier-config": "^0.1.0"
|
|
38
|
+
"@fiscozen/tsconfig": "^0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"scripts": {
|
package/src/FzCard.vue
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<section :class="[sectionStaticClass, backgroundColor]">
|
|
3
|
-
<header
|
|
2
|
+
<section :class="[sectionStaticClass, backgroundColor, textColor]">
|
|
3
|
+
<header
|
|
4
|
+
v-if="existHeader"
|
|
5
|
+
:class="[headerContainerComputedClass, borderColor]"
|
|
6
|
+
@click="toggleOpen"
|
|
7
|
+
>
|
|
4
8
|
<div :class="headerStaticClass">
|
|
5
9
|
<div class="flex flex-row gap-12 items-center">
|
|
6
10
|
<h2
|
|
@@ -20,10 +24,18 @@
|
|
|
20
24
|
</div>
|
|
21
25
|
<slot name="header-content"></slot>
|
|
22
26
|
</header>
|
|
23
|
-
<article
|
|
27
|
+
<article
|
|
28
|
+
v-if="isAlive"
|
|
29
|
+
:class="['p-20', contentClass]"
|
|
30
|
+
v-show="showContent"
|
|
31
|
+
>
|
|
24
32
|
<slot></slot>
|
|
25
33
|
</article>
|
|
26
|
-
<footer
|
|
34
|
+
<footer
|
|
35
|
+
v-if="(slots.footer || atLeastOneButton) && isAlive"
|
|
36
|
+
:class="[footerStaticClass, borderColor]"
|
|
37
|
+
v-show="showContent"
|
|
38
|
+
>
|
|
27
39
|
<slot name="footer">
|
|
28
40
|
<FzIconButton
|
|
29
41
|
v-if="tertiaryAction"
|
|
@@ -67,6 +79,9 @@ const footerStaticClass =
|
|
|
67
79
|
|
|
68
80
|
const showContent = computed(() => isOpen.value || !props.collapsible);
|
|
69
81
|
const isAlive = computed(() => props.alwaysAlive || showContent.value);
|
|
82
|
+
const existHeader = computed(
|
|
83
|
+
() => props.title || slots["header"] || slots["header-content"],
|
|
84
|
+
);
|
|
70
85
|
const headerContainerComputedClass = computed(() => [
|
|
71
86
|
showContent.value ? "border-b-1" : "border-b-0",
|
|
72
87
|
props.collapsible ? "cursor-pointer" : "",
|
|
@@ -75,6 +90,8 @@ const headerContainerComputedClass = computed(() => [
|
|
|
75
90
|
const backgroundColor = computed(() => {
|
|
76
91
|
switch (props.color) {
|
|
77
92
|
case "blue":
|
|
93
|
+
return "bg-blue-500";
|
|
94
|
+
case "aliceblue":
|
|
78
95
|
return "bg-background-alice-blue";
|
|
79
96
|
case "orange":
|
|
80
97
|
return "bg-background-seashell";
|
|
@@ -85,10 +102,21 @@ const backgroundColor = computed(() => {
|
|
|
85
102
|
}
|
|
86
103
|
});
|
|
87
104
|
|
|
105
|
+
const textColor = computed(() => {
|
|
106
|
+
switch (props.color) {
|
|
107
|
+
case "blue":
|
|
108
|
+
return "text-core-white";
|
|
109
|
+
default:
|
|
110
|
+
return "text-core-black";
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
88
114
|
const borderColor = computed(() => {
|
|
89
115
|
switch (props.color) {
|
|
90
116
|
case "blue":
|
|
91
|
-
return "border-blue-
|
|
117
|
+
return "border-blue-500";
|
|
118
|
+
case "aliceblue":
|
|
119
|
+
return "border-background-alice-blue";
|
|
92
120
|
case "orange":
|
|
93
121
|
return "border-orange-200";
|
|
94
122
|
case "purple":
|
|
@@ -106,8 +134,7 @@ const atLeastOneButton = computed(
|
|
|
106
134
|
);
|
|
107
135
|
|
|
108
136
|
function toggleOpen() {
|
|
109
|
-
if (props.collapsible)
|
|
110
|
-
isOpen.value = !isOpen.value;
|
|
137
|
+
if (props.collapsible) isOpen.value = !isOpen.value;
|
|
111
138
|
}
|
|
112
139
|
|
|
113
140
|
onMounted(() => {
|
|
@@ -121,10 +148,10 @@ onMounted(() => {
|
|
|
121
148
|
);
|
|
122
149
|
});
|
|
123
150
|
|
|
124
|
-
defineExpose({
|
|
151
|
+
defineExpose({
|
|
125
152
|
/**
|
|
126
153
|
* Method to toggle the card open/closed state
|
|
127
154
|
*/
|
|
128
|
-
toggleOpen
|
|
155
|
+
toggleOpen,
|
|
129
156
|
});
|
|
130
157
|
</script>
|
|
@@ -159,4 +159,35 @@ describe("FzCard", () => {
|
|
|
159
159
|
await wrapper.find("header").find("button").trigger("click");
|
|
160
160
|
expect(wrapper.find("article").exists()).toBeTruthy();
|
|
161
161
|
});
|
|
162
|
+
|
|
163
|
+
it("should hide the header when no title is defined", async () => {
|
|
164
|
+
const wrapper = mount(FzCard, {
|
|
165
|
+
props: {},
|
|
166
|
+
});
|
|
167
|
+
await wrapper.vm.$nextTick();
|
|
168
|
+
|
|
169
|
+
expect(wrapper.find("header").exists()).toBeFalsy();
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it("should show the header when no title is defined but header slot is", async () => {
|
|
173
|
+
const wrapper = mount(FzCard, {
|
|
174
|
+
slots: {
|
|
175
|
+
header: "<div>Header</div>",
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
await wrapper.vm.$nextTick();
|
|
179
|
+
|
|
180
|
+
expect(wrapper.find("header").exists()).toBeTruthy();
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
it("should show the header when no title is defined but header-content slot is", async () => {
|
|
184
|
+
const wrapper = mount(FzCard, {
|
|
185
|
+
slots: {
|
|
186
|
+
"header-content": "<div>Header</div>",
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
await wrapper.vm.$nextTick();
|
|
190
|
+
|
|
191
|
+
expect(wrapper.find("header").exists()).toBeTruthy();
|
|
192
|
+
});
|
|
162
193
|
});
|
package/src/types.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type FzCardProps = {
|
|
|
2
2
|
/**
|
|
3
3
|
* The title of the card
|
|
4
4
|
*/
|
|
5
|
-
title
|
|
5
|
+
title?: string;
|
|
6
6
|
/**
|
|
7
7
|
* The background color of the card
|
|
8
8
|
*/
|
|
@@ -45,41 +45,41 @@ type FzCardIconButton = {
|
|
|
45
45
|
icon: string;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export type FzCardColor = "purple" | "orange" | "blue";
|
|
48
|
+
export type FzCardColor = "purple" | "orange" | "blue" | "aliceblue";
|
|
49
49
|
|
|
50
50
|
export interface FzCardEvents {
|
|
51
51
|
/**
|
|
52
52
|
* Event emitted when the primary action is clicked
|
|
53
53
|
* @type {() => void}
|
|
54
54
|
*/
|
|
55
|
-
(event:
|
|
55
|
+
(event: "fzprimary:click"): void;
|
|
56
56
|
/**
|
|
57
57
|
* Event emitted when the secondary action is clicked
|
|
58
58
|
* @type {() => void}
|
|
59
59
|
*/
|
|
60
|
-
(event:
|
|
60
|
+
(event: "fzsecondary:click"): void;
|
|
61
61
|
/**
|
|
62
62
|
* Event emitted when the tertiary action is clicked
|
|
63
63
|
* @type {() => void}
|
|
64
64
|
*/
|
|
65
|
-
(event:
|
|
65
|
+
(event: "fztertiary:click"): void;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export interface FzCardSlots {
|
|
69
69
|
/**
|
|
70
70
|
* Slot for the content of the card
|
|
71
71
|
*/
|
|
72
|
-
default(props:{}): any;
|
|
72
|
+
default(props: {}): any;
|
|
73
73
|
/**
|
|
74
74
|
* Slot for the header, it will be displayed on the left of the title
|
|
75
75
|
*/
|
|
76
|
-
header(props:{}): any;
|
|
76
|
+
header(props: {}): any;
|
|
77
77
|
/**
|
|
78
78
|
* Slot for the header content, it will be displayed below the title
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
"header-content"(props: {}): any;
|
|
81
81
|
/**
|
|
82
82
|
* Slot for the footer of the card
|
|
83
83
|
*/
|
|
84
|
-
footer(props:{}): any;
|
|
84
|
+
footer(props: {}): any;
|
|
85
85
|
}
|
|
@@ -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","../button/src/types.ts","../../node_modules/.pnpm/@vue+shared@3.5.12/node_modules/@vue/shared/dist/shared.d.ts","../../node_modules/.pnpm/@vue+reactivity@3.5.12/node_modules/@vue/reactivity/dist/reactivity.d.ts","../../node_modules/.pnpm/@vue+runtime-core@3.5.12/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","../../node_modules/.pnpm/@vue+runtime-dom@3.5.12/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts","../../node_modules/.pnpm/vue@3.5.12_typescript@5.4.2/node_modules/vue/jsx-runtime/index.d.ts","../../node_modules/.pnpm/@babel+types@7.25.8/node_modules/@babel/types/lib/index.d.ts","../../node_modules/.pnpm/@babel+parser@7.25.8/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/.pnpm/@vue+compiler-core@3.5.12/node_modules/@vue/compiler-core/dist/compiler-core.d.ts","../../node_modules/.pnpm/@vue+compiler-dom@3.5.12/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts","../../node_modules/.pnpm/vue@3.5.12_typescript@5.4.2/node_modules/vue/dist/vue.d.mts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.6.0/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.6.0/node_modules/@fortawesome/fontawesome-svg-core/index.d.ts","../../node_modules/.pnpm/@fortawesome+fontawesome-common-types@6.7.0/node_modules/@fortawesome/fontawesome-common-types/index.d.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.194/node_modules/@awesome.me/kit-8137893ad3/icons/modules/icon-types.ts","../../node_modules/.pnpm/@awesome.me+kit-8137893ad3@1.0.194/node_modules/@awesome.me/kit-8137893ad3/icons/modules/index.d.ts","../../node_modules/.pnpm/@fortawesome+vue-fontawesome@3.0.8_@fortawesome+fontawesome-svg-core@6.6.0_vue@3.5.12_typescript@5.4.2_/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/fzbuttongroup.vue.ts","../button/src/index.ts","./src/fzcard.vue.ts","./__vls_types.d.ts","./src/index.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/constants/dom-events.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/createdomevent.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/types.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/vuewrapper.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/interfaces/wrapperlike.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/basewrapper.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/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+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/mount.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/rendertostring.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/components/routerlinkstub.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/errorwrapper.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/vnodetransformers/util.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/vnodetransformers/stubcomponentstransformer.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/config.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/utils/flushpromises.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/utils/autounmount.d.ts","../../node_modules/.pnpm/@vue+test-utils@2.4.3_@vue+server-renderer@3.5.12_vue@3.4.13_typescript@5.3.3___vue@3.4.13_typescript@5.3.3_/node_modules/@vue/test-utils/dist/index.d.ts","../../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__/fzcard.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",{"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",{"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",{"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,[85,87],253],"options":{"composite":true,"esModuleInterop":true,"jsx":1,"jsxImportSource":"vue","module":99,"noImplicitThis":true,"skipLibCheck":true,"strict":true,"target":99,"useDefineForClassFields":true},"fileIdsList":[[52,73],[74],[53],[66],[71],[70,72],[108],[119],[155],[156,161,189],[157,168,169,176,186,197],[157,158,168,176],[159,198],[160,161,169,177],[161,186,194],[162,164,168,176],[155,163],[164,165],[168],[166,168],[155,168],[168,169,170,186,197],[168,169,170,183,186,189],[153,202],[164,168,171,176,186,197],[168,169,171,172,176,186,194,197],[171,173,186,194,197],[119,120,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,204],[168,174],[175,197,202],[164,168,176,186],[177],[178],[155,179],[180,196,202],[181],[182],[168,183,184],[183,185,198,200],[156,168,186,187,188,189],[156,186,188],[186,187],[189],[190],[155,186],[168,192,193],[192,193],[161,176,186,194],[195],[176,196],[156,171,182,197],[161,198],[186,199],[175,200],[201],[156,161,168,170,179,186,197,200,202],[186,203],[111,114],[241],[111,112,114,115,116],[111],[111,112,114],[111,112],[237],[110,237],[110,237,238],[110,113],[106],[106,107,110],[110],[47,53,54,55],[53,61,67],[56],[68],[47],[61],[47,48,49],[61,62,63,64],[49,50],[50,62,63,64],[58,88,89,90,91,92,94],[58],[90,91,94,101],[88],[58,90,93],[90,91,93,94,96,97,98,99,102,103,104],[58,88,89,90,91,94],[58,90,91,95],[58,90,96],[58,91],[58,100],[58,90,93,94],[226],[224,226],[215,223,224,225,227],[213],[216,221,226,229],[212,229],[216,217,220,221,222,229],[216,217,218,220,221,229],[213,214,215,216,217,221,222,223,225,226,227,229],[229],[55,213,214,215,216,217,218,220,221,222,223,224,225,226,227,228],[55,229],[216,218,219,221,222,229],[220,229],[221,222,226,229],[214,224],[109],[207,232],[206],[55],[130,134,197],[130,186,197],[125],[127,130,194,197],[176,194],[205],[125,205],[127,130,176,197],[122,123,126,129,156,168,186,197],[122,128],[126,130,156,189,197,205],[156,205],[146,156,205],[124,125,205],[130],[124,125,126,127,128,129,130,131,132,134,135,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,152],[130,137,138],[128,130,138,139],[129],[122,125,130],[130,134,138,139],[134],[128,130,133,197],[122,127,128,130,134,137],[156,186],[125,130,146,156,202,205],[234,235],[234],[233,234,235,247],[168,169,171,172,173,176,186,194,197,203,205,207,208,209,210,211,230,231,232],[209],[207],[111,117,118,169,202,233,236,239,240,242,243,244,245,246,247],[111,114,117,118,169,202,233,236,239,240,242,243,244,245,246,247,248,249,250,251],[117,118,243,247],[51,57],[51],[64,69],[64],[52,58,60,79,80],[52,58,60],[52,58,60,79,80,81],[52,60,81,82,83],[52],[52,60,79],[52,58],[52,85,105,252],[52,58,59,84],[52,59,85],[65,70,75,76,77],[65,70,72,75,77,78],[65]],"referencedMap":[[74,1],[75,2],[54,3],[67,4],[72,5],[76,6],[109,7],[119,8],[120,8],[155,9],[156,10],[157,11],[158,12],[159,13],[160,14],[161,15],[162,16],[163,17],[164,18],[165,18],[167,19],[166,20],[168,21],[169,22],[170,23],[154,24],[171,25],[172,26],[173,27],[205,28],[174,29],[175,30],[176,31],[177,32],[178,33],[179,34],[180,35],[181,36],[182,37],[183,38],[184,38],[185,39],[186,40],[188,41],[187,42],[189,43],[190,44],[191,45],[192,46],[193,47],[194,48],[195,49],[196,50],[197,51],[198,52],[199,53],[200,54],[201,55],[202,56],[203,57],[241,58],[242,59],[117,60],[112,61],[115,62],[118,63],[250,64],[238,65],[239,66],[245,66],[114,67],[116,67],[107,68],[111,69],[113,70],[56,71],[68,72],[57,73],[69,74],[48,75],[62,76],[49,77],[63,78],[51,79],[64,80],[93,81],[98,82],[102,83],[89,84],[94,85],[105,86],[92,87],[96,88],[97,89],[90,82],[104,90],[101,91],[100,82],[91,92],[227,93],[225,94],[226,95],[214,96],[215,94],[222,97],[213,98],[218,99],[219,100],[224,101],[230,102],[229,103],[212,104],[220,105],[221,106],[216,107],[223,93],[217,108],[110,109],[208,110],[207,111],[55,112],[137,113],[144,114],[136,113],[151,115],[128,116],[127,117],[150,118],[145,119],[148,120],[130,121],[129,122],[125,123],[124,124],[147,125],[126,126],[131,127],[135,127],[153,128],[152,127],[139,129],[140,130],[142,131],[138,132],[141,133],[146,118],[133,134],[134,135],[143,136],[123,137],[149,138],[244,139],[235,140],[236,139],[246,141],[233,142],[210,143],[232,144],[251,145],[252,146],[247,145],[248,147],[58,148],[52,149],[70,150],[65,151],[81,152],[83,153],[82,154],[84,155],[60,156],[80,157],[86,158],[253,159],[85,160],[87,161],[59,156],[78,162],[79,163],[77,164]],"exportedModulesMap":[[74,1],[75,2],[54,3],[67,4],[72,5],[76,6],[109,7],[119,8],[120,8],[155,9],[156,10],[157,11],[158,12],[159,13],[160,14],[161,15],[162,16],[163,17],[164,18],[165,18],[167,19],[166,20],[168,21],[169,22],[170,23],[154,24],[171,25],[172,26],[173,27],[205,28],[174,29],[175,30],[176,31],[177,32],[178,33],[179,34],[180,35],[181,36],[182,37],[183,38],[184,38],[185,39],[186,40],[188,41],[187,42],[189,43],[190,44],[191,45],[192,46],[193,47],[194,48],[195,49],[196,50],[197,51],[198,52],[199,53],[200,54],[201,55],[202,56],[203,57],[241,58],[242,59],[117,60],[112,61],[115,62],[118,63],[250,64],[238,65],[239,66],[245,66],[114,67],[116,67],[107,68],[111,69],[113,70],[56,71],[68,72],[57,73],[69,74],[48,75],[62,76],[49,77],[63,78],[51,79],[64,80],[93,81],[98,82],[102,83],[89,84],[94,85],[105,86],[92,87],[96,88],[97,89],[90,82],[104,90],[101,91],[100,82],[91,92],[227,93],[225,94],[226,95],[214,96],[215,94],[222,97],[213,98],[218,99],[219,100],[224,101],[230,102],[229,103],[212,104],[220,105],[221,106],[216,107],[223,93],[217,108],[110,109],[208,110],[207,111],[55,112],[137,113],[144,114],[136,113],[151,115],[128,116],[127,117],[150,118],[145,119],[148,120],[130,121],[129,122],[125,123],[124,124],[147,125],[126,126],[131,127],[135,127],[153,128],[152,127],[139,129],[140,130],[142,131],[138,132],[141,133],[146,118],[133,134],[134,135],[143,136],[123,137],[149,138],[244,139],[235,140],[236,139],[246,141],[233,142],[210,143],[232,144],[251,145],[252,146],[247,145],[248,147],[58,148],[52,149],[70,150],[65,151],[81,152],[83,153],[82,154],[84,155],[60,156],[80,157],[86,158],[253,159],[85,160],[87,161],[59,156],[78,162],[79,163],[77,164]],"semanticDiagnosticsPerFile":[74,75,54,67,53,66,71,73,72,76,109,108,206,119,120,155,156,157,158,159,160,161,162,163,164,165,167,166,168,169,170,154,204,171,172,173,205,174,175,176,177,178,179,180,181,182,183,184,185,186,188,187,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,240,241,242,117,112,115,118,237,250,238,239,245,249,114,116,107,111,113,106,56,68,57,69,48,62,49,63,51,64,47,61,93,98,102,88,89,94,99,105,92,96,97,90,104,103,101,100,91,121,50,211,227,225,226,214,215,222,213,218,228,219,224,230,229,212,220,221,216,223,217,110,208,207,55,243,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,137,144,136,151,128,127,150,145,148,130,129,125,124,147,126,131,132,135,122,153,152,139,140,142,138,141,146,133,134,143,123,149,244,235,236,246,234,233,210,209,231,232,251,252,247,248,95,58,52,70,65,81,83,82,84,60,80,86,253,85,87,59,78,79,77],"affectedFilesPendingEmit":[253,85,87,59],"emitSignatures":[59,85,87,253]},"version":"5.3.3"}
|