@addsign/moje-agenda-shared-lib 0.0.47 → 0.0.48
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/dist/main.d.ts +1 -0
- package/dist/main.js +3 -0
- package/dist/main.js.map +1 -1
- package/dist/utils/getFullNamePositionWithEmployee.d.ts +5 -0
- package/dist/utils/getFullNamePositionWithEmployee.js +17 -0
- package/dist/utils/getFullNamePositionWithEmployee.js.map +1 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type { DataTableColumn } from './components/DataTable.tsx';
|
|
|
14
14
|
export * from './contexts/FederationContext.tsx';
|
|
15
15
|
export * from './contexts/useFederationContext.ts';
|
|
16
16
|
export * from './utils/getFullName.ts';
|
|
17
|
+
export * from './utils/getFullNamePositionWithEmployee.ts';
|
|
17
18
|
export * from './utils/getIntersectingDays.ts';
|
|
18
19
|
export * from './utils/handleErrors.ts';
|
|
19
20
|
export * from './types.ts';
|
package/dist/main.js
CHANGED
|
@@ -13,6 +13,7 @@ import { default as default11 } from "./components/DataTable.js";
|
|
|
13
13
|
import { FederationContext, FederationContextProvider } from "./contexts/FederationContext.js";
|
|
14
14
|
import { useFederationContext } from "./contexts/useFederationContext.js";
|
|
15
15
|
import { getFullName, getFullNameList } from "./utils/getFullName.js";
|
|
16
|
+
import { getFullNameListPositionWithEmployee, getFullNamePositionWithEmployee } from "./utils/getFullNamePositionWithEmployee.js";
|
|
16
17
|
import { getIntersectingDays } from "./utils/getIntersectingDays.js";
|
|
17
18
|
import { handleErrors } from "./utils/handleErrors.js";
|
|
18
19
|
export {
|
|
@@ -31,6 +32,8 @@ export {
|
|
|
31
32
|
default8 as Spinner,
|
|
32
33
|
getFullName,
|
|
33
34
|
getFullNameList,
|
|
35
|
+
getFullNameListPositionWithEmployee,
|
|
36
|
+
getFullNamePositionWithEmployee,
|
|
34
37
|
getIntersectingDays,
|
|
35
38
|
handleErrors,
|
|
36
39
|
useFederationContext
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IPositionEmployee } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const getFullNamePositionWithEmployee: (position: IPositionEmployee, showEmplNumb?: boolean) => string;
|
|
4
|
+
declare const getFullNameListPositionWithEmployee: (position: IPositionEmployee, showEmplNumb?: boolean) => string;
|
|
5
|
+
export { getFullNamePositionWithEmployee, getFullNameListPositionWithEmployee };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const getFullNamePositionWithEmployee = (position, showEmplNumb = false) => {
|
|
2
|
+
var _a, _b, _c, _d;
|
|
3
|
+
if (!position.employee)
|
|
4
|
+
return "Neobsazená pozice (" + position.positionNumber + ")";
|
|
5
|
+
return (((_a = position.employee) == null ? void 0 : _a.degreeBefore) || "") + " " + (((_b = position.employee) == null ? void 0 : _b.firstName) || "") + " " + (((_c = position.employee) == null ? void 0 : _c.lastName) || "") + " " + (((_d = position.employee) == null ? void 0 : _d.degreeAfter) || "") + (showEmplNumb ? "(" + position.employee.employeeId + ")" : "");
|
|
6
|
+
};
|
|
7
|
+
const getFullNameListPositionWithEmployee = (position, showEmplNumb = false) => {
|
|
8
|
+
var _a, _b, _c, _d;
|
|
9
|
+
if (!position.employee)
|
|
10
|
+
return "Neobsazená pozice (" + position.positionNumber + ")";
|
|
11
|
+
return (((_a = position.employee) == null ? void 0 : _a.lastName) || "") + " " + (((_b = position.employee) == null ? void 0 : _b.firstName) || "") + " " + (((_c = position.employee) == null ? void 0 : _c.degreeBefore) || "") + " " + (((_d = position.employee) == null ? void 0 : _d.degreeAfter) || "") + (showEmplNumb ? "(" + position.employee.employeeId + ")" : "");
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
getFullNameListPositionWithEmployee,
|
|
15
|
+
getFullNamePositionWithEmployee
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=getFullNamePositionWithEmployee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFullNamePositionWithEmployee.js","sources":["../../lib/utils/getFullNamePositionWithEmployee.ts"],"sourcesContent":["// userDataFetcher.ts\r\n\r\nimport { IPositionEmployee } from \"../types\";\r\n\r\nconst getFullNamePositionWithEmployee = (position: IPositionEmployee, showEmplNumb: boolean = false) => {\r\n if (!position.employee) return 'Neobsazená pozice (' + position.positionNumber + ')';\r\n return (\r\n (position.employee?.degreeBefore || \"\") +\r\n \" \" +\r\n (position.employee?.firstName || \"\") +\r\n \" \" +\r\n (position.employee?.lastName || \"\") +\r\n \" \" +\r\n (position.employee?.degreeAfter || \"\") +\r\n (showEmplNumb ? \"(\" + position.employee.employeeId + \")\" : \"\")\r\n );\r\n};\r\nconst getFullNameListPositionWithEmployee = (\r\n position: IPositionEmployee,\r\n showEmplNumb: boolean = false,\r\n) => {\r\n if (!position.employee) return 'Neobsazená pozice (' + position.positionNumber + ')';\r\n\r\n return (\r\n (position.employee?.lastName || \"\") +\r\n \" \" +\r\n (position.employee?.firstName || \"\") +\r\n \" \" +\r\n (position.employee?.degreeBefore || \"\") +\r\n \" \" +\r\n (position.employee?.degreeAfter || \"\") +\r\n (showEmplNumb ? \"(\" + position.employee.employeeId + \")\" : \"\")\r\n );\r\n};\r\nexport { getFullNamePositionWithEmployee, getFullNameListPositionWithEmployee };\r\n"],"names":[],"mappings":"AAIA,MAAM,kCAAkC,CAAC,UAA6B,eAAwB,UAAU;AAAxG;AACI,MAAI,CAAC,SAAS;AAAiB,WAAA,wBAAwB,SAAS,iBAAiB;AAE5E,YAAA,cAAS,aAAT,mBAAmB,iBAAgB,MACpC,SACC,cAAS,aAAT,mBAAmB,cAAa,MACjC,SACC,cAAS,aAAT,mBAAmB,aAAY,MAChC,SACC,cAAS,aAAT,mBAAmB,gBAAe,OAClC,eAAe,MAAM,SAAS,SAAS,aAAa,MAAM;AAEnE;AACA,MAAM,sCAAsC,CACxC,UACA,eAAwB,UACvB;AAhBL;AAiBI,MAAI,CAAC,SAAS;AAAiB,WAAA,wBAAwB,SAAS,iBAAiB;AAG5E,YAAA,cAAS,aAAT,mBAAmB,aAAY,MAChC,SACC,cAAS,aAAT,mBAAmB,cAAa,MACjC,SACC,cAAS,aAAT,mBAAmB,iBAAgB,MACpC,SACC,cAAS,aAAT,mBAAmB,gBAAe,OAClC,eAAe,MAAM,SAAS,SAAS,aAAa,MAAM;AAEnE;"}
|