vlite3 1.5.42 → 1.5.44
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/components/CategoryManager/CategoryManager2.vue.js +3 -3
- package/components/Form/{AccordionView2.vue.js → AccordionView.vue.js} +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
- package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +3 -3
- package/directives/ScrollReveal/ScrollRevealPager.d.ts +3 -3
- package/directives/ScrollReveal/ScrollRevealPager.js +130 -98
- package/docs/ScrollRevealReleaseAudit.md +94 -0
- package/docs/components/scroll-reveal.md +15 -11
- package/docs-manifest.json +4 -4
- package/package.json +1 -1
- /package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar2.vue.js → RichTextToolbar.vue.js} +0 -0
|
@@ -22,11 +22,11 @@ import "@vueuse/core";
|
|
|
22
22
|
/* empty css */
|
|
23
23
|
import qe from "../IconPicker.vue.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
/* empty css
|
|
25
|
+
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
|
-
/* empty css
|
|
29
|
-
/* empty css
|
|
28
|
+
/* empty css */
|
|
29
|
+
/* empty css */
|
|
30
30
|
import "../../core/config.js";
|
|
31
31
|
/* empty css */
|
|
32
32
|
/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as d, openBlock as n, createElementBlock as R, createElementVNode as x, createBlock as s, withCtx as k, createTextVNode as B, toDisplayString as I, createCommentVNode as y, unref as l } from "vue";
|
|
2
2
|
import T from "./TableView.vue.js";
|
|
3
|
-
import C from "./
|
|
3
|
+
import C from "./AccordionView.vue.js";
|
|
4
4
|
import U from "../Label.vue.js";
|
|
5
5
|
import z from "../Button.vue.js";
|
|
6
6
|
import { useCustomFieldRows as N } from "./composables/useCustomFieldRows.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import se from "./
|
|
4
|
-
/* empty css
|
|
5
|
-
import de from "./
|
|
6
|
-
/* empty css
|
|
3
|
+
import se from "./RichTextToolbar.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import de from "./RichTextLinkPopover.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
|
|
8
8
|
import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
|
|
9
9
|
const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
|
|
@@ -23,11 +23,11 @@ import "iconify-icon-picker/style.css";
|
|
|
23
23
|
import "../../icons/IconRegistry.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
|
-
/* empty css
|
|
26
|
+
/* empty css */
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
29
|
-
/* empty css
|
|
30
|
-
/* empty css
|
|
29
|
+
/* empty css */
|
|
30
|
+
/* empty css */
|
|
31
31
|
import "../../core/config.js";
|
|
32
32
|
/* empty css */
|
|
33
33
|
/* empty css */
|
|
@@ -5,10 +5,8 @@ export declare class ScrollRevealPager {
|
|
|
5
5
|
private desktop;
|
|
6
6
|
private listeners?;
|
|
7
7
|
private movement?;
|
|
8
|
-
private
|
|
9
|
-
private direction;
|
|
8
|
+
private wheel?;
|
|
10
9
|
private distance;
|
|
11
|
-
private wheelHoldUntil;
|
|
12
10
|
private readingElement?;
|
|
13
11
|
private readingEdge?;
|
|
14
12
|
private context;
|
|
@@ -18,6 +16,8 @@ export declare class ScrollRevealPager {
|
|
|
18
16
|
private configure;
|
|
19
17
|
reset: () => void;
|
|
20
18
|
private cancel;
|
|
19
|
+
private animate;
|
|
20
|
+
private wheelGesture;
|
|
21
21
|
private geometry;
|
|
22
22
|
private measureSection;
|
|
23
23
|
private measure;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const v = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", E = [
|
|
2
2
|
"input",
|
|
3
3
|
"textarea",
|
|
4
4
|
"select",
|
|
@@ -38,17 +38,15 @@ const p = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
|
|
|
38
38
|
"searchbox",
|
|
39
39
|
"scrollbar",
|
|
40
40
|
"application"
|
|
41
|
-
].map((
|
|
42
|
-
].join(", "),
|
|
43
|
-
class
|
|
41
|
+
].map((p) => `[role~="${p}"]`)
|
|
42
|
+
].join(", "), r = 2, w = 12, M = 220;
|
|
43
|
+
class y {
|
|
44
44
|
sections = /* @__PURE__ */ new Set();
|
|
45
|
-
desktop = window.matchMedia(
|
|
45
|
+
desktop = window.matchMedia(v);
|
|
46
46
|
listeners;
|
|
47
47
|
movement;
|
|
48
|
-
|
|
49
|
-
direction = 0;
|
|
48
|
+
wheel;
|
|
50
49
|
distance = 0;
|
|
51
|
-
wheelHoldUntil = 0;
|
|
52
50
|
readingElement;
|
|
53
51
|
readingEdge;
|
|
54
52
|
context;
|
|
@@ -66,15 +64,40 @@ class x {
|
|
|
66
64
|
const t = this.sections.size >= 2 && this.desktop.matches;
|
|
67
65
|
if (!!this.listeners === t || (this.listeners?.abort(), this.listeners = void 0, !t)) return;
|
|
68
66
|
this.listeners = new AbortController();
|
|
69
|
-
const
|
|
70
|
-
|
|
67
|
+
const i = this.context.documentRoot ? window : this.context.container, s = { capture: !0, signal: this.listeners.signal };
|
|
68
|
+
i.addEventListener("wheel", this.onWheel, { ...s, passive: !1 }), i.addEventListener("keydown", this.onKeydown, s);
|
|
71
69
|
};
|
|
72
70
|
reset = () => {
|
|
73
|
-
this.cancel(), this.
|
|
71
|
+
this.cancel(), this.wheel = void 0, this.distance = 0, this.readingElement = void 0, this.readingEdge = void 0;
|
|
74
72
|
};
|
|
75
73
|
cancel() {
|
|
76
74
|
this.movement && (cancelAnimationFrame(this.movement.frame), this.movement = void 0);
|
|
77
75
|
}
|
|
76
|
+
animate(t, i, s) {
|
|
77
|
+
const n = window.location.href, e = (h) => {
|
|
78
|
+
if (this.movement === t) {
|
|
79
|
+
if (document.hidden || window.location.href !== n || i && !i.isConnected) {
|
|
80
|
+
this.reset();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
s(h) && (t.frame = requestAnimationFrame(e));
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
t.frame = requestAnimationFrame(e);
|
|
87
|
+
}
|
|
88
|
+
wheelGesture(t, i) {
|
|
89
|
+
const s = Math.sign(t), n = Math.abs(t), e = this.wheel;
|
|
90
|
+
let h = 0, o = !e || s !== e.direction || i - e.lastAt >= M;
|
|
91
|
+
return e && !o && (e.decayTicks = n <= e.magnitude && n < e.peak ? e.decayTicks + 1 : 0, e.decayTicks >= 3 && n <= e.peak / 2 && (e.floor = Math.min(e.floor ?? n, n)), e.floor !== void 0 && (e.floor = Math.min(e.floor, n), e.renewed = n > e.magnitude && n >= e.floor * 2 ? e.renewed + n - e.floor : 0, o = e.renewed >= w, o && (h = s * Math.max(0, e.renewed - n))), e.lastAt = i, e.magnitude = n, e.peak = Math.max(e.peak, n)), !e || o ? (this.distance = h, this.readingEdge = void 0, this.wheel = {
|
|
92
|
+
lastAt: i,
|
|
93
|
+
direction: s,
|
|
94
|
+
magnitude: n,
|
|
95
|
+
peak: n,
|
|
96
|
+
decayTicks: 0,
|
|
97
|
+
renewed: 0,
|
|
98
|
+
consumed: !1
|
|
99
|
+
}, this.wheel) : e;
|
|
100
|
+
}
|
|
78
101
|
geometry() {
|
|
79
102
|
const t = this.context.viewport();
|
|
80
103
|
return {
|
|
@@ -85,65 +108,82 @@ class x {
|
|
|
85
108
|
limit: this.context.limit()
|
|
86
109
|
};
|
|
87
110
|
}
|
|
88
|
-
measureSection(t,
|
|
111
|
+
measureSection(t, i = this.geometry()) {
|
|
89
112
|
if (!t.isConnected) return;
|
|
90
|
-
const
|
|
91
|
-
if (!
|
|
92
|
-
const
|
|
93
|
-
return { element: t, start:
|
|
113
|
+
const s = t.getBoundingClientRect();
|
|
114
|
+
if (!s.height || !s.width) return;
|
|
115
|
+
const n = (h) => Math.max(0, Math.min(h, i.limit)), e = n(s.top - i.top + i.from - i.padding);
|
|
116
|
+
return { element: t, start: e, end: n(Math.max(e, s.bottom - i.bottom + i.from)) };
|
|
94
117
|
}
|
|
95
118
|
measure() {
|
|
96
119
|
const t = this.geometry();
|
|
97
|
-
return Array.from(this.sections).map((
|
|
120
|
+
return Array.from(this.sections).map((i) => this.measureSection(i, t)).filter((i) => !!i).sort((i, s) => i.start - s.start);
|
|
98
121
|
}
|
|
99
122
|
hasPagingStops() {
|
|
100
123
|
const t = this.geometry();
|
|
101
|
-
if (t.limit <=
|
|
102
|
-
let
|
|
103
|
-
for (const
|
|
104
|
-
if (this.measureSection(
|
|
124
|
+
if (t.limit <= r) return !1;
|
|
125
|
+
let i = 0;
|
|
126
|
+
for (const s of this.sections)
|
|
127
|
+
if (this.measureSection(s, t) && ++i === 2) return !0;
|
|
105
128
|
return !1;
|
|
106
129
|
}
|
|
107
|
-
readWheel(t,
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
-
this.readingElement = t.element, this.
|
|
111
|
-
const
|
|
112
|
-
|
|
130
|
+
readWheel(t, i, s, n) {
|
|
131
|
+
const e = this.context.position();
|
|
132
|
+
if (e < t.start - r || e > t.end + r || (i > 0 ? e >= t.end - r : e <= t.start + r)) return !1;
|
|
133
|
+
this.readingElement = t.element, this.distance = 0;
|
|
134
|
+
const h = this.readingStep(), o = this.movement?.reading, m = (o && this.movement?.direction === i ? o.position : e) + Math.max(-h, Math.min(s, h)), d = m >= t.end || m <= t.start;
|
|
135
|
+
n.preventDefault();
|
|
136
|
+
const c = Math.max(t.start, Math.min(m, t.end));
|
|
137
|
+
if (this.context.reducedMotion.matches)
|
|
138
|
+
this.cancel(), this.context.write(c);
|
|
139
|
+
else if (o && this.movement)
|
|
140
|
+
o.position = c, this.movement.direction = i;
|
|
141
|
+
else {
|
|
142
|
+
this.cancel();
|
|
143
|
+
const l = { position: c }, g = { frame: 0, direction: i, reading: l };
|
|
144
|
+
this.movement = g;
|
|
145
|
+
let x = performance.now(), u = e;
|
|
146
|
+
this.animate(g, t.element, (b) => {
|
|
147
|
+
u += (l.position - u) * (1 - Math.exp(-(b - x) / 65)), x = b;
|
|
148
|
+
const f = Math.abs(l.position - u) < 0.1;
|
|
149
|
+
return this.context.write(f ? l.position : u), f && (this.movement = void 0), !f;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
return d && (this.readingEdge = { element: t.element, direction: i }, this.wheel && (this.wheel.consumed = !0)), !0;
|
|
113
153
|
}
|
|
114
154
|
/** Child scroll owners win, including at a contained overscroll boundary. */
|
|
115
|
-
nestedOwns(t,
|
|
116
|
-
for (const
|
|
117
|
-
if (
|
|
118
|
-
if (!(
|
|
119
|
-
if (t.type === "wheel" &&
|
|
120
|
-
const
|
|
121
|
-
if (!/^(auto|scroll|overlay)$/.test(
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
155
|
+
nestedOwns(t, i) {
|
|
156
|
+
for (const s of t.composedPath()) {
|
|
157
|
+
if (s === this.context.container || s === document.body || s === document.documentElement) break;
|
|
158
|
+
if (!(s instanceof HTMLElement)) continue;
|
|
159
|
+
if (t.type === "wheel" && s.getAttribute("data-vlite-wheel-directions")?.split(" ").includes(i > 0 ? "down" : "up")) return !0;
|
|
160
|
+
const n = getComputedStyle(s);
|
|
161
|
+
if (!/^(auto|scroll|overlay)$/.test(n.overflowY)) continue;
|
|
162
|
+
const e = i > 0 ? s.scrollTop + s.clientHeight < s.scrollHeight - 1 : s.scrollTop > 0;
|
|
163
|
+
if (s.scrollHeight > s.clientHeight && e || /^(contain|none)$/.test(n.overscrollBehaviorY)) return !0;
|
|
124
164
|
}
|
|
125
165
|
return !1;
|
|
126
166
|
}
|
|
127
167
|
enabled() {
|
|
128
168
|
if (document.hidden || !this.desktop.matches) return !1;
|
|
129
|
-
const { container: t, documentRoot:
|
|
130
|
-
return ![t, ...
|
|
169
|
+
const { container: t, documentRoot: i } = this.context;
|
|
170
|
+
return ![t, ...i ? [document.body] : []].some((s) => /^(hidden|clip)$/.test(getComputedStyle(s).overflowY));
|
|
131
171
|
}
|
|
132
172
|
readingStep() {
|
|
133
173
|
const t = this.context.viewport();
|
|
134
174
|
return Math.max(48, t.bottom - t.top - this.context.padding() - 48);
|
|
135
175
|
}
|
|
136
|
-
destination(t,
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
for (const
|
|
140
|
-
if (
|
|
141
|
-
|
|
176
|
+
destination(t, i, s) {
|
|
177
|
+
const n = this.context.position();
|
|
178
|
+
let e, h, o;
|
|
179
|
+
for (const l of s)
|
|
180
|
+
if (l.start <= n + r && (e = l), l.start < n - r && (h = l), l.start > n + r) {
|
|
181
|
+
o = l;
|
|
142
182
|
break;
|
|
143
183
|
}
|
|
144
|
-
const
|
|
184
|
+
const a = e && e.end > e.start + r && n <= e.end + r, m = this.readingStep();
|
|
145
185
|
let d, c;
|
|
146
|
-
if (
|
|
186
|
+
if (i && a && (t > 0 ? n < e.end - r : n > e.start + r) ? (c = e, d = Math.min(e.end, Math.max(e.start, n + t * m))) : (c = t > 0 ? o : h, d = c ? t > 0 ? c.start : c.end : t > 0 ? this.context.limit() : 0), !(Math.abs(d - n) <= r))
|
|
147
187
|
return {
|
|
148
188
|
position: d,
|
|
149
189
|
element: c?.element,
|
|
@@ -151,38 +191,35 @@ class x {
|
|
|
151
191
|
atEnd: !c && t > 0
|
|
152
192
|
};
|
|
153
193
|
}
|
|
154
|
-
move(t,
|
|
194
|
+
move(t, i) {
|
|
155
195
|
this.cancel(), this.readingElement = void 0;
|
|
156
|
-
const
|
|
157
|
-
this.movement =
|
|
158
|
-
const
|
|
159
|
-
if (this.movement !==
|
|
160
|
-
const
|
|
161
|
-
(!t.element ||
|
|
196
|
+
const s = this.context.position(), n = { frame: 0, direction: i };
|
|
197
|
+
this.movement = n;
|
|
198
|
+
const e = () => {
|
|
199
|
+
if (this.movement !== n) return;
|
|
200
|
+
const o = t.element && this.sections.has(t.element) ? this.measureSection(t.element) : void 0, a = o ? o.start + (o.end - o.start) * t.progress : t.atEnd ? this.context.limit() : Math.min(t.position, this.context.limit());
|
|
201
|
+
(!t.element || o) && Math.abs(a - this.context.position()) > r && this.context.write(a), this.movement = void 0, this.distance = 0, o && o.end > o.start + r && (this.readingElement = o.element);
|
|
162
202
|
};
|
|
163
203
|
if (this.context.reducedMotion.matches) {
|
|
164
|
-
this.context.write(t.position),
|
|
204
|
+
this.context.write(t.position), e();
|
|
165
205
|
return;
|
|
166
206
|
}
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
const d = Math.min(1, (r - a) / 850);
|
|
174
|
-
this.context.write(i + (t.position - i) * (1 - (1 - d) ** 3)), d < 1 ? s.frame = requestAnimationFrame(h) : n();
|
|
175
|
-
};
|
|
176
|
-
s.frame = requestAnimationFrame(h);
|
|
207
|
+
const h = performance.now();
|
|
208
|
+
this.animate(n, t.element, (o) => {
|
|
209
|
+
const a = Math.min(1, (o - h) / 850);
|
|
210
|
+
return this.context.write(s + (t.position - s) * (1 - (1 - a) ** 3)), a === 1 && e(), a < 1;
|
|
211
|
+
});
|
|
177
212
|
}
|
|
178
213
|
onWheel = (t) => {
|
|
179
214
|
if (this.context.syncNavigation(), !this.enabled() || !t.cancelable || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey || t.shiftKey || !Number.isFinite(t.deltaY) || !Number.isFinite(t.deltaX) || !t.deltaY || Math.abs(t.deltaX) > Math.abs(t.deltaY)) {
|
|
180
215
|
this.movement && this.reset();
|
|
181
216
|
return;
|
|
182
217
|
}
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
185
|
-
|
|
218
|
+
const i = Math.sign(t.deltaY), s = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? Math.max(1, this.context.viewport().bottom - this.context.viewport().top - this.context.padding()) : 1, n = t.deltaY * s;
|
|
219
|
+
if (!Number.isFinite(n)) return;
|
|
220
|
+
const e = this.wheelGesture(n, performance.now());
|
|
221
|
+
if (this.nestedOwns(t, i)) {
|
|
222
|
+
this.cancel(), e.consumed = !0, this.distance = 0;
|
|
186
223
|
return;
|
|
187
224
|
}
|
|
188
225
|
if (!this.hasPagingStops()) {
|
|
@@ -190,65 +227,60 @@ class x {
|
|
|
190
227
|
return;
|
|
191
228
|
}
|
|
192
229
|
if (this.readingEdge) {
|
|
193
|
-
const a = this.readingEdge,
|
|
194
|
-
|
|
195
|
-
t.preventDefault();
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
this.readingEdge = void 0;
|
|
230
|
+
const a = this.readingEdge, m = this.measureSection(a.element), d = this.movement?.reading?.position ?? this.context.position();
|
|
231
|
+
m && (a.direction > 0 ? Math.abs(d - m.end) <= r : Math.abs(d - m.start) <= r) || (e.consumed = !1, this.readingEdge = void 0);
|
|
199
232
|
}
|
|
200
|
-
|
|
201
|
-
if (e === this.direction && i < this.wheelHoldUntil) {
|
|
233
|
+
if (e.consumed) {
|
|
202
234
|
t.preventDefault();
|
|
203
235
|
return;
|
|
204
236
|
}
|
|
205
|
-
if (this.
|
|
206
|
-
t.preventDefault(),
|
|
237
|
+
if (this.movement?.direction === i && !this.movement.reading) {
|
|
238
|
+
t.preventDefault(), e.consumed = !0, this.distance = 0;
|
|
207
239
|
return;
|
|
208
240
|
}
|
|
209
|
-
if (!this.movement && this.readingElement) {
|
|
241
|
+
if ((!this.movement || this.movement.reading) && this.readingElement) {
|
|
210
242
|
const a = this.measureSection(this.readingElement);
|
|
211
|
-
if (a && this.readWheel(a,
|
|
243
|
+
if (a && this.readWheel(a, i, n, t)) return;
|
|
212
244
|
this.readingElement = void 0;
|
|
213
245
|
}
|
|
214
|
-
if (Math.sign(this.distance) !==
|
|
246
|
+
if (Math.sign(this.distance) !== i && (this.distance = 0), this.distance += n, Math.abs(this.distance) < w) {
|
|
215
247
|
t.preventDefault();
|
|
216
248
|
return;
|
|
217
249
|
}
|
|
218
|
-
const
|
|
219
|
-
if (
|
|
250
|
+
const h = this.measure();
|
|
251
|
+
if (h.length < 2) return;
|
|
220
252
|
if (!this.movement) {
|
|
221
|
-
const a = this.context.position(),
|
|
222
|
-
if (
|
|
253
|
+
const a = this.context.position(), m = h.find((d) => a >= d.start - r && a <= d.end + r && (i > 0 ? a < d.end - r : a > d.start + r));
|
|
254
|
+
if (m && this.readWheel(m, i, this.distance, t)) return;
|
|
223
255
|
}
|
|
224
|
-
const
|
|
225
|
-
if (!
|
|
256
|
+
const o = this.destination(i, !1, h);
|
|
257
|
+
if (!o) {
|
|
226
258
|
this.distance = 0;
|
|
227
259
|
return;
|
|
228
260
|
}
|
|
229
|
-
t.preventDefault(), this.
|
|
261
|
+
t.preventDefault(), this.distance = 0, e.consumed = !0, this.move(o, i);
|
|
230
262
|
};
|
|
231
263
|
onKeydown = (t) => {
|
|
232
264
|
if (this.context.syncNavigation(), !this.enabled() || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey) return;
|
|
233
|
-
const
|
|
234
|
-
if (!
|
|
265
|
+
const i = t.key === "PageDown" || t.key === " " && !t.shiftKey ? 1 : t.key === "PageUp" || t.key === " " && t.shiftKey ? -1 : 0;
|
|
266
|
+
if (!i) {
|
|
235
267
|
["ArrowUp", "ArrowDown", "Home", "End", "Tab", "Escape"].includes(t.key) && this.reset();
|
|
236
268
|
return;
|
|
237
269
|
}
|
|
238
|
-
for (const
|
|
239
|
-
if (
|
|
240
|
-
if (
|
|
270
|
+
for (const e of t.composedPath()) {
|
|
271
|
+
if (e === this.context.container) break;
|
|
272
|
+
if (e instanceof Element && (e.matches(E) || e.hasAttribute("tabindex") && Number(e.getAttribute("tabindex")) >= 0)) return;
|
|
241
273
|
}
|
|
242
|
-
if (this.nestedOwns(t,
|
|
243
|
-
const
|
|
244
|
-
if (
|
|
245
|
-
const
|
|
246
|
-
|
|
274
|
+
if (this.nestedOwns(t, i) || this.context.limit() <= r) return;
|
|
275
|
+
const s = this.measure();
|
|
276
|
+
if (s.length < 2) return;
|
|
277
|
+
const n = this.destination(i, !0, s);
|
|
278
|
+
n && (t.preventDefault(), !(t.repeat || this.movement?.direction === i && !this.movement.reading) && (this.reset(), this.move(n, i)));
|
|
247
279
|
};
|
|
248
280
|
destroy() {
|
|
249
281
|
this.reset(), this.listeners?.abort(), this.desktop.removeEventListener("change", this.configure), this.sections.clear();
|
|
250
282
|
}
|
|
251
283
|
}
|
|
252
284
|
export {
|
|
253
|
-
|
|
285
|
+
y as ScrollRevealPager
|
|
254
286
|
};
|
|
@@ -118,3 +118,97 @@ the existing native fallback; JavaScript cannot cancel a non-cancelable event.
|
|
|
118
118
|
Gesture separation is based on wheel-event idle, not a hardware momentum flag.
|
|
119
119
|
This supersedes earlier descriptions of native middle-of-section reading and
|
|
120
120
|
bounded momentum release specifically at tall-section reading edges.
|
|
121
|
+
|
|
122
|
+
## Wheel re-arming correction — 2026-11-02
|
|
123
|
+
|
|
124
|
+
Source review found two different release policies: animation completion started
|
|
125
|
+
a new 220ms hold, while a tall-section edge required a full 220ms wheel-event gap.
|
|
126
|
+
Every momentum tick updated the timestamp used by the edge's idle check. A new
|
|
127
|
+
same-direction impulse embedded in that tail could therefore remain trapped.
|
|
128
|
+
Conversely, the short-section deadline eventually let an uninterrupted tail page
|
|
129
|
+
again. There is no pointer-move listener in the pager or its coordinator; this
|
|
130
|
+
review does not establish why pointer movement changed the observed browser input.
|
|
131
|
+
|
|
132
|
+
The pager now owns one wheel-gesture record with a consumed flag for section
|
|
133
|
+
movement, nested ownership and tall-section boundaries. Completion clears active
|
|
134
|
+
movement and buffered distance without starting a cooldown. Idle remains measured
|
|
135
|
+
from the last eligible wheel event, including time during animation. Reversal or
|
|
136
|
+
idle starts a fresh gesture. Without idle, three non-increasing samples reaching
|
|
137
|
+
half the gesture peak establish a tail baseline; renewed accelerating input at
|
|
138
|
+
least twice that baseline accumulates 12 normalized pixels of excess intent to
|
|
139
|
+
start a fresh gesture. The earned intent is reused by the existing paging threshold.
|
|
140
|
+
Constant/decreasing tails and elevated plateaus do not accumulate new intent.
|
|
141
|
+
|
|
142
|
+
Source audit:
|
|
143
|
+
|
|
144
|
+
- Correctness: fresh gesture detection precedes consumption checks; both tall
|
|
145
|
+
boundaries and short stops share it. In-flight same-direction input is consumed
|
|
146
|
+
without a queue. Reverse input still uses the existing cancellation path.
|
|
147
|
+
- Lifecycle: reset drops the entire gesture record, reading state and animation.
|
|
148
|
+
Existing navigation, visibility, resize, registration and teardown resets remain
|
|
149
|
+
connected. No timer, pointer listener or asynchronous unlock was added.
|
|
150
|
+
- Content and accessibility: progressive reading, live range-growth recovery,
|
|
151
|
+
keyboard navigation, focus ownership, reduced motion and native input exclusions
|
|
152
|
+
retain their existing paths. Nested scrollers retain first refusal.
|
|
153
|
+
- Performance: gesture recognition uses constant space and constant work per tick;
|
|
154
|
+
no sample history, new geometry scan or additional animation loop was introduced.
|
|
155
|
+
This is per-container client state, with no server, persistence or cross-user data.
|
|
156
|
+
- Validation: finite wheel input is retained, with an additional finite check after
|
|
157
|
+
line/page normalization. No new external input or security surface was added.
|
|
158
|
+
|
|
159
|
+
Regression sources now cover immediate renewed pressure after completion, idle
|
|
160
|
+
that elapsed during animation, gentle acceleration, extended tails/plateaus,
|
|
161
|
+
variable uninterrupted streams, consumed input during movement, reduced motion,
|
|
162
|
+
and immediate renewed input at both tall-section edges. Prior expectations that
|
|
163
|
+
continuous input must eventually advance were replaced with one-gesture protection.
|
|
164
|
+
|
|
165
|
+
Validation for this correction is source review and `git diff --check` only.
|
|
166
|
+
Tests were authored but not executed. No build, typecheck, lint, codegen, dev server
|
|
167
|
+
or computer use was run, following the repository's explicit-approval rule. Earlier
|
|
168
|
+
test-pass statements in this audit describe earlier revisions, not this correction.
|
|
169
|
+
Gesture classification remains a delta-based heuristic: indistinguishable wheel
|
|
170
|
+
streams cannot be separated by physical intent, and a strong irregular momentum
|
|
171
|
+
spike can resemble renewed input. Device/browser trackpad acceptance remains open.
|
|
172
|
+
|
|
173
|
+
## Smooth tall-section reading — 2026-11-02
|
|
174
|
+
|
|
175
|
+
The reading path wrote each accepted wheel delta directly to the scroll position,
|
|
176
|
+
including viewport-sized increments. This differed from animated section entry
|
|
177
|
+
and explains the source-level jump while revealing a tall section's lower content.
|
|
178
|
+
|
|
179
|
+
Reading input now extends one bounded target, followed on animation frames with
|
|
180
|
+
time-based smoothing. Repeated ticks update that target without restarting an
|
|
181
|
+
easing curve. Reversal discards pending forward distance and targets from the
|
|
182
|
+
visible position. Reading completion performs no destination measurement, heading
|
|
183
|
+
alignment or progress-based correction. Reduced-motion reading remains immediate.
|
|
184
|
+
|
|
185
|
+
Final source audit:
|
|
186
|
+
|
|
187
|
+
- Ownership/lifecycle: reading reuses the pager's single movement slot and cancel
|
|
188
|
+
path. The extracted frame scheduler shares the existing navigation, visibility
|
|
189
|
+
and detached-element guards with section transitions. No second scroll engine,
|
|
190
|
+
queue, timer or listener was added. Keyboard navigation can interrupt reading.
|
|
191
|
+
- Boundaries/concurrency: accumulated targets remain inside the measured reading
|
|
192
|
+
range. Edge consumption checks the pending target while content arrives, so
|
|
193
|
+
momentum cannot invalidate the guard merely because rendering is still moving.
|
|
194
|
+
Existing gesture classification, idle timing and momentum rules are unchanged.
|
|
195
|
+
- Regression: short-section destination selection, 850ms easing, completion
|
|
196
|
+
alignment and reduced-motion behavior retain their existing logic. Tall-section
|
|
197
|
+
entry still uses that path; only internal wheel reading gains smoothing.
|
|
198
|
+
- Performance: constant animation state and one pending frame per container.
|
|
199
|
+
Reading frames do not scan stops or remeasure geometry. Fractional animation
|
|
200
|
+
progress is retained so rounded scroll positions cannot stall frame cleanup.
|
|
201
|
+
- Accessibility/data: keyboard ownership and native input exclusions remain;
|
|
202
|
+
reduced motion bypasses reading animation. No persistence, server work or new
|
|
203
|
+
external inputs are involved.
|
|
204
|
+
|
|
205
|
+
Regression sources cover monotonic intermediate frames, coalesced rapid input,
|
|
206
|
+
reversal, no completion alignment after content growth, rounded positions,
|
|
207
|
+
keyboard takeover, boundary momentum and cancellation/reset/teardown. Existing
|
|
208
|
+
tall-reading expectations now allow animation to finish before checking position.
|
|
209
|
+
|
|
210
|
+
Validation: source review and `git diff --check` only. Tests were updated but not
|
|
211
|
+
executed; no build, typecheck, lint, codegen, dev server or computer use was run,
|
|
212
|
+
following the explicit-approval rule. Physical trackpad feel, rendering and device
|
|
213
|
+
performance remain unverified. This supersedes the earlier immediate reading
|
|
214
|
+
write behavior without changing the wheel re-arming policy.
|
|
@@ -106,21 +106,25 @@ scrolling is native. Touch input is always native; no touchmove listener is used
|
|
|
106
106
|
- Deliberate vertical wheel intent accumulates before advancing to the next stop.
|
|
107
107
|
Short sections align their top after the scroller's effective `scroll-padding-top`.
|
|
108
108
|
- Tall sections retain progressive reading between their start and end. The pager
|
|
109
|
-
consumes accepted vertical wheel ticks and
|
|
110
|
-
with at most one viewport-sized
|
|
109
|
+
consumes accepted vertical wheel ticks and extends a smoothly followed target
|
|
110
|
+
within that range, with at most one viewport-sized increment per tick (48px
|
|
111
|
+
overlap). Repeated input updates the same movement; reversal starts from the
|
|
112
|
+
visible position. Reading completion does not realign the section. Reduced
|
|
113
|
+
motion applies the bounded reading position immediately. Downward entry aligns the
|
|
111
114
|
top; upward entry aligns the bottom, then reads toward the top.
|
|
112
115
|
At a reading boundary, same-direction momentum remains held until a fresh
|
|
113
|
-
gesture
|
|
116
|
+
gesture. Reversal and keyboard navigation
|
|
114
117
|
remain available immediately. Late content growth extends the reading range.
|
|
115
118
|
- A transition owns one destination; input during movement cannot queue pages.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
Completion adds no wheel cooldown. Section transitions and tall-section edges
|
|
120
|
+
share one gesture guard: an idle gap of 220ms, reversal, or renewed pressure
|
|
121
|
+
after a decaying tail starts a fresh gesture. Idle is measured from the last
|
|
122
|
+
wheel event, including time spent animating, rather than from completion.
|
|
123
|
+
Renewed pressure accumulates above the tail baseline toward 12px of intent;
|
|
124
|
+
constant or decreasing tails cannot advance another section just because time
|
|
125
|
+
passed. No cursor movement or pointer event is required to resume.
|
|
126
|
+
Tail recognition uses normalized wheel deltas and is heuristic; physical
|
|
127
|
+
trackpad behavior still needs verification on the target browser/device.
|
|
124
128
|
- PageDown, PageUp, Space and Shift+Space page between stops, using viewport-sized
|
|
125
129
|
reading steps inside tall sections. Held-key repeats do not chain transitions.
|
|
126
130
|
Form controls, links, contenteditable, ARIA widgets and focusable controls retain
|
package/docs-manifest.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-11-02T14:
|
|
5
|
+
"packageVersion": "1.5.44",
|
|
6
|
+
"generatedAt": "2026-11-02T14:49:57.065Z",
|
|
7
7
|
"files": {
|
|
8
8
|
"component-index.md": {
|
|
9
9
|
"sha256": "2a8a3c18e4b9158ff62eaf23c3aae82b2aee7e10fca9b78f9a6d573ff9b13c61"
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"sha256": "d6f355061d35552dbfcebde53088bafdaaafbe9934ed3fc9286d39e60348b64b"
|
|
244
244
|
},
|
|
245
245
|
"components/scroll-reveal.md": {
|
|
246
|
-
"sha256": "
|
|
246
|
+
"sha256": "9990a5d52ed0ac7c573634c586cf85259c83c032209458a14df613272d8a739c"
|
|
247
247
|
},
|
|
248
248
|
"components/seo-provider.md": {
|
|
249
249
|
"sha256": "ee4ef9991f025ddc6e6a11180d9acce6bbe87d86d5e746da70164260734b983e"
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"sha256": "115099e4c2fd179fef86430f5c376b8a58f1f0dab5d7c493a6e0c77485845268"
|
|
340
340
|
},
|
|
341
341
|
"ScrollRevealReleaseAudit.md": {
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "1f00373134a2bac5d218b4363d5bf7c1e9af5d1129c7ff7bfe28334061ccce5d"
|
|
343
343
|
},
|
|
344
344
|
"utilities/search.md": {
|
|
345
345
|
"sha256": "a3e597b3d0a8da8e4ab3a8537231b19149cda48f204ad5cce36860988341e281"
|
package/package.json
CHANGED
/package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js}
RENAMED
|
File without changes
|
|
File without changes
|