@progress/kendo-angular-progressbar 2.0.4 → 3.0.0-next.202203230843
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-progressbar.umd.js +5 -0
- package/{dist/es2015/chunk → chunk}/chunk-progressbar.component.d.ts +6 -3
- package/{dist/es2015/common → common}/constants.d.ts +0 -0
- package/{dist/es2015/common → common}/progressbar-base.d.ts +19 -16
- package/{dist/es2015/common → common}/util.d.ts +0 -0
- package/{dist/es2015 → esm2015}/chunk/chunk-progressbar.component.js +51 -39
- package/{dist/es2015 → esm2015}/common/constants.js +0 -0
- package/{dist/es2015 → esm2015}/common/progressbar-base.js +61 -84
- package/{dist/es2015 → esm2015}/common/util.js +0 -3
- package/{dist/es2015/index.d.ts → esm2015/kendo-angular-progressbar.js} +0 -1
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/progressbar.component.js +79 -58
- package/{dist/es2015 → esm2015}/progressbar.module.js +14 -11
- package/{dist/es2015 → esm2015}/types/animation-end-event.js +1 -0
- package/{dist/es2015 → esm2015}/types/animation-options.interface.js +1 -0
- package/{dist/es2015 → esm2015}/types/label-fn-type.js +1 -0
- package/{dist/es → esm2015}/types/label-position.js +1 -0
- package/{dist/es → esm2015}/types/label-settings.interface.js +1 -0
- package/{dist/es → esm2015}/types/label-type.js +1 -0
- package/{dist/es → esm2015}/types/progressbar-animation.interface.js +1 -0
- package/{dist/es → esm2015}/types/progressbar-orientation.js +1 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-progressbar.js} +201 -187
- package/{dist/es/index.js → kendo-angular-progressbar.d.ts} +1 -1
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +32 -102
- package/{dist/es2015/progressbar.component.d.ts → progressbar.component.d.ts} +10 -7
- package/{dist/es2015/progressbar.module.d.ts → progressbar.module.d.ts} +7 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/types → types}/animation-end-event.d.ts +0 -0
- package/{dist/es2015/types → types}/animation-options.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/label-fn-type.d.ts +0 -0
- package/{dist/es2015/types → types}/label-position.d.ts +0 -0
- package/{dist/es2015/types → types}/label-settings.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/label-type.d.ts +0 -0
- package/{dist/es2015/types → types}/progressbar-animation.interface.d.ts +0 -0
- package/{dist/es2015/types → types}/progressbar-orientation.d.ts +0 -0
- package/dist/cdn/js/kendo-angular-progressbar.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/chunk/chunk-progressbar.component.js +0 -129
- package/dist/es/common/constants.js +0 -16
- package/dist/es/common/progressbar-base.js +0 -305
- package/dist/es/common/util.js +0 -86
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/progressbar.component.js +0 -304
- package/dist/es/progressbar.module.js +0 -55
- package/dist/es/types/animation-end-event.js +0 -4
- package/dist/es/types/animation-options.interface.js +0 -4
- package/dist/es/types/label-fn-type.js +0 -4
- package/dist/es2015/index.js +0 -9
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/main.js +0 -7
- package/dist/es2015/types/label-position.js +0 -4
- package/dist/es2015/types/label-settings.interface.js +0 -4
- package/dist/es2015/types/label-type.js +0 -4
- package/dist/es2015/types/progressbar-animation.interface.js +0 -4
- package/dist/es2015/types/progressbar-orientation.js +0 -4
- package/dist/fesm5/index.js +0 -875
- package/dist/npm/chunk/chunk-progressbar.component.js +0 -131
- package/dist/npm/common/constants.js +0 -18
- package/dist/npm/common/progressbar-base.js +0 -307
- package/dist/npm/common/util.js +0 -89
- package/dist/npm/index.js +0 -13
- package/dist/npm/main.js +0 -12
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/progressbar.component.js +0 -306
- package/dist/npm/progressbar.module.js +0 -57
- package/dist/npm/types/animation-end-event.js +0 -6
- package/dist/npm/types/animation-options.interface.js +0 -6
- package/dist/npm/types/label-fn-type.js +0 -6
- package/dist/npm/types/label-position.js +0 -6
- package/dist/npm/types/label-settings.interface.js +0 -6
- package/dist/npm/types/label-type.js +0 -6
- package/dist/npm/types/progressbar-animation.interface.js +0 -6
- package/dist/npm/types/progressbar-orientation.js +0 -6
- package/dist/systemjs/kendo-angular-progressbar.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-angular-common"),require("@angular/common")):"function"==typeof define&&define.amd?define("KendoAngularProgressbar",["exports","@angular/core","@progress/kendo-licensing","@progress/kendo-angular-l10n","@progress/kendo-angular-common","@angular/common"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularProgressbar={},e.ng.core,e.KendoLicensing,e.KendoAngularL10N,e.KendoAngularCommon,e.ng.common)}(this,function(e,a,s,t,n,r){"use strict";function i(s){if(s&&s.__esModule)return s;var n=Object.create(null);return s&&Object.keys(s).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(s,e),Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return s[e]}}))}),n.default=s,Object.freeze(n)}var o=i(a),l=i(t),p=i(r),u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}Object.create;Object.create;function g(e,t,s,n){var r,i,a,o,l=1===(r=e.toString().split(".")).length?""+r[0]:r[0]+"."+r[1].substr(0,b);if("boolean"!=typeof n){if("string"!=typeof n.format)return"function"==typeof n.format?n.format(e):l;switch(n.format){case"value":return l;case"percent":return Math.floor((i=e,a=t,o=Math.abs((s-a)/100),Math.abs((i-a)/o)))+"%";default:return l}}return l}function h(e,t,s){return Math.max(Math.min(s,t),e)}function m(e,t,s){return Math.max((s-e)/(t-e),1e-4)}function d(e,t,s){return e[t]&&void 0!==e[t].currentValue?e[t].currentValue:s}var y={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648024936,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},b=3,f=(Object.defineProperty(C.prototype,"isHorizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isVertical",{get:function(){return"vertical"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"reverseClass",{get:function(){return this.reverse},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"indeterminateClass",{get:function(){return this.indeterminate},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"dirAttribute",{get:function(){return this.direction},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"ariaMinAttribute",{get:function(){return String(this.min)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"ariaMaxAttribute",{get:function(){return String(this.max)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"ariaValueAttribute",{get:function(){return this.indeterminate?void 0:String(this.displayValue)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"isCompleted",{get:function(){return this.value===this.max},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"statusWidth",{get:function(){return"horizontal"===this.orientation?100*this._progressRatio:100},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"statusHeight",{get:function(){return"vertical"===this.orientation?100*this._progressRatio:100},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"statusWrapperWidth",{get:function(){return"horizontal"===this.orientation?100/this._progressRatio:100},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"statusWrapperHeight",{get:function(){return"vertical"===this.orientation?100/this._progressRatio:100},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"_progressRatio",{get:function(){return m(this.min,this.max,this.displayValue)},enumerable:!1,configurable:!0}),C.prototype.ngOnChanges=function(e){var t=d(e,"min",this.min),s=d(e,"max",this.max),n=d(e,"value",this.value);if(e.min||e.max||e.value){if(e.min||e.max){var r=t,i=s;if(a.isDevMode&&i<r)throw new Error("The max value should be greater than the min.")}e.value&&(null!=n&&!Number.isNaN(n)||(this.value=t),i=this.displayValue,this.displayValue=h(this.min,this.max,n),this.previousValue=i),this.min=t,this.max=s,this.displayValue=h(this.min,this.max,n)}},C.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},C);function C(e){var t=this;this.localization=e,this.widgetClasses=!0,this.roleAttribute="progressbar",this.max=100,this.min=0,this.value=0,this.orientation="horizontal",this.disabled=!1,this.reverse=!1,this.indeterminate=!1,this.displayValue=0,this.previousValue=0,s.validatePackage(y),this.localizationChangeSubscription=e.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr"})}f.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,deps:[{token:l.LocalizationService}],target:o.ɵɵFactoryTarget.Component}),f.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"ng-component",inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},host:{properties:{"class.k-widget":"this.widgetClasses","class.k-progressbar":"this.widgetClasses","class.k-progressbar-horizontal":"this.isHorizontal","class.k-progressbar-vertical":"this.isVertical","class.k-state-disabled":"this.disabledClass","class.k-progressbar-reverse":"this.reverseClass","class.k-progressbar-indeterminate":"this.indeterminateClass","attr.dir":"this.dirAttribute","attr.role":"this.roleAttribute","attr.aria-valuemin":"this.ariaMinAttribute","attr.aria-valuemax":"this.ariaMaxAttribute","attr.aria-valuenow":"this.ariaValueAttribute"}},usesOnChanges:!0,ngImport:o,template:"",isInline:!0}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,decorators:[{type:a.Component,args:[{template:""}]}],ctorParameters:function(){return[{type:l.LocalizationService}]},propDecorators:{widgetClasses:[{type:a.HostBinding,args:["class.k-widget"]},{type:a.HostBinding,args:["class.k-progressbar"]}],isHorizontal:[{type:a.HostBinding,args:["class.k-progressbar-horizontal"]}],isVertical:[{type:a.HostBinding,args:["class.k-progressbar-vertical"]}],disabledClass:[{type:a.HostBinding,args:["class.k-state-disabled"]}],reverseClass:[{type:a.HostBinding,args:["class.k-progressbar-reverse"]}],indeterminateClass:[{type:a.HostBinding,args:["class.k-progressbar-indeterminate"]}],dirAttribute:[{type:a.HostBinding,args:["attr.dir"]}],roleAttribute:[{type:a.HostBinding,args:["attr.role"]}],ariaMinAttribute:[{type:a.HostBinding,args:["attr.aria-valuemin"]}],ariaMaxAttribute:[{type:a.HostBinding,args:["attr.aria-valuemax"]}],ariaValueAttribute:[{type:a.HostBinding,args:["attr.aria-valuenow"]}],max:[{type:a.Input}],min:[{type:a.Input}],value:[{type:a.Input}],orientation:[{type:a.Input}],disabled:[{type:a.Input}],reverse:[{type:a.Input}],indeterminate:[{type:a.Input}]}});c(S,v=f),Object.defineProperty(S.prototype,"showLabel",{get:function(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"labelPosition",{get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPositionStart",{get:function(){return"start"===this.labelPosition},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPositionCenter",{get:function(){return"center"===this.labelPosition},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isPositionEnd",{get:function(){return"end"===this.labelPosition},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"formattedLabelValue",{get:function(){return g(this.displayValue,this.min,this.max,this.label)},enumerable:!1,configurable:!0}),S.prototype.ngOnChanges=function(e){var t,s,n,r;v.prototype.ngOnChanges.call(this,e),this.isAnimationInProgress&&(s=e,t=Boolean(s.animation),s=t&&s.animation.currentValue,t&&!s)&&(this.cancelCurrentAnimation=!0),t=e,s=this.animation,n=this.previousValue,r=this.displayValue,s&&"undefined"!=typeof requestAnimationFrame&&t.value&&n!==r&&!e.value.firstChange&&this.startAnimation(this.previousValue)},S.prototype.ngOnDestroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)},S.prototype.startAnimation=function(n){var r=this,i=(this.isAnimationInProgress=!0,this.progressStatusElement.nativeElement),a=this.progressStatusWrapperElement.nativeElement,o=this.getAnimationOptions(n);this.zone.runOutsideAngular(function(){r.animationFrame&&cancelAnimationFrame(r.animationFrame);function s(){var e=(new Date).getTime()-o.startTime,e=Math.min(e/o.duration,1),t=o.startSize+o.deltaSize*e;r.renderValueChange(i,a,o.property,t,100/t*100),e<1?r.cancelCurrentAnimation?r.resetProgress(i,a,o.property):r.animationFrame=requestAnimationFrame(s):r.stopAnimation(n)}s()})},Object.defineProperty(S.prototype,"animationDuration",{get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)},enumerable:!1,configurable:!0}),S.prototype.stopAnimation=function(e){var t=this;n.hasObservers(this.animationEnd)&&this.zone.run(function(){t.animationEnd.emit({from:e,to:t.displayValue})}),this.zone.run(function(){t.isAnimationInProgress=!1})},S.prototype.getAnimationOptions=function(e){var t="horizontal"===this.orientation,e=m(this.min,this.max,e),s=t?100*e:100,e=t?100:100*e,n=t?"width":"height",r=(new Date).getTime(),i=t?this.statusWidth-s:this.statusHeight-e;return{property:n,startTime:r,startSize:t?s:e,deltaSize:i,duration:this.animationDuration*Math.abs(i/100)}},S.prototype.renderValueChange=function(e,t,s,n,r){this.renderer.setStyle(e,s,n+"%"),this.renderer.setStyle(t,s,r+"%")},S.prototype.resetProgress=function(e,t,s){var n=this,r=m(this.min,this.max,this.value);this.renderValueChange(e,t,s,100*r,100/r),this.zone.run(function(){n.cancelCurrentAnimation=!1,n.isAnimationInProgress=!1})};var v,k=S;function S(e,t,s){var n=v.call(this,e)||this;return n.localization=e,n.zone=t,n.renderer=s,n.label=!0,n.animation=!1,n.animationEnd=new a.EventEmitter,n}k.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,deps:[{token:l.LocalizationService},{token:o.NgZone},{token:o.Renderer2}],target:o.ɵɵFactoryTarget.Component}),k.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:k,selector:"kendo-progressbar",inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.progressbar"}],viewQueries:[{propertyName:"progressStatusElement",first:!0,predicate:["progressStatus"],descendants:!0},{propertyName:"progressStatusWrapperElement",first:!0,predicate:["progressStatusWrap"],descendants:!0}],exportAs:["kendoProgressBar"],usesInheritance:!0,usesOnChanges:!0,ngImport:o,template:'\n <span class="k-progress-status-wrap"\n [class.k-progress-start]="isPositionStart"\n [class.k-progress-center]="isPositionCenter"\n [class.k-progress-end]="isPositionEnd"\n [ngStyle]="emptyCssStyle"\n [ngClass]="emptyCssClass">\n <span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>\n </span>\n <div\n #progressStatus\n class="k-state-selected"\n [class.k-complete]="isCompleted"\n [ngStyle]="progressCssStyle"\n [ngClass]="progressCssClass"\n [style.width.%]="statusWidth"\n [style.height.%]="statusHeight"\n >\n <span\n #progressStatusWrap\n class="k-progress-status-wrap"\n [style.width.%]="statusWrapperWidth"\n [style.height.%]="statusWrapperHeight"\n [class.k-progress-start]="isPositionStart"\n [class.k-progress-center]="isPositionCenter"\n [class.k-progress-end]="isPositionEnd"\n >\n <span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>\n </span>\n </div>\n ',isInline:!0,directives:[{type:p.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]},{type:p.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:p.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:k,decorators:[{type:a.Component,args:[{exportAs:"kendoProgressBar",selector:"kendo-progressbar",template:'\n <span class="k-progress-status-wrap"\n [class.k-progress-start]="isPositionStart"\n [class.k-progress-center]="isPositionCenter"\n [class.k-progress-end]="isPositionEnd"\n [ngStyle]="emptyCssStyle"\n [ngClass]="emptyCssClass">\n <span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>\n </span>\n <div\n #progressStatus\n class="k-state-selected"\n [class.k-complete]="isCompleted"\n [ngStyle]="progressCssStyle"\n [ngClass]="progressCssClass"\n [style.width.%]="statusWidth"\n [style.height.%]="statusHeight"\n >\n <span\n #progressStatusWrap\n class="k-progress-status-wrap"\n [style.width.%]="statusWrapperWidth"\n [style.height.%]="statusWrapperHeight"\n [class.k-progress-start]="isPositionStart"\n [class.k-progress-center]="isPositionCenter"\n [class.k-progress-end]="isPositionEnd"\n >\n <span *ngIf="showLabel" class="k-progress-status">{{formattedLabelValue}}</span>\n </span>\n </div>\n ',providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.progressbar"}]}]}],ctorParameters:function(){return[{type:l.LocalizationService},{type:o.NgZone},{type:o.Renderer2}]},propDecorators:{label:[{type:a.Input}],progressCssStyle:[{type:a.Input}],progressCssClass:[{type:a.Input}],emptyCssStyle:[{type:a.Input}],emptyCssClass:[{type:a.Input}],animation:[{type:a.Input}],animationEnd:[{type:a.Output}],progressStatusElement:[{type:a.ViewChild,args:["progressStatus",{static:!1}]}],progressStatusWrapperElement:[{type:a.ViewChild,args:["progressStatusWrap",{static:!1}]}]}});c(O,P=f),Object.defineProperty(O.prototype,"chunks",{get:function(){for(var e,t=this.chunkCount,s=Array(t).fill(!1),n=Math.floor(this._progressRatio*t),r=0;r<n;r++)s[r]=!0;return t=this.orientation,e=this.reverse,("vertical"===t&&!e||"horizontal"===t&&e)&&s.reverse(),s},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"chunkSizePercentage",{get:function(){return 100/this.chunkCount},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"orientationStyles",{get:function(){return"horizontal"===this.orientation?(this._orientationStyles.width=this.chunkSizePercentage+"%",this._orientationStyles.height=void 0):(this._orientationStyles.height=this.chunkSizePercentage+"%",this._orientationStyles.width=void 0),this._orientationStyles},enumerable:!1,configurable:!0});var P,f=O;function O(e){var t=P.call(this,e)||this;return t.localization=e,t.chunkCount=5,t._orientationStyles={width:t.chunkSizePercentage+"%"},t}f.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,deps:[{token:l.LocalizationService}],target:o.ɵɵFactoryTarget.Component}),f.ɵcmp=o.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:f,selector:"kendo-chunkprogressbar",inputs:{chunkCount:"chunkCount",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass"},providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.chunkprogressbar"}],exportAs:["kendoChunkProgressBar"],usesInheritance:!0,ngImport:o,template:'\n <ul class="k-reset">\n <li class="k-item" *ngFor="let chunk of chunks; let i = index;"\n [class.k-first]="i === 0"\n [class.k-last]="i === chunkCount - 1"\n [class.k-state-selected]="chunk"\n [ngClass]="chunk ? progressCssClass : emptyCssClass"\n [ngStyle]="chunk ? progressCssStyle : emptyCssStyle"\n [style.width]="orientationStyles.width"\n [style.height]="orientationStyles.height"\n >\n </li>\n </ul>\n ',isInline:!0,directives:[{type:p.NgForOf,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{type:p.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{type:p.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:f,decorators:[{type:a.Component,args:[{exportAs:"kendoChunkProgressBar",selector:"kendo-chunkprogressbar",template:'\n <ul class="k-reset">\n <li class="k-item" *ngFor="let chunk of chunks; let i = index;"\n [class.k-first]="i === 0"\n [class.k-last]="i === chunkCount - 1"\n [class.k-state-selected]="chunk"\n [ngClass]="chunk ? progressCssClass : emptyCssClass"\n [ngStyle]="chunk ? progressCssStyle : emptyCssStyle"\n [style.width]="orientationStyles.width"\n [style.height]="orientationStyles.height"\n >\n </li>\n </ul>\n ',providers:[t.LocalizationService,{provide:t.L10N_PREFIX,useValue:"kendo.chunkprogressbar"}]}]}],ctorParameters:function(){return[{type:l.LocalizationService}]},propDecorators:{chunkCount:[{type:a.Input}],progressCssStyle:[{type:a.Input}],progressCssClass:[{type:a.Input}],emptyCssStyle:[{type:a.Input}],emptyCssClass:[{type:a.Input}]}});var p=[k,f],t=[r.CommonModule],I=function(){};I.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,deps:[],target:o.ɵɵFactoryTarget.NgModule}),I.ɵmod=o.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,declarations:[k,f],imports:[r.CommonModule],exports:[k,f]}),I.ɵinj=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,imports:[t]}),o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:o,type:I,decorators:[{type:a.NgModule,args:[{declarations:p,exports:p,imports:t}]}]}),e.ChunkProgressBarComponent=f,e.ProgressBarComponent=k,e.ProgressBarModule=I,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ProgressBarBase } from '../common/progressbar-base';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Represents the [Kendo UI ChunkProgressBar component for Angular]({% slug overview_chunkprogressbar %}).
|
|
9
10
|
*
|
|
@@ -31,7 +32,7 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
|
|
|
31
32
|
/**
|
|
32
33
|
* @hidden
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
get chunks(): boolean[];
|
|
35
36
|
/**
|
|
36
37
|
* The CSS styles that will be rendered on the full chunk elements ([see example]({% slug chunkprogressbar_appearance %})).
|
|
37
38
|
* Supports the type of values that are supported by [`ngStyle`]({{ site.data.urls.angular['ngstyleapi'] }}).
|
|
@@ -63,14 +64,16 @@ export declare class ChunkProgressBarComponent extends ProgressBarBase {
|
|
|
63
64
|
/**
|
|
64
65
|
* @hidden
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
|
+
get chunkSizePercentage(): number;
|
|
67
68
|
/**
|
|
68
69
|
* @hidden
|
|
69
70
|
*/
|
|
70
|
-
|
|
71
|
+
get orientationStyles(): any;
|
|
71
72
|
private _orientationStyles;
|
|
72
73
|
/**
|
|
73
74
|
* @hidden
|
|
74
75
|
*/
|
|
75
76
|
constructor(localization: LocalizationService);
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChunkProgressBarComponent, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChunkProgressBarComponent, "kendo-chunkprogressbar", ["kendoChunkProgressBar"], { "chunkCount": "chunkCount"; "progressCssStyle": "progressCssStyle"; "progressCssClass": "progressCssClass"; "emptyCssStyle": "emptyCssStyle"; "emptyCssClass": "emptyCssClass"; }, {}, never, never>;
|
|
76
79
|
}
|
|
File without changes
|
|
@@ -4,24 +4,25 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
6
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
7
|
-
import { ProgressBarOrientation } from '../types/progressbar-orientation';
|
|
8
7
|
import { Subscription } from 'rxjs';
|
|
8
|
+
import { ProgressBarOrientation } from '../types/progressbar-orientation';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* @hidden
|
|
11
12
|
*/
|
|
12
13
|
export declare abstract class ProgressBarBase implements OnChanges {
|
|
13
14
|
protected localization: LocalizationService;
|
|
14
15
|
widgetClasses: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
get isHorizontal(): boolean;
|
|
17
|
+
get isVertical(): boolean;
|
|
18
|
+
get disabledClass(): boolean;
|
|
19
|
+
get reverseClass(): boolean;
|
|
20
|
+
get indeterminateClass(): boolean;
|
|
21
|
+
get dirAttribute(): string;
|
|
21
22
|
roleAttribute: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
get ariaMinAttribute(): string;
|
|
24
|
+
get ariaMaxAttribute(): string;
|
|
25
|
+
get ariaValueAttribute(): string;
|
|
25
26
|
/**
|
|
26
27
|
* The maximum value of the ProgressBar.
|
|
27
28
|
* Defaults to `100`.
|
|
@@ -46,24 +47,24 @@ export declare abstract class ProgressBarBase implements OnChanges {
|
|
|
46
47
|
/**
|
|
47
48
|
* @hidden
|
|
48
49
|
*/
|
|
49
|
-
|
|
50
|
+
get isCompleted(): boolean;
|
|
50
51
|
/**
|
|
51
52
|
* @hidden
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
get statusWidth(): number;
|
|
54
55
|
/**
|
|
55
56
|
* @hidden
|
|
56
57
|
*/
|
|
57
|
-
|
|
58
|
+
get statusHeight(): number;
|
|
58
59
|
/**
|
|
59
60
|
* @hidden
|
|
60
61
|
*/
|
|
61
|
-
|
|
62
|
+
get statusWrapperWidth(): number;
|
|
62
63
|
/**
|
|
63
64
|
* @hidden
|
|
64
65
|
*/
|
|
65
|
-
|
|
66
|
-
protected
|
|
66
|
+
get statusWrapperHeight(): number;
|
|
67
|
+
protected get _progressRatio(): number;
|
|
67
68
|
/**
|
|
68
69
|
* Defines the orientation of the ProgressBar
|
|
69
70
|
* ([see example]({% slug progressbar_orientation %})).
|
|
@@ -98,4 +99,6 @@ export declare abstract class ProgressBarBase implements OnChanges {
|
|
|
98
99
|
constructor(localization: LocalizationService);
|
|
99
100
|
ngOnChanges(changes: SimpleChanges): void;
|
|
100
101
|
ngOnDestroy(): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarBase, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarBase, "ng-component", never, { "max": "max"; "min": "min"; "value": "value"; "orientation": "orientation"; "disabled": "disabled"; "reverse": "reverse"; "indeterminate": "indeterminate"; }, {}, never, never>;
|
|
101
104
|
}
|
|
File without changes
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
5
|
import { ProgressBarBase } from '../common/progressbar-base';
|
|
7
6
|
import { Component, Input } from '@angular/core';
|
|
8
7
|
import { reverseChunks } from '../common/util';
|
|
9
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
|
+
import * as i2 from "@angular/common";
|
|
10
12
|
/**
|
|
11
13
|
* Represents the [Kendo UI ChunkProgressBar component for Angular]({% slug overview_chunkprogressbar %}).
|
|
12
14
|
*
|
|
@@ -24,7 +26,7 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
|
24
26
|
* }
|
|
25
27
|
* ```
|
|
26
28
|
*/
|
|
27
|
-
|
|
29
|
+
export class ChunkProgressBarComponent extends ProgressBarBase {
|
|
28
30
|
/**
|
|
29
31
|
* @hidden
|
|
30
32
|
*/
|
|
@@ -75,32 +77,34 @@ let ChunkProgressBarComponent = class ChunkProgressBarComponent extends Progress
|
|
|
75
77
|
}
|
|
76
78
|
return this._orientationStyles;
|
|
77
79
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
],
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
]
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
80
|
+
}
|
|
81
|
+
ChunkProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChunkProgressBarComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
82
|
+
ChunkProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ChunkProgressBarComponent, selector: "kendo-chunkprogressbar", inputs: { chunkCount: "chunkCount", progressCssStyle: "progressCssStyle", progressCssClass: "progressCssClass", emptyCssStyle: "emptyCssStyle", emptyCssClass: "emptyCssClass" }, providers: [
|
|
83
|
+
LocalizationService,
|
|
84
|
+
{
|
|
85
|
+
provide: L10N_PREFIX,
|
|
86
|
+
useValue: 'kendo.chunkprogressbar'
|
|
87
|
+
}
|
|
88
|
+
], exportAs: ["kendoChunkProgressBar"], usesInheritance: true, ngImport: i0, template: `
|
|
89
|
+
<ul class="k-reset">
|
|
90
|
+
<li class="k-item" *ngFor="let chunk of chunks; let i = index;"
|
|
91
|
+
[class.k-first]="i === 0"
|
|
92
|
+
[class.k-last]="i === chunkCount - 1"
|
|
93
|
+
[class.k-state-selected]="chunk"
|
|
94
|
+
[ngClass]="chunk ? progressCssClass : emptyCssClass"
|
|
95
|
+
[ngStyle]="chunk ? progressCssStyle : emptyCssStyle"
|
|
96
|
+
[style.width]="orientationStyles.width"
|
|
97
|
+
[style.height]="orientationStyles.height"
|
|
98
|
+
>
|
|
99
|
+
</li>
|
|
100
|
+
</ul>
|
|
101
|
+
`, isInline: true, directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ChunkProgressBarComponent, decorators: [{
|
|
103
|
+
type: Component,
|
|
104
|
+
args: [{
|
|
105
|
+
exportAs: 'kendoChunkProgressBar',
|
|
106
|
+
selector: 'kendo-chunkprogressbar',
|
|
107
|
+
template: `
|
|
104
108
|
<ul class="k-reset">
|
|
105
109
|
<li class="k-item" *ngFor="let chunk of chunks; let i = index;"
|
|
106
110
|
[class.k-first]="i === 0"
|
|
@@ -114,14 +118,22 @@ ChunkProgressBarComponent = tslib_1.__decorate([
|
|
|
114
118
|
</li>
|
|
115
119
|
</ul>
|
|
116
120
|
`,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
providers: [
|
|
122
|
+
LocalizationService,
|
|
123
|
+
{
|
|
124
|
+
provide: L10N_PREFIX,
|
|
125
|
+
useValue: 'kendo.chunkprogressbar'
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}]
|
|
129
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { chunkCount: [{
|
|
130
|
+
type: Input
|
|
131
|
+
}], progressCssStyle: [{
|
|
132
|
+
type: Input
|
|
133
|
+
}], progressCssClass: [{
|
|
134
|
+
type: Input
|
|
135
|
+
}], emptyCssStyle: [{
|
|
136
|
+
type: Input
|
|
137
|
+
}], emptyCssClass: [{
|
|
138
|
+
type: Input
|
|
139
|
+
}] } });
|
|
File without changes
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import
|
|
6
|
-
import { HostBinding, Input } from '@angular/core';
|
|
5
|
+
import { HostBinding, Input, Component } from '@angular/core';
|
|
7
6
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
7
|
import { packageMetadata } from '../package-metadata';
|
|
9
8
|
import { validateRange, adjustValueToRange, calculateRatio, extractValueFromChanges } from './util';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
12
13
|
*/
|
|
@@ -157,85 +158,61 @@ export class ProgressBarBase {
|
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
],
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
],
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
],
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
],
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
]
|
|
218
|
-
tslib_1.__decorate([
|
|
219
|
-
Input(),
|
|
220
|
-
tslib_1.__metadata("design:type", Number)
|
|
221
|
-
], ProgressBarBase.prototype, "min", void 0);
|
|
222
|
-
tslib_1.__decorate([
|
|
223
|
-
Input(),
|
|
224
|
-
tslib_1.__metadata("design:type", Number)
|
|
225
|
-
], ProgressBarBase.prototype, "value", void 0);
|
|
226
|
-
tslib_1.__decorate([
|
|
227
|
-
Input(),
|
|
228
|
-
tslib_1.__metadata("design:type", String)
|
|
229
|
-
], ProgressBarBase.prototype, "orientation", void 0);
|
|
230
|
-
tslib_1.__decorate([
|
|
231
|
-
Input(),
|
|
232
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
233
|
-
], ProgressBarBase.prototype, "disabled", void 0);
|
|
234
|
-
tslib_1.__decorate([
|
|
235
|
-
Input(),
|
|
236
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
237
|
-
], ProgressBarBase.prototype, "reverse", void 0);
|
|
238
|
-
tslib_1.__decorate([
|
|
239
|
-
Input(),
|
|
240
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
241
|
-
], ProgressBarBase.prototype, "indeterminate", void 0);
|
|
161
|
+
ProgressBarBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarBase, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
162
|
+
ProgressBarBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProgressBarBase, selector: "ng-component", inputs: { max: "max", min: "min", value: "value", orientation: "orientation", disabled: "disabled", reverse: "reverse", indeterminate: "indeterminate" }, host: { properties: { "class.k-widget": "this.widgetClasses", "class.k-progressbar": "this.widgetClasses", "class.k-progressbar-horizontal": "this.isHorizontal", "class.k-progressbar-vertical": "this.isVertical", "class.k-state-disabled": "this.disabledClass", "class.k-progressbar-reverse": "this.reverseClass", "class.k-progressbar-indeterminate": "this.indeterminateClass", "attr.dir": "this.dirAttribute", "attr.role": "this.roleAttribute", "attr.aria-valuemin": "this.ariaMinAttribute", "attr.aria-valuemax": "this.ariaMaxAttribute", "attr.aria-valuenow": "this.ariaValueAttribute" } }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProgressBarBase, decorators: [{
|
|
164
|
+
type: Component,
|
|
165
|
+
args: [{
|
|
166
|
+
template: ''
|
|
167
|
+
}]
|
|
168
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { widgetClasses: [{
|
|
169
|
+
type: HostBinding,
|
|
170
|
+
args: ['class.k-widget']
|
|
171
|
+
}, {
|
|
172
|
+
type: HostBinding,
|
|
173
|
+
args: ['class.k-progressbar']
|
|
174
|
+
}], isHorizontal: [{
|
|
175
|
+
type: HostBinding,
|
|
176
|
+
args: ['class.k-progressbar-horizontal']
|
|
177
|
+
}], isVertical: [{
|
|
178
|
+
type: HostBinding,
|
|
179
|
+
args: ['class.k-progressbar-vertical']
|
|
180
|
+
}], disabledClass: [{
|
|
181
|
+
type: HostBinding,
|
|
182
|
+
args: ['class.k-state-disabled']
|
|
183
|
+
}], reverseClass: [{
|
|
184
|
+
type: HostBinding,
|
|
185
|
+
args: ['class.k-progressbar-reverse']
|
|
186
|
+
}], indeterminateClass: [{
|
|
187
|
+
type: HostBinding,
|
|
188
|
+
args: ['class.k-progressbar-indeterminate']
|
|
189
|
+
}], dirAttribute: [{
|
|
190
|
+
type: HostBinding,
|
|
191
|
+
args: ['attr.dir']
|
|
192
|
+
}], roleAttribute: [{
|
|
193
|
+
type: HostBinding,
|
|
194
|
+
args: ['attr.role']
|
|
195
|
+
}], ariaMinAttribute: [{
|
|
196
|
+
type: HostBinding,
|
|
197
|
+
args: ['attr.aria-valuemin']
|
|
198
|
+
}], ariaMaxAttribute: [{
|
|
199
|
+
type: HostBinding,
|
|
200
|
+
args: ['attr.aria-valuemax']
|
|
201
|
+
}], ariaValueAttribute: [{
|
|
202
|
+
type: HostBinding,
|
|
203
|
+
args: ['attr.aria-valuenow']
|
|
204
|
+
}], max: [{
|
|
205
|
+
type: Input
|
|
206
|
+
}], min: [{
|
|
207
|
+
type: Input
|
|
208
|
+
}], value: [{
|
|
209
|
+
type: Input
|
|
210
|
+
}], orientation: [{
|
|
211
|
+
type: Input
|
|
212
|
+
}], disabled: [{
|
|
213
|
+
type: Input
|
|
214
|
+
}], reverse: [{
|
|
215
|
+
type: Input
|
|
216
|
+
}], indeterminate: [{
|
|
217
|
+
type: Input
|
|
218
|
+
}] } });
|
|
@@ -52,7 +52,6 @@ const calculatePercentage = (value, min, max) => {
|
|
|
52
52
|
const onePercent = Math.abs((max - min) / 100);
|
|
53
53
|
return Math.abs((value - min) / onePercent);
|
|
54
54
|
};
|
|
55
|
-
const ɵ0 = calculatePercentage;
|
|
56
55
|
/**
|
|
57
56
|
* @hidden
|
|
58
57
|
*/
|
|
@@ -60,7 +59,6 @@ const truncateNumber = (value) => {
|
|
|
60
59
|
const numberParts = value.toString().split('.');
|
|
61
60
|
return numberParts.length === 1 ? `${numberParts[0]}` : `${numberParts[0]}.${numberParts[1].substr(0, LABEL_DECIMALS)}`;
|
|
62
61
|
};
|
|
63
|
-
const ɵ1 = truncateNumber;
|
|
64
62
|
/**
|
|
65
63
|
* @hidden
|
|
66
64
|
*/
|
|
@@ -81,4 +79,3 @@ export const stopCurrentAnimation = (changes) => {
|
|
|
81
79
|
const hasAnimation = isAnimationChanged && changes.animation.currentValue;
|
|
82
80
|
return isAnimationChanged && !hasAnimation;
|
|
83
81
|
};
|
|
84
|
-
export { ɵ0, ɵ1 };
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-progressbar',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1648024936,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|