@salesforcedevs/dx-components 1.3.91-version-picker-alpha → 1.3.91

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.91-version-picker-alpha",
3
+ "version": "1.3.91",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -8,7 +8,7 @@
8
8
  part="container"
9
9
  >
10
10
  <div class={textContainerClassName}>
11
- <h3 class="dx-text-display-4">{title}</h3>
11
+ <h3 class="dx-text-display-4" lwc:dom="manual"></h3>
12
12
  <p>{body}</p>
13
13
  <div class="cta">
14
14
  <dx-button if:true={hasLargeButton} size="large">
@@ -13,6 +13,7 @@ import { track } from "dxUtils/analytics";
13
13
 
14
14
  export default class CardNews extends LightningElement {
15
15
  @api backgroundColor?: string = "indigo-vibrant-40";
16
+ @api title!: string;
16
17
  @api body!: string;
17
18
  @api buttonText?: string = "";
18
19
  @api buttonType!: CardNewsButtonType;
@@ -26,9 +27,12 @@ export default class CardNews extends LightningElement {
26
27
  @api imgPlacement?: CardNewsImagePlacement = "top";
27
28
  @api imgVerticalAlign?: CardNewsImageVerticalAlignment | null = null;
28
29
  @api target?: string | null = null;
29
- @api title!: string;
30
30
  @api textContainerWidth?: CardNewsTextContainerSize = "small";
31
31
 
32
+ renderedCallback() {
33
+ this.template.querySelector("h3").innerHTML = this.title;
34
+ }
35
+
32
36
  private get style(): string {
33
37
  const background = `background-color: ${toDxColor(
34
38
  this.backgroundColor
@@ -17,8 +17,10 @@ export const restoreScroll = () => {
17
17
  if (scrollUnlocked) {
18
18
  return;
19
19
  }
20
- document.body.scrollTop = document.documentElement.scrollTop =
21
- window.history.state?.scroll?.value;
20
+ const value = window.history.state?.scroll?.value;
21
+ if (value) {
22
+ document.body.scrollTop = document.documentElement.scrollTop = value;
23
+ }
22
24
  };
23
25
 
24
26
  export default class ScrollManager extends LightningElement {
@@ -32,10 +32,6 @@
32
32
  <h2 class="dx-text-display-6 header-title">{header}</h2>
33
33
  <slot name="header"></slot>
34
34
  </div>
35
- <div class="mobile-header" if:true={mobile}>
36
- <h2 class="dx-text-display-6">{header}</h2>
37
- <slot name="header"></slot>
38
- </div>
39
35
  <div class="search">
40
36
  <dx-sidebar-search
41
37
  onchange={onSearchChange}
@@ -34,10 +34,6 @@
34
34
  <h2 class="dx-text-display-6 header-title">{header}</h2>
35
35
  <slot name="header"></slot>
36
36
  </div>
37
- <div class="mobile-header" if:true={mobile}>
38
- <h2 class="dx-text-display-6">{header}</h2>
39
- <slot name="header"></slot>
40
- </div>
41
37
  <div class="search">
42
38
  <dx-input
43
39
  class="search-box"
@@ -24,13 +24,6 @@ dx-tree:not(:last-child) {
24
24
  margin-bottom: 12px;
25
25
  }
26
26
 
27
- .mobile-header {
28
- box-sizing: content-box;
29
- display: flex;
30
- line-height: var(--dx-g-spacing-xl);
31
- margin-bottom: 12px;
32
- }
33
-
34
27
  .padding-horizontal {
35
28
  padding-left: var(--dx-g-spacing-md);
36
29
  padding-right: var(--dx-g-spacing-md);
@@ -114,10 +107,6 @@ dx-tree:not(:last-child) {
114
107
  background-color: #dddbda;
115
108
  }
116
109
 
117
- .container.container-mobile:not(.collapsed) .mobile-header {
118
- background-color: #F3F3F3;
119
- }
120
-
121
110
  .container.container-mobile .header-title {
122
111
  color: var(--dx-g-gray-10);
123
112
  font-family: var(--dx-g-font-sans);