@reinosoft-ui/core 0.1.47 → 0.1.49

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.
@@ -11,5 +11,6 @@ export interface Props {
11
11
  placeholder?: string;
12
12
  firstDayOfWeek?: number;
13
13
  disabled?: boolean;
14
+ invalid?: boolean;
14
15
  todayLabel?: string;
15
16
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, ref as g, computed as I, watch as W, onMounted as oe, createElementBlock as p, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as U, createCommentVNode as O, withDirectives as Me, createElementVNode as M, vShow as Ne, mergeProps as Ce, mergeModels as te, useModel as fe, withKeys as ve, withModifiers as le, onUnmounted as be, Fragment as ae, unref as A, toDisplayString as N, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as we, useId as ce, provide as ye, createVNode as P, createTextVNode as me, onBeforeUnmount as Ie, Teleport as Be, resolveDynamicComponent as Ve, useAttrs as Fe, inject as se, h as F, useSlots as Pe, resolveComponent as bt, vModelRadio as kt, vModelDynamic as wt, reactive as it, TransitionGroup as Mt, createApp as xt, shallowRef as Lt, vModelText as Ae } from "vue";
1
+ import { defineComponent as T, ref as g, computed as I, watch as W, onMounted as oe, createElementBlock as p, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as U, createCommentVNode as O, withDirectives as Me, createElementVNode as M, vShow as Ne, mergeProps as pe, mergeModels as te, useModel as fe, withKeys as ve, withModifiers as le, onUnmounted as be, Fragment as ae, unref as A, toDisplayString as N, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as we, useId as ce, provide as ye, createVNode as P, createTextVNode as me, onBeforeUnmount as Ie, Teleport as Be, resolveDynamicComponent as Ve, useAttrs as Fe, inject as se, h as F, useSlots as Pe, resolveComponent as bt, vModelRadio as kt, vModelDynamic as wt, reactive as it, TransitionGroup as Mt, createApp as xt, shallowRef as Lt, vModelText as Ae } from "vue";
2
2
  import { routerKey as $t } from "vue-router";
