@vocollege/app 0.0.163 → 0.0.165

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.
@@ -1261,6 +1261,7 @@
1261
1261
  "numberEducatorYrkeshogskolor": "Antal yrkeshögskolor",
1262
1262
  "numberOfEducators": "Antal utbildare",
1263
1263
  "educatorPerType": "Utbildare per typ",
1264
+ "employerPerType": "Arbetsgivare per typ",
1264
1265
  "certifiedRegionalVoCollege": "Certifierade regionala college",
1265
1266
  "certifiedLocalVoCollege": "Certifierade lokala college",
1266
1267
  "certifiedEducators": "Certifierade utbildare",
@@ -1269,6 +1270,7 @@
1269
1270
  },
1270
1271
  "messages": {
1271
1272
  "educatorCanAppearMultipleTimes": "Notera att en och samma utbildare kan förekomma flera gånger, under olika rubriker. T ex kan en utbildare vara både 'Kommunal Gymnasium' och 'Kommunal vuxenutbildning'.",
1273
+ "employerCanAppearMultipleTimes": "Notera att en och samma arbetsgivare kan förekomma flera gånger, under olika rubriker. VoAdmin tillåter exempelvis att en och samma arbetsgivare ställs in som både 'Kommun' och 'Privat'.",
1272
1274
  "sumOfEducationsCanBeDifferentFromNumberOfEducators": "Notera att summan av utbildningar kan bli annorlunda från 'Antal utbildare', eftersom vissa utbildare kan sakna certfierade utbildningar under vald period och/eller en och samma utbildare kan ha flera utbildningar."
1273
1275
  }
1274
1276
  },
@@ -268,8 +268,8 @@ var getImageContact = function (item, width, height) {
268
268
  var _a, _b;
269
269
  if (width === void 0) { width = 400; }
270
270
  if (height === void 0) { height = 400; }
271
- var entity = item.entity || item;
272
- return entity.images && entity.images[0] && ((_a = entity.images[0]) === null || _a === void 0 ? void 0 : _a.url)
271
+ var entity = (item === null || item === void 0 ? void 0 : item.entity) || item;
272
+ return (entity === null || entity === void 0 ? void 0 : entity.images) && entity.images[0] && ((_a = entity.images[0]) === null || _a === void 0 ? void 0 : _a.url)
273
273
  ? "".concat((_b = entity.images[0]) === null || _b === void 0 ? void 0 : _b.url, "?d=").concat(width, "x").concat(height)
274
274
  : "/images/avatar-user.png";
275
275
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.163",
3
+ "version": "0.0.165",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1261,6 +1261,7 @@
1261
1261
  "numberEducatorYrkeshogskolor": "Antal yrkeshögskolor",
1262
1262
  "numberOfEducators": "Antal utbildare",
1263
1263
  "educatorPerType": "Utbildare per typ",
1264
+ "employerPerType": "Arbetsgivare per typ",
1264
1265
  "certifiedRegionalVoCollege": "Certifierade regionala college",
1265
1266
  "certifiedLocalVoCollege": "Certifierade lokala college",
1266
1267
  "certifiedEducators": "Certifierade utbildare",
@@ -1269,6 +1270,7 @@
1269
1270
  },
1270
1271
  "messages": {
1271
1272
  "educatorCanAppearMultipleTimes": "Notera att en och samma utbildare kan förekomma flera gånger, under olika rubriker. T ex kan en utbildare vara både 'Kommunal Gymnasium' och 'Kommunal vuxenutbildning'.",
1273
+ "employerCanAppearMultipleTimes": "Notera att en och samma arbetsgivare kan förekomma flera gånger, under olika rubriker. VoAdmin tillåter exempelvis att en och samma arbetsgivare ställs in som både 'Kommun' och 'Privat'.",
1272
1274
  "sumOfEducationsCanBeDifferentFromNumberOfEducators": "Notera att summan av utbildningar kan bli annorlunda från 'Antal utbildare', eftersom vissa utbildare kan sakna certfierade utbildningar under vald period och/eller en och samma utbildare kan ha flera utbildningar."
1273
1275
  }
1274
1276
  },
@@ -227,8 +227,8 @@ export const shortenText = (
227
227
  };
228
228
 
229
229
  export const getImageContact = (item: any, width = 400, height = 400) => {
230
- let entity = item.entity || item;
231
- return entity.images && entity.images[0] && entity.images[0]?.url
230
+ let entity = item?.entity || item;
231
+ return entity?.images && entity.images[0] && entity.images[0]?.url
232
232
  ? `${entity.images[0]?.url}?d=${width}x${height}`
233
233
  : "/images/avatar-user.png";
234
234
  };