creativecorvidstylelibrary 1.0.2 → 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({
@@ -74,7 +74,8 @@ const ie = ["title"], KA = /* @__PURE__ */ S({
74
74
  return z(), m("button", {
75
75
  class: "CC__close-button",
76
76
  "aria-label": "close-button",
77
- title: A.title
77
+ title: A.title,
78
+ type: "button"
78
79
  }, [
79
80
  K(e.$slots, "default", {}, () => [
80
81
  AA(t, {
@@ -222,7 +223,7 @@ const xe = /* @__PURE__ */ Ne(ye, [["render", We]]), je = {
222
223
  error: ["fas", "skull-crossbones"],
223
224
  warning: ["fas", "triangle-exclamation"],
224
225
  note: ["fas", "sticky-note"]
225
- }, l = TA(A, "modelValue"), f = I(null);
226
+ }, l = NA(A, "modelValue"), f = I(null);
226
227
  B(
227
228
  () => l.value,
228
229
  (s) => {
@@ -266,7 +267,7 @@ const xe = /* @__PURE__ */ Ne(ye, [["render", We]]), je = {
266
267
  _: 3
267
268
  }));
268
269
  }
269
- }), XA = {
270
+ }), OA = {
270
271
  0: {
271
272
  name: "Sunday",
272
273
  short: "Sun",
@@ -500,7 +501,7 @@ class aA {
500
501
  return Y[this.month];
501
502
  }
502
503
  getDay() {
503
- return XA[this.day];
504
+ return OA[this.day];
504
505
  }
505
506
  getDate() {
506
507
  return this.date;
@@ -643,7 +644,7 @@ class Ge {
643
644
  }
644
645
  getActiveMonthFirstDay() {
645
646
  const e = new Date(this.activeDate.year, this.activeDate.month, 1);
646
- 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()]);
647
648
  }
648
649
  getActiveMonthLastDay() {
649
650
  this.activeMonth.value === 1 && this.isLeapYear() && (this.activeMonth.days = 29);
@@ -652,7 +653,7 @@ class Ge {
652
653
  this.activeDate.month,
653
654
  this.activeMonth.days
654
655
  );
655
- return new gA(XA[e.getDay()]);
656
+ return new gA(OA[e.getDay()]);
656
657
  }
657
658
  getActiveMonthDates() {
658
659
  const e = [];
@@ -670,7 +671,7 @@ class Ge {
670
671
  this.previousMonth.value,
671
672
  this.previousMonth.days
672
673
  );
673
- if (new gA(XA[n.getDay()]).value < 6) {
674
+ if (new gA(OA[n.getDay()]).value < 6) {
674
675
  const a = this.getActiveMonthFirstDay(), l = this.previousMonth.days - a.value;
675
676
  for (let f = l; f <= this.previousMonth.days; f++) {
676
677
  const c = this.previousMonth.value === 11 ? this._activeDate.year - 1 : this._activeDate.year, i = new Date(c, this.previousMonth.value, f);
@@ -891,7 +892,7 @@ const DA = /* @__PURE__ */ new WeakMap(), Ue = (A, e) => {
891
892
  function _e(A) {
892
893
  return A && A.__esModule && Object.prototype.hasOwnProperty.call(A, "default") ? A.default : A;
893
894
  }
894
- var OA = { exports: {} }, $e = OA.exports, BA;
895
+ var TA = { exports: {} }, $e = TA.exports, BA;
895
896
  function At() {
896
897
  return BA || (BA = 1, function(A, e) {
897
898
  (function(n, t) {
@@ -991,10 +992,10 @@ function At() {
991
992
  w && (F = E[2]), i = this.$locale(), !D && F && (i = H.Ls[F]), this.$d = function(N, eA, nA, bA) {
992
993
  try {
993
994
  if (["x", "X"].indexOf(eA) > -1) return new Date((eA === "X" ? 1e3 : 1) * N);
994
- 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;
995
- NA && !cA || (PA = cA > 0 ? cA - 1 : yA.getMonth());
996
- var mA, jA = te || 0, hA = ne || 0, HA = ae || 0, MA = re || 0;
997
- 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);
998
999
  } catch {
999
1000
  return /* @__PURE__ */ new Date("");
1000
1001
  }
@@ -1012,7 +1013,7 @@ function At() {
1012
1013
  };
1013
1014
  };
1014
1015
  });
1015
- }(OA)), OA.exports;
1016
+ }(TA)), TA.exports;
1016
1017
  }
1017
1018
  var et = At();
1018
1019
  const $A = /* @__PURE__ */ _e(et), tt = { class: "CC__input-date-container" }, nt = ["for"], at = {
@@ -1821,7 +1822,7 @@ const Ot = ["for"], Tt = {
1821
1822
  }),
1822
1823
  emits: /* @__PURE__ */ uA(["click:clear"], ["update:modelValue"]),
1823
1824
  setup(A, { expose: e, emit: n }) {
1824
- 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(() => {
1825
1826
  if (a.errorMessages.length > 0)
1826
1827
  return a.errorMessages[0];
1827
1828
  const x = a.rules.map((O) => O(t.value)), h = x == null ? void 0 : x.filter(
@@ -2008,7 +2009,7 @@ const Ot = ["for"], Tt = {
2008
2009
  }),
2009
2010
  emits: ["update:modelValue"],
2010
2011
  setup(A, { expose: e }) {
2011
- 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(() => {
2012
2013
  if (t.errorMessages.length > 0)
2013
2014
  return t.errorMessages[0];
2014
2015
  const O = t.rules.map((E) => E(n.value)), Q = O == null ? void 0 : O.filter(
@@ -2223,7 +2224,7 @@ const Ot = ["for"], Tt = {
2223
2224
  }),
2224
2225
  emits: /* @__PURE__ */ uA(["update:focus", "update:blur", "update:modelValue"], ["update:modelValue"]),
2225
2226
  setup(A, { emit: e }) {
2226
- const n = TA(A, "modelValue"), t = e, a = A, l = () => {
2227
+ const n = NA(A, "modelValue"), t = e, a = A, l = () => {
2227
2228
  n.value = "";
2228
2229
  }, f = L(() => a.error ? "invalid__input" : "");
2229
2230
  return (c, i) => (z(), m("div", cn, [
@@ -2262,8 +2263,9 @@ const Ot = ["for"], Tt = {
2262
2263
  ]),
2263
2264
  C(AA(QA, {
2264
2265
  class: "clear-button",
2266
+ type: "button",
2265
2267
  title: "Clear input",
2266
- onClick: i[3] || (i[3] = (s) => l())
2268
+ onClick: i[3] || (i[3] = XA((s) => l(), ["stop", "prevent"]))
2267
2269
  }, null, 512), [
2268
2270
  [tA, a.clearable && n.value]
2269
2271
  ]),
@@ -2518,9 +2520,9 @@ const Ot = ["for"], Tt = {
2518
2520
  }), (W, D) => (z(), m("div", Mn, [
2519
2521
  d("div", {
2520
2522
  class: k(["cc__input_file-upload-container", { "is-dragging": s.value, invalid__input: c.value }]),
2521
- onDragover: LA(r, ["prevent"]),
2522
- onDragleave: LA(b, ["prevent"]),
2523
- onDrop: LA(H, ["prevent"])
2523
+ onDragover: XA(r, ["prevent"]),
2524
+ onDragleave: XA(b, ["prevent"]),
2525
+ onDrop: XA(H, ["prevent"])
2524
2526
  }, [
2525
2527
  d("div", Ln, [
2526
2528
  d("input", {