New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@skyux/core

Package Overview
Dependencies
Maintainers
1
Versions
495
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyux/core - npm Package Compare versions

Comparing version 3.5.2 to 3.5.3

modules/numeric/number-format-utility.d.ts

2

bundles/bundle.umd.js

@@ -1,1 +0,1 @@

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@angular/core"),require("@angular/common"),require("@skyux/i18n"),require("@skyux/i18n/modules/i18n/get-string-for-locale"),require("@skyux/i18n/modules/i18n/lib-resources-providers-token"),require("@skyux/i18n/modules/i18n/lib-resources.service"),require("rxjs/BehaviorSubject"),require("rxjs/Observable"),require("rxjs/add/observable/of")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@skyux/i18n","@skyux/i18n/modules/i18n/get-string-for-locale","@skyux/i18n/modules/i18n/lib-resources-providers-token","@skyux/i18n/modules/i18n/lib-resources.service","rxjs/BehaviorSubject","rxjs/Observable","rxjs/add/observable/of"],r):"object"==typeof exports?exports["skyux-core"]=r(require("@angular/core"),require("@angular/common"),require("@skyux/i18n"),require("@skyux/i18n/modules/i18n/get-string-for-locale"),require("@skyux/i18n/modules/i18n/lib-resources-providers-token"),require("@skyux/i18n/modules/i18n/lib-resources.service"),require("rxjs/BehaviorSubject"),require("rxjs/Observable"),require("rxjs/add/observable/of")):e["skyux-core"]=r(e["@angular/core"],e["@angular/common"],e["@skyux/i18n"],e["@skyux/i18n/modules/i18n/get-string-for-locale"],e["@skyux/i18n/modules/i18n/lib-resources-providers-token"],e["@skyux/i18n/modules/i18n/lib-resources.service"],e["rxjs/BehaviorSubject"],e["rxjs/Observable"],e["rxjs/add/observable/of"])}(this,function(e,r,t,i,o,n,s,u,c){return function(e){function __webpack_require__(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,__webpack_require__),i.l=!0,i.exports}var r={};return __webpack_require__.m=e,__webpack_require__.c=r,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,r,t){__webpack_require__.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,"a",r),r},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=11)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(1),n=t(36),s=function(){function SkyNumericService(e,r,t){this.currencyPipe=e,this.decimalPipe=r,this.resourcesService=t,this.symbolIndex=[{value:1e12,label:this.getSymbol("skyux_numeric_trillions_symbol")},{value:1e9,label:this.getSymbol("skyux_numeric_billions_symbol")},{value:1e6,label:this.getSymbol("skyux_numeric_millions_symbol")},{value:1e3,label:this.getSymbol("skyux_numeric_thousands_symbol")}]}return SkyNumericService.prototype.formatNumber=function(e,r){if(isNaN(e))return"";var t,i=/\.0+$|(\.[0-9]*[1-9])0+$/,o=this.symbolIndex.find(function(t){return r.truncate&&(e>=r.truncateAfter&&e>=t.value||-e>=r.truncateAfter&&-e>=t.value)});t=o?Number(Math.round(parseFloat(e/o.value+"e"+r.digits))+"e-"+r.digits).toString().replace(i,"$1")+o.label:Number(Math.round(parseFloat(e+"e"+r.digits))+"e-"+r.digits).toString().replace(i,"$1"),this.storeShortenSymbol(t);var n;switch(r.format.toLowerCase()){case"currency":var s=e>this.symbolIndex[this.symbolIndex.length-1].value,u=e%1!=0;n=r.minDigits?"1."+r.minDigits+"-"+r.digits:!s&&u&&r.digits>=2?"1.2-"+r.digits:"1.0-"+r.digits;t=this.currencyPipe.transform(parseFloat(t),r.iso,"symbol",n);break;default:n=r.minDigits?"1."+r.minDigits+"-"+r.digits:r.truncate?"1.0-"+r.digits:"1."+r.digits+"-"+r.digits,t=this.decimalPipe.transform(parseFloat(t),n)}return r.truncate&&(t=this.replaceShortenSymbol(t)),t},SkyNumericService.prototype.storeShortenSymbol=function(e){var r=this.symbolIndex.map(function(e){return e.label}),t=new RegExp(r.join("|"),"ig"),i=e.match(t);this.shortSymbol=i?i.toString():""},SkyNumericService.prototype.replaceShortenSymbol=function(e){var r=/(\d)(?!.*\d)/g.exec(e),t=r.index+r.length;return e.substring(0,t)+this.shortSymbol+e.substring(t)},SkyNumericService.prototype.getSymbol=function(e){return this.resourcesService.getStringForLocale({locale:"en_US"},e)},SkyNumericService}();s=__decorate([i.Injectable(),__metadata("design:paramtypes",[o.CurrencyPipe,o.DecimalPipe,n.SkyLibResourcesService])],s),r.SkyNumericService=s},function(e,r,t){"use strict";function __export(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),__export(t(30)),__export(t(31))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e[e.BodyBottom=0]="BodyBottom",e[e.BodyTop=1]="BodyTop"}(r.SkyDynamicComponentLocation||(r.SkyDynamicComponentLocation={}))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(3),n=t(4),s=function(){function SkyDynamicComponentService(e,r,t,i,o){this.componentFactoryResolver=e,this.applicationRef=r,this.injector=t,this.windowRef=i,this.renderer=o.createRenderer(void 0,void 0)}return SkyDynamicComponentService.prototype.createComponent=function(e,r){r=r||{location:n.SkyDynamicComponentLocation.BodyBottom};var t=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.applicationRef.attachView(t.hostView);var i=this.getRootNode(t),o=this.windowRef.getWindow().document.body;switch(r.location){case n.SkyDynamicComponentLocation.BodyTop:this.renderer.insertBefore(o,i,o.firstChild);break;default:this.renderer.appendChild(o,i)}return t},SkyDynamicComponentService.prototype.removeComponent=function(e){e&&(this.applicationRef.detachView(e.hostView),e.destroy())},SkyDynamicComponentService.prototype.getRootNode=function(e){return e.hostView.rootNodes[0]},SkyDynamicComponentService}();s=__decorate([i.Injectable(),__metadata("design:paramtypes",[i.ComponentFactoryResolver,i.ApplicationRef,i.Injector,o.SkyWindowRefService,i.RendererFactory2])],s),r.SkyDynamicComponentService=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=function(){function SkyLogService(){}return SkyLogService.prototype.warn=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];window.console&&window.console.warn.apply(window.console,arguments)},SkyLogService}();o=__decorate([i.Injectable()],o),r.SkyLogService=o},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e[e.xs=1]="xs",e[e.sm=2]="sm",e[e.md=3]="md",e[e.lg=4]="lg"}(r.SkyMediaBreakpoints||(r.SkyMediaBreakpoints={}))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(37),n=t(7),s=u=function(){function SkyMediaQueryService(e){var r=this;this.zone=e,this.currentSubject=new o.BehaviorSubject(this.current),this._current=n.SkyMediaBreakpoints.md,this.xsListener=function(e){r.setupListener(e,n.SkyMediaBreakpoints.xs)},this.smListener=function(e){r.setupListener(e,n.SkyMediaBreakpoints.sm)},this.mdListener=function(e){r.setupListener(e,n.SkyMediaBreakpoints.md)},this.lgListener=function(e){r.setupListener(e,n.SkyMediaBreakpoints.lg)},this.xsMql=matchMedia(u.xs),this.xsMql.addListener(this.xsListener),this.smMql=matchMedia(u.sm),this.smMql.addListener(this.smListener),this.mdMql=matchMedia(u.md),this.mdMql.addListener(this.mdListener),this.lgMql=matchMedia(u.lg),this.lgMql.addListener(this.lgListener),this.setupListener(this.xsMql,n.SkyMediaBreakpoints.xs),this.setupListener(this.smMql,n.SkyMediaBreakpoints.sm),this.setupListener(this.mdMql,n.SkyMediaBreakpoints.md),this.setupListener(this.lgMql,n.SkyMediaBreakpoints.lg)}return Object.defineProperty(SkyMediaQueryService.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),SkyMediaQueryService.prototype.subscribe=function(e){return this.currentSubject.subscribe({next:function(r){e(r)}})},SkyMediaQueryService.prototype.destroy=function(){this.xsMql.removeListener(this.xsListener),this.xsMql=void 0,this.xsListener=void 0,this.smMql.removeListener(this.smListener),this.smMql=void 0,this.smListener=void 0,this.mdMql.removeListener(this.mdListener),this.mdMql=void 0,this.mdListener=void 0,this.lgMql.removeListener(this.lgListener),this.lgMql=void 0,this.lgListener=void 0,this.currentSubject.complete()},SkyMediaQueryService.prototype.setupListener=function(e,r){var t=this;this.zone.run(function(){e.matches&&(t._current=r,t.currentSubject.next(r))})},SkyMediaQueryService}();s.xs="(max-width: 767px)",s.sm="(min-width: 768px) and (max-width: 991px)",s.md="(min-width: 992px) and (max-width: 1199px)",s.lg="(min-width: 1200px)",s=u=__decorate([i.Injectable(),__metadata("design:paramtypes",[i.NgZone])],s),r.SkyMediaQueryService=s;var u},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(2),n=t(25),s=function(){function SkyNumericPipe(e){this.skyNumeric=e}return SkyNumericPipe.prototype.transform=function(e,r){var t=new n.NumericOptions;if(r&&!1===r.truncate&&void 0===r.digits&&(r.digits=0),r&&r.minDigits&&r.digits&&r.minDigits>r.digits)throw new Error("The `digits` property must be greater than or equal to the `minDigits` property");return r&&r.minDigits&&!r.digits&&(r.digits=r.minDigits),Object.assign(t,r),this.skyNumeric.formatNumber(e,t)},SkyNumericPipe}();s=__decorate([i.Pipe({name:"skyNumeric"}),__metadata("design:paramtypes",[o.SkyNumericService])],s),r.SkyNumericPipe=s},function(e,r,t){"use strict";function __export(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),__export(t(13)),__export(t(16)),__export(t(17)),__export(t(19)),__export(t(21)),__export(t(23)),__export(t(28)),__export(t(3))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(10))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(3),n=t(5),s=function(){function SkyDynamicComponentModule(){}return SkyDynamicComponentModule}();s=__decorate([i.NgModule({providers:[o.SkyWindowRefService,n.SkyDynamicComponentService]})],s),r.SkyDynamicComponentModule=s},function(e,r,t){"use strict";function __export(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),__export(t(4)),__export(t(12)),__export(t(5))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=function(){function SkyAppFormat(){}return SkyAppFormat.prototype.formatText=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return String(e).replace(/\{(\d+)\}/g,function(e,t){return r[parseInt(t,10)]})},SkyAppFormat}();o=__decorate([i.Injectable()],o),r.SkyAppFormat=o},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(14);r.SkyAppFormat=i.SkyAppFormat;var o=function(){function SkyFormat(){}return SkyFormat.formatText=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return this.isEmpty(e)?"":String(e).replace(/\{(\d+)\}/g,function(e,t){return r[parseInt(t,10)]})},SkyFormat.isEmpty=function(e){return null===e||void 0===e},SkyFormat}();r.SkyFormat=o},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(15))},function(e,r,t){"use strict";function __export(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),__export(t(18)),__export(t(6))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(1),n=t(6),s=function(){function SkyLogModule(){}return SkyLogModule}();s=__decorate([i.NgModule({imports:[o.CommonModule],providers:[n.SkyLogService]})],s),r.SkyLogModule=s},function(e,r,t){"use strict";function __export(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),__export(t(20)),__export(t(8)),__export(t(7))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(1),n=t(8),s=function(){function SkyMediaQueryModule(){}return SkyMediaQueryModule}();s=__decorate([i.NgModule({providers:[n.SkyMediaQueryService],imports:[o.CommonModule]})],s),r.SkyMediaQueryModule=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(22))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=function(){function MutationObserverService(){}return MutationObserverService.prototype.create=function(e){return new MutationObserver(e)},MutationObserverService}();o=__decorate([i.Injectable()],o),r.MutationObserverService=o},function(e,r,t){"use strict";function __export(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),__export(t(9)),__export(t(2)),__export(t(24))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(1),n=t(33),s=t(27),u=t(9),c=t(2),a=function(){function SkyNumericModule(){}return SkyNumericModule}();a=__decorate([i.NgModule({declarations:[u.SkyNumericPipe],providers:[o.CurrencyPipe,o.DecimalPipe,u.SkyNumericPipe,c.SkyNumericService],imports:[n.SkyI18nModule,s.SkyCoreResourcesModule],exports:[u.SkyNumericPipe]})],a),r.SkyNumericModule=a},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function NumericOptions(){this.digits=1,this.format="number",this.iso="USD",this.truncate=!0,this.truncateAfter=0}return NumericOptions}();r.NumericOptions=i},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(35),n=t(32),s=function(){function SkyCoreResourcesModule(){}return SkyCoreResourcesModule}();s=__decorate([i.NgModule({providers:[{provide:o.SKY_LIB_RESOURCES_PROVIDERS,useClass:n.SkyCoreResourcesProvider,multi:!0}]})],s),r.SkyCoreResourcesModule=s},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(26))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(t(29))},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(38);t(39);var n=function(){function SkyUIConfigService(){}return SkyUIConfigService.prototype.getConfig=function(e,r){return o.Observable.of(r)},SkyUIConfigService.prototype.setConfig=function(e,r){return o.Observable.of({})},SkyUIConfigService}();n=__decorate([i.Injectable()],n),r.SkyUIConfigService=n},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=function(){function SkyWindowRefService(){}return SkyWindowRefService.prototype.getWindow=function(){return window},SkyWindowRefService}();o=__decorate([i.Injectable()],o),r.SkyWindowRefService=o},function(e,r,t){"use strict";function getWindow(){return window}Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=function(){function SkyAppWindowRef(){}return Object.defineProperty(SkyAppWindowRef.prototype,"nativeWindow",{get:function(){return getWindow()},enumerable:!0,configurable:!0}),SkyAppWindowRef}();o=__decorate([i.Injectable()],o),r.SkyAppWindowRef=o},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(0),o=t(34),n=function(){function SkyCoreResourcesProvider(){this.resources={"EN-US":{skyux_numeric_billions_symbol:"B",skyux_numeric_millions_symbol:"M",skyux_numeric_thousands_symbol:"K",skyux_numeric_trillions_symbol:"T"}}}return SkyCoreResourcesProvider.prototype.getString=function(e,r){return o.getStringForLocale(this.resources,e.locale,r)},SkyCoreResourcesProvider}();n=__decorate([i.Injectable()],n),r.SkyCoreResourcesProvider=n},function(e,r){e.exports=t},function(e,r){e.exports=i},function(e,r){e.exports=o},function(e,r){e.exports=n},function(e,r){e.exports=s},function(e,r){e.exports=u},function(e,r){e.exports=c}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@angular/common"),require("@skyux/i18n"),require("@skyux/i18n/modules/i18n/intl-number-format-style"),require("@skyux/i18n/modules/i18n/get-string-for-locale"),require("@skyux/i18n/modules/i18n/intl-number-formatter"),require("@skyux/i18n/modules/i18n/lib-resources-providers-token"),require("rxjs/BehaviorSubject"),require("rxjs/Observable"),require("rxjs/add/observable/of")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@skyux/i18n","@skyux/i18n/modules/i18n/intl-number-format-style","@skyux/i18n/modules/i18n/get-string-for-locale","@skyux/i18n/modules/i18n/intl-number-formatter","@skyux/i18n/modules/i18n/lib-resources-providers-token","rxjs/BehaviorSubject","rxjs/Observable","rxjs/add/observable/of"],t):"object"==typeof exports?exports["skyux-core"]=t(require("@angular/core"),require("@angular/common"),require("@skyux/i18n"),require("@skyux/i18n/modules/i18n/intl-number-format-style"),require("@skyux/i18n/modules/i18n/get-string-for-locale"),require("@skyux/i18n/modules/i18n/intl-number-formatter"),require("@skyux/i18n/modules/i18n/lib-resources-providers-token"),require("rxjs/BehaviorSubject"),require("rxjs/Observable"),require("rxjs/add/observable/of")):e["skyux-core"]=t(e["@angular/core"],e["@angular/common"],e["@skyux/i18n"],e["@skyux/i18n/modules/i18n/intl-number-format-style"],e["@skyux/i18n/modules/i18n/get-string-for-locale"],e["@skyux/i18n/modules/i18n/intl-number-formatter"],e["@skyux/i18n/modules/i18n/lib-resources-providers-token"],e["rxjs/BehaviorSubject"],e["rxjs/Observable"],e["rxjs/add/observable/of"])}(this,function(e,t,r,i,o,n,u,s,c,a){return function(e){function __webpack_require__(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,__webpack_require__),i.l=!0,i.exports}var t={};return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=13)}([function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(11),n=r(10),u=r(26),s=function(){function SkyNumericService(e){this.resourcesService=e,this.symbolIndex=[{value:1e12,label:this.getSymbol("skyux_numeric_trillions_symbol")},{value:1e9,label:this.getSymbol("skyux_numeric_billions_symbol")},{value:1e6,label:this.getSymbol("skyux_numeric_millions_symbol")},{value:1e3,label:this.getSymbol("skyux_numeric_thousands_symbol")}],this.defaultLocale="en-US"}return SkyNumericService.prototype.formatNumber=function(e,t){if(isNaN(e)||null===e)return"";var r,i=/\.0+$|(\.[0-9]*[1-9])0+$/,n=this.symbolIndex.find(function(r){return t.truncate&&(e>=t.truncateAfter&&e>=r.value||-e>=t.truncateAfter&&-e>=r.value)});r=n?Number(Math.round(parseFloat(e/n.value+"e"+t.digits))+"e-"+t.digits).toString().replace(i,"$1")+n.label:Number(Math.round(parseFloat(e+"e"+t.digits))+"e-"+t.digits).toString().replace(i,"$1"),this.storeShortenSymbol(r);var s;switch(t.format.toLowerCase()){case"currency":var c=e>this.symbolIndex[this.symbolIndex.length-1].value,a=e%1!=0;s=t.minDigits?"1."+t.minDigits+"-"+t.digits:!c&&a&&t.digits>=2?"1.2-"+t.digits:"1.0-"+t.digits;r=u.SkyNumberFormatUtility.formatNumber(this.defaultLocale,parseFloat(r),o.SkyIntlNumberFormatStyle.Currency,s,t.iso,"symbol");break;default:s=t.minDigits?"1."+t.minDigits+"-"+t.digits:t.truncate?"1.0-"+t.digits:"1."+t.digits+"-"+t.digits,r=u.SkyNumberFormatUtility.formatNumber(this.defaultLocale,parseFloat(r),o.SkyIntlNumberFormatStyle.Decimal,s)}return t.truncate&&(r=this.replaceShortenSymbol(r)),r},SkyNumericService.prototype.storeShortenSymbol=function(e){var t=this.symbolIndex.map(function(e){return e.label}),r=new RegExp(t.join("|"),"ig"),i=e.match(r);this.shortSymbol=i?i.toString():""},SkyNumericService.prototype.replaceShortenSymbol=function(e){var t=/(\d)(?!.*\d)/g.exec(e),r=t.index+t.length;return e.substring(0,r)+this.shortSymbol+e.substring(r)},SkyNumericService.prototype.getSymbol=function(e){return this.resourcesService.getStringForLocale({locale:"en_US"},e)},SkyNumericService}();s=__decorate([i.Injectable(),__metadata("design:paramtypes",[n.SkyLibResourcesService])],s),t.SkyNumericService=s},function(e,t,r){"use strict";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),__export(r(33)),__export(r(34))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.BodyBottom=0]="BodyBottom",e[e.BodyTop=1]="BodyTop"}(t.SkyDynamicComponentLocation||(t.SkyDynamicComponentLocation={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(2),n=r(3),u=function(){function SkyDynamicComponentService(e,t,r,i,o){this.componentFactoryResolver=e,this.applicationRef=t,this.injector=r,this.windowRef=i,this.renderer=o.createRenderer(void 0,void 0)}return SkyDynamicComponentService.prototype.createComponent=function(e,t){t=t||{location:n.SkyDynamicComponentLocation.BodyBottom};var r=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.applicationRef.attachView(r.hostView);var i=this.getRootNode(r),o=this.windowRef.getWindow().document.body;switch(t.location){case n.SkyDynamicComponentLocation.BodyTop:this.renderer.insertBefore(o,i,o.firstChild);break;default:this.renderer.appendChild(o,i)}return r},SkyDynamicComponentService.prototype.removeComponent=function(e){e&&(this.applicationRef.detachView(e.hostView),e.destroy())},SkyDynamicComponentService.prototype.getRootNode=function(e){return e.hostView.rootNodes[0]},SkyDynamicComponentService}();u=__decorate([i.Injectable(),__metadata("design:paramtypes",[i.ComponentFactoryResolver,i.ApplicationRef,i.Injector,o.SkyWindowRefService,i.RendererFactory2])],u),t.SkyDynamicComponentService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=function(){function SkyLogService(){}return SkyLogService.prototype.warn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];window.console&&window.console.warn.apply(window.console,arguments)},SkyLogService}();o=__decorate([i.Injectable()],o),t.SkyLogService=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.xs=1]="xs",e[e.sm=2]="sm",e[e.md=3]="md",e[e.lg=4]="lg"}(t.SkyMediaBreakpoints||(t.SkyMediaBreakpoints={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(39),n=r(6),u=s=function(){function SkyMediaQueryService(e){var t=this;this.zone=e,this.currentSubject=new o.BehaviorSubject(this.current),this._current=n.SkyMediaBreakpoints.md,this.xsListener=function(e){t.setupListener(e,n.SkyMediaBreakpoints.xs)},this.smListener=function(e){t.setupListener(e,n.SkyMediaBreakpoints.sm)},this.mdListener=function(e){t.setupListener(e,n.SkyMediaBreakpoints.md)},this.lgListener=function(e){t.setupListener(e,n.SkyMediaBreakpoints.lg)},this.xsMql=matchMedia(s.xs),this.xsMql.addListener(this.xsListener),this.smMql=matchMedia(s.sm),this.smMql.addListener(this.smListener),this.mdMql=matchMedia(s.md),this.mdMql.addListener(this.mdListener),this.lgMql=matchMedia(s.lg),this.lgMql.addListener(this.lgListener),this.setupListener(this.xsMql,n.SkyMediaBreakpoints.xs),this.setupListener(this.smMql,n.SkyMediaBreakpoints.sm),this.setupListener(this.mdMql,n.SkyMediaBreakpoints.md),this.setupListener(this.lgMql,n.SkyMediaBreakpoints.lg)}return Object.defineProperty(SkyMediaQueryService.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),SkyMediaQueryService.prototype.subscribe=function(e){return this.currentSubject.subscribe({next:function(t){e(t)}})},SkyMediaQueryService.prototype.destroy=function(){this.xsMql.removeListener(this.xsListener),this.xsMql=void 0,this.xsListener=void 0,this.smMql.removeListener(this.smListener),this.smMql=void 0,this.smListener=void 0,this.mdMql.removeListener(this.mdListener),this.mdMql=void 0,this.mdListener=void 0,this.lgMql.removeListener(this.lgListener),this.lgMql=void 0,this.lgListener=void 0,this.currentSubject.complete()},SkyMediaQueryService.prototype.setupListener=function(e,t){var r=this;this.zone.run(function(){e.matches&&(r._current=t,r.currentSubject.next(t))})},SkyMediaQueryService}();u.xs="(max-width: 767px)",u.sm="(min-width: 768px) and (max-width: 991px)",u.md="(min-width: 992px) and (max-width: 1199px)",u.lg="(min-width: 1200px)",u=s=__decorate([i.Injectable(),__metadata("design:paramtypes",[i.NgZone])],u),t.SkyMediaQueryService=u;var s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(1),n=r(28),u=function(){function SkyNumericPipe(e){this.skyNumeric=e}return SkyNumericPipe.prototype.transform=function(e,t){var r=new n.NumericOptions;if(t&&!1===t.truncate&&void 0===t.digits&&(t.digits=0),t&&t.minDigits&&t.digits&&t.minDigits>t.digits)throw new Error("The `digits` property must be greater than or equal to the `minDigits` property");return t&&t.minDigits&&!t.digits&&(t.digits=t.minDigits),Object.assign(r,t),this.skyNumeric.formatNumber(e,r)},SkyNumericPipe}();u=__decorate([i.Pipe({name:"skyNumeric"}),__metadata("design:paramtypes",[o.SkyNumericService])],u),t.SkyNumericPipe=u},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,r){"use strict";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),__export(r(15)),__export(r(18)),__export(r(19)),__export(r(21)),__export(r(23)),__export(r(25)),__export(r(31)),__export(r(2))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(12))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(2),n=r(4),u=function(){function SkyDynamicComponentModule(){}return SkyDynamicComponentModule}();u=__decorate([i.NgModule({providers:[o.SkyWindowRefService,n.SkyDynamicComponentService]})],u),t.SkyDynamicComponentModule=u},function(e,t,r){"use strict";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),__export(r(3)),__export(r(14)),__export(r(4))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=function(){function SkyAppFormat(){}return SkyAppFormat.prototype.formatText=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return String(e).replace(/\{(\d+)\}/g,function(e,r){return t[parseInt(r,10)]})},SkyAppFormat}();o=__decorate([i.Injectable()],o),t.SkyAppFormat=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(16);t.SkyAppFormat=i.SkyAppFormat;var o=function(){function SkyFormat(){}return SkyFormat.formatText=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return this.isEmpty(e)?"":String(e).replace(/\{(\d+)\}/g,function(e,r){return t[parseInt(r,10)]})},SkyFormat.isEmpty=function(e){return null===e||void 0===e},SkyFormat}();t.SkyFormat=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(17))},function(e,t,r){"use strict";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),__export(r(20)),__export(r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(9),n=r(5),u=function(){function SkyLogModule(){}return SkyLogModule}();u=__decorate([i.NgModule({imports:[o.CommonModule],providers:[n.SkyLogService]})],u),t.SkyLogModule=u},function(e,t,r){"use strict";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),__export(r(22)),__export(r(7)),__export(r(6))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(9),n=r(7),u=function(){function SkyMediaQueryModule(){}return SkyMediaQueryModule}();u=__decorate([i.NgModule({providers:[n.SkyMediaQueryService],imports:[o.CommonModule]})],u),t.SkyMediaQueryModule=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(24))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=function(){function MutationObserverService(){}return MutationObserverService.prototype.create=function(e){return new MutationObserver(e)},MutationObserverService}();o=__decorate([i.Injectable()],o),t.MutationObserverService=o},function(e,t,r){"use strict";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),__export(r(8)),__export(r(1)),__export(r(27))},function(e,t,r){"use strict";function isNumeric(e){return!isNaN(e-parseFloat(e))}function parseIntAutoRadix(e){var t=parseInt(e,10);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}Object.defineProperty(t,"__esModule",{value:!0});var i=r(11),o=r(37),n=function(){function SkyNumberFormatUtility(){}return SkyNumberFormatUtility.formatNumber=function(e,t,r,n,u,s){if(void 0===u&&(u=null),void 0===s&&(s=!1),null==t)return null;if("number"!=typeof(t="string"==typeof t&&isNumeric(t)?+t:t))throw Error("SkyInvalidPipeArgument: '"+t+"'");var c=void 0,a=void 0,l=void 0;if(r!==i.SkyIntlNumberFormatStyle.Currency&&(c=1,a=0,l=3),n){var d=n.match(this._NUMBER_FORMAT_REGEXP);if(null===d)throw new Error(n+" is not a valid digit info for number pipes");null!=d[1]&&(c=parseIntAutoRadix(d[1])),null!=d[3]&&(a=parseIntAutoRadix(d[3])),null!=d[5]&&(l=parseIntAutoRadix(d[5]))}return o.SkyIntlNumberFormatter.format(t,e,r,{minimumIntegerDigits:c,minimumFractionDigits:a,maximumFractionDigits:l,currency:u,currencyAsSymbol:s})},SkyNumberFormatUtility}();n._NUMBER_FORMAT_REGEXP=/^(\d+)?\.((\d+)(-(\d+))?)?$/,t.SkyNumberFormatUtility=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(10),n=r(30),u=r(8),s=r(1),c=function(){function SkyNumericModule(){}return SkyNumericModule}();c=__decorate([i.NgModule({declarations:[u.SkyNumericPipe],providers:[u.SkyNumericPipe,s.SkyNumericService],imports:[o.SkyI18nModule,n.SkyCoreResourcesModule],exports:[u.SkyNumericPipe]})],c),t.SkyNumericModule=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function NumericOptions(){this.digits=1,this.format="number",this.iso="USD",this.truncate=!0,this.truncateAfter=0}return NumericOptions}();t.NumericOptions=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(38),n=r(35),u=function(){function SkyCoreResourcesModule(){}return SkyCoreResourcesModule}();u=__decorate([i.NgModule({providers:[{provide:o.SKY_LIB_RESOURCES_PROVIDERS,useClass:n.SkyCoreResourcesProvider,multi:!0}]})],u),t.SkyCoreResourcesModule=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(29))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(32))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(40);r(41);var n=function(){function SkyUIConfigService(){}return SkyUIConfigService.prototype.getConfig=function(e,t){return o.Observable.of(t)},SkyUIConfigService.prototype.setConfig=function(e,t){return o.Observable.of({})},SkyUIConfigService}();n=__decorate([i.Injectable()],n),t.SkyUIConfigService=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=function(){function SkyWindowRefService(){}return SkyWindowRefService.prototype.getWindow=function(){return window},SkyWindowRefService}();o=__decorate([i.Injectable()],o),t.SkyWindowRefService=o},function(e,t,r){"use strict";function getWindow(){return window}Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=function(){function SkyAppWindowRef(){}return Object.defineProperty(SkyAppWindowRef.prototype,"nativeWindow",{get:function(){return getWindow()},enumerable:!0,configurable:!0}),SkyAppWindowRef}();o=__decorate([i.Injectable()],o),t.SkyAppWindowRef=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),o=r(36),n=function(){function SkyCoreResourcesProvider(){this.resources={"EN-US":{skyux_numeric_billions_symbol:"B",skyux_numeric_millions_symbol:"M",skyux_numeric_thousands_symbol:"K",skyux_numeric_trillions_symbol:"T"}}}return SkyCoreResourcesProvider.prototype.getString=function(e,t){return o.getStringForLocale(this.resources,e.locale,t)},SkyCoreResourcesProvider}();n=__decorate([i.Injectable()],n),t.SkyCoreResourcesProvider=n},function(e,t){e.exports=o},function(e,t){e.exports=n},function(e,t){e.exports=u},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=a}])});

