@progress/kendo-angular-progressbar 2.0.4 → 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 -104
  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
package/package.json CHANGED
@@ -1,98 +1,37 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-progressbar",
3
+ "version": "3.0.0-dev.202204131905",
3
4
  "description": "Kendo UI Angular component starter template",
4
- "author": "Progress",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
- "version": "2.0.4",
7
- "main": "dist/npm/index.js",
8
- "module": "dist/fesm5/index.js",
9
- "es2015": "dist/fesm2015/index.js",
10
- "esm5": "dist/es/index.js",
11
- "esm2015": "dist/es2015/index.js",
12
- "jsnext:main": "dist/es/index.js",
13
- "typings": "dist/es2015/index.d.ts",
14
- "jsdelivr": "dist/cdn/main.js",
15
- "unpkg": "dist/cdn/main.js",
16
- "sideEffects": false,
17
- "scripts": {
18
- "test": "ci-angular-test",
19
- "test:watch": "jest --watch --env=jsdom",
20
- "test:ci": "ci-angular-test",
21
- "start": "gulp start",
22
- "e2e": "gulp e2e",
23
- "e2e:ci": "ci-angular-e2e",
24
- "lint": "gulp lint && gulp lint-docs",
25
- "api-check": "gulp api-check",
26
- "build-package": "gulp build-package",
27
- "semantic-release": "semantic-release pre && semantic-prerelease publish --public && semantic-release post"
6
+ "author": "Progress",
7
+ "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/telerik/kendo-angular-progressbar.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/telerik/kendo-angular"
28
14
  },
29
15
  "keywords": [
16
+ "Angular",
17
+ "ProgressBar",
30
18
  "Kendo UI",
31
- "Angular"
19
+ "Progress"
32
20
  ],
