@uxland/primary-shell 5.4.1 → 5.4.3

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.
Files changed (19) hide show
  1. package/dist/index.js +17 -27
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +7 -7
  4. package/dist/index.umd.cjs.map +1 -1
  5. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/model.d.ts +1 -1
  6. package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/filter/utils.d.ts +1 -0
  7. package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +1 -0
  8. package/package.json +3 -3
  9. package/src/UI/internal-views/upper-nav-views.ts +9 -9
  10. package/src/internal-plugins/activity-history/activity-history-item/domain/model.ts +1 -1
  11. package/src/internal-plugins/activity-history/activity-history-item/domain/specs/diagnostics-filter-spec.test.ts +6 -6
  12. package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.test.ts +7 -7
  13. package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.ts +1 -1
  14. package/src/internal-plugins/activity-history/activity-history-item/domain/validation/is-valid-full-history-item.test.ts +7 -7
  15. package/src/internal-plugins/activity-history/activity-history-item/filter/UI/active-filters-badges/template.ts +2 -2
  16. package/src/internal-plugins/activity-history/activity-history-item/filter/utils.ts +8 -2
  17. package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +3 -5
  18. package/src/internal-plugins/activity-history/activity-history-item/list/group-history-items/group-history-items.test.ts +3 -3
  19. package/src/internal-plugins/activity-history/localization.ts +4 -7
package/dist/index.js CHANGED
@@ -11259,7 +11259,8 @@ const initializeLocalization = async (te) => {
11259
11259
  prescriptions: "Prescripcions"
11260
11260
  },
11261
11261
  chipHeader: {
11262
- selection: "Selecció:"
11262
+ selection: "Selecció:",
11263
+ without: "Sense"
11263
11264
  },
