milnode
Version:
Vue.js Component Framework, build on top of vuetify
2 lines • 6.36 kB
JavaScript
(function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n(require("vue")):"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["milnode"]=n(require("vue")):e["milnode"]=n(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="fb15")}({"8bbf":function(n,t){n.exports=e},ca9a:function(e,n,t){},fb15:function(e,n,t){"use strict";var r;(t.r(n),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(t.p=r[1]));t("ca9a");var o=t("8bbf"),i=t.n(o),a={feedback:{title:"Your feedback",catch:"Your opinion is precious!",explain:"Share your feedback with us. All your comments and ratings challenge us to continuously improve WebOptis.",comment:"Comment",send:"Send your feedback",privacy:"Your feedback is anonymous. No personal data is linked with your rating and comment.",success:"Thanks for your feedback!"}};function c(e,n,t){var r=n.length-1;if(r<0)return void 0===e?t:e;for(var o=0;o<r;o++){if(null==e)return t;e=e[n[o]]}return null==e?t:void 0===e[n[r]]?t:e[n[r]]}function u(e,n,t){return n&&n.constructor===String?(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),c(e,n.split("."),t)):t}function l(e,n,t){if(t&&(n={_isVue:!0,$parent:t,$options:n}),n){if(n.$_alreadyWarned=n.$_alreadyWarned||[],n.$_alreadyWarned.includes(e))return;n.$_alreadyWarned.push(e)}return"[MilNode] ".concat(e)+(n?b(n):"")}function s(e,n,t){var r=l(e,n,t);null!=r&&console.warn(r)}function f(e,n,t){var r=l(e,n,t);null!=r&&console.error(r)}var d=/(?:^|[-_])(\w)/g,p=function(e){return e.replace(d,function(e){return e.toUpperCase()}).replace(/[-_]/g,"")};function v(e,n){if(e.$root===e)return"<Root>";var t="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=t.name||t._componentTag,o=t.__file;if(!r&&o){var i=o.match(/([^\/\\]+)\.vue$/);r=i&&i[1]}return(r?"<".concat(p(r),">"):"<Anonymous>")+(o&&!1!==n?" at ".concat(o):"")}function b(e){if(e._isVue&&e.$parent){var n=[],t=0;while(e){if(n.length>0){var r=n[n.length-1];if(r.constructor===e.constructor){t++,e=e.$parent;continue}t>0&&(n[n.length-1]=[r,t],t=0)}n.push(e),e=e.$parent}return"\n\nfound in\n\n"+n.map(function(e,n){return"".concat(0===n?"---\x3e ":" ".repeat(5+2*n)).concat(Array.isArray(e)?"".concat(v(e[0]),"... (").concat(e[1]," recursive calls)"):v(e))}).join("\n")}return"\n\n(found in ".concat(v(e),")")}var y="$milnode.",m=Symbol("Lang fallback");function _(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.replace(y,""),o=u(e,r,m);return o===m&&(t?(f('Translation key "'.concat(r,'" not found in fallback')),o=n):(s('Translation key "'.concat(r,'" not found, falling back to default')),o=_(a,n,!0))),o}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{locales:Object.assign({en:a},e.locales),current:e.current||"en",t:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(!n.startsWith(y))return n;if(e.t)return e.t.apply(e,[n].concat(r));var i=_(this.locales[this.current],n);return i.replace(/\{(\d+)\}/g,function(e,n){return String(r[+n])})}}}var g={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed){this.installed=!0,i.a!==e&&f("Multiple instances of Vue detected!");var t=h(n.lang);e.prototype.$milnode=new e({data:{lang:t},methods:{t:t.t.bind(t)}}),r(n.components)}function r(n){if(n){for(var t in n){var o=n[t];o&&!r(o.$_milnode_subcomponents)&&e.component(t,o)}return!0}return!1}}},$=g,w=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-tooltip",{attrs:{bottom:""}},[t("v-btn",{staticClass:"ma-0 error--text",attrs:{slot:"activator","aria-label":e.$t("Delete"),disabled:e.disabled,icon:""},on:{click:function(n){e.$emit("click")}},slot:"activator"},[t("v-icon",[e._v("delete")])],1),t("span",[e._v(e._s(e.$t("Delete")))])],1)},j=[],O={props:{disabled:{type:Boolean,default:!1}}},S=O;function x(e,n,t,r,o,i,a,c){var u,l="function"===typeof e?e.options:e;if(n&&(l.render=n,l.staticRenderFns=t,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var s=l.render;l.render=function(e,n){return u.call(n),s(e,n)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:l}}var k=x(S,w,j,!1,null,null,null);k.options.__file="BtnDelete.vue";var C=k.exports,T={BtnDelete:C};function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){V(e,n,t[n])})}return e}function V(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var E={install:function(e,n){e.use($,P({Components:T},n))}};"undefined"!==typeof window&&window.Vue&&window.Vue.use(E);var M=E;n["default"]=M}})});
//# sourceMappingURL=milnode.umd.min.js.map