@uxland/primary-shell 5.6.12 → 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.12",
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",
@@ -83,7 +83,7 @@
83
83
  .bottom-content-first {
84
84
  display: flex;
85
85
  flex-direction: column;
86
- gap: 4px;
86
+ gap: 22px;
87
87
  }
88
88
  }
89
89
  &[expanded] {
@@ -165,3 +165,12 @@
165
165
  .toggle-button {
166
166
  margin-bottom: 24px;
167
167
  }
168
+ @media (max-width: 1024px) {
169
+ .toggle-button {
170
+ display: none;
171
+ }
172
+ .content {
173
+ overflow-y: auto;
174
+ }
175
+ }
176
+
@@ -34,3 +34,26 @@
34
34
  }
35
35
  }
36
36
  }
37
+
38
+ @media (max-width: 1024px) {
39
+ :host {
40
+ min-height: 100vh;
41
+ }
42
+ .wrapper {
43
+ flex-direction: column;
44
+ #widgets-sidebar-region {
45
+ width: 100%;
46
+ border-left: none;
47
+ }
48
+ .content {
49
+ #header-widgets-region {
50
+ grid-template-columns: 1fr;
51
+ gap: 16px;
52
+ }
53
+ #content-widgets-region {
54
+ height: 70vh;
55
+ flex: none;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -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>