@salesforcedevs/dw-components 1.3.163-canary.1 → 1.3.170

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 (26) hide show
  1. package/lwc.config.json +1 -5
  2. package/package.json +1 -1
  3. package/src/modules/dw/blogsGrid/blogsGrid.ts +1 -1
  4. package/src/modules/dw/codeSamplesGrid/codeSamplesGrid.ts +31 -36
  5. package/src/modules/dw/contentArchive/contentArchive.types.ts +1 -0
  6. package/src/modules/dw/contentArchive/utils.ts +1 -1
  7. package/src/modules/dw/deSignupForm/deSignupForm.ts +11 -9
  8. package/src/modules/dw/docsGrid/docsGrid.ts +59 -36
  9. package/src/modules/dw/eventsList/eventsList.ts +11 -10
  10. package/src/modules/dw/newsletterForm/newsletterForm.ts +3 -3
  11. package/src/modules/dw/podcastsGrid/podcastsGrid.ts +3 -3
  12. package/src/modules/dw/rcgTable/getTableData.ts +1 -1
  13. package/src/modules/dw/rcgTable/rcgTable.ts +3 -3
  14. package/src/modules/dwUtils/forms/forms.ts +217 -494
  15. package/src/modules/{dwBaseElements → dwUtils}/postsGrid/postsGrid.ts +1 -1
  16. package/src/modules/dw/j2sCardSequence/j2sCardSequence.css +0 -14
  17. package/src/modules/dw/j2sCardSequence/j2sCardSequence.html +0 -37
  18. package/src/modules/dw/j2sCardSequence/j2sCardSequence.ts +0 -418
  19. package/src/modules/dw/j2sCardSequence/mockProps.ts +0 -61
  20. package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.css +0 -76
  21. package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.html +0 -63
  22. package/src/modules/dw/j2sCardSequenceStep/j2sCardSequenceStep.ts +0 -152
  23. package/src/modules/dw/j2sForm/j2sForm.css +0 -69
  24. package/src/modules/dw/j2sForm/j2sForm.html +0 -208
  25. package/src/modules/dw/j2sForm/j2sForm.ts +0 -352
  26. package/src/modules/dw/j2sForm/mockProps.ts +0 -3095
@@ -1,9 +1,9 @@
1
+ import { PostsGrid } from "dwUtils/postsGrid";
1
2
  import { normalizeEpisode } from "dxUtils/normalizers";
2
- import { NormalizedPost, WordpressPost } from "typings/custom";
3
- import { PostsGrid } from "dwBaseElements/postsGrid";
3
+ import { NormalizedPost, WordpressPodcastEpisode } from "typings/custom";
4
4
 
5
5
  export default class PodcastsGrid extends PostsGrid {
6
- normalizePost(post: WordpressPost): NormalizedPost {
6
+ normalizePost(post: WordpressPodcastEpisode): NormalizedPost {
7
7
  return normalizeEpisode(post);
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
1
  export const RCG_URL = "https://rcg-mobility-modeler-artefacts.herokuapp.com";
2
2
 
3
- export const getTableData = () => {
3
+ export const getTableData = (): any => {
4
4
  return fetch(`${RCG_URL}/setupdata.json`).then((res) => {
5
5
  if (res.ok) {
6
6
  return res.json();
@@ -3,15 +3,15 @@ import { getTableData, RCG_URL } from "./getTableData";
3
3
  import altData from "./altData";
4
4
 
5
5
  export default class RCGTable extends LightningElement {
6
- private columnData = null;
7
- private rowData = null;
6
+ private columnData: any[] | null = null;
7
+ private rowData: string[] | null = null;
8
8
  private rcgUrl = RCG_URL;
9
9
 
10
10
  connectedCallback() {
11
11
  this.renderTableData();
12
12
  }
13
13
 
14
- prependLinksWithUrl(data) {
14
+ prependLinksWithUrl(data: any[]) {
15
15
  return data.map((el) => {
16
16
  return {
17
17
  ...el,