33
- "peerDependencies": {
34
- "@angular/common": "8 - 13",
35
- "@angular/core": "8 - 13",
36
- "@progress/kendo-angular-common": "^2.0.0",
37
- "@progress/kendo-angular-l10n": "^3.0.0",
38
- "@progress/kendo-licensing": "^1.0.2",
39
- "rxjs": "^6.4.0 || ^7.0.0"
21
+ "@progress": {
22
+ "friendlyName": "ProgressBars"
40
23
  },
41
24
  "dependencies": {
42
- "@progress/kendo-schematics": "^2.0.0",
43
- "tslib": "^1.9.0"
25
+ "@progress/kendo-schematics": "^3.0.0",
26
+ "tslib": "^2.3.1"
44
27
  },
45
- "devDependencies": {
46
- "@angular-devkit/core": "^8.2.0",
47
- "@angular-devkit/schematics": "^8.2.0",
48
- "@angular/animations": "^8.2.0",
49
- "@angular/common": "^8.2.0",
50
- "@angular/compiler": "^8.2.0",
51
- "@angular/compiler-cli": "^8.2.0",
52
- "@angular/core": "^8.2.0",
53
- "@angular/forms": "^8.2.0",
54
- "@angular/platform-browser": "^8.2.0",
55
- "@angular/platform-browser-dynamic": "^8.2.0",
56
- "@angular/platform-server": "^8.2.0",
57
- "@angular/router": "^8.2.0",
58
- "@progress/kendo-angular-common": "^2.0.0",
59
- "@progress/kendo-angular-buttons": "^6.0.0",
60
- "@progress/kendo-angular-dropdowns": "^5.0.0",
61
- "@progress/kendo-angular-e2e": "^3.3.0",
62
- "@progress/kendo-angular-inputs": "^7.0.0",
63
- "@progress/kendo-angular-intl": "^3.0.0",
64
- "@progress/kendo-angular-jest-preset": "^2.0.0",
65
- "@progress/kendo-angular-l10n": "^3.0.0",
66
- "@progress/kendo-angular-label": "^3.0.0",
67
- "@progress/kendo-angular-popup": "^4.0.0",
68
- "@progress/kendo-angular-tasks": "^19.3.1",
69
- "@progress/kendo-angular-treeview": "^5.0.0",
70
- "@progress/kendo-drawing": "^1.5.8",
28
+ "peerDependencies": {
29
+ "@angular/common": "^12.0.0 || ^13.0.0",
30
+ "@angular/core": "^12.0.0 || ^13.0.0",
31
+ "@progress/kendo-angular-common": ">3.0.0-next",
32
+ "@progress/kendo-angular-l10n": ">4.0.0-next",
71
33
  "@progress/kendo-licensing": "^1.0.2",
72
- "@progress/kendo-e2e": "latest",
73
- "@progress/kendo-theme-bootstrap": "^5.0.0",
74
- "@progress/kendo-theme-default": "^5.0.0",
75
- "@progress/kendo-theme-material": "^5.0.0",
76
- "@telerik/semantic-prerelease": "^1.0.0",
77
- "@types/jest": "^24.9.0",
78
- "@types/node": "ts3.4",
79
- "@types/zone.js": "0.0.27",
80
- "codelyzer": "^5.0.0",
81
- "core-js": "^2.2.2",
82
- "cz-conventional-changelog": "^1.1.5",
83
- "ghooks": "^1.0.3",
84
- "gulp": "^4.0.0",
85
- "jest": "^24.9.0",
86
- "jest-cli": "^24.9.0",
87
- "jest-environment-jsdom": "^24.9.0",
88
- "jest-junit": "^12.2.0",
89
- "rxjs": "~6.4.0",
90
- "rxjs-tslint-rules": "^4.23.1",
91
- "semantic-release": "^6.3.6",
92
- "tslint": "^5.20.1",
93
- "typescript": "~3.4.5",
94
- "validate-commit-msg": "^1.1.1",
95
- "zone.js": "~0.9.1"
34
+ "rxjs": "^6.5.3 || ^7.0.0"
96
35
  },
97
36
  "config": {
98
37
  "commitizen": {
@@ -117,27 +56,16 @@
117
56
  "maxSubjectLength": 100
118
57
  }
119
58
  },
120
- "jest": {
121
- "preset": "@progress/kendo-angular-jest-preset"
122
- },
123
- "repository": {
124
- "type": "git",
125
- "url": "https://github.com/telerik/kendo-angular-progressbar.git"
126
- },
127
- "bugs": {
128
- "url": "https://github.com/telerik/kendo-angular"
129
- },
130
- "@progress": {
131
- "friendlyName": "ProgressBars"
132
- },
133
- "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
59
+ "schematics": "./schematics/collection.json",
134
60
  "release": {
135
61
  "debug": false,
136
62
  "branchTags": {
137
- "develop": "dev"
63
+ "develop": "dev",
64
+ "ng12-update": "next"
138
65
  },
139
66
  "fallbackTags": {
140
- "dev": "latest"
67
+ "dev": "latest",
68
+ "next": "latest"
141
69
  },
142
70
  "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
143
71
  "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
@@ -145,9 +73,11 @@
145
73
  "verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
146
74
  "verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
147
75
  },
148
- "schematics": "./schematics/collection.json",
149
- "files": [
150
- "dist",
151
- "schematics"
152
- ]
76
+ "main": "bundles/kendo-angular-progressbar.umd.js",
77
+ "module": "fesm2015/kendo-angular-progressbar.js",
78
+ "es2015": "fesm2015/kendo-angular-progressbar.js",
79
+ "esm2015": "esm2015/kendo-angular-progressbar.js",
80
+ "fesm2015": "fesm2015/kendo-angular-progressbar.js",
81
+ "typings": "kendo-angular-progressbar.d.ts",
82
+ "sideEffects": false
153
83
  }
@@ -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("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,],t):"object"==typeof exports?exports.KendoAngularProgressbar=t(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@progress/kendo-angular-common"),require("@angular/common")):e.KendoAngularProgressbar=t(e.ng.core,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.ng.common)}(window,(function(e,t,n,r,o){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));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,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return i})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return p})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return f})),n.d(t,"__values",(function(){return g})),n.d(t,"__read",(function(){return y})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return h})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return v})),n.d(t,"__asyncValues",(function(){return P})),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return w})),n.d(t,"__classPrivateFieldSet",(function(){return k}));
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 o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}u((r=r.apply(e,t||[])).next())}))}function p(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function d(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function g(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 y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function h(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)r[o]=a[i];return r}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof _?Promise.resolve(n.value.v).then(u,l):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function v(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,o){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=g(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,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(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 S(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(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,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(0);t.reverseChunks=function(e,t){return"vertical"===e&&!t||"horizontal"===e&&t},t.formatValue=function(e,t,n,r){var o=i(e);if("boolean"!=typeof r){if("string"!=typeof r.format)return"function"==typeof r.format?r.format(e):o;switch(r.format){case"value":return o;case"percent":return Math.floor(a(e,t,n))+"%";default:return o}}return o},t.validateRange=function(e,t){if(o.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 a=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),o=n(4),a=n(0),i=n(2),s=n(5),u=n(11),l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.localization=t,o.zone=n,o.renderer=r,o.label=!0,o.animation=!1,o.animationEnd=new a.EventEmitter,o}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,o=this.getAnimationOptions(e);this.zone.runOutsideAngular((function(){t.animationFrame&&cancelAnimationFrame(t.animationFrame);var a=function(){var i=(new Date).getTime()-o.startTime,s=Math.min(i/o.duration,1),u=o.startSize+o.deltaSize*s,l=100/u*100;if(t.renderValueChange(n,r,o.property,u,l),s<1){if(t.cancelCurrentAnimation)return void t.resetProgress(n,r,o.property);t.animationFrame=requestAnimationFrame(a)}else t.stopAnimation(e)};a()}))},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,o=t?100:100*n,a=t?"width":"height",s=(new Date).getTime(),u=t?r:o,l=t?this.statusWidth-r:this.statusHeight-o;return{property:a,startTime:s,startSize:u,deltaSize:l,duration:this.animationDuration*Math.abs(l/100)}},t.prototype.renderValueChange=function(e,t,n,r,o){this.renderer.setStyle(e,n,r+"%"),this.renderer.setStyle(t,n,o+"%")},t.prototype.resetProgress=function(e,t,n){var r=this,o=i.calculateRatio(this.min,this.max,this.value),a=100*o,s=100/o;this.renderValueChange(e,t,n,a,s),this.zone.run((function(){r.cancelCurrentAnimation=!1,r.isAnimationInProgress=!1}))},r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"label",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"animation",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],t.prototype,"animationEnd",void 0),r.__decorate([a.ViewChild("progressStatus",{static:!1}),r.__metadata("design:type",a.ElementRef)],t.prototype,"progressStatusElement",void 0),r.__decorate([a.ViewChild("progressStatusWrap",{static:!1}),r.__metadata("design:type",a.ElementRef)],t.prototype,"progressStatusWrapperElement",void 0),t=r.__decorate([a.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,a.NgZone,a.Renderer2])],t)}(o.ProgressBarBase);t.ProgressBarComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(0),a=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,a.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 o=this.displayValue;this.displayValue=s.adjustValueToRange(this.min,this.max,r),this.previousValue=o}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([o.HostBinding("class.k-widget"),o.HostBinding("class.k-progressbar"),r.__metadata("design:type",Boolean)],e.prototype,"widgetClasses",void 0),r.__decorate([o.HostBinding("class.k-progressbar-horizontal"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"isHorizontal",null),r.__decorate([o.HostBinding("class.k-progressbar-vertical"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"isVertical",null),r.__decorate([o.HostBinding("class.k-state-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),r.__decorate([o.HostBinding("class.k-progressbar-reverse"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"reverseClass",null),r.__decorate([o.HostBinding("class.k-progressbar-indeterminate"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"indeterminateClass",null),r.__decorate([o.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dirAttribute",null),r.__decorate([o.HostBinding("attr.role"),r.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),r.__decorate([o.HostBinding("attr.aria-valuemin"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaMinAttribute",null),r.__decorate([o.HostBinding("attr.aria-valuemax"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaMaxAttribute",null),r.__decorate([o.HostBinding("attr.aria-valuenow"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"ariaValueAttribute",null),r.__decorate([o.Input(),r.__metadata("design:type",Number)],e.prototype,"max",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],e.prototype,"min",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],e.prototype,"value",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],e.prototype,"orientation",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"reverse",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],e.prototype,"indeterminate",void 0),e}();t.ProgressBarBase=u},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(4),a=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([a.Input(),r.__metadata("design:type",Number)],t.prototype,"chunkCount",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),t=r.__decorate([a.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)}(o.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 o=n(6);t.ChunkProgressBarComponent=o.ChunkProgressBarComponent;var a=n(12);t.ProgressBarModule=a.ProgressBarModule},function(e,t){e.exports=n},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:1646219371,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=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n(6),a=n(0),i=n(13),s=[n(3).ProgressBarComponent,o.ChunkProgressBarComponent],u=[i.CommonModule],l=function(){function e(){}return e=r.__decorate([a.NgModule({declarations:s,exports:s,imports:u})],e)}();t.ProgressBarModule=l},function(e,t){e.exports=o}])}));
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([,,,,,],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.ng.core,e.self,e.KendoAngularL10N,e.KendoLicensing,e.KendoAngularCommon,e.ng.common)}(window,(function(e,t,n,r,a,i){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=o(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(i(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 i=function(e,t,n){var r=Math.abs((n-t)/100);return Math.abs((e-t)/r)},o=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),i=n(0),o=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 i.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 o.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&&o.stopCurrentAnimation(t)&&(this.cancelCurrentAnimation=!0),o.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 i=function(){var o=(new Date).getTime()-a.startTime,s=Math.min(o/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(i)}else t.stopAnimation(e)};i()}))},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=o.calculateRatio(this.min,this.max,e),r=t?100*n:100,a=t?100:100*n,i=t?"width":"height",s=(new Date).getTime(),u=t?r:a,l=t?this.statusWidth-r:this.statusHeight-a;return{property:i,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=o.calculateRatio(this.min,this.max,this.value),i=100*a,s=100/a;this.renderValueChange(e,t,n,i,s),this.zone.run((function(){r.cancelCurrentAnimation=!1,r.isAnimationInProgress=!1}))},r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"label",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"animation",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],t.prototype,"animationEnd",void 0),r.__decorate([i.ViewChild("progressStatus",{static:!1}),r.__metadata("design:type",i.ElementRef)],t.prototype,"progressStatusElement",void 0),r.__decorate([i.ViewChild("progressStatusWrap",{static:!1}),r.__metadata("design:type",i.ElementRef)],t.prototype,"progressStatusWrapperElement",void 0),t=r.__decorate([i.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,i.NgZone,i.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),i=n(8),o=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,i.validatePackage(o.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),i=n(0),o=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 o.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([i.Input(),r.__metadata("design:type",Number)],t.prototype,"chunkCount",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"progressCssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"emptyCssClass",void 0),t=r.__decorate([i.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 i=n(12);t.ProgressBarModule=i.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:1646219371,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),i=n(0),o=n(13),s=[n(3).ProgressBarComponent,a.ChunkProgressBarComponent],u=[o.CommonModule],l=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:s,exports:s,imports:u})],e)}();t.ProgressBarModule=l},function(e,t){e.exports=i}])}));
@@ -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;