@salesforcedevs/docs-components 1.3.320-dc1 → 1.3.323
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 +0 -2
- package/package.json +1 -1
- package/src/modules/doc/contentCallout/contentCallout.html +1 -1
- package/src/modules/doc/contentCallout/contentCallout.ts +1 -1
- package/src/modules/doc/contentLayout/contentLayout.html +1 -1
- package/src/modules/doc/contentLayout/contentLayout.ts +4 -2
- package/src/modules/doc/heading/heading.html +4 -4
- package/src/modules/doc/heading/heading.ts +1 -1
- package/src/modules/doc/headingAnchor/headingAnchor.ts +2 -2
- package/src/modules/doc/headingContent/headingContent.html +2 -2
- package/src/modules/doc/headingContent/headingContent.ts +2 -2
- package/src/modules/doc/overview/overview.html +2 -2
- package/src/modules/doc/overview/overview.ts +1 -1
- package/src/modules/doc/component/component.css +0 -32
- package/src/modules/doc/component/component.html +0 -11
- package/src/modules/doc/component/component.ts +0 -22
- package/src/modules/doc/styledOrderedList/styledOrderedList.css +0 -33
- package/src/modules/doc/styledOrderedList/styledOrderedList.html +0 -10
- package/src/modules/doc/styledOrderedList/styledOrderedList.ts +0 -18
package/lwc.config.json
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"expose": [
|
|
8
8
|
"doc/amfReference",
|
|
9
9
|
"doc/breadcrumbs",
|
|
10
|
-
"doc/component",
|
|
11
10
|
"doc/content",
|
|
12
11
|
"doc/contentCallout",
|
|
13
12
|
"doc/contentLayout",
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
"doc/headingAnchor",
|
|
19
18
|
"doc/overview",
|
|
20
19
|
"doc/phase",
|
|
21
|
-
"doc/styledOrderedList",
|
|
22
20
|
"doc/versionPicker",
|
|
23
21
|
"doc/xmlContent",
|
|
24
22
|
"docUtils/utils"
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import cx from "classnames";
|
|
|
3
3
|
import { CalloutVariant, LightningSlotElement } from "typings/custom";
|
|
4
4
|
|
|
5
5
|
export default class ContentCallout extends LightningElement {
|
|
6
|
-
@api
|
|
6
|
+
@api header!: string;
|
|
7
7
|
@api variant!: CalloutVariant;
|
|
8
8
|
cardVariant?: string;
|
|
9
9
|
iconName?: string;
|
|
@@ -343,8 +343,10 @@ export default class ContentLayout extends LightningElement {
|
|
|
343
343
|
);
|
|
344
344
|
|
|
345
345
|
for (const headingElement of headingElements as any) {
|
|
346
|
-
// Sometimes elements hash is not being set when slot content is wrapped with div
|
|
346
|
+
// Sometimes elements hash and header is not being set when slot content is wrapped with div
|
|
347
347
|
headingElement.hash = headingElement.attributes.hash?.nodeValue;
|
|
348
|
+
headingElement.header =
|
|
349
|
+
headingElement.attributes.header?.nodeValue;
|
|
348
350
|
}
|
|
349
351
|
|
|
350
352
|
const tocOptions = [];
|
|
@@ -361,7 +363,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
361
363
|
const tocItem = {
|
|
362
364
|
anchor: `#${headingElement.hash}`,
|
|
363
365
|
id: headingElement.id,
|
|
364
|
-
label: headingElement.
|
|
366
|
+
label: headingElement.header
|
|
365
367
|
};
|
|
366
368
|
tocOptions.push(tocItem);
|
|
367
369
|
this.tocOptionIdsSet.add(headingElement.id);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<h1 class={className} if:true={isAriaLevelOne}>
|
|
3
|
-
<doc-heading-content
|
|
3
|
+
<doc-heading-content header={header} hash={hash}></doc-heading-content>
|
|
4
4
|
</h1>
|
|
5
5
|
<h2 class={className} if:true={isAriaLevelTwo}>
|
|
6
|
-
<doc-heading-content
|
|
6
|
+
<doc-heading-content header={header} hash={hash}></doc-heading-content>
|
|
7
7
|
</h2>
|
|
8
8
|
<h3 class={className} if:true={isAriaLevelThree}>
|
|
9
|
-
<doc-heading-content
|
|
9
|
+
<doc-heading-content header={header} hash={hash}></doc-heading-content>
|
|
10
10
|
</h3>
|
|
11
11
|
<h4 class={className} if:true={isAriaLevelFour}>
|
|
12
|
-
<doc-heading-content
|
|
12
|
+
<doc-heading-content header={header} hash={hash}></doc-heading-content>
|
|
13
13
|
</h4>
|
|
14
14
|
</template>
|
|
@@ -13,7 +13,7 @@ export const displayLevels = Object.values(ariaDisplayLevels);
|
|
|
13
13
|
|
|
14
14
|
// @ts-ignore: Really Dark Magic (TM) to do with ariaLevel needing explicit getter/setters
|
|
15
15
|
export default class Heading extends LightningElement {
|
|
16
|
-
@api
|
|
16
|
+
@api header: string = "";
|
|
17
17
|
@api hash: string | null = null;
|
|
18
18
|
|
|
19
19
|
@api
|
|
@@ -6,7 +6,7 @@ export default class HeadingAnchor extends LightningElement {
|
|
|
6
6
|
@api iconSize?: IconSize = "override";
|
|
7
7
|
@api iconSprite?: IconSprite = "utility";
|
|
8
8
|
@api iconSymbol?: IconSymbol;
|
|
9
|
-
@api
|
|
9
|
+
@api header: string = "";
|
|
10
10
|
@api urlText: string = "";
|
|
11
11
|
|
|
12
12
|
label: string = "Copy link to clipboard";
|
|
@@ -22,7 +22,7 @@ export default class HeadingAnchor extends LightningElement {
|
|
|
22
22
|
}, 2000);
|
|
23
23
|
|
|
24
24
|
try {
|
|
25
|
-
if (this.
|
|
25
|
+
if (this.header && this.urlText) {
|
|
26
26
|
const [hostUrl] = window.location.href.split("#");
|
|
27
27
|
const url = `${hostUrl}#${this.urlText}`;
|
|
28
28
|
await navigator.clipboard.writeText(url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<template if:false={hash}>{
|
|
2
|
+
<template if:false={hash}>{header}</template>
|
|
3
3
|
<template if:true={hash}>
|
|
4
|
-
<span class="title">{
|
|
4
|
+
<span class="title">{header} </span>
|
|
5
5
|
<dx-tooltip placement="top" label={label}>
|
|
6
6
|
<span class="button-container">
|
|
7
7
|
<button onclick={copy} aria-label="copy">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LightningElement, api } from "lwc";
|
|
2
2
|
|
|
3
3
|
export default class HeadingContent extends LightningElement {
|
|
4
|
-
@api
|
|
4
|
+
@api header: string = "";
|
|
5
5
|
@api hash: string | null = null;
|
|
6
6
|
|
|
7
7
|
label: string = "Copy link to clipboard";
|
|
@@ -18,7 +18,7 @@ export default class HeadingContent extends LightningElement {
|
|
|
18
18
|
}, 2000);
|
|
19
19
|
|
|
20
20
|
try {
|
|
21
|
-
if (this.
|
|
21
|
+
if (this.header && this.hash) {
|
|
22
22
|
const [hostUrl] = window.location.href.split("#");
|
|
23
23
|
const url = `${hostUrl}#${this.hash}`;
|
|
24
24
|
await navigator.clipboard.writeText(url);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div class="content">
|
|
11
11
|
<dx-group-text
|
|
12
12
|
class="description"
|
|
13
|
-
|
|
13
|
+
header={header}
|
|
14
14
|
body={description}
|
|
15
15
|
size="large"
|
|
16
16
|
title-aria-level="1"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
<div>
|
|
22
22
|
<dx-group-text
|
|
23
|
-
|
|
23
|
+
header={featuresListTitle}
|
|
24
24
|
size="medium"
|
|
25
25
|
class="features"
|
|
26
26
|
></dx-group-text>
|
|
@@ -3,7 +3,7 @@ import { DocPhaseInfo, FeatureItem, Link } from "typings/custom";
|
|
|
3
3
|
|
|
4
4
|
export default class Overview extends LightningElement {
|
|
5
5
|
@api docPhaseInfo!: DocPhaseInfo;
|
|
6
|
-
@api
|
|
6
|
+
@api header!: string;
|
|
7
7
|
@api description!: string;
|
|
8
8
|
@api primaryLink!: Link;
|
|
9
9
|
@api secondaryLink!: Link;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@import "dxHelpers/reset";
|
|
2
|
-
|
|
3
|
-
h2 {
|
|
4
|
-
font-weight: bold;
|
|
5
|
-
font-size: 24px;
|
|
6
|
-
margin-top: 10px;
|
|
7
|
-
margin-bottom: 10px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.component-image {
|
|
11
|
-
padding: 48px 40px;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
border: 1px solid var(--foundation-gray-neutral-95, #f3f3f3);
|
|
16
|
-
min-height: 140px;
|
|
17
|
-
max-height: 480px;
|
|
18
|
-
flex: 1;
|
|
19
|
-
margin-top: 16px;
|
|
20
|
-
margin-bottom: 16px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.small {
|
|
24
|
-
font-size: 12px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.item {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex: 1;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="item">
|
|
3
|
-
<h2 if:true={title}>{title}</h2>
|
|
4
|
-
<p if:true={description}>{description}</p>
|
|
5
|
-
<p if:true={doDontLabel}>{doDontLabel}</p>
|
|
6
|
-
<div if:true={imageSrc} class="component-image">
|
|
7
|
-
<img src={imageSrc} />
|
|
8
|
-
</div>
|
|
9
|
-
<p if:true={note} class="small">{note}</p>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LightningElement, api } from "lwc";
|
|
2
|
-
|
|
3
|
-
class Component extends LightningElement {
|
|
4
|
-
@api title;
|
|
5
|
-
@api description;
|
|
6
|
-
@api imageSrc;
|
|
7
|
-
@api isDo;
|
|
8
|
-
@api note;
|
|
9
|
-
|
|
10
|
-
@api
|
|
11
|
-
get doDontLabel(): string {
|
|
12
|
-
//TODO: store a boolean value and refactor logic
|
|
13
|
-
if (this.isDo === "true") {
|
|
14
|
-
return "DO";
|
|
15
|
-
} else if (this.isDo === "false") {
|
|
16
|
-
return "DON'T";
|
|
17
|
-
}
|
|
18
|
-
return "";
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default Component;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@import "dxHelpers/reset";
|
|
2
|
-
|
|
3
|
-
.list {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex: 1;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.list-item {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
margin-bottom: 2px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.circle {
|
|
18
|
-
background: var(--foundation-blue-blue-40, #0b5cab);
|
|
19
|
-
height: 24px;
|
|
20
|
-
width: 24px;
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
display: flex;
|
|
25
|
-
color: white;
|
|
26
|
-
font-size: 10px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.list-item-content {
|
|
30
|
-
color: var(--text-default, #181818);
|
|
31
|
-
font-size: 16px;
|
|
32
|
-
margin-left: 16px;
|
|
33
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LightningElement, api } from "lwc";
|
|
2
|
-
|
|
3
|
-
class StyledOrderedList extends LightningElement {
|
|
4
|
-
private _list: Array<string> = [];
|
|
5
|
-
|
|
6
|
-
set list(value: string) {
|
|
7
|
-
if (value) {
|
|
8
|
-
this._list = JSON.parse(value);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@api
|
|
13
|
-
get list(): Array<string> {
|
|
14
|
-
return this._list;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default StyledOrderedList;
|