11264
11265
  error: {
11265
11266
  general: {
@@ -11579,7 +11580,7 @@ const activityHistoryFiltersSelector = (te) => te.activityHistoryFilters.filters
11579
11580
  return !1;
11580
11581
  const X = te.map((ne) => ne.codi).sort(), re = J.map((ne) => ne.codi).sort();
11581
11582
  return X.every((ne, oe) => ne === re[oe]);
11582
- }, hasValidDiagnostic = (te) => te != null && typeof te.codi == "string" && typeof te.cataleg == "string" && typeof te.description == "string", hasValidDiagnostics = (te) => te == null ? !0 : Array.isArray(te) && te.every(hasValidDiagnostic), isSameVisit = (te, J) => {
11583
+ }, hasValidDiagnostic = (te) => te != null && typeof te.codi == "string" && typeof te.cataleg == "string" && typeof te.descripcio == "string", hasValidDiagnostics = (te) => te == null ? !0 : Array.isArray(te) && te.every(hasValidDiagnostic), isSameVisit = (te, J) => {
11583
11584
  var oe, de, ce, he, ue, pe, fe, ge, me, ve, be, _e, we, Se, Ce, ye, Ae, Le;
11584
11585
  const X = ((oe = te.professional) == null ? void 0 : oe.id) === ((de = J.professional) == null ? void 0 : de.id) && ((he = (ce = te.professional) == null ? void 0 : ce.role) == null ? void 0 : he.id) === ((pe = (ue = J.professional) == null ? void 0 : ue.role) == null ? void 0 : pe.id) && ((ge = (fe = te.professional) == null ? void 0 : fe.speciality) == null ? void 0 : ge.id) === ((ve = (me = J.professional) == null ? void 0 : me.speciality) == null ? void 0 : ve.id), re = ((be = te.ep) == null ? void 0 : be.id) === ((_e = J.ep) == null ? void 0 : _e.id) && ((we = te.up) == null ? void 0 : we.id) === ((Se = J.up) == null ? void 0 : Se.id) && ((Ce = te.center) == null ? void 0 : Ce.id) === ((ye = J.center) == null ? void 0 : ye.id) && ((Ae = te.service) == null ? void 0 : Ae.id) === ((Le = J.service) == null ? void 0 : Le.id), ne = new Date(te.date).toDateString() === new Date(J.date).toDateString();
11585
11586
  return X && re && ne;
@@ -14522,7 +14523,7 @@ const hasItemDivider = (te, J) => {
14522
14523
  var ne, oe, de, ce;
14523
14524
  return ke$1`
14524
14525
  <div class="visit zIndex${te.historyGroups.length - re}"
14525
- data-date=${to(((ne = X == null ? void 0 : X.items[0]) == null ? void 0 : ne.date) || ((de = (oe = X.subGroups[0]) == null ? void 0 : oe.items[0]) == null ? void 0 : de.date))}>
14526
+ data-date=${to(((ne = X == null ? void 0 : X.items[0]) == null ? void 0 : ne.date) || ((de = (oe = X == null ? void 0 : X.subGroups[0]) == null ? void 0 : oe.items[0]) == null ? void 0 : de.date))}>
14526
14527
  ${visitHeaderTemplate(te, X.items[0] || ((ce = X.subGroups[0]) == null ? void 0 : ce.items[0]))}
14527
14528
  <div class="visit__items">
14528
14529
  ${Qt(
@@ -14594,12 +14595,10 @@ const hasItemDivider = (te, J) => {
14594
14595
  return re.push(te.highlighted(J.professional.name)), X && ((oe = (ne = J.professional) == null ? void 0 : ne.role) != null && oe.description) && re.push(te.highlighted(J.professional.role.description)), (de = J.up) != null && de.description && re.push(te.highlighted(J.up.description)), (he = (ce = J.professional) == null ? void 0 : ce.speciality) != null && he.description && re.push(te.highlighted(J.professional.speciality.description)), (ue = J.service) != null && ue.description && re.push(te.highlighted(J.service.description)), re.map((pe, fe) => ke$1`${pe}${fe < re.length - 1 ? " | " : ""}`);
14595
14596
  }, diagnosticHeaderTemplate = (te) => te && ke$1`
14596
14597
  <div class="diagnostics__header">
14597
- ${te.diagnostics.filter(
14598
- (J) => J.description != null && J.description.trim() !== ""
14599
- ).map(
14598
+ ${te.diagnostics.filter((J) => J.descripcio != null && J.descripcio.trim() !== "").map(
14600
14599
  (J) => {
14601
14600
  var X;
14602
- return ke$1`<dss-badge text=${(X = J.description) == null ? void 0 : X.toUpperCase()} state="info" size="sm" outlined></dss-badge>`;
14601
+ return ke$1`<dss-badge text=${(X = J.descripcio) == null ? void 0 : X.toUpperCase()} state="info" size="sm" outlined></dss-badge>`;
14603
14602
  }
14604
14603
  )}
14605
14604
  </div>
@@ -15807,9 +15806,9 @@ ActivityHistorySearchBar = __decorateClass$i([
15807
15806
  const formatShowFilterTitle = (te) => {
15808
15807
  const J = te.replace(/veure/gi, "").trim();
15809
15808
  return J.charAt(0).toUpperCase() + J.slice(1);
15810
- }, normalizeDeletedFilterBooleanValue = (te) => te === !0 ? translate("filters.deleted") : te, MAX_VISIBLE_CHIPS = 5, renderChip = (te, J, X, re) => ke$1`
15809
+ }, normalizeDeletedFilterBooleanValue = (te) => te === !0 ? translate("filters.deleted") : te, normalizeEmptyFilterValue = (te, J) => te === "" ? formatEmptyFilterValue(J) : te, formatEmptyFilterValue = (te) => `${translate("chipHeader.without")} ${te.toLowerCase()}`, MAX_VISIBLE_CHIPS = 5, renderChip = (te, J, X, re) => ke$1`
15811
15810
  <dss-chip
15812
- label=${X}
15811
+ label=${normalizeEmptyFilterValue(X, J.title)}
15813
15812
  size="sm"
15814
15813
  hasdelete
15815
15814
  selected
@@ -43997,8 +43996,7 @@ const useSharedUI = () => {
43997
43996
  {
43998
43997
  icon: "open_in_new",
43999
43998
  label: "ASSIR",
44000
- callbackFn: () => {
44001
- }
43999
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("NAVEGACIO_ASSIR")
44002
44000
  },
44003
44001
  {
44004
44002
  icon: "open_in_new",
@@ -44054,8 +44052,7 @@ const useSharedUI = () => {
44054
44052
  label: "Seguiment analític",
44055
44053
  type: "item",
44056
44054
  sortHint: "0060",
44057
- callbackFn: () => {
44058
- }
44055
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("SEGUIMENT_ANALITIC")
44059
44056
  },
44060
44057
  {
44061
44058
  id: "results-reports",
@@ -44067,8 +44064,7 @@ const useSharedUI = () => {
44067
44064
  {
44068
44065
  icon: "open_in_new",
44069
44066
  label: "Resultats i informes",
44070
- callbackFn: () => {
44071
- }
44067
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("RESULTAT_INFORMES")
44072
44068
  },
44073
44069
  {
44074
44070
  icon: "open_in_new",
@@ -44080,8 +44076,7 @@ const useSharedUI = () => {
44080
44076
  {
44081
44077
  icon: "open_in_new",
44082
44078
  label: "Informes clínics",
44083
- callbackFn: () => {
44084
- }
44079
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("INFORME_CLINIC_NET")
44085
44080
  }
44086
44081
  ]
44087
44082
  },
@@ -44104,26 +44099,22 @@ const useSharedUI = () => {
44104
44099
  {
44105
44100
  icon: "open_in_new",
44106
44101
  label: "Prescripció",
44107
- callbackFn: () => {
44108
- }
44102
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("PRESCIPCIO_ACTIVA")
44109
44103
  },
44110
44104
  {
44111
44105
  icon: "open_in_new",
44112
44106
  label: "Ordres de tractament",
44113
- callbackFn: () => {
44114
- }
44107
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("ORDRE_TRACTAMENT")
44115
44108
  },
44116
44109
  {
44117
44110
  icon: "open_in_new",
44118
44111
  label: "Dispensació material sanitari",
44119
- callbackFn: () => {
44120
- }
44112
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("DISPENSACIO_MATERIAL_PACIENT")
44121
44113
  },
44122
44114
  {
44123
44115
  icon: "open_in_new",
44124
44116
  label: "Prescripció social",
44125
- callbackFn: () => {
44126
- }
44117
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("PRESCIPCIO_SOCIAL")
44127
44118
  }
44128
44119
  ]
44129
44120
  },
@@ -44133,8 +44124,7 @@ const useSharedUI = () => {
44133
44124
  label: "Immunitzacions",
44134
44125
  type: "item",
44135
44126
  sortHint: "0100",
44136
- callbackFn: () => {
44137
- }
44127
+ callbackFn: () => navigateToEcapWithoutClosingWithCip("IMMUNITZACIONS")
44138
44128
  },
44139
44129
  {
44140
44130
  id: "it",