rappel-ui 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/filter-panel/index.d.ts +9 -9
- package/cjs/components/filter-panel/src/filter-panel.vue.d.ts +3 -3
- package/cjs/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popconfirm/index.d.ts +15 -4
- package/cjs/components/popconfirm/src/popconfirm.vue.d.ts +10 -3
- package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popover/index.d.ts +19 -3
- package/cjs/components/popover/src/popover.vue.d.ts +10 -1
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/tooltip/src/use-tooltip.js +1 -1
- package/cjs/composables/use-theme/index.js +1 -1
- package/cjs/index.d.ts +43 -16
- package/cjs/index.js +1 -1
- 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 +1 -0
- 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 +1 -0
- package/cjs/svg-icons/constants.js +1 -0
- package/cjs/svg-icons/dist/es/index.js +1 -1
- package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +1 -0
- package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +1 -0
- package/cjs/svg-icons/dist/es/packages/composables/use-theme/index.js +1 -1
- package/cjs/svg-icons/index.js +1 -0
- package/cjs/theme-chalk/src/button.css +1 -1
- package/es/components/filter-panel/index.d.ts +9 -9
- package/es/components/filter-panel/src/filter-panel.vue.d.ts +3 -3
- package/es/components/filter-panel/src/filter-panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/popconfirm/index.d.ts +15 -4
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +10 -3
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +53 -49
- package/es/components/popover/index.d.ts +19 -3
- package/es/components/popover/src/popover.vue.d.ts +10 -1
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +27 -22
- package/es/components/tooltip/src/use-tooltip.mjs +8 -15
- package/es/composables/use-theme/index.mjs +2 -2
- package/es/index.d.ts +43 -16
- package/es/index.mjs +35 -35
- package/es/node_modules/.pnpm/{@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_ → @vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_}/node_modules/@vueuse/core/dist/index.mjs +111 -107
- 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 +136 -0
- package/es/svg-icons/constants.mjs +114 -0
- package/es/svg-icons/dist/es/index.mjs +19 -47
- package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +275 -0
- package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +88 -0
- package/es/svg-icons/dist/es/packages/composables/use-theme/index.mjs +1 -1
- package/es/svg-icons/index.mjs +77 -0
- package/es/theme-chalk/src/button.css +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +6 -6
- package/theme-chalk/re-button.css +6 -6
- package/theme-chalk/src/mixins/_button.scss +1 -1
- package/umd/index.js +8 -8
- package/cjs/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
- package/cjs/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
- package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js +0 -1
- package/cjs/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js +0 -1
- package/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -121
- package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +0 -275
- package/es/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -88
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e=require("vue");function t(t,n){return(0,e.getCurrentScope)()?((0,e.onScopeDispose)(t,n),!0):!1}var n=new WeakMap,r=(...t)=>{var r;let i=t[0],a=(r=(0,e.getCurrentInstance)())==null?void 0:r.proxy,o=a==null?(0,e.getCurrentScope)():a;if(o==null&&!(0,e.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return o&&n.has(o)&&i in n.get(o)?n.get(o)[i]:(0,e.inject)(...t)},i=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var a=Object.prototype.toString,o=e=>a.call(e)===`[object Object]`,s=()=>{};function c(...t){if(t.length!==1)return(0,e.toRef)(...t);let n=t[0];return typeof n==`function`?(0,e.readonly)((0,e.customRef)(()=>({get:n,set:s}))):(0,e.ref)(n)}function l(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}var u=e=>e();function d(t=u,n={}){let{initialState:r=`active`}=n,i=c(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,e.readonly)(i),pause:a,resume:o,eventFilter:(...e)=>{i.value&&t(...e)}}}function f(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function p(e){return Array.isArray(e)?e:[e]}function m(t){return t||(0,e.getCurrentInstance)()}function h(t,n,r={}){let{eventFilter:i=u,...a}=r;return(0,e.watch)(t,l(i,n),a)}function g(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=d(r,{initialState:i});return{stop:h(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}var _=g;function v(t,n=!0,r){m(r)?(0,e.onMounted)(t,r):n?t():(0,e.nextTick)(t)}function y(t,n,r){return(0,e.watch)(t,n,{...r,immediate:!0})}exports.bypassFilter=u,exports.createFilterWrapper=l,exports.getLifeCycleTarget=m,exports.injectLocal=r,exports.isClient=i,exports.isObject=o,exports.noop=s,exports.pausableFilter=d,exports.pausableWatch=_,exports.pxValue=f,exports.toArray=p,exports.toRef=c,exports.tryOnMounted=v,exports.tryOnScopeDispose=t,exports.watchImmediate=y,exports.watchPausable=g,exports.watchWithFilter=h;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { customRef as e, getCurrentInstance as t, getCurrentScope as n, hasInjectionContext as r, inject as i, isRef as a, nextTick as o, onMounted as s, onScopeDispose as c, readonly as l, ref as u, shallowRef as d, toRef as f, toValue as p, watch as m } from "vue";
|
|
2
|
-
//#region node_modules/.pnpm/@vueuse+shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
function h(e, t) {
|
|
4
|
-
return n() ? (c(e, t), !0) : !1;
|
|
5
|
-
}
|
|
6
|
-
var g = /* @__PURE__ */ new WeakMap(), _ = (...e) => {
|
|
7
|
-
var a;
|
|
8
|
-
let o = e[0], s = (a = t()) == null ? void 0 : a.proxy, c = s == null ? n() : s;
|
|
9
|
-
if (c == null && !r()) throw Error("injectLocal must be called in setup");
|
|
10
|
-
return c && g.has(c) && o in g.get(c) ? g.get(c)[o] : i(...e);
|
|
11
|
-
}, v = typeof window < "u" && typeof document < "u";
|
|
12
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
-
var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
|
|
14
|
-
function w() {
|
|
15
|
-
var e, t, n;
|
|
16
|
-
return v && ((e = window) == null || (e = e.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test((n = window) == null ? void 0 : n.navigator.userAgent));
|
|
17
|
-
}
|
|
18
|
-
function T(...t) {
|
|
19
|
-
if (t.length !== 1) return f(...t);
|
|
20
|
-
let n = t[0];
|
|
21
|
-
return typeof n == "function" ? l(e(() => ({
|
|
22
|
-
get: n,
|
|
23
|
-
set: S
|
|
24
|
-
}))) : u(n);
|
|
25
|
-
}
|
|
26
|
-
function E(e, t) {
|
|
27
|
-
function n(...n) {
|
|
28
|
-
return new Promise((r, i) => {
|
|
29
|
-
Promise.resolve(e(() => t.apply(this, n), {
|
|
30
|
-
fn: t,
|
|
31
|
-
thisArg: this,
|
|
32
|
-
args: n
|
|
33
|
-
})).then(r).catch(i);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
return n;
|
|
37
|
-
}
|
|
38
|
-
var D = (e) => e();
|
|
39
|
-
function O(e, t = {}) {
|
|
40
|
-
let n, r, i = S, a = (e) => {
|
|
41
|
-
clearTimeout(e), i(), i = S;
|
|
42
|
-
}, o;
|
|
43
|
-
return (s) => {
|
|
44
|
-
let c = p(e), l = p(t.maxWait);
|
|
45
|
-
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r && (a(r), r = void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
46
|
-
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
47
|
-
n && a(n), r = void 0, e(o());
|
|
48
|
-
}, l)), n = setTimeout(() => {
|
|
49
|
-
r && a(r), r = void 0, e(s());
|
|
50
|
-
}, c);
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function k(e = D, t = {}) {
|
|
55
|
-
let { initialState: n = "active" } = t, r = T(n === "active");
|
|
56
|
-
function i() {
|
|
57
|
-
r.value = !1;
|
|
58
|
-
}
|
|
59
|
-
function a() {
|
|
60
|
-
r.value = !0;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
isActive: l(r),
|
|
64
|
-
pause: i,
|
|
65
|
-
resume: a,
|
|
66
|
-
eventFilter: (...t) => {
|
|
67
|
-
r.value && e(...t);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function A(e) {
|
|
72
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
73
|
-
}
|
|
74
|
-
function j(e) {
|
|
75
|
-
return Array.isArray(e) ? e : [e];
|
|
76
|
-
}
|
|
77
|
-
function M(e) {
|
|
78
|
-
return e || t();
|
|
79
|
-
}
|
|
80
|
-
function N(e, t = 200, n = {}) {
|
|
81
|
-
return E(O(t, n), e);
|
|
82
|
-
}
|
|
83
|
-
function P(e, t, n = {}) {
|
|
84
|
-
let { eventFilter: r = D, ...i } = n;
|
|
85
|
-
return m(e, E(r, t), i);
|
|
86
|
-
}
|
|
87
|
-
function F(e, t, n = {}) {
|
|
88
|
-
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = k(r, { initialState: i });
|
|
89
|
-
return {
|
|
90
|
-
stop: P(e, t, {
|
|
91
|
-
...a,
|
|
92
|
-
eventFilter: o
|
|
93
|
-
}),
|
|
94
|
-
pause: s,
|
|
95
|
-
resume: c,
|
|
96
|
-
isActive: l
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
var I = F;
|
|
100
|
-
function L(e, t = !0, n) {
|
|
101
|
-
M(n) ? s(e, n) : t ? e() : o(e);
|
|
102
|
-
}
|
|
103
|
-
function R(e = !1, t = {}) {
|
|
104
|
-
let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = a(e), o = d(e);
|
|
105
|
-
function s(e) {
|
|
106
|
-
if (arguments.length) return o.value = e, o.value;
|
|
107
|
-
{
|
|
108
|
-
let e = p(n);
|
|
109
|
-
return o.value = o.value === e ? p(r) : e, o.value;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return i ? s : [o, s];
|
|
113
|
-
}
|
|
114
|
-
function z(e, t, n) {
|
|
115
|
-
return m(e, t, {
|
|
116
|
-
...n,
|
|
117
|
-
immediate: !0
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
export { D as bypassFilter, E as createFilterWrapper, O as debounceFilter, M as getLifeCycleTarget, _ as injectLocal, v as isClient, C as isIOS, x as isObject, S as noop, y as notNullish, k as pausableFilter, I as pausableWatch, A as pxValue, j as toArray, T as toRef, L as tryOnMounted, h as tryOnScopeDispose, N as useDebounceFn, R as useToggle, z as watchImmediate, F as watchPausable, P as watchWithFilter };
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { injectLocal as e, isClient as t, isObject as n, pausableWatch as r, pxValue as i, toArray as a, toRef as o, tryOnMounted as s, tryOnScopeDispose as c, watchImmediate as l } from "../../../../../@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
2
|
-
import { computed as u, getCurrentInstance as d, hasInjectionContext as f, nextTick as p, onMounted as m, ref as h, shallowRef as g, toValue as _, unref as v, watch as y, watchEffect as b } from "vue";
|
|
3
|
-
//#region packages/svg-icons/dist/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs
|
|
4
|
-
var x = t ? window : void 0;
|
|
5
|
-
t && window.document, t && window.navigator, t && window.location;
|
|
6
|
-
function S(e) {
|
|
7
|
-
var t;
|
|
8
|
-
let n = _(e);
|
|
9
|
-
return (t = n == null ? void 0 : n.$el) == null ? n : t;
|
|
10
|
-
}
|
|
11
|
-
function C(...e) {
|
|
12
|
-
let t = [], r = () => {
|
|
13
|
-
t.forEach((e) => e()), t.length = 0;
|
|
14
|
-
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), o = u(() => {
|
|
15
|
-
let t = a(_(e[0])).filter((e) => e != null);
|
|
16
|
-
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
17
|
-
}), s = l(() => {
|
|
18
|
-
var t, n;
|
|
19
|
-
return [
|
|
20
|
-
(t = (n = o.value) == null ? void 0 : n.map((e) => S(e))) == null ? [x].filter((e) => e != null) : t,
|
|
21
|
-
a(_(o.value ? e[1] : e[0])),
|
|
22
|
-
a(v(o.value ? e[2] : e[1])),
|
|
23
|
-
_(o.value ? e[3] : e[2])
|
|
24
|
-
];
|
|
25
|
-
}, ([e, a, o, s]) => {
|
|
26
|
-
if (r(), !(e != null && e.length) || !(a != null && a.length) || !(o != null && o.length)) return;
|
|
27
|
-
let c = n(s) ? { ...s } : s;
|
|
28
|
-
t.push(...e.flatMap((e) => a.flatMap((t) => o.map((n) => i(e, t, n, c)))));
|
|
29
|
-
}, { flush: "post" });
|
|
30
|
-
return c(r), () => {
|
|
31
|
-
s(), r();
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function w() {
|
|
35
|
-
let e = g(!1), t = d();
|
|
36
|
-
return t && m(() => {
|
|
37
|
-
e.value = !0;
|
|
38
|
-
}, t), e;
|
|
39
|
-
}
|
|
40
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
41
|
-
function T(e) {
|
|
42
|
-
let t = w();
|
|
43
|
-
return u(() => (t.value, !!e()));
|
|
44
|
-
}
|
|
45
|
-
var E = Symbol("vueuse-ssr-width");
|
|
46
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
47
|
-
function D() {
|
|
48
|
-
let t = f() ? e(E, null) : null;
|
|
49
|
-
return typeof t == "number" ? t : void 0;
|
|
50
|
-
}
|
|
51
|
-
function O(e, t = {}) {
|
|
52
|
-
let { window: n = x, ssrWidth: r = /* @__PURE__ */ D() } = t, a = /* @__PURE__ */ T(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = g(typeof r == "number"), s = g(), c = g(!1);
|
|
53
|
-
return b(() => {
|
|
54
|
-
if (o.value) {
|
|
55
|
-
o.value = !a.value, c.value = _(e).split(",").some((e) => {
|
|
56
|
-
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), o = !!(n || a);
|
|
57
|
-
return n && o && (o = r >= i(n[1])), a && o && (o = r <= i(a[1])), t ? !o : o;
|
|
58
|
-
});
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
a.value && (s.value = n.matchMedia(_(e)), c.value = s.value.matches);
|
|
62
|
-
}), C(s, "change", (e) => {
|
|
63
|
-
c.value = e.matches;
|
|
64
|
-
}, { passive: !0 }), u(() => c.value);
|
|
65
|
-
}
|
|
66
|
-
var k = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, A = "__vueuse_ssr_handlers__", j = /* @__PURE__ */ M();
|
|
67
|
-
function M() {
|
|
68
|
-
return A in k || (k[A] = k[A] || {}), k[A];
|
|
69
|
-
}
|
|
70
|
-
function N(e, t) {
|
|
71
|
-
return j[e] || t;
|
|
72
|
-
}
|
|
73
|
-
function P(e) {
|
|
74
|
-
return O("(prefers-color-scheme: dark)", e);
|
|
75
|
-
}
|
|
76
|
-
function F(e) {
|
|
77
|
-
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";
|
|
78
|
-
}
|
|
79
|
-
var I = {
|
|
80
|
-
boolean: {
|
|
81
|
-
read: (e) => e === "true",
|
|
82
|
-
write: (e) => String(e)
|
|
83
|
-
},
|
|
84
|
-
object: {
|
|
85
|
-
read: (e) => JSON.parse(e),
|
|
86
|
-
write: (e) => JSON.stringify(e)
|
|
87
|
-
},
|
|
88
|
-
number: {
|
|
89
|
-
read: (e) => Number.parseFloat(e),
|
|
90
|
-
write: (e) => String(e)
|
|
91
|
-
},
|
|
92
|
-
any: {
|
|
93
|
-
read: (e) => e,
|
|
94
|
-
write: (e) => String(e)
|
|
95
|
-
},
|
|
96
|
-
string: {
|
|
97
|
-
read: (e) => e,
|
|
98
|
-
write: (e) => String(e)
|
|
99
|
-
},
|
|
100
|
-
map: {
|
|
101
|
-
read: (e) => new Map(JSON.parse(e)),
|
|
102
|
-
write: (e) => JSON.stringify(Array.from(e.entries()))
|
|
103
|
-
},
|
|
104
|
-
set: {
|
|
105
|
-
read: (e) => new Set(JSON.parse(e)),
|
|
106
|
-
write: (e) => JSON.stringify(Array.from(e))
|
|
107
|
-
},
|
|
108
|
-
date: {
|
|
109
|
-
read: (e) => new Date(e),
|
|
110
|
-
write: (e) => e.toISOString()
|
|
111
|
-
}
|
|
112
|
-
}, L = "vueuse-storage";
|
|
113
|
-
function R(e, t, n, i = {}) {
|
|
114
|
-
var a;
|
|
115
|
-
let { flush: o = "pre", deep: c = !0, listenToStorageChanges: l = !0, writeDefaults: d = !0, mergeDefaults: f = !1, shallow: m, window: v = x, eventFilter: b, onError: S = (e) => {
|
|
116
|
-
console.error(e);
|
|
117
|
-
}, initOnMounted: w } = i, T = (m ? g : h)(typeof t == "function" ? t() : t), E = u(() => _(e));
|
|
118
|
-
if (!n) try {
|
|
119
|
-
n = N("getDefaultStorage", () => x == null ? void 0 : x.localStorage)();
|
|
120
|
-
} catch (e) {
|
|
121
|
-
S(e);
|
|
122
|
-
}
|
|
123
|
-
if (!n) return T;
|
|
124
|
-
let D = _(t), O = F(D), k = (a = i.serializer) == null ? I[O] : a, { pause: A, resume: j } = r(T, (e) => R(e), {
|
|
125
|
-
flush: o,
|
|
126
|
-
deep: c,
|
|
127
|
-
eventFilter: b
|
|
128
|
-
});
|
|
129
|
-
y(E, () => B(), { flush: o });
|
|
130
|
-
let M = !1;
|
|
131
|
-
v && l && (n instanceof Storage ? C(v, "storage", (e) => {
|
|
132
|
-
w && !M || B(e);
|
|
133
|
-
}, { passive: !0 }) : C(v, "vueuse-storage", (e) => {
|
|
134
|
-
w && !M || V(e);
|
|
135
|
-
})), w ? s(() => {
|
|
136
|
-
M = !0, B();
|
|
137
|
-
}) : B();
|
|
138
|
-
function P(e, t) {
|
|
139
|
-
if (v) {
|
|
140
|
-
let r = {
|
|
141
|
-
key: E.value,
|
|
142
|
-
oldValue: e,
|
|
143
|
-
newValue: t,
|
|
144
|
-
storageArea: n
|
|
145
|
-
};
|
|
146
|
-
v.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", r) : new CustomEvent(L, { detail: r }));
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
function R(e) {
|
|
150
|
-
try {
|
|
151
|
-
let t = n.getItem(E.value);
|
|
152
|
-
if (e == null) P(t, null), n.removeItem(E.value);
|
|
153
|
-
else {
|
|
154
|
-
let r = k.write(e);
|
|
155
|
-
t !== r && (n.setItem(E.value, r), P(t, r));
|
|
156
|
-
}
|
|
157
|
-
} catch (e) {
|
|
158
|
-
S(e);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function z(e) {
|
|
162
|
-
let t = e ? e.newValue : n.getItem(E.value);
|
|
163
|
-
if (t == null) return d && D != null && n.setItem(E.value, k.write(D)), D;
|
|
164
|
-
if (!e && f) {
|
|
165
|
-
let e = k.read(t);
|
|
166
|
-
return typeof f == "function" ? f(e, D) : O === "object" && !Array.isArray(e) ? {
|
|
167
|
-
...D,
|
|
168
|
-
...e
|
|
169
|
-
} : e;
|
|
170
|
-
} else if (typeof t != "string") return t;
|
|
171
|
-
else return k.read(t);
|
|
172
|
-
}
|
|
173
|
-
function B(e) {
|
|
174
|
-
if (!(e && e.storageArea !== n)) {
|
|
175
|
-
if (e && e.key == null) {
|
|
176
|
-
T.value = D;
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
if (!(e && e.key !== E.value)) {
|
|
180
|
-
A();
|
|
181
|
-
try {
|
|
182
|
-
let t = k.write(T.value);
|
|
183
|
-
(e === void 0 || (e == null ? void 0 : e.newValue) !== t) && (T.value = z(e));
|
|
184
|
-
} catch (e) {
|
|
185
|
-
S(e);
|
|
186
|
-
} finally {
|
|
187
|
-
e ? p(j) : j();
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
function V(e) {
|
|
193
|
-
B(e.detail);
|
|
194
|
-
}
|
|
195
|
-
return T;
|
|
196
|
-
}
|
|
197
|
-
var z = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
|
|
198
|
-
function B(e = {}) {
|
|
199
|
-
let { selector: t = "html", attribute: n = "class", initialValue: r = "auto", window: i = x, storage: a, storageKey: c = "vueuse-color-scheme", listenToStorageChanges: l = !0, storageRef: d, emitAuto: f, disableTransition: p = !0 } = e, m = {
|
|
200
|
-
auto: "",
|
|
201
|
-
light: "light",
|
|
202
|
-
dark: "dark",
|
|
203
|
-
...e.modes || {}
|
|
204
|
-
}, h = P({ window: i }), g = u(() => h.value ? "dark" : "light"), _ = d || (c == null ? o(r) : R(c, r, a, {
|
|
205
|
-
window: i,
|
|
206
|
-
listenToStorageChanges: l
|
|
207
|
-
})), v = u(() => _.value === "auto" ? g.value : _.value), b = N("updateHTMLAttrs", (e, t, n) => {
|
|
208
|
-
let r = typeof e == "string" ? i == null ? void 0 : i.document.querySelector(e) : S(e);
|
|
209
|
-
if (!r) return;
|
|
210
|
-
let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = null;
|
|
211
|
-
if (t === "class") {
|
|
212
|
-
let e = n.split(/\s/g);
|
|
213
|
-
Object.values(m).flatMap((e) => (e || "").split(/\s/g)).filter(Boolean).forEach((t) => {
|
|
214
|
-
e.includes(t) ? a.add(t) : o.add(t);
|
|
215
|
-
});
|
|
216
|
-
} else s = {
|
|
217
|
-
key: t,
|
|
218
|
-
value: n
|
|
219
|
-
};
|
|
220
|
-
if (a.size === 0 && o.size === 0 && s === null) return;
|
|
221
|
-
let c;
|
|
222
|
-
p && (c = i.document.createElement("style"), c.appendChild(document.createTextNode(z)), i.document.head.appendChild(c));
|
|
223
|
-
for (let e of a) r.classList.add(e);
|
|
224
|
-
for (let e of o) r.classList.remove(e);
|
|
225
|
-
s && r.setAttribute(s.key, s.value), p && (i.getComputedStyle(c).opacity, document.head.removeChild(c));
|
|
226
|
-
});
|
|
227
|
-
function C(e) {
|
|
228
|
-
var r;
|
|
229
|
-
b(t, n, (r = m[e]) == null ? e : r);
|
|
230
|
-
}
|
|
231
|
-
function w(t) {
|
|
232
|
-
e.onChanged ? e.onChanged(t, C) : C(t);
|
|
233
|
-
}
|
|
234
|
-
y(v, w, {
|
|
235
|
-
flush: "post",
|
|
236
|
-
immediate: !0
|
|
237
|
-
}), s(() => w(v.value));
|
|
238
|
-
let T = u({
|
|
239
|
-
get() {
|
|
240
|
-
return f ? _.value : v.value;
|
|
241
|
-
},
|
|
242
|
-
set(e) {
|
|
243
|
-
_.value = e;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
return Object.assign(T, {
|
|
247
|
-
store: _,
|
|
248
|
-
system: g,
|
|
249
|
-
state: v
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
function V(e = {}) {
|
|
253
|
-
let { valueDark: t = "dark", valueLight: n = "" } = e, r = B({
|
|
254
|
-
...e,
|
|
255
|
-
onChanged: (t, n) => {
|
|
256
|
-
var r;
|
|
257
|
-
e.onChanged ? (r = e.onChanged) == null || r.call(e, t === "dark", n, t) : n(t);
|
|
258
|
-
},
|
|
259
|
-
modes: {
|
|
260
|
-
dark: t,
|
|
261
|
-
light: n
|
|
262
|
-
}
|
|
263
|
-
}), i = u(() => r.system.value);
|
|
264
|
-
return u({
|
|
265
|
-
get() {
|
|
266
|
-
return r.value === "dark";
|
|
267
|
-
},
|
|
268
|
-
set(e) {
|
|
269
|
-
let t = e ? "dark" : "light";
|
|
270
|
-
i.value === t ? r.value = "auto" : r.value = t;
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
//#endregion
|
|
275
|
-
export { I as StorageSerializers, L as customStorageEventName, x as defaultWindow, N as getSSRHandler, e as injectLocal, t as isClient, n as isObject, r as pausableWatch, i as pxValue, a as toArray, o as toRef, s as tryOnMounted, c as tryOnScopeDispose, S as unrefElement, B as useColorMode, V as useDark, C as useEventListener, O as useMediaQuery, w as useMounted, P as usePreferredDark, D as useSSRWidth, R as useStorage, T as useSupported, l as watchImmediate };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { customRef as e, getCurrentInstance as t, getCurrentScope as n, hasInjectionContext as r, inject as i, nextTick as a, onMounted as o, onScopeDispose as s, readonly as c, ref as l, toRef as u, watch as d } from "vue";
|
|
2
|
-
//#region packages/svg-icons/dist/es/node_modules/.pnpm/@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs
|
|
3
|
-
function f(e, t) {
|
|
4
|
-
return n() ? (s(e, t), !0) : !1;
|
|
5
|
-
}
|
|
6
|
-
var p = /* @__PURE__ */ new WeakMap(), m = (...e) => {
|
|
7
|
-
var a;
|
|
8
|
-
let o = e[0], s = (a = t()) == null ? void 0 : a.proxy, c = s == null ? n() : s;
|
|
9
|
-
if (c == null && !r()) throw Error("injectLocal must be called in setup");
|
|
10
|
-
return c && p.has(c) && o in p.get(c) ? p.get(c)[o] : i(...e);
|
|
11
|
-
}, h = typeof window < "u" && typeof document < "u";
|
|
12
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
-
var g = Object.prototype.toString, _ = (e) => g.call(e) === "[object Object]", v = () => {};
|
|
14
|
-
function y(...t) {
|
|
15
|
-
if (t.length !== 1) return u(...t);
|
|
16
|
-
let n = t[0];
|
|
17
|
-
return typeof n == "function" ? c(e(() => ({
|
|
18
|
-
get: n,
|
|
19
|
-
set: v
|
|
20
|
-
}))) : l(n);
|
|
21
|
-
}
|
|
22
|
-
function b(e, t) {
|
|
23
|
-
function n(...n) {
|
|
24
|
-
return new Promise((r, i) => {
|
|
25
|
-
Promise.resolve(e(() => t.apply(this, n), {
|
|
26
|
-
fn: t,
|
|
27
|
-
thisArg: this,
|
|
28
|
-
args: n
|
|
29
|
-
})).then(r).catch(i);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
return n;
|
|
33
|
-
}
|
|
34
|
-
var x = (e) => e();
|
|
35
|
-
function S(e = x, t = {}) {
|
|
36
|
-
let { initialState: n = "active" } = t, r = y(n === "active");
|
|
37
|
-
function i() {
|
|
38
|
-
r.value = !1;
|
|
39
|
-
}
|
|
40
|
-
function a() {
|
|
41
|
-
r.value = !0;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
isActive: c(r),
|
|
45
|
-
pause: i,
|
|
46
|
-
resume: a,
|
|
47
|
-
eventFilter: (...t) => {
|
|
48
|
-
r.value && e(...t);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function C(e) {
|
|
53
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
54
|
-
}
|
|
55
|
-
function w(e) {
|
|
56
|
-
return Array.isArray(e) ? e : [e];
|
|
57
|
-
}
|
|
58
|
-
function T(e) {
|
|
59
|
-
return e || t();
|
|
60
|
-
}
|
|
61
|
-
function E(e, t, n = {}) {
|
|
62
|
-
let { eventFilter: r = x, ...i } = n;
|
|
63
|
-
return d(e, b(r, t), i);
|
|
64
|
-
}
|
|
65
|
-
function D(e, t, n = {}) {
|
|
66
|
-
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = S(r, { initialState: i });
|
|
67
|
-
return {
|
|
68
|
-
stop: E(e, t, {
|
|
69
|
-
...a,
|
|
70
|
-
eventFilter: o
|
|
71
|
-
}),
|
|
72
|
-
pause: s,
|
|
73
|
-
resume: c,
|
|
74
|
-
isActive: l
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
var O = D;
|
|
78
|
-
function k(e, t = !0, n) {
|
|
79
|
-
T(n) ? o(e, n) : t ? e() : a(e);
|
|
80
|
-
}
|
|
81
|
-
function A(e, t, n) {
|
|
82
|
-
return d(e, t, {
|
|
83
|
-
...n,
|
|
84
|
-
immediate: !0
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
export { x as bypassFilter, b as createFilterWrapper, T as getLifeCycleTarget, m as injectLocal, h as isClient, _ as isObject, v as noop, S as pausableFilter, O as pausableWatch, C as pxValue, w as toArray, y as toRef, k as tryOnMounted, f as tryOnScopeDispose, A as watchImmediate, D as watchPausable, E as watchWithFilter };
|