@progress/kendo-angular-progressbar 2.0.3 → 3.0.0-dev.202204131905

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.
Files changed (78) hide show
  1. package/bundles/kendo-angular-progressbar.umd.js +5 -0
  2. package/{dist/es2015/chunk → chunk}/chunk-progressbar.component.d.ts +6 -3
  3. package/{dist/es2015/common → common}/constants.d.ts +0 -0
  4. package/{dist/es2015/common → common}/progressbar-base.d.ts +19 -16
  5. package/{dist/es2015/common → common}/util.d.ts +0 -0
  6. package/{dist/es2015 → esm2015}/chunk/chunk-progressbar.component.js +51 -39
  7. package/{dist/es2015 → esm2015}/common/constants.js +0 -0
  8. package/{dist/es2015 → esm2015}/common/progressbar-base.js +61 -84
  9. package/{dist/es2015 → esm2015}/common/util.js +0 -3
  10. package/{dist/es2015/index.d.ts → esm2015/kendo-angular-progressbar.js} +0 -1
  11. package/{dist/es → esm2015}/main.js +0 -0
  12. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  13. package/{dist/es2015 → esm2015}/progressbar.component.js +79 -58
  14. package/{dist/es2015 → esm2015}/progressbar.module.js +14 -11
  15. package/{dist/es2015 → esm2015}/types/animation-end-event.js +1 -0
  16. package/{dist/es2015 → esm2015}/types/animation-options.interface.js +1 -0
  17. package/{dist/es2015 → esm2015}/types/label-fn-type.js +1 -0
  18. package/{dist/es → esm2015}/types/label-position.js +1 -0
  19. package/{dist/es → esm2015}/types/label-settings.interface.js +1 -0
  20. package/{dist/es → esm2015}/types/label-type.js +1 -0
  21. package/{dist/es → esm2015}/types/progressbar-animation.interface.js +1 -0
  22. package/{dist/es → esm2015}/types/progressbar-orientation.js +1 -0
  23. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-progressbar.js} +201 -187
  24. package/{dist/es/index.js → kendo-angular-progressbar.d.ts} +1 -1
  25. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  26. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  27. package/package.json +34 -100
  28. package/{dist/es2015/progressbar.component.d.ts → progressbar.component.d.ts} +10 -7
  29. package/{dist/es2015/progressbar.module.d.ts → progressbar.module.d.ts} +7 -0
  30. package/schematics/ngAdd/index.js +5 -2
  31. package/schematics/ngAdd/index.js.map +1 -1
  32. package/{dist/es2015/types → types}/animation-end-event.d.ts +0 -0
  33. package/{dist/es2015/types → types}/animation-options.interface.d.ts +0 -0
  34. package/{dist/es2015/types → types}/label-fn-type.d.ts +0 -0
  35. package/{dist/es2015/types → types}/label-position.d.ts +0 -0
  36. package/{dist/es2015/types → types}/label-settings.interface.d.ts +0 -0
  37. package/{dist/es2015/types → types}/label-type.d.ts +0 -0
  38. package/{dist/es2015/types → types}/progressbar-animation.interface.d.ts +0 -0
  39. package/{dist/es2015/types → types}/progressbar-orientation.d.ts +0 -0
  40. package/dist/cdn/js/kendo-angular-progressbar.js +0 -20
  41. package/dist/cdn/main.js +0 -5
  42. package/dist/es/chunk/chunk-progressbar.component.js +0 -129
  43. package/dist/es/common/constants.js +0 -16
  44. package/dist/es/common/progressbar-base.js +0 -305
  45. package/dist/es/common/util.js +0 -86
  46. package/dist/es/package-metadata.js +0 -15
  47. package/dist/es/progressbar.component.js +0 -304
  48. package/dist/es/progressbar.module.js +0 -55
  49. package/dist/es/types/animation-end-event.js +0 -4
  50. package/dist/es/types/animation-options.interface.js +0 -4
  51. package/dist/es/types/label-fn-type.js +0 -4
  52. package/dist/es2015/index.js +0 -9
  53. package/dist/es2015/index.metadata.json +0 -1
  54. package/dist/es2015/main.js +0 -7
  55. package/dist/es2015/types/label-position.js +0 -4
  56. package/dist/es2015/types/label-settings.interface.js +0 -4
  57. package/dist/es2015/types/label-type.js +0 -4
  58. package/dist/es2015/types/progressbar-animation.interface.js +0 -4
  59. package/dist/es2015/types/progressbar-orientation.js +0 -4
  60. package/dist/fesm5/index.js +0 -875
  61. package/dist/npm/chunk/chunk-progressbar.component.js +0 -131
  62. package/dist/npm/common/constants.js +0 -18
  63. package/dist/npm/common/progressbar-base.js +0 -307
  64. package/dist/npm/common/util.js +0 -89
  65. package/dist/npm/index.js +0 -13
  66. package/dist/npm/main.js +0 -12
  67. package/dist/npm/package-metadata.js +0 -17
  68. package/dist/npm/progressbar.component.js +0 -306
  69. package/dist/npm/progressbar.module.js +0 -57
  70. package/dist/npm/types/animation-end-event.js +0 -6
  71. package/dist/npm/types/animation-options.interface.js +0 -6
  72. package/dist/npm/types/label-fn-type.js +0 -6
  73. package/dist/npm/types/label-position.js +0 -6
  74. package/dist/npm/types/label-settings.interface.js +0 -6
  75. package/dist/npm/types/label-type.js +0 -6
  76. package/dist/npm/types/progressbar-animation.interface.js +0 -6
  77. package/dist/npm/types/progressbar-orientation.js +0 -6
  78. package/dist/systemjs/kendo-angular-progressbar.js +0 -5
