@lichta/vue 2.0.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 +71 -0
- package/dist/Calendar.vue.d.ts +37 -0
- package/dist/index.d.ts +1 -0
- package/dist/lichta-vue.es.js +139 -0
- package/dist/lichta-vue.umd.js +1 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zeforc Labs
|
|
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,71 @@
|
|
|
1
|
+
# @lichta/vue
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@lichta/vue)
|
|
4
|
+
|
|
5
|
+
Component `Calendar` (lịch tháng có ngày âm lịch) cho Vue 3, đóng gói trên [`@lichta/core`](https://www.npmjs.com/package/@lichta/core).
|
|
6
|
+
|
|
7
|
+
## Cài đặt
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @lichta/vue
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
`@lichta/core` được cài kèm tự động (dependency thường), nhưng bạn cần cài `vue` (peer dependency, `^3.0.0`) nếu dự án chưa có.
|
|
14
|
+
|
|
15
|
+
## Sử dụng
|
|
16
|
+
|
|
17
|
+
```vue
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import { Calendar } from '@lichta/vue';
|
|
20
|
+
import '@lichta/core/styles/calendar-base.css';
|
|
21
|
+
import '@lichta/core/styles/calendar-glass.css'; // theme "glass" (tùy chọn)
|
|
22
|
+
import type { LunarDate } from '@lichta/core';
|
|
23
|
+
|
|
24
|
+
function onSelect(date: Date, lunar: LunarDate) {
|
|
25
|
+
console.log(date, lunar);
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<Calendar theme="glass" locale="vi" @select="onSelect" />
|
|
31
|
+
</template>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
> ⚠️ `Calendar` chỉ export class CSS (`lich-ta-calendar`, ...) — bạn **phải tự import** file CSS ở trên (hoặc CSS tương đương của riêng bạn), nếu không lịch sẽ hiển thị không có style.
|
|
35
|
+
|
|
36
|
+
## Props
|
|
37
|
+
|
|
38
|
+
| Prop | Kiểu | Mặc định | Mô tả |
|
|
39
|
+
|---|---|---|---|
|
|
40
|
+
| `month` | `number` | Tháng hiện tại | Tháng hiển thị ban đầu (1–12) |
|
|
41
|
+
| `year` | `number` | Năm hiện tại | Năm hiển thị ban đầu |
|
|
42
|
+
| `showLunar` | `boolean` | `true` | Hiện ngày âm lịch dưới ngày dương |
|
|
43
|
+
| `locale` | `'vi' \| 'en' \| 'ja' \| 'ko'` | `'vi'` | Ngôn ngữ nhãn thứ trong tuần |
|
|
44
|
+
| `theme` | `'classic' \| 'glass'` | `'classic'` | Giao diện lịch |
|
|
45
|
+
|
|
46
|
+
## Events
|
|
47
|
+
|
|
48
|
+
| Event | Payload | Mô tả |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| `select` | `(date: Date, lunar: LunarDate)` | Bắn ra khi người dùng chọn 1 ngày |
|
|
51
|
+
|
|
52
|
+
> Khác với `@lichta/react`/`@lichta/svelte` (dùng prop `onSelect`), Vue theo đúng convention của framework nên dùng `emit`/`@select` thay vì prop callback. Component cũng chưa hỗ trợ custom render cho từng ô ngày (có ở React/Svelte qua `renderDay`/`dayCell`) hay điều khiển `month`/`year` như controlled prop — thay đổi prop sau khi mount chưa tự động cập nhật lại lịch đang hiển thị.
|
|
53
|
+
|
|
54
|
+
## Theming
|
|
55
|
+
|
|
56
|
+
```css
|
|
57
|
+
:root {
|
|
58
|
+
--lichta-primary: #d4a373;
|
|
59
|
+
--lichta-bg: #fffcf7;
|
|
60
|
+
--lichta-text: #2c1810;
|
|
61
|
+
--lichta-today-bg: #d4a373;
|
|
62
|
+
--lichta-selected-bg: #a0522d;
|
|
63
|
+
--lichta-lunar-text: #b08968;
|
|
64
|
+
--lichta-radius: 8px;
|
|
65
|
+
--lichta-font: 'Inter', sans-serif;
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
[MIT](./LICENSE)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type LunarDate, type Locale } from '@lichta/core';
|
|
2
|
+
interface Props {
|
|
3
|
+
month?: number;
|
|
4
|
+
year?: number;
|
|
5
|
+
showLunar?: boolean;
|
|
6
|
+
locale?: Locale;
|
|
7
|
+
theme?: 'classic' | 'glass';
|
|
8
|
+
}
|
|
9
|
+
export interface DayCellData {
|
|
10
|
+
solar: Date;
|
|
11
|
+
lunar: LunarDate;
|
|
12
|
+
isToday: boolean;
|
|
13
|
+
isSelected: boolean;
|
|
14
|
+
isCurrentMonth: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare var __VLS_1: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
+
select: (date: Date, lunar: LunarDate) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
23
|
+
onSelect?: ((date: Date, lunar: LunarDate) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
month: number;
|
|
26
|
+
year: number;
|
|
27
|
+
showLunar: boolean;
|
|
28
|
+
locale: Locale;
|
|
29
|
+
theme: "classic" | "glass";
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Calendar } from './Calendar.vue';
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent as q, ref as $, computed as L, openBlock as i, createElementBlock as d, normalizeClass as b, createElementVNode as l, toDisplayString as o, Fragment as T, renderList as N, createTextVNode as Y, createCommentVNode as x, renderSlot as A } from "vue";
|
|
2
|
+
import { getYearDetails as H, LichTa as w } from "@lichta/core";
|
|
3
|
+
const J = { class: "lich-ta-calendar-header" }, P = { class: "lich-ta-calendar-title" }, Q = { class: "lich-ta-calendar-month-year" }, R = { class: "lich-ta-calendar-canchi" }, U = { class: "lich-ta-calendar-weekdays" }, X = { class: "lich-ta-calendar-grid" }, Z = ["tabindex", "onClick", "onKeydown"], ee = { class: "solar-day" }, ae = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "lunar-day"
|
|
6
|
+
}, te = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "lich-ta-calendar-footer"
|
|
9
|
+
}, le = /* @__PURE__ */ q({
|
|
10
|
+
__name: "Calendar",
|
|
11
|
+
props: {
|
|
12
|
+
month: { default: (/* @__PURE__ */ new Date()).getMonth() + 1 },
|
|
13
|
+
year: { default: (/* @__PURE__ */ new Date()).getFullYear() },
|
|
14
|
+
showLunar: { type: Boolean, default: !0 },
|
|
15
|
+
locale: { default: "vi" },
|
|
16
|
+
theme: { default: "classic" }
|
|
17
|
+
},
|
|
18
|
+
emits: ["select"],
|
|
19
|
+
setup(F, { emit: B }) {
|
|
20
|
+
const v = F, e = $(v.month), s = $(v.year), h = $(null), C = L(() => H(s.value)), E = B, K = [
|
|
21
|
+
"Tháng 1",
|
|
22
|
+
"Tháng 2",
|
|
23
|
+
"Tháng 3",
|
|
24
|
+
"Tháng 4",
|
|
25
|
+
"Tháng 5",
|
|
26
|
+
"Tháng 6",
|
|
27
|
+
"Tháng 7",
|
|
28
|
+
"Tháng 8",
|
|
29
|
+
"Tháng 9",
|
|
30
|
+
"Tháng 10",
|
|
31
|
+
"Tháng 11",
|
|
32
|
+
"Tháng 12"
|
|
33
|
+
], V = ["CN", "T2", "T3", "T4", "T5", "T6", "T7"], I = L(() => {
|
|
34
|
+
const t = [], y = new Date(s.value, e.value - 1, 1), a = new Date(s.value, e.value, 0), D = y.getDay(), g = a.getDate(), p = /* @__PURE__ */ new Date(), _ = `${p.getFullYear()}-${p.getMonth() + 1}-${p.getDate()}`;
|
|
35
|
+
let f = "";
|
|
36
|
+
h.value && (f = `${h.value.getFullYear()}-${h.value.getMonth() + 1}-${h.value.getDate()}`);
|
|
37
|
+
const W = new Date(s.value, e.value - 1, 0).getDate();
|
|
38
|
+
for (let n = D - 1; n >= 0; n--) {
|
|
39
|
+
const r = W - n, c = e.value - 1 < 1 ? 12 : e.value - 1, u = e.value - 1 < 1 ? s.value - 1 : s.value, k = new Date(u, c - 1, r), m = w.toLunar(r, c, u), S = `${u}-${c}-${r}`;
|
|
40
|
+
t.push({
|
|
41
|
+
solar: k,
|
|
42
|
+
lunar: m,
|
|
43
|
+
isToday: S === _,
|
|
44
|
+
isSelected: S === f,
|
|
45
|
+
isCurrentMonth: !1
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
for (let n = 1; n <= g; n++) {
|
|
49
|
+
const r = new Date(s.value, e.value - 1, n), c = w.toLunar(n, e.value, s.value), u = `${s.value}-${e.value}-${n}`;
|
|
50
|
+
t.push({
|
|
51
|
+
solar: r,
|
|
52
|
+
lunar: c,
|
|
53
|
+
isToday: u === _,
|
|
54
|
+
isSelected: u === f,
|
|
55
|
+
isCurrentMonth: !0
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
const j = 42 - t.length;
|
|
59
|
+
for (let n = 1; n <= j; n++) {
|
|
60
|
+
const r = e.value + 1 > 12 ? 1 : e.value + 1, c = e.value + 1 > 12 ? s.value + 1 : s.value, u = new Date(c, r - 1, n), k = w.toLunar(n, r, c), m = `${c}-${r}-${n}`;
|
|
61
|
+
t.push({
|
|
62
|
+
solar: u,
|
|
63
|
+
lunar: k,
|
|
64
|
+
isToday: m === _,
|
|
65
|
+
isSelected: m === f,
|
|
66
|
+
isCurrentMonth: !1
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return t;
|
|
70
|
+
});
|
|
71
|
+
function z() {
|
|
72
|
+
e.value === 1 ? (e.value = 12, s.value -= 1) : e.value -= 1;
|
|
73
|
+
}
|
|
74
|
+
function G() {
|
|
75
|
+
e.value === 12 ? (e.value = 1, s.value += 1) : e.value += 1;
|
|
76
|
+
}
|
|
77
|
+
function M(t) {
|
|
78
|
+
h.value = t.solar, E("select", t.solar, t.lunar);
|
|
79
|
+
}
|
|
80
|
+
function O(t, y) {
|
|
81
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), M(y));
|
|
82
|
+
}
|
|
83
|
+
return (t, y) => (i(), d("div", {
|
|
84
|
+
class: b(["lich-ta-calendar", `lichta-theme-${v.theme}`])
|
|
85
|
+
}, [
|
|
86
|
+
l("div", J, [
|
|
87
|
+
l("button", {
|
|
88
|
+
class: "lich-ta-calendar-nav",
|
|
89
|
+
"aria-label": "Tháng trước",
|
|
90
|
+
onClick: z
|
|
91
|
+
}, "◀"),
|
|
92
|
+
l("div", P, [
|
|
93
|
+
l("span", Q, o(K[e.value - 1]) + ", " + o(s.value), 1),
|
|
94
|
+
l("span", R, o(C.value.can) + " " + o(C.value.chi), 1)
|
|
95
|
+
]),
|
|
96
|
+
l("button", {
|
|
97
|
+
class: "lich-ta-calendar-nav",
|
|
98
|
+
"aria-label": "Tháng sau",
|
|
99
|
+
onClick: G
|
|
100
|
+
}, "▶")
|
|
101
|
+
]),
|
|
102
|
+
l("div", U, [
|
|
103
|
+
(i(), d(T, null, N(V, (a) => l("div", {
|
|
104
|
+
key: a,
|
|
105
|
+
class: "lich-ta-calendar-weekday"
|
|
106
|
+
}, o(a), 1)), 64))
|
|
107
|
+
]),
|
|
108
|
+
l("div", X, [
|
|
109
|
+
(i(!0), d(T, null, N(I.value, (a, D) => (i(), d("button", {
|
|
110
|
+
key: D,
|
|
111
|
+
class: b(["lich-ta-calendar-day", {
|
|
112
|
+
"is-today": a.isToday,
|
|
113
|
+
"is-selected": a.isSelected,
|
|
114
|
+
"is-other-month": !a.isCurrentMonth,
|
|
115
|
+
"is-first-lunar": a.lunar.day === 1
|
|
116
|
+
}]),
|
|
117
|
+
tabindex: a.isCurrentMonth ? 0 : -1,
|
|
118
|
+
onClick: (g) => M(a),
|
|
119
|
+
onKeydown: (g) => O(g, a)
|
|
120
|
+
}, [
|
|
121
|
+
l("span", ee, o(a.solar.getDate()), 1),
|
|
122
|
+
v.showLunar ? (i(), d("span", ae, [
|
|
123
|
+
a.lunar.day === 1 ? (i(), d(T, { key: 0 }, [
|
|
124
|
+
Y(o(a.lunar.day) + "/" + o(a.lunar.month) + o(a.lunar.isLeap ? "*" : ""), 1)
|
|
125
|
+
], 64)) : (i(), d(T, { key: 1 }, [
|
|
126
|
+
Y(o(a.lunar.day), 1)
|
|
127
|
+
], 64))
|
|
128
|
+
])) : x("", !0)
|
|
129
|
+
], 42, Z))), 128))
|
|
130
|
+
]),
|
|
131
|
+
t.$slots.default ? (i(), d("div", te, [
|
|
132
|
+
A(t.$slots, "default")
|
|
133
|
+
])) : x("", !0)
|
|
134
|
+
], 2));
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
export {
|
|
138
|
+
le as Calendar
|
|
139
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(c,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@lichta/core")):typeof define=="function"&&define.amd?define(["exports","vue","@lichta/core"],e):(c=typeof globalThis<"u"?globalThis:c||self,e(c.LichTaVue={},c.Vue,c.LichTaCore))})(this,(function(c,e,h){"use strict";const E={class:"lich-ta-calendar-header"},$={class:"lich-ta-calendar-title"},w={class:"lich-ta-calendar-month-year"},B={class:"lich-ta-calendar-canchi"},N={class:"lich-ta-calendar-weekdays"},V={class:"lich-ta-calendar-grid"},L=["tabindex","onClick","onKeydown"],M={class:"solar-day"},b={key:0,class:"lunar-day"},F={key:0,class:"lich-ta-calendar-footer"},x=e.defineComponent({__name:"Calendar",props:{month:{default:new Date().getMonth()+1},year:{default:new Date().getFullYear()},showLunar:{type:Boolean,default:!0},locale:{default:"vi"},theme:{default:"classic"}},emits:["select"],setup(Y,{emit:K}){const u=Y,t=e.ref(u.month),l=e.ref(u.year),d=e.ref(null),_=e.computed(()=>h.getYearDetails(l.value)),j=K,q=["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],v=["CN","T2","T3","T4","T5","T6","T7"],z=e.computed(()=>{const n=[],y=new Date(l.value,t.value-1,1),a=new Date(l.value,t.value,0),f=y.getDay(),m=a.getDate(),D=new Date,T=`${D.getFullYear()}-${D.getMonth()+1}-${D.getDate()}`;let g="";d.value&&(g=`${d.value.getFullYear()}-${d.value.getMonth()+1}-${d.value.getDate()}`);const P=new Date(l.value,t.value-1,0).getDate();for(let o=f-1;o>=0;o--){const s=P-o,r=t.value-1<1?12:t.value-1,i=t.value-1<1?l.value-1:l.value,k=new Date(i,r-1,s),p=h.LichTa.toLunar(s,r,i),C=`${i}-${r}-${s}`;n.push({solar:k,lunar:p,isToday:C===T,isSelected:C===g,isCurrentMonth:!1})}for(let o=1;o<=m;o++){const s=new Date(l.value,t.value-1,o),r=h.LichTa.toLunar(o,t.value,l.value),i=`${l.value}-${t.value}-${o}`;n.push({solar:s,lunar:r,isToday:i===T,isSelected:i===g,isCurrentMonth:!0})}const W=42-n.length;for(let o=1;o<=W;o++){const s=t.value+1>12?1:t.value+1,r=t.value+1>12?l.value+1:l.value,i=new Date(r,s-1,o),k=h.LichTa.toLunar(o,s,r),p=`${r}-${s}-${o}`;n.push({solar:i,lunar:k,isToday:p===T,isSelected:p===g,isCurrentMonth:!1})}return n});function I(){t.value===1?(t.value=12,l.value-=1):t.value-=1}function O(){t.value===12?(t.value=1,l.value+=1):t.value+=1}function S(n){d.value=n.solar,j("select",n.solar,n.lunar)}function G(n,y){(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),S(y))}return(n,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["lich-ta-calendar",`lichta-theme-${u.theme}`])},[e.createElementVNode("div",E,[e.createElementVNode("button",{class:"lich-ta-calendar-nav","aria-label":"Tháng trước",onClick:I},"◀"),e.createElementVNode("div",$,[e.createElementVNode("span",w,e.toDisplayString(q[t.value-1])+", "+e.toDisplayString(l.value),1),e.createElementVNode("span",B,e.toDisplayString(_.value.can)+" "+e.toDisplayString(_.value.chi),1)]),e.createElementVNode("button",{class:"lich-ta-calendar-nav","aria-label":"Tháng sau",onClick:O},"▶")]),e.createElementVNode("div",N,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(v,a=>e.createElementVNode("div",{key:a,class:"lich-ta-calendar-weekday"},e.toDisplayString(a),1)),64))]),e.createElementVNode("div",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(a,f)=>(e.openBlock(),e.createElementBlock("button",{key:f,class:e.normalizeClass(["lich-ta-calendar-day",{"is-today":a.isToday,"is-selected":a.isSelected,"is-other-month":!a.isCurrentMonth,"is-first-lunar":a.lunar.day===1}]),tabindex:a.isCurrentMonth?0:-1,onClick:m=>S(a),onKeydown:m=>G(m,a)},[e.createElementVNode("span",M,e.toDisplayString(a.solar.getDate()),1),u.showLunar?(e.openBlock(),e.createElementBlock("span",b,[a.lunar.day===1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.lunar.day)+"/"+e.toDisplayString(a.lunar.month)+e.toDisplayString(a.lunar.isLeap?"*":""),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.lunar.day),1)],64))])):e.createCommentVNode("",!0)],42,L))),128))]),n.$slots.default?(e.openBlock(),e.createElementBlock("div",F,[e.renderSlot(n.$slots,"default")])):e.createCommentVNode("",!0)],2))}});c.Calendar=x,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lichta/vue",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Vue components for LichTa",
|
|
5
|
+
"author": "Zeforc Labs | Stridev",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/lichta-vue.umd.js",
|
|
9
|
+
"module": "./dist/lichta-vue.es.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/lichta-vue.es.js",
|
|
15
|
+
"require": "./dist/lichta-vue.umd.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@lichta/core": "2.0.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"vue": "^3.0.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
30
|
+
"typescript": "^5.7.3",
|
|
31
|
+
"vite": "^6.0.0",
|
|
32
|
+
"vue": "^3.5.0",
|
|
33
|
+
"vue-tsc": "^2.2.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vite build && vue-tsc --emitDeclarationOnly",
|
|
37
|
+
"dev": "vite build --watch",
|
|
38
|
+
"lint": "eslint src/**/*.vue"
|
|
39
|
+
}
|
|
40
|
+
}
|