@adminforth/background-jobs 1.11.4 → 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,463 bytes received 172 bytes 37,270.00 bytes/sec
17
- total size is 17,830 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'"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div ref="dropdownRef">
2
+ <div class="relative" ref="dropdownRef">
3
3
  <div class="cursor-pointer hover:scale-110 transition-transform" @click="isDropdownOpen = !isDropdownOpen">
4
4
  <div class="relative flex items-center justify-center" v-if="jobs.length > 0">
5
5
  <Tooltip>
@@ -30,7 +30,7 @@
30
30
  leave-from-class="opacity-100 scale-100"
31
31
  leave-to-class="opacity-0 scale-95"
32
32
  >
33
- <div v-show="isDropdownOpen" class="absolute right-28 top-14 md:top-12 rounded z-10 overflow-y-auto max-h-96 ">
33
+ <div v-show="isDropdownOpen" class="absolute right-0 top-14 md:top-12 rounded z-10 overflow-y-auto max-h-96 ">
34
34
  <JobsList
35
35
  :closeDropdown="() => isDropdownOpen = false"
36
36
  :jobs="jobs"
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'"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div ref="dropdownRef">
2
+ <div class="relative" ref="dropdownRef">
3
3
  <div class="cursor-pointer hover:scale-110 transition-transform" @click="isDropdownOpen = !isDropdownOpen">
4
4
  <div class="relative flex items-center justify-center" v-if="jobs.length > 0">
5
5
  <Tooltip>
@@ -30,7 +30,7 @@
30
30
  leave-from-class="opacity-100 scale-100"
31
31
  leave-to-class="opacity-0 scale-95"
32
32
  >
33
- <div v-show="isDropdownOpen" class="absolute right-28 top-14 md:top-12 rounded z-10 overflow-y-auto max-h-96 ">
33
+ <div v-show="isDropdownOpen" class="absolute right-0 top-14 md:top-12 rounded z-10 overflow-y-auto max-h-96 ">
34
34
  <JobsList
35
35
  :closeDropdown="() => isDropdownOpen = false"
36
36
  :jobs="jobs"
@@ -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.4",
3
+ "version": "1.11.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",