@uxland/primary-shell 5.6.6 → 5.6.7

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/index.js CHANGED
@@ -8936,7 +8936,7 @@ const useLocalization = async (te) => {
8936
8936
  speciality: "Àmbit treball"
8937
8937
  },
8938
8938
  busyManager: {
8939
- title: "Tasques pendents a desar:"
8939
+ title: "Tasques pendents:"
8940
8940
  },
8941
8941
  pdfManager: {
8942
8942
  uploaded: "Document disponible al visor de resultats",
@@ -9469,13 +9469,20 @@ class PdfViewerManager {
9469
9469
  registerPdfViewerNavItem();
9470
9470
  }
9471
9471
  }
9472
- const createPdfViewerManager = (te, J) => new PdfViewerManager(te, J), styles$l = ".container{display:flex;flex-direction:column;gap:4px;align-items:center}.title{font-size:15px;line-height:24px;font-weight:600;color:var(--color-red-600)}.list{display:flex;flex-direction:column;gap:8px}", template$n = (te) => {
9472
+ const createPdfViewerManager = (te, J) => new PdfViewerManager(te, J), styles$l = ".container{display:flex;flex-direction:column;gap:4px;align-items:center}.title{font-size:15px;line-height:24px;font-weight:600;color:var(--color-red-600)}.list{display:flex;flex-direction:column;gap:8px}.plugin-busy-item{text-align:center;border:var(--dss-border-width-sm) solid var(--color-neutral-100);border-radius:var(--dss-radius-lg);padding:var(--dss-spacing-md)}", template$n = (te) => {
9473
9473
  var J, X;
9474
9474
  return ke$1`
9475
9475
  <div class="container">
9476
9476
  <div class="title">${translate$1("busyManager.title")}</div>
9477
9477
  <div class="list">
9478
- ${(X = (J = te.data) == null ? void 0 : J.busyTasks) == null ? void 0 : X.map((re) => ke$1`<div class="plugin-busy-item">${re.taskDescription}</div>`)}
9478
+ ${(X = (J = te.data) == null ? void 0 : J.busyTasks) == null ? void 0 : X.map(
9479
+ (re) => ke$1`
9480
+ <div class="plugin-busy-item">
9481
+ <dss-typography tag="div" variant="body-3" fontweight="regular">
9482
+ ${re.taskDescription}
9483
+ </dss-typography>
9484
+ </div>`
9485
+ )}
9479
9486
  </div>
9480
9487
  </div>
9481
9488
  `;
@@ -9493,7 +9500,7 @@ class PluginBusyManagerImpl {
9493
9500
  this.broker = J, this.busyPluginTasks = [], this.busyQuickActionTasks = [], customElements.get("plugin-busy-list") || t$k("plugin-busy-list")(PluginBusyList);
9494
9501
  }
9495
9502
  addBusyPluginTask(J) {
9496
- this.busyPluginTasks.push(J);
9503
+ this.busyPluginTasks.some((re) => re.taskId === J.taskId) || this.busyPluginTasks.push(J);
9497
9504
  }
9498
9505
  addBusyQuickActionTask(J) {
9499
9506
  this.busyQuickActionTasks.findIndex((re) => re.taskId === J.taskId) > -1 || (this.busyQuickActionTasks.push(J), this.emitQuickActionBusyChanged());
@@ -14619,7 +14626,7 @@ const template$k = (te) => {
14619
14626
  return ke$1`
14620
14627
  <div class="visit zIndex${te.historyGroups.length - re}"
14621
14628
  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))}>
14622
- ${visitHeaderTemplate(te, X.items[0] || ((ce = X.subGroups[0]) == null ? void 0 : ce.items[0]))}
14629
+ ${visitHeaderTemplate(te, (X == null ? void 0 : X.items[0]) || ((ce = X == null ? void 0 : X.subGroups[0]) == null ? void 0 : ce.items[0]))}
14623
14630
  <div class="visit__items">
14624
14631
  ${Qt(
14625
14632
  mergeHistoryItemsAndSubgroups(X),
@@ -14630,7 +14637,7 @@ const template$k = (te) => {
14630
14637
  return ke$1`
14631
14638
  <div
14632
14639
  class="item"
14633
- ?has-divider=${hasItemDivider(pe, X.items)}
14640
+ ?has-divider=${hasItemDivider(pe, X == null ? void 0 : X.items)}
14634
14641
  >
14635
14642
  ${pe.component}
14636
14643
  </div>
@@ -14639,14 +14646,14 @@ const template$k = (te) => {
14639
14646
  const ue = he.subGroup;
14640
14647
  return ke$1`
14641
14648
  <div class="diagnostics">
14642
- ${diagnosticHeaderTemplate(ue.items[0])}
14649
+ ${diagnosticHeaderTemplate(ue == null ? void 0 : ue.items[0])}
14643
14650
  <div class="diagnostics__items">
14644
14651
  ${Qt(
14645
- ue.items,
14652
+ ue == null ? void 0 : ue.items,
14646
14653
  (pe) => pe.id,
14647
14654
  (pe) => ke$1`
14648
14655
  <div class="item"
14649
- ?has-divider=${hasItemDivider(pe, ue.items)}>
14656
+ ?has-divider=${hasItemDivider(pe, ue == null ? void 0 : ue.items)}>
14650
14657
  ${pe.component}
14651
14658
  </div>
14652
14659
  `
@@ -16048,7 +16055,8 @@ ActivityHistorySearchBar = __decorateClass$l([
16048
16055
  t$k("activity-history-search-bar")
16049
16056
  ], ActivityHistorySearchBar);
16050
16057
  const styles$b = ":host{display:flex;justify-content:space-between}.filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.clean-filters{display:flex}.clean-filters .separator{padding:0 8px}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}", formatShowFilterTitle = (te) => {
16051
- const J = te.replace(/veure/gi, "").trim();
16058
+ var X;
16059
+ const J = (X = te.replace(/veure/gi, "")) == null ? void 0 : X.trim();
16052
16060
  return J.charAt(0).toUpperCase() + J.slice(1);
16053
16061
  }, 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`
16054
16062
  <dss-chip
@@ -16312,9 +16320,9 @@ const bootstrapActivityHistoryItem = (te) => {
16312
16320
  <div class="header__maximized__right">
16313
16321
  <div>
16314
16322
  <dss-button variant="subtle" size="md" label="${translate("actions.moreOptions")}" icon="more_horiz" iconposition="left"></dss-button>
16315
- <dss-action-menu position="bottom-start">
16323
+ <!-- <dss-action-menu position="bottom-start">
16316
16324
  <dss-action-menu-item @click=${() => te.api.broker.send(new ExportPdf())} lefticon="file_download" label=${translate("actions.exportPdf")}></dss-action-menu-item>
16317
- </dss-action-menu>
16325
+ </dss-action-menu> -->
16318
16326
  </div>
16319
16327
  <dss-button label="${translate("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button>
16320
16328
  <dss-button label="${translate("actions.cronogram")}" size="md" variant="primary" icon="view_timeline" @click=${te._raiseEcapCronogramEvent}></dss-button>