rappel-ui 1.0.19 → 1.0.20

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 (174) hide show
  1. package/cjs/components/button/index.js +1 -1
  2. package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
  3. package/cjs/components/button/src/types.d.ts +1 -1
  4. package/cjs/components/button/style/css.js +2 -1
  5. package/cjs/components/button/style/index.js +2 -1
  6. package/cjs/components/button-group/style/css.js +2 -0
  7. package/cjs/components/button-group/style/index.js +2 -0
  8. package/cjs/components/colors/index.js +1 -1
  9. package/cjs/components/colors/style/css.js +2 -1
  10. package/cjs/components/colors/style/index.js +2 -1
  11. package/cjs/components/filter-panel/index.js +1 -1
  12. package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  13. package/cjs/components/filter-panel/style/css.js +2 -1
  14. package/cjs/components/filter-panel/style/index.js +2 -1
  15. package/cjs/components/input/index.js +1 -1
  16. package/cjs/components/popconfirm/index.d.ts +5 -5
  17. package/cjs/components/popconfirm/index.js +1 -1
  18. package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  19. package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
  20. package/cjs/components/popconfirm/src/types.d.ts +2 -2
  21. package/cjs/components/popconfirm/style/css.js +2 -1
  22. package/cjs/components/popconfirm/style/index.js +2 -1
  23. package/cjs/components/popover/index.d.ts +5 -5
  24. package/cjs/components/popover/index.js +1 -1
  25. package/cjs/components/popover/src/popover.vue.d.ts +2 -2
  26. package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
  27. package/cjs/components/popover/src/types.d.ts +1 -1
  28. package/cjs/components/popover/style/css.js +2 -1
  29. package/cjs/components/popover/style/index.js +2 -1
  30. package/cjs/components/svg-icon/index.js +1 -1
  31. package/cjs/components/svg-icon/style/css.js +2 -1
  32. package/cjs/components/svg-icon/style/index.js +2 -1
  33. package/cjs/components/tabs/index.js +1 -1
  34. package/cjs/components/tooltip/index.js +1 -1
  35. package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/cjs/components/tooltip/src/types.d.ts +1 -1
  37. package/cjs/components/tooltip/src/use-tooltip.js +1 -1
  38. package/cjs/components/tooltip/style/css.js +2 -1
  39. package/cjs/components/tooltip/style/index.js +2 -1
  40. package/cjs/composables/use-theme/index.d.ts +1 -1
  41. package/cjs/composables/use-theme/index.js +1 -1
  42. package/cjs/index.d.ts +10 -10
  43. package/cjs/theme-chalk/index.d.ts +0 -0
  44. package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +1 -1
  45. package/es/components/button/src/types.d.ts +1 -1
  46. package/es/components/button/style/css.mjs +2 -2
  47. package/es/components/button/style/index.mjs +2 -2
  48. package/es/components/button-group/style/css.mjs +2 -0
  49. package/es/components/button-group/style/index.mjs +2 -0
  50. package/es/components/colors/style/css.mjs +2 -2
  51. package/es/components/colors/style/index.mjs +2 -2
  52. package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  53. package/es/components/filter-panel/style/css.mjs +2 -2
  54. package/es/components/filter-panel/style/index.mjs +2 -2
  55. package/es/components/popconfirm/index.d.ts +5 -5
  56. package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
  57. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +2 -5
  58. package/es/components/popconfirm/src/types.d.ts +2 -2
  59. package/es/components/popconfirm/style/css.mjs +2 -2
  60. package/es/components/popconfirm/style/index.mjs +2 -2
  61. package/es/components/popover/index.d.ts +5 -5
  62. package/es/components/popover/src/popover.vue.d.ts +2 -2
  63. package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +1 -4
  64. package/es/components/popover/src/types.d.ts +1 -1
  65. package/es/components/popover/style/css.mjs +2 -2
  66. package/es/components/popover/style/index.mjs +2 -2
  67. package/es/components/svg-icon/style/css.mjs +2 -2
  68. package/es/components/svg-icon/style/index.mjs +2 -2
  69. package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +2 -2
  70. package/es/components/tooltip/src/types.d.ts +1 -1
  71. package/es/components/tooltip/src/use-tooltip.mjs +2 -2
  72. package/es/components/tooltip/style/css.mjs +2 -2
  73. package/es/components/tooltip/style/index.mjs +2 -2
  74. package/es/composables/use-theme/index.d.ts +1 -1
  75. package/es/composables/use-theme/index.mjs +2 -2
  76. package/es/index.d.ts +10 -10
  77. package/es/theme-chalk/index.d.ts +0 -0
  78. package/package.json +1 -1
  79. package/cjs/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
  80. package/cjs/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
  81. package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
  82. package/cjs/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
  83. package/cjs/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +0 -1
  84. package/cjs/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
  85. package/cjs/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
  86. package/cjs/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js +0 -1
  87. package/cjs/svg-icons/dist/es/_virtual/_rolldown_dynamic_import_helper.js +0 -1
  88. package/cjs/svg-icons/dist/es/create-icon.js +0 -1
  89. package/cjs/svg-icons/dist/es/icon-names.js +0 -1
  90. package/cjs/svg-icons/dist/es/index.js +0 -1
  91. package/cjs/svg-icons/dist/es/packages/components/svg-icon/index.js +0 -1
  92. package/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.js +0 -1
  93. package/cjs/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +0 -1
  94. package/cjs/svg-icons/dist/es/packages/composables/use-namespace/index.js +0 -1
  95. package/cjs/svg-icons/dist/es/packages/utils/util.js +0 -1
  96. package/cjs/svg-icons/dist/es/packages/utils/vue/index.js +0 -1
  97. package/cjs/svg-icons/dist/es/src/arrow-backward.js +0 -1
  98. package/cjs/svg-icons/dist/es/src/arrow-down.js +0 -1
  99. package/cjs/svg-icons/dist/es/src/arrow-downward.js +0 -1
  100. package/cjs/svg-icons/dist/es/src/arrow-forward.js +0 -1
  101. package/cjs/svg-icons/dist/es/src/arrow-left.js +0 -1
  102. package/cjs/svg-icons/dist/es/src/arrow-right.js +0 -1
  103. package/cjs/svg-icons/dist/es/src/arrow-up.js +0 -1
  104. package/cjs/svg-icons/dist/es/src/arrow-upward.js +0 -1
  105. package/cjs/svg-icons/dist/es/src/check-circle.js +0 -1
  106. package/cjs/svg-icons/dist/es/src/check.js +0 -1
  107. package/cjs/svg-icons/dist/es/src/close-short.js +0 -1
  108. package/cjs/svg-icons/dist/es/src/close.js +0 -1
  109. package/cjs/svg-icons/dist/es/src/copy-closure.js +0 -1
  110. package/cjs/svg-icons/dist/es/src/copy.js +0 -1
  111. package/cjs/svg-icons/dist/es/src/delete.js +0 -1
  112. package/cjs/svg-icons/dist/es/src/exclam.js +0 -1
  113. package/cjs/svg-icons/dist/es/src/help.js +0 -1
  114. package/cjs/svg-icons/dist/es/src/loading.js +0 -1
  115. package/cjs/svg-icons/dist/es/src/more-dot-circle-horizontal.js +0 -1
  116. package/cjs/svg-icons/dist/es/src/more-dot-circle-outline-horizontal.js +0 -1
  117. package/cjs/svg-icons/dist/es/src/more-dot-circle-outline-vertical.js +0 -1
  118. package/cjs/svg-icons/dist/es/src/more-dot-circle.js +0 -1
  119. package/cjs/svg-icons/dist/es/src/more-dot-square-horizontal.js +0 -1
  120. package/cjs/svg-icons/dist/es/src/more-dot-square.js +0 -1
  121. package/cjs/svg-icons/dist/es/src/more-line.js +0 -1
  122. package/cjs/svg-icons/dist/es/src/search-bold.js +0 -1
  123. package/cjs/svg-icons/dist/es/src/search.js +0 -1
  124. package/cjs/svg-icons/dist/es/src/star-fill.js +0 -1
  125. package/cjs/svg-icons/dist/es/src/star.js +0 -1
  126. package/dist/index.css +0 -1
  127. package/dist/index.umd.js +0 -58
  128. package/es/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -276
  129. package/es/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -322
  130. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -99
  131. package/es/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -101
  132. package/es/node_modules/.pnpm/@floating-ui_vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -111
  133. package/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +0 -478
  134. package/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -136
  135. package/es/node_modules/.pnpm/process@0.11.10/node_modules/process/browser.mjs +0 -90
  136. package/es/svg-icons/dist/es/_virtual/_rolldown_dynamic_import_helper.mjs +0 -9
  137. package/es/svg-icons/dist/es/create-icon.mjs +0 -43
  138. package/es/svg-icons/dist/es/icon-names.mjs +0 -4
  139. package/es/svg-icons/dist/es/index.mjs +0 -70
  140. package/es/svg-icons/dist/es/packages/components/svg-icon/index.mjs +0 -6
  141. package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.mjs +0 -5
  142. package/es/svg-icons/dist/es/packages/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +0 -49
  143. package/es/svg-icons/dist/es/packages/composables/use-namespace/index.mjs +0 -22
  144. package/es/svg-icons/dist/es/packages/utils/util.mjs +0 -6
  145. package/es/svg-icons/dist/es/packages/utils/vue/index.mjs +0 -17
  146. package/es/svg-icons/dist/es/src/arrow-backward.mjs +0 -8
  147. package/es/svg-icons/dist/es/src/arrow-down.mjs +0 -8
  148. package/es/svg-icons/dist/es/src/arrow-downward.mjs +0 -8
  149. package/es/svg-icons/dist/es/src/arrow-forward.mjs +0 -8
  150. package/es/svg-icons/dist/es/src/arrow-left.mjs +0 -8
  151. package/es/svg-icons/dist/es/src/arrow-right.mjs +0 -8
  152. package/es/svg-icons/dist/es/src/arrow-up.mjs +0 -8
  153. package/es/svg-icons/dist/es/src/arrow-upward.mjs +0 -8
  154. package/es/svg-icons/dist/es/src/check-circle.mjs +0 -8
  155. package/es/svg-icons/dist/es/src/check.mjs +0 -8
  156. package/es/svg-icons/dist/es/src/close-short.mjs +0 -8
  157. package/es/svg-icons/dist/es/src/close.mjs +0 -8
  158. package/es/svg-icons/dist/es/src/copy-closure.mjs +0 -8
  159. package/es/svg-icons/dist/es/src/copy.mjs +0 -8
  160. package/es/svg-icons/dist/es/src/delete.mjs +0 -8
  161. package/es/svg-icons/dist/es/src/exclam.mjs +0 -8
  162. package/es/svg-icons/dist/es/src/help.mjs +0 -8
  163. package/es/svg-icons/dist/es/src/loading.mjs +0 -8
  164. package/es/svg-icons/dist/es/src/more-dot-circle-horizontal.mjs +0 -8
  165. package/es/svg-icons/dist/es/src/more-dot-circle-outline-horizontal.mjs +0 -8
  166. package/es/svg-icons/dist/es/src/more-dot-circle-outline-vertical.mjs +0 -8
  167. package/es/svg-icons/dist/es/src/more-dot-circle.mjs +0 -8
  168. package/es/svg-icons/dist/es/src/more-dot-square-horizontal.mjs +0 -8
  169. package/es/svg-icons/dist/es/src/more-dot-square.mjs +0 -8
  170. package/es/svg-icons/dist/es/src/more-line.mjs +0 -8
  171. package/es/svg-icons/dist/es/src/search-bold.mjs +0 -8
  172. package/es/svg-icons/dist/es/src/search.mjs +0 -8
  173. package/es/svg-icons/dist/es/src/star-fill.mjs +0 -9
  174. package/es/svg-icons/dist/es/src/star.mjs +0 -8
