@mcwv/notched-outline
Advanced tools
Comparing version 0.1.12 to 0.2.0
@@ -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.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=58)}({0:function(t,e,n){"use strict";function o(t,e,n,o,r,i,s,c){var u,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?(u=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=u):r&&(u=c?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(l.functional){l._injectStyles=u;var a=l.render;l.render=function(t,e){return u.call(e),a(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}n.d(e,"a",function(){return o})},101:function(t,e,n){"use strict";n.r(e);var o=n(3),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; | ||
!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=57)}({2:function(t,e,n){"use strict";function o(t){return{version:"__VERSION__",install:e=>{for(const n in t){const o=t[n];e.component(o.name,o)}},components:t}}n.d(e,"a",function(){return o})},57:function(t,e,n){n(97),t.exports=n(58)},58:function(t,e,n){},97:function(t,e,n){"use strict";n.r(e);var o=n(2),r=function(t,e){return(r=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)}; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */var i=function(t,e){return(i=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)};var s=function(){return(s=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)}; | ||
***************************************************************************** */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)}; | ||
/** | ||
@@ -39,3 +39,3 @@ * @license | ||
*/ | ||
var c=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}(),u={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},l={NOTCH_ELEMENT_PADDING:8},a={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},d=function(t){function e(n){return t.call(this,s({},e.defaultAdapter,n))||this}return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),Object.defineProperty(e,"strings",{get:function(){return u},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return a},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return l},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+=l.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}(c),f={name:"mdc-notched-outline",data:()=>({outlinedClasses:{"mdc-notched-outline":!0}}),mounted(){this.foundation=new d({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,d.cssClasses.OUTLINE_UPGRADED,!0):this.$set(this.outlinedClasses,d.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()}}},h=n(0),p=Object(h.a)(f,r,[],!1,null,null,null);p.options.__file="packages/mcwv-notched-outline/mdc-notched-outline.vue";var _=p.exports;n.d(e,"mdcNotchedOutline",function(){return _});e.default=Object(o.a)({mdcNotchedOutline:_})},3: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})},58:function(t,e,n){n(101),t.exports=n(59)},59:function(t,e,n){}})}); | ||
var s=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}(),c={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},u={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({},e.defaultAdapter,n))||this}return function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(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 u},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+=u.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);var d={name:"mdc-notched-outline",template:' <div ref="outlined" :class="outlinedClasses">\n <div class="mdc-notched-outline__leading"></div>\n <div ref="notchEl" class="mdc-notched-outline__notch">\n <mdc-floating-label v-if="$slots.default" ref="labelEl">\n <slot/>\n </mdc-floating-label>\n </div>\n <div class="mdc-notched-outline__trailing"></div>\n </div>',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(){const 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()}}};n.d(e,"mdcNotchedOutline",function(){return d});e.default=Object(o.a)({mdcNotchedOutline:d})}})}); | ||
//# sourceMappingURL=mcwv.notchedOutline.min.js.map |
import { BasePlugin } from '@mcwv/base'; | ||
import mdcNotchedOutline from './mdc-notched-outline.vue'; | ||
import mdcNotchedOutline from './mdc-notched-outline.js'; | ||
@@ -4,0 +4,0 @@ export { mdcNotchedOutline }; |
{ | ||
"name": "@mcwv/notched-outline", | ||
"description": "The Vue Material Adapter for the web notched-outline component", | ||
"version": "0.1.12", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -20,5 +20,5 @@ "main": "dist/mcwv.notchedOutline.min.js", | ||
"@material/notched-outline": "^1.1.1", | ||
"@mcwv/base": "^0.1.12" | ||
"@mcwv/base": "^0.2.0" | ||
}, | ||
"gitHead": "516181cd3c220adeba5b786e766711dde9fbdde4" | ||
"gitHead": "ee9e1817a5b8674903562bb203af777ae22a9993" | ||
} |
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
145
46025
+ Added@mcwv/base@0.2.3(transitive)
- Removed@mcwv/base@0.1.12(transitive)
Updated@mcwv/base@^0.2.0