All Downloads are FREE. Search and download functionalities are using the official Maven repository.

widgets.pbCurrencyInput.assets.js.angularjs-currency-input-mask-1.1.7-patched.min.js Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
/**
 * bonita-angularjs-currency-input-mask - AngularJS Multiple pattern currency input mask
 * @version v1.1.7
 * @link https://github.com/bonitasoft/angularjs-currency-input-mask#readme
 * @license MIT
 */
!function(i){"use strict";function d(e){return e.replace(/[^\d-]/g,"").replace(/(?!^-)-/g,"")}function h(e){return e&&e.replace(/\d/g,"")}function a(e){return"-"===e.charAt(0)}function u(e){return"-"+e}function v(i){function n(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function r(e){return e.replace(/(\$)/g,"$$$1")}return{value:function(e){return this._value=e,this},clear:function(){return this._value=d(this._value),this},minimum:function(){if(0r&&g.setCaretPosition(c[0],r)})))),u}function i(e){!isNaN(e)&&t.min?o.$setValidity("min",e>=t.min):o.$setValidity("min",!0)}function a(e){!isNaN(e)&&t.max?o.$setValidity("max",e<=t.max):o.$setValidity("max",!0)}o&&(s=g.config(n.config),n.$watch("currency",function(){r(o.$viewValue,g.currency(n.currency))}),n.$watch("config",function(e){s=g.config(e),g.canMoveCaret(c[0])||(s.orientation="l"),o.$viewValue&&r(o.$viewValue)}),o.$parsers.push(function(e){e=r(e,g.currency(n.currency)),e=parseFloat(e);return i(e),a(e),e}),o.$formatters.push(function(e){var t=e?f(m(e,s.decimalSize),g.currency(n.currency)):null,e=parseFloat(e);return i(e),a(e),t}))}}}]).filter("printCurrency",["support",function(r){return function(e,t,n){n=r.config(n);return e?v(n).format(m(e,n.decimalSize),t):null}}])}(angular);
//# sourceMappingURL=angularjs-currency-input-mask.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy