@pega/custom-dx-components 0.242.20 → 0.242.21
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/package.json +1 -1
- package/src/tasks/build-lib/index.js +82 -32
- package/src/tasks/create/index.js +2 -6
- package/src/tasks/create-all/index.js +2 -5
- package/src/tasks/init/template/package.json.mustache +2 -1
- package/src/tasks/list-lib/index.js +21 -7
- package/src/tasks/publish-lib/index.js +2 -1
- package/src/tasks/rename-lib/index.js +75 -91
- package/src/util.js +16 -0
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +2 -2
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/index.tsx +1 -0
- package/tests/assets/library/components/create/shared/create-nonce.ts +6 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +3 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +23 -24
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -5
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +2 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +15 -15
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +15 -17
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +2 -2
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +6 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +6 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/index.tsx +1 -0
- package/tests/assets/original/components/create/shared/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +23 -24
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -5
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx +2 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +15 -15
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +15 -17
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +3 -5
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.tsx +2 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +6 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/index.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +6 -0
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import { useEffect, useRef, useState, useMemo, type MutableRefObject, type SetSt
|
|
|
4
4
|
import { ComboBox, menuHelpers, debounce, throttle, Button, Icon, withConfiguration, type MenuGroupProps, type MenuItemProps } from '@pega/cosmos-react-core';
|
|
5
5
|
import get from 'lodash.get';
|
|
6
6
|
import type { PConnFieldProps } from '../shared/PConnProps';
|
|
7
|
+
import '../shared/create-nonce';
|
|
7
8
|
|
|
8
9
|
// includes in bundle
|
|
9
10
|
import handleEvent from "./event-utils";
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState, useRef } from 'react';
|
|
2
2
|
import { Input, FieldValueList, Text, EmailDisplay, PhoneDisplay, URLDisplay, withConfiguration } from '@pega/cosmos-react-core';
|
|
3
3
|
import type { PConnFieldProps } from '../shared/PConnProps';
|
|
4
|
+
import '../shared/create-nonce';
|
|
4
5
|
|
|
5
6
|
// include in bundle
|
|
6
7
|
import handleEvent from "./event-utils";
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
|
|
|
2
2
|
import { TimeInput, FieldValueList, DateTimeDisplay, Text, withConfiguration } from '@pega/cosmos-react-core';
|
|
3
3
|
|
|
4
4
|
import type { PConnFieldProps } from '../shared/PConnProps';
|
|
5
|
+
import '../shared/create-nonce';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
// includes in bundle
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Pega_DXIL_MyTwoColumnDetails",
|
|
3
|
-
"label": "My Two Column Details
|
|
4
|
-
"description": "My Two Column Details
|
|
3
|
+
"label": "My Two Column Details",
|
|
4
|
+
"description": "My Two Column Details",
|
|
5
5
|
"organization": "Pega",
|
|
6
6
|
"version": "0.0.1",
|
|
7
7
|
"library": "DXIL",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment, Children, type ReactElement } from 'react';
|
|
2
2
|
import { Grid, Flex, FieldGroup, withConfiguration, type GridContainerProps } from '@pega/cosmos-react-core';
|
|
3
3
|
import type { PConnFieldProps } from '../shared/PConnProps';
|
|
4
|
+
import '../shared/create-nonce';
|
|
4
5
|
import DetailsRender from './DetailsRender';
|
|
5
6
|
import HighlightRender from './HighlightRender';
|
|
6
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Pega_DXIL_MyTwoColumnForm",
|
|
3
|
-
"label": "My Two Column Form
|
|
4
|
-
"description": "My Two Column Form
|
|
3
|
+
"label": "My Two Column Form",
|
|
4
|
+
"description": "My Two Column Form",
|
|
5
5
|
"organization": "Pega",
|
|
6
6
|
"version": "0.0.1",
|
|
7
7
|
"library": "DXIL",
|
package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Grid, Flex, FieldGroup, withConfiguration } from '@pega/cosmos-react-core';
|
|
2
2
|
|
|
3
3
|
import type { PConnFieldProps } from '../shared/PConnProps';
|
|
4
|
+
import '../shared/create-nonce';
|
|
4
5
|
import DetailsRender from './DetailsRender';
|
|
5
6
|
|
|
6
7
|
import StyledPegaDxilMyTwoColumnFormWrapper from './styles';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect, useRef} from "react";
|
|
2
2
|
import { Input, FieldValueList, Text, withConfiguration } from "@pega/cosmos-react-core";
|
|
3
3
|
import type { PConnFieldProps } from '../shared/PConnProps';
|
|
4
|
+
import '../shared/create-nonce';
|
|
4
5
|
|
|
5
6
|
// includes in bundle
|
|
6
7
|
import {formatExists,textFormatter, urlFormatter} from "./text-url";
|
|
@@ -18,36 +18,35 @@ if (!window.PCore) {
|
|
|
18
18
|
window.PCore = {};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
CASE_INFO: {
|
|
24
|
-
CASE_INFO_ID: 'caseInfo.ID'
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
21
|
+
export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
28
22
|
|
|
29
|
-
window.PCore.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
window.PCore.getConstants = () => {
|
|
24
|
+
return {
|
|
25
|
+
CASE_INFO: {
|
|
26
|
+
CASE_INFO_ID: 'caseInfo.ID'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
34
29
|
};
|
|
35
|
-
};
|
|
36
30
|
|
|
37
|
-
window.PCore.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
31
|
+
window.PCore.getLocaleUtils = () => {
|
|
32
|
+
return {
|
|
33
|
+
getLocaleValue: (value: any) => {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
44
37
|
};
|
|
45
|
-
};
|
|
46
38
|
|
|
47
|
-
|
|
39
|
+
window.PCore.getDataApiUtils = () => {
|
|
40
|
+
return {
|
|
41
|
+
getData: () => {
|
|
42
|
+
return new Promise(resolve => {
|
|
43
|
+
resolve(historyData);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
48
|
|
|
49
49
|
const props = {
|
|
50
|
-
|
|
51
50
|
getPConnect: () => {
|
|
52
51
|
return {
|
|
53
52
|
getValue: (value: any) => {
|
|
@@ -71,7 +70,7 @@ export const BasePegaDxilMyCaseWidget: Story = (args: any) => {
|
|
|
71
70
|
resolveConfigProps: () => {/* nothing */}
|
|
72
71
|
};
|
|
73
72
|
}
|
|
74
|
-
};
|
|
73
|
+
};
|
|
75
74
|
|
|
76
75
|
return (
|
|
77
76
|
<>
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { DateTimeInput, FieldValueList, DateTimeDisplay, Text, withConfiguration } from "@pega/cosmos-react-core";
|
|
3
3
|
import type { PConnFieldProps } from './PConnProps';
|
|
4
|
+
import './create-nonce';
|
|
4
5
|
|
|
5
6
|
// includes in bundle
|
|
6
7
|
import DateTimeFormatter from "./date-time";
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import { useState, useEffect, useRef } from 'react';
|
|
|
2
2
|
import { NumberInput, NumberDisplay, CurrencyDisplay, FieldValueList, Text, withConfiguration } from '@pega/cosmos-react-core';
|
|
3
3
|
|
|
4
4
|
import type { PConnFieldProps } from './PConnProps';
|
|
5
|
+
import './create-nonce';
|
|
5
6
|
|
|
6
7
|
// includes in bundle
|
|
7
8
|
import StyledPegaDxilMyDecimalWrapper from './styles';
|
|
@@ -6,8 +6,6 @@ import PegaDxilMyDetails from './index';
|
|
|
6
6
|
import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
|
|
7
7
|
import StatusWorkRenderer from './StatusWork';
|
|
8
8
|
import Operator from './Operator';
|
|
9
|
-
import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
|
|
10
|
-
|
|
11
9
|
|
|
12
10
|
const meta: Meta<typeof PegaDxilMyDetails> = {
|
|
13
11
|
title: 'PegaDxilMyDetails',
|
|
@@ -76,7 +74,7 @@ const renderField = (resolvedProps: any) => {
|
|
|
76
74
|
value={value}
|
|
77
75
|
variant='datetime'
|
|
78
76
|
format='long'
|
|
79
|
-
clockFormat={
|
|
77
|
+
clockFormat={null}
|
|
80
78
|
key={key}
|
|
81
79
|
/>
|
|
82
80
|
);
|
|
@@ -143,7 +141,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
143
141
|
getInheritedProps: () => {
|
|
144
142
|
return pyReviewRaw.config.inheritedProps;
|
|
145
143
|
},
|
|
146
|
-
createComponent:
|
|
144
|
+
createComponent: config => {
|
|
147
145
|
// eslint-disable-next-line default-case
|
|
148
146
|
switch (config.config.value) {
|
|
149
147
|
case '@P .pyStatusWork':
|
|
@@ -186,7 +184,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
|
|
|
186
184
|
getRawMetadata: () => pyReviewRaw.children[0].children[index],
|
|
187
185
|
getConfigProps: () => {},
|
|
188
186
|
resolveConfigProps: () => regionChildrenResolved[index],
|
|
189
|
-
getComponent:
|
|
187
|
+
getComponent: config =>
|
|
190
188
|
props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
|
|
191
189
|
})
|
|
192
190
|
};
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/index.tsx
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Fragment, Children, type ReactElement } from 'react';
|
|
2
2
|
import { Grid, Flex, FieldGroup, withConfiguration, type GridContainerProps } from '@pega/cosmos-react-core';
|
|
3
3
|
import type { PConnFieldProps } from './PConnProps';
|
|
4
|
+
import './create-nonce';
|
|
5
|
+
|
|
4
6
|
import DetailsRender from './DetailsRender';
|
|
5
7
|
import HighlightRender from './HighlightRender';
|
|
6
8
|
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/index.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { Input, EmailDisplay, FieldValueList, Text, URLDisplay, PhoneDisplay, withConfiguration } from '@pega/cosmos-react-core';
|
|
3
3
|
import type { PConnFieldProps } from './PConnProps';
|
|
4
|
+
import './create-nonce';
|
|
4
5
|
|
|
5
6
|
// includes in bundle
|
|
6
7
|
import { suggestionsHandler } from './suggestions-handler';
|
|
@@ -35,23 +35,23 @@ const statelistData = {
|
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
window.PCore.getDataPageUtils = () => {
|
|
39
|
-
return {
|
|
40
|
-
getData: () => {
|
|
41
|
-
return new Promise(resolve => {
|
|
42
|
-
resolve(statelistData);
|
|
43
|
-
});
|
|
44
|
-
},
|
|
45
|
-
getDataAsync: () => {
|
|
46
|
-
return new Promise(resolve => {
|
|
47
|
-
resolve(statelistData);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
|
|
53
38
|
export const BasePegaDxilMyIconButtonUrl: Story = (args: any) => {
|
|
54
39
|
|
|
40
|
+
window.PCore.getDataPageUtils = () => {
|
|
41
|
+
return {
|
|
42
|
+
getData: () => {
|
|
43
|
+
return new Promise(resolve => {
|
|
44
|
+
resolve(statelistData);
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
getDataAsync: () => {
|
|
48
|
+
return new Promise(resolve => {
|
|
49
|
+
resolve(statelistData);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
55
|
const props = {
|
|
56
56
|
countryCode: configProps.countryCode,
|
|
57
57
|
getPConnect: () => {
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/index.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
URLDisplay
|
|
11
11
|
} from '@pega/cosmos-react-core';
|
|
12
12
|
import type { PConnFieldProps } from './PConnProps';
|
|
13
|
+
import './create-nonce';
|
|
13
14
|
|
|
14
15
|
// IMPORTANT
|
|
15
16
|
// To use Icons, need to individually import the icon file form @pega/cosmos-react-core (see path below)
|
|
@@ -3,6 +3,7 @@ import { OneColumnPage as OneColumn, withConfiguration } from '@pega/cosmos-reac
|
|
|
3
3
|
import { ConfigurableLayout } from '@pega/cosmos-react-work'
|
|
4
4
|
// import { registerIcon } from '@pega/cosmos-react-core';
|
|
5
5
|
import type { PConnFieldProps } from './PConnProps';
|
|
6
|
+
import './create-nonce';
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
@@ -45,25 +45,23 @@ const worklistData = {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
window.PCore.getDataApiUtils = () => {
|
|
49
|
-
return {
|
|
50
|
-
getData: () => {
|
|
51
|
-
return new Promise(resolve => {
|
|
52
|
-
resolve(worklistData);
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
getDataAsync: () => {
|
|
56
|
-
return new Promise(resolve => {
|
|
57
|
-
resolve(worklistData);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
48
|
export const BasePegaDxilMyPageWidget: Story = (args: any) => {
|
|
66
49
|
|
|
50
|
+
window.PCore.getDataApiUtils = () => {
|
|
51
|
+
return {
|
|
52
|
+
getData: () => {
|
|
53
|
+
return new Promise(resolve => {
|
|
54
|
+
resolve(worklistData);
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
getDataAsync: () => {
|
|
58
|
+
return new Promise(resolve => {
|
|
59
|
+
resolve(worklistData);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
|
|
67
65
|
const props = {
|
|
68
66
|
...configProps,
|
|
69
67
|
getPConnect: () => {
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
|
|
|
2
2
|
import { withConfiguration, Table } from '@pega/cosmos-react-core';
|
|
3
3
|
import { AppAnnouncement as PegaAppAnnouncement } from '@pega/cosmos-react-work';
|
|
4
4
|
import type { PConnFieldProps } from './PConnProps';
|
|
5
|
+
import './create-nonce';
|
|
5
6
|
|
|
6
7
|
import StyledPegaDxilMyPageWidgetWrapper from './styles';
|
|
7
8
|
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import { useState, useEffect, useRef } from 'react';
|
|
|
2
2
|
import { TextArea as CosmosTextArea, FieldValueList, ParagraphDisplay, Text, EmailDisplay, PhoneDisplay, URLDisplay, withConfiguration } from '@pega/cosmos-react-core';
|
|
3
3
|
|
|
4
4
|
import type { PConnFieldProps } from './PConnProps';
|
|
5
|
+
import './create-nonce';
|
|
5
6
|
|
|
6
7
|
// includes in bundle
|
|
7
8
|
import { suggestionsHandler } from './suggestions-handler';
|