@@ -0,1 +1,5 @@

# 3.5.3 (2019-05-06)
- Fixed `SkyNumericPipe` to include proper locale data when used with Angular version 5 and higher. [#74](https://github.com/blackbaud/skyux-core/pull/74)
# 3.5.2 (2019-03-20)

@@ -2,0 +6,0 @@

export { SkyAppFormat } from './app-format';
export declare class SkyFormat {
constructor();
static formatText(format: string, ...args: any[]): string;
private static isEmpty(str);
}
// Need to keep this export here for backwards compatibility.
export { SkyAppFormat } from './app-format';
var SkyFormat = (function () {
/* istanbul ignore next */
function SkyFormat() {

@@ -5,0 +6,0 @@ }

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"SkyFormat":{"__symbolic":"class","statics":{"isEmpty":{"__symbolic":"function","parameters":["str"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":null},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":{"__symbolic":"reference","name":"undefined"}}}}}}},"exports":[{"from":"./app-format","export":["SkyAppFormat"]}]},{"__symbolic":"module","version":1,"metadata":{"SkyFormat":{"__symbolic":"class","statics":{"isEmpty":{"__symbolic":"function","parameters":["str"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":null},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":{"__symbolic":"reference","name":"undefined"}}}}}}},"exports":[{"from":"./app-format","export":["SkyAppFormat"]}]}]
[{"__symbolic":"module","version":3,"metadata":{"SkyFormat":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"isEmpty":{"__symbolic":"function","parameters":["str"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":null},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":{"__symbolic":"reference","name":"undefined"}}}}}}},"exports":[{"from":"./app-format","export":["SkyAppFormat"]}]},{"__symbolic":"module","version":1,"metadata":{"SkyFormat":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"isEmpty":{"__symbolic":"function","parameters":["str"],"value":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":null},"right":{"__symbolic":"binop","operator":"===","left":{"__symbolic":"reference","name":"str"},"right":{"__symbolic":"reference","name":"undefined"}}}}}}},"exports":[{"from":"./app-format","export":["SkyAppFormat"]}]}]
import { NgModule } from '@angular/core';
import { CurrencyPipe, DecimalPipe } from '@angular/common';
import { SkyI18nModule } from '@skyux/i18n';

@@ -19,4 +18,2 @@ import { SkyCoreResourcesModule } from '../shared';

providers: [
CurrencyPipe,
DecimalPipe,
SkyNumericPipe,

@@ -23,0 +20,0 @@ SkyNumericService

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"SkyNumericModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}],"providers":[{"__symbolic":"reference","module":"@angular/common","name":"CurrencyPipe"},{"__symbolic":"reference","module":"@angular/common","name":"DecimalPipe"},{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"},{"__symbolic":"reference","module":"./numeric.service","name":"SkyNumericService"}],"imports":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyI18nModule"},{"__symbolic":"reference","module":"../shared","name":"SkyCoreResourcesModule"}],"exports":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"SkyNumericModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}],"providers":[{"__symbolic":"reference","module":"@angular/common","name":"CurrencyPipe"},{"__symbolic":"reference","module":"@angular/common","name":"DecimalPipe"},{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"},{"__symbolic":"reference","module":"./numeric.service","name":"SkyNumericService"}],"imports":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyI18nModule"},{"__symbolic":"reference","module":"../shared","name":"SkyCoreResourcesModule"}],"exports":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}]}]}]}}}]
[{"__symbolic":"module","version":3,"metadata":{"SkyNumericModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}],"providers":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"},{"__symbolic":"reference","module":"./numeric.service","name":"SkyNumericService"}],"imports":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyI18nModule"},{"__symbolic":"reference","module":"../shared","name":"SkyCoreResourcesModule"}],"exports":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}]}]}]}}},{"__symbolic":"module","version":1,"metadata":{"SkyNumericModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}],"providers":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"},{"__symbolic":"reference","module":"./numeric.service","name":"SkyNumericService"}],"imports":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyI18nModule"},{"__symbolic":"reference","module":"../shared","name":"SkyCoreResourcesModule"}],"exports":[{"__symbolic":"reference","module":"./numeric.pipe","name":"SkyNumericPipe"}]}]}]}}}]

