@creatorsn/vfluent3 0.3.35 → 0.3.37

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.
@@ -16,7 +16,7 @@ export declare const FvBreadcrumb: import("../../types/plugins/component-plugin"
16
16
  readonly readOnly?: boolean | undefined;
17
17
  readonly debounceDelay?: number | undefined;
18
18
  };
19
- $emit: (event: "change" | "update:modelValue" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
19
+ $emit: (event: "update:modelValue" | "input-change" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
20
20
  }, {
21
21
  mode: string;
22
22
  thisValue: Function;
@@ -59,7 +59,7 @@ export declare const FvBreadcrumb: import("../../types/plugins/component-plugin"
59
59
  readonly readOnly?: boolean | undefined;
60
60
  readonly debounceDelay?: number | undefined;
61
61
  };
62
- $emit: (event: "change" | "update:modelValue" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
62
+ $emit: (event: "update:modelValue" | "input-change" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
63
63
  }, {
64
64
  mode: string;
65
65
  thisValue: Function;
@@ -99,7 +99,7 @@ export declare const FvBreadcrumb: import("../../types/plugins/component-plugin"
99
99
  readonly readOnly?: boolean | undefined;
100
100
  readonly debounceDelay?: number | undefined;
101
101
  };
102
- $emit: (event: "change" | "update:modelValue" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
102
+ $emit: (event: "update:modelValue" | "input-change" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
103
103
  }, {
104
104
  mode: string;
105
105
  thisValue: Function;
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  readonly readOnly?: boolean | undefined;
16
16
  readonly debounceDelay?: number | undefined;
17
17
  };
18
- $emit: (event: "change" | "update:modelValue" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
18
+ $emit: (event: "update:modelValue" | "input-change" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
19
19
  }, {
20
20
  mode: string;
21
21
  thisValue: Function;
@@ -58,7 +58,7 @@ declare const _default: {
58
58
  readonly readOnly?: boolean | undefined;
59
59
  readonly debounceDelay?: number | undefined;
60
60
  };
61
- $emit: (event: "change" | "update:modelValue" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
61
+ $emit: (event: "update:modelValue" | "input-change" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
62
62
  }, {
63
63
  mode: string;
64
64
  thisValue: Function;
@@ -98,7 +98,7 @@ declare const _default: {
98
98
  readonly readOnly?: boolean | undefined;
99
99
  readonly debounceDelay?: number | undefined;
100
100
  };
101
- $emit: (event: "change" | "update:modelValue" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
101
+ $emit: (event: "update:modelValue" | "input-change" | "debounce-input" | "root-click" | "item-click", ...args: any[]) => void;
102
102
  }, {
103
103
  mode: string;
104
104
  thisValue: Function;
package/dist/vfluent3.js CHANGED
@@ -1914,20 +1914,16 @@ const Qa = ["onClick"], Za = {
1914
1914
  },
1915
1915
  watch: {
1916
1916
  modelValue(t) {
1917
- this.thisValue = t;
1917
+ this.thisValue = t, this.tempValue = t;
1918
1918
  },
1919
1919
  mode(t) {
1920
- if (t == "editor") {
1921
- let i = this.thisValue;
1922
- this.tempValue = i;
1923
- } else
1924
- this.thisValue = this.tempValue;
1920
+ t == "editor" ? this.tempValue = this.thisValue : this.thisValue = this.tempValue;
1925
1921
  },
1926
1922
  thisValue(t) {
1927
1923
  this.$emit("update:modelValue", t);
1928
1924
  },
1929
1925
  tempValue(t) {
1930
- this.$emit("change", t), this.timer.debounce && clearTimeout(this.timer.debounce), this.timer.debounce = setTimeout(() => {
1926
+ this.$emit("input-change", t), this.timer.debounce && clearTimeout(this.timer.debounce), this.timer.debounce = setTimeout(() => {
1931
1927
  this.$emit("debounce-input", t);
1932
1928
  }, this.debounceDelay);
1933
1929
  }
@@ -2044,7 +2040,7 @@ const Qa = ["onClick"], Za = {
2044
2040
  },
2045
2041
  emits: [
2046
2042
  "update:modelValue",
2047
- "change",
2043
+ "input-change",
2048
2044
  "debounce-input",
2049
2045
  "root-click",
2050
2046
  "item-click"
@@ -8,7 +8,7 @@ Only state can be modified.`);l[0]="$state",$t=!1,o.set(s,l,o.state.value),$t=!0
8
8
  state: () => new MyClass()
9
9
  Found in store "${S.$id}".`),g&&s&&e.hydrate&&e.hydrate(S.$state,g),h=!0,c=!0,S}function Hi(t,i,e){let o,r;const s=typeof i=="function";if(typeof t=="string")o=t,r=s?e:i;else if(r=t,o=t.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=n.hasInjectionContext();if(a=(process.env.NODE_ENV==="test"&&At&&At._testing?null:a)||(h?n.inject(Yn,null):null),a&&Wt(a),process.env.NODE_ENV!=="production"&&!At)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=At,a._s.has(o)||(s?Wi(o,i,r,a):lo(o,r,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?Wi(u,i,r,a,!0):lo(u,Te({},r),a,!0);d._hotUpdate(f),delete a.state.value[u],a._s.delete(u)}if(process.env.NODE_ENV!=="production"&&di){const u=n.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 ao=Hi("FvConfig",{state:()=>({theme:"light",variables:{}}),actions:{changeTheme(t){t?this.theme=t:this.theme=this.theme==="light"?"dark":"light"}}});function _(t){const i=ao();return{theme:n.computed(()=>t.theme==="global"&&t.theme!==void 0?i.theme:t.theme===void 0?"global":t.theme)}}function Gi(t){const{display:i,visibility:e,transition:o,animation:r}=t.style;return t.style.display="initial",t.style.visibility="hidden",t.style.transition="none",t.style.animation="none",{display:i,visibility:e,transition:o,animation:r}}function Ui(t,{display:i,visibility:e,transition:o,animation:r}){t.style.display=i,t.style.visibility=e,t.style.transition=o,t.style.animation=r}function ke(t){if(t===void 0)return new DOMRect(0,0,0,0);let{display:i}=getComputedStyle(t);if(i!=="none"){let r=t.getBoundingClientRect();if(r.height===0&&r.width===0){const s=[];let l=t.parentElement;for(;l!==null&&l!==document.body;){if(i=getComputedStyle(l).display,i==="none"){const a=Gi(l);s.push({el:l,style:a})}l=l.parentElement}r=t.getBoundingClientRect();for(const a of s)Ui(a.el,a.style)}return r}const e=Gi(t);let o=t.getBoundingClientRect();if(o.height===0&&o.width===0){const r=[];let s=t.parentElement;for(;s!==null&&s!==document.body;){if(i=getComputedStyle(s).display,i==="none"){const l=Gi(s);r.push({el:s,style:l})}s=s.parentElement}o=t.getBoundingClientRect();for(const l of r)Ui(l.el,l.style)}return Ui(t,e),o}function ve(t,i,e){return Math.max(i,Math.min(t,e))}const ho={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 Tt{constructor(i){vt(this,"channels",{rgb:[0,0,0],hsv:[0,0,0]});vt(this,"valpha",1);St(i)&&this.parse(i)}static new(i){return new Tt(i)}clone(){const i=new Tt;for(let e in this.channels)i.channels[e]=[...this.channels[e]];return i.valpha=this.valpha,i}parse(i){i=i.trim();let e=!0;if(/^#[0-9a-fA-F]{6}$/.test(i)){let[o,r,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,r,s],this.valpha=1}else if(/^#[0-9a-fA-F]{8}$/.test(i)){let[o,r,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,r,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(r=>parseInt(r)):e=!1}else if(i.startsWith("rgba(")){i=i.substring(5,i.length-1);const o=i.split(",");if(o.length===4){let[r,s,l,a]=o.map(d=>parseFloat(d));this.channels.rgb=[r,s,l],this.valpha=a}else e=!1}else if(i.toLowerCase()in ho)return i=ho[i.toLowerCase()],this.parse(i);return e===!1&&console.error(`color ${i} parse error`),this.updateRGB2HSV(),this}updateRGB2HSV(){let[i,e,o]=this.channels.rgb;i/=255,e/=255,o/=255;let r=Math.max(i,e,o),s=Math.min(i,e,o),[l,a,d]=this.channels.hsv;return r===s?l=0:s===o?l=60*(e-i)/(r-s)+60:s===i?l=60*(o-e)/(r-s)+180:l=60*(i-o)/(r-s)+300,r==0?a=0:a=(r-s)/r*100,d=r*100,l=ve(l,0,359),a=ve(a,0,100),d=ve(d,0,100),this.channels.hsv=[l,a,d],this}updateHSV2RGB(){let[i,e,o]=this.channels.hsv;e/=100,o/=100;let r=e,s=i/60,l=r*(1-Math.abs(s%2-1)),[a,d,h]=[o-r,o-r,o-r],c=[[r,l,0],[l,r,0],[0,r,l],[0,l,r],[l,0,r],[r,0,l]],[u,f,m]=c[Math.floor(s)];return a+=u,d+=f,h+=m,a=ve(a,0,1),d=ve(d,0,1),h=ve(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(ve(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[0]}green(i){return i!==void 0?(this.channels.rgb[1]=Math.round(ve(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[1]}blue(i){return i!==void 0?(this.channels.rgb[2]=Math.round(ve(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[2]}hue(i){return i!==void 0?(this.channels.hsv[0]=ve(i,0,359),this.updateHSV2RGB()):this.channels.hsv[0]}saturation(i){return i!==void 0?(this.channels.hsv[1]=ve(i,0,100),this.updateHSV2RGB()):this.channels.hsv[1]}value(i){return i!==void 0?(this.channels.hsv[2]=ve(i,0,100),this.updateHSV2RGB()):this.channels.hsv[2]}alpha(i){return i!==void 0?(this.valpha=ve(i,0,1),this):this.valpha}hex(){let[i,e,o]=this.channels.rgb;return`#${i.toString(16).padStart(2,"0")}${e.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,e,o]=this.channels.rgb;return`rgb(${i}, ${e}, ${o})`}cssrgba(){let[i,e,o]=this.channels.rgb;return`rgba(${i}, ${e}, ${o}, ${this.alpha()})`}isDark(){const[i,e,o]=this.channels.rgb;return .2126*i+.7152*e+.0722*o<128}isLight(){const[i,e,o]=this.channels.rgb;return .2126*i+.7152*e+.0722*o>=128}}function Yi(t,i){let e=!1;return function o(...r){e||(e=!0,window!==void 0&&i===void 0?window.requestAnimationFrame(()=>{t.apply(o,r),e=!1}):setTimeout(()=>{t.apply(o,r),e=!1},i===void 0?1/60:i))}}function tt(){let t=!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)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t}class ji{constructor(i){vt(this,"eventFunc");this.eventFunc=e=>{e==null||e.preventDefault(),i(e)}}listen(){if(window!==void 0){const i=this.destory();return tt()?(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 e(){window!==void 0&&(tt()?(window.removeEventListener("touchmove",i),window.removeEventListener("touchend",e)):(window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",e),window.removeEventListener("mouseleave",e)))}}}function jl(t){return n.defineComponent({setup(i,e){const o=n.ref(null);if(t.default&&t.default().length>0){const[r]=t.default();return e.expose({slotRef:o}),()=>n.h(r,{ref:o})}else return()=>n.h("div",{ref:o})}})}const Xl=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 _(this.$props).theme.value}},mounted(){this.wrapperPosInit()},methods:{getParentPos(){if(!this.valueTrigger(this.target))return;const{left:t,top:i,right:e,bottom:o,width:r,height:s}=this.valueTrigger(this.target).getBoundingClientRect();this.parent.left=t,this.parent.top=i,this.parent.right=e,this.parent.bottom=o,this.parent.width=r,this.parent.height=s},getCurrentPos(){if(!this.$refs.container)return;const{left:t,top:i,right:e,bottom:o,width:r,height:s}=this.$refs.container.getBoundingClientRect();this.current.left=t,this.current.top=i,this.current.right=e,this.current.bottom=o,this.current.width=r,this.current.height=s},getWrapperPos(){if(!this.$el)return;const{left:t,top:i,right:e,bottom:o}=this.$el.getBoundingClientRect(),r=e-t,s=o-i;this.wrapper.left=t,this.wrapper.top=i,this.wrapper.right=e,this.wrapper.bottom=o,this.wrapper.width=r,this.wrapper.height=s},wrapperPosInit(){this.timer=setInterval(()=>{window.requestAnimationFrame(()=>{this.getParentPos(),this.getCurrentPos(),this.getWrapperPos()})},10)},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,left:{default:""},top:{default:""},right:{default:""},bottom:{default:""},target:{default:null},mode:{default:"fixed"},affixPos:{default:()=>["top"]},zIndex:{default:""}},emits:["change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Affix",e.$theme]),style:n.normalizeStyle({position:t.mode==="fixed"?"absolute":"",width:e.isFixed?e.computedWidth:"auto",height:e.isFixed?e.computedHeight:"auto"})},[n.createElementVNode("div",{class:"fv-affix-container",ref:"container",style:n.normalizeStyle({position:e.isFixed?"fixed":"relative",left:e.isFixed?e.computedLeft:"",top:e.isFixed?e.computedTop:"",right:e.isFixed?e.computedRight:"",bottom:e.isFixed?e.computedBottom:"","z-index":t.zIndex})},[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(" Affix TEMPLATE ")])],4)],6))}}),uo=W(Xl),ny="",oy="",ry="",ql={class:"fv-animated-content-block"},Kl=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(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return _(this.$props).theme.value}},mounted(){this.animationInit()},methods:{animationInit(){this.$el.addEventListener("transitionend",t=>{this.popAnimation()})},enter(){let t=this.getAnimation("enter");if(!t)return!1;t.length||(t=[t]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(t),this.popAnimation()},move(){let t=this.getAnimation("move");if(!t)return!1;t.length||(t=[t]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(t),this.popAnimation()},down(t){t.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(t){t.preventDefault(),this.onClick(t);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 t=this.getAnimation("leave");if(!t)return!1;t.length||(t=[t]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(t),this.popAnimation()},getAnimation(t){if(this.customizeAnimation)return this.customizeAnimation[t]?this.customizeAnimation[t]:!1;if(!this.animations[this.thisValue])return!1;let i=this.animations[this.thisValue];return i[t]?i[t]:!1},popAnimation(){if(this.animationsQueue.length==0)return 0;let t=this.animationsQueue[0];this.animatedStyle=t,this.animationsQueue.splice(0,1)},onClick(t){this.$emit("click",t)}}},{props:{...A,modelValue:{default:"scaleDown"},icon:{default:"Search"},customizeAnimation:{default:!1},background:{default:""},fontSize:{default:16},hideContent:{default:!1}},emits:["update:modelValue","click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-AnimatedIcon",[e.$theme]]),style:n.normalizeStyle([{width:`${t.fontSize*1+3}px`,background:t.background,fontSize:`${t.fontSize}px`}]),onMousedown:o[0]||(o[0]=(...r)=>e.down&&e.down(...r)),onMouseup:o[1]||(o[1]=(...r)=>e.up&&e.up(...r)),onTouchstart:o[2]||(o[2]=(...r)=>e.down&&e.down(...r)),onTouchend:o[3]||(o[3]=(...r)=>e.up&&e.up(...r)),onMouseenter:o[4]||(o[4]=(...r)=>e.enter&&e.enter(...r)),onMousemove:o[5]||(o[5]=(...r)=>e.move&&e.move(...r)),onTouchmove:o[6]||(o[6]=(...r)=>e.move&&e.move(...r)),onMouseleave:o[7]||(o[7]=(...r)=>e.leave&&e.leave(...r))},[n.createElementVNode("div",{draggable:"false",class:n.normalizeClass(["fv-animated-icon-container",[{hideContent:t.hideContent}]]),style:n.normalizeStyle([e.animatedStyle])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("i",{ref:"a",class:n.normalizeClass(["ms-Icon",[`ms-Icon--${t.icon}`]])},null,2)])],6),n.withDirectives(n.createElementVNode("div",ql,[n.renderSlot(e.$slots,"content")],512),[[n.vShow,!t.hideContent]])],38))}}),co=W(Kl),ly="",ay="",dy="",Jl=n.createElementVNode("p",null,"Badge",-1),Ql={class:"badge-content"},Zl=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(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},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 _(this.$props).theme.value}}},{props:{...A,modelValue:{default:""},max:{default:1/0},isDot:{default:!1},hidden:{default:!1},type:{default:"default"}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Badge",[e.$theme]])},[n.renderSlot(e.$slots,"default",{},()=>[Jl]),n.withDirectives(n.createElementVNode("sup",{class:n.normalizeClass(["fv-badge-container",{dot:t.isDot}]),style:n.normalizeStyle({background:e.finalColor})},[n.createElementVNode("p",Ql,n.toDisplayString(e.finalValue),1)],6),[[n.vShow,!t.hidden]])],2))}}),fo=W(Zl),uy="",cy="",fy="",ea=["onClick"],ta=Object.assign({name:"FvBreadcrumb",data(){return{mode:"default",thisValue:this.modelValue,tempValue:"",timer:{debounce:null}}},watch:{modelValue(t){this.thisValue=t},mode(t){if(t=="editor"){let i=this.thisValue;this.tempValue=i}else this.thisValue=this.tempValue},thisValue(t){this.$emit("update:modelValue",t)},tempValue(t){this.$emit("change",t),this.timer.debounce&&clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",t)},this.debounceDelay)}},computed:{separatorIcon(){return this.separator.length>1},routeList(){let t=this.thisValue;return t==""?[]:t.split(this.separatorChar)},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return _(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.mode="default")},editorMode(t){if(this.isDisabled||this.readOnly)return 0;t.preventDefault(),t.stopPropagation(),this.mode!=="editor"&&(this.mode="editor",this.$nextTick(()=>{this.$refs.editor.focus(),this.$refs.editor.select()}))},handleEnter(t){t.keyCode===13&&(this.mode="default")},routeClick(t){if(this.isDisabled)return 0;t.stopPropagation(),this.$emit("root-click",{path:this.thisValue,pathList:this.routeList})},routeItemClick(t,i,e){if(this.isDisabled)return 0;e.stopPropagation();let o="",r=[];for(let s=0;s<=i;s++)r.push(this.routeList[s]);r.forEach(s=>{o==""?o=s:o+=`${this.separatorChar}${s}`}),this.$emit("item-click",{path:o,fullPath:`${this.separatorChar}${o}`,pathList:r,current:t})}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,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","change","debounce-input","root-click","item-click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Breadcrumb",[e.$theme,{readOnly:t.readOnly,"editor-mode":e.mode==="editor",disabled:e.isDisabled}]]),style:n.normalizeStyle({"border-radius":`${t.borderRadius}px`,"border-color":e.mode==="editor"?t.borderColor:"","outline-color":e.mode==="editor"?t.borderColor:""})},[n.createElementVNode("div",{class:"fv-bc-route-list",ref:"main",onClick:o[4]||(o[4]=(...r)=>e.editorMode&&e.editorMode(...r))},[n.withDirectives(n.createElementVNode("div",{class:"fv-bc-route-item",style:n.normalizeStyle({"font-size":t.fontSize}),onClick:o[0]||(o[0]=(...r)=>e.routeClick&&e.routeClick(...r))},[n.renderSlot(e.$slots,"root",{rootIcon:t.rootIcon,separator:t.separator,separatorIcon:e.separatorIcon},()=>[n.createElementVNode("i",{class:n.normalizeClass(["fv-bc-separator-content ms-Icon",[`ms-Icon--${t.rootIcon}`]])},null,2)])],4),[[n.vShow,t.showRoot]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.routeList,(r,s)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:s,class:"fv-bc-route-item",style:n.normalizeStyle({"font-size":t.fontSize}),onDblclick:o[1]||(o[1]=(...l)=>e.editorMode&&e.editorMode(...l))},[n.renderSlot(e.$slots,"route-item",{item:r,index:s},()=>[n.withDirectives(n.createElementVNode("p",{class:"fv-bc-separator-content",onClick:l=>e.routeItemClick(r,s,l)},n.toDisplayString(r),9,ea),[[n.vShow,r]]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["fv-bc-separator-icon ms-Icon",[e.separatorIcon?`ms-Icon--${t.separator}`:""]]),style:n.normalizeStyle({"font-family":e.separatorIcon?"":"Calibri"})},n.toDisplayString(e.separatorIcon?"":t.separator),7),[[n.vShow,s<e.routeList.length-1]])])],36)),[[n.vShow,e.mode=="default"]])),128)),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":o[2]||(o[2]=r=>e.tempValue=r),class:"fv-bc-route-text-box",type:"text",ref:"editor",style:n.normalizeStyle({"font-size":t.fontSize}),onKeyup:o[3]||(o[3]=(...r)=>e.handleEnter&&e.handleEnter(...r))},null,36),[[n.vShow,e.mode=="editor"],[n.vModelText,e.tempValue]])],512)],6))}}),mo=W(ta),gy="",py="",wy="",ia=["disabled"],na=Object.assign({name:"FvButton",data(){return{}},watch:{},computed:{$theme(){return _(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(t){if(t.preventDefault(),this.isDisabled)return 0;this.$emit("click",t)}},beforeUnmount(){}},{props:{...A,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(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Button",[e.$theme]]),onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},[n.createElementVNode("div",{class:n.normalizeClass(["fv-button-main-container",[{disabled:e.isDisabled},{shadow:t.isBoxShadow}]]),style:n.normalizeStyle({borderRadius:`${t.borderRadius}px`})},[n.createVNode(r,{parent:()=>e.$el,class:"fv-button-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,borderGradientSize:80,borderGradientList:t.revealBorderGradientList,backgroundGradientList:t.revealBackgroundGradientList,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled},null,8,["parent","backgroundColor","borderColor","borderGradientList","backgroundGradientList","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{disabled:t.disabled,class:"fv-button-container",style:n.normalizeStyle({background:t.background,"background-repeat":"no-repeat","background-clip":"content-box",borderRadius:`${t.borderRadius}px`})},[n.createElementVNode("span",{class:"fv-btn-content-block",style:n.normalizeStyle({color:t.foreground,"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight})},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",`ms-Icon--${t.icon}`]),style:n.normalizeStyle({"margin-right":t.icon!=""?"5px":""})},null,6),n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode("Button")])],4)],12,ia),n.createElementVNode("div",{class:"fv-button-regular-border",style:n.normalizeStyle({borderColor:t.borderColor,borderWidth:`${t.borderWidth}px`,borderRadius:`${t.borderRadius}px`})},null,4)],6)],2)}}}),go=W(na),yy="",ky="",vy="",oa={key:0,class:"calendar-container"},ra=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 t=[];return this.thisValue.forEach(i=>{t.push(this.$SDate.Format("YYYY-mm-dd",i))}),t.join(",")},$theme(){return _(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){t.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 t=[],i=this.displayContent.split(/[,,;;\.]/);for(let e of i){if(e=e.split(/[-\/]/),e.length===0||e.length>3)return;for(let o=0;o<e.length;o++){let r=parseInt(e[o]);if(r.toString()==="NaN"||r<0||r>9999)return;o==1?e[o]=r-1:e[o]=r}t.push(new Date(...e))}this.thisValue=t}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,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(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box"),s=n.resolveComponent("fv-calendar-view");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-CalendarDatePicker",[e.$theme,{disabled:e.isDisabled}]]),style:n.normalizeStyle({zIndex:e.show.calendar?5:""})},[n.renderSlot(e.$slots,"default",{displayContent:e.displayContent,showCalendar:e.showCalendar,disabled:e.isDisabled},()=>[n.createVNode(r,{modelValue:e.displayContent,"onUpdate:modelValue":o[0]||(o[0]=l=>e.displayContent=l),placeholder:t.placeholder,theme:e.$theme,disabled:e.isDisabled,borderWidth:t.borderWidth,borderRadius:t.dropDownBorderRadius,foreground:t.inputForeground,background:t.inputBackground,readonly:!t.editable,icon:t.dropDownIcon,"icon-foreground":t.dropDownIconForeground,"reveal-border":t.dropDownRevealBorder,"is-box-shadow":t.dropDownIsBoxShadow,title:e.displayContent,cursor:t.editable?"":"default",style:n.normalizeStyle([{width:"100%"},{...t.dropDownStyles}]),onKeydown:n.withKeys(e.parseContent,["enter"]),onClick:e.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"])]),n.createVNode(n.Transition,{name:"fv-calendar-container"},{default:n.withCtx(()=>[e.show.calendar?(n.openBlock(),n.createElementBlock("div",oa,[n.createVNode(s,{modelValue:e.computedDate,multiple:t.multiple,"choosen-dates":e.thisValue,"onUpdate:choosenDates":o[1]||(o[1]=l=>e.thisValue=l),foreground:t.foreground,background:t.background,borderRadius:t.borderRadius,nowDayColor:t.nowDayColor,rangeChooseColorFE:t.rangeChooseColorFE,rangeChooseColorMiddle:t.rangeChooseColorMiddle,theme:e.theme,ref:"calendar",onChoosenDates:o[2]||(o[2]=l=>e.$emit("choosen-dates",l)),onChoosenDatesObj:o[3]||(o[3]=l=>e.$emit("choosen-dates-obj",l))},{statement:n.withCtx(l=>[n.renderSlot(e.$slots,"statement",{value:l.value,dayRange:l.dayRange},()=>[n.createTextVNode(n.toDisplayString(l.value),1)])]),weekday_content:n.withCtx(l=>[n.renderSlot(e.$slots,"weekday_content",{value:l.value},()=>[n.createTextVNode(n.toDisplayString(l.value),1)])]),_:3},8,["modelValue","multiple","choosen-dates","foreground","background","borderRadius","nowDayColor","rangeChooseColorFE","rangeChooseColorMiddle","theme"])])):n.createCommentVNode("",!0)]),_:3})],6)}}}),po=W(ra),Sy="",Vy="",$y="",sa=["title"],Xi={__name:"yearUnit",props:{modelValue:{default:new Date},hightlight:{default:new Date}},setup(t){const i=t,e=n.ref(i.modelValue),o=n.computed(()=>e.value.date.getFullYear()),r=n.computed(()=>parseInt(i.hightlight.getFullYear()/10)==parseInt(e.value.date.getFullYear()/10)),s=n.computed(()=>`${e.value.date.getFullYear()}`),l=n.computed(()=>{const a=new Date;return e.value.date.getFullYear()==a.getFullYear()});return(a,d)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["picker-btn",{range:r.value,current:l.value}]),title:s.value},n.toDisplayString(o.value),11,sa))}};function Gt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wo(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}/*!
11
+ This will fail in production.`);a=At,a._s.has(o)||(s?Wi(o,i,r,a):lo(o,r,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?Wi(u,i,r,a,!0):lo(u,Te({},r),a,!0);d._hotUpdate(f),delete a.state.value[u],a._s.delete(u)}if(process.env.NODE_ENV!=="production"&&di){const u=n.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 ao=Hi("FvConfig",{state:()=>({theme:"light",variables:{}}),actions:{changeTheme(t){t?this.theme=t:this.theme=this.theme==="light"?"dark":"light"}}});function _(t){const i=ao();return{theme:n.computed(()=>t.theme==="global"&&t.theme!==void 0?i.theme:t.theme===void 0?"global":t.theme)}}function Gi(t){const{display:i,visibility:e,transition:o,animation:r}=t.style;return t.style.display="initial",t.style.visibility="hidden",t.style.transition="none",t.style.animation="none",{display:i,visibility:e,transition:o,animation:r}}function Ui(t,{display:i,visibility:e,transition:o,animation:r}){t.style.display=i,t.style.visibility=e,t.style.transition=o,t.style.animation=r}function ke(t){if(t===void 0)return new DOMRect(0,0,0,0);let{display:i}=getComputedStyle(t);if(i!=="none"){let r=t.getBoundingClientRect();if(r.height===0&&r.width===0){const s=[];let l=t.parentElement;for(;l!==null&&l!==document.body;){if(i=getComputedStyle(l).display,i==="none"){const a=Gi(l);s.push({el:l,style:a})}l=l.parentElement}r=t.getBoundingClientRect();for(const a of s)Ui(a.el,a.style)}return r}const e=Gi(t);let o=t.getBoundingClientRect();if(o.height===0&&o.width===0){const r=[];let s=t.parentElement;for(;s!==null&&s!==document.body;){if(i=getComputedStyle(s).display,i==="none"){const l=Gi(s);r.push({el:s,style:l})}s=s.parentElement}o=t.getBoundingClientRect();for(const l of r)Ui(l.el,l.style)}return Ui(t,e),o}function ve(t,i,e){return Math.max(i,Math.min(t,e))}const ho={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 Tt{constructor(i){vt(this,"channels",{rgb:[0,0,0],hsv:[0,0,0]});vt(this,"valpha",1);St(i)&&this.parse(i)}static new(i){return new Tt(i)}clone(){const i=new Tt;for(let e in this.channels)i.channels[e]=[...this.channels[e]];return i.valpha=this.valpha,i}parse(i){i=i.trim();let e=!0;if(/^#[0-9a-fA-F]{6}$/.test(i)){let[o,r,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,r,s],this.valpha=1}else if(/^#[0-9a-fA-F]{8}$/.test(i)){let[o,r,s]=[parseInt(i.substring(1,3),16),parseInt(i.substring(3,5),16),parseInt(i.substring(5,7),16)];this.channels.rgb=[o,r,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(r=>parseInt(r)):e=!1}else if(i.startsWith("rgba(")){i=i.substring(5,i.length-1);const o=i.split(",");if(o.length===4){let[r,s,l,a]=o.map(d=>parseFloat(d));this.channels.rgb=[r,s,l],this.valpha=a}else e=!1}else if(i.toLowerCase()in ho)return i=ho[i.toLowerCase()],this.parse(i);return e===!1&&console.error(`color ${i} parse error`),this.updateRGB2HSV(),this}updateRGB2HSV(){let[i,e,o]=this.channels.rgb;i/=255,e/=255,o/=255;let r=Math.max(i,e,o),s=Math.min(i,e,o),[l,a,d]=this.channels.hsv;return r===s?l=0:s===o?l=60*(e-i)/(r-s)+60:s===i?l=60*(o-e)/(r-s)+180:l=60*(i-o)/(r-s)+300,r==0?a=0:a=(r-s)/r*100,d=r*100,l=ve(l,0,359),a=ve(a,0,100),d=ve(d,0,100),this.channels.hsv=[l,a,d],this}updateHSV2RGB(){let[i,e,o]=this.channels.hsv;e/=100,o/=100;let r=e,s=i/60,l=r*(1-Math.abs(s%2-1)),[a,d,h]=[o-r,o-r,o-r],c=[[r,l,0],[l,r,0],[0,r,l],[0,l,r],[l,0,r],[r,0,l]],[u,f,m]=c[Math.floor(s)];return a+=u,d+=f,h+=m,a=ve(a,0,1),d=ve(d,0,1),h=ve(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(ve(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[0]}green(i){return i!==void 0?(this.channels.rgb[1]=Math.round(ve(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[1]}blue(i){return i!==void 0?(this.channels.rgb[2]=Math.round(ve(i,0,255)),this.updateRGB2HSV()):this.channels.rgb[2]}hue(i){return i!==void 0?(this.channels.hsv[0]=ve(i,0,359),this.updateHSV2RGB()):this.channels.hsv[0]}saturation(i){return i!==void 0?(this.channels.hsv[1]=ve(i,0,100),this.updateHSV2RGB()):this.channels.hsv[1]}value(i){return i!==void 0?(this.channels.hsv[2]=ve(i,0,100),this.updateHSV2RGB()):this.channels.hsv[2]}alpha(i){return i!==void 0?(this.valpha=ve(i,0,1),this):this.valpha}hex(){let[i,e,o]=this.channels.rgb;return`#${i.toString(16).padStart(2,"0")}${e.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,e,o]=this.channels.rgb;return`rgb(${i}, ${e}, ${o})`}cssrgba(){let[i,e,o]=this.channels.rgb;return`rgba(${i}, ${e}, ${o}, ${this.alpha()})`}isDark(){const[i,e,o]=this.channels.rgb;return .2126*i+.7152*e+.0722*o<128}isLight(){const[i,e,o]=this.channels.rgb;return .2126*i+.7152*e+.0722*o>=128}}function Yi(t,i){let e=!1;return function o(...r){e||(e=!0,window!==void 0&&i===void 0?window.requestAnimationFrame(()=>{t.apply(o,r),e=!1}):setTimeout(()=>{t.apply(o,r),e=!1},i===void 0?1/60:i))}}function tt(){let t=!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)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t}class ji{constructor(i){vt(this,"eventFunc");this.eventFunc=e=>{e==null||e.preventDefault(),i(e)}}listen(){if(window!==void 0){const i=this.destory();return tt()?(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 e(){window!==void 0&&(tt()?(window.removeEventListener("touchmove",i),window.removeEventListener("touchend",e)):(window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",e),window.removeEventListener("mouseleave",e)))}}}function jl(t){return n.defineComponent({setup(i,e){const o=n.ref(null);if(t.default&&t.default().length>0){const[r]=t.default();return e.expose({slotRef:o}),()=>n.h(r,{ref:o})}else return()=>n.h("div",{ref:o})}})}const Xl=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 _(this.$props).theme.value}},mounted(){this.wrapperPosInit()},methods:{getParentPos(){if(!this.valueTrigger(this.target))return;const{left:t,top:i,right:e,bottom:o,width:r,height:s}=this.valueTrigger(this.target).getBoundingClientRect();this.parent.left=t,this.parent.top=i,this.parent.right=e,this.parent.bottom=o,this.parent.width=r,this.parent.height=s},getCurrentPos(){if(!this.$refs.container)return;const{left:t,top:i,right:e,bottom:o,width:r,height:s}=this.$refs.container.getBoundingClientRect();this.current.left=t,this.current.top=i,this.current.right=e,this.current.bottom=o,this.current.width=r,this.current.height=s},getWrapperPos(){if(!this.$el)return;const{left:t,top:i,right:e,bottom:o}=this.$el.getBoundingClientRect(),r=e-t,s=o-i;this.wrapper.left=t,this.wrapper.top=i,this.wrapper.right=e,this.wrapper.bottom=o,this.wrapper.width=r,this.wrapper.height=s},wrapperPosInit(){this.timer=setInterval(()=>{window.requestAnimationFrame(()=>{this.getParentPos(),this.getCurrentPos(),this.getWrapperPos()})},10)},valueTrigger(t){return typeof t=="function"?t():t}},beforeUnmount(){clearInterval(this.timer)}},{props:{...A,left:{default:""},top:{default:""},right:{default:""},bottom:{default:""},target:{default:null},mode:{default:"fixed"},affixPos:{default:()=>["top"]},zIndex:{default:""}},emits:["change"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Affix",e.$theme]),style:n.normalizeStyle({position:t.mode==="fixed"?"absolute":"",width:e.isFixed?e.computedWidth:"auto",height:e.isFixed?e.computedHeight:"auto"})},[n.createElementVNode("div",{class:"fv-affix-container",ref:"container",style:n.normalizeStyle({position:e.isFixed?"fixed":"relative",left:e.isFixed?e.computedLeft:"",top:e.isFixed?e.computedTop:"",right:e.isFixed?e.computedRight:"",bottom:e.isFixed?e.computedBottom:"","z-index":t.zIndex})},[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(" Affix TEMPLATE ")])],4)],6))}}),uo=W(Xl),ny="",oy="",ry="",ql={class:"fv-animated-content-block"},Kl=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(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},computed:{$theme(){return _(this.$props).theme.value}},mounted(){this.animationInit()},methods:{animationInit(){this.$el.addEventListener("transitionend",t=>{this.popAnimation()})},enter(){let t=this.getAnimation("enter");if(!t)return!1;t.length||(t=[t]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(t),this.popAnimation()},move(){let t=this.getAnimation("move");if(!t)return!1;t.length||(t=[t]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(t),this.popAnimation()},down(t){t.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(t){t.preventDefault(),this.onClick(t);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 t=this.getAnimation("leave");if(!t)return!1;t.length||(t=[t]),this.animationsQueue=[],this.animationsQueue=this.animationsQueue.concat(t),this.popAnimation()},getAnimation(t){if(this.customizeAnimation)return this.customizeAnimation[t]?this.customizeAnimation[t]:!1;if(!this.animations[this.thisValue])return!1;let i=this.animations[this.thisValue];return i[t]?i[t]:!1},popAnimation(){if(this.animationsQueue.length==0)return 0;let t=this.animationsQueue[0];this.animatedStyle=t,this.animationsQueue.splice(0,1)},onClick(t){this.$emit("click",t)}}},{props:{...A,modelValue:{default:"scaleDown"},icon:{default:"Search"},customizeAnimation:{default:!1},background:{default:""},fontSize:{default:16},hideContent:{default:!1}},emits:["update:modelValue","click"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-AnimatedIcon",[e.$theme]]),style:n.normalizeStyle([{width:`${t.fontSize*1+3}px`,background:t.background,fontSize:`${t.fontSize}px`}]),onMousedown:o[0]||(o[0]=(...r)=>e.down&&e.down(...r)),onMouseup:o[1]||(o[1]=(...r)=>e.up&&e.up(...r)),onTouchstart:o[2]||(o[2]=(...r)=>e.down&&e.down(...r)),onTouchend:o[3]||(o[3]=(...r)=>e.up&&e.up(...r)),onMouseenter:o[4]||(o[4]=(...r)=>e.enter&&e.enter(...r)),onMousemove:o[5]||(o[5]=(...r)=>e.move&&e.move(...r)),onTouchmove:o[6]||(o[6]=(...r)=>e.move&&e.move(...r)),onMouseleave:o[7]||(o[7]=(...r)=>e.leave&&e.leave(...r))},[n.createElementVNode("div",{draggable:"false",class:n.normalizeClass(["fv-animated-icon-container",[{hideContent:t.hideContent}]]),style:n.normalizeStyle([e.animatedStyle])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("i",{ref:"a",class:n.normalizeClass(["ms-Icon",[`ms-Icon--${t.icon}`]])},null,2)])],6),n.withDirectives(n.createElementVNode("div",ql,[n.renderSlot(e.$slots,"content")],512),[[n.vShow,!t.hideContent]])],38))}}),co=W(Kl),ly="",ay="",dy="",Jl=n.createElementVNode("p",null,"Badge",-1),Ql={class:"badge-content"},Zl=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(t){this.thisValue=t},thisValue(t){this.$emit("update:modelValue",t)}},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 _(this.$props).theme.value}}},{props:{...A,modelValue:{default:""},max:{default:1/0},isDot:{default:!1},hidden:{default:!1},type:{default:"default"}},emits:["update:modelValue"],setup(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Badge",[e.$theme]])},[n.renderSlot(e.$slots,"default",{},()=>[Jl]),n.withDirectives(n.createElementVNode("sup",{class:n.normalizeClass(["fv-badge-container",{dot:t.isDot}]),style:n.normalizeStyle({background:e.finalColor})},[n.createElementVNode("p",Ql,n.toDisplayString(e.finalValue),1)],6),[[n.vShow,!t.hidden]])],2))}}),fo=W(Zl),uy="",cy="",fy="",ea=["onClick"],ta=Object.assign({name:"FvBreadcrumb",data(){return{mode:"default",thisValue:this.modelValue,tempValue:"",timer:{debounce:null}}},watch:{modelValue(t){this.thisValue=t,this.tempValue=t},mode(t){t=="editor"?this.tempValue=this.thisValue:this.thisValue=this.tempValue},thisValue(t){this.$emit("update:modelValue",t)},tempValue(t){this.$emit("input-change",t),this.timer.debounce&&clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",t)},this.debounceDelay)}},computed:{separatorIcon(){return this.separator.length>1},routeList(){let t=this.thisValue;return t==""?[]:t.split(this.separatorChar)},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return _(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent)},outSideClickEvent(t){let i=t.target,e=!1;for(;i&&i.tagName&&i.tagName.toLowerCase()!="body";){if(i==this.$el){e=!0;break}i=i.parentNode}e||(this.mode="default")},editorMode(t){if(this.isDisabled||this.readOnly)return 0;t.preventDefault(),t.stopPropagation(),this.mode!=="editor"&&(this.mode="editor",this.$nextTick(()=>{this.$refs.editor.focus(),this.$refs.editor.select()}))},handleEnter(t){t.keyCode===13&&(this.mode="default")},routeClick(t){if(this.isDisabled)return 0;t.stopPropagation(),this.$emit("root-click",{path:this.thisValue,pathList:this.routeList})},routeItemClick(t,i,e){if(this.isDisabled)return 0;e.stopPropagation();let o="",r=[];for(let s=0;s<=i;s++)r.push(this.routeList[s]);r.forEach(s=>{o==""?o=s:o+=`${this.separatorChar}${s}`}),this.$emit("item-click",{path:o,fullPath:`${this.separatorChar}${o}`,pathList:r,current:t})}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent)}},{props:{...A,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(t,{emit:i}){return(e,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Breadcrumb",[e.$theme,{readOnly:t.readOnly,"editor-mode":e.mode==="editor",disabled:e.isDisabled}]]),style:n.normalizeStyle({"border-radius":`${t.borderRadius}px`,"border-color":e.mode==="editor"?t.borderColor:"","outline-color":e.mode==="editor"?t.borderColor:""})},[n.createElementVNode("div",{class:"fv-bc-route-list",ref:"main",onClick:o[4]||(o[4]=(...r)=>e.editorMode&&e.editorMode(...r))},[n.withDirectives(n.createElementVNode("div",{class:"fv-bc-route-item",style:n.normalizeStyle({"font-size":t.fontSize}),onClick:o[0]||(o[0]=(...r)=>e.routeClick&&e.routeClick(...r))},[n.renderSlot(e.$slots,"root",{rootIcon:t.rootIcon,separator:t.separator,separatorIcon:e.separatorIcon},()=>[n.createElementVNode("i",{class:n.normalizeClass(["fv-bc-separator-content ms-Icon",[`ms-Icon--${t.rootIcon}`]])},null,2)])],4),[[n.vShow,t.showRoot]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.routeList,(r,s)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:s,class:"fv-bc-route-item",style:n.normalizeStyle({"font-size":t.fontSize}),onDblclick:o[1]||(o[1]=(...l)=>e.editorMode&&e.editorMode(...l))},[n.renderSlot(e.$slots,"route-item",{item:r,index:s},()=>[n.withDirectives(n.createElementVNode("p",{class:"fv-bc-separator-content",onClick:l=>e.routeItemClick(r,s,l)},n.toDisplayString(r),9,ea),[[n.vShow,r]]),n.withDirectives(n.createElementVNode("i",{class:n.normalizeClass(["fv-bc-separator-icon ms-Icon",[e.separatorIcon?`ms-Icon--${t.separator}`:""]]),style:n.normalizeStyle({"font-family":e.separatorIcon?"":"Calibri"})},n.toDisplayString(e.separatorIcon?"":t.separator),7),[[n.vShow,s<e.routeList.length-1]])])],36)),[[n.vShow,e.mode=="default"]])),128)),n.withDirectives(n.createElementVNode("input",{"onUpdate:modelValue":o[2]||(o[2]=r=>e.tempValue=r),class:"fv-bc-route-text-box",type:"text",ref:"editor",style:n.normalizeStyle({"font-size":t.fontSize}),onKeyup:o[3]||(o[3]=(...r)=>e.handleEnter&&e.handleEnter(...r))},null,36),[[n.vShow,e.mode=="editor"],[n.vModelText,e.tempValue]])],512)],6))}}),mo=W(ta),gy="",py="",wy="",ia=["disabled"],na=Object.assign({name:"FvButton",data(){return{}},watch:{},computed:{$theme(){return _(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(t){if(t.preventDefault(),this.isDisabled)return 0;this.$emit("click",t)}},beforeUnmount(){}},{props:{...A,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(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-reveal-container");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-Button",[e.$theme]]),onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},[n.createElementVNode("div",{class:n.normalizeClass(["fv-button-main-container",[{disabled:e.isDisabled},{shadow:t.isBoxShadow}]]),style:n.normalizeStyle({borderRadius:`${t.borderRadius}px`})},[n.createVNode(r,{parent:()=>e.$el,class:"fv-button-reveal-container",backgroundColor:e.backgroundLightColor,borderColor:e.borderLightColor,borderGradientSize:80,borderGradientList:t.revealBorderGradientList,backgroundGradientList:t.revealBackgroundGradientList,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:e.isDisabled},null,8,["parent","backgroundColor","borderColor","borderGradientList","backgroundGradientList","borderWidth","borderRadius","disabled"]),n.createElementVNode("div",{disabled:t.disabled,class:"fv-button-container",style:n.normalizeStyle({background:t.background,"background-repeat":"no-repeat","background-clip":"content-box",borderRadius:`${t.borderRadius}px`})},[n.createElementVNode("span",{class:"fv-btn-content-block",style:n.normalizeStyle({color:t.foreground,"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight})},[n.createElementVNode("i",{class:n.normalizeClass(["ms-Icon",`ms-Icon--${t.icon}`]),style:n.normalizeStyle({"margin-right":t.icon!=""?"5px":""})},null,6),n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode("Button")])],4)],12,ia),n.createElementVNode("div",{class:"fv-button-regular-border",style:n.normalizeStyle({borderColor:t.borderColor,borderWidth:`${t.borderWidth}px`,borderRadius:`${t.borderRadius}px`})},null,4)],6)],2)}}}),go=W(na),yy="",ky="",vy="",oa={key:0,class:"calendar-container"},ra=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 t=[];return this.thisValue.forEach(i=>{t.push(this.$SDate.Format("YYYY-mm-dd",i))}),t.join(",")},$theme(){return _(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",this.outSideClickEvent),window.addEventListener("touchend",this.outSideClickEvent)},outSideClickEvent(t){t.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 t=[],i=this.displayContent.split(/[,,;;\.]/);for(let e of i){if(e=e.split(/[-\/]/),e.length===0||e.length>3)return;for(let o=0;o<e.length;o++){let r=parseInt(e[o]);if(r.toString()==="NaN"||r<0||r>9999)return;o==1?e[o]=r-1:e[o]=r}t.push(new Date(...e))}this.thisValue=t}},beforeUnmount(){window.removeEventListener("click",this.outSideClickEvent),window.removeEventListener("touchend",this.outSideClickEvent)}},{props:{...A,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(t,{emit:i}){return(e,o)=>{const r=n.resolveComponent("fv-text-box"),s=n.resolveComponent("fv-calendar-view");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["fv-CalendarDatePicker",[e.$theme,{disabled:e.isDisabled}]]),style:n.normalizeStyle({zIndex:e.show.calendar?5:""})},[n.renderSlot(e.$slots,"default",{displayContent:e.displayContent,showCalendar:e.showCalendar,disabled:e.isDisabled},()=>[n.createVNode(r,{modelValue:e.displayContent,"onUpdate:modelValue":o[0]||(o[0]=l=>e.displayContent=l),placeholder:t.placeholder,theme:e.$theme,disabled:e.isDisabled,borderWidth:t.borderWidth,borderRadius:t.dropDownBorderRadius,foreground:t.inputForeground,background:t.inputBackground,readonly:!t.editable,icon:t.dropDownIcon,"icon-foreground":t.dropDownIconForeground,"reveal-border":t.dropDownRevealBorder,"is-box-shadow":t.dropDownIsBoxShadow,title:e.displayContent,cursor:t.editable?"":"default",style:n.normalizeStyle([{width:"100%"},{...t.dropDownStyles}]),onKeydown:n.withKeys(e.parseContent,["enter"]),onClick:e.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"])]),n.createVNode(n.Transition,{name:"fv-calendar-container"},{default:n.withCtx(()=>[e.show.calendar?(n.openBlock(),n.createElementBlock("div",oa,[n.createVNode(s,{modelValue:e.computedDate,multiple:t.multiple,"choosen-dates":e.thisValue,"onUpdate:choosenDates":o[1]||(o[1]=l=>e.thisValue=l),foreground:t.foreground,background:t.background,borderRadius:t.borderRadius,nowDayColor:t.nowDayColor,rangeChooseColorFE:t.rangeChooseColorFE,rangeChooseColorMiddle:t.rangeChooseColorMiddle,theme:e.theme,ref:"calendar",onChoosenDates:o[2]||(o[2]=l=>e.$emit("choosen-dates",l)),onChoosenDatesObj:o[3]||(o[3]=l=>e.$emit("choosen-dates-obj",l))},{statement:n.withCtx(l=>[n.renderSlot(e.$slots,"statement",{value:l.value,dayRange:l.dayRange},()=>[n.createTextVNode(n.toDisplayString(l.value),1)])]),weekday_content:n.withCtx(l=>[n.renderSlot(e.$slots,"weekday_content",{value:l.value},()=>[n.createTextVNode(n.toDisplayString(l.value),1)])]),_:3},8,["modelValue","multiple","choosen-dates","foreground","background","borderRadius","nowDayColor","rangeChooseColorFE","rangeChooseColorMiddle","theme"])])):n.createCommentVNode("",!0)]),_:3})],6)}}}),po=W(ra),Sy="",Vy="",$y="",sa=["title"],Xi={__name:"yearUnit",props:{modelValue:{default:new Date},hightlight:{default:new Date}},setup(t){const i=t,e=n.ref(i.modelValue),o=n.computed(()=>e.value.date.getFullYear()),r=n.computed(()=>parseInt(i.hightlight.getFullYear()/10)==parseInt(e.value.date.getFullYear()/10)),s=n.computed(()=>`${e.value.date.getFullYear()}`),l=n.computed(()=>{const a=new Date;return e.value.date.getFullYear()==a.getFullYear()});return(a,d)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["picker-btn",{range:r.value,current:l.value}]),title:s.value},n.toDisplayString(o.value),11,sa))}};function Gt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wo(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i}/*!
12
12
  * GSAP 3.1.1
13
13
  * https://greensock.com
14
14
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creatorsn/vfluent3",
3
3
  "private": false,
4
- "version": "0.3.35",
4
+ "version": "0.3.37",
5
5
  "files": [
6
6
  "dist"
7
7
  ],