creativecorvidstylelibrary 1.0.3 → 1.0.4

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,7 +1,7 @@
1
1
  var se = Object.defineProperty;
2
2
  var ue = (A, e, n) => e in A ? se(A, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : A[e] = n;
3
3
  var G = (A, e, n) => ue(A, typeof e != "symbol" ? e + "" : e, n);
4
- import { defineComponent as S, resolveComponent as vA, createElementBlock as m, openBlock as z, createBlock as sA, createCommentVNode as M, renderSlot as K, createVNode as AA, useSlots as fA, normalizeClass as k, createElementVNode as d, resolveDynamicComponent as CA, unref as g, ref as I, mergeModels as uA, useModel as TA, watch as B, Transition as de, withCtx as RA, createTextVNode as R, toDisplayString as j, computed as L, withDirectives as C, mergeProps as zA, vModelCheckbox as ve, vShow as tA, reactive as FA, onMounted as lA, vModelText as VA, Fragment as U, renderList as rA, withKeys as JA, vModelSelect as pA, useAttrs as SA, nextTick as oA, vModelDynamic as fe, watchEffect as le, withModifiers as LA } from "vue";
4
+ import { defineComponent as S, resolveComponent as vA, createElementBlock as m, openBlock as z, createBlock as sA, createCommentVNode as M, renderSlot as K, createVNode as AA, useSlots as fA, normalizeClass as k, createElementVNode as d, resolveDynamicComponent as CA, unref as g, ref as I, mergeModels as uA, useModel as NA, watch as B, Transition as de, withCtx as RA, createTextVNode as R, toDisplayString as j, computed as L, withDirectives as C, mergeProps as zA, vModelCheckbox as ve, vShow as tA, reactive as FA, onMounted as lA, vModelText as VA, Fragment as U, renderList as rA, withKeys as JA, vModelSelect as pA, useAttrs as SA, nextTick as oA, vModelDynamic as fe, withModifiers as XA, watchEffect as le } from "vue";
5
5
  import _ from "dayjs";
6
6
  import { FontAwesomeIcon as kA } from "@fortawesome/vue-fontawesome";
7
7
  const ie = ["title"], KA = /* @__PURE__ */ S({
@@ -223,7 +223,7 @@ const xe = /* @__PURE__ */ Ne(ye, [["render", We]]), je = {
223
223
  error: ["fas", "skull-crossbones"],
224
224
  warning: ["fas", "triangle-exclamation"],
225
225
  note: ["fas", "sticky-note"]
226
- }, l = TA(A, "modelValue"), f = I(null);
226
+ }, l = NA(A, "modelValue"), f = I(null);
227
227
  B(
228
228
  () => l.value,
229
229
  (s) => {
@@ -267,7 +267,7 @@ const xe = /* @__PURE__ */ Ne(ye, [["render", We]]), je = {
267
267
  _: 3
268
268
  }));
269
269
  }
270
- }), XA = {
270
+ }), OA = {
271
271
  0: {
272
272
  name: "Sunday",
273
273
  short: "Sun",
@@ -501,7 +501,7 @@ class aA {
501
501
  return Y[this.month];
502
502
  }
503
503
  getDay() {
504
- return XA[this.day];
504
+ return OA[this.day];
505
505
  }
506
506
  getDate() {
507
507
  return this.date;
@@ -644,7 +644,7 @@ class Ge {
644
644
  }
645
645
  getActiveMonthFirstDay() {
646
646
  const e = new Date(this.activeDate.year, this.activeDate.month, 1);
647
- return e.setMinutes(e.getMinutes() - e.getTimezoneOffset()), new gA(XA[e.getDay()]);
647
+ return e.setMinutes(e.getMinutes() - e.getTimezoneOffset()), new gA(OA[e.getDay()]);
648
648
  }
649
649
  getActiveMonthLastDay() {
650
650
  this.activeMonth.value === 1 && this.isLeapYear() && (this.activeMonth.days = 29);
@@ -653,7 +653,7 @@ class Ge {
653
653
  this.activeDate.month,
654
654
  this.activeMonth.days
655
655
  );
656
- return new gA(XA[e.getDay()]);
656
+ return new gA(OA[e.getDay()]);
657
657
  }
658
658
  getActiveMonthDates() {
659
659
  const e = [];
@@ -671,7 +671,7 @@ class Ge {
671
671
  this.previousMonth.value,
672
672
  this.previousMonth.days
673
673
  );
674
- if (new gA(XA[n.getDay()]).value < 6) {
674
+ if (new gA(OA[n.getDay()]).value < 6) {
675
675
  const a = this.getActiveMonthFirstDay(), l = this.previousMonth.days - a.value;
676
676
  for (let f = l; f <= this.previousMonth.days; f++) {
677
677
  const c = this.previousMonth.value === 11 ? this._activeDate.year - 1 : this._activeDate.year, i = new Date(c, this.previousMonth.value, f);
@@ -892,7 +892,7 @@ const DA = /* @__PURE__ */ new WeakMap(), Ue = (A, e) => {
892
892
  function _e(A) {
893
893
  return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
894
894
  }
895
- var OA = { exports: {} }, $e = OA.exports, BA;
895
+ var TA = { exports: {} }, $e = TA.exports, BA;
896
896
  function At() {
897
897
  return BA || (BA = 1, function(A, e) {
898
898
  (function(n, t) {
@@ -992,10 +992,10 @@ function At() {
992
992
  w && (F = E[2]), i = this.$locale(), !D && F && (i = H.Ls[F]), this.$d = function(N, eA, nA, bA) {
993
993
  try {
994
994
  if (["x", "X"].indexOf(eA) > -1) return new Date((eA === "X" ? 1e3 : 1) * N);
995
- var $ = T(eA)(N), NA = $.year, cA = $.month, ee = $.day, te = $.hours, ne = $.minutes, ae = $.seconds, re = $.milliseconds, qA = $.zone, EA = $.week, yA = /* @__PURE__ */ new Date(), WA = ee || (NA || cA ? 1 : yA.getDate()), xA = NA || yA.getFullYear(), PA = 0;
996
- NA && !cA || (PA = cA > 0 ? cA - 1 : yA.getMonth());
997
- var mA, jA = te || 0, hA = ne || 0, HA = ae || 0, MA = re || 0;
998
- return qA ? new Date(Date.UTC(xA, PA, WA, jA, hA, HA, MA + 60 * qA.offset * 1e3)) : nA ? new Date(Date.UTC(xA, PA, WA, jA, hA, HA, MA)) : (mA = new Date(xA, PA, WA, jA, hA, HA, MA), EA && (mA = bA(mA).week(EA).toDate()), mA);
995
+ var $ = T(eA)(N), yA = $.year, cA = $.month, ee = $.day, te = $.hours, ne = $.minutes, ae = $.seconds, re = $.milliseconds, qA = $.zone, EA = $.week, WA = /* @__PURE__ */ new Date(), xA = ee || (yA || cA ? 1 : WA.getDate()), jA = yA || WA.getFullYear(), PA = 0;
996
+ yA && !cA || (PA = cA > 0 ? cA - 1 : WA.getMonth());
997
+ var mA, hA = te || 0, HA = ne || 0, MA = ae || 0, LA = re || 0;
998
+ return qA ? new Date(Date.UTC(jA, PA, xA, hA, HA, MA, LA + 60 * qA.offset * 1e3)) : nA ? new Date(Date.UTC(jA, PA, xA, hA, HA, MA, LA)) : (mA = new Date(jA, PA, xA, hA, HA, MA, LA), EA && (mA = bA(mA).week(EA).toDate()), mA);
999
999
  } catch {
1000
1000
  return /* @__PURE__ */ new Date("");
1001
1001
  }
@@ -1013,7 +1013,7 @@ function At() {
1013
1013
  };
1014
1014
  };
1015
1015
  });
1016
- }(OA)), OA.exports;
1016
+ }(TA)), TA.exports;
1017
1017
  }
1018
1018
  var et = At();
1019
1019
  const $A = /* @__PURE__ */ _e(et), tt = { class: "CC__input-date-container" }, nt = ["for"], at = {
@@ -1822,7 +1822,7 @@ const Ot = ["for"], Tt = {
1822
1822
  }),
1823
1823
  emits: /* @__PURE__ */ uA(["click:clear"], ["update:modelValue"]),
1824
1824
  setup(A, { expose: e, emit: n }) {
1825
- const t = TA(A, "modelValue"), a = A, l = n, f = fA(), c = SA(), i = dA(), s = I([]), u = I(!1), X = I(!1), o = I(!1), Z = L(() => {
1825
+ const t = NA(A, "modelValue"), a = A, l = n, f = fA(), c = SA(), i = dA(), s = I([]), u = I(!1), X = I(!1), o = I(!1), Z = L(() => {
1826
1826
  if (a.errorMessages.length > 0)
1827
1827
  return a.errorMessages[0];
1828
1828
  const x = a.rules.map((O) => O(t.value)), h = x == null ? void 0 : x.filter(
@@ -2009,7 +2009,7 @@ const Ot = ["for"], Tt = {
2009
2009
  }),
2010
2010
  emits: ["update:modelValue"],
2011
2011
  setup(A, { expose: e }) {
2012
- const n = TA(A, "modelValue"), t = A, a = fA(), l = SA(), f = I(!1), c = I(!1), i = I(!1), s = I(!1), u = I("auto"), X = I(), o = L(() => {
2012
+ const n = NA(A, "modelValue"), t = A, a = fA(), l = SA(), f = I(!1), c = I(!1), i = I(!1), s = I(!1), u = I("auto"), X = I(), o = L(() => {
2013
2013
  if (t.errorMessages.length > 0)
2014
2014
  return t.errorMessages[0];
2015
2015
  const O = t.rules.map((E) => E(n.value)), Q = O == null ? void 0 : O.filter(
@@ -2224,7 +2224,7 @@ const Ot = ["for"], Tt = {
2224
2224
  }),
2225
2225
  emits: /* @__PURE__ */ uA(["update:focus", "update:blur", "update:modelValue"], ["update:modelValue"]),
2226
2226
  setup(A, { emit: e }) {
2227
- const n = TA(A, "modelValue"), t = e, a = A, l = () => {
2227
+ const n = NA(A, "modelValue"), t = e, a = A, l = () => {
2228
2228
  n.value = "";
2229
2229
  }, f = L(() => a.error ? "invalid__input" : "");
2230
2230
  return (c, i) => (z(), m("div", cn, [
@@ -2263,8 +2263,9 @@ const Ot = ["for"], Tt = {
2263
2263
  ]),
2264
2264
  C(AA(QA, {
2265
2265
  class: "clear-button",
2266
+ type: "button",
2266
2267
  title: "Clear input",
2267
- onClick: i[3] || (i[3] = (s) => l())
2268
+ onClick: i[3] || (i[3] = XA((s) => l(), ["stop", "prevent"]))
2268
2269
  }, null, 512), [
2269
2270
  [tA, a.clearable && n.value]
2270
2271
  ]),
@@ -2519,9 +2520,9 @@ const Ot = ["for"], Tt = {
2519
2520
  }), (W, D) => (z(), m("div", Mn, [
2520
2521
  d("div", {
2521
2522
  class: k(["cc__input_file-upload-container", { "is-dragging": s.value, invalid__input: c.value }]),
2522
- onDragover: LA(r, ["prevent"]),
2523
- onDragleave: LA(b, ["prevent"]),
2524
- onDrop: LA(H, ["prevent"])
2523
+ onDragover: XA(r, ["prevent"]),
2524
+ onDragleave: XA(b, ["prevent"]),
2525
+ onDrop: XA(H, ["prevent"])
2525
2526
  }, [
2526
2527
  d("div", Ln, [
2527
2528
  d("input", {