@tuki-io/tuki-widgets 0.0.155 → 0.0.157
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/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +12 -4
- package/esm2020/di2mt/widgets/upgrade-overview/cards/already-upgraded-users/already-upgraded-users-card.component.mjs +6 -2
- package/esm2020/di2mt/widgets/upgrade-overview/cards/pending-activation-users/pending-activation-users.component.mjs +3 -2
- package/esm2020/user-device-manage/src/app.constants.mjs +2 -1
- package/esm2020/user-device-manage/src/classes/deviceProfile.mjs +6 -1
- package/esm2020/user-device-manage/src/device-manage-widget.component.mjs +31 -4
- package/esm2020/user-device-manage/src/services/api.service.mjs +1 -1
- package/esm2020/user-device-manage/src/services/user.service.mjs +30 -5
- package/esm2020/user-manage/src/app.constants.mjs +3 -2
- package/esm2020/user-manage/src/classes/simplified-user.mjs +7 -2
- package/esm2020/user-manage/src/services/api.service.mjs +1 -1
- package/esm2020/user-manage/src/services/user.service.mjs +9 -1
- package/esm2020/user-manage/src/user-calling/user-calling.component.mjs +18 -4
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +10 -3
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +14 -6
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs +67 -8
- package/fesm2015/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +45 -7
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +18 -5
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs +64 -7
- package/fesm2020/tuki-io-tuki-widgets-user-device-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +42 -7
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/package.json +1 -1
- package/user-device-manage/src/app.constants.d.ts +1 -0
- package/user-device-manage/src/classes/deviceProfile.d.ts +3 -0
- package/user-device-manage/src/device-manage-widget.component.d.ts +4 -0
- package/user-device-manage/src/services/api.service.d.ts +1 -1
- package/user-device-manage/src/services/user.service.d.ts +8 -2
- package/user-manage/src/app.constants.d.ts +1 -0
- package/user-manage/src/classes/simplified-user.d.ts +2 -0
- package/user-manage/src/services/api.service.d.ts +1 -1
- package/user-manage/src/services/user.service.d.ts +1 -0
- package/user-manage/src/user-calling/user-calling.component.d.ts +4 -1
|
@@ -858,13 +858,21 @@ class StatCardComponent {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
get readyPercentage() {
|
|
861
|
-
|
|
861
|
+
if (this.upgradeStatus === 'already' && this.type === 'user') {
|
|
862
|
+
return Math.ceil(1 / this.stats?.total * 100);
|
|
863
|
+
}
|
|
864
|
+
else
|
|
865
|
+
return Math.ceil(this.stats?.totalReady / this.stats?.total * 100);
|
|
862
866
|
}
|
|
863
867
|
get upgradedPercentage() {
|
|
864
|
-
|
|
868
|
+
if (this.upgradeStatus === 'already' && this.type === 'user') {
|
|
869
|
+
return 0;
|
|
870
|
+
}
|
|
871
|
+
else
|
|
872
|
+
return Math.ceil(this.stats?.totalUpgraded / this.stats?.total * 100);
|
|
865
873
|
}
|
|
866
874
|
get pendingActivationPercentage() {
|
|
867
|
-
return (this.stats?.pendingActivation / this.stats?.totalUpgraded * 100)
|
|
875
|
+
return Math.ceil(this.stats?.pendingActivation / this.stats?.totalUpgraded * 100);
|
|
868
876
|
}
|
|
869
877
|
}
|
|
870
878
|
StatCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1826,7 +1834,11 @@ class AlreadyUpgradedUsersCardComponent {
|
|
|
1826
1834
|
this.upgradeOverviewService.getUsersUpgradeSummary()
|
|
1827
1835
|
.pipe(takeUntil(this.destroy$))
|
|
1828
1836
|
.subscribe((stats) => {
|
|
1829
|
-
this.readinessStats =
|
|
1837
|
+
this.readinessStats = {
|
|
1838
|
+
...stats,
|
|
1839
|
+
totalUpgradedUsers: 1,
|
|
1840
|
+
totalReadyUsers: 43,
|
|
1841
|
+
};
|
|
1830
1842
|
this.loading = false;
|
|
1831
1843
|
});
|
|
1832
1844
|
}
|
|
@@ -2161,8 +2173,9 @@ class PendingActivationUsersCardComponent {
|
|
|
2161
2173
|
.pipe(takeUntil(this.destroy$))
|
|
2162
2174
|
.subscribe((stats) => {
|
|
2163
2175
|
this.readinessStats = {
|
|
2176
|
+
...stats,
|
|
2164
2177
|
pendingActivation: 1,
|
|
2165
|
-
|
|
2178
|
+
totalUpgradedUsers: 1,
|
|
2166
2179
|
};
|
|
2167
2180
|
this.loading = false;
|
|
2168
2181
|
});
|