@reinosoft-ui/core 0.1.37 → 0.1.38
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 +28 -20
- 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 S, ref as m, computed as V, watch as X, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as le, renderSlot as Y, createCommentVNode as O, withDirectives as
|
|
1
|
+
import { defineComponent as S, ref as m, computed as V, watch as X, onMounted as ae, createElementBlock as f, openBlock as v, normalizeStyle as ye, normalizeClass as le, renderSlot as Y, createCommentVNode as O, withDirectives as Me, createElementVNode as w, vShow as qe, mergeProps as Ce, mergeModels as Q, useModel as fe, withKeys as ve, withModifiers as ne, onUnmounted as be, Fragment as te, unref as D, toDisplayString as P, renderList as ue, createBlock as J, Transition as $e, withCtx as G, nextTick as we, useId as ce, provide as ge, createVNode as U, createTextVNode as me, onBeforeUnmount as Ie, Teleport as He, resolveDynamicComponent as Ve, useAttrs as Ne, inject as ie, h as K, useSlots as Fe, resolveComponent as h1, vModelRadio as y1, vModelDynamic as g1, reactive as r1, TransitionGroup as b1, createApp as k1, shallowRef as w1, vModelText as Ae } from "vue";
|
|
2
2
|
import { routerKey as M1 } from "vue-router";
|
|
3
3
|
const x1 = ["aria-busy"], L1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], V1 = /* @__PURE__ */ S({
|
|
4
4
|
__name: "Image",
|
|
@@ -54,7 +54,7 @@ const x1 = ["aria-busy"], L1 = ["aria-label"], $1 = ["src", "srcset", "sizes", "
|
|
|
54
54
|
"aria-label": e.decorative ? void 0 : e.alt
|
|
55
55
|
}, "Image not available", 8, L1)
|
|
56
56
|
], !0) : O("", !0),
|
|
57
|
-
|
|
57
|
+
Me(w("img", {
|
|
58
58
|
ref_key: "imgRef",
|
|
59
59
|
ref: s,
|
|
60
60
|
class: "ui-image__img",
|
|
@@ -2017,7 +2017,7 @@ const s1 = (e) => {
|
|
|
2017
2017
|
...c.value,
|
|
2018
2018
|
...t.editor?.buttons ?? []
|
|
2019
2019
|
]), p = async () => {
|
|
2020
|
-
await
|
|
2020
|
+
await we(), i.value[0]?.focus();
|
|
2021
2021
|
}, g = (d) => {
|
|
2022
2022
|
const C = i.value, $ = C.indexOf(document.activeElement);
|
|
2023
2023
|
if (d.key === "ArrowRight") {
|
|
@@ -2419,7 +2419,7 @@ const T2 = (e) => {
|
|
|
2419
2419
|
c?.(), c = null, u?.disconnect(), u = null;
|
|
2420
2420
|
return;
|
|
2421
2421
|
}
|
|
2422
|
-
await
|
|
2422
|
+
await we(), d(), c = T2(d), u = new ResizeObserver(d), i.value && u.observe(i.value), s.value && u.observe(s.value);
|
|
2423
2423
|
}), Ie(() => {
|
|
2424
2424
|
c?.(), u?.disconnect();
|
|
2425
2425
|
}), (C, $) => (v(), f(te, null, [
|
|
@@ -2857,7 +2857,7 @@ const N2 = {
|
|
|
2857
2857
|
], 16, ia),
|
|
2858
2858
|
U($e, { name: "select" }, {
|
|
2859
2859
|
default: G(() => [
|
|
2860
|
-
|
|
2860
|
+
Me(w("ul", {
|
|
2861
2861
|
id: p,
|
|
2862
2862
|
role: "listbox",
|
|
2863
2863
|
class: "options"
|
|
@@ -2945,7 +2945,7 @@ const N2 = {
|
|
|
2945
2945
|
n.value = null;
|
|
2946
2946
|
};
|
|
2947
2947
|
return X(u, async (h) => {
|
|
2948
|
-
await
|
|
2948
|
+
await we();
|
|
2949
2949
|
const _ = s.value[h];
|
|
2950
2950
|
_ && _.scrollIntoView({
|
|
2951
2951
|
behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
|
|
@@ -3760,7 +3760,7 @@ const Ja = {
|
|
|
3760
3760
|
key: r.key,
|
|
3761
3761
|
class: le(["radio", { checked: t.value === r.key, disabled: e.disabled || r.disabled }])
|
|
3762
3762
|
}, [
|
|
3763
|
-
|
|
3763
|
+
Me(w("input", {
|
|
3764
3764
|
type: "radio",
|
|
3765
3765
|
class: "radio-input",
|
|
3766
3766
|
name: e.name,
|
|
@@ -3838,16 +3838,16 @@ const Ja = {
|
|
|
3838
3838
|
u.value = null;
|
|
3839
3839
|
return;
|
|
3840
3840
|
}
|
|
3841
|
-
R.value.length !== 0 && (await
|
|
3841
|
+
R.value.length !== 0 && (await we(), re());
|
|
3842
3842
|
}), X(
|
|
3843
3843
|
() => t.loading,
|
|
3844
3844
|
async (H) => {
|
|
3845
|
-
H || r.value && R.value.length !== 0 && (await
|
|
3845
|
+
H || r.value && R.value.length !== 0 && (await we(), re());
|
|
3846
3846
|
}
|
|
3847
3847
|
), X(
|
|
3848
3848
|
() => t.options,
|
|
3849
3849
|
() => {
|
|
3850
|
-
p.value = null;
|
|
3850
|
+
l.value || (p.value = null, u.value = null);
|
|
3851
3851
|
}
|
|
3852
3852
|
);
|
|
3853
3853
|
const I = (H) => {
|
|
@@ -3895,8 +3895,16 @@ const Ja = {
|
|
|
3895
3895
|
}, L = () => {
|
|
3896
3896
|
if (l.value.toString().length === 0 || !t.options || t.options.length === 0) return;
|
|
3897
3897
|
const H = t.options.findIndex((z) => t.getKey(z) === l.value);
|
|
3898
|
-
H > -1 && (u.value = H, p.value = H, n.value = t.getValue(t.options[H]));
|
|
3899
|
-
}
|
|
3898
|
+
console.log("IDX" + t.id, H, t.options, l.value), H > -1 && (u.value = H, p.value = H, n.value = t.getValue(t.options[H]));
|
|
3899
|
+
};
|
|
3900
|
+
X(
|
|
3901
|
+
() => t.options.length,
|
|
3902
|
+
async (H) => {
|
|
3903
|
+
l.value && H !== 0 && (await we(), L());
|
|
3904
|
+
},
|
|
3905
|
+
{ immediate: !0, flush: "post" }
|
|
3906
|
+
);
|
|
3907
|
+
const E = () => {
|
|
3900
3908
|
n.value = "", l.value = "";
|
|
3901
3909
|
}, W = (H) => {
|
|
3902
3910
|
!H || H.trim().length === 0 || (c.value = [
|
|
@@ -3921,7 +3929,7 @@ const Ja = {
|
|
|
3921
3929
|
for: e.id,
|
|
3922
3930
|
class: "label"
|
|
3923
3931
|
}, P(e.label), 9, io),
|
|
3924
|
-
|
|
3932
|
+
Me(w("input", Ce({
|
|
3925
3933
|
id: e.id,
|
|
3926
3934
|
type: e.type
|
|
3927
3935
|
}, H.$attrs, {
|
|
@@ -3944,7 +3952,7 @@ const Ja = {
|
|
|
3944
3952
|
]),
|
|
3945
3953
|
U($e, { name: "select" }, {
|
|
3946
3954
|
default: G(() => [
|
|
3947
|
-
|
|
3955
|
+
Me(w("ul", {
|
|
3948
3956
|
id: d,
|
|
3949
3957
|
role: "listbox",
|
|
3950
3958
|
class: "options"
|
|
@@ -4032,7 +4040,7 @@ const Ja = {
|
|
|
4032
4040
|
})) : O("", !0)
|
|
4033
4041
|
], 2));
|
|
4034
4042
|
}
|
|
4035
|
-
}), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-
|
|
4043
|
+
}), ll = /* @__PURE__ */ j(go, [["__scopeId", "data-v-c16fc775"]]), bo = 5, pe = r1({
|
|
4036
4044
|
toasts: []
|
|
4037
4045
|
});
|
|
4038
4046
|
let ko = 0;
|
|
@@ -5094,7 +5102,7 @@ const sl = {
|
|
|
5094
5102
|
const o = e, t = ie("DropdownContext");
|
|
5095
5103
|
if (!t) throw new Error("DropdownTrigger must be used within a Dropdown");
|
|
5096
5104
|
const a = m(), l = (s) => {
|
|
5097
|
-
s.key === "ArrowDown" && (s.preventDefault(), t.open(),
|
|
5105
|
+
s.key === "ArrowDown" && (s.preventDefault(), t.open(), we(() => t.focusFirstItem())), s.key === "ArrowUp" && (s.preventDefault(), t.open(), we(() => t.focusLastItem()));
|
|
5098
5106
|
};
|
|
5099
5107
|
return ae(() => t.triggerRef.value = a.value?.el), (s, i) => (v(), J(he, {
|
|
5100
5108
|
ref_key: "btn",
|
|
@@ -5303,7 +5311,7 @@ const Hn = (e, o) => {
|
|
|
5303
5311
|
s,
|
|
5304
5312
|
async (b) => {
|
|
5305
5313
|
if (b) {
|
|
5306
|
-
await
|
|
5314
|
+
await we();
|
|
5307
5315
|
let A = n.value?.querySelector('button[data-selected="true"]');
|
|
5308
5316
|
if (!A) {
|
|
5309
5317
|
const B = /* @__PURE__ */ new Date();
|
|
@@ -5497,7 +5505,7 @@ const Hn = (e, o) => {
|
|
|
5497
5505
|
}, {
|
|
5498
5506
|
time: G(() => [
|
|
5499
5507
|
l.value ? (v(), f("div", qn, [
|
|
5500
|
-
i.value ?
|
|
5508
|
+
i.value ? Me((v(), f("input", {
|
|
5501
5509
|
key: 0,
|
|
5502
5510
|
id: `hour_${D(a)}`,
|
|
5503
5511
|
type: "number",
|
|
@@ -5518,7 +5526,7 @@ const Hn = (e, o) => {
|
|
|
5518
5526
|
]
|
|
5519
5527
|
]) : O("", !0),
|
|
5520
5528
|
i.value && n.value ? (v(), f("span", Fn, ":")) : O("", !0),
|
|
5521
|
-
n.value ?
|
|
5529
|
+
n.value ? Me((v(), f("input", {
|
|
5522
5530
|
key: 2,
|
|
5523
5531
|
id: `minute_${D(a)}`,
|
|
5524
5532
|
type: "number",
|
|
@@ -5539,7 +5547,7 @@ const Hn = (e, o) => {
|
|
|
5539
5547
|
]
|
|
5540
5548
|
]) : O("", !0),
|
|
5541
5549
|
(i.value || n.value) && r.value ? (v(), f("span", Kn, ":")) : O("", !0),
|
|
5542
|
-
r.value ?
|
|
5550
|
+
r.value ? Me((v(), f("input", {
|
|
5543
5551
|
key: 4,
|
|
5544
5552
|
id: `second_${D(a)}`,
|
|
5545
5553
|
type: "number",
|