@creatorsn/vfluent3 0.3.97 → 0.3.98
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.
|
@@ -10,6 +10,8 @@ export declare const FvBadge: import("../../types/plugins/component-plugin").Com
|
|
|
10
10
|
readonly modelValue?: string | undefined;
|
|
11
11
|
readonly max?: number | undefined;
|
|
12
12
|
readonly isDot?: boolean | undefined;
|
|
13
|
+
readonly offsetTop?: string | undefined;
|
|
14
|
+
readonly offsetRight?: string | undefined;
|
|
13
15
|
};
|
|
14
16
|
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
15
17
|
}, {
|
|
@@ -43,6 +45,8 @@ export declare const FvBadge: import("../../types/plugins/component-plugin").Com
|
|
|
43
45
|
readonly modelValue?: string | undefined;
|
|
44
46
|
readonly max?: number | undefined;
|
|
45
47
|
readonly isDot?: boolean | undefined;
|
|
48
|
+
readonly offsetTop?: string | undefined;
|
|
49
|
+
readonly offsetRight?: string | undefined;
|
|
46
50
|
};
|
|
47
51
|
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
48
52
|
}, {
|
|
@@ -73,6 +77,8 @@ export declare const FvBadge: import("../../types/plugins/component-plugin").Com
|
|
|
73
77
|
readonly modelValue?: string | undefined;
|
|
74
78
|
readonly max?: number | undefined;
|
|
75
79
|
readonly isDot?: boolean | undefined;
|
|
80
|
+
readonly offsetTop?: string | undefined;
|
|
81
|
+
readonly offsetRight?: string | undefined;
|
|
76
82
|
};
|
|
77
83
|
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
78
84
|
}, {
|
|
@@ -9,6 +9,8 @@ declare const _default: {
|
|
|
9
9
|
readonly modelValue?: string | undefined;
|
|
10
10
|
readonly max?: number | undefined;
|
|
11
11
|
readonly isDot?: boolean | undefined;
|
|
12
|
+
readonly offsetTop?: string | undefined;
|
|
13
|
+
readonly offsetRight?: string | undefined;
|
|
12
14
|
};
|
|
13
15
|
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
14
16
|
}, {
|
|
@@ -42,6 +44,8 @@ declare const _default: {
|
|
|
42
44
|
readonly modelValue?: string | undefined;
|
|
43
45
|
readonly max?: number | undefined;
|
|
44
46
|
readonly isDot?: boolean | undefined;
|
|
47
|
+
readonly offsetTop?: string | undefined;
|
|
48
|
+
readonly offsetRight?: string | undefined;
|
|
45
49
|
};
|
|
46
50
|
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
47
51
|
}, {
|
|
@@ -72,6 +76,8 @@ declare const _default: {
|
|
|
72
76
|
readonly modelValue?: string | undefined;
|
|
73
77
|
readonly max?: number | undefined;
|
|
74
78
|
readonly isDot?: boolean | undefined;
|
|
79
|
+
readonly offsetTop?: string | undefined;
|
|
80
|
+
readonly offsetRight?: string | undefined;
|
|
75
81
|
};
|
|
76
82
|
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
77
83
|
}, {
|
package/dist/vfluent3.js
CHANGED
|
@@ -1813,6 +1813,12 @@ const xa = /* @__PURE__ */ u("p", null, "Badge", -1), Ea = { class: "badge-conte
|
|
|
1813
1813
|
hidden: {
|
|
1814
1814
|
default: !1
|
|
1815
1815
|
},
|
|
1816
|
+
offsetTop: {
|
|
1817
|
+
default: ""
|
|
1818
|
+
},
|
|
1819
|
+
offsetRight: {
|
|
1820
|
+
default: ""
|
|
1821
|
+
},
|
|
1816
1822
|
type: {
|
|
1817
1823
|
default: "default"
|
|
1818
1824
|
}
|
|
@@ -1827,7 +1833,11 @@ const xa = /* @__PURE__ */ u("p", null, "Badge", -1), Ea = { class: "badge-conte
|
|
|
1827
1833
|
]),
|
|
1828
1834
|
S(u("sup", {
|
|
1829
1835
|
class: T(["fv-badge-container", { dot: e.isDot }]),
|
|
1830
|
-
style: v({
|
|
1836
|
+
style: v({
|
|
1837
|
+
top: e.offsetTop,
|
|
1838
|
+
right: e.offsetRight,
|
|
1839
|
+
background: t.finalColor
|
|
1840
|
+
})
|
|
1831
1841
|
}, [
|
|
1832
1842
|
u("p", Ea, z(t.finalValue), 1)
|
|
1833
1843
|
], 6), [
|
package/dist/vfluent3.umd.cjs
CHANGED
|
@@ -8,7 +8,7 @@ Only state can be modified.`);l[0]="$state",yt=!1,o.set(s,l,o.state.value),yt=!0
|
|
|
8
8
|
state: () => new MyClass()
|
|
9
9
|
Found in store "${S.$id}".`),g&&s&&t.hydrate&&t.hydrate(S.$state,g),h=!0,c=!0,S}function Mi(e,i,t){let o,n;const s=typeof i=="function";if(typeof e=="string")o=e,n=s?t:i;else if(n=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[\u{1F34D}]: "defineStore()" must be passed a store id as its first argument.');function l(a,d){const h=r.hasInjectionContext();if(a=(process.env.NODE_ENV==="test"&&Nt&&Nt._testing?null:a)||(h?r.inject(xr,null):null),a&&Lt(a),process.env.NODE_ENV!=="production"&&!Nt)throw new Error(`[\u{1F34D}]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);a=Nt,a._s.has(o)||(s?Li(o,i,n,a):Ur(o,n,a),process.env.NODE_ENV!=="production"&&(l._pinia=a));const c=a._s.get(o);if(process.env.NODE_ENV!=="production"&&d){const u="__hot:"+o,f=s?Li(u,i,n,a,!0):Ur(u,ve({},n),a,!0);d._hotUpdate(f),delete a.state.value[u],a._s.delete(u)}if(process.env.NODE_ENV!=="production"&&ti){const u=r.getCurrentInstance();if(u&&u.proxy&&!d){const f=u.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[o]=c}}return c}return l.$id=o,l}const Yr=Mi("FvConfig",{state:()=>({theme:"light",variables:{}}),actions:{changeTheme(e){e?this.theme=e:this.theme=this.theme==="light"?"dark":"light"}}});function R(e){const i=Yr();return{theme:r.computed(()=>e.theme==="global"&&e.theme!==void 0?i.theme:e.theme===void 0?"global":e.theme)}}function Fi(e){const{display:i,visibility:t,transition:o,animation:n}=e.style;return e.style.display="initial",e.style.visibility="hidden",e.style.transition="none",e.style.animation="none",{display:i,visibility:t,transition:o,animation:n}}function zi(e,{display:i,visibility:t,transition:o,animation:n}){e.style.display=i,e.style.visibility=t,e.style.transition=o,e.style.animation=n}function Se(e){if(e===void 0)return new DOMRect(0,0,0,0);let{display:i}=getComputedStyle(e);if(i!=="none"){let n=e.getBoundingClientRect();if(n.height===0&&n.width===0){const s=[];let l=e.parentElement;for(;l!==null&&l!==document.body;){if(i=getComputedStyle(l).display,i==="none"){const a=Fi(l);s.push({el:l,style:a})}l=l.parentElement}n=e.getBoundingClientRect();for(const a of s)zi(a.el,a.style)}return n}const t=Fi(e);let o=e.getBoundingClientRect();if(o.height===0&&o.width===0){const n=[];let s=e.parentElement;for(;s!==null&&s!==document.body;){if(i=getComputedStyle(s).display,i==="none"){const l=Fi(s);n.push({el:s,style:l})}s=s.parentElement}o=e.getBoundingClientRect();for(const l of n)zi(l.el,l.style)}return zi(e,t),o}function ge(e,i,t){return Math.max(i,Math.min(e,t))}const jr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};class Ue{constructor(i){Zt(this,"channels",{rgb:[0,0,0],hsv:[0,0,0]});Zt(this,"valpha",1);ol(i)&&this.parse(i)}static new(i){return new Ue(i)}clone(){const i=new Ue;for(let t in this.channels)i.channels[t]=[...this.channels[t]];return i.valpha=this.valpha,i}parse(i){i=i.trim();let t=!0;if(/^#[0-9a-fA-F]{6}$/.test(i)){let[o,n,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,n,s],this.valpha=1}else if(/^#[0-9a-fA-F]{8}$/.test(i)){let[o,n,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,n,s],this.valpha=parseInt(i.substring(7,9),16)/255}else if(i.startsWith("rgb(")){i=i.substring(4,i.length-1);const o=i.split(",");o.length===3?this.channels.rgb=o.map(n=>parseInt(n)):t=!1}else if(i.startsWith("rgba(")){i=i.substring(5,i.length-1);const o=i.split(",");if(o.length===4){let[n,s,l,a]=o.map(d=>parseFloat(d));this.channels.rgb=[n,s,l],this.valpha=a}else t=!1}else if(i.toLowerCase()in jr)return i=jr[i.toLowerCase()],this.parse(i);return t===!1&&console.error(`color ${i} parse error`),this.updateRGB2HSV(),this}updateRGB2HSV(){let[i,t,o]=this.channels.rgb;i/=255,t/=255,o/=255;let n=Math.max(i,t,o),s=Math.min(i,t,o),[l,a,d]=this.channels.hsv;return n===s?l=0:s===o?l=60*(t-i)/(n-s)+60:s===i?l=60*(o-t)/(n-s)+180:l=60*(i-o)/(n-s)+300,n==0?a=0:a=(n-s)/n*100,d=n*100,l=ge(l,0,359),a=ge(a,0,100),d=ge(d,0,100),this.channels.hsv=[l,a,d],this}updateHSV2RGB(){let[i,t,o]=this.channels.hsv;t/=100,o/=100;let n=o*t,s=i/60,l=n*(1-Math.abs(s%2-1)),[a,d,h]=[o-n,o-n,o-n],c=[[n,l,0],[l,n,0],[0,n,l],[0,l,n],[l,0,n],[n,0,l]],[u,f,m]=c[Math.floor(s)];return a+=u,d+=f,h+=m,a=ge(a,0,1),d=ge(d,0,1),h=ge(h,0,1),a*=255,d*=255,h*=255,a=Math.round(a),h=Math.round(h),d=Math.round(d),this.channels.rgb=[a,d,h],this}red(i){return i!==void 0?(this.channels.rgb[0]=Math.round(ge(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[0]}green(i){return i!==void 0?(this.channels.rgb[1]=Math.round(ge(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[1]}blue(i){return i!==void 0?(this.channels.rgb[2]=Math.round(ge(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[2]}hue(i){return i!==void 0?(this.channels.hsv[0]=ge(i,0,359),this.updateHSV2RGB()):this.channels.hsv[0]}saturation(i){return i!==void 0?(this.channels.hsv[1]=ge(i,0,100),this.updateHSV2RGB()):this.channels.hsv[1]}value(i){return i!==void 0?(this.channels.hsv[2]=ge(i,0,100),this.updateHSV2RGB()):this.channels.hsv[2]}alpha(i){return i!==void 0?(this.valpha=ge(i,0,1),this):this.valpha}hex(){let[i,t,o]=this.channels.rgb;return`#${i.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`.toUpperCase()}hexa(){return`${this.hex()}${Math.round(this.valpha*255).toString(16).padStart(2,"0")}`.toUpperCase()}cssrgb(){let[i,t,o]=this.channels.rgb;return`rgb(${i}, ${t}, ${o})`}cssrgba(){let[i,t,o]=this.channels.rgb;return`rgba(${i}, ${t}, ${o}, ${this.alpha()})`}isDark(){const[i,t,o]=this.channels.rgb;return .2126*i+.7152*t+.0722*o<128}isLight(){const[i,t,o]=this.channels.rgb;return .2126*i+.7152*t+.0722*o>=128}}function si(e,i){let t=!1;return function o(...n){t||(t=!0,window!==void 0&&i===void 0?window.requestAnimationFrame(()=>{e.apply(o,n),t=!1}):setTimeout(()=>{e.apply(o,n),t=!1},i===void 0?1/60:i))}}function Pe(){let e=!1;return function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}class li{constructor(i){Zt(this,"eventFunc");this.eventFunc=t=>{t==null||t.preventDefault(),i(t)}}listen(){if(window!==void 0){const i=this.destory();return Pe()?(window.addEventListener("touchmove",this.eventFunc,{passive:!1}),window.addEventListener("touchend",i)):(window.addEventListener("mousemove",this.eventFunc),window.addEventListener("mouseup",i),window.addEventListener("mouseleave",i)),{destory:i}}return{destory:()=>{}}}destory(){const i=this.eventFunc;return function t(){window!==void 0&&(Pe()?(window.removeEventListener("touchmove",i),window.removeEventListener("touchend",t)):(window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",t),window.removeEventListener("mouseleave",t)))}}}function Ll(e){return r.defineComponent({setup(i,t){const o=r.ref(null);if(e.default&&e.default().length>0){const[n]=e.default();return t.expose({slotRef:o}),()=>r.h(n,{ref:o})}else return()=>r.h("div",{ref:o})}})}const Ml=Object.assign({name:"FvAffix",data(){return{parent:{left:0,top:0,right:0,bottom:0,width:0,height:0},current:{left:0,top:0,right:0,bottom:0,width:0,height:0},wrapper:{left:0,top:0,right:0,bottom:0,width:0,height:0},timer:null}},watch:{isFixed(){this.$emit("change",this.isFixed)}},computed:{leftValue(){return isNaN(parseFloat(this.left))?0:this.left.toString().indexOf("%")>-1?this.parent.width*parseFloat(this.left)/100:parseFloat(this.left)},topValue(){return isNaN(parseFloat(this.top))?0:this.top.toString().indexOf("%")>-1?this.parent.height*parseFloat(this.top)/100:parseFloat(this.top)},rightValue(){return isNaN(parseFloat(this.right))?0:this.right.toString().indexOf("%")>-1?this.parent.width*parseFloat(this.right)/100:parseFloat(this.right)},bottomValue(){return isNaN(parseFloat(this.bottom))?0:this.bottom.toString().indexOf("%")>-1?this.parent.height*parseFloat(this.bottom)/100:parseFloat(this.bottom)},computedLeft(){return isNaN(parseFloat(this.left))?"":this.parent.left+this.leftValue+"px"},computedTop(){return isNaN(parseFloat(this.top))?"":this.parent.top+this.topValue+"px"},computedRight(){return isNaN(parseFloat(this.right))?"":window.innerWidth-this.parent.right+this.rightValue+"px"},computedBottom(){return isNaN(parseFloat(this.bottom))?"":window.innerHeight-this.parent.bottom+this.bottomValue+"px"},computedWidth(){return this.current.width.toString().indexOf("%")>-1?this.parent.width*parseFloat(this.current.width)/100+"px":parseFloat(this.current.width)+"px"},computedHeight(){return this.current.height.toString().indexOf("%")>-1?this.parent.height*parseFloat(this.current.height)/100+"px":parseFloat(this.current.height)+"px"},isFixed(){return this.mode==="fixed"?!0:this.mode==="relative"?!1:!!(this.affixPos.includes("top")&&this.wrapper.top<this.parent.top+this.topValue||this.affixPos.includes("bottom")&&this.wrapper.bottom>this.parent.bottom+this.bottomValue||this.affixPos.includes("left")&&this.wrapper.left<this.parent.left+this.leftValue||this.affixPos.includes("right")&&this.wrapper.right>this.parent.right+this.rightValue)},$theme(){return R(this.$props).theme.value}},mounted(){this.wrapperPosInit()},methods:{getParentPos(){if(!this.valueTrigger(this.target))return;const{left:e,top:i,right:t,bottom:o,width:n,height:s}=this.valueTrigger(this.target).getBoundingClientRect();this.parent.left=e,this.parent.top=i,this.parent.right=t,this.parent.bottom=o,this.parent.width=n,this.parent.height=s},getCurrentPos(){if(!this.$refs.container)return;const{left:e,top:i,right:t,bottom:o,width:n,height:s}=this.$refs.container.getBoundingClientRect();this.current.left=e,this.current.top=i,this.current.right=t,this.current.bottom=o,this.current.width=n,this.current.height=s},getWrapperPos(){if(!this.$el)return;const{left:e,top:i,right:t,bottom:o}=this.$el.getBoundingClientRect(),n=t-e,s=o-i;this.wrapper.left=e,this.wrapper.top=i,this.wrapper.right=t,this.wrapper.bottom=o,this.wrapper.width=n,this.wrapper.height=s},wrapperPosInit(){this.timer=setInterval(()=>{window.requestAnimationFrame(()=>{this.getParentPos(),this.getCurrentPos(),this.getWrapperPos()})},10)},valueTrigger(e){return typeof e=="function"?e():e}},beforeUnmount(){clearInterval(this.timer)}},{props:{...W,left:{default:""},top:{default:""},right:{default:""},bottom:{default:""},target:{default:null},mode:{default:"fixed"},affixPos:{default:()=>["top"]},zIndex:{default:""}},emits:["change"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Affix",t.$theme]),style:r.normalizeStyle({position:e.mode==="fixed"?"absolute":"",width:t.isFixed?t.computedWidth:"auto",height:t.isFixed?t.computedHeight:"auto"})},[r.createElementVNode("div",{class:"fv-affix-container",ref:"container",style:r.normalizeStyle({position:t.isFixed?"fixed":"relative",left:t.isFixed?t.computedLeft:"",top:t.isFixed?t.computedTop:"",right:t.isFixed?t.computedRight:"",bottom:t.isFixed?t.computedBottom:"","z-index":e.zIndex})},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(" Affix TEMPLATE ")])],4)],6))}}),Xr=H(Ml),P0="",R0="",O0="",Fl={class:"fv-animated-content-block"},zl=Object.assign({name:"FvAnimatedIcon",data(){return{thisValue:this.modelValue,animations:{scaleDown:{down:{transform:"scale(0.8)",transition:"transform 0.2s"},up:[{transform:"scale(1.1)",transition:"transform 0.2s"},{transform:"scale(1)",transition:"transform 0.05s ease-out"}],leave:[{transform:"scale(1)",transition:"transform 0.05s ease-out"}]},scaleXDown:{down:{transform:"scaleX(0.6)",transition:"transform 0.2s"},up:[{transform:"scaleX(1.1)",transition:"transform 0.2s"},{transform:"scaleX(1)",transition:"transform 0.05s ease-out"}],leave:[{transform:"scaleX(1)",transition:"transform 0.05s ease-out"}]},scaleYDown:{down:{transform:"scaleY(0.6)",transition:"transform 0.2s"},up:[{transform:"scaleY(1.1)",transition:"transform 0.2s"},{transform:"scaleY(1)",transition:"transform 0.05s ease-out"}],leave:[{transform:"scaleY(1)",transition:"transform 0.05s ease-out"}]},backScale:{down:{transform:"scale(0.8)","transform-origin":"100% 50%",transition:"transform 0.2s"},up:[{transform:"scale(1.1)","transform-origin":"100% 50%",transition:"transform 0.2s"},{transform:"scale(1)","transform-origin":"100% 50%",transition:"transform 0.05s ease-out"}],leave:[{transform:"scale(1)","transform-origin":"100% 50%",transition:"transform 0.05s ease-out"}]},bounceRotate:{down:{transform:"rotate(-15deg)",transition:"transform 0.1s"},up:[{transform:"rotate(360deg)",transition:"transform 0.3s"},{transform:"rotate(0deg)"}],leave:[{transform:"rotate(360deg)",transition:"transform 0.3s"},{transform:"rotate(0deg)"}]}},animatedStyle:{},animationsQueue:[]}},watch:{modelValue(e){this.thisValue=e},thisValue(e){this.$emit("update:modelValue",e)}},computed:{$theme(){return R(this.$props).theme.value}},mounted(){this.animationInit()},methods:{animationInit(){this.$el.addEventListener("transitionend",e=>{this.popAnimation()})},enter(){let e=this.getAnimation("enter");if(!e)return!1;e.length||(e=[e]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(e),this.popAnimation()},move(){let e=this.getAnimation("move");if(!e)return!1;e.length||(e=[e]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(e),this.popAnimation()},down(e){e.preventDefault();let i=this.getAnimation("down");if(!i)return!1;i.length||(i=[i]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(i),this.popAnimation()},up(e){e.preventDefault(),this.onClick(e);let i=this.getAnimation("up");if(!i)return!1;i.length||(i=[i]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(i),this.popAnimation()},leave(){let e=this.getAnimation("leave");if(!e)return!1;e.length||(e=[e]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(e),this.popAnimation()},getAnimation(e){if(this.customizeAnimation)return this.customizeAnimation[e]?this.customizeAnimation[e]:!1;if(!this.animations[this.thisValue])return!1;let i=this.animations[this.thisValue];return i[e]?i[e]:!1},popAnimation(){if(this.animationsQueue.length==0)return 0;let e=this.animationsQueue[0];this.animatedStyle=e,this.animationsQueue.splice(0,1)},onClick(e){this.$emit("click",e)}}},{props:{...W,modelValue:{default:"scaleDown"},icon:{default:"Search"},customizeAnimation:{default:!1},background:{default:""},fontSize:{default:16},hideContent:{default:!1}},emits:["update:modelValue","click"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-AnimatedIcon",[t.$theme]]),style:r.normalizeStyle([{width:`${e.fontSize*1+3}px`,background:e.background,fontSize:`${e.fontSize}px`}]),onMousedown:o[0]||(o[0]=(...n)=>t.down&&t.down(...n)),onMouseup:o[1]||(o[1]=(...n)=>t.up&&t.up(...n)),onTouchstart:o[2]||(o[2]=(...n)=>t.down&&t.down(...n)),onTouchend:o[3]||(o[3]=(...n)=>t.up&&t.up(...n)),onMouseenter:o[4]||(o[4]=(...n)=>t.enter&&t.enter(...n)),onMousemove:o[5]||(o[5]=(...n)=>t.move&&t.move(...n)),onTouchmove:o[6]||(o[6]=(...n)=>t.move&&t.move(...n)),onMouseleave:o[7]||(o[7]=(...n)=>t.leave&&t.leave(...n))},[r.createElementVNode("div",{draggable:"false",class:r.normalizeClass(["fv-animated-icon-container",[{hideContent:e.hideContent}]]),style:r.normalizeStyle([t.animatedStyle])},[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("i",{ref:"a",class:r.normalizeClass(["ms-Icon",[`ms-Icon--${e.icon}`]])},null,2)])],6),r.withDirectives(r.createElementVNode("div",Fl,[r.renderSlot(t.$slots,"content")],512),[[r.vShow,!e.hideContent]])],38))}}),qr=H(zl),W0="",H0="",_0="",Pl=r.createElementVNode("p",null,"Badge",-1),Rl={class:"badge-content"},Ol=Object.assign({name:"FvBadge",data(){return{thisValue:this.modelValue,colorList:{default:"#f56c6c",primary:"#409eff",success:"rgba(0, 204, 153, 1)",warning:"#e6a23c",danger:"#f56c6c",info:"#909399"}}},watch:{modelValue(e){this.thisValue=e},thisValue(e){this.$emit("update:modelValue",e)}},computed:{finalValue(){return this.thisValue*1>this.max*1?`${this.max}+`:this.thisValue},finalColor(){return this.colorList[this.type]?this.colorList[this.type]:this.type},$theme(){return R(this.$props).theme.value}}},{props:{...W,modelValue:{default:""},max:{default:1/0},isDot:{default:!1},hidden:{default:!1},type:{default:"default"}},emits:["update:modelValue"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Badge",[t.$theme]])},[r.renderSlot(t.$slots,"default",{},()=>[Pl]),r.withDirectives(r.createElementVNode("sup",{class:r.normalizeClass(["fv-badge-container",{dot:e.isDot}]),style:r.normalizeStyle({background:t.finalColor})},[r.createElementVNode("p",Rl,r.toDisplayString(t.finalValue),1)],6),[[r.vShow,!e.hidden]])],2))}}),Kr=H(Ol),U0="",Y0="",j0="",Al=["onClick"],Wl=Object.assign({name:"FvBreadcrumb",data(){return{mode:"default",thisValue:this.modelValue,tempValue:"",timer:{debounce:null}}},watch:{modelValue(e){this.thisValue=e,this.tempValue=e},mode(e){e=="editor"?this.tempValue=this.thisValue:this.thisValue=this.tempValue},thisValue(e){this.$emit("update:modelValue",e)},tempValue(e){this.$emit("input-change",e),this.timer.debounce&&clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",e)},this.debounceDelay)}},computed:{separatorIcon(){return this.separator.length>1},routeList(){let e=this.thisValue;return e==""?[]:e.split(this.separatorChar)},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return R(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(e){let i=e.target,t=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){t=!0;break}i=i.parentNode}t||(this.mode="default")},editorMode(e){if(this.isDisabled||this.readOnly)return 0;e.preventDefault(),e.stopPropagation(),this.mode!=="editor"&&(this.mode="editor",this.$nextTick(()=>{this.$refs.editor.focus(),this.$refs.editor.select()}))},handleEnter(e){e.keyCode===13&&(this.mode="default")},routeClick(e){if(this.isDisabled)return 0;e.stopPropagation(),this.$emit("root-click",{path:this.thisValue,pathList:this.routeList})},routeItemClick(e,i,t){if(this.isDisabled)return 0;t.stopPropagation();let o="",n=[];for(let s=0;s<=i;s++)n.push(this.routeList[s]);n.forEach(s=>{o==""?o=s:o+=`${this.separatorChar}${s}`}),this.$emit("item-click",{path:o,fullPath:`${this.separatorChar}${o}`,pathList:n,current:e})}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent)}},{props:{...W,modelValue:{default:""},separator:{type:String,default:"/"},separatorChar:{type:String,default:"/"},showRoot:{default:!0},rootIcon:{default:"FolderHorizontal"},readOnly:{default:!0},fontSize:{default:"16px"},borderColor:{default:""},disabled:{default:!1},borderRadius:{default:6},debounceDelay:{default:300}},emits:["update:modelValue","input-change","debounce-input","root-click","item-click"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Breadcrumb",[t.$theme,{readOnly:e.readOnly,"editor-mode":t.mode==="editor",disabled:t.isDisabled}]]),style:r.normalizeStyle({"border-radius":`${e.borderRadius}px`,"border-color":t.mode==="editor"?e.borderColor:"","outline-color":t.mode==="editor"?e.borderColor:""})},[r.createElementVNode("div",{class:"fv-bc-route-list",ref:"main",onClick:o[4]||(o[4]=(...n)=>t.editorMode&&t.editorMode(...n))},[r.withDirectives(r.createElementVNode("div",{class:"fv-bc-route-item",style:r.normalizeStyle({"font-size":e.fontSize}),onClick:o[0]||(o[0]=(...n)=>t.routeClick&&t.routeClick(...n))},[r.renderSlot(t.$slots,"root",{rootIcon:e.rootIcon,separator:e.separator,separatorIcon:t.separatorIcon},()=>[r.createElementVNode("i",{class:r.normalizeClass(["fv-bc-separator-content ms-Icon",[`ms-Icon--${e.rootIcon}`]])},null,2)])],4),[[r.vShow,e.showRoot]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.routeList,(n,s)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:s,class:"fv-bc-route-item",style:r.normalizeStyle({"font-size":e.fontSize}),onDblclick:o[1]||(o[1]=(...l)=>t.editorMode&&t.editorMode(...l))},[r.renderSlot(t.$slots,"route-item",{item:n,index:s},()=>[r.withDirectives(r.createElementVNode("p",{class:"fv-bc-separator-content",onClick:l=>t.routeItemClick(n,s,l)},r.toDisplayString(n),9,Al),[[r.vShow,n]]),r.withDirectives(r.createElementVNode("i",{class:r.normalizeClass(["fv-bc-separator-icon ms-Icon",[t.separatorIcon?`ms-Icon--${e.separator}`:""]]),style:r.normalizeStyle({"font-family":t.separatorIcon?"":"Calibri"})},r.toDisplayString(t.separatorIcon?"":e.separator),7),[[r.vShow,s<t.routeList.length-1]])])],36)),[[r.vShow,t.mode=="default"]])),128)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":o[2]||(o[2]=n=>t.tempValue=n),class:"fv-bc-route-text-box",type:"text",ref:"editor",style:r.normalizeStyle({"font-size":e.fontSize}),onKeyup:o[3]||(o[3]=(...n)=>t.handleEnter&&t.handleEnter(...n))},null,36),[[r.vShow,t.mode=="editor"],[r.vModelText,t.tempValue]])],512)],6))}}),Jr=H(Wl),q0="",K0="",J0="",Hl=["disabled"],_l=Object.assign({name:"FvButton",data(){return{}},watch:{},computed:{$theme(){return R(this.$props).theme.value},borderLightColor(){if(this.revealBorderColor)return this.revealBorderColor;if(this.$theme=="light")return"rgba(121, 119, 117, 0.6)";if(this.$theme=="dark"||this.$theme=="custom")return"rgba(255, 255, 255, 0.6)"},backgroundLightColor(){if(this.revealBackgroundColor)return this.revealBackgroundColor;if(this.$theme=="light")return"rgba(121, 119, 117, 0.1)";if(this.$theme=="dark"||this.$theme=="custom")return"rgba(255, 255, 255, 0.1)"},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){},methods:{onClick(e){if(e.preventDefault(),this.isDisabled)return 0;this.$emit("click",e)}},beforeUnmount(){}},{props:{...W,icon:{default:"",type:String},foreground:{default:"",type:String},background:{default:"",type:String},borderRadius:{default:3},borderColor:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal",type:String},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},revealBorderGradientList:{default:()=>[]},revealBackgroundGradientList:{default:()=>[]},isBoxShadow:{default:!1},disabled:{default:!1},borderWidth:{default:1}},emits:["click"],setup(e,{emit:i}){return(t,o)=>{const n=r.resolveComponent("fv-reveal-container");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Button",[t.$theme]]),onClick:o[0]||(o[0]=(...s)=>t.onClick&&t.onClick(...s))},[r.createElementVNode("div",{class:r.normalizeClass(["fv-button-main-container",[{disabled:t.isDisabled},{shadow:e.isBoxShadow}]]),style:r.normalizeStyle({borderRadius:`${e.borderRadius}px`})},[r.createVNode(n,{parent:()=>t.$el,class:"fv-button-reveal-container",backgroundColor:t.backgroundLightColor,borderColor:t.borderLightColor,borderGradientSize:80,borderGradientList:e.revealBorderGradientList,backgroundGradientList:e.revealBackgroundGradientList,borderWidth:e.borderWidth,borderRadius:e.borderRadius,disabled:t.isDisabled},null,8,["parent","backgroundColor","borderColor","borderGradientList","backgroundGradientList","borderWidth","borderRadius","disabled"]),r.createElementVNode("div",{disabled:e.disabled,class:"fv-button-container",style:r.normalizeStyle({background:e.background,"background-repeat":"no-repeat","background-clip":"content-box",borderRadius:`${e.borderRadius}px`})},[r.createElementVNode("span",{class:"fv-btn-content-block",style:r.normalizeStyle({color:e.foreground,"font-size":`${e.fontSize}px`,"font-weight":e.fontWeight})},[r.createElementVNode("i",{class:r.normalizeClass(["ms-Icon",`ms-Icon--${e.icon}`]),style:r.normalizeStyle({"margin-right":e.icon!=""?"5px":""})},null,6),r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode("Button")])],4)],12,Hl),r.createElementVNode("div",{class:"fv-button-regular-border",style:r.normalizeStyle({borderColor:e.borderColor,borderWidth:`${e.borderWidth}px`,borderRadius:`${e.borderRadius}px`})},null,4)],6)],2)}}}),Qr=H(_l),Z0="",ey="",ty="",Gl={key:0,class:"calendar-container"},Ul=Object.assign({name:"FvCalendarDatePicker",data(){return{thisValue:this.modelValue,displayContent:"",show:{calendar:!1}}},watch:{modelValue(){this.thisValue=this.modelValue},thisValue:{handler(){this.multiple==="single"&&(this.show.calendar=!1),this.$emit("update:modelValue",this.thisValue)},deep:!0},computedContent:{handler(){this.displayContent=this.computedContent},immediate:!0}},computed:{isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},computedDate(){return this.thisValue.length===0?new Date:new Date(this.thisValue[0])},computedContent(){let e=[];return this.thisValue.forEach(i=>{e.push(this.$SDate.Format("YYYY-mm-dd",i))}),e.join(",")},$theme(){return R(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(e){e.composedPath().includes(this.$el)||(this.show.calendar=!1)},showCalendar(){this.isDisabled||(this.editable?this.show.calendar=!0:this.show.calendar=!this.show.calendar)},parseContent(){let e=[],i=this.displayContent.split(/[,,;;\.]/);for(let t of i){if(t=t.split(/[-\/]/),t.length===0||t.length>3)return;for(let o=0;o<t.length;o++){let n=parseInt(t[o]);if(n.toString()==="NaN"||n<0||n>9999)return;o==1?t[o]=n-1:t[o]=n}e.push(new Date(...t))}this.thisValue=e}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...W,modelValue:{default:()=>[]},borderWidth:{default:1},placeholder:{default:"Pick a day"},dropDownBorderRadius:{default:6},inputForeground:{default:""},inputBackground:{default:""},dropDownIcon:{default:"CalendarDay"},dropDownIconForeground:{default:""},dropDownRevealBorder:{default:!0},dropDownIsBoxShadow:{default:!0},dropDownStyles:{default:()=>({})},editable:{default:!1},multiple:{default:"single"},choosenDates:{default:()=>[]},background:{default:""},borderRadius:{default:""},foreground:{default:""},nowDayColor:{default:""},rangeChooseColorFE:{default:""},rangeChooseColorMiddle:{default:""},disabled:{default:!1}},emits:["update:modelValue","choosen-dates","choosen-dates-obj"],setup(e,{emit:i}){return(t,o)=>{const n=r.resolveComponent("fv-text-box"),s=r.resolveComponent("fv-calendar-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-CalendarDatePicker",[t.$theme,{disabled:t.isDisabled}]]),style:r.normalizeStyle({zIndex:t.show.calendar?5:""})},[r.renderSlot(t.$slots,"default",{displayContent:t.displayContent,showCalendar:t.showCalendar,disabled:t.isDisabled},()=>[r.createVNode(n,{modelValue:t.displayContent,"onUpdate:modelValue":o[0]||(o[0]=l=>t.displayContent=l),placeholder:e.placeholder,theme:t.$theme,disabled:t.isDisabled,borderWidth:e.borderWidth,borderRadius:e.dropDownBorderRadius,foreground:e.inputForeground,background:e.inputBackground,readonly:!e.editable,icon:e.dropDownIcon,"icon-foreground":e.dropDownIconForeground,"reveal-border":e.dropDownRevealBorder,"is-box-shadow":e.dropDownIsBoxShadow,title:t.displayContent,cursor:e.editable?"":"default",style:r.normalizeStyle([{width:"100%"},{...e.dropDownStyles}]),onKeydown:r.withKeys(t.parseContent,["enter"]),onClick:t.showCalendar},null,8,["modelValue","placeholder","theme","disabled","borderWidth","borderRadius","foreground","background","readonly","icon","icon-foreground","reveal-border","is-box-shadow","title","cursor","style","onKeydown","onClick"])]),r.createVNode(r.Transition,{name:"fv-calendar-container"},{default:r.withCtx(()=>[t.show.calendar?(r.openBlock(),r.createElementBlock("div",Gl,[r.createVNode(s,{modelValue:t.computedDate,multiple:e.multiple,"choosen-dates":t.thisValue,"onUpdate:choosenDates":o[1]||(o[1]=l=>t.thisValue=l),foreground:e.foreground,background:e.background,borderRadius:e.borderRadius,nowDayColor:e.nowDayColor,rangeChooseColorFE:e.rangeChooseColorFE,rangeChooseColorMiddle:e.rangeChooseColorMiddle,theme:t.theme,ref:"calendar",onChoosenDates:o[2]||(o[2]=l=>t.$emit("choosen-dates",l)),onChoosenDatesObj:o[3]||(o[3]=l=>t.$emit("choosen-dates-obj",l))},{statement:r.withCtx(l=>[r.renderSlot(t.$slots,"statement",{value:l.value,dayRange:l.dayRange},()=>[r.createTextVNode(r.toDisplayString(l.value),1)])]),weekday_content:r.withCtx(l=>[r.renderSlot(t.$slots,"weekday_content",{value:l.value},()=>[r.createTextVNode(r.toDisplayString(l.value),1)])]),_:3},8,["modelValue","multiple","choosen-dates","foreground","background","borderRadius","nowDayColor","rangeChooseColorFE","rangeChooseColorMiddle","theme"])])):r.createCommentVNode("",!0)]),_:3})],6)}}}),Zr=H(Ul),ry="",oy="",ny="",Yl=["title"],Pi={__name:"yearUnit",props:{modelValue:{default:new Date},hightlight:{default:new Date}},setup(e){const i=e,t=r.ref(i.modelValue),o=r.computed(()=>t.value.date.getFullYear()),n=r.computed(()=>parseInt(i.hightlight.getFullYear()/10)==parseInt(t.value.date.getFullYear()/10)),s=r.computed(()=>`${t.value.date.getFullYear()}`),l=r.computed(()=>{const a=new Date;return t.value.date.getFullYear()==a.getFullYear()});return(a,d)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["picker-btn",{range:n.value,current:l.value}]),title:s.value},r.toDisplayString(o.value),11,Yl))}};function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eo(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i}/*!
|
|
11
|
+
This will fail in production.`);a=Nt,a._s.has(o)||(s?Li(o,i,n,a):Ur(o,n,a),process.env.NODE_ENV!=="production"&&(l._pinia=a));const c=a._s.get(o);if(process.env.NODE_ENV!=="production"&&d){const u="__hot:"+o,f=s?Li(u,i,n,a,!0):Ur(u,ve({},n),a,!0);d._hotUpdate(f),delete a.state.value[u],a._s.delete(u)}if(process.env.NODE_ENV!=="production"&&ti){const u=r.getCurrentInstance();if(u&&u.proxy&&!d){const f=u.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[o]=c}}return c}return l.$id=o,l}const Yr=Mi("FvConfig",{state:()=>({theme:"light",variables:{}}),actions:{changeTheme(e){e?this.theme=e:this.theme=this.theme==="light"?"dark":"light"}}});function R(e){const i=Yr();return{theme:r.computed(()=>e.theme==="global"&&e.theme!==void 0?i.theme:e.theme===void 0?"global":e.theme)}}function Fi(e){const{display:i,visibility:t,transition:o,animation:n}=e.style;return e.style.display="initial",e.style.visibility="hidden",e.style.transition="none",e.style.animation="none",{display:i,visibility:t,transition:o,animation:n}}function zi(e,{display:i,visibility:t,transition:o,animation:n}){e.style.display=i,e.style.visibility=t,e.style.transition=o,e.style.animation=n}function Se(e){if(e===void 0)return new DOMRect(0,0,0,0);let{display:i}=getComputedStyle(e);if(i!=="none"){let n=e.getBoundingClientRect();if(n.height===0&&n.width===0){const s=[];let l=e.parentElement;for(;l!==null&&l!==document.body;){if(i=getComputedStyle(l).display,i==="none"){const a=Fi(l);s.push({el:l,style:a})}l=l.parentElement}n=e.getBoundingClientRect();for(const a of s)zi(a.el,a.style)}return n}const t=Fi(e);let o=e.getBoundingClientRect();if(o.height===0&&o.width===0){const n=[];let s=e.parentElement;for(;s!==null&&s!==document.body;){if(i=getComputedStyle(s).display,i==="none"){const l=Fi(s);n.push({el:s,style:l})}s=s.parentElement}o=e.getBoundingClientRect();for(const l of n)zi(l.el,l.style)}return zi(e,t),o}function ge(e,i,t){return Math.max(i,Math.min(e,t))}const jr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};class Ue{constructor(i){Zt(this,"channels",{rgb:[0,0,0],hsv:[0,0,0]});Zt(this,"valpha",1);ol(i)&&this.parse(i)}static new(i){return new Ue(i)}clone(){const i=new Ue;for(let t in this.channels)i.channels[t]=[...this.channels[t]];return i.valpha=this.valpha,i}parse(i){i=i.trim();let t=!0;if(/^#[0-9a-fA-F]{6}$/.test(i)){let[o,n,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,n,s],this.valpha=1}else if(/^#[0-9a-fA-F]{8}$/.test(i)){let[o,n,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,n,s],this.valpha=parseInt(i.substring(7,9),16)/255}else if(i.startsWith("rgb(")){i=i.substring(4,i.length-1);const o=i.split(",");o.length===3?this.channels.rgb=o.map(n=>parseInt(n)):t=!1}else if(i.startsWith("rgba(")){i=i.substring(5,i.length-1);const o=i.split(",");if(o.length===4){let[n,s,l,a]=o.map(d=>parseFloat(d));this.channels.rgb=[n,s,l],this.valpha=a}else t=!1}else if(i.toLowerCase()in jr)return i=jr[i.toLowerCase()],this.parse(i);return t===!1&&console.error(`color ${i} parse error`),this.updateRGB2HSV(),this}updateRGB2HSV(){let[i,t,o]=this.channels.rgb;i/=255,t/=255,o/=255;let n=Math.max(i,t,o),s=Math.min(i,t,o),[l,a,d]=this.channels.hsv;return n===s?l=0:s===o?l=60*(t-i)/(n-s)+60:s===i?l=60*(o-t)/(n-s)+180:l=60*(i-o)/(n-s)+300,n==0?a=0:a=(n-s)/n*100,d=n*100,l=ge(l,0,359),a=ge(a,0,100),d=ge(d,0,100),this.channels.hsv=[l,a,d],this}updateHSV2RGB(){let[i,t,o]=this.channels.hsv;t/=100,o/=100;let n=o*t,s=i/60,l=n*(1-Math.abs(s%2-1)),[a,d,h]=[o-n,o-n,o-n],c=[[n,l,0],[l,n,0],[0,n,l],[0,l,n],[l,0,n],[n,0,l]],[u,f,m]=c[Math.floor(s)];return a+=u,d+=f,h+=m,a=ge(a,0,1),d=ge(d,0,1),h=ge(h,0,1),a*=255,d*=255,h*=255,a=Math.round(a),h=Math.round(h),d=Math.round(d),this.channels.rgb=[a,d,h],this}red(i){return i!==void 0?(this.channels.rgb[0]=Math.round(ge(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[0]}green(i){return i!==void 0?(this.channels.rgb[1]=Math.round(ge(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[1]}blue(i){return i!==void 0?(this.channels.rgb[2]=Math.round(ge(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[2]}hue(i){return i!==void 0?(this.channels.hsv[0]=ge(i,0,359),this.updateHSV2RGB()):this.channels.hsv[0]}saturation(i){return i!==void 0?(this.channels.hsv[1]=ge(i,0,100),this.updateHSV2RGB()):this.channels.hsv[1]}value(i){return i!==void 0?(this.channels.hsv[2]=ge(i,0,100),this.updateHSV2RGB()):this.channels.hsv[2]}alpha(i){return i!==void 0?(this.valpha=ge(i,0,1),this):this.valpha}hex(){let[i,t,o]=this.channels.rgb;return`#${i.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}`.toUpperCase()}hexa(){return`${this.hex()}${Math.round(this.valpha*255).toString(16).padStart(2,"0")}`.toUpperCase()}cssrgb(){let[i,t,o]=this.channels.rgb;return`rgb(${i}, ${t}, ${o})`}cssrgba(){let[i,t,o]=this.channels.rgb;return`rgba(${i}, ${t}, ${o}, ${this.alpha()})`}isDark(){const[i,t,o]=this.channels.rgb;return .2126*i+.7152*t+.0722*o<128}isLight(){const[i,t,o]=this.channels.rgb;return .2126*i+.7152*t+.0722*o>=128}}function si(e,i){let t=!1;return function o(...n){t||(t=!0,window!==void 0&&i===void 0?window.requestAnimationFrame(()=>{e.apply(o,n),t=!1}):setTimeout(()=>{e.apply(o,n),t=!1},i===void 0?1/60:i))}}function Pe(){let e=!1;return function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}class li{constructor(i){Zt(this,"eventFunc");this.eventFunc=t=>{t==null||t.preventDefault(),i(t)}}listen(){if(window!==void 0){const i=this.destory();return Pe()?(window.addEventListener("touchmove",this.eventFunc,{passive:!1}),window.addEventListener("touchend",i)):(window.addEventListener("mousemove",this.eventFunc),window.addEventListener("mouseup",i),window.addEventListener("mouseleave",i)),{destory:i}}return{destory:()=>{}}}destory(){const i=this.eventFunc;return function t(){window!==void 0&&(Pe()?(window.removeEventListener("touchmove",i),window.removeEventListener("touchend",t)):(window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",t),window.removeEventListener("mouseleave",t)))}}}function Ll(e){return r.defineComponent({setup(i,t){const o=r.ref(null);if(e.default&&e.default().length>0){const[n]=e.default();return t.expose({slotRef:o}),()=>r.h(n,{ref:o})}else return()=>r.h("div",{ref:o})}})}const Ml=Object.assign({name:"FvAffix",data(){return{parent:{left:0,top:0,right:0,bottom:0,width:0,height:0},current:{left:0,top:0,right:0,bottom:0,width:0,height:0},wrapper:{left:0,top:0,right:0,bottom:0,width:0,height:0},timer:null}},watch:{isFixed(){this.$emit("change",this.isFixed)}},computed:{leftValue(){return isNaN(parseFloat(this.left))?0:this.left.toString().indexOf("%")>-1?this.parent.width*parseFloat(this.left)/100:parseFloat(this.left)},topValue(){return isNaN(parseFloat(this.top))?0:this.top.toString().indexOf("%")>-1?this.parent.height*parseFloat(this.top)/100:parseFloat(this.top)},rightValue(){return isNaN(parseFloat(this.right))?0:this.right.toString().indexOf("%")>-1?this.parent.width*parseFloat(this.right)/100:parseFloat(this.right)},bottomValue(){return isNaN(parseFloat(this.bottom))?0:this.bottom.toString().indexOf("%")>-1?this.parent.height*parseFloat(this.bottom)/100:parseFloat(this.bottom)},computedLeft(){return isNaN(parseFloat(this.left))?"":this.parent.left+this.leftValue+"px"},computedTop(){return isNaN(parseFloat(this.top))?"":this.parent.top+this.topValue+"px"},computedRight(){return isNaN(parseFloat(this.right))?"":window.innerWidth-this.parent.right+this.rightValue+"px"},computedBottom(){return isNaN(parseFloat(this.bottom))?"":window.innerHeight-this.parent.bottom+this.bottomValue+"px"},computedWidth(){return this.current.width.toString().indexOf("%")>-1?this.parent.width*parseFloat(this.current.width)/100+"px":parseFloat(this.current.width)+"px"},computedHeight(){return this.current.height.toString().indexOf("%")>-1?this.parent.height*parseFloat(this.current.height)/100+"px":parseFloat(this.current.height)+"px"},isFixed(){return this.mode==="fixed"?!0:this.mode==="relative"?!1:!!(this.affixPos.includes("top")&&this.wrapper.top<this.parent.top+this.topValue||this.affixPos.includes("bottom")&&this.wrapper.bottom>this.parent.bottom+this.bottomValue||this.affixPos.includes("left")&&this.wrapper.left<this.parent.left+this.leftValue||this.affixPos.includes("right")&&this.wrapper.right>this.parent.right+this.rightValue)},$theme(){return R(this.$props).theme.value}},mounted(){this.wrapperPosInit()},methods:{getParentPos(){if(!this.valueTrigger(this.target))return;const{left:e,top:i,right:t,bottom:o,width:n,height:s}=this.valueTrigger(this.target).getBoundingClientRect();this.parent.left=e,this.parent.top=i,this.parent.right=t,this.parent.bottom=o,this.parent.width=n,this.parent.height=s},getCurrentPos(){if(!this.$refs.container)return;const{left:e,top:i,right:t,bottom:o,width:n,height:s}=this.$refs.container.getBoundingClientRect();this.current.left=e,this.current.top=i,this.current.right=t,this.current.bottom=o,this.current.width=n,this.current.height=s},getWrapperPos(){if(!this.$el)return;const{left:e,top:i,right:t,bottom:o}=this.$el.getBoundingClientRect(),n=t-e,s=o-i;this.wrapper.left=e,this.wrapper.top=i,this.wrapper.right=t,this.wrapper.bottom=o,this.wrapper.width=n,this.wrapper.height=s},wrapperPosInit(){this.timer=setInterval(()=>{window.requestAnimationFrame(()=>{this.getParentPos(),this.getCurrentPos(),this.getWrapperPos()})},10)},valueTrigger(e){return typeof e=="function"?e():e}},beforeUnmount(){clearInterval(this.timer)}},{props:{...W,left:{default:""},top:{default:""},right:{default:""},bottom:{default:""},target:{default:null},mode:{default:"fixed"},affixPos:{default:()=>["top"]},zIndex:{default:""}},emits:["change"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Affix",t.$theme]),style:r.normalizeStyle({position:e.mode==="fixed"?"absolute":"",width:t.isFixed?t.computedWidth:"auto",height:t.isFixed?t.computedHeight:"auto"})},[r.createElementVNode("div",{class:"fv-affix-container",ref:"container",style:r.normalizeStyle({position:t.isFixed?"fixed":"relative",left:t.isFixed?t.computedLeft:"",top:t.isFixed?t.computedTop:"",right:t.isFixed?t.computedRight:"",bottom:t.isFixed?t.computedBottom:"","z-index":e.zIndex})},[r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode(" Affix TEMPLATE ")])],4)],6))}}),Xr=H(Ml),P0="",R0="",O0="",Fl={class:"fv-animated-content-block"},zl=Object.assign({name:"FvAnimatedIcon",data(){return{thisValue:this.modelValue,animations:{scaleDown:{down:{transform:"scale(0.8)",transition:"transform 0.2s"},up:[{transform:"scale(1.1)",transition:"transform 0.2s"},{transform:"scale(1)",transition:"transform 0.05s ease-out"}],leave:[{transform:"scale(1)",transition:"transform 0.05s ease-out"}]},scaleXDown:{down:{transform:"scaleX(0.6)",transition:"transform 0.2s"},up:[{transform:"scaleX(1.1)",transition:"transform 0.2s"},{transform:"scaleX(1)",transition:"transform 0.05s ease-out"}],leave:[{transform:"scaleX(1)",transition:"transform 0.05s ease-out"}]},scaleYDown:{down:{transform:"scaleY(0.6)",transition:"transform 0.2s"},up:[{transform:"scaleY(1.1)",transition:"transform 0.2s"},{transform:"scaleY(1)",transition:"transform 0.05s ease-out"}],leave:[{transform:"scaleY(1)",transition:"transform 0.05s ease-out"}]},backScale:{down:{transform:"scale(0.8)","transform-origin":"100% 50%",transition:"transform 0.2s"},up:[{transform:"scale(1.1)","transform-origin":"100% 50%",transition:"transform 0.2s"},{transform:"scale(1)","transform-origin":"100% 50%",transition:"transform 0.05s ease-out"}],leave:[{transform:"scale(1)","transform-origin":"100% 50%",transition:"transform 0.05s ease-out"}]},bounceRotate:{down:{transform:"rotate(-15deg)",transition:"transform 0.1s"},up:[{transform:"rotate(360deg)",transition:"transform 0.3s"},{transform:"rotate(0deg)"}],leave:[{transform:"rotate(360deg)",transition:"transform 0.3s"},{transform:"rotate(0deg)"}]}},animatedStyle:{},animationsQueue:[]}},watch:{modelValue(e){this.thisValue=e},thisValue(e){this.$emit("update:modelValue",e)}},computed:{$theme(){return R(this.$props).theme.value}},mounted(){this.animationInit()},methods:{animationInit(){this.$el.addEventListener("transitionend",e=>{this.popAnimation()})},enter(){let e=this.getAnimation("enter");if(!e)return!1;e.length||(e=[e]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(e),this.popAnimation()},move(){let e=this.getAnimation("move");if(!e)return!1;e.length||(e=[e]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(e),this.popAnimation()},down(e){e.preventDefault();let i=this.getAnimation("down");if(!i)return!1;i.length||(i=[i]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(i),this.popAnimation()},up(e){e.preventDefault(),this.onClick(e);let i=this.getAnimation("up");if(!i)return!1;i.length||(i=[i]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(i),this.popAnimation()},leave(){let e=this.getAnimation("leave");if(!e)return!1;e.length||(e=[e]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(e),this.popAnimation()},getAnimation(e){if(this.customizeAnimation)return this.customizeAnimation[e]?this.customizeAnimation[e]:!1;if(!this.animations[this.thisValue])return!1;let i=this.animations[this.thisValue];return i[e]?i[e]:!1},popAnimation(){if(this.animationsQueue.length==0)return 0;let e=this.animationsQueue[0];this.animatedStyle=e,this.animationsQueue.splice(0,1)},onClick(e){this.$emit("click",e)}}},{props:{...W,modelValue:{default:"scaleDown"},icon:{default:"Search"},customizeAnimation:{default:!1},background:{default:""},fontSize:{default:16},hideContent:{default:!1}},emits:["update:modelValue","click"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-AnimatedIcon",[t.$theme]]),style:r.normalizeStyle([{width:`${e.fontSize*1+3}px`,background:e.background,fontSize:`${e.fontSize}px`}]),onMousedown:o[0]||(o[0]=(...n)=>t.down&&t.down(...n)),onMouseup:o[1]||(o[1]=(...n)=>t.up&&t.up(...n)),onTouchstart:o[2]||(o[2]=(...n)=>t.down&&t.down(...n)),onTouchend:o[3]||(o[3]=(...n)=>t.up&&t.up(...n)),onMouseenter:o[4]||(o[4]=(...n)=>t.enter&&t.enter(...n)),onMousemove:o[5]||(o[5]=(...n)=>t.move&&t.move(...n)),onTouchmove:o[6]||(o[6]=(...n)=>t.move&&t.move(...n)),onMouseleave:o[7]||(o[7]=(...n)=>t.leave&&t.leave(...n))},[r.createElementVNode("div",{draggable:"false",class:r.normalizeClass(["fv-animated-icon-container",[{hideContent:e.hideContent}]]),style:r.normalizeStyle([t.animatedStyle])},[r.renderSlot(t.$slots,"default",{},()=>[r.createElementVNode("i",{ref:"a",class:r.normalizeClass(["ms-Icon",[`ms-Icon--${e.icon}`]])},null,2)])],6),r.withDirectives(r.createElementVNode("div",Fl,[r.renderSlot(t.$slots,"content")],512),[[r.vShow,!e.hideContent]])],38))}}),qr=H(zl),W0="",H0="",_0="",Pl=r.createElementVNode("p",null,"Badge",-1),Rl={class:"badge-content"},Ol=Object.assign({name:"FvBadge",data(){return{thisValue:this.modelValue,colorList:{default:"#f56c6c",primary:"#409eff",success:"rgba(0, 204, 153, 1)",warning:"#e6a23c",danger:"#f56c6c",info:"#909399"}}},watch:{modelValue(e){this.thisValue=e},thisValue(e){this.$emit("update:modelValue",e)}},computed:{finalValue(){return this.thisValue*1>this.max*1?`${this.max}+`:this.thisValue},finalColor(){return this.colorList[this.type]?this.colorList[this.type]:this.type},$theme(){return R(this.$props).theme.value}}},{props:{...W,modelValue:{default:""},max:{default:1/0},isDot:{default:!1},hidden:{default:!1},offsetTop:{default:""},offsetRight:{default:""},type:{default:"default"}},emits:["update:modelValue"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Badge",[t.$theme]])},[r.renderSlot(t.$slots,"default",{},()=>[Pl]),r.withDirectives(r.createElementVNode("sup",{class:r.normalizeClass(["fv-badge-container",{dot:e.isDot}]),style:r.normalizeStyle({top:e.offsetTop,right:e.offsetRight,background:t.finalColor})},[r.createElementVNode("p",Rl,r.toDisplayString(t.finalValue),1)],6),[[r.vShow,!e.hidden]])],2))}}),Kr=H(Ol),U0="",Y0="",j0="",Al=["onClick"],Wl=Object.assign({name:"FvBreadcrumb",data(){return{mode:"default",thisValue:this.modelValue,tempValue:"",timer:{debounce:null}}},watch:{modelValue(e){this.thisValue=e,this.tempValue=e},mode(e){e=="editor"?this.tempValue=this.thisValue:this.thisValue=this.tempValue},thisValue(e){this.$emit("update:modelValue",e)},tempValue(e){this.$emit("input-change",e),this.timer.debounce&&clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",e)},this.debounceDelay)}},computed:{separatorIcon(){return this.separator.length>1},routeList(){let e=this.thisValue;return e==""?[]:e.split(this.separatorChar)},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return R(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(e){let i=e.target,t=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){t=!0;break}i=i.parentNode}t||(this.mode="default")},editorMode(e){if(this.isDisabled||this.readOnly)return 0;e.preventDefault(),e.stopPropagation(),this.mode!=="editor"&&(this.mode="editor",this.$nextTick(()=>{this.$refs.editor.focus(),this.$refs.editor.select()}))},handleEnter(e){e.keyCode===13&&(this.mode="default")},routeClick(e){if(this.isDisabled)return 0;e.stopPropagation(),this.$emit("root-click",{path:this.thisValue,pathList:this.routeList})},routeItemClick(e,i,t){if(this.isDisabled)return 0;t.stopPropagation();let o="",n=[];for(let s=0;s<=i;s++)n.push(this.routeList[s]);n.forEach(s=>{o==""?o=s:o+=`${this.separatorChar}${s}`}),this.$emit("item-click",{path:o,fullPath:`${this.separatorChar}${o}`,pathList:n,current:e})}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent)}},{props:{...W,modelValue:{default:""},separator:{type:String,default:"/"},separatorChar:{type:String,default:"/"},showRoot:{default:!0},rootIcon:{default:"FolderHorizontal"},readOnly:{default:!0},fontSize:{default:"16px"},borderColor:{default:""},disabled:{default:!1},borderRadius:{default:6},debounceDelay:{default:300}},emits:["update:modelValue","input-change","debounce-input","root-click","item-click"],setup(e,{emit:i}){return(t,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Breadcrumb",[t.$theme,{readOnly:e.readOnly,"editor-mode":t.mode==="editor",disabled:t.isDisabled}]]),style:r.normalizeStyle({"border-radius":`${e.borderRadius}px`,"border-color":t.mode==="editor"?e.borderColor:"","outline-color":t.mode==="editor"?e.borderColor:""})},[r.createElementVNode("div",{class:"fv-bc-route-list",ref:"main",onClick:o[4]||(o[4]=(...n)=>t.editorMode&&t.editorMode(...n))},[r.withDirectives(r.createElementVNode("div",{class:"fv-bc-route-item",style:r.normalizeStyle({"font-size":e.fontSize}),onClick:o[0]||(o[0]=(...n)=>t.routeClick&&t.routeClick(...n))},[r.renderSlot(t.$slots,"root",{rootIcon:e.rootIcon,separator:e.separator,separatorIcon:t.separatorIcon},()=>[r.createElementVNode("i",{class:r.normalizeClass(["fv-bc-separator-content ms-Icon",[`ms-Icon--${e.rootIcon}`]])},null,2)])],4),[[r.vShow,e.showRoot]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.routeList,(n,s)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:s,class:"fv-bc-route-item",style:r.normalizeStyle({"font-size":e.fontSize}),onDblclick:o[1]||(o[1]=(...l)=>t.editorMode&&t.editorMode(...l))},[r.renderSlot(t.$slots,"route-item",{item:n,index:s},()=>[r.withDirectives(r.createElementVNode("p",{class:"fv-bc-separator-content",onClick:l=>t.routeItemClick(n,s,l)},r.toDisplayString(n),9,Al),[[r.vShow,n]]),r.withDirectives(r.createElementVNode("i",{class:r.normalizeClass(["fv-bc-separator-icon ms-Icon",[t.separatorIcon?`ms-Icon--${e.separator}`:""]]),style:r.normalizeStyle({"font-family":t.separatorIcon?"":"Calibri"})},r.toDisplayString(t.separatorIcon?"":e.separator),7),[[r.vShow,s<t.routeList.length-1]])])],36)),[[r.vShow,t.mode=="default"]])),128)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":o[2]||(o[2]=n=>t.tempValue=n),class:"fv-bc-route-text-box",type:"text",ref:"editor",style:r.normalizeStyle({"font-size":e.fontSize}),onKeyup:o[3]||(o[3]=(...n)=>t.handleEnter&&t.handleEnter(...n))},null,36),[[r.vShow,t.mode=="editor"],[r.vModelText,t.tempValue]])],512)],6))}}),Jr=H(Wl),q0="",K0="",J0="",Hl=["disabled"],_l=Object.assign({name:"FvButton",data(){return{}},watch:{},computed:{$theme(){return R(this.$props).theme.value},borderLightColor(){if(this.revealBorderColor)return this.revealBorderColor;if(this.$theme=="light")return"rgba(121, 119, 117, 0.6)";if(this.$theme=="dark"||this.$theme=="custom")return"rgba(255, 255, 255, 0.6)"},backgroundLightColor(){if(this.revealBackgroundColor)return this.revealBackgroundColor;if(this.$theme=="light")return"rgba(121, 119, 117, 0.1)";if(this.$theme=="dark"||this.$theme=="custom")return"rgba(255, 255, 255, 0.1)"},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){},methods:{onClick(e){if(e.preventDefault(),this.isDisabled)return 0;this.$emit("click",e)}},beforeUnmount(){}},{props:{...W,icon:{default:"",type:String},foreground:{default:"",type:String},background:{default:"",type:String},borderRadius:{default:3},borderColor:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal",type:String},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},revealBorderGradientList:{default:()=>[]},revealBackgroundGradientList:{default:()=>[]},isBoxShadow:{default:!1},disabled:{default:!1},borderWidth:{default:1}},emits:["click"],setup(e,{emit:i}){return(t,o)=>{const n=r.resolveComponent("fv-reveal-container");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-Button",[t.$theme]]),onClick:o[0]||(o[0]=(...s)=>t.onClick&&t.onClick(...s))},[r.createElementVNode("div",{class:r.normalizeClass(["fv-button-main-container",[{disabled:t.isDisabled},{shadow:e.isBoxShadow}]]),style:r.normalizeStyle({borderRadius:`${e.borderRadius}px`})},[r.createVNode(n,{parent:()=>t.$el,class:"fv-button-reveal-container",backgroundColor:t.backgroundLightColor,borderColor:t.borderLightColor,borderGradientSize:80,borderGradientList:e.revealBorderGradientList,backgroundGradientList:e.revealBackgroundGradientList,borderWidth:e.borderWidth,borderRadius:e.borderRadius,disabled:t.isDisabled},null,8,["parent","backgroundColor","borderColor","borderGradientList","backgroundGradientList","borderWidth","borderRadius","disabled"]),r.createElementVNode("div",{disabled:e.disabled,class:"fv-button-container",style:r.normalizeStyle({background:e.background,"background-repeat":"no-repeat","background-clip":"content-box",borderRadius:`${e.borderRadius}px`})},[r.createElementVNode("span",{class:"fv-btn-content-block",style:r.normalizeStyle({color:e.foreground,"font-size":`${e.fontSize}px`,"font-weight":e.fontWeight})},[r.createElementVNode("i",{class:r.normalizeClass(["ms-Icon",`ms-Icon--${e.icon}`]),style:r.normalizeStyle({"margin-right":e.icon!=""?"5px":""})},null,6),r.renderSlot(t.$slots,"default",{},()=>[r.createTextVNode("Button")])],4)],12,Hl),r.createElementVNode("div",{class:"fv-button-regular-border",style:r.normalizeStyle({borderColor:e.borderColor,borderWidth:`${e.borderWidth}px`,borderRadius:`${e.borderRadius}px`})},null,4)],6)],2)}}}),Qr=H(_l),Z0="",ey="",ty="",Gl={key:0,class:"calendar-container"},Ul=Object.assign({name:"FvCalendarDatePicker",data(){return{thisValue:this.modelValue,displayContent:"",show:{calendar:!1}}},watch:{modelValue(){this.thisValue=this.modelValue},thisValue:{handler(){this.multiple==="single"&&(this.show.calendar=!1),this.$emit("update:modelValue",this.thisValue)},deep:!0},computedContent:{handler(){this.displayContent=this.computedContent},immediate:!0}},computed:{isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},computedDate(){return this.thisValue.length===0?new Date:new Date(this.thisValue[0])},computedContent(){let e=[];return this.thisValue.forEach(i=>{e.push(this.$SDate.Format("YYYY-mm-dd",i))}),e.join(",")},$theme(){return R(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(e){e.composedPath().includes(this.$el)||(this.show.calendar=!1)},showCalendar(){this.isDisabled||(this.editable?this.show.calendar=!0:this.show.calendar=!this.show.calendar)},parseContent(){let e=[],i=this.displayContent.split(/[,,;;\.]/);for(let t of i){if(t=t.split(/[-\/]/),t.length===0||t.length>3)return;for(let o=0;o<t.length;o++){let n=parseInt(t[o]);if(n.toString()==="NaN"||n<0||n>9999)return;o==1?t[o]=n-1:t[o]=n}e.push(new Date(...t))}this.thisValue=e}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...W,modelValue:{default:()=>[]},borderWidth:{default:1},placeholder:{default:"Pick a day"},dropDownBorderRadius:{default:6},inputForeground:{default:""},inputBackground:{default:""},dropDownIcon:{default:"CalendarDay"},dropDownIconForeground:{default:""},dropDownRevealBorder:{default:!0},dropDownIsBoxShadow:{default:!0},dropDownStyles:{default:()=>({})},editable:{default:!1},multiple:{default:"single"},choosenDates:{default:()=>[]},background:{default:""},borderRadius:{default:""},foreground:{default:""},nowDayColor:{default:""},rangeChooseColorFE:{default:""},rangeChooseColorMiddle:{default:""},disabled:{default:!1}},emits:["update:modelValue","choosen-dates","choosen-dates-obj"],setup(e,{emit:i}){return(t,o)=>{const n=r.resolveComponent("fv-text-box"),s=r.resolveComponent("fv-calendar-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["fv-CalendarDatePicker",[t.$theme,{disabled:t.isDisabled}]]),style:r.normalizeStyle({zIndex:t.show.calendar?5:""})},[r.renderSlot(t.$slots,"default",{displayContent:t.displayContent,showCalendar:t.showCalendar,disabled:t.isDisabled},()=>[r.createVNode(n,{modelValue:t.displayContent,"onUpdate:modelValue":o[0]||(o[0]=l=>t.displayContent=l),placeholder:e.placeholder,theme:t.$theme,disabled:t.isDisabled,borderWidth:e.borderWidth,borderRadius:e.dropDownBorderRadius,foreground:e.inputForeground,background:e.inputBackground,readonly:!e.editable,icon:e.dropDownIcon,"icon-foreground":e.dropDownIconForeground,"reveal-border":e.dropDownRevealBorder,"is-box-shadow":e.dropDownIsBoxShadow,title:t.displayContent,cursor:e.editable?"":"default",style:r.normalizeStyle([{width:"100%"},{...e.dropDownStyles}]),onKeydown:r.withKeys(t.parseContent,["enter"]),onClick:t.showCalendar},null,8,["modelValue","placeholder","theme","disabled","borderWidth","borderRadius","foreground","background","readonly","icon","icon-foreground","reveal-border","is-box-shadow","title","cursor","style","onKeydown","onClick"])]),r.createVNode(r.Transition,{name:"fv-calendar-container"},{default:r.withCtx(()=>[t.show.calendar?(r.openBlock(),r.createElementBlock("div",Gl,[r.createVNode(s,{modelValue:t.computedDate,multiple:e.multiple,"choosen-dates":t.thisValue,"onUpdate:choosenDates":o[1]||(o[1]=l=>t.thisValue=l),foreground:e.foreground,background:e.background,borderRadius:e.borderRadius,nowDayColor:e.nowDayColor,rangeChooseColorFE:e.rangeChooseColorFE,rangeChooseColorMiddle:e.rangeChooseColorMiddle,theme:t.theme,ref:"calendar",onChoosenDates:o[2]||(o[2]=l=>t.$emit("choosen-dates",l)),onChoosenDatesObj:o[3]||(o[3]=l=>t.$emit("choosen-dates-obj",l))},{statement:r.withCtx(l=>[r.renderSlot(t.$slots,"statement",{value:l.value,dayRange:l.dayRange},()=>[r.createTextVNode(r.toDisplayString(l.value),1)])]),weekday_content:r.withCtx(l=>[r.renderSlot(t.$slots,"weekday_content",{value:l.value},()=>[r.createTextVNode(r.toDisplayString(l.value),1)])]),_:3},8,["modelValue","multiple","choosen-dates","foreground","background","borderRadius","nowDayColor","rangeChooseColorFE","rangeChooseColorMiddle","theme"])])):r.createCommentVNode("",!0)]),_:3})],6)}}}),Zr=H(Ul),ry="",oy="",ny="",Yl=["title"],Pi={__name:"yearUnit",props:{modelValue:{default:new Date},hightlight:{default:new Date}},setup(e){const i=e,t=r.ref(i.modelValue),o=r.computed(()=>t.value.date.getFullYear()),n=r.computed(()=>parseInt(i.hightlight.getFullYear()/10)==parseInt(t.value.date.getFullYear()/10)),s=r.computed(()=>`${t.value.date.getFullYear()}`),l=r.computed(()=>{const a=new Date;return t.value.date.getFullYear()==a.getFullYear()});return(a,d)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["picker-btn",{range:n.value,current:l.value}]),title:s.value},r.toDisplayString(o.value),11,Yl))}};function Ft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eo(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i}/*!
|
|
12
12
|
* GSAP 3.1.1
|
|
13
13
|
* https://greensock.com
|
|
14
14
|
*
|