@@ -8,6 +8,7 @@ import { NgZone, Renderer2, EventEmitter, SimpleChanges } from '@angular/core';
8
8
  import { LabelSettings } from './types/label-settings.interface';
9
9
  import { LocalizationService } from '@progress/kendo-angular-l10n';
10
10
  import { ProgressBarAnimation } from './types/progressbar-animation.interface';
11
+ import * as i0 from "@angular/core";
11
12
  /**
12
13
  * Represents the [Kendo UI ProgressBar component for Angular]({% slug overview_progressbar %}).
13
14
  *
@@ -79,27 +80,27 @@ export declare class ProgressBarComponent extends ProgressBarBase {
79
80
  /**
80
81
  * @hidden
81
82
  */
82
- readonly showLabel: boolean;
83
+ get showLabel(): boolean;
83
84
  /**
84
85
  * @hidden
85
86
  */
86
- readonly labelPosition: string;
87
+ get labelPosition(): string;
87
88
  /**
88
89
  * @hidden
89
90
  */
90
- readonly isPositionStart: boolean;
91
+ get isPositionStart(): boolean;
91
92
  /**
92
93
  * @hidden
93
94
  */
94
- readonly isPositionCenter: boolean;
95
+ get isPositionCenter(): boolean;
95
96
  /**
96
97
  * @hidden
97
98
  */
98
- readonly isPositionEnd: boolean;
99
+ get isPositionEnd(): boolean;
99
100
  /**
100
101
  * @hidden
101
102
  */
102
- readonly formattedLabelValue: string;
103
+ get formattedLabelValue(): string;
103
104
  private progressStatusElement;
104
105
  private progressStatusWrapperElement;
105
106
  private animationFrame;
@@ -124,9 +125,11 @@ export declare class ProgressBarComponent extends ProgressBarBase {
124
125
  /**
125
126
  * @hidden
126
127
  */
127
- protected readonly animationDuration: number;
128
+ protected get animationDuration(): number;
128
129
  private stopAnimation;
129
130
  private getAnimationOptions;
130
131
  private renderValueChange;
131
132
  private resetProgress;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
134
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "kendo-progressbar", ["kendoProgressBar"], { "label": "label"; "progressCssStyle": "progressCssStyle"; "progressCssClass": "progressCssClass"; "emptyCssStyle": "emptyCssStyle"; "emptyCssClass": "emptyCssClass"; "animation": "animation"; }, { "animationEnd": "animationEnd"; }, never, never>;
132
135
  }
@@ -2,6 +2,10 @@
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 i0 from "@angular/core";
6
+ import * as i1 from "./progressbar.component";
7
+ import * as i2 from "./chunk/chunk-progressbar.component";
8
+ import * as i3 from "@angular/common";
5
9
  /**
6
10
  * Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
7
11
  * definition for the ProgressBar components.
@@ -34,4 +38,7 @@
34
38
  * ```
35
39
  */
36
40
  export declare class ProgressBarModule {
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarModule, never>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarModule, [typeof i1.ProgressBarComponent, typeof i2.ChunkProgressBarComponent], [typeof i3.CommonModule], [typeof i1.ProgressBarComponent, typeof i2.ChunkProgressBarComponent]>;
43
+ static ɵinj: i0.ɵɵInjectorDeclaration<ProgressBarModule>;
37
44
  }
@@ -1,10 +1,13 @@
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
+ *-------------------------------------------------------------------------------------------*/
1
5
  "use strict";
2
6
  Object.defineProperty(exports, "__esModule", { value: true });
3
7
  const schematics_1 = require("@angular-devkit/schematics");
4
8
  function default_1(options) {
5
- const finalOptions = Object.assign({}, options, { mainNgModule: 'ProgressBarModule', package: 'progressbar' //package name, e.g grid
9
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'ProgressBarModule', package: 'progressbar' //package name, e.g grid
6
10
  });
7
11
  return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
8
12
  }
9
13
  exports.default = default_1;
