@addsign/moje-agenda-shared-lib 2.0.38 → 2.0.40

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.
@@ -40,7 +40,7 @@ function PositionsSelectorSingle({
40
40
  initDepartmentId,
41
41
  placeholder
42
42
  }) {
43
- var _a;
43
+ var _a, _b, _c;
44
44
  const [isModalOpen, setModalOpen] = useState(false);
45
45
  const [department, setDepartment] = useState("");
46
46
  const [positions, setPositions] = useState([]);
@@ -124,7 +124,8 @@ function PositionsSelectorSingle({
124
124
  },
125
125
  type: "text",
126
126
  disabled: true,
127
- value: (storedPositionEmployee == null ? void 0 : storedPositionEmployee.employee) ? getFullName(storedPositionEmployee == null ? void 0 : storedPositionEmployee.employee, true, false) : ""
127
+ value: (storedPositionEmployee == null ? void 0 : storedPositionEmployee.employee) ? getFullName(storedPositionEmployee == null ? void 0 : storedPositionEmployee.employee, true, false) : "",
128
+ className: ((_b = storedPositionEmployee == null ? void 0 : storedPositionEmployee.employee) == null ? void 0 : _b.deleted) ? "line-through" : ""
128
129
  }
129
130
  ),
130
131
  /* @__PURE__ */ jsx(
@@ -183,7 +184,7 @@ function PositionsSelectorSingle({
183
184
  className: `group flex justify-between items-center py-2 cursor-pointer ${position.id == (selectedPositionEmployee == null ? void 0 : selectedPositionEmployee.id) ? " bg-gray-100 hover:bg-gray-200 " : "hover:bg-gray-50"} `,
184
185
  onClick: () => handleSelectedPositionEmployee(position),
185
186
  children: [
186
- /* @__PURE__ */ jsx("div", { className: " ", children: getFullName(position.employee, true) }),
187
+ /* @__PURE__ */ jsx("div", { className: " ", children: getFullName(position.employee, true, true) }),
187
188
  /* @__PURE__ */ jsx(
188
189
  "div",
189
190
  {
@@ -212,7 +213,8 @@ function PositionsSelectorSingle({
212
213
  selectedPositionEmployee == null ? void 0 : selectedPositionEmployee.employee,
213
214
  true,
214
215
  false
215
- ) : ""
216
+ ) : "",
217
+ className: ((_c = selectedPositionEmployee == null ? void 0 : selectedPositionEmployee.employee) == null ? void 0 : _c.deleted) ? "line-through" : ""
216
218
  }
217
219
  ),
218
220
  selectedPositionEmployee && /* @__PURE__ */ jsxs("div", { className: "flex justify-end space-x-5 mt-auto ml-5", children: [