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