Commit adf8b902 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

build JS

parent 9062a8e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
.disabled[data-v-1bdf1aa1]{cursor:not-allowed;color:#aaa;text-decoration:line-through}.change[data-v-1bdf1aa1]{border:1px solid #CCC;padding:.3em;margin:.5em 0;border-left:solid #CCC 4px;display:flex}.change>div{span.text[data-v-1bdf1aa1] {flex: 0; font-weight: bold; white-space: nowrap;} select[data-v-1bdf1aa1],div[data-v-1bdf1aa1]{flex: 1;}}.change>i[data-v-1bdf1aa1]{flex:0}.change>nav[data-v-1bdf1aa1]{flex:0;border-top:solid #CCC 4px;text-align:center}.change>div[data-v-1bdf1aa1]{flex:1;display:flex}.avenant{p[data-v-1bdf1aa1] {border-top: solid #CCC 1px; padding: .5em 2em;} nav[data-v-1bdf1aa1] {padding: .3em 0; border-top: solid #CCC 1px; text-align: center;} .modification[data-v-1bdf1aa1] {padding: 0 1em;}}.timeline-item[data-v-b01f5275]{margin-left:1em;position:relative;margin-bottom:.5rem;display:flex}.timeline-item time[data-v-b01f5275]{width:150px;font-size:1em;line-height:1em;text-align:right;padding:.5em}.timeline-item time .duration[data-v-b01f5275]{font-weight:100;font-size:.75em}.timeline-item .content[data-v-b01f5275]{border-bottom:solid 1px rgba(238,238,238,.5);border-left:solid .5em #9d9d9d;font-size:1em;padding:.5em 1em}.jalon[data-v-42de1793]{background:white;padding:.25em 1em;margin-bottom:.2em}.jalon .main[data-v-42de1793]{display:inline-block;font-size:1.2em;text-align:left;border-bottom:solid thin #ddd;padding:.1em .5em}.jalon.payment[data-v-42de1793]{background:rgba(255,255,255,.7)}.time-value[data-v-42de1793]{font-weight:600}.time-value .ago[data-v-42de1793]{font-weight:100}.list{margin:1em 0}.person-text[data-v-dfc2c1c6]{display:inline-block;position:relative}.person-text .info-bulle[data-v-dfc2c1c6]{display:none}.person-text:hover .info-bulle[data-v-dfc2c1c6]{display:block}.info-bulle{header {&[data-v-dfc2c1c6] {background: #222; display: flex;} .infos {&[data-v-dfc2c1c6] {font-size: 1.25em; padding: 4px .5em 4px .5em; font-weight: 700;} .firstname[data-v-dfc2c1c6] {line-height: 16px; font-size: 16px; color: rgba(255,255,255,.8); font-style: italic;} .lastname[data-v-dfc2c1c6] {color: #fff; line-height: 36px; font-size: 30px;}}} .content {&[data-v-dfc2c1c6] {font-size: .9em; background: #fff; color: #111; padding: .3em 1em;} i[data-v-dfc2c1c6] {color: #999;} > div {&[data-v-dfc2c1c6] {border-bottom: dotted 1px #777;} &[data-v-dfc2c1c6]:last-child {border-bottom: none;}}} footer[data-v-dfc2c1c6] {font-size: .7em; padding: 0 .25em; border-top: 1px solid #DDD; background-color: #EEE; color: #555; text-align: right;}}.info-bulle[data-v-dfc2c1c6]{position:absolute;text-shadow:none;background-color:#000000b3;box-shadow:-4px 4px 8px #0000004d}.workpackage[data-v-7f36a26b]{max-width:31%;margin:1%}.vjs-tree-brackets{cursor:pointer}.vjs-tree-brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller-inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-checkbox:after{transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-radio:after{transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller-inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller-inner:after{box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:4px;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transform-origin:center}.vjs-check-controller .vjs-check-controller-inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller-inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller-original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-carets{position:absolute;right:0;cursor:pointer}.vjs-carets svg{transition:transform .3s}.vjs-carets:hover{color:#1890ff}.vjs-carets-close{transform:rotate(-90deg)}.vjs-tree-node{display:flex;position:relative;line-height:20px}.vjs-tree-node.has-carets{padding-left:15px}.vjs-tree-node.has-carets.has-selector,.vjs-tree-node.has-selector{padding-left:30px}.vjs-tree-node.is-highlight,.vjs-tree-node:hover{background-color:#e6f7ff}.vjs-tree-node .vjs-indent{display:flex;position:relative}.vjs-tree-node .vjs-indent-unit{width:1em}.vjs-tree-node .vjs-indent-unit.has-line{border-left:1px dashed #bfcbd9}.vjs-tree-node.dark.is-highlight,.vjs-tree-node.dark:hover{background-color:#2e4558}.vjs-node-index{position:absolute;right:100%;margin-right:4px;-webkit-user-select:none;user-select:none}.vjs-colon{white-space:pre}.vjs-comment{color:#bfcbd9}.vjs-value{word-break:break-word}.vjs-value-null,.vjs-value-undefined{color:#d55fde}.vjs-value-boolean,.vjs-value-number{color:#1d8ce0}.vjs-value-string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px;text-align:left}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree-node{white-space:nowrap}.activity-fiche[data-v-60682e46]{position:relative;padding-bottom:4em}.section-infos[data-v-60682e46]{margin-top:1em;scroll-margin-top:120px}.section-infos:target h2[data-v-60682e46]{-webkit-animation-name:animation-60682e46;-webkit-animation-duration:2s;-webkit-animation-timing-function:ease-in-out;-webkit-animation-iteration-count:1;-webkit-animation-play-state:running;animation-name:animation-60682e46;animation-duration:2s;animation-timing-function:ease-in-out;animation-iteration-count:1;animation-play-state:running}.section-infos>h2[data-v-60682e46]{border-bottom:1px solid #a2a7af;margin:0;padding:.2em 0;display:flex;justify-content:left;justify-content:space-between}@-webkit-keyframes animation-60682e46{0%{color:#333}15.0%{color:#0a53be}30.0%{color:#333}50.0%{color:#0a53be}100.0%{color:#333}}@keyframes animation-60682e46{0%{color:#333}15.0%{color:#0a53be}30.0%{color:#333}50.0%{color:#0a53be}100.0%{color:#333}}.activity-project[data-v-60682e46]{padding:.25em 1em .25em .25em;border-bottom:#eee solid thin}.activity-type[data-v-60682e46]{background:#EEE;padding:.25em 1em .25em .25em}.activity-type .icon-tag[data-v-60682e46]{color:#999}.type-chain span[data-v-60682e46]{font-weight:400}.type-chain span[data-v-60682e46]:last-child{font-weight:700}.type-chain span[data-v-60682e46]:last-child:after{content:""}.type-chain span[data-v-60682e46]{margin:auto}.type-chain span[data-v-60682e46]:after{content:" > ";color:#ccc}.buttons[data-v-60682e46]{padding:1em;text-align:right}header .line-bottom[data-v-60682e46]{border-bottom:#dee2ea thin solid;padding-bottom:1em}header h3[data-v-60682e46]{font-size:1em}header h4[data-v-60682e46]{color:#95afe3}header .texthighlight[data-v-60682e46]{color:#111}header .texthighlight strong[data-v-60682e46],header .texthighlight time[data-v-60682e46]{color:#000}.descriptionPacked[data-v-60682e46]{cursor:pointer;max-height:4em;overflow:hidden}.budget[data-v-60682e46]{border-left:#dee2ea thin solid}.budget .amount[data-v-60682e46]{font-size:1.4em;border-top:solid thin #EEE;border-bottom:solid thin #EEE}.budget .details[data-v-60682e46]{font-size:.8em}.budget .details small[data-v-60682e46]{display:block}
+1 −0
Original line number Diff line number Diff line
.overlay[data-v-8e477e4f]{z-index:5000}.overlay .overlay-content[data-v-8e477e4f]{height:90vh;position:relative}.overlay .overlay-content .overlay-pending[data-v-8e477e4f]{font-weight:600;min-height:10em;line-height:10em;text-align:center;-webkit-animation-name:animation-8e477e4f;-webkit-animation-duration:1s;-webkit-animation-timing-function:ease-in-out;-webkit-animation-iteration-count:infinite;-webkit-animation-play-state:running;animation-name:animation-8e477e4f;animation-duration:1s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-play-state:running}.overlay .overlay-content .overlay-title[data-v-8e477e4f]{color:#333;padding:.25em;position:relative;height:2em}.overlay .overlay-content .overlay-title .overlay-closer[data-v-8e477e4f]{position:absolute;right:0;top:0}.overlay .overlay-content .overlay-buttons[data-v-8e477e4f]{text-align:center;padding:.5em 0 .3em;position:absolute;bottom:0;left:0;right:0}.overlay .overlay-content .overlay-body[data-v-8e477e4f]{border:thin solid #eee;background:#FEFEFE;margin:1em;position:absolute;top:2.5em;left:0;right:0;bottom:2.5em;overflow:scroll}@-webkit-keyframes animation-8e477e4f{0%{color:#333}50.0%{color:#0a53be}100.0%{color:#333}}@keyframes animation-8e477e4f{0%{color:#333}50.0%{color:#0a53be}100.0%{color:#333}}
+1 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
import{x as i}from"../vendor.js";import{m as r}from"../vendor2.js";import{f as m}from"../vendor3.js";import{A as a}from"../vendor10.js";import"../vendor6.js";import"../vendor7.js";import"../vendor19.js";import"../vendor11.js";import"../vendor17.js";import"../vendor12.js";import"../vendor16.js";let e=document.querySelector("#activitydocuments");const o=i(a,{url:e.dataset.url,urlUploadNewDoc:e.dataset.urlUploadNewDoc,urlSignDocument:e.dataset.urlSignDocument,manage:e.dataset.manage});o.config.globalProperties.$filters={timeAgo(t){return r.timeAgo(t)},date(t){return r.date(t)},dateFull(t){return r.dateFull(t)},filesize(t){return m.filesize(t)}};o.mount("#activitydocuments");
+1 −0
Original line number Diff line number Diff line
import{k as y,r as C,o as n,c as i,b,e as l,a as m,i as u,F as c,g as h,w as x,v as w,f as k,t as p,n as L,x as M}from"../vendor.js";import{A as I}from"../vendor11.js";import{L as D}from"../vendor16.js";import{_ as E}from"../vendor7.js";const N={components:{Loader:D},props:{url:{default:null},activityid:{default:null},motsclesselectionnes:{default:[]}},computed:{aucunMotCleNeCorrespond(){return this.userInput&&this.touslesmotscles.filter(t=>t.label.toLocaleLowerCase().includes(this.userInput.trim().toLocaleLowerCase())).length==0}},data(){return{touslesmotscles:[],error:null,loading:null,affichertouslesmotscles:!1,userInput:""}},methods:{motCléExiste(){for(const t of this.touslesmotscles)if(t.label.toLocaleLowerCase()==this.userInput.toLocaleLowerCase())return!0;return!1},créerMotClé(t){t.preventDefault(),this.affichertouslesmotscles=!1,this.loading="Création du mot clé",y.post(this.url+"?activity_id="+this.activityid,{action:"create",label:this.userInput.trim()}).then(e=>{let a=e.data;a.selected=!0,this.touslesmotscles.push(a),this.userInput=""},e=>{this.handleError(e)}).finally(()=>{this.loading=null})},onKeyDown(t){if(t.key==="Enter"){t.preventDefault();return}if(t.key==="Tab"){this.affichertouslesmotscles=!1;return}},clickInput(){this.affichertouslesmotscles=!0},onMouseDown(t){!t.target.classList.contains("undetouslesmotscles")&&!t.target.classList.contains("inputNouveauMotCle")&&!t.target.classList.contains("listeDeTousLesMotsCles")&&(this.affichertouslesmotscles=!1)},fetch(){this.loading="Chargement des mots clés",y.get(this.url+"?activity_id="+this.activityid).then(t=>{this.touslesmotscles=t.data.motscles;const e=JSON.parse(this.motsclesselectionnes);for(let a of this.touslesmotscles)e.includes(a.id)&&(a.selected=!0);this.loading=null},t=>{this.handleError(t),this.loading=null})},handleError(t){if(!t.response.data){this.error=t;return}if(t.response.headers.get("content-type").includes("text/html")){var e=document.createElement("html");e.innerHTML=t.response.data;const a=e.querySelector('[id="contenu-principal"]');if(a){this.error=a.innerHTML;return}const d=t.response.headers.get("content-length");if(d&&typeof d=="string"&&!isNaN(d)&&Number(d)<1e3){this.error=t.response.data;return}}this.error=I.manageErrorResponse(t)}},mounted(){document.addEventListener("mousedown",this.onMouseDown),this.fetch()},unmounted(){document.removeEventListener("mousedown",this.onMouseDown)}},T={style:{position:"relative"}},z={key:0,class:"overlay",style:{"z-index":"101"}},A={class:"overlay-content",style:{"max-width":"50%"}},H={class:"alert-danger alert"},S=["innerHTML"],V={style:{display:"none"},name:"motscles[]",multiple:"",tabindex:"-1","aria-hidden":"true"},F=["value"],K={style:{display:"flex"}},B={style:{width:"50%","min-width":"50%"}},j={style:{display:"flex","background-color":"white",border:"1px solid #aaa","border-radius":"4px","min-height":"34px"}},q={style:{display:"flex","flex-wrap":"wrap",margin:"0","padding-left":"5px","padding-right":"5px","padding-bottom":"5px",width:"100%","align-items":"center"}},J={key:0,class:"selectedmotcle"},O=["onClick"],P={style:{"margin-top":"5px","flex-grow":"1",overflow:"auto"}},R={key:0,style:{"background-color":"white",border:"1px solid #aaa","border-radius":"4px","border-top-left-radius":"0","border-top-right-radius":"0",position:"absolute","z-index":"1051",width:"50%"}},U={class:"listeDeTousLesMotsCles"},X=["onClick"],G={key:0,style:{padding:"6px"}},Q={style:{"max-width":"50%",overflow:"auto","margin-left":"10px"}},W=["disabled"],Y={key:0},Z={key:1,style:{"white-space":"preserve-spaces"}},$={key:0,style:{background:"#efefef",color:"#666666",padding:"0.5em 1em","margin-top":"0.5em","font-size":"0.9em","border-radius":"0.5em","font-weight":"100"}},ee={key:1,style:{background:"#efefef",color:"#666666",padding:"0.5em 1em","margin-top":"0.5em","font-size":"0.9em","border-radius":"0.5em","font-weight":"100"}};function te(t,e,a,d,o,r){const g=C("Loader");return n(),i("section",T,[b(g,{visible:o.loading!=null,text:o.loading},null,8,["visible","text"]),o.error?(n(),i("div",z,[l("div",A,[l("h2",null,[e[7]||(e[7]=m(" Erreur mots clés ")),l("span",{class:"overlay-closer",onClick:e[0]||(e[0]=s=>o.error=null)},"X")]),l("div",H,[e[8]||(e[8]=l("i",{class:"icon-attention-1"},null,-1)),l("div",{innerHTML:o.error},null,8,S)]),l("button",{class:"btn btn-default",onClick:e[1]||(e[1]=s=>o.error=null)},e[9]||(e[9]=[l("i",{class:"icon-cancel-outline"},null,-1),m(" Fermer ")]))])])):u("",!0),e[11]||(e[11]=l("label",null,"Mots clés",-1)),l("select",V,[(n(!0),i(c,null,h(o.touslesmotscles,s=>(n(),i(c,null,[s.selected?(n(),i("option",{key:0,value:s.id,selected:""},p(s.label),9,F)):u("",!0)],64))),256))]),l("div",K,[l("div",B,[l("span",j,[l("ul",q,[(n(!0),i(c,null,h(o.touslesmotscles,s=>(n(),i(c,null,[s.selected?(n(),i("li",J,[l("span",{onClick:_=>s.selected=!1},"×",8,O),m(p(s.label),1)])):u("",!0)],64))),256)),l("li",P,[x(l("input",{onFocusin:e[2]||(e[2]=(...s)=>r.clickInput&&r.clickInput(...s)),onClick:e[3]||(e[3]=(...s)=>r.clickInput&&r.clickInput(...s)),onKeydown:e[4]||(e[4]=(...s)=>r.onKeyDown&&r.onKeyDown(...s)),"onUpdate:modelValue":e[5]||(e[5]=s=>o.userInput=s),size:"1",class:"inputNouveauMotCle"},null,544),[[w,o.userInput]])])])]),o.affichertouslesmotscles?(n(),i("span",R,[l("ul",U,[(n(!0),i(c,null,h(o.touslesmotscles,s=>(n(),i(c,null,[s.label.toLocaleLowerCase().includes(o.userInput.toLocaleLowerCase())?(n(),i("li",{key:0,class:L(["undetouslesmotscles",{selected:s.selected}]),onClick:_=>{s.selected=!s.selected,o.affichertouslesmotscles=!1,o.userInput=""}},p(s.label),11,X)):u("",!0)],64))),256)),r.aucunMotCleNeCorrespond?(n(),i("li",G,"Aucun mot clé existant correspondant")):u("",!0)])])):u("",!0)]),l("div",Q,[l("button",{class:"bouton",onClick:e[6]||(e[6]=k((...s)=>r.créerMotClé&&r.créerMotClé(...s),["stop"])),disabled:!o.userInput.trim()||r.motCléExiste()},[e[10]||(e[10]=m("Créer le nouveau mot clé : ")),o.userInput.trim()?u("",!0):(n(),i("span",Y,"")),o.userInput.trim()?(n(),i("span",Z,p(o.userInput.trim()),1)):u("",!0)],8,W),o.userInput.trim()?u("",!0):(n(),i("div",$,`ℹ️ Pour créer un nouveau mot clé, veuillez d'abord saisir son libellé dans le champ "Mots clés"`)),o.userInput.trim()&&r.motCléExiste()?(n(),i("div",ee,"ℹ️ Le mot clé existe déjà")):u("",!0)])])])}const se=E(N,[["render",te],["__scopeId","data-v-926a5c63"]]);let v="#activity-mots-cles",f=document.querySelector(v);const oe=M(se,{url:f.dataset.url,activityid:f.dataset.activityid,motsclesselectionnes:f.dataset.motsclesselectionnes});oe.mount(v);
Loading