@pega/dx-component-builder-sdk 0.24.4 → 0.24.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.
- package/package.json +1 -1
- package/src/constants.js +0 -20
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.scss.mustache +14 -1
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/boolean.component.ts.mustache +5 -6
- package/src/tasks/create/templates/SDK-Angular/field/Boolean/demo.stories.tsx.mustache +10 -0
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.html.mustache +2 -2
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.scss.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/field/DateTime/date-time.component.ts.mustache +8 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal/demo.stories.tsx.mustache +3 -0
- package/src/tasks/create/templates/SDK-Angular/field/Decimal-Percentage/decimal-percentage.component.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Icon-Button-URL/demo.stories.tsx.mustache +42 -41
- package/src/tasks/create/templates/SDK-Angular/field/Picklist/picklist.component.ts.mustache +0 -3
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-Autocomplete/picklist-autocomplete.component.ts.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/field/Picklist-RadioButtons/picklist-radio-buttons.component.ts.mustache +1 -3
- package/src/tasks/create/templates/SDK-Angular/field/Text-Paragraph/text-paragraph.component.ts.mustache +0 -2
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.html.mustache +3 -4
- package/src/tasks/create/templates/SDK-Angular/template/FORM/form.component.ts.mustache +0 -1
- package/src/tasks/create/templates/SDK-Angular/template/FORM-region/form.component.html.mustache +1 -1
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/case.component.ts.mustache +5 -5
- package/src/tasks/create/templates/SDK-Angular/widget/CASE/demo.stories.tsx.mustache +35 -34
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE/demo.stories.tsx.mustache +27 -26
- package/src/tasks/create/templates/SDK-Angular/widget/PAGE-CASE/page-case.component.html.mustache +0 -2
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.html +6 -6
- package/tests/assets/sdk-a/components/create/override-sdk/designSystemExtension/operator/operator.component.ts +4 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/check-box/check-box.component.ts +5 -6
- package/tests/assets/sdk-a/components/create/override-sdk/field/date-time/date-time.component.html +2 -2
- package/tests/assets/sdk-a/components/create/override-sdk/field/date-time/date-time.component.ts +9 -0
- package/tests/assets/sdk-a/components/create/override-sdk/field/percentage/percentage.component.ts +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/field/rich-text/config-ext.json +11 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/assignment/assignment.component.ts +7 -32
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.html +7 -3
- package/tests/assets/sdk-a/components/create/override-sdk/infra/flow-container/flow-container.component.ts +15 -8
- package/tests/assets/sdk-a/components/create/override-sdk/infra/modal-view-container/modal-view-container.component.ts +40 -7
- package/tests/assets/sdk-a/components/create/override-sdk/infra/view/view.component.ts +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/template/banner-page/config-ext.json +10 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/inline-dashboard-page/config-ext.json +10 -0
- package/tests/assets/sdk-a/components/create/override-sdk/template/list-view/list-view.component.ts +1 -1
- package/tests/assets/sdk-a/components/create/override-sdk/template/simple-table-manual/simple-table-manual.component.ts +1 -3
- package/tests/assets/sdk-a/components/create/override-sdk/widget/quick-create/config-ext.json +10 -0
- package/tests/assets/sdk-a/components/create/override-sdk/widget/todo/todo.component.html +2 -1
- package/tests/assets/sdk-a/components/create/override-sdk/widget/todo/todo.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/demo.stories.tsx +10 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.scss +14 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-boolean/pega-dxil-my-boolean.component.ts +5 -6
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.html +2 -2
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.scss +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-date-time/pega-dxil-my-date-time.component.ts +8 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-decimal/demo.stories.tsx +3 -0
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-icon-button-url/demo.stories.tsx +42 -41
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-paragraph/pega-dxil-my-paragraph.component.ts +0 -2
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-percentage/pega-dxil-my-percentage.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-picklist/pega-dxil-my-picklist.component.ts +0 -3
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-radiobuttons/pega-dxil-my-radiobuttons.component.ts +1 -3
- package/tests/assets/sdk-a/components/createAll/custom-sdk/field/pega-dxil-my-searchbox/pega-dxil-my-searchbox.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/pega-dxil-my-form.component.html +3 -4
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-form/pega-dxil-my-form.component.ts +0 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/template/pega-dxil-my-two-column-form/pega-dxil-my-two-column-form.component.html +1 -1
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-case-widget/demo.stories.tsx +35 -34
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-case-widget/pega-dxil-my-case-widget.component.ts +5 -5
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-case-widget/pega-dxil-my-page-case-widget.component.html +0 -2
- package/tests/assets/sdk-a/components/createAll/custom-sdk/widget/pega-dxil-my-page-widget/demo.stories.tsx +27 -26
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/material-case-summary/material-case-summary.component.html +6 -6
- package/tests/assets/sdk-a/components/createAll/override-sdk/designSystemExtension/operator/operator.component.ts +4 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/check-box/check-box.component.ts +5 -6
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/date-time/date-time.component.html +2 -2
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/date-time/date-time.component.ts +9 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/percentage/percentage.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/field/rich-text/config-ext.json +11 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/assignment/assignment.component.ts +7 -32
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.html +7 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/flow-container/flow-container.component.ts +15 -8
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/modal-view-container/modal-view-container.component.ts +40 -7
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/view/view.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/banner-page/config-ext.json +10 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/inline-dashboard-page/config-ext.json +10 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/list-view/list-view.component.ts +1 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/template/simple-table-manual/simple-table-manual.component.ts +1 -3
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/quick-create/config-ext.json +10 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/todo/todo.component.html +2 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/widget/todo/todo.component.ts +1 -1
- package/tests/assets/sdk-r/components/create/custom-constellation/field/Pega_DXIL_MyTestText/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/create/custom-constellation/field/Pega_DXIL_MyTestText/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyBoolean/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyCurrency/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDate/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDateTime/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyDecimal/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyEmail/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +15 -10
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyIconButtonURL/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyInteger/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyParagraph/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPercentage/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPhone/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyPicklist/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyRadiobuttons/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyRadiobuttons/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MySearchbox/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyText/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyText/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTextInput/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyTimeOfDay/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/field/Pega_DXIL_MyURL/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyDetails/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyForm/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyPage/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnDetails/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/template/Pega_DXIL_MyTwoColumnForm/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/demo.stories.tsx +22 -22
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyCaseWidget/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/create-nonce.ts +5 -0
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/demo.stories.tsx +15 -17
- package/tests/assets/sdk-r/components/createAll/custom-constellation/widget/Pega_DXIL_MyPageWidget/index.tsx +1 -0
- package/tests/assets/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/config.json +166 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.html +0 -1
- package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.scss +0 -0
- package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.ts +0 -165
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.html +0 -1
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.scss +0 -0
- package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.ts +0 -165
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/PConnProps.d.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/create-nonce.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/demo.stories.tsx +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/event-utils.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/index.tsx +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/mock.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/styles.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/suggestions-handler.ts +0 -0
- /package/tests/assets/sdk-a/components/createAll/custom-constellation/field/{Pega_DXIL_MyRadioButtons → Pega_DXIL_MyRadiobuttons}/textformat-utils.tsx +0 -0
|
@@ -46,25 +46,23 @@ const worklistData = {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
window.PCore.getDataApiUtils = () => {
|
|
50
|
-
return {
|
|
51
|
-
getData: () => {
|
|
52
|
-
return new Promise(resolve => {
|
|
53
|
-
resolve(worklistData);
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
getDataAsync: () => {
|
|
57
|
-
return new Promise(resolve => {
|
|
58
|
-
resolve(worklistData);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
49
|
export const BasePegaDxilMyPageWidget: Story = args => {
|
|
67
50
|
|
|
51
|
+
window.PCore.getDataApiUtils = () => {
|
|
52
|
+
return {
|
|
53
|
+
getData: () => {
|
|
54
|
+
return new Promise(resolve => {
|
|
55
|
+
resolve(worklistData);
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
getDataAsync: () => {
|
|
59
|
+
return new Promise(resolve => {
|
|
60
|
+
resolve(worklistData);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
68
66
|
const props = {
|
|
69
67
|
...configProps,
|
|
70
68
|
getPConnect: () => {
|
|
@@ -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/sdk-r/components/createAll/custom-sdk/field/Pega_DXIL_MyCurrency/config.json
CHANGED
|
@@ -58,6 +58,34 @@
|
|
|
58
58
|
}
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"label": "Column settings",
|
|
63
|
+
"format": "GROUP",
|
|
64
|
+
"visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'",
|
|
65
|
+
"properties": [
|
|
66
|
+
{
|
|
67
|
+
"name": "columnWidth",
|
|
68
|
+
"label": "Column width",
|
|
69
|
+
"format": "SELECT",
|
|
70
|
+
"source": [
|
|
71
|
+
{
|
|
72
|
+
"key": "auto",
|
|
73
|
+
"value": "Auto"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "custom",
|
|
77
|
+
"value": "Custom"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "width",
|
|
83
|
+
"label": "Width (px)",
|
|
84
|
+
"format": "NUMBER",
|
|
85
|
+
"visibility": "$this.columnWidth == 'custom'"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
61
89
|
{
|
|
62
90
|
"label": "Input settings",
|
|
63
91
|
"format": "GROUP",
|
|
@@ -69,6 +97,12 @@
|
|
|
69
97
|
"format": "BOOLEAN",
|
|
70
98
|
"defaultValue": true
|
|
71
99
|
},
|
|
100
|
+
{
|
|
101
|
+
"name": "alwaysShowISOCode",
|
|
102
|
+
"label": "Show ISO Code",
|
|
103
|
+
"format": "BOOLEAN",
|
|
104
|
+
"defaultValue": false
|
|
105
|
+
},
|
|
72
106
|
{
|
|
73
107
|
"name": "placeholder",
|
|
74
108
|
"label": "Placeholder",
|
|
@@ -81,6 +115,138 @@
|
|
|
81
115
|
}
|
|
82
116
|
]
|
|
83
117
|
},
|
|
118
|
+
{
|
|
119
|
+
"label": "Read-only settings",
|
|
120
|
+
"format": "GROUP",
|
|
121
|
+
"properties": [
|
|
122
|
+
{
|
|
123
|
+
"format": "SELECT",
|
|
124
|
+
"name": "formatter",
|
|
125
|
+
"label": "Format",
|
|
126
|
+
"defaultValue": "defaultCurrency",
|
|
127
|
+
"source": [
|
|
128
|
+
{
|
|
129
|
+
"key": "defaultCurrency",
|
|
130
|
+
"value": "Default"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "Integer",
|
|
134
|
+
"value": "Integer"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "Decimal",
|
|
138
|
+
"value": "Decimal"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"key": "Percentage",
|
|
142
|
+
"value": "Percentage"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"format": "SELECT",
|
|
150
|
+
"name": "currencyDisplay",
|
|
151
|
+
"label": "Currency display",
|
|
152
|
+
"visibility": "(!formatter = Integer)&&(!formatter = Decimal)&&(!formatter = Percentage)",
|
|
153
|
+
"defaultValue": "symbol",
|
|
154
|
+
"source": [
|
|
155
|
+
{
|
|
156
|
+
"key": "symbol",
|
|
157
|
+
"value": "Auto"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"key": "code",
|
|
161
|
+
"value": "Code"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"key": "name",
|
|
165
|
+
"value": "Name"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"format": "SELECT",
|
|
171
|
+
"name": "negative",
|
|
172
|
+
"label": "Negative number display",
|
|
173
|
+
"defaultValue": "minus-sign",
|
|
174
|
+
"visibility": "(!formatter = Integer)&&(!formatter = Decimal)&&(!formatter = Percentage)",
|
|
175
|
+
"source": [
|
|
176
|
+
{
|
|
177
|
+
"key": "minus-sign",
|
|
178
|
+
"value": "Standard"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "parentheses",
|
|
182
|
+
"value": "Accounting"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"format": "SELECT",
|
|
188
|
+
"name": "notation",
|
|
189
|
+
"label": "Notation",
|
|
190
|
+
"visibility": "(!negative = parentheses)&&(!formatter = Percentage)",
|
|
191
|
+
"defaultValue": "standard",
|
|
192
|
+
"source": [
|
|
193
|
+
{
|
|
194
|
+
"key": "standard",
|
|
195
|
+
"value": "Standard"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"key": "compact",
|
|
199
|
+
"value": "Compact"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"format": "NUMBER",
|
|
205
|
+
"name": "decimalPrecision",
|
|
206
|
+
"label": "Decimal places",
|
|
207
|
+
"visibility": "(formatter = Decimal)||(formatter = Percentage)",
|
|
208
|
+
"min": 0,
|
|
209
|
+
"max": 20
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"format": "SELECT",
|
|
213
|
+
"name": "currencyDecimalPrecision",
|
|
214
|
+
"label": "Decimal places shown",
|
|
215
|
+
"visibility": "(!formatter = Integer)&&(!formatter = Decimal)&&(!formatter = Percentage)",
|
|
216
|
+
"defaultValue": "auto",
|
|
217
|
+
"source": [
|
|
218
|
+
{
|
|
219
|
+
"key": "auto",
|
|
220
|
+
"value": "Auto"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"key": "0",
|
|
224
|
+
"value": "None"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"key": "1",
|
|
228
|
+
"value": "1"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"key": "2",
|
|
232
|
+
"value": "2"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"key": "3",
|
|
236
|
+
"value": "3"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"key": "4",
|
|
240
|
+
"value": "4"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "showGroupSeparators",
|
|
246
|
+
"label": "Show thousands separator",
|
|
247
|
+
"format": "BOOLEAN",
|
|
248
|
+
"visibility": "(formatter = Decimal)||(formatter = Integer)"
|
|
249
|
+
},
|
|
84
250
|
{
|
|
85
251
|
"label": "Conditions",
|
|
86
252
|
"format": "GROUP",
|
package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!-- Reference component is all static methods so .html not used -->
|
package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.scss
DELETED
|
File without changes
|
package/tests/assets/sdk-a/components/create/override-sdk/infra/reference/reference.component.ts
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
5
|
-
* Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
|
|
6
|
-
* is totally at your own risk.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'app-reference',
|
|
11
|
-
templateUrl: './reference.component.html',
|
|
12
|
-
styleUrls: ['./reference.component.scss'],
|
|
13
|
-
standalone: true
|
|
14
|
-
})
|
|
15
|
-
export class ReferenceComponent {
|
|
16
|
-
referencedComponent: any = null;
|
|
17
|
-
|
|
18
|
-
/* Used to toggle some class-wide logging */
|
|
19
|
-
private static bLogging = false;
|
|
20
|
-
|
|
21
|
-
constructor() {
|
|
22
|
-
// With new static method approach, this shouldn't be called any more
|
|
23
|
-
window.alert(`in ReferenceComponent constructor!`);
|
|
24
|
-
|
|
25
|
-
console.error(`in ReferenceComponent constructor!`);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// onStateChange and updateSelf methods removed from original implementation
|
|
29
|
-
// when we moved to the static method implementation.
|
|
30
|
-
|
|
31
|
-
// STATIC method to create a normalized PConn (a fully realized View that the 'reference'
|
|
32
|
-
// component refers to) from the given pConn. Has to add in some stuff as in the constructor
|
|
33
|
-
static createFullReferencedViewFromRef(inPConn: any) {
|
|
34
|
-
// BAIL and ERROR if inPConn is NOT a reference!
|
|
35
|
-
if (inPConn.getComponentName() !== 'reference') {
|
|
36
|
-
// debugger;
|
|
37
|
-
|
|
38
|
-
console.error(`Reference component: createFullReferencedViewFromRef inPConn is NOT a reference! ${inPConn.getComponentName()}`);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const theResolvedConfigProps = inPConn.resolveConfigProps(inPConn.getConfigProps());
|
|
42
|
-
|
|
43
|
-
const referenceConfig = { ...inPConn.getComponentConfig() } || {};
|
|
44
|
-
|
|
45
|
-
// Since SDK-A implements Reference as static methods and we don't rely on
|
|
46
|
-
// the Reference component's handling of the visibility prop, we leave it in
|
|
47
|
-
// (and also leaving the others in for now) so the referenced View can act on
|
|
48
|
-
// the visibility prop. (The following 3 lines were carried over from React SDK)
|
|
49
|
-
delete referenceConfig?.name;
|
|
50
|
-
// delete referenceConfig?.type;
|
|
51
|
-
// delete referenceConfig?.visibility;
|
|
52
|
-
|
|
53
|
-
const viewMetadata = inPConn.getReferencedView();
|
|
54
|
-
|
|
55
|
-
if (!viewMetadata) {
|
|
56
|
-
console.log('View not found ', inPConn.getComponentConfig());
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// If we get here, we have metadata for a View component...
|
|
61
|
-
// const referencedComponentName = viewMetadata.type;
|
|
62
|
-
|
|
63
|
-
const viewObject = {
|
|
64
|
-
...viewMetadata,
|
|
65
|
-
config: {
|
|
66
|
-
...viewMetadata.config,
|
|
67
|
-
...referenceConfig
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
if (ReferenceComponent.bLogging) {
|
|
72
|
-
console.log(`Reference: about to call createComponent with pageReference: context: ${theResolvedConfigProps.context}`);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const viewComponent = inPConn.createComponent(viewObject, null, null, {
|
|
76
|
-
pageReference: theResolvedConfigProps.context
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
// updating the referencedComponent should trigger a render
|
|
80
|
-
const newCompPConnect = viewComponent.getPConnect();
|
|
81
|
-
|
|
82
|
-
newCompPConnect.setInheritedConfig({
|
|
83
|
-
...referenceConfig,
|
|
84
|
-
readOnly: theResolvedConfigProps.readOnly ? theResolvedConfigProps.readOnly : false,
|
|
85
|
-
displayMode: theResolvedConfigProps.displayMode ? theResolvedConfigProps.displayMode : null
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
if (ReferenceComponent.bLogging) {
|
|
89
|
-
console.log(
|
|
90
|
-
`Angular Reference component: createFullReferencedViewFromRef -> newCompPConnect configProps: ${JSON.stringify(
|
|
91
|
-
newCompPConnect.getConfigProps()
|
|
92
|
-
)}`
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return newCompPConnect;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// STATIC method that other components can call to normalize
|
|
100
|
-
// a pConn object that might be a 'reference'. If the incoming
|
|
101
|
-
// pConn is a reference, return its dereferenced View PConnect's
|
|
102
|
-
// getPConnect. Otherwise, return the passed in pConn unchanged
|
|
103
|
-
// inPConn = a PConn object (ex: { getPConnect()} )
|
|
104
|
-
static normalizePConn(inPConn: any) {
|
|
105
|
-
// debugger;
|
|
106
|
-
|
|
107
|
-
let returnObj = false;
|
|
108
|
-
let thePConnType = '';
|
|
109
|
-
|
|
110
|
-
if (inPConn.getPConnect) {
|
|
111
|
-
// inPConn is an object (ex: { getPConnect()} ), so we want to return
|
|
112
|
-
// any referenced view as the object containing the
|
|
113
|
-
// the getPConnect function
|
|
114
|
-
returnObj = true;
|
|
115
|
-
thePConnType = inPConn.getPConnect().getComponentName();
|
|
116
|
-
} else {
|
|
117
|
-
// inPConn is an object with the PConnect function, so we want
|
|
118
|
-
// to return any referenced view as the object containing the
|
|
119
|
-
// the c11n function
|
|
120
|
-
returnObj = false;
|
|
121
|
-
thePConnType = inPConn.getComponentName();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (thePConnType === 'reference') {
|
|
125
|
-
if (returnObj) {
|
|
126
|
-
// WAS...
|
|
127
|
-
// const theRefViewPConn = inPConn.getPConnect().getReferencedViewPConnect(true);
|
|
128
|
-
// Now: ALWAYS calling createFullReferencedViewFromRef to have options, PageReference, etc.
|
|
129
|
-
// set correctly in the C11nEnv (PConnect) object
|
|
130
|
-
// debugger;
|
|
131
|
-
let theRefViewPConn = this.createFullReferencedViewFromRef(inPConn.getPConnect());
|
|
132
|
-
// now return its PConnect
|
|
133
|
-
theRefViewPConn = theRefViewPConn.getComponent();
|
|
134
|
-
|
|
135
|
-
// const theFullReference = theRefViewPConn.getPConnect().getFullReference();
|
|
136
|
-
// console.log(`theFullReference: ${theFullReference}`);
|
|
137
|
-
|
|
138
|
-
return theRefViewPConn;
|
|
139
|
-
}
|
|
140
|
-
// console.log(`created theFullRefView full reference: ${theFullRefView.getFullReference()}`);
|
|
141
|
-
// debugger;
|
|
142
|
-
|
|
143
|
-
return this.createFullReferencedViewFromRef(inPConn);
|
|
144
|
-
}
|
|
145
|
-
return inPConn;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// STATIC method that other components can call to normalize
|
|
149
|
-
// an array of pConn objects where any of the children might
|
|
150
|
-
// be a 'reference'. The array returns an array of children
|
|
151
|
-
// where any 'reference' is replaced with its ReferencedView
|
|
152
|
-
// inPConnArray is an array of PConn objects or functions.
|
|
153
|
-
// Its value is passed to normalizePConn
|
|
154
|
-
|
|
155
|
-
static normalizePConnArray(inPConnArray: any) {
|
|
156
|
-
if (!(inPConnArray?.length > 0)) {
|
|
157
|
-
// null or empty array, return what was passed in
|
|
158
|
-
return inPConnArray;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return inPConnArray.map(child => {
|
|
162
|
-
return ReferenceComponent.normalizePConn(child);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!-- Reference component is all static methods so .html not used -->
|
|
File without changes
|
package/tests/assets/sdk-a/components/createAll/override-sdk/infra/reference/reference.component.ts
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
5
|
-
* Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and
|
|
6
|
-
* is totally at your own risk.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'app-reference',
|
|
11
|
-
templateUrl: './reference.component.html',
|
|
12
|
-
styleUrls: ['./reference.component.scss'],
|
|
13
|
-
standalone: true
|
|
14
|
-
})
|
|
15
|
-
export class ReferenceComponent {
|
|
16
|
-
referencedComponent: any = null;
|
|
17
|
-
|
|
18
|
-
/* Used to toggle some class-wide logging */
|
|
19
|
-
private static bLogging = false;
|
|
20
|
-
|
|
21
|
-
constructor() {
|
|
22
|
-
// With new static method approach, this shouldn't be called any more
|
|
23
|
-
window.alert(`in ReferenceComponent constructor!`);
|
|
24
|
-
|
|
25
|
-
console.error(`in ReferenceComponent constructor!`);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// onStateChange and updateSelf methods removed from original implementation
|
|
29
|
-
// when we moved to the static method implementation.
|
|
30
|
-
|
|
31
|
-
// STATIC method to create a normalized PConn (a fully realized View that the 'reference'
|
|
32
|
-
// component refers to) from the given pConn. Has to add in some stuff as in the constructor
|
|
33
|
-
static createFullReferencedViewFromRef(inPConn: any) {
|
|
34
|
-
// BAIL and ERROR if inPConn is NOT a reference!
|
|
35
|
-
if (inPConn.getComponentName() !== 'reference') {
|
|
36
|
-
// debugger;
|
|
37
|
-
|
|
38
|
-
console.error(`Reference component: createFullReferencedViewFromRef inPConn is NOT a reference! ${inPConn.getComponentName()}`);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const theResolvedConfigProps = inPConn.resolveConfigProps(inPConn.getConfigProps());
|
|
42
|
-
|
|
43
|
-
const referenceConfig = { ...inPConn.getComponentConfig() } || {};
|
|
44
|
-
|
|
45
|
-
// Since SDK-A implements Reference as static methods and we don't rely on
|
|
46
|
-
// the Reference component's handling of the visibility prop, we leave it in
|
|
47
|
-
// (and also leaving the others in for now) so the referenced View can act on
|
|
48
|
-
// the visibility prop. (The following 3 lines were carried over from React SDK)
|
|
49
|
-
delete referenceConfig?.name;
|
|
50
|
-
// delete referenceConfig?.type;
|
|
51
|
-
// delete referenceConfig?.visibility;
|
|
52
|
-
|
|
53
|
-
const viewMetadata = inPConn.getReferencedView();
|
|
54
|
-
|
|
55
|
-
if (!viewMetadata) {
|
|
56
|
-
console.log('View not found ', inPConn.getComponentConfig());
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// If we get here, we have metadata for a View component...
|
|
61
|
-
// const referencedComponentName = viewMetadata.type;
|
|
62
|
-
|
|
63
|
-
const viewObject = {
|
|
64
|
-
...viewMetadata,
|
|
65
|
-
config: {
|
|
66
|
-
...viewMetadata.config,
|
|
67
|
-
...referenceConfig
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
if (ReferenceComponent.bLogging) {
|
|
72
|
-
console.log(`Reference: about to call createComponent with pageReference: context: ${theResolvedConfigProps.context}`);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const viewComponent = inPConn.createComponent(viewObject, null, null, {
|
|
76
|
-
pageReference: theResolvedConfigProps.context
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
// updating the referencedComponent should trigger a render
|
|
80
|
-
const newCompPConnect = viewComponent.getPConnect();
|
|
81
|
-
|
|
82
|
-
newCompPConnect.setInheritedConfig({
|
|
83
|
-
...referenceConfig,
|
|
84
|
-
readOnly: theResolvedConfigProps.readOnly ? theResolvedConfigProps.readOnly : false,
|
|
85
|
-
displayMode: theResolvedConfigProps.displayMode ? theResolvedConfigProps.displayMode : null
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
if (ReferenceComponent.bLogging) {
|
|
89
|
-
console.log(
|
|
90
|
-
`Angular Reference component: createFullReferencedViewFromRef -> newCompPConnect configProps: ${JSON.stringify(
|
|
91
|
-
newCompPConnect.getConfigProps()
|
|
92
|
-
)}`
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return newCompPConnect;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// STATIC method that other components can call to normalize
|
|
100
|
-
// a pConn object that might be a 'reference'. If the incoming
|
|
101
|
-
// pConn is a reference, return its dereferenced View PConnect's
|
|
102
|
-
// getPConnect. Otherwise, return the passed in pConn unchanged
|
|
103
|
-
// inPConn = a PConn object (ex: { getPConnect()} )
|
|
104
|
-
static normalizePConn(inPConn: any) {
|
|
105
|
-
// debugger;
|
|
106
|
-
|
|
107
|
-
let returnObj = false;
|
|
108
|
-
let thePConnType = '';
|
|
109
|
-
|
|
110
|
-
if (inPConn.getPConnect) {
|
|
111
|
-
// inPConn is an object (ex: { getPConnect()} ), so we want to return
|
|
112
|
-
// any referenced view as the object containing the
|
|
113
|
-
// the getPConnect function
|
|
114
|
-
returnObj = true;
|
|
115
|
-
thePConnType = inPConn.getPConnect().getComponentName();
|
|
116
|
-
} else {
|
|
117
|
-
// inPConn is an object with the PConnect function, so we want
|
|
118
|
-
// to return any referenced view as the object containing the
|
|
119
|
-
// the c11n function
|
|
120
|
-
returnObj = false;
|
|
121
|
-
thePConnType = inPConn.getComponentName();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (thePConnType === 'reference') {
|
|
125
|
-
if (returnObj) {
|
|
126
|
-
// WAS...
|
|
127
|
-
// const theRefViewPConn = inPConn.getPConnect().getReferencedViewPConnect(true);
|
|
128
|
-
// Now: ALWAYS calling createFullReferencedViewFromRef to have options, PageReference, etc.
|
|
129
|
-
// set correctly in the C11nEnv (PConnect) object
|
|
130
|
-
// debugger;
|
|
131
|
-
let theRefViewPConn = this.createFullReferencedViewFromRef(inPConn.getPConnect());
|
|
132
|
-
// now return its PConnect
|
|
133
|
-
theRefViewPConn = theRefViewPConn.getComponent();
|
|
134
|
-
|
|
135
|
-
// const theFullReference = theRefViewPConn.getPConnect().getFullReference();
|
|
136
|
-
// console.log(`theFullReference: ${theFullReference}`);
|
|
137
|
-
|
|
138
|
-
return theRefViewPConn;
|
|
139
|
-
}
|
|
140
|
-
// console.log(`created theFullRefView full reference: ${theFullRefView.getFullReference()}`);
|
|
141
|
-
// debugger;
|
|
142
|
-
|
|
143
|
-
return this.createFullReferencedViewFromRef(inPConn);
|
|
144
|
-
}
|
|
145
|
-
return inPConn;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// STATIC method that other components can call to normalize
|
|
149
|
-
// an array of pConn objects where any of the children might
|
|
150
|
-
// be a 'reference'. The array returns an array of children
|
|
151
|
-
// where any 'reference' is replaced with its ReferencedView
|
|
152
|
-
// inPConnArray is an array of PConn objects or functions.
|
|
153
|
-
// Its value is passed to normalizePConn
|
|
154
|
-
|
|
155
|
-
static normalizePConnArray(inPConnArray: any) {
|
|
156
|
-
if (!(inPConnArray?.length > 0)) {
|
|
157
|
-
// null or empty array, return what was passed in
|
|
158
|
-
return inPConnArray;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return inPConnArray.map(child => {
|
|
162
|
-
return ReferenceComponent.normalizePConn(child);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|