golden-logic-ui 1.3.13 → 1.3.14

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,4 +1,4 @@
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";
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 l, toDisplayString as f, withDirectives as re, renderList as z, vShow as ne } from "vue";
2
2
  const le = {
3
3
  key: 0,
4
4
  class: "gl-label-form"
@@ -95,139 +95,140 @@ const le = {
95
95
  },
96
96
  emits: ["update:modelValue", "change", "blur-sm"],
97
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
- if (!t) return null;
100
- if (t.toLowerCase() === "today")
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()), $ = (a) => {
99
+ if (!a) return null;
100
+ if (a.toLowerCase() === "today")
101
101
  return /* @__PURE__ */ new Date();
102
- const e = t.match(/^([+-]?)(\d+)([dmy])$/i);
102
+ const e = a.match(/^([+-]?)(\d+)([dmy])$/i);
103
103
  if (e) {
104
- const s = e[1] === "-" ? -1 : 1, m = parseInt(e[2]) * s, Y = e[3].toLowerCase(), i = /* @__PURE__ */ new Date();
104
+ const n = e[1] === "-" ? -1 : 1, m = parseInt(e[2]) * n, Y = e[3].toLowerCase(), i = /* @__PURE__ */ new Date();
105
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 = x(t);
108
- if (a) return a;
109
- const l = new Date(t);
110
- return isNaN(l.getTime()) ? null : l;
107
+ const t = x(a);
108
+ if (t) return t;
109
+ const s = new Date(a);
110
+ return isNaN(s.getTime()) ? null : s;
111
111
  }, P = S(() => {
112
- const t = [];
112
+ const a = [];
113
113
  for (let e = 0; e < 12; e++) {
114
- const a = new Date(2e3, e, 1);
115
- t.push(a.toLocaleDateString(o.locale, { month: "long" }));
114
+ const t = new Date(2e3, e, 1);
115
+ a.push(t.toLocaleDateString(o.locale, { month: "long" }));
116
116
  }
117
- return t;
117
+ return a;
118
118
  }), R = S(() => {
119
- const t = [];
119
+ const a = [];
120
120
  for (let e = 0; e < 7; e++) {
121
- const a = new Date(2e3, 0, 2 + e);
122
- t.push(a.toLocaleDateString(o.locale, { weekday: "short" }));
121
+ const t = new Date(2e3, 0, 2 + e);
122
+ a.push(t.toLocaleDateString(o.locale, { weekday: "short" }));
123
123
  }
124
- return t;
125
- }), M = (t) => {
126
- if (!t) return "";
124
+ return a;
125
+ }), M = (a) => {
126
+ if (!a) return "";
127
127
  let e;
128
- if (typeof t == "string" && (e = x(t)), (!e || isNaN(e.getTime())) && (e = new Date(t)), isNaN(e.getTime())) return "";
129
- const a = e.getFullYear(), l = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0");
128
+ if (typeof a == "string" && (e = x(a)), (!e || isNaN(e.getTime())) && (e = new Date(a)), isNaN(e.getTime())) return "";
129
+ const t = e.getFullYear(), s = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
130
130
  switch (o.date_format) {
131
131
  case "DD-MM-YYYY":
132
- return `${s}-${l}-${a}`;
132
+ return `${n}-${s}-${t}`;
133
133
  case "MM-DD-YYYY":
134
- return `${l}-${s}-${a}`;
134
+ return `${s}-${n}-${t}`;
135
135
  case "DD/MM/YYYY":
136
- return `${s}/${l}/${a}`;
136
+ return `${n}/${s}/${t}`;
137
137
  case "MM/DD/YYYY":
138
- return `${l}/${s}/${a}`;
138
+ return `${s}/${n}/${t}`;
139
139
  case "YYYY/MM/DD":
140
- return `${a}/${l}/${s}`;
140
+ return `${t}/${s}/${n}`;
141
141
  default:
142
- return `${a}-${l}-${s}`;
142
+ return `${t}-${s}-${n}`;
143
143
  }
144
- }, x = (t) => {
145
- if (!t) return null;
146
- let e, a, l;
147
- const s = t.split(/[-/]/);
148
- if (s.length !== 3) return null;
144
+ }, x = (a) => {
145
+ if (!a) return null;
146
+ let e, t, s;
147
+ const n = a.split(/[-/]/);
148
+ if (n.length !== 3) return null;
149
149
  switch (o.date_format) {
150
150
  case "DD-MM-YYYY":
151
151
  case "DD/MM/YYYY":
152
- l = parseInt(s[0]), a = parseInt(s[1]) - 1, e = parseInt(s[2]);
152
+ s = parseInt(n[0]), t = parseInt(n[1]) - 1, e = parseInt(n[2]);
153
153
  break;
154
154
  case "MM-DD-YYYY":
155
155
  case "MM/DD/YYYY":
156
- a = parseInt(s[0]) - 1, l = parseInt(s[1]), e = parseInt(s[2]);
156
+ t = parseInt(n[0]) - 1, s = parseInt(n[1]), e = parseInt(n[2]);
157
157
  break;
158
158
  default:
159
- e = parseInt(s[0]), a = parseInt(s[1]) - 1, l = parseInt(s[2]);
159
+ e = parseInt(n[0]), t = parseInt(n[1]) - 1, s = parseInt(n[2]);
160
160
  break;
161
161
  }
162
- const m = new Date(e, a, l);
163
- return isNaN(m.getTime()) || m.getFullYear() !== e || m.getMonth() !== a || m.getDate() !== l ? null : m;
162
+ const m = new Date(e, t, s);
163
+ return isNaN(m.getTime()) || m.getFullYear() !== e || m.getMonth() !== t || m.getDate() !== s ? null : m;
164
164
  }, v = D(""), C = D(!1);