@@ -1,101 +0,0 @@
1
- //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2
- var e = Math.min, t = Math.max, n = Math.round, r = Math.floor, i = (e) => ({
3
- x: e,
4
- y: e
5
- }), a = {
6
- left: "right",
7
- right: "left",
8
- bottom: "top",
9
- top: "bottom"
10
- };
11
- function o(n, r, i) {
12
- return t(n, e(r, i));
13
- }
14
- function s(e, t) {
15
- return typeof e == "function" ? e(t) : e;
16
- }
17
- function c(e) {
18
- return e.split("-")[0];
19
- }
20
- function l(e) {
21
- return e.split("-")[1];
22
- }
23
- function u(e) {
24
- return e === "x" ? "y" : "x";
25
- }
26
- function d(e) {
27
- return e === "y" ? "height" : "width";
28
- }
29
- function f(e) {
30
- let t = e[0];
31
- return t === "t" || t === "b" ? "y" : "x";
32
- }
33
- function p(e) {
34
- return u(f(e));
35
- }
36
- function m(e, t, n) {
37
- n === void 0 && (n = !1);
38
- let r = l(e), i = p(e), a = d(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
39
- return t.reference[a] > t.floating[a] && (o = C(o)), [o, C(o)];
40
- }
41
- function h(e) {
42
- let t = C(e);
43
- return [
44
- g(e),
45
- t,
46
- g(t)
47
- ];
48
- }
49
- function g(e) {
50
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
51
- }
52
- var _ = ["left", "right"], v = ["right", "left"], y = ["top", "bottom"], b = ["bottom", "top"];
53
- function x(e, t, n) {
54
- switch (e) {
55
- case "top":
56
- case "bottom": return n ? t ? v : _ : t ? _ : v;
57
- case "left":
58
- case "right": return t ? y : b;
59
- default: return [];
60
- }
61
- }
62
- function S(e, t, n, r) {
63
- let i = l(e), a = x(c(e), n === "start", r);
64
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(g)))), a;
65
- }
66
- function C(e) {
67
- let t = c(e);
68
- return a[t] + e.slice(t.length);
69
- }
70
- function w(e) {
71
- var t, n, r, i;
72
- return {
73
- top: (t = e.top) == null ? 0 : t,
74
- right: (n = e.right) == null ? 0 : n,
75
- bottom: (r = e.bottom) == null ? 0 : r,
76
- left: (i = e.left) == null ? 0 : i
77
- };
78
- }
79
- function T(e) {
80
- return typeof e == "number" ? {
81
- top: e,
82
- right: e,
83
- bottom: e,
84
- left: e
85
- } : w(e);
86
- }
87
- function E(e) {
88
- let { x: t, y: n, width: r, height: i } = e;
89
- return {
90
- width: r,
91
- height: i,
92
- top: n,
93
- left: t,
94
- right: t + r,
95
- bottom: n + i,
96
- x: t,
97
- y: n
98
- };
99
- }
100
- //#endregion
101
- export { o as clamp, i as createCoords, s as evaluate, w as expandPaddingObject, r as floor, l as getAlignment, p as getAlignmentAxis, m as getAlignmentSides, d as getAxisLength, h as getExpandedPlacements, g as getOppositeAlignmentPlacement, u as getOppositeAxis, S as getOppositeAxisPlacements, C as getOppositePlacement, T as getPaddingObject, c as getSide, f as getSideAxis, t as max, e as min, E as rectToClientRect, n as round };
@@ -1,111 +0,0 @@
1
- import { getNodeName as e, isNode as t } from "../../../../../@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs";
2
- import { arrow as n, autoUpdate as r, computePosition as i, flip as a, inline as o, offset as s } from "../../../../../@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs";
3
- import { computed as c, getCurrentScope as l, onScopeDispose as u, ref as d, shallowReadonly as f, shallowRef as p, toValue as m, watch as h } from "vue";
4
- //#region node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.26_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
5
- function g(e) {
6
- return typeof e == "object" && !!e && "$el" in e;
7
- }
8
- function _(n) {
9
- if (g(n)) {
10
- let r = n.$el;
11
- return t(r) && e(r) === "#comment" ? null : r;
12
- }
13
- return n;
14
- }
15
- function v(e) {
16
- return {
17
- name: "arrow",
18
- options: e,
19
- fn(t) {
20
- let r = _(m(e.element));
21
- return r == null ? {} : n({
22
- element: r,
23
- padding: e.padding
24
- }).fn(t);
25
- }
26
- };
27
- }
28
- function y(e) {
29
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
30
- }
31
- function b(e, t) {
32
- let n = y(e);
33
- return Math.round(t * n) / n;
34
- }
35
- function x(e, t, n) {
36
- n === void 0 && (n = {});
37
- let r = n.whileElementsMounted, a = c(() => {
38
- var e;
39
- return (e = m(n.open)) == null || e;
40
- }), o = c(() => m(n.middleware)), s = c(() => {
41
- var e;
42
- return (e = m(n.placement)) == null ? "bottom" : e;
43
- }), g = c(() => {
44
- var e;
45
- return (e = m(n.strategy)) == null ? "absolute" : e;
46
- }), v = c(() => {
47
- var e;
48
- return (e = m(n.transform)) == null || e;
49
- }), x = c(() => _(e.value)), S = c(() => _(t.value)), C = d(0), w = d(0), T = d(g.value), E = d(s.value), D = p({}), O = d(!1), k = c(() => {
50
- let e = {
51
- position: T.value,
52
- left: "0",
53
- top: "0"
54
- };
55
- if (!S.value) return e;
56
- let t = b(S.value, C.value), n = b(S.value, w.value);
57
- return v.value ? {
58
- ...e,
59
- transform: "translate(" + t + "px, " + n + "px)",
60
- ...y(S.value) >= 1.5 && { willChange: "transform" }
61
- } : {
62
- position: T.value,
63
- left: t + "px",
64
- top: n + "px"
65
- };
66
- }), A;
67
- function j() {
68
- if (x.value == null || S.value == null) return;
69
- let e = a.value;
70
- i(x.value, S.value, {
71
- middleware: o.value,
72
- placement: s.value,
73
- strategy: g.value
74
- }).then((t) => {
75
- C.value = t.x, w.value = t.y, T.value = t.strategy, E.value = t.placement, D.value = t.middlewareData, O.value = e !== !1;
76
- });
77
- }
78
- function M() {
79
- typeof A == "function" && (A(), A = void 0);
80
- }
81
- function N() {
82
- if (M(), r === void 0) {
83
- j();
84
- return;
85
- }
86
- if (x.value != null && S.value != null) {
87
- A = r(x.value, S.value, j);
88
- return;
89
- }
90
- }
91
- function P() {
92
- a.value || (O.value = !1);
93
- }
94
- return h([
95
- o,
96
- s,
97
- g,
98
- a
99
- ], j, { flush: "sync" }), h([x, S], N, { flush: "sync" }), h(a, P, { flush: "sync" }), l() && u(M), {
100
- x: f(C),
101
- y: f(w),
102
- strategy: f(T),
103
- placement: f(E),
104
- middlewareData: f(D),
105
- isPositioned: f(O),
106
- floatingStyles: k,
107
- update: j
108
- };
109
- }
110
- //#endregion
111
- export { v as arrow, r as autoUpdate, a as flip, o as inline, s as offset, x as useFloating };
@@ -1,478 +0,0 @@
1
- import { bypassFilter as e, createFilterWrapper as t, debounceFilter as n, getLifeCycleTarget as r, injectLocal as i, isClient as a, isIOS as o, isObject as s, noop as c, notNullish as l, pausableFilter as u, pxValue as d, toArray as f, toRef as p, tryOnMounted as m, tryOnScopeDispose as h, useDebounceFn as g, useToggle as _, watchImmediate as v, watchPausable as y, watchWithFilter as b } from "../../../../../@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
2
- import { computed as x, getCurrentInstance as S, hasInjectionContext as C, isRef as w, nextTick as T, onMounted as E, ref as D, shallowRef as O, toValue as k, unref as A, watch as j, watchEffect as M } from "vue";
3
- //#region node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js
4
- function N(e, t, n) {
5
- var r;
6
- let i;
7
- i = w(n) ? { evaluating: n } : n || {};
8
- let { lazy: a = !1, flush: o = "sync", evaluating: s = void 0, shallow: l = !0, onError: u = (r = globalThis.reportError) == null ? c : r } = i, d = O(!a), f = l ? O(t) : D(t), p = 0;
9
- return M(async (t) => {
10
- if (!d.value) return;
11
- p++;
12
- let n = p, r = !1;
13
- s && Promise.resolve().then(() => {
14
- s.value = !0;
15
- });
16
- try {
17
- let i = await e((e) => {
18
- t(() => {
19
- s && (s.value = !1), r || e();
20
- });
21
- });
22
- n === p && (f.value = i);
23
- } catch (e) {
24
- u(e);
25
- } finally {
26
- s && n === p && (s.value = !1), r = !0;
27
- }
28
- }, { flush: o }), a ? x(() => (d.value = !0, f.value)) : f;
29
- }
30
- var P = a ? window : void 0;
31
- a && window.document, a && window.navigator, a && window.location;
32
- function F(e) {
33
- var t;
34
- let n = k(e);
35
- return (t = n == null ? void 0 : n.$el) == null ? n : t;
36
- }
37
- function I(...e) {
38
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = x(() => {
39
- let t = f(k(e[0])).filter((e) => e != null);
40
- return t.every((e) => typeof e != "string") ? t : void 0;
41
- });
42
- return v(() => {
43
- var t, r;
44
- return [
45
- (t = (r = n.value) == null ? void 0 : r.map((e) => F(e))) == null ? [P].filter((e) => e != null) : t,
46
- f(k(n.value ? e[1] : e[0])),
47
- f(A(n.value ? e[2] : e[1])),
48
- k(n.value ? e[3] : e[2])
49
- ];
50
- }, ([e, n, r, i], a, o) => {
51
- if (!(e != null && e.length) || !(n != null && n.length) || !(r != null && r.length)) return;
52
- let c = s(i) ? { ...i } : i, l = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, c))));
53
- o(() => {
54
- l.forEach((e) => e());
55
- });
56
- }, { flush: "post" });
57
- }
58
- var L = !1;
59
- function ee(e, t, n = {}) {
60
- let { window: r = P, ignore: i = [], capture: a = !0, detectIframe: s = !1, controls: l = !1 } = n;
61
- if (!r) return l ? {
62
- stop: c,
63
- cancel: c,
64
- trigger: c
65
- } : c;
66
- if (o && !L) {
67
- L = !0;
68
- let e = { passive: !0 };
69
- Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", c, e)), r.document.documentElement.addEventListener("click", c, e);
70
- }
71
- let u = !0, d = (e) => k(i).some((t) => {
72
- if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
73
- {
74
- let n = F(t);
75
- return n && (e.target === n || e.composedPath().includes(n));
76
- }
77
- });
78
- function f(e) {
79
- let t = k(e);
80
- return t && t.$.subTree.shapeFlag === 16;
81
- }
82
- function p(e, t) {
83
- let n = k(e), r = n.$.subTree && n.$.subTree.children;
84
- return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
85
- }
86
- let m = (n) => {
87
- let r = F(e);
88
- if (n.target != null && !(!(r instanceof Element) && f(e) && p(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
89
- if ("detail" in n && n.detail === 0 && (u = !d(n)), !u) {
90
- u = !0;
91
- return;
92
- }
93
- t(n);
94
- }
95
- }, h = !1, g = [
96
- I(r, "click", (e) => {
97
- h || (h = !0, setTimeout(() => {
98
- h = !1;
99
- }, 0), m(e));
100
- }, {
101
- passive: !0,
102
- capture: a
103
- }),
104
- I(r, "pointerdown", (t) => {
105
- let n = F(e);
106
- u = !d(t) && !!(n && !t.composedPath().includes(n));
107
- }, { passive: !0 }),
108
- s && I(r, "blur", (n) => {
109
- setTimeout(() => {
110
- let i = F(e), a = r.document.activeElement;
111
- for (; a != null && a.shadowRoot;) a = a.shadowRoot.activeElement;
112
- (a == null ? void 0 : a.tagName) === "IFRAME" && !(i != null && i.contains(r.document.activeElement)) && t(n);
113
- }, 0);
114
- }, { passive: !0 })
115
- ].filter(Boolean), _ = () => g.forEach((e) => e());
116
- return l ? {
117
- stop: _,
118
- cancel: () => {
119
- u = !1;
120
- },
121
- trigger: (e) => {
122
- u = !0, m(e), u = !1;
123
- }
124
- } : _;
125
- }
126
- function R() {
127
- let e = O(!1), t = S();
128
- return t && E(() => {
129
- e.value = !0;
130
- }, t), e;
131
- }
132
- function z(e) {
133
- let t = R();
134
- return x(() => (t.value, !!e()));
135
- }
136
- function B(e, t, n = {}) {
137
- let { window: r = P, ...i } = n, a, o = z(() => r && "MutationObserver" in r), s = () => {
138
- a && (a.disconnect(), a = void 0);
139
- }, c = j(x(() => {
140
- let t = f(k(e)).map(F).filter(l);
141
- return new Set(t);
142
- }), (e) => {
143
- s(), o.value && e.size && (a = new MutationObserver(t), e.forEach((e) => a.observe(e, i)));
144
- }, {
145
- immediate: !0,
146
- flush: "post"
147
- }), u = () => a == null ? void 0 : a.takeRecords(), d = () => {
148
- c(), s();
149
- };
150
- return h(d), {
151
- isSupported: o,
152
- stop: d,
153
- takeRecords: u
154
- };
155
- }
156
- function V(e, t, n = {}) {
157
- let { window: r = P, document: i = r == null ? void 0 : r.document, flush: a = "sync" } = n;
158
- if (!r || !i) return c;
159
- let o, s = (e) => {
160
- o == null || o(), o = e;
161
- }, l = M(() => {
162
- let n = F(e);
163
- if (n) {
164
- let { stop: e } = B(i, (e) => {
165
- e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
166
- }, {
167
- window: r,
168
- childList: !0,
169
- subtree: !0
170
- });
171
- s(e);
172
- }
173
- }, { flush: a }), u = () => {
174
- l(), s();
175
- };
176
- return h(u), u;
177
- }
178
- var H = Symbol("vueuse-ssr-width");
179
- function U() {
180
- let e = C() ? i(H, null) : null;
181
- return typeof e == "number" ? e : void 0;
182
- }
183
- function W(e, t = {}) {
184
- let { window: n = P, ssrWidth: r = U() } = t, i = z(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = O(typeof r == "number"), o = O(), s = O(!1);
185
- return M(() => {
186
- if (a.value) {
187
- a.value = !i.value;
188
- let t = k(e).split(",");
189
- s.value = t.some((e) => {
190
- let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
191
- return n && a && (a = r >= d(n[1])), i && a && (a = r <= d(i[1])), t ? !a : a;
192
- });
193
- return;
194
- }
195
- i.value && (o.value = n.matchMedia(k(e)), s.value = o.value.matches);
196
- }), I(o, "change", (e) => {
197
- s.value = e.matches;
198
- }, { passive: !0 }), x(() => s.value);
199
- }
200
- var G = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, K = "__vueuse_ssr_handlers__", te = ne();
201
- function ne() {
202
- return K in G || (G[K] = G[K] || {}), G[K];
203
- }
204
- function q(e, t) {
205
- return te[e] || t;
206
- }
207
- function J(e) {
208
- return W("(prefers-color-scheme: dark)", e);
209
- }
210
- function re(e) {
211
- return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
212
- }
213
- var Y = {
214
- boolean: {
215
- read: (e) => e === "true",
216
- write: (e) => String(e)
217
- },
218
- object: {
219
- read: (e) => JSON.parse(e),
220
- write: (e) => JSON.stringify(e)
221
- },
222
- number: {
223
- read: (e) => Number.parseFloat(e),
224
- write: (e) => String(e)
225
- },
226
- any: {
227
- read: (e) => e,
228
- write: (e) => String(e)
229
- },
230
- string: {
231
- read: (e) => e,
232
- write: (e) => String(e)
233
- },
234
- map: {
235
- read: (e) => new Map(JSON.parse(e)),
236
- write: (e) => JSON.stringify(Array.from(e.entries()))
237
- },
238
- set: {
239
- read: (e) => new Set(JSON.parse(e)),
240
- write: (e) => JSON.stringify(Array.from(e))
241
- },
242
- date: {
243
- read: (e) => new Date(e),
244
- write: (e) => e.toISOString()
245
- }
246
- }, X = "vueuse-storage";
247
- function Z(e, t, n, r = {}) {
248
- var i;
249
- let { flush: a = "pre", deep: o = !0, listenToStorageChanges: s = !0, writeDefaults: c = !0, mergeDefaults: l = !1, shallow: u, window: d = P, eventFilter: f, onError: p = (e) => {
250
- console.error(e);
251
- }, initOnMounted: h } = r, g = (u ? O : D)(typeof t == "function" ? t() : t), _ = x(() => k(e));
252
- if (!n) try {
253
- n = q("getDefaultStorage", () => P == null ? void 0 : P.localStorage)();
254
- } catch (e) {
255
- p(e);
256
- }
257
- if (!n) return g;
258
- let v = k(t), b = re(v), S = (i = r.serializer) == null ? Y[b] : i, { pause: C, resume: w } = y(g, (e) => M(e), {
259
- flush: a,
260
- deep: o,
261
- eventFilter: f
262
- });
263
- j(_, () => F(), { flush: a });
264
- let E = !1;
265
- d && s && (n instanceof Storage ? I(d, "storage", (e) => {
266
- h && !E || F(e);
267
- }, { passive: !0 }) : I(d, X, (e) => {
268
- h && !E || L(e);
269
- })), h ? m(() => {
270
- E = !0, F();
271
- }) : F();
272
- function A(e, t) {
273
- if (d) {
274
- let r = {
275
- key: _.value,
276
- oldValue: e,
277
- newValue: t,
278
- storageArea: n
279
- };
280
- d.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(X, { detail: r }));
281
- }
282
- }
283
- function M(e) {
284
- try {
285
- let t = n.getItem(_.value);
286
- if (e == null) A(t, null), n.removeItem(_.value);
287
- else {
288
- let r = S.write(e);
289
- t !== r && (n.setItem(_.value, r), A(t, r));
290
- }
291
- } catch (e) {
292
- p(e);
293
- }
294
- }
295
- function N(e) {
296
- let t = e ? e.newValue : n.getItem(_.value);
297
- if (t == null) return c && v != null && n.setItem(_.value, S.write(v)), v;
298
- if (!e && l) {
299
- let e = S.read(t);
300
- return typeof l == "function" ? l(e, v) : b === "object" && !Array.isArray(e) ? {
301
- ...v,
302
- ...e
303
- } : e;
304
- } else if (typeof t != "string") return t;
305
- else return S.read(t);
306
- }
307
- function F(e) {
308
- if (!(e && e.storageArea !== n)) {
309
- if (e && e.key == null) {
310
- g.value = v;
311
- return;
312
- }
313
- if (!(e && e.key !== _.value)) {
314
- C();
315
- try {
316
- let t = S.write(g.value);
317
- (e === void 0 || (e == null ? void 0 : e.newValue) !== t) && (g.value = N(e));
318
- } catch (e) {
319
- p(e);
320
- } finally {
321
- e ? T(w) : w();
322
- }
323
- }
324
- }
325
- }
326
- function L(e) {
327
- F(e.detail);
328
- }
329
- return g;
330
- }
331
- var ie = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
332
- function Q(e = {}) {
333
- let { selector: t = "html", attribute: n = "class", initialValue: r = "auto", window: i = P, storage: a, storageKey: o = "vueuse-color-scheme", listenToStorageChanges: s = !0, storageRef: c, emitAuto: l, disableTransition: u = !0 } = e, d = {
334
- auto: "",
335
- light: "light",
336
- dark: "dark",
337
- ...e.modes || {}
338
- }, f = J({ window: i }), h = x(() => f.value ? "dark" : "light"), g = c || (o == null ? p(r) : Z(o, r, a, {
339
- window: i,
340
- listenToStorageChanges: s
341
- })), _ = x(() => g.value === "auto" ? h.value : g.value), v = q("updateHTMLAttrs", (e, t, n) => {
342
- let r = typeof e == "string" ? i == null ? void 0 : i.document.querySelector(e) : F(e);
343
- if (!r) return;
344
- let a = new Set(), o = new Set(), s = null;
345
- if (t === "class") {
346
- let e = n.split(/\s/g);
347
- Object.values(d).flatMap((e) => (e || "").split(/\s/g)).filter(Boolean).forEach((t) => {
348
- e.includes(t) ? a.add(t) : o.add(t);
349
- });
350
- } else s = {
351
- key: t,
352
- value: n
353
- };
354
- if (a.size === 0 && o.size === 0 && s === null) return;
355
- let c;
356
- u && (c = i.document.createElement("style"), c.appendChild(document.createTextNode(ie)), i.document.head.appendChild(c));
357
- for (let e of a) r.classList.add(e);
358
- for (let e of o) r.classList.remove(e);
359
- s && r.setAttribute(s.key, s.value), u && (i.getComputedStyle(c).opacity, document.head.removeChild(c));
360
- });
361
- function y(e) {
362
- var r;
363
- v(t, n, (r = d[e]) == null ? e : r);
364
- }
365
- function b(t) {
366
- e.onChanged ? e.onChanged(t, y) : y(t);
367
- }
368
- j(_, b, {
369
- flush: "post",
370
- immediate: !0
371
- }), m(() => b(_.value));
372
- let S = x({
373
- get() {
374
- return l ? g.value : _.value;
375
- },
376
- set(e) {
377
- g.value = e;
378
- }
379
- });
380
- return Object.assign(S, {
381
- store: g,
382
- system: h,
383
- state: _
384
- });
385
- }
386
- function ae(e = {}) {
387
- let { valueDark: t = "dark", valueLight: n = "" } = e, r = Q({
388
- ...e,
389
- onChanged: (t, n) => {
390
- var r;
391
- e.onChanged ? (r = e.onChanged) == null || r.call(e, t === "dark", n, t) : n(t);
392
- },
393
- modes: {
394
- dark: t,
395
- light: n
396
- }
397
- }), i = x(() => r.system.value);
398
- return x({
399
- get() {
400
- return r.value === "dark";
401
- },
402
- set(e) {
403
- let t = e ? "dark" : "light";
404
- i.value === t ? r.value = "auto" : r.value = t;
405
- }
406
- });
407
- }
408
- function $(e, t, n = {}) {
409
- let { window: r = P, ...i } = n, a, o = z(() => r && "ResizeObserver" in r), s = () => {
410
- a && (a.disconnect(), a = void 0);
411
- }, c = j(x(() => {
412
- let t = k(e);
413
- return Array.isArray(t) ? t.map((e) => F(e)) : [F(t)];
414
- }), (e) => {
415
- if (s(), o.value && r) {
416
- a = new ResizeObserver(t);
417
- for (let t of e) t && a.observe(t, i);
418
- }
419
- }, {
420
- immediate: !0,
421
- flush: "post"
422
- }), l = () => {
423
- s(), c();
424
- };
425
- return h(l), {
426
- isSupported: o,
427
- stop: l
428
- };
429
- }
430
- function oe(e, t = {}) {
431
- let { delayEnter: n = 0, delayLeave: r = 0, triggerOnRemoval: i = !1, window: a = P } = t, o = O(!1), s, c = (e) => {
432
- let t = e ? n : r;
433
- s && (clearTimeout(s), s = void 0), t ? s = setTimeout(() => o.value = e, t) : o.value = e;
434
- };
435
- return a ? (I(e, "mouseenter", () => c(!0), { passive: !0 }), I(e, "mouseleave", () => c(!1), { passive: !0 }), i && V(x(() => F(e)), () => c(!1)), o) : o;
436
- }
437
- function se(e, t = {
438
- width: 0,
439
- height: 0
440
- }, n = {}) {
441
- let { window: r = P, box: i = "content-box" } = n, a = x(() => {
442
- var t;
443
- return (t = F(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
444
- }), o = O(t.width), s = O(t.height), { stop: c } = $(e, ([t]) => {
445
- let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
446
- if (r && a.value) {
447
- let t = F(e);
448
- if (t) {
449
- let e = t.getBoundingClientRect();
450
- o.value = e.width, s.value = e.height;
451
- }
452
- } else if (n) {
453
- let e = f(n);
454
- o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
455
- } else o.value = t.contentRect.width, s.value = t.contentRect.height;
456
- }, n);
457
- m(() => {
458
- let n = F(e);
459
- if (n && "offsetWidth" in n) if (i === "content-box" && r) {
460
- let e = r.getComputedStyle(n), t = Number.parseFloat(e.paddingLeft) + Number.parseFloat(e.paddingRight), i = Number.parseFloat(e.paddingTop) + Number.parseFloat(e.paddingBottom), a = Number.parseFloat(e.borderLeftWidth) + Number.parseFloat(e.borderRightWidth), c = Number.parseFloat(e.borderTopWidth) + Number.parseFloat(e.borderBottomWidth);
461
- o.value = n.offsetWidth - t - a, s.value = n.offsetHeight - i - c;
462
- } else o.value = n.offsetWidth, s.value = n.offsetHeight;
463
- else n && (o.value = t.width, s.value = t.height);
464
- });
465
- let l = j(() => F(e), (e) => {
466
- o.value = e ? t.width : 0, s.value = e ? t.height : 0;
467
- });
468
- function u() {
469
- c(), l();
470
- }
471
- return {
472
- width: o,
473
- height: s,
474
- stop: u
475
- };
476
- }
477
- //#endregion
478
- export { Y as StorageSerializers, e as bypassFilter, N as computedAsync, t as createFilterWrapper, X as customStorageEventName, n as debounceFilter, P as defaultWindow, r as getLifeCycleTarget, q as getSSRHandler, i as injectLocal, a as isClient, o as isIOS, s as isObject, c as noop, l as notNullish, ee as onClickOutside, V as onElementRemoval, u as pausableFilter, d as pxValue, f as toArray, p as toRef, m as tryOnMounted, h as tryOnScopeDispose, F as unrefElement, Q as useColorMode, ae as useDark, g as useDebounceFn, oe as useElementHover, se as useElementSize, I as useEventListener, W as useMediaQuery, R as useMounted, B as useMutationObserver, J as usePreferredDark, $ as useResizeObserver, U as useSSRWidth, Z as useStorage, z as useSupported, _ as useToggle, v as watchImmediate, y as watchPausable, b as watchWithFilter };