Commit 04353f6a authored by Stéphane Bouvry's avatar Stéphane Bouvry
Browse files

Compilation JS

parent 13da6c70
Loading
Loading
Loading
Loading
+1 −1
Changes for public/js/oscar/dist/TimesheetPersonResume.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
(function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.timesheetpersonresume=e():t.timesheetpersonresume=e()})("undefined"!=typeof self?self:this,function(){return function(t){function e(o){if(r[o])return r[o].exports;var s=r[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,o){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=1)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{datas:{required:!0}},data:function(){return{debug:null}},computed:{years:function(){var t=this,e={};return Object.keys(this.datas.periods).forEach(function(r){if(!t.datas.periods[r].futur){var o=r.split("-"),s=o[0];o[1];e.hasOwnProperty(s)||(e[s]={periods:{},total:0,periodDuration:0,total_activities:0,total_horslots:0}),e[s].periods[r]=t.datas.periods[r],e[s].total+=t.datas.periods[r].total,e[s].periodDuration+=t.datas.periods[r].periodDuration,e[s].total_activities+=t.datas.periods[r].total_activities,e[s].total_horslots+=t.datas.periods[r].total_horslots}}),e},periods:function(){var t=this,e=[];return Object.keys(this.datas.periods).forEach(function(r){e.push(t.datas.periods[r])}),e}},methods:{getActivity:function(t){}}}},function(t,e,r){t.exports=r(2)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),s=r.n(o);for(var a in o)"default"!==a&&function(t){r.d(e,t,function(){return o[t]})}(a);var i=r(4),n=r(3),l=n(s.a,i.a,!1,null,null,null);e.default=l.exports},function(t,e){t.exports=function(t,e,r,o,s,a){var i,n=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(i=t,n=t.default);var _="function"==typeof n?n.options:n;e&&(_.render=e.render,_.staticRenderFns=e.staticRenderFns,_._compiled=!0),r&&(_.functional=!0),s&&(_._scopeId=s);var d;if(a?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},_._ssrRegister=d):o&&(d=o),d){var u=_.functional,c=u?_.render:_.beforeCreate;u?(_._injectStyles=d,_.render=function(t,e){return d.call(e),c(t,e)}):_.beforeCreate=c?[].concat(c,d):[d]}return{esModule:i,exports:n,options:_}}},function(t,e,r){"use strict";var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("h1",[t._v("Vos déclarations")]),t._v(" "),t.debug?r("div",{staticClass:"overlay"},[r("div",{staticClass:"overlay-content"},[r("button",{on:{click:function(e){t.debug=null}}},[t._v("close")]),t._v(" "),r("pre",[t._v(t._s(t.debug))])])]):t._e(),t._v(" "),r("pre",[t._v(t._s(t.debug))]),t._v(" "),r("table",{staticClass:"table declarations-resume"},[t._m(0),t._v(" "),t._l(t.years,function(e,o){return[r("tr",{staticClass:"heading-year"},[r("th",{attrs:{colspan:"6"}},[t._v(t._s(o))])]),t._v(" "),r("tbody",{staticClass:"yearrow"},[t._l(e.periods,function(e){return r("tr",{class:{"valid-100":e.total==e.periodDuration,"valid-95":e.total>=.95*e.periodDuration&&e.total<e.periodDuration,"valid-105":e.total<=1.05*e.periodDuration&&e.total>e.periodDuration,"error-105":e.total>1.05*e.periodDuration,"error-95":e.total<.95*e.periodDuration}},[r("th",{staticClass:"period"},[r("strong",{on:{click:function(r){t.debug=e}}},[t._v(t._s(t._f("period")(e.period)))])]),t._v(" "),r("td",{staticClass:"required"},[e.activities_id.length?r("em",[e.validations_id.length?r("span",[t._v("Oui")]):r("span",[t._v("Non")])]):r("em",[t._v("\n                        Facultatif\n                    ")])]),t._v(" "),r("td",[t._v(t._s(e.activities_id.length))]),t._v(" "),r("td",{staticClass:"soustotal text-right"},[t._v(t._s(t._f("heures")(e.total_activities)))]),t._v(" "),r("td",{staticClass:"soustotal text-right"},[t._v(t._s(t._f("heures")(e.total_horslots)))]),t._v(" "),r("td",{staticClass:"total text-right"},[r("i",{staticClass:"icon-time icon-clock"}),t._v(" "),r("strong",[t._v(t._s(t._f("heures")(e.total)))]),t._v(" "),r("small",[t._v("/ "+t._s(t._f("heures")(e.periodDuration)))])]),t._v(" "),r("td",{staticClass:"total text-right"},[r("em",{staticClass:"text-danger"},[t._v(t._s(e.error))]),t._v(" "),e.total>0?r("span",[e.validations_id.length>0?[t._v("Envoyé")]:[t._v("Pas encore envoyée")]],2):r("em",[t._v("\n                       Aucune déclaration\n                    ")]),t._v(" "),r("a",{staticClass:"xs btn btn-primary btn-xs",attrs:{href:"/feuille-de-temps/declarant?month="+e.month+"&year="+e.year}},[r("i",{staticClass:"icon-calendar"}),t._v(" "),e.validations_id.length>0?[t._v("Visualiser")]:[t._v("Déclarer")]],2)])])}),t._v(" "),r("tr",[r("th",[t._v("Total "+t._s(o))]),t._v(" "),r("th",[t._v(" ")]),t._v(" "),r("th",[t._v(" ")]),t._v(" "),r("th",[t._v(t._s(t._f("heures")(e.total_activities)))]),t._v(" "),r("th",[t._v(t._s(t._f("heures")(e.total_horslots)))]),t._v(" "),r("th",[r("strong",[t._v(t._s(t._f("heures")(e.total)))]),r("small",[t._v("/ "+t._s(t._f("heures")(e.periodDuration)))])]),t._v(" "),r("th",[t._v(" ")])])],2)]})],2)])},s=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("thead",[r("tr",[r("th",[t._v("Période")]),t._v(" "),r("th",[t._v("Déclarations")]),t._v(" "),r("th",[t._v("Activité")]),t._v(" "),r("th",[t._v("Total activité")]),t._v(" "),r("th",[t._v("Total hors-activité")]),t._v(" "),r("th",[t._v("Total")]),t._v(" "),r("th",[t._v("Actions")])])])}],a={render:o,staticRenderFns:s};e.a=a}])});
(function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.timesheetpersonresume=e():t.timesheetpersonresume=e()})("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(s[i])return s[i].exports;var r=s[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var s={};return e.m=t,e.c=s,e.d=function(t,s,i){e.o(t,s)||Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var s=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(s,"a",s),s},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=1)}([function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{datas:{required:!0}},data:function(){return{debug:null}},computed:{years:function(){var t=this,e={};return Object.keys(this.datas.periods).forEach(function(s){if(!t.datas.periods[s].futur){var i=s.split("-"),r=i[0];i[1];e.hasOwnProperty(r)||(e[r]={periods:{},total:0,periodDuration:0,total_activities:0,total_horslots:0}),e[r].periods[s]=t.datas.periods[s],e[r].total+=t.datas.periods[s].total,e[r].periodDuration+=t.datas.periods[s].periodDuration,e[r].total_activities+=t.datas.periods[s].total_activities,e[r].total_horslots+=t.datas.periods[s].total_horslots}}),e},periods:function(){var t=this,e=[];return Object.keys(this.datas.periods).forEach(function(s){e.push(t.datas.periods[s])}),e}},methods:{getActivity:function(t){}}}},function(t,e,s){t.exports=s(2)},function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s(0),r=s.n(i);for(var a in i)"default"!==a&&function(t){s.d(e,t,function(){return i[t]})}(a);var o=s(4),n=s(3),l=n(r.a,o.a,!1,null,null,null);e.default=l.exports},function(t,e){t.exports=function(t,e,s,i,r,a){var o,n=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(o=t,n=t.default);var c="function"==typeof n?n.options:n;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),s&&(c.functional=!0),r&&(c._scopeId=r);var _;if(a?(_=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=_):i&&(_=i),_){var d=c.functional,u=d?c.render:c.beforeCreate;d?(c._injectStyles=_,c.render=function(t,e){return _.call(e),u(t,e)}):c.beforeCreate=u?[].concat(u,_):[_]}return{esModule:o,exports:n,options:c}}},function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("h1",[t._v("Vos déclarations")]),t._v(" "),t.debug?s("div",{staticClass:"overlay"},[s("div",{staticClass:"overlay-content"},[s("button",{on:{click:function(e){t.debug=null}}},[t._v("close")]),t._v(" "),s("pre",[t._v(t._s(t.debug))])])]):t._e(),t._v(" "),s("pre",[t._v(t._s(t.debug))]),t._v(" "),s("table",{staticClass:"table declarations-resume"},[t._m(0),t._v(" "),t._l(t.years,function(e,i){return[s("tr",{staticClass:"heading-year"},[s("th",{attrs:{colspan:"7"}},[t._v(t._s(i))])]),t._v(" "),s("tbody",{staticClass:"yearrow"},[t._l(e.periods,function(e){return s("tr",{class:{"valid-100":e.total==e.periodDuration,"valid-95":e.total>=.95*e.periodDuration&&e.total<e.periodDuration,"valid-105":e.total<=1.05*e.periodDuration&&e.total>e.periodDuration,"error-105":e.total>1.05*e.periodDuration,"error-95":e.total<.95*e.periodDuration}},[s("th",{staticClass:"period"},[s("strong",{on:{click:function(s){t.debug=e}}},[0==e.activities_id.length?s("i",{staticClass:"icon-ellipsis",attrs:{title:"Aucune déclaration requise pour cette période"}}):t._e(),t._v(" "),e.activities_id.length&&!e.validations_id.length&&e.past?s("i",{staticClass:"icon-attention-1",attrs:{title:"Il faut déclarer pour cette période"}}):t._e(),t._v(" "),e.activities_id.length&&e.validations_id.length?s("i",{staticClass:"icon-calendar",attrs:{title:"Procédure de déclaration en cours"}}):t._e(),t._v("\n\n                    "+t._s(t._f("period")(e.period)))])]),t._v(" "),s("td",{staticClass:"required"},[e.activities_id.length?s("em",[e.validations_id.length?s("span",[s("i",{class:"icon-"+e.validation_state}),t._v(" "),e.validators.length?s("small",[t._v("\n                                Validateur(s) :\n                                "),t._l(e.validators,function(e){return s("strong",{staticClass:"cartouche"},[s("i",{staticClass:"icon-user"}),t._v("\n                                    "+t._s(e))])})],2):t._e()]):t._e(),t._v(" "),"valid"==e.validation_state?s("a",{attrs:{href:"/feuille-de-temps/excel?action=export&period="+e.period+"&personid="+e.person_id}},[s("i",{staticClass:"icon-download-outline"}),t._v("\n                            Télécharger la feuille de temps (Excel)\n                        ")]):s("span",[t._v("Non")])]):s("em",[t._v("\n                        Facultatif\n                    ")])]),t._v(" "),s("td",[t._v(t._s(e.activities_id.length))]),t._v(" "),s("td",{staticClass:"soustotal text-right"},[t._v(t._s(t._f("heures")(e.total_activities)))]),t._v(" "),s("td",{staticClass:"soustotal text-right"},[t._v(t._s(t._f("heures")(e.total_horslots)))]),t._v(" "),s("td",{staticClass:"total text-right"},[s("i",{staticClass:"icon-time icon-clock"}),t._v(" "),s("strong",[t._v(t._s(t._f("heures")(e.total)))]),t._v(" "),s("small",[t._v("/ "+t._s(t._f("heures")(e.periodDuration)))])]),t._v(" "),s("td",{staticClass:"total text-right"},[s("em",{staticClass:"text-danger"},[t._v(t._s(e.error))]),t._v(" "),s("a",{staticClass:"xs btn btn-primary btn-xs",attrs:{href:"/feuille-de-temps/declarant?month="+e.month+"&year="+e.year}},[s("i",{staticClass:"icon-calendar"}),t._v(" "),e.validations_id.length>0?[t._v("Visualiser")]:[t._v("Déclarer")]],2)])])}),t._v(" "),s("tr",[s("th",[t._v("Total "+t._s(i))]),t._v(" "),s("th",[t._v(" ")]),t._v(" "),s("th",[t._v(" ")]),t._v(" "),s("th",{staticClass:"text-right"},[t._v(t._s(t._f("heures")(e.total_activities)))]),t._v(" "),s("th",{staticClass:"text-right"},[t._v(t._s(t._f("heures")(e.total_horslots)))]),t._v(" "),s("th",{staticClass:"text-right"},[s("strong",[t._v(t._s(t._f("heures")(e.total)))]),s("small",[t._v("/ "+t._s(t._f("heures")(e.periodDuration)))])]),t._v(" "),s("th",[t._v(" ")])])],2)]})],2)])},r=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("Période")]),t._v(" "),s("th",[t._v("Déclarations")]),t._v(" "),s("th",[t._v("Activité")]),t._v(" "),s("th",[t._v("Total activité")]),t._v(" "),s("th",[t._v("Total hors-activité")]),t._v(" "),s("th",[t._v("Total")]),t._v(" "),s("th",[t._v("Actions")])])])}],a={render:i,staticRenderFns:r};e.a=a}])});
//# sourceMappingURL=TimesheetPersonResume.js.map
 No newline at end of file
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.