-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhyperform-ui.js
1 lines (1 loc) · 6.73 KB
/
hyperform-ui.js
1
webpackJsonp([1],[function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;(0,s.default)(e),(0,d.default)(e),(0,l.default)(e),(0,f.default)(e),(0,m.default)(e),(0,v.default)(e),(0,g.default)(e),(0,y.default)(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var i=a(20),s=n(i),r=a(21),d=n(r),c=a(22),l=n(c),o=a(23),f=n(o),h=a(24),m=n(h),p=a(25),v=n(p),b=a(26),g=n(b),_=a(27),y=n(_);window.hfui=u},,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,i.default)('[type="submit"],[type="reset"],[type="button"],button',e).each(function(){this.className.search("hfui-enhanced")>-1||(this.className+=" hfui-enhanced",(0,i.default)(this).button())})};var u=a(1),i=n(u);a(5)},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,i.default)('[type="checkbox"]',e).each(function(){this.className.search("hfui-enhanced")>-1||(this.className+=" hfui-enhanced",(0,i.default)(this).checkboxradio())})};var u=a(1),i=n(u);a(6)},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function u(e){if(!/^([0-9]{4,})-([0-9]{2})-([0-9]{2})$/.test(e))return null;var t=new Date(0);return t.setUTCFullYear(Number(RegExp.$1)),t.setUTCMonth(Number(RegExp.$2)-1,Number(RegExp.$3)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,s.default)('[type="date"]',e).each(function(){var e=this;if(!(this.className.search("hfui-hidden")>-1)){this.className+=" hfui-hidden";var t=this.valueAsDate,a={altField:this,altFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0,yearRange:"c-100:c+100",maxDate:u(this.getAttribute("max")),minDate:u(this.getAttribute("min"))},n=(0,s.default)("<input>",{class:"hfui-widget hfui-date ui-widget ui-widget-content ui-corner-all",type:"text",value:s.default.datepicker.formatDate(s.default.datepicker.regional[""].dateFormat,t)}).datepicker(a);n[0].readOnly=this.readOnly,n[0].disabled=this.disabled,(0,s.default)(this).hide().on("change",function(){n.datepicker("value",e.value)}).on("focus",function(){n.datepicker("show")}),n.on("change",function(){e.readOnly||e.disabled||n[0].value||(e.value="")}).insertBefore(this)}})};var i=a(1),s=n(i);a(15)},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function u(){if(!r){r=!0;var e=document.createElement("style");e.className="hfui-styles",e.appendChild(document.createTextNode("")),document.head.appendChild(e);try{e.sheet.insertRule('[type="number"]{-moz-appearance:textfield}',0)}catch(e){}try{e.sheet.insertRule('[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}',1)}catch(e){}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return u(),(0,s.default)('[type="number"]',e).each(function(){this.className.search("hfui-enhanced")>-1||(this.className+=" hfui-enhanced",(0,s.default)(this).spinner())})};var i=a(1),s=n(i);a(19);var r=!1},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,i.default)('[type="radio"]',e).each(function(){this.className.search("hfui-enhanced")>-1||(this.className+=" hfui-enhanced",(0,i.default)(this).checkboxradio())})};var u=a(1),i=n(u);a(6)},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,i.default)('[type="range"]',e).each(function(){var e=this;if(!(this.className.search("hfui-hidden")>-1)){this.className+=" hfui-hidden";var t=parseFloat(this.getAttribute("min"))||0,a=parseFloat(this.getAttribute("max"))||100,n=parseFloat(this.getAttribute("step"))||1;""!==this.defaultValue||this.value||(this.value=t+(a>t?(a-t)/2:t));var u=(0,i.default)("<div>",{class:"hfui-widget hfui-range"});(0,i.default)(this).hide().on("change",function(){u.slider("value",e.value)}).on("focus",function(){u.find(".ui-slider-handle").focus()}),u.slider({animate:!0,min:t,max:a,step:n,disabled:this.disabled,orientation:this.getAttribute("orient")||"horizontal",value:parseFloat(this.value)||0,slide:function(t,a){var n=a.value;e.value=n}}).insertBefore(this)}})};var u=a(1),i=n(u);a(18)},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,i.default)("select",e).each(function(){this.className.search("hfui-enhanced")>-1||(this.className+=" hfui-enhanced",(0,i.default)(this).selectmenu())})};var u=a(1),i=n(u);a(17)},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,i.default)('[type="time"]',e).each(function(){if(!(this.className.search("hfui-enhanced")>-1)){var e=(0,i.default)(this),t=["00:00","00:15","00:30","00:45","01:00","01:15","01:30","01:45","02:00","02:15","02:30","02:45","03:00","03:15","03:30","03:45","04:00","04:15","04:30","04:45","05:00","05:15","05:30","05:45","06:00","06:15","06:30","06:45","07:00","07:15","07:30","07:45","08:00","08:15","08:30","08:45","09:00","09:15","09:30","09:45","10:00","10:15","10:30","10:45","11:00","11:15","11:30","11:45","12:00","12:15","12:30","12:45","13:00","13:15","13:30","13:45","14:00","14:15","14:30","14:45","15:00","15:15","15:30","15:45","16:00","16:15","16:30","16:45","17:00","17:15","17:30","17:45","18:00","18:15","18:30","18:45","19:00","19:15","19:30","19:45","20:00","20:15","20:30","20:45","21:00","21:15","21:30","21:45","22:00","22:15","22:30","22:45","23:00","23:15","23:30","23:45"],a=(0,i.default)("<button>",{type:"button"}).button({icons:{primary:"ui-icon-triangle-1-s"},text:!1}).on("click",function(){return e.autocomplete("search","")});this.className+=" hfui-enhanced",e.autocomplete({source:t,minLength:0}).wrap('<span class="hfui-widget hfui-time">').closest("span").append(a).controlgroup({disabled:this.disabled,items:{button:"button",controlgroupLabel:'[type="time"]'}})}})};var u=a(1),i=n(u);a(14),a(5),a(10)}]);