10
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,qBACX,OAAO,IACV,YAAY,EAAE,mBAAmB,EACjC,OAAO,EAAE,aAAa,CAAC,wBAAwB;OAClD,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,mBAAmB,EACjC,OAAO,EAAE,aAAa,CAAC,wBAAwB;OAClD,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
File without changes
File without changes
File without changes
@@ -1,20 +0,0 @@
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&&"object"==typeof module?module.exports=t(require("@angular/core"),require("rxjs"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("rxjs/operators")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs","@angular/common","@progress/kendo-angular-l10n","rxjs/operators"],t):"object"==typeof exports?exports.KendoAngularProgressbar=t(require("@angular/core"),require("rxjs"),require("@angular/common"),require("@progress/kendo-angular-l10n"),require("rxjs/operators")):e.KendoAngularProgressbar=t(e["@angular/core"],e.rxjs,e["@angular/common"],e["@progress/kendo-angular-l10n"],e["rxjs/operators"])}(window,(function(e,t,n,r,i){return function(e){var t={};function n(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,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return v})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return x})),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return w})),n.d(t,"__classPrivateFieldGet",(function(){return j})),n.d(t,"__classPrivateFieldSet",(function(){return S}));
6
- /*! *****************************************************************************
7
- Copyright (c) Microsoft Corporation.
8
-
9
- Permission to use, copy, modify, and/or distribute this software for any
10
- purpose with or without fee is hereby granted.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
- PERFORMANCE OF THIS SOFTWARE.
19
- ***************************************************************************** */
20
- var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),i=n(0);t.reverseChunks=function(e,t){return"vertical"===e&&!t||"horizontal"===e&&t},t.formatValue=function(e,t,n,r){var i=s(e);if("boolean"!=typeof r){if("string"!=typeof r.format)return"function"==typeof r.format?r.format(e):i;switch(r.format){case"value":return i;case"percent":return Math.floor(o(e,t,n))+"%";default:return i}}return i},t.validateRange=function(e,t){if(i.isDevMode&&e>t)throw new Error(r.MIN_MAX_ERROR_MESSAGE)},t.adjustValueToRange=function(e,t,n){return Math.max(Math.min(n,t),e)};var o=function(e,t,n){var r=Math.abs((n-t)/100);return Math.abs((e-t)/r)},s=function(e){var t=e.toString().split(".");return 1===t.length?""+t[0]:t[0]+"."+t[1].substr(0,r.LABEL_DECIMALS)};t.calculateRatio=function(e,t,n){return Math.max((n-e)/(t-e),r.MIN_RATIO)},t.extractValueFromChanges=function(e,t,n){return e[t]&&void 0!==e[t].currentValue?e[t].currentValue:n},t.runAnimation=function(e,t,n,r){return t&&"undefined"!=typeof requestAnimationFrame&&e.value&&n!==r},t.stopCurrentAnimation=function(e){var t=Boolean(e.animation),n=t&&e.animation.currentValue;return t&&!n}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(6),o=n(0),s=n(3),a=n(7),u=n(15),c=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.localization=t,i.zone=n,i.renderer=r,i.label=!0,i.animation=!1,i.animationEnd=new o.EventEmitter,i}return r.__extends(t,e),Object.defineProperty(t.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:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelPosition",{get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPositionStart",{get:function(){return"start"===this.labelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPositionCenter",{get:function(){return"center"===this.labelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPositionEnd",{get:function(){return"end"===this.labelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formattedLabelValue",{get:function(){return s.formatValue(this.displayValue,this.min,this.max,this.label)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.isAnimationInProgress&&s.stopCurrentAnimation(t)&&(this.cancelCurrentAnimation=!0),s.runAnimation(t,this.animation,this.previousValue,this.displayValue)&&!t.value.firstChange&&this.startAnimation(this.previousValue)},t.prototype.ngOnDestroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)},t.prototype.startAnimation=function(e){var t=this;this.isAnimationInProgress=!0;var n=this.progressStatusElement.nativeElement,r=this.progressStatusWrapperElement.nativeElement,i=this.getAnimationOptions(e);this.zone.runOutsideAngular((function(){t.animationFrame&&cancelAnimationFrame(t.animationFrame);var o=function(){var s=(new Date).getTime()-i.startTime,a=Math.min(s/i.duration,1),u=i.startSize+i.deltaSize*a,c=100/u*100;if(t.renderValueChange(n,r,i.property,u,c),a<1){if(t.cancelCurrentAnimation)return void t.resetProgress(n,r,i.property);t.animationFrame=requestAnimationFrame(o)}else t.stopAnimation(e)};o()}))},Object.defineProperty(t.prototype,"animationDuration",{get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)},enumerable:!0,configurable:!0}),t.prototype.stopAnimation=function(e){var t=this;u.hasObservers(this.animationEnd)&&this.zone.run((function(){t.animationEnd.emit({from:e,to:t.displayValue})})),this.zone.run((function(){t.isAnimationInProgress=!1}))},t.prototype.getAnimationOptions=function(e){var t="horizontal"===this.orientation,n=s.calculateRatio(this.min,this.max,e),r=t?100*n:100,i=t?100:100*n,o=t?"width":"height",a=(new Date).getTime(),u=t?r:i,c=t?this.statusWidth-r:this.statusHeight-i;return{property:o,startTime:a,startSize:u,deltaSize:c,duration:this.animationDuration*Math.abs(c/100)}},t.prototype.renderValueChange=function(e,t,n,r,i){this.renderer.setStyle(e,n,r+"%"),this.renderer.setStyle(t,n,i+"%")},t.prototype.resetProgress=function(e,t,n){var r=this,i=s.calculateRatio(this.min,this.max,this.value),o=100*i,a=100/i;this.renderValueChange(e,t,n,o,a),this.zone.run((function(){r.cancelCurrentAnimation=!1,r.isAnimationInProgress=!1}))},r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"label",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"animation",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"animationEnd",void 0),r.__decorate([o.ViewChild("progressStatus",{static:!1}),r.__metadata("design:type",o.ElementRef)],t.prototype,"progressStatusElement",void 0),r.__decorate([o.ViewChild("progressStatusWrap",{static:!1}),r.__metadata("design:type",o.ElementRef)],t.prototype,"progressStatusWrapperElement",void 0),t=r.__decorate([o.Component({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:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.progressbar"}]}),r.__metadata("design:paramtypes",[a.LocalizationService,o.NgZone,o.Renderer2])],t)}(i.ProgressBarBase);t.ProgressBarComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(0),o=n(11),s=n(12),a=n(3),u=function(){function e(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,o.validatePackage(s.packageMetadata),this.localizationChangeSubscription=e.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"}))}return Object.defineProperty(e.prototype,"isHorizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return"vertical"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseClass",{get:function(){return this.reverse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminateClass",{get:function(){return this.indeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirAttribute",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMinAttribute",{get:function(){return String(this.min)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMaxAttribute",{get:function(){return String(this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaValueAttribute",{get:function(){return this.indeterminate?void 0:String(this.displayValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this.value===this.max},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusWidth",{get:function(){return"horizontal"===this.orientation?100*this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusHeight",{get:function(){return"vertical"===this.orientation?100*this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusWrapperWidth",{get:function(){return"horizontal"===this.orientation?100/this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusWrapperHeight",{get:function(){return"vertical"===this.orientation?100/this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_progressRatio",{get:function(){return a.calculateRatio(this.min,this.max,this.displayValue)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=a.extractValueFromChanges(e,"min",this.min),n=a.extractValueFromChanges(e,"max",this.max),r=a.extractValueFromChanges(e,"value",this.value);if(e.min||e.max||e.value){if((e.min||e.max)&&a.validateRange(t,n),e.value){(null==r||Number.isNaN(r))&&(this.value=t);var i=this.displayValue;this.displayValue=a.adjustValueToRange(this.min,this.max,r),this.previousValue=i}this.min=t,this.max=n,this.displayValue=a.adjustValueToRange(this.min,this.max,r)}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},r.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-progressbar"),r.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),r.__decorate([i.HostBinding("class.k-progressbar-horizontal"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"isHorizontal",null),r.__decorate([i.HostBinding("class.k-progressbar-vertical"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"isVertical",null),r.__decorate([i.HostBinding("class.k-state-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),r.__decorate([i.HostBinding("class.k-progressbar-reverse"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"reverseClass",null),r.__decorate([i.HostBinding("class.k-progressbar-indeterminate"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"indeterminateClass",null),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dirAttribute",null),r.__decorate([i.HostBinding("attr.role"),r.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),r.__decorate([i.HostBinding("attr.aria-valuemin"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaMinAttribute",null),r.__decorate([i.HostBinding("attr.aria-valuemax"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaMaxAttribute",null),r.__decorate([i.HostBinding("attr.aria-valuenow"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaValueAttribute",null),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"max",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"value",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"orientation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"indeterminate",void 0),e}();t.ProgressBarBase=u},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(6),o=n(0),s=n(3),a=n(7),u=function(e){function t(t){var n=e.call(this,t)||this;return n.localization=t,n.chunkCount=5,n._orientationStyles={width:n.chunkSizePercentage+"%"},n}return r.__extends(t,e),Object.defineProperty(t.prototype,"chunks",{get:function(){for(var e=this.chunkCount,t=Array(e).fill(!1),n=Math.floor(this._progressRatio*e),r=0;r<n;r++)t[r]=!0;return s.reverseChunks(this.orientation,this.reverse)&&t.reverse(),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chunkSizePercentage",{get:function(){return 100/this.chunkCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.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:!0,configurable:!0}),r.__decorate([o.Input(),r.__metadata("design:type",Number)],t.prototype,"chunkCount",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),t=r.__decorate([o.Component({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:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.chunkprogressbar"}]}),r.__metadata("design:paramtypes",[a.LocalizationService])],t)}(i.ProgressBarBase);t.ChunkProgressBarComponent=u},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.ProgressBarComponent=r.ProgressBarComponent;var i=n(8);t.ChunkProgressBarComponent=i.ChunkProgressBarComponent;var o=n(14);t.ProgressBarModule=o.ProgressBarModule},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return l}));var r,i,o=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];r=o,i=131,function(e){for(;--e;)r.push(r.shift())}(++i);var s=function(e,t){var n=o[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),i="",o=0,s=0;n=r.charAt(s++);~n&&(t=o%4?64*t+n:n,o++%4)?i+=String.fromCharCode(255&t>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],r=0,i=t.length;r<i;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var r=s.rqrXoU[e];return void 0===r?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=r,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},u=new Map;function c(e){}function l(e){if(u[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return u[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",r=e[s("0x4")]+n,i=JSON[s("0x9")](a[s("0x34")]),o=!i[s("0x26")]&&!i[s("0x38")],c=i[s("0x26")]&&typeof KendoLicensing===s("0x2b"),l=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var r=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return r[s("0x14")](e[s("0x39")])}))}(i,e[s("0x2")]);if(o||c)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:r,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(l){if(s("0x12")!=s("0x12")){}else if(l[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:r,publishDate:p(e[s("0x1c")]),expiryDate:p(l[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:r,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var d=s("0x1b")+e[s("0xe")],h=typeof console[s("0x7")]===s("0x33");if(h)if(s("0xc")!=s("0xc")){}else console[s("0x7")](d);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](d);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),h)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!t;return u[s("0x0")](e[s("0x4")],f),f}function p(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642588075,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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_MAX_ERROR_MESSAGE="The max value should be greater than the min.",t.LABEL_DECIMALS=3,t.MIN_RATIO=1e-4},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(8),o=n(0),s=n(4),a=[n(5).ProgressBarComponent,i.ChunkProgressBarComponent],u=[s.CommonModule],c=function(){function e(){}return e=r.__decorate([o.NgModule({declarations:a,exports:a,imports:u})],e)}();t.ProgressBarModule=c},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return U})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return C})),n.d(t,"DraggableModule",(function(){return w})),n.d(t,"closestInScope",(function(){return j})),n.d(t,"closest",(function(){return S})),n.d(t,"contains",(function(){return P})),n.d(t,"findElement",(function(){return z})),n.d(t,"findFocusableChild",(function(){return B})),n.d(t,"findFocusable",(function(){return K})),n.d(t,"hasClasses",(function(){return I})),n.d(t,"isFocusableWithTabKey",(function(){return D})),n.d(t,"isFocusable",(function(){return k})),n.d(t,"isVisible",(function(){return A})),n.d(t,"matchesClasses",(function(){return L})),n.d(t,"matchesNodeName",(function(){return R})),n.d(t,"rtlScrollPosition",(function(){return N})),n.d(t,"EventsOutsideAngularDirective",(function(){return T})),n.d(t,"EventsModule",(function(){return F})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return X})),n.d(t,"ResizeCompatService",(function(){return Z})),n.d(t,"ResizeObserverService",(function(){return Y})),n.d(t,"ResizeSensorModule",(function(){return $})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return b})),n.d(t,"isChanged",(function(){return v})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return x})),n.d(t,"guid",(function(){return O})),n.d(t,"Keys",(function(){return H}));var r=n(1),i=n(0),o=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},u=function(){},c=function(e){return e.preventDefault()},l=/touch/;function p(e){return e.type.match(l)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=u);var r=e.drag;void 0===r&&(r=u);var i=e.release;void 0===i&&(i=u);var l=e.mouseOnly;void 0===l&&(l=!1),this._pressHandler=o(p,n),this._dragHandler=o(p,r),this._releaseHandler=o(p,i),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",c),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",c),t._releaseHandler(e))}},h={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",c),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=u);var n=e.drag;void 0===n&&(n=u);var r=e.release;void 0===r&&(r=u);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=o(p,t),this._dragHandler=o(p,n),this._releaseHandler=o(p,r),this._mouseOnly=i},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,h),d.default=d;var f=d,g=n(4),m=n(9),y=n(2),b=function(){return"undefined"!=typeof document},v=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},_=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return v(e,t,n)}))},x=function(e){return e&&e.observers.length>0},O=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},C=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){v("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;b()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),w=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[C],exports:[C],imports:[g.CommonModule]})],e)}(),j=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},S=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},P=function(e,t,n){if(void 0===n&&(n=!1),!S(t,(function(t){return t===e})))return!1;var r=S(t,(function(e){return e===t}));return r&&(n||r!==e)},z=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=z(e,t);if(r)return r}e=e.nextSibling}}},E=/^(?:a|input|select|option|textarea|button|object)$/i,k=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&E.test(t)||n},A=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},D=function(e,t){if(void 0===t&&(t=!0),!k(e))return!1;var n=e.getAttribute("tabIndex");return(!t||A(e))&&"-1"!==n},B=function(e,t){return void 0===t&&(t=!0),z(e,(function(e){return D(e,t)}),!1)},K=function(e,t){return void 0===t&&(t=!0),z(e,(function(e){return D(e,t)}))},M=function(e){return String(e).trim().split(" ")},I=function(e,t){var n=M(t);return Boolean(M(e.className).find((function(e){return n.indexOf(e)>=0})))},L=function(e){return function(t){return I(t,e)}},V={},R=function(e){return V[e]||(V[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),V[e]};function N(e,t,n){var r=e;return n<0?r=-e:n>0&&(r=t.scrollWidth-t.offsetWidth-e),r}var H,T=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(r.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(r.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),F=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[T],exports:[T]})],e)}(),U=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){b()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),q=function(e){var t=document.createElement("div");return t.style.cssText=e,t},W="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Z=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=W,e.setAttribute("dir","ltr"),this.expand=q(W),this.expandChild=q("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=q(W);var t=q("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(y.merge)(Object(y.fromEvent)(e.shrink,"scroll"),Object(y.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(U),G="undefined"!=typeof ResizeObserver,Y=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.supported=function(){return G},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(U),X=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(y.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__metadata)("design:paramtypes",[i.NgZone])],e)}(),J=function(){function e(e,t,n){var r=this;this.rateLimit=10,this.resize=new i.EventEmitter;var o=Y.supported()?Y:Z;this.resizeService=new o(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(m.auditTime)(s)).subscribe((function(){r.resizeService.acceptedSize||r.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(r.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(r.__metadata)("design:paramtypes",[X,i.ElementRef,i.NgZone])],e)}(),Q=[J],$=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[Q],exports:[Q],providers:[X]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(H||(H={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()}])}));
package/dist/cdn/main.js DELETED
@@ -1,5 +0,0 @@
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&&"object"==typeof module?module.exports=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@angular/common")):"function"==typeof define&&define.amd?define(["@angular/core","tslib","@progress/kendo-angular-l10n","@progress/kendo-licensing","@progress/kendo-angular-common","@angular/common"],t):"object"==typeof exports?exports.KendoAngularProgressbar=t(require("@angular/core"),require("tslib"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@angular/common")):e.KendoAngularProgressbar=t(e["@angular/core"],e.tslib,e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@progress/kendo-angular-common"],e["@angular/common"])}(window,(function(e,t,n,r,a,o){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),a=n(0);t.reverseChunks=function(e,t){return"vertical"===e&&!t||"horizontal"===e&&t},t.formatValue=function(e,t,n,r){var a=i(e);if("boolean"!=typeof r){if("string"!=typeof r.format)return"function"==typeof r.format?r.format(e):a;switch(r.format){case"value":return a;case"percent":return Math.floor(o(e,t,n))+"%";default:return a}}return a},t.validateRange=function(e,t){if(a.isDevMode&&e>t)throw new Error(r.MIN_MAX_ERROR_MESSAGE)},t.adjustValueToRange=function(e,t,n){return Math.max(Math.min(n,t),e)};var o=function(e,t,n){var r=Math.abs((n-t)/100);return Math.abs((e-t)/r)},i=function(e){var t=e.toString().split(".");return 1===t.length?""+t[0]:t[0]+"."+t[1].substr(0,r.LABEL_DECIMALS)};t.calculateRatio=function(e,t,n){return Math.max((n-e)/(t-e),r.MIN_RATIO)},t.extractValueFromChanges=function(e,t,n){return e[t]&&void 0!==e[t].currentValue?e[t].currentValue:n},t.runAnimation=function(e,t,n,r){return t&&"undefined"!=typeof requestAnimationFrame&&e.value&&n!==r},t.stopCurrentAnimation=function(e){var t=Boolean(e.animation),n=t&&e.animation.currentValue;return t&&!n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(4),o=n(0),i=n(2),s=n(5),u=n(11),l=function(e){function t(t,n,r){var a=e.call(this,t)||this;return a.localization=t,a.zone=n,a.renderer=r,a.label=!0,a.animation=!1,a.animationEnd=new o.EventEmitter,a}return r.__extends(t,e),Object.defineProperty(t.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:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelPosition",{get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPositionStart",{get:function(){return"start"===this.labelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPositionCenter",{get:function(){return"center"===this.labelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPositionEnd",{get:function(){return"end"===this.labelPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formattedLabelValue",{get:function(){return i.formatValue(this.displayValue,this.min,this.max,this.label)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.isAnimationInProgress&&i.stopCurrentAnimation(t)&&(this.cancelCurrentAnimation=!0),i.runAnimation(t,this.animation,this.previousValue,this.displayValue)&&!t.value.firstChange&&this.startAnimation(this.previousValue)},t.prototype.ngOnDestroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)},t.prototype.startAnimation=function(e){var t=this;this.isAnimationInProgress=!0;var n=this.progressStatusElement.nativeElement,r=this.progressStatusWrapperElement.nativeElement,a=this.getAnimationOptions(e);this.zone.runOutsideAngular((function(){t.animationFrame&&cancelAnimationFrame(t.animationFrame);var o=function(){var i=(new Date).getTime()-a.startTime,s=Math.min(i/a.duration,1),u=a.startSize+a.deltaSize*s,l=100/u*100;if(t.renderValueChange(n,r,a.property,u,l),s<1){if(t.cancelCurrentAnimation)return void t.resetProgress(n,r,a.property);t.animationFrame=requestAnimationFrame(o)}else t.stopAnimation(e)};o()}))},Object.defineProperty(t.prototype,"animationDuration",{get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)},enumerable:!0,configurable:!0}),t.prototype.stopAnimation=function(e){var t=this;u.hasObservers(this.animationEnd)&&this.zone.run((function(){t.animationEnd.emit({from:e,to:t.displayValue})})),this.zone.run((function(){t.isAnimationInProgress=!1}))},t.prototype.getAnimationOptions=function(e){var t="horizontal"===this.orientation,n=i.calculateRatio(this.min,this.max,e),r=t?100*n:100,a=t?100:100*n,o=t?"width":"height",s=(new Date).getTime(),u=t?r:a,l=t?this.statusWidth-r:this.statusHeight-a;return{property:o,startTime:s,startSize:u,deltaSize:l,duration:this.animationDuration*Math.abs(l/100)}},t.prototype.renderValueChange=function(e,t,n,r,a){this.renderer.setStyle(e,n,r+"%"),this.renderer.setStyle(t,n,a+"%")},t.prototype.resetProgress=function(e,t,n){var r=this,a=i.calculateRatio(this.min,this.max,this.value),o=100*a,s=100/a;this.renderValueChange(e,t,n,o,s),this.zone.run((function(){r.cancelCurrentAnimation=!1,r.isAnimationInProgress=!1}))},r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"label",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"animation",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],t.prototype,"animationEnd",void 0),r.__decorate([o.ViewChild("progressStatus",{static:!1}),r.__metadata("design:type",o.ElementRef)],t.prototype,"progressStatusElement",void 0),r.__decorate([o.ViewChild("progressStatusWrap",{static:!1}),r.__metadata("design:type",o.ElementRef)],t.prototype,"progressStatusWrapperElement",void 0),t=r.__decorate([o.Component({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:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.progressbar"}]}),r.__metadata("design:paramtypes",[s.LocalizationService,o.NgZone,o.Renderer2])],t)}(a.ProgressBarBase);t.ProgressBarComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0),o=n(8),i=n(9),s=n(2),u=function(){function e(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,o.validatePackage(i.packageMetadata),this.localizationChangeSubscription=e.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"}))}return Object.defineProperty(e.prototype,"isHorizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return"vertical"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseClass",{get:function(){return this.reverse},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminateClass",{get:function(){return this.indeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirAttribute",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMinAttribute",{get:function(){return String(this.min)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMaxAttribute",{get:function(){return String(this.max)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaValueAttribute",{get:function(){return this.indeterminate?void 0:String(this.displayValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this.value===this.max},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusWidth",{get:function(){return"horizontal"===this.orientation?100*this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusHeight",{get:function(){return"vertical"===this.orientation?100*this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusWrapperWidth",{get:function(){return"horizontal"===this.orientation?100/this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusWrapperHeight",{get:function(){return"vertical"===this.orientation?100/this._progressRatio:100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_progressRatio",{get:function(){return s.calculateRatio(this.min,this.max,this.displayValue)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){var t=s.extractValueFromChanges(e,"min",this.min),n=s.extractValueFromChanges(e,"max",this.max),r=s.extractValueFromChanges(e,"value",this.value);if(e.min||e.max||e.value){if((e.min||e.max)&&s.validateRange(t,n),e.value){(null==r||Number.isNaN(r))&&(this.value=t);var a=this.displayValue;this.displayValue=s.adjustValueToRange(this.min,this.max,r),this.previousValue=a}this.min=t,this.max=n,this.displayValue=s.adjustValueToRange(this.min,this.max,r)}},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},r.__decorate([a.HostBinding("class.k-widget"),a.HostBinding("class.k-progressbar"),r.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),r.__decorate([a.HostBinding("class.k-progressbar-horizontal"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"isHorizontal",null),r.__decorate([a.HostBinding("class.k-progressbar-vertical"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"isVertical",null),r.__decorate([a.HostBinding("class.k-state-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),r.__decorate([a.HostBinding("class.k-progressbar-reverse"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"reverseClass",null),r.__decorate([a.HostBinding("class.k-progressbar-indeterminate"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"indeterminateClass",null),r.__decorate([a.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dirAttribute",null),r.__decorate([a.HostBinding("attr.role"),r.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),r.__decorate([a.HostBinding("attr.aria-valuemin"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaMinAttribute",null),r.__decorate([a.HostBinding("attr.aria-valuemax"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaMaxAttribute",null),r.__decorate([a.HostBinding("attr.aria-valuenow"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaValueAttribute",null),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"max",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"min",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"value",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"orientation",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"indeterminate",void 0),e}();t.ProgressBarBase=u},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(4),o=n(0),i=n(2),s=n(5),u=function(e){function t(t){var n=e.call(this,t)||this;return n.localization=t,n.chunkCount=5,n._orientationStyles={width:n.chunkSizePercentage+"%"},n}return r.__extends(t,e),Object.defineProperty(t.prototype,"chunks",{get:function(){for(var e=this.chunkCount,t=Array(e).fill(!1),n=Math.floor(this._progressRatio*e),r=0;r<n;r++)t[r]=!0;return i.reverseChunks(this.orientation,this.reverse)&&t.reverse(),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chunkSizePercentage",{get:function(){return 100/this.chunkCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.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:!0,configurable:!0}),r.__decorate([o.Input(),r.__metadata("design:type",Number)],t.prototype,"chunkCount",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),t=r.__decorate([o.Component({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:[s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.chunkprogressbar"}]}),r.__metadata("design:paramtypes",[s.LocalizationService])],t)}(a.ProgressBarBase);t.ChunkProgressBarComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);t.ProgressBarComponent=r.ProgressBarComponent;var a=n(6);t.ChunkProgressBarComponent=a.ChunkProgressBarComponent;var o=n(12);t.ProgressBarModule=o.ProgressBarModule},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642588075,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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_MAX_ERROR_MESSAGE="The max value should be greater than the min.",t.LABEL_DECIMALS=3,t.MIN_RATIO=1e-4},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(6),o=n(0),i=n(13),s=[n(3).ProgressBarComponent,a.ChunkProgressBarComponent],u=[i.CommonModule],l=function(){function e(){}return e=r.__decorate([o.NgModule({declarations:s,exports:s,imports:u})],e)}();t.ProgressBarModule=l},function(e,t){e.exports=o}])}));
@@ -1,129 +0,0 @@
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
- import * as tslib_1 from "tslib";
6
- import { ProgressBarBase } from '../common/progressbar-base';
7
- import { Component, Input } from '@angular/core';
8
- import { reverseChunks } from '../common/util';
9
- import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
- /**
11
- * Represents the [Kendo UI ChunkProgressBar component for Angular]({% slug overview_chunkprogressbar %}).
12
- *
13
- * @example
14
- * ```ts-preview
15
- * _@Component({
16
- * selector: 'my-app',
17
- * template: `
18
- * <kendo-chunkprogressbar [value]="value">
19
- * </kendo-chunkprogressbar>
20
- * `
21
- * })
22
- * class AppComponent {
23
- * public value = 40;
24
- * }
25
- * ```
26
- */
27
- var ChunkProgressBarComponent = /** @class */ (function (_super) {
28
- tslib_1.__extends(ChunkProgressBarComponent, _super);
29
- /**
30
- * @hidden
31
- */
32
- function ChunkProgressBarComponent(localization) {
33
- var _this = _super.call(this, localization) || this;
34
- _this.localization = localization;
35
- /**
36
- * Sets the number of chunks into which the ChunkProgressBar will be split.
37
- * Defaults to `5`.
38
- */
39
- _this.chunkCount = 5;
40
- _this._orientationStyles = {
41
- width: _this.chunkSizePercentage + "%"
42
- };
43
- return _this;
44
- }
45
- Object.defineProperty(ChunkProgressBarComponent.prototype, "chunks", {
46
- /**
47
- * @hidden
48
- */
49
- get: function () {
50
- var count = this.chunkCount;
51
- var chunks = Array(count).fill(false);
52
- var completedChunks = Math.floor(this._progressRatio * count);
53
- for (var i = 0; i < completedChunks; i++) {
54
- chunks[i] = true;
55
- }
56
- if (reverseChunks(this.orientation, this.reverse)) {
57
- chunks.reverse();
58
- }
59
- return chunks;
60
- },
61
- enumerable: true,
62
- configurable: true
63
- });
64
- Object.defineProperty(ChunkProgressBarComponent.prototype, "chunkSizePercentage", {
65
- /**
66
- * @hidden
67
- */
68
- get: function () {
69
- return 100 / this.chunkCount;
70
- },
71
- enumerable: true,
72
- configurable: true
73
- });
74
- Object.defineProperty(ChunkProgressBarComponent.prototype, "orientationStyles", {
75
- /**
76
- * @hidden
77
- */
78
- get: function () {
79
- if (this.orientation === 'horizontal') {
80
- this._orientationStyles.width = this.chunkSizePercentage + "%";
81
- this._orientationStyles.height = undefined;
82
- }
83
- else {
84
- this._orientationStyles.height = this.chunkSizePercentage + "%";
85
- this._orientationStyles.width = undefined;
86
- }
87
- return this._orientationStyles;
88
- },
89
- enumerable: true,
90
- configurable: true
91
- });
92
- tslib_1.__decorate([
93
- Input(),
94
- tslib_1.__metadata("design:type", Number)
95
- ], ChunkProgressBarComponent.prototype, "chunkCount", void 0);
96
- tslib_1.__decorate([
97
- Input(),
98
- tslib_1.__metadata("design:type", Object)
99
- ], ChunkProgressBarComponent.prototype, "progressCssStyle", void 0);
100
- tslib_1.__decorate([
101
- Input(),
102
- tslib_1.__metadata("design:type", Object)
103
- ], ChunkProgressBarComponent.prototype, "progressCssClass", void 0);
104
- tslib_1.__decorate([
105
- Input(),
106
- tslib_1.__metadata("design:type", Object)
107
- ], ChunkProgressBarComponent.prototype, "emptyCssStyle", void 0);
108
- tslib_1.__decorate([
109
- Input(),
110
- tslib_1.__metadata("design:type", Object)
111
- ], ChunkProgressBarComponent.prototype, "emptyCssClass", void 0);
112
- ChunkProgressBarComponent = tslib_1.__decorate([
113
- Component({
114
- exportAs: 'kendoChunkProgressBar',
115
- selector: 'kendo-chunkprogressbar',
116
- 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 ",
117
- providers: [
118
- LocalizationService,
119
- {
120
- provide: L10N_PREFIX,
121
- useValue: 'kendo.chunkprogressbar'
122
- }
123
- ]
124
- }),
125
- tslib_1.__metadata("design:paramtypes", [LocalizationService])
126
- ], ChunkProgressBarComponent);
127
- return ChunkProgressBarComponent;
128
- }(ProgressBarBase));
129
- export { ChunkProgressBarComponent };
@@ -1,16 +0,0 @@
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
- /**
6
- * @hidden
7
- */
8
- export var MIN_MAX_ERROR_MESSAGE = "The max value should be greater than the min.";
9
- /**
10
- * @hidden
11
- */
12
- export var LABEL_DECIMALS = 3;
13
- /**
14
- * @hidden
15
- */
16
- export var MIN_RATIO = 0.0001;