@skysoftware-co/bayan-hr-widgets-ui 1.3.4 → 2.0.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.
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 21.2.11.
|
|
4
4
|
|
|
5
|
-
**Requires:** Angular `^21.0.0` · TypeScript `~5.9.x` · Node.js `22.x (LTS)`
|
|
6
|
-
|
|
7
5
|
## Code scaffolding
|
|
8
6
|
|
|
9
7
|
Run `ng generate component component-name --project shared-ui` to generate a new component.
|
|
@@ -1934,6 +1934,9 @@ class MyMainDetailsWidgetComponent {
|
|
|
1934
1934
|
...s,
|
|
1935
1935
|
title: this.translatePipe.transform(s.title)
|
|
1936
1936
|
}));
|
|
1937
|
+
if (this.employeeMainInfo) {
|
|
1938
|
+
this.applyShortcutUrls();
|
|
1939
|
+
}
|
|
1937
1940
|
}
|
|
1938
1941
|
}
|
|
1939
1942
|
loadEmployeeMainInfo() {
|
|
@@ -1961,12 +1964,7 @@ class MyMainDetailsWidgetComponent {
|
|
|
1961
1964
|
if (v.VacationTypeColor == null)
|
|
1962
1965
|
v.VacationTypeColor = this.defaultVacationColor;
|
|
1963
1966
|
});
|
|
1964
|
-
this.
|
|
1965
|
-
if (item.shortcutId == MainWidgetShortcut.Attendance && this.employeeMainInfo?.AttendanceUrl != null)
|
|
1966
|
-
item.navigateUrl = [this.employeeMainInfo.AttendanceUrl];
|
|
1967
|
-
if (item.shortcutId == MainWidgetShortcut.VacationStatement && this.employeeMainInfo?.VacationStatementUrl != null)
|
|
1968
|
-
item.navigateUrl = [this.employeeMainInfo.VacationStatementUrl];
|
|
1969
|
-
});
|
|
1967
|
+
this.applyShortcutUrls();
|
|
1970
1968
|
this.isLoadingChanged.emit(false);
|
|
1971
1969
|
},
|
|
1972
1970
|
error: (error) => {
|
|
@@ -1976,6 +1974,14 @@ class MyMainDetailsWidgetComponent {
|
|
|
1976
1974
|
},
|
|
1977
1975
|
});
|
|
1978
1976
|
}
|
|
1977
|
+
applyShortcutUrls() {
|
|
1978
|
+
this.shortcuts.forEach(item => {
|
|
1979
|
+
if (item.shortcutId == MainWidgetShortcut.Attendance && this.employeeMainInfo?.AttendanceUrl != null)
|
|
1980
|
+
item.navigateUrl = [this.employeeMainInfo.AttendanceUrl];
|
|
1981
|
+
if (item.shortcutId == MainWidgetShortcut.VacationStatement && this.employeeMainInfo?.VacationStatementUrl != null)
|
|
1982
|
+
item.navigateUrl = [this.employeeMainInfo.VacationStatementUrl];
|
|
1983
|
+
});
|
|
1984
|
+
}
|
|
1979
1985
|
shortcutClicked(icon) {
|
|
1980
1986
|
this.onShortcutClicked.emit(icon);
|
|
1981
1987
|
}
|