ep-lib-ts 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,10 +14,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
14
14
|
compact: {
|
|
15
15
|
type: import("vue").PropType<boolean>;
|
|
16
16
|
};
|
|
17
|
-
icon: {
|
|
18
|
-
type: import("vue").PropType<string | null>;
|
|
19
|
-
default: null;
|
|
20
|
-
};
|
|
21
17
|
noIcon: {
|
|
22
18
|
type: import("vue").PropType<boolean>;
|
|
23
19
|
default: boolean;
|
|
@@ -38,10 +34,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
34
|
compact: {
|
|
39
35
|
type: import("vue").PropType<boolean>;
|
|
40
36
|
};
|
|
41
|
-
icon: {
|
|
42
|
-
type: import("vue").PropType<string | null>;
|
|
43
|
-
default: null;
|
|
44
|
-
};
|
|
45
37
|
noIcon: {
|
|
46
38
|
type: import("vue").PropType<boolean>;
|
|
47
39
|
default: boolean;
|
|
@@ -50,7 +42,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
42
|
title: string | null;
|
|
51
43
|
type: "base" | "info" | "warning" | "success" | "error" | "question" | "tip";
|
|
52
44
|
outlined: boolean;
|
|
53
|
-
icon: string | null;
|
|
54
45
|
noIcon: boolean;
|
|
55
46
|
}, {}>, {
|
|
56
47
|
default?(_: {}): any;
|
package/dist/ep-lib-ts.js
CHANGED
|
@@ -6131,7 +6131,6 @@ const uZ = /* @__PURE__ */ je(gP, [["render", wP]]), kP = {
|
|
|
6131
6131
|
title: { default: null },
|
|
6132
6132
|
outlined: { type: Boolean, default: !1 },
|
|
6133
6133
|
noIcon: { type: Boolean, default: !1 },
|
|
6134
|
-
icon: { default: null },
|
|
6135
6134
|
compact: { type: Boolean }
|
|
6136
6135
|
},
|
|
6137
6136
|
setup(r) {
|
|
@@ -6140,7 +6139,7 @@ const uZ = /* @__PURE__ */ je(gP, [["render", wP]]), kP = {
|
|
|
6140
6139
|
return `${(h = TP[e.type]) == null ? void 0 : h[t.value]}`;
|
|
6141
6140
|
}), s = O(() => {
|
|
6142
6141
|
let h = zP[e.type].icon;
|
|
6143
|
-
return e.noIcon ? null :
|
|
6142
|
+
return e.noIcon ? null : h;
|
|
6144
6143
|
}), { title: o, compact: a, type: i, outlined: l } = he(e);
|
|
6145
6144
|
return (h, d) => x(a) ? (M(), ie(aP, {
|
|
6146
6145
|
key: 1,
|
package/dist/ep-lib-ts.umd.cjs
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
c0,1.6-0.9,2.9-2.2,3.5v-7.1C86.1-60.7,87-59.3,87-57.8 M78.5-60.4l4.4-4.4v14.2l-4.4-4.4H75v-5.3H78.5z"></path></g><g style="opacity:0.1;"><path d="M9.8-115.5c3.5,0.8,6.2,4,6.2,7.8s-2.7,7-6.2,7.8v-1.8c2.6-0.8,4.4-3.1,4.4-5.9s-1.9-5.2-4.4-5.9V-115.5 M12-107.8
|
|
35
35
|
c0,1.6-0.9,2.9-2.2,3.5v-7.1C11.1-110.7,12-109.3,12-107.8 M3.5-110.4l4.4-4.4v14.2l-4.4-4.4H0v-5.3H3.5z"></path></g></g></pattern>`,1),Dd=a.createElementVNode("path",{style:{fill:"url(#New_Pattern)"},d:"M639,1v358H1V1H639 M640,0H0v360h640V0L640,0z"},null,-1),Td=a.createElementVNode("g",null,[a.createElementVNode("rect",{x:"0.5",y:"0.5",style:{fill:"url(#New_Pattern)"},width:"639",height:"359"})],-1),Md=a.createElementVNode("g",null,[a.createElementVNode("path",{style:{fill:"white"},d:`M310.7,114.7c-31,4.4-53.2,32.4-53.2,63.7v46.8c0,11.5,9.3,20.8,20.8,20.8h20.8v-55.6h-27.8v-12
|
|
36
36
|
c0-24.9,17.9-47.1,42.5-50.1c29.6-3.6,54.7,19.4,54.7,48.3v13.9h-27.8V246h20.8c11.5,0,20.8-9.3,20.8-20.8v-48.6
|
|
37
|
-
C382.5,138.7,349.4,109.1,310.7,114.7z`})],-1),Bd=a.defineComponent({__name:"BgAudio",props:{fill:{default:"fill-primary"}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createElementBlock("svg",Ed,[qd,a.createElementVNode("g",null,[a.createElementVNode("rect",{class:a.normalizeClass(e.fill),width:"640",height:"360"},null,2),Dd]),Td,Md]))}}),zd={base:{default:"bg-gray-100 text-black",outlined:"bg-white border-gray-100 border text-black"},warning:{default:"bg-warning text-white",outlined:"bg-white border-warning border text-warning"},success:{default:"bg-success text-white",outlined:"bg-white border-success border text-success"},error:{default:"bg-error text-white",outlined:"bg-white border-error border text-error"},info:{default:"bg-info text-white",outlined:"bg-white border-info border text-info"},question:{default:"bg-question text-white",outlined:"bg-white border-question border text-question"},tip:{default:"bg-tip text-white",outlined:"bg-white border-tip border text-tip"}},Nd={base:{icon:vc},warning:{icon:ic},success:{icon:fc},error:{icon:lc},info:{icon:Cc},question:{icon:wc},tip:{icon:Ac}},Ld={key:0,class:"flex items-center justify-center w-1/12"},Vd={class:"container"},Rd={key:0,class:"text-left text-2xl font-bold"},_o=a.defineComponent({__name:"EpAlert",props:{type:{default:"base"},title:{default:null},outlined:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1},icon:{default:null},compact:{type:Boolean}},setup(r){const e=r,t=a.computed(()=>e.outlined?"outlined":"default"),n=a.computed(()=>{var h;return`${(h=zd[e.type])==null?void 0:h[t.value]}`}),o=a.computed(()=>{let h=Nd[e.type].icon;return e.noIcon?null:e.icon?e.icon:h}),{title:s,compact:i,type:l,outlined:c}=a.toRefs(e);return(h,m)=>a.unref(i)?(a.openBlock(),a.createBlock(wo,{key:1,type:a.unref(l),outlined:a.unref(c),icon:o.value,title:a.unref(s)},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default")]),_:3},8,["type","outlined","icon","title"])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`flex p-4 rounded shadow-md m-2 ${n.value}`)},[o.value?(a.openBlock(),a.createElementBlock("div",Ld,[a.createVNode(re,{size:40,"icon-path":o.value},null,8,["icon-path"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`${o.value?"w-11/12":"w-full"} flex items-center`)},[a.createElementVNode("div",Vd,[a.unref(s)?(a.openBlock(),a.createElementBlock("h3",Rd,a.toDisplayString(a.unref(s)),1)):a.createCommentVNode("",!0),a.unref(s)?(a.openBlock(),a.createBlock(wt,{key:1,size:"border"})):a.createCommentVNode("",!0),a.renderSlot(h.$slots,"default")])],2)],2))}}),Id=["innerHTML"],Fd={class:"max-w-screen-sm mx-auto"},$d=["src"],Hd=a.defineComponent({__name:"EpAudio",props:{src:{},title:{},intentions:{},credits:{},madateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},messageError:{default:"Mauvais url"},hideIcon:{type:Boolean,default:!1},mandateLevel:{}},setup(r){const e=r,t=a.computed(()=>!!(e.src.endsWith(".mp3")||e.src.endsWith(".ogg")||e.src.endsWith(".wav"))),n=a.computed(()=>De("fill",e.type)),o=a.computed(()=>e.intentions?ze(e.intentions)?e.intentions:Ie(e.intentions):null),{src:s,title:i,hideIcon:l,mandateLevel:c}=a.toRefs(e);return(h,m)=>(a.openBlock(),a.createBlock(we,{title:a.unref(i),type:h.type,hideIcon:a.unref(l),icon:a.unref(kc),mandateLevel:a.unref(c)},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",Fd,[a.createVNode(Bd,{fill:n.value},null,8,["fill"]),t.value?(a.openBlock(),a.createElementBlock("audio",{key:0,ref:"video",controls:"",src:a.unref(s),controlsList:"nodownload"},null,8,$d)):(a.openBlock(),a.createBlock(_o,{key:1,type:"error",outlined:""},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(h.messageError),1)]),_:1}))])]),_:2},[o.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:o.value},null,8,Id)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Od={class:"flex items-center justify-center mb-2"},Pd={class:"bg-white shadow-xl p-4 max-w-[800px] mx-auto border-solid"},Ud={class:"max-w-[800px] h-[550px] m-auto relative"},Gd={key:0,class:"mt-2 text-sm text-gray-800"},jd={key:1,class:"flex justify-end"},Zd=["innerHTML"],Wd={class:"flex justify-end"},Yd=a.defineComponent({__name:"EpCarousel",props:{images:{},labelRef:{default:"Référence"},labelClose:{default:"Fermer"}},setup(r){const e=r,t=a.ref(0),n=a.ref(!1),o=()=>{const m=t.value===0?e.images.length-1:t.value-1;t.value=m},s=()=>{const m=t.value===e.images.length-1?0:t.value+1;t.value=m},{images:i,labelClose:l,labelRef:c}=a.toRefs(e);return(h,m)=>{var f,b;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Od,[a.createElementVNode("button",{onClick:o},[a.createVNode(re,{"icon-path":a.unref(bc)},null,8,["icon-path"])]),a.createTextVNode(" "+a.toDisplayString(t.value+1)+"/"+a.toDisplayString(a.unref(i).length)+" ",1),a.createElementVNode("button",{onClick:s},[a.createVNode(re,{"icon-path":a.unref(yc)},null,8,["icon-path"])])]),a.createElementVNode("div",Pd,[a.createElementVNode("div",Ud,[a.createElementVNode("div",{class:"w-full h-full bg-center bg-cover duration-500",style:a.normalizeStyle(`background-image:url('${a.unref(i)[t.value].src}')`)},null,4)]),(f=a.unref(i)[t.value])!=null&&f.caption?(a.openBlock(),a.createElementBlock("div",Gd,a.toDisplayString(a.unref(i)[t.value].caption),1)):a.createCommentVNode("",!0),(b=a.unref(i)[t.value])!=null&&b.bib?(a.openBlock(),a.createElementBlock("div",jd,[a.createVNode(Te,{type:"primary",onClick:m[0]||(m[0]=y=>n.value=!0),dark:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(c)),1)]),_:1})])):a.createCommentVNode("",!0)]),a.createVNode(lr,{modelValue:n.value,"onUpdate:modelValue":m[2]||(m[2]=y=>n.value=y),title:"Référence"},{default:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:a.unref(i)[t.value].bib},null,8,Zd),a.createElementVNode("div",Wd,[a.createVNode(Te,{onClick:m[1]||(m[1]=y=>n.value=!1),type:"primary",dark:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}}),Gj="",Xd=Me(Yd,[["__scopeId","data-v-ecd9b088"]]),Jd=["innerHTML"],Kd=["src","height"],Qd=a.defineComponent({__name:"EpIframe",props:{src:{},big:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean,default:!1},type:{default:"base"},mandateLevel:{}},setup(r){const e=r,t=a.computed(()=>e.intentions?ze(e.intentions)?e.intentions:Ie(e.intentions):null),n=a.computed(()=>e.big?"1000":"520"),{src:o,title:s,intentions:i,hideIcon:l}=a.toRefs(e);return(c,h)=>(a.openBlock(),a.createBlock(we,{title:a.unref(s),type:c.type,hideIcon:a.unref(l),icon:a.unref(cc),mandateLevel:c.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("iframe",{src:a.unref(o),class:"w-full",height:n.value},null,8,Kd)]),_:2},[t.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:t.value},null,8,Jd)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}});class ve{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new ve(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class Fe{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Fe(t,ve.range(this,e))}}class B{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,o,s,i=t&&t.loc;if(i&&i.start<=i.end){var l=i.lexer.input;o=i.start,s=i.end,o===l.length?n+=" at end of input: ":n+=" at position "+(o+1)+": ";var c=l.slice(o,s).replace(/[^]/g,"$&̲"),h;o>15?h="…"+l.slice(o-15,o):h=l.slice(0,o);var m;s+15<l.length?m=l.slice(s,s+15)+"…":m=l.slice(s),n+=h+c+m}var f=new Error(n);return f.name="ParseError",f.__proto__=B.prototype,f.position=o,o!=null&&s!=null&&(f.length=s-o),f.rawMessage=e,f}}B.prototype.__proto__=Error.prototype;var eh=function(e,t){return e.indexOf(t)!==-1},th=function(e,t){return e===void 0?t:e},rh=/([A-Z])/g,nh=function(e){return e.replace(rh,"-$1").toLowerCase()},oh={"&":"&",">":">","<":"<",'"':""","'":"'"},ah=/[&><"']/g;function sh(r){return String(r).replace(ah,e=>oh[e])}var Co=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},ih=function(e){var t=Co(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},lh=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},ch=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},O={contains:eh,deflt:th,escape:sh,hyphenate:nh,getBaseElem:Co,isCharacterBox:ih,protocolFromUrl:ch},ur={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function uh(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class u0{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in ur)if(ur.hasOwnProperty(t)){var n=ur[t];this[t]=e[t]!==void 0?n.processor?n.processor(e[t]):e[t]:uh(n)}}reportNonstrict(e,t,n){var o=this.strict;if(typeof o=="function"&&(o=o(e,t,n)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),n);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,n){var o=this.strict;if(typeof o=="function")try{o=o(e,t,n)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=O.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class rt{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return $e[dh[this.id]]}sub(){return $e[hh[this.id]]}fracNum(){return $e[mh[this.id]]}fracDen(){return $e[ph[this.id]]}cramp(){return $e[fh[this.id]]}text(){return $e[gh[this.id]]}isTight(){return this.size>=2}}var d0=0,dr=1,Ct=2,Ge=3,Rt=4,_e=5,St=6,de=7,$e=[new rt(d0,0,!1),new rt(dr,0,!0),new rt(Ct,1,!1),new rt(Ge,1,!0),new rt(Rt,2,!1),new rt(_e,2,!0),new rt(St,3,!1),new rt(de,3,!0)],dh=[Rt,_e,Rt,_e,St,de,St,de],hh=[_e,_e,_e,_e,de,de,de,de],mh=[Ct,Ge,Rt,_e,St,de,St,de],ph=[Ge,Ge,_e,_e,de,de,de,de],fh=[dr,dr,Ge,Ge,_e,_e,de,de],gh=[d0,dr,Ct,Ge,Ct,Ge,Ct,Ge],$={DISPLAY:$e[d0],TEXT:$e[Ct],SCRIPT:$e[Rt],SCRIPTSCRIPT:$e[St]},h0=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function bh(r){for(var e=0;e<h0.length;e++)for(var t=h0[e],n=0;n<t.blocks.length;n++){var o=t.blocks[n];if(r>=o[0]&&r<=o[1])return t.name}return null}var hr=[];h0.forEach(r=>r.blocks.forEach(e=>hr.push(...e)));function So(r){for(var e=0;e<hr.length;e+=2)if(r>=hr[e]&&r<=hr[e+1])return!0;return!1}var At=80,yh=function(e,t){return"M95,"+(622+e+t)+`
|
|
37
|
+
C382.5,138.7,349.4,109.1,310.7,114.7z`})],-1),Bd=a.defineComponent({__name:"BgAudio",props:{fill:{default:"fill-primary"}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createElementBlock("svg",Ed,[qd,a.createElementVNode("g",null,[a.createElementVNode("rect",{class:a.normalizeClass(e.fill),width:"640",height:"360"},null,2),Dd]),Td,Md]))}}),zd={base:{default:"bg-gray-100 text-black",outlined:"bg-white border-gray-100 border text-black"},warning:{default:"bg-warning text-white",outlined:"bg-white border-warning border text-warning"},success:{default:"bg-success text-white",outlined:"bg-white border-success border text-success"},error:{default:"bg-error text-white",outlined:"bg-white border-error border text-error"},info:{default:"bg-info text-white",outlined:"bg-white border-info border text-info"},question:{default:"bg-question text-white",outlined:"bg-white border-question border text-question"},tip:{default:"bg-tip text-white",outlined:"bg-white border-tip border text-tip"}},Nd={base:{icon:vc},warning:{icon:ic},success:{icon:fc},error:{icon:lc},info:{icon:Cc},question:{icon:wc},tip:{icon:Ac}},Ld={key:0,class:"flex items-center justify-center w-1/12"},Vd={class:"container"},Rd={key:0,class:"text-left text-2xl font-bold"},_o=a.defineComponent({__name:"EpAlert",props:{type:{default:"base"},title:{default:null},outlined:{type:Boolean,default:!1},noIcon:{type:Boolean,default:!1},compact:{type:Boolean}},setup(r){const e=r,t=a.computed(()=>e.outlined?"outlined":"default"),n=a.computed(()=>{var h;return`${(h=zd[e.type])==null?void 0:h[t.value]}`}),o=a.computed(()=>{let h=Nd[e.type].icon;return e.noIcon?null:h}),{title:s,compact:i,type:l,outlined:c}=a.toRefs(e);return(h,m)=>a.unref(i)?(a.openBlock(),a.createBlock(wo,{key:1,type:a.unref(l),outlined:a.unref(c),icon:o.value,title:a.unref(s)},{default:a.withCtx(()=>[a.renderSlot(h.$slots,"default")]),_:3},8,["type","outlined","icon","title"])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`flex p-4 rounded shadow-md m-2 ${n.value}`)},[o.value?(a.openBlock(),a.createElementBlock("div",Ld,[a.createVNode(re,{size:40,"icon-path":o.value},null,8,["icon-path"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`${o.value?"w-11/12":"w-full"} flex items-center`)},[a.createElementVNode("div",Vd,[a.unref(s)?(a.openBlock(),a.createElementBlock("h3",Rd,a.toDisplayString(a.unref(s)),1)):a.createCommentVNode("",!0),a.unref(s)?(a.openBlock(),a.createBlock(wt,{key:1,size:"border"})):a.createCommentVNode("",!0),a.renderSlot(h.$slots,"default")])],2)],2))}}),Id=["innerHTML"],Fd={class:"max-w-screen-sm mx-auto"},$d=["src"],Hd=a.defineComponent({__name:"EpAudio",props:{src:{},title:{},intentions:{},credits:{},madateLevel:{},labelIntentions:{default:"Intentions d'écoute"},type:{default:"base"},messageError:{default:"Mauvais url"},hideIcon:{type:Boolean,default:!1},mandateLevel:{}},setup(r){const e=r,t=a.computed(()=>!!(e.src.endsWith(".mp3")||e.src.endsWith(".ogg")||e.src.endsWith(".wav"))),n=a.computed(()=>De("fill",e.type)),o=a.computed(()=>e.intentions?ze(e.intentions)?e.intentions:Ie(e.intentions):null),{src:s,title:i,hideIcon:l,mandateLevel:c}=a.toRefs(e);return(h,m)=>(a.openBlock(),a.createBlock(we,{title:a.unref(i),type:h.type,hideIcon:a.unref(l),icon:a.unref(kc),mandateLevel:a.unref(c)},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("div",Fd,[a.createVNode(Bd,{fill:n.value},null,8,["fill"]),t.value?(a.openBlock(),a.createElementBlock("audio",{key:0,ref:"video",controls:"",src:a.unref(s),controlsList:"nodownload"},null,8,$d)):(a.openBlock(),a.createBlock(_o,{key:1,type:"error",outlined:""},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(h.messageError),1)]),_:1}))])]),_:2},[o.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:o.value},null,8,Id)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}}),Od={class:"flex items-center justify-center mb-2"},Pd={class:"bg-white shadow-xl p-4 max-w-[800px] mx-auto border-solid"},Ud={class:"max-w-[800px] h-[550px] m-auto relative"},Gd={key:0,class:"mt-2 text-sm text-gray-800"},jd={key:1,class:"flex justify-end"},Zd=["innerHTML"],Wd={class:"flex justify-end"},Yd=a.defineComponent({__name:"EpCarousel",props:{images:{},labelRef:{default:"Référence"},labelClose:{default:"Fermer"}},setup(r){const e=r,t=a.ref(0),n=a.ref(!1),o=()=>{const m=t.value===0?e.images.length-1:t.value-1;t.value=m},s=()=>{const m=t.value===e.images.length-1?0:t.value+1;t.value=m},{images:i,labelClose:l,labelRef:c}=a.toRefs(e);return(h,m)=>{var f,b;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Od,[a.createElementVNode("button",{onClick:o},[a.createVNode(re,{"icon-path":a.unref(bc)},null,8,["icon-path"])]),a.createTextVNode(" "+a.toDisplayString(t.value+1)+"/"+a.toDisplayString(a.unref(i).length)+" ",1),a.createElementVNode("button",{onClick:s},[a.createVNode(re,{"icon-path":a.unref(yc)},null,8,["icon-path"])])]),a.createElementVNode("div",Pd,[a.createElementVNode("div",Ud,[a.createElementVNode("div",{class:"w-full h-full bg-center bg-cover duration-500",style:a.normalizeStyle(`background-image:url('${a.unref(i)[t.value].src}')`)},null,4)]),(f=a.unref(i)[t.value])!=null&&f.caption?(a.openBlock(),a.createElementBlock("div",Gd,a.toDisplayString(a.unref(i)[t.value].caption),1)):a.createCommentVNode("",!0),(b=a.unref(i)[t.value])!=null&&b.bib?(a.openBlock(),a.createElementBlock("div",jd,[a.createVNode(Te,{type:"primary",onClick:m[0]||(m[0]=y=>n.value=!0),dark:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(c)),1)]),_:1})])):a.createCommentVNode("",!0)]),a.createVNode(lr,{modelValue:n.value,"onUpdate:modelValue":m[2]||(m[2]=y=>n.value=y),title:"Référence"},{default:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:a.unref(i)[t.value].bib},null,8,Zd),a.createElementVNode("div",Wd,[a.createVNode(Te,{onClick:m[1]||(m[1]=y=>n.value=!1),type:"primary",dark:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}}),Gj="",Xd=Me(Yd,[["__scopeId","data-v-ecd9b088"]]),Jd=["innerHTML"],Kd=["src","height"],Qd=a.defineComponent({__name:"EpIframe",props:{src:{},big:{type:Boolean,default:!1},title:{},intentions:{},hideIcon:{type:Boolean,default:!1},type:{default:"base"},mandateLevel:{}},setup(r){const e=r,t=a.computed(()=>e.intentions?ze(e.intentions)?e.intentions:Ie(e.intentions):null),n=a.computed(()=>e.big?"1000":"520"),{src:o,title:s,intentions:i,hideIcon:l}=a.toRefs(e);return(c,h)=>(a.openBlock(),a.createBlock(we,{title:a.unref(s),type:c.type,hideIcon:a.unref(l),icon:a.unref(cc),mandateLevel:c.mandateLevel},a.createSlots({content:a.withCtx(()=>[a.createElementVNode("iframe",{src:a.unref(o),class:"w-full",height:n.value},null,8,Kd)]),_:2},[t.value?{name:"intentions",fn:a.withCtx(()=>[a.createElementVNode("div",{innerHTML:t.value},null,8,Jd)]),key:"0"}:void 0]),1032,["title","type","hideIcon","icon","mandateLevel"]))}});class ve{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new ve(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class Fe{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Fe(t,ve.range(this,e))}}class B{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,o,s,i=t&&t.loc;if(i&&i.start<=i.end){var l=i.lexer.input;o=i.start,s=i.end,o===l.length?n+=" at end of input: ":n+=" at position "+(o+1)+": ";var c=l.slice(o,s).replace(/[^]/g,"$&̲"),h;o>15?h="…"+l.slice(o-15,o):h=l.slice(0,o);var m;s+15<l.length?m=l.slice(s,s+15)+"…":m=l.slice(s),n+=h+c+m}var f=new Error(n);return f.name="ParseError",f.__proto__=B.prototype,f.position=o,o!=null&&s!=null&&(f.length=s-o),f.rawMessage=e,f}}B.prototype.__proto__=Error.prototype;var eh=function(e,t){return e.indexOf(t)!==-1},th=function(e,t){return e===void 0?t:e},rh=/([A-Z])/g,nh=function(e){return e.replace(rh,"-$1").toLowerCase()},oh={"&":"&",">":">","<":"<",'"':""","'":"'"},ah=/[&><"']/g;function sh(r){return String(r).replace(ah,e=>oh[e])}var Co=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},ih=function(e){var t=Co(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},lh=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},ch=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},O={contains:eh,deflt:th,escape:sh,hyphenate:nh,getBaseElem:Co,isCharacterBox:ih,protocolFromUrl:ch},ur={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function uh(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class u0{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in ur)if(ur.hasOwnProperty(t)){var n=ur[t];this[t]=e[t]!==void 0?n.processor?n.processor(e[t]):e[t]:uh(n)}}reportNonstrict(e,t,n){var o=this.strict;if(typeof o=="function"&&(o=o(e,t,n)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),n);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,n){var o=this.strict;if(typeof o=="function")try{o=o(e,t,n)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=O.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}}class rt{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return $e[dh[this.id]]}sub(){return $e[hh[this.id]]}fracNum(){return $e[mh[this.id]]}fracDen(){return $e[ph[this.id]]}cramp(){return $e[fh[this.id]]}text(){return $e[gh[this.id]]}isTight(){return this.size>=2}}var d0=0,dr=1,Ct=2,Ge=3,Rt=4,_e=5,St=6,de=7,$e=[new rt(d0,0,!1),new rt(dr,0,!0),new rt(Ct,1,!1),new rt(Ge,1,!0),new rt(Rt,2,!1),new rt(_e,2,!0),new rt(St,3,!1),new rt(de,3,!0)],dh=[Rt,_e,Rt,_e,St,de,St,de],hh=[_e,_e,_e,_e,de,de,de,de],mh=[Ct,Ge,Rt,_e,St,de,St,de],ph=[Ge,Ge,_e,_e,de,de,de,de],fh=[dr,dr,Ge,Ge,_e,_e,de,de],gh=[d0,dr,Ct,Ge,Ct,Ge,Ct,Ge],$={DISPLAY:$e[d0],TEXT:$e[Ct],SCRIPT:$e[Rt],SCRIPTSCRIPT:$e[St]},h0=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function bh(r){for(var e=0;e<h0.length;e++)for(var t=h0[e],n=0;n<t.blocks.length;n++){var o=t.blocks[n];if(r>=o[0]&&r<=o[1])return t.name}return null}var hr=[];h0.forEach(r=>r.blocks.forEach(e=>hr.push(...e)));function So(r){for(var e=0;e<hr.length;e+=2)if(r>=hr[e]&&r<=hr[e+1])return!0;return!1}var At=80,yh=function(e,t){return"M95,"+(622+e+t)+`
|
|
38
38
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
39
39
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
40
40
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
package/package.json
CHANGED
|
@@ -12,7 +12,6 @@ interface Props {
|
|
|
12
12
|
title?: string | null;
|
|
13
13
|
outlined?:boolean;
|
|
14
14
|
noIcon?:boolean;
|
|
15
|
-
icon?:string | null
|
|
16
15
|
compact?:boolean
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -21,7 +20,6 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
21
20
|
title: null,
|
|
22
21
|
outlined:false,
|
|
23
22
|
noIcon:false,
|
|
24
|
-
icon:null
|
|
25
23
|
});
|
|
26
24
|
|
|
27
25
|
const isOutlined = computed(()=>{
|
|
@@ -40,9 +38,6 @@ const icon = computed(()=>{
|
|
|
40
38
|
if(props.noIcon){
|
|
41
39
|
return null
|
|
42
40
|
}
|
|
43
|
-
if(props.icon){
|
|
44
|
-
return props.icon
|
|
45
|
-
}
|
|
46
41
|
return icon
|
|
47
42
|
})
|
|
48
43
|
|