@seresweb/website-component 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/_icons-DtBTpiO2.cjs +11 -0
- package/dist/_icons-FW35XHO0.js +14 -0
- package/dist/_utils-B7LThWoT.js +26 -0
- package/dist/_utils-CtkVBTg-.cjs +1 -0
- package/dist/cjs/checkbox.cjs +1 -0
- package/dist/cjs/col.cjs +1 -0
- package/dist/cjs/config-provider.cjs +1 -0
- package/dist/cjs/date-picker.cjs +1 -0
- package/dist/cjs/date-select.cjs +1 -0
- package/dist/cjs/horizontal-viewer.cjs +1 -1
- package/dist/cjs/image-indicator.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/input.cjs +1 -1
- package/dist/cjs/layz-image.cjs +1 -1
- package/dist/cjs/locales.cjs +1 -0
- package/dist/cjs/parameter-box.cjs +1 -1
- package/dist/cjs/radio.cjs +1 -1
- package/dist/cjs/row.cjs +1 -0
- package/dist/cjs/select.cjs +1 -0
- package/dist/cjs/swiper-normal.cjs +1 -1
- package/dist/cjs/swiper-showcase.cjs +1 -1
- package/dist/cjs/tab-indicator.cjs +1 -1
- package/dist/css/checkbox.css +1 -0
- package/dist/css/col.css +1 -0
- package/dist/css/date-picker.css +1 -0
- package/dist/css/date-select.css +1 -0
- package/dist/css/input.css +1 -1
- package/dist/css/radio.css +1 -1
- package/dist/css/row.css +1 -0
- package/dist/css/select.css +1 -0
- package/dist/css/swiper-showcase.css +1 -1
- package/dist/en-US-BBTWftdk.js +35 -0
- package/dist/en-US-UkqgG0fb.cjs +1 -0
- package/dist/es/checkbox.mjs +82 -0
- package/dist/es/col.mjs +48 -0
- package/dist/es/config-provider.mjs +17 -0
- package/dist/es/date-picker.mjs +6 -0
- package/dist/es/date-select.mjs +113 -0
- package/dist/es/horizontal-viewer.mjs +1 -1
- package/dist/es/image-indicator.mjs +1 -1
- package/dist/es/index.mjs +61 -41
- package/dist/es/input.mjs +17 -16
- package/dist/es/layz-image.mjs +18 -17
- package/dist/es/locales.mjs +41 -0
- package/dist/es/parameter-box.mjs +123 -85
- package/dist/es/radio.mjs +27 -23
- package/dist/es/row.mjs +63 -0
- package/dist/es/select.mjs +210 -0
- package/dist/es/swiper-normal.mjs +1 -1
- package/dist/es/swiper-showcase.mjs +110 -95
- package/dist/es/tab-indicator.mjs +65 -79
- package/dist/global.d.ts +8 -0
- package/dist/index-B-sVxtkA.cjs +1 -0
- package/dist/{index-tkvNmWjy.js → index-BPX4w5Vn.js} +113 -106
- package/dist/index-Bc4wAl0z.js +644 -0
- package/dist/index-CEjz1ubF.cjs +1 -0
- package/dist/index.css +1 -1
- package/dist/scss/checkbox.scss +155 -0
- package/dist/scss/col.scss +16 -0
- package/dist/scss/date-picker.scss +226 -0
- package/dist/scss/date-select.scss +41 -0
- package/dist/scss/index.scss +6 -0
- package/dist/scss/input.scss +44 -4
- package/dist/scss/radio.scss +6 -6
- package/dist/scss/row.scss +10 -0
- package/dist/scss/select.scss +210 -0
- package/dist/scss/swiper-showcase.scss +54 -17
- package/dist/types/components/_icons.d.ts +4 -0
- package/dist/types/components/_utils.d.ts +4 -0
- package/dist/types/components/checkbox/checkbox.vue.d.ts +24 -0
- package/dist/types/components/checkbox/index.d.ts +6 -0
- package/dist/types/components/checkbox/type.d.ts +30 -0
- package/dist/types/components/col/col.vue.d.ts +21 -0
- package/dist/types/components/col/index.d.ts +6 -0
- package/dist/types/components/col/type.d.ts +24 -0
- package/dist/types/components/config-provider/config-provider.vue.d.ts +20 -0
- package/dist/types/components/config-provider/index.d.ts +27 -0
- package/dist/types/components/config-provider/type.d.ts +4 -0
- package/dist/types/components/date-picker/date-picker.vue.d.ts +16 -0
- package/dist/types/components/date-picker/index.d.ts +53 -0
- package/dist/types/components/date-picker/type.d.ts +12 -0
- package/dist/types/components/date-select/date-select.vue.d.ts +16 -0
- package/dist/types/components/date-select/index.d.ts +7 -0
- package/dist/types/components/date-select/type.d.ts +16 -0
- package/dist/types/components/index.d.ts +8 -0
- package/dist/types/components/input/input.vue.d.ts +1 -0
- package/dist/types/components/input/type.d.ts +1 -0
- package/dist/types/components/locales/ar-SA.d.ts +20 -0
- package/dist/types/components/locales/en-US.d.ts +20 -0
- package/dist/types/components/locales/index.d.ts +44 -0
- package/dist/types/components/radio/radio.vue.d.ts +2 -2
- package/dist/types/components/row/index.d.ts +6 -0
- package/dist/types/components/row/row.vue.d.ts +23 -0
- package/dist/types/components/row/type.d.ts +7 -0
- package/dist/types/components/select/index.d.ts +7 -0
- package/dist/types/components/select/select.vue.d.ts +48 -0
- package/dist/types/components/select/type.d.ts +20 -0
- package/dist/types/components/swiper-normal/swiper-normal.vue.d.ts +2 -2
- package/dist/types/components/swiper-showcase/type.d.ts +28 -0
- package/dist/types/components/swiper-vehicle/swiper-vehicle.vue.d.ts +2 -2
- package/dist/types/components/tab-indicator/tab-indicator.vue.d.ts +2 -2
- package/package.json +2 -1
- package/dist/index-BIPlvoY9.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const de=require("./_utils-CtkVBTg-.cjs"),r=require("vue"),b=require("./_vars-CyrPevgT.cjs"),fe=require("./en-US-UkqgG0fb.cjs"),he=require("./_icons-DtBTpiO2.cjs");function le(z){return z&&z.__esModule&&Object.prototype.hasOwnProperty.call(z,"default")?z.default:z}var ee={exports:{}},me=ee.exports,ue;function pe(){return ue||(ue=1,(function(z,ne){(function(B,g){z.exports=g()})(me,(function(){var B=1e3,g=6e4,W=36e5,H="millisecond",$="second",y="minute",S="hour",F="day",k="week",w="month",Z="quarter",I="year",X="date",f="Invalid Date",a=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(i){var t=["th","st","nd","rd"],e=i%100;return"["+i+(t[(e-20)%10]||t[e]||t[0])+"]"}},v=function(i,t,e){var s=String(i);return!s||s.length>=t?i:""+Array(t+1-s.length).join(e)+i},P={s:v,z:function(i){var t=-i.utcOffset(),e=Math.abs(t),s=Math.floor(e/60),n=e%60;return(t<=0?"+":"-")+v(s,2,"0")+":"+v(n,2,"0")},m:function i(t,e){if(t.date()<e.date())return-i(e,t);var s=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(s,w),u=e-n<0,c=t.clone().add(s+(u?-1:1),w);return+(-(s+(e-n)/(u?n-c:c-n))||0)},a:function(i){return i<0?Math.ceil(i)||0:Math.floor(i)},p:function(i){return{M:w,y:I,w:k,d:F,D:X,h:S,m:y,s:$,ms:H,Q:Z}[i]||String(i||"").toLowerCase().replace(/s$/,"")},u:function(i){return i===void 0}},E="en",x={};x[E]=p;var R="$isDayjsObject",m=function(i){return i instanceof L||!(!i||!i[R])},D=function i(t,e,s){var n;if(!t)return E;if(typeof t=="string"){var u=t.toLowerCase();x[u]&&(n=u),e&&(x[u]=e,n=u);var c=t.split("-");if(!n&&c.length>1)return i(c[0])}else{var d=t.name;x[d]=t,n=d}return!s&&n&&(E=n),n||!s&&E},h=function(i,t){if(m(i))return i.clone();var e=typeof t=="object"?t:{};return e.date=i,e.args=arguments,new L(e)},l=P;l.l=D,l.i=m,l.w=function(i,t){return h(i,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var L=(function(){function i(e){this.$L=D(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[R]=!0}var t=i.prototype;return t.parse=function(e){this.$d=(function(s){var n=s.date,u=s.utc;if(n===null)return new Date(NaN);if(l.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var c=n.match(a);if(c){var d=c[2]-1||0,M=(c[7]||"0").substring(0,3);return u?new Date(Date.UTC(c[1],d,c[3]||1,c[4]||0,c[5]||0,c[6]||0,M)):new Date(c[1],d,c[3]||1,c[4]||0,c[5]||0,c[6]||0,M)}}return new Date(n)})(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return l},t.isValid=function(){return this.$d.toString()!==f},t.isSame=function(e,s){var n=h(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return h(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<h(e)},t.$g=function(e,s,n){return l.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,u=!!l.u(s)||s,c=l.p(e),d=function(A,O){var V=l.w(n.$u?Date.UTC(n.$y,O,A):new Date(n.$y,O,A),n);return u?V:V.endOf(F)},M=function(A,O){return l.w(n.toDate()[A].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(O)),n)},_=this.$W,Y=this.$M,T=this.$D,q="set"+(this.$u?"UTC":"");switch(c){case I:return u?d(1,0):d(31,11);case w:return u?d(1,Y):d(0,Y+1);case k:var N=this.$locale().weekStart||0,Q=(_<N?_+7:_)-N;return d(u?T-Q:T+(6-Q),Y);case F:case X:return M(q+"Hours",0);case S:return M(q+"Minutes",1);case y:return M(q+"Seconds",2);case $:return M(q+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,u=l.p(e),c="set"+(this.$u?"UTC":""),d=(n={},n[F]=c+"Date",n[X]=c+"Date",n[w]=c+"Month",n[I]=c+"FullYear",n[S]=c+"Hours",n[y]=c+"Minutes",n[$]=c+"Seconds",n[H]=c+"Milliseconds",n)[u],M=u===F?this.$D+(s-this.$W):s;if(u===w||u===I){var _=this.clone().set(X,1);_.$d[d](M),_.init(),this.$d=_.set(X,Math.min(this.$D,_.daysInMonth())).$d}else d&&this.$d[d](M);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[l.p(e)]()},t.add=function(e,s){var n,u=this;e=Number(e);var c=l.p(s),d=function(Y){var T=h(u);return l.w(T.date(T.date()+Math.round(Y*e)),u)};if(c===w)return this.set(w,this.$M+e);if(c===I)return this.set(I,this.$y+e);if(c===F)return d(1);if(c===k)return d(7);var M=(n={},n[y]=g,n[S]=W,n[$]=B,n)[c]||1,_=this.$d.getTime()+e*M;return l.w(_,this)},t.subtract=function(e,s){return this.add(-1*e,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var u=e||"YYYY-MM-DDTHH:mm:ssZ",c=l.z(this),d=this.$H,M=this.$m,_=this.$M,Y=n.weekdays,T=n.months,q=n.meridiem,N=function(O,V,U,J){return O&&(O[V]||O(s,u))||U[V].slice(0,J)},Q=function(O){return l.s(d%12||12,O,"0")},A=q||function(O,V,U){var J=O<12?"AM":"PM";return U?J.toLowerCase():J};return u.replace(o,(function(O,V){return V||(function(U){switch(U){case"YY":return String(s.$y).slice(-2);case"YYYY":return l.s(s.$y,4,"0");case"M":return _+1;case"MM":return l.s(_+1,2,"0");case"MMM":return N(n.monthsShort,_,T,3);case"MMMM":return N(T,_);case"D":return s.$D;case"DD":return l.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return N(n.weekdaysMin,s.$W,Y,2);case"ddd":return N(n.weekdaysShort,s.$W,Y,3);case"dddd":return Y[s.$W];case"H":return String(d);case"HH":return l.s(d,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return A(d,M,!0);case"A":return A(d,M,!1);case"m":return String(M);case"mm":return l.s(M,2,"0");case"s":return String(s.$s);case"ss":return l.s(s.$s,2,"0");case"SSS":return l.s(s.$ms,3,"0");case"Z":return c}return null})(O)||c.replace(":","")}))},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,s,n){var u,c=this,d=l.p(s),M=h(e),_=(M.utcOffset()-this.utcOffset())*g,Y=this-M,T=function(){return l.m(c,M)};switch(d){case I:u=T()/12;break;case w:u=T();break;case Z:u=T()/3;break;case k:u=(Y-_)/6048e5;break;case F:u=(Y-_)/864e5;break;case S:u=Y/W;break;case y:u=Y/g;break;case $:u=Y/B;break;default:u=Y}return n?u:l.a(u)},t.daysInMonth=function(){return this.endOf(w).$D},t.$locale=function(){return x[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),u=D(e,s,!0);return u&&(n.$L=u),n},t.clone=function(){return l.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},i})(),C=L.prototype;return h.prototype=C,[["$ms",H],["$s",$],["$m",y],["$H",S],["$W",F],["$M",w],["$y",I],["$D",X]].forEach((function(i){C[i[1]]=function(t){return this.$g(t,i[0],i[1])}})),h.extend=function(i,t){return i.$i||(i(t,L,h),i.$i=!0),h},h.locale=D,h.isDayjs=m,h.unix=function(i){return h(1e3*i)},h.en=x[E],h.Ls=x,h.p={},h}))})(ee)),ee.exports}var $e=pe();const j=le($e);var te={exports:{}},ve=te.exports,ce;function De(){return ce||(ce=1,(function(z,ne){(function(B,g){z.exports=g()})(ve,(function(){var B={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},g=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,W=/\d/,H=/\d\d/,$=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,S={},F=function(a){return(a=+a)+(a>68?1900:2e3)},k=function(a){return function(o){this[a]=+o}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(a){(this.zone||(this.zone={})).offset=(function(o){if(!o||o==="Z")return 0;var p=o.match(/([+-]|\d\d)/g),v=60*p[1]+(+p[2]||0);return v===0?0:p[0]==="+"?-v:v})(a)}],Z=function(a){var o=S[a];return o&&(o.indexOf?o:o.s.concat(o.f))},I=function(a,o){var p,v=S.meridiem;if(v){for(var P=1;P<=24;P+=1)if(a.indexOf(v(P,0,o))>-1){p=P>12;break}}else p=a===(o?"pm":"PM");return p},X={A:[y,function(a){this.afternoon=I(a,!1)}],a:[y,function(a){this.afternoon=I(a,!0)}],Q:[W,function(a){this.month=3*(a-1)+1}],S:[W,function(a){this.milliseconds=100*+a}],SS:[H,function(a){this.milliseconds=10*+a}],SSS:[/\d{3}/,function(a){this.milliseconds=+a}],s:[$,k("seconds")],ss:[$,k("seconds")],m:[$,k("minutes")],mm:[$,k("minutes")],H:[$,k("hours")],h:[$,k("hours")],HH:[$,k("hours")],hh:[$,k("hours")],D:[$,k("day")],DD:[H,k("day")],Do:[y,function(a){var o=S.ordinal,p=a.match(/\d+/);if(this.day=p[0],o)for(var v=1;v<=31;v+=1)o(v).replace(/\[|\]/g,"")===a&&(this.day=v)}],w:[$,k("week")],ww:[H,k("week")],M:[$,k("month")],MM:[H,k("month")],MMM:[y,function(a){var o=Z("months"),p=(Z("monthsShort")||o.map((function(v){return v.slice(0,3)}))).indexOf(a)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[y,function(a){var o=Z("months").indexOf(a)+1;if(o<1)throw new Error;this.month=o%12||o}],Y:[/[+-]?\d+/,k("year")],YY:[H,function(a){this.year=F(a)}],YYYY:[/\d{4}/,k("year")],Z:w,ZZ:w};function f(a){var o,p;o=a,p=S&&S.formats;for(var v=(a=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(h,l,L){var C=L&&L.toUpperCase();return l||p[L]||B[L]||p[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(i,t,e){return t||e.slice(1)}))}))).match(g),P=v.length,E=0;E<P;E+=1){var x=v[E],R=X[x],m=R&&R[0],D=R&&R[1];v[E]=D?{regex:m,parser:D}:x.replace(/^\[|\]$/g,"")}return function(h){for(var l={},L=0,C=0;L<P;L+=1){var i=v[L];if(typeof i=="string")C+=i.length;else{var t=i.regex,e=i.parser,s=h.slice(C),n=t.exec(s)[0];e.call(l,n),h=h.replace(n,"")}}return(function(u){var c=u.afternoon;if(c!==void 0){var d=u.hours;c?d<12&&(u.hours+=12):d===12&&(u.hours=0),delete u.afternoon}})(l),l}}return function(a,o,p){p.p.customParseFormat=!0,a&&a.parseTwoDigitYear&&(F=a.parseTwoDigitYear);var v=o.prototype,P=v.parse;v.parse=function(E){var x=E.date,R=E.utc,m=E.args;this.$u=R;var D=m[1];if(typeof D=="string"){var h=m[2]===!0,l=m[3]===!0,L=h||l,C=m[2];l&&(C=m[2]),S=this.$locale(),!h&&C&&(S=p.Ls[C]),this.$d=(function(s,n,u,c){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*s);var d=f(n)(s),M=d.year,_=d.month,Y=d.day,T=d.hours,q=d.minutes,N=d.seconds,Q=d.milliseconds,A=d.zone,O=d.week,V=new Date,U=Y||(M||_?1:V.getDate()),J=M||V.getFullYear(),G=0;M&&!_||(G=_>0?_-1:V.getMonth());var K,re=T||0,ae=q||0,se=N||0,ie=Q||0;return A?new Date(Date.UTC(J,G,U,re,ae,se,ie+60*A.offset*1e3)):u?new Date(Date.UTC(J,G,U,re,ae,se,ie)):(K=new Date(J,G,U,re,ae,se,ie),O&&(K=c(K).week(O).toDate()),K)}catch{return new Date("")}})(x,D,R,p),this.init(),C&&C!==!0&&(this.$L=this.locale(C).$L),L&&x!=this.format(D)&&(this.$d=new Date("")),S={}}else if(D instanceof Array)for(var i=D.length,t=1;t<=i;t+=1){m[1]=D[t-1];var e=p.apply(this,m);if(e.isValid()){this.$d=e.$d,this.$L=e.$L,this.init();break}t===i&&(this.$d=new Date(""))}else P.call(this,E)}}}))})(te)),te.exports}var ye=De();const Me=le(ye),ke=["innerHTML"],_e=["innerHTML"],ge=["onClick"],oe="YYYY-MM-DD",Se=r.defineComponent({name:"ScDatePicker",__name:"date-picker",props:{modelValue:{default:null},format:{default:oe},disabled:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},minDate:{default:void 0},maxDate:{default:void 0}},emits:["update:modelValue","change"],setup(z,{emit:ne}){j.extend(Me);const B=he.ChevronDownIcon,g=z,W=ne,H=r.inject("scLocale",fe.enUS),$=r.ref(new Date().getFullYear()),y=r.ref(new Date().getMonth()),S=f=>{if(f==null)return null;if(f instanceof Date){const a=j(f);return a.isValid()?a:null}if(typeof f=="string"){const a=j(f,g.format||oe,!0);if(a.isValid())return a;const o=j(f);return o.isValid()?o:null}return null},F=r.computed(()=>S(g.modelValue)),k=r.computed(()=>{const f=[],a=j().year($.value).month(y.value).date(1),o=a.endOf("month"),p=a.subtract(1,"day"),v=j(),P=a.day(),E=P===0?6:P-1;for(let m=E-1;m>=0;m--){const D=p.date()-m,h=j().year($.value).month(y.value-1).date(D);f.push({date:D,fullDate:h,key:`prev-${D}`,isOtherMonth:!0,isToday:!1,isSelected:!1,isDisabled:w(h)})}const x=o.date();for(let m=1;m<=x;m++){const D=j().year($.value).month(y.value).date(m),h=D.isSame(v,"day"),l=F.value?D.isSame(F.value,"day"):!1;f.push({date:m,fullDate:D,key:`current-${m}`,isOtherMonth:!1,isToday:h,isSelected:l,isDisabled:w(D)})}const R=42-f.length;for(let m=1;m<=R;m++){const D=j().year($.value).month(y.value+1).date(m);f.push({date:m,fullDate:D,key:`next-${m}`,isOtherMonth:!0,isToday:!1,isSelected:!1,isDisabled:w(D)})}return f});function w(f){if(g.minDate){const a=S(g.minDate);if(a&&f.isBefore(a,"day"))return!0}if(g.maxDate){const a=S(g.maxDate);if(a&&f.isAfter(a,"day"))return!0}return!1}function Z(f){f.preventDefault(),y.value===0?(y.value=11,$.value--):y.value--}function I(f){f.preventDefault(),y.value===11?(y.value=0,$.value++):y.value++}function X(f,a){if(f.preventDefault(),a.isDisabled||g.disabled)return;const o=typeof g.modelValue=="string"?a.fullDate.format(g.format||oe):a.fullDate.toDate();W("update:modelValue",o),W("change",o)}return r.watch(F,f=>{f&&($.value=f.year(),y.value=f.month())},{immediate:!0}),(f,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([`${r.unref(b.PREFIX)}-date-picker`,{[`${r.unref(b.PREFIX)}-date-picker--disabled`]:f.disabled,[`${r.unref(b.PREFIX)}-date-picker--dark`]:f.dark}])},[r.createElementVNode("div",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__panel`)},[r.createElementVNode("div",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__header`)},[r.createElementVNode("button",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__nav`),onClick:Z},[r.createElementVNode("span",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__nav-prev`),innerHTML:r.unref(B),"aria-hidden":"true"},null,10,ke)],2),r.createElementVNode("div",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__header-label`)},r.toDisplayString(r.unref(H).datePicker.months[y.value])+" "+r.toDisplayString($.value),3),r.createElementVNode("button",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__nav`),onClick:I},[r.createElementVNode("span",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__nav-next`),innerHTML:r.unref(B),"aria-hidden":"true"},null,10,_e)],2)],2),r.createElementVNode("div",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__weekdays`)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(H).datePicker.weekdays,o=>(r.openBlock(),r.createElementBlock("div",{key:o,class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__weekday`)},r.toDisplayString(o),3))),128))],2),r.createElementVNode("div",{class:r.normalizeClass(`${r.unref(b.PREFIX)}-date-picker__days`)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(k.value,o=>(r.openBlock(),r.createElementBlock("div",{key:o.key,class:r.normalizeClass([`${r.unref(b.PREFIX)}-date-picker__day`,{[`${r.unref(b.PREFIX)}-date-picker__day--today`]:o.isToday,[`${r.unref(b.PREFIX)}-date-picker__day--selected`]:o.isSelected,[`${r.unref(b.PREFIX)}-date-picker__day--other-month`]:o.isOtherMonth,[`${r.unref(b.PREFIX)}-date-picker__day--disabled`]:o.isDisabled}]),onClick:p=>X(p,o)},r.toDisplayString(o.date),11,ge))),128))],2)],2)],2))}}),we=de.withInstall(Se);exports.ScDatePicker=we;exports.dayjs=j;
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { defineComponent as P, ref as y, reactive as te, watch as Z, onMounted as j, onBeforeUnmount as q, createElementBlock as s, openBlock as o, normalizeStyle as E, normalizeClass as l, unref as t, createElementVNode as w, createCommentVNode as I, Fragment as R, renderList as N, createBlock as S, createVNode as G, mergeProps as W, normalizeProps as Y, computed as C, createStaticVNode as oe } from "vue";
|
|
2
|
-
import { S as
|
|
3
|
-
import { P as
|
|
2
|
+
import { S as re } from "./swiper-bundle-DOQ1LV4x.js";
|
|
3
|
+
import { P as n } from "./_vars-BV4QQF-p.js";
|
|
4
4
|
import "./es/accordion-info-panel.mjs";
|
|
5
5
|
import "./es/animated-number.mjs";
|
|
6
|
+
import "./es/checkbox.mjs";
|
|
7
|
+
import "./es/col.mjs";
|
|
8
|
+
import "./es/config-provider.mjs";
|
|
9
|
+
import "./index-Bc4wAl0z.js";
|
|
10
|
+
import "./es/date-select.mjs";
|
|
6
11
|
import "./es/drawer.mjs";
|
|
7
12
|
import "./es/dropdown.mjs";
|
|
8
13
|
import "./es/gradual-highlight.mjs";
|
|
9
|
-
import { getRootOffset as
|
|
14
|
+
import { getRootOffset as ie } from "@vavt/util";
|
|
10
15
|
import "./es/input.mjs";
|
|
11
16
|
import { ScLayzImage as A } from "./es/layz-image.mjs";
|
|
12
17
|
import "./es/parameter-box.mjs";
|
|
13
18
|
import "./es/radio.mjs";
|
|
19
|
+
import "./es/row.mjs";
|
|
20
|
+
import "./es/select.mjs";
|
|
14
21
|
import "./es/swiper-showcase.mjs";
|
|
15
22
|
import "./es/swiper-vehicle.mjs";
|
|
16
|
-
import { ScTabIndicator as
|
|
23
|
+
import { ScTabIndicator as ne } from "./es/tab-indicator.mjs";
|
|
17
24
|
import { ScVideo as J } from "./es/video.mjs";
|
|
18
25
|
const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHTML"], de = /* @__PURE__ */ P({
|
|
19
26
|
__name: "pc-viewer",
|
|
@@ -25,43 +32,43 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
25
32
|
extraBottomSpacing: { default: 0 }
|
|
26
33
|
},
|
|
27
34
|
setup(c) {
|
|
28
|
-
const v = c, a = y(), _ = y(),
|
|
35
|
+
const v = c, a = y(), _ = y(), r = y(), m = y(), g = y(), d = y(), L = te({
|
|
29
36
|
container: "",
|
|
30
37
|
root: "",
|
|
31
38
|
item: ""
|
|
32
|
-
}),
|
|
33
|
-
const T = Math.min(Math.max(
|
|
39
|
+
}), f = (i) => typeof i != "number" || Number.isNaN(i) ? 0 : i, b = (i, p, u) => {
|
|
40
|
+
const T = Math.min(Math.max(i, 0), u), M = Math.min(Math.max(p, 0), Math.max(u - T, 0));
|
|
34
41
|
return { safeTop: T, safeBottom: M };
|
|
35
42
|
}, k = () => {
|
|
36
43
|
var X;
|
|
37
|
-
if (!
|
|
44
|
+
if (!r.value)
|
|
38
45
|
return;
|
|
39
|
-
const
|
|
40
|
-
L.container = `padding-top: ${K}px; padding-bottom: ${Q}px; min-height: ${
|
|
41
|
-
const ee =
|
|
42
|
-
L.root = `height: ${Math.max(ee,
|
|
46
|
+
const i = r.value.offsetHeight, p = window.innerHeight, u = ((X = d.value) == null ? void 0 : X.offsetHeight) || 0, T = h(d.value), M = f(v.extraTopSpacing), x = f(v.extraBottomSpacing), { safeTop: H, safeBottom: z } = b(M, x, p), O = Math.max(p - H - z, 0), V = Math.max((O - u - i - T) / 2, 0), K = H + V, Q = z + V;
|
|
47
|
+
L.container = `padding-top: ${K}px; padding-bottom: ${Q}px; min-height: ${p}px;`;
|
|
48
|
+
const ee = r.value.scrollWidth;
|
|
49
|
+
L.root = `height: ${Math.max(ee, p)}px`;
|
|
43
50
|
}, e = () => {
|
|
44
|
-
const
|
|
45
|
-
if (!a.value || !
|
|
46
|
-
const T = a.value.clientHeight - window.innerHeight, { offsetTop: M } =
|
|
51
|
+
const i = document.documentElement.getAttribute("dir") || "ltr", p = i === "rtl" ? "right" : "left";
|
|
52
|
+
if (!a.value || !r.value || !m.value || !g.value) return;
|
|
53
|
+
const T = a.value.clientHeight - window.innerHeight, { offsetTop: M } = ie(a.value), x = document.documentElement.scrollTop - M;
|
|
47
54
|
if (x < 0) {
|
|
48
|
-
|
|
55
|
+
r.value.scrollTo({ left: 0 }), g.value.style[p] = "0px";
|
|
49
56
|
return;
|
|
50
57
|
}
|
|
51
58
|
if (x > T) {
|
|
52
|
-
const V =
|
|
53
|
-
|
|
59
|
+
const V = r.value.scrollWidth - window.innerWidth;
|
|
60
|
+
r.value.scrollTo({ left: i === "rtl" ? -V : V }), g.value.style[p] = m.value.clientWidth - g.value.clientWidth + "px";
|
|
54
61
|
return;
|
|
55
62
|
}
|
|
56
|
-
const H = x / T, z = H * (
|
|
57
|
-
|
|
63
|
+
const H = x / T, z = H * (r.value.scrollWidth - window.innerWidth), O = H * (m.value.clientWidth * 2 / 3);
|
|
64
|
+
r.value.scrollTo({ left: i === "rtl" ? -z : z }), g.value.style[p] = `${O}px`;
|
|
58
65
|
}, $ = () => {
|
|
59
66
|
L.container = "", k();
|
|
60
|
-
}, h = (
|
|
61
|
-
if (!(
|
|
67
|
+
}, h = (i) => {
|
|
68
|
+
if (!(i instanceof HTMLElement))
|
|
62
69
|
return 0;
|
|
63
|
-
const
|
|
64
|
-
return
|
|
70
|
+
const p = window.getComputedStyle(i), u = parseFloat(p.marginTop) || 0, T = parseFloat(p.marginBottom) || 0;
|
|
71
|
+
return u + T;
|
|
65
72
|
};
|
|
66
73
|
let B;
|
|
67
74
|
return Z(
|
|
@@ -71,9 +78,9 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
71
78
|
}
|
|
72
79
|
), j(() => {
|
|
73
80
|
B = new IntersectionObserver(
|
|
74
|
-
(
|
|
75
|
-
|
|
76
|
-
|
|
81
|
+
(i) => {
|
|
82
|
+
i.forEach((p) => {
|
|
83
|
+
p.isIntersecting && (L.container = "", k());
|
|
77
84
|
});
|
|
78
85
|
},
|
|
79
86
|
{
|
|
@@ -86,12 +93,12 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
86
93
|
), window.addEventListener("scroll", e), window.addEventListener("resize", $), a.value && B.observe(a.value);
|
|
87
94
|
}), q(() => {
|
|
88
95
|
window.removeEventListener("scroll", e), window.removeEventListener("resize", $), B && B.disconnect();
|
|
89
|
-
}), (
|
|
96
|
+
}), (i, p) => (o(), s(
|
|
90
97
|
"div",
|
|
91
98
|
{
|
|
92
99
|
ref_key: "rootRef",
|
|
93
100
|
ref: a,
|
|
94
|
-
class: l(`${t(
|
|
101
|
+
class: l(`${t(n)}-horizontal-viewer`),
|
|
95
102
|
style: E(L.root)
|
|
96
103
|
},
|
|
97
104
|
[
|
|
@@ -100,26 +107,26 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
100
107
|
{
|
|
101
108
|
ref_key: "containerRef",
|
|
102
109
|
ref: _,
|
|
103
|
-
class: l([`${t(
|
|
110
|
+
class: l([`${t(n)}-horizontal-viewer__container`, (i.title || i.desc) && "has-header"]),
|
|
104
111
|
style: E(L.container)
|
|
105
112
|
},
|
|
106
113
|
[
|
|
107
|
-
|
|
114
|
+
i.title || i.desc ? (o(), s(
|
|
108
115
|
"div",
|
|
109
116
|
{
|
|
110
117
|
key: 0,
|
|
111
|
-
class: l(`${t(
|
|
118
|
+
class: l(`${t(n)}-horizontal-viewer__header`),
|
|
112
119
|
ref_key: "headerRef",
|
|
113
120
|
ref: d
|
|
114
121
|
},
|
|
115
122
|
[
|
|
116
|
-
|
|
123
|
+
i.title ? (o(), s("p", {
|
|
117
124
|
key: 0,
|
|
118
|
-
innerHTML:
|
|
125
|
+
innerHTML: i.title
|
|
119
126
|
}, null, 8, ae)) : I("v-if", !0),
|
|
120
|
-
|
|
127
|
+
i.desc ? (o(), s("p", {
|
|
121
128
|
key: 1,
|
|
122
|
-
innerHTML:
|
|
129
|
+
innerHTML: i.desc
|
|
123
130
|
}, null, 8, le)) : I("v-if", !0)
|
|
124
131
|
],
|
|
125
132
|
2
|
|
@@ -129,47 +136,47 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
129
136
|
"div",
|
|
130
137
|
{
|
|
131
138
|
ref_key: "scrollerRef",
|
|
132
|
-
ref:
|
|
133
|
-
class: l(`${t(
|
|
139
|
+
ref: r,
|
|
140
|
+
class: l(`${t(n)}-horizontal-viewer__scroller`)
|
|
134
141
|
},
|
|
135
142
|
[
|
|
136
143
|
w(
|
|
137
144
|
"div",
|
|
138
145
|
{
|
|
139
|
-
class: l(`${t(
|
|
146
|
+
class: l(`${t(n)}-horizontal-viewer__content`)
|
|
140
147
|
},
|
|
141
148
|
[
|
|
142
149
|
(o(!0), s(
|
|
143
150
|
R,
|
|
144
151
|
null,
|
|
145
|
-
N(
|
|
152
|
+
N(i.dataList, (u) => (o(), s(
|
|
146
153
|
"div",
|
|
147
154
|
{
|
|
148
|
-
key:
|
|
149
|
-
class: l(`${t(
|
|
155
|
+
key: u.title,
|
|
156
|
+
class: l(`${t(n)}-horizontal-viewer__content-item`)
|
|
150
157
|
},
|
|
151
158
|
[
|
|
152
|
-
|
|
159
|
+
u.type === "img" ? (o(), S(t(A), {
|
|
153
160
|
key: 0,
|
|
154
|
-
src:
|
|
155
|
-
alt:
|
|
161
|
+
src: u.url,
|
|
162
|
+
alt: u.alt
|
|
156
163
|
}, null, 8, ["src", "alt"])) : (o(), S(t(J), {
|
|
157
164
|
key: 1,
|
|
158
|
-
url:
|
|
159
|
-
poster:
|
|
165
|
+
url: u.url,
|
|
166
|
+
poster: u.poster,
|
|
160
167
|
"auto-play": !1
|
|
161
168
|
}, null, 8, ["url", "poster"])),
|
|
162
169
|
w(
|
|
163
170
|
"div",
|
|
164
171
|
{
|
|
165
|
-
class: l(`${t(
|
|
172
|
+
class: l(`${t(n)}-horizontal-viewer__content-item-footer`)
|
|
166
173
|
},
|
|
167
174
|
[
|
|
168
175
|
w("p", {
|
|
169
|
-
innerHTML:
|
|
176
|
+
innerHTML: u.title
|
|
170
177
|
}, null, 8, se),
|
|
171
178
|
w("p", {
|
|
172
|
-
innerHTML:
|
|
179
|
+
innerHTML: u.desc
|
|
173
180
|
}, null, 8, ce)
|
|
174
181
|
],
|
|
175
182
|
2
|
|
@@ -194,14 +201,14 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
194
201
|
"div",
|
|
195
202
|
{
|
|
196
203
|
ref_key: "paginationRef",
|
|
197
|
-
ref:
|
|
198
|
-
class: l(`${t(
|
|
204
|
+
ref: m,
|
|
205
|
+
class: l(`${t(n)}-horizontal-viewer__pagination`)
|
|
199
206
|
},
|
|
200
207
|
[
|
|
201
208
|
w(
|
|
202
209
|
"div",
|
|
203
210
|
{
|
|
204
|
-
class: l(`${t(
|
|
211
|
+
class: l(`${t(n)}-horizontal-viewer__scrollbar`)
|
|
205
212
|
},
|
|
206
213
|
[
|
|
207
214
|
w(
|
|
@@ -209,7 +216,7 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
209
216
|
{
|
|
210
217
|
ref_key: "scrollbarDragRef",
|
|
211
218
|
ref: g,
|
|
212
|
-
class: l(`${t(
|
|
219
|
+
class: l(`${t(n)}-horizontal-viewer__scrollbar-drag`)
|
|
213
220
|
},
|
|
214
221
|
null,
|
|
215
222
|
2
|
|
@@ -232,7 +239,7 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
232
239
|
/* CLASS, STYLE */
|
|
233
240
|
));
|
|
234
241
|
}
|
|
235
|
-
}),
|
|
242
|
+
}), pe = /* @__PURE__ */ P({
|
|
236
243
|
__name: "mb-viewer",
|
|
237
244
|
props: {
|
|
238
245
|
title: {},
|
|
@@ -255,12 +262,12 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
255
262
|
},
|
|
256
263
|
setup(c) {
|
|
257
264
|
const v = c, a = y();
|
|
258
|
-
return (_,
|
|
265
|
+
return (_, r) => (o(), s(
|
|
259
266
|
"div",
|
|
260
267
|
{
|
|
261
268
|
ref_key: "rootRef",
|
|
262
269
|
ref: a,
|
|
263
|
-
class: l(`${t(
|
|
270
|
+
class: l(`${t(n)}-horizontal-viewer-mb`)
|
|
264
271
|
},
|
|
265
272
|
[
|
|
266
273
|
G(
|
|
@@ -299,7 +306,7 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
299
306
|
setup(c) {
|
|
300
307
|
const v = c;
|
|
301
308
|
return (a, _) => a.isMobile ? (o(), S(
|
|
302
|
-
|
|
309
|
+
pe,
|
|
303
310
|
Y(W({ key: 0 }, v)),
|
|
304
311
|
null,
|
|
305
312
|
16
|
|
@@ -314,7 +321,7 @@ const ae = ["innerHTML"], le = ["innerHTML"], se = ["innerHTML"], ce = ["innerHT
|
|
|
314
321
|
}
|
|
315
322
|
});
|
|
316
323
|
F.install = (c) => (c.component("ScHorizontalViewer", F), c);
|
|
317
|
-
const
|
|
324
|
+
const De = F, ue = ["onClick"], me = ["innerHTML"], fe = ["innerHTML"], D = /* @__PURE__ */ P({
|
|
318
325
|
__name: "image-indicator",
|
|
319
326
|
props: {
|
|
320
327
|
dataList: {},
|
|
@@ -322,8 +329,8 @@ const Pe = F, pe = ["onClick"], fe = ["innerHTML"], me = ["innerHTML"], D = /* @
|
|
|
322
329
|
},
|
|
323
330
|
emits: ["change"],
|
|
324
331
|
setup(c, { emit: v }) {
|
|
325
|
-
const a = v, _ = y(0),
|
|
326
|
-
const d =
|
|
332
|
+
const a = v, _ = y(0), r = y([]), m = C(() => {
|
|
333
|
+
const d = r.value[_.value];
|
|
327
334
|
return {
|
|
328
335
|
height: `${d == null ? void 0 : d.offsetHeight}px`
|
|
329
336
|
};
|
|
@@ -333,31 +340,31 @@ const Pe = F, pe = ["onClick"], fe = ["innerHTML"], me = ["innerHTML"], D = /* @
|
|
|
333
340
|
return (d, L) => (o(), s(
|
|
334
341
|
"div",
|
|
335
342
|
{
|
|
336
|
-
class: l(`${t(
|
|
343
|
+
class: l(`${t(n)}-image-indicator`)
|
|
337
344
|
},
|
|
338
345
|
[
|
|
339
346
|
w(
|
|
340
347
|
"div",
|
|
341
348
|
{
|
|
342
|
-
class: l(`${t(
|
|
349
|
+
class: l(`${t(n)}-image-indicator__list`)
|
|
343
350
|
},
|
|
344
351
|
[
|
|
345
352
|
(o(!0), s(
|
|
346
353
|
R,
|
|
347
354
|
null,
|
|
348
|
-
N(d.dataList, (
|
|
349
|
-
key:
|
|
355
|
+
N(d.dataList, (f, b) => (o(), s("div", {
|
|
356
|
+
key: f.url,
|
|
350
357
|
class: l([
|
|
351
|
-
`${t(
|
|
352
|
-
_.value === b ? `${t(
|
|
358
|
+
`${t(n)}-image-indicator__list-item`,
|
|
359
|
+
_.value === b ? `${t(n)}-image-indicator__active` : ""
|
|
353
360
|
]),
|
|
354
361
|
onClick: (k) => g(b)
|
|
355
362
|
}, [
|
|
356
363
|
G(t(A), {
|
|
357
|
-
src:
|
|
358
|
-
alt:
|
|
364
|
+
src: f.url,
|
|
365
|
+
alt: f.alt
|
|
359
366
|
}, null, 8, ["src", "alt"])
|
|
360
|
-
], 10,
|
|
367
|
+
], 10, ue))),
|
|
361
368
|
128
|
|
362
369
|
/* KEYED_FRAGMENT */
|
|
363
370
|
))
|
|
@@ -369,33 +376,33 @@ const Pe = F, pe = ["onClick"], fe = ["innerHTML"], me = ["innerHTML"], D = /* @
|
|
|
369
376
|
"div",
|
|
370
377
|
{
|
|
371
378
|
key: 0,
|
|
372
|
-
class: l(`${t(
|
|
373
|
-
style: E(
|
|
379
|
+
class: l(`${t(n)}-image-indicator__intro`),
|
|
380
|
+
style: E(m.value)
|
|
374
381
|
},
|
|
375
382
|
[
|
|
376
383
|
(o(!0), s(
|
|
377
384
|
R,
|
|
378
385
|
null,
|
|
379
|
-
N(d.dataList, (
|
|
386
|
+
N(d.dataList, (f, b) => (o(), s(
|
|
380
387
|
"div",
|
|
381
388
|
{
|
|
382
|
-
key:
|
|
389
|
+
key: f.url,
|
|
383
390
|
ref_for: !0,
|
|
384
391
|
ref_key: "introItemRef",
|
|
385
|
-
ref:
|
|
386
|
-
class: l([`${t(
|
|
392
|
+
ref: r,
|
|
393
|
+
class: l([`${t(n)}-image-indicator__intro-item`, _.value === b && `${t(n)}-image-indicator__active`])
|
|
387
394
|
},
|
|
388
395
|
[
|
|
389
|
-
|
|
396
|
+
f.title ? (o(), s("p", {
|
|
390
397
|
key: 0,
|
|
391
|
-
class: l(`${t(
|
|
392
|
-
innerHTML:
|
|
393
|
-
}, null, 10,
|
|
394
|
-
|
|
398
|
+
class: l(`${t(n)}-image-indicator__intro-title`),
|
|
399
|
+
innerHTML: f.title
|
|
400
|
+
}, null, 10, me)) : I("v-if", !0),
|
|
401
|
+
f.desc ? (o(), s("p", {
|
|
395
402
|
key: 1,
|
|
396
|
-
class: l(`${t(
|
|
397
|
-
innerHTML:
|
|
398
|
-
}, null, 10,
|
|
403
|
+
class: l(`${t(n)}-image-indicator__intro-desc`),
|
|
404
|
+
innerHTML: f.desc
|
|
405
|
+
}, null, 10, fe)) : I("v-if", !0)
|
|
399
406
|
],
|
|
400
407
|
2
|
|
401
408
|
/* CLASS */
|
|
@@ -433,10 +440,10 @@ const ve = D, he = { class: "swiper-wrapper" }, U = /* @__PURE__ */ P({
|
|
|
433
440
|
emits: ["change", "update:modelValue"],
|
|
434
441
|
setup(c, { emit: v }) {
|
|
435
442
|
const a = c, _ = v;
|
|
436
|
-
let
|
|
437
|
-
const
|
|
438
|
-
const e = [`${
|
|
439
|
-
return a.widthType === "middle" ? e.push(`${
|
|
443
|
+
let r = null;
|
|
444
|
+
const m = y(a.modelValue), g = y(), d = C(() => {
|
|
445
|
+
const e = [`${n}-swiper-main`];
|
|
446
|
+
return a.widthType === "middle" ? e.push(`${n}-swiper-main__middle`) : e.push(`${n}-swiper-main__full`), e;
|
|
440
447
|
}), L = C(() => {
|
|
441
448
|
const e = {};
|
|
442
449
|
return a.tabIndicatorBottom && (e.position = "absolute", e.zIndex = 1, e.bottom = typeof a.tabIndicatorBottom == "number" ? `${a.tabIndicatorBottom}px` : a.tabIndicatorBottom), e;
|
|
@@ -444,16 +451,16 @@ const ve = D, he = { class: "swiper-wrapper" }, U = /* @__PURE__ */ P({
|
|
|
444
451
|
Z(
|
|
445
452
|
() => a.modelValue,
|
|
446
453
|
() => {
|
|
447
|
-
|
|
454
|
+
m.value = a.modelValue, b(m.value);
|
|
448
455
|
}
|
|
449
456
|
);
|
|
450
|
-
const
|
|
457
|
+
const f = C(() => a.dataList.map((e) => ({
|
|
451
458
|
...e,
|
|
452
459
|
url: e.type === "img" ? e.url || "" : e.poster || ""
|
|
453
460
|
}))), b = (e) => {
|
|
454
|
-
|
|
461
|
+
r == null || r.slideTo(e);
|
|
455
462
|
}, k = () => {
|
|
456
|
-
|
|
463
|
+
r == null || r.destroy(), g.value && (r = new re(g.value, {
|
|
457
464
|
slidesPerView: 1,
|
|
458
465
|
allowTouchMove: !1,
|
|
459
466
|
effect: a.effect,
|
|
@@ -462,18 +469,18 @@ const ve = D, he = { class: "swiper-wrapper" }, U = /* @__PURE__ */ P({
|
|
|
462
469
|
prevEl: ".swiper-button-prev"
|
|
463
470
|
},
|
|
464
471
|
...a.swiperOptions
|
|
465
|
-
}),
|
|
466
|
-
|
|
472
|
+
}), r.on("slideChange", (e) => {
|
|
473
|
+
m.value = e.activeIndex, _("change", e.activeIndex), _("update:modelValue", e.activeIndex);
|
|
467
474
|
}));
|
|
468
475
|
};
|
|
469
476
|
return j(() => {
|
|
470
477
|
k(), window.addEventListener("resize", k);
|
|
471
478
|
}), q(() => {
|
|
472
|
-
|
|
479
|
+
r == null || r.destroy(), window.removeEventListener("resize", k);
|
|
473
480
|
}), (e, $) => (o(), s(
|
|
474
481
|
"div",
|
|
475
482
|
{
|
|
476
|
-
class: l(`${t(
|
|
483
|
+
class: l(`${t(n)}-swiper`)
|
|
477
484
|
},
|
|
478
485
|
[
|
|
479
486
|
w(
|
|
@@ -502,13 +509,13 @@ const ve = D, he = { class: "swiper-wrapper" }, U = /* @__PURE__ */ P({
|
|
|
502
509
|
}, e.videoProps, {
|
|
503
510
|
url: h.url,
|
|
504
511
|
poster: h.poster,
|
|
505
|
-
playable:
|
|
512
|
+
playable: m.value === B
|
|
506
513
|
}), null, 16, ["url", "poster", "playable"])),
|
|
507
514
|
h.mask ? (o(), s(
|
|
508
515
|
"div",
|
|
509
516
|
{
|
|
510
517
|
key: 2,
|
|
511
|
-
class: l(`${t(
|
|
518
|
+
class: l(`${t(n)}-swiper-mask`)
|
|
512
519
|
},
|
|
513
520
|
null,
|
|
514
521
|
2
|
|
@@ -528,20 +535,20 @@ const ve = D, he = { class: "swiper-wrapper" }, U = /* @__PURE__ */ P({
|
|
|
528
535
|
R,
|
|
529
536
|
{ key: 0 },
|
|
530
537
|
[
|
|
531
|
-
e.indicatorType === "tab" ? (o(), S(t(
|
|
538
|
+
e.indicatorType === "tab" ? (o(), S(t(ne), {
|
|
532
539
|
key: 0,
|
|
533
|
-
modelValue:
|
|
534
|
-
"onUpdate:modelValue": $[0] || ($[0] = (h) =>
|
|
535
|
-
class: l([e.indicatorClass, e.indicatorPosition === "absolute" && `${t(
|
|
540
|
+
modelValue: m.value,
|
|
541
|
+
"onUpdate:modelValue": $[0] || ($[0] = (h) => m.value = h),
|
|
542
|
+
class: l([e.indicatorClass, e.indicatorPosition === "absolute" && `${t(n)}-swiper-indicator-absolute`]),
|
|
536
543
|
dataList: e.dataList,
|
|
537
544
|
"show-intro": e.showIntro,
|
|
538
545
|
style: E(L.value),
|
|
539
546
|
onChange: b
|
|
540
547
|
}, null, 8, ["modelValue", "class", "dataList", "show-intro", "style"])) : (o(), S(t(ve), {
|
|
541
548
|
key: 1,
|
|
542
|
-
modelValue:
|
|
543
|
-
"onUpdate:modelValue": $[1] || ($[1] = (h) =>
|
|
544
|
-
dataList:
|
|
549
|
+
modelValue: m.value,
|
|
550
|
+
"onUpdate:modelValue": $[1] || ($[1] = (h) => m.value = h),
|
|
551
|
+
dataList: f.value,
|
|
545
552
|
onChange: b
|
|
546
553
|
}, null, 8, ["modelValue", "dataList"]))
|
|
547
554
|
],
|
|
@@ -557,7 +564,7 @@ const ve = D, he = { class: "swiper-wrapper" }, U = /* @__PURE__ */ P({
|
|
|
557
564
|
U.install = (c) => (c.component("ScSwiperNormal", U), c);
|
|
558
565
|
const ge = U;
|
|
559
566
|
export {
|
|
560
|
-
|
|
567
|
+
De as S,
|
|
561
568
|
ve as a,
|
|
562
569
|
ge as b
|
|
563
570
|
};
|