@salesforcedevs/dx-components 1.3.31 → 1.3.33

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.31",
3
+ "version": "1.3.33",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -38,5 +38,5 @@
38
38
  "eventsourcemock": "^2.0.0",
39
39
  "luxon": "^3.1.0"
40
40
  },
41
- "gitHead": "ba2b0b5eae88123861d953a9c1ebc80a5b3bbe22"
41
+ "gitHead": "bc1e71ba19a01c9479ba93b8f827cc152c359c33"
42
42
  }
@@ -6,7 +6,7 @@
6
6
  target={option.link.target}
7
7
  key={option.id}
8
8
  role="menuitem"
9
- tabindex="-1"
9
+ tabindex="0"
10
10
  data-index={indexPosition}
11
11
  onclick={onClick}
12
12
  >
@@ -35,7 +35,7 @@
35
35
  if:false={option.link}
36
36
  class={className}
37
37
  role="menuitem"
38
- tabindex="-1"
38
+ tabindex="0"
39
39
  data-index={indexPosition}
40
40
  onclick={onClick}
41
41
  >
@@ -37,7 +37,6 @@ img {
37
37
  }
38
38
 
39
39
  img.desktop {
40
- height: fit-content;
41
40
  min-width: 876px;
42
41
  margin-left: var(--dx-g-spacing-lg);
43
42
  }
@@ -88,3 +87,16 @@ dx-button {
88
87
  display: block;
89
88
  }
90
89
  }
90
+
91
+ @media screen and (max-width: 768px) {
92
+ .body,
93
+ .subtitle {
94
+ font-size: var(--dx-g-text-base);
95
+ line-height: var(--dx-g-text-xl);
96
+ }
97
+
98
+ .heading {
99
+ font-size: var(--dx-g-text-3xl);
100
+ line-height: var(--dx-g-text-4xl);
101
+ }
102
+ }
@@ -3,8 +3,10 @@
3
3
  <div class="text-container" style={style}>
4
4
  <h1 class="heading dx-text-heading-2">{title}</h1>
5
5
  <span class="body dx-text-body-1">{body}</span>
6
- <span class="subtitle dx-text-heading-4b">{subtitle}</span>
7
- <dx-button href={ctaHref} target={ctaTarget} size="hero">
6
+ <span if:true={subtitle} class="subtitle dx-text-heading-4b">
7
+ {subtitle}
8
+ </span>
9
+ <dx-button href={ctaHref} target={ctaTarget} size="large">
8
10
  {ctaLabel}
9
11
  </dx-button>
10
12
  </div>
@@ -3,7 +3,7 @@ import { track } from "dxUtils/analytics";
3
3
 
4
4
  export default class MainContentHeader extends LightningElement {
5
5
  @api title!: string;
6
- @api subtitle!: string;
6
+ @api subtitle?: string;
7
7
  @api body!: string;
8
8
  @api ctaLabel!: string;
9
9
  @api ctaHref!: string;
@@ -12,6 +12,10 @@ dx-empty-state {
12
12
  padding-bottom: var(--dx-g-spacing-md);
13
13
  }
14
14
 
15
+ .sidebar-content-tree {
16
+ padding: var(--dx-g-spacing-xs);
17
+ }
18
+
15
19
  .loading-skeleton {
16
20
  margin-top: var(--dx-g-spacing-md);
17
21
  }
@@ -88,6 +88,7 @@
88
88
  tree-root={tree.tree}
89
89
  onselect={onSelect}
90
90
  value={value}
91
+ onfocus={onItemsFocused}
91
92
  onselecteditemrendered={onSelectedItemRendered}
92
93
  ></dx-tree>
93
94
  </div>
@@ -257,4 +257,10 @@ export default class Sidebar extends SidebarBase {
257
257
  node.children.forEach((child) => this.assignValueToLabel(child));
258
258
  }
259
259
  }
260
+
261
+ private onItemsFocused(): void {
262
+ this.template
263
+ .querySelector("dx-sidebar-search")
264
+ ?.requestOpenDropdown(false);
265
+ }
260
266
  }
@@ -78,6 +78,11 @@ export default class SidebarSearch extends LightningElement {
78
78
  }
79
79
  }
80
80
 
81
+ @api
82
+ requestOpenDropdown(value: boolean) {
83
+ this.dropdownRequestedOpen = value;
84
+ }
85
+
81
86
  private _coveoAdvancedQueryConfig!: { [key: string]: any };
82
87
  private dropdownRequestedOpen: boolean = false;
83
88
  private recentSearches: Option[] = [];
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a href={href} target={target} onclick={onLinkClick}>
2
+ <a href={href} target={target} onclick={onLinkClick} tabindex="-1">
3
3
  <dx-tree-tile
4
4
  href={href}
5
5
  is-root={isRoot}
@@ -18,7 +18,7 @@
18
18
  src="/assets/svg/sidebar-item-loading.svg"
19
19
  alt="childrenLoading"
20
20
  />
21
- <template if:true={showChildren}>
21
+ <template if:true={showChildren} tabindex="0">
22
22
  <template for:each={treeNode.children} for:item="child">
23
23
  <dx-tree-item
24
24
  key={child.key}