diff --git a/dist/vue-form-generator.js b/dist/vue-form-generator.js index d23eb4e5..079c29d1 100644 --- a/dist/vue-form-generator.js +++ b/dist/vue-form-generator.js @@ -13,6 +13,6 @@ MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:functi */ "use strict";function n(e,t,r){if(i(e,t))return void(e[t]=r);if(e._isVue)return void n(e._data,t,r);var a=e.__ob__;if(!a)return void(e[t]=r);if(a.convert(t,r),a.dep.notify(),a.vms)for(var s=a.vms.length;s--;){var o=a.vms[s];o._proxy(t),o._digest()}return r}function r(e,t){if(i(e,t)){delete e[t];var n=e.__ob__;if(!n)return void(e._isVue&&(delete e._data[t],e._digest()));if(n.dep.notify(),n.vms)for(var r=n.vms.length;r--;){var a=n.vms[r];a._unproxy(t),a._digest()}}}function i(e,t){return In.call(e,t)}function a(e){return Rn.test(e)}function s(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function o(e){return null==e?"":e.toString()}function u(e){if("string"!=typeof e)return e;var t=Number(e);return isNaN(t)?e:t}function d(e){return"true"===e||"false"!==e&&e}function l(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function c(e){return e.replace(Jn,_)}function _(e,t){return t?t.toUpperCase():""}function h(e){return e.replace(Un,"$1-$2").replace(Un,"$1-$2").toLowerCase()}function m(e){return e.replace(Vn,_)}function f(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function p(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function v(e,t){for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function y(e){return null!==e&&"object"==typeof e}function M(e){return Gn.call(e)===Bn}function g(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function L(e,t){var n,r,i,a,s,o=function u(){var o=Date.now()-a;o=0?n=setTimeout(u,t-o):(n=null,s=e.apply(i,r),n||(i=r=null))};return function(){return i=this,r=arguments,a=Date.now(),n||(n=setTimeout(o,t)),s}}function Y(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function k(e){var t=function n(){if(!n.cancelled)return e.apply(this,arguments)};return t.cancel=function(){t.cancelled=!0},t}function b(e,t){return e==t||!(!y(e)||!y(t))&&JSON.stringify(e)===JSON.stringify(t)}function w(e){this.size=0,this.limit=e,this.head=this.tail=void 0,this._keymap=Object.create(null)}function D(){return _r.charCodeAt(fr+1)}function T(){return _r.charCodeAt(++fr)}function x(){return fr>=mr}function S(){for(;D()===xr;)T()}function j(e){return e===br||e===wr}function H(e){return Sr[e]}function O(e,t){return jr[e]===t}function A(){for(var e,t=T();!x();)if(e=T(),e===Tr)T();else if(e===t)break}function P(e){for(var t=0,n=e;!x();)if(e=D(),j(e))A();else if(n===e&&t++,O(n,e)&&t--,T(),0===t)break}function E(){for(var e=fr;!x();)if(pr=D(),j(pr))A();else if(H(pr))P(pr);else if(pr===Dr){if(T(),pr=D(),pr!==Dr){vr!==gr&&vr!==kr||(vr=Lr);break}T()}else{if(pr===xr&&(vr===Yr||vr===kr)){S();break}vr===Lr&&(vr=Yr),T()}return _r.slice(e+1,fr)||null}function C(){for(var e=[];!x();)e.push(W());return e}function W(){var e,t={};return vr=Lr,t.name=E().trim(),vr=kr,e=F(),e.length&&(t.args=e),t}function F(){for(var e=[];!x()&&vr!==Lr;){var t=E();if(!t)break;e.push($(t))}return e}function $(e){if(Mr.test(e))return{value:u(e),dynamic:!1};var t=l(e),n=t===e;return{value:n?e:t,dynamic:n}}function z(e){var t=yr.get(e);if(t)return t;_r=e,hr={},mr=_r.length,fr=-1,pr="",vr=gr;var n;return _r.indexOf("|")<0?hr.expression=_r.trim():(hr.expression=E().trim(),n=C(),n.length&&(hr.filters=n)),yr.put(e,hr),hr}function N(e){return e.replace(Or,"\\$&")}function I(){var e=N(zr.delimiters[0]),t=N(zr.delimiters[1]),n=N(zr.unsafeDelimiters[0]),r=N(zr.unsafeDelimiters[1]);Pr=new RegExp(n+"((?:.|\\n)+?)"+r+"|"+e+"((?:.|\\n)+?)"+t,"g"),Er=new RegExp("^"+n+"((?:.|\\n)+?)"+r+"$"),Ar=new w(1e3)}function R(e){Ar||I();var t=Ar.get(e);if(t)return t;if(!Pr.test(e))return null;for(var n,r,i,a,s,o,u=[],d=Pr.lastIndex=0;n=Pr.exec(e);)r=n.index,r>d&&u.push({value:e.slice(d,r)}),i=Er.test(n[0]),a=i?n[1]:n[2],s=a.charCodeAt(0),o=42===s,a=o?a.slice(1):a,u.push({tag:!0,value:a.trim(),html:i,oneTime:o}),d=r+n[0].length;return d1?e.map(function(e){return U(e,t)}).join("+"):U(e[0],t,!0)}function U(e,t,n){return e.tag?e.oneTime&&t?'"'+t.$eval(e.value)+'"':V(e.value,n):'"'+e.value+'"'}function V(e,t){if(Cr.test(e)){var n=z(e);return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+e+")"}return t?e:"("+e+")"}function G(e,t,n,r){Z(e,1,function(){t.appendChild(e)},n,r)}function B(e,t,n,r){Z(e,1,function(){ne(e,t)},n,r)}function q(e,t,n){Z(e,-1,function(){ie(e)},t,n)}function Z(e,t,n,r,i){var a=e.__v_trans;if(!a||!a.hooks&&!ir||!r._isCompiled||r.$parent&&!r.$parent._isCompiled)return n(),void(i&&i());var s=t>0?"enter":"leave";a[s](n,i)}function K(e){return"string"==typeof e&&(e=document.querySelector(e)),e}function Q(e){if(!e)return!1;var t=e.ownerDocument.documentElement,n=e.parentNode;return t===e||t===n||!(!n||1!==n.nodeType||!t.contains(n))}function X(e,t){var n=e.getAttribute(t);return null!==n&&e.removeAttribute(t),n}function ee(e,t){var n=X(e,":"+t);return null===n&&(n=X(e,"v-bind:"+t)),n}function te(e,t){return e.hasAttribute(t)||e.hasAttribute(":"+t)||e.hasAttribute("v-bind:"+t)}function ne(e,t){t.parentNode.insertBefore(e,t)}function re(e,t){t.nextSibling?ne(e,t.nextSibling):t.parentNode.appendChild(e)}function ie(e){e.parentNode.removeChild(e)}function ae(e,t){t.firstChild?ne(e,t.firstChild):t.appendChild(e)}function se(e,t){var n=e.parentNode;n&&n.replaceChild(t,e)}function oe(e,t,n,r){e.addEventListener(t,n,r)}function ue(e,t,n){e.removeEventListener(t,n)}function de(e){var t=e.className;return"object"==typeof t&&(t=t.baseVal||""),t}function le(e,t){tr&&!/svg$/.test(e.namespaceURI)?e.className=t:e.setAttribute("class",t)}function ce(e,t){if(e.classList)e.classList.add(t);else{var n=" "+de(e)+" ";n.indexOf(" "+t+" ")<0&&le(e,(n+t).trim())}}function _e(e,t){if(e.classList)e.classList.remove(t);else{for(var n=" "+de(e)+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");le(e,n.trim())}e.className||e.removeAttribute("class")}function he(e,t){var n,r;if(pe(e)&&Le(e.content)&&(e=e.content),e.hasChildNodes())for(me(e),r=t?document.createDocumentFragment():document.createElement("div");n=e.firstChild;)r.appendChild(n);return r}function me(e){for(var t;t=e.firstChild,fe(t);)e.removeChild(t);for(;t=e.lastChild,fe(t);)e.removeChild(t)}function fe(e){return e&&(3===e.nodeType&&!e.data.trim()||8===e.nodeType)}function pe(e){return e.tagName&&"template"===e.tagName.toLowerCase()}function ve(e,t){var n=zr.debug?document.createComment(e):document.createTextNode(t?" ":"");return n.__v_anchor=!0,n}function ye(e){if(e.hasAttributes())for(var t=e.attributes,n=0,r=t.length;n=u.length){for(var e=0;e=97&&t<=122||t>=65&&t<=90?"ident":t>=49&&t<=57?"number":"else"}function Ie(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(a(t)?l(t):"*"+t)}function Re(e){function t(){var t=e[l+1];if(c===ci&&"'"===t||c===_i&&'"'===t)return l++,r="\\"+t,h[ni](),!0}var n,r,i,a,s,o,u,d=[],l=-1,c=si,_=0,h=[];for(h[ri]=function(){void 0!==i&&(d.push(i),i=void 0)},h[ni]=function(){void 0===i?i=r:i+=r},h[ii]=function(){h[ni](),_++},h[ai]=function(){if(_>0)_--,c=li,h[ni]();else{if(_=0,i=Ie(i),i===!1)return!1;h[ri]()}};null!=c;)if(l++,n=e[l],"\\"!==n||!t()){if(a=Ne(n),u=fi[c],s=u[a]||u["else"]||mi,s===mi)return;if(c=s[0],o=h[s[1]],o&&(r=s[2],r=void 0===r?n:r,o()===!1))return;if(c===hi)return d.raw=e,d}}function Je(e){var t=ti.get(e);return t||(t=Re(e),t&&ti.put(e,t)),t}function Ue(e,t){return et(t).get(e)}function Ve(e,t,r){var i=e;if("string"==typeof t&&(t=Re(t)),!t||!y(e))return!1;for(var a,s,o=0,u=t.length;o-1?n.replace(wi,Ze):n,t+"scope."+n)}function Ze(e,t){return Si[t]}function Ke(e){Li.test(e),Si.length=0;var t=e.replace(bi,Be).replace(Yi,"");return t=(" "+t).replace(Ti,qe).replace(wi,Ze),Qe(t)}function Qe(e){try{return new Function("scope","return "+e+";")}catch(t){return Ge}}function Xe(e){var t=Je(e);if(t)return function(e,n){Ve(e,t,n)}}function et(e,t){e=e.trim();var n=vi.get(e);if(n)return t&&!n.set&&(n.set=Xe(n.exp)),n;var r={exp:e};return r.get=tt(e)&&e.indexOf("[")<0?Qe("scope."+e):Ke(e),t&&(r.set=Xe(e)),vi.put(e,r),r}function tt(e){return Di.test(e)&&!xi.test(e)&&"Math."!==e.slice(0,5)}function nt(){Hi.length=0,Oi.length=0,Ai={},Pi={},Ei=!1}function rt(){for(var e=!0;e;)e=!1,it(Hi),it(Oi),Hi.length?e=!0:(Qn&&zr.devtools&&Qn.emit("flush"),nt())}function it(e){for(var t=0;t0){var s=a+(r?t:Ye(t));i=qi.get(s),i||(i=Bt(n,e.$options,!0),qi.put(s,i))}else i=Bt(n,e.$options,!0);this.linker=i}function Lt(e,t,n){var r=e.node.previousSibling;if(r){for(e=r.__v_frag;!(e&&e.forId===n&&e.inserted||r===t);){if(r=r.previousSibling,!r)return;e=r.__v_frag}return e}}function Yt(e){for(var t=-1,n=new Array(Math.floor(e));++t47&&t<58?parseInt(e,10):1===e.length&&(t=e.toUpperCase().charCodeAt(0),t>64&&t<91)?t:pa[e]});return n=[].concat.apply([],n),function(t){if(n.indexOf(t.keyCode)>-1)return e.call(this,t)}}function Tt(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function xt(e){return function(t){return t.preventDefault(),e.call(this,t)}}function St(e){return function(t){if(t.target===t.currentTarget)return e.call(this,t)}}function jt(e){if(La[e])return La[e];var t=Ht(e);return La[e]=La[t]=t,t}function Ht(e){e=h(e);var t=c(e),n=t.charAt(0).toUpperCase()+t.slice(1);Ya||(Ya=document.createElement("div"));var r,i=ya.length;if("filter"!==t&&t in Ya.style)return{kebab:e,camel:t};for(;i--;)if(r=Ma[i]+n,r in Ya.style)return{kebab:ya[i]+e,camel:r}}function Ot(e){var t=[];if(qn(e))for(var n=0,r=e.length;n=i?n():e[a].call(t,r)}var i=e.length,a=0;e[0].call(t,r)}function Et(e,t,n){for(var r,i,s,o,u,d,l,_=[],m=n.$options.propsData,f=Object.keys(t),p=f.length;p--;)i=f[p],r=t[i]||Fa,u=c(i),$a.test(u)&&(l={name:i,path:u,options:r,mode:Wa.ONE_WAY,raw:null},s=h(i),null===(o=ee(e,s))&&(null!==(o=ee(e,s+".sync"))?l.mode=Wa.TWO_WAY:null!==(o=ee(e,s+".once"))&&(l.mode=Wa.ONE_TIME)),null!==o?(l.raw=o,d=z(o),o=d.expression,l.filters=d.filters,a(o)&&!d.filters?l.optimizedLiteral=!0:l.dynamic=!0,l.parentPath=o):null!==(o=X(e,s))?l.raw=o:m&&null!==(o=m[i]||m[u])&&(l.raw=o),_.push(l));return Ct(_)}function Ct(e){return function(t,n){t._props={};for(var r,a,s,o,c,_=t.$options.propsData,m=e.length;m--;)if(r=e[m],c=r.raw,a=r.path,s=r.options,t._props[a]=r,_&&i(_,a)&&Ft(t,r,_[a]),null===c)Ft(t,r,void 0);else if(r.dynamic)r.mode===Wa.ONE_TIME?(o=(n||t._context||t).$get(r.parentPath),Ft(t,r,o)):t._context?t._bindDir({name:"prop",def:Na,prop:r},null,null,n):Ft(t,r,t.$get(r.parentPath));else if(r.optimizedLiteral){var f=l(c);o=f===c?d(u(c)):f,Ft(t,r,o)}else o=s.type===Boolean&&(""===c||c===h(r.name))||c,Ft(t,r,o)}}function Wt(e,t,n,r){var i=t.dynamic&&tt(t.parentPath),a=n;void 0===a&&(a=zt(e,t)),a=It(t,a,e);var s=a!==n;Nt(t,a,e)||(a=void 0),i&&!s?Pe(function(){r(a)}):r(a)}function Ft(e,t,n){Wt(e,t,n,function(n){$e(e,t.path,n)})}function $t(e,t,n){Wt(e,t,n,function(n){e[t.path]=n})}function zt(e,t){var n=t.options;if(!i(n,"default"))return n.type!==Boolean&&void 0;var r=n["default"];return y(r),"function"==typeof r&&n.type!==Function?r.call(e):r}function Nt(e,t,n){if(!e.options.required&&(null===e.raw||null==t))return!0;var r=e.options,i=r.type,a=!i,s=[];if(i){qn(i)||(i=[i]);for(var o=0;ot?-1:e===t?0:1});for(t=0,n=l.length;th.priority)&&(h=_,l=i.name,o=pn(i.name),s=i.value,d=u[1],c=u[2]));return h?mn(e,d,s,n,h,l,c,o):void 0}function hn(){}function mn(e,t,n,r,i,a,s,o){var u=z(n),d={name:t,arg:s,expression:u.expression,filters:u.filters,raw:n,attr:a,modifiers:o,def:i};"for"!==t&&"if"!==t&&"router-view"!==t||(d.ref=ye(e));var l=function(e,t,n,r,i){d.ref&&$e((r||e).$refs,d.ref,null),e._bindDir(d,t,n,r,i)};return l.terminal=!0,l}function fn(e,t){function n(e,t,n){var r=n&&yn(n),i=!r&&z(a);f.push({name:e,attr:s,raw:o,def:t,arg:d,modifiers:l,expression:i&&i.expression,filters:i&&i.filters,interp:n,hasOneTime:r})}for(var r,i,a,s,o,u,d,l,c,_,h,m=e.length,f=[];m--;)if(r=e[m],i=s=r.name,a=o=r.value,_=R(a),d=null,l=pn(i),i=i.replace(ns,""),_)a=J(_),d=i,n("bind",Pa.bind,_);else if(rs.test(i))l.literal=!Xa.test(i),n("transition",Qa.transition);else if(es.test(i))d=i.replace(es,""),n("on",Pa.on);else if(Xa.test(i))u=i.replace(Xa,""),"style"===u||"class"===u?n(u,Qa[u]):(d=u,n("bind",Pa.bind));else if(h=i.match(ts)){if(u=h[1],d=h[2],"else"===u)continue;c=Oe(t,"directives",u,!0),c&&n(u,c)}if(f.length)return vn(f)}function pn(e){var t=Object.create(null),n=e.match(ns);if(n)for(var r=n.length;r--;)t[n[r].slice(1)]=!0;return t}function vn(e){return function(t,n,r,i,a){for(var s=e.length;s--;)t._bindDir(e[s],n,r,i,a)}}function yn(e){for(var t=e.length;t--;)if(e[t].oneTime)return!0}function Mn(e){return"SCRIPT"===e.tagName&&(!e.hasAttribute("type")||"text/javascript"===e.getAttribute("type"))}function gn(e,t){return t&&(t._containerAttrs=Yn(e)),pe(e)&&(e=_t(e)),t&&(t._asComponent&&!t.template&&(t.template=""),t.template&&(t._content=he(e),e=Ln(e,t))),Le(e)&&(ae(ve("v-start",!0),e),e.appendChild(ve("v-end",!0))),e}function Ln(e,t){var n=t.template,r=_t(n,!0);if(r){var i=r.firstChild;if(!i)return r;var a=i.tagName&&i.tagName.toLowerCase();return t.replace?(e===document.body,r.childNodes.length>1||1!==i.nodeType||"component"===a||Oe(t,"components",a)||te(i,"is")||Oe(t,"elementDirectives",a)||i.hasAttribute("v-for")||i.hasAttribute("v-if")?r:(t._replacerAttrs=Yn(i),kn(e,i),i)):(e.appendChild(r),e)}}function Yn(e){if(1===e.nodeType&&e.hasAttributes())return p(e.attributes)}function kn(e,t){for(var n,r,i=e.attributes,a=i.length;a--;)n=i[a].name,r=i[a].value,t.hasAttribute(n)||ss.test(n)?"class"===n&&!R(r)&&(r=r.trim())&&r.split(/\s+/).forEach(function(e){ce(t,e)}):t.setAttribute(n,r)}function bn(e,t){if(t){for(var n,r,i=e._slotContents=Object.create(null),a=0,s=t.children.length;a1?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=hs(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 zn(e,t){var n;if(M(e)){var r=Object.keys(e);for(n=r.length;n--;)if(zn(e[r[n]],t))return!0}else if(qn(e)){for(n=e.length;n--;)if(zn(e[n],t))return!0}else if(null!=e)return e.toString().toLowerCase().indexOf(t)>-1}function Nn(e){function t(e){return new Function("return function "+m(e)+" (options) { this._init(options) }")()}e.options={directives:Pa,elementDirectives:_s,filters:fs,transitions:{},components:{},partials:{},replace:!0},e.util=Xr,e.config=zr,e.set=n,e["delete"]=r,e.nextTick=dr,e.compiler=os,e.FragmentFactory=gt,e.internalDirectives=Qa,e.parsers={path:pi,text:Wr,template:Gi,directive:Hr,expression:ji},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=He(n.options,e),s["super"]=n,s.extend=n.extend,zr._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=He(e.options,t)},zr._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,Ir)}var In=Object.prototype.hasOwnProperty,Rn=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Jn=/-(\w)/g,Un=/([^-])([A-Z])/g,Vn=/(?:^|[-_\/])(\w)/g,Gn=Object.prototype.toString,Bn="[object Object]",qn=Array.isArray,Zn="__proto__"in{},Kn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Qn=Kn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Xn=Kn&&window.navigator.userAgent.toLowerCase(),er=Xn&&Xn.indexOf("trident")>0,tr=Xn&&Xn.indexOf("msie 9.0")>0,nr=Xn&&Xn.indexOf("android")>0,rr=void 0,ir=void 0,ar=void 0,sr=void 0;if(Kn&&!tr){var or=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,ur=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;rr=or?"WebkitTransition":"transition",ir=or?"webkitTransitionEnd":"transitionend",ar=ur?"WebkitAnimation":"animation",sr=ur?"webkitAnimationEnd":"animationend"}var dr=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(qr,"$remove",function(e){if(this.length){var t=Y(this,e);return t>-1?this.splice(t,1):void 0}});var Kr=Object.getOwnPropertyNames(Zr),Qr=!0;Ee.prototype.walk=function(e){for(var t=Object.keys(e),n=0,r=t.length;n",""],tr:[2,"","
"],col:[2,"","
"]};Ni.td=Ni.th=[3,"","
"],Ni.option=Ni.optgroup=[1,'"],Ni.thead=Ni.tbody=Ni.colgroup=Ni.caption=Ni.tfoot=[1,"","
"],Ni.g=Ni.defs=Ni.symbol=Ni.use=Ni.image=Ni.text=Ni.circle=Ni.ellipse=Ni.line=Ni.path=Ni.polygon=Ni.polyline=Ni.rect=[1,'',""];var Ii=/<([\w:-]+)/,Ri=/&#?\w+?;/,Ji=/