@mcwv/base
Advanced tools
Comparing version 0.1.2 to 0.1.4
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.base=e():(t.wcmv=t.wcmv||{},t.wcmv.base=e())}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([,,,function(t,e,n){"use strict";n.r(e);var o=n(17);n.d(e,"applyPassive",function(){return o.a});var i=n(24);n.d(e,"autoInit",function(){return i.a});var r=n(6);n.d(e,"BasePlugin",function(){return r.a});var s=n(8);n.d(e,"CustomElement",function(){return s.a}),n.d(e,"CustomElementMixin",function(){return s.b});var u=n(18);n.d(e,"CustomLink",function(){return u.a}),n.d(e,"CustomLinkMixin",function(){return u.b});var c=n(12);n.d(e,"emitCustomEvent",function(){return c.a});var a=n(19);n.d(e,"CustomButton",function(){return a.a}),n.d(e,"CustomButtonMixin",function(){return a.b});var l=n(21);n.d(e,"extractIconProp",function(){return l.a});var p=n(10);n.d(e,"DispatchEventMixin",function(){return p.a});var d=n(13);n.d(e,"DispatchFocusMixin",function(){return d.a});var f=n(11);n.d(e,"VMAUniqueIdMixin",function(){return f.a})},,,function(t,e,n){"use strict";function o(t){return{version:"__VERSION__",install:e=>{for(let n in t){let o=t[n];e.component(o.name,o)}},components:t}}n.d(e,"a",function(){return o})},,function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});const o={functional:!0,render:(t,e)=>t(e.props.is||e.props.tag||"div",e.data,e.children)},i={components:{CustomElement:o}}},,function(t,e,n){"use strict";n.d(e,"a",function(){return o});const o={props:{event:String,"event-target":Object,"event-args":Array},methods:{dispatchEvent(t){if(t&&this.$emit(t.type,t),this.event){let t=this.eventTarget||this.$root,e=this.eventArgs||[];t.$emit(this.event,...e)}}},computed:{listeners(){return{...this.$listeners,click:t=>this.dispatchEvent(t)}}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});const o=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",i={beforeCreate(){this.vma_uid_=o+this._uid}}},function(t,e,n){"use strict";function o(t,e,n,o=!1){let i;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:n,bubbles:o}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,o,!1,n),t.dispatchEvent(i)}n.d(e,"a",function(){return o})},function(t,e,n){"use strict";n.d(e,"a",function(){return o});const o={data:()=>({hasFocus:!1}),methods:{onMouseDown(){this._active=!0},onMouseUp(){this._active=!1},onFocusEvent(){setTimeout(()=>this.dispatchFocusEvent(),0)},onBlurEvent(){this._active||setTimeout(()=>this.dispatchFocusEvent(),0)},dispatchFocusEvent(){let t=this.$el===document.activeElement||this.$el.contains(document.activeElement);t!=this.hasFocus&&(this.$emit(t?"focus":"blur"),this.hasFocus=t)}},mounted(){this.$el.addEventListener("focusin",this.onFocusEvent),this.$el.addEventListener("focusout",this.onBlurEvent),this.$el.addEventListener("mousedown",this.onMouseDown),this.$el.addEventListener("mouseup",this.onMouseUp)},beforeDestroy(){this.$el.removeEventListener("focusin",this.onFocusEvent),this.$el.removeEventListener("focusout",this.onBlurEvent),this.$el.removeEventListener("mousedown",this.onMouseDown),this.$el.removeEventListener("mouseup",this.onMouseUp)}}},,,,function(t,e,n){"use strict";let o;function i(t=window,e=!1){if(void 0===o||e){let e=!1;try{t.document.addEventListener("test",null,{get passive(){return e={passive:!0}}})}catch(t){}o=e}return o}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});const o={name:"custom-link",functional:!0,props:{tag:{type:String,default:"a"},link:Object},render(t,e){let n,o=Object.assign({},e.data);return e.props.link&&e.parent.$router?(n=e.parent.$root.$options.components.RouterLink,o.props=Object.assign({tag:e.props.tag},e.props.link),o.on.click&&(o.nativeOn={click:o.on.click})):n=e.props.tag,t(n,o,e.children)}},i={props:{to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String},computed:{link(){return this.to&&{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass}}},components:{CustomLink:o}}},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});const o={name:"custom-button",functional:!0,props:{link:Object},render(t,e){let n,o=Object.assign({},e.data);return e.props.link&&e.parent.$router?(n=e.parent.$root.$options.components.RouterLink,o.props=Object.assign({tag:e.props.tag},e.props.link),o.attrs.role="button",o.on.click&&(o.nativeOn={click:o.on.click})):o.attrs&&o.attrs.href?(n="a",o.attrs.role="button"):n="button",t(n,o,e.children)}},i={props:{href:String,disabled:Boolean,to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String},computed:{link(){return this.to&&{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass}}},components:{CustomButton:o}}},,function(t,e,n){"use strict";function o(t){return"string"==typeof t?{classes:{"material-icons":!0},content:t}:t instanceof Array?{classes:t.reduce((t,e)=>Object.assign(t,{[e]:!0}),{})}:"object"==typeof t?{classes:t.className.split(" ").reduce((t,e)=>Object.assign(t,{[e]:!0}),{}),content:t.textContent}:void 0}n.d(e,"a",function(){return o})},,,function(t,e,n){"use strict";(function(t){function o(e){let n=null;"undefined"!=typeof window?n=window.Vue:void 0!==t&&(n=t.Vue),n&&n.use(e)}n.d(e,"a",function(){return o})}).call(this,n(26))},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.base=e():(t.mcwv=t.mcwv||{},t.mcwv.base=e())}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([,,,function(t,e,n){"use strict";n.r(e);var o=n(16);n.d(e,"applyPassive",function(){return o.a});var i=n(24);n.d(e,"autoInit",function(){return i.a});var r=n(6);n.d(e,"BasePlugin",function(){return r.a});var s=n(8);n.d(e,"CustomElement",function(){return s.a}),n.d(e,"CustomElementMixin",function(){return s.b});var u=n(17);n.d(e,"CustomLink",function(){return u.a}),n.d(e,"CustomLinkMixin",function(){return u.b});var c=n(12);n.d(e,"emitCustomEvent",function(){return c.a});var a=n(18);n.d(e,"CustomButton",function(){return a.a}),n.d(e,"CustomButtonMixin",function(){return a.b});var l=n(22);n.d(e,"extractIconProp",function(){return l.a});var p=n(10);n.d(e,"DispatchEventMixin",function(){return p.a});var d=n(13);n.d(e,"DispatchFocusMixin",function(){return d.a});var f=n(11);n.d(e,"VMAUniqueIdMixin",function(){return f.a})},,,function(t,e,n){"use strict";function o(t){return{version:"__VERSION__",install:e=>{for(let n in t){let o=t[n];e.component(o.name,o)}},components:t}}n.d(e,"a",function(){return o})},,function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});const o={functional:!0,render:(t,e)=>t(e.props.is||e.props.tag||"div",e.data,e.children)},i={components:{CustomElement:o}}},,function(t,e,n){"use strict";n.d(e,"a",function(){return o});const o={props:{event:String,"event-target":Object,"event-args":Array},methods:{dispatchEvent(t){if(t&&this.$emit(t.type,t),this.event){let t=this.eventTarget||this.$root,e=this.eventArgs||[];t.$emit(this.event,...e)}}},computed:{listeners(){return{...this.$listeners,click:t=>this.dispatchEvent(t)}}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});const o=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",i={beforeCreate(){this.vma_uid_=o+this._uid}}},function(t,e,n){"use strict";function o(t,e,n,o=!1){let i;"function"==typeof CustomEvent?i=new CustomEvent(e,{detail:n,bubbles:o}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,o,!1,n),t.dispatchEvent(i)}n.d(e,"a",function(){return o})},function(t,e,n){"use strict";n.d(e,"a",function(){return o});const o={data:()=>({hasFocus:!1}),methods:{onMouseDown(){this._active=!0},onMouseUp(){this._active=!1},onFocusEvent(){setTimeout(()=>this.dispatchFocusEvent(),0)},onBlurEvent(){this._active||setTimeout(()=>this.dispatchFocusEvent(),0)},dispatchFocusEvent(){let t=this.$el===document.activeElement||this.$el.contains(document.activeElement);t!=this.hasFocus&&(this.$emit(t?"focus":"blur"),this.hasFocus=t)}},mounted(){this.$el.addEventListener("focusin",this.onFocusEvent),this.$el.addEventListener("focusout",this.onBlurEvent),this.$el.addEventListener("mousedown",this.onMouseDown),this.$el.addEventListener("mouseup",this.onMouseUp)},beforeDestroy(){this.$el.removeEventListener("focusin",this.onFocusEvent),this.$el.removeEventListener("focusout",this.onBlurEvent),this.$el.removeEventListener("mousedown",this.onMouseDown),this.$el.removeEventListener("mouseup",this.onMouseUp)}}},,,function(t,e,n){"use strict";let o;function i(t=window,e=!1){if(void 0===o||e){let e=!1;try{t.document.addEventListener("test",null,{get passive(){return e={passive:!0}}})}catch(t){}o=e}return o}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});const o={name:"custom-link",functional:!0,props:{tag:{type:String,default:"a"},link:Object},render(t,e){let n,o=Object.assign({},e.data);return e.props.link&&e.parent.$router?(n=e.parent.$root.$options.components.RouterLink,o.props=Object.assign({tag:e.props.tag},e.props.link),o.on.click&&(o.nativeOn={click:o.on.click})):n=e.props.tag,t(n,o,e.children)}},i={props:{to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String},computed:{link(){return this.to&&{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass}}},components:{CustomLink:o}}},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});const o={name:"custom-button",functional:!0,props:{link:Object},render(t,e){let n,o=Object.assign({},e.data);return e.props.link&&e.parent.$router?(n=e.parent.$root.$options.components.RouterLink,o.props=Object.assign({tag:e.props.tag},e.props.link),o.attrs.role="button",o.on.click&&(o.nativeOn={click:o.on.click})):o.attrs&&o.attrs.href?(n="a",o.attrs.role="button"):n="button",t(n,o,e.children)}},i={props:{href:String,disabled:Boolean,to:[String,Object],exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String},computed:{link(){return this.to&&{to:this.to,exact:this.exact,append:this.append,replace:this.replace,activeClass:this.activeClass,exactActiveClass:this.exactActiveClass}}},components:{CustomButton:o}}},,,,function(t,e,n){"use strict";function o(t){return"string"==typeof t?{classes:{"material-icons":!0},content:t}:t instanceof Array?{classes:t.reduce((t,e)=>Object.assign(t,{[e]:!0}),{})}:"object"==typeof t?{classes:t.className.split(" ").reduce((t,e)=>Object.assign(t,{[e]:!0}),{}),content:t.textContent}:void 0}n.d(e,"a",function(){return o})},,function(t,e,n){"use strict";(function(t){function o(e){let n=null;"undefined"!=typeof window?n=window.Vue:void 0!==t&&(n=t.Vue),n&&n.use(e)}n.d(e,"a",function(){return o})}).call(this,n(27))},,,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])}); | ||
//# sourceMappingURL=mcwv.base.min.js.map |
{ | ||
"name": "@mcwv/base", | ||
"description": "The set of base classes for Vue material componnents", | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"license": "MIT", | ||
@@ -11,3 +11,3 @@ "repository": { | ||
"sideEffects": false, | ||
"gitHead": "ea9652c4b2e84843a94b7fdba14a7965651409e1" | ||
"gitHead": "71d886122cf3ae3d77a8e1648a56a23d02345c3e" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37420