@quidgest/ui 0.9.8 → 0.9.9
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/index.d.ts +1 -0
- package/dist/ui.esm.js +35 -27
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +1 -1
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/ui.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCurrentInstance as De, computed as w, ref as D, provide as ze, inject as Ce, watch as Y, defineComponent as x, openBlock as u, createElementBlock as m, normalizeClass as T, normalizeStyle as pe, createElementVNode as J, withModifiers as de, createVNode as F, unref as h, createCommentVNode as I, Fragment as te, createTextVNode as ue, toDisplayString as K, renderSlot as v, toRef as Ie, mergeModels as G, useModel as Z, createBlock as E, withCtx as k, renderList as
|
|
2
|
-
function
|
|
1
|
+
import { getCurrentInstance as De, computed as w, ref as D, provide as ze, inject as Ce, watch as Y, defineComponent as x, openBlock as u, createElementBlock as m, normalizeClass as T, normalizeStyle as pe, createElementVNode as J, withModifiers as de, createVNode as F, unref as h, createCommentVNode as I, Fragment as te, createTextVNode as ue, toDisplayString as K, renderSlot as v, toRef as Ie, mergeModels as G, useModel as Z, createBlock as E, withCtx as k, renderList as ye, resolveDynamicComponent as Ae, h as xe, normalizeProps as ne, mergeProps as se, reactive as Ne, onBeforeUnmount as He, onMounted as Qe, nextTick as H, Teleport as Ke, Transition as Ge, withKeys as We, createSlots as ve, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as ie } from "vue";
|
|
2
|
+
function ge(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
5
5
|
function Be(t) {
|
|
@@ -35,9 +35,9 @@ function Ye() {
|
|
|
35
35
|
return w(() => ke(n, l));
|
|
36
36
|
}
|
|
37
37
|
function Me(t) {
|
|
38
|
-
if (
|
|
38
|
+
if (ge(t))
|
|
39
39
|
return;
|
|
40
|
-
const o = Oe(), e = D(t), n = w(() =>
|
|
40
|
+
const o = Oe(), e = D(t), n = w(() => ge(e.value) ? o.value : ke(o.value, e.value));
|
|
41
41
|
ze(we, n);
|
|
42
42
|
}
|
|
43
43
|
function Oe() {
|
|
@@ -245,7 +245,7 @@ function S(t) {
|
|
|
245
245
|
const o = t.setup;
|
|
246
246
|
return o && (t.setup = (e, n) => {
|
|
247
247
|
const l = Ye();
|
|
248
|
-
if (
|
|
248
|
+
if (ge(l.value))
|
|
249
249
|
return o(e, n);
|
|
250
250
|
const s = De();
|
|
251
251
|
if (s === null)
|
|
@@ -376,7 +376,7 @@ const $e = S(it), dt = ["disabled"], ut = {
|
|
|
376
376
|
elevated: o.elevated
|
|
377
377
|
}, {
|
|
378
378
|
default: k(() => [
|
|
379
|
-
(u(!0), m(te, null,
|
|
379
|
+
(u(!0), m(te, null, ye(o.options, (r) => (u(), E(h(fe), {
|
|
380
380
|
key: r.key,
|
|
381
381
|
title: r.title,
|
|
382
382
|
label: r.label,
|
|
@@ -752,13 +752,13 @@ const $t = /* @__PURE__ */ x({
|
|
|
752
752
|
onKeydown: U
|
|
753
753
|
}, {
|
|
754
754
|
default: k(() => [
|
|
755
|
-
(u(!0), m(te, null,
|
|
755
|
+
(u(!0), m(te, null, ye(r.value, (q) => (u(), E(h(Qt), {
|
|
756
756
|
key: q.id,
|
|
757
757
|
title: r.value.length === 1 ? void 0 : q.title,
|
|
758
758
|
disabled: q.disabled
|
|
759
759
|
}, {
|
|
760
760
|
default: k(() => [
|
|
761
|
-
(u(!0), m(te, null,
|
|
761
|
+
(u(!0), m(te, null, ye(ae(q.id), (d) => (u(), E(h(At), {
|
|
762
762
|
key: d[e.itemValue],
|
|
763
763
|
value: d[e.itemValue],
|
|
764
764
|
label: d[e.itemLabel],
|
|
@@ -862,7 +862,7 @@ const St = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Vt = {
|
|
|
862
862
|
function Mt(t, o, e = "right", n) {
|
|
863
863
|
const l = t.getBoundingClientRect(), s = l.x + window.scrollX, r = l.y + window.scrollY, i = o == null ? void 0 : o.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, L = (i == null ? void 0 : i.height) ?? 0;
|
|
864
864
|
let _ = e;
|
|
865
|
-
i &&
|
|
865
|
+
i && _e(l, i, _) !== 0 && (_ = Ot(l, i, _));
|
|
866
866
|
const y = { x: 0, y: 0, placement: _ };
|
|
867
867
|
switch (_) {
|
|
868
868
|
case "top":
|
|
@@ -880,7 +880,7 @@ function Mt(t, o, e = "right", n) {
|
|
|
880
880
|
}
|
|
881
881
|
return y.x = Math.max(0, y.x), y.y = Math.max(0, y.y), n === "anchor" && l.width >= f && (y.width = l.width), y;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function _e(t, o, e) {
|
|
884
884
|
let n = 0, l = 0;
|
|
885
885
|
switch (e) {
|
|
886
886
|
case "top":
|
|
@@ -917,9 +917,9 @@ function Ot(t, o, e) {
|
|
|
917
917
|
left: ["right", "top", "bottom"],
|
|
918
918
|
right: ["left", "top", "bottom"]
|
|
919
919
|
};
|
|
920
|
-
let l = e, s =
|
|
920
|
+
let l = e, s = _e(t, o, e);
|
|
921
921
|
for (const r of n[e]) {
|
|
922
|
-
const i =
|
|
922
|
+
const i = _e(t, o, r);
|
|
923
923
|
i > s && (s = i, l = r);
|
|
924
924
|
}
|
|
925
925
|
return l;
|
|
@@ -1147,7 +1147,7 @@ const Rt = ["role"], Ut = {
|
|
|
1147
1147
|
}, 8, ["name"])
|
|
1148
1148
|
], 8, ["disabled", "to"]));
|
|
1149
1149
|
}
|
|
1150
|
-
}),
|
|
1150
|
+
}), he = S(Nt), Ht = ["id"], Kt = {
|
|
1151
1151
|
key: 0,
|
|
1152
1152
|
class: "q-field__label"
|
|
1153
1153
|
}, Gt = ["for"], Wt = {
|
|
@@ -1256,7 +1256,7 @@ const Rt = ["role"], Ut = {
|
|
|
1256
1256
|
readonly: e.readonly,
|
|
1257
1257
|
disabled: e.disabled,
|
|
1258
1258
|
required: e.required
|
|
1259
|
-
},
|
|
1259
|
+
}, ve({
|
|
1260
1260
|
"label.prepend": k(() => [
|
|
1261
1261
|
v(f.$slots, "label.prepend")
|
|
1262
1262
|
]),
|
|
@@ -1523,7 +1523,7 @@ const Rt = ["role"], Ut = {
|
|
|
1523
1523
|
onClick: c,
|
|
1524
1524
|
onFocusout: p,
|
|
1525
1525
|
onKeydown: de(b, ["stop"])
|
|
1526
|
-
},
|
|
1526
|
+
}, ve({
|
|
1527
1527
|
"label.prepend": k(() => [
|
|
1528
1528
|
v(a.$slots, "label.prepend")
|
|
1529
1529
|
]),
|
|
@@ -1577,7 +1577,7 @@ const Rt = ["role"], Ut = {
|
|
|
1577
1577
|
key: "1"
|
|
1578
1578
|
} : void 0
|
|
1579
1579
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1580
|
-
F(h(
|
|
1580
|
+
F(h(he), {
|
|
1581
1581
|
modelValue: r.value,
|
|
1582
1582
|
"onUpdate:modelValue": g[2] || (g[2] = (O) => r.value = O),
|
|
1583
1583
|
spy: "",
|
|
@@ -1610,7 +1610,7 @@ const Rt = ["role"], Ut = {
|
|
|
1610
1610
|
class: "q-select__items",
|
|
1611
1611
|
modelValue: s.value,
|
|
1612
1612
|
"onUpdate:modelValue": [
|
|
1613
|
-
g[1] || (g[1] = (
|
|
1613
|
+
g[1] || (g[1] = (be) => s.value = be),
|
|
1614
1614
|
A
|
|
1615
1615
|
],
|
|
1616
1616
|
highlighted: (O = W.value) == null ? void 0 : O[n.itemValue],
|
|
@@ -1620,8 +1620,8 @@ const Rt = ["role"], Ut = {
|
|
|
1620
1620
|
"item-value": n.itemValue,
|
|
1621
1621
|
onMouseup: R
|
|
1622
1622
|
}, {
|
|
1623
|
-
item: k(({ item:
|
|
1624
|
-
v(a.$slots, "item", { item:
|
|
1623
|
+
item: k(({ item: be }) => [
|
|
1624
|
+
v(a.$slots, "item", { item: be })
|
|
1625
1625
|
]),
|
|
1626
1626
|
_: 3
|
|
1627
1627
|
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", oo, K(a.texts.noData), 1)),
|
|
@@ -1663,7 +1663,7 @@ const Rt = ["role"], Ut = {
|
|
|
1663
1663
|
label: o.label,
|
|
1664
1664
|
required: o.required,
|
|
1665
1665
|
size: o.size
|
|
1666
|
-
}, {
|
|
1666
|
+
}, ve({
|
|
1667
1667
|
default: k(() => [
|
|
1668
1668
|
e.$slots.prepend || o.prependIcon ? (u(), m("div", so, [
|
|
1669
1669
|
o.prependIcon ? (u(), m("span", io, [
|
|
@@ -1679,8 +1679,16 @@ const Rt = ["role"], Ut = {
|
|
|
1679
1679
|
v(e.$slots, "append")
|
|
1680
1680
|
])) : I("", !0)
|
|
1681
1681
|
]),
|
|
1682
|
-
_:
|
|
1683
|
-
},
|
|
1682
|
+
_: 2
|
|
1683
|
+
}, [
|
|
1684
|
+
e.$slots.extras ? {
|
|
1685
|
+
name: "extras",
|
|
1686
|
+
fn: k(() => [
|
|
1687
|
+
v(e.$slots, "extras")
|
|
1688
|
+
]),
|
|
1689
|
+
key: "0"
|
|
1690
|
+
} : void 0
|
|
1691
|
+
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
1684
1692
|
}
|
|
1685
1693
|
}), zo = S(co), fo = /* @__PURE__ */ x({
|
|
1686
1694
|
__name: "QLineLoader",
|
|
@@ -1718,7 +1726,7 @@ const Rt = ["role"], Ut = {
|
|
|
1718
1726
|
emits: ["update:modelValue"],
|
|
1719
1727
|
setup(t) {
|
|
1720
1728
|
const o = t, e = Z(t, "modelValue");
|
|
1721
|
-
return (n, l) => (u(), E(h(
|
|
1729
|
+
return (n, l) => (u(), E(h(he), {
|
|
1722
1730
|
"model-value": e.value,
|
|
1723
1731
|
class: "q-popover",
|
|
1724
1732
|
trigger: "click",
|
|
@@ -1889,7 +1897,7 @@ const Rt = ["role"], Ut = {
|
|
|
1889
1897
|
size: e.size,
|
|
1890
1898
|
onClick: W,
|
|
1891
1899
|
onKeydown: de(N, ["stop"])
|
|
1892
|
-
},
|
|
1900
|
+
}, ve({
|
|
1893
1901
|
append: k(() => [
|
|
1894
1902
|
v(d.$slots, "append"),
|
|
1895
1903
|
z.value && l.value ? (u(), E(h(fe), {
|
|
@@ -1948,7 +1956,7 @@ const Rt = ["role"], Ut = {
|
|
|
1948
1956
|
key: "1"
|
|
1949
1957
|
} : void 0
|
|
1950
1958
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
1951
|
-
F(h(
|
|
1959
|
+
F(h(he), {
|
|
1952
1960
|
modelValue: s.value,
|
|
1953
1961
|
"onUpdate:modelValue": $[1] || ($[1] = (R) => s.value = R),
|
|
1954
1962
|
spy: "",
|
|
@@ -2042,7 +2050,7 @@ const Rt = ["role"], Ut = {
|
|
|
2042
2050
|
v(l.$slots, "anchor", {
|
|
2043
2051
|
props: { "aria-describedby": h(n) }
|
|
2044
2052
|
}),
|
|
2045
|
-
F(h(
|
|
2053
|
+
F(h(he), {
|
|
2046
2054
|
"model-value": e.value,
|
|
2047
2055
|
anchor: o.anchor,
|
|
2048
2056
|
role: "tooltip",
|
|
@@ -2082,7 +2090,7 @@ export {
|
|
|
2082
2090
|
Re as QList,
|
|
2083
2091
|
At as QListItem,
|
|
2084
2092
|
Qt as QListItemGroup,
|
|
2085
|
-
|
|
2093
|
+
he as QOverlay,
|
|
2086
2094
|
Ao as QPopover,
|
|
2087
2095
|
Qo as QSelect,
|
|
2088
2096
|
$e as QSpinnerLoader,
|