@progress/kendo-vue-progressbars 5.3.0-dev.202410141143 → 5.3.0-develop.1

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 (93) hide show
  1. package/README.md +26 -32
  2. package/chunkprogressbar/ChunkProgressBar.js +8 -0
  3. package/chunkprogressbar/ChunkProgressBar.mjs +127 -0
  4. package/common/constants.js +8 -0
  5. package/common/constants.mjs +14 -0
  6. package/common/utils.js +8 -0
  7. package/common/utils.mjs +24 -0
  8. package/dist/cdn/js/kendo-vue-progressbars.js +8 -1
  9. package/index.d.mts +397 -0
  10. package/index.d.ts +397 -0
  11. package/index.js +8 -0
  12. package/index.mjs +13 -0
  13. package/package-metadata.js +8 -0
  14. package/package-metadata.mjs +18 -0
  15. package/package.json +25 -47
  16. package/progressbar/ProgressBar.js +8 -0
  17. package/progressbar/ProgressBar.mjs +204 -0
  18. package/dist/es/additionalTypes.ts +0 -21
  19. package/dist/es/chunkprogressbar/ChunkProgressBar.d.ts +0 -44
  20. package/dist/es/chunkprogressbar/ChunkProgressBar.js +0 -172
  21. package/dist/es/chunkprogressbar/interfaces/ChunkProgressBarProps.d.ts +0 -10
  22. package/dist/es/chunkprogressbar/interfaces/ChunkProgressBarProps.js +0 -1
  23. package/dist/es/common/BaseProps.d.ts +0 -78
  24. package/dist/es/common/BaseProps.js +0 -1
  25. package/dist/es/common/constants.d.ts +0 -16
  26. package/dist/es/common/constants.js +0 -16
  27. package/dist/es/common/utils.d.ts +0 -16
  28. package/dist/es/common/utils.js +0 -34
  29. package/dist/es/main.d.ts +0 -7
  30. package/dist/es/main.js +0 -7
  31. package/dist/es/package-metadata.d.ts +0 -5
  32. package/dist/es/package-metadata.js +0 -11
  33. package/dist/es/progressbar/ProgressBar.d.ts +0 -54
  34. package/dist/es/progressbar/ProgressBar.js +0 -244
  35. package/dist/es/progressbar/interfaces/LabelProps.d.ts +0 -9
  36. package/dist/es/progressbar/interfaces/LabelProps.js +0 -1
  37. package/dist/es/progressbar/interfaces/ProgressBarAnimation.d.ts +0 -9
  38. package/dist/es/progressbar/interfaces/ProgressBarAnimation.js +0 -1
  39. package/dist/es/progressbar/interfaces/ProgressBarHandle.d.ts +0 -21
  40. package/dist/es/progressbar/interfaces/ProgressBarHandle.js +0 -4
  41. package/dist/es/progressbar/interfaces/ProgressBarProps.d.ts +0 -29
  42. package/dist/es/progressbar/interfaces/ProgressBarProps.js +0 -1
  43. package/dist/esm/additionalTypes.ts +0 -21
  44. package/dist/esm/chunkprogressbar/ChunkProgressBar.d.ts +0 -44
  45. package/dist/esm/chunkprogressbar/ChunkProgressBar.js +0 -172
  46. package/dist/esm/chunkprogressbar/interfaces/ChunkProgressBarProps.d.ts +0 -10
  47. package/dist/esm/chunkprogressbar/interfaces/ChunkProgressBarProps.js +0 -1
  48. package/dist/esm/common/BaseProps.d.ts +0 -78
  49. package/dist/esm/common/BaseProps.js +0 -1
  50. package/dist/esm/common/constants.d.ts +0 -16
  51. package/dist/esm/common/constants.js +0 -16
  52. package/dist/esm/common/utils.d.ts +0 -16
  53. package/dist/esm/common/utils.js +0 -34
  54. package/dist/esm/main.d.ts +0 -7
  55. package/dist/esm/main.js +0 -7
  56. package/dist/esm/package-metadata.d.ts +0 -5
  57. package/dist/esm/package-metadata.js +0 -11
  58. package/dist/esm/package.json +0 -3
  59. package/dist/esm/progressbar/ProgressBar.d.ts +0 -54
  60. package/dist/esm/progressbar/ProgressBar.js +0 -244
  61. package/dist/esm/progressbar/interfaces/LabelProps.d.ts +0 -9
  62. package/dist/esm/progressbar/interfaces/LabelProps.js +0 -1
  63. package/dist/esm/progressbar/interfaces/ProgressBarAnimation.d.ts +0 -9
  64. package/dist/esm/progressbar/interfaces/ProgressBarAnimation.js +0 -1
  65. package/dist/esm/progressbar/interfaces/ProgressBarHandle.d.ts +0 -21
  66. package/dist/esm/progressbar/interfaces/ProgressBarHandle.js +0 -4
  67. package/dist/esm/progressbar/interfaces/ProgressBarProps.d.ts +0 -29
  68. package/dist/esm/progressbar/interfaces/ProgressBarProps.js +0 -1
  69. package/dist/npm/additionalTypes.ts +0 -21
  70. package/dist/npm/chunkprogressbar/ChunkProgressBar.d.ts +0 -44
  71. package/dist/npm/chunkprogressbar/ChunkProgressBar.js +0 -179
  72. package/dist/npm/chunkprogressbar/interfaces/ChunkProgressBarProps.d.ts +0 -10
  73. package/dist/npm/chunkprogressbar/interfaces/ChunkProgressBarProps.js +0 -2
  74. package/dist/npm/common/BaseProps.d.ts +0 -78
  75. package/dist/npm/common/BaseProps.js +0 -2
  76. package/dist/npm/common/constants.d.ts +0 -16
  77. package/dist/npm/common/constants.js +0 -19
  78. package/dist/npm/common/utils.d.ts +0 -16
  79. package/dist/npm/common/utils.js +0 -41
  80. package/dist/npm/main.d.ts +0 -7
  81. package/dist/npm/main.js +0 -23
  82. package/dist/npm/package-metadata.d.ts +0 -5
  83. package/dist/npm/package-metadata.js +0 -14
  84. package/dist/npm/progressbar/ProgressBar.d.ts +0 -54
  85. package/dist/npm/progressbar/ProgressBar.js +0 -251
  86. package/dist/npm/progressbar/interfaces/LabelProps.d.ts +0 -9
  87. package/dist/npm/progressbar/interfaces/LabelProps.js +0 -2
  88. package/dist/npm/progressbar/interfaces/ProgressBarAnimation.d.ts +0 -9
  89. package/dist/npm/progressbar/interfaces/ProgressBarAnimation.js +0 -2
  90. package/dist/npm/progressbar/interfaces/ProgressBarHandle.d.ts +0 -21
  91. package/dist/npm/progressbar/interfaces/ProgressBarHandle.js +0 -5
  92. package/dist/npm/progressbar/interfaces/ProgressBarProps.d.ts +0 -29
  93. package/dist/npm/progressbar/interfaces/ProgressBarProps.js +0 -2
package/index.d.ts ADDED
@@ -0,0 +1,397 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ComponentOptionsMixin } from 'vue';
9
+ import { ComponentProvideOptions } from 'vue';
10
+ import { DefineComponent } from 'vue';
11
+ import { ExtractPropTypes } from 'vue';
12
+ import { PropType } from 'vue';
13
+ import { PublicProps } from 'vue';
14
+
15
+ /**
16
+ * @hidden
17
+ */
18
+ declare interface BaseProps {
19
+ /**
20
+ * Sets one of the two visually distinct types of progress bar.
21
+ *
22
+ * @hidden
23
+ */
24
+ type?: 'linear' | 'circular';
25
+ /**
26
+ * Sets the value of the progress bar. Has to be between `min` and `max` values. Defaults to `0`.
27
+ * Set `null` to enable the indeterminate state of the progress bar.
28
+ * See examples ([here]({% slug overview_progressbar %})).
29
+ */
30
+ value?: number | null;
31
+ /**
32
+ * The minimum value of the progress bar. Defaults to `0`.
33
+ */
34
+ min?: number;
35
+ /**
36
+ * The maximum value of the progress bar. Defaults to `100`.
37
+ */
38
+ max?: number;
39
+ /**
40
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
41
+ */
42
+ dir?: string;
43
+ /**
44
+ * The accessible label of the component.
45
+ */
46
+ ariaLabel?: string;
47
+ /**
48
+ * Sets the disabled state of the progress bar.
49
+ * See examples ([here]({% slug progressbar_disabled %})).
50
+ */
51
+ disabled?: boolean;
52
+ /**
53
+ * Defines the orientation of the progress bar.
54
+ * See examples ([here]({% slug progressbar_orientation %})) .
55
+ * Defaults to `horizontal`.
56
+ */
57
+ orientation?: 'horizontal' | 'vertical' | string;
58
+ /**
59
+ * If set to `true`, the progress bar will be reversed.
60
+ * See examples ([here]({% slug progressbar_direction %})).
61
+ * Defaults to `false`.
62
+ */
63
+ reverse?: boolean;
64
+ /**
65
+ * Specifies a list of CSS classes that will be added to the progress bar element.
66
+ */
67
+ className?: string;
68
+ /**
69
+ * The styles that are applied to the inner element which represents the empty portion of the progress bar.
70
+ * See examples ([here]({% slug progressbar_appearance %})).
71
+ */
72
+ emptyStyle?: object;
73
+ /**
74
+ * Sets additional classes to the inner element which represents the empty portion of the progress bar.
75
+ * See examples ([here]({% slug progressbar_appearance %})).
76
+ */
77
+ emptyClassName?: string;
78
+ /**
79
+ * The styles that are applied to the inner element which represents the full portion of the progress bar.
80
+ * See examples ([here]({% slug progressbar_appearance %})).
81
+ */
82
+ progressStyle?: object;
83
+ /**
84
+ * Sets additional classes to the inner element which represents the full portion of the progress bar.
85
+ * See examples ([here]({% slug progressbar_appearance %})).
86
+ */
87
+ progressClassName?: string;
88
+ /**
89
+ * Sets the `tabIndex` property of the progress bar.
90
+ */
91
+ tabIndex?: number;
92
+ }
93
+
94
+ /**
95
+ * @hidden
96
+ */
97
+ export declare const ChunkProgressBar: DefineComponent<ExtractPropTypes< {
98
+ chunkCount: {
99
+ type: PropType<number>;
100
+ default: number;
101
+ };
102
+ ariaLabel: PropType<string>;
103
+ disabled: PropType<boolean>;
104
+ reverse: {
105
+ type: PropType<boolean>;
106
+ default: boolean;
107
+ };
108
+ max: {
109
+ type: PropType<number>;
110
+ default: number;
111
+ };
112
+ min: {
113
+ type: PropType<number>;
114
+ default: number;
115
+ };
116
+ value: {
117
+ type: PropType<number>;
118
+ default: number;
119
+ };
120
+ tabIndex: PropType<number>;
121
+ emptyStyle: PropType<object>;
122
+ emptyClassName: PropType<string>;
123
+ progressStyle: PropType<object>;
124
+ progressClassName: PropType<string>;
125
+ orientation: {
126
+ type: PropType<string>;
127
+ default: string;
128
+ validator: (value: string) => any;
129
+ };
130
+ }>, {}, {
131
+ currentDir: any;
132
+ }, {}, {
133
+ focusElement(): void;
134
+ }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
135
+ chunkCount: {
136
+ type: PropType<number>;
137
+ default: number;
138
+ };
139
+ ariaLabel: PropType<string>;
140
+ disabled: PropType<boolean>;
141
+ reverse: {
142
+ type: PropType<boolean>;
143
+ default: boolean;
144
+ };
145
+ max: {
146
+ type: PropType<number>;
147
+ default: number;
148
+ };
149
+ min: {
150
+ type: PropType<number>;
151
+ default: number;
152
+ };
153
+ value: {
154
+ type: PropType<number>;
155
+ default: number;
156
+ };
157
+ tabIndex: PropType<number>;
158
+ emptyStyle: PropType<object>;
159
+ emptyClassName: PropType<string>;
160
+ progressStyle: PropType<object>;
161
+ progressClassName: PropType<string>;
162
+ orientation: {
163
+ type: PropType<string>;
164
+ default: string;
165
+ validator: (value: string) => any;
166
+ };
167
+ }>> & Readonly<{}>, {
168
+ reverse: boolean;
169
+ value: number;
170
+ max: number;
171
+ min: number;
172
+ orientation: string;
173
+ chunkCount: number;
174
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
175
+
176
+ /**
177
+ * Represents the props of the [Kendo UI for Vue ChunkProgressBar component]({% slug overview_chunkprogressbar %}).
178
+ */
179
+ export declare interface ChunkProgressBarProps extends BaseProps {
180
+ /**
181
+ * Sets the number of chunks into which the ChunkProgressBar will be split. Defaults to `5`.
182
+ */
183
+ chunkCount?: number;
184
+ }
185
+
186
+ /**
187
+ * An interface for the ProgressBar label.
188
+ */
189
+ export declare interface LabelProps {
190
+ /**
191
+ * Represents the current value of the ProgressBar.
192
+ */
193
+ value?: number | null;
194
+ }
195
+
196
+ /**
197
+ * @hidden
198
+ */
199
+ export declare const ProgressBar: DefineComponent<ExtractPropTypes< {
200
+ animation: {
201
+ type: PropType<boolean | ProgressBarAnimation>;
202
+ default: boolean;
203
+ };
204
+ disabled: {
205
+ type: PropType<boolean>;
206
+ default: boolean;
207
+ };
208
+ reverse: {
209
+ type: PropType<boolean>;
210
+ default: boolean;
211
+ };
212
+ label: PropType<any>;
213
+ labelRender: PropType<any>;
214
+ labelVisible: {
215
+ type: PropType<boolean>;
216
+ default: boolean;
217
+ };
218
+ labelPlacement: {
219
+ type: PropType<any>;
220
+ default: any;
221
+ validator: (value: string) => any;
222
+ };
223
+ dir: {
224
+ type: PropType<string>;
225
+ default: any;
226
+ };
227
+ max: {
228
+ type: PropType<number>;
229
+ default: number;
230
+ };
231
+ min: {
232
+ type: PropType<number>;
233
+ default: number;
234
+ };
235
+ value: {
236
+ type: PropType<number>;
237
+ default: number;
238
+ };
239
+ orientation: {
240
+ type: PropType<string>;
241
+ default: string;
242
+ validator: (value: string) => any;
243
+ };
244
+ tabIndex: PropType<number>;
245
+ emptyStyle: PropType<object>;
246
+ emptyClassName: PropType<string>;
247
+ progressStyle: PropType<object>;
248
+ progressClassName: PropType<string>;
249
+ ariaLabel: PropType<string>;
250
+ }>, {}, {
251
+ currentDir: any;
252
+ }, {
253
+ wrapperClass(): ProgressBarComputed['wrapperClass'];
254
+ isVertical(): ProgressBarComputed['isVertical'];
255
+ animationDuration(): ProgressBarComputed['animationDuration'];
256
+ }, {
257
+ focus(): void;
258
+ progressStatusElement(): any;
259
+ progressStatusWrapElement(): any;
260
+ handleStart(): void;
261
+ handleUpdate(progress: number): void;
262
+ handleEnd(): void;
263
+ }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
264
+ animation: {
265
+ type: PropType<boolean | ProgressBarAnimation>;
266
+ default: boolean;
267
+ };
268
+ disabled: {
269
+ type: PropType<boolean>;
270
+ default: boolean;
271
+ };
272
+ reverse: {
273
+ type: PropType<boolean>;
274
+ default: boolean;
275
+ };
276
+ label: PropType<any>;
277
+ labelRender: PropType<any>;
278
+ labelVisible: {
279
+ type: PropType<boolean>;
280
+ default: boolean;
281
+ };
282
+ labelPlacement: {
283
+ type: PropType<any>;
284
+ default: any;
285
+ validator: (value: string) => any;
286
+ };
287
+ dir: {
288
+ type: PropType<string>;
289
+ default: any;
290
+ };
291
+ max: {
292
+ type: PropType<number>;
293
+ default: number;
294
+ };
295
+ min: {
296
+ type: PropType<number>;
297
+ default: number;
298
+ };
299
+ value: {
300
+ type: PropType<number>;
301
+ default: number;
302
+ };
303
+ orientation: {
304
+ type: PropType<string>;
305
+ default: string;
306
+ validator: (value: string) => any;
307
+ };
308
+ tabIndex: PropType<number>;
309
+ emptyStyle: PropType<object>;
310
+ emptyClassName: PropType<string>;
311
+ progressStyle: PropType<object>;
312
+ progressClassName: PropType<string>;
313
+ ariaLabel: PropType<string>;
314
+ }>> & Readonly<{}>, {
315
+ reverse: boolean;
316
+ value: number;
317
+ animation: boolean | ProgressBarAnimation;
318
+ labelVisible: boolean;
319
+ labelPlacement: any;
320
+ disabled: boolean;
321
+ dir: string;
322
+ max: number;
323
+ min: number;
324
+ orientation: string;
325
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
326
+
327
+ /**
328
+ * Specifies the animation settings of the ProgressBar.
329
+ */
330
+ export declare interface ProgressBarAnimation {
331
+ /**
332
+ * Specifies the duration of the ProgressBar animation. Defaults to `400`.
333
+ */
334
+ duration: number;
335
+ }
336
+
337
+ /**
338
+ * @hidden
339
+ */
340
+ export declare interface ProgressBarComputed {
341
+ [key: string]: any;
342
+ wrapperClass: object;
343
+ isVertical: boolean;
344
+ animationDuration: number;
345
+ }
346
+
347
+ /**
348
+ * The ProgressBar ref.
349
+ */
350
+ export declare interface ProgressBarHandle {
351
+ /**
352
+ * The ProgressBar element.
353
+ */
354
+ element: HTMLDivElement | null;
355
+ /**
356
+ * The progress status element.
357
+ */
358
+ progressStatusElement: HTMLDivElement | null;
359
+ /**
360
+ * The progress status wrap element.
361
+ */
362
+ progressStatusWrapElement: HTMLSpanElement | null;
363
+ /**
364
+ * Focus the ProgressBar.
365
+ */
366
+ focus: () => void;
367
+ }
368
+
369
+ /**
370
+ * Represents the props of the [Kendo UI for Vue ProgressBar component]({% slug overview_progressbar %}).
371
+ */
372
+ export declare interface ProgressBarProps extends BaseProps {
373
+ /**
374
+ * Specifies the animation settings of the ProgressBar. Defaults to `false`.
375
+ * If boolean, enables or disables the default animation.
376
+ * Use ProgressBarAnimation to set slide animation with customizable duration option. Accepts a number in milliseconds.
377
+ */
378
+ animation?: boolean | ProgressBarAnimation;
379
+ /**
380
+ * Overrides the default label ([see example]({% slug progressbar_label %})).
381
+ */
382
+ label?: any;
383
+ /**
384
+ * Overrides the default label template ([see example]({% slug progressbar_label %})).
385
+ */
386
+ labelRender?: any;
387
+ /**
388
+ * Sets the visibility of the progress status label. Defaults to `true`.
389
+ */
390
+ labelVisible?: boolean;
391
+ /**
392
+ * Sets the position of the progress status label. Defaults to `end` ([see example]({% slug progressbar_label %})).
393
+ */
394
+ labelPlacement?: 'start' | 'center' | 'end' | any;
395
+ }
396
+
397
+ export { }
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./progressbar/ProgressBar.js"),e=require("./chunkprogressbar/ChunkProgressBar.js");exports.ProgressBar=r.ProgressBar;exports.ChunkProgressBar=e.ChunkProgressBar;
package/index.mjs ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ProgressBar as e } from "./progressbar/ProgressBar.mjs";
9
+ import { ChunkProgressBar as a } from "./chunkprogressbar/ChunkProgressBar.mjs";
10
+ export {
11
+ a as ChunkProgressBar,
12
+ e as ProgressBar
13
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1636730390,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ const e = {
9
+ name: "@progress/kendo-vue-progressbars",
10
+ productName: "Kendo UI for Vue",
11
+ productCodes: ["KENDOUIVUE", "KENDOUICOMPLETE"],
12
+ publishDate: 1731077551,
13
+ version: "",
14
+ licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
15
+ };
16
+ export {
17
+ e as packageMetadata
18
+ };
package/package.json CHANGED
@@ -1,67 +1,45 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-progressbars",
3
- "description": "Kendo UI for Vue ProgressBars package",
4
- "version": "5.3.0-dev.202410141143",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/telerik/kendo-vue.git"
8
- },
9
- "main": "dist/npm/main.js",
10
- "types": "dist/npm/main.d.ts",
11
- "module": "dist/es/main.js",
12
- "jsnext:main": "dist/es/main.js",
3
+ "version": "5.3.0-develop.1",
4
+ "description": "TODO",
5
+ "author": "Progress",
6
+ "license": "SEE LICENSE IN LICENSE.md",
7
+ "homepage": "https://www.telerik.com/kendo-vue-ui",
8
+ "main": "./index.js",
9
+ "types": "./index.d.ts",
13
10
  "exports": {
14
- "node": "./dist/esm/main.js",
15
- "import": "./dist/es/main.js",
16
- "require": "./dist/npm/main.js",
17
- "default": "./dist/npm/main.js"
11
+ ".": {
12
+ "import": "./index.mjs",
13
+ "require": "./index.js"
14
+ }
18
15
  },
