yc-design-vue 1.1.8 → 1.2.0
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/es/Button/Button.vue.d.ts +1 -0
- package/es/Button/Button.vue.js +1 -1
- package/es/Button/Button.vue2.js +7 -4
- package/es/Button/index.d.ts +3 -0
- package/es/Button/type.d.ts +1 -0
- package/es/Divider/index.d.ts +3 -3
- package/es/Divider/index.vue.d.ts +1 -1
- package/es/Divider/index.vue.js +1 -1
- package/es/Divider/type.d.ts +1 -1
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Space/index.vue.js +1 -1
- package/es/Space/index.vue2.js +8 -2
- package/es/Space/type.d.ts +2 -1
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/_shared/icons/IconCopy.vue.js +16 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -16
- package/es/_shared/icons/IconEdit.vue.js +16 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -16
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/dom.js +4 -3
- package/es/style.css +1 -1
- package/lib/Button/Button.vue.d.ts +1 -0
- package/lib/Button/Button.vue.js +1 -1
- package/lib/Button/Button.vue2.js +1 -1
- package/lib/Button/index.d.ts +3 -0
- package/lib/Button/type.d.ts +1 -0
- package/lib/Divider/index.d.ts +3 -3
- package/lib/Divider/index.vue.d.ts +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Divider/type.d.ts +1 -1
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Space/index.vue2.js +1 -1
- package/lib/Space/type.d.ts +2 -1
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -28,6 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
|
|
28
28
|
status: import('./type').ButtonStatus;
|
29
29
|
long: boolean;
|
30
30
|
htmlType: import('./type').ButtonHtmlType;
|
31
|
+
autofocus: boolean;
|
31
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
32
33
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
33
34
|
export default _default;
|
package/lib/Button/Button.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("./Button.vue2.js");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=require("./Button.vue2.js");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-1536384b"]]);module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),t=require("../Spin/index.js"),n=["href"],
|
1
|
+
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),t=require("../Spin/index.js"),n=["href","autofocus"],u={key:0,class:"yc-button-icon"},l=["type","disabled","autofocus"],s={key:0,class:"yc-button-icon"},c=e.defineComponent({name:"Button",__name:"Button",props:{type:{default:void 0},shape:{default:void 0},status:{default:void 0},size:{default:void 0},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},htmlType:{default:"button"},autofocus:{type:Boolean,default:!1},href:{default:""}},emits:["mousedown","mouseup","click","dblclick","contextmenu"],setup(c,{emit:a}){const i=e.useSlots(),d=c,r=a,{loading:p,disabled:f,type:k,status:y,shape:m,long:b}=e.toRefs(d),{size:v,disabled:B,type:h,status:$,shape:g}=o().inject(d),x=e.computed(()=>["yc-button",`yc-button-size-${v.value}`,`yc-button-${h.value}`,`yc-button-status-${$.value}`,`yc-button-shape-${g.value}`,{"yc-button-long":b.value,"yc-button-loading":p.value,"yc-button-disabled":B.value,"yc-button-only-icon":!i.default}]),C=(e,o)=>{B.value||p.value||r(e,o)};return(o,c)=>o.href?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,href:o.href,class:x.value,autofocus:o.autofocus},o.$attrs,{onMousedown:c[0]||(c[0]=e=>C("mousedown",e)),onMouseup:c[1]||(c[1]=e=>C("mouseup",e)),onClick:c[2]||(c[2]=e=>C("click",e)),onDblclick:c[3]||(c[3]=e=>C("dblclick",e)),onContextmenu:c[4]||(c[4]=e=>C("contextmenu",e))}),[o.$slots.icon||e.unref(p)?(e.openBlock(),e.createElementBlock("span",u,[e.unref(p)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,"is-size-inherit":""})):e.renderSlot(o.$slots,"icon",{key:1},void 0,!0)])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],16,n)):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,type:o.htmlType,disabled:e.unref(B),class:x.value,autofocus:o.autofocus},o.$attrs,{onMousedown:c[5]||(c[5]=e=>C("mousedown",e)),onMouseup:c[6]||(c[6]=e=>C("mouseup",e)),onClick:c[7]||(c[7]=e=>C("click",e)),onDblclick:c[8]||(c[8]=e=>C("dblclick",e)),onContextmenu:c[9]||(c[9]=e=>C("contextmenu",e))}),[o.$slots.icon||e.unref(p)?(e.openBlock(),e.createElementBlock("span",s,[e.unref(p)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,"is-size-inherit":""})):e.renderSlot(o.$slots,"icon",{key:1},void 0,!0)])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],16,l))}});module.exports=c;
|
package/lib/Button/index.d.ts
CHANGED
@@ -27,6 +27,7 @@ declare const Button: {
|
|
27
27
|
status: import('./type').ButtonStatus;
|
28
28
|
long: boolean;
|
29
29
|
htmlType: import('./type').ButtonHtmlType;
|
30
|
+
autofocus: boolean;
|
30
31
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
31
32
|
P: {};
|
32
33
|
B: {};
|
@@ -50,6 +51,7 @@ declare const Button: {
|
|
50
51
|
status: import('./type').ButtonStatus;
|
51
52
|
long: boolean;
|
52
53
|
htmlType: import('./type').ButtonHtmlType;
|
54
|
+
autofocus: boolean;
|
53
55
|
}>;
|
54
56
|
__isFragment?: never;
|
55
57
|
__isTeleport?: never;
|
@@ -76,6 +78,7 @@ declare const Button: {
|
|
76
78
|
status: import('./type').ButtonStatus;
|
77
79
|
long: boolean;
|
78
80
|
htmlType: import('./type').ButtonHtmlType;
|
81
|
+
autofocus: boolean;
|
79
82
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
80
83
|
$slots: Readonly<import('./type').ButtonSlots> & import('./type').ButtonSlots;
|
81
84
|
}) & {
|
package/lib/Button/type.d.ts
CHANGED
package/lib/Divider/index.d.ts
CHANGED
@@ -7,7 +7,7 @@ declare const Divider: {
|
|
7
7
|
size: number;
|
8
8
|
type: import('./type').DividerType;
|
9
9
|
direction: import('..').Direction;
|
10
|
-
margin: number;
|
10
|
+
margin: number | string;
|
11
11
|
orientation: import('./type').Orientation;
|
12
12
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
13
13
|
P: {};
|
@@ -20,7 +20,7 @@ declare const Divider: {
|
|
20
20
|
size: number;
|
21
21
|
type: import('./type').DividerType;
|
22
22
|
direction: import('..').Direction;
|
23
|
-
margin: number;
|
23
|
+
margin: number | string;
|
24
24
|
orientation: import('./type').Orientation;
|
25
25
|
}>;
|
26
26
|
__isFragment?: never;
|
@@ -30,7 +30,7 @@ declare const Divider: {
|
|
30
30
|
size: number;
|
31
31
|
type: import('./type').DividerType;
|
32
32
|
direction: import('..').Direction;
|
33
|
-
margin: number;
|
33
|
+
margin: number | string;
|
34
34
|
orientation: import('./type').Orientation;
|
35
35
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
36
36
|
$slots: Readonly<import('./type').DividerSlots> & import('./type').DividerSlots;
|
@@ -10,7 +10,7 @@ declare const __VLS_component: import('vue').DefineComponent<DividerProps, {}, {
|
|
10
10
|
size: number;
|
11
11
|
type: import('./type').DividerType;
|
12
12
|
direction: import('..').Direction;
|
13
|
-
margin: number;
|
13
|
+
margin: number | string;
|
14
14
|
orientation: import('./type').Orientation;
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/lib/Divider/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-5d3da063"]]);module.exports=r;
|
package/lib/Divider/type.d.ts
CHANGED
package/lib/Space/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export type SpaceInstance = InstanceType<typeof _Space>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const Space: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
-
size: import('
|
7
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
8
8
|
fill: boolean;
|
9
9
|
wrap: boolean;
|
10
10
|
direction: import('..').Direction;
|
@@ -17,7 +17,7 @@ declare const Space: {
|
|
17
17
|
M: {};
|
18
18
|
Defaults: {};
|
19
19
|
}, Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, {
|
20
|
-
size: import('
|
20
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
21
21
|
fill: boolean;
|
22
22
|
wrap: boolean;
|
23
23
|
direction: import('..').Direction;
|
@@ -27,7 +27,7 @@ declare const Space: {
|
|
27
27
|
__isTeleport?: never;
|
28
28
|
__isSuspense?: never;
|
29
29
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
30
|
-
size: import('
|
30
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
31
31
|
fill: boolean;
|
32
32
|
wrap: boolean;
|
33
33
|
direction: import('..').Direction;
|
package/lib/Space/index.vue.d.ts
CHANGED
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<SpaceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpaceProps> & Readonly<{}>, {
|
10
|
-
size: import('
|
10
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
11
11
|
fill: boolean;
|
12
12
|
wrap: boolean;
|
13
13
|
direction: import('..').Direction;
|
package/lib/Space/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-4f9e1543"]]);module.exports=r;
|
package/lib/Space/index.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const a={class:"yc-space-item"},s={key:0,class:"yc-space-split"},r=e.defineComponent({name:"Space",__name:"index",props:{align:{default:void 0},direction:{default:"horizontal"},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},size:{default:"small"}},setup(r){const n=e.useSlots(),i=r,{size:c,direction:u,align:d}=e.toRefs(i),m=e.computed(()=>{const e={mini:4,small:8,medium:16,large:24};return t.isNumber(c.value)?l.valueToPx(c.value):t.isArray(c.value)?c.value.map(e=>l.valueToPx(e)).join(" "):l.valueToPx(e[c.value])}),p=e.computed(()=>t.isUndefined(d.value)?"horizontal"==u.value?"center":"start":d.value),v=e.computed(()=>{var l;if(!n.split)return[];const t=[];return((null==(l=n.default)?void 0:l.call(n))||[]).forEach(l=>{l.type===e.Fragment?t.push(...l.children):l.type!==e.Comment&&t.push(l)}),t});return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-space",`yc-space-align-${p.value}`,`yc-space-direction-${e.unref(u)}`,{"yc-space-wrap":l.wrap,"yc-space-fill":l.fill}]),style:e.normalizeStyle({gap:m.value})},[l.$slots.split?e.createCommentVNode("",!0):e.renderSlot(l.$slots,"default",{key:0},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(t,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[e.createElementVNode("div",a,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t))))]),r<v.value.length-1?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(l.$slots,"split",{},void 0,!0)])):e.createCommentVNode("",!0)],64))),128))],6))}});module.exports=r;
|
package/lib/Space/type.d.ts
CHANGED
@@ -5,10 +5,11 @@ export interface SpaceProps {
|
|
5
5
|
direction?: Direction;
|
6
6
|
wrap?: boolean;
|
7
7
|
fill?: boolean;
|
8
|
-
size?:
|
8
|
+
size?: SpaceSize | [SpaceSize, SpaceSize];
|
9
9
|
}
|
10
10
|
export interface SpaceSlots {
|
11
11
|
default?: () => VNode[];
|
12
12
|
split?: () => VNode[];
|
13
13
|
}
|
14
14
|
export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline';
|
15
|
+
export type SpaceSize = Size | number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=require("../_shared/icons/IconCopy.
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=require("../_shared/icons/IconCopy.vue.js"),a=require("../_shared/icons/IconEdit.vue.js"),n=require("../_shared/icons/IconInfo.vue.js"),r=require("../_shared/utils/control.js"),u=require("../Input/index.js"),d=require("../Tooltip/index.js"),p=e.defineComponent({name:"TypographyBase",__name:"TypographyBase",props:{tag:{default:"span"},type:{default:void 0},bold:{type:Boolean,default:!1},disabled:{type:Boolean},mark:{type:Boolean,default:!1},underline:{type:Boolean,default:!1},delete:{type:Boolean,default:!1},code:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean,default:!1},editText:{default:""},copyable:{type:Boolean,default:!1},copyText:{default:""},copyDelay:{default:3e3},ellipsis:{type:[Boolean,Object],default:!0},editTooltiProps:{default:()=>({})},copyTooltiProps:{default:()=>({})}},emits:["update:editing","update:editText","edit-start","change","copy","edit-end","ellipsis","expand"],setup(p,{emit:i}){const s=p,c=i,{editing:y,defaultEditing:f,editText:v,copyText:m,copyable:g,copyDelay:B,code:k,mark:h,delete:x,underline:_,bold:T}=e.toRefs(s),{isSupported:C,copy:b}=t.useClipboard(),j=e.ref(!1),q=e.ref(),V=e.ref(),E=r(y,f.value,e=>{c("update:editing",e)}),N=r(v,"",e=>{c("update:editText",e),c("change",e)});e.ref({});const w=e.computed(()=>{const e=[h.value,k.value,x.value,_.value,T.value];return["mark","code","del","u","b"].filter((t,o)=>e[o])}),D=e.defineComponent({props:{tags:{type:Array,default:()=>[]}},setup:(t,{slots:o})=>()=>{var l;const{tags:a}=e.toRefs(t),n=(t,o)=>o>=a.value.length?t:e.h(a.value[o],null,n(t,o+1));return n(null==(l=o.default)?void 0:l.call(o),0)}}),I=async()=>{var e;E.value=!0,N.value=N.value?N.value:o.getDomText(q),c("edit-start"),await o.sleep(0),null==(e=V.value)||e.focus()},P=()=>{E.value=!1,c("edit-end")},R=async()=>{if(!g.value||!C.value||j.value)return;const e=m.value||o.getDomText(q);b(e),c("copy",e),j.value=!0,await o.sleep(B.value),j.value=!1};return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),{class:e.normalizeClass(["yc-typography",{[`yc-typography-${t.type}`]:t.type,"yc-typography-bold":e.unref(T),"yc-typography-disabled":t.disabled,"yc-typography-underline":e.unref(_),"yc-typography-delete":e.unref(x)}]),ref_key:"contentRef",ref:q},{default:e.withCtx(()=>[e.unref(E)?(e.openBlock(),e.createBlock(e.unref(u),{key:0,modelValue:e.unref(N),"onUpdate:modelValue":o[0]||(o[0]=t=>e.isRef(N)?N.value=t:null),ref_key:"inputRef",ref:V,onBlur:P},null,8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(D),{key:1,tags:w.value},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["tags"])),t.editable&&!e.unref(E)?(e.openBlock(),e.createElementBlock("span",{key:2,class:"yc-typography-operation-edit",onClick:I},[e.createVNode(e.unref(d),e.mergeProps({content:"编辑",position:"top"},t.editTooltiProps),{default:e.withCtx(()=>[e.createElementVNode("span",null,[e.createVNode(e.unref(a))])]),_:1},16)])):e.createCommentVNode("",!0),e.unref(g)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"yc-typography-operation-copy",onClick:R},[e.createVNode(e.unref(d),e.mergeProps({position:"top"},t.copyTooltiProps),{content:e.withCtx(()=>[e.renderSlot(t.$slots,"copy-tooltip",{copied:j.value},()=>[e.createTextVNode(e.toDisplayString(""+(j.value?"已复制":"复制")),1)],!0)]),default:e.withCtx(()=>[e.createElementVNode("span",null,[e.renderSlot(t.$slots,"copy-icon",{copied:j.value},()=>[j.value?(e.openBlock(),e.createBlock(e.unref(n),{key:0,color:"rgb(0, 180, 42)"})):(e.openBlock(),e.createBlock(e.unref(l),{key:1}))],!0)])]),_:3},16)])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}});module.exports=p;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),o=require("../components/Icon.vue2.js"),t=e.defineComponent({__name:"IconCopy",setup:t=>(t,n)=>(e.openBlock(),e.createBlock(o,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>n[0]||(n[0]=[e.createElementVNode("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)])),_:1,__:[0]},16))});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconCopy.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue2.js"),o=e.defineComponent({__name:"IconEdit",setup:o=>(o,a)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>a[0]||(a[0]=[e.createElementVNode("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconEdit.vue.js");module.exports=e;
|
@@ -6,7 +6,7 @@ export declare const getElement: (target: string | HTMLElement | undefined, cont
|
|
6
6
|
export declare const getDomText: (dom: Ref<HTMLElement | undefined>) => string;
|
7
7
|
export declare const getBreakpointValue: (breakpoint: BreakpointName, value: string | number | ResponsiveValue, defaultValue?: number | string) => number | string | undefined;
|
8
8
|
export declare const mediaQueryHandler: (onBreakpoint: (breakpoint: BreakpointName, order: Record<string, number>, index: number) => void, queries?: Record<string, string>) => void;
|
9
|
-
export declare const findFirstScrollableParent: (element?: HTMLElement) => HTMLElement | undefined;
|
9
|
+
export declare const findFirstScrollableParent: (element?: HTMLElement | null) => HTMLElement | undefined;
|
10
10
|
export declare const sleep: (ms: number) => Promise<unknown>;
|
11
11
|
export declare const throttleByRaf: (cb: (...args: any[]) => void) => {
|
12
12
|
(...args: any[]): void;
|
package/lib/_shared/utils/dom.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../constants/index.js"),r=require("../../node_modules/@vueuse/core/index.js"),n=require("./is.js"),o=(()=>{try{return!("undefined"!=typeof window&&void 0!==document)}catch(e){return!0}})(),i=(e,t)=>{if(!o)return(t??document).querySelector(e)??void 0};exports.debounce=(e,t,r=!1)=>{let n=null,o=!1;return function(...i){const l=this;n&&clearTimeout(n),r&&!o&&(e.apply(l,i),o=!0),n=setTimeout(()=>{r||e.apply(l,i),o=!1},t)}},exports.findFirstScrollableParent=e=>{if(!e
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("../constants/index.js"),r=require("../../node_modules/@vueuse/core/index.js"),n=require("./is.js"),o=(()=>{try{return!("undefined"!=typeof window&&void 0!==document)}catch(e){return!0}})(),i=(e,t)=>{if(!o)return(t??document).querySelector(e)??void 0};exports.debounce=(e,t,r=!1)=>{let n=null,o=!1;return function(...i){const l=this;n&&clearTimeout(n),r&&!o&&(e.apply(l,i),o=!0),n=setTimeout(()=>{r||e.apply(l,i),o=!1},t)}},exports.findFirstScrollableParent=e=>{if(!e)return;let t=e.parentElement;for(;t;){const e=getComputedStyle(t),r=e.overflowY||e.overflow,n=["auto","scroll"].includes(r),o=t.scrollHeight>t.clientHeight;if(n&&o)return t;t=t.parentElement}},exports.getBreakpointValue=(e,t,r)=>{if(!n.isObject(t))return t;const o=["xs","sm","md","lg","xl","xxl"],i=o.indexOf(e);for(let l=i;l>=0;l--){const e=o[l];if(!n.isUndefined(t[e]))return t[e]}for(let l=i+1;l<o.length;l++){const e=o[l];if(!n.isUndefined(t[e]))return t[e]}return r},exports.getDomText=e=>{var t;return(null==(t=r.unrefElement(e))?void 0:t.innerText)||""},exports.getElement=(e,t)=>{if(n.isString(e)){const r="#"===e[0]?`[id='${e.slice(1)}']`:e;return i(r,t)}return e},exports.isHorizontallyScrollable=function(e){const t=getComputedStyle(e),r="scroll"===t.overflowX||"auto"===t.overflowX;if(!("none"!==t.display&&"hidden"!==t.visibility))return!1;const n=e.scrollWidth>e.clientWidth;return r&&n},exports.isServerRendering=o,exports.isVerticallyScrollable=function(e){const t=getComputedStyle(e),r="scroll"===t.overflowY||"auto"===t.overflowY;if(!("none"!==t.display&&"hidden"!==t.visibility))return!1;const n=e.scrollHeight>e.clientHeight;return r&&n},exports.mediaQueryHandler=(n,o=t.MEDICA_QUERY_QUERUES)=>{const i=[],l={},s=[];Object.keys(o).forEach((e,t)=>{i.push(e),l[e]=t,s.push(r.useMediaQuery(o[e]))}),e.watch(s,e=>{const t=e.lastIndexOf(!0);n(i[t],l,t)},{immediate:!0})},exports.querySelector=i,exports.sleep=e=>new Promise(t=>{setTimeout(()=>{t("")},e)}),exports.throttle=(e,t)=>{let r=0,n=null;return function(...o){const i=Date.now(),l=t-(i-r);n&&(clearTimeout(n),n=null),l<=0?(e.apply(this,o),r=i):n=setTimeout(()=>{e.apply(this,o),r=Date.now(),n=null},l)}},exports.throttleByRaf=e=>{let t=0;const r=(...r)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e(...r),t=0})};return r.cancel=()=>{cancelAnimationFrame(t),t=0},r},exports.valueToPx=e=>n.isNumber(e)||n.isString(e)&&/^-?\d+(\.\d+)?$/.test(e)?e+"px":e;
|