@quoreadmin/ui 1.10.33 → 1.11.1

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 (365) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +29 -27
  3. package/dist/index10.js +2 -2
  4. package/dist/index101.js +20 -25
  5. package/dist/index102.js +34 -0
  6. package/dist/{index103.js → index104.js} +1 -1
  7. package/dist/index106.js +147 -2
  8. package/dist/index107.js +2 -37
  9. package/dist/index108.js +39 -0
  10. package/dist/index11.js +2 -2
  11. package/dist/{index109.js → index110.js} +2 -2
  12. package/dist/{index111.js → index112.js} +1 -1
  13. package/dist/{index113.js → index114.js} +3 -3
  14. package/dist/{index115.js → index116.js} +5 -5
  15. package/dist/{index117.js → index118.js} +1 -1
  16. package/dist/index12.js +2 -2
  17. package/dist/{index119.js → index120.js} +5 -5
  18. package/dist/index13.js +2 -2
  19. package/dist/{index131.js → index132.js} +2 -2
  20. package/dist/{index136.js → index137.js} +1 -1
  21. package/dist/{index138.js → index139.js} +2 -2
  22. package/dist/index14.js +2 -2
  23. package/dist/index142.js +167 -0
  24. package/dist/{index143.js → index146.js} +1 -1
  25. package/dist/index15.js +2 -2
  26. package/dist/{index147.js → index150.js} +379 -399
  27. package/dist/{index149.js → index152.js} +1 -1
  28. package/dist/{index151.js → index154.js} +10 -10
  29. package/dist/index16.js +2 -2
  30. package/dist/index160.js +581 -86
  31. package/dist/index163.js +93 -0
  32. package/dist/index165.js +87 -356
  33. package/dist/index168.js +389 -0
  34. package/dist/index17.js +2 -2
  35. package/dist/{index167.js → index170.js} +1 -1
  36. package/dist/index172.js +205 -111
  37. package/dist/index175.js +110 -87
  38. package/dist/index176.js +478 -844
  39. package/dist/index177.js +5520 -36
  40. package/dist/index178.js +90 -279
  41. package/dist/index179.js +833 -122
  42. package/dist/index18.js +2 -2
  43. package/dist/index180.js +36 -1197
  44. package/dist/index181.js +268 -760
  45. package/dist/index182.js +146 -1304
  46. package/dist/index183.js +1151 -228
  47. package/dist/index184.js +754 -88
  48. package/dist/index185.js +1308 -2
  49. package/dist/index186.js +259 -1359
  50. package/dist/index187.js +108 -0
  51. package/dist/index188.js +2 -18
  52. package/dist/index189.js +1372 -14
  53. package/dist/index19.js +2 -2
  54. package/dist/index191.js +8 -8
  55. package/dist/index192.js +10 -17
  56. package/dist/index193.js +18 -759
  57. package/dist/index194.js +18 -1177
  58. package/dist/index195.js +22 -1231
  59. package/dist/index196.js +740 -11258
  60. package/dist/index197.js +1177 -36
  61. package/dist/index198.js +1233 -43
  62. package/dist/index199.js +11258 -1209
  63. package/dist/index2.js +2 -2
  64. package/dist/index20.js +3 -3
  65. package/dist/index200.js +38 -0
  66. package/dist/index201.js +44 -5938
  67. package/dist/index202.js +1149 -128
  68. package/dist/index204.js +5933 -13
  69. package/dist/index205.js +205 -76
  70. package/dist/index206.js +28 -246
  71. package/dist/index207.js +14 -13680
  72. package/dist/index208.js +77 -26
  73. package/dist/index209.js +245 -55
  74. package/dist/index21.js +2 -2
  75. package/dist/index210.js +13655 -209
  76. package/dist/index211.js +26 -310
  77. package/dist/index212.js +43 -277
  78. package/dist/index213.js +231 -81
  79. package/dist/index214.js +291 -387
  80. package/dist/index215.js +296 -21
  81. package/dist/index219.js +2 -2
  82. package/dist/index22.js +2 -2
  83. package/dist/index220.js +1 -1
  84. package/dist/index222.js +4 -4
  85. package/dist/index224.js +1 -1
  86. package/dist/index225.js +1 -1
  87. package/dist/index226.js +1 -1
  88. package/dist/index227.js +4 -4
  89. package/dist/index229.js +1 -1
  90. package/dist/index23.js +2 -2
  91. package/dist/index230.js +84 -157
  92. package/dist/index231.js +384 -205
  93. package/dist/index232.js +22 -37
  94. package/dist/index233.js +160 -9
  95. package/dist/index234.js +223 -156
  96. package/dist/index235.js +36 -19
  97. package/dist/index236.js +10 -20
  98. package/dist/index237.js +126 -21
  99. package/dist/index238.js +22 -183
  100. package/dist/index239.js +79 -69
  101. package/dist/index24.js +2 -2
  102. package/dist/index240.js +20 -34
  103. package/dist/index241.js +19 -39
  104. package/dist/index242.js +12 -14
  105. package/dist/index243.js +12 -14
  106. package/dist/index244.js +11 -11
  107. package/dist/index245.js +120 -795
  108. package/dist/index246.js +19 -701
  109. package/dist/index247.js +22 -176
  110. package/dist/index248.js +198 -19
  111. package/dist/index249.js +68 -18
  112. package/dist/index250.js +34 -22
  113. package/dist/index251.js +39 -19
  114. package/dist/index252.js +253 -20
  115. package/dist/index253.js +8 -3
  116. package/dist/index254.js +124 -173
  117. package/dist/index255.js +80 -130
  118. package/dist/index256.js +2 -1223
  119. package/dist/index257.js +57 -105
  120. package/dist/index258.js +13 -11
  121. package/dist/index259.js +11 -11
  122. package/dist/index26.js +2 -2
  123. package/dist/index260.js +11 -13
  124. package/dist/index261.js +819 -21
  125. package/dist/index262.js +701 -28
  126. package/dist/index263.js +176 -20
  127. package/dist/index264.js +14 -12
  128. package/dist/index265.js +20 -2
  129. package/dist/index266.js +20 -2
  130. package/dist/index267.js +3 -80
  131. package/dist/index268.js +186 -19
  132. package/dist/index269.js +132 -19
  133. package/dist/index27.js +2 -2
  134. package/dist/index270.js +1185 -215
  135. package/dist/index271.js +20 -8
  136. package/dist/index272.js +22 -138
  137. package/dist/index273.js +22 -83
  138. package/dist/index274.js +29 -3709
  139. package/dist/index275.js +20 -60
  140. package/dist/index276.js +20 -83
  141. package/dist/index277.js +2 -52
  142. package/dist/index278.js +2 -215
  143. package/dist/index279.js +3708 -9
  144. package/dist/index28.js +2 -2
  145. package/dist/index280.js +42 -39
  146. package/dist/index281.js +65 -43
  147. package/dist/index282.js +34 -36
  148. package/dist/index283.js +184 -50
  149. package/dist/index284.js +9 -727
  150. package/dist/index285.js +38 -28
  151. package/dist/index286.js +44 -47
  152. package/dist/index287.js +53 -10
  153. package/dist/index288.js +71 -695
  154. package/dist/index289.js +711 -803
  155. package/dist/index29.js +2 -2
  156. package/dist/index290.js +44 -51
  157. package/dist/index291.js +62 -77
  158. package/dist/index292.js +11 -26
  159. package/dist/index293.js +705 -22
  160. package/dist/index294.js +820 -22
  161. package/dist/index295.js +52 -14
  162. package/dist/index296.js +26 -17
  163. package/dist/index297.js +22 -23
  164. package/dist/index298.js +22 -3
  165. package/dist/index299.js +16 -27
  166. package/dist/index3.js +2 -2
  167. package/dist/index30.js +2 -2
  168. package/dist/index300.js +17 -2
  169. package/dist/index301.js +21 -77
  170. package/dist/index302.js +3 -22
  171. package/dist/index303.js +24 -932
  172. package/dist/index304.js +57 -21
  173. package/dist/index305.js +36 -19
  174. package/dist/index306.js +234 -19
  175. package/dist/index307.js +5 -68
  176. package/dist/index308.js +133 -18
  177. package/dist/index309.js +68 -19
  178. package/dist/index31.js +3 -3
  179. package/dist/index310.js +85 -20
  180. package/dist/index311.js +28 -21
  181. package/dist/index312.js +8 -62
  182. package/dist/index313.js +64 -1523
  183. package/dist/index314.js +3 -385
  184. package/dist/index315.js +2 -2731
  185. package/dist/index316.js +77 -80
  186. package/dist/index317.js +53 -3797
  187. package/dist/index318.js +4 -58
  188. package/dist/index319.js +5 -15
  189. package/dist/index32.js +2 -2
  190. package/dist/index320.js +166 -71
  191. package/dist/index321.js +57 -196
  192. package/dist/index322.js +75 -246
  193. package/dist/index323.js +1534 -37
  194. package/dist/index324.js +366 -215
  195. package/dist/index325.js +2729 -4
  196. package/dist/index326.js +83 -131
  197. package/dist/index327.js +3796 -66
  198. package/dist/index328.js +56 -83
  199. package/dist/index329.js +15 -29
  200. package/dist/index33.js +2 -2
  201. package/dist/index330.js +83 -8
  202. package/dist/index331.js +191 -64
  203. package/dist/index332.js +245 -3
  204. package/dist/index333.js +79 -2
  205. package/dist/index334.js +21 -82
  206. package/dist/index335.js +930 -49
  207. package/dist/index336.js +21 -5
  208. package/dist/index337.js +19 -4
  209. package/dist/index338.js +19 -178
  210. package/dist/index339.js +67 -61
  211. package/dist/index34.js +2 -2
  212. package/dist/index340.js +18 -74
  213. package/dist/index341.js +19 -9
  214. package/dist/index342.js +21 -12
  215. package/dist/index343.js +21 -54
  216. package/dist/index344.js +63 -12
  217. package/dist/index345.js +126 -11
  218. package/dist/index346.js +393 -52
  219. package/dist/index347.js +8 -51
  220. package/dist/index348.js +12 -30
  221. package/dist/index349.js +55 -2
  222. package/dist/index35.js +2 -2
  223. package/dist/index350.js +12 -5
  224. package/dist/index351.js +14 -2
  225. package/dist/index352.js +57 -22
  226. package/dist/index353.js +50 -39
  227. package/dist/index354.js +31 -2
  228. package/dist/index355.js +2 -11
  229. package/dist/index356.js +5 -20
  230. package/dist/index357.js +2 -10
  231. package/dist/index358.js +22 -9
  232. package/dist/index359.js +38 -14
  233. package/dist/index36.js +2 -2
  234. package/dist/index360.js +2 -2
  235. package/dist/index361.js +10 -8
  236. package/dist/index362.js +19 -9
  237. package/dist/index363.js +9 -13
  238. package/dist/index364.js +10 -20
  239. package/dist/index365.js +16 -19
  240. package/dist/index366.js +2 -64
  241. package/dist/index367.js +9 -37
  242. package/dist/index368.js +9 -20
  243. package/dist/index369.js +14 -56
  244. package/dist/index37.js +2 -2
  245. package/dist/index370.js +18 -26
  246. package/dist/index371.js +55 -6
  247. package/dist/index372.js +28 -51
  248. package/dist/index373.js +7 -6
  249. package/dist/index374.js +51 -11
  250. package/dist/index375.js +5 -6
  251. package/dist/index376.js +12 -28
  252. package/dist/index377.js +7 -2
  253. package/dist/index378.js +27 -69
  254. package/dist/index379.js +2 -167
  255. package/dist/index38.js +2 -2
  256. package/dist/index380.js +70 -17
  257. package/dist/index381.js +165 -99
  258. package/dist/index382.js +19 -90
  259. package/dist/index383.js +20 -98
  260. package/dist/index384.js +63 -12
  261. package/dist/index385.js +37 -7
  262. package/dist/index386.js +131 -28
  263. package/dist/index387.js +30 -10
  264. package/dist/index388.js +10 -3
  265. package/dist/index389.js +3 -3
  266. package/dist/index39.js +2 -2
  267. package/dist/index390.js +3 -11
  268. package/dist/index391.js +13 -5
  269. package/dist/index392.js +7 -33
  270. package/dist/index393.js +11 -30
  271. package/dist/index394.js +5 -28
  272. package/dist/index395.js +33 -61
  273. package/dist/index396.js +31 -3
  274. package/dist/index397.js +28 -2
  275. package/dist/index398.js +61 -2
  276. package/dist/index399.js +100 -16
  277. package/dist/index4.js +2 -2
  278. package/dist/index40.js +2 -2
  279. package/dist/index400.js +90 -12
  280. package/dist/index401.js +98 -6
  281. package/dist/index402.js +16 -31
  282. package/dist/index403.js +448 -0
  283. package/dist/index404.js +128 -0
  284. package/dist/index405.js +5 -0
  285. package/dist/index406.js +4 -0
  286. package/dist/index407.js +4 -0
  287. package/dist/index408.js +19 -0
  288. package/dist/index409.js +15 -0
  289. package/dist/index41.js +2 -2
  290. package/dist/index410.js +8 -0
  291. package/dist/index411.js +34 -0
  292. package/dist/index42.js +4 -29
  293. package/dist/index43.js +25 -32
  294. package/dist/index44.js +32 -37
  295. package/dist/index45.js +37 -1391
  296. package/dist/index46.js +1350 -348
  297. package/dist/index47.js +367 -145
  298. package/dist/index48.js +155 -18
  299. package/dist/index49.js +16 -42
  300. package/dist/index5.js +2 -2
  301. package/dist/index50.js +45 -5
  302. package/dist/index51.js +5 -69
  303. package/dist/index52.js +67 -61
  304. package/dist/index53.js +57 -175
  305. package/dist/index54.js +173 -77
  306. package/dist/index55.js +79 -200
  307. package/dist/index56.js +206 -68
  308. package/dist/index57.js +69 -20
  309. package/dist/index58.js +20 -11
  310. package/dist/index59.js +10 -6
  311. package/dist/index6.js +2 -2
  312. package/dist/index60.js +5 -209
  313. package/dist/index61.js +210 -12
  314. package/dist/index62.js +12 -184
  315. package/dist/index63.js +176 -68
  316. package/dist/index64.js +79 -0
  317. package/dist/index66.js +7 -91
  318. package/dist/index67.js +93 -0
  319. package/dist/index7.js +2 -2
  320. package/dist/{index74.js → index75.js} +2 -2
  321. package/dist/index79.js +38 -395
  322. package/dist/index8.js +3 -3
  323. package/dist/index80.js +419 -0
  324. package/dist/{index83.js → index84.js} +4 -4
  325. package/dist/{index85.js → index86.js} +1 -1
  326. package/dist/index88.js +23 -143
  327. package/dist/index89.js +156 -0
  328. package/dist/index9.js +2 -2
  329. package/dist/{index90.js → index91.js} +5 -5
  330. package/dist/{index92.js → index93.js} +5 -5
  331. package/dist/{index98.js → index99.js} +4 -4
  332. package/dist/src/components/popper/popper.vue.d.ts +90 -0
  333. package/dist/src/components/popper/use-popper.d.ts +37 -0
  334. package/dist/src/index.d.ts +1 -0
  335. package/package.json +2 -1
  336. package/dist/index100.js +0 -29
  337. package/dist/index105.js +0 -149
  338. package/dist/index157.js +0 -588
  339. package/dist/index162.js +0 -120
  340. package/dist/index169.js +0 -210
  341. package/dist/index173.js +0 -497
  342. package/dist/index174.js +0 -5524
  343. package/dist/index190.js +0 -20
  344. package/dist/index203.js +0 -37
  345. package/dist/index65.js +0 -9
  346. package/dist/index78.js +0 -62
  347. package/dist/index87.js +0 -36
  348. package/dist/src/components/room-details-popover/room-details-popover.d.ts +0 -2167
  349. /package/dist/{index121.js → index122.js} +0 -0
  350. /package/dist/{index123.js → index124.js} +0 -0
  351. /package/dist/{index125.js → index126.js} +0 -0
  352. /package/dist/{index127.js → index128.js} +0 -0
  353. /package/dist/{index129.js → index130.js} +0 -0
  354. /package/dist/{index134.js → index135.js} +0 -0
  355. /package/dist/{index141.js → index144.js} +0 -0
  356. /package/dist/{index145.js → index148.js} +0 -0
  357. /package/dist/{index153.js → index156.js} +0 -0
  358. /package/dist/{index155.js → index158.js} +0 -0
  359. /package/dist/{index68.js → index69.js} +0 -0
  360. /package/dist/{index70.js → index71.js} +0 -0
  361. /package/dist/{index72.js → index73.js} +0 -0
  362. /package/dist/{index76.js → index77.js} +0 -0
  363. /package/dist/{index81.js → index82.js} +0 -0
  364. /package/dist/{index94.js → index95.js} +0 -0
  365. /package/dist/{index96.js → index97.js} +0 -0
package/dist/index344.js CHANGED
@@ -1,14 +1,65 @@
1
- function p(r, e, n = 0) {
2
- return r - e - n;
3
- }
4
- function u(r, e, n = 0, t = !0) {
5
- return t ? p(e + -r, e, n) : e - (r - e) + n;
6
- }
7
- function c(r, e, n, t) {
8
- return t ? r >= e + n : r <= -n;
9
- }
1
+ import a from "./index254.js";
2
+ var l = {
3
+ root: function(e) {
4
+ var p = e.instance, n = e.props, o = e.state;
5
+ return ["p-dropdown p-component p-inputwrapper", {
6
+ "p-disabled": n.disabled,
7
+ "p-invalid": n.invalid,
8
+ "p-variant-filled": n.variant ? n.variant === "filled" : p.$primevue.config.inputStyle === "filled",
9
+ "p-dropdown-clearable": n.showClear,
10
+ "p-focus": o.focused,
11
+ "p-inputwrapper-filled": p.hasSelectedOption,
12
+ "p-inputwrapper-focus": o.focused || o.overlayVisible,
13
+ "p-overlay-open": o.overlayVisible
14
+ }];
15
+ },
16
+ input: function(e) {
17
+ var p, n = e.instance, o = e.props;
18
+ return ["p-dropdown-label p-inputtext", {
19
+ "p-placeholder": !o.editable && n.label === o.placeholder,
20
+ "p-dropdown-label-empty": !o.editable && !n.$slots.value && (n.label === "p-emptylabel" || ((p = n.label) === null || p === void 0 ? void 0 : p.length) === 0)
21
+ }];
22
+ },
23
+ clearIcon: "p-dropdown-clear-icon",
24
+ trigger: "p-dropdown-trigger",
25
+ loadingicon: "p-dropdown-trigger-icon",
26
+ dropdownIcon: "p-dropdown-trigger-icon",
27
+ panel: function(e) {
28
+ e.props;
29
+ var p = e.instance;
30
+ return ["p-dropdown-panel p-component", {
31
+ "p-ripple-disabled": p.$primevue.config.ripple === !1
32
+ }];
33
+ },
34
+ header: "p-dropdown-header",
35
+ filterContainer: "p-dropdown-filter-container",
36
+ filterInput: function(e) {
37
+ var p = e.props, n = e.instance;
38
+ return ["p-dropdown-filter p-inputtext p-component", {
39
+ "p-variant-filled": p.variant ? p.variant === "filled" : n.$primevue.config.inputStyle === "filled"
40
+ }];
41
+ },
42
+ filterIcon: "p-dropdown-filter-icon",
43
+ wrapper: "p-dropdown-items-wrapper",
44
+ list: "p-dropdown-items",
45
+ itemGroup: "p-dropdown-item-group",
46
+ itemGroupLabel: "p-dropdown-item-group-label",
47
+ item: function(e) {
48
+ var p = e.instance, n = e.props, o = e.state, t = e.option, r = e.focusedOption;
49
+ return ["p-dropdown-item", {
50
+ "p-highlight": p.isSelected(t) && n.highlightOnSelect,
51
+ "p-focus": o.focusedOptionIndex === r,
52
+ "p-disabled": p.isOptionDisabled(t)
53
+ }];
54
+ },
55
+ itemLabel: "p-dropdown-item-label",
56
+ checkIcon: "p-dropdown-check-icon",
57
+ blankIcon: "p-dropdown-blank-icon",
58
+ emptyMessage: "p-dropdown-empty-message"
59
+ }, s = a.extend({
60
+ name: "dropdown",
61
+ classes: l
62
+ });
10
63
  export {
11
- c as hasRepeatDelayElapsed,
12
- p as loopElapsed,
13
- u as reverseElapsed
64
+ s as default
14
65
  };
package/dist/index345.js CHANGED
@@ -1,16 +1,131 @@
1
- function r({ velocity: o = 0, from: n = 0, power: i = 0.8, timeConstant: s = 350, restDelta: u = 0.5, modifyTarget: c }) {
2
- const e = { done: !1, value: n };
3
- let a = i * o;
4
- const d = n + a, t = c === void 0 ? d : c(d);
5
- return t !== d && (a = t - n), {
6
- next: (p) => {
7
- const l = -a * Math.exp(-p / s);
8
- return e.done = !(l > u || l < -u), e.value = e.done ? t : t + l, e;
9
- },
10
- flipTarget: () => {
1
+ import { arrow as j, computePosition as A } from "./index346.js";
2
+ import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index346.js";
3
+ import { isNode as B, getNodeName as F } from "./index386.js";
4
+ import { getOverflowAncestors as le } from "./index386.js";
5
+ import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function V(e) {
10
+ if (z(e)) {
11
+ const l = e.$el;
12
+ return B(l) && F(l) === "#comment" ? null : l;
13
+ }
14
+ return e;
15
+ }
16
+ function i(e) {
17
+ return typeof e == "function" ? e() : q(e);
18
+ }
19
+ function K(e) {
20
+ return {
21
+ name: "arrow",
22
+ options: e,
23
+ fn(l) {
24
+ const t = V(i(e.element));
25
+ return t == null ? {} : j({
26
+ element: t,
27
+ padding: e.padding
28
+ }).fn(l);
29
+ }
30
+ };
31
+ }
32
+ function M(e) {
33
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
+ }
35
+ function C(e, l) {
36
+ const t = M(e);
37
+ return Math.round(l * t) / t;
38
+ }
39
+ function L(e, l, t) {
40
+ t === void 0 && (t = {});
41
+ const D = t.whileElementsMounted, s = r(() => {
42
+ var n;
43
+ return (n = i(t.open)) != null ? n : !0;
44
+ }), O = r(() => i(t.middleware)), p = r(() => {
45
+ var n;
46
+ return (n = i(t.placement)) != null ? n : "bottom";
47
+ }), w = r(() => {
48
+ var n;
49
+ return (n = i(t.strategy)) != null ? n : "absolute";
50
+ }), S = r(() => {
51
+ var n;
52
+ return (n = i(t.transform)) != null ? n : !0;
53
+ }), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
54
+ const n = {
55
+ position: m.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const a = C(u.value, y.value), b = C(u.value, h.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + a + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: m.value,
70
+ left: a + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let d;
75
+ function v() {
76
+ if (f.value == null || u.value == null)
77
+ return;
78
+ const n = s.value;
79
+ A(f.value, u.value, {
80
+ middleware: O.value,
81
+ placement: p.value,
82
+ strategy: w.value
83
+ }).then((a) => {
84
+ y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
85
+ });
86
+ }
87
+ function R() {
88
+ typeof d == "function" && (d(), d = void 0);
89
+ }
90
+ function N() {
91
+ if (R(), D === void 0) {
92
+ v();
93
+ return;
94
+ }
95
+ if (f.value != null && u.value != null) {
96
+ d = D(f.value, u.value, v);
97
+ return;
11
98
  }
99
+ }
100
+ function $() {
101
+ s.value || (g.value = !1);
102
+ }
103
+ return x([O, p, w, s], v, {
104
+ flush: "sync"
105
+ }), x([f, u], N, {
106
+ flush: "sync"
107
+ }), x(s, $, {
108
+ flush: "sync"
109
+ }), U() && k(R), {
110
+ x: o(y),
111
+ y: o(h),
112
+ strategy: o(m),
113
+ placement: o(P),
114
+ middlewareData: o(E),
115
+ isPositioned: o(g),
116
+ floatingStyles: _,
117
+ update: v
12
118
  };
13
119
  }
14
120
  export {
15
- r as decay
121
+ K as arrow,
122
+ W as autoUpdate,
123
+ A as computePosition,
124
+ X as flip,
125
+ le as getOverflowAncestors,
126
+ Y as hide,
127
+ Z as offset,
128
+ ee as platform,
129
+ ne as shift,
130
+ L as useFloating
16
131
  };
package/dist/index346.js CHANGED
@@ -1,60 +1,401 @@
1
- import { __rest as O } from "./index341.js";
2
- import { findSpring as T, calcAngularFreq as j } from "./index347.js";
3
- const R = ["duration", "bounce"], V = ["stiffness", "damping", "mass"];
4
- function y(i, n) {
5
- return n.some((o) => i[o] !== void 0);
6
- }
7
- function A(i) {
8
- let n = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, i);
9
- if (!y(i, V) && y(i, R)) {
10
- const o = T(i);
11
- n = Object.assign(Object.assign(Object.assign({}, n), o), { velocity: 0, mass: 1 }), n.isResolvedFromDuration = !0;
12
- }
13
- return n;
14
- }
15
- function w(i) {
16
- var { from: n = 0, to: o = 1, restSpeed: q = 2, restDelta: f } = i, F = O(i, ["from", "to", "restSpeed", "restDelta"]);
17
- const p = { done: !1, value: n };
18
- let { stiffness: h, damping: D, mass: g, velocity: d, duration: S, isResolvedFromDuration: x } = A(F), u = b, m = b;
19
- function M() {
20
- const c = d ? -(d / 1e3) : 0, r = o - n, t = D / (2 * Math.sqrt(h * g)), s = Math.sqrt(h / g) / 1e3;
21
- if (f === void 0 && (f = Math.min(Math.abs(o - n) / 100, 0.4)), t < 1) {
22
- const e = j(s, t);
23
- u = (a) => {
24
- const l = Math.exp(-t * s * a);
25
- return o - l * ((c + t * s * r) / e * Math.sin(e * a) + r * Math.cos(e * a));
26
- }, m = (a) => {
27
- const l = Math.exp(-t * s * a);
28
- return t * s * l * (Math.sin(e * a) * (c + t * s * r) / e + r * Math.cos(e * a)) - l * (Math.cos(e * a) * (c + t * s * r) - e * r * Math.sin(e * a));
29
- };
30
- } else if (t === 1)
31
- u = (e) => o - Math.exp(-s * e) * (r + (c + s * r) * e);
32
- else {
33
- const e = s * Math.sqrt(t * t - 1);
34
- u = (a) => {
35
- const l = Math.exp(-t * s * a), v = Math.min(e * a, 300);
36
- return o - l * ((c + t * s * r) * Math.sinh(v) + e * r * Math.cosh(v)) / e;
37
- };
1
+ import { offset as st, flip as rt, shift as ct, hide as lt, arrow as ft, computePosition as ut } from "./index403.js";
2
+ import { createCoords as m, rectToClientRect as J, round as A, max as E, min as V, floor as D } from "./index404.js";
3
+ import { getOverflowAncestors as z, isElement as v, getDocumentElement as b, getWindow as O, getFrameElement as U, getComputedStyle as R, isHTMLElement as T, isTopLayer as $, getParentNode as W, isLastTraversableNode as H, isTableElement as ht, isContainingBlock as Q, getContainingBlock as at, getNodeName as _, isOverflowElement as q, getNodeScroll as I, isWebKit as Y } from "./index386.js";
4
+ function Z(t) {
5
+ const e = R(t);
6
+ let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
7
+ const i = T(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = A(o) !== r || A(n) !== s;
8
+ return c && (o = r, n = s), {
9
+ width: o,
10
+ height: n,
11
+ $: c
12
+ };
13
+ }
14
+ function X(t) {
15
+ return v(t) ? t : t.contextElement;
16
+ }
17
+ function F(t) {
18
+ const e = X(t);
19
+ if (!T(e))
20
+ return m(1);
21
+ const o = e.getBoundingClientRect(), {
22
+ width: n,
23
+ height: i,
24
+ $: r
25
+ } = Z(e);
26
+ let s = (r ? A(o.width) : o.width) / n, c = (r ? A(o.height) : o.height) / i;
27
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
+ x: s,
29
+ y: c
30
+ };
31
+ }
32
+ const dt = /* @__PURE__ */ m(0);
33
+ function tt(t) {
34
+ const e = O(t);
35
+ return !Y() || !e.visualViewport ? dt : {
36
+ x: e.visualViewport.offsetLeft,
37
+ y: e.visualViewport.offsetTop
38
+ };
39
+ }
40
+ function gt(t, e, o) {
41
+ return e === void 0 && (e = !1), !o || e && o !== O(t) ? !1 : e;
42
+ }
43
+ function L(t, e, o, n) {
44
+ e === void 0 && (e = !1), o === void 0 && (o = !1);
45
+ const i = t.getBoundingClientRect(), r = X(t);
46
+ let s = m(1);
47
+ e && (n ? v(n) && (s = F(n)) : s = F(t));
48
+ const c = gt(r, o, n) ? tt(r) : m(0);
49
+ let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, u = i.width / s.x, a = i.height / s.y;
50
+ if (r) {
51
+ const d = O(r), h = n && v(n) ? O(n) : n;
52
+ let w = d, p = U(w);
53
+ for (; p && n && h !== w; ) {
54
+ const y = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * y.x, S = g.top + (p.clientTop + parseFloat(x.paddingTop)) * y.y;
55
+ l *= y.x, f *= y.y, u *= y.x, a *= y.y, l += C, f += S, w = O(p), p = U(w);
38
56
  }
39
57
  }
40
- return M(), {
41
- next: (c) => {
42
- const r = u(c);
43
- if (x)
44
- p.done = c >= S;
45
- else {
46
- const t = m(c) * 1e3, s = Math.abs(t) <= q, e = Math.abs(o - r) <= f;
47
- p.done = s && e;
58
+ return J({
59
+ width: u,
60
+ height: a,
61
+ x: l,
62
+ y: f
63
+ });
64
+ }
65
+ function M(t, e) {
66
+ const o = I(t).scrollLeft;
67
+ return e ? e.left + o : L(b(t)).left + o;
68
+ }
69
+ function et(t, e) {
70
+ const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - M(t, o), i = o.top + e.scrollTop;
71
+ return {
72
+ x: n,
73
+ y: i
74
+ };
75
+ }
76
+ function pt(t) {
77
+ let {
78
+ elements: e,
79
+ rect: o,
80
+ offsetParent: n,
81
+ strategy: i
82
+ } = t;
83
+ const r = i === "fixed", s = b(n), c = e ? $(e.floating) : !1;
84
+ if (n === s || c && r)
85
+ return o;
86
+ let l = {
87
+ scrollLeft: 0,
88
+ scrollTop: 0
89
+ }, f = m(1);
90
+ const u = m(0), a = T(n);
91
+ if ((a || !a && !r) && ((_(n) !== "body" || q(s)) && (l = I(n)), a)) {
92
+ const h = L(n);
93
+ f = F(n), u.x = h.x + n.clientLeft, u.y = h.y + n.clientTop;
94
+ }
95
+ const d = s && !a && !r ? et(s, l) : m(0);
96
+ return {
97
+ width: o.width * f.x,
98
+ height: o.height * f.y,
99
+ x: o.x * f.x - l.scrollLeft * f.x + u.x + d.x,
100
+ y: o.y * f.y - l.scrollTop * f.y + u.y + d.y
101
+ };
102
+ }
103
+ function wt(t) {
104
+ return Array.from(t.getClientRects());
105
+ }
106
+ function yt(t) {
107
+ const e = b(t), o = I(t), n = t.ownerDocument.body, i = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
108
+ let s = -o.scrollLeft + M(t);
109
+ const c = -o.scrollTop;
110
+ return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - i), {
111
+ width: i,
112
+ height: r,
113
+ x: s,
114
+ y: c
115
+ };
116
+ }
117
+ const K = 25;
118
+ function mt(t, e) {
119
+ const o = O(t), n = b(t), i = o.visualViewport;
120
+ let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
121
+ if (i) {
122
+ r = i.width, s = i.height;
123
+ const u = Y();
124
+ (!u || u && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
125
+ }
126
+ const f = M(n);
127
+ if (f <= 0) {
128
+ const u = n.ownerDocument, a = u.body, d = getComputedStyle(a), h = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, w = Math.abs(n.clientWidth - a.clientWidth - h);
129
+ w <= K && (r -= w);
130
+ } else f <= K && (r += f);
131
+ return {
132
+ width: r,
133
+ height: s,
134
+ x: c,
135
+ y: l
136
+ };
137
+ }
138
+ function xt(t, e) {
139
+ const o = L(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = T(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = n * r.y;
140
+ return {
141
+ width: s,
142
+ height: c,
143
+ x: l,
144
+ y: f
145
+ };
146
+ }
147
+ function j(t, e, o) {
148
+ let n;
149
+ if (e === "viewport")
150
+ n = mt(t, o);
151
+ else if (e === "document")
152
+ n = yt(b(t));
153
+ else if (v(e))
154
+ n = xt(e, o);
155
+ else {
156
+ const i = tt(t);
157
+ n = {
158
+ x: e.x - i.x,
159
+ y: e.y - i.y,
160
+ width: e.width,
161
+ height: e.height
162
+ };
163
+ }
164
+ return J(n);
165
+ }
166
+ function ot(t, e) {
167
+ const o = W(t);
168
+ return o === e || !v(o) || H(o) ? !1 : R(o).position === "fixed" || ot(o, e);
169
+ }
170
+ function vt(t, e) {
171
+ const o = e.get(t);
172
+ if (o)
173
+ return o;
174
+ let n = z(t, [], !1).filter((c) => v(c) && _(c) !== "body"), i = null;
175
+ const r = R(t).position === "fixed";
176
+ let s = r ? W(t) : t;
177
+ for (; v(s) && !H(s); ) {
178
+ const c = R(s), l = Q(s);
179
+ !l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || q(s) && !l && ot(t, s)) ? n = n.filter((u) => u !== s) : i = c, s = W(s);
180
+ }
181
+ return e.set(t, n), n;
182
+ }
183
+ function Rt(t) {
184
+ let {
185
+ element: e,
186
+ boundary: o,
187
+ rootBoundary: n,
188
+ strategy: i
189
+ } = t;
190
+ const s = [...o === "clippingAncestors" ? $(e) ? [] : vt(e, this._c) : [].concat(o), n], c = j(e, s[0], i);
191
+ let l = c.top, f = c.right, u = c.bottom, a = c.left;
192
+ for (let d = 1; d < s.length; d++) {
193
+ const h = j(e, s[d], i);
194
+ l = E(h.top, l), f = V(h.right, f), u = V(h.bottom, u), a = E(h.left, a);
195
+ }
196
+ return {
197
+ width: f - a,
198
+ height: u - l,
199
+ x: a,
200
+ y: l
201
+ };
202
+ }
203
+ function bt(t) {
204
+ const {
205
+ width: e,
206
+ height: o
207
+ } = Z(t);
208
+ return {
209
+ width: e,
210
+ height: o
211
+ };
212
+ }
213
+ function Ct(t, e, o) {
214
+ const n = T(e), i = b(e), r = o === "fixed", s = L(t, !0, r, e);
215
+ let c = {
216
+ scrollLeft: 0,
217
+ scrollTop: 0
218
+ };
219
+ const l = m(0);
220
+ function f() {
221
+ l.x = M(i);
222
+ }
223
+ if (n || !n && !r)
224
+ if ((_(e) !== "body" || q(i)) && (c = I(e)), n) {
225
+ const h = L(e, !0, r, e);
226
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
227
+ } else i && f();
228
+ r && !n && i && f();
229
+ const u = i && !n && !r ? et(i, c) : m(0), a = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
230
+ return {
231
+ x: a,
232
+ y: d,
233
+ width: s.width,
234
+ height: s.height
235
+ };
236
+ }
237
+ function N(t) {
238
+ return R(t).position === "static";
239
+ }
240
+ function G(t, e) {
241
+ if (!T(t) || R(t).position === "fixed")
242
+ return null;
243
+ if (e)
244
+ return e(t);
245
+ let o = t.offsetParent;
246
+ return b(t) === o && (o = o.ownerDocument.body), o;
247
+ }
248
+ function nt(t, e) {
249
+ const o = O(t);
250
+ if ($(t))
251
+ return o;
252
+ if (!T(t)) {
253
+ let i = W(t);
254
+ for (; i && !H(i); ) {
255
+ if (v(i) && !N(i))
256
+ return i;
257
+ i = W(i);
258
+ }
259
+ return o;
260
+ }
261
+ let n = G(t, e);
262
+ for (; n && ht(n) && N(n); )
263
+ n = G(n, e);
264
+ return n && H(n) && N(n) && !Q(n) ? o : n || at(t) || o;
265
+ }
266
+ const Ot = async function(t) {
267
+ const e = this.getOffsetParent || nt, o = this.getDimensions, n = await o(t.floating);
268
+ return {
269
+ reference: Ct(t.reference, await e(t.floating), t.strategy),
270
+ floating: {
271
+ x: 0,
272
+ y: 0,
273
+ width: n.width,
274
+ height: n.height
275
+ }
276
+ };
277
+ };
278
+ function Lt(t) {
279
+ return R(t).direction === "rtl";
280
+ }
281
+ const Tt = {
282
+ convertOffsetParentRelativeRectToViewportRelativeRect: pt,
283
+ getDocumentElement: b,
284
+ getClippingRect: Rt,
285
+ getOffsetParent: nt,
286
+ getElementRects: Ot,
287
+ getClientRects: wt,
288
+ getDimensions: bt,
289
+ getScale: F,
290
+ isElement: v,
291
+ isRTL: Lt
292
+ };
293
+ function it(t, e) {
294
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
295
+ }
296
+ function Et(t, e) {
297
+ let o = null, n;
298
+ const i = b(t);
299
+ function r() {
300
+ var c;
301
+ clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
302
+ }
303
+ function s(c, l) {
304
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
305
+ const f = t.getBoundingClientRect(), {
306
+ left: u,
307
+ top: a,
308
+ width: d,
309
+ height: h
310
+ } = f;
311
+ if (c || e(), !d || !h)
312
+ return;
313
+ const w = D(a), p = D(i.clientWidth - (u + d)), y = D(i.clientHeight - (a + h)), g = D(u), C = {
314
+ rootMargin: -w + "px " + -p + "px " + -y + "px " + -g + "px",
315
+ threshold: E(0, V(1, l)) || 1
316
+ };
317
+ let S = !0;
318
+ function k(P) {
319
+ const B = P[0].intersectionRatio;
320
+ if (B !== l) {
321
+ if (!S)
322
+ return s();
323
+ B ? s(!1, B) : n = setTimeout(() => {
324
+ s(!1, 1e-7);
325
+ }, 1e3);
48
326
  }
49
- return p.value = p.done ? o : r, p;
50
- },
51
- flipTarget: () => {
52
- d = -d, [n, o] = [o, n], M();
327
+ B === 1 && !it(f, t.getBoundingClientRect()) && s(), S = !1;
53
328
  }
329
+ try {
330
+ o = new IntersectionObserver(k, {
331
+ ...C,
332
+ // Handle <iframe>s
333
+ root: i.ownerDocument
334
+ });
335
+ } catch {
336
+ o = new IntersectionObserver(k, C);
337
+ }
338
+ o.observe(t);
339
+ }
340
+ return s(!0), r;
341
+ }
342
+ function Bt(t, e, o, n) {
343
+ n === void 0 && (n = {});
344
+ const {
345
+ ancestorScroll: i = !0,
346
+ ancestorResize: r = !0,
347
+ elementResize: s = typeof ResizeObserver == "function",
348
+ layoutShift: c = typeof IntersectionObserver == "function",
349
+ animationFrame: l = !1
350
+ } = n, f = X(t), u = i || r ? [...f ? z(f) : [], ...e ? z(e) : []] : [];
351
+ u.forEach((g) => {
352
+ i && g.addEventListener("scroll", o, {
353
+ passive: !0
354
+ }), r && g.addEventListener("resize", o);
355
+ });
356
+ const a = f && c ? Et(f, o) : null;
357
+ let d = -1, h = null;
358
+ s && (h = new ResizeObserver((g) => {
359
+ let [x] = g;
360
+ x && x.target === f && h && e && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
361
+ var C;
362
+ (C = h) == null || C.observe(e);
363
+ })), o();
364
+ }), f && !l && h.observe(f), e && h.observe(e));
365
+ let w, p = l ? L(t) : null;
366
+ l && y();
367
+ function y() {
368
+ const g = L(t);
369
+ p && !it(p, g) && o(), p = g, w = requestAnimationFrame(y);
370
+ }
371
+ return o(), () => {
372
+ var g;
373
+ u.forEach((x) => {
374
+ i && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
375
+ }), a?.(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(w);
54
376
  };
55
377
  }
56
- w.needsInterpolation = (i, n) => typeof i == "string" || typeof n == "string";
57
- const b = (i) => 0;
378
+ const Dt = st, At = ct, Ht = rt, It = lt, Mt = ft, Nt = (t, e, o) => {
379
+ const n = /* @__PURE__ */ new Map(), i = {
380
+ platform: Tt,
381
+ ...o
382
+ }, r = {
383
+ ...i.platform,
384
+ _c: n
385
+ };
386
+ return ut(t, e, {
387
+ ...i,
388
+ platform: r
389
+ });
390
+ };
58
391
  export {
59
- w as spring
392
+ Mt as arrow,
393
+ Bt as autoUpdate,
394
+ Nt as computePosition,
395
+ Ht as flip,
396
+ z as getOverflowAncestors,
397
+ It as hide,
398
+ Dt as offset,
399
+ Tt as platform,
400
+ At as shift
60
401
  };