@reinosoft-ui/core 0.1.46 → 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 +30 -26
- 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,
|
|
@@ -2818,6 +2818,10 @@ const K2 = {
|
|
|
2818
2818
|
W(
|
|
2819
2819
|
() => t.value,
|
|
2820
2820
|
() => ee()
|
|
2821
|
+
), W(
|
|
2822
|
+
() => a.options,
|
|
2823
|
+
() => ee(),
|
|
2824
|
+
{ deep: !0 }
|
|
2821
2825
|
);
|
|
2822
2826
|
const R = (Z) => {
|
|
2823
2827
|
l.value = !0, n("focus", Z);
|
|
@@ -2883,7 +2887,7 @@ const K2 = {
|
|
|
2883
2887
|
ref: r,
|
|
2884
2888
|
class: re(["select-box", { required: Object.keys(Z.$attrs).includes("required"), error: e.invalid, filled: L.value, focused: l.value }])
|
|
2885
2889
|
}, [
|
|
2886
|
-
M("button",
|
|
2890
|
+
M("button", pe({
|
|
2887
2891
|
id: c.value,
|
|
2888
2892
|
class: "select-btn",
|
|
2889
2893
|
role: "combobox",
|
|
@@ -2964,7 +2968,7 @@ const K2 = {
|
|
|
2964
2968
|
}, null, 8, ["invalid", "errorMessage"])
|
|
2965
2969
|
], 2));
|
|
2966
2970
|
}
|
|
2967
|
-
}), rl = /* @__PURE__ */ K(ya, [["__scopeId", "data-v-
|
|
2971
|
+
}), rl = /* @__PURE__ */ K(ya, [["__scopeId", "data-v-f83fcb41"]]), ba = ["aria-label"], ka = ["onKeydown"], wa = {
|
|
2968
2972
|
key: 1,
|
|
2969
2973
|
class: "rs-gallery-thumbs"
|
|
2970
2974
|
}, Ma = ["aria-selected"], xa = ["onClick"], La = /* @__PURE__ */ T({
|
|
@@ -3587,7 +3591,7 @@ const Aa = ["aria-busy"], Ta = {
|
|
|
3587
3591
|
for: e.id,
|
|
3588
3592
|
class: "label"
|
|
3589
3593
|
}, N(e.label), 9, Ka),
|
|
3590
|
-
M("textarea",
|
|
3594
|
+
M("textarea", pe({ id: e.id }, L.$attrs, {
|
|
3591
3595
|
class: "custom-textarea",
|
|
3592
3596
|
onFocus: h[0] || (h[0] = (H) => A(oa)(H, r.value, i)),
|
|
3593
3597
|
onBlur: h[1] || (h[1] = (H) => A(na)(H, l.value, r.value, i)),
|
|
@@ -3771,7 +3775,7 @@ const lo = {
|
|
|
3771
3775
|
key: c.to ?? c.href ?? `${c.label}-${u}`,
|
|
3772
3776
|
class: "ui-breadcrumb__item"
|
|
3773
3777
|
}, [
|
|
3774
|
-
(v(), J(Ve(n(c, u)),
|
|
3778
|
+
(v(), J(Ve(n(c, u)), pe({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, s(c, u), {
|
|
3775
3779
|
"aria-posinset": u + 1,
|
|
3776
3780
|
"aria-setsize": e.items.length,
|
|
3777
3781
|
"aria-current": a(u) ? "page" : void 0,
|
|
@@ -3995,7 +3999,7 @@ const lo = {
|
|
|
3995
3999
|
for: e.id,
|
|
3996
4000
|
class: "label"
|
|
3997
4001
|
}, N(e.label), 9, mo),
|
|
3998
|
-
Me(M("input",
|
|
4002
|
+
Me(M("input", pe({
|
|
3999
4003
|
id: e.id,
|
|
4000
4004
|
type: e.type
|
|
4001
4005
|
}, b.$attrs, {
|
|
@@ -4107,7 +4111,7 @@ const lo = {
|
|
|
4107
4111
|
})) : O("", !0)
|
|
4108
4112
|
], 2));
|
|
4109
4113
|
}
|
|
4110
|
-
}), vl = /* @__PURE__ */ K($o, [["__scopeId", "data-v-75e8a9a2"]]), Vo = 5,
|
|
4114
|
+
}), vl = /* @__PURE__ */ K($o, [["__scopeId", "data-v-75e8a9a2"]]), Vo = 5, Ce = it({
|
|
4111
4115
|
toasts: []
|
|
4112
4116
|
});
|
|
4113
4117
|
let Io = 0;
|
|
@@ -4118,8 +4122,8 @@ const xe = (e, o = "info") => {
|
|
|
4118
4122
|
...typeof e == "string" ? { description: e } : e,
|
|
4119
4123
|
variant: o
|
|
4120
4124
|
};
|
|
4121
|
-
return
|
|
4122
|
-
}, 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(
|
|
4123
4127
|
(e) => xe(e),
|
|
4124
4128
|
{
|
|
4125
4129
|
update: Ho,
|
|
@@ -4128,10 +4132,10 @@ const xe = (e, o = "info") => {
|
|
|
4128
4132
|
info: (e) => xe(e, "info"),
|
|
4129
4133
|
warning: (e) => xe(e, "warning"),
|
|
4130
4134
|
loading: (e) => xe({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
|
|
4131
|
-
dismiss: (e) =>
|
|
4135
|
+
dismiss: (e) => Ce.toasts = Ce.toasts.filter((o) => o.id !== e),
|
|
4132
4136
|
promise(e, o) {
|
|
4133
4137
|
const t = xe({ loading: !0, description: o.loading, duration: 1 / 0 });
|
|
4134
|
-
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;
|
|
4135
4139
|
}
|
|
4136
4140
|
}
|
|
4137
4141
|
), Bo = ["data-variant", "data-state", "role", "aria-describedby"], _o = { class: "content" }, Do = {
|
|
@@ -4169,7 +4173,7 @@ const xe = (e, o = "info") => {
|
|
|
4169
4173
|
{ immediate: !0 }
|
|
4170
4174
|
);
|
|
4171
4175
|
const c = () => {
|
|
4172
|
-
cancelAnimationFrame(s), a.value = "closing", setTimeout(() =>
|
|
4176
|
+
cancelAnimationFrame(s), a.value = "closing", setTimeout(() => Ce.toasts = Ce.toasts.filter((u) => u.id !== o.id), Ro);
|
|
4173
4177
|
};
|
|
4174
4178
|
return oe(() => o.variant === "error" && o.focus && t.value?.focus()), Ie(() => cancelAnimationFrame(s)), (u, f) => (v(), p("div", {
|
|
4175
4179
|
ref_key: "rootRef",
|
|
@@ -4215,7 +4219,7 @@ const xe = (e, o = "info") => {
|
|
|
4215
4219
|
M("div", To, [
|
|
4216
4220
|
P(Mt, { name: "toast-stack" }, {
|
|
4217
4221
|
default: G(() => [
|
|
4218
|
-
(v(!0), p(ae, null, ue(A(
|
|
4222
|
+
(v(!0), p(ae, null, ue(A(Ce).toasts, (a) => (v(), J(Ao, {
|
|
4219
4223
|
key: a.id,
|
|
4220
4224
|
id: a.id,
|
|
4221
4225
|
duration: a.duration,
|
|
@@ -5584,7 +5588,7 @@ const Tn = (e, o) => {
|
|
|
5584
5588
|
ref_key: "root",
|
|
5585
5589
|
ref: i
|
|
5586
5590
|
}, [
|
|
5587
|
-
P(jn, {
|
|
5591
|
+
P(jn, pe(L.$attrs, {
|
|
5588
5592
|
modelValue: c.value,
|
|
5589
5593
|
"onUpdate:modelValue": h[3] || (h[3] = (H) => c.value = H),
|
|
5590
5594
|
open: n.value,
|
|
@@ -5594,7 +5598,7 @@ const Tn = (e, o) => {
|
|
|
5594
5598
|
label: e.label,
|
|
5595
5599
|
"first-day-of-week": e.firstDayOfWeek,
|
|
5596
5600
|
placeholder: e.placeholder
|
|
5597
|
-
}, {
|
|
5601
|
+
}), {
|
|
5598
5602
|
time: G(() => [
|
|
5599
5603
|
n.value ? (v(), p("div", Yn, [
|
|
5600
5604
|
s.value ? Me((v(), p("input", {
|
|
@@ -5662,10 +5666,10 @@ const Tn = (e, o) => {
|
|
|
5662
5666
|
])) : O("", !0)
|
|
5663
5667
|
]),
|
|
5664
5668
|
_: 1
|
|
5665
|
-
},
|
|
5669
|
+
}, 16, ["modelValue", "open", "locale", "format", "label", "first-day-of-week", "placeholder"])
|
|
5666
5670
|
], 512));
|
|
5667
5671
|
}
|
|
5668
|
-
}), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-
|
|
5672
|
+
}), Rl = /* @__PURE__ */ K(el, [["__scopeId", "data-v-338833cc"]]), Sl = T({
|
|
5669
5673
|
name: "Table",
|
|
5670
5674
|
props: {
|
|
5671
5675
|
columns: {
|