@salesforcedevs/dx-components 1.40.0-docs-feedback → 1.40.1-ver-picker-1
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
|
@@ -25,9 +25,14 @@
|
|
|
25
25
|
display: flex;
|
|
26
26
|
font-family: var(--dx-g-font-sans);
|
|
27
27
|
width: 100%;
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
/* Opt-in hooks; defaults preserve today's look. */
|
|
30
|
+
padding: var(--dx-c-dropdown-option-padding, var(--dx-g-spacing-sm));
|
|
29
31
|
font-size: var(--dx-g-text-sm);
|
|
30
|
-
border-radius: var(
|
|
32
|
+
border-radius: var(
|
|
33
|
+
--dx-c-dropdown-option-border-radius,
|
|
34
|
+
var(--dx-g-spacing-xs)
|
|
35
|
+
);
|
|
31
36
|
transition: var(--dx-g-transition-hue-1x);
|
|
32
37
|
align-items: center;
|
|
33
38
|
outline: none !important;
|
|
@@ -71,6 +76,13 @@
|
|
|
71
76
|
align-items: center;
|
|
72
77
|
font-weight: var(--dx-c-dropdown-option-font-weight, var(--dx-g-font-bold));
|
|
73
78
|
font-size: var(--dx-c-dropdown-option-font-size, var(--dx-g-text-base));
|
|
79
|
+
|
|
80
|
+
/* Opt-in truncation: consumers set --dx-c-dropdown-option-white-space:
|
|
81
|
+
nowrap to truncate labels with an ellipsis instead of wrapping.
|
|
82
|
+
Defaults preserve today's wrapping behavior. */
|
|
83
|
+
white-space: var(--dx-c-dropdown-option-white-space, normal);
|
|
84
|
+
overflow: var(--dx-c-dropdown-option-overflow, visible);
|
|
85
|
+
text-overflow: var(--dx-c-dropdown-option-text-overflow, clip);
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
.option-indented .option_label {
|
|
@@ -49,16 +49,6 @@ export default class TreeItem extends LightningElement {
|
|
|
49
49
|
return this.hasChildren || this.isChildrenLoading;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
private get isContentlessParent(): boolean {
|
|
53
|
-
const href = this._treeNode?.link?.href;
|
|
54
|
-
return (
|
|
55
|
-
this.isParent &&
|
|
56
|
-
!!href &&
|
|
57
|
-
!this.isExternalLink &&
|
|
58
|
-
href !== this._treeNode.name
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
52
|
private get showChildren(): boolean {
|
|
63
53
|
return this.isExpanded && this.hasChildren;
|
|
64
54
|
}
|
|
@@ -150,15 +140,6 @@ export default class TreeItem extends LightningElement {
|
|
|
150
140
|
private onLinkClick(event: Event): void {
|
|
151
141
|
this.preventDefaultLinkBehavior(event);
|
|
152
142
|
|
|
153
|
-
/**
|
|
154
|
-
* For Docs content-type only redirect, content-less parents to their first content child.
|
|
155
|
-
* Let navigation handle selection and ancestor expansion to avoid flicker.
|
|
156
|
-
*/
|
|
157
|
-
if (this.isContentlessParent) {
|
|
158
|
-
this.sendGtm(event);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
143
|
if (this.isParent) {
|
|
163
144
|
const isSelectAction = true;
|
|
164
145
|
this.doExpand(isSelectAction);
|