-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinputNumberDemo.min.js
2 lines (2 loc) · 10.1 KB
/
inputNumberDemo.min.js
1
2
webpackJsonp([25],{1027:function(t,exports){t.exports='<div class="input-number" ng-class="{disabled: vm.disabled}">\n\t<div class="input-number-input-wrap">\n\t\t<input type="text"\n\t\t\t class="form-control"\n\t\t\t autocomplete="off"\n\t\t\t value="{{vm.value}}"\n\t\t\t ng-model="vm.value"\n\t\t\t ng-change="vm.inputChange()"\n\t\t\t ng-blur="vm.inputBlur()"\n\t\t\t ng-disabled="vm.disabled">\n\t</div>\n\t<span class="input-number-minus" ng-class="{disabled: vm.minusDisable}" ng-click="vm.inputMinus()">\n\t\t<span class="glyphicon glyphicon-minus"></span>\n\t</span>\n\t<span class="input-number-plus" ng-class="{disabled: vm.plusDisable}" ng-click="vm.inputPlus()">\n\t\t<span class="glyphicon glyphicon-plus"></span>\n\t</span>\n</div>'},1063:function(t,exports,n){var e=n(693);"string"==typeof e&&(e=[[t.i,e,""]]);n(2)(e,{});e.locals&&(t.exports=e.locals)},1096:function(t,exports,n){var e=n(726);"string"==typeof e&&(e=[[t.i,e,""]]);n(2)(e,{});e.locals&&(t.exports=e.locals)},298:function(t,exports,n){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=n(851),i=e(a),l=n(922),u=e(l);exports["default"]=angular.module("inputNumberDemo",[u["default"].name]).component("inputNumberDemo",i["default"])},413:function(t,exports){"use strict";function n(t,n){t?console.warn(t+" will be obsoleted in next major release, please use "+n+" instead"):console.warn("This version will be obsoleted in next major release, please follow http://www.fancyui.org/ for detail")}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=function(t,e,a){var i=angular.copy(t);try{var l;!function(){var t=i.controller,u=angular.injector.$$annotate(i.controller,!0);l=angular.element(document.body).injector();var s=function(){n(e,a);for(var i=[],s=0,r=u.length;s<r;s++)i.push(l.get(u[s]));var o=Object.create(t.prototype||null);return angular.merge(o,this),t.apply(o,i),o};i.controller=s}()}catch(u){}return i}},693:function(t,exports,n){exports=t.exports=n(1)(),exports.push([t.i,"",""])},726:function(t,exports,n){exports=t.exports=n(1)(),exports.push([t.i,".input-number {\n width: 200px;\n position: relative;\n}\n.input-number:hover .form-control {\n border-color: #58b4e9;\n outline: 0;\n box-shadow: none;\n}\n.input-number.disabled .form-control {\n color: #bbb;\n}\n.input-number.disabled:hover .form-control {\n border-color: #ccc;\n outline: 0;\n box-shadow: none;\n}\n.input-number .input-number-input-wrap {\n width: 200px;\n}\n.input-number .input-number-input-wrap input {\n padding-right: 68px;\n}\n.input-number .input-number-minus {\n width: 34px;\n height: 32px;\n display: inline-block;\n border-left: 1px solid #ccc;\n border-right: 1px solid #ccc;\n position: absolute;\n top: 1px;\n right: 32px;\n text-align: center;\n line-height: 34px;\n color: #666;\n cursor: pointer;\n}\n.input-number .input-number-minus:hover {\n color: #58b4e9;\n}\n.input-number .input-number-minus.disabled {\n color: #d3dce6;\n cursor: not-allowed;\n}\n.input-number .input-number-plus {\n width: 34px;\n height: 32px;\n display: inline-block;\n position: absolute;\n top: 1px;\n right: 0;\n text-align: center;\n line-height: 32px;\n color: #666;\n cursor: pointer;\n}\n.input-number .input-number-plus:hover {\n color: #58b4e9;\n}\n.input-number .input-number-plus.disabled {\n color: #d3dce6;\n cursor: not-allowed;\n}\n",""])},851:function(t,exports,n){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=n(995),i=e(a),l=n(852),u=e(l);n(1063),exports["default"]={restrict:"E",bindings:{},template:i["default"],controller:u["default"],controllerAs:"vm"}},852:function(t,exports){"use strict";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function t(t,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(n,e,a){return e&&t(n.prototype,e),a&&t(n,a),n}}(),a=function(){function t(e){"ngInject";n(this,t),this.name="inputnumberdemo",this.$state=e}return t.$inject=["$state"],e(t,[{key:"onChange",value:function(t){console.log(t)}}]),t}();exports["default"]=a},922:function(t,exports,n){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=n(923),i=e(a),l=n(413),u=e(l),s=angular.module("bp.inputNumber",[]).component("fInputNumber",i["default"]).component("inputNumber",(0,u["default"])(i["default"],"input-number","f-input-number"));exports["default"]=s},923:function(t,exports,n){"use strict";function e(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=n(1027),i=e(a),l=n(924),u=e(l);n(1096),exports["default"]={restrict:"E",bindings:{value:"=",max:"=",min:"=",step:"=",disabled:"=",onChange:"="},template:i["default"],controller:u["default"],controllerAs:"vm"}},924:function(t,exports){"use strict";function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(exports,"__esModule",{value:!0});var e=function(){function t(t,n){for(var e=0;e<n.length;e++){var a=n[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(n,e,a){return e&&t(n.prototype,e),a&&t(n,a),n}}(),a=function(){function t(){n(this,t),this.minusDisable=!!this.disabled,this.plusDisable=!!this.disabled,this.minValue=this.min||0,this.checkStatus()}return e(t,[{key:"inputPlus",value:function(){this.value>=this.max||this.disabled||(this.step?this.value+=this.step:this.value++,this.checkStatus(),this.onChange&&this.onChange(this.value))}},{key:"inputMinus",value:function(){this.value<=this.minValue||this.disabled||(this.step?this.value-=this.step:this.value--,this.checkStatus(),this.onChange&&this.onChange(this.value))}},{key:"inputChange",value:function(){this.checkStatus(),this.onChange&&this.onChange(this.value)}},{key:"inputBlur",value:function(){var t=!0;this.checkStatus(t)}},{key:"checkStatus",value:function(t){this.value<=this.minValue?(this.minusDisable=!0,t&&(this.value=this.minValue)):this.value>=this.max?(this.plusDisable=!0,t&&(this.value=this.max)):(this.minusDisable=!1,this.plusDisable=!1)}}]),t}();exports["default"]=a},995:function(t,exports){t.exports='<section class="intro-content">\n\t<h1 translate=\'{{vm.$state.current.name}}\'></h1>\n\t<p>\n\t\t{{\'InputDes\'|translate}}\n\t</p>\n</section>\n\n<section class="intro-content">\n\t<h2>{{\'Install\' | translate}}</h2>\n\t<p>{{\'Install_FancyUI\'|translate}}</p>\n</section>\n\n<div class="example-block">\n<div class="highlight" hljs hljs-language="bash">\nnpm install fancyui --save</div>\n</div>\n\n<section class="intro-content">\n\t<h2>{{\'Inject_Module\'|translate}}</h2>\n</section>\n\n<div class="example-block">\n\t<div class="highlight no-border" hljs hljs-language="javascript">\nimport inputnumberdemoComponent from \'./inputnumberdemo.component\';\nimport {InputNumber} from \'fancyui\';\n\nexport default angular.module(\'inputNumberDemo\', [\n InputNumber.name\n])\n.component(\'inputNumberDemo\', inputnumberdemoComponent);</div>\n</div>\n\n<h2>{{\'Example\'|translate}}</h2>\n<h3>{{\'Basic\'|translate}}</h3>\n<div class="example-block">\n\t<div class="bs-example pop-confirm-example">\n\t\t<input-number value="1" min="1" max="10" on-change="vm.onChange"></input-number>\n\t</div>\n</div>\n\n<h3>code</h3>\n<div class="example-block">\n<div class="highlight no-border" hljs hljs-language="html">\n<input-number value="1" min="1" max="10" on-change="vm.onChange"></input-number></div>\n</div>\n\n<h3>{{\'Disable\'|translate}}</h3>\n<div class="example-block">\n\t<div class="bs-example pop-confirm-example">\n\t\t<input-number value="1" min="1" max="10" disabled="true"></input-number>\n\t</div>\n</div>\n<h3>code</h3>\n<div class="example-block">\n<div class="highlight no-border" hljs hljs-language="html">\n<input-number value="1" min="1" max="10" disabled="true"></input-number></div>\n</div>\n\n<h3>{{\'StepSetting\'|translate}}</h3>\n<div class="example-block">\n\t<div class="bs-example pop-confirm-example">\n\t\t<input-number value="1" min="1" max="100" step="5" on-change="vm.onChange"></input-number>\n\t</div>\n</div>\n\n<h3>code</h3>\n<div class="example-block">\n<div class="highlight no-border" hljs hljs-language="html">\n<input-number value="1" min="1" max="100" step="5" on-change="vm.onChange"></input-number></div>\n</div>\n\n\n<section class="intro-content">\n\t<h2>{{\'Options\'|translate}}</h2>\n\t<table class="demo-table">\n\t\t<thead>\n\t\t<tr>\n\t\t\t<th>{{\'Param\'|translate}}</th>\n\t\t\t<th>{{\'Description\'|translate}}</th>\n\t\t\t<th>{{\'Type\'|translate}}</th>\n\t\t\t<th>{{\'Optional\'|translate}}</th>\n\t\t\t<th>{{\'DefaultValue\'|translate}}</th>\n\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t<td>value</td>\n\t\t\t<td>{{\'CurrentValue\'|translate}}</td>\n\t\t\t<td>number</td>\n\t\t\t<td>-</td>\n\t\t\t<td>-</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>min</td>\n\t\t\t<td>min value</td>\n\t\t\t<td>number</td>\n\t\t\t<td>-</td>\n\t\t\t<td>0</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>max</td>\n\t\t\t<td>max value</td>\n\t\t\t<td>number</td>\n\t\t\t<td>-</td>\n\t\t\t<td>-</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>step</td>\n\t\t\t<td>incremental step</td>\n\t\t\t<td>number</td>\n\t\t\t<td>-</td>\n\t\t\t<td>1</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>disabled</td>\n\t\t\t<td>{{\'Disabled\'|translate}}</td>\n\t\t\t<td>boolean</td>\n\t\t\t<td>-</td>\n\t\t\t<td>false</td>\n\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\n\n<section class="intro-content">\n\t<h2>{{\'Event\'|translate}}</h2>\n\t<table class="demo-table">\n\t\t<thead>\n\t\t<tr>\n\t\t\t<th>{{\'EventName\'|translate}}</th>\n\t\t\t<th>{{\'Description\'|translate}}</th>\n\t\t\t<th>{{\'Param\'|translate}}</th>\n\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t<tr>\n\t\t\t<td>on-change</td>\n\t\t\t<td>change handler</td>\n\t\t\t<td>value: changed value</td>\n\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>'}});
//# sourceMappingURL=inputNumberDemo.min.js.map