@quoreadmin/ui 1.8.1 → 1.8.2

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 (239) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index10.js +1 -1
  3. package/dist/index11.js +1 -1
  4. package/dist/index12.js +17 -17
  5. package/dist/index127.js +2 -2
  6. package/dist/index13.js +3 -3
  7. package/dist/index14.js +2 -2
  8. package/dist/index15.js +1 -1
  9. package/dist/index16.js +15 -15
  10. package/dist/index161.js +1 -1
  11. package/dist/index17.js +1 -1
  12. package/dist/index174.js +17 -17
  13. package/dist/index175.js +7 -7
  14. package/dist/index176.js +4 -4
  15. package/dist/index178.js +19 -19
  16. package/dist/index18.js +3 -3
  17. package/dist/index185.js +11 -11
  18. package/dist/index187.js +4 -4
  19. package/dist/index189.js +17 -17
  20. package/dist/index19.js +1 -1
  21. package/dist/index192.js +17 -17
  22. package/dist/index193.js +7 -7
  23. package/dist/index194.js +1 -1
  24. package/dist/index195.js +1 -1
  25. package/dist/index196.js +1 -1
  26. package/dist/index199.js +1 -1
  27. package/dist/index2.js +11 -11
  28. package/dist/index20.js +5 -5
  29. package/dist/index202.js +1 -1
  30. package/dist/index203.js +81 -78
  31. package/dist/index204.js +88 -81
  32. package/dist/index205.js +84 -29
  33. package/dist/index206.js +400 -109
  34. package/dist/index207.js +22 -36
  35. package/dist/index208.js +161 -26
  36. package/dist/index209.js +19 -35
  37. package/dist/index21.js +5 -5
  38. package/dist/index210.js +20 -9
  39. package/dist/index211.js +21 -18
  40. package/dist/index212.js +199 -10
  41. package/dist/index213.js +70 -10
  42. package/dist/index214.js +34 -51
  43. package/dist/index215.js +37 -40
  44. package/dist/index216.js +160 -3
  45. package/dist/index217.js +223 -34
  46. package/dist/index218.js +37 -21
  47. package/dist/index219.js +10 -161
  48. package/dist/index22.js +5 -5
  49. package/dist/index220.js +32 -19
  50. package/dist/index221.js +115 -19
  51. package/dist/index222.js +35 -21
  52. package/dist/index223.js +26 -199
  53. package/dist/index224.js +35 -69
  54. package/dist/index225.js +49 -86
  55. package/dist/index226.js +39 -403
  56. package/dist/index227.js +4 -34
  57. package/dist/index228.js +9 -40
  58. package/dist/index229.js +18 -160
  59. package/dist/index23.js +3 -3
  60. package/dist/index230.js +10 -228
  61. package/dist/index231.js +10 -37
  62. package/dist/index232.js +39 -10
  63. package/dist/index233.js +21 -22
  64. package/dist/index234.js +2 -2
  65. package/dist/index235.js +3 -3
  66. package/dist/index236.js +1 -1
  67. package/dist/index237.js +3 -3
  68. package/dist/index238.js +3 -3
  69. package/dist/index239.js +3 -3
  70. package/dist/index24.js +3 -3
  71. package/dist/index240.js +3 -3
  72. package/dist/index241.js +3 -3
  73. package/dist/index242.js +3 -3
  74. package/dist/index243.js +3 -3
  75. package/dist/index244.js +9 -9
  76. package/dist/index245.js +11 -11
  77. package/dist/index246.js +1 -1
  78. package/dist/index247.js +3 -3
  79. package/dist/index248.js +3 -3
  80. package/dist/index249.js +3 -3
  81. package/dist/index25.js +3 -3
  82. package/dist/index251.js +3 -3
  83. package/dist/index252.js +4 -4
  84. package/dist/index253.js +25 -25
  85. package/dist/index254.js +3 -3
  86. package/dist/index255.js +3 -3
  87. package/dist/index256.js +3 -3
  88. package/dist/index257.js +3 -3
  89. package/dist/index258.js +3 -3
  90. package/dist/index259.js +3 -3
  91. package/dist/index26.js +1 -1
  92. package/dist/index262.js +35 -31
  93. package/dist/index263.js +1 -1
  94. package/dist/index264.js +1 -1
  95. package/dist/index27.js +11 -11
  96. package/dist/index272.js +136 -133
  97. package/dist/index273.js +14 -11
  98. package/dist/index277.js +2 -2
  99. package/dist/index278.js +249 -50
  100. package/dist/index279.js +8 -79
  101. package/dist/index28.js +5 -5
  102. package/dist/index280.js +138 -26
  103. package/dist/index281.js +83 -22
  104. package/dist/index282.js +53 -21
  105. package/dist/index283.js +78 -15
  106. package/dist/index284.js +26 -17
  107. package/dist/index285.js +22 -253
  108. package/dist/index286.js +22 -8
  109. package/dist/index287.js +15 -137
  110. package/dist/index288.js +17 -83
  111. package/dist/index289.js +1 -1
  112. package/dist/index29.js +1 -1
  113. package/dist/index290.js +2 -3
  114. package/dist/index291.js +257 -22
  115. package/dist/index292.js +6 -2
  116. package/dist/index293.js +133 -255
  117. package/dist/index294.js +71 -4
  118. package/dist/index295.js +77 -130
  119. package/dist/index296.js +26 -70
  120. package/dist/index297.js +13 -84
  121. package/dist/index298.js +72 -26
  122. package/dist/index299.js +3 -15
  123. package/dist/index3.js +7 -7
  124. package/dist/index30.js +1 -1
  125. package/dist/index300.js +2 -75
  126. package/dist/index301.js +82 -3
  127. package/dist/index302.js +53 -2
  128. package/dist/index303.js +5 -82
  129. package/dist/index304.js +4 -52
  130. package/dist/index305.js +178 -5
  131. package/dist/index306.js +62 -4
  132. package/dist/index307.js +74 -178
  133. package/dist/index308.js +1525 -54
  134. package/dist/index309.js +385 -74
  135. package/dist/index31.js +1 -1
  136. package/dist/index310.js +2731 -79
  137. package/dist/index311.js +85 -21
  138. package/dist/index312.js +3751 -894
  139. package/dist/index313.js +59 -21
  140. package/dist/index314.js +15 -20
  141. package/dist/index315.js +83 -19
  142. package/dist/index316.js +194 -61
  143. package/dist/index317.js +246 -19
  144. package/dist/index318.js +76 -16
  145. package/dist/index319.js +16 -16
  146. package/dist/index32.js +9 -9
  147. package/dist/index320.js +935 -22
  148. package/dist/index321.js +22 -63
  149. package/dist/index322.js +20 -1518
  150. package/dist/index323.js +20 -386
  151. package/dist/index324.js +69 -2731
  152. package/dist/index325.js +19 -86
  153. package/dist/index326.js +19 -3770
  154. package/dist/index327.js +21 -59
  155. package/dist/index328.js +22 -15
  156. package/dist/index329.js +63 -84
  157. package/dist/index33.js +4 -4
  158. package/dist/index330.js +3 -202
  159. package/dist/index331.js +21 -240
  160. package/dist/index332.js +1 -1
  161. package/dist/index333.js +18 -8
  162. package/dist/index334.js +56 -12
  163. package/dist/index335.js +27 -53
  164. package/dist/index336.js +6 -11
  165. package/dist/index337.js +50 -12
  166. package/dist/index338.js +7 -58
  167. package/dist/index339.js +10 -50
  168. package/dist/index34.js +5 -5
  169. package/dist/index340.js +7 -31
  170. package/dist/index341.js +28 -2
  171. package/dist/index342.js +2 -5
  172. package/dist/index343.js +70 -2
  173. package/dist/index344.js +165 -21
  174. package/dist/index345.js +19 -40
  175. package/dist/index346.js +20 -2
  176. package/dist/index347.js +64 -11
  177. package/dist/index348.js +36 -19
  178. package/dist/index349.js +8 -16
  179. package/dist/index35.js +8 -8
  180. package/dist/index350.js +13 -10
  181. package/dist/index351.js +55 -10
  182. package/dist/index352.js +12 -2
  183. package/dist/index353.js +14 -9
  184. package/dist/index354.js +57 -9
  185. package/dist/index355.js +52 -14
  186. package/dist/index356.js +28 -16
  187. package/dist/index357.js +2 -57
  188. package/dist/index358.js +5 -29
  189. package/dist/index359.js +2 -7
  190. package/dist/index36.js +2 -2
  191. package/dist/index360.js +21 -50
  192. package/dist/index361.js +40 -6
  193. package/dist/index362.js +2 -12
  194. package/dist/index363.js +10 -6
  195. package/dist/index364.js +20 -28
  196. package/dist/index365.js +10 -2
  197. package/dist/index366.js +9 -69
  198. package/dist/index367.js +15 -165
  199. package/dist/index368.js +2 -20
  200. package/dist/index369.js +9 -20
  201. package/dist/index37.js +2 -2
  202. package/dist/index370.js +9 -63
  203. package/dist/index371.js +14 -37
  204. package/dist/index372.js +1 -1
  205. package/dist/index373.js +3 -3
  206. package/dist/index378.js +1 -1
  207. package/dist/index38.js +2 -2
  208. package/dist/index380.js +1 -1
  209. package/dist/index381.js +6 -6
  210. package/dist/index382.js +3 -3
  211. package/dist/index384.js +97 -16
  212. package/dist/index386.js +17 -91
  213. package/dist/index387.js +91 -98
  214. package/dist/index39.js +4 -4
  215. package/dist/index393.js +1 -1
  216. package/dist/index394.js +2 -2
  217. package/dist/index4.js +5 -5
  218. package/dist/index40.js +7 -7
  219. package/dist/index41.js +7 -7
  220. package/dist/index42.js +5 -5
  221. package/dist/index43.js +5 -5
  222. package/dist/index44.js +1 -1
  223. package/dist/index45.js +1 -1
  224. package/dist/index46.js +1 -1
  225. package/dist/index47.js +2 -2
  226. package/dist/index48.js +5 -5
  227. package/dist/index49.js +1 -1
  228. package/dist/index5.js +2 -2
  229. package/dist/index50.js +3 -3
  230. package/dist/index51.js +1 -1
  231. package/dist/index52.js +3 -3
  232. package/dist/index53.js +1 -1
  233. package/dist/index6.js +3 -3
  234. package/dist/index7.js +4 -4
  235. package/dist/index8.js +4 -4
  236. package/dist/index9.js +1 -1
  237. package/dist/src/components/data-table/data-table.d.ts +4 -4
  238. package/dist/src/views/tables.vue.d.ts +4 -4
  239. package/package.json +1 -1
