@salesforcedevs/dw-components 1.28.2-action-link-2 → 1.28.2-action-link-removed
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
|
@@ -40,27 +40,18 @@
|
|
|
40
40
|
></dx-input>
|
|
41
41
|
</div>
|
|
42
42
|
<dx-grid columns={tileColumns} if:false={showEmptyState}>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
lwc:else
|
|
56
|
-
key={item.id}
|
|
57
|
-
header={item.title}
|
|
58
|
-
body={item.description}
|
|
59
|
-
href={item.guidesHref}
|
|
60
|
-
class="docs-card"
|
|
61
|
-
target={item.target}
|
|
62
|
-
></dx-card-docs>
|
|
63
|
-
</template>
|
|
43
|
+
<dx-card-docs
|
|
44
|
+
for:each={currentPageDocs}
|
|
45
|
+
for:item="item"
|
|
46
|
+
key={item.id}
|
|
47
|
+
header={item.title}
|
|
48
|
+
body={item.description}
|
|
49
|
+
href={item.projectHref}
|
|
50
|
+
class="docs-card"
|
|
51
|
+
target={item.target}
|
|
52
|
+
data-is-dita={item.isDita}
|
|
53
|
+
onclick={handleDitaCardClick}
|
|
54
|
+
></dx-card-docs>
|
|
64
55
|
</dx-grid>
|
|
65
56
|
<div class="pagination-container" if:false={showEmptyState}>
|
|
66
57
|
<dx-pagination
|
|
@@ -187,7 +187,7 @@ export default class DocsGrid extends LightningElement {
|
|
|
187
187
|
title: project.title,
|
|
188
188
|
description: project.description,
|
|
189
189
|
service: project.meta.brand,
|
|
190
|
-
|
|
190
|
+
projectHref: project.contentTypes[0].href,
|
|
191
191
|
locale: docs.locale || "en-us"
|
|
192
192
|
});
|
|
193
193
|
}
|
|
@@ -460,7 +460,7 @@ export default class DocsGrid extends LightningElement {
|
|
|
460
460
|
id: content.id,
|
|
461
461
|
title: content.value.title,
|
|
462
462
|
description: content.value.shortdesc,
|
|
463
|
-
|
|
463
|
+
projectHref: content
|
|
464
464
|
? "/docs/" +
|
|
465
465
|
content.value._id +
|
|
466
466
|
"/" +
|
|
@@ -695,6 +695,10 @@ export default class DocsGrid extends LightningElement {
|
|
|
695
695
|
};
|
|
696
696
|
|
|
697
697
|
handleDitaCardClick(e: any) {
|
|
698
|
+
if (e?.currentTarget?.dataset?.isDita !== "true") {
|
|
699
|
+
return;
|
|
700
|
+
}
|
|
701
|
+
|
|
698
702
|
this.filteredItemsSelected = true;
|
|
699
703
|
this.selectedProductFilters?.forEach((filter) => {
|
|
700
704
|
track(document, "custEv_filterApplied", {
|