Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mcwv/notched-outline

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcwv/notched-outline - npm Package Compare versions

Comparing version 0.1.0 to 0.1.2

6

dist/mcwv.notchedOutline.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.notchedOutline=e():(t.wcmv=t.wcmv||{},t.wcmv.notchedOutline=e())}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.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 r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));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=45)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,u,c){var s,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),u?(s=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},l._ssrRegister=s):r&&(s=c?function(){r.call(this,this.$root.$options.shadowRoot)}:r),s)if(l.functional){l._injectStyles=s;var a=l.render;l.render=function(t,e){return s.call(e),a(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:l}}n.d(e,"a",function(){return o})},1:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"d",function(){return u}),n.d(e,"c",function(){return c});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.notchedOutline=e():(t.wcmv=t.wcmv||{},t.wcmv.notchedOutline=e())}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.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 r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));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=45)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,s,u){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var a=l.render;l.render=function(t,e){return c.call(e),a(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:l}}n.d(e,"a",function(){return o})},1:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"d",function(){return s}),n.d(e,"c",function(){return u});
/*! *****************************************************************************

@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)u.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return u}},2:function(t,e,n){"use strict";n.d(e,"a",function(){return o});
var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}},2:function(t,e,n){"use strict";n.d(e,"a",function(){return o});
/**

@@ -40,3 +40,3 @@ * @license

*/
var o=function(){function t(t){void 0===t&&(t={}),this.adapter_=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}()},45:function(t,e,n){"use strict";n.r(e);var o=n(6),r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"outlined",class:this.outlinedClasses},[e("div",{staticClass:"mdc-notched-outline__leading"}),this._v(" "),e("div",{ref:"notchEl",staticClass:"mdc-notched-outline__notch"},[this.$slots.default?e("mdc-floating-label",{ref:"labelEl"},[this._t("default")],2):this._e()],1),this._v(" "),e("div",{staticClass:"mdc-notched-outline__trailing"})])};r._withStripped=!0;var i=n(1),u=n(2),c={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},s={NOTCH_ELEMENT_PADDING:8},l={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},a=function(t){function e(n){return t.call(this,i.a({},e.defaultAdapter,n))||this}return i.b(e,t),Object.defineProperty(e,"strings",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),e.prototype.notch=function(t){var n=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=s.NOTCH_ELEMENT_PADDING),this.adapter_.setNotchWidthProperty(t),this.adapter_.addClass(n)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(t),this.adapter_.removeNotchWidthProperty()},e}(u.a),f={name:"mdc-notched-outline",data:function(){return{outlinedClasses:{"mdc-notched-outline":!0}}},mounted:function(){var t=this;this.foundation=new a({addClass:function(e){t.$set(t.outlinedClasses,e,!0)},removeClass:function(e){t.$delete(t.outlinedClasses,e)},setNotchWidthProperty:function(e){return t.$refs.notchEl.style.setProperty("width",e+"px")},removeNotchWidthProperty:function(){return t.$refs.notchEl.style.removeProperty("width")}}),this.foundation.init(),this.$slots.default?this.$set(this.outlinedClasses,a.cssClasses.OUTLINE_UPGRADED,!0):this.$set(this.outlinedClasses,a.cssClasses.NO_LABEL,!0)},beforeDestroy:function(){var t=this.foundation;this.foundation=null,t.destroy()},methods:{notch:function(t){this.foundation.notch(t)},closeNotch:function(){this.foundation.closeNotch()},float:function(t){this.$refs.labelEl&&this.$refs.labelEl.float(t)},shake:function(t){this.$refs.labelEl&&this.$refs.labelEl.shake(t)},getWidth:function(){return this.$refs.labelEl.getWidth()}}},d=n(0),h=Object(d.a)(f,r,[],!1,null,null,null);h.options.__file="packages/mcwv-notched-outline/mdc-notched-outline.vue";var p=h.exports;n.d(e,"mdcNotchedOutline",function(){return p});e.default=Object(o.a)({mdcNotchedOutline:p})},6:function(t,e,n){"use strict";function o(t){return{version:"__VERSION__",install:function(e){for(var n in t){var o=t[n];e.component(o.name,o)}},components:t}}n.d(e,"a",function(){return o})}})});
var o=function(){function t(t){void 0===t&&(t={}),this.adapter_=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}()},45:function(t,e,n){"use strict";n.r(e);var o=n(6),r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"outlined",class:this.outlinedClasses},[e("div",{staticClass:"mdc-notched-outline__leading"}),this._v(" "),e("div",{ref:"notchEl",staticClass:"mdc-notched-outline__notch"},[this.$slots.default?e("mdc-floating-label",{ref:"labelEl"},[this._t("default")],2):this._e()],1),this._v(" "),e("div",{staticClass:"mdc-notched-outline__trailing"})])};r._withStripped=!0;var i=n(1),s=n(2),u={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},c={NOTCH_ELEMENT_PADDING:8},l={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},a=function(t){function e(n){return t.call(this,i.a({},e.defaultAdapter,n))||this}return i.b(e,t),Object.defineProperty(e,"strings",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),e.prototype.notch=function(t){var n=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=c.NOTCH_ELEMENT_PADDING),this.adapter_.setNotchWidthProperty(t),this.adapter_.addClass(n)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter_.removeClass(t),this.adapter_.removeNotchWidthProperty()},e}(s.a),f={name:"mdc-notched-outline",data:()=>({outlinedClasses:{"mdc-notched-outline":!0}}),mounted(){this.foundation=new a({addClass:t=>{this.$set(this.outlinedClasses,t,!0)},removeClass:t=>{this.$delete(this.outlinedClasses,t)},setNotchWidthProperty:t=>this.$refs.notchEl.style.setProperty("width",t+"px"),removeNotchWidthProperty:()=>this.$refs.notchEl.style.removeProperty("width")}),this.foundation.init(),this.$slots.default?this.$set(this.outlinedClasses,a.cssClasses.OUTLINE_UPGRADED,!0):this.$set(this.outlinedClasses,a.cssClasses.NO_LABEL,!0)},beforeDestroy(){let t=this.foundation;this.foundation=null,t.destroy()},methods:{notch(t){this.foundation.notch(t)},closeNotch(){this.foundation.closeNotch()},float(t){this.$refs.labelEl&&this.$refs.labelEl.float(t)},shake(t){this.$refs.labelEl&&this.$refs.labelEl.shake(t)},getWidth(){return this.$refs.labelEl.getWidth()}}},d=n(0),h=Object(d.a)(f,r,[],!1,null,null,null);h.options.__file="packages/mcwv-notched-outline/mdc-notched-outline.vue";var p=h.exports;n.d(e,"mdcNotchedOutline",function(){return p});e.default=Object(o.a)({mdcNotchedOutline:p})},6: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})}})});
//# sourceMappingURL=mcwv.notchedOutline.min.js.map

@@ -1,6 +0,6 @@

import './styles.scss'
import { autoInit } from '../base'
import plugin from './index.js'
export default plugin
import './styles.scss';
import { autoInit } from '../base';
import plugin from './index.js';
export default plugin;
autoInit(plugin)
autoInit(plugin);
{
"name": "@mcwv/notched-outline",
"description": "The Vue Material Adapter for the web notched-outline component",
"version": "0.1.0",
"version": "0.1.2",
"license": "MIT",

@@ -17,5 +17,5 @@ "keywords": [

"dependencies": {
"@mcwv/base": "^0.1.0"
"@mcwv/base": "^0.1.2"
},
"gitHead": "04a7e19899423b2fc13608ad435b878ef5792faf"
"gitHead": "ea9652c4b2e84843a94b7fdba14a7965651409e1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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