@adminforth/background-jobs 1.11.5 → 1.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -13,5 +13,5 @@ custom/tsconfig.json
13
13
  custom/useBackgroundJobApi.ts
14
14
  custom/utils.ts
15
15
 
16
- sent 18,479 bytes received 172 bytes 37,302.00 bytes/sec
17
- total size is 17,846 speedup is 0.96
16
+ sent 18,507 bytes received 172 bytes 37,358.00 bytes/sec
17
+ total size is 17,874 speedup is 0.96
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
  <div class="flex items-center gap-4 w-full mt-4">
37
37
  <ProgressBar
38
- :current-value="job.progress"
38
+ :current-value="parseInt(job.progress, 10)"
39
39
  :max-value="100"
40
40
  :min-value="0"
41
41
  :showAnimation="job.status === 'IN_PROGRESS'"
@@ -17,7 +17,7 @@
17
17
  </p>
18
18
  <ProgressBar
19
19
  class="mt-1"
20
- :current-value="job.progress"
20
+ :current-value="parseInt(job.progress, 10)"
21
21
  :max-value="100"
22
22
  :min-value="0"
23
23
  :showAnimation="job.status === 'IN_PROGRESS'"
package/custom/utils.ts CHANGED
@@ -4,7 +4,7 @@ export interface IJob {
4
4
  name: string;
5
5
  status: 'IN_PROGRESS' | 'DONE' | 'DONE_WITH_ERRORS' | 'CANCELLED';
6
6
  state: Record<string, any>;
7
- progress: number; // 0 to 100
7
+ progress: string; // 0 to 100
8
8
  createdAt: Date;
9
9
  finishedAt?: Date;
10
10
  customComponent?: AdminForthComponentDeclarationFull;
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
  <div class="flex items-center gap-4 w-full mt-4">
37
37
  <ProgressBar
38
- :current-value="job.progress"
38
+ :current-value="parseInt(job.progress, 10)"
39
39
  :max-value="100"
40
40
  :min-value="0"
41
41
  :showAnimation="job.status === 'IN_PROGRESS'"
@@ -17,7 +17,7 @@
17
17
  </p>
18
18
  <ProgressBar
19
19
  class="mt-1"
20
- :current-value="job.progress"
20
+ :current-value="parseInt(job.progress, 10)"
21
21
  :max-value="100"
22
22
  :min-value="0"
23
23
  :showAnimation="job.status === 'IN_PROGRESS'"
@@ -4,7 +4,7 @@ export interface IJob {
4
4
  name: string;
5
5
  status: 'IN_PROGRESS' | 'DONE' | 'DONE_WITH_ERRORS' | 'CANCELLED';
6
6
  state: Record<string, any>;
7
- progress: number; // 0 to 100
7
+ progress: string; // 0 to 100
8
8
  createdAt: Date;
9
9
  finishedAt?: Date;
10
10
  customComponent?: AdminForthComponentDeclarationFull;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/background-jobs",
3
- "version": "1.11.5",
3
+ "version": "1.11.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",