@pr0vin/np-date-picker-vue-tw 1.0.0 → 1.0.3
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
::-webkit-scrollbar{width:3px}::-webkit-scrollbar-thumb{background:transparent;transition:background .2s}:hover::-webkit-scrollbar-thumb{background:#cbd5e1}select:focus{outline:none!important;box-shadow:none!important}select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:none}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
class
|
|
1
|
+
import { ref as N, onMounted as L, watch as P, createElementBlock as g, openBlock as b, createElementVNode as s, createCommentVNode as I, withDirectives as Y, Fragment as k, renderList as C, toDisplayString as $, vModelSelect as B, unref as E, normalizeClass as F } from "vue";
|
|
2
|
+
class j {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.bs = [
|
|
5
5
|
[2e3, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31],
|
|
@@ -118,7 +118,7 @@ class B {
|
|
|
118
118
|
num_day: 0
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
getDayOfWeek(
|
|
121
|
+
getDayOfWeek(l) {
|
|
122
122
|
return {
|
|
123
123
|
1: "आईतवार",
|
|
124
124
|
2: "सोमबार",
|
|
@@ -127,9 +127,9 @@ class B {
|
|
|
127
127
|
5: "बिहीबार",
|
|
128
128
|
6: "शुक्रबार",
|
|
129
129
|
7: "शनिबार"
|
|
130
|
-
}[
|
|
130
|
+
}[l];
|
|
131
131
|
}
|
|
132
|
-
getEnglishMonth(
|
|
132
|
+
getEnglishMonth(l) {
|
|
133
133
|
return {
|
|
134
134
|
1: "January",
|
|
135
135
|
2: "February",
|
|
@@ -143,9 +143,9 @@ class B {
|
|
|
143
143
|
10: "October",
|
|
144
144
|
11: "November",
|
|
145
145
|
12: "December"
|
|
146
|
-
}[
|
|
146
|
+
}[l];
|
|
147
147
|
}
|
|
148
|
-
getNepaliMonth(
|
|
148
|
+
getNepaliMonth(l) {
|
|
149
149
|
return {
|
|
150
150
|
1: "बैशाख",
|
|
151
151
|
2: "जेष्ठ",
|
|
@@ -159,169 +159,206 @@ class B {
|
|
|
159
159
|
10: "माघ",
|
|
160
160
|
11: "फाल्गुन",
|
|
161
161
|
12: "चैत्र"
|
|
162
|
-
}[
|
|
162
|
+
}[l];
|
|
163
163
|
}
|
|
164
|
-
isLeapYear(
|
|
165
|
-
return
|
|
164
|
+
isLeapYear(l) {
|
|
165
|
+
return l % 4 === 0 && l % 100 !== 0 || l % 400 === 0;
|
|
166
166
|
}
|
|
167
|
-
convertToNepaliNumber(
|
|
167
|
+
convertToNepaliNumber(l) {
|
|
168
168
|
const d = ["०", "१", "२", "३", "४", "५", "६", "७", "८", "९"];
|
|
169
|
-
return String(
|
|
169
|
+
return String(l).split("").map((v) => /[0-9]/.test(v) ? d[v] : v).join("");
|
|
170
170
|
}
|
|
171
|
-
engToNep(
|
|
172
|
-
if (
|
|
171
|
+
engToNep(l, d, v) {
|
|
172
|
+
if (l < 1944 || l > 2033)
|
|
173
173
|
throw new Error("Supported only between 1944-2033");
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
for (let
|
|
177
|
-
m += this.isLeapYear(
|
|
178
|
-
for (let
|
|
179
|
-
m += this.isLeapYear(
|
|
180
|
-
m +=
|
|
174
|
+
const c = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], u = [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
175
|
+
let f = 1944, e = 2e3, n = 9, D = 16, m = 0, i = 0, h = 7, S = e, _ = n, x = n;
|
|
176
|
+
for (let p = f; p < l; p++)
|
|
177
|
+
m += this.isLeapYear(p) ? u.reduce((M, V) => M + V, 0) : c.reduce((M, V) => M + V, 0);
|
|
178
|
+
for (let p = 1; p < d; p++)
|
|
179
|
+
m += this.isLeapYear(l) ? u[p] : c[p];
|
|
180
|
+
m += v - 1;
|
|
181
181
|
let T = 1;
|
|
182
|
-
for (
|
|
183
|
-
let
|
|
184
|
-
|
|
182
|
+
for (i = D; m > 0; ) {
|
|
183
|
+
let p = this.bs[T][x];
|
|
184
|
+
i++, h++, i > p && (i = 1, _++, x++), _ > 12 && (_ = 1, S++), x > 12 && (x = 1, T++), h > 7 && (h = 1), m--;
|
|
185
185
|
}
|
|
186
186
|
return this.nep_date = {
|
|
187
187
|
year: S,
|
|
188
188
|
month: _,
|
|
189
|
-
date:
|
|
189
|
+
date: i,
|
|
190
190
|
day: this.getDayOfWeek(h),
|
|
191
191
|
nmonth: this.getNepaliMonth(_),
|
|
192
192
|
num_day: h
|
|
193
193
|
}, this.nep_date;
|
|
194
194
|
}
|
|
195
|
-
adToBs(
|
|
196
|
-
const [d,
|
|
197
|
-
return `${
|
|
195
|
+
adToBs(l) {
|
|
196
|
+
const [d, v, c] = l.split("-").map(Number), u = this.engToNep(d, v, c), f = u.year, e = u.month.toString().padStart(2, "0"), n = u.date.toString().padStart(2, "0");
|
|
197
|
+
return `${f}-${e}-${n}`;
|
|
198
198
|
}
|
|
199
|
-
getFirstDayOfMonth(
|
|
200
|
-
let
|
|
201
|
-
for (let
|
|
202
|
-
for (let
|
|
203
|
-
for (let
|
|
199
|
+
getFirstDayOfMonth(l, d) {
|
|
200
|
+
let v = 1944;
|
|
201
|
+
for (let c = v; c <= 2100; c++)
|
|
202
|
+
for (let u = 1; u <= 12; u++)
|
|
203
|
+
for (let f = 1; f <= 31; f++)
|
|
204
204
|
try {
|
|
205
|
-
const
|
|
206
|
-
if (
|
|
207
|
-
return
|
|
205
|
+
const e = this.engToNep(c, u, f);
|
|
206
|
+
if (e.year === l && e.month === d && e.date === 1)
|
|
207
|
+
return e.num_day;
|
|
208
208
|
} catch {
|
|
209
209
|
continue;
|
|
210
210
|
}
|
|
211
211
|
return null;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
const
|
|
214
|
+
const J = { class: "relative w-full nepali-calendar" }, z = ["value", "placeholder"], A = {
|
|
215
215
|
key: 0,
|
|
216
216
|
class: "absolute bg-white border shadow rounded p-3 mt-2 w-80 z-50"
|
|
217
|
-
},
|
|
217
|
+
}, U = { class: "flex items-center gap-3 mb-2 border-b border-gray-100" }, W = { class: "flex items-center w-36" }, q = { class: "relative" }, G = ["value"], H = { class: "relative w-full" }, K = { class: "flex items-center justify-between" }, Q = { class: "relative" }, R = ["value"], X = { class: "grid grid-cols-7 text-center font-semibold mb-1 text-gray-700 text-sm" }, Z = { class: "grid grid-cols-7 gap-1 text-center" }, e3 = ["onClick"], t3 = {
|
|
218
218
|
__name: "NepaliDatePicker",
|
|
219
|
-
props: {
|
|
219
|
+
props: {
|
|
220
|
+
modelValue: String,
|
|
221
|
+
placeholder: {
|
|
222
|
+
type: String,
|
|
223
|
+
default: "Select a date"
|
|
224
|
+
},
|
|
225
|
+
todayValue: {
|
|
226
|
+
type: Boolean,
|
|
227
|
+
default: !1
|
|
228
|
+
}
|
|
229
|
+
},
|
|
220
230
|
emits: ["update:modelValue"],
|
|
221
|
-
setup(
|
|
222
|
-
const d =
|
|
231
|
+
setup(w, { emit: l }) {
|
|
232
|
+
const d = w, v = l, c = new j(), u = N(!1), f = ["आईत", "सोम", "मंगल", "बुध", "बिही", "शुक्र", "शनि"], e = N(null), n = N(null), D = N([]), m = N(null), i = N({ year: 0, month: 0, day: 0 }), h = (a, r, t) => `${a}-${String(r).padStart(2, "0")}-${String(t).padStart(2, "0")}`;
|
|
223
233
|
function S() {
|
|
224
|
-
const
|
|
225
|
-
if (!
|
|
226
|
-
const
|
|
227
|
-
for (let o = 1; o <
|
|
228
|
-
for (let o = 1; o <=
|
|
229
|
-
|
|
230
|
-
for (let o = 0; o <
|
|
234
|
+
const a = c.bs.find((o) => o[0] === e.value)?.[n.value];
|
|
235
|
+
if (!a) return;
|
|
236
|
+
const r = c.getFirstDayOfMonth(e.value, n.value), t = [];
|
|
237
|
+
for (let o = 1; o < r; o++) t.push(null);
|
|
238
|
+
for (let o = 1; o <= a; o++) t.push(o);
|
|
239
|
+
D.value = [];
|
|
240
|
+
for (let o = 0; o < t.length; o += 7) D.value.push(t.slice(o, o + 7));
|
|
231
241
|
}
|
|
232
|
-
function _(
|
|
233
|
-
if (!
|
|
234
|
-
const
|
|
235
|
-
m.value =
|
|
242
|
+
function _(a) {
|
|
243
|
+
if (!a) return;
|
|
244
|
+
const r = h(e.value, n.value, a);
|
|
245
|
+
m.value = r, v("update:modelValue", r), u.value = !1;
|
|
236
246
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
247
|
+
function x(a) {
|
|
248
|
+
return a && i.value.year === e.value && i.value.month === n.value && i.value.day === a;
|
|
239
249
|
}
|
|
240
|
-
function T(
|
|
241
|
-
return
|
|
250
|
+
function T(a) {
|
|
251
|
+
return a ? m.value === h(e.value, n.value, a) : !1;
|
|
242
252
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
253
|
+
function p(a) {
|
|
254
|
+
a.target.closest(".nepali-calendar") || (u.value = !1);
|
|
245
255
|
}
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
if (
|
|
249
|
-
year:
|
|
250
|
-
month:
|
|
251
|
-
day:
|
|
256
|
+
L(() => {
|
|
257
|
+
const a = /* @__PURE__ */ new Date(), r = c.engToNep(a.getFullYear(), a.getMonth() + 1, a.getDate());
|
|
258
|
+
if (i.value = {
|
|
259
|
+
year: r.year,
|
|
260
|
+
month: r.month,
|
|
261
|
+
day: r.date
|
|
252
262
|
}, d.modelValue) {
|
|
253
|
-
const [
|
|
254
|
-
|
|
263
|
+
const [t, o, y] = d.modelValue.split("-");
|
|
264
|
+
e.value = parseInt(t), n.value = parseInt(o), m.value = h(e.value, n.value, parseInt(y));
|
|
255
265
|
} else
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
);
|
|
261
|
-
S(), document.addEventListener("click",
|
|
262
|
-
})
|
|
263
|
-
|
|
266
|
+
e.value = i.value.year, n.value = i.value.month, d.todayValue && (m.value = h(
|
|
267
|
+
i.value.year,
|
|
268
|
+
i.value.month,
|
|
269
|
+
i.value.day
|
|
270
|
+
));
|
|
271
|
+
S(), document.addEventListener("click", p);
|
|
272
|
+
});
|
|
273
|
+
function M() {
|
|
274
|
+
n.value === 1 ? (n.value = 12, e.value = Number(e.value) - 1) : n.value = Number(n.value) - 1;
|
|
275
|
+
}
|
|
276
|
+
function V() {
|
|
277
|
+
n.value === 12 ? (n.value = 1, e.value = Number(e.value) + 1) : n.value = Number(n.value) + 1;
|
|
278
|
+
}
|
|
279
|
+
return P([e, n], S), (a, r) => (b(), g("div", J, [
|
|
280
|
+
s("input", {
|
|
264
281
|
type: "text",
|
|
265
282
|
readonly: "",
|
|
266
283
|
value: m.value,
|
|
267
|
-
onClick:
|
|
268
|
-
class: "w-full
|
|
269
|
-
placeholder:
|
|
270
|
-
}, null, 8,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
284
|
+
onClick: r[0] || (r[0] = (t) => u.value = !u.value),
|
|
285
|
+
class: "border-gray-300 w-full rounded-md px-3 py-2 cursor-pointer",
|
|
286
|
+
placeholder: w.placeholder
|
|
287
|
+
}, null, 8, z),
|
|
288
|
+
u.value ? (b(), g("div", A, [
|
|
289
|
+
s("div", U, [
|
|
290
|
+
s("div", W, [
|
|
291
|
+
r[3] || (r[3] = s("span", { class: "text-xs font-semibold text-red-600" }, " वि.सं.", -1)),
|
|
292
|
+
s("div", q, [
|
|
293
|
+
Y(s("select", {
|
|
294
|
+
"onUpdate:modelValue": r[1] || (r[1] = (t) => e.value = t),
|
|
295
|
+
class: "appearance-none border-none rounded-lg w-full px-3 py-2 text-sm font-bold"
|
|
296
|
+
}, [
|
|
297
|
+
(b(), g(k, null, C(150, (t) => s("option", {
|
|
298
|
+
key: t,
|
|
299
|
+
value: 1975 + t
|
|
300
|
+
}, $(1975 + t), 9, G)), 64))
|
|
301
|
+
], 512), [
|
|
302
|
+
[B, e.value]
|
|
303
|
+
])
|
|
304
|
+
])
|
|
283
305
|
]),
|
|
284
|
-
|
|
285
|
-
"
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
306
|
+
s("div", H, [
|
|
307
|
+
s("div", K, [
|
|
308
|
+
s("div", {
|
|
309
|
+
onClick: M,
|
|
310
|
+
class: "px-3 py-1 select-none cursor-pointer"
|
|
311
|
+
}, " « "),
|
|
312
|
+
s("div", Q, [
|
|
313
|
+
Y(s("select", {
|
|
314
|
+
"onUpdate:modelValue": r[2] || (r[2] = (t) => n.value = t),
|
|
315
|
+
class: "appearance-none border-none rounded-lg px-3 py-2 text-sm bg-white"
|
|
316
|
+
}, [
|
|
317
|
+
(b(), g(k, null, C(12, (t) => s("option", {
|
|
318
|
+
key: t,
|
|
319
|
+
value: t
|
|
320
|
+
}, $(E(c).getNepaliMonth(t)), 9, R)), 64))
|
|
321
|
+
], 512), [
|
|
322
|
+
[B, n.value]
|
|
323
|
+
])
|
|
324
|
+
]),
|
|
325
|
+
s("div", {
|
|
326
|
+
onClick: V,
|
|
327
|
+
class: "px-3 py-1 select-none cursor-pointer"
|
|
328
|
+
}, " » ")
|
|
329
|
+
])
|
|
294
330
|
])
|
|
295
331
|
]),
|
|
296
|
-
|
|
297
|
-
(
|
|
332
|
+
s("div", X, [
|
|
333
|
+
(b(), g(k, null, C(f, (t, o) => s("div", {
|
|
298
334
|
key: o,
|
|
299
|
-
class:
|
|
300
|
-
},
|
|
335
|
+
class: F(o === 6 ? "text-red-600" : "")
|
|
336
|
+
}, $(t), 3)), 64))
|
|
301
337
|
]),
|
|
302
|
-
|
|
303
|
-
(
|
|
304
|
-
(
|
|
305
|
-
key:
|
|
306
|
-
class:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
T(
|
|
338
|
+
s("div", Z, [
|
|
339
|
+
(b(!0), g(k, null, C(D.value, (t, o) => (b(), g(k, { key: o }, [
|
|
340
|
+
(b(!0), g(k, null, C(t, (y, O) => (b(), g("div", {
|
|
341
|
+
key: O,
|
|
342
|
+
class: F(["p-2 border rounded cursor-pointer select-none", [
|
|
343
|
+
y === null ? "bg-gray-100 cursor-default text-gray-400" : "",
|
|
344
|
+
O === 6 && y !== null ? "text-red-600" : "",
|
|
345
|
+
x(y) ? "bg-blue-200 text-blue-800 font-bold" : "",
|
|
346
|
+
T(y) ? "bg-blue-600 text-white font-bold" : ""
|
|
311
347
|
]]),
|
|
312
|
-
onClick: (
|
|
313
|
-
},
|
|
348
|
+
onClick: (n3) => _(y)
|
|
349
|
+
}, $(y ? E(c).convertToNepaliNumber(y) : ""), 11, e3))), 128))
|
|
314
350
|
], 64))), 128))
|
|
315
351
|
])
|
|
316
|
-
])) :
|
|
352
|
+
])) : I("", !0)
|
|
317
353
|
]));
|
|
318
354
|
}
|
|
319
|
-
},
|
|
320
|
-
install(
|
|
321
|
-
|
|
355
|
+
}, a3 = {
|
|
356
|
+
install(w) {
|
|
357
|
+
w.component("NepaliDatePicker", t3);
|
|
322
358
|
}
|
|
323
359
|
};
|
|
324
360
|
export {
|
|
325
|
-
|
|
326
|
-
|
|
361
|
+
t3 as NepaliDatePicker,
|
|
362
|
+
a3 as NpDatePickerPlugin,
|
|
363
|
+
t3 as default
|
|
327
364
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.NpDatePickerVueTw={},k.Vue))})(this,(function(k,e){"use strict";class V{constructor(){this.bs=[[2e3,30,32,31,32,31,30,30,30,29,30,29,31],[2001,31,31,32,31,31,31,30,29,30,29,30,30],[2002,31,31,32,32,31,30,30,29,30,29,30,30],[2003,31,32,31,32,31,30,30,30,29,29,30,31],[2004,30,32,31,32,31,30,30,30,29,30,29,31],[2005,31,31,32,31,31,31,30,29,30,29,30,30],[2006,31,31,32,32,31,30,30,29,30,29,30,30],[2007,31,32,31,32,31,30,30,30,29,29,30,31],[2008,31,31,31,32,31,31,29,30,30,29,29,31],[2009,31,31,32,31,31,31,30,29,30,29,30,30],[2010,31,31,32,32,31,30,30,29,30,29,30,30],[2011,31,32,31,32,31,30,30,30,29,29,30,31],[2012,31,31,31,32,31,31,29,30,30,29,30,30],[2013,31,31,32,31,31,31,30,29,30,29,30,30],[2014,31,31,32,32,31,30,30,29,30,29,30,30],[2015,31,32,31,32,31,30,30,30,29,29,30,31],[2016,31,31,31,32,31,31,29,30,30,29,30,30],[2017,31,31,32,31,31,31,30,29,30,29,30,30],[2018,31,32,31,32,31,30,30,29,30,29,30,30],[2019,31,32,31,32,31,30,30,30,29,30,29,31],[2020,31,31,31,32,31,31,30,29,30,29,30,30],[2021,31,31,32,31,31,31,30,29,30,29,30,30],[2022,31,32,31,32,31,30,30,30,29,29,30,30],[2023,31,32,31,32,31,30,30,30,29,30,29,31],[2024,31,31,31,32,31,31,30,29,30,29,30,30],[2025,31,31,32,31,31,31,30,29,30,29,30,30],[2026,31,32,31,32,31,30,30,30,29,29,30,31],[2027,30,32,31,32,31,30,30,30,29,30,29,31],[2028,31,31,32,31,31,31,30,29,30,29,30,30],[2029,31,31,32,31,32,30,30,29,30,29,30,30],[2030,31,32,31,32,31,30,30,30,29,29,30,31],[2031,30,32,31,32,31,30,30,30,29,30,29,31],[2032,31,31,32,31,31,31,30,29,30,29,30,30],[2033,31,31,32,32,31,30,30,29,30,29,30,30],[2034,31,32,31,32,31,30,30,30,29,29,30,31],[2035,30,32,31,32,31,31,29,30,30,29,29,31],[2036,31,31,32,31,31,31,30,29,30,29,30,30],[2037,31,31,32,32,31,30,30,29,30,29,30,30],[2038,31,32,31,32,31,30,30,30,29,29,30,31],[2039,31,31,31,32,31,31,29,30,30,29,30,30],[2040,31,31,32,31,31,31,30,29,30,29,30,30],[2041,31,31,32,32,31,30,30,29,30,29,30,30],[2042,31,32,31,32,31,30,30,30,29,29,30,31],[2043,31,31,31,32,31,31,29,30,30,29,30,30],[2044,31,31,32,31,31,31,30,29,30,29,30,30],[2045,31,32,31,32,31,30,30,29,30,29,30,30],[2046,31,32,31,32,31,30,30,30,29,29,30,31],[2047,31,31,31,32,31,31,30,29,30,29,30,30],[2048,31,31,32,31,31,31,30,29,30,29,30,30],[2049,31,32,31,32,31,30,30,30,29,29,30,30],[2050,31,32,31,32,31,30,30,30,29,30,29,31],[2051,31,31,31,32,31,31,30,29,30,29,30,30],[2052,31,31,32,31,31,31,30,29,30,29,30,30],[2053,31,32,31,32,31,30,30,30,29,29,30,30],[2054,31,32,31,32,31,30,30,30,29,30,29,31],[2055,31,31,32,31,31,31,30,29,30,29,30,30],[2056,31,31,32,31,32,30,30,29,30,29,30,30],[2057,31,32,31,32,31,30,30,30,29,29,30,31],[2058,30,32,31,32,31,30,30,30,29,30,29,31],[2059,31,31,32,31,31,31,30,29,30,29,30,30],[2060,31,31,32,32,31,30,30,29,30,29,30,30],[2061,31,32,31,32,31,30,30,30,29,29,30,31],[2062,30,32,31,32,31,31,29,30,29,30,29,31],[2063,31,31,32,31,31,31,30,29,30,29,30,30],[2064,31,31,32,32,31,30,30,29,30,29,30,30],[2065,31,32,31,32,31,30,30,30,29,29,30,31],[2066,31,31,31,32,31,31,29,30,30,29,29,31],[2067,31,31,32,31,31,31,30,29,30,29,30,30],[2068,31,31,32,32,31,30,30,29,30,29,30,30],[2069,31,32,31,32,31,30,30,30,29,29,30,31],[2070,31,31,31,32,31,31,29,30,30,29,30,30],[2071,31,31,32,31,31,31,30,29,30,29,30,30],[2072,31,32,31,32,31,30,30,29,30,29,30,30],[2073,31,32,31,32,31,30,30,30,29,29,30,31],[2074,31,31,31,32,31,31,30,29,30,29,30,30],[2075,31,31,32,31,31,31,30,29,30,29,30,30],[2076,31,32,31,32,31,30,30,30,29,29,30,30],[2077,31,32,31,32,31,30,30,30,29,30,29,31],[2078,31,31,31,32,31,31,30,29,30,29,30,30],[2079,31,31,32,31,31,31,30,29,30,29,30,30],[2080,31,32,31,32,31,30,30,30,29,29,30,30],[2081,31,32,31,32,31,30,30,30,29,30,29,31],[2082,31,31,32,31,31,31,30,29,30,29,30,30],[2083,31,31,32,31,31,30,30,30,29,30,30,30],[2084,31,31,32,31,31,30,30,30,29,30,30,30],[2085,31,32,31,32,30,31,30,30,29,30,30,30],[2086,30,32,31,32,31,30,30,30,29,30,30,30],[2087,31,31,32,31,31,31,30,30,29,30,30,30],[2088,30,31,32,32,30,31,30,30,29,30,30,30],[2089,30,32,31,32,31,30,30,30,29,30,30,30],[2090,30,32,31,32,31,30,30,30,29,30,30,30],[2091,31,31,32,31,31,31,30,30,29,30,30,30],[2092,30,31,32,32,31,30,30,30,29,30,30,30],[2093,30,32,31,32,31,30,30,30,29,30,30,30],[2094,31,31,32,31,31,30,30,30,29,30,30,30],[2095,31,31,32,31,31,31,30,29,30,30,30,30],[2096,30,31,32,32,31,30,30,29,30,29,30,30],[2097,31,32,31,32,31,30,30,30,29,30,30,30],[2098,31,31,32,32,31,30,30,29,30,29,30,31],[2099,31,32,31,32,31,29,30,30,29,30,30,31]],this.nep_date={year:0,month:0,date:0,day:"",nmonth:"",num_day:0},this.eng_date={year:0,month:0,date:0,day:"",emonth:"",num_day:0}}getDayOfWeek(l){return{1:"आईतवार",2:"सोमबार",3:"मंगलवार",4:"बुधबार",5:"बिहीबार",6:"शुक्रबार",7:"शनिबार"}[l]}getEnglishMonth(l){return{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}[l]}getNepaliMonth(l){return{1:"बैशाख",2:"जेष्ठ",3:"असार",4:"श्रावण",5:"भाद्र",6:"आश्विन",7:"कार्तिक",8:"मंसिर",9:"पुष",10:"माघ",11:"फाल्गुन",12:"चैत्र"}[l]}isLeapYear(l){return l%4===0&&l%100!==0||l%400===0}convertToNepaliNumber(l){const u=["०","१","२","३","४","५","६","७","८","९"];return String(l).split("").map(p=>/[0-9]/.test(p)?u[p]:p).join("")}engToNep(l,u,p){if(l<1944||l>2033)throw new Error("Supported only between 1944-2033");const d=[0,31,28,31,30,31,30,31,31,30,31,30,31],s=[0,31,29,31,30,31,30,31,31,30,31,30,31];let y=1944,o=2e3,i=9,N=16,f=0,c=0,h=7,D=o,b=i,_=i;for(let m=y;m<l;m++)f+=this.isLeapYear(m)?s.reduce((n,a)=>n+a,0):d.reduce((n,a)=>n+a,0);for(let m=1;m<u;m++)f+=this.isLeapYear(l)?s[m]:d[m];f+=p-1;let E=1;for(c=N;f>0;){let m=this.bs[E][_];c++,h++,c>m&&(c=1,b++,_++),b>12&&(b=1,D++),_>12&&(_=1,E++),h>7&&(h=1),f--}return this.nep_date={year:D,month:b,date:c,day:this.getDayOfWeek(h),nmonth:this.getNepaliMonth(b),num_day:h},this.nep_date}adToBs(l){const[u,p,d]=l.split("-").map(Number),s=this.engToNep(u,p,d),y=s.year,o=s.month.toString().padStart(2,"0"),i=s.date.toString().padStart(2,"0");return`${y}-${o}-${i}`}getFirstDayOfMonth(l,u){let p=1944;for(let d=p;d<=2100;d++)for(let s=1;s<=12;s++)for(let y=1;y<=31;y++)try{const o=this.engToNep(d,s,y);if(o.year===l&&o.month===u&&o.date===1)return o.num_day}catch{continue}return null}}const M={class:"relative w-full nepali-calendar"},T=["value"],x={key:0,class:"absolute bg-white border shadow rounded p-3 mt-2 w-80 z-50"},v={class:"flex justify-between mb-2"},F=["value"],L=["value"],P={class:"grid grid-cols-7 text-center font-semibold mb-1"},C={class:"grid grid-cols-7 gap-1 text-center"},$=["onClick"],B={__name:"NepaliDatePicker",props:{modelValue:String},emits:["update:modelValue"],setup(S,{emit:l}){const u=S,p=l,d=new V,s=e.ref(!1),y=["आईत","सोम","मंगल","बुध","बिही","शुक्र","शनि"],o=e.ref(null),i=e.ref(null),N=e.ref([]),f=e.ref(null),c=e.ref({year:0,month:0,day:0}),h=(n,a,t)=>`${n}-${String(a).padStart(2,"0")}-${String(t).padStart(2,"0")}`;function D(){const n=d.bs.find(r=>r[0]===o.value)?.[i.value];if(!n)return;const a=d.getFirstDayOfMonth(o.value,i.value),t=[];for(let r=1;r<a;r++)t.push(null);for(let r=1;r<=n;r++)t.push(r);N.value=[];for(let r=0;r<t.length;r+=7)N.value.push(t.slice(r,r+7))}function b(n){if(!n)return;const a=h(o.value,i.value,n);f.value=a,p("update:modelValue",a),s.value=!1}function _(n){return n&&c.value.year===o.value&&c.value.month===i.value&&c.value.day===n}function E(n){return n?f.value===h(o.value,i.value,n):!1}function m(n){n.target.closest(".nepali-calendar")||(s.value=!1)}return e.onMounted(()=>{const n=new Date,a=d.engToNep(n.getFullYear(),n.getMonth()+1,n.getDate());if(c.value={year:a.year,month:a.month,day:a.date},u.modelValue){const[t,r,g]=u.modelValue.split("-");o.value=parseInt(t),i.value=parseInt(r),f.value=h(o.value,i.value,parseInt(g))}else o.value=c.value.year,i.value=c.value.month,f.value=h(c.value.year,c.value.month,c.value.day);D(),document.addEventListener("click",m)}),e.watch([o,i],D),(n,a)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("input",{type:"text",readonly:"",value:f.value,onClick:a[0]||(a[0]=t=>s.value=!s.value),class:"w-full border rounded px-3 py-2 cursor-pointer",placeholder:"Select date"},null,8,T),s.value?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",v,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":a[1]||(a[1]=t=>o.value=t),class:"border p-1 rounded"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(100,t=>e.createElementVNode("option",{key:t,value:2e3+t},e.toDisplayString(2e3+t),9,F)),64))],512),[[e.vModelSelect,o.value]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":a[2]||(a[2]=t=>i.value=t),class:"border p-1 rounded"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,t=>e.createElementVNode("option",{key:t,value:t},e.toDisplayString(e.unref(d).getNepaliMonth(t)),9,L)),64))],512),[[e.vModelSelect,i.value]])]),e.createElementVNode("div",P,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,(t,r)=>e.createElementVNode("div",{key:r,class:e.normalizeClass(r===6?"text-red-600":"")},e.toDisplayString(t),3)),64))]),e.createElementVNode("div",C,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,(g,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:e.normalizeClass(["p-2 border rounded cursor-pointer select-none",[g===null?"bg-gray-100 cursor-default text-gray-400":"",w===6&&g!==null?"text-red-600":"",_(g)?"bg-blue-200 text-blue-800 font-bold":"",E(g)?"bg-blue-600 text-white font-bold":""]]),onClick:Y=>b(g)},e.toDisplayString(g?e.unref(d).convertToNepaliNumber(g):""),11,$))),128))],64))),128))])])):e.createCommentVNode("",!0)]))}},O={install(S){S.component("NepaliDatePicker",B)}};k.NepaliDatePicker=B,k.NpDatePickerPlugin=O,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.NpDatePickerVueTw={},y.Vue))})(this,(function(y,e){"use strict";class B{constructor(){this.bs=[[2e3,30,32,31,32,31,30,30,30,29,30,29,31],[2001,31,31,32,31,31,31,30,29,30,29,30,30],[2002,31,31,32,32,31,30,30,29,30,29,30,30],[2003,31,32,31,32,31,30,30,30,29,29,30,31],[2004,30,32,31,32,31,30,30,30,29,30,29,31],[2005,31,31,32,31,31,31,30,29,30,29,30,30],[2006,31,31,32,32,31,30,30,29,30,29,30,30],[2007,31,32,31,32,31,30,30,30,29,29,30,31],[2008,31,31,31,32,31,31,29,30,30,29,29,31],[2009,31,31,32,31,31,31,30,29,30,29,30,30],[2010,31,31,32,32,31,30,30,29,30,29,30,30],[2011,31,32,31,32,31,30,30,30,29,29,30,31],[2012,31,31,31,32,31,31,29,30,30,29,30,30],[2013,31,31,32,31,31,31,30,29,30,29,30,30],[2014,31,31,32,32,31,30,30,29,30,29,30,30],[2015,31,32,31,32,31,30,30,30,29,29,30,31],[2016,31,31,31,32,31,31,29,30,30,29,30,30],[2017,31,31,32,31,31,31,30,29,30,29,30,30],[2018,31,32,31,32,31,30,30,29,30,29,30,30],[2019,31,32,31,32,31,30,30,30,29,30,29,31],[2020,31,31,31,32,31,31,30,29,30,29,30,30],[2021,31,31,32,31,31,31,30,29,30,29,30,30],[2022,31,32,31,32,31,30,30,30,29,29,30,30],[2023,31,32,31,32,31,30,30,30,29,30,29,31],[2024,31,31,31,32,31,31,30,29,30,29,30,30],[2025,31,31,32,31,31,31,30,29,30,29,30,30],[2026,31,32,31,32,31,30,30,30,29,29,30,31],[2027,30,32,31,32,31,30,30,30,29,30,29,31],[2028,31,31,32,31,31,31,30,29,30,29,30,30],[2029,31,31,32,31,32,30,30,29,30,29,30,30],[2030,31,32,31,32,31,30,30,30,29,29,30,31],[2031,30,32,31,32,31,30,30,30,29,30,29,31],[2032,31,31,32,31,31,31,30,29,30,29,30,30],[2033,31,31,32,32,31,30,30,29,30,29,30,30],[2034,31,32,31,32,31,30,30,30,29,29,30,31],[2035,30,32,31,32,31,31,29,30,30,29,29,31],[2036,31,31,32,31,31,31,30,29,30,29,30,30],[2037,31,31,32,32,31,30,30,29,30,29,30,30],[2038,31,32,31,32,31,30,30,30,29,29,30,31],[2039,31,31,31,32,31,31,29,30,30,29,30,30],[2040,31,31,32,31,31,31,30,29,30,29,30,30],[2041,31,31,32,32,31,30,30,29,30,29,30,30],[2042,31,32,31,32,31,30,30,30,29,29,30,31],[2043,31,31,31,32,31,31,29,30,30,29,30,30],[2044,31,31,32,31,31,31,30,29,30,29,30,30],[2045,31,32,31,32,31,30,30,29,30,29,30,30],[2046,31,32,31,32,31,30,30,30,29,29,30,31],[2047,31,31,31,32,31,31,30,29,30,29,30,30],[2048,31,31,32,31,31,31,30,29,30,29,30,30],[2049,31,32,31,32,31,30,30,30,29,29,30,30],[2050,31,32,31,32,31,30,30,30,29,30,29,31],[2051,31,31,31,32,31,31,30,29,30,29,30,30],[2052,31,31,32,31,31,31,30,29,30,29,30,30],[2053,31,32,31,32,31,30,30,30,29,29,30,30],[2054,31,32,31,32,31,30,30,30,29,30,29,31],[2055,31,31,32,31,31,31,30,29,30,29,30,30],[2056,31,31,32,31,32,30,30,29,30,29,30,30],[2057,31,32,31,32,31,30,30,30,29,29,30,31],[2058,30,32,31,32,31,30,30,30,29,30,29,31],[2059,31,31,32,31,31,31,30,29,30,29,30,30],[2060,31,31,32,32,31,30,30,29,30,29,30,30],[2061,31,32,31,32,31,30,30,30,29,29,30,31],[2062,30,32,31,32,31,31,29,30,29,30,29,31],[2063,31,31,32,31,31,31,30,29,30,29,30,30],[2064,31,31,32,32,31,30,30,29,30,29,30,30],[2065,31,32,31,32,31,30,30,30,29,29,30,31],[2066,31,31,31,32,31,31,29,30,30,29,29,31],[2067,31,31,32,31,31,31,30,29,30,29,30,30],[2068,31,31,32,32,31,30,30,29,30,29,30,30],[2069,31,32,31,32,31,30,30,30,29,29,30,31],[2070,31,31,31,32,31,31,29,30,30,29,30,30],[2071,31,31,32,31,31,31,30,29,30,29,30,30],[2072,31,32,31,32,31,30,30,29,30,29,30,30],[2073,31,32,31,32,31,30,30,30,29,29,30,31],[2074,31,31,31,32,31,31,30,29,30,29,30,30],[2075,31,31,32,31,31,31,30,29,30,29,30,30],[2076,31,32,31,32,31,30,30,30,29,29,30,30],[2077,31,32,31,32,31,30,30,30,29,30,29,31],[2078,31,31,31,32,31,31,30,29,30,29,30,30],[2079,31,31,32,31,31,31,30,29,30,29,30,30],[2080,31,32,31,32,31,30,30,30,29,29,30,30],[2081,31,32,31,32,31,30,30,30,29,30,29,31],[2082,31,31,32,31,31,31,30,29,30,29,30,30],[2083,31,31,32,31,31,30,30,30,29,30,30,30],[2084,31,31,32,31,31,30,30,30,29,30,30,30],[2085,31,32,31,32,30,31,30,30,29,30,30,30],[2086,30,32,31,32,31,30,30,30,29,30,30,30],[2087,31,31,32,31,31,31,30,30,29,30,30,30],[2088,30,31,32,32,30,31,30,30,29,30,30,30],[2089,30,32,31,32,31,30,30,30,29,30,30,30],[2090,30,32,31,32,31,30,30,30,29,30,30,30],[2091,31,31,32,31,31,31,30,30,29,30,30,30],[2092,30,31,32,32,31,30,30,30,29,30,30,30],[2093,30,32,31,32,31,30,30,30,29,30,30,30],[2094,31,31,32,31,31,30,30,30,29,30,30,30],[2095,31,31,32,31,31,31,30,29,30,30,30,30],[2096,30,31,32,32,31,30,30,29,30,29,30,30],[2097,31,32,31,32,31,30,30,30,29,30,30,30],[2098,31,31,32,32,31,30,30,29,30,29,30,31],[2099,31,32,31,32,31,29,30,30,29,30,30,31]],this.nep_date={year:0,month:0,date:0,day:"",nmonth:"",num_day:0},this.eng_date={year:0,month:0,date:0,day:"",emonth:"",num_day:0}}getDayOfWeek(o){return{1:"आईतवार",2:"सोमबार",3:"मंगलवार",4:"बुधबार",5:"बिहीबार",6:"शुक्रबार",7:"शनिबार"}[o]}getEnglishMonth(o){return{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}[o]}getNepaliMonth(o){return{1:"बैशाख",2:"जेष्ठ",3:"असार",4:"श्रावण",5:"भाद्र",6:"आश्विन",7:"कार्तिक",8:"मंसिर",9:"पुष",10:"माघ",11:"फाल्गुन",12:"चैत्र"}[o]}isLeapYear(o){return o%4===0&&o%100!==0||o%400===0}convertToNepaliNumber(o){const c=["०","१","२","३","४","५","६","७","८","९"];return String(o).split("").map(p=>/[0-9]/.test(p)?c[p]:p).join("")}engToNep(o,c,p){if(o<1944||o>2033)throw new Error("Supported only between 1944-2033");const u=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=[0,31,29,31,30,31,30,31,31,30,31,30,31];let g=1944,t=2e3,l=9,E=16,f=0,d=0,h=7,V=t,N=l,k=l;for(let m=g;m<o;m++)f+=this.isLeapYear(m)?i.reduce((v,D)=>v+D,0):u.reduce((v,D)=>v+D,0);for(let m=1;m<c;m++)f+=this.isLeapYear(o)?i[m]:u[m];f+=p-1;let x=1;for(d=E;f>0;){let m=this.bs[x][k];d++,h++,d>m&&(d=1,N++,k++),N>12&&(N=1,V++),k>12&&(k=1,x++),h>7&&(h=1),f--}return this.nep_date={year:V,month:N,date:d,day:this.getDayOfWeek(h),nmonth:this.getNepaliMonth(N),num_day:h},this.nep_date}adToBs(o){const[c,p,u]=o.split("-").map(Number),i=this.engToNep(c,p,u),g=i.year,t=i.month.toString().padStart(2,"0"),l=i.date.toString().padStart(2,"0");return`${g}-${t}-${l}`}getFirstDayOfMonth(o,c){let p=1944;for(let u=p;u<=2100;u++)for(let i=1;i<=12;i++)for(let g=1;g<=31;g++)try{const t=this.engToNep(u,i,g);if(t.year===o&&t.month===c&&t.date===1)return t.num_day}catch{continue}return null}}const M={class:"relative w-full nepali-calendar"},T=["value","placeholder"],C={key:0,class:"absolute bg-white border shadow rounded p-3 mt-2 w-80 z-50"},F={class:"flex items-center gap-3 mb-2 border-b border-gray-100"},L={class:"flex items-center w-36"},P={class:"relative"},$=["value"],O={class:"relative w-full"},Y={class:"flex items-center justify-between"},j={class:"relative"},I=["value"],z={class:"grid grid-cols-7 text-center font-semibold mb-1 text-gray-700 text-sm"},J={class:"grid grid-cols-7 gap-1 text-center"},A=["onClick"],S={__name:"NepaliDatePicker",props:{modelValue:String,placeholder:{type:String,default:"Select a date"},todayValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(_,{emit:o}){const c=_,p=o,u=new B,i=e.ref(!1),g=["आईत","सोम","मंगल","बुध","बिही","शुक्र","शनि"],t=e.ref(null),l=e.ref(null),E=e.ref([]),f=e.ref(null),d=e.ref({year:0,month:0,day:0}),h=(a,s,n)=>`${a}-${String(s).padStart(2,"0")}-${String(n).padStart(2,"0")}`;function V(){const a=u.bs.find(r=>r[0]===t.value)?.[l.value];if(!a)return;const s=u.getFirstDayOfMonth(t.value,l.value),n=[];for(let r=1;r<s;r++)n.push(null);for(let r=1;r<=a;r++)n.push(r);E.value=[];for(let r=0;r<n.length;r+=7)E.value.push(n.slice(r,r+7))}function N(a){if(!a)return;const s=h(t.value,l.value,a);f.value=s,p("update:modelValue",s),i.value=!1}function k(a){return a&&d.value.year===t.value&&d.value.month===l.value&&d.value.day===a}function x(a){return a?f.value===h(t.value,l.value,a):!1}function m(a){a.target.closest(".nepali-calendar")||(i.value=!1)}e.onMounted(()=>{const a=new Date,s=u.engToNep(a.getFullYear(),a.getMonth()+1,a.getDate());if(d.value={year:s.year,month:s.month,day:s.date},c.modelValue){const[n,r,b]=c.modelValue.split("-");t.value=parseInt(n),l.value=parseInt(r),f.value=h(t.value,l.value,parseInt(b))}else t.value=d.value.year,l.value=d.value.month,c.todayValue&&(f.value=h(d.value.year,d.value.month,d.value.day));V(),document.addEventListener("click",m)});function v(){l.value===1?(l.value=12,t.value=Number(t.value)-1):l.value=Number(l.value)-1}function D(){l.value===12?(l.value=1,t.value=Number(t.value)+1):l.value=Number(l.value)+1}return e.watch([t,l],V),(a,s)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("input",{type:"text",readonly:"",value:f.value,onClick:s[0]||(s[0]=n=>i.value=!i.value),class:"border-gray-300 w-full rounded-md px-3 py-2 cursor-pointer",placeholder:_.placeholder},null,8,T),i.value?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",F,[e.createElementVNode("div",L,[s[3]||(s[3]=e.createElementVNode("span",{class:"text-xs font-semibold text-red-600"}," वि.सं.",-1)),e.createElementVNode("div",P,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":s[1]||(s[1]=n=>t.value=n),class:"appearance-none border-none rounded-lg w-full px-3 py-2 text-sm font-bold"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(150,n=>e.createElementVNode("option",{key:n,value:1975+n},e.toDisplayString(1975+n),9,$)),64))],512),[[e.vModelSelect,t.value]])])]),e.createElementVNode("div",O,[e.createElementVNode("div",Y,[e.createElementVNode("div",{onClick:v,class:"px-3 py-1 select-none cursor-pointer"}," « "),e.createElementVNode("div",j,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":s[2]||(s[2]=n=>l.value=n),class:"appearance-none border-none rounded-lg px-3 py-2 text-sm bg-white"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,n=>e.createElementVNode("option",{key:n,value:n},e.toDisplayString(e.unref(u).getNepaliMonth(n)),9,I)),64))],512),[[e.vModelSelect,l.value]])]),e.createElementVNode("div",{onClick:D,class:"px-3 py-1 select-none cursor-pointer"}," » ")])])]),e.createElementVNode("div",z,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,(n,r)=>e.createElementVNode("div",{key:r,class:e.normalizeClass(r===6?"text-red-600":"")},e.toDisplayString(n),3)),64))]),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(n,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,(b,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:e.normalizeClass(["p-2 border rounded cursor-pointer select-none",[b===null?"bg-gray-100 cursor-default text-gray-400":"",w===6&&b!==null?"text-red-600":"",k(b)?"bg-blue-200 text-blue-800 font-bold":"",x(b)?"bg-blue-600 text-white font-bold":""]]),onClick:W=>N(b)},e.toDisplayString(b?e.unref(u).convertToNepaliNumber(b):""),11,A))),128))],64))),128))])])):e.createCommentVNode("",!0)]))}},U={install(_){_.component("NepaliDatePicker",S)}};y.NepaliDatePicker=S,y.NpDatePickerPlugin=U,y.default=S,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED