hys-ui 0.4.0 → 0.6.0
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/CHANGELOG.md +13 -0
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +3 -3
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +440 -119
- package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.js +7 -0
- package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas2.vue.js +166 -0
- package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.js +7 -0
- package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits2.vue.js +105 -0
- package/dist/components/HysAnimatedNumber/animation/digital.js +186 -0
- package/dist/components/HysAnimatedNumber/animation/morph.js +110 -0
- package/dist/components/HysAnimatedNumber/animation/paint.js +34 -0
- package/dist/components/HysAnimatedNumber/animation/particles.js +51 -0
- package/dist/components/HysAnimatedNumber/animation/paths.js +165 -0
- package/dist/components/HysAnimatedNumber/animation/physics.js +66 -0
- package/dist/components/HysAnimatedNumber/animation/render.js +89 -0
- package/dist/components/HysAnimatedNumber/animation/reveal.js +125 -0
- package/dist/components/HysAnimatedNumber/animation/rolling.js +66 -0
- package/dist/components/HysAnimatedNumber/animation/scenarios.js +217 -0
- package/dist/components/HysAnimatedNumber/animation/spatial.js +112 -0
- package/dist/components/HysAnimatedNumber/useNumberCountdown.js +58 -0
- package/dist/components/HysAnimatedNumber/useNumberVisuals.js +60 -0
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +1 -1
- package/dist/components/HysFormItem/HysFormItem2.vue.js +231 -229
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +327 -274
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +38 -38
- package/dist/components/HysSearch/HysSearch.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList2.vue.js +498 -129
- package/dist/components/HysSortableList/SortableGhost/SortableGhost.vue.js +7 -0
- package/dist/components/HysSortableList/SortableGhost/SortableGhost2.vue.js +43 -0
- package/dist/components/HysSortableList/SortableGhost/useSortGhost.js +54 -0
- package/dist/components/HysSortableList/geometry.js +230 -0
- package/dist/components/HysSortableList/model.js +254 -0
- package/dist/components/HysSortableList/transactions.js +281 -0
- package/dist/components/HysSortableList/useSortDrag.js +270 -0
- package/dist/components/HysSortableList/useSortKeyboard.js +72 -0
- package/dist/components/HysSortableList/useSortWindow.js +144 -0
- package/dist/components/HysTextarea/HysTextarea.vue.js +56 -32
- package/dist/components/HysToast/HysToast.vue.js +3 -3
- package/dist/components/HysToast/HysToast2.vue.js +379 -107
- package/dist/components/HysToast/ToastViewport/ToastViewport.vue.js +7 -0
- package/dist/components/HysToast/ToastViewport/ToastViewport2.vue.js +211 -0
- package/dist/components/HysToast/ToastViewport/useToastStackDisclosure.js +71 -0
- package/dist/components/HysToast/toastPresentation.js +98 -0
- package/dist/components/HysToast/useToastActions.js +62 -0
- package/dist/components/HysToast/useToastSwipe.js +48 -0
- package/dist/components/HysToast/useToastTimer.js +90 -0
- package/dist/composables/animatedNumberDigits.js +106 -0
- package/dist/composables/animatedNumberFormat.js +222 -0
- package/dist/composables/animatedNumberTiming.js +66 -0
- package/dist/composables/numberAnimation.js +72 -0
- package/dist/composables/numberAnimationCatalog.js +301 -0
- package/dist/composables/numberAnimationSequence.js +45 -0
- package/dist/composables/popupReferenceBinding.js +41 -0
- package/dist/composables/textInput.js +23 -14
- package/dist/composables/toastEscape.js +18 -10
- package/dist/composables/toastQueue.js +276 -0
- package/dist/composables/toastQueueModel.js +86 -0
- package/dist/composables/toastTasks.js +58 -0
- package/dist/composables/useHysAnimatedNumber.js +264 -0
- package/dist/composables/useHysNumberAnimationGroup.js +23 -0
- package/dist/composables/useHysToast.js +117 -135
- package/dist/composables/usePopupSurface.js +190 -356
- package/dist/composables/usePopupSurfaceInteractions.js +172 -0
- package/dist/composables/useTextareaSize.js +62 -46
- package/dist/index.js +125 -111
- package/dist/style.css +1 -1
- package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +88 -49
- package/dist/types/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.d.ts +19 -0
- package/dist/types/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.d.ts +31 -0
- package/dist/types/components/HysAnimatedNumber/animation/digital.d.ts +3 -0
- package/dist/types/components/HysAnimatedNumber/animation/morph.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/paint.d.ts +44 -0
- package/dist/types/components/HysAnimatedNumber/animation/particles.d.ts +5 -0
- package/dist/types/components/HysAnimatedNumber/animation/paths.d.ts +12 -0
- package/dist/types/components/HysAnimatedNumber/animation/physics.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/render.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/reveal.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/rolling.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/animation/scenarios.d.ts +4 -0
- package/dist/types/components/HysAnimatedNumber/animation/spatial.d.ts +2 -0
- package/dist/types/components/HysAnimatedNumber/useNumberCountdown.d.ts +8 -0
- package/dist/types/components/HysAnimatedNumber/useNumberVisuals.d.ts +12 -0
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +11 -2
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +2 -2
- package/dist/types/components/HysCard/HysCard.vue.d.ts +1 -1
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +3 -3
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +2 -2
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +3 -3
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +5 -5
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +3 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -1
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +1 -1
- package/dist/types/components/HysInput/HysInput.vue.d.ts +13 -1
- package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +1 -1
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +1 -1
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +2 -2
- package/dist/types/components/HysSortableList/HysSortableList.vue.d.ts +48 -25
- package/dist/types/components/HysSortableList/SortableGhost/SortableGhost.vue.d.ts +31 -0
- package/dist/types/components/HysSortableList/SortableGhost/useSortGhost.d.ts +23 -0
- package/dist/types/components/HysSortableList/geometry.d.ts +35 -0
- package/dist/types/components/HysSortableList/model.d.ts +61 -0
- package/dist/types/components/HysSortableList/sortableList.d.ts +151 -0
- package/dist/types/components/HysSortableList/transactions.d.ts +10 -0
- package/dist/types/components/HysSortableList/useSortDrag.d.ts +25 -0
- package/dist/types/components/HysSortableList/useSortKeyboard.d.ts +17 -0
- package/dist/types/components/HysSortableList/useSortWindow.d.ts +16 -0
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +1 -1
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +1 -1
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +13 -2
- package/dist/types/components/HysToast/HysToast.vue.d.ts +44 -46
- package/dist/types/components/HysToast/ToastViewport/ToastViewport.vue.d.ts +25 -0
- package/dist/types/components/HysToast/ToastViewport/useToastStackDisclosure.d.ts +16 -0
- package/dist/types/components/HysToast/toastPresentation.d.ts +8 -0
- package/dist/types/components/HysToast/toastTypes.d.ts +212 -0
- package/dist/types/components/HysToast/useToastActions.d.ts +18 -0
- package/dist/types/components/HysToast/useToastSwipe.d.ts +11 -0
- package/dist/types/components/HysToast/useToastTimer.d.ts +22 -0
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +1 -1
- package/dist/types/components/HysTour/HysTour.vue.d.ts +1 -1
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +3 -3
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +2 -2
- package/dist/types/composables/animatedNumber.d.ts +220 -0
- package/dist/types/composables/animatedNumberDigits.d.ts +32 -0
- package/dist/types/composables/animatedNumberFormat.d.ts +16 -0
- package/dist/types/composables/animatedNumberTiming.d.ts +21 -0
- package/dist/types/composables/drawer.d.ts +1 -1
- package/dist/types/composables/numberAnimation.d.ts +29 -0
- package/dist/types/composables/numberAnimationCatalog.d.ts +58 -0
- package/dist/types/composables/numberAnimationSequence.d.ts +13 -0
- package/dist/types/composables/popupReferenceBinding.d.ts +9 -0
- package/dist/types/composables/textInput.d.ts +39 -4
- package/dist/types/composables/toastEscape.d.ts +1 -1
- package/dist/types/composables/toastQueue.d.ts +121 -0
- package/dist/types/composables/toastQueueModel.d.ts +116 -0
- package/dist/types/composables/toastTasks.d.ts +2 -0
- package/dist/types/composables/useHysAnimatedNumber.d.ts +37 -0
- package/dist/types/composables/useHysNumberAnimationGroup.d.ts +4 -0
- package/dist/types/composables/useHysToast.d.ts +4 -48
- package/dist/types/composables/usePopupSurface.d.ts +20 -20
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +33 -0
- package/dist/types/composables/useTextareaSize.d.ts +5 -2
- package/dist/types/index.d.ts +15 -6
- package/package.json +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { computed as d, ref as k, shallowRef as p, watch as F, onBeforeUnmount as q, nextTick as I } from "vue";
|
|
2
|
+
import { layoutOf as K, keyToken as N } from "./model.js";
|
|
3
|
+
const G = (n, u, l, s) => Number.isFinite(n) ? Math.min(s, Math.max(l, n)) : u;
|
|
4
|
+
function H(n, u) {
|
|
5
|
+
let l = 0, s = n.length - 1;
|
|
6
|
+
for (; l < s; ) {
|
|
7
|
+
const m = Math.ceil((l + s) / 2);
|
|
8
|
+
n[m] <= u ? l = m : s = m - 1;
|
|
9
|
+
}
|
|
10
|
+
return Math.min(l, Math.max(0, n.length - 2));
|
|
11
|
+
}
|
|
12
|
+
function J(n, u, l, s, m) {
|
|
13
|
+
const x = d(
|
|
14
|
+
() => typeof n.virtual == "object" ? n.virtual : {}
|
|
15
|
+
), c = d(() => K(n) === "horizontal"), v = k(0), L = k(0), z = k(0), y = k(0), h = /* @__PURE__ */ new Map(), R = p(0), b = d(() => {
|
|
16
|
+
if (K(n) !== "grid" || !n.virtual) return 1;
|
|
17
|
+
const e = x.value.columns;
|
|
18
|
+
return Math.floor(
|
|
19
|
+
G(
|
|
20
|
+
typeof e == "function" ? e(L.value) : e,
|
|
21
|
+
2,
|
|
22
|
+
1,
|
|
23
|
+
100
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
}), w = d(() => {
|
|
27
|
+
if (!n.virtual) return [0];
|
|
28
|
+
R.value;
|
|
29
|
+
const e = [0], t = G(
|
|
30
|
+
x.value.estimateSize,
|
|
31
|
+
c.value ? 160 : 48,
|
|
32
|
+
1,
|
|
33
|
+
2e3
|
|
34
|
+
), a = b.value;
|
|
35
|
+
for (let o = 0; o < u.value.length; o += a) {
|
|
36
|
+
let i = 0;
|
|
37
|
+
for (let r = o; r < Math.min(o + a, u.value.length); r++)
|
|
38
|
+
i = Math.max(
|
|
39
|
+
i,
|
|
40
|
+
h.get(N(m(u.value[r]))) ?? t
|
|
41
|
+
);
|
|
42
|
+
e.push(e[e.length - 1] + i + y.value);
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}), W = d(() => {
|
|
46
|
+
if (!n.virtual)
|
|
47
|
+
return { start: 0, end: u.value.length, before: 0, after: 0 };
|
|
48
|
+
const e = w.value, t = e.length - 1, a = Math.floor(G(x.value.overscan, 4, 1, 100)), o = Math.max(0, H(e, v.value) - a), i = Math.min(
|
|
49
|
+
t,
|
|
50
|
+
H(e, v.value + (z.value || 300)) + a + 1
|
|
51
|
+
);
|
|
52
|
+
return {
|
|
53
|
+
start: o * b.value,
|
|
54
|
+
end: Math.min(i * b.value, u.value.length),
|
|
55
|
+
before: Math.max(0, e[o] - y.value),
|
|
56
|
+
after: Math.max(0, e[t] - e[i] - y.value)
|
|
57
|
+
};
|
|
58
|
+
}), P = d(
|
|
59
|
+
() => u.value.slice(W.value.start, W.value.end)
|
|
60
|
+
), O = d(() => {
|
|
61
|
+
if (!n.virtual) return;
|
|
62
|
+
const e = x.value.height ?? (c.value ? "auto" : 320);
|
|
63
|
+
return typeof e == "number" ? `${Math.max(1, e)}px` : e;
|
|
64
|
+
});
|
|
65
|
+
let g, f;
|
|
66
|
+
const M = /* @__PURE__ */ new Set();
|
|
67
|
+
function S() {
|
|
68
|
+
const e = l.value;
|
|
69
|
+
if (!e || !n.virtual) return;
|
|
70
|
+
v.value = c.value ? Math.abs(e.scrollLeft) : e.scrollTop, z.value = c.value ? e.clientWidth : e.clientHeight, L.value = e.clientWidth;
|
|
71
|
+
const t = s.value;
|
|
72
|
+
if (t) {
|
|
73
|
+
const a = getComputedStyle(t);
|
|
74
|
+
y.value = parseFloat(c.value ? a.columnGap : a.rowGap) || 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function T(e) {
|
|
78
|
+
const t = l.value;
|
|
79
|
+
t && (c.value ? t.scrollLeft = getComputedStyle(t).direction === "rtl" ? -e : e : t.scrollTop = e, S());
|
|
80
|
+
}
|
|
81
|
+
function U(e) {
|
|
82
|
+
const t = w.value, a = H(t, v.value);
|
|
83
|
+
let o = !1;
|
|
84
|
+
for (const i of e) {
|
|
85
|
+
const r = i.target, A = r.dataset.sortKey;
|
|
86
|
+
if (A === void 0 || !M.has(r)) continue;
|
|
87
|
+
const C = c.value ? r.offsetWidth : r.offsetHeight;
|
|
88
|
+
!C || h.get(A) === C || (h.set(A, C), o = !0);
|
|
89
|
+
}
|
|
90
|
+
if (o) {
|
|
91
|
+
R.value++;
|
|
92
|
+
const i = (w.value[a] ?? 0) - (t[a] ?? 0);
|
|
93
|
+
if (i && v.value > 0) {
|
|
94
|
+
const r = v.value;
|
|
95
|
+
I(() => {
|
|
96
|
+
v.value === r && T(r + i);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function j() {
|
|
102
|
+
if (!f || !s.value) return;
|
|
103
|
+
const e = new Set(
|
|
104
|
+
Array.from(s.value.children).filter(
|
|
105
|
+
(t) => t.hasAttribute("data-sort-key")
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
for (const t of M)
|
|
109
|
+
e.has(t) || (f.unobserve(t), M.delete(t));
|
|
110
|
+
for (const t of e)
|
|
111
|
+
M.has(t) || (M.add(t), f.observe(t));
|
|
112
|
+
}
|
|
113
|
+
function B() {
|
|
114
|
+
g == null || g.disconnect(), f == null || f.disconnect(), g = f = void 0, M.clear();
|
|
115
|
+
}
|
|
116
|
+
F(
|
|
117
|
+
[l, s, () => !!n.virtual, c],
|
|
118
|
+
() => {
|
|
119
|
+
B(), h.clear(), R.value++, !(!l.value || !n.virtual) && (S(), typeof ResizeObserver < "u" && (g = new ResizeObserver(S), g.observe(l.value), f = new ResizeObserver(U), j()));
|
|
120
|
+
},
|
|
121
|
+
{ flush: "post" }
|
|
122
|
+
), F(P, j, { flush: "post" }), F(u, (e) => {
|
|
123
|
+
if (!h.size) return;
|
|
124
|
+
const t = new Set(e.map((a) => N(m(a))));
|
|
125
|
+
for (const a of h.keys()) t.has(a) || h.delete(a);
|
|
126
|
+
}), q(B);
|
|
127
|
+
async function $(e) {
|
|
128
|
+
if (!n.virtual || e < 0) return;
|
|
129
|
+
const t = Math.floor(e / b.value), a = w.value[t], o = w.value[t + 1] - y.value;
|
|
130
|
+
a < v.value ? T(a) : o > v.value + z.value && T(Math.max(0, o - z.value)), await I();
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
visibleItems: P,
|
|
134
|
+
range: W,
|
|
135
|
+
horizontal: c,
|
|
136
|
+
length: O,
|
|
137
|
+
columns: b,
|
|
138
|
+
reveal: $,
|
|
139
|
+
syncPosition: S
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export {
|
|
143
|
+
J as useSortWindow
|
|
144
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as y, ref as v, useAttrs as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as y, ref as v, useAttrs as B, computed as a, openBlock as x, createBlock as b, mergeProps as g, unref as w, createSlots as $, withCtx as s, renderSlot as r, normalizeProps as C, guardReactiveProps as k } from "vue";
|
|
2
|
+
import P from "../HysInput/HysInput.vue.js";
|
|
3
3
|
const I = /* @__PURE__ */ y({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "HysTextarea",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: {},
|
|
8
|
+
modelModifiers: {},
|
|
8
9
|
defaultValue: {},
|
|
9
10
|
placeholder: {},
|
|
10
11
|
label: {},
|
|
@@ -13,7 +14,10 @@ const I = /* @__PURE__ */ y({
|
|
|
13
14
|
ariaLabel: {},
|
|
14
15
|
error: {},
|
|
15
16
|
status: {},
|
|
16
|
-
clearable: { type: Boolean },
|
|
17
|
+
clearable: { type: Boolean, default: void 0 },
|
|
18
|
+
allowClear: { type: Boolean },
|
|
19
|
+
addonBefore: {},
|
|
20
|
+
addonAfter: {},
|
|
17
21
|
clearIcon: {},
|
|
18
22
|
prefixIcon: {},
|
|
19
23
|
suffixIcon: {},
|
|
@@ -34,24 +38,33 @@ const I = /* @__PURE__ */ y({
|
|
|
34
38
|
autosize: { type: [Boolean, Object] },
|
|
35
39
|
resize: { default: "vertical" },
|
|
36
40
|
inputProps: {},
|
|
41
|
+
inputStyle: { type: [Boolean, null, String, Object, Array] },
|
|
42
|
+
inputmode: {},
|
|
43
|
+
tabindex: {},
|
|
44
|
+
form: {},
|
|
45
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
37
46
|
autofocus: { type: Boolean },
|
|
38
47
|
selectOnFocus: { type: Boolean },
|
|
39
48
|
bordered: { type: Boolean, default: !0 },
|
|
40
49
|
round: { type: Boolean }
|
|
41
50
|
},
|
|
42
|
-
emits: ["update:modelValue", "input", "change", "clear", "focus", "blur", "pressEnter", "compositionstart", "compositionupdate", "compositionend"],
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
51
|
+
emits: ["update:modelValue", "input", "change", "clear", "focus", "blur", "pressEnter", "keydown", "mouseenter", "mouseleave", "compositionstart", "compositionupdate", "compositionend"],
|
|
52
|
+
setup(p, { expose: d, emit: m }) {
|
|
53
|
+
const i = p, l = m, n = v(), f = B();
|
|
45
54
|
return d({
|
|
46
|
-
|
|
55
|
+
element: a(() => {
|
|
47
56
|
var e;
|
|
48
57
|
return (e = n.value) == null ? void 0 : e.textarea;
|
|
49
58
|
}),
|
|
50
|
-
|
|
59
|
+
input: a(() => {
|
|
51
60
|
var e;
|
|
52
61
|
return (e = n.value) == null ? void 0 : e.textarea;
|
|
53
62
|
}),
|
|
54
|
-
|
|
63
|
+
textarea: a(() => {
|
|
64
|
+
var e;
|
|
65
|
+
return (e = n.value) == null ? void 0 : e.textarea;
|
|
66
|
+
}),
|
|
67
|
+
isComposing: a(() => {
|
|
55
68
|
var e;
|
|
56
69
|
return ((e = n.value) == null ? void 0 : e.isComposing) ?? !1;
|
|
57
70
|
}),
|
|
@@ -75,71 +88,82 @@ const I = /* @__PURE__ */ y({
|
|
|
75
88
|
var e;
|
|
76
89
|
return ((e = n.value) == null ? void 0 : e.resize()) ?? Promise.resolve();
|
|
77
90
|
},
|
|
91
|
+
resizeTextarea: () => {
|
|
92
|
+
var e;
|
|
93
|
+
return ((e = n.value) == null ? void 0 : e.resizeTextarea()) ?? Promise.resolve();
|
|
94
|
+
},
|
|
95
|
+
textareaStyle: a(() => {
|
|
96
|
+
var e;
|
|
97
|
+
return ((e = n.value) == null ? void 0 : e.textareaStyle) ?? {};
|
|
98
|
+
}),
|
|
78
99
|
setSelectionRange: (e, o, t) => {
|
|
79
|
-
var
|
|
80
|
-
return (
|
|
100
|
+
var u;
|
|
101
|
+
return (u = n.value) == null ? void 0 : u.setSelectionRange(e, o, t);
|
|
81
102
|
},
|
|
82
103
|
scrollTo: (e) => {
|
|
83
104
|
var o;
|
|
84
105
|
return (o = n.value) == null ? void 0 : o.scrollTo(e);
|
|
85
106
|
}
|
|
86
|
-
}), (e, o) => (
|
|
107
|
+
}), (e, o) => (x(), b(P, g({
|
|
87
108
|
ref_key: "control",
|
|
88
109
|
ref: n
|
|
89
|
-
}, { ...
|
|
90
|
-
"show-count":
|
|
110
|
+
}, { ...i, ...w(f) }, {
|
|
111
|
+
"show-count": i.showCount ?? i.maxlength !== void 0,
|
|
91
112
|
type: "textarea",
|
|
92
113
|
class: "hys-ui-ex-field",
|
|
93
|
-
"onUpdate:modelValue": o[0] || (o[0] = (t) =>
|
|
94
|
-
onInput: o[1] || (o[1] = (t) =>
|
|
95
|
-
onChange: o[2] || (o[2] = (t) =>
|
|
96
|
-
onClear: o[3] || (o[3] = (t) =>
|
|
97
|
-
onFocus: o[4] || (o[4] = (t) =>
|
|
98
|
-
onBlur: o[5] || (o[5] = (t) =>
|
|
99
|
-
onPressEnter: o[6] || (o[6] = (t) =>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => l("update:modelValue", t)),
|
|
115
|
+
onInput: o[1] || (o[1] = (t) => l("input", t)),
|
|
116
|
+
onChange: o[2] || (o[2] = (t) => l("change", t)),
|
|
117
|
+
onClear: o[3] || (o[3] = (t) => l("clear")),
|
|
118
|
+
onFocus: o[4] || (o[4] = (t) => l("focus", t)),
|
|
119
|
+
onBlur: o[5] || (o[5] = (t) => l("blur", t)),
|
|
120
|
+
onPressEnter: o[6] || (o[6] = (t) => l("pressEnter", t)),
|
|
121
|
+
onKeydown: o[7] || (o[7] = (t) => l("keydown", t)),
|
|
122
|
+
onMouseenter: o[8] || (o[8] = (t) => l("mouseenter", t)),
|
|
123
|
+
onMouseleave: o[9] || (o[9] = (t) => l("mouseleave", t)),
|
|
124
|
+
onCompositionstart: o[10] || (o[10] = (t) => l("compositionstart", t)),
|
|
125
|
+
onCompositionupdate: o[11] || (o[11] = (t) => l("compositionupdate", t)),
|
|
126
|
+
onCompositionend: o[12] || (o[12] = (t) => l("compositionend", t))
|
|
127
|
+
}), $({ _: 2 }, [
|
|
104
128
|
e.$slots.prefix ? {
|
|
105
129
|
name: "prefix",
|
|
106
|
-
fn:
|
|
130
|
+
fn: s(() => [
|
|
107
131
|
r(e.$slots, "prefix")
|
|
108
132
|
]),
|
|
109
133
|
key: "0"
|
|
110
134
|
} : void 0,
|
|
111
135
|
e.$slots.suffix ? {
|
|
112
136
|
name: "suffix",
|
|
113
|
-
fn:
|
|
137
|
+
fn: s(() => [
|
|
114
138
|
r(e.$slots, "suffix")
|
|
115
139
|
]),
|
|
116
140
|
key: "1"
|
|
117
141
|
} : void 0,
|
|
118
142
|
e.$slots.prepend ? {
|
|
119
143
|
name: "prepend",
|
|
120
|
-
fn:
|
|
144
|
+
fn: s(() => [
|
|
121
145
|
r(e.$slots, "prepend")
|
|
122
146
|
]),
|
|
123
147
|
key: "2"
|
|
124
148
|
} : void 0,
|
|
125
149
|
e.$slots.append ? {
|
|
126
150
|
name: "append",
|
|
127
|
-
fn:
|
|
151
|
+
fn: s(() => [
|
|
128
152
|
r(e.$slots, "append")
|
|
129
153
|
]),
|
|
130
154
|
key: "3"
|
|
131
155
|
} : void 0,
|
|
132
156
|
e.$slots["clear-icon"] ? {
|
|
133
157
|
name: "clear-icon",
|
|
134
|
-
fn:
|
|
158
|
+
fn: s(() => [
|
|
135
159
|
r(e.$slots, "clear-icon")
|
|
136
160
|
]),
|
|
137
161
|
key: "4"
|
|
138
162
|
} : void 0,
|
|
139
163
|
e.$slots.count ? {
|
|
140
164
|
name: "count",
|
|
141
|
-
fn:
|
|
142
|
-
r(e.$slots, "count", k(
|
|
165
|
+
fn: s((t) => [
|
|
166
|
+
r(e.$slots, "count", C(k(t)))
|
|
143
167
|
]),
|
|
144
168
|
key: "5"
|
|
145
169
|
} : void 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysToast2.vue.js";
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f72ab805"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|