3
3
  const Vt = ["aria-busy"], It = ["aria-label"], Ht = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Bt = /* @__PURE__ */ T({
4
4
  __name: "Image",
@@ -87,7 +87,7 @@ const _t = /* @__PURE__ */ T({
87
87
  const t = g();
88
88
  return o({
89
89
  el: t
90
- }), (a, n) => (v(), p("button", Ce({
90
+ }), (a, n) => (v(), p("button", pe({
91
91
  ref_key: "rootRef",
92
92
  ref: t,
93
93
  type: "button",
@@ -1918,27 +1918,27 @@ const ut = (e) => {
1918
1918
  "aria-hidden": "true"
1919
1919
  }, [
1920
1920
  (v(!0), p(ae, null, ue(A(Te)[e.name].paths, (a, n) => (v(), p(ae, { key: n }, [
1921
- a.type === "path" ? (v(), p("path", Ce({
1921
+ a.type === "path" ? (v(), p("path", pe({
1922
1922
  key: 0,
1923
1923
  ref_for: !0
1924
1924
  }, a), null, 16)) : O("", !0),
1925
- a.type === "circle" ? (v(), p("circle", Ce({
1925
+ a.type === "circle" ? (v(), p("circle", pe({
1926
1926
  key: 1,
1927
1927
  ref_for: !0
1928
1928
  }, a), null, 16)) : O("", !0),
1929
- a.type === "line" ? (v(), p("line", Ce({
1929
+ a.type === "line" ? (v(), p("line", pe({
1930
1930
  key: 2,
1931
1931
  ref_for: !0
1932
1932
  }, a), null, 16)) : O("", !0),
1933
- a.type === "polyline" ? (v(), p("polyline", Ce({
1933
+ a.type === "polyline" ? (v(), p("polyline", pe({
1934
1934
  key: 3,
1935
1935
  ref_for: !0
1936
1936
  }, a), null, 16)) : O("", !0),
1937
- a.type === "rect" ? (v(), p("rect", Ce({
1937
+ a.type === "rect" ? (v(), p("rect", pe({
1938
1938
  key: 4,
1939
1939
  ref_for: !0
1940
1940
  }, a), null, 16)) : O("", !0),
1941
- a.type === "polygon" ? (v(), p("polygon", Ce({
1941
+ a.type === "polygon" ? (v(), p("polygon", pe({
1942
1942
  key: 5,
1943
1943
  ref_for: !0
1944
1944
  }, a), null, 16)) : O("", !0)
@@ -2708,7 +2708,7 @@ const K2 = {
2708
2708
  for: e.id,
2709
2709
  class: "label"
2710
2710
  }, N(e.label), 9, ia),
2711
- M("input", Ce({
2711
+ M("input", pe({
2712
2712
  id: e.id,
2713
2713
  type: m.value
2714
2714
  }, B.value, {
@@ -2739,7 +2739,7 @@ const K2 = {
2739
2739
  invalid: e.invalid,
2740
2740
  errorMessage: e.errorMessage
2741
2741
  }, null, 8, ["invalid", "errorMessage"]),
2742
- e.type === "password" ? (v(), J(he, Ce({ key: 0 }, Object.keys($.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
2742
+ e.type === "password" ? (v(), J(he, pe({ key: 0 }, Object.keys($.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
2743
2743
  type: "button",
2744
2744
  class: "btn-icon",
2745
2745
  onClick: q,
@@ -2887,7 +2887,7 @@ const K2 = {
2887
2887
  ref: r,
2888
2888
  class: re(["select-box", { required: Object.keys(Z.$attrs).includes("required"), error: e.invalid, filled: L.value, focused: l.value }])
2889
2889
  }, [
2890
- M("button", Ce({
2890
+ M("button", pe({
2891
2891
  id: c.value,
2892
2892
  class: "select-btn",
2893
2893
  role: "combobox",
@@ -3591,7 +3591,7 @@ const Aa = ["aria-busy"], Ta = {
3591
3591
  for: e.id,
3592
3592
  class: "label"
3593
3593
  }, N(e.label), 9, Ka),
3594
- M("textarea", Ce({ id: e.id }, L.$attrs, {
3594
+ M("textarea", pe({ id: e.id }, L.$attrs, {
3595
3595
  class: "custom-textarea",
3596
3596
  onFocus: h[0] || (h[0] = (H) => A(oa)(H, r.value, i)),
3597
3597
  onBlur: h[1] || (h[1] = (H) => A(na)(H, l.value, r.value, i)),
@@ -3775,7 +3775,7 @@ const lo = {
3775
3775
  key: c.to ?? c.href ?? `${c.label}-${u}`,
3776
3776
  class: "ui-breadcrumb__item"
3777
3777
  }, [
3778
- (v(), J(Ve(n(c, u)), Ce({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, s(c, u), {
3778
+ (v(), J(Ve(n(c, u)), pe({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, s(c, u), {
3779
3779
  "aria-posinset": u + 1,
3780
3780
  "aria-setsize": e.items.length,
3781
3781
  "aria-current": a(u) ? "page" : void 0,
@@ -3999,7 +3999,7 @@ const lo = {
3999
3999
  for: e.id,
4000
4000
  class: "label"
4001
4001
  }, N(e.label), 9, mo),
4002
- Me(M("input", Ce({
4002
+ Me(M("input", pe({
4003
4003
  id: e.id,
4004
4004
  type: e.type
4005
4005
  }, b.$attrs, {
@@ -4111,7 +4111,7 @@ const lo = {
4111
4111
  })) : O("", !0)
4112
4112
  ], 2));
4113
4113
  }
4114
- }), vl = /* @__PURE__ */ K($o, [["__scopeId", "data-v-75e8a9a2"]]), Vo = 5, pe = it({
4114
+ }), vl = /* @__PURE__ */ K($o, [["__scopeId", "data-v-75e8a9a2"]]), Vo = 5, Ce = it({
4115
4115
  toasts: []
4116
4116
  });
4117
4117
  let Io = 0;
@@ -4122,8 +4122,8 @@ const xe = (e, o = "info") => {
4122
4122
  ...typeof e == "string" ? { description: e } : e,
4123
4123
  variant: o
4124
4124
  };
4125
- return pe.toasts.push(t), pe.toasts.length > Vo && pe.toasts.shift(), t.id;
4126
- }, Ho = (e, o) => pe.toasts = pe.toasts.map((t) => t.id === e ? { ...t, ...o, loading: !1 } : t), fl = Object.assign(
4125
+ return Ce.toasts.push(t), Ce.toasts.length > Vo && Ce.toasts.shift(), t.id;
4126
+ }, Ho = (e, o) => Ce.toasts = Ce.toasts.map((t) => t.id === e ? { ...t, ...o, loading: !1 } : t), fl = Object.assign(
4127
4127
  (e) => xe(e),
4128
4128
  {
4129
4129
  update: Ho,
@@ -4132,10 +4132,10 @@ const xe = (e, o = "info") => {
4132
4132
  info: (e) => xe(e, "info"),
4133
4133
  warning: (e) => xe(e, "warning"),
4134
4134
  loading: (e) => xe({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
4135
- dismiss: (e) => pe.toasts = pe.toasts.filter((o) => o.id !== e),
4135
+ dismiss: (e) => Ce.toasts = Ce.toasts.filter((o) => o.id !== e),
4136
4136
  promise(e, o) {
4137
4137
  const t = xe({ loading: !0, description: o.loading, duration: 1 / 0 });
4138
- return e.then(() => pe.toasts = pe.toasts.map((a) => a.id === t ? { ...a, description: o.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => pe.toasts = pe.toasts.map((a) => a.id === t ? { ...a, description: o.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
4138
+ return e.then(() => Ce.toasts = Ce.toasts.map((a) => a.id === t ? { ...a, description: o.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => Ce.toasts = Ce.toasts.map((a) => a.id === t ? { ...a, description: o.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
4139
4139
  }
4140
4140
  }
4141
4141
  ), Bo = ["data-variant", "data-state", "role", "aria-describedby"], _o = { class: "content" }, Do = {
@@ -4173,7 +4173,7 @@ const xe = (e, o = "info") => {
4173
4173
  { immediate: !0 }
4174
4174
  );
4175
4175
  const c = () => {
4176
- cancelAnimationFrame(s), a.value = "closing", setTimeout(() => pe.toasts = pe.toasts.filter((u) => u.id !== o.id), Ro);
4176
+ cancelAnimationFrame(s), a.value = "closing", setTimeout(() => Ce.toasts = Ce.toasts.filter((u) => u.id !== o.id), Ro);
4177
4177
  };
4178
4178
  return oe(() => o.variant === "error" && o.focus && t.value?.focus()), Ie(() => cancelAnimationFrame(s)), (u, f) => (v(), p("div", {
4179
4179
  ref_key: "rootRef",
@@ -4219,7 +4219,7 @@ const xe = (e, o = "info") => {
4219
4219
  M("div", To, [
4220
4220
  P(Mt, { name: "toast-stack" }, {
4221
4221
  default: G(() => [
4222
- (v(!0), p(ae, null, ue(A(pe).toasts, (a) => (v(), J(Ao, {
4222
+ (v(!0), p(ae, null, ue(A(Ce).toasts, (a) => (v(), J(Ao, {
4223
4223
  key: a.id,
4224
4224
  id: a.id,
4225
4225
  duration: a.duration,
@@ -5363,6 +5363,7 @@ const Tn = (e, o) => {
5363
5363
  placeholder: {},
5364
5364
  firstDayOfWeek: { default: 0 },
5365
5365
  disabled: { type: Boolean },
5366
+ invalid: { type: Boolean },
5366
5367
  todayLabel: { default: "Today" }
5367
5368
  }, {
5368
5369
  modelValue: {},
@@ -5438,7 +5439,7 @@ const Tn = (e, o) => {
5438
5439
  return oe(() => document.addEventListener("mousedown", _)), Ie(() => document.removeEventListener("mousedown", _)), (V, D) => (v(), p("div", {
5439
5440
  ref_key: "root",
5440
5441
  ref: l,
5441
- class: re(["dp", { required: Object.keys(V.$attrs).includes("required") }])
5442
+ class: re(["dp", { required: Object.keys(V.$attrs).includes("required"), error: e.invalid }])
5442
5443
  }, [
5443
5444
  M("label", {
5444
5445
  for: e.id,
@@ -5524,7 +5525,7 @@ const Tn = (e, o) => {
5524
5525
  ])) : O("", !0)
5525
5526
  ], 2));
5526
5527
  }
5527
- }), jn = /* @__PURE__ */ K(Un, [["__scopeId", "data-v-fd4bf1a6"]]), Yn = {
5528
+ }), jn = /* @__PURE__ */ K(Un, [["__scopeId", "data-v-46b04875"]]), Yn = {
5528
5529
  key: 0,
5529
5530
  class: "time-panel",
5530
5531
  role: "group",
@@ -5539,6 +5540,7 @@ const Tn = (e, o) => {
5539
5540
  placeholder: {},
5540
5541
  firstDayOfWeek: { default: 0 },
5541
5542
  disabled: { type: Boolean },
5543
+ invalid: { type: Boolean },
5542
5544
  todayLabel: {}
5543
5545
  }, {
5544
5546
  modelValue: {
@@ -5588,17 +5590,18 @@ const Tn = (e, o) => {
5588
5590
  ref_key: "root",
5589
5591
  ref: i
5590
5592
  }, [
5591
- P(jn, {
5593
+ P(jn, pe(L.$attrs, {
5592
5594
  modelValue: c.value,
5593
5595
  "onUpdate:modelValue": h[3] || (h[3] = (H) => c.value = H),
5594
5596
  open: n.value,
5595
5597
  "onUpdate:open": h[4] || (h[4] = (H) => n.value = H),
5598
+ invalid: e.invalid,
5596
5599
  locale: e.locale,
5597
5600
  format: e.format,
5598
5601
  label: e.label,
5599
5602
  "first-day-of-week": e.firstDayOfWeek,
5600
5603
  placeholder: e.placeholder
5601
- }, {
5604
+ }), {
5602
5605
  time: G(() => [
5603
5606
  n.value ? (v(), p("div", Yn, [
5604
5607
  s.value ? Me((v(), p("input", {
@@ -5666,10 +5669,10 @@ const Tn = (e, o) => {
5666
5669
  ])) : O("", !0)
5667
5670
  ]),
5668
5671
  _: 1
5669
- }, 8, ["modelValue", "open", "locale", "format", "label", "first-day-of-week", "placeholder"])
5672
+ }, 16, ["modelValue", "open", "invalid", "locale", "format", "label", "first-day-of-week", "placeholder"])
5670
5673
  ], 512));
5671
5674
  }
5672
- }), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-ef63f0e7"]]), Sl = T({
5675
+ }), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-95d5ccd6"]]), Sl = T({
5673
5676
  name: "Table",
5674
5677
  props: {
5675
5678
  columns: {