New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mcwv/base

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcwv/base - npm Package Compare versions

Comparing version 0.1.12 to 0.2.0

5

base-plugin.js

@@ -5,4 +5,5 @@ export function BasePlugin(components) {

install: vm => {
for (let key in components) {
let component = components[key];
// eslint-disable-next-line guard-for-in
for (const key in components) {
const component = components[key];
vm.component(component.name, component);

@@ -9,0 +10,0 @@ }

@@ -0,1 +1,2 @@

/* eslint-disable quote-props */
export const DispatchEventMixin = {

@@ -11,4 +12,4 @@ props: {

if (this.event) {
let target = this.eventTarget || this.$root;
let args = this.eventArgs || [];
const target = this.eventTarget || this.$root;
const args = this.eventArgs || [];
target.$emit(this.event, ...args);

@@ -15,0 +16,0 @@ }

2

dist/mcwv.base.min.js

@@ -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.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=1)}([,function(t,e,n){"use strict";n.r(e);var o=n(11);n.d(e,"applyPassive",function(){return o.a});var i=n(17);n.d(e,"autoInit",function(){return i.a});var s=n(3);n.d(e,"BasePlugin",function(){return s.a});var r=n(12);n.d(e,"CustomButton",function(){return r.a}),n.d(e,"CustomButtonMixin",function(){return r.b});var u=n(4);n.d(e,"CustomElement",function(){return u.a}),n.d(e,"CustomElementMixin",function(){return u.b});var c=n(8);n.d(e,"emitCustomEvent",function(){return c.a});var a=n(16);n.d(e,"extractIconProp",function(){return a.a});var l=n(13);n.d(e,"CustomLink",function(){return l.a}),n.d(e,"CustomLinkMixin",function(){return l.b});var p=n(6);n.d(e,"DispatchEventMixin",function(){return p.a});var d=n(9);n.d(e,"DispatchFocusMixin",function(){return d.a});var f=n(7);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(){const 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-button",functional:!0,props:{link:Object},render(t,e){let n;const 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";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;const 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";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(19))},,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,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.base=n():(t.mcwv=t.mcwv||{},t.mcwv.base=n())}(window,function(){return function(t){var n={};function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(o,i,function(n){return t[n]}.bind(null,i));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=0)}([function(t,n,e){"use strict";e.r(n);var o=e(10);e.d(n,"applyPassive",function(){return o.a});var i=e(16);e.d(n,"autoInit",function(){return i.a});var s=e(2);e.d(n,"BasePlugin",function(){return s.a});var r=e(11);e.d(n,"CustomButton",function(){return r.a}),e.d(n,"CustomButtonMixin",function(){return r.b});var c=e(3);e.d(n,"CustomElement",function(){return c.a}),e.d(n,"CustomElementMixin",function(){return c.b});var u=e(7);e.d(n,"emitCustomEvent",function(){return u.a});var a=e(15);e.d(n,"extractIconProp",function(){return a.a});var l=e(12);e.d(n,"CustomLink",function(){return l.a}),e.d(n,"CustomLinkMixin",function(){return l.b});var p=e(5);e.d(n,"DispatchEventMixin",function(){return p.a});var d=e(8);e.d(n,"DispatchFocusMixin",function(){return d.a});var f=e(6);e.d(n,"VMAUniqueIdMixin",function(){return f.a})},,function(t,n,e){"use strict";function o(t){return{version:"__VERSION__",install:n=>{for(const e in t){const o=t[e];n.component(o.name,o)}},components:t}}e.d(n,"a",function(){return o})},function(t,n,e){"use strict";e.d(n,"a",function(){return o}),e.d(n,"b",function(){return i});const o={functional:!0,render:(t,n)=>t(n.props.is||n.props.tag||"div",n.data,n.children)},i={components:{CustomElement:o}}},,function(t,n,e){"use strict";e.d(n,"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){const t=this.eventTarget||this.$root,n=this.eventArgs||[];t.$emit(this.event,...n)}}},computed:{listeners(){return{...this.$listeners,click:t=>this.dispatchEvent(t)}}}}},function(t,n,e){"use strict";e.d(n,"a",function(){return i});const o=Math.floor(Math.random()*Math.floor(268435456)).toString()+"-",i={beforeCreate(){this.vma_uid_=o+this._uid}}},function(t,n,e){"use strict";function o(t,n,e,o=!1){let i;"function"==typeof CustomEvent?i=new CustomEvent(n,{detail:e,bubbles:o}):(i=document.createEvent("CustomEvent")).initCustomEvent(n,o,!1,e),t.dispatchEvent(i)}e.d(n,"a",function(){return o})},function(t,n,e){"use strict";e.d(n,"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(){const 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,n,e){"use strict";let o;function i(t=window,n=!1){if(void 0===o||n){let n=!1;try{t.document.addEventListener("test",null,{get passive(){return n={passive:!0}}})}catch(t){}o=n}return o}e.d(n,"a",function(){return i})},function(t,n,e){"use strict";e.d(n,"a",function(){return o}),e.d(n,"b",function(){return i});const o={name:"custom-button",functional:!0,props:{link:Object},render(t,n){let e;const o=Object.assign({},n.data);return n.props.link&&n.parent.$router?(e=n.parent.$root.$options.components.RouterLink,o.props=Object.assign({tag:n.props.tag},n.props.link),o.attrs.role="button",o.on.click&&(o.nativeOn={click:o.on.click})):o.attrs&&o.attrs.href?(e="a",o.attrs.role="button"):e="button",t(e,o,n.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,n,e){"use strict";e.d(n,"a",function(){return o}),e.d(n,"b",function(){return i});const o={name:"custom-link",functional:!0,props:{tag:{type:String,default:"a"},link:Object},render(t,n){let e;const o=Object.assign({},n.data);return n.props.link&&n.parent.$router?(e=n.parent.$root.$options.components.RouterLink,o.props=Object.assign({tag:n.props.tag},n.props.link),o.on.click&&(o.nativeOn={click:o.on.click})):e=n.props.tag,t(e,o,n.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,n,e){"use strict";function o(t){return"string"==typeof t?{classes:{"material-icons":!0},content:t}:t instanceof Array?{classes:t.reduce((t,n)=>Object.assign(t,{[n]:!0}),{})}:"object"==typeof t?{classes:t.className.split(" ").reduce((t,n)=>Object.assign(t,{[n]:!0}),{}),content:t.textContent}:void 0}e.d(n,"a",function(){return o})},function(t,n,e){"use strict";(function(t){function o(n){let e=null;"undefined"!=typeof window?e=window.Vue:void 0!==t&&(e=t.Vue),e&&e.use(n)}e.d(n,"a",function(){return o})}).call(this,e(18))},,function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e}])});
//# sourceMappingURL=mcwv.base.min.js.map
{
"name": "@mcwv/base",
"description": "The set of base classes for Vue material componnents",
"version": "0.1.12",
"version": "0.2.0",
"license": "MIT",

@@ -13,3 +13,3 @@ "main": "dist/mcwv.base.min.js",

"sideEffects": false,
"gitHead": "516181cd3c220adeba5b786e766711dde9fbdde4"
"gitHead": "ee9e1817a5b8674903562bb203af777ae22a9993"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc