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