@@ -1,11 +0,9 @@

import { CurrencyPipe, DecimalPipe } from '@angular/common';
import { SkyLibResourcesService } from '@skyux/i18n/modules/i18n/lib-resources.service';
import { SkyLibResourcesService } from '@skyux/i18n';
import { NumericOptions } from './numeric.options';
export declare class SkyNumericService {
private currencyPipe;
private decimalPipe;
private resourcesService;
shortSymbol: string;
private symbolIndex;
constructor(currencyPipe: CurrencyPipe, decimalPipe: DecimalPipe, resourcesService: SkyLibResourcesService);
private defaultLocale;
constructor(resourcesService: SkyLibResourcesService);
/**

@@ -12,0 +10,0 @@ * Shortens with or without symbol (K/M/B/T) depending on value of number.

import { Injectable } from '@angular/core';
import { CurrencyPipe, DecimalPipe } from '@angular/common';
import { SkyLibResourcesService } from '@skyux/i18n/modules/i18n/lib-resources.service';
import { SkyIntlNumberFormatStyle } from '@skyux/i18n/modules/i18n/intl-number-format-style';
import { SkyLibResourcesService } from '@skyux/i18n';
import { SkyNumberFormatUtility } from './number-format-utility';
var SkyNumericService = (function () {
function SkyNumericService(currencyPipe, decimalPipe, resourcesService) {
this.currencyPipe = currencyPipe;
this.decimalPipe = decimalPipe;
function SkyNumericService(resourcesService) {
this.resourcesService = resourcesService;

@@ -15,2 +14,3 @@ this.symbolIndex = [

];
this.defaultLocale = 'en-US';
}

@@ -23,3 +23,4 @@ /**

SkyNumericService.prototype.formatNumber = function (value, options) {
if (isNaN(value)) {
/* tslint:disable-next-line:no-null-keyword */
if (isNaN(value) || value === null) {
return '';

@@ -70,3 +71,3 @@ }

var symbolDisplay = 'symbol';
output = this.currencyPipe.transform(parseFloat(output), options.iso, symbolDisplay, digits);
output = SkyNumberFormatUtility.formatNumber(this.defaultLocale, parseFloat(output), SkyIntlNumberFormatStyle.Currency, digits, options.iso, symbolDisplay);
break;

@@ -88,3 +89,3 @@ // The following is a catch-all to ensure that if

}
output = this.decimalPipe.transform(parseFloat(output), digits);
output = SkyNumberFormatUtility.formatNumber(this.defaultLocale, parseFloat(output), SkyIntlNumberFormatStyle.Decimal, digits);
break;

