@salesforcedevs/docs-components 1.3.150-alpha → 1.3.150-lwf-ref-alpha2

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 CHANGED
@@ -11,12 +11,14 @@
11
11
  "doc/contentCallout",
12
12
  "doc/contentLayout",
13
13
  "doc/contentMedia",
14
+ "doc/component",
14
15
  "doc/docXmlContent",
15
16
  "doc/header",
16
17
  "doc/heading",
17
18
  "doc/headingAnchor",
18
19
  "doc/overview",
19
20
  "doc/phase",
21
+ "doc/styledOrderedList",
20
22
  "doc/xmlContent"
21
23
  ]
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.150-alpha",
3
+ "version": "1.3.150-lwf-ref-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1242,18 +1242,14 @@ export default class AmfReference extends LightningElement {
1242
1242
  }
1243
1243
  if (!isRedirecting) {
1244
1244
  const currentReferenceUrl = window.location.href;
1245
- console.log("currentReferenceUrl", currentReferenceUrl);
1246
1245
  const referenceMeta =
1247
1246
  this.getMarkdownReferenceMeta(currentReferenceUrl);
1248
- console.log("referenceMeta", referenceMeta);
1249
1247
  const selectedItemRefId =
1250
1248
  this.getReferenceIdFromUrl(currentReferenceUrl);
1251
- console.log("selectedItemRefId", selectedItemRefId);
1252
1249
  const referenceDetails = this.getRefDetailsForGivenTopicMeta(
1253
1250
  selectedItemRefId,
1254
1251
  referenceMeta
1255
1252
  );
1256
- console.log("referenceDtails", referenceDetails);
1257
1253
  if (referenceDetails) {
1258
1254
  this.updateNavTitleMetaTag(referenceDetails.topicTitle);
1259
1255
  }
@@ -0,0 +1,32 @@
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
+ }
@@ -0,0 +1,11 @@
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>
@@ -0,0 +1,22 @@
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;
@@ -0,0 +1,27 @@
1
+ @import "dxHelpers/reset";
2
+
3
+ .list-item{
4
+ display: flex;
5
+ flex: 1;
6
+ flex-direction: row;
7
+ justify-content: center;
8
+ }
9
+
10
+ .circle{
11
+ background: var(--foundation-blue-blue-40, #0B5CAB);
12
+ height: 24px;
13
+ width: 24px;
14
+ border-radius: 50%;
15
+ justify-content: center;
16
+ align-items: center;
17
+ display: flex;
18
+ color: white;
19
+ font-size: 10px;
20
+ }
21
+
22
+ .list-item-content {
23
+ color: var(--text-default, #181818);
24
+ font-family: Open Sans;
25
+ font-size: 16px;
26
+ margin-left: 16px;
27
+ }
@@ -0,0 +1,8 @@
1
+ <template>
2
+ <template for:each={list} for:item="item" for:index="index">
3
+ <div class="list-item" key={item}>
4
+ <div class="circle">{index}</div>
5
+ <p class="list-item-content">{item}</p>
6
+ </div>
7
+ </template>
8
+ </template>
@@ -0,0 +1,18 @@
1
+ import { LightningElement, api } from "lwc";
2
+
3
+ class Component 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 Component;