From 4d32f11ad0c667510f2633b5ab0e85f00d40e49b Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Wed, 29 Dec 2021 14:54:40 +0100 Subject: fix template picker for file actions using the fileInfoModel Signed-off-by: Julien Veyssier Signed-off-by: nextcloud-command --- apps/files/js/dist/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/js/dist/main.js') diff --git a/apps/files/js/dist/main.js b/apps/files/js/dist/main.js index a8a7fb7f62c..1e8385d7721 100644 --- a/apps/files/js/dist/main.js +++ b/apps/files/js/dist/main.js @@ -50,7 +50,7 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * - */e.default=r.a},3:function(t,e,n){"use strict";function r(t,e,n,r,a,o,i,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=l):a&&(l=s?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},92:function(t,e,n){"use strict";var r=n(0),a=n.n(r),o=n(1),i=n.n(o)()(a.a);i.push([t.i,".material-design-icon[data-v-2dc16832]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.empty-content[data-v-2dc16832]{display:flex;align-items:center;flex-direction:column;margin-top:20vh}.empty-content__icon[data-v-2dc16832]{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 15px;opacity:.4;background-repeat:no-repeat;background-position:center;background-size:64px}.empty-content__icon svg[data-v-2dc16832]{width:64px;height:64px}.empty-content__title[data-v-2dc16832]{margin-bottom:10px}\n","",{version:3,sources:["webpack://./../../assets/material-icons.css","webpack://./EmptyContent.vue"],names:[],mappings:"AAGA,uCACC,YAAa,CACb,iBAAkB,CAClB,mBAAoB,CACpB,kBAAmB,CACnB,sBAAuB,CCmFxB,gCACC,YAAa,CACb,kBAAmB,CACnB,qBAAsB,CACtB,eAAgB,CAEhB,sCACC,YAAa,CACb,kBAAmB,CACnB,sBAAuB,CACvB,UAAW,CACX,WAAY,CACZ,kBAAmB,CACnB,UAAW,CACX,2BAA4B,CAC5B,0BAA2B,CAC3B,oBAAqB,CAVrB,0CAaC,UAAW,CACX,WAAY,CACZ,uCAID,kBAAmB",sourcesContent:["/*\n* Ensure proper alignment of the vue material icons\n*/\n.material-design-icon {\n\tdisplay: flex;\n\talign-self: center;\n\tjustify-self: center;\n\talign-items: center;\n\tjustify-content: center;\n}\n","$scope_version:\"0a7f1bc\"; @import 'variables'; @import 'material-icons';\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.empty-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tmargin-top: 20vh;\n\n\t&__icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 64px;\n\t\theight: 64px;\n\t\tmargin: 0 auto 15px;\n\t\topacity: .4;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: 64px;\n\n\t\tsvg {\n\t\t\twidth: 64px;\n\t\t\theight: 64px;\n\t\t}\n\t}\n\n\t&__title {\n\t\tmargin-bottom: 10px;\n\t}\n}\n\n"],sourceRoot:""}]),e.a=i},93:function(t,e){},99:function(t,e,n){"use strict";var r={name:"EmptyContent",props:{icon:{type:String,default:""}}},a=n(2),o=n.n(a),i=n(92),s=(o()(i.a,{insert:"head",singleton:!1}),i.a.locals,n(3)),l=n(93),u=n.n(l),c=Object(s.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"empty-content",attrs:{role:"note"}},[e("div",{staticClass:"empty-content__icon",class:this.icon,attrs:{role:"img"}},[this._t("icon")],2),this._v(" "),e("h2",{staticClass:"empty-content__title"},[this._t("default")],2),this._v(" "),e("p",{directives:[{name:"show",rawName:"v-show",value:this.$slots.desc,expression:"$slots.desc"}]},[this._t("desc")],2)])}),[],!1,null,"2dc16832",null);"function"==typeof u.a&&u()(c),e.a=c.exports}})},function(t,e,n){var r=n(1).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(39),a=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?a(n+e,0):o(n,e)}},function(t,e,n){var r=n(2),a=n(3),o=n(4),i=n(66),s=n(28),l=n(60),u=function(){},c=[],p=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),h=!f.exec(u),m=function(t){if(!o(t))return!1;try{return p(u,c,t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(f,l(t))}catch(t){return!0}};v.sham=!0,t.exports=!p||a((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?v:m},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){"use strict";var r=n(55),a=n(15),o=n(37);t.exports=function(t,e,n){var i=r(e);i in t?a.f(t,i,o(0,n)):t[i]=n}},function(t,e,n){var r=n(3),a=n(1).RegExp,o=r((function(){var t=a("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),i=o||r((function(){return!a("a","y").sticky})),s=o||r((function(){var t=a("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:i,UNSUPPORTED_Y:o}},function(t,e){var n=Function.prototype,r=n.apply,a=n.bind,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(a?o.bind(r):function(){return o.apply(r,arguments)})},function(t,e,n){"use strict";n(52);var r=n(2),a=n(20),o=n(53),i=n(3),s=n(5),l=n(19),u=s("species"),c=RegExp.prototype;t.exports=function(t,e,n,p){var f=s(t),d=!i((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),h=d&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!h||n){var m=r(/./[f]),v=e(f,""[t],(function(t,e,n,a,i){var s=r(t),l=e.exec;return l===o||l===c.exec?d&&!i?{done:!0,value:m(e,n,a)}:{done:!0,value:s(n,e,a)}:{done:!1}}));a(String.prototype,t,v[0]),a(c,f,v[1])}p&&l(c[f],"sham",!0)}},function(t,e,n){"use strict";var r=n(181).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(1),a=n(12),o=n(10),i=n(4),s=n(32),l=n(53),u=r.TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var r=a(n,t,e);return null!==r&&o(r),r}if("RegExp"===s(t))return a(l,t,e);throw u("RegExp#exec called on incompatible receiver")}},function(t,e,n){(function(e){var n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/,a=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=/^\[object .+?Constructor\]$/,l="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")();var p,f=Array.prototype,d=Function.prototype,h=Object.prototype,m=c["__core-js_shared__"],v=(p=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",g=d.toString,y=h.hasOwnProperty,b=h.toString,A=RegExp("^"+g.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=c.Symbol,C=f.splice,w=L(c,"Map"),_=L(Object,"create"),T=x?x.prototype:void 0,E=T?T.toString:void 0;function S(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1},k.prototype.set=function(t,e){var n=this.__data__,r=j(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},O.prototype.clear=function(){this.__data__={hash:new S,map:new(w||k),string:new S}},O.prototype.delete=function(t){return B(this,t).delete(t)},O.prototype.get=function(t){return B(this,t).get(t)},O.prototype.has=function(t){return B(this,t).has(t)},O.prototype.set=function(t,e){return B(this,t).set(t,e),this};var F=R((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(D(t))return E?E.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return a.test(t)&&n.push(""),t.replace(o,(function(t,e,r,a){n.push(r?a.replace(i,"$1"):e||t)})),n}));function I(t){if("string"==typeof t||D(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function R(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=t.apply(this,r);return n.cache=o.set(a,i),i};return n.cache=new(R.Cache||O),n}R.Cache=O;var $=Array.isArray;function M(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function D(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==b.call(t)}t.exports=function(t,e,n){var r=null==t?void 0:N(t,e);return void 0===r?n:r}}).call(this,n(8))},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLoggerBuilder=o,e.getLogger=function(){return o().build()};var r=n(316),a=n(318);function o(){return new a.LoggerBuilder(r.buildConsoleLogger)}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(a.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(156),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(8))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,a,o,i,s,l=1,u={},c=!1,p=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){o.port2.postMessage(t)}):p&&"onreadystatechange"in p.createElement("script")?(a=p.documentElement,r=function(t){var e=p.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(i="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(i)&&h(+e.data.slice(i.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(i+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;nc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(3),a=n(4),o=/#|\.prototype\./,i=function(t,e){var n=l[s(t)];return n==c||n!=u&&(a(e)?r(e):!!e)},s=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},function(t,e,n){"use strict";var r=n(138).forEach,a=n(145)("forEach");t.exports=a?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(2),a=n(87),o=r(r.bind);t.exports=function(t,e){return a(t),void 0===e?t:o?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(1),a=n(98),o=n(144),i=n(13),s=n(5)("species"),l=r.Array;t.exports=function(t){var e;return a(t)&&(e=t.constructor,(o(e)&&(e===l||a(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?l:e}},function(t,e,n){"use strict";n.r(e),function(t,r){n.d(e,"emit",(function(){return Oa})),n.d(e,"subscribe",(function(){return Sa})),n.d(e,"unsubscribe",(function(){return ka}));var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function o(t){var e={exports:{}};return t(e,e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof a&&a)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},u=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,f={f:p&&!c.call({1:2},1)?function(t){var e=p(this,t);return!!e&&e.enumerable}:c},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,m=function(t){return h.call(t).slice(8,-1)},v="".split,g=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==m(t)?v.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return g(y(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},x=function(t,e){if(!A(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!A(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},C=function(t){return Object(y(t))},w={}.hasOwnProperty,_=function(t,e){return w.call(C(t),e)},T=s.document,E=A(T)&&A(T.createElement),S=function(t){return E?T.createElement(t):{}},k=!u&&!l((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,j={f:u?O:function(t,e){if(t=b(t),e=x(e,!0),k)try{return O(t,e)}catch(t){}if(_(t,e))return d(!f.f.call(t,e),t[e])}},N=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,B={f:u?P:function(t,e,n){if(N(t),e=x(e,!0),N(n),k)try{return P(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},L=u?function(t,e,n){return B.f(t,e,d(1,n))}:function(t,e,n){return t[e]=n,t},F=function(t,e){try{L(s,t,e)}catch(n){s[t]=e}return e},I=s["__core-js_shared__"]||F("__core-js_shared__",{}),R=Function.toString;"function"!=typeof I.inspectSource&&(I.inspectSource=function(t){return R.call(t)});var $,M,D,U=I.inspectSource,z=s.WeakMap,G="function"==typeof z&&/native code/.test(U(z)),V=o((function(t){(t.exports=function(t,e){return I[t]||(I[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.11.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),H=0,W=Math.random(),q=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++H+W).toString(36)},X=V("keys"),K=function(t){return X[t]||(X[t]=q(t))},Y={},Z=s.WeakMap;if(G){var J=I.state||(I.state=new Z),Q=J.get,tt=J.has,et=J.set;$=function(t,e){if(tt.call(J,t))throw new TypeError("Object already initialized");return e.facade=t,et.call(J,t,e),e},M=function(t){return Q.call(J,t)||{}},D=function(t){return tt.call(J,t)}}else{var nt=K("state");Y[nt]=!0,$=function(t,e){if(_(t,nt))throw new TypeError("Object already initialized");return e.facade=t,L(t,nt,e),e},M=function(t){return _(t,nt)?t[nt]:{}},D=function(t){return _(t,nt)}}var rt={set:$,get:M,has:D,enforce:function(t){return D(t)?M(t):$(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},at=o((function(t){var e=rt.get,n=rt.enforce,r=String(String).split("String");(t.exports=function(t,e,a,o){var i,l=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof a&&("string"!=typeof e||_(a,"name")||L(a,"name",e),(i=n(a)).source||(i.source=r.join("string"==typeof e?e:""))),t!==s?(l?!c&&t[e]&&(u=!0):delete t[e],u?t[e]=a:L(t,e,a)):u?t[e]=a:F(e,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||U(this)}))})),ot=s,it=function(t){return"function"==typeof t?t:void 0},st=function(t,e){return arguments.length<2?it(ot[t])||it(s[t]):ot[t]&&ot[t][e]||s[t]&&s[t][e]},lt=Math.ceil,ut=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?ut:lt)(t)},pt=Math.min,ft=function(t){return t>0?pt(ct(t),9007199254740991):0},dt=Math.max,ht=Math.min,mt=function(t){return function(e,n,r){var a,o=b(e),i=ft(o.length),s=function(t,e){var n=ct(t);return n<0?dt(n+e,0):ht(n,e)}(r,i);if(t&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},vt={includes:mt(!0),indexOf:mt(!1)}.indexOf,gt=function(t,e){var n,r=b(t),a=0,o=[];for(n in r)!_(Y,n)&&_(r,n)&&o.push(n);for(;e.length>a;)_(r,n=e[a++])&&(~vt(o,n)||o.push(n));return o},yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=yt.concat("length","prototype"),At={f:Object.getOwnPropertyNames||function(t){return gt(t,bt)}},xt={f:Object.getOwnPropertySymbols},Ct=st("Reflect","ownKeys")||function(t){var e=At.f(N(t)),n=xt.f;return n?e.concat(n(t)):e},wt=function(t,e){for(var n=Ct(e),r=B.f,a=j.f,o=0;oo;)B.f(t,n=r[o++],e[n]);return t},$t=st("document","documentElement"),Mt=K("IE_PROTO"),Dt=function(){},Ut=function(t){return"