@quoreadmin/ui 1.6.6 → 1.6.8
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/index.css +1 -1
- package/dist/index102.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index113.js +2 -2
- package/dist/index117.js +3 -3
- package/dist/index129.js +1 -1
- package/dist/index131.js +116 -59
- package/dist/index140.js +896 -0
- package/dist/{index143.js → index144.js} +2 -2
- package/dist/{index151.js → index152.js} +1 -1
- package/dist/{index157.js → index158.js} +2 -2
- package/dist/index161.js +111 -492
- package/dist/index162.js +471 -5498
- package/dist/index163.js +5511 -80
- package/dist/index164.js +86 -856
- package/dist/index165.js +844 -21
- package/dist/index166.js +23 -265
- package/dist/index167.js +256 -126
- package/dist/index168.js +146 -1195
- package/dist/index169.js +1139 -712
- package/dist/index170.js +704 -1240
- package/dist/index171.js +1280 -248
- package/dist/index172.js +266 -96
- package/dist/index173.js +106 -2
- package/dist/index174.js +2 -1376
- package/dist/index175.js +1378 -0
- package/dist/index177.js +12 -12
- package/dist/index178.js +10 -10
- package/dist/index179.js +12 -12
- package/dist/index180.js +14 -21
- package/dist/index181.js +23 -757
- package/dist/index182.js +759 -1100
- package/dist/index183.js +1117 -1234
- package/dist/index184.js +1205 -11248
- package/dist/index185.js +11277 -36
- package/dist/index186.js +36 -115
- package/dist/index190.js +29 -29
- package/dist/index191.js +2 -2
- package/dist/index192.js +2 -2
- package/dist/index193.js +1 -1
- package/dist/index195.js +2 -2
- package/dist/index197.js +14 -14
- package/dist/index198.js +1 -1
- package/dist/index199.js +1 -1
- package/dist/index20.js +4 -4
- package/dist/index200.js +3 -3
- package/dist/index201.js +3 -3
- package/dist/index202.js +84 -29
- package/dist/index203.js +400 -109
- package/dist/index204.js +22 -36
- package/dist/index205.js +33 -26
- package/dist/index206.js +111 -31
- package/dist/index207.js +36 -9
- package/dist/index208.js +26 -19
- package/dist/index209.js +36 -10
- package/dist/index210.js +9 -10
- package/dist/index211.js +18 -50
- package/dist/index212.js +10 -43
- package/dist/index213.js +10 -4
- package/dist/index214.js +48 -36
- package/dist/index215.js +43 -21
- package/dist/index216.js +3 -87
- package/dist/index217.js +35 -403
- package/dist/index218.js +21 -22
- package/dist/index219.js +122 -156
- package/dist/index220.js +35 -225
- package/dist/index221.js +80 -37
- package/dist/index222.js +20 -10
- package/dist/index223.js +19 -126
- package/dist/index224.js +16 -34
- package/dist/index225.js +20 -80
- package/dist/index226.js +9 -9
- package/dist/index227.js +160 -19
- package/dist/index228.js +11 -11
- package/dist/index229.js +15 -13
- package/dist/index230.js +198 -19
- package/dist/index231.js +49 -140
- package/dist/index232.js +34 -20
- package/dist/index233.js +39 -21
- package/dist/index234.js +21 -198
- package/dist/index235.js +21 -69
- package/dist/index236.js +20 -34
- package/dist/index237.js +823 -27
- package/dist/index238.js +701 -21
- package/dist/index239.js +176 -22
- package/dist/index240.js +15 -13
- package/dist/index241.js +20 -836
- package/dist/index242.js +19 -701
- package/dist/index243.js +3 -176
- package/dist/index244.js +186 -21
- package/dist/index245.js +132 -19
- package/dist/index246.js +1223 -20
- package/dist/index247.js +20 -3
- package/dist/index248.js +21 -186
- package/dist/index249.js +21 -132
- package/dist/index250.js +29 -1223
- package/dist/index251.js +12 -12
- package/dist/index252.js +13 -15
- package/dist/index253.js +2 -22
- package/dist/index254.js +2 -29
- package/dist/index255.js +3632 -20
- package/dist/index256.js +55 -20
- package/dist/index257.js +77 -2
- package/dist/index258.js +52 -2
- package/dist/index259.js +182 -3599
- package/dist/index260.js +8 -53
- package/dist/index261.js +40 -60
- package/dist/index262.js +44 -35
- package/dist/index263.js +32 -193
- package/dist/index264.js +74 -9
- package/dist/index265.js +704 -38
- package/dist/index266.js +22 -44
- package/dist/index267.js +46 -36
- package/dist/index268.js +10 -74
- package/dist/index269.js +680 -698
- package/dist/index270.js +818 -37
- package/dist/index271.js +160 -63
- package/dist/index272.js +227 -10
- package/dist/index273.js +36 -704
- package/dist/index274.js +9 -819
- package/dist/index275.js +1 -1
- package/dist/index278.js +1 -1
- package/dist/index279.js +2 -3
- package/dist/index280.js +77 -25
- package/dist/index281.js +3 -2
- package/dist/index282.js +25 -77
- package/dist/index284.js +1 -1
- package/dist/index285.js +1 -1
- package/dist/index286.js +1 -1
- package/dist/index289.js +1 -1
- package/dist/index290.js +1518 -79
- package/dist/index291.js +386 -22
- package/dist/index292.js +2698 -902
- package/dist/index293.js +85 -21
- package/dist/index294.js +3770 -20
- package/dist/index295.js +59 -19
- package/dist/index296.js +77 -67
- package/dist/index297.js +21 -18
- package/dist/index298.js +934 -18
- package/dist/index299.js +16 -16
- package/dist/index300.js +11 -13
- package/dist/index301.js +19 -62
- package/dist/index302.js +69 -1518
- package/dist/index303.js +19 -386
- package/dist/index304.js +19 -2731
- package/dist/index305.js +21 -85
- package/dist/index306.js +22 -3770
- package/dist/index307.js +63 -60
- package/dist/index309.js +2 -2
- package/dist/index310.js +4 -4
- package/dist/index311.js +2 -2
- package/dist/index329.js +36 -8
- package/dist/index330.js +8 -12
- package/dist/index331.js +12 -54
- package/dist/index332.js +52 -9
- package/dist/index333.js +11 -13
- package/dist/index334.js +9 -53
- package/dist/index335.js +55 -49
- package/dist/index336.js +49 -28
- package/dist/index337.js +31 -2
- package/dist/index338.js +2 -5
- package/dist/index339.js +5 -2
- package/dist/index340.js +2 -23
- package/dist/index341.js +21 -39
- package/dist/index342.js +41 -2
- package/dist/index343.js +2 -11
- package/dist/index344.js +11 -20
- package/dist/index345.js +18 -15
- package/dist/index346.js +16 -9
- package/dist/index347.js +9 -9
- package/dist/index348.js +10 -2
- package/dist/index349.js +2 -9
- package/dist/index350.js +9 -10
- package/dist/index351.js +10 -14
- package/dist/index352.js +14 -37
- package/dist/index353.js +1 -1
- package/dist/index354.js +1 -1
- package/dist/index355.js +2 -2
- package/dist/index369.js +100 -16
- package/dist/index370.js +90 -100
- package/dist/index371.js +17 -91
- package/dist/index39.js +44 -14
- package/dist/index40.js +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.js +348 -318
- package/dist/index44.js +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.js +6 -6
- package/dist/index48.js +2 -2
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index54.js +2 -2
- package/dist/index56.js +1 -1
- package/dist/index58.js +5 -5
- package/dist/index59.js +1 -1
- package/dist/index71.js +2 -2
- package/dist/index75.js +1 -1
- package/dist/index80.js +1 -1
- package/dist/index85.js +1 -1
- package/dist/index87.js +3 -3
- package/dist/index89.js +2 -2
- package/dist/index95.js +2 -2
- package/dist/src/components/comment/comment.d.ts +32 -0
- package/dist/src/components/comment/comment.stories.d.ts +32 -0
- package/dist/src/components/comment-section/comment-section.d.ts +32 -0
- package/dist/src/components/comment-section/comment-section.stories.d.ts +32 -0
- package/dist/src/components/data-filter/data-filter.d.ts +32 -0
- package/dist/src/components/data-list/data-list.d.ts +32 -0
- package/dist/src/components/grid/grid.stories.d.ts +64 -0
- package/dist/src/components/popover/popover.d.ts +36 -0
- package/dist/src/components/popover/popover.stories.d.ts +128 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +197 -5
- package/dist/src/components/textarea/textarea.d.ts +1 -1
- package/dist/src/components/textarea/textarea.stories.d.ts +1 -1
- package/dist/src/views/lists.vue.d.ts +64 -0
- package/dist/src/views/tables.vue.d.ts +32 -0
- package/package.json +1 -1
- package/dist/index139.js +0 -855
- package/dist/index160.js +0 -116
- package/dist/index176.js +0 -20
- /package/dist/{index133.js → index134.js} +0 -0
- /package/dist/{index135.js → index136.js} +0 -0
- /package/dist/{index137.js → index138.js} +0 -0
- /package/dist/{index141.js → index142.js} +0 -0
- /package/dist/{index145.js → index146.js} +0 -0
- /package/dist/{index147.js → index148.js} +0 -0
- /package/dist/{index149.js → index150.js} +0 -0
- /package/dist/{index153.js → index154.js} +0 -0
- /package/dist/{index155.js → index156.js} +0 -0
package/dist/index102.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as n, computed as v } from "vue";
|
|
2
|
-
import { useDropZone as b } from "./
|
|
2
|
+
import { useDropZone as b } from "./index162.js";
|
|
3
3
|
import z from "./index54.js";
|
|
4
|
-
import M from "./
|
|
4
|
+
import M from "./index182.js";
|
|
5
5
|
import T from "./index6.js";
|
|
6
6
|
import h from "./index30.js";
|
|
7
7
|
import I from "./index34.js";
|
package/dist/index109.js
CHANGED
package/dist/index113.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as $, ref as a, computed as s, onMounted as Z, onUnmounted as q } from "vue";
|
|
2
|
-
import { useSwipe as K } from "./
|
|
2
|
+
import { useSwipe as K } from "./index162.js";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import J from "./
|
|
4
|
+
import J from "./index184.js";
|
|
5
5
|
import Y from "./index6.js";
|
|
6
6
|
import ee from "./index7.js";
|
|
7
7
|
import te from "./index33.js";
|
package/dist/index117.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as E, ref as a, computed as m, onMounted as P, onUnmounted as Q, nextTick as V } from "vue";
|
|
2
2
|
import { filterData as C } from "./index53.js";
|
|
3
3
|
import F from "./index6.js";
|
|
4
|
-
import { useDrag as H } from "./
|
|
5
|
-
import { useMotionProperties as N, useMotionTransitions as U } from "./
|
|
6
|
-
import { useWindowScroll as q, useScroll as W } from "./
|
|
4
|
+
import { useDrag as H } from "./index170.js";
|
|
5
|
+
import { useMotionProperties as N, useMotionTransitions as U } from "./index171.js";
|
|
6
|
+
import { useWindowScroll as q, useScroll as W } from "./index162.js";
|
|
7
7
|
import T from "./index54.js";
|
|
8
8
|
const X = E({
|
|
9
9
|
name: "QList",
|
package/dist/index129.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as s, onMounted as y, nextTick as P } from "vue";
|
|
2
|
-
import { getDocument as C, version as k, GlobalWorkerOptions as E } from "./
|
|
2
|
+
import { getDocument as C, version as k, GlobalWorkerOptions as E } from "./index185.js";
|
|
3
3
|
import D from "./index22.js";
|
|
4
4
|
E.workerSrc = `https://cdn.jsdelivr.net/npm/pdfjs-dist@${k}/legacy/build/pdf.worker.min.mjs`;
|
|
5
5
|
const S = x({
|
package/dist/index131.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { onClickOutside as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as L, ref as p, computed as C, onMounted as q, onUnmounted as z, watch as T, nextTick as k } from "vue";
|
|
2
|
+
import { onClickOutside as H } from "./index162.js";
|
|
3
|
+
import { useThrottleFn as $ } from "./index173.js";
|
|
4
|
+
const X = L({
|
|
4
5
|
name: "QPopover",
|
|
5
6
|
props: {
|
|
6
7
|
/** Aligns the popover accordingly with the trigger.
|
|
@@ -42,6 +43,16 @@ const R = C({
|
|
|
42
43
|
type: String,
|
|
43
44
|
default: "md"
|
|
44
45
|
},
|
|
46
|
+
/** Set if the popover is teleported to the teleportTo element (escapes overflow clipping) */
|
|
47
|
+
teleport: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
/** Target element for teleport */
|
|
52
|
+
teleportTo: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "body"
|
|
55
|
+
},
|
|
45
56
|
/** Trigger popover on click, hover or both */
|
|
46
57
|
trigger: {
|
|
47
58
|
type: String,
|
|
@@ -49,86 +60,132 @@ const R = C({
|
|
|
49
60
|
}
|
|
50
61
|
},
|
|
51
62
|
emits: ["update:modelValue"],
|
|
52
|
-
setup(n, { emit:
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
setup(n, { emit: s }) {
|
|
64
|
+
const f = p(!1), c = p(""), a = p(null), v = p({
|
|
65
|
+
top: "0",
|
|
66
|
+
left: "0",
|
|
67
|
+
transform: "none"
|
|
68
|
+
}), w = C(() => f.value === !0 && n.reposition === !0 ? y(n.align) : n.align), b = C(() => f.value === !0 && n.reposition === !0 ? S(n.position) : n.position), y = (t) => {
|
|
69
|
+
if (!a.value) return t;
|
|
70
|
+
const e = n.teleport ? document.querySelector(".q-popover.teleported") : a.value.children[1];
|
|
71
|
+
if (!e || g(e)) return t;
|
|
72
|
+
const i = a.value.children[0].getBoundingClientRect(), u = e.getBoundingClientRect();
|
|
73
|
+
if (t === "left" || t === "right" || t === "center") {
|
|
74
|
+
const o = i.left;
|
|
75
|
+
return window.innerWidth - o < u.width ? "right" : "left";
|
|
59
76
|
} else {
|
|
60
|
-
const
|
|
61
|
-
return window.innerHeight -
|
|
77
|
+
const o = i.top;
|
|
78
|
+
return window.innerHeight - o < u.height ? "bottom" : "top";
|
|
62
79
|
}
|
|
63
|
-
},
|
|
64
|
-
if (!
|
|
65
|
-
const
|
|
66
|
-
if (e
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
}, S = (t) => {
|
|
81
|
+
if (!a.value) return t;
|
|
82
|
+
const e = n.teleport ? document.querySelector(".q-popover.teleported") : a.value.children[1];
|
|
83
|
+
if (!e || g(e)) return t;
|
|
84
|
+
const i = a.value.children[0].getBoundingClientRect(), u = e.getBoundingClientRect();
|
|
85
|
+
if (t === "top" || t === "bottom") {
|
|
86
|
+
const o = i.top;
|
|
87
|
+
return window.innerHeight - o < u.height ? "top" : "bottom";
|
|
69
88
|
} else {
|
|
70
|
-
const
|
|
71
|
-
return window.innerWidth -
|
|
89
|
+
const o = i.left;
|
|
90
|
+
return window.innerWidth - o < u.width ? "left" : "right";
|
|
72
91
|
}
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
92
|
+
}, g = (t) => {
|
|
93
|
+
if (!t) return !1;
|
|
94
|
+
const e = t.getBoundingClientRect();
|
|
95
|
+
return e ? e.top >= 0 && e.left >= 0 && e.bottom <= (window.innerHeight || document.documentElement.clientHeight) && e.right <= (window.innerWidth || document.documentElement.clientWidth) : !1;
|
|
96
|
+
}, R = () => {
|
|
97
|
+
(n.trigger === "click" || n.trigger === "both") && s("update:modelValue", !n.modelValue);
|
|
98
|
+
}, V = () => {
|
|
99
|
+
n.trigger !== "click" && s("update:modelValue", !1);
|
|
100
|
+
}, B = () => {
|
|
101
|
+
n.trigger !== "click" && s("update:modelValue", !0);
|
|
102
|
+
}, E = () => {
|
|
103
|
+
const t = a.value?.children[0];
|
|
104
|
+
if (t) {
|
|
105
|
+
const e = t.clientWidth, i = t.clientHeight;
|
|
106
|
+
switch (w.value) {
|
|
87
107
|
case "left":
|
|
88
|
-
|
|
108
|
+
c.value = `margin-left: ${e / 2 - 10}px;`;
|
|
89
109
|
break;
|
|
90
110
|
case "right":
|
|
91
|
-
|
|
111
|
+
c.value = `margin-right: ${e / 2 - 10}px;`;
|
|
92
112
|
break;
|
|
93
113
|
case "top":
|
|
94
|
-
|
|
114
|
+
c.value = `margin-top: ${i / 2 - 10}px;`;
|
|
95
115
|
break;
|
|
96
116
|
case "bottom":
|
|
97
|
-
|
|
117
|
+
c.value = `margin-bottom: ${i / 2 - 10}px;`;
|
|
98
118
|
break;
|
|
99
119
|
}
|
|
100
120
|
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
121
|
+
}, h = () => {
|
|
122
|
+
if (!a.value || !n.teleport) return;
|
|
123
|
+
const t = a.value.children[0];
|
|
124
|
+
if (!t) return;
|
|
125
|
+
const e = t.getBoundingClientRect(), i = 10, u = b.value, o = w.value;
|
|
126
|
+
let l = 0, d = 0, r = "none";
|
|
127
|
+
u === "bottom" ? (l = e.bottom + i, o === "left" ? (d = e.left - 40, r = "none") : o === "right" ? (d = e.right + 40, r = "translateX(-100%)") : o === "center" && (d = e.left + e.width / 2, r = "translateX(-50%)")) : u === "top" ? (l = e.top - i, r = "translateY(-100%)", o === "left" ? d = e.left - 40 : o === "right" ? (d = e.right + 40, r = "translate(-100%, -100%)") : o === "center" && (d = e.left + e.width / 2, r = "translate(-50%, -100%)")) : u === "left" ? (d = e.left - i, r = "translateX(-100%)", o === "top" ? l = e.top - 16 : o === "bottom" ? (l = e.bottom + 16, r = "translate(-100%, -100%)") : o === "middle" && (l = e.top + e.height / 2, r = "translate(-100%, -50%)")) : u === "right" && (d = e.right + i, o === "top" ? (l = e.top - 16, r = "none") : o === "bottom" ? (l = e.bottom + 16, r = "translateY(-100%)") : o === "middle" && (l = e.top + e.height / 2, r = "translateY(-50%)")), v.value = {
|
|
128
|
+
top: `${l}px`,
|
|
129
|
+
left: `${d}px`,
|
|
130
|
+
transform: r
|
|
131
|
+
};
|
|
132
|
+
}, m = $(
|
|
133
|
+
() => {
|
|
134
|
+
n.teleport && n.modelValue && h();
|
|
135
|
+
},
|
|
136
|
+
16,
|
|
137
|
+
!0
|
|
138
|
+
);
|
|
139
|
+
H(a, (t) => {
|
|
140
|
+
if (n.teleport) {
|
|
141
|
+
const e = document.querySelector(".q-popover.teleported");
|
|
142
|
+
if (e && e.contains(t.target))
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
n.modelValue && s("update:modelValue", !1);
|
|
104
146
|
});
|
|
105
147
|
function W() {
|
|
106
|
-
|
|
148
|
+
f.value = !1;
|
|
107
149
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
150
|
+
function x() {
|
|
151
|
+
f.value = !0, n.teleport ? k(() => {
|
|
152
|
+
h();
|
|
153
|
+
}) : !g(a.value?.children[1]) && n.reposition === !0 && E();
|
|
110
154
|
}
|
|
111
|
-
return {
|
|
155
|
+
return q(() => {
|
|
156
|
+
n.teleport && (window.addEventListener("resize", m), window.addEventListener("scroll", m, !0));
|
|
157
|
+
}), z(() => {
|
|
158
|
+
n.teleport && (window.removeEventListener("resize", m), window.removeEventListener("scroll", m, !0));
|
|
159
|
+
}), T(
|
|
160
|
+
() => n.modelValue,
|
|
161
|
+
(t) => {
|
|
162
|
+
n.teleport && t && k(() => {
|
|
163
|
+
h();
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
), {
|
|
112
167
|
// Refs
|
|
113
|
-
entered:
|
|
114
|
-
offsetStyle:
|
|
115
|
-
popover:
|
|
168
|
+
entered: f,
|
|
169
|
+
offsetStyle: c,
|
|
170
|
+
popover: a,
|
|
171
|
+
teleportedStyle: v,
|
|
116
172
|
// Computed
|
|
117
|
-
alignment:
|
|
118
|
-
positioning:
|
|
173
|
+
alignment: w,
|
|
174
|
+
positioning: b,
|
|
119
175
|
// Methods
|
|
120
|
-
getAlignment:
|
|
121
|
-
getPositioning:
|
|
122
|
-
isElementInView:
|
|
176
|
+
getAlignment: y,
|
|
177
|
+
getPositioning: S,
|
|
178
|
+
isElementInView: g,
|
|
123
179
|
onAfterLeave: W,
|
|
124
|
-
onClick:
|
|
125
|
-
onClickOutside:
|
|
126
|
-
onEnter:
|
|
127
|
-
onMouseLeave:
|
|
128
|
-
onMouseOver:
|
|
180
|
+
onClick: R,
|
|
181
|
+
onClickOutside: H,
|
|
182
|
+
onEnter: x,
|
|
183
|
+
onMouseLeave: V,
|
|
184
|
+
onMouseOver: B,
|
|
185
|
+
updateTeleportedPosition: h
|
|
129
186
|
};
|
|
130
187
|
}
|
|
131
188
|
});
|
|
132
189
|
export {
|
|
133
|
-
|
|
190
|
+
X as default
|
|
134
191
|
};
|