rappel-ui 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/button/src/types.d.ts +1 -1
- package/cjs/components/filter-panel/index.d.ts +78 -0
- package/cjs/components/filter-panel/index.js +1 -0
- package/cjs/components/filter-panel/src/constants.d.ts +1 -0
- package/cjs/components/filter-panel/src/filter-panel.vue.js +1 -0
- package/cjs/components/filter-panel/src/filter-panel.vue2.js +1 -0
- package/cjs/components/filter-panel/src/types.d.ts +18 -0
- package/cjs/components/filter-panel/style/css.d.ts +0 -0
- package/cjs/components/filter-panel/style/index.d.ts +0 -0
- package/cjs/components/index.d.ts +2 -0
- package/cjs/components/index.js +1 -1
- package/cjs/components/svg-icon/index.d.ts +3 -0
- package/cjs/components/svg-icon/index.js +1 -0
- package/cjs/components/svg-icon/src/svg-icon.vue.js +1 -0
- package/cjs/components/svg-icon/src/svg-icon.vue2.js +1 -0
- package/cjs/components/svg-icon/src/types.d.ts +7 -0
- package/cjs/components/svg-icon/style/css.d.ts +0 -0
- package/cjs/components/svg-icon/style/index.d.ts +0 -0
- package/cjs/index.d.ts +77 -0
- package/cjs/index.js +1 -1
- 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 +1 -0
- 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 +1 -0
- package/cjs/svg-icons/index.d.ts +0 -0
- package/cjs/theme-chalk/src/filter-panel.css +1 -0
- package/cjs/theme-chalk/src/svg-icon.css +1 -0
- package/es/components/button/src/types.d.ts +1 -1
- package/es/components/filter-panel/index.d.ts +78 -0
- package/es/components/filter-panel/index.mjs +7 -0
- package/es/components/filter-panel/src/constants.d.ts +1 -0
- package/es/components/filter-panel/src/filter-panel.vue.mjs +158 -0
- package/es/components/filter-panel/src/filter-panel.vue2.mjs +4 -0
- package/es/components/filter-panel/src/types.d.ts +18 -0
- package/es/components/filter-panel/style/css.d.ts +0 -0
- package/es/components/filter-panel/style/index.d.ts +0 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +12 -8
- package/es/components/svg-icon/index.d.ts +3 -0
- package/es/components/svg-icon/index.mjs +7 -0
- package/es/components/svg-icon/src/svg-icon.vue.mjs +33 -0
- package/es/components/svg-icon/src/svg-icon.vue2.mjs +4 -0
- package/es/components/svg-icon/src/types.d.ts +7 -0
- package/es/components/svg-icon/style/css.d.ts +0 -0
- package/es/components/svg-icon/style/index.d.ts +0 -0
- package/es/index.d.ts +77 -0
- package/es/index.mjs +13 -9
- package/es/node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.mjs +119 -0
- 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 +24 -0
- package/es/svg-icons/index.d.ts +0 -0
- package/es/theme-chalk/src/filter-panel.css +1 -0
- package/es/theme-chalk/src/svg-icon.css +1 -0
- package/package.json +1 -1
- package/theme-chalk/index.css +35 -0
- package/theme-chalk/re-filter-panel.css +53 -0
- package/theme-chalk/re-svg-icon.css +50 -0
- package/theme-chalk/src/filter-panel.scss +21 -0
- package/theme-chalk/src/index.scss +2 -0
- package/theme-chalk/src/mixins/index.scss +11 -0
- package/theme-chalk/src/svg-icon.scss +19 -0
- package/umd/index.js +10 -10
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as a, computed as t, createElementBlock as s, openBlock as u, normalizeStyle as m, normalizeClass as f, unref as o, createElementVNode as d } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { useNamespace as h } from "../../../composables/use-namespace/index.mjs";
|
|
5
|
+
const v = ["d", "fill"], p = /* @__PURE__ */ a({
|
|
6
|
+
name: "ReSvgIcon",
|
|
7
|
+
__name: "svg-icon",
|
|
8
|
+
props: {
|
|
9
|
+
path: { default: "" },
|
|
10
|
+
size: { default: 16 },
|
|
11
|
+
color: { default: "currentColor" },
|
|
12
|
+
spin: { type: Boolean, default: !1 }
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
const { n, ns: l } = h("svg-icon"), i = t(() => typeof e.size == "number" ? `${e.size}px` : e.size), r = t(() => typeof e.size == "number" ? `${e.size}px` : e.size), c = t(() => e.color === "currentColor" ? "currentColor" : e.color);
|
|
16
|
+
return (z, g) => (u(), s("svg", {
|
|
17
|
+
class: f([o(n)(""), { [o(l)("", "spinner")]: e.spin }]),
|
|
18
|
+
style: m({ width: i.value, height: r.value, color: e.color }),
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
fill: "none",
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
}, [
|
|
24
|
+
d("path", {
|
|
25
|
+
d: e.path,
|
|
26
|
+
fill: c.value
|
|
27
|
+
}, null, 8, v)
|
|
28
|
+
], 6));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
p as default
|
|
33
|
+
};
|
|
File without changes
|
|
File without changes
|
package/es/index.d.ts
CHANGED
|
@@ -80,6 +80,83 @@ declare const _default: {
|
|
|
80
80
|
RePrimaryColor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
ReSecondaryColor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
82
82
|
ReNeutralColor: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
83
|
+
ReFilterPanel: {
|
|
84
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
85
|
+
isExpand?: boolean;
|
|
86
|
+
} & components.FilterPanelProps> & Readonly<{
|
|
87
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
toggle: () => void;
|
|
92
|
+
update: () => void;
|
|
93
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
94
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
95
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
96
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
97
|
+
maxH: import('vue').ComputedRef<number>;
|
|
98
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
99
|
+
search: (...args: any[]) => void;
|
|
100
|
+
reset: (...args: any[]) => void;
|
|
101
|
+
"update:isExpand": (value: boolean) => void;
|
|
102
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
103
|
+
wrapper: HTMLDivElement;
|
|
104
|
+
inner: HTMLDivElement;
|
|
105
|
+
main: HTMLDivElement;
|
|
106
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
107
|
+
P: {};
|
|
108
|
+
B: {};
|
|
109
|
+
D: {};
|
|
110
|
+
C: {};
|
|
111
|
+
M: {};
|
|
112
|
+
Defaults: {};
|
|
113
|
+
}, Readonly<{
|
|
114
|
+
isExpand?: boolean;
|
|
115
|
+
} & components.FilterPanelProps> & Readonly<{
|
|
116
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
119
|
+
}>, {
|
|
120
|
+
toggle: () => void;
|
|
121
|
+
update: () => void;
|
|
122
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
123
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
124
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
125
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
126
|
+
maxH: import('vue').ComputedRef<number>;
|
|
127
|
+
}, {}, {}, {}, {}>;
|
|
128
|
+
__isFragment?: never;
|
|
129
|
+
__isTeleport?: never;
|
|
130
|
+
__isSuspense?: never;
|
|
131
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
132
|
+
isExpand?: boolean;
|
|
133
|
+
} & components.FilterPanelProps> & Readonly<{
|
|
134
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
137
|
+
}>, {
|
|
138
|
+
toggle: () => void;
|
|
139
|
+
update: () => void;
|
|
140
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
141
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
142
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
143
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
144
|
+
maxH: import('vue').ComputedRef<number>;
|
|
145
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
146
|
+
search: (...args: any[]) => void;
|
|
147
|
+
reset: (...args: any[]) => void;
|
|
148
|
+
"update:isExpand": (value: boolean) => void;
|
|
149
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
150
|
+
$slots: {
|
|
151
|
+
default?(_: {}): any;
|
|
152
|
+
main?(_: {}): any;
|
|
153
|
+
expand?(_: {}): any;
|
|
154
|
+
reset?(_: {}): any;
|
|
155
|
+
search?(_: {}): any;
|
|
156
|
+
extra?(_: {}): any;
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
ReSvgIcon: import('vue').DefineComponent<components.SvgIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<components.SvgIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
83
160
|
install: (app: import('vue').App) => void;
|
|
84
161
|
version: string;
|
|
85
162
|
};
|
package/es/index.mjs
CHANGED
|
@@ -8,9 +8,9 @@ import { useDateFormat as y } from "./composables/useDateFormat.mjs";
|
|
|
8
8
|
import { useOnceFn as L } from "./composables/useOnceFn.mjs";
|
|
9
9
|
import { useTimeNodes as F } from "./composables/useTimeNodes.mjs";
|
|
10
10
|
import { useWaterFallLayout as O } from "./composables/useWaterFallLayout.mjs";
|
|
11
|
-
import { useNamespace as
|
|
11
|
+
import { useNamespace as D } from "./composables/use-namespace/index.mjs";
|
|
12
12
|
import { createGlobalInstaller as r } from "./utils/vue/index.mjs";
|
|
13
|
-
import { INSTALLED_KEY as
|
|
13
|
+
import { INSTALLED_KEY as P, toLowerCase as h, withInstall as w, withMultiInstall as N } from "./utils/vue/index.mjs";
|
|
14
14
|
import { autoCalcFileSize as z, buildTree as B, createColors as K, createOverload as U, darkenColor as k, deepClone as A, deleteKeys as q, flatArr as G, getEqualOpacityColor as M, hasOwnProperty as W, isPlainObject as Y, joinURLs as _, lineBreakToComma as $, omitEmptyKeys as H, paramsToFormData as J, readTxtByEncodes as Q, readTxtFile as V, setURLSearchParams as X, singleton as Z } from "./utils/util.mjs";
|
|
15
15
|
import { default as oe } from "./components/colors/src/primary-color.vue.mjs";
|
|
16
16
|
import { default as te } from "./components/colors/src/secondary-color.vue.mjs";
|
|
@@ -19,21 +19,25 @@ import { ReButton as me } from "./components/button/index.mjs";
|
|
|
19
19
|
import { ReInput as ne } from "./components/input/index.mjs";
|
|
20
20
|
import { ReTabs as fe } from "./components/tabs/index.mjs";
|
|
21
21
|
import { ReColors as ue } from "./components/colors/index.mjs";
|
|
22
|
-
import {
|
|
22
|
+
import { ReFilterPanel as ce } from "./components/filter-panel/index.mjs";
|
|
23
|
+
import { ReSvgIcon as Ce } from "./components/svg-icon/index.mjs";
|
|
24
|
+
import { RappelUIResolver as ve } from "./rappel-ui/resolver.mjs";
|
|
23
25
|
const o = r(Object.values(e)), t = o.install, a = o.version, s = {
|
|
24
26
|
install: t,
|
|
25
27
|
version: a,
|
|
26
28
|
...e
|
|
27
29
|
};
|
|
28
30
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
P as INSTALLED_KEY,
|
|
32
|
+
ve as RappelUIResolver,
|
|
31
33
|
me as ReButton,
|
|
32
34
|
ue as ReColors,
|
|
35
|
+
ce as ReFilterPanel,
|
|
33
36
|
ne as ReInput,
|
|
34
37
|
le as ReNeutralColor,
|
|
35
38
|
oe as RePrimaryColor,
|
|
36
39
|
te as ReSecondaryColor,
|
|
40
|
+
Ce as ReSvgIcon,
|
|
37
41
|
fe as ReTabs,
|
|
38
42
|
u as applyResizable,
|
|
39
43
|
z as autoCalcFileSize,
|
|
@@ -59,10 +63,10 @@ export {
|
|
|
59
63
|
X as setURLSearchParams,
|
|
60
64
|
Z as singleton,
|
|
61
65
|
n as svgLoadingContent,
|
|
62
|
-
|
|
66
|
+
h as toLowerCase,
|
|
63
67
|
y as useDateFormat,
|
|
64
68
|
g as useDraggable,
|
|
65
|
-
|
|
69
|
+
D as useNamespace,
|
|
66
70
|
L as useOnceFn,
|
|
67
71
|
F as useTimeNodes,
|
|
68
72
|
O as useWaterFallLayout,
|
|
@@ -70,6 +74,6 @@ export {
|
|
|
70
74
|
d as vResizable,
|
|
71
75
|
R as vSvgLoading,
|
|
72
76
|
a as version,
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
w as withInstall,
|
|
78
|
+
N as withMultiInstall
|
|
75
79
|
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { tryOnMounted as B, toArray as R, notNullish as $, tryOnScopeDispose as M, isClient as z } from "../../../../../@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
2
|
+
import { getLifeCycleTarget as D } from "../../../../../@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.mjs";
|
|
3
|
+
import { computed as w, shallowRef as b, watch as x, toValue as g, getCurrentInstance as C, onMounted as W } from "vue";
|
|
4
|
+
const O = z ? window : void 0;
|
|
5
|
+
function d(o) {
|
|
6
|
+
var t;
|
|
7
|
+
const r = g(o);
|
|
8
|
+
return (t = r?.$el) !== null && t !== void 0 ? t : r;
|
|
9
|
+
}
|
|
10
|
+
// @__NO_SIDE_EFFECTS__
|
|
11
|
+
function E() {
|
|
12
|
+
const o = b(!1), t = C();
|
|
13
|
+
return t && W(() => {
|
|
14
|
+
o.value = !0;
|
|
15
|
+
}, t), o;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function S(o) {
|
|
19
|
+
const t = /* @__PURE__ */ E();
|
|
20
|
+
return w(() => (t.value, !!o()));
|
|
21
|
+
}
|
|
22
|
+
function y(o, t, r = {}) {
|
|
23
|
+
const { window: c = O, ...l } = r;
|
|
24
|
+
let n;
|
|
25
|
+
const s = /* @__PURE__ */ S(() => c && "MutationObserver" in c), i = () => {
|
|
26
|
+
n && (n.disconnect(), n = void 0);
|
|
27
|
+
}, a = x(w(() => {
|
|
28
|
+
const e = R(g(o)).map(d).filter($);
|
|
29
|
+
return new Set(e);
|
|
30
|
+
}), (e) => {
|
|
31
|
+
i(), s.value && e.size && (n = new MutationObserver(t), e.forEach((p) => n.observe(p, l)));
|
|
32
|
+
}, {
|
|
33
|
+
immediate: !0,
|
|
34
|
+
flush: "post"
|
|
35
|
+
}), f = () => n?.takeRecords(), u = () => {
|
|
36
|
+
a(), i();
|
|
37
|
+
};
|
|
38
|
+
return M(u), {
|
|
39
|
+
isSupported: s,
|
|
40
|
+
stop: u,
|
|
41
|
+
takeRecords: f
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function _(o, t, r = {}) {
|
|
45
|
+
const { window: c = O, ...l } = r;
|
|
46
|
+
let n;
|
|
47
|
+
const s = /* @__PURE__ */ S(() => c && "ResizeObserver" in c), i = () => {
|
|
48
|
+
n && (n.disconnect(), n = void 0);
|
|
49
|
+
}, a = x(w(() => {
|
|
50
|
+
const u = g(o);
|
|
51
|
+
return Array.isArray(u) ? u.map((e) => d(e)) : [d(u)];
|
|
52
|
+
}), (u) => {
|
|
53
|
+
if (i(), s.value && c) {
|
|
54
|
+
n = new ResizeObserver(t);
|
|
55
|
+
for (const e of u) e && n.observe(e, l);
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
immediate: !0,
|
|
59
|
+
flush: "post"
|
|
60
|
+
}), f = () => {
|
|
61
|
+
i(), a();
|
|
62
|
+
};
|
|
63
|
+
return M(f), {
|
|
64
|
+
isSupported: s,
|
|
65
|
+
stop: f
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function H(o, t = {
|
|
69
|
+
width: 0,
|
|
70
|
+
height: 0
|
|
71
|
+
}, r = {}) {
|
|
72
|
+
const { window: c = O, box: l = "content-box" } = r, n = w(() => {
|
|
73
|
+
var e;
|
|
74
|
+
return (e = d(o)) === null || e === void 0 || (e = e.namespaceURI) === null || e === void 0 ? void 0 : e.includes("svg");
|
|
75
|
+
}), s = b(t.width), i = b(t.height), { stop: a } = _(o, ([e]) => {
|
|
76
|
+
const p = l === "border-box" ? e.borderBoxSize : l === "content-box" ? e.contentBoxSize : e.devicePixelContentBoxSize;
|
|
77
|
+
if (c && n.value) {
|
|
78
|
+
const h = d(o);
|
|
79
|
+
if (h) {
|
|
80
|
+
const v = h.getBoundingClientRect();
|
|
81
|
+
s.value = v.width, i.value = v.height;
|
|
82
|
+
}
|
|
83
|
+
} else if (p) {
|
|
84
|
+
const h = R(p);
|
|
85
|
+
s.value = h.reduce((v, { inlineSize: m }) => v + m, 0), i.value = h.reduce((v, { blockSize: m }) => v + m, 0);
|
|
86
|
+
} else
|
|
87
|
+
s.value = e.contentRect.width, i.value = e.contentRect.height;
|
|
88
|
+
}, r);
|
|
89
|
+
B(() => {
|
|
90
|
+
const e = d(o);
|
|
91
|
+
e && (s.value = "offsetWidth" in e ? e.offsetWidth : t.width, i.value = "offsetHeight" in e ? e.offsetHeight : t.height);
|
|
92
|
+
});
|
|
93
|
+
const f = x(() => d(o), (e) => {
|
|
94
|
+
s.value = e ? t.width : 0, i.value = e ? t.height : 0;
|
|
95
|
+
});
|
|
96
|
+
function u() {
|
|
97
|
+
a(), f();
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
width: s,
|
|
101
|
+
height: i,
|
|
102
|
+
stop: u
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
O as defaultWindow,
|
|
107
|
+
D as getLifeCycleTarget,
|
|
108
|
+
z as isClient,
|
|
109
|
+
$ as notNullish,
|
|
110
|
+
R as toArray,
|
|
111
|
+
B as tryOnMounted,
|
|
112
|
+
M as tryOnScopeDispose,
|
|
113
|
+
d as unrefElement,
|
|
114
|
+
H as useElementSize,
|
|
115
|
+
E as useMounted,
|
|
116
|
+
y as useMutationObserver,
|
|
117
|
+
_ as useResizeObserver,
|
|
118
|
+
S as useSupported
|
|
119
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { onMounted as o, nextTick as r, getCurrentScope as i, onScopeDispose as u, getCurrentInstance as c } from "vue";
|
|
2
|
+
function l(e, n) {
|
|
3
|
+
return i() ? (u(e, n), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const p = typeof window < "u" && typeof document < "u";
|
|
6
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
+
const d = (e) => e != null;
|
|
8
|
+
function a(e) {
|
|
9
|
+
return Array.isArray(e) ? e : [e];
|
|
10
|
+
}
|
|
11
|
+
function f(e) {
|
|
12
|
+
return c();
|
|
13
|
+
}
|
|
14
|
+
function y(e, n = !0, t) {
|
|
15
|
+
f() ? o(e, t) : n ? e() : r(e);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
f as getLifeCycleTarget,
|
|
19
|
+
p as isClient,
|
|
20
|
+
d as notNullish,
|
|
21
|
+
a as toArray,
|
|
22
|
+
y as tryOnMounted,
|
|
23
|
+
l as tryOnScopeDispose
|
|
24
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.re-filter-panel{display:flex;align-items:start;overflow:hidden;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s;border-radius:4px}.re-filter-panel__inner{flex:1;min-width:0;display:flex;flex-wrap:wrap}.re-filter-panel__extra{margin-top:1em}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.re-svg-icon{display:inline-block;vertical-align:middle}.re-svg-icon__spinner{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
package/package.json
CHANGED
package/theme-chalk/index.css
CHANGED
|
@@ -623,4 +623,39 @@ body {
|
|
|
623
623
|
background-image: linear-gradient(45deg, #ededf0 25%, transparent 25%), linear-gradient(-45deg, #ededf0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ededf0 75%), linear-gradient(-45deg, transparent 75%, #ededf0 75%);
|
|
624
624
|
background-size: 22px 22px;
|
|
625
625
|
background-position: 0 0, 0 11px, 11px -11px, -11px 0px;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.re-filter-panel {
|
|
629
|
+
display: flex;
|
|
630
|
+
align-items: start;
|
|
631
|
+
overflow: hidden;
|
|
632
|
+
transition-property: all;
|
|
633
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
634
|
+
transition-duration: 300ms;
|
|
635
|
+
border-radius: 4px;
|
|
636
|
+
}
|
|
637
|
+
.re-filter-panel__inner {
|
|
638
|
+
flex: 1;
|
|
639
|
+
min-width: 0;
|
|
640
|
+
display: flex;
|
|
641
|
+
flex-wrap: wrap;
|
|
642
|
+
}
|
|
643
|
+
.re-filter-panel__extra {
|
|
644
|
+
margin-top: 1em;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.re-svg-icon {
|
|
648
|
+
display: inline-block;
|
|
649
|
+
vertical-align: middle;
|
|
650
|
+
}
|
|
651
|
+
.re-svg-icon__spinner {
|
|
652
|
+
animation: spin 1s linear infinite;
|
|
653
|
+
}
|
|
654
|
+
@keyframes spin {
|
|
655
|
+
from {
|
|
656
|
+
transform: rotate(0deg);
|
|
657
|
+
}
|
|
658
|
+
to {
|
|
659
|
+
transform: rotate(360deg);
|
|
660
|
+
}
|
|
626
661
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|
|
36
|
+
.re-filter-panel {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: start;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
transition-property: all;
|
|
41
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
42
|
+
transition-duration: 300ms;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
}
|
|
45
|
+
.re-filter-panel__inner {
|
|
46
|
+
flex: 1;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
}
|
|
51
|
+
.re-filter-panel__extra {
|
|
52
|
+
margin-top: 1em;
|
|
53
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* 将十六进制颜色转换为RGB颜色
|
|
4
|
+
* @param $hex 十六进制颜色值
|
|
5
|
+
* @returns RGB颜色值
|
|
6
|
+
* color.channel($color, "red", $space: rgb)
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将RGB颜色转换为十六进制颜色
|
|
10
|
+
* @param $value RGB颜色值
|
|
11
|
+
* @returns 十六进制颜色值
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* 将RGB颜色转换为十六进制颜色
|
|
15
|
+
* @param $color RGB颜色值
|
|
16
|
+
* @returns 十六进制颜色值
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* 创建一个等效的透明度颜色,并返回一个等效的透明度颜色
|
|
20
|
+
* @param $color 颜色
|
|
21
|
+
* @param $opacity 透明度,默认值为1
|
|
22
|
+
* @returns 一个等效的透明度颜色
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* 创建一个变暗的颜色,并返回一个变暗的颜色
|
|
26
|
+
* @param $color 颜色
|
|
27
|
+
* @param $factor 颜色变暗的度量,默认为0.15
|
|
28
|
+
* @returns 一个变暗的颜色
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* 创建层级颜色
|
|
32
|
+
* @param $base-color 基础颜色
|
|
33
|
+
* @param $darkness 变暗的度量,默认为0.15
|
|
34
|
+
* @returns 主题色映射
|
|
35
|
+
*/
|
|
36
|
+
.re-svg-icon {
|
|
37
|
+
display: inline-block;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
}
|
|
40
|
+
.re-svg-icon__spinner {
|
|
41
|
+
animation: spin 1s linear infinite;
|
|
42
|
+
}
|
|
43
|
+
@keyframes spin {
|
|
44
|
+
from {
|
|
45
|
+
transform: rotate(0deg);
|
|
46
|
+
}
|
|
47
|
+
to {
|
|
48
|
+
transform: rotate(360deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use 'mixins/index' as *;
|
|
2
|
+
|
|
3
|
+
@include buildCls(filter-panel) {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: start;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
transition-property: all;
|
|
8
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
9
|
+
transition-duration: 300ms;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
|
|
12
|
+
@include sub(inner) {
|
|
13
|
+
flex: 1;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
}
|
|
18
|
+
@include sub(extra) {
|
|
19
|
+
margin-top: 1em;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
@mixin modifier($modifier) {
|
|
12
|
+
&--#{$modifier} {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@mixin sub($subName) {
|
|
17
|
+
&__#{$subName} {
|
|
18
|
+
@content;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
11
22
|
@mixin is($state) {
|
|
12
23
|
&.#{getNamespace('statePrefix') + '-' + $state} {
|
|
13
24
|
@content;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'mixins/index' as *;
|
|
2
|
+
|
|
3
|
+
@include buildCls(svg-icon) {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
|
|
7
|
+
@include sub(spinner) {
|
|
8
|
+
animation: spin 1s linear infinite;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes spin {
|
|
12
|
+
from {
|
|
13
|
+
transform: rotate(0deg);
|
|
14
|
+
}
|
|
15
|
+
to {
|
|
16
|
+
transform: rotate(360deg);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|