@uxland/primary-shell 5.6.13 → 5.6.15

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
@@ -15483,12 +15483,15 @@ ActivityHistoryTimeline = __decorateClass$r([
15483
15483
  function nn(te, J, X) {
15484
15484
  return te ? J(te) : X == null ? void 0 : X(te);
15485
15485
  }
15486
- const template$j = (te) => !te.areCustomFiltersActive && !te.areCommonFiltersActive && !te.areDiagnosticFiltersActive && !te.areUpFiltersActive && te.searchString.length < 1 ? D$1 : ke$1`
15486
+ const template$j = (te) => {
15487
+ const J = te.areCustomFiltersActive || te.areCommonFiltersActive || te.areDiagnosticFiltersActive || te.areUpFiltersActive;
15488
+ return !J && te.searchString.length < 1 ? D$1 : ke$1`
15487
15489
  <div class="active-filters-header">
15488
- <active-filters-badges></active-filters-badges>
15490
+ ${nn(J, () => ke$1`<active-filters-badges></active-filters-badges>`)}
15489
15491
  ${nn(te.searchString.length > 1, () => ke$1`<activity-history-search-results searchQuery=${te.searchString}></activity-history-search-results>`)}
15490
15492
  </div>
15491
- `, styles$h = ".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";
15493
+ `;
15494
+ }, styles$h = ".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";
15492
15495
  var __defProp$q = Object.defineProperty, __getOwnPropDesc$f = Object.getOwnPropertyDescriptor, __decorateClass$q = (te, J, X, re) => {
15493
15496
  for (var ne = re > 1 ? void 0 : re ? __getOwnPropDesc$f(J, X) : J, oe = te.length - 1, de; oe >= 0; oe--)
15494
15497
  (de = te[oe]) && (ne = (re ? de(J, X, ne) : de(ne)) || ne);
@@ -16294,7 +16297,7 @@ const bootstrapActivityHistoryItem = (te) => {
16294
16297
  <dss-action-menu position="bottom-start">
16295
16298
  <dss-action-menu-item lefticon="view_timeline" label=${translate("actions.cronogram")} @click=${te._raiseEcapCronogramEvent}></dss-action-menu-item>
16296
16299
  <!-- <dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => te.api.broker.send(new ExportPdf())}></dss-action-menu-item> -->
16297
- <dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item>
16300
+ <!-- <dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item> -->
16298
16301
  </dss-action-menu>
16299
16302
  </div>
16300
16303
  </div>`}
@@ -16324,7 +16327,7 @@ const bootstrapActivityHistoryItem = (te) => {
16324
16327
  <dss-action-menu-item @click=${() => te.api.broker.send(new ExportPdf())} lefticon="file_download" label=${translate("actions.exportPdf")}></dss-action-menu-item>
16325
16328
  </dss-action-menu>
16326
16329
  </div> -->
16327
- <dss-button label="${translate("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button>
16330
+ <!-- <dss-button label="${translate("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button> -->
16328
16331
  <dss-button label="${translate("actions.cronogram")}" size="md" variant="primary" icon="view_timeline" @click=${te._raiseEcapCronogramEvent}></dss-button>
16329
16332
  </div>
16330
16333
  </div>
@@ -16337,7 +16340,7 @@ var __defProp$i = Object.defineProperty, __getOwnPropDesc$7 = Object.getOwnPrope
16337
16340
  };
16338
16341
  let ActivityHistoryMain = class extends PrimariaRegionHost(h$q) {
16339
16342
  constructor() {
16340
- super(...arguments), this.subscriptions = [], this.maximized = !1, this.searchQuery = "";
16343
+ super(...arguments), this.subscriptions = [], this._searchTimeout = null, this.maximized = !1, this.searchQuery = "";
16341
16344
  }
16342
16345
  render() {
16343
16346
  return ke$1`${template$b(this)}`;
@@ -16368,7 +16371,9 @@ let ActivityHistoryMain = class extends PrimariaRegionHost(h$q) {
16368
16371
  this.scrollToClosestDate(J);
16369
16372
  }
16370
16373
  _handleSearchChange(te) {
16371
- typeof te.detail == "string" && (this.searchQuery = te.detail, this.api.broker.send(new SearchActivityHistoryItems(this.searchQuery)));
16374
+ typeof te.detail == "string" && (this.searchQuery = te.detail, this._searchTimeout && clearTimeout(this._searchTimeout), this._searchTimeout = setTimeout(() => {
16375
+ this.api.broker.send(new SearchActivityHistoryItems(this.searchQuery));
16376
+ }, 300));
16372
16377
  }
16373
16378
  async _raiseEcapCronogramEvent() {
16374
16379
  const te = await this.api.broker.send("get_patient_cip");