@salesforcedevs/dx-components 0.54.2 → 0.54.7-alpha
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/lwc.config.json +19 -19
- package/package.json +2 -4
- package/src/modules/dx/banner/banner.css +3 -3
- package/src/modules/dx/breadcrumbs/breadcrumbs.css +2 -2
- package/src/modules/dx/breadcrumbs/breadcrumbs.ts +27 -26
- package/src/modules/dx/button/button.css +10 -1
- package/src/modules/dx/button/button.ts +1 -1
- package/src/modules/dx/cardBlogPost/cardBlogPost.css +1 -1
- package/src/modules/dx/cardCallout/cardCallout.css +3 -3
- package/src/modules/dx/cardCallout/cardCallout.ts +2 -2
- package/src/modules/dx/cardContent/cardContent.css +3 -3
- package/src/modules/dx/cardContent/cardContent.ts +2 -2
- package/src/modules/dx/cardDemo/cardDemo.css +1 -1
- package/src/modules/dx/cardDocs/cardDocs.css +3 -3
- package/src/modules/dx/cardDocs/cardDocs.ts +1 -1
- package/src/modules/dx/cardEvent/cardEvent.css +3 -3
- package/src/modules/dx/cardExpanded/cardExpanded.css +1 -1
- package/src/modules/dx/cardExpanded/cardExpanded.ts +1 -1
- package/src/modules/dx/cardMinimal/cardMinimal.css +2 -2
- package/src/modules/dx/cardMinimal/cardMinimal.ts +1 -1
- package/src/modules/dx/cardNews/cardNews.css +3 -3
- package/src/modules/dx/cardNews/cardNews.ts +2 -2
- package/src/modules/dx/cardPodcastEpisode/cardPodcastEpisode.css +3 -3
- package/src/modules/dx/cardSmall/cardSmall.css +3 -3
- package/src/modules/dx/cardSmall/cardSmall.ts +1 -1
- package/src/modules/dx/cardTitle/cardTitle.css +2 -2
- package/src/modules/dx/cardTrailheadModule/cardTrailheadModule.css +1 -1
- package/src/modules/dx/cardTrial/cardTrial.css +3 -3
- package/src/modules/dx/cardTrial/cardTrial.ts +1 -1
- package/src/modules/dx/cardVideoPreview/cardVideoPreview.css +1 -1
- package/src/modules/dx/checkbox/checkbox.css +2 -2
- package/src/modules/dx/checkboxGroup/checkboxGroup.css +1 -1
- package/src/modules/dx/checkboxGroup/checkboxGroup.ts +1 -1
- package/src/modules/dx/codeBlock/codeBlock.css +2 -2
- package/src/modules/dx/codeBlock/codeBlock.ts +2 -2
- package/src/modules/dx/dropdown/dropdown.css +1 -1
- package/src/modules/dx/dropdown/dropdown.ts +4 -4
- package/src/modules/dx/dropdownOption/dropdownOption.css +1 -1
- package/src/modules/dx/dropdownOption/dropdownOption.ts +3 -3
- package/src/modules/dx/emptyState/emptyState.css +2 -2
- package/src/modules/dx/feature/feature.css +2 -2
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.css +4 -4
- package/src/modules/dx/featuredContentHeader/featuredContentHeader.ts +2 -2
- package/src/modules/dx/featuresList/featuresList.css +2 -2
- package/src/modules/dx/featuresList/featuresList.ts +1 -1
- package/src/modules/dx/filterMenu/filterMenu.css +1 -1
- package/src/modules/dx/footer/footer.css +2 -2
- package/src/modules/dx/footer/footer.ts +4 -4
- package/src/modules/dx/footerOption/footerOption.ts +1 -1
- package/src/modules/dx/groupText/groupText.css +2 -2
- package/src/modules/dx/groupText/groupText.ts +3 -3
- package/src/modules/dx/header/header.css +1 -1
- package/src/modules/dx/header/header.ts +4 -4
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.css +1 -1
- package/src/modules/dx/headerMobileNavMenu/headerMobileNavMenu.ts +5 -5
- package/src/modules/dx/headerMobileNavMenuOption/headerMobileNavMenuOption.ts +1 -1
- package/src/modules/dx/headerNav/headerNav.css +1 -1
- package/src/modules/dx/headerNav/headerNav.ts +5 -5
- package/src/modules/dx/headerSearch/headerSearch.css +1 -1
- package/src/modules/dx/headerSearch/headerSearch.ts +3 -3
- package/src/modules/dx/helmet/helmet.css +2 -2
- package/src/modules/dx/hr/hr.css +2 -2
- package/src/modules/dx/icon/icon.css +1 -1
- package/src/modules/dx/icon/icon.ts +1 -1
- package/src/modules/dx/iconBadge/iconBadge.css +1 -1
- package/src/modules/dx/iconBadge/iconBadge.ts +1 -1
- package/src/modules/dx/imageAndLabel/imageAndLabel.css +3 -3
- package/src/modules/dx/input/input.css +2 -2
- package/src/modules/dx/input/input.ts +1 -1
- package/src/modules/dx/logo/logo.css +2 -2
- package/src/modules/dx/modalDrawer/modalDrawer.ts +1 -1
- package/src/modules/dx/pagination/pagination.css +1 -1
- package/src/modules/dx/pagination/pagination.ts +1 -1
- package/src/modules/dx/podcastHost/podcastHost.css +2 -2
- package/src/modules/dx/popover/popover.css +1 -1
- package/src/modules/dx/popover/popover.ts +1 -1
- package/src/modules/dx/radioGroup/radioGroup.css +1 -1
- package/src/modules/dx/radioGroup/radioGroup.ts +1 -1
- package/src/modules/dx/section/section.css +2 -2
- package/src/modules/dx/section/section.ts +1 -1
- package/src/modules/dx/select/select.css +181 -8
- package/src/modules/dx/select/select.html +51 -54
- package/src/modules/dx/select/select.ts +128 -10
- package/src/modules/dx/sidebar/sidebar.css +2 -2
- package/src/modules/dx/sidebar/sidebar.ts +4 -4
- package/src/modules/dx/sidebarOld/sidebarOld.css +2 -2
- package/src/modules/dx/sidebarOld/sidebarOld.ts +3 -3
- package/src/modules/dx/sidebarSearch/sidebarSearch.ts +11 -5
- package/src/modules/dx/sidebarSearchResult/sidebarSearchResult.css +3 -3
- package/src/modules/dx/skipNavLink/skipNavLink.css +1 -1
- package/src/modules/dx/socials/socials.ts +1 -1
- package/src/modules/dx/tab/tab.css +1 -1
- package/src/modules/dx/tab/tab.ts +2 -2
- package/src/modules/dx/toc/toc.css +2 -2
- package/src/modules/dx/toc/toc.ts +1 -1
- package/src/modules/dx/topics/topics.ts +1 -1
- package/src/modules/dx/tree/tree.css +1 -1
- package/src/modules/dx/tree/tree.ts +1 -1
- package/src/modules/dx/treeItem/treeItem.css +1 -1
- package/src/modules/dx/treeItem/treeItem.ts +2 -2
- package/src/modules/dx/treeTile/treeTile.css +2 -2
- package/src/modules/dx/typeBadge/typeBadge.css +1 -1
- package/src/modules/dx/typeBadge/typeBadge.ts +1 -1
- package/src/modules/dx/typeBadgeGroup/typeBadgeGroup.ts +1 -1
- package/src/modules/dx/vimeoPlayer/vimeoPlayer.css +1 -1
- package/src/modules/{base-elements → dxBaseElements}/archiveCard/archiveCard.ts +0 -0
- package/src/modules/{base-elements → dxBaseElements}/headerBase/headerBase.ts +5 -5
- package/src/modules/{base-elements → dxBaseElements}/matchMediaElement/matchMediaElement.ts +1 -1
- package/src/modules/{base-elements → dxBaseElements}/sidebarBase/sidebarBase.ts +0 -0
- package/src/modules/{helpers → dxHelpers}/animations/animations.css +0 -0
- package/src/modules/{helpers → dxHelpers}/button/button.css +0 -0
- package/src/modules/{helpers → dxHelpers}/card/card.css +1 -1
- package/src/modules/{helpers → dxHelpers}/code/code.css +0 -0
- package/src/modules/{helpers → dxHelpers}/commonHeader/commonHeader.css +2 -2
- package/src/modules/{helpers → dxHelpers}/reset/reset.css +0 -0
- package/src/modules/{helpers → dxHelpers}/sidebar/sidebar.css +0 -0
- package/src/modules/{helpers → dxHelpers}/table/table.css +0 -0
- package/src/modules/{helpers → dxHelpers}/text/text.css +0 -0
- package/src/modules/{utils → dxUtils}/analytics/analytics.ts +0 -0
- package/src/modules/{utils → dxUtils}/browser/browser.ts +0 -0
- package/src/modules/{utils → dxUtils}/constants/breakpoints.ts +0 -0
- package/src/modules/{utils → dxUtils}/constants/constants.ts +0 -0
- package/src/modules/{utils → dxUtils}/coveo/coveo.ts +0 -0
- package/src/modules/{utils → dxUtils}/css/css.ts +0 -0
- package/src/modules/{utils → dxUtils}/dates/dates.ts +0 -0
- package/src/modules/{utils → dxUtils}/devices/devices.ts +0 -0
- package/src/modules/{utils → dxUtils}/highlight/highlight.ts +1 -1
- package/src/modules/dxUtils/language/language.ts +21 -0
- package/src/modules/{utils → dxUtils}/normalizers/normalizers.ts +9 -21
- package/src/modules/{utils → dxUtils}/options/options.ts +13 -9
- package/src/modules/{utils → dxUtils}/prismjs/prismjs.html +0 -0
- package/src/modules/{utils → dxUtils}/prismjs/prismjs.ts +0 -0
- package/src/modules/{utils → dxUtils}/queryCoordinator/queryCoordinator.ts +0 -0
- package/src/modules/{utils → dxUtils}/recentSearches/recentSearches.ts +0 -0
- package/src/modules/{utils → dxUtils}/regexps/regexps.ts +0 -0
- package/src/modules/{utils → dxUtils}/seo/seo.ts +0 -0
- package/src/modules/{utils → dxUtils}/slot/slot.ts +0 -0
- package/src/modules/{utils → dxUtils}/wordpress/wordpress.ts +0 -0
- package/LICENSE +0 -12
- package/src/modules/helpers/slds/slds.css +0 -191
package/lwc.config.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"modules": [{ "dir": "src/modules" }],
|
|
3
3
|
"expose": [
|
|
4
|
-
"base-elements/headerBase",
|
|
5
|
-
"base-elements/matchMediaElement",
|
|
6
4
|
"dx/banner",
|
|
7
5
|
"dx/brandThemeProvider",
|
|
8
6
|
"dx/breadcrumbs",
|
|
@@ -69,22 +67,24 @@
|
|
|
69
67
|
"dx/typeBadge",
|
|
70
68
|
"dx/typeBadgeGroup",
|
|
71
69
|
"dx/vimeoPlayer",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
70
|
+
"dxBaseElements/headerBase",
|
|
71
|
+
"dxBaseElements/matchMediaElement",
|
|
72
|
+
"dxHelpers/animations",
|
|
73
|
+
"dxHelpers/button",
|
|
74
|
+
"dxHelpers/card",
|
|
75
|
+
"dxHelpers/code",
|
|
76
|
+
"dxHelpers/commonHeader",
|
|
77
|
+
"dxHelpers/reset",
|
|
78
|
+
"dxHelpers/table",
|
|
79
|
+
"dxHelpers/text",
|
|
80
|
+
"dxUtils/analytics",
|
|
81
|
+
"dxUtils/constants",
|
|
82
|
+
"dxUtils/coveo",
|
|
83
|
+
"dxUtils/dates",
|
|
84
|
+
"dxUtils/highlight",
|
|
85
|
+
"dxUtils/normalizers",
|
|
86
|
+
"dxUtils/queryCoordinator",
|
|
87
|
+
"dxUtils/recentSearches",
|
|
88
|
+
"dxUtils/wordpress"
|
|
89
89
|
]
|
|
90
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "0.54.
|
|
3
|
+
"version": "0.54.7-alpha",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"@vimeo/player": "^2.16.4",
|
|
17
17
|
"classnames": "^2.2.6",
|
|
18
18
|
"debounce": "^1.2.0",
|
|
19
|
-
"lightning-base-components": "1.12.3-alpha",
|
|
20
19
|
"lodash.get": "^4.4.2",
|
|
21
20
|
"microtip": "0.2.2"
|
|
22
21
|
},
|
|
@@ -25,6 +24,5 @@
|
|
|
25
24
|
"@types/debounce": "^1.2.0",
|
|
26
25
|
"@types/lodash.get": "^4.4.6",
|
|
27
26
|
"@types/vimeo__player": "^2.16.2"
|
|
28
|
-
}
|
|
29
|
-
"gitHead": "c06230bbb3bb9e9a03d3712d3e9c5677a579e7a2"
|
|
27
|
+
}
|
|
30
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
|
+
@import "dxHelpers/text";
|
|
3
3
|
|
|
4
4
|
.container {
|
|
5
5
|
--primary-color: var(--dx-g-cloud-blue-vibrant-50);
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
|
|
43
43
|
.container dx-icon {
|
|
44
44
|
margin-right: var(--dx-g-spacing-sm);
|
|
45
|
-
margin-top:var(
|
|
45
|
+
margin-top: var(--dx-g-spacing-2xs);
|
|
46
46
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { Breadcrumb,
|
|
4
|
-
import { toJson } from "
|
|
3
|
+
import { Breadcrumb, OptionWithNested } from "typings/custom";
|
|
4
|
+
import { toJson } from "dxUtils/normalizers";
|
|
5
5
|
|
|
6
6
|
type LabelMap = { [href: string]: string };
|
|
7
7
|
type NormalizedBreadcrumb = Breadcrumb & { last: boolean; asLink: boolean };
|
|
@@ -19,7 +19,7 @@ const toLabel = (val: string) => {
|
|
|
19
19
|
export default class Breadcrumbs extends LightningElement {
|
|
20
20
|
@api ariaLabel: string = "Navigation Breadcrumbs";
|
|
21
21
|
@api baseHref: string = "/";
|
|
22
|
-
@api navItems:
|
|
22
|
+
@api navItems: OptionWithNested[] = [];
|
|
23
23
|
@api pathname: string = window.location.pathname;
|
|
24
24
|
@api title: string = "Salesforce";
|
|
25
25
|
@api logo: boolean = false;
|
|
@@ -42,19 +42,22 @@ export default class Breadcrumbs extends LightningElement {
|
|
|
42
42
|
private _breadcrumbs!: Breadcrumb[];
|
|
43
43
|
|
|
44
44
|
private get labelMap(): LabelMap {
|
|
45
|
-
const deepReducer = (options:
|
|
46
|
-
options.reduce(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
const deepReducer = (options: OptionWithNested[]) =>
|
|
46
|
+
options.reduce(
|
|
47
|
+
(acc: LabelMap, item: OptionWithNested): LabelMap => {
|
|
48
|
+
if (item.options) {
|
|
49
|
+
return { ...acc, ...deepReducer(item.options) };
|
|
50
|
+
}
|
|
51
|
+
if (!item.link) {
|
|
52
|
+
return acc;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
...acc,
|
|
56
|
+
[item.link.href]: item.label
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
{}
|
|
60
|
+
);
|
|
58
61
|
return this.navItems ? deepReducer(this.navItems) : {};
|
|
59
62
|
}
|
|
60
63
|
|
|
@@ -82,16 +85,14 @@ export default class Breadcrumbs extends LightningElement {
|
|
|
82
85
|
breadcrumbs: Breadcrumb[]
|
|
83
86
|
): NormalizedBreadcrumb[] {
|
|
84
87
|
const { length } = breadcrumbs;
|
|
85
|
-
return breadcrumbs.map(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
);
|
|
88
|
+
return breadcrumbs.map((breadcrumb, i): NormalizedBreadcrumb => {
|
|
89
|
+
const last = i === length - 1;
|
|
90
|
+
return {
|
|
91
|
+
...breadcrumb,
|
|
92
|
+
asLink: this.hideCurrentLocation || !last,
|
|
93
|
+
last
|
|
94
|
+
};
|
|
95
|
+
});
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
private get breadcrumbDropdownOptions() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "
|
|
1
|
+
@import "dxHelpers/reset";
|
|
2
2
|
|
|
3
3
|
:host {
|
|
4
4
|
width: min-content;
|
|
@@ -108,6 +108,15 @@
|
|
|
108
108
|
width: var(--dx-c-slot-empty-width, var(--dx-g-spacing-xl));
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
.button.size-hero {
|
|
112
|
+
font-size: var(--dx-g-text-lg);
|
|
113
|
+
height: 52px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.button.size-hero.style-icon.slot-empty {
|
|
117
|
+
width: var(--dx-c-slot-empty-width, 52px);
|
|
118
|
+
}
|
|
119
|
+
|
|
111
120
|
/* primary */
|
|
112
121
|
|
|
113
122
|
.button.variant_primary {
|
|
@@ -17,7 +17,7 @@ export default class Button extends LightningElement {
|
|
|
17
17
|
@api iconSymbol?: IconSymbol;
|
|
18
18
|
@api iconPosition?: "right" | "left" = "right";
|
|
19
19
|
@api loading: boolean = false;
|
|
20
|
-
@api size: "large" | "small" = "small";
|
|
20
|
+
@api size: "large" | "hero" | "small" = "small";
|
|
21
21
|
@api variant: ButtonVariant = "primary";
|
|
22
22
|
@api inlineTextColor: ButtonTextColor = "dark";
|
|
23
23
|
@api font: "display" | "sans" = "display";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { toDxColor } from "
|
|
4
|
-
import { track } from "
|
|
3
|
+
import { toDxColor } from "dxUtils/css";
|
|
4
|
+
import { track } from "dxUtils/analytics";
|
|
5
5
|
|
|
6
6
|
export default class CardCallout extends LightningElement {
|
|
7
7
|
@api backgroundColor: string = "indigo-vibrant-40";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import { LightningSlotElement } from "typings/custom";
|
|
4
|
-
import { isSlotEmpty } from "
|
|
5
|
-
import { toDxColor } from "
|
|
4
|
+
import { isSlotEmpty } from "dxUtils/slot";
|
|
5
|
+
import { toDxColor } from "dxUtils/css";
|
|
6
6
|
|
|
7
7
|
export default class CardContent extends LightningElement {
|
|
8
8
|
@api authorHref?: string | null = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "
|
|
1
|
+
@import "dxHelpers/card";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import { LightningSlotElement } from "typings/custom";
|
|
4
|
-
import { stopPropagationOnSlotted } from "
|
|
4
|
+
import { stopPropagationOnSlotted } from "dxUtils/slot";
|
|
5
5
|
|
|
6
6
|
export default class CardDocs extends LightningElement {
|
|
7
7
|
@api body!: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { toDxColor } from "
|
|
3
|
+
import { toDxColor } from "dxUtils/css";
|
|
4
4
|
import {
|
|
5
5
|
ButtonTextColor,
|
|
6
6
|
CardNewsButtonType,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
CardNewsSize,
|
|
10
10
|
CardNewsTextContainerSize
|
|
11
11
|
} from "typings/custom";
|
|
12
|
-
import { track } from "
|
|
12
|
+
import { track } from "dxUtils/analytics";
|
|
13
13
|
|
|
14
14
|
export default class CardNews extends LightningElement {
|
|
15
15
|
@api backgroundColor?: string = "indigo-vibrant-40";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
IconSymbol,
|
|
7
7
|
IconBadgeShape
|
|
8
8
|
} from "typings/custom";
|
|
9
|
-
import { isSlotEmpty, stopPropagationOnSlotted } from "
|
|
9
|
+
import { isSlotEmpty, stopPropagationOnSlotted } from "dxUtils/slot";
|
|
10
10
|
|
|
11
11
|
export default class CardSmall extends LightningElement {
|
|
12
12
|
@api badgeBackgroundColor?: string = "indigo-vibrant-50";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { toJson } from "
|
|
3
|
+
import { toJson } from "dxUtils/normalizers";
|
|
4
4
|
|
|
5
5
|
export default class CardTrial extends LightningElement {
|
|
6
6
|
@api badgeBackgroundColor?: string = "indigo-vibrant-90";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LightningElement, api, wire, track } from "lwc";
|
|
2
2
|
import { CodeBlockTheme, CodeBlockLanguage } from "typings/custom";
|
|
3
3
|
import cx from "classnames";
|
|
4
|
-
import Prism from "
|
|
4
|
+
import Prism from "dxUtils/prismjs";
|
|
5
5
|
import {
|
|
6
6
|
getLocalStorageData,
|
|
7
7
|
setLocalStorageData
|
|
8
8
|
} from "@sfdocs-internal/wires";
|
|
9
|
-
import { track as gtmTrack } from "
|
|
9
|
+
import { track as gtmTrack } from "dxUtils/analytics";
|
|
10
10
|
|
|
11
11
|
// Used por remove enclosing <pre> tag's (if occurs)
|
|
12
12
|
const preTagRegexp: RegExp = /^<pre.*?>(.*)<\/pre>$/is;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OptionWithNested, PopperPlacement } from "typings/custom";
|
|
2
2
|
import { LightningElement, api, track } from "lwc";
|
|
3
3
|
import cx from "classnames";
|
|
4
4
|
import get from "lodash.get";
|
|
5
|
-
import { deepmapOptions } from "
|
|
6
|
-
import { toJson } from "
|
|
5
|
+
import { deepmapOptions } from "dxUtils/options";
|
|
6
|
+
import { toJson } from "dxUtils/normalizers";
|
|
7
7
|
|
|
8
|
-
interface DropdownOption extends
|
|
8
|
+
interface DropdownOption extends OptionWithNested {
|
|
9
9
|
// link that gets shown as a highlighted link at end of option group
|
|
10
10
|
calloutLink?: {
|
|
11
11
|
href: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import {
|
|
4
|
-
import { track } from "
|
|
3
|
+
import { OptionWithNested } from "typings/custom";
|
|
4
|
+
import { track } from "dxUtils/analytics";
|
|
5
5
|
|
|
6
6
|
export default class DropdownOption extends LightningElement {
|
|
7
|
-
@api option!:
|
|
7
|
+
@api option!: OptionWithNested;
|
|
8
8
|
@api suppressGtmNavHeadings: boolean = false;
|
|
9
9
|
@api keyValue!: string;
|
|
10
10
|
@api active: boolean = false;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
import { LightningSlotElement } from "typings/custom";
|
|
4
|
-
import { isSlotEmpty } from "
|
|
5
|
-
import { toJson } from "
|
|
4
|
+
import { isSlotEmpty } from "dxUtils/slot";
|
|
5
|
+
import { toJson } from "dxUtils/normalizers";
|
|
6
6
|
import { ImageAndLabel } from "../imageAndLabel";
|
|
7
7
|
import svgs from "./svgs";
|
|
8
8
|
|