165
- ee(() => o.modelValue, (t) => {
166
- C.value || (v.value = M(t));
165
+ ee(() => o.modelValue, (a) => {
166
+ C.value || (v.value = M(a));
167
167
  }, { immediate: !0 });
168
- const H = (t) => {
169
- const e = t.target.value;
168
+ const H = (a) => {
169
+ const e = a.target.value;
170
170
  v.value = e, e === "" && (y("update:modelValue", ""), y("change", ""));
171
- }, I = (t) => {
171
+ }, I = (a) => {
172
172
  C.value = !1;
173
- const e = v.value, a = x(e);
174
- if (a && !isNaN(a.getTime()) && !b(a)) {
175
- const l = M(a);
176
- v.value = l, y("update:modelValue", l), y("change", l);
173
+ const e = v.value, t = x(e);
174
+ if (t && !isNaN(t.getTime()) && !b(t)) {
175
+ const s = M(t);
176
+ v.value = s, y("update:modelValue", s), y("change", s);
177
177
  } else e !== "" && (v.value = M(o.modelValue));
178
- y("blur-sm", t);
178
+ y("blur-sm", a);
179
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--)
182
- s.push({
180
+ const a = new Date(d.value, u.value, 1), e = new Date(d.value, u.value + 1, 0), t = a.getDay(), s = e.getDate(), n = [], m = new Date(d.value, u.value, 0).getDate();
181
+ for (let i = t - 1; i >= 0; i--)
182
+ n.push({
183
183
  day: m - i,
184
184
  currentMonth: !1,
185
185
  date: new Date(d.value, u.value - 1, m - i)
186
186
  });
187
- for (let i = 1; i <= l; i++)
188
- s.push({
187
+ for (let i = 1; i <= s; i++)
188
+ n.push({
189
189
  day: i,
190
190
  currentMonth: !0,
191
191
  date: new Date(d.value, u.value, i)
192
192
  });
193
- const Y = 42 - s.length;
193
+ const Y = 42 - n.length;
194
194
  for (let i = 1; i <= Y; i++)
195
- s.push({
195
+ n.push({
196
196
  day: i,
197
197
  currentMonth: !1,
198
198
  date: new Date(d.value, u.value + 1, i)
199
199
  });
200
- return s;
201
- }), b = (t) => {
202
- if (o.disabled_days.includes(t.getDay()))
200
+ return n;
201
+ }), b = (a) => {
202
+ if (o.disabled_days.includes(a.getDay()))
203
203
  return !0;
204
204
  if (o.disabled_dates && o.disabled_dates.length > 0) {
205
- const e = new Date(t);
206
- e.setHours(0, 0, 0, 0);
207
- for (const a of o.disabled_dates) {
208
- let 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()))
205
+ const t = new Date(a);
206
+ t.setHours(0, 0, 0, 0);
207
+ for (const s of o.disabled_dates) {
208
+ let n;
209
+ if (typeof s == "string" ? (n = x(s), (!n || isNaN(n.getTime())) && (n = new Date(s))) : s instanceof Date && (n = s), n && !isNaN(n.getTime()) && (n.setHours(0, 0, 0, 0), t.getTime() === n.getTime()))
210
210
  return !0;
211
211
  }
212
212
  }
213
- if (o.min_date) {
214
- const e = $(o.min_date);
215
- if (e && (e.setHours(0, 0, 0, 0), t < e))
213
+ const e = new Date(a);
214
+ if (e.setHours(0, 0, 0, 0), o.min_date) {
215
+ const t = $(o.min_date);
216
+ if (t && (t.setHours(0, 0, 0, 0), e < t))
216
217
  return !0;
217
218
  }
218
219
  if (o.max_date) {
219
- const e = $(o.max_date);
220
- if (e && (e.setHours(0, 0, 0, 0), t > e))
220
+ const t = $(o.max_date);
221
+ if (t && (t.setHours(0, 0, 0, 0), e > t))
221
222
  return !0;
222
223
  }
223
224
  return !1;
224
- }, T = (t) => {
225
+ }, T = (a) => {
225
226
  if (!o.modelValue) return !1;
226
227
  const e = x(o.modelValue) || new Date(o.modelValue);
227
- return t.toDateString() === e.toDateString();
228
- }, W = (t) => t.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), B = (t) => {
229
- if (b(t.date)) return;
230
- const e = M(t.date);
228
+ return a.toDateString() === e.toDateString();
229
+ }, W = (a) => a.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), B = (a) => {
230
+ if (b(a.date)) return;
231
+ const e = M(a.date);
231
232
  y("update:modelValue", e), y("change", e), p.value = !1;
232
233
  }, J = () => {
233
234
  u.value === 0 ? (u.value = 11, d.value--) : u.value--;
@@ -246,36 +247,36 @@ const le = {
246
247
  clear: "مسح",
247
248
  today: "اليوم"
248
249
  }
249
- }, _ = () => o.locale && o.locale.startsWith("ar") ? "ar" : "en", F = (t) => {
250
+ }, _ = () => o.locale && o.locale.startsWith("ar") ? "ar" : "en", F = (a) => {
250
251
  const e = _();
251
- return L[e][t] || L.en[t] || t;
252
+ return L[e][a] || L.en[a] || a;
252
253
  }, j = () => {
253
- const t = /* @__PURE__ */ new Date();
254
- u.value = t.getMonth(), d.value = t.getFullYear(), B({ date: t });
254
+ const a = /* @__PURE__ */ new Date();
255
+ u.value = a.getMonth(), d.value = a.getFullYear(), B({ date: a });
255
256
  }, O = () => {
256
257
  v.value = "", y("update:modelValue", ""), y("change", ""), p.value = !1;
257
258
  }, G = () => {
258
259
  C.value = !0;
259
260
  }, q = () => {
260
261
  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());
262
+ const a = x(o.modelValue) || new Date(o.modelValue);
263
+ isNaN(a.getTime()) || (u.value = a.getMonth(), d.value = a.getFullYear());
263
264
  }
264
- }, Z = (t) => {
265
- V.value && !V.value.contains(t.target) && (p.value = !1);
265
+ }, Z = (a) => {
266
+ V.value && !V.value.contains(a.target) && (p.value = !1);
266
267
  };
267
268
  return te(() => {
268
269
  document.addEventListener("click", Z), k.value !== null && k.value.hasAttribute("autofocus") && k.value.focus();
269
270
  }), ae(() => {
270
271
  document.removeEventListener("click", Z);
271
- }), E({ focus: () => k.value?.focus() }), (t, e) => (g(), c(N, null, [
272
+ }), E({ focus: () => k.value?.focus() }), (a, e) => (g(), c(N, null, [
272
273
  r.show ? (g(), c("div", {
273
274
  key: 0,
274
275
  class: w(r.field_name)
275
276
  }, [
276
277
  r.label_name ? (g(), c("label", le, f(r.label_name), 1)) : h("", !0),
277
- n("p", se, f(v.value), 1),
278
- e[0] || (e[0] = n("hr", { class: "opacity-100! bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
278
+ l("p", se, f(v.value), 1),
279
+ e[0] || (e[0] = l("hr", { class: "opacity-100! bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
279
280
  ], 2)) : h("", !0),
280
281
  r.show ? h("", !0) : (g(), c("div", {
281
282
  key: 1,
@@ -295,15 +296,15 @@ const le = {
295
296
  }),
296
297
  for: r.field_name
297
298
  }, f(r.label_name), 11, oe)) : h("", !0),
298
- n("div", ie, [
299
+ l("div", ie, [
299
300
  r.inputGroupType ? (g(), c("div", ue, [
300
301
  r.inputGroupType == "prepend" ? (g(), c("label", {
301
302
  key: 0,
302
303
  innerHTML: r.inputGroupText,
303
304
  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"
304
305
  }, null, 8, de)) : h("", !0),
305
- n("div", ce, [
306
- n("input", {
306
+ l("div", ce, [
307
+ l("input", {
307
308
  type: "text",
308
309
  class: w(["rtl:text-right rounded-none!", {
309
310
  "gl-input-form": r.error_message == "",
@@ -323,18 +324,18 @@ const le = {
323
324
  ref: k,
324
325
  placeholder: r.placeholder
325
326
  }, null, 42, ge),
326
- n("div", {
327
+ l("div", {
327
328
  class: "absolute inset-y-0 end-0 flex items-center pe-3 cursor-pointer",
328
329
  onClick: q
329
330
  }, e[1] || (e[1] = [
330
- n("svg", {
331
+ l("svg", {
331
332
  class: "w-4 h-4 text-gray-500 dark:text-gray-400",
332
333
  "aria-hidden": "true",
333
334
  xmlns: "http://www.w3.org/2000/svg",
334
335
  fill: "currentColor",
335
336
  viewBox: "0 0 20 20"
336
337
  }, [
337
- 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" })
338
+ l("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" })
338
339
  ], -1)
339
340
  ]))
340
341
  ]),
@@ -345,7 +346,7 @@ const le = {
345
346
  }, null, 8, me)) : h("", !0)
346
347
  ])) : h("", !0),
347
348
  r.inputGroupType == "" ? (g(), c("div", fe, [
348
- n("input", {
349
+ l("input", {
349
350
  type: "text",
350
351
  class: w(["rtl:text-right pe-10", {
351
352
  "gl-input-form": r.error_message == "",
@@ -363,35 +364,35 @@ const le = {
363
364
  ref: k,
364
365
  placeholder: r.placeholder
365
366
  }, null, 42, ye),
366
- n("div", {
367
+ l("div", {
367
368
  class: "absolute inset-y-0 end-0 flex items-center pe-3 cursor-pointer",
368
369
  onClick: q
369
370
  }, e[2] || (e[2] = [
370
- n("svg", {
371
+ l("svg", {
371
372
  class: "w-4 h-4 text-gray-500 dark:text-gray-400",
372
373
  "aria-hidden": "true",
373
374
  xmlns: "http://www.w3.org/2000/svg",
374
375
  fill: "currentColor",
375
376
  viewBox: "0 0 20 20"
376
377
  }, [
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" })
378
+ l("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" })
378
379
  ], -1)
379
380
  ]))
380
381
  ])) : h("", !0),
381
- re(n("div", ve, [
382
- n("div", he, [
383
- n("button", {
382
+ re(l("div", ve, [
383
+ l("div", he, [
384
+ l("button", {
384
385
  type: "button",
385
386
  onClick: Q,
386
387
  class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
387
388
  }, e[3] || (e[3] = [
388
- n("svg", {
389
+ l("svg", {
389
390
  class: "w-4 h-4 rtl:-scale-x-100",
390
391
  fill: "none",
391
392
  stroke: "currentColor",
392
393
  viewBox: "0 0 24 24"
393
394
  }, [
394
- n("path", {
395
+ l("path", {
395
396
  "stroke-linecap": "round",
396
397
  "stroke-linejoin": "round",
397
398
  "stroke-width": "2",
@@ -399,18 +400,18 @@ const le = {
399
400
  })
400
401
  ], -1)
401
402
  ])),
402
- n("button", {
403
+ l("button", {
403
404
  type: "button",
404
405
  onClick: J,
405
406
  class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
406
407
  }, e[4] || (e[4] = [
407
- n("svg", {
408
+ l("svg", {
408
409
  class: "w-4 h-4 rtl:-scale-x-100",
409
410
  fill: "none",
410
411
  stroke: "currentColor",
411
412
  viewBox: "0 0 24 24"
412
413
  }, [
413
- n("path", {
414
+ l("path", {
414
415
  "stroke-linecap": "round",
415
416
  "stroke-linejoin": "round",
416
417
  "stroke-width": "2",
@@ -418,19 +419,19 @@ const le = {
418
419
  })
419
420
  ], -1)
420
421
  ])),
421
- n("span", pe, f(P.value[u.value]) + " " + f(d.value), 1),
422
- n("button", {
422
+ l("span", pe, f(P.value[u.value]) + " " + f(d.value), 1),
423
+ l("button", {
423
424
  type: "button",
424
425
  onClick: K,
425
426
  class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
426
427
  }, e[5] || (e[5] = [
427
- n("svg", {
428
+ l("svg", {
428
429
  class: "w-4 h-4 rtl:-scale-x-100",
429
430
  fill: "none",
430
431
  stroke: "currentColor",
431
432
  viewBox: "0 0 24 24"
432
433
  }, [
433
- n("path", {
434
+ l("path", {
434
435
  "stroke-linecap": "round",
435
436
  "stroke-linejoin": "round",
436
437
  "stroke-width": "2",
@@ -438,18 +439,18 @@ const le = {
438
439
  })
439
440
  ], -1)
440
441
  ])),
441
- n("button", {
442
+ l("button", {
442
443
  type: "button",
443
444
  onClick: X,
444
445
  class: "p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded text-gray-500 dark:text-gray-400"
445
446
  }, e[6] || (e[6] = [
446
- n("svg", {
447
+ l("svg", {
447
448
  class: "w-4 h-4 rtl:-scale-x-100",
448
449
  fill: "none",
449
450
  stroke: "currentColor",
450
451
  viewBox: "0 0 24 24"
451
452
  }, [
452
- n("path", {
453
+ l("path", {
453
454
  "stroke-linecap": "round",
454
455
  "stroke-linejoin": "round",
455
456
  "stroke-width": "2",
@@ -458,38 +459,38 @@ const le = {
458
459
  ], -1)
459
460
  ]))
460
461
  ]),
461
- n("div", De, [
462
- (g(!0), c(N, null, z(R.value, (a) => (g(), c("div", {
463
- key: a,
462
+ l("div", De, [
463
+ (g(!0), c(N, null, z(R.value, (t) => (g(), c("div", {
464
+ key: t,
464
465
  class: "text-center text-xs font-medium text-gray-500 dark:text-gray-400 py-1"
465
- }, f(a), 1))), 128))
466
+ }, f(t), 1))), 128))
466
467
  ]),
467
- n("div", ke, [
468
- (g(!0), c(N, null, z(U.value, (a, l) => (g(), c("button", {
469
- key: l,
468
+ l("div", ke, [
469
+ (g(!0), c(N, null, z(U.value, (t, s) => (g(), c("button", {
470
+ key: s,
470
471
  type: "button",
471
- onClick: (s) => B(a),
472
- disabled: b(a.date),
472
+ onClick: (n) => B(t),
473
+ disabled: b(t.date),
473
474
  class: w([
474
475
  "w-7 h-7 text-sm rounded-full flex items-center justify-center transition-colors",
475
476
  {
476
- "text-gray-400 dark:text-gray-600": !a.currentMonth,
477
- "text-gray-900 dark:text-white": a.currentMonth && !T(a.date) && !b(a.date),
478
- "bg-primary dark:bg-primaryDark text-white hover:bg-primary/90 dark:hover:bg-primaryDark/90": T(a.date),
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)
477
+ "text-gray-400 dark:text-gray-600": !t.currentMonth,
478
+ "text-gray-900 dark:text-white": t.currentMonth && !T(t.date) && !b(t.date),
479
+ "bg-primary dark:bg-primaryDark text-white hover:bg-primary/90 dark:hover:bg-primaryDark/90": T(t.date),
480
+ "ring-2 ring-primary dark:ring-primaryDark ring-offset-1 dark:ring-offset-gray-800": W(t.date) && !T(t.date),
481
+ "hover:bg-gray-100 dark:hover:bg-gray-700": !T(t.date) && !b(t.date),
482
+ "opacity-50 cursor-not-allowed": b(t.date)
482
483
  }
483
484
  ])
484
- }, f(a.day), 11, xe))), 128))
485
+ }, f(t.day), 11, xe))), 128))
485
486
  ]),
486
- n("div", be, [
487
- n("button", {
487
+ l("div", be, [
488
+ l("button", {
488
489
  type: "button",
489
490
  onClick: O,
490
491
  class: "text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300"
491
492
  }, f(F("clear")), 1),
492
- n("button", {
493
+ l("button", {
493
494
  type: "button",
494
495
  onClick: j,
495
496
  class: "text-sm text-primary dark:text-primaryDark hover:text-primary/80 dark:hover:text-primaryDark/80 font-medium"
@@ -499,8 +500,8 @@ const le = {
499
500
  [ne, p.value]
500
501
  ])
501
502
  ]),
502
- n("span", we, f(r.error_message), 1),
503
- n("small", Ye, f(r.description), 1)
503
+ l("span", we, f(r.error_message), 1),
504
+ l("small", Ye, f(r.description), 1)
504
505
  ], 2))
505
506
  ], 64));
506
507
  }
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.3.13",
6
+ "version": "1.3.14",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/mrgiant/GoldenLogicUi.git"