19
- "scripts": {
20
- "build-package": "gulp build-package",
21
- "start": "gulp start --notsc",
22
- "test": "cd ../../ && npm run test -- --testPathPattern=/packages/progressbars/.*",
23
- "e2e": "cd ../../ && npx jest --maxWorkers=4 --config jest.config.e2e.js packages/progressbars"
16
+ "sideEffects": false,
17
+ "peerDependencies": {
18
+ "@progress/kendo-licensing": "^1.3.4",
19
+ "@progress/kendo-vue-common": "5.3.0-develop.1",
20
+ "@progress/kendo-vue-animation": "5.3.0-develop.1",
21
+ "vue": "^3.0.2"
24
22
  },
25
- "homepage": "https://www.telerik.com/kendo-vue-ui/",
23
+ "dependencies": {},
26
24
  "keywords": [
27
25
  "Kendo UI",
28
26
  "Vue",
29
27
  "Progress",
30
- "ProgressBars",
31
- "ProgressBar",
32
- "ChunkProgressBar",
33
- "Kendo UI for Vue",
34
- "vuejs",
28
+ "Progressbars",
35
29
  "UI",
36
30
  "components",
37
31
  "Vue component",
38
32
  "Telerik"
39
33
  ],
40
- "peerDependencies": {
41
- "@progress/kendo-licensing": "^1.3.0",
42
- "@progress/kendo-vue-animation": "^5.0.0",
43
- "vue": "^2.6.12 || ^3.0.2"
44
- },
45
- "devDependencies": {
46
- "@progress/kendo-drawing": "^1.20.1",
47
- "@progress/kendo-licensing": "^1.3.0",
48
- "@progress/kendo-vue-animation": "5.3.0-dev.202410141143",
49
- "@progress/kendo-vue-buttons": "5.3.0-dev.202410141143",
50
- "@progress/kendo-vue-dropdowns": "5.3.0-dev.202410141143",
51
- "@progress/kendo-vue-form": "5.3.0-dev.202410141143",
52
- "@progress/kendo-vue-inputs": "5.3.0-dev.202410141143",
53
- "@progress/kendo-vue-intl": "5.3.0-dev.202410141143"
54
- },
55
- "dependencies": {
56
- "@progress/kendo-vue-common": "5.3.0-dev.202410141143"
57
- },
58
34
  "@progress": {
59
- "friendlyName": "ProgressBars",
35
+ "friendlyName": "Progressbars",
60
36
  "framework": "Kendo UI for Vue"
61
37
  },
62
- "author": "Progress",
63
- "license": "SEE LICENSE IN LICENSE.md",
64
38
  "publishConfig": {
65
39
  "access": "public"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/telerik/kendo-react.git"
66
44
  }
67
- }
45
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),p=require("@progress/kendo-vue-animation"),t=require("@progress/kendo-vue-common"),r=require("../common/utils.js"),m=require("../common/constants.js"),P=require("../package-metadata.js"),$=a.defineComponent({name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(e){return["start","center","end"].includes(e)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String,ariaLabel:String},created(){t.validatePackage(P.packageMetadata),this.currentDir=this.$props.dir},mounted(){this._progressStatus=t.getRef(this,"progressStatus"),this._progressStatusWrap=t.getRef(this,"progressStatusWrap"),this.currentDir=this.$props.dir!==void 0?this.$props.dir:t.isRtl(this.$el)?"rtl":"ltr",this.animationFrame=p.animate({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},unmounted(){p.cancelAnimation(this.animationFrame)},data(){return{currentDir:void 0}},watch:{value:function(e,s){this.prevValue=s,this.animationFrame=p.animate({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass(){const{disabled:e,reverse:s,orientation:n,value:o}=this.$props,i=n==="vertical";return{"k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":s,"k-progressbar-indeterminate":o===null,"k-disabled":e}},isVertical(){return this.orientation==="vertical"},animationDuration(){const{animation:e}=this.$props;return typeof e!="boolean"&&e!==void 0?e.duration:e?m.DEFAULT_ANIMATION_DURATION:m.NO_ANIMATION}},render(){const{disabled:e,labelVisible:s,labelPlacement:n,max:o,min:i,tabIndex:d,emptyStyle:b,emptyClassName:u,progressStyle:f,progressClassName:c}=this.$props,l=this.$props.value||0,S=this.$props.value===null,v=r.truncateNumber(l),y={value:l},N=this.$props.labelRender?t.templateRendering.call(this,this.$props.labelRender,t.getListeners.call(this)):void 0,k=a.h("span",{class:"k-progress-status"},v),V=t.getTemplate.call(this,{h:a.h,template:N,defaultRendering:k,additionalProps:y}),h=s?this.$props.label?a.createVNode("span",{class:"k-progress-status"},[this.$props.label]):V:void 0,g=t.classNames("k-progress-status-wrap",{"k-progress-start":n==="start","k-progress-center":n==="center","k-progress-end":n==="end"||n===void 0});return a.createVNode("div",{class:this.wrapperClass,dir:this.currentDir,tabindex:t.getTabIndex(d,e),role:"progressbar","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":S?void 0:l,"aria-disabled":e,"aria-label":this.$props.ariaLabel},[a.createVNode("span",{class:g+(u?" "+u:""),style:b},[h]),a.createVNode("div",{class:"k-progressbar-value k-selected",style:f,ref:t.setRef(this,"progressStatus")},[a.createVNode("span",{class:g+(c?" "+c:""),ref:t.setRef(this,"progressStatusWrap")},[h])])])},methods:{focus(){this.$el&&this.$el.focus()},progressStatusElement(){return this._progressStatus},progressStatusWrapElement(){return this._progressStatusWrap},handleStart(){const e=r.calculatePercentage(this.min,this.max,this.prevValue);r.updateProgress(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate(e){const s=r.calculatePercentage(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);r.updateProgress(this._progressStatus,this._progressStatusWrap,s,this.isVertical)},handleEnd(){const e=r.calculatePercentage(this.min,this.max,this.value);r.updateProgress(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}});exports.ProgressBar=$;