@quoreadmin/ui 1.10.9 → 1.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index186.js +4 -4
- package/dist/index193.js +8 -8
- package/dist/index195.js +8 -8
- package/dist/index198.js +17 -17
- package/dist/index201.js +7 -7
- package/dist/index212.js +4 -4
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index219.js +4 -4
- package/dist/index221.js +1 -1
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index224.js +4 -4
- package/dist/index226.js +1 -1
- package/dist/index230.js +122 -156
- package/dist/index231.js +35 -225
- package/dist/index232.js +80 -37
- package/dist/index233.js +20 -10
- package/dist/index234.js +19 -160
- package/dist/index235.js +11 -11
- package/dist/index236.js +12 -12
- package/dist/index237.js +13 -15
- package/dist/index238.js +129 -167
- package/dist/index239.js +19 -69
- package/dist/index240.js +21 -33
- package/dist/index241.js +184 -25
- package/dist/index242.js +64 -121
- package/dist/index243.js +32 -36
- package/dist/index244.js +40 -80
- package/dist/index245.js +160 -19
- package/dist/index246.js +228 -20
- package/dist/index247.js +36 -19
- package/dist/index248.js +10 -20
- package/dist/index249.js +1 -1
- package/dist/index250.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index252.js +6 -6
- package/dist/index253.js +1 -1
- package/dist/index255.js +1 -1
- package/dist/index256.js +1 -1
- package/dist/index257.js +1 -1
- package/dist/index259.js +1 -1
- package/dist/index260.js +1 -1
- package/dist/index261.js +6 -6
- package/dist/index262.js +1 -1
- package/dist/index263.js +1 -1
- package/dist/index264.js +1 -1
- package/dist/index265.js +1 -1
- package/dist/index266.js +1 -1
- package/dist/index267.js +1 -1
- package/dist/index270.js +6 -6
- package/dist/index271.js +1 -1
- package/dist/index272.js +1 -1
- package/dist/index285.js +2 -2
- package/dist/index290.js +2 -3
- package/dist/index291.js +77 -25
- package/dist/index293.js +25 -78
- package/dist/index294.js +15 -19
- package/dist/index295.js +10 -10
- package/dist/index296.js +16 -22
- package/dist/index297.js +15 -14
- package/dist/index298.js +21 -15
- package/dist/index299.js +3 -23
- package/dist/index300.js +27 -2
- package/dist/index301.js +247 -1519
- package/dist/index302.js +4 -384
- package/dist/index303.js +125 -2716
- package/dist/index304.js +69 -82
- package/dist/index305.js +85 -3790
- package/dist/index306.js +26 -57
- package/dist/index307.js +14 -77
- package/dist/index308.js +74 -21
- package/dist/index309.js +3 -934
- package/dist/index310.js +2 -22
- package/dist/index311.js +82 -19
- package/dist/index312.js +52 -19
- package/dist/index313.js +5 -68
- package/dist/index314.js +5 -19
- package/dist/index315.js +178 -18
- package/dist/index316.js +62 -21
- package/dist/index317.js +75 -22
- package/dist/index318.js +68 -52
- package/dist/index319.js +22 -15
- package/dist/index320.js +923 -72
- package/dist/index321.js +22 -202
- package/dist/index322.js +20 -246
- package/dist/index323.js +19 -261
- package/dist/index324.js +68 -5
- package/dist/index325.js +18 -139
- package/dist/index326.js +19 -73
- package/dist/index327.js +20 -85
- package/dist/index328.js +21 -28
- package/dist/index329.js +63 -16
- package/dist/index330.js +1523 -64
- package/dist/index331.js +385 -3
- package/dist/index332.js +2731 -2
- package/dist/index333.js +80 -77
- package/dist/index334.js +3792 -53
- package/dist/index335.js +58 -4
- package/dist/index336.js +15 -5
- package/dist/index337.js +71 -166
- package/dist/index338.js +196 -57
- package/dist/index339.js +246 -75
- package/dist/index340.js +36 -8
- package/dist/index341.js +8 -12
- package/dist/index342.js +12 -54
- package/dist/index343.js +52 -9
- package/dist/index344.js +11 -13
- package/dist/index345.js +9 -53
- package/dist/index346.js +55 -49
- package/dist/index347.js +49 -28
- package/dist/index348.js +31 -2
- package/dist/index349.js +2 -5
- package/dist/index350.js +5 -2
- package/dist/index351.js +2 -23
- package/dist/index352.js +21 -39
- package/dist/index353.js +41 -2
- package/dist/index354.js +2 -11
- package/dist/index355.js +11 -20
- package/dist/index356.js +20 -10
- package/dist/index357.js +9 -9
- package/dist/index358.js +9 -16
- package/dist/index359.js +17 -2
- package/dist/index360.js +2 -9
- package/dist/index361.js +9 -10
- package/dist/index362.js +10 -14
- package/dist/index363.js +14 -37
- package/dist/index364.js +18 -19
- package/dist/index365.js +56 -19
- package/dist/index366.js +28 -63
- package/dist/index367.js +7 -37
- package/dist/index368.js +49 -16
- package/dist/index369.js +7 -57
- package/dist/index370.js +10 -27
- package/dist/index371.js +7 -7
- package/dist/index372.js +27 -51
- package/dist/index373.js +2 -7
- package/dist/index374.js +69 -11
- package/dist/index375.js +166 -6
- package/dist/index376.js +20 -28
- package/dist/index377.js +20 -2
- package/dist/index378.js +61 -67
- package/dist/index379.js +36 -166
- package/dist/index380.js +28 -98
- package/dist/index381.js +10 -90
- package/dist/index382.js +4 -17
- package/dist/index383.js +4 -98
- package/dist/index384.js +12 -30
- package/dist/index385.js +7 -11
- package/dist/index386.js +11 -3
- package/dist/index387.js +4 -3
- package/dist/index388.js +33 -13
- package/dist/index389.js +31 -7
- package/dist/index390.js +28 -12
- package/dist/index391.js +61 -5
- package/dist/index392.js +17 -33
- package/dist/index393.js +99 -29
- package/dist/index394.js +91 -28
- package/dist/index395.js +96 -59
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index90.js +93 -59
- package/dist/src/components/data-list/data-list.d.ts +19 -7
- package/dist/src/views/lists.vue.d.ts +10 -1
- package/package.json +1 -1
package/dist/index395.js
CHANGED
|
@@ -1,63 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var l = 200, p = function() {
|
|
2
|
+
};
|
|
3
|
+
p.prototype.append = function(t) {
|
|
4
|
+
return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
|
|
5
|
+
};
|
|
6
|
+
p.prototype.prepend = function(t) {
|
|
7
|
+
return t.length ? p.from(t).append(this) : this;
|
|
8
|
+
};
|
|
9
|
+
p.prototype.appendInner = function(t) {
|
|
10
|
+
return new u(this, t);
|
|
11
|
+
};
|
|
12
|
+
p.prototype.slice = function(t, r) {
|
|
13
|
+
return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
|
|
14
|
+
};
|
|
15
|
+
p.prototype.get = function(t) {
|
|
16
|
+
if (!(t < 0 || t >= this.length))
|
|
17
|
+
return this.getInner(t);
|
|
18
|
+
};
|
|
19
|
+
p.prototype.forEach = function(t, r, e) {
|
|
20
|
+
r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
|
|
21
|
+
};
|
|
22
|
+
p.prototype.map = function(t, r, e) {
|
|
23
|
+
r === void 0 && (r = 0), e === void 0 && (e = this.length);
|
|
24
|
+
var n = [];
|
|
25
|
+
return this.forEach(function(i, s) {
|
|
26
|
+
return n.push(t(i, s));
|
|
27
|
+
}, r, e), n;
|
|
28
|
+
};
|
|
29
|
+
p.from = function(t) {
|
|
30
|
+
return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
|
|
31
|
+
};
|
|
32
|
+
var o = /* @__PURE__ */ (function(h) {
|
|
33
|
+
function t(e) {
|
|
34
|
+
h.call(this), this.values = e;
|
|
17
35
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
36
|
+
h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
|
|
37
|
+
var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
|
|
38
|
+
return t.prototype.flatten = function() {
|
|
39
|
+
return this.values;
|
|
40
|
+
}, t.prototype.sliceInner = function(n, i) {
|
|
41
|
+
return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
|
|
42
|
+
}, t.prototype.getInner = function(n) {
|
|
43
|
+
return this.values[n];
|
|
44
|
+
}, t.prototype.forEachInner = function(n, i, s, f) {
|
|
45
|
+
for (var a = i; a < s; a++)
|
|
46
|
+
if (n(this.values[a], f + a) === !1)
|
|
47
|
+
return !1;
|
|
48
|
+
}, t.prototype.forEachInvertedInner = function(n, i, s, f) {
|
|
49
|
+
for (var a = i - 1; a >= s; a--)
|
|
50
|
+
if (n(this.values[a], f + a) === !1)
|
|
51
|
+
return !1;
|
|
52
|
+
}, t.prototype.leafAppend = function(n) {
|
|
53
|
+
if (this.length + n.length <= l)
|
|
54
|
+
return new t(this.values.concat(n.flatten()));
|
|
55
|
+
}, t.prototype.leafPrepend = function(n) {
|
|
56
|
+
if (this.length + n.length <= l)
|
|
57
|
+
return new t(n.flatten().concat(this.values));
|
|
58
|
+
}, r.length.get = function() {
|
|
59
|
+
return this.values.length;
|
|
60
|
+
}, r.depth.get = function() {
|
|
61
|
+
return 0;
|
|
62
|
+
}, Object.defineProperties(t.prototype, r), t;
|
|
63
|
+
})(p);
|
|
64
|
+
p.empty = new o([]);
|
|
65
|
+
var u = /* @__PURE__ */ (function(h) {
|
|
66
|
+
function t(r, e) {
|
|
67
|
+
h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
|
|
28
68
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
69
|
+
return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
|
|
70
|
+
return this.left.flatten().concat(this.right.flatten());
|
|
71
|
+
}, t.prototype.getInner = function(e) {
|
|
72
|
+
return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
|
|
73
|
+
}, t.prototype.forEachInner = function(e, n, i, s) {
|
|
74
|
+
var f = this.left.length;
|
|
75
|
+
if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
|
|
76
|
+
return !1;
|
|
77
|
+
}, t.prototype.forEachInvertedInner = function(e, n, i, s) {
|
|
78
|
+
var f = this.left.length;
|
|
79
|
+
if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
|
|
80
|
+
return !1;
|
|
81
|
+
}, t.prototype.sliceInner = function(e, n) {
|
|
82
|
+
if (e == 0 && n == this.length)
|
|
83
|
+
return this;
|
|
84
|
+
var i = this.left.length;
|
|
85
|
+
return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
|
|
86
|
+
}, t.prototype.leafAppend = function(e) {
|
|
87
|
+
var n = this.right.leafAppend(e);
|
|
88
|
+
if (n)
|
|
89
|
+
return new t(this.left, n);
|
|
90
|
+
}, t.prototype.leafPrepend = function(e) {
|
|
91
|
+
var n = this.left.leafPrepend(e);
|
|
92
|
+
if (n)
|
|
93
|
+
return new t(n, this.right);
|
|
94
|
+
}, t.prototype.appendInner = function(e) {
|
|
95
|
+
return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
|
|
96
|
+
}, t;
|
|
97
|
+
})(p);
|
|
59
98
|
export {
|
|
60
|
-
|
|
61
|
-
f as streamChunk,
|
|
62
|
-
h as trackStream
|
|
99
|
+
p as default
|
|
63
100
|
};
|
package/dist/index396.js
CHANGED
package/dist/index401.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import o from "./
|
|
1
|
+
import o from "./index371.js";
|
|
2
2
|
const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
3
3
|
new URL(o.origin),
|
|
4
4
|
o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
|
package/dist/index402.js
CHANGED
package/dist/index90.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useDrag as
|
|
5
|
-
import { useMotionProperties as
|
|
6
|
-
import { useWindowScroll as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as l, computed as i, onMounted as I, onUnmounted as J, nextTick as F } from "vue";
|
|
2
|
+
import K from "./index6.js";
|
|
3
|
+
import X from "./index15.js";
|
|
4
|
+
import { useDrag as _ } from "./index181.js";
|
|
5
|
+
import { useMotionProperties as ee, useMotionTransitions as te } from "./index182.js";
|
|
6
|
+
import { useWindowScroll as le, useScroll as Q } from "./index173.js";
|
|
7
|
+
import V from "./index57.js";
|
|
8
|
+
import ae from "./index58.js";
|
|
9
|
+
const de = G({
|
|
10
10
|
name: "QDataList",
|
|
11
11
|
components: {
|
|
12
|
-
QBadge:
|
|
13
|
-
QDataFilter:
|
|
12
|
+
QBadge: K,
|
|
13
|
+
QDataFilter: X
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
/** Pass in an ID unique to the list. */
|
|
@@ -63,79 +63,113 @@ const ne = U({
|
|
|
63
63
|
type: String,
|
|
64
64
|
default: "row"
|
|
65
65
|
// row, ordered, unordered
|
|
66
|
+
},
|
|
67
|
+
/** Scroll container: element ref, or CSS selector (e.g. '.page-layout__sidebar-inner') resolved via closest from list root. When null/undefined, uses window. */
|
|
68
|
+
scrollTarget: {
|
|
69
|
+
type: [Object, String],
|
|
70
|
+
default: null
|
|
66
71
|
}
|
|
67
72
|
},
|
|
68
73
|
emits: ["filters-action", "page-updated", "click:list-item"],
|
|
69
|
-
setup(
|
|
70
|
-
const { deviceType:
|
|
74
|
+
setup(n, { emit: R }) {
|
|
75
|
+
const { deviceType: E } = ae(), { y: P } = le(), { y: B } = Q(window, { behavior: "smooth" }), h = l(0), f = l("down"), a = l(null), { y: b } = Q(a), W = () => {
|
|
76
|
+
const e = n.scrollTarget;
|
|
77
|
+
if (e == null) {
|
|
78
|
+
a.value = null;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (typeof e == "string") {
|
|
82
|
+
const o = /^[.#\[a-zA-Z]/.test(e) ? e : `.${e}`, r = s.value?.closest(o) ?? null;
|
|
83
|
+
a.value = r;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
a.value = e;
|
|
87
|
+
}, w = i(() => a.value != null), t = i({
|
|
88
|
+
get: () => w.value ? b.value : P.value,
|
|
89
|
+
set: (e) => {
|
|
90
|
+
w.value ? b.value = e : B.value = e;
|
|
91
|
+
}
|
|
92
|
+
}), s = l(null), M = l(0), g = l(!1), k = l(!0), c = l(V.md ? !1 : n.hideSearch), y = l(!c.value), x = {
|
|
71
93
|
type: "keyframe",
|
|
72
94
|
ease: "linear",
|
|
73
95
|
duration: 0,
|
|
74
96
|
delay: 0
|
|
75
|
-
},
|
|
76
|
-
!e.dragging && t.value <= 24 && t.value >= 0 && (
|
|
97
|
+
}, m = l(null), v = l(1), A = l(null), S = l(window.innerHeight), { motionProperties: N } = ee(m), { push: O } = te(), u = l(null), T = l(null), U = i(() => E.value === "desktop"), j = i(() => v.value * n.itemsPerPage - 1), D = i(() => t.value <= 0 ? 70 : t.value > 70 ? 0 : 70 - t.value), Y = i(() => Math.ceil(n.modelValue?.length / n.itemsPerPage) || 1), q = (e) => {
|
|
98
|
+
!e.dragging && t.value <= 24 && t.value >= 0 && (t.value = 0), !e.dragging && t.value > 24 && t.value < 70 && (t.value = 70), !(t.value > 0) && (g.value ? $(e) : Z(e));
|
|
77
99
|
};
|
|
78
|
-
|
|
79
|
-
domTarget:
|
|
100
|
+
c.value && _(q, {
|
|
101
|
+
domTarget: m,
|
|
80
102
|
filterTaps: !0,
|
|
81
103
|
useTouch: !0,
|
|
82
104
|
delay: 100
|
|
83
105
|
});
|
|
84
|
-
const
|
|
85
|
-
e.tap || e.axis === "x" || (
|
|
86
|
-
},
|
|
106
|
+
const Z = (e) => {
|
|
107
|
+
e.tap || e.axis === "x" || (g.value = !0);
|
|
108
|
+
}, $ = (e) => {
|
|
87
109
|
if (e.tap || e.axis === "x")
|
|
88
110
|
return;
|
|
89
|
-
const o = e.direction[1],
|
|
90
|
-
!
|
|
91
|
-
}, d =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
111
|
+
const o = e.direction[1], r = o >= 0, z = o <= 0 && t.value <= 0;
|
|
112
|
+
!y.value && (r || z) && L(!z, "drag"), g.value = !1;
|
|
113
|
+
}, d = () => {
|
|
114
|
+
if (!(!s.value || v.value >= Y.value))
|
|
115
|
+
if (w.value && a.value) {
|
|
116
|
+
const e = a.value.getBoundingClientRect(), r = s.value.getBoundingClientRect().bottom - 400;
|
|
117
|
+
e.bottom > r && (v.value++, R("page-updated"));
|
|
118
|
+
} else {
|
|
119
|
+
const e = P.value + S.value, o = s.value.offsetTop + s.value.offsetHeight;
|
|
120
|
+
e > o - 400 && (v.value++, R("page-updated"));
|
|
121
|
+
}
|
|
122
|
+
}, L = async (e, o) => {
|
|
123
|
+
if (y.value = e, await F(), k.value && f.value === "up" && t.value <= 0 || o === "drag") {
|
|
124
|
+
const r = D.value ? D.value : 0;
|
|
125
|
+
O("y", r, N, x), k.value = !1;
|
|
98
126
|
}
|
|
99
|
-
},
|
|
100
|
-
const e = Math.max(0, t.value) >
|
|
101
|
-
e !==
|
|
102
|
-
},
|
|
103
|
-
|
|
127
|
+
}, p = () => {
|
|
128
|
+
const e = Math.max(0, t.value) > h.value ? "down" : "up";
|
|
129
|
+
e !== f.value && (f.value = e), t.value < 70 && L(!0, "scroll"), h.value = Math.max(0, t.value), d();
|
|
130
|
+
}, H = async () => {
|
|
131
|
+
S.value = window.innerHeight, await F();
|
|
132
|
+
}, C = () => {
|
|
133
|
+
c.value ? p() : d();
|
|
104
134
|
};
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
135
|
+
return I(() => {
|
|
136
|
+
if (c.value ? (M.value = m.value.offsetTop - 16, n.scrollTarget || (window.addEventListener("scroll", p), u.value = "onScroll")) : n.scrollTarget || (window.addEventListener("scroll", d), u.value = "scrollWatcher"), W(), n.scrollTarget && a.value) {
|
|
137
|
+
const e = a.value;
|
|
138
|
+
e.addEventListener("scroll", C), T.value = e, u.value = "custom";
|
|
139
|
+
}
|
|
140
|
+
window.addEventListener("resize", H);
|
|
141
|
+
}), J(() => {
|
|
142
|
+
u.value === "onScroll" ? window.removeEventListener("scroll", p) : u.value === "scrollWatcher" ? window.removeEventListener("scroll", d) : u.value === "custom" && T.value && T.value.removeEventListener("scroll", C), window.removeEventListener("resize", H);
|
|
109
143
|
}), {
|
|
110
144
|
// Refs
|
|
111
|
-
dataListRef:
|
|
112
|
-
defaultSearchTop:
|
|
113
|
-
isDragging:
|
|
114
|
-
isSearchVisible:
|
|
115
|
-
hiddenSearch:
|
|
116
|
-
listRef:
|
|
117
|
-
page:
|
|
118
|
-
prevScrollY:
|
|
145
|
+
dataListRef: s,
|
|
146
|
+
defaultSearchTop: M,
|
|
147
|
+
isDragging: g,
|
|
148
|
+
isSearchVisible: y,
|
|
149
|
+
hiddenSearch: c,
|
|
150
|
+
listRef: m,
|
|
151
|
+
page: v,
|
|
152
|
+
prevScrollY: h,
|
|
119
153
|
scrollY: t,
|
|
120
|
-
scrollToY:
|
|
121
|
-
searchRef:
|
|
122
|
-
windowHeight:
|
|
154
|
+
scrollToY: B,
|
|
155
|
+
searchRef: A,
|
|
156
|
+
windowHeight: S,
|
|
123
157
|
// Computed
|
|
124
|
-
direction:
|
|
125
|
-
isDesktop:
|
|
126
|
-
lastOnPage:
|
|
127
|
-
searchHeight:
|
|
128
|
-
totalPages:
|
|
158
|
+
direction: f,
|
|
159
|
+
isDesktop: U,
|
|
160
|
+
lastOnPage: j,
|
|
161
|
+
searchHeight: D,
|
|
162
|
+
totalPages: Y,
|
|
129
163
|
// Methods
|
|
130
|
-
onScroll:
|
|
164
|
+
onScroll: p,
|
|
131
165
|
scrollWatcher: d,
|
|
132
|
-
toggleSearch:
|
|
166
|
+
toggleSearch: L,
|
|
133
167
|
// Composable
|
|
134
|
-
deviceType:
|
|
135
|
-
mq:
|
|
168
|
+
deviceType: E,
|
|
169
|
+
mq: V
|
|
136
170
|
};
|
|
137
171
|
}
|
|
138
172
|
});
|
|
139
173
|
export {
|
|
140
|
-
|
|
174
|
+
de as default
|
|
141
175
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
declare const QDataList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
3
|
/** Pass in an ID unique to the list. */
|
|
3
4
|
id: {
|
|
@@ -47,6 +48,11 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
47
48
|
type: StringConstructor;
|
|
48
49
|
default: string;
|
|
49
50
|
};
|
|
51
|
+
/** Scroll container: element ref, or CSS selector (e.g. '.page-layout__sidebar-inner') resolved via closest from list root. When null/undefined, uses window. */
|
|
52
|
+
scrollTarget: {
|
|
53
|
+
type: PropType<HTMLElement | string | null | undefined>;
|
|
54
|
+
default: null;
|
|
55
|
+
};
|
|
50
56
|
}>, {
|
|
51
57
|
dataListRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
52
58
|
defaultSearchTop: import('vue').Ref<number, number>;
|
|
@@ -66,7 +72,7 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
66
72
|
searchHeight: import('vue').ComputedRef<number>;
|
|
67
73
|
totalPages: import('vue').ComputedRef<number>;
|
|
68
74
|
onScroll: () => void;
|
|
69
|
-
scrollWatcher: () =>
|
|
75
|
+
scrollWatcher: () => void;
|
|
70
76
|
toggleSearch: (value: any, type: any) => Promise<void>;
|
|
71
77
|
deviceType: import('vue').Ref<string, string>;
|
|
72
78
|
mq: {
|
|
@@ -129,6 +135,11 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
129
135
|
type: StringConstructor;
|
|
130
136
|
default: string;
|
|
131
137
|
};
|
|
138
|
+
/** Scroll container: element ref, or CSS selector (e.g. '.page-layout__sidebar-inner') resolved via closest from list root. When null/undefined, uses window. */
|
|
139
|
+
scrollTarget: {
|
|
140
|
+
type: PropType<HTMLElement | string | null | undefined>;
|
|
141
|
+
default: null;
|
|
142
|
+
};
|
|
132
143
|
}>> & Readonly<{
|
|
133
144
|
"onFilters-action"?: ((...args: any[]) => any) | undefined;
|
|
134
145
|
"onPage-updated"?: ((...args: any[]) => any) | undefined;
|
|
@@ -144,6 +155,7 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
144
155
|
isFixed: boolean;
|
|
145
156
|
itemsPerPage: number;
|
|
146
157
|
noResultMessage: string;
|
|
158
|
+
scrollTarget: string | HTMLElement | null | undefined;
|
|
147
159
|
}, {}, {
|
|
148
160
|
QBadge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
149
161
|
color: {
|
|
@@ -172,7 +184,7 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
172
184
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
173
185
|
QDataFilter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
174
186
|
data: {
|
|
175
|
-
type:
|
|
187
|
+
type: PropType<any[]>;
|
|
176
188
|
default: () => never[];
|
|
177
189
|
};
|
|
178
190
|
id: {
|
|
@@ -180,11 +192,11 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
180
192
|
default: string;
|
|
181
193
|
};
|
|
182
194
|
excludedFields: {
|
|
183
|
-
type:
|
|
195
|
+
type: PropType<string[]>;
|
|
184
196
|
default: () => never[];
|
|
185
197
|
};
|
|
186
198
|
filters: {
|
|
187
|
-
type:
|
|
199
|
+
type: PropType<any[]>;
|
|
188
200
|
default: () => never[];
|
|
189
201
|
};
|
|
190
202
|
hasSearch: {
|
|
@@ -257,7 +269,7 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
257
269
|
};
|
|
258
270
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:data" | "update:search" | "click:filters" | "popover:close" | "bottom-sheet:close")[], "update:data" | "update:search" | "click:filters" | "popover:close" | "bottom-sheet:close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
259
271
|
data: {
|
|
260
|
-
type:
|
|
272
|
+
type: PropType<any[]>;
|
|
261
273
|
default: () => never[];
|
|
262
274
|
};
|
|
263
275
|
id: {
|
|
@@ -265,11 +277,11 @@ declare const QDataList: import('vue').DefineComponent<import('vue').ExtractProp
|
|
|
265
277
|
default: string;
|
|
266
278
|
};
|
|
267
279
|
excludedFields: {
|
|
268
|
-
type:
|
|
280
|
+
type: PropType<string[]>;
|
|
269
281
|
default: () => never[];
|
|
270
282
|
};
|
|
271
283
|
filters: {
|
|
272
|
-
type:
|
|
284
|
+
type: PropType<any[]>;
|
|
273
285
|
default: () => never[];
|
|
274
286
|
};
|
|
275
287
|
hasSearch: {
|
|
@@ -1258,6 +1258,10 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
1258
1258
|
type: StringConstructor;
|
|
1259
1259
|
default: string;
|
|
1260
1260
|
};
|
|
1261
|
+
scrollTarget: {
|
|
1262
|
+
type: import('vue').PropType<HTMLElement | string | null | undefined>;
|
|
1263
|
+
default: null;
|
|
1264
|
+
};
|
|
1261
1265
|
}>, {
|
|
1262
1266
|
dataListRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
1263
1267
|
defaultSearchTop: import('vue').Ref<number, number>;
|
|
@@ -1277,7 +1281,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
1277
1281
|
searchHeight: import('vue').ComputedRef<number>;
|
|
1278
1282
|
totalPages: import('vue').ComputedRef<number>;
|
|
1279
1283
|
onScroll: () => void;
|
|
1280
|
-
scrollWatcher: () =>
|
|
1284
|
+
scrollWatcher: () => void;
|
|
1281
1285
|
toggleSearch: (value: any, type: any) => Promise<void>;
|
|
1282
1286
|
deviceType: import('vue').Ref<string, string>;
|
|
1283
1287
|
mq: {
|
|
@@ -1332,6 +1336,10 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
1332
1336
|
type: StringConstructor;
|
|
1333
1337
|
default: string;
|
|
1334
1338
|
};
|
|
1339
|
+
scrollTarget: {
|
|
1340
|
+
type: import('vue').PropType<HTMLElement | string | null | undefined>;
|
|
1341
|
+
default: null;
|
|
1342
|
+
};
|
|
1335
1343
|
}>> & Readonly<{
|
|
1336
1344
|
"onFilters-action"?: ((...args: any[]) => any) | undefined;
|
|
1337
1345
|
"onPage-updated"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1347,6 +1355,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
1347
1355
|
isFixed: boolean;
|
|
1348
1356
|
itemsPerPage: number;
|
|
1349
1357
|
noResultMessage: string;
|
|
1358
|
+
scrollTarget: string | HTMLElement | null | undefined;
|
|
1350
1359
|
}, {}, {
|
|
1351
1360
|
QBadge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1352
1361
|
color: {
|