@@ -132,6 +133,4 @@ }

SkyNumericService.ctorParameters = function () { return [
{ type: CurrencyPipe, },
{ type: DecimalPipe, },
{ type: SkyLibResourcesService, },
]; };
//# sourceMappingURL=numeric.service.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"SkyNumericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"CurrencyPipe"},{"__symbolic":"reference","module":"@angular/common","name":"DecimalPipe"},{"__symbolic":"reference","module":"@skyux/i18n/modules/i18n/lib-resources.service","name":"SkyLibResourcesService"}]}],"formatNumber":[{"__symbolic":"method"}],"storeShortenSymbol":[{"__symbolic":"method"}],"replaceShortenSymbol":[{"__symbolic":"method"}],"getSymbol":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SkyNumericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"CurrencyPipe"},{"__symbolic":"reference","module":"@angular/common","name":"DecimalPipe"},{"__symbolic":"reference","module":"@skyux/i18n/modules/i18n/lib-resources.service","name":"SkyLibResourcesService"}]}],"formatNumber":[{"__symbolic":"method"}],"storeShortenSymbol":[{"__symbolic":"method"}],"replaceShortenSymbol":[{"__symbolic":"method"}],"getSymbol":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":3,"metadata":{"SkyNumericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyLibResourcesService"}]}],"formatNumber":[{"__symbolic":"method"}],"storeShortenSymbol":[{"__symbolic":"method"}],"replaceShortenSymbol":[{"__symbolic":"method"}],"getSymbol":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SkyNumericService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyLibResourcesService"}]}],"formatNumber":[{"__symbolic":"method"}],"storeShortenSymbol":[{"__symbolic":"method"}],"replaceShortenSymbol":[{"__symbolic":"method"}],"getSymbol":[{"__symbolic":"method"}]}}}}]
{
"name": "@skyux/core",
"version": "3.5.2",
"version": "3.5.3",
"description": "SKY UX Core",

@@ -28,10 +28,10 @@ "main": "bundles/bundle.umd.js",

"@angular/core": ">=4.3.6",
"@skyux/i18n": "^3.3.0"
"@skyux/i18n": "^3.6.0"
},
"dependencies": {},
"devDependencies": {
"@blackbaud/skyux": "2.43.0",
"@blackbaud/skyux-builder": "1.33.0",
"@skyux-sdk/builder-plugin-skyux": "1.0.0-rc.6"
"@blackbaud/skyux": "2.49.0",
"@blackbaud/skyux-builder": "1.34.1",
"@skyux-sdk/builder-plugin-skyux": "1.0.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc