@salesforcedevs/docs-components 1.37.1-remediation.1 → 1.38.0
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/LICENSE +12 -0
- package/lwc.config.json +0 -1
- package/package.json +2 -2
- package/src/modules/doc/amfReference/amfReference.css +3 -4
- package/src/modules/doc/amfReference/amfReference.html +2 -2
- package/src/modules/doc/amfTopic/amfTopic.css +1 -2
- package/src/modules/doc/banner/banner.css +3 -3
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.css +4 -4
- package/src/modules/doc/breadcrumbs/breadcrumbs.css +2 -8
- package/src/modules/doc/content/content.css +15 -23
- package/src/modules/doc/contentActionToolbar/contentActionToolbar.css +1 -1
- package/src/modules/doc/contentCallout/contentCallout.css +10 -82
- package/src/modules/doc/contentCallout/contentCallout.html +5 -1
- package/src/modules/doc/contentCallout/contentCallout.ts +8 -2
- package/src/modules/doc/contentMedia/contentMedia.css +3 -3
- package/src/modules/doc/doDont/doDont.css +2 -2
- package/src/modules/doc/header/header.css +8 -11
- package/src/modules/doc/heading/heading.css +4 -15
- package/src/modules/doc/overview/overview.css +1 -2
- package/src/modules/doc/phase/phase.css +1 -20
- package/src/modules/doc/phase/phase.html +2 -0
- package/src/modules/doc/phase/phase.ts +5 -1
- package/src/modules/doc/redocReference/redocReference.css +2 -2
- package/src/modules/doc/redocReference/redocReference.ts +374 -23
- package/src/modules/doc/socialShare/socialShare.css +4 -4
- package/src/modules/doc/specificationContent/specificationContent.css +1 -1
- package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.css +2 -4
- package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.html +8 -0
- package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.ts +75 -46
- package/src/modules/doc/xmlContent/xmlContent.css +7 -8
- package/src/modules/doc/xmlContent/xmlContent.html +2 -2
- package/src/modules/docHelpers/amfStyle/amfStyle.css +41 -123
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +6 -9
- package/src/modules/docHelpers/status/status.css +6 -2
- package/src/modules/docUtils/utils/utils.ts +22 -2
- package/src/modules/doc/versionPicker/versionPicker.css +0 -64
- package/src/modules/doc/versionPicker/versionPicker.html +0 -40
- package/src/modules/doc/versionPicker/versionPicker.ts +0 -65
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div lwc:if={showVersionPicker} class="version-picker-container">
|
|
3
|
-
<dx-dropdown
|
|
4
|
-
options={versions}
|
|
5
|
-
analytics-event="custEv_docVersionSelect"
|
|
6
|
-
analytics-payload={analyticsPayload}
|
|
7
|
-
value={selectedVersion.id}
|
|
8
|
-
width="var(--doc-version-picker-width)"
|
|
9
|
-
onchange={onVersionChange}
|
|
10
|
-
>
|
|
11
|
-
<dx-button
|
|
12
|
-
class="version-picker-button"
|
|
13
|
-
variant="tertiary"
|
|
14
|
-
size="small"
|
|
15
|
-
icon-symbol="chevrondown"
|
|
16
|
-
icon-size="medium"
|
|
17
|
-
>
|
|
18
|
-
<div class="selected-version">
|
|
19
|
-
<p class="selected-version-label">
|
|
20
|
-
{selectedVersion.label}
|
|
21
|
-
</p>
|
|
22
|
-
<template lwc:if={showLatestTag}>
|
|
23
|
-
<dx-type-badge
|
|
24
|
-
class="latest-badge"
|
|
25
|
-
lwc:if={latestVersion}
|
|
26
|
-
value="Latest"
|
|
27
|
-
size="small"
|
|
28
|
-
></dx-type-badge>
|
|
29
|
-
<dx-type-badge
|
|
30
|
-
class="not-latest-badge"
|
|
31
|
-
lwc:else
|
|
32
|
-
value="Not Latest"
|
|
33
|
-
size="small"
|
|
34
|
-
></dx-type-badge>
|
|
35
|
-
</template>
|
|
36
|
-
</div>
|
|
37
|
-
</dx-button>
|
|
38
|
-
</dx-dropdown>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { LightningElement, api, track } from "lwc";
|
|
2
|
-
|
|
3
|
-
import { AnalyticsPayload, OptionWithNested } from "typings/custom";
|
|
4
|
-
|
|
5
|
-
import { toJson, normalizeBoolean } from "dxUtils/normalizers";
|
|
6
|
-
|
|
7
|
-
export default class VersionPicker extends LightningElement {
|
|
8
|
-
@api analyticsEvent?: string;
|
|
9
|
-
@api analyticsPayload?: AnalyticsPayload;
|
|
10
|
-
|
|
11
|
-
@track private _versions!: OptionWithNested[];
|
|
12
|
-
private _selectedVersion?: OptionWithNested;
|
|
13
|
-
private _latestVersion: boolean = false;
|
|
14
|
-
private _hideBadge: boolean = false;
|
|
15
|
-
|
|
16
|
-
@api
|
|
17
|
-
get versions() {
|
|
18
|
-
return this._versions;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
set versions(value: OptionWithNested[]) {
|
|
22
|
-
this._versions = toJson(value);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@api
|
|
26
|
-
get selectedVersion(): OptionWithNested | undefined {
|
|
27
|
-
return this._selectedVersion || this.versions[0];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
set selectedVersion(value: OptionWithNested) {
|
|
31
|
-
if (value) {
|
|
32
|
-
this._selectedVersion = toJson(value);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@api
|
|
37
|
-
get latestVersion() {
|
|
38
|
-
return this._latestVersion;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
set latestVersion(value) {
|
|
42
|
-
this._latestVersion = normalizeBoolean(value);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@api
|
|
46
|
-
get hideBadge() {
|
|
47
|
-
return this._hideBadge;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
set hideBadge(value) {
|
|
51
|
-
this._hideBadge = normalizeBoolean(value);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
private get showVersionPicker() {
|
|
55
|
-
return this._versions && this._versions.length !== 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
private get showLatestTag(): boolean {
|
|
59
|
-
return !this.hideBadge;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
private onVersionChange(e: CustomEvent) {
|
|
63
|
-
this.dispatchEvent(new CustomEvent("change", { detail: e.detail }));
|
|
64
|
-
}
|
|
65
|
-
}
|