@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.
Files changed (38) hide show
  1. package/LICENSE +12 -0
  2. package/lwc.config.json +0 -1
  3. package/package.json +2 -2
  4. package/src/modules/doc/amfReference/amfReference.css +3 -4
  5. package/src/modules/doc/amfReference/amfReference.html +2 -2
  6. package/src/modules/doc/amfTopic/amfTopic.css +1 -2
  7. package/src/modules/doc/banner/banner.css +3 -3
  8. package/src/modules/doc/breadcrumbItem/breadcrumbItem.css +4 -4
  9. package/src/modules/doc/breadcrumbs/breadcrumbs.css +2 -8
  10. package/src/modules/doc/content/content.css +15 -23
  11. package/src/modules/doc/contentActionToolbar/contentActionToolbar.css +1 -1
  12. package/src/modules/doc/contentCallout/contentCallout.css +10 -82
  13. package/src/modules/doc/contentCallout/contentCallout.html +5 -1
  14. package/src/modules/doc/contentCallout/contentCallout.ts +8 -2
  15. package/src/modules/doc/contentMedia/contentMedia.css +3 -3
  16. package/src/modules/doc/doDont/doDont.css +2 -2
  17. package/src/modules/doc/header/header.css +8 -11
  18. package/src/modules/doc/heading/heading.css +4 -15
  19. package/src/modules/doc/overview/overview.css +1 -2
  20. package/src/modules/doc/phase/phase.css +1 -20
  21. package/src/modules/doc/phase/phase.html +2 -0
  22. package/src/modules/doc/phase/phase.ts +5 -1
  23. package/src/modules/doc/redocReference/redocReference.css +2 -2
  24. package/src/modules/doc/redocReference/redocReference.ts +374 -23
  25. package/src/modules/doc/socialShare/socialShare.css +4 -4
  26. package/src/modules/doc/specificationContent/specificationContent.css +1 -1
  27. package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.css +2 -4
  28. package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.html +8 -0
  29. package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.ts +75 -46
  30. package/src/modules/doc/xmlContent/xmlContent.css +7 -8
  31. package/src/modules/doc/xmlContent/xmlContent.html +2 -2
  32. package/src/modules/docHelpers/amfStyle/amfStyle.css +41 -123
  33. package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +6 -9
  34. package/src/modules/docHelpers/status/status.css +6 -2
  35. package/src/modules/docUtils/utils/utils.ts +22 -2
  36. package/src/modules/doc/versionPicker/versionPicker.css +0 -64
  37. package/src/modules/doc/versionPicker/versionPicker.html +0 -40
  38. 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
- }