@jtigernova-npm/tiffany-vue 1.2.7 → 1.2.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/out/vue/BaseState.js +3 -1
- package/out/vue/VueUtil.d.ts +7 -0
- package/out/vue/VueUtil.js +15 -0
- package/out/vue/index.d.ts +1 -0
- package/out/vue/index.js +1 -0
- package/package.json +4 -3
package/out/vue/BaseState.js
CHANGED
|
@@ -46,10 +46,12 @@ export function getTrackableScrollHelper(opts) {
|
|
|
46
46
|
const withBuffer = e.scrollTop + e.clientHeight + opts.spaceBuffer;
|
|
47
47
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
|
48
48
|
const sh = e.scrollHeight;
|
|
49
|
-
console.log(`scroll -> top=${scrollTop.value}, topWithBuffer=${withBuffer}, scrollBottom=${sh}`);
|
|
50
49
|
if (withBuffer >= sh) {
|
|
51
50
|
opts.onReachedBottom();
|
|
52
51
|
}
|
|
52
|
+
if (opts?.debug) {
|
|
53
|
+
logDebug(`scroll -> top=${scrollTop.value}, topWithBuffer=${withBuffer}, scrollBottom=${sh}`);
|
|
54
|
+
}
|
|
53
55
|
}
|
|
54
56
|
},
|
|
55
57
|
setScrollTop: (scrollElementID) => {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue Util: Get person ID from a query of validation email link
|
|
3
|
+
* @param q
|
|
4
|
+
* @returns
|
|
5
|
+
*/
|
|
6
|
+
export function vueQueryPersonID(q) {
|
|
7
|
+
if (!q)
|
|
8
|
+
return undefined;
|
|
9
|
+
let pID = q.personID;
|
|
10
|
+
if (!pID)
|
|
11
|
+
return undefined;
|
|
12
|
+
if (pID.includes("?"))
|
|
13
|
+
pID = pID.slice(0, pID.indexOf("?"));
|
|
14
|
+
return pID;
|
|
15
|
+
}
|
package/out/vue/index.d.ts
CHANGED
package/out/vue/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jtigernova-npm/tiffany-vue",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"module": "out/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
"typescript-eslint": "^8.14.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jtigernova-npm/tiffany": "1.1.7",
|
|
35
|
-
"vue": "3.5.12"
|
|
34
|
+
"@jtigernova-npm/tiffany": "^1.1.7",
|
|
35
|
+
"vue": "^3.5.12",
|
|
36
|
+
"vue-router": "^4.3.3"
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
38
39
|
"index.d.ts",
|