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.14.0-alpha.1 to 0.14.0-alpha.2

2

dist/mcwv.notchedOutline.min.js

@@ -77,3 +77,3 @@ !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.mcwv=t.mcwv||{},t.mcwv.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=66)}({2:function(t,e,n){"use strict";n.r(e);

*/
var i=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}(),s={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},a={NOTCH_ELEMENT_PADDING:8},c={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},l=function(t){function e(n){return t.call(this,r({},e.defaultAdapter,n))||this}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"strings",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return a},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+=a.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}(i),u=n(2),d={name:"mcw-notched-outline",data:()=>({outlinedClasses:{"mdc-notched-outline":!0},notchStyles:{}}),mounted(){const{OUTLINE_UPGRADED:t,NO_LABEL:e}=l.cssClasses,n={addClass:t=>{this.$set(this.outlinedClasses,t,!0)},removeClass:t=>{this.$delete(this.outlinedClasses,t)},setNotchWidthProperty:t=>this.$set(this.notchStyles,"width",`${t}px`),removeNotchWidthProperty:()=>this.$delete(this.notchStyles,"width")};this.foundation=new l(n),this.foundation.init();const o=this.$slots.default?t:e;this.$set(this.outlinedClasses,o,!0)},beforeDestroy(){this.foundation.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()}},render(t){const{$scopedSlots:e}=this,n=t("div",{class:"mdc-notched-outline__notch",style:this.notchStyles},[e.default&&t(u.mcwFloatingLabel,{ref:"labelEl"},e.default())]);return t("div",{class:this.outlinedClasses},[t("div",{class:"mdc-notched-outline__leading"}),n,t("div",{class:"mdc-notched-outline__trailing"})])}};n.d(e,"mcwNotchedOutline",(function(){return d}));var f;e.default={version:"__VERSION__",install:t=>{Object.entries(f).forEach(([e,n])=>{const o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[r,...i]=o.split("-"),s=["mdc",...i].join("-"),a=["mcw",...i].join("-"),c=t.extend(n);t.component(a,c),t.component(s,c)})},components:f={mcwNotchedOutline:d}}},66:function(t,e,n){n(4),t.exports=n(67)},67:function(t,e,n){}})}));
var i=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}(),s={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},a={NOTCH_ELEMENT_PADDING:8},c={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},l=function(t){function e(n){return t.call(this,r({},e.defaultAdapter,n))||this}return function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"strings",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return c},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return a},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+=a.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}(i),u=n(2),d={name:"mcw-notched-outline",data:()=>({outlinedClasses:{"mdc-notched-outline":!0},notchStyles:{}}),mounted(){const{OUTLINE_UPGRADED:t,NO_LABEL:e}=l.cssClasses,n={addClass:t=>{this.$set(this.outlinedClasses,t,!0)},removeClass:t=>{this.$delete(this.outlinedClasses,t)},setNotchWidthProperty:t=>this.$set(this.notchStyles,"width",`${t}px`),removeNotchWidthProperty:()=>this.$delete(this.notchStyles,"width")};this.foundation=new l(n),this.foundation.init();const o=this.$slots.default?t:e;this.$set(this.outlinedClasses,o,!0)},beforeDestroy(){this.foundation.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()}},render(t){const{$scopedSlots:e}=this,n=t("div",{class:"mdc-notched-outline__notch",style:this.notchStyles},[e.default&&t(u.mcwFloatingLabel,{ref:"labelEl"},e.default())]);return t("div",{class:this.outlinedClasses},[t("div",{class:"mdc-notched-outline__leading"}),n,t("div",{class:"mdc-notched-outline__trailing"})])}};n.d(e,"mcwNotchedOutline",(function(){return d}));var f;e.default={version:"__VERSION__",install:t=>{Object.entries(f).forEach(([e,n])=>{const o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),[r,...i]=o.split("-"),s=["mdc",...i].join("-"),a=["mcw",...i].join("-"),c=t.extend(n);t.component(a,c),t.component(s,c)})},components:f={mcwNotchedOutline:d}}},66:function(t,e,n){n(67),t.exports=n(4)},67:function(t,e,n){}})}));
//# sourceMappingURL=mcwv.notchedOutline.min.js.map
{
"name": "@mcwv/notched-outline",
"description": "The Vue Material Adapter for the web notched-outline component",
"version": "0.14.0-alpha.1",
"version": "0.14.0-alpha.2",
"license": "MIT",

@@ -20,6 +20,6 @@ "main": "dist/mcwv.notchedOutline.min.js",

"@material/notched-outline": "^4.0.0",
"@mcwv/base": "^0.14.0-alpha.1",
"@mcwv/floating-label": "^0.14.0-alpha.1"
"@mcwv/base": "^0.14.0-alpha.2",
"@mcwv/floating-label": "^0.14.0-alpha.2"
},
"gitHead": "c9caef4b2854d34ded429a1ec4210d955e9732d3"
"gitHead": "b7aac5aaadf2e4e090710ea12c502e20bff8b1f1"
}
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