From 1c46aefeaaf82375f091806a5e454777876d0d90 Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Mon, 8 Aug 2016 17:04:02 +0200 Subject: [PATCH] enhenhancement: remove scoped styles --- dist/vue-form-generator.css | 78 +++++++++++++++++----------------- dist/vue-form-generator.js | 34 +++++++-------- dist/vue-form-generator.min.js | 16 +++---- src/fields/fieldCheckbox.vue | 2 +- src/fields/fieldChecklist.vue | 2 +- src/fields/fieldColor.vue | 2 +- src/fields/fieldDateTime.vue | 2 +- src/fields/fieldEmail.vue | 2 +- src/fields/fieldImage.vue | 2 +- src/fields/fieldLabel.vue | 2 +- src/fields/fieldMasked.vue | 2 +- src/fields/fieldNumber.vue | 2 +- src/fields/fieldPassword.vue | 2 +- src/fields/fieldRange.vue | 2 +- src/fields/fieldSelect.vue | 2 +- src/fields/fieldSpectrum.vue | 2 +- src/fields/fieldStaticMap.vue | 2 +- src/fields/fieldSubmit.vue | 2 +- src/fields/fieldSwitch.vue | 2 +- src/fields/fieldText.vue | 2 +- src/fields/fieldTextArea.vue | 2 +- 21 files changed, 82 insertions(+), 82 deletions(-) diff --git a/dist/vue-form-generator.css b/dist/vue-form-generator.css index e216507c..dcae3f16 100644 --- a/dist/vue-form-generator.css +++ b/dist/vue-form-generator.css @@ -106,24 +106,24 @@ fieldset .form-group { padding-top: 0px; margin-top: 0.2em; font-weight: 600; } -input[type=checkbox][_v-2fdafcb6] { +input[type=checkbox] { margin-left: 12px; } -.listbox[_v-3254e498], .dropList[_v-3254e498] { +.listbox, .dropList { height: auto; max-height: 150px; overflow: auto; } - .listbox .list-row label[_v-3254e498], .dropList .list-row label[_v-3254e498] { + .listbox .list-row label, .dropList .list-row label { font-weight: initial; } - .listbox .list-row input[_v-3254e498], .dropList .list-row input[_v-3254e498] { + .listbox .list-row input, .dropList .list-row input { margin-right: 0.3em; } -.combobox[_v-3254e498] { +.combobox { height: initial; overflow: hidden; } - .combobox .mainRow[_v-3254e498] { + .combobox .mainRow { cursor: pointer; position: relative; } - .combobox .mainRow .arrow[_v-3254e498] { + .combobox .mainRow .arrow { position: absolute; right: -6px; top: 4px; @@ -137,22 +137,22 @@ input[type=checkbox][_v-2fdafcb6] { transition: transform 0.5s, -webkit-transform 0.5s; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGdJREFUOI3tzjsOwjAURNGDUqSgTxU5K2AVrJtswjUsgHSR0qdxAZZFPrS+3ZvRzBsqf9MUtBtazJk+oMe0VTriiZCFX8nbpENMgfARjsn74vKj5IFruhfc8d6zIF9S/Hyk5HS4spMVeFcOjszaOwMAAAAASUVORK5CYII="); background-repeat: no-repeat; } - .combobox .mainRow.expanded .arrow[_v-3254e498] { + .combobox .mainRow.expanded .arrow { -webkit-transform: rotate(-180deg); transform: rotate(-180deg); } - .combobox .dropList[_v-3254e498] { + .combobox .dropList { -webkit-transition: height 0.5s; transition: height 0.5s; } -span[_v-da15201e] { +span { margin-left: 0.3em; } -input[_v-6ef4e97d] { +input { width: 100%; } -input[_v-c97470ac] { +input { width: 100%; } -.wrapper[_v-2ee9a42e], input[_v-2ee9a42e] { +.wrapper, input { width: 100%; } -.preview[_v-2ee9a42e] { +.preview { position: relative; margin-top: 5px; height: 100px; @@ -162,7 +162,7 @@ input[_v-c97470ac] { border: 1px solid #ccc; border-radius: 3px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } - .preview .remove[_v-2ee9a42e] { + .preview .remove { /*background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAXUlEQVR42u2SwQoAIAhD88vVLy8KBlaS0i1oJwP3piGVg0Skmpq8HjqZrWl9uwCbGAmwKYGZs/6iqgMyAdJuM8W2QmYKpLt/0AG9ASCv/oAnANd3AEjmAlFT1BypAV+PnRH5YehvAAAAAElFTkSuQmCC'); width: 16px; height: 16px; @@ -172,25 +172,25 @@ input[_v-c97470ac] { right: 0.2em; bottom: 0.2em; opacity: 0.7; } - .preview .remove[_v-2ee9a42e]:hover { + .preview .remove:hover { opacity: 1.0; cursor: pointer; } -span[_v-0eace1fc] { +span { display: block; width: 100%; margin-left: 12px; } -input[_v-2b1174ed] { +input { width: 100%; } -input[_v-6a19b8ab] { +input { width: 100%; } -input[_v-6c65f47d] { +input { width: 100%; } -input[_v-1fd4066a] { +input { width: 100%; } -.helpText[_v-1fd4066a] { +.helpText { margin: auto 0.5em; } -select[_v-1ec600de] { +select { width: 100%; } .bootstrap-select .dropdown-menu li.selected .text { font-weight: bold; } @@ -235,13 +235,13 @@ select[_v-1ec600de] { -img[_v-5915e81c] { +img { display: block; width: auto; max-width: 100%; } input[_v-05b01dfa] { width: 100%; } -label[_v-6cc6a716] { +label { position: relative; display: block; vertical-align: top; @@ -256,13 +256,13 @@ label[_v-6cc6a716] { box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05); cursor: pointer; } -input[_v-6cc6a716] { +input { position: absolute; top: 0; left: 0; opacity: 0; } -.label[_v-6cc6a716] { +.label { position: relative; display: block; height: inherit; @@ -272,7 +272,7 @@ input[_v-6cc6a716] { border-radius: inherit; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15); } -.label[_v-6cc6a716]:before, .label[_v-6cc6a716]:after { +.label:before, .label:after { position: absolute; top: 50%; margin-top: -.5em; @@ -280,30 +280,30 @@ input[_v-6cc6a716] { -webkit-transition: inherit; transition: inherit; } -.label[_v-6cc6a716]:before { +.label:before { content: attr(data-off); right: 11px; color: #aaaaaa; text-shadow: 0 1px rgba(255, 255, 255, 0.5); } -.label[_v-6cc6a716]:after { +.label:after { content: attr(data-on); left: 11px; color: #FFFFFF; text-shadow: 0 1px rgba(0, 0, 0, 0.2); opacity: 0; } -input:checked ~ .label[_v-6cc6a716] { +input:checked ~ .label { background: #E1B42B; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2); } -input:checked ~ .label[_v-6cc6a716]:before { +input:checked ~ .label:before { opacity: 0; } -input:checked ~ .label[_v-6cc6a716]:after { +input:checked ~ .label:after { opacity: 1; } -.handle[_v-6cc6a716] { +.handle { position: absolute; top: 4px; left: 4px; @@ -315,7 +315,7 @@ input:checked ~ .label[_v-6cc6a716]:after { border-radius: 100%; box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); } -.handle[_v-6cc6a716]:before { +.handle:before { content: ""; position: absolute; top: 50%; @@ -329,16 +329,16 @@ input:checked ~ .label[_v-6cc6a716]:after { border-radius: 6px; box-shadow: inset 0 1px rgba(0, 0, 0, 0.02); } -input:checked ~ .handle[_v-6cc6a716] { +input:checked ~ .handle { left: 94px; box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2); } /* Transition ========================== */ -.label[_v-6cc6a716], .handle[_v-6cc6a716] { +.label, .handle { -webkit-transition: all 0.3s ease; transition: all 0.3s ease; } -input[_v-59b0db0f] { +input { width: 100%; } -textarea[_v-51662488] { +textarea { width: 100%; } diff --git a/dist/vue-form-generator.js b/dist/vue-form-generator.js index 07c0c03b..da38ddaa 100644 --- a/dist/vue-form-generator.js +++ b/dist/vue-form-generator.js @@ -27153,7 +27153,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 13 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 14 */ @@ -27257,7 +27257,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 17 */ /***/ function(module, exports) { - module.exports = "
{{ selectedCount }} selected
"; + module.exports = "
{{ selectedCount }} selected
"; /***/ }, /* 18 */ @@ -27296,7 +27296,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 21 */ /***/ function(module, exports) { - module.exports = "{{ value }}"; + module.exports = "{{ value }}"; /***/ }, /* 22 */ @@ -41414,7 +41414,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 128 */ /***/ function(module, exports) { - module.exports = "
"; + module.exports = "
"; /***/ }, /* 129 */ @@ -41453,7 +41453,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 132 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 133 */ @@ -41561,7 +41561,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 136 */ /***/ function(module, exports) { - module.exports = "
"; + module.exports = "
"; /***/ }, /* 137 */ @@ -41600,7 +41600,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 140 */ /***/ function(module, exports) { - module.exports = "{{ value }}"; + module.exports = "{{ value }}"; /***/ }, /* 141 */ @@ -41661,7 +41661,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 144 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 145 */ @@ -41700,7 +41700,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 148 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 149 */ @@ -41739,7 +41739,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 152 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 153 */ @@ -41778,7 +41778,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 156 */ /***/ function(module, exports) { - module.exports = "
{{ value }}
"; + module.exports = "
{{ value }}
"; /***/ }, /* 157 */ @@ -41859,7 +41859,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 160 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 161 */ @@ -43072,7 +43072,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 229 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 230 */ @@ -43135,7 +43135,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 233 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 234 */ @@ -43278,7 +43278,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 241 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 242 */ @@ -43317,7 +43317,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 245 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 246 */ @@ -43356,7 +43356,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 249 */ /***/ function(module, exports) { - module.exports = ""; + module.exports = ""; /***/ }, /* 250 */ diff --git a/dist/vue-form-generator.min.js b/dist/vue-form-generator.min.js index 72d3dbac..d3b4f5ed 100644 --- a/dist/vue-form-generator.min.js +++ b/dist/vue-form-generator.min.js @@ -13,11 +13,11 @@ s=this.$children.length;s--;)this.$children[s].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),s=this._watchers.length;s--;)this._watchers[s].teardown();this.$el&&(this.$el.__vue__=null),n=!0,a()},e.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data&&this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function Mn(e){e.prototype._applyFilters=function(e,t,n,r){var i,a,s,o,u,d,l,c,_;for(d=0,l=n.length;d1?p(n):n;var i=t&&n.some(function(e){return e._fromParent});i&&(r=!1);for(var a=p(arguments,1),s=0,o=n.length;st?a:-a}var n=null,r=void 0;e=ts(e);var i=p(arguments,1),a=i[i.length-1];"number"==typeof a?(a=a<0?-1:1,i=i.length>1?i.slice(0,-1):i):a=1;var s=i[0];return s?("function"==typeof s?n=function(e,t){return s(e,t)*a}:(r=Array.prototype.concat.apply([],i),n=function(e,i,a){return a=a||0,a>=r.length-1?t(e,i,a):t(e,i,a)||n(e,i,a+1)}),e.slice().sort(n)):e}function xn(e,t){var n;if(M(e)){var r=Object.keys(e);for(n=r.length;n--;)if(xn(e[r[n]],t))return!0}else if(Wn(e)){for(n=e.length;n--;)if(xn(e[n],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}function Sn(e){function t(e){return new Function("return function "+f(e)+" (options) { this._init(options) }")()}e.options={directives:Ya,elementDirectives:es,filters:rs,transitions:{},components:{},partials:{},replace:!0},e.util=zr,e.config=xr,e.set=n,e["delete"]=r,e.nextTick=tr,e.compiler=qa,e.FragmentFactory=ot,e.internalDirectives=Na,e.parsers={path:ii,text:wr,template:Ci,directive:Mr,expression:yi},e.cid=0;var i=1;e.extend=function(e){e=e||{};var n=this,r=0===n.cid;if(r&&e._Ctor)return e._Ctor;var a=e.name||n.options.name,s=t(a||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=i++,s.options=ye(n.options,e),s["super"]=n,s.extend=n.extend,xr._assetTypes.forEach(function(e){s[e]=n[e]}),a&&(s.options.components[a]=s),r&&(e._Ctor=s),s},e.use=function(e){if(!e.installed){var t=p(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):e.apply(null,t),e.installed=!0,this}},e.mixin=function(t){e.options=ye(e.options,t)},xr._assetTypes.forEach(function(t){e[t]=function(n,r){return r?("component"===t&&M(r)&&(r.name||(r.name=n),r=e.extend(r)),this.options[t+"s"][n]=r,r):this.options[t+"s"][n]}}),v(e.transition,jr)}var jn=Object.prototype.hasOwnProperty,Hn=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,An=/-(\w)/g,On=/([a-z\d])([A-Z])/g,Pn=/(?:^|[-_\/])(\w)/g,Cn=Object.prototype.toString,En="[object Object]",Wn=Array.isArray,Fn="__proto__"in{},$n="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Nn=$n&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,zn=$n&&window.navigator.userAgent.toLowerCase(),In=zn&&zn.indexOf("trident")>0,Rn=zn&&zn.indexOf("msie 9.0")>0,Jn=zn&&zn.indexOf("android")>0,Un=zn&&/(iphone|ipad|ipod|ios)/i.test(zn),Vn=Un&&zn.match(/os ([\d_]+)/),Bn=Vn&&Vn[1].split("_"),Gn=Bn&&Number(Bn[0])>=9&&Number(Bn[1])>=3&&!window.indexedDB,qn=void 0,Zn=void 0,Kn=void 0,Qn=void 0;if($n&&!Rn){var Xn=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,er=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;qn=Xn?"WebkitTransition":"transition",Zn=Xn?"webkitTransitionEnd":"transitionend",Kn=er?"WebkitAnimation":"animation",Qn=er?"webkitAnimationEnd":"animationend"}var tr=function(){function e(){i=!1;var e=r.slice(0);r=[];for(var t=0;t=this.length&&(this.length=Number(e)+1),this.splice(e,1,t)[0]}),g(Wr,"$remove",function(e){if(this.length){var t=Y(this,e);return t>-1?this.splice(t,1):void 0}});var $r=Object.getOwnPropertyNames(Fr),Nr=!0;Ye.prototype.walk=function(e){for(var t=Object.keys(e),n=0,r=t.length;n",""],tr:[2,"","
"],col:[2,"","
"]};Si.td=Si.th=[3,"","
"],Si.option=Si.optgroup=[1,'"],Si.thead=Si.tbody=Si.colgroup=Si.caption=Si.tfoot=[1,"","
"],Si.g=Si.defs=Si.symbol=Si.use=Si.image=Si.text=Si.circle=Si.ellipse=Si.line=Si.path=Si.polygon=Si.polyline=Si.rect=[1,'',""];var ji=/<([\w:-]+)/,Hi=/&#?\w+?;/,Ai=/