From fda78eea9dc04f4ac08d6e04a9e6e56746be61bc Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 4 Aug 2021 13:50:00 +0200 Subject: [PATCH] fixed modalcard lazy load --- .../custom/materiotheme/assets/dist/main.js | 2 +- .../materiotheme/assets/dist/main.js.gz | Bin 140826 -> 140799 bytes .../assets/dist/module-article.bundle.js | 2 +- .../assets/dist/module-article.bundle.js.gz | Bin 4159 -> 4172 bytes .../assets/dist/module-base.bundle.js | 2 +- .../assets/dist/module-base.bundle.js.gz | Bin 2746 -> 2761 bytes .../assets/dist/module-thematique.bundle.js | 2 +- .../dist/module-thematique.bundle.js.gz | Bin 3157 -> 3173 bytes .../materiotheme/assets/dist/report.html | 4 ++-- ...uejs_components_Content_Card_vue.bundle.js | 2 +- ...s_components_Content_Card_vue.bundle.js.gz | Bin 4636 -> 4659 bytes .../vuejs/components/Content/Card.vue | 3 +++ .../vuejs/components/Content/ModalCard.vue | 6 +++--- .../vuejs/components/cardMixins.js | 6 +++--- 14 files changed, 16 insertions(+), 13 deletions(-) diff --git a/web/themes/custom/materiotheme/assets/dist/main.js b/web/themes/custom/materiotheme/assets/dist/main.js index 1da4d26..9410d57 100644 --- a/web/themes/custom/materiotheme/assets/dist/main.js +++ b/web/themes/custom/materiotheme/assets/dist/main.js @@ -5,7 +5,7 @@ } } ${y()} - `;p.E.post("",{query:(0,h.S)(e)}).then((({data:{data:{materiau:e}}})=>{this.material=e,this.loading=!1,e.note&&e.note.id&&(this.note_id=e.note.id,this.note=e.note.contenu),setTimeout(function(){this.activateLazyLoad()}.bind(this),5)})).catch((e=>{console.warn("Issue with loadMaterial",e),Promise.reject(e)}))},onCreateFlagColl(){this.new_folder_name,this.is_creating_folder=!0,this.createFlagColl(this.new_folder_name).then((e=>{this.new_folder_name="",this.is_creating_folder=!1;let t=e.id;this.loadingFlag=t,this.flagUnflag({action:"flag",id:this.item.id,collid:t}).then((e=>{this.loadingFlag=!1}))}))},flagIsActive(e){return-1!==this.flagcolls[e].items.indexOf(this.item.id)},flagIsLoading(e){return e===this.loadingFlag},onFlagActionCard(e){if(!this.loadingFlag){let t=e.target.getAttribute("collid"),n=this.flagIsActive(t)?"unflag":"flag";this.loadingFlag=t,this.flagUnflag({action:n,id:this.item.id,collid:t}).then((e=>{this.loadingFlag=!1}))}},onCloseModalCard(e){this.$modal.hide(`modal-${this.item.id}`)},onSwipeCard(e){switch(e){case"top":case"bottom":break;case"left":case"right":this.$modal.hide(`modal-${this.item.id}`)}},prettyFileSize:e=>b(parseInt(e)),shortUrl:e=>e.replace(/^http:\/\//,"").replace(/^www\./,""),onNoteInput(e){this.note,this.note=e.target.value,this.debouncedSaveNote()},saveNote(){this.note_id,this.note,this.note_id?this.updateNote():this.createNote()},updateNote(){let e={type:[{target_id:"note"}],field_contenu:this.note},t={headers:{"X-CSRF-Token":this.csrf_token}};f.Z.patch(`/node/${this.note_id}?_format=json`,e,t).then((({data:e})=>{})).catch((e=>{console.warn("Issue with updateNote",e)}))},createNote(){let e={type:[{target_id:"note"}],title:[{value:"note"}],field_contenu:this.note,field_target:this.item.id},t={headers:{"X-CSRF-Token":this.csrf_token}};f.Z.post("/node?_format=json",e,t).then((({data:e})=>{this.note_id=e.nid[0].value,this.addNoteId(this.note_id)})).catch((e=>{console.warn("Issue with createNote",e)}))},onTapTool(e){e.target.parentNode.parentNode.querySelectorAll("section.tool").forEach(((e,t)=>{e.classList.remove("tapped")})),e.target.parentNode.classList.add("tapped")},onTapCard(e){if(e.target.tagName,"TEXTAREA"==e.target.tagName)return;this.$refs.tools.querySelectorAll("section.tool").forEach(((e,t)=>{e.classList.remove("tapped")}))}}};var k=(0,l.Z)(w,i,[],!1,null,"62d62e96",null);k.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue";const S=k.exports},1900:(e,t,n)=>{"use strict";function i(e,t,n,i,r,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,{Z:()=>i})},6850:e=>{e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var i={};i[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d03":function(e,t,n){var i=n("6eeb"),r=Date.prototype,o="Invalid Date",a="toString",s=r.toString,c=r.getTime;new Date(NaN)+""!=o&&i(r,a,(function(){var e=c.call(this);return e==e?s.call(this):o}))},"0df6":function(e,t,n){},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in r){var c=i[s],l=c&&c.prototype;if(l&&l.forEach!==o)try{a(l,"forEach",o)}catch(e){l.forEach=o}}},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=n("ae40"),a=r("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c6c":function(e,t,n){},"1c7e":function(e,t,n){var i=n("b622")("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},"1d1c":function(e,t,n){var i=n("23e7"),r=n("83ab");i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:n("37e8")})},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,d,f,p,h=e.target,m=e.global,v=e.stat;if(n=m?i:v?i[h]||s(h,{}):(i[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=r(n,u))&&p.value:n[u],!l(m?u:h+(v?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),r=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",c=RegExp.prototype,l=c.toString,u=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=s;(u||d)&&i(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n)}),{unsafe:!0})},"277d":function(e,t,n){n("23e7")({target:"Array",stat:!0},{isArray:n("e8b5")})},"2d00":function(e,t,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,c=s&&s.versions,l=c&&c.v8;l?r=(i=l.split("."))[0]+i[1]:a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=i[1]),e.exports=r&&+r},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),o=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),a=n("df75");e.exports=i?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,c=0;s>c;)r.f(e,n=i[c++],t[n]);return e}},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),o=n("7dd0"),a="String Iterator",s=r.set,c=r.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3d02":function(e,t,n){},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"428f":function(e,t,n){var i=n("da84");e.exports=i},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),a=i("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"49b2":function(e,t,n){},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,c=i(t),l=r(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),c=a("filter");i({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),c=n("8418"),l=n("35a1");e.exports=function(e){var t,n,u,d,f,p,h=r(e),m="function"==typeof this?this:Array,v=arguments.length,g=v>1?arguments[1]:void 0,y=void 0!==g,b=l(h),_=0;if(y&&(g=i(g,v>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(h.length));t>_;_++)p=y?g(h[_],_):h[_],c(n,_,p);else for(f=(d=b.call(h)).next,n=new m;!(u=f.call(d)).done;_++)p=y?o(d,g,[u.value,_],!0):u.value,c(n,_,p);return n.length=_,n}},"4e6f":function(e,t,n){},"4fad":function(e,t,n){var i=n("23e7"),r=n("6f53").entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r="["+n("5899")+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),s=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"64c0":function(e,t,n){},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(r(t)),c=i(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),o=n("b622")("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?i(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var i,r,o,a=n("7f9a"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("5135"),d=n("f772"),f=n("d012"),p=s.WeakMap;if(a){var h=new p,m=h.get,v=h.has,g=h.set;i=function(e,t){return g.call(h,e,t),t},r=function(e){return m.call(h,e)||{}},o=function(e){return v.call(h,e)}}else{var y=d("state");f[y]=!0,i=function(e,t){return l(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:i,get:r,has:o,enforce:function(e){return o(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),c=n("69f3"),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==i?(c?!f&&e[t]&&(l=!0):delete e[t],l?e[t]=n:r(e,t,n)):l?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},"6f53":function(e,t,n){var i=n("83ab"),r=n("df75"),o=n("fc6a"),a=n("d1e7").f,s=function(e){return function(t){for(var n,s=o(t),c=r(s),l=c.length,u=0,d=[];l>u;)n=c[u++],i&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var o,a;return r&&"function"==typeof(o=t.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(e,a),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),r=n("5135"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a82":function(e,t,n){var i=n("23e7"),r=n("83ab");i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:n("9bf2").f})},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,r=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),d=u("IE_PROTO"),f=function(){},p=function(e){return" diff --git a/web/themes/custom/materiotheme/assets/dist/web_themes_custom_materiotheme_vuejs_components_Content_Card_vue.bundle.js b/web/themes/custom/materiotheme/assets/dist/web_themes_custom_materiotheme_vuejs_components_Content_Card_vue.bundle.js index a945f5c..fa5aea2 100644 --- a/web/themes/custom/materiotheme/assets/dist/web_themes_custom_materiotheme_vuejs_components_Content_Card_vue.bundle.js +++ b/web/themes/custom/materiotheme/assets/dist/web_themes_custom_materiotheme_vuejs_components_Content_Card_vue.bundle.js @@ -26,7 +26,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vuejs_components_cardMixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuejs/components/cardMixins */ \"./web/themes/custom/materiotheme/vuejs/components/cardMixins.js\");\n/* harmony import */ var vuejs_components_Content_ModalCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuejs/components/Content/ModalCard */ \"./web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue\");\n/* harmony import */ var vuejs_components_Content_MemberWarning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuejs/components/Content/MemberWarning */ \"./web/themes/custom/materiotheme/vuejs/components/Content/MemberWarning.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"Card\",\n props: ['item'],\n mixins: [vuejs_components_cardMixins__WEBPACK_IMPORTED_MODULE_0__.default],\n components: {\n ModalCard: vuejs_components_Content_ModalCard__WEBPACK_IMPORTED_MODULE_1__.default,\n MemberWarning: vuejs_components_Content_MemberWarning__WEBPACK_IMPORTED_MODULE_2__.default\n },\n data() {\n return {\n blanksrc:`${drupalSettings.path.themePath}/assets/img/blank.gif`,\n loadingFlag: false,\n new_folder_name: \"\",\n is_creating_folder: false\n // lightbox_index: null\n }\n },\n computed: {\n ...(0,vuex__WEBPACK_IMPORTED_MODULE_3__.mapState)({\n flagcolls: state => state.User.flagcolls,\n isloggedin: state => state.User.isloggedin\n }),\n collsLength() {\n return Object.keys(this.flagcolls).length\n },\n addFlagBtnClassObj() {\n return {\n 'mdi-plus-circle-outline': !this.is_creating_folder,\n 'mdi-loading': this.is_creating_folder,\n active: this.new_folder_name.length > 4 && !this.is_creating_folder,\n loading: this.is_creating_folder\n }\n }\n },\n methods: {\n ...(0,vuex__WEBPACK_IMPORTED_MODULE_3__.mapActions)({\n // refreshItem: 'Search/refreshItem',\n createFlagColl: 'User/createFlagColl',\n flagUnflag: 'User/flagUnflag'\n }),\n onCreateFlagColl () {\n console.log(\"Card onCreateFlagColl\", this.new_folder_name)\n this.is_creating_folder = true;\n this.createFlagColl(this.new_folder_name)\n .then(data => {\n console.log(\"Card onCreateFlagColl then\", data)\n this.new_folder_name = \"\";\n this.is_creating_folder = false;\n let collid = data.id\n this.loadingFlag = collid;\n this.flagUnflag({ action: 'flag', id: this.item.id, collid: collid})\n .then(data => {\n console.log(\"onFlagActionCard then\", data)\n this.loadingFlag = false;\n })\n })\n },\n flagIsActive(collid) {\n // console.log(\"Card flagIsActive\",\n // this.item.id,\n // this.flagcolls[collid].items,\n // this.flagcolls[collid].items.indexOf(this.item.id)\n // );\n // console.log(this.flagcolls[collid].items_uuids)\n // return this.flagcolls[collid].items_uuids.indexOf(this.item.uuid) !== -1;\n return this.flagcolls[collid].items.indexOf(this.item.id) !== -1;\n },\n flagIsLoading(collid) {\n // console.log(this.item.uuid)\n // console.log(this.flagcolls[collid].items_uuids)\n return collid === this.loadingFlag;\n },\n onFlagActionCard (e) {\n console.log(\"Card onFlagActionCard\", e, this.item)\n if (!this.loadingFlag) {\n let collid = e.target.getAttribute('collid');\n let isActive = this.flagIsActive(collid);\n let action = isActive ? 'unflag' : 'flag';\n // console.log('collid', collid)\n // console.log(\"this.item\", this.item)\n this.loadingFlag = collid;\n this.flagUnflag({ action: action, id: this.item.id, collid: collid})\n .then(data => {\n console.log(\"onFlagActionCard then\", data)\n this.loadingFlag = false;\n })\n }\n },\n // onClickImg (e, index) {\n // this.lightbox_index = index\n // },\n openModalCard (e) {\n console.log('openModalCard', this.isLoggedin)\n if (this.isloggedin) {\n this.$modal.show(\n vuejs_components_Content_ModalCard__WEBPACK_IMPORTED_MODULE_1__.default,\n {\n item: this.item,\n // not really an event\n // more a callback function passed as prop to the component\n addNoteId:(id) => {\n // no needs to refresh the entire item via searchresults\n // plus if we are in article, there is not searchresults\n // this.refreshItem({id: this.item.id})\n // instead create the note id directly\n this.item.note = {id: id}\n }\n },\n {\n name: `modal-${this.item.id}`,\n draggable: false,\n classes: \"vm--modale-card\",\n // this does not work\n // adaptative: true,\n // maxWidth: 850,\n // maxHeight: 610,\n width: '95%',\n height: '95%'\n }\n )\n } else {\n this.$modal.show(\n vuejs_components_Content_MemberWarning__WEBPACK_IMPORTED_MODULE_2__.default,\n {},\n {\n // name: `modal-${this.item.id}`,\n draggable: false,\n // classes: \"vm--modale-card\",\n // this does not work\n // adaptative: true,\n // maxWidth: 850,\n // maxHeight: 610,\n width: '400px',\n height: '250px'\n }\n )\n }\n }\n }\n});\n\n\n\n//# sourceURL=webpack://materio.com/./web/themes/custom/materiotheme/vuejs/components/Content/Card.vue?./node_modules/vue-loader/lib/index.js??vue-loader-options"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vuejs_components_cardMixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuejs/components/cardMixins */ \"./web/themes/custom/materiotheme/vuejs/components/cardMixins.js\");\n/* harmony import */ var vuejs_components_Content_ModalCard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuejs/components/Content/ModalCard */ \"./web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue\");\n/* harmony import */ var vuejs_components_Content_MemberWarning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuejs/components/Content/MemberWarning */ \"./web/themes/custom/materiotheme/vuejs/components/Content/MemberWarning.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"Card\",\n props: ['item'],\n mixins: [vuejs_components_cardMixins__WEBPACK_IMPORTED_MODULE_0__.default],\n components: {\n ModalCard: vuejs_components_Content_ModalCard__WEBPACK_IMPORTED_MODULE_1__.default,\n MemberWarning: vuejs_components_Content_MemberWarning__WEBPACK_IMPORTED_MODULE_2__.default\n },\n data() {\n return {\n blanksrc:`${drupalSettings.path.themePath}/assets/img/blank.gif`,\n loadingFlag: false,\n new_folder_name: \"\",\n is_creating_folder: false\n // lightbox_index: null\n }\n },\n computed: {\n ...(0,vuex__WEBPACK_IMPORTED_MODULE_3__.mapState)({\n flagcolls: state => state.User.flagcolls,\n isloggedin: state => state.User.isloggedin\n }),\n collsLength() {\n return Object.keys(this.flagcolls).length\n },\n addFlagBtnClassObj() {\n return {\n 'mdi-plus-circle-outline': !this.is_creating_folder,\n 'mdi-loading': this.is_creating_folder,\n active: this.new_folder_name.length > 4 && !this.is_creating_folder,\n loading: this.is_creating_folder\n }\n }\n },\n beforeMount () {\n console.log(this.item.id, this.samples)\n },\n methods: {\n ...(0,vuex__WEBPACK_IMPORTED_MODULE_3__.mapActions)({\n // refreshItem: 'Search/refreshItem',\n createFlagColl: 'User/createFlagColl',\n flagUnflag: 'User/flagUnflag'\n }),\n onCreateFlagColl () {\n console.log(\"Card onCreateFlagColl\", this.new_folder_name)\n this.is_creating_folder = true;\n this.createFlagColl(this.new_folder_name)\n .then(data => {\n console.log(\"Card onCreateFlagColl then\", data)\n this.new_folder_name = \"\";\n this.is_creating_folder = false;\n let collid = data.id\n this.loadingFlag = collid;\n this.flagUnflag({ action: 'flag', id: this.item.id, collid: collid})\n .then(data => {\n console.log(\"onFlagActionCard then\", data)\n this.loadingFlag = false;\n })\n })\n },\n flagIsActive(collid) {\n // console.log(\"Card flagIsActive\",\n // this.item.id,\n // this.flagcolls[collid].items,\n // this.flagcolls[collid].items.indexOf(this.item.id)\n // );\n // console.log(this.flagcolls[collid].items_uuids)\n // return this.flagcolls[collid].items_uuids.indexOf(this.item.uuid) !== -1;\n return this.flagcolls[collid].items.indexOf(this.item.id) !== -1;\n },\n flagIsLoading(collid) {\n // console.log(this.item.uuid)\n // console.log(this.flagcolls[collid].items_uuids)\n return collid === this.loadingFlag;\n },\n onFlagActionCard (e) {\n console.log(\"Card onFlagActionCard\", e, this.item)\n if (!this.loadingFlag) {\n let collid = e.target.getAttribute('collid');\n let isActive = this.flagIsActive(collid);\n let action = isActive ? 'unflag' : 'flag';\n // console.log('collid', collid)\n // console.log(\"this.item\", this.item)\n this.loadingFlag = collid;\n this.flagUnflag({ action: action, id: this.item.id, collid: collid})\n .then(data => {\n console.log(\"onFlagActionCard then\", data)\n this.loadingFlag = false;\n })\n }\n },\n // onClickImg (e, index) {\n // this.lightbox_index = index\n // },\n openModalCard (e) {\n console.log('openModalCard', this.isLoggedin)\n if (this.isloggedin) {\n this.$modal.show(\n vuejs_components_Content_ModalCard__WEBPACK_IMPORTED_MODULE_1__.default,\n {\n item: this.item,\n // not really an event\n // more a callback function passed as prop to the component\n addNoteId:(id) => {\n // no needs to refresh the entire item via searchresults\n // plus if we are in article, there is not searchresults\n // this.refreshItem({id: this.item.id})\n // instead create the note id directly\n this.item.note = {id: id}\n }\n },\n {\n name: `modal-${this.item.id}`,\n draggable: false,\n classes: \"vm--modale-card\",\n // this does not work\n // adaptative: true,\n // maxWidth: 850,\n // maxHeight: 610,\n width: '95%',\n height: '95%'\n }\n )\n } else {\n this.$modal.show(\n vuejs_components_Content_MemberWarning__WEBPACK_IMPORTED_MODULE_2__.default,\n {},\n {\n // name: `modal-${this.item.id}`,\n draggable: false,\n // classes: \"vm--modale-card\",\n // this does not work\n // adaptative: true,\n // maxWidth: 850,\n // maxHeight: 610,\n width: '400px',\n height: '250px'\n }\n )\n }\n }\n }\n});\n\n\n\n//# sourceURL=webpack://materio.com/./web/themes/custom/materiotheme/vuejs/components/Content/Card.vue?./node_modules/vue-loader/lib/index.js??vue-loader-options"); /***/ }), diff --git a/web/themes/custom/materiotheme/assets/dist/web_themes_custom_materiotheme_vuejs_components_Content_Card_vue.bundle.js.gz b/web/themes/custom/materiotheme/assets/dist/web_themes_custom_materiotheme_vuejs_components_Content_Card_vue.bundle.js.gz index a654d7ebb5b3a353f2e68e21b42169f9bc5ca98d..a7e873d89688b0b0dc44c672d2bbe967117d900f 100644 GIT binary patch literal 4659 zcmV-363p!%iwFP!000021MMAabK5rZdwvC?%h_TokxtTfTKU{enx=EP%cIjI)0?q8 z3`If`Yre{d9oN-=zg+-)fZ|K9SWc}wHxvOZ7Q2gm01HTac#k|J&)&a(@#g)@w{J$| z{hX2>y)c{}vFJtY`wp2K5t&fxktCuP>AS|&gp$b>luwPsiHYqI*SF}1^q>WG{J^DN z+*4G9{C;jn86bG{s2$H~NL<6BWa@_`2z@ItW83$L2Ve13NDa%FIF$HF93(NB+768v zw3jjB5ODUwzzFd%@{`b{tTAE;y^=}jUq;Zmz(>HGk}E$U zMo38t^LnoF!ozf6SnGLN!kK-U3Y1$>71crI8{vN4*IMYnu zo7%GkFoF?kqPC`B$1qaMj@Ur4r<9s0#7iI)qbPnGk*VQCv{%O1@%?i|S*GL=(Z7<& zhse{EO?k~;N5rwA#yG0o>jN34r#(^s`8@H?T_AX9`?~47y)$w`+G_mu7dbss)F6rG z{Zm#^2NJk6(#<4_eODLN*-QN*p}$AiGVnd1d89x0y%-+!=SFB@Y42=seea(3@Zm#^ z^i&*)#=&VEoK^&qQAP7~lX1g9dn5x~0taBH9Y56AZiL4ag)8~Q2mL*Rj4d>PU|5<8^2u8@--2=Jl@P)HPqwi)-1@3Gn1 ztEjGq{R+s+@z~QIg4zjP-@79GJxE?vhpN@D#O=BU1Q4z#X4<$nB7KH1fcWjjkH0*7 z{$Ks47e7Dy@anz(;(x!q{q;TIQUh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I zf@}WkrdDhuk~G#5F+UqiO|iVP!SD555x$D(RsAGpQh;Jw8o8CC6&sCMHea$@x4#2` zYu)#JZ3O%ZGciYTWTEOuJmTcWrR)b(JZd|sXCPvP?FsS6KBb3^ zBfy_9VZCKPXi_t`8^VRPLWDKKf^~LsoAgtaypmq2yCAe6vM{5p2-VJ#@5xv8@F5^Q z2S9wMUNi7#rr#%#6Nc0lKkRT&H;jI%w4JXtsqDVz?LVZM9h68sm5Z*BVGuHSlB-_cnHD`%<3;SP zvQeD%{UIPzN-zk+A3iWG3mjg20)K$~cye;`7s6|rZcJ{1l>J5mv;cL3zs$fXAbYK9 zjrSrRE_#PVW_>V}Gl0jGJchIc@rQSi$R}=eTR(-bLnQt$aD0*qskm4E-nv(--HGG( S=+W{*J^eQcAu;|HhX4R8eDXyA diff --git a/web/themes/custom/materiotheme/vuejs/components/Content/Card.vue b/web/themes/custom/materiotheme/vuejs/components/Content/Card.vue index f40315b..011b5f7 100644 --- a/web/themes/custom/materiotheme/vuejs/components/Content/Card.vue +++ b/web/themes/custom/materiotheme/vuejs/components/Content/Card.vue @@ -131,6 +131,9 @@ export default { } } }, + beforeMount () { + console.log(this.item.id, this.samples) + }, methods: { ...mapActions({ // refreshItem: 'Search/refreshItem', diff --git a/web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue b/web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue index 26ea363..2a6f0d6 100644 --- a/web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue +++ b/web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue @@ -421,9 +421,9 @@ export default { } // delay the lazyload to let the card the time to update dom // maybe not the best method - setTimeout(function () { - this.activateLazyLoad() - }.bind(this), 5) + // setTimeout(function () { + // this.activateLazyLoad() + // }.bind(this), 5) }) .catch(error => { console.warn('Issue with loadMaterial', error) diff --git a/web/themes/custom/materiotheme/vuejs/components/cardMixins.js b/web/themes/custom/materiotheme/vuejs/components/cardMixins.js index 8f3cb2a..6b76f2d 100644 --- a/web/themes/custom/materiotheme/vuejs/components/cardMixins.js +++ b/web/themes/custom/materiotheme/vuejs/components/cardMixins.js @@ -3,7 +3,7 @@ export default { directives: { lazy: { bind (figure, binding) { - // console.log('lazy bind', figure, binding) + console.log('directive lazy bind', figure, binding) // show only the first image if (binding.value === 0) { const img = figure.querySelector('img:not(.blank)') @@ -52,7 +52,7 @@ export default { } } }, - mounted () { + updated () { // lazy load images on mouseover console.log('card mounted', this.$options.name) // if (this.$options.name ==! 'ModalCard') { @@ -89,7 +89,7 @@ export default { } // , // methods: { - // // not used + // // used by ModalCard // activateLazyLoad () { // console.log('card activateLazyLoad', this.$options.name)