rappel-ui 1.0.6 → 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/button.vue.js +1 -1
- 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/button.vue.mjs +25 -34
- 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/colors.scss +77 -77
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */;/* empty css */const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */;/* empty css */const o=require("./constants.js"),f=require("../../../composables/use-namespace/index.js"),m=["type","disabled"],y=t.defineComponent({name:"ReButton",__name:"button",props:{type:{default:""},size:{default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{default:""},loading:{type:Boolean,default:!1},loadingIcon:{default:""},text:{type:Boolean,default:!1},link:{type:Boolean,default:!1},nativeType:{default:"button"}},emits:["click"],setup(e,{emit:d}){const u=d,{n:c,nm:i,ns:a,is:l}=f.useNamespace("button"),s=t.computed(()=>[c(""),e.type&&o.buttonTypes.includes(e.type)?i("",e.type):"",e.size!=="default"&&o.buttonSizes.includes(e.size)?i("",e.size):"",l("text",e.text),l("link",e.link),l("plain",e.plain),l("round",e.round),l("circle",e.circle),l("loading",e.loading),l("disabled",e.disabled)]);function r(n){if(e.disabled||e.loading){n.preventDefault(),n.stopImmediatePropagation();return}u("click",n)}return(n,b)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(s.value),type:e.nativeType,disabled:e.disabled||e.loading,onClick:t.withModifiers(r,["stop"])},[t.renderSlot(n.$slots,"loading",{},()=>[e.loading?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([t.unref(a)("","loading"),e.loadingIcon]),"aria-hidden":"true"},null,2)):t.createCommentVNode("",!0)]),t.renderSlot(n.$slots,"icon",{},()=>[e.icon?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass([t.unref(a)("","icon"),e.icon]),"aria-hidden":"true"},null,2)):t.createCommentVNode("",!0)]),t.createElementVNode("span",{class:t.normalizeClass([t.unref(a)("","content")])},[t.renderSlot(n.$slots,"default")],2)],10,m))}});exports.default=y;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export * from './src/types.ts';
|
|
2
|
+
export declare const ReFilterPanel: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
isExpand?: boolean;
|
|
5
|
+
} & import('./index.ts').FilterPanelProps> & Readonly<{
|
|
6
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
update: () => void;
|
|
12
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
13
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
14
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
15
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
16
|
+
maxH: import('vue').ComputedRef<number>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
search: (...args: any[]) => void;
|
|
19
|
+
reset: (...args: any[]) => void;
|
|
20
|
+
"update:isExpand": (value: boolean) => void;
|
|
21
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
22
|
+
wrapper: HTMLDivElement;
|
|
23
|
+
inner: HTMLDivElement;
|
|
24
|
+
main: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<{
|
|
33
|
+
isExpand?: boolean;
|
|
34
|
+
} & import('./index.ts').FilterPanelProps> & Readonly<{
|
|
35
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
toggle: () => void;
|
|
40
|
+
update: () => void;
|
|
41
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
42
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
43
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
44
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
45
|
+
maxH: import('vue').ComputedRef<number>;
|
|
46
|
+
}, {}, {}, {}, {}>;
|
|
47
|
+
__isFragment?: never;
|
|
48
|
+
__isTeleport?: never;
|
|
49
|
+
__isSuspense?: never;
|
|
50
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
51
|
+
isExpand?: boolean;
|
|
52
|
+
} & import('./index.ts').FilterPanelProps> & Readonly<{
|
|
53
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
toggle: () => void;
|
|
58
|
+
update: () => void;
|
|
59
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
60
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
61
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
62
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
63
|
+
maxH: import('vue').ComputedRef<number>;
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
+
search: (...args: any[]) => void;
|
|
66
|
+
reset: (...args: any[]) => void;
|
|
67
|
+
"update:isExpand": (value: boolean) => void;
|
|
68
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
69
|
+
$slots: {
|
|
70
|
+
default?(_: {}): any;
|
|
71
|
+
main?(_: {}): any;
|
|
72
|
+
expand?(_: {}): any;
|
|
73
|
+
reset?(_: {}): any;
|
|
74
|
+
search?(_: {}): any;
|
|
75
|
+
extra?(_: {}): any;
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
export default ReFilterPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/vue/index.js"),l=require("./src/filter-panel.vue.js"),e=t.withInstall(l.default);exports.ReFilterPanel=e;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */;/* empty css */const d=require("../../../node_modules/.pnpm/@vueuse_core@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/core/dist/index.js"),m=require("../../button/index.js");require("../../input/index.js");require("../../tabs/index.js");require("../../colors/index.js");require("../index.js");require("../../svg-icon/index.js");const M=require("../../../composables/use-namespace/index.js"),q=e.defineComponent({name:"ReFilterPanel",__name:"filter-panel",props:e.mergeModels({selector:{default:"> *"},maxHeight:{default:0},itemMinw:{default:240},exclude:{default:"[exclude]"},loading:{type:Boolean,default:!1},enableObserver:{type:Boolean,default:!1},observerOptions:{default:()=>({})}},{isExpand:{type:Boolean,default:!1},isExpandModifiers:{}}),emits:e.mergeModels(["reset","search"],["update:isExpand"]),setup(n,{expose:y,emit:E}){const{n:$,ns:s}=M.useNamespace("filter-panel"),p=e.useTemplateRef("main"),{height:S}=d.useElementSize(p),a=e.computed(()=>n.maxHeight||S.value),v=E,h=e.useTemplateRef("wrapper"),o=e.useTemplateRef("inner"),l=e.useModel(n,"isExpand"),k=e.computed(()=>i.value>a.value),x=()=>{l.value=!l.value},{height:i,width:c}=d.useElementSize(o,{width:0,height:a.value}),{width:w}=d.useElementSize(h,{width:0,height:a.value}),u=()=>{if(!o.value)return;const t=o.value.querySelectorAll(`.${s("","inner")} ${n.selector}:not(${n.exclude})`),r=Math.floor(c.value/n.itemMinw);t.forEach(f=>{f.style.width=`${100/r}%`})},b=e.effectScope();b.run(()=>{e.watchEffect(()=>{c.value&&w.value&&u()}),e.watch(()=>i.value,t=>{t>a.value&&(l.value=!1)})});const C=()=>{const{stop:t}=d.useMutationObserver(o.value,()=>{u()},Object.assign({childList:!0,subtree:!0,attributes:!0,characterData:!0},n.observerOptions||{}));return{stop:t}};let g;return n.enableObserver&&(g=C().stop),e.onUnmounted(()=>{b.stop(),g?.()}),e.onMounted(()=>{u()}),y({toggle:x,update:u,isExpand:l,innerH:i,innerW:c,wrapperW:w,maxH:a}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref($)("")]),style:e.normalizeStyle({"max-height":`${l.value?e.unref(i):a.value}px`}),ref_key:"wrapper",ref:h},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(s)("","inner")]),ref_key:"inner",ref:o},[e.renderSlot(t.$slots,"default")],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(s)("","operator")])},[e.createElementVNode("div",{ref_key:"main",ref:p,class:e.normalizeClass([e.unref(s)("","main")])},[e.renderSlot(t.$slots,"main",{},()=>[e.renderSlot(t.$slots,"expand",{},()=>[k.value?(e.openBlock(),e.createBlock(e.unref(m.ReButton),{key:0,type:"primary",onClick:e.withModifiers(x,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value?"收起":"展开"),1)]),_:1})):e.createCommentVNode("",!0)]),e.renderSlot(t.$slots,"reset",{},()=>[e.createVNode(e.unref(m.ReButton),{disabled:n.loading,onClick:r[0]||(r[0]=e.withModifiers(f=>v("reset"),["stop"]))},{default:e.withCtx(()=>[...r[2]||(r[2]=[e.createTextVNode("重置",-1)])]),_:1},8,["disabled"])]),e.renderSlot(t.$slots,"search",{},()=>[e.createVNode(e.unref(m.ReButton),{type:"primary",disabled:n.loading,onClick:r[1]||(r[1]=e.withModifiers(f=>v("search"),["stop"]))},{default:e.withCtx(()=>[...r[3]||(r[3]=[e.createTextVNode(" 查询 ",-1)])]),_:1},8,["disabled"])])])],2),t.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s)("","extra")])},[e.renderSlot(t.$slots,"extra")],2)):e.createCommentVNode("",!0)],2)],6))}});exports.default=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./filter-panel.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface FilterPanelProps {
|
|
2
|
+
selector?: string;
|
|
3
|
+
maxHeight?: number;
|
|
4
|
+
itemMinw?: number;
|
|
5
|
+
exclude?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
enableObserver?: boolean;
|
|
8
|
+
observerOptions?: {
|
|
9
|
+
attributeFilter?: string[];
|
|
10
|
+
attributeOldValue?: boolean;
|
|
11
|
+
attributes?: boolean;
|
|
12
|
+
characterData?: boolean;
|
|
13
|
+
characterDataOldValue?: boolean;
|
|
14
|
+
childList?: boolean;
|
|
15
|
+
subtree?: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export type { FilterPanelProps };
|
|
File without changes
|
|
File without changes
|
package/cjs/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./button/index.js"),r=require("./input/index.js"),t=require("./tabs/index.js"),o=require("./colors/index.js"),u=require("./colors/src/primary-color.vue.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./button/index.js"),r=require("./input/index.js"),t=require("./tabs/index.js"),o=require("./colors/index.js"),u=require("./filter-panel/index.js"),n=require("./svg-icon/index.js"),i=require("./colors/src/primary-color.vue.js"),l=require("./colors/src/secondary-color.vue.js"),s=require("./colors/src/neutral-color.vue.js");exports.ReButton=e.ReButton;exports.ReInput=r.ReInput;exports.ReTabs=t.ReTabs;exports.ReColors=o.ReColors;exports.ReFilterPanel=u.ReFilterPanel;exports.ReSvgIcon=n.ReSvgIcon;exports.RePrimaryColor=i.default;exports.ReSecondaryColor=l.default;exports.ReNeutralColor=s.default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './src/types';
|
|
2
|
+
export declare const ReSvgIcon: import('vue').DefineComponent<import('.').SvgIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('.').SvgIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
3
|
+
export default ReSvgIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../utils/vue/index.js"),u=require("./src/svg-icon.vue.js"),e=t.withInstall(u.default);exports.ReSvgIcon=e;exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */;/* empty css */const u=require("../../../composables/use-namespace/index.js"),c=["d","fill"],a=t.defineComponent({name:"ReSvgIcon",__name:"svg-icon",props:{path:{default:""},size:{default:16},color:{default:"currentColor"},spin:{type:Boolean,default:!1}},setup(e){const{n,ns:o}=u.useNamespace("svg-icon"),l=t.computed(()=>typeof e.size=="number"?`${e.size}px`:e.size),r=t.computed(()=>typeof e.size=="number"?`${e.size}px`:e.size),i=t.computed(()=>e.color==="currentColor"?"currentColor":e.color);return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([t.unref(n)(""),{[t.unref(o)("","spinner")]:e.spin}]),style:t.normalizeStyle({width:l.value,height:r.value,color:e.color}),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[t.createElementVNode("path",{d:e.path,fill:i.value},null,8,c)],6))}});exports.default=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./svg-icon.vue.js");exports.default=e.default;
|
|
File without changes
|
|
File without changes
|
package/cjs/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/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./components/index.js"),n=require("./constants/svgLoading.js"),i=require("./directives/vDraggable.js"),a=require("./directives/vResizable.js"),u=require("./directives/vSvgLoading.js"),c=require("./composables/useDraggable.js"),d=require("./composables/useDateFormat.js"),g=require("./composables/useOnceFn.js"),v=require("./composables/useTimeNodes.js"),p=require("./composables/useWaterFallLayout.js"),R=require("./composables/use-namespace/index.js"),r=require("./utils/vue/index.js"),e=require("./utils/util.js"),m=require("./components/colors/src/primary-color.vue.js"),q=require("./components/colors/src/secondary-color.vue.js"),y=require("./components/colors/src/neutral-color.vue.js"),_=require("./components/button/index.js"),C=require("./components/input/index.js"),b=require("./components/tabs/index.js"),L=require("./components/colors/index.js"),T=require("./components/filter-panel/index.js"),F=require("./components/svg-icon/index.js"),I=require("./rappel-ui/resolver.js"),o=r.createGlobalInstaller(Object.values(t)),s=o.install,l=o.version,x={install:s,version:l,...t};exports.svgLoadingContent=n.svgLoadingContent;exports.vDraggable=i.vDraggable;exports.applyResizable=a.applyResizable;exports.vResizable=a.vResizable;exports.vSvgLoading=u.vSvgLoading;exports.useDraggable=c.useDraggable;exports.useDateFormat=d.useDateFormat;exports.useOnceFn=g.useOnceFn;exports.useTimeNodes=v.useTimeNodes;exports.useWaterFallLayout=p.useWaterFallLayout;exports.useNamespace=R.useNamespace;exports.INSTALLED_KEY=r.INSTALLED_KEY;exports.createGlobalInstaller=r.createGlobalInstaller;exports.toLowerCase=r.toLowerCase;exports.withInstall=r.withInstall;exports.withMultiInstall=r.withMultiInstall;exports.autoCalcFileSize=e.autoCalcFileSize;exports.buildTree=e.buildTree;exports.createColors=e.createColors;exports.createOverload=e.createOverload;exports.darkenColor=e.darkenColor;exports.deepClone=e.deepClone;exports.deleteKeys=e.deleteKeys;exports.flatArr=e.flatArr;exports.getEqualOpacityColor=e.getEqualOpacityColor;exports.hasOwnProperty=e.hasOwnProperty;exports.isPlainObject=e.isPlainObject;exports.joinURLs=e.joinURLs;exports.lineBreakToComma=e.lineBreakToComma;exports.omitEmptyKeys=e.omitEmptyKeys;exports.paramsToFormData=e.paramsToFormData;exports.readTxtByEncodes=e.readTxtByEncodes;exports.readTxtFile=e.readTxtFile;exports.setURLSearchParams=e.setURLSearchParams;exports.singleton=e.singleton;exports.RePrimaryColor=m.default;exports.ReSecondaryColor=q.default;exports.ReNeutralColor=y.default;exports.ReButton=_.ReButton;exports.ReInput=C.ReInput;exports.ReTabs=b.ReTabs;exports.ReColors=L.ReColors;exports.ReFilterPanel=T.ReFilterPanel;exports.ReSvgIcon=F.ReSvgIcon;exports.RappelUIResolver=I.RappelUIResolver;exports.default=x;exports.install=s;exports.version=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../../@vueuse_shared@14.0.0_vue@3.5.26_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js"),s=require("vue"),m=i.isClient?window:void 0;function a(o){var t;const c=s.toValue(o);return(t=c?.$el)!==null&&t!==void 0?t:c}function S(){const o=s.shallowRef(!1),t=s.getCurrentInstance();return t&&s.onMounted(()=>{o.value=!0},t),o}function g(o){const t=S();return s.computed(()=>(t.value,!!o()))}function M(o,t,c={}){const{window:d=m,...v}=c;let n;const u=g(()=>d&&"MutationObserver"in d),r=()=>{n&&(n.disconnect(),n=void 0)},p=s.watch(s.computed(()=>{const e=i.toArray(s.toValue(o)).map(a).filter(i.notNullish);return new Set(e)}),e=>{r(),u.value&&e.size&&(n=new MutationObserver(t),e.forEach(b=>n.observe(b,v)))},{immediate:!0,flush:"post"}),f=()=>n?.takeRecords(),l=()=>{p(),r()};return i.tryOnScopeDispose(l),{isSupported:u,stop:l,takeRecords:f}}function y(o,t,c={}){const{window:d=m,...v}=c;let n;const u=g(()=>d&&"ResizeObserver"in d),r=()=>{n&&(n.disconnect(),n=void 0)},p=s.watch(s.computed(()=>{const l=s.toValue(o);return Array.isArray(l)?l.map(e=>a(e)):[a(l)]}),l=>{if(r(),u.value&&d){n=new ResizeObserver(t);for(const e of l)e&&n.observe(e,v)}},{immediate:!0,flush:"post"}),f=()=>{r(),p()};return i.tryOnScopeDispose(f),{isSupported:u,stop:f}}function R(o,t={width:0,height:0},c={}){const{window:d=m,box:v="content-box"}=c,n=s.computed(()=>{var e;return(e=a(o))===null||e===void 0||(e=e.namespaceURI)===null||e===void 0?void 0:e.includes("svg")}),u=s.shallowRef(t.width),r=s.shallowRef(t.height),{stop:p}=y(o,([e])=>{const b=v==="border-box"?e.borderBoxSize:v==="content-box"?e.contentBoxSize:e.devicePixelContentBoxSize;if(d&&n.value){const w=a(o);if(w){const h=w.getBoundingClientRect();u.value=h.width,r.value=h.height}}else if(b){const w=i.toArray(b);u.value=w.reduce((h,{inlineSize:O})=>h+O,0),r.value=w.reduce((h,{blockSize:O})=>h+O,0)}else u.value=e.contentRect.width,r.value=e.contentRect.height},c);i.tryOnMounted(()=>{const e=a(o);e&&(u.value="offsetWidth"in e?e.offsetWidth:t.width,r.value="offsetHeight"in e?e.offsetHeight:t.height)});const f=s.watch(()=>a(o),e=>{u.value=e?t.width:0,r.value=e?t.height:0});function l(){p(),f()}return{width:u,height:r,stop:l}}exports.getLifeCycleTarget=i.getLifeCycleTarget;exports.isClient=i.isClient;exports.notNullish=i.notNullish;exports.toArray=i.toArray;exports.tryOnMounted=i.tryOnMounted;exports.tryOnScopeDispose=i.tryOnScopeDispose;exports.defaultWindow=m;exports.unrefElement=a;exports.useElementSize=R;exports.useMounted=S;exports.useMutationObserver=M;exports.useResizeObserver=y;exports.useSupported=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");function i(e,n){return t.getCurrentScope()?(t.onScopeDispose(e,n),!0):!1}const u=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const s=e=>e!=null;function c(e){return Array.isArray(e)?e:[e]}function o(e){return t.getCurrentInstance()}function l(e,n=!0,r){o()?t.onMounted(e,r):n?e():t.nextTick(e)}exports.getLifeCycleTarget=o;exports.isClient=u;exports.notNullish=s;exports.toArray=c;exports.tryOnMounted=l;exports.tryOnScopeDispose=i;
|
|
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)}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as g, computed as k, createElementBlock as i, openBlock as o, withModifiers as B, normalizeClass as n, renderSlot as d, createElementVNode as
|
|
1
|
+
import { defineComponent as g, computed as k, createElementBlock as i, openBlock as o, withModifiers as B, normalizeClass as n, renderSlot as d, createElementVNode as z, createCommentVNode as s, unref as u } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { buttonTypes as C, buttonSizes as
|
|
4
|
+
import { buttonTypes as C, buttonSizes as h } from "./constants.mjs";
|
|
5
5
|
import { useNamespace as v } from "../../../composables/use-namespace/index.mjs";
|
|
6
|
-
const I = ["type", "disabled"],
|
|
6
|
+
const I = ["type", "disabled"], V = /* @__PURE__ */ g({
|
|
7
7
|
name: "ReButton",
|
|
8
8
|
__name: "button",
|
|
9
9
|
props: {
|
|
@@ -21,63 +21,54 @@ const I = ["type", "disabled"], S = /* @__PURE__ */ g({
|
|
|
21
21
|
nativeType: { default: "button" }
|
|
22
22
|
},
|
|
23
23
|
emits: ["click"],
|
|
24
|
-
setup(e, { emit:
|
|
25
|
-
const
|
|
24
|
+
setup(e, { emit: f }) {
|
|
25
|
+
const m = f, { n: y, nm: c, ns: a, is: t } = v("button"), r = k(() => [
|
|
26
26
|
y(""),
|
|
27
27
|
e.type && C.includes(e.type) ? c("", e.type) : "",
|
|
28
|
-
e.size !== "default" &&
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
e.size !== "default" && h.includes(e.size) ? c("", e.size) : "",
|
|
29
|
+
t("text", e.text),
|
|
30
|
+
t("link", e.link),
|
|
31
|
+
t("plain", e.plain),
|
|
32
|
+
t("round", e.round),
|
|
33
|
+
t("circle", e.circle),
|
|
34
|
+
t("loading", e.loading),
|
|
35
|
+
t("disabled", e.disabled)
|
|
36
36
|
]);
|
|
37
|
-
|
|
38
|
-
() => s.value,
|
|
39
|
-
(t) => {
|
|
40
|
-
console.log("btnClass changed:", t);
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
immediate: !0
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
function b(t) {
|
|
37
|
+
function b(l) {
|
|
47
38
|
if (e.disabled || e.loading) {
|
|
48
|
-
|
|
39
|
+
l.preventDefault(), l.stopImmediatePropagation();
|
|
49
40
|
return;
|
|
50
41
|
}
|
|
51
|
-
|
|
42
|
+
m("click", l);
|
|
52
43
|
}
|
|
53
|
-
return (
|
|
54
|
-
class: n(
|
|
44
|
+
return (l, N) => (o(), i("button", {
|
|
45
|
+
class: n(r.value),
|
|
55
46
|
type: e.nativeType,
|
|
56
47
|
disabled: e.disabled || e.loading,
|
|
57
48
|
onClick: B(b, ["stop"])
|
|
58
49
|
}, [
|
|
59
|
-
d(
|
|
50
|
+
d(l.$slots, "loading", {}, () => [
|
|
60
51
|
e.loading ? (o(), i("i", {
|
|
61
52
|
key: 0,
|
|
62
53
|
class: n([u(a)("", "loading"), e.loadingIcon]),
|
|
63
54
|
"aria-hidden": "true"
|
|
64
|
-
}, null, 2)) :
|
|
55
|
+
}, null, 2)) : s("", !0)
|
|
65
56
|
]),
|
|
66
|
-
d(
|
|
57
|
+
d(l.$slots, "icon", {}, () => [
|
|
67
58
|
e.icon ? (o(), i("i", {
|
|
68
59
|
key: 0,
|
|
69
60
|
class: n([u(a)("", "icon"), e.icon]),
|
|
70
61
|
"aria-hidden": "true"
|
|
71
|
-
}, null, 2)) :
|
|
62
|
+
}, null, 2)) : s("", !0)
|
|
72
63
|
]),
|
|
73
|
-
|
|
64
|
+
z("span", {
|
|
74
65
|
class: n([u(a)("", "content")])
|
|
75
66
|
}, [
|
|
76
|
-
d(
|
|
67
|
+
d(l.$slots, "default")
|
|
77
68
|
], 2)
|
|
78
69
|
], 10, I));
|
|
79
70
|
}
|
|
80
71
|
});
|
|
81
72
|
export {
|
|
82
|
-
|
|
73
|
+
V as default
|
|
83
74
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export * from './src/types.ts';
|
|
2
|
+
export declare const ReFilterPanel: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
isExpand?: boolean;
|
|
5
|
+
} & import('./index.ts').FilterPanelProps> & Readonly<{
|
|
6
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
toggle: () => void;
|
|
11
|
+
update: () => void;
|
|
12
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
13
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
14
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
15
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
16
|
+
maxH: import('vue').ComputedRef<number>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
search: (...args: any[]) => void;
|
|
19
|
+
reset: (...args: any[]) => void;
|
|
20
|
+
"update:isExpand": (value: boolean) => void;
|
|
21
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
22
|
+
wrapper: HTMLDivElement;
|
|
23
|
+
inner: HTMLDivElement;
|
|
24
|
+
main: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<{
|
|
33
|
+
isExpand?: boolean;
|
|
34
|
+
} & import('./index.ts').FilterPanelProps> & Readonly<{
|
|
35
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
38
|
+
}>, {
|
|
39
|
+
toggle: () => void;
|
|
40
|
+
update: () => void;
|
|
41
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
42
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
43
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
44
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
45
|
+
maxH: import('vue').ComputedRef<number>;
|
|
46
|
+
}, {}, {}, {}, {}>;
|
|
47
|
+
__isFragment?: never;
|
|
48
|
+
__isTeleport?: never;
|
|
49
|
+
__isSuspense?: never;
|
|
50
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
51
|
+
isExpand?: boolean;
|
|
52
|
+
} & import('./index.ts').FilterPanelProps> & Readonly<{
|
|
53
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
54
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
"onUpdate:isExpand"?: ((value: boolean) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
toggle: () => void;
|
|
58
|
+
update: () => void;
|
|
59
|
+
isExpand: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
60
|
+
innerH: import('vue').ShallowRef<number, number>;
|
|
61
|
+
innerW: import('vue').ShallowRef<number, number>;
|
|
62
|
+
wrapperW: import('vue').ShallowRef<number, number>;
|
|
63
|
+
maxH: import('vue').ComputedRef<number>;
|
|
64
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
65
|
+
search: (...args: any[]) => void;
|
|
66
|
+
reset: (...args: any[]) => void;
|
|
67
|
+
"update:isExpand": (value: boolean) => void;
|
|
68
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
69
|
+
$slots: {
|
|
70
|
+
default?(_: {}): any;
|
|
71
|
+
main?(_: {}): any;
|
|
72
|
+
expand?(_: {}): any;
|
|
73
|
+
reset?(_: {}): any;
|
|
74
|
+
search?(_: {}): any;
|
|
75
|
+
extra?(_: {}): any;
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
export default ReFilterPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|