golden-logic-ui 1.2.339 → 1.2.341
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const
|
|
1
|
+
import { ref as D, computed as S, watch as ee, onMounted as te, onUnmounted as ae, createElementBlock as c, openBlock as g, Fragment as N, createCommentVNode as h, normalizeClass as w, createElementVNode as n, toDisplayString as f, withDirectives as re, renderList as z, vShow as ne } from "vue";
|
|
2
|
+
const le = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "gl-label-form"
|
|
5
|
-
},
|
|
5
|
+
}, se = { class: "mt-1 text-gray-900 dark:text-white" }, oe = ["for"], ie = { class: "relative" }, ue = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "flex items-center"
|
|
8
|
-
},
|
|
8
|
+
}, de = ["innerHTML"], ce = { class: "relative w-full" }, ge = ["required", "name", "id", "value", "placeholder"], me = ["innerHTML"], fe = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "relative"
|
|
11
|
-
},
|
|
11
|
+
}, ye = ["required", "name", "id", "value", "placeholder"], ve = { class: "absolute z-50 mt-1 bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 p-4 max-w-72 min-w-max" }, he = { class: "flex items-center justify-between mb-4" }, pe = { class: "text-sm font-semibold text-gray-900 dark:text-white" }, De = { class: "grid grid-cols-7 gap-1 mb-2" }, ke = { class: "grid grid-cols-7 gap-1" }, xe = ["onClick", "disabled"], be = { class: "flex items-center justify-between mt-4 pt-3 border-t border-gray-200 dark:border-gray-700" }, we = { class: "gl-span-form-error" }, Ye = { class: "block mt-1 text-sm font-normal leading-5 text-gray-500" }, Te = {
|
|
12
12
|
__name: "GlDatePicker",
|
|
13
13
|
props: {
|
|
14
14
|
is_required: {
|
|
@@ -94,26 +94,28 @@ const re = {
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
emits: ["update:modelValue", "change", "blur-sm"],
|
|
97
|
-
setup(r, { expose:
|
|
98
|
-
const o = r,
|
|
97
|
+
setup(r, { expose: E, emit: A }) {
|
|
98
|
+
const o = r, y = A, k = D(null), V = D(null), p = D(!1), u = D((/* @__PURE__ */ new Date()).getMonth()), d = D((/* @__PURE__ */ new Date()).getFullYear()), $ = (t) => {
|
|
99
99
|
if (!t) return null;
|
|
100
100
|
if (t.toLowerCase() === "today")
|
|
101
101
|
return /* @__PURE__ */ new Date();
|
|
102
102
|
const e = t.match(/^([+-]?)(\d+)([dmy])$/i);
|
|
103
103
|
if (e) {
|
|
104
|
-
const
|
|
105
|
-
return
|
|
104
|
+
const s = e[1] === "-" ? -1 : 1, m = parseInt(e[2]) * s, Y = e[3].toLowerCase(), i = /* @__PURE__ */ new Date();
|
|
105
|
+
return Y === "d" ? i.setDate(i.getDate() + m) : Y === "m" ? i.setMonth(i.getMonth() + m) : Y === "y" && i.setFullYear(i.getFullYear() + m), i;
|
|
106
106
|
}
|
|
107
|
-
const a =
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
const a = x(t);
|
|
108
|
+
if (a) return a;
|
|
109
|
+
const l = new Date(t);
|
|
110
|
+
return isNaN(l.getTime()) ? null : l;
|
|
111
|
+
}, P = S(() => {
|
|
110
112
|
const t = [];
|
|
111
113
|
for (let e = 0; e < 12; e++) {
|
|
112
114
|
const a = new Date(2e3, e, 1);
|
|
113
115
|
t.push(a.toLocaleDateString(o.locale, { month: "long" }));
|
|
114
116
|
}
|
|
115
117
|
return t;
|
|
116
|
-
}),
|
|
118
|
+
}), R = S(() => {
|
|
117
119
|
const t = [];
|
|
118
120
|
for (let e = 0; e < 7; e++) {
|
|
119
121
|
const a = new Date(2e3, 0, 2 + e);
|
|
@@ -123,7 +125,7 @@ const re = {
|
|
|
123
125
|
}), M = (t) => {
|
|
124
126
|
if (!t) return "";
|
|
125
127
|
let e;
|
|
126
|
-
if (typeof t == "string" && (e =
|
|
128
|
+
if (typeof t == "string" && (e = x(t)), (!e || isNaN(e.getTime())) && (e = new Date(t)), isNaN(e.getTime())) return "";
|
|
127
129
|
const a = e.getFullYear(), l = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0");
|
|
128
130
|
switch (o.date_format) {
|
|
129
131
|
case "DD-MM-YYYY":
|
|
@@ -139,7 +141,7 @@ const re = {
|
|
|
139
141
|
default:
|
|
140
142
|
return `${a}-${l}-${s}`;
|
|
141
143
|
}
|
|
142
|
-
},
|
|
144
|
+
}, x = (t) => {
|
|
143
145
|
if (!t) return null;
|
|
144
146
|
let e, a, l;
|
|
145
147
|
const s = t.split(/[-/]/);
|
|
@@ -157,46 +159,46 @@ const re = {
|
|
|
157
159
|
e = parseInt(s[0]), a = parseInt(s[1]) - 1, l = parseInt(s[2]);
|
|
158
160
|
break;
|
|
159
161
|
}
|
|
160
|
-
const
|
|
161
|
-
return isNaN(
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
const m = new Date(e, a, l);
|
|
163
|
+
return isNaN(m.getTime()) || m.getFullYear() !== e || m.getMonth() !== a || m.getDate() !== l ? null : m;
|
|
164
|
+
}, v = D(""), C = D(!1);
|
|
165
|
+
ee(() => o.modelValue, (t) => {
|
|
166
|
+
C.value || (v.value = M(t));
|
|
165
167
|
}, { immediate: !0 });
|
|
166
|
-
const
|
|
168
|
+
const H = (t) => {
|
|
167
169
|
const e = t.target.value;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
v.value = e, e === "" && (y("update:modelValue", ""), y("change", ""));
|
|
171
|
+
}, I = (t) => {
|
|
172
|
+
C.value = !1;
|
|
173
|
+
const e = v.value, a = x(e);
|
|
174
|
+
if (a && !isNaN(a.getTime()) && !b(a)) {
|
|
171
175
|
const l = M(a);
|
|
172
|
-
|
|
173
|
-
} else e
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
const t = new Date(d.value, i.value, 1), e = new Date(d.value, i.value + 1, 0), a = t.getDay(), l = e.getDate(), s = [], y = new Date(d.value, i.value, 0).getDate();
|
|
179
|
-
for (let u = a - 1; u >= 0; u--)
|
|
176
|
+
v.value = l, y("update:modelValue", l), y("change", l);
|
|
177
|
+
} else e !== "" && (v.value = M(o.modelValue));
|
|
178
|
+
y("blur-sm", t);
|
|
179
|
+
}, U = S(() => {
|
|
180
|
+
const t = new Date(d.value, u.value, 1), e = new Date(d.value, u.value + 1, 0), a = t.getDay(), l = e.getDate(), s = [], m = new Date(d.value, u.value, 0).getDate();
|
|
181
|
+
for (let i = a - 1; i >= 0; i--)
|
|
180
182
|
s.push({
|
|
181
|
-
day:
|
|
183
|
+
day: m - i,
|
|
182
184
|
currentMonth: !1,
|
|
183
|
-
date: new Date(d.value,
|
|
185
|
+
date: new Date(d.value, u.value - 1, m - i)
|
|
184
186
|
});
|
|
185
|
-
for (let
|
|
187
|
+
for (let i = 1; i <= l; i++)
|
|
186
188
|
s.push({
|
|
187
|
-
day:
|
|
189
|
+
day: i,
|
|
188
190
|
currentMonth: !0,
|
|
189
|
-
date: new Date(d.value,
|
|
191
|
+
date: new Date(d.value, u.value, i)
|
|
190
192
|
});
|
|
191
|
-
const
|
|
192
|
-
for (let
|
|
193
|
+
const Y = 42 - s.length;
|
|
194
|
+
for (let i = 1; i <= Y; i++)
|
|
193
195
|
s.push({
|
|
194
|
-
day:
|
|
196
|
+
day: i,
|
|
195
197
|
currentMonth: !1,
|
|
196
|
-
date: new Date(d.value,
|
|
198
|
+
date: new Date(d.value, u.value + 1, i)
|
|
197
199
|
});
|
|
198
200
|
return s;
|
|
199
|
-
}),
|
|
201
|
+
}), b = (t) => {
|
|
200
202
|
if (o.disabled_days.includes(t.getDay()))
|
|
201
203
|
return !0;
|
|
202
204
|
if (o.disabled_dates && o.disabled_dates.length > 0) {
|
|
@@ -204,38 +206,38 @@ const re = {
|
|
|
204
206
|
e.setHours(0, 0, 0, 0);
|
|
205
207
|
for (const a of o.disabled_dates) {
|
|
206
208
|
let l;
|
|
207
|
-
if (typeof a == "string" ? (l =
|
|
209
|
+
if (typeof a == "string" ? (l = x(a), (!l || isNaN(l.getTime())) && (l = new Date(a))) : a instanceof Date && (l = a), l && !isNaN(l.getTime()) && (l.setHours(0, 0, 0, 0), e.getTime() === l.getTime()))
|
|
208
210
|
return !0;
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
if (o.min_date) {
|
|
212
|
-
const e =
|
|
214
|
+
const e = $(o.min_date);
|
|
213
215
|
if (e && (e.setHours(0, 0, 0, 0), t < e))
|
|
214
216
|
return !0;
|
|
215
217
|
}
|
|
216
218
|
if (o.max_date) {
|
|
217
|
-
const e =
|
|
219
|
+
const e = $(o.max_date);
|
|
218
220
|
if (e && (e.setHours(0, 0, 0, 0), t > e))
|
|
219
221
|
return !0;
|
|
220
222
|
}
|
|
221
223
|
return !1;
|
|
222
224
|
}, T = (t) => {
|
|
223
225
|
if (!o.modelValue) return !1;
|
|
224
|
-
const e =
|
|
226
|
+
const e = x(o.modelValue) || new Date(o.modelValue);
|
|
225
227
|
return t.toDateString() === e.toDateString();
|
|
226
|
-
},
|
|
227
|
-
if (
|
|
228
|
+
}, W = (t) => t.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), B = (t) => {
|
|
229
|
+
if (b(t.date)) return;
|
|
228
230
|
const e = M(t.date);
|
|
229
|
-
|
|
230
|
-
}, U = () => {
|
|
231
|
-
i.value === 0 ? (i.value = 11, d.value--) : i.value--;
|
|
232
|
-
}, W = () => {
|
|
233
|
-
i.value === 11 ? (i.value = 0, d.value++) : i.value++;
|
|
231
|
+
y("update:modelValue", e), y("change", e), p.value = !1;
|
|
234
232
|
}, J = () => {
|
|
235
|
-
d.value--;
|
|
233
|
+
u.value === 0 ? (u.value = 11, d.value--) : u.value--;
|
|
236
234
|
}, K = () => {
|
|
235
|
+
u.value === 11 ? (u.value = 0, d.value++) : u.value++;
|
|
236
|
+
}, Q = () => {
|
|
237
|
+
d.value--;
|
|
238
|
+
}, X = () => {
|
|
237
239
|
d.value++;
|
|
238
|
-
},
|
|
240
|
+
}, L = {
|
|
239
241
|
en: {
|
|
240
242
|
clear: "Clear",
|
|
241
243
|
today: "Today"
|
|
@@ -244,38 +246,40 @@ const re = {
|
|
|
244
246
|
clear: "مسح",
|
|
245
247
|
today: "اليوم"
|
|
246
248
|
}
|
|
247
|
-
},
|
|
248
|
-
const e =
|
|
249
|
-
return
|
|
250
|
-
},
|
|
249
|
+
}, _ = () => o.locale && o.locale.startsWith("ar") ? "ar" : "en", F = (t) => {
|
|
250
|
+
const e = _();
|
|
251
|
+
return L[e][t] || L.en[t] || t;
|
|
252
|
+
}, j = () => {
|
|
251
253
|
const t = /* @__PURE__ */ new Date();
|
|
252
|
-
|
|
253
|
-
},
|
|
254
|
-
|
|
254
|
+
u.value = t.getMonth(), d.value = t.getFullYear(), B({ date: t });
|
|
255
|
+
}, O = () => {
|
|
256
|
+
v.value = "", y("update:modelValue", ""), y("change", ""), p.value = !1;
|
|
255
257
|
}, G = () => {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
258
|
+
C.value = !0;
|
|
259
|
+
}, q = () => {
|
|
260
|
+
if (p.value = !p.value, p.value && o.modelValue) {
|
|
261
|
+
const t = x(o.modelValue) || new Date(o.modelValue);
|
|
262
|
+
isNaN(t.getTime()) || (u.value = t.getMonth(), d.value = t.getFullYear());
|
|
259
263
|
}
|
|
260
|
-
},
|
|
261
|
-
V.value && !V.value.contains(t.target) && (
|
|
264
|
+
}, Z = (t) => {
|
|
265
|
+
V.value && !V.value.contains(t.target) && (p.value = !1);
|
|
262
266
|
};
|
|
263
|
-
return
|
|
264
|
-
document.addEventListener("click",
|
|
265
|
-
}),
|
|
266
|
-
document.removeEventListener("click",
|
|
267
|
-
}),
|
|
267
|
+
return te(() => {
|
|
268
|
+
document.addEventListener("click", Z), k.value !== null && k.value.hasAttribute("autofocus") && k.value.focus();
|
|
269
|
+
}), ae(() => {
|
|
270
|
+
document.removeEventListener("click", Z);
|
|
271
|
+
}), E({ focus: () => k.value?.focus() }), (t, e) => (g(), c(N, null, [
|
|
268
272
|
r.show ? (g(), c("div", {
|
|
269
273
|
key: 0,
|
|
270
|
-
class:
|
|
274
|
+
class: w(r.field_name)
|
|
271
275
|
}, [
|
|
272
|
-
r.label_name ? (g(), c("label",
|
|
273
|
-
n("p",
|
|
276
|
+
r.label_name ? (g(), c("label", le, f(r.label_name), 1)) : h("", !0),
|
|
277
|
+
n("p", se, f(v.value), 1),
|
|
274
278
|
e[0] || (e[0] = n("hr", { class: "opacity-100! bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
|
|
275
|
-
], 2)) :
|
|
276
|
-
r.show ?
|
|
279
|
+
], 2)) : h("", !0),
|
|
280
|
+
r.show ? h("", !0) : (g(), c("div", {
|
|
277
281
|
key: 1,
|
|
278
|
-
class:
|
|
282
|
+
class: w({
|
|
279
283
|
[r.field_name]: r.field_name && r.field_name !== "",
|
|
280
284
|
[r.container_class]: r.container_class && r.container_class !== ""
|
|
281
285
|
}),
|
|
@@ -284,24 +288,24 @@ const re = {
|
|
|
284
288
|
}, [
|
|
285
289
|
r.label_name ? (g(), c("label", {
|
|
286
290
|
key: 0,
|
|
287
|
-
class:
|
|
291
|
+
class: w({
|
|
288
292
|
"gl-label-form": r.error_message == "",
|
|
289
293
|
"gl-label-form-invalid": r.error_message !== "",
|
|
290
294
|
required: r.is_required
|
|
291
295
|
}),
|
|
292
296
|
for: r.field_name
|
|
293
|
-
},
|
|
294
|
-
n("div",
|
|
295
|
-
r.inputGroupType ? (g(), c("div",
|
|
297
|
+
}, f(r.label_name), 11, oe)) : h("", !0),
|
|
298
|
+
n("div", ie, [
|
|
299
|
+
r.inputGroupType ? (g(), c("div", ue, [
|
|
296
300
|
r.inputGroupType == "prepend" ? (g(), c("label", {
|
|
297
301
|
key: 0,
|
|
298
302
|
innerHTML: r.inputGroupText,
|
|
299
303
|
class: "h-10 z-10 inline-flex items-center shrink-0 px-4 text-sm font-medium text-center text-gray-500 bg-gray-100 border border-gray-300 dark:text-gray-400 rounded-s-lg focus:outline-hidden dark:bg-gray-700 dark:border-gray-600"
|
|
300
|
-
}, null, 8,
|
|
301
|
-
n("div",
|
|
304
|
+
}, null, 8, de)) : h("", !0),
|
|
305
|
+
n("div", ce, [
|
|
302
306
|
n("input", {
|
|
303
307
|
type: "text",
|
|
304
|
-
class:
|
|
308
|
+
class: w(["rtl:text-right rounded-none!", {
|
|
305
309
|
"gl-input-form": r.error_message == "",
|
|
306
310
|
"gl-input-form-invalid": r.error_message !== "",
|
|
307
311
|
[r.input_class]: r.input_class && r.input_class !== "",
|
|
@@ -311,16 +315,17 @@ const re = {
|
|
|
311
315
|
required: r.is_required,
|
|
312
316
|
name: r.field_name,
|
|
313
317
|
id: r.field_name,
|
|
314
|
-
value:
|
|
315
|
-
onInput:
|
|
316
|
-
|
|
318
|
+
value: v.value,
|
|
319
|
+
onInput: H,
|
|
320
|
+
onFocus: G,
|
|
321
|
+
onBlur: I,
|
|
317
322
|
ref_key: "input",
|
|
318
|
-
ref:
|
|
323
|
+
ref: k,
|
|
319
324
|
placeholder: r.placeholder
|
|
320
|
-
}, null, 42,
|
|
325
|
+
}, null, 42, ge),
|
|
321
326
|
n("div", {
|
|
322
327
|
class: "absolute inset-y-0 end-0 flex items-center pe-3 cursor-pointer",
|
|
323
|
-
onClick:
|
|
328
|
+
onClick: q
|
|
324
329
|
}, e[1] || (e[1] = [
|
|
325
330
|
n("svg", {
|
|
326
331
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
@@ -337,12 +342,12 @@ const re = {
|
|
|
337
342
|
key: 1,
|
|
338
343
|
innerHTML: r.inputGroupText,
|
|
339
344
|
class: "h-10 z-10 inline-flex items-center shrink-0 px-4 text-sm font-medium text-center text-gray-500 bg-gray-100 border border-gray-300 dark:text-gray-400 rounded-e-lg focus:outline-hidden dark:bg-gray-700 dark:border-gray-600"
|
|
340
|
-
}, null, 8,
|
|
341
|
-
])) :
|
|
342
|
-
r.inputGroupType == "" ? (g(), c("div",
|
|
345
|
+
}, null, 8, me)) : h("", !0)
|
|
346
|
+
])) : h("", !0),
|
|
347
|
+
r.inputGroupType == "" ? (g(), c("div", fe, [
|
|
343
348
|
n("input", {
|
|
344
349
|
type: "text",
|
|
345
|
-
class:
|
|
350
|
+
class: w(["rtl:text-right pe-10", {
|
|
346
351
|
"gl-input-form": r.error_message == "",
|
|
347
352
|
"gl-input-form-invalid": r.error_message !== "",
|
|
348
353
|
[r.input_class]: r.input_class && r.input_class !== ""
|
|
@@ -350,16 +355,17 @@ const re = {
|
|
|
350
355
|
required: r.is_required,
|
|
351
356
|
name: r.field_name,
|
|
352
357
|
id: r.field_name,
|
|
353
|
-
value:
|
|
354
|
-
onInput:
|
|
355
|
-
|
|
358
|
+
value: v.value,
|
|
359
|
+
onInput: H,
|
|
360
|
+
onFocus: G,
|
|
361
|
+
onBlur: I,
|
|
356
362
|
ref_key: "input",
|
|
357
|
-
ref:
|
|
363
|
+
ref: k,
|
|
358
364
|
placeholder: r.placeholder
|
|
359
|
-
}, null, 42,
|
|
365
|
+
}, null, 42, ye),
|
|
360
366
|
n("div", {
|
|
361
367
|
class: "absolute inset-y-0 end-0 flex items-center pe-3 cursor-pointer",
|
|
362
|
-
onClick:
|
|
368
|
+
onClick: q
|
|
363
369
|
}, e[2] || (e[2] = [
|
|
364
370
|
n("svg", {
|
|
365
371
|
class: "w-4 h-4 text-gray-500 dark:text-gray-400",
|
|
@@ -371,12 +377,12 @@ const re = {
|
|
|
371
377
|
n("path", { d: "M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z" })
|
|
372
378
|
], -1)
|
|
373
379
|
]))
|
|
374
|
-
])) :
|
|
375
|
-
|
|
376
|
-
n("div",
|
|
380
|
+
])) : h("", !0),
|
|
381
|
+
re(n("div", ve, [
|
|
382
|
+
n("div", he, [
|
|
377
383
|
n("button", {
|
|
378
384
|
type: "button",
|
|
379
|
-
onClick:
|
|
385
|
+
onClick: Q,
|
|
380
386
|
class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
|
|
381
387
|
}, e[3] || (e[3] = [
|
|
382
388
|
n("svg", {
|
|
@@ -395,7 +401,7 @@ const re = {
|
|
|
395
401
|
])),
|
|
396
402
|
n("button", {
|
|
397
403
|
type: "button",
|
|
398
|
-
onClick:
|
|
404
|
+
onClick: J,
|
|
399
405
|
class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
|
|
400
406
|
}, e[4] || (e[4] = [
|
|
401
407
|
n("svg", {
|
|
@@ -412,10 +418,10 @@ const re = {
|
|
|
412
418
|
})
|
|
413
419
|
], -1)
|
|
414
420
|
])),
|
|
415
|
-
n("span",
|
|
421
|
+
n("span", pe, f(P.value[u.value]) + " " + f(d.value), 1),
|
|
416
422
|
n("button", {
|
|
417
423
|
type: "button",
|
|
418
|
-
onClick:
|
|
424
|
+
onClick: K,
|
|
419
425
|
class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
|
|
420
426
|
}, e[5] || (e[5] = [
|
|
421
427
|
n("svg", {
|
|
@@ -434,7 +440,7 @@ const re = {
|
|
|
434
440
|
])),
|
|
435
441
|
n("button", {
|
|
436
442
|
type: "button",
|
|
437
|
-
onClick:
|
|
443
|
+
onClick: X,
|
|
438
444
|
class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
|
|
439
445
|
}, e[6] || (e[6] = [
|
|
440
446
|
n("svg", {
|
|
@@ -452,53 +458,53 @@ const re = {
|
|
|
452
458
|
], -1)
|
|
453
459
|
]))
|
|
454
460
|
]),
|
|
455
|
-
n("div",
|
|
456
|
-
(g(!0), c(
|
|
461
|
+
n("div", De, [
|
|
462
|
+
(g(!0), c(N, null, z(R.value, (a) => (g(), c("div", {
|
|
457
463
|
key: a,
|
|
458
464
|
class: "text-center text-xs font-medium text-gray-500 dark:text-gray-400 py-1"
|
|
459
|
-
},
|
|
465
|
+
}, f(a), 1))), 128))
|
|
460
466
|
]),
|
|
461
|
-
n("div",
|
|
462
|
-
(g(!0), c(
|
|
467
|
+
n("div", ke, [
|
|
468
|
+
(g(!0), c(N, null, z(U.value, (a, l) => (g(), c("button", {
|
|
463
469
|
key: l,
|
|
464
470
|
type: "button",
|
|
465
471
|
onClick: (s) => B(a),
|
|
466
|
-
disabled:
|
|
467
|
-
class:
|
|
472
|
+
disabled: b(a.date),
|
|
473
|
+
class: w([
|
|
468
474
|
"w-8 h-8 text-sm rounded-full flex items-center justify-center transition-colors",
|
|
469
475
|
{
|
|
470
476
|
"text-gray-400 dark:text-gray-600": !a.currentMonth,
|
|
471
|
-
"text-gray-900 dark:text-white": a.currentMonth && !T(a.date) && !
|
|
477
|
+
"text-gray-900 dark:text-white": a.currentMonth && !T(a.date) && !b(a.date),
|
|
472
478
|
"bg-primary dark:bg-primaryDark text-white hover:bg-primary/90 dark:hover:bg-primaryDark/90": T(a.date),
|
|
473
|
-
"ring-2 ring-primary dark:ring-primaryDark ring-offset-1 dark:ring-offset-gray-800":
|
|
474
|
-
"hover:bg-gray-100 dark:hover:bg-gray-700": !T(a.date) && !
|
|
475
|
-
"opacity-50 cursor-not-allowed":
|
|
479
|
+
"ring-2 ring-primary dark:ring-primaryDark ring-offset-1 dark:ring-offset-gray-800": W(a.date) && !T(a.date),
|
|
480
|
+
"hover:bg-gray-100 dark:hover:bg-gray-700": !T(a.date) && !b(a.date),
|
|
481
|
+
"opacity-50 cursor-not-allowed": b(a.date)
|
|
476
482
|
}
|
|
477
483
|
])
|
|
478
|
-
},
|
|
484
|
+
}, f(a.day), 11, xe))), 128))
|
|
479
485
|
]),
|
|
480
|
-
n("div",
|
|
486
|
+
n("div", be, [
|
|
481
487
|
n("button", {
|
|
482
488
|
type: "button",
|
|
483
|
-
onClick:
|
|
489
|
+
onClick: O,
|
|
484
490
|
class: "text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300"
|
|
485
|
-
},
|
|
491
|
+
}, f(F("clear")), 1),
|
|
486
492
|
n("button", {
|
|
487
493
|
type: "button",
|
|
488
|
-
onClick:
|
|
494
|
+
onClick: j,
|
|
489
495
|
class: "text-sm text-primary dark:text-primaryDark hover:text-primary/80 dark:hover:text-primaryDark/80 font-medium"
|
|
490
|
-
},
|
|
496
|
+
}, f(F("today")), 1)
|
|
491
497
|
])
|
|
492
498
|
], 512), [
|
|
493
|
-
[
|
|
499
|
+
[ne, p.value]
|
|
494
500
|
])
|
|
495
501
|
]),
|
|
496
|
-
n("span",
|
|
497
|
-
n("small",
|
|
502
|
+
n("span", we, f(r.error_message), 1),
|
|
503
|
+
n("small", Ye, f(r.description), 1)
|
|
498
504
|
], 2))
|
|
499
505
|
], 64));
|
|
500
506
|
}
|
|
501
507
|
};
|
|
502
508
|
export {
|
|
503
|
-
|
|
509
|
+
Te as default
|
|
504
510
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "The most popular library of interactive components built with Vuejs && Tailwind CSS",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "1.2.
|
|
6
|
+
"version": "1.2.341",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/mrgiant/GoldenLogicUi.git"
|