@pega/react-sdk-overrides 0.23.6 → 0.23.7

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.
@@ -58,7 +58,7 @@ function parseDateInISO(value) {
58
58
  return value ? getDateObject(value).toISOString() : value;
59
59
  }
60
60
 
61
- export function format(value, type, options) {
61
+ export function format(value, type, options = {}) {
62
62
  let formattedValue;
63
63
 
64
64
  switch (type?.toLowerCase()) {
@@ -16,35 +16,4 @@ export function compareSdkPCoreVersions() {
16
16
  // eslint-disable-next-line no-console
17
17
  console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);
18
18
 
19
- // JA Testing
20
- // debugger;
21
-
22
- // const svcParams = [
23
- // {
24
- // "field" : "type",
25
- // "value" : "Field"
26
- // },
27
- // {
28
- // "field" : "subtype",
29
- // "value" : "Text",
30
- // }
31
- // ];
32
-
33
- // const options = {};
34
-
35
- // const AssetLoader = PCore.getAssetLoader();
36
-
37
- // AssetLoader
38
- // .getSvcComponentsConfig(svcParams, options)
39
- // .then((response) => {
40
- // if (response?.data?.components?.[0]) {
41
- // console.log(response.data.components[0]);
42
- // }
43
- // throw new Error('bad response');
44
- // })
45
- // .catch(() => {
46
- // throw new Error('no response:');
47
- // });
48
-
49
-
50
19
  }
@@ -35,7 +35,7 @@ import IconButton from '@material-ui/core/IconButton';
35
35
  import CloseIcon from '@material-ui/icons/Close';
36
36
  import { Radio } from '@material-ui/core';
37
37
  import Checkbox from '@material-ui/core/Checkbox';
38
- import { filterData } from '@pega/react-sdk-components/lib/components/templates/SimpleTable/helpers';
38
+ import { filterData } from '@pega/react-sdk-components/lib/components/templates/SimpleTable/simpleTableHelpers';
39
39
  import './ListView.css';
40
40
 
41
41
  const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
@@ -2,7 +2,7 @@ import React, { Children } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
4
  // import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
5
- import NarrowWide from '@pega/react-sdk-components/lib/components/templates/NarrowWide';
5
+ import NarrowWide from '@pega/react-sdk-components/lib/components/templates/NarrowWide/NarrowWide';
6
6
 
7
7
  /*
8
8
  * The wrapper handles knowing how to take in just children and mapping
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- import OneColumn from '@pega/react-sdk-components/lib/components/templates/OneColumn';
4
+ import OneColumn from '@pega/react-sdk-components/lib/components/templates/OneColumn/OneColumn';
5
5
 
6
6
  /*
7
7
  * The wrapper handles knowing how to take in just children
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import FieldGroupTemplate from '@pega/react-sdk-components/lib/components/templates/FieldGroupTemplate/';
3
- import SimpleTableManual from '@pega/react-sdk-components/lib/components/templates/SimpleTableManual';
3
+ import SimpleTableManual from '@pega/react-sdk-components/lib/components/templates/SimpleTable/SimpleTableManual';
4
4
 
5
5
  declare const PCore: any;
6
6
 
@@ -8,7 +8,7 @@ import TableHead from '@material-ui/core/TableHead';
8
8
  import TableRow from '@material-ui/core/TableRow';
9
9
  import Paper from '@material-ui/core/Paper';
10
10
  import { makeStyles } from '@material-ui/core/styles';
11
- import { buildFieldsForTable, filterData } from '@pega/react-sdk-components/lib/components/helpers';
11
+ import { buildFieldsForTable, filterData } from '@pega/react-sdk-components/lib/components/templates/SimpleTable/simpleTableHelpers';
12
12
  import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
13
13
  import Link from '@material-ui/core/Link';
14
14
  import { getReferenceList } from '@pega/react-sdk-components/lib/components/helpers/field-group-utils';
@@ -1,7 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from "react";
3
3
  import ListView from '@pega/react-sdk-components/lib/components/templates/ListView';
4
- import SimpleTable from '@pega/react-sdk-components/lib/components/templates/SimpleTable';
4
+ import SimpleTable from '@pega/react-sdk-components/lib/components/templates/SimpleTable/SimpleTable';
5
5
 
6
6
  import PromotedFilters from '@pega/react-sdk-components/lib/components/templates/PromotedFilters';
7
7
 
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
- // import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
5
- import TwoColumn from '@pega/react-sdk-components/lib/components/templates/TwoColumn';
4
+ import TwoColumn from '@pega/react-sdk-components/lib/components/templates/TwoColumn/TwoColumn';
6
5
 
7
6
  /*
8
7
  * The wrapper handles knowing how to take in just children
@@ -2,7 +2,7 @@ import React, { Children } from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
4
  // import { TwoColumnPage as TwoColumn } from "@pega/cosmos-react-core";
5
- import WideNarrow from '@pega/react-sdk-components/lib/components/templates/WideNarrow';
5
+ import WideNarrow from '@pega/react-sdk-components/lib/components/templates/WideNarrow/WideNarrow';
6
6
 
7
7
  /*
8
8
  * The wrapper handles knowing how to take in just children and mapping
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/react-sdk-overrides",
3
- "version": "0.23.6",
3
+ "version": "0.23.7",
4
4
  "description": "React SDK - Code for overriding components",
5
5
  "_filesComment": "During packing, npm ignores everything NOT in the files list",
6
6
  "files": [