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,172 @@
|
|
|
1
|
+
import { computed as Y } from "vue";
|
|
2
|
+
const Z = 'button,a[href],input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]';
|
|
3
|
+
function $(r, w, {
|
|
4
|
+
available: T,
|
|
5
|
+
anchor: D,
|
|
6
|
+
actualReference: L,
|
|
7
|
+
panel: o,
|
|
8
|
+
floating: s,
|
|
9
|
+
restoreReferenceFocus: F,
|
|
10
|
+
request: l
|
|
11
|
+
}) {
|
|
12
|
+
const k = (e) => Number.isFinite(e) ? Math.max(0, Math.min(3e4, e)) : 0;
|
|
13
|
+
let v, c, b, h = !1, x = !1, d = !1, m = !1, f = !1;
|
|
14
|
+
const u = Y(() => {
|
|
15
|
+
const e = r.trigger ?? (w === "tooltip" ? ["hover", "focus"] : ["click"]), t = Array.isArray(e) ? e : [e];
|
|
16
|
+
return new Set(t.includes("manual") ? [] : t);
|
|
17
|
+
});
|
|
18
|
+
function K() {
|
|
19
|
+
clearTimeout(v), clearTimeout(c), v = c = void 0;
|
|
20
|
+
}
|
|
21
|
+
function S() {
|
|
22
|
+
clearTimeout(b), b = void 0;
|
|
23
|
+
}
|
|
24
|
+
function A() {
|
|
25
|
+
h = x = d = m = f = !1;
|
|
26
|
+
}
|
|
27
|
+
function I() {
|
|
28
|
+
if (clearTimeout(c), c = void 0, !T.value || s.restoringFocus.value || s.open.value || v)
|
|
29
|
+
return;
|
|
30
|
+
const e = k(r.showDelay);
|
|
31
|
+
e ? v = setTimeout(() => {
|
|
32
|
+
v = void 0, l(!0);
|
|
33
|
+
}, e) : l(!0);
|
|
34
|
+
}
|
|
35
|
+
function C() {
|
|
36
|
+
return f || h || r.enterable !== !1 && x || u.value.has("focus") && d || r.enterable !== !1 && m;
|
|
37
|
+
}
|
|
38
|
+
function p() {
|
|
39
|
+
if (clearTimeout(v), v = void 0, clearTimeout(c), c = void 0, C() || !s.open.value) return;
|
|
40
|
+
const e = () => {
|
|
41
|
+
c = void 0, !C() && s.open.value && l(!1);
|
|
42
|
+
}, t = k(r.hideDelay);
|
|
43
|
+
t ? c = setTimeout(e, t) : e();
|
|
44
|
+
}
|
|
45
|
+
function M() {
|
|
46
|
+
u.value.has("hover") && (h = !0, I());
|
|
47
|
+
}
|
|
48
|
+
function O() {
|
|
49
|
+
u.value.has("hover") && (h = !1, p());
|
|
50
|
+
}
|
|
51
|
+
function j() {
|
|
52
|
+
r.enterable !== !1 && (x = !0, clearTimeout(c), c = void 0);
|
|
53
|
+
}
|
|
54
|
+
function z() {
|
|
55
|
+
x = !1, u.value.has("hover") && p();
|
|
56
|
+
}
|
|
57
|
+
function H(e) {
|
|
58
|
+
var t;
|
|
59
|
+
(t = o.value) != null && t.contains(e.target) || s.restoringFocus.value || (d = !0, u.value.has("focus") && I());
|
|
60
|
+
}
|
|
61
|
+
function N(e) {
|
|
62
|
+
var n, a, i;
|
|
63
|
+
if ((n = o.value) != null && n.contains(e.target)) return;
|
|
64
|
+
const t = e.relatedTarget;
|
|
65
|
+
if (!((a = D.value) != null && a.contains(t))) {
|
|
66
|
+
if (d = !1, (i = o.value) != null && i.contains(t) && r.enterable !== !1) {
|
|
67
|
+
m = !0;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
(u.value.has("focus") || u.value.has("hover")) && p();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function R() {
|
|
74
|
+
r.enterable !== !1 && (m = !0);
|
|
75
|
+
}
|
|
76
|
+
function B(e) {
|
|
77
|
+
var n, a;
|
|
78
|
+
const t = e.relatedTarget;
|
|
79
|
+
if (!((n = o.value) != null && n.contains(t))) {
|
|
80
|
+
if (m = !1, (a = D.value) != null && a.contains(t)) {
|
|
81
|
+
d = !0;
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
(u.value.has("focus") || u.value.has("hover")) && p();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function G(e) {
|
|
88
|
+
var t;
|
|
89
|
+
(t = o.value) != null && t.contains(e.target) || !u.value.has("click") || !T.value || (f = s.open.value ? !f && (h && u.value.has("hover") || d && u.value.has("focus")) : !0, l(f));
|
|
90
|
+
}
|
|
91
|
+
function J(e) {
|
|
92
|
+
var t;
|
|
93
|
+
(t = o.value) != null && t.contains(e.target) || !u.value.has("contextmenu") || !T.value || (e.preventDefault(), f = !0, l(!0));
|
|
94
|
+
}
|
|
95
|
+
function Q(e) {
|
|
96
|
+
var n;
|
|
97
|
+
if ((n = o.value) != null && n.contains(e.target) || !u.value.size || !T.value || e.defaultPrevented)
|
|
98
|
+
return;
|
|
99
|
+
const t = e.target;
|
|
100
|
+
if (!t.closest('input,textarea,select,[contenteditable="true"]')) {
|
|
101
|
+
if (e.key === "F10" && e.shiftKey && u.value.has("contextmenu")) {
|
|
102
|
+
e.preventDefault(), f = !0, l(!0);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
(r.triggerKeys ?? ["Enter", " "]).some(
|
|
106
|
+
(a) => a === e.key || a === "Space" && e.key === " "
|
|
107
|
+
) && (u.value.has("click") && t.closest("button,a[href],input") || (e.preventDefault(), f = !s.open.value, l(f)));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function P(e) {
|
|
111
|
+
return [...e.querySelectorAll(Z)].filter(
|
|
112
|
+
(t) => t.tabIndex >= 0 && !t.matches(":disabled") && !t.closest('[inert],[aria-hidden="true"]') && !!t.getClientRects().length && getComputedStyle(t).visibility !== "hidden"
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
function U(e) {
|
|
116
|
+
const t = L.value, n = P(document).filter((y) => {
|
|
117
|
+
var g;
|
|
118
|
+
return !((g = o.value) != null && g.contains(y));
|
|
119
|
+
}), a = n.findIndex((y) => y === t || (t == null ? void 0 : t.contains(y))), i = a < 0 ? void 0 : n[a + (e ? -1 : 1)];
|
|
120
|
+
return i == null || i.focus(), !!i;
|
|
121
|
+
}
|
|
122
|
+
async function V(e) {
|
|
123
|
+
var g, E;
|
|
124
|
+
if (e.key !== "Tab" || w !== "popover" || !s.open.value || !s.isTop())
|
|
125
|
+
return;
|
|
126
|
+
const t = e.target, n = (g = o.value) == null ? void 0 : g.contains(t), a = (E = D.value) == null ? void 0 : E.contains(t);
|
|
127
|
+
if (!n && !a) return;
|
|
128
|
+
const i = o.value ? P(o.value) : [];
|
|
129
|
+
if (a && !e.shiftKey && r.enterable !== !1 && i.length) {
|
|
130
|
+
e.preventDefault(), i[0].focus();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (n && t !== (e.shiftKey ? i[0] : i.at(-1)) && i.length)
|
|
134
|
+
return;
|
|
135
|
+
e.preventDefault(), await l(!1) && (n && e.shiftKey ? F() : U(e.shiftKey) || F());
|
|
136
|
+
}
|
|
137
|
+
function W() {
|
|
138
|
+
S();
|
|
139
|
+
const e = k(r.autoClose);
|
|
140
|
+
s.open.value && e && (b = setTimeout(() => {
|
|
141
|
+
b = void 0, l(!1);
|
|
142
|
+
}, e));
|
|
143
|
+
}
|
|
144
|
+
function X() {
|
|
145
|
+
K(), A();
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
clearDelays: K,
|
|
149
|
+
clearAuto: S,
|
|
150
|
+
resetReasons: A,
|
|
151
|
+
reset: X,
|
|
152
|
+
startAuto: W,
|
|
153
|
+
tab: V,
|
|
154
|
+
handlers: {
|
|
155
|
+
pointerEnter: M,
|
|
156
|
+
pointerLeave: O,
|
|
157
|
+
panelEnter: j,
|
|
158
|
+
panelLeave: z,
|
|
159
|
+
focusIn: H,
|
|
160
|
+
focusOut: N,
|
|
161
|
+
panelFocusIn: R,
|
|
162
|
+
panelFocusOut: B,
|
|
163
|
+
click: G,
|
|
164
|
+
contextmenu: J,
|
|
165
|
+
key: Q
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
export {
|
|
170
|
+
Z as popupFocusControls,
|
|
171
|
+
$ as usePopupSurfaceInteractions
|
|
172
|
+
};
|
|
@@ -1,72 +1,88 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
function
|
|
3
|
-
let
|
|
4
|
-
const h = () => {
|
|
1
|
+
import { shallowRef as H, watch as z, nextTick as l, onMounted as L, onActivated as N, onDeactivated as O, onBeforeUnmount as C } from "vue";
|
|
2
|
+
function j(v, i, T, E) {
|
|
3
|
+
let d = !0, o, t, f = -1;
|
|
4
|
+
const n = H({}), h = () => {
|
|
5
5
|
var e;
|
|
6
6
|
return ((e = v.value) == null ? void 0 : e.tagName) === "TEXTAREA" ? v.value : void 0;
|
|
7
7
|
};
|
|
8
|
-
function
|
|
9
|
-
a = void 0;
|
|
8
|
+
function R() {
|
|
10
9
|
const e = h();
|
|
11
|
-
if (!
|
|
12
|
-
if (!
|
|
13
|
-
|
|
10
|
+
if (!d || !e) return;
|
|
11
|
+
if (!i.autosize) {
|
|
12
|
+
n.value.height && (n.value = {});
|
|
14
13
|
return;
|
|
15
14
|
}
|
|
16
15
|
if (!e.getBoundingClientRect().width) return;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
e.style.height = "0px";
|
|
23
|
-
const b = e.scrollHeight + l, g = Math.min(
|
|
24
|
-
A * c + w + l,
|
|
25
|
-
Math.max(R * c + w + l, b)
|
|
16
|
+
const w = e.style.height, c = e.style.overflowY, s = typeof i.autosize == "object" ? i.autosize : {}, r = getComputedStyle(e), g = parseFloat(r.lineHeight) || parseFloat(r.fontSize) * 1.5 || 21, x = (parseFloat(r.paddingTop) || 0) + (parseFloat(r.paddingBottom) || 0), u = (parseFloat(r.borderTopWidth) || 0) + (parseFloat(r.borderBottomWidth) || 0), M = Number.isFinite(s.minRows) ? Math.max(1, Math.min(1e4, Math.floor(s.minRows))) : 1, B = Number.isFinite(s.maxRows) ? Math.max(M, Math.min(1e4, Math.floor(s.maxRows))) : 1 / 0;
|
|
17
|
+
e.style.height = "0px", e.style.overflowY = "hidden";
|
|
18
|
+
const p = e.scrollHeight + u, y = Math.min(
|
|
19
|
+
B * g + x + u,
|
|
20
|
+
Math.max(M * g + x + u, p)
|
|
26
21
|
);
|
|
27
|
-
e.style.height =
|
|
22
|
+
e.style.height = w, e.style.overflowY = c;
|
|
23
|
+
const A = (r.boxSizing === "border-box" ? y : Math.max(g, y - x - u)) + "px", S = p > y + 1 ? "auto" : "hidden";
|
|
24
|
+
(n.value.height !== A || n.value.overflowY !== S) && (n.value = { height: A, overflowY: S });
|
|
28
25
|
}
|
|
29
|
-
async function
|
|
30
|
-
await
|
|
26
|
+
async function Y() {
|
|
27
|
+
await l(), o !== void 0 && cancelAnimationFrame(o), o = void 0, R(), await l();
|
|
28
|
+
}
|
|
29
|
+
async function a() {
|
|
30
|
+
await l(), !(!d || !h() || o !== void 0) && (o = requestAnimationFrame(() => {
|
|
31
|
+
o = void 0, R();
|
|
32
|
+
}));
|
|
31
33
|
}
|
|
32
34
|
function m() {
|
|
33
|
-
|
|
35
|
+
t == null || t.disconnect(), t = void 0, f = -1, window.removeEventListener("resize", a);
|
|
34
36
|
const e = h();
|
|
35
|
-
if (!(!
|
|
36
|
-
if (!
|
|
37
|
-
|
|
37
|
+
if (!(!d || !e)) {
|
|
38
|
+
if (!i.autosize) {
|
|
39
|
+
n.value = {};
|
|
38
40
|
return;
|
|
39
41
|
}
|
|
40
|
-
window.addEventListener("resize",
|
|
41
|
-
var
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
}),
|
|
42
|
+
window.addEventListener("resize", a), typeof ResizeObserver < "u" && (t = new ResizeObserver((w) => {
|
|
43
|
+
var s;
|
|
44
|
+
const c = (s = w[0]) == null ? void 0 : s.contentRect.width;
|
|
45
|
+
c !== void 0 && Math.abs(c - f) > 0.5 && (f = c, a());
|
|
46
|
+
}), t.observe(e)), a();
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
+
function b() {
|
|
50
|
+
d = !0, l(m);
|
|
49
51
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
+
function F() {
|
|
53
|
+
d = !1, t == null || t.disconnect(), t = void 0, o !== void 0 && cancelAnimationFrame(o), o = void 0, window.removeEventListener("resize", a);
|
|
52
54
|
}
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
return z(
|
|
56
|
+
[
|
|
57
|
+
E,
|
|
58
|
+
T,
|
|
59
|
+
() => i.rows,
|
|
60
|
+
() => i.autosize,
|
|
61
|
+
() => i.inputStyle,
|
|
62
|
+
() => {
|
|
63
|
+
var e;
|
|
64
|
+
return (e = i.inputProps) == null ? void 0 : e.style;
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
a,
|
|
68
|
+
{
|
|
69
|
+
deep: !0
|
|
70
|
+
}
|
|
71
|
+
), z(v, () => {
|
|
72
|
+
n.value = {}, l(m);
|
|
73
|
+
}), z(
|
|
74
|
+
() => i.autosize,
|
|
59
75
|
() => {
|
|
60
|
-
|
|
76
|
+
l(m);
|
|
61
77
|
},
|
|
62
78
|
{ deep: !0 }
|
|
63
|
-
),
|
|
79
|
+
), L(() => {
|
|
64
80
|
var e;
|
|
65
|
-
|
|
66
|
-
|
|
81
|
+
b(), (e = document.fonts) == null || e.ready.then(() => {
|
|
82
|
+
d && a();
|
|
67
83
|
});
|
|
68
|
-
}),
|
|
84
|
+
}), N(b), O(F), C(F), { resize: Y, textareaStyle: n };
|
|
69
85
|
}
|
|
70
86
|
export {
|
|
71
|
-
|
|
87
|
+
j as useTextareaSize
|
|
72
88
|
};
|
package/dist/index.js
CHANGED
|
@@ -2,177 +2,191 @@
|
|
|
2
2
|
import { default as s } from "./components/HysAccordion/HysAccordion.vue.js";
|
|
3
3
|
import { default as m } from "./components/HysAlert/HysAlert.vue.js";
|
|
4
4
|
import { default as p } from "./components/HysAnimatedNumber/HysAnimatedNumber.vue.js";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as d } from "./components/HysAutocomplete/HysAutocomplete.vue.js";
|
|
6
6
|
import { default as y } from "./components/HysAvatar/HysAvatar.vue.js";
|
|
7
7
|
import { default as i } from "./components/HysAvatarGroup/HysAvatarGroup.vue.js";
|
|
8
8
|
import { default as c } from "./components/HysBadge/HysBadge.vue.js";
|
|
9
|
-
import { default as
|
|
9
|
+
import { default as b } from "./components/HysBreadcrumb/HysBreadcrumb.vue.js";
|
|
10
10
|
import { default as g } from "./components/HysButton/HysButton.vue.js";
|
|
11
|
-
import { default as
|
|
11
|
+
import { default as A } from "./components/HysButtonGroup/HysButtonGroup.vue.js";
|
|
12
12
|
import { default as h } from "./components/HysCalendar/HysCalendar.vue.js";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
13
|
+
import { default as P } from "./components/HysCalendarNavigation/HysCalendarNavigation.vue.js";
|
|
14
|
+
import { default as E } from "./components/HysCard/HysCard.vue.js";
|
|
15
15
|
import { default as G } from "./components/HysCascader/HysCascader.vue.js";
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
16
|
+
import { default as R } from "./components/HysChart/HysChart.vue.js";
|
|
17
|
+
import { default as z } from "./components/HysCheckbox/HysCheckbox.vue.js";
|
|
18
|
+
import { default as F } from "./components/HysCheckboxGroup/HysCheckboxGroup.vue.js";
|
|
19
19
|
import { default as L } from "./components/HysColorPicker/HysColorPicker.vue.js";
|
|
20
20
|
import { default as V } from "./components/HysColorTokenEditor/HysColorTokenEditor.vue.js";
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
21
|
+
import { default as J } from "./components/HysCommandPalette/HysCommandPalette.vue.js";
|
|
22
|
+
import { default as U } from "./components/HysCommentEditor/HysCommentEditor.vue.js";
|
|
23
23
|
import { default as Q } from "./components/HysContextMenu/HysContextMenu.vue.js";
|
|
24
24
|
import { default as X } from "./components/HysCronEditor/HysCronEditor.vue.js";
|
|
25
25
|
import { default as Z } from "./components/HysDataGrid/HysDataGrid.vue.js";
|
|
26
26
|
import { default as $ } from "./components/HysDatePicker/HysDatePicker.vue.js";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as oe } from "./components/HysDateRangePicker/HysDateRangePicker.vue.js";
|
|
28
28
|
import { default as re } from "./components/HysDiffViewer/HysDiffViewer.vue.js";
|
|
29
29
|
import { default as se } from "./components/HysDivider/HysDivider.vue.js";
|
|
30
30
|
import { default as me } from "./components/HysDrawer/HysDrawer.vue.js";
|
|
31
31
|
import { default as pe } from "./components/HysEmpty/HysEmpty.vue.js";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as de } from "./components/HysFileManager/HysFileManager.vue.js";
|
|
33
33
|
import { default as ye } from "./components/HysForm/HysForm.vue.js";
|
|
34
34
|
import { default as ie } from "./components/HysFormItem/HysFormItem.vue.js";
|
|
35
35
|
import { default as ce } from "./components/HysGantt/HysGantt.vue.js";
|
|
36
|
-
import { default as
|
|
36
|
+
import { default as be } from "./components/HysInput/HysInput.vue.js";
|
|
37
37
|
import { default as ge } from "./components/HysJsonEditor/HysJsonEditor.vue.js";
|
|
38
|
-
import { default as
|
|
38
|
+
import { default as Ae } from "./components/HysKanban/HysKanban.vue.js";
|
|
39
39
|
import { default as he } from "./components/HysMention/HysMention.vue.js";
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
40
|
+
import { default as Pe } from "./components/HysModal/HysModal.vue.js";
|
|
41
|
+
import { default as Ee } from "./components/HysNotificationCenter/HysNotificationCenter.vue.js";
|
|
42
42
|
import { default as Ge } from "./components/HysNumberInput/HysNumberInput.vue.js";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
43
|
+
import { default as Re } from "./components/HysOrgTree/HysOrgTree.vue.js";
|
|
44
|
+
import { default as ze } from "./components/HysPagination/HysPagination.vue.js";
|
|
45
|
+
import { default as Fe } from "./components/HysPermissionMatrix/HysPermissionMatrix.vue.js";
|
|
46
46
|
import { default as Le } from "./components/HysPopover/HysPopover.vue.js";
|
|
47
47
|
import { default as Ve } from "./components/HysProgress/HysProgress.vue.js";
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
48
|
+
import { default as Je } from "./components/HysRadio/HysRadio.vue.js";
|
|
49
|
+
import { default as Ue } from "./components/HysRadioGroup/HysRadioGroup.vue.js";
|
|
50
50
|
import { default as Qe } from "./components/HysRating/HysRating.vue.js";
|
|
51
51
|
import { default as Xe } from "./components/HysResizablePanel/HysResizablePanel.vue.js";
|
|
52
52
|
import { default as Ze } from "./components/HysRichTextEditor/HysRichTextEditor.vue.js";
|
|
53
53
|
import { default as $e } from "./components/HysSearch/HysSearch.vue.js";
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
54
|
+
import { default as oo } from "./components/HysSegmented/HysSegmented.vue.js";
|
|
55
|
+
import { default as ro } from "./components/HysSelect/HysSelect.vue.js";
|
|
56
|
+
import { default as so } from "./components/HysShortcutHelp/HysShortcutHelp.vue.js";
|
|
57
|
+
import { default as mo } from "./components/HysSkeleton/HysSkeleton.vue.js";
|
|
58
|
+
import { default as po } from "./components/HysSlider/HysSlider.vue.js";
|
|
59
|
+
import { default as xo } from "./components/HysSortableList/HysSortableList.vue.js";
|
|
60
|
+
import { default as Ho } from "./components/HysSplitPane/HysSplitPane.vue.js";
|
|
61
61
|
/* empty css */
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
62
|
+
import { default as no } from "./components/HysSteps/HysSteps.vue.js";
|
|
63
|
+
import { default as To } from "./components/HysSwitch/HysSwitch.vue.js";
|
|
64
|
+
import { default as Co } from "./components/HysTable/HysTable.vue.js";
|
|
65
|
+
import { default as Mo } from "./components/HysTabs/HysTabs.vue.js";
|
|
66
|
+
import { default as So } from "./components/HysTagInput/HysTagInput.vue.js";
|
|
67
|
+
import { default as No } from "./components/HysTextarea/HysTextarea.vue.js";
|
|
68
|
+
import { default as Do } from "./components/HysTimeline/HysTimeline.vue.js";
|
|
69
|
+
import { default as ko } from "./components/HysToast/HysToast.vue.js";
|
|
70
|
+
import { default as vo } from "./components/HysTooltip/HysTooltip.vue.js";
|
|
71
|
+
import { default as Io } from "./components/HysTour/HysTour.vue.js";
|
|
72
72
|
/* empty css */
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { provideHysConfig as
|
|
79
|
-
import { useHysFormItemContext as
|
|
80
|
-
import { createHysToast as
|
|
81
|
-
import { deserializeMentionDocument as
|
|
82
|
-
import { useMentionOptions as
|
|
83
|
-
import { useMentionList as
|
|
84
|
-
import { useMentionCaret as
|
|
85
|
-
import { useMentionModel as
|
|
86
|
-
import { createHysModal as
|
|
73
|
+
import { default as Bo } from "./components/HysTransfer/HysTransfer.vue.js";
|
|
74
|
+
import { default as wo } from "./components/HysTree/HysTree.vue.js";
|
|
75
|
+
import { default as Oo } from "./components/HysTreeSelect/HysTreeSelect.vue.js";
|
|
76
|
+
import { default as qo } from "./components/HysUpload/HysUpload.vue.js";
|
|
77
|
+
import { default as Ko } from "./components/HysVirtualTable/HysVirtualTable.vue.js";
|
|
78
|
+
import { provideHysConfig as jo } from "./config.js";
|
|
79
|
+
import { useHysFormItemContext as Wo } from "./composables/formContext.js";
|
|
80
|
+
import { configureHysToast as Yo, createHysToast as Zo, hysToast as _o, useHysToast as $o } from "./composables/useHysToast.js";
|
|
81
|
+
import { deserializeMentionDocument as ot, matchMention as tt, mentionTriggers as rt, normalizeMentionEntities as at, rebaseMentionEntities as st, serializeMentionDocument as ft } from "./composables/mentionDocument.js";
|
|
82
|
+
import { useMentionOptions as ut } from "./composables/useMentionOptions.js";
|
|
83
|
+
import { useMentionList as lt } from "./composables/useMentionList.js";
|
|
84
|
+
import { useMentionCaret as xt } from "./composables/useMentionCaret.js";
|
|
85
|
+
import { useMentionModel as Ht } from "./composables/useMentionModel.js";
|
|
86
|
+
import { createHysModal as nt, useHysModal as ct } from "./composables/useHysModal.js";
|
|
87
|
+
import { useHysAnimatedNumber as bt } from "./composables/useHysAnimatedNumber.js";
|
|
88
|
+
import { useHysNumberAnimationGroup as gt } from "./composables/useHysNumberAnimationGroup.js";
|
|
89
|
+
import { hysNumberAnimationCatalog as At, hysNumberAnimationCategories as St } from "./composables/numberAnimationCatalog.js";
|
|
90
|
+
import { parseHysNumberAnimation as Nt, stringifyHysNumberAnimation as Pt } from "./composables/numberAnimation.js";
|
|
91
|
+
import { createHysNumberSequence as Et } from "./composables/numberAnimationSequence.js";
|
|
87
92
|
export {
|
|
88
93
|
s as HysAccordion,
|
|
89
94
|
m as HysAlert,
|
|
90
95
|
p as HysAnimatedNumber,
|
|
91
|
-
|
|
96
|
+
d as HysAutocomplete,
|
|
92
97
|
y as HysAvatar,
|
|
93
98
|
i as HysAvatarGroup,
|
|
94
99
|
c as HysBadge,
|
|
95
|
-
|
|
100
|
+
b as HysBreadcrumb,
|
|
96
101
|
g as HysButton,
|
|
97
|
-
|
|
102
|
+
A as HysButtonGroup,
|
|
98
103
|
h as HysCalendar,
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
P as HysCalendarNavigation,
|
|
105
|
+
E as HysCard,
|
|
101
106
|
G as HysCascader,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
R as HysChart,
|
|
108
|
+
z as HysCheckbox,
|
|
109
|
+
F as HysCheckboxGroup,
|
|
105
110
|
L as HysColorPicker,
|
|
106
111
|
V as HysColorTokenEditor,
|
|
107
|
-
|
|
108
|
-
|
|
112
|
+
J as HysCommandPalette,
|
|
113
|
+
U as HysCommentEditor,
|
|
109
114
|
Q as HysContextMenu,
|
|
110
115
|
X as HysCronEditor,
|
|
111
116
|
Z as HysDataGrid,
|
|
112
117
|
$ as HysDatePicker,
|
|
113
|
-
|
|
118
|
+
oe as HysDateRangePicker,
|
|
114
119
|
re as HysDiffViewer,
|
|
115
120
|
se as HysDivider,
|
|
116
121
|
me as HysDrawer,
|
|
117
122
|
pe as HysEmpty,
|
|
118
|
-
|
|
123
|
+
de as HysFileManager,
|
|
119
124
|
ye as HysForm,
|
|
120
125
|
ie as HysFormItem,
|
|
121
126
|
ce as HysGantt,
|
|
122
|
-
|
|
127
|
+
be as HysInput,
|
|
123
128
|
ge as HysJsonEditor,
|
|
124
|
-
|
|
129
|
+
Ae as HysKanban,
|
|
125
130
|
he as HysMention,
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
Pe as HysModal,
|
|
132
|
+
Ee as HysNotificationCenter,
|
|
128
133
|
Ge as HysNumberInput,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
Re as HysOrgTree,
|
|
135
|
+
ze as HysPagination,
|
|
136
|
+
Fe as HysPermissionMatrix,
|
|
132
137
|
Le as HysPopover,
|
|
133
138
|
Ve as HysProgress,
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
Je as HysRadio,
|
|
140
|
+
Ue as HysRadioGroup,
|
|
136
141
|
Qe as HysRating,
|
|
137
142
|
Xe as HysResizablePanel,
|
|
138
143
|
Ze as HysRichTextEditor,
|
|
139
144
|
$e as HysSearch,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
145
|
+
oo as HysSegmented,
|
|
146
|
+
ro as HysSelect,
|
|
147
|
+
so as HysShortcutHelp,
|
|
148
|
+
mo as HysSkeleton,
|
|
149
|
+
po as HysSlider,
|
|
150
|
+
xo as HysSortableList,
|
|
151
|
+
Ho as HysSplitPane,
|
|
152
|
+
no as HysSteps,
|
|
153
|
+
To as HysSwitch,
|
|
154
|
+
Co as HysTable,
|
|
155
|
+
Mo as HysTabs,
|
|
156
|
+
So as HysTagInput,
|
|
157
|
+
No as HysTextarea,
|
|
158
|
+
Do as HysTimeline,
|
|
159
|
+
ko as HysToast,
|
|
160
|
+
vo as HysTooltip,
|
|
161
|
+
Io as HysTour,
|
|
162
|
+
Bo as HysTransfer,
|
|
163
|
+
wo as HysTree,
|
|
164
|
+
Oo as HysTreeSelect,
|
|
165
|
+
qo as HysUpload,
|
|
166
|
+
Ko as HysVirtualTable,
|
|
167
|
+
Yo as configureHysToast,
|
|
168
|
+
nt as createHysModal,
|
|
169
|
+
Et as createHysNumberSequence,
|
|
170
|
+
Zo as createHysToast,
|
|
171
|
+
ot as deserializeMentionDocument,
|
|
172
|
+
At as hysNumberAnimationCatalog,
|
|
173
|
+
St as hysNumberAnimationCategories,
|
|
174
|
+
_o as hysToast,
|
|
175
|
+
tt as matchMention,
|
|
176
|
+
rt as mentionTriggers,
|
|
177
|
+
at as normalizeMentionEntities,
|
|
178
|
+
Nt as parseHysNumberAnimation,
|
|
179
|
+
jo as provideHysConfig,
|
|
180
|
+
st as rebaseMentionEntities,
|
|
181
|
+
ft as serializeMentionDocument,
|
|
182
|
+
Pt as stringifyHysNumberAnimation,
|
|
183
|
+
bt as useHysAnimatedNumber,
|
|
184
|
+
Wo as useHysFormItemContext,
|
|
185
|
+
ct as useHysModal,
|
|
186
|
+
gt as useHysNumberAnimationGroup,
|
|
187
|
+
$o as useHysToast,
|
|
188
|
+
xt as useMentionCaret,
|
|
189
|
+
lt as useMentionList,
|
|
190
|
+
Ht as useMentionModel,
|
|
191
|
+
ut as useMentionOptions
|
|
178
192
|
};
|