@reinosoft-ui/core 0.1.47 → 0.1.48
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.
- package/dist/reinosoft-ui.es.js +25 -25
- package/dist/reinosoft-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/reinosoft-ui.es.js
CHANGED
|
@@ -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
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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,
|
|
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",
|
|
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",
|
|
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)),
|
|
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",
|
|
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,
|
|
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
|
|
4126
|
-
}, Ho = (e, o) =>
|
|
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) =>
|
|
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(() =>
|
|
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(() =>
|
|
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(
|
|
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,
|
|
@@ -5588,7 +5588,7 @@ const Tn = (e, o) => {
|
|
|
5588
5588
|
ref_key: "root",
|
|
5589
5589
|
ref: i
|
|
5590
5590
|
}, [
|
|
5591
|
-
P(jn, {
|
|
5591
|
+
P(jn, pe(L.$attrs, {
|
|
5592
5592
|
modelValue: c.value,
|
|
5593
5593
|
"onUpdate:modelValue": h[3] || (h[3] = (H) => c.value = H),
|
|
5594
5594
|
open: n.value,
|
|
@@ -5598,7 +5598,7 @@ const Tn = (e, o) => {
|
|
|
5598
5598
|
label: e.label,
|
|
5599
5599
|
"first-day-of-week": e.firstDayOfWeek,
|
|
5600
5600
|
placeholder: e.placeholder
|
|
5601
|
-
}, {
|
|
5601
|
+
}), {
|
|
5602
5602
|
time: G(() => [
|
|
5603
5603
|
n.value ? (v(), p("div", Yn, [
|
|
5604
5604
|
s.value ? Me((v(), p("input", {
|
|
@@ -5666,10 +5666,10 @@ const Tn = (e, o) => {
|
|
|
5666
5666
|
])) : O("", !0)
|
|
5667
5667
|
]),
|
|
5668
5668
|
_: 1
|
|
5669
|
-
},
|
|
5669
|
+
}, 16, ["modelValue", "open", "locale", "format", "label", "first-day-of-week", "placeholder"])
|
|
5670
5670
|
], 512));
|
|
5671
5671
|
}
|
|
5672
|
-
}), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-
|
|
5672
|
+
}), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-338833cc"]]), Sl = T({
|
|
5673
5673
|
name: "Table",
|
|
5674
5674
|
props: {
|
|
5675
5675
|
columns: {
|