@salesforcedevs/dx-components 1.3.108 → 1.3.111

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.3.108",
3
+ "version": "1.3.111",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -40,5 +40,5 @@
40
40
  "eventsourcemock": "^2.0.0",
41
41
  "luxon": "^3.1.0"
42
42
  },
43
- "gitHead": "2305f4c1cc75decc2dec5aadea4dac96a1c22cdc"
43
+ "gitHead": "5699681cb2ab601bf4cff067b8be19fbaa18ee65"
44
44
  }
@@ -86,6 +86,7 @@ export default class Input extends LightningElement {
86
86
  private input: HTMLInputElement | null = null;
87
87
  private _value: string | null = null;
88
88
  private _loading: boolean = false;
89
+ private isMac: boolean = false;
89
90
 
90
91
  private get showClearButton(): boolean {
91
92
  return this.clearable && !!this.value;
@@ -139,7 +140,7 @@ export default class Input extends LightningElement {
139
140
  }
140
141
 
141
142
  private get commandKey() {
142
- return isMac() ? "command" : "control";
143
+ return this.isMac ? "command" : "control";
143
144
  }
144
145
 
145
146
  private get shortcutImgSrc() {
@@ -154,6 +155,11 @@ export default class Input extends LightningElement {
154
155
  return this.required && (!this.value || !this.value.trim());
155
156
  }
156
157
 
158
+ constructor() {
159
+ super();
160
+ this.isMac = isMac();
161
+ }
162
+
157
163
  connectedCallback() {
158
164
  window.addEventListener("keydown", this.onWindowKeydown);
159
165
  }
@@ -238,7 +244,8 @@ export default class Input extends LightningElement {
238
244
  }
239
245
 
240
246
  private onWindowKeydown = (e: KeyboardEvent) => {
241
- if (this.shortcutKey && e.metaKey && e.key === this.shortcutKey) {
247
+ const shortcutPressed = this.isMac ? e.metaKey : e.ctrlKey;
248
+ if (this.shortcutKey && shortcutPressed && e.key === this.shortcutKey) {
242
249
  e.preventDefault();
243
250
  this.focus();
244
251
  }
@@ -36,10 +36,6 @@ header.state-show-mobile-nav .header_l2_group-nav_overflow {
36
36
 
37
37
  .subtitle {
38
38
  color: var(--dx-g-blue-vibrant-20);
39
- display: inline-block;
40
- white-space: nowrap;
41
- overflow: hidden;
42
- text-overflow: ellipsis;
43
39
  }
44
40
 
45
41
  /* First row */