@salesforcedevs/docs-components 1.18.6-dynamic-pg-border1 → 1.18.6-dynamic-pg-border3
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 +1 -4
- package/src/modules/doc/contentMedia/contentMedia.css +1 -1
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.css +8 -0
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.html +2 -2
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.ts +13 -0
- package/src/modules/doc/specificationContent/specificationContent.html +5 -0
- package/src/modules/doc/specificationContent/specificationContent.ts +11 -0
- package/src/modules/docHelpers/amfStyle/amfStyle.css +0 -2
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +2 -1
package/package.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.18.6-dynamic-pg-
|
|
3
|
+
"version": "1.18.6-dynamic-pg-border3",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": "20.x"
|
|
9
9
|
},
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
10
|
"dependencies": {
|
|
14
11
|
"@api-components/amf-helper-mixin": "4.5.29",
|
|
15
12
|
"classnames": "2.5.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<slot name="doc-phase"></slot>
|
|
20
20
|
<slot name="version-banner"></slot>
|
|
21
21
|
<div class="content-body-container">
|
|
22
|
-
<div class=
|
|
22
|
+
<div class={contentBodyClasses}>
|
|
23
23
|
<doc-breadcrumbs
|
|
24
24
|
lwc:if={showBreadcrumbs}
|
|
25
25
|
breadcrumbs={breadcrumbs}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
lwc:if={shouldDisplayFeedback}
|
|
30
30
|
></doc-sprig-survey>
|
|
31
31
|
</div>
|
|
32
|
-
<div lwc:if={showToc} class=
|
|
32
|
+
<div lwc:if={showToc} class={rightNavBarClasses}>
|
|
33
33
|
<dx-toc
|
|
34
34
|
header={tocTitle}
|
|
35
35
|
options={tocOptions}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ContentLayout from "doc/contentLayout";
|
|
2
|
+
import cx from "classnames";
|
|
2
3
|
|
|
3
4
|
const TOC_HEADER_TAG = "doc-heading";
|
|
4
5
|
const RNB_BY_TAB = "docs-tab";
|
|
@@ -23,6 +24,18 @@ export default class LwcContentLayout extends ContentLayout {
|
|
|
23
24
|
return this.rnbByTab;
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
get rightNavBarClasses() {
|
|
28
|
+
return cx(
|
|
29
|
+
"right-nav-bar",
|
|
30
|
+
"is-sticky",
|
|
31
|
+
this.showTabBasedRNB && "fixed-right-nav-bar"
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get contentBodyClasses() {
|
|
36
|
+
return cx("content-body", !this.showToc && "content-body-no-rnb");
|
|
37
|
+
}
|
|
38
|
+
|
|
26
39
|
/**
|
|
27
40
|
* Check if the main slot contains doc-specification-content
|
|
28
41
|
* Uses caching to avoid repeated DOM queries
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
if:true={isLoading}
|
|
8
8
|
></dx-spinner>
|
|
9
9
|
<dx-error-fallback lwc:if={showError}></dx-error-fallback>
|
|
10
|
+
<dx-error-fallback
|
|
11
|
+
lwc:if={showNoSpecifications}
|
|
12
|
+
title="No specifications to show"
|
|
13
|
+
description="No specifications are available for this component or API module. When specifications are defined, they'll appear here."
|
|
14
|
+
></dx-error-fallback>
|
|
10
15
|
<template lwc:if={hasAttributes}>
|
|
11
16
|
<doc-heading
|
|
12
17
|
header="Attributes"
|
|
@@ -108,6 +108,17 @@ export default class SpecificationContent extends LightningElement {
|
|
|
108
108
|
return this.events?.length > 0;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
get showNoSpecifications() {
|
|
112
|
+
return (
|
|
113
|
+
!this.showError &&
|
|
114
|
+
!this.isLoading &&
|
|
115
|
+
!this.hasAttributes &&
|
|
116
|
+
!this.hasMethods &&
|
|
117
|
+
!this.hasSlots &&
|
|
118
|
+
!this.hasEvents
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
111
122
|
renderedCallback(): void {
|
|
112
123
|
if (this.data) {
|
|
113
124
|
this.debouncedNotifyDataRendered();
|
|
@@ -74,7 +74,7 @@ dx-toc {
|
|
|
74
74
|
|
|
75
75
|
.content-body {
|
|
76
76
|
margin: var(--dx-g-spacing-md) 0 0;
|
|
77
|
-
max-width:
|
|
77
|
+
max-width: 1000px;
|
|
78
78
|
flex: 1;
|
|
79
79
|
width: 0;
|
|
80
80
|
}
|
|
@@ -116,6 +116,7 @@ dx-toc {
|
|
|
116
116
|
|
|
117
117
|
.content-body-container {
|
|
118
118
|
padding-right: 0;
|
|
119
|
+
padding-left: 0;
|
|
119
120
|
overflow-x: auto;
|
|
120
121
|
margin-bottom: calc(var(--dx-g-spacing-5xl) + 4px);
|
|
121
122
|
}
|