@uxland/primary-shell 5.6.13 → 5.6.14

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.
@@ -6,6 +6,7 @@ export declare class ActivityHistoryMain extends ActivityHistoryMain_base {
6
6
  render(): import('lit').TemplateResult<1>;
7
7
  static styles: import('lit').CSSResult;
8
8
  subscriptions: BrokerDisposableHandler[];
9
+ private _searchTimeout;
9
10
  connectedCallback(): void;
10
11
  disconnectedCallback(): void;
11
12
  maximized: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "5.6.13",
3
+ "version": "5.6.14",
4
4
  "description": "Primaria Shell",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/harmonix/tree/app#readme",
@@ -26,6 +26,7 @@ export class ActivityHistoryMain extends PrimariaRegionHost(LitElement) {
26
26
  `;
27
27
 
28
28
  subscriptions: BrokerDisposableHandler[] = [];
29
+ private _searchTimeout: number | null = null;
29
30
 
30
31
  connectedCallback() {
31
32
  super.connectedCallback();
@@ -82,7 +83,14 @@ export class ActivityHistoryMain extends PrimariaRegionHost(LitElement) {
82
83
  _handleSearchChange(event: CustomEvent) {
83
84
  if (typeof event.detail !== "string") return;
84
85
  this.searchQuery = event.detail;
85
- this.api.broker.send(new SearchActivityHistoryItems(this.searchQuery));
86
+
87
+ if (this._searchTimeout) {
88
+ clearTimeout(this._searchTimeout);
89
+ }
90
+
91
+ this._searchTimeout = setTimeout(() => {
92
+ this.api.broker.send(new SearchActivityHistoryItems(this.searchQuery));
93
+ }, 300);
86
94
  }
87
95
 
88
96
  async _raiseEcapCronogramEvent() {
@@ -25,7 +25,7 @@ export const template = (props: ActivityHistoryMain) =>
25
25
  <dss-action-menu position="bottom-start">
26
26
  <dss-action-menu-item lefticon="view_timeline" label=${translate("actions.cronogram")} @click=${props._raiseEcapCronogramEvent}></dss-action-menu-item>
27
27
  <!-- <dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => props.api.broker.send(new ExportPdf())}></dss-action-menu-item> -->
28
- <dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item>
28
+ <!-- <dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item> -->
29
29
  </dss-action-menu>
30
30
  </div>
31
31
  </div>`
@@ -58,7 +58,7 @@ export const headerMaximizedTemplate = (props: ActivityHistoryMain) => html`
58
58
  <dss-action-menu-item @click=${() => props.api.broker.send(new ExportPdf())} lefticon="file_download" label=${translate("actions.exportPdf")}></dss-action-menu-item>
59
59
  </dss-action-menu>
60
60
  </div> -->
61
- <dss-button label="${translate("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button>
61
+ <!-- <dss-button label="${translate("actions.entryLegend")}" size="md" variant="secondary" icon="info"></dss-button> -->
62
62
  <dss-button label="${translate("actions.cronogram")}" size="md" variant="primary" icon="view_timeline" @click=${props._raiseEcapCronogramEvent}></dss-button>
63
63
  </div>
64
64
  </div>