package/dist/index221.js CHANGED
@@ -1,22 +1,118 @@
1
- import r from "./index279.js";
2
- import { createElementBlock as t, openBlock as o, mergeProps as C, createElementVNode as n } from "vue";
3
- var i = {
4
- name: "TimesIcon",
5
- extends: r
6
- }, p = /* @__PURE__ */ n("path", {
7
- d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
8
- fill: "currentColor"
9
- }, null, -1), s = [p];
10
- function l(e, a, c, d, m, h) {
11
- return o(), t("svg", C({
12
- width: "14",
13
- height: "14",
14
- viewBox: "0 0 14 14",
15
- fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg"
17
- }, e.pti()), s, 16);
1
+ import { toArray as p, notNullish as x, noop as M, tryOnScopeDispose as g, watchImmediate as S, isClient as W, isObject as A } from "./index222.js";
2
+ import { getLifeCycleTarget as q, tryOnUnmounted as z } from "./index222.js";
3
+ import { toValue as a, computed as y, shallowRef as I, watch as T, unref as j, getCurrentInstance as w, onMounted as B } from "vue";
4
+ const C = W ? window : void 0;
5
+ function d(t) {
6
+ var o;
7
+ const l = a(t);
8
+ return (o = l?.$el) != null ? o : l;
9
+ }
10
+ function U(...t) {
11
+ const o = [], l = () => {
12
+ o.forEach((e) => e()), o.length = 0;
13
+ }, h = (e, n, u, r) => (e.addEventListener(n, u, r), () => e.removeEventListener(n, u, r)), c = y(() => {
14
+ const e = p(a(t[0])).filter((n) => n != null);
15
+ return e.every((n) => typeof n != "string") ? e : void 0;
16
+ }), m = S(
17
+ () => {
18
+ var e, n;
19
+ return [
20
+ (n = (e = c.value) == null ? void 0 : e.map((u) => d(u))) != null ? n : [C].filter((u) => u != null),
21
+ p(a(c.value ? t[1] : t[0])),
22
+ p(j(c.value ? t[2] : t[1])),
23
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
24
+ a(c.value ? t[3] : t[2])
25
+ ];
26
+ },
27
+ ([e, n, u, r]) => {
28
+ if (l(), !e?.length || !n?.length || !u?.length)
29
+ return;
30
+ const s = A(r) ? { ...r } : r;
31
+ o.push(
32
+ ...e.flatMap(
33
+ (b) => n.flatMap(
34
+ (v) => u.map((i) => h(b, v, i, s))
35
+ )
36
+ )
37
+ );
38
+ },
39
+ { flush: "post" }
40
+ ), f = () => {
41
+ m(), l();
42
+ };
43
+ return g(l), f;
44
+ }
45
+ // @__NO_SIDE_EFFECTS__
46
+ function D() {
47
+ const t = I(!1), o = w();
48
+ return o && B(() => {
49
+ t.value = !0;
50
+ }, o), t;
51
+ }
52
+ // @__NO_SIDE_EFFECTS__
53
+ function N(t) {
54
+ const o = /* @__PURE__ */ D();
55
+ return y(() => (o.value, !!t()));
56
+ }
57
+ function V(t, o, l = {}) {
58
+ const {
59
+ root: h,
60
+ rootMargin: c = "0px",
61
+ threshold: m = 0,
62
+ window: f = C,
63
+ immediate: e = !0
64
+ } = l, n = /* @__PURE__ */ N(() => f && "IntersectionObserver" in f), u = y(() => {
65
+ const i = a(t);
66
+ return p(i).map(d).filter(x);
67
+ });
68
+ let r = M;
69
+ const s = I(e), b = n.value ? T(
70
+ () => [u.value, d(h), s.value],
71
+ ([i, L]) => {
72
+ if (r(), !s.value || !i.length)
73
+ return;
74
+ const E = new IntersectionObserver(
75
+ o,
76
+ {
77
+ root: d(L),
78
+ rootMargin: c,
79
+ threshold: m
80
+ }
81
+ );
82
+ i.forEach((O) => O && E.observe(O)), r = () => {
83
+ E.disconnect(), r = M;
84
+ };
85
+ },
86
+ { immediate: e, flush: "post" }
87
+ ) : M, v = () => {
88
+ r(), b(), s.value = !1;
89
+ };
90
+ return g(v), {
91
+ isSupported: n,
92
+ isActive: s,
93
+ pause() {
94
+ r(), s.value = !1;
95
+ },
96
+ resume() {
97
+ s.value = !0;
98
+ },
99
+ stop: v
100
+ };
18
101
  }
19
- i.render = l;
20
102
  export {
21
- i as default
103
+ C as defaultWindow,
104
+ q as getLifeCycleTarget,
105
+ W as isClient,
106
+ A as isObject,
107
+ M as noop,
108
+ x as notNullish,
109
+ p as toArray,
110
+ g as tryOnScopeDispose,
111
+ z as tryOnUnmounted,
112
+ d as unrefElement,
113
+ U as useEventListener,
114
+ V as useIntersectionObserver,
115
+ D as useMounted,
116
+ N as useSupported,
117
+ S as watchImmediate
22
118
  };
package/dist/index222.js CHANGED
@@ -1,24 +1,38 @@
1
- import e from "./index279.js";
2
- import { createElementBlock as r, openBlock as o, mergeProps as t, createElementVNode as l } from "vue";
3
- var n = {
4
- name: "UploadIcon",
5
- extends: e
6
- }, i = /* @__PURE__ */ l("path", {
7
- "fill-rule": "evenodd",
8
- "clip-rule": "evenodd",
9
- d: "M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z",
10
- fill: "currentColor"
11
- }, null, -1), p = [i];
12
- function d(C, a, s, c, m, h) {
13
- return o(), r("svg", t({
14
- width: "14",
15
- height: "14",
16
- viewBox: "0 0 14 14",
17
- fill: "none",
18
- xmlns: "http://www.w3.org/2000/svg"
19
- }, C.pti()), p, 16);
1
+ import { onUnmounted as o, getCurrentInstance as r, getCurrentScope as c, onScopeDispose as i, watch as s } from "vue";
2
+ function p(t) {
3
+ return c() ? (i(t), !0) : !1;
4
+ }
5
+ const l = typeof window < "u" && typeof document < "u";
6
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7
+ const d = (t) => t != null, u = Object.prototype.toString, y = (t) => u.call(t) === "[object Object]", m = () => {
8
+ };
9
+ function g(t) {
10
+ return Array.isArray(t) ? t : [t];
11
+ }
12
+ function f(t) {
13
+ return r();
14
+ }
15
+ function b(t, n) {
16
+ f() && o(t, n);
17
+ }
18
+ function S(t, n, e) {
19
+ return s(
20
+ t,
21
+ n,
22
+ {
23
+ ...e,
24
+ immediate: !0
25
+ }
26
+ );
20
27
  }
21
- n.render = d;
22
28
  export {
23
- n as default
29
+ f as getLifeCycleTarget,
30
+ l as isClient,
31
+ y as isObject,
32
+ m as noop,
33
+ d as notNullish,
34
+ g as toArray,
35
+ p as tryOnScopeDispose,
36
+ b as tryOnUnmounted,
37
+ S as watchImmediate
24
38
  };
package/dist/index223.js CHANGED
@@ -1,201 +1,28 @@
1
- import f from "./index248.js";
2
- import y from "./index280.js";
3
- import b from "./index281.js";
4
- import P from "./index221.js";
5
- import d from "./index282.js";
6
- import S from "./index225.js";
7
- import $ from "./index226.js";
8
- import C from "./index283.js";
9
- import { resolveComponent as j, resolveDirective as k, createBlock as p, openBlock as s, Transition as D, mergeProps as n, withCtx as B, withDirectives as v, createElementVNode as g, renderSlot as a, createElementBlock as m, createCommentVNode as A, resolveDynamicComponent as T, vShow as E } from "vue";
10
- var N = {
11
- name: "BaseMessage",
12
- extends: $,
13
- props: {
14
- severity: {
15
- type: String,
16
- default: "info"
17
- },
18
- closable: {
19
- type: Boolean,
20
- default: !0
21
- },
22
- sticky: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- life: {
27
- type: Number,
28
- default: 3e3
29
- },
30
- icon: {
31
- type: String,
32
- default: void 0
33
- },
34
- closeIcon: {
35
- type: String,
36
- default: void 0
37
- },
38
- closeButtonProps: {
39
- type: null,
40
- default: null
41
- }
42
- },
43
- style: C,
44
- provide: function() {
45
- return {
46
- $parentInstance: this
47
- };
48
- }
49
- }, L = {
50
- name: "Message",
51
- extends: N,
52
- inheritAttrs: !1,
53
- emits: ["close", "life-end"],
54
- timeout: null,
55
- data: function() {
56
- return {
57
- visible: !0
58
- };
59
- },
60
- watch: {
61
- sticky: function(t) {
62
- t || this.closeAfterDelay();
63
- }
64
- },
65
- mounted: function() {
66
- this.sticky || this.closeAfterDelay();
67
- },
68
- methods: {
69
- close: function(t) {
70
- this.visible = !1, this.$emit("close", t);
71
- },
72
- closeAfterDelay: function() {
73
- var t = this;
74
- setTimeout(function() {
75
- t.visible = !1, t.$emit("life-end");
76
- }, this.life);
77
- }
78
- },
79
- computed: {
80
- iconComponent: function() {
81
- return {
82
- info: b,
83
- success: f,
84
- warn: y,
85
- error: d
86
- }[this.severity];
87
- },
88
- closeAriaLabel: function() {
89
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : void 0;
90
- }
91
- },
92
- directives: {
93
- ripple: S
94
- },
95
- components: {
96
- TimesIcon: P,
97
- InfoCircleIcon: b,
98
- CheckIcon: f,
99
- ExclamationTriangleIcon: y,
100
- TimesCircleIcon: d
101
- }
102
- };
103
- function c(e) {
104
- "@babel/helpers - typeof";
105
- return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
106
- return typeof t;
107
- } : function(t) {
108
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
109
- }, c(e);
110
- }
111
- function h(e, t) {
112
- var o = Object.keys(e);
113
- if (Object.getOwnPropertySymbols) {
114
- var r = Object.getOwnPropertySymbols(e);
115
- t && (r = r.filter(function(u) {
116
- return Object.getOwnPropertyDescriptor(e, u).enumerable;
117
- })), o.push.apply(o, r);
118
- }
119
- return o;
120
- }
121
- function i(e) {
122
- for (var t = 1; t < arguments.length; t++) {
123
- var o = arguments[t] != null ? arguments[t] : {};
124
- t % 2 ? h(Object(o), !0).forEach(function(r) {
125
- M(e, r, o[r]);
126
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : h(Object(o)).forEach(function(r) {
127
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
128
- });
129
- }
130
- return e;
131
- }
132
- function M(e, t, o) {
133
- return t = K(t), t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
134
- }
135
- function K(e) {
136
- var t = V(e, "string");
137
- return c(t) == "symbol" ? t : String(t);
138
- }
139
- function V(e, t) {
140
- if (c(e) != "object" || !e) return e;
141
- var o = e[Symbol.toPrimitive];
142
- if (o !== void 0) {
143
- var r = o.call(e, t);
144
- if (c(r) != "object") return r;
145
- throw new TypeError("@@toPrimitive must return a primitive value.");
146
- }
147
- return (t === "string" ? String : Number)(e);
148
- }
149
- var R = ["aria-label"];
150
- function q(e, t, o, r, u, l) {
151
- var I = j("TimesIcon"), O = k("ripple");
152
- return s(), p(D, n({
153
- name: "p-message",
154
- appear: ""
155
- }, e.ptmi("transition")), {
156
- default: B(function() {
157
- return [v(g("div", n({
158
- class: e.cx("root"),
159
- role: "alert",
160
- "aria-live": "assertive",
161
- "aria-atomic": "true"
162
- }, e.ptm("root")), [e.$slots.container ? a(e.$slots, "container", {
163
- key: 0,
164
- onClose: l.close,
165
- closeCallback: l.close
166
- }) : (s(), m("div", n({
167
- key: 1,
168
- class: e.cx("wrapper")
169
- }, e.ptm("wrapper")), [a(e.$slots, "messageicon", {
170
- class: "p-message-icon"
171
- }, function() {
172
- return [(s(), p(T(e.icon ? "span" : l.iconComponent), n({
173
- class: [e.cx("icon"), e.icon]
174
- }, e.ptm("icon")), null, 16, ["class"]))];
175
- }), g("div", n({
176
- class: ["p-message-text", e.cx("text")]
177
- }, e.ptm("text")), [a(e.$slots, "default")], 16), e.closable ? v((s(), m("button", n({
178
- key: 0,
179
- class: e.cx("closeButton"),
180
- "aria-label": l.closeAriaLabel,
181
- type: "button",
182
- onClick: t[0] || (t[0] = function(w) {
183
- return l.close(w);
184
- })
185
- }, i(i(i({}, e.closeButtonProps), e.ptm("button")), e.ptm("closeButton"))), [a(e.$slots, "closeicon", {}, function() {
186
- return [e.closeIcon ? (s(), m("i", n({
187
- key: 0,
188
- class: [e.cx("closeIcon"), e.closeIcon]
189
- }, i(i({}, e.ptm("buttonIcon")), e.ptm("closeIcon"))), null, 16)) : (s(), p(I, n({
190
- key: 1,
191
- class: [e.cx("closeIcon"), e.closeIcon]
192
- }, i(i({}, e.ptm("buttonIcon")), e.ptm("closeIcon"))), null, 16, ["class"]))];
193
- })], 16, R)), [[O]]) : A("", !0)], 16))], 16), [[E, u.visible]])];
194
- }),
195
- _: 3
196
- }, 16);
197
- }
198
- L.render = q;
1
+ import { onNextFrame as p, defaultTimestep as i } from "./index330.js";
2
+ import { createRenderStep as x } from "./index331.js";
3
+ const h = 40;
4
+ let o = !0, s = !1, c = !1;
5
+ const r = {
6
+ delta: 0,
7
+ timestamp: 0
8
+ }, a = [
9
+ "read",
10
+ "update",
11
+ "preRender",
12
+ "render",
13
+ "postRender"
14
+ ], n = a.reduce((e, t) => (e[t] = x(() => s = !0), e), {}), g = a.reduce((e, t) => {
15
+ const l = n[t];
16
+ return e[t] = (d, f = !1, m = !1) => (s || E(), l.schedule(d, f, m)), e;
17
+ }, {}), D = a.reduce((e, t) => (e[t] = n[t].cancel, e), {});
18
+ a.reduce((e, t) => (e[t] = () => n[t].process(r), e), {});
19
+ const F = (e) => n[e].process(r), u = (e) => {
20
+ s = !1, r.delta = o ? i : Math.max(Math.min(e - r.timestamp, h), 1), r.timestamp = e, c = !0, a.forEach(F), c = !1, s && (o = !1, p(u));
21
+ }, E = () => {
22
+ s = !0, o = !0, c || p(u);
23
+ }, M = () => r;
199
24
  export {
200
- L as default
25
+ D as cancelSync,
26
+ g as default,
27
+ M as getFrameData
201
28
  };
package/dist/index224.js CHANGED
@@ -1,72 +1,38 @@
1
- import i from "./index226.js";
2
- import o from "./index284.js";
3
- import { createElementBlock as t, openBlock as a, mergeProps as r, createCommentVNode as l, renderSlot as s, createTextVNode as u, toDisplayString as d, createElementVNode as m } from "vue";
4
- var p = {
5
- name: "BaseProgressBar",
6
- extends: i,
7
- props: {
8
- value: {
9
- type: Number,
10
- default: null
11
- },
12
- mode: {
13
- type: String,
14
- default: "determinate"
15
- },
16
- showValue: {
17
- type: Boolean,
18
- default: !0
19
- }
20
- },
21
- style: o,
22
- provide: function() {
23
- return {
24
- $parentInstance: this
25
- };
26
- }
27
- }, v = {
28
- name: "ProgressBar",
29
- extends: p,
30
- inheritAttrs: !1,
31
- computed: {
32
- progressStyle: function() {
33
- return {
34
- width: this.value + "%",
35
- display: "flex"
36
- };
37
- },
38
- indeterminate: function() {
39
- return this.mode === "indeterminate";
40
- },
41
- determinate: function() {
42
- return this.mode === "determinate";
43
- }
44
- }
45
- }, c = ["aria-valuenow"];
46
- function f(e, y, g, h, B, n) {
47
- return a(), t("div", r({
48
- role: "progressbar",
49
- class: e.cx("root"),
50
- "aria-valuemin": "0",
51
- "aria-valuenow": e.value,
52
- "aria-valuemax": "100"
53
- }, e.ptmi("root")), [n.determinate ? (a(), t("div", r({
54
- key: 0,
55
- class: e.cx("value"),
56
- style: n.progressStyle
57
- }, e.ptm("value")), [e.value != null && e.value !== 0 && e.showValue ? (a(), t("div", r({
58
- key: 0,
59
- class: e.cx("label")
60
- }, e.ptm("label")), [s(e.$slots, "default", {}, function() {
61
- return [u(d(e.value + "%"), 1)];
62
- })], 16)) : l("", !0)], 16)) : l("", !0), n.indeterminate ? (a(), t("div", r({
63
- key: 1,
64
- class: e.cx("container")
65
- }, e.ptm("container")), [m("div", r({
66
- class: e.cx("value")
67
- }, e.ptm("value")), null, 16)], 16)) : l("", !0)], 16, c);
1
+ import { color as m } from "./index231.js";
2
+ import { number as b } from "./index228.js";
3
+ import { isString as g, floatRegex as c, colorRegex as l, sanitize as k } from "./index370.js";
4
+ const i = "${c}", p = "${n}";
5
+ function x(e) {
6
+ var o, n, r, t;
7
+ return isNaN(e) && g(e) && ((n = (o = e.match(c)) === null || o === void 0 ? void 0 : o.length) !== null && n !== void 0 ? n : 0) + ((t = (r = e.match(l)) === null || r === void 0 ? void 0 : r.length) !== null && t !== void 0 ? t : 0) > 0;
68
8
  }
69
- v.render = f;
9
+ function f(e) {
10
+ typeof e == "number" && (e = `${e}`);
11
+ const o = [];
12
+ let n = 0;
13
+ const r = e.match(l);
14
+ r && (n = r.length, e = e.replace(l, i), o.push(...r.map(m.parse)));
15
+ const t = e.match(c);
16
+ return t && (e = e.replace(c, p), o.push(...t.map(b.parse))), { values: o, numColors: n, tokenised: e };
17
+ }
18
+ function d(e) {
19
+ return f(e).values;
20
+ }
21
+ function h(e) {
22
+ const { values: o, numColors: n, tokenised: r } = f(e), t = o.length;
23
+ return (u) => {
24
+ let a = r;
25
+ for (let s = 0; s < t; s++)
26
+ a = a.replace(s < n ? i : p, s < n ? m.transform(u[s]) : k(u[s]));
27
+ return a;
28
+ };
29
+ }
30
+ const N = (e) => typeof e == "number" ? 0 : e;
31
+ function T(e) {
32
+ const o = d(e);
33
+ return h(e)(o.map(N));
34
+ }
35
+ const C = { test: x, parse: d, createTransformer: h, getAnimatableNone: T };
70
36
  export {
71
- v as default
37
+ C as complex
72
38
  };
package/dist/index225.js CHANGED
@@ -1,90 +1,53 @@
1
- import { DomHandler as r } from "./index172.js";
2
- import p from "./index285.js";
3
- import c from "./index286.js";
4
- var f = p.extend({
5
- style: c
6
- });
7
- function m(e) {
8
- return b(e) || y(e) || v(e) || h();
9
- }
10
- function h() {
11
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13
- }
14
- function v(e, t) {
15
- if (e) {
16
- if (typeof e == "string") return a(e, t);
17
- var n = Object.prototype.toString.call(e).slice(8, -1);
18
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
19
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return a(e, t);
1
+ import { animate as N } from "./index226.js";
2
+ import { velocityPerSecond as P } from "./index227.js";
3
+ import { getFrameData as U } from "./index223.js";
4
+ function z({ from: u = 0, velocity: o = 0, min: t, max: d, power: c = 0.8, timeConstant: y = 750, bounceStiffness: A = 500, bounceDamping: B = 10, restDelta: l = 1, modifyTarget: s, driver: M, onUpdate: f, onComplete: S, onStop: k }) {
5
+ let e;
6
+ function p(n) {
7
+ return t !== void 0 && n < t || d !== void 0 && n > d;
20
8
  }
21
- }
22
- function y(e) {
23
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
24
- }
25
- function b(e) {
26
- if (Array.isArray(e)) return a(e);
27
- }
28
- function a(e, t) {
29
- (t == null || t > e.length) && (t = e.length);
30
- for (var n = 0, o = new Array(t); n < t; n++) o[n] = e[n];
31
- return o;
32
- }
33
- var E = f.extend("ripple", {
34
- mounted: function(t) {
35
- var n, o = t == null || (n = t.$instance) === null || n === void 0 ? void 0 : n.$primevueConfig;
36
- o && o.ripple && (this.create(t), this.bindEvents(t), t.setAttribute("data-pd-ripple", !0));
37
- },
38
- unmounted: function(t) {
39
- this.remove(t);
40
- },
41
- timeout: void 0,
42
- methods: {
43
- bindEvents: function(t) {
44
- t.addEventListener("mousedown", this.onMouseDown.bind(this));
45
- },
46
- unbindEvents: function(t) {
47
- t.removeEventListener("mousedown", this.onMouseDown.bind(this));
48
- },
49
- create: function(t) {
50
- var n = r.createElement("span", {
51
- role: "presentation",
52
- "aria-hidden": !0,
53
- "data-p-ink": !0,
54
- "data-p-ink-active": !1,
55
- class: !this.isUnstyled() && this.cx("root"),
56
- onAnimationEnd: this.onAnimationEnd.bind(this),
57
- "p-bind": this.ptm("root")
58
- });
59
- t.appendChild(n), this.$el = n;
60
- },
61
- remove: function(t) {
62
- var n = this.getInk(t);
63
- n && (this.unbindEvents(t), n.removeEventListener("animationend", this.onAnimationEnd), n.remove());
64
- },
65
- onMouseDown: function(t) {
66
- var n = this, o = t.currentTarget, i = this.getInk(o);
67
- if (!(!i || getComputedStyle(i, null).display === "none")) {
68
- if (!this.isUnstyled() && r.removeClass(i, "p-ink-active"), i.setAttribute("data-p-ink-active", "false"), !r.getHeight(i) && !r.getWidth(i)) {
69
- var s = Math.max(r.getOuterWidth(o), r.getOuterHeight(o));
70
- i.style.height = s + "px", i.style.width = s + "px";
71
- }
72
- var u = r.getOffset(o), d = t.pageX - u.left + document.body.scrollTop - r.getWidth(i) / 2, l = t.pageY - u.top + document.body.scrollLeft - r.getHeight(i) / 2;
73
- i.style.top = l + "px", i.style.left = d + "px", !this.isUnstyled() && r.addClass(i, "p-ink-active"), i.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
74
- i && (!n.isUnstyled() && r.removeClass(i, "p-ink-active"), i.setAttribute("data-p-ink-active", "false"));
75
- }, 401);
76
- }
77
- },
78
- onAnimationEnd: function(t) {
79
- this.timeout && clearTimeout(this.timeout), !this.isUnstyled() && r.removeClass(t.currentTarget, "p-ink-active"), t.currentTarget.setAttribute("data-p-ink-active", "false");
80
- },
81
- getInk: function(t) {
82
- return t && t.children ? m(t.children).find(function(n) {
83
- return r.getAttribute(n, "data-pc-name") === "ripple";
84
- }) : void 0;
85
- }
9
+ function b(n) {
10
+ return t === void 0 ? d : d === void 0 || Math.abs(t - n) < Math.abs(d - n) ? t : d;
11
+ }
12
+ function g(n) {
13
+ e?.stop(), e = N(Object.assign(Object.assign({}, n), {
14
+ driver: M,
15
+ onUpdate: (i) => {
16
+ var r;
17
+ f?.(i), (r = n.onUpdate) === null || r === void 0 || r.call(n, i);
18
+ },
19
+ onComplete: S,
20
+ onStop: k
21
+ }));
22
+ }
23
+ function O(n) {
24
+ g(Object.assign({ type: "spring", stiffness: A, damping: B, restDelta: l }, n));
86
25
  }
87
- });
26
+ if (p(u))
27
+ O({ from: u, velocity: o, to: b(u) });
28
+ else {
29
+ let n = c * o + u;
30
+ typeof s < "u" && (n = s(n));
31
+ const i = b(n), r = i === t ? -1 : 1;
32
+ let h, j;
33
+ const F = (a) => {
34
+ h = j, j = a, o = P(a - h, U().delta), (r === 1 && a > i || r === -1 && a < i) && O({ from: a, to: i, velocity: o });
35
+ };
36
+ g({
37
+ type: "decay",
38
+ from: u,
39
+ velocity: o,
40
+ timeConstant: y,
41
+ power: c,
42
+ restDelta: l,
43
+ modifyTarget: s,
44
+ onUpdate: p(n) ? F : void 0
45
+ });
46
+ }
47
+ return {
48
+ stop: () => e?.stop()
49
+ };
50
+ }
88
51
  export {
89
- E as default
52
+ z as inertia
90
53
  };