@pega/react-sdk-components 8.23.11 → 23.1.11
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/LICENSE +201 -0
- package/README.md +17 -0
- package/SECURITY.md +10 -0
- package/lib/bridge/Context/StoreContext.js +3 -3
- package/lib/bridge/Context/StoreContext.js.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.js +24 -47
- package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
- package/lib/bridge/react_pconnect.d.ts.map +1 -1
- package/lib/bridge/react_pconnect.js +17 -28
- package/lib/bridge/react_pconnect.js.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +7 -10
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -9
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
- package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
- package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +32 -33
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +10 -23
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +8 -3
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +25 -14
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +6 -18
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -12
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.d.ts +17 -7
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.js +49 -67
- package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -2
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.js +9 -15
- package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +75 -0
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
- package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.js +17 -17
- package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.d.ts +12 -2
- package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.js +78 -70
- package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
- package/lib/components/field/CancelAlert/index.js.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
- package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.js +13 -13
- package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/field/Currency/Currency.d.ts +6 -1
- package/lib/components/field/Currency/Currency.d.ts.map +1 -1
- package/lib/components/field/Currency/Currency.js +15 -36
- package/lib/components/field/Currency/Currency.js.map +1 -1
- package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
- package/lib/components/field/Currency/currency-utils.js +5 -6
- package/lib/components/field/Currency/currency-utils.js.map +1 -1
- package/lib/components/field/Date/Date.d.ts +5 -1
- package/lib/components/field/Date/Date.d.ts.map +1 -1
- package/lib/components/field/Date/Date.js +15 -9
- package/lib/components/field/Date/Date.js.map +1 -1
- package/lib/components/field/DateTime/DateTime.d.ts +5 -1
- package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
- package/lib/components/field/DateTime/DateTime.js +15 -9
- package/lib/components/field/DateTime/DateTime.js.map +1 -1
- package/lib/components/field/Decimal/Decimal.d.ts +8 -1
- package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
- package/lib/components/field/Decimal/Decimal.js +13 -29
- package/lib/components/field/Decimal/Decimal.js.map +1 -1
- package/lib/components/field/Decimal/index.js.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.js +105 -15
- package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/field/Email/Email.d.ts +5 -1
- package/lib/components/field/Email/Email.d.ts.map +1 -1
- package/lib/components/field/Email/Email.js +12 -11
- package/lib/components/field/Email/Email.js.map +1 -1
- package/lib/components/field/Email/index.js.map +1 -1
- package/lib/components/field/Group/Group.d.ts +13 -0
- package/lib/components/field/Group/Group.d.ts.map +1 -0
- package/lib/components/field/Group/Group.js +15 -0
- package/lib/components/field/Group/Group.js.map +1 -0
- package/lib/components/field/Group/index.d.ts +2 -0
- package/lib/components/field/Group/index.d.ts.map +1 -0
- package/lib/components/field/Group/index.js +2 -0
- package/lib/components/field/Group/index.js.map +1 -0
- package/lib/components/field/Integer/Integer.d.ts +5 -1
- package/lib/components/field/Integer/Integer.d.ts.map +1 -1
- package/lib/components/field/Integer/Integer.js +10 -8
- package/lib/components/field/Integer/Integer.js.map +1 -1
- package/lib/components/field/Percentage/Percentage.d.ts +6 -1
- package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
- package/lib/components/field/Percentage/Percentage.js +28 -29
- package/lib/components/field/Percentage/Percentage.js.map +1 -1
- package/lib/components/field/Phone/Phone.d.ts +5 -1
- package/lib/components/field/Phone/Phone.d.ts.map +1 -1
- package/lib/components/field/Phone/Phone.js +10 -9
- package/lib/components/field/Phone/Phone.js.map +1 -1
- package/lib/components/field/Phone/index.js.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.js +19 -15
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
- package/lib/components/field/RichText/RichText.d.ts +7 -0
- package/lib/components/field/RichText/RichText.d.ts.map +1 -0
- package/lib/components/field/RichText/RichText.js +54 -0
- package/lib/components/field/RichText/RichText.js.map +1 -0
- package/lib/components/field/RichText/index.d.ts +2 -0
- package/lib/components/field/RichText/index.d.ts.map +1 -0
- package/lib/components/field/RichText/index.js +2 -0
- package/lib/components/field/RichText/index.js.map +1 -0
- package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
- package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
- package/lib/components/field/ScalarList/ScalarList.js +32 -0
- package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
- package/lib/components/field/ScalarList/index.d.ts +2 -0
- package/lib/components/field/ScalarList/index.d.ts.map +1 -0
- package/lib/components/field/ScalarList/index.js +2 -0
- package/lib/components/field/ScalarList/index.js.map +1 -0
- package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
- package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
- package/lib/components/field/SemanticLink/SemanticLink.js +11 -19
- package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
- package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
- package/lib/components/field/SemanticLink/utils.js +8 -8
- package/lib/components/field/SemanticLink/utils.js.map +1 -1
- package/lib/components/field/TextArea/TextArea.d.ts +6 -1
- package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/field/TextArea/TextArea.js +8 -6
- package/lib/components/field/TextArea/TextArea.js.map +1 -1
- package/lib/components/field/TextContent/TextContent.d.ts +7 -1
- package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
- package/lib/components/field/TextContent/TextContent.js +2 -2
- package/lib/components/field/TextContent/TextContent.js.map +1 -1
- package/lib/components/field/TextInput/TextInput.d.ts +6 -1
- package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
- package/lib/components/field/TextInput/TextInput.js +10 -7
- package/lib/components/field/TextInput/TextInput.js.map +1 -1
- package/lib/components/field/TextInput/index.js.map +1 -1
- package/lib/components/field/Time/Time.d.ts +5 -1
- package/lib/components/field/Time/Time.d.ts.map +1 -1
- package/lib/components/field/Time/Time.js +11 -9
- package/lib/components/field/Time/Time.js.map +1 -1
- package/lib/components/field/URL/URL.d.ts +5 -1
- package/lib/components/field/URL/URL.d.ts.map +1 -1
- package/lib/components/field/URL/URL.js +10 -8
- package/lib/components/field/URL/URL.js.map +1 -1
- package/lib/components/field/URL/index.js.map +1 -1
- package/lib/components/field/UserReference/UserReference.d.ts +20 -41
- package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
- package/lib/components/field/UserReference/UserReference.js +17 -46
- package/lib/components/field/UserReference/UserReference.js.map +1 -1
- package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
- package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
- package/lib/components/helpers/attachmentHelpers.d.ts +3 -3
- package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
- package/lib/components/helpers/attachmentHelpers.js +6 -6
- package/lib/components/helpers/attachmentHelpers.js.map +1 -1
- package/lib/components/helpers/case-utils.d.ts.map +1 -1
- package/lib/components/helpers/case-utils.js +5 -4
- package/lib/components/helpers/case-utils.js.map +1 -1
- package/lib/components/helpers/common-utils.d.ts +2 -1
- package/lib/components/helpers/common-utils.d.ts.map +1 -1
- package/lib/components/helpers/common-utils.js +4 -1
- package/lib/components/helpers/common-utils.js.map +1 -1
- package/lib/components/helpers/data_page.d.ts.map +1 -1
- package/lib/components/helpers/data_page.js +2 -3
- package/lib/components/helpers/data_page.js.map +1 -1
- package/lib/components/helpers/date-format-utils.d.ts +1 -6
- package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
- package/lib/components/helpers/date-format-utils.js.map +1 -1
- package/lib/components/helpers/event-utils.d.ts +1 -1
- package/lib/components/helpers/event-utils.d.ts.map +1 -1
- package/lib/components/helpers/event-utils.js +3 -3
- package/lib/components/helpers/event-utils.js.map +1 -1
- package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
- package/lib/components/helpers/field-group-utils.js +3 -7
- package/lib/components/helpers/field-group-utils.js.map +1 -1
- package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Boolean.js +9 -20
- package/lib/components/helpers/formatters/Boolean.js.map +1 -1
- package/lib/components/helpers/formatters/Currency.d.ts +6 -6
- package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Currency.js +13 -14
- package/lib/components/helpers/formatters/Currency.js.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.d.ts +69 -320
- package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
- package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
- package/lib/components/helpers/formatters/Date.d.ts +5 -5
- package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Date.js +20 -20
- package/lib/components/helpers/formatters/Date.js.map +1 -1
- package/lib/components/helpers/formatters/common.d.ts +1 -1
- package/lib/components/helpers/formatters/common.d.ts.map +1 -1
- package/lib/components/helpers/formatters/common.js +1 -1
- package/lib/components/helpers/formatters/common.js.map +1 -1
- package/lib/components/helpers/formatters/index.d.ts +12 -12
- package/lib/components/helpers/formatters/index.d.ts.map +1 -1
- package/lib/components/helpers/formatters/index.js +25 -19
- package/lib/components/helpers/formatters/index.js.map +1 -1
- package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
- package/lib/components/helpers/reactContextHelpers.js +1 -1
- package/lib/components/helpers/reactContextHelpers.js.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts +3 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.js +48 -54
- package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
- package/lib/components/helpers/state-utils.d.ts.map +1 -1
- package/lib/components/helpers/state-utils.js +6 -8
- package/lib/components/helpers/state-utils.js.map +1 -1
- package/lib/components/helpers/template-utils.d.ts +7 -3
- package/lib/components/helpers/template-utils.d.ts.map +1 -1
- package/lib/components/helpers/template-utils.js +2 -2
- package/lib/components/helpers/template-utils.js.map +1 -1
- package/lib/components/helpers/utils.d.ts +1 -1
- package/lib/components/helpers/utils.d.ts.map +1 -1
- package/lib/components/helpers/utils.js +3 -8
- package/lib/components/helpers/utils.js.map +1 -1
- package/lib/components/helpers/versionHelpers.d.ts +6 -0
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
- package/lib/components/helpers/versionHelpers.js +7 -1
- package/lib/components/helpers/versionHelpers.js.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.js +11 -27
- package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
- package/lib/components/infra/ActionButtons/index.js.map +1 -1
- package/lib/components/infra/Assignment/Assignment.d.ts +9 -16
- package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
- package/lib/components/infra/Assignment/Assignment.js +71 -74
- package/lib/components/infra/Assignment/Assignment.js.map +1 -1
- package/lib/components/infra/Assignment/index.js.map +1 -1
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +7 -15
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
- package/lib/components/infra/AssignmentCard/AssignmentCard.js +6 -20
- package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
- package/lib/components/infra/AssignmentCard/index.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +10 -20
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +63 -192
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
- package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -17
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +179 -172
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
- package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
- package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
- package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
- package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
- package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
- package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
- package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
- package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
- package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
- package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/SimpleView/index.js +2 -0
- package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +24 -44
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/helpers.d.ts +2 -0
- package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
- package/lib/components/infra/Containers/helpers.js +7 -0
- package/lib/components/infra/Containers/helpers.js.map +1 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -20
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.js +15 -33
- package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts +8 -13
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.js +11 -22
- package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
- package/lib/components/infra/DeferLoad/index.js.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +17 -26
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.css +11 -15
- package/lib/components/infra/MultiStep/MultiStep.d.ts +10 -18
- package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.js +32 -97
- package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
- package/lib/components/infra/MultiStep/index.js.map +1 -1
- package/lib/components/infra/NavBar/NavBar.css +103 -105
- package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
- package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
- package/lib/components/infra/NavBar/NavBar.js +19 -66
- package/lib/components/infra/NavBar/NavBar.js.map +1 -1
- package/lib/components/infra/Reference/Reference.d.ts +8 -17
- package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
- package/lib/components/infra/Reference/Reference.js +5 -17
- package/lib/components/infra/Reference/Reference.js.map +1 -1
- package/lib/components/infra/Region/Region.d.ts +4 -8
- package/lib/components/infra/Region/Region.d.ts.map +1 -1
- package/lib/components/infra/Region/Region.js +2 -7
- package/lib/components/infra/Region/Region.js.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.d.ts +13 -20
- package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.js +41 -80
- package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
- package/lib/components/infra/RootContainer/index.js.map +1 -1
- package/lib/components/infra/Stages/Stages.d.ts +5 -8
- package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
- package/lib/components/infra/Stages/Stages.js +19 -27
- package/lib/components/infra/Stages/Stages.js.map +1 -1
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +13 -17
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
- package/lib/components/infra/View/View.d.ts +13 -17
- package/lib/components/infra/View/View.d.ts.map +1 -1
- package/lib/components/infra/View/View.js +10 -32
- package/lib/components/infra/View/View.js.map +1 -1
- package/lib/components/template/AppShell/AppShell.css +22 -23
- package/lib/components/template/AppShell/AppShell.d.ts +20 -16
- package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/template/AppShell/AppShell.js +27 -45
- package/lib/components/template/AppShell/AppShell.js.map +1 -1
- package/lib/components/template/BannerPage/BannerPage.d.ts +12 -24
- package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
- package/lib/components/template/BannerPage/BannerPage.js +7 -25
- package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -8
- package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.js +48 -12
- package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
- package/lib/components/template/CaseView/CaseView.d.ts +10 -23
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/template/CaseView/CaseView.js +22 -58
- package/lib/components/template/CaseView/CaseView.js.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -15
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -19
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.d.ts +10 -17
- package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.js +10 -28
- package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/template/DataReference/DataReference.d.ts +15 -30
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReference.js +35 -72
- package/lib/components/template/DataReference/DataReference.js.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
- package/lib/components/template/DefaultForm/DefaultForm.d.ts +7 -11
- package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.js +5 -15
- package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
- package/lib/components/template/Details/Details/Details.d.ts +7 -15
- package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
- package/lib/components/template/Details/Details/Details.js +8 -21
- package/lib/components/template/Details/Details/Details.js.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -16
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +6 -23
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -15
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +9 -22
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -15
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +9 -22
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +10 -0
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +45 -0
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
- package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
- package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
- package/lib/components/template/Details/DynamicTabs/index.js +2 -0
- package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +11 -26
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -8
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -14
- package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -16
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +9 -17
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
- package/lib/components/template/ListPage/ListPage.d.ts +5 -13
- package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
- package/lib/components/template/ListPage/ListPage.js +7 -11
- package/lib/components/template/ListPage/ListPage.js.map +1 -1
- package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
- package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
- package/lib/components/template/ListView/ListView.d.ts +15 -8
- package/lib/components/template/ListView/ListView.d.ts.map +1 -1
- package/lib/components/template/ListView/ListView.js +168 -258
- package/lib/components/template/ListView/ListView.js.map +1 -1
- package/lib/components/template/ListView/hooks.d.ts.map +1 -1
- package/lib/components/template/ListView/hooks.js +4 -6
- package/lib/components/template/ListView/hooks.js.map +1 -1
- package/lib/components/template/ListView/utils.d.ts +45 -1
- package/lib/components/template/ListView/utils.d.ts.map +1 -1
- package/lib/components/template/ListView/utils.js +165 -32
- package/lib/components/template/ListView/utils.js.map +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +5 -16
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +11 -2
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -15
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +9 -22
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +6 -2
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +8 -15
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +7 -18
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +5 -8
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -13
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +5 -8
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +5 -8
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -7
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +9 -14
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js +14 -27
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +62 -13
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +24 -2
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +120 -130
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -29
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +15 -33
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +8 -29
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
- package/lib/components/template/SubTabs/SubTabs.d.ts +5 -11
- package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
- package/lib/components/template/SubTabs/SubTabs.js +7 -17
- package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.js +2 -4
- package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +6 -12
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +15 -24
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +5 -8
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +6 -12
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +15 -21
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +11 -2
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +3 -11
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -15
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -26
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +6 -2
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +8 -15
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +7 -17
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.d.ts +18 -1
- package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
- package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +9 -17
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +13 -37
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
- package/lib/components/widget/Attachment/Attachment.css +60 -1
- package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
- package/lib/components/widget/Attachment/Attachment.js +277 -343
- package/lib/components/widget/Attachment/Attachment.js.map +1 -1
- package/lib/components/widget/Attachment/index.js.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.js +38 -36
- package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
- package/lib/components/widget/CaseHistory/index.js.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +9 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +121 -140
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
- package/lib/components/widget/Followers/Followers.d.ts +5 -6
- package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
- package/lib/components/widget/Followers/Followers.js +10 -25
- package/lib/components/widget/Followers/Followers.js.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js +59 -29
- package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts +8 -1
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
- package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
- package/lib/components/widget/SummaryItem/index.js.map +1 -1
- package/lib/components/widget/SummaryList/SummaryList.d.ts +8 -1
- package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
- package/lib/components/widget/SummaryList/SummaryList.js +6 -3
- package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
- package/lib/components/widget/ToDo/ToDo.css +4 -4
- package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
- package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
- package/lib/components/widget/ToDo/ToDo.js +26 -98
- package/lib/components/widget/ToDo/ToDo.js.map +1 -1
- package/lib/components_map.d.ts +2 -2
- package/lib/components_map.d.ts.map +1 -1
- package/lib/components_map.js +4 -2
- package/lib/components_map.js.map +1 -1
- package/lib/doc/KeyReleaseUpdates.md +39 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
- package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
- package/lib/hooks/useAfterInitialEffect.js +16 -0
- package/lib/hooks/useAfterInitialEffect.js.map +1 -0
- package/lib/hooks/useConsolidatedRef.d.ts +9 -0
- package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
- package/lib/hooks/useConsolidatedRef.js +30 -0
- package/lib/hooks/useConsolidatedRef.js.map +1 -0
- package/lib/hooks/useUID.d.ts +8 -0
- package/lib/hooks/useUID.d.ts.map +1 -0
- package/lib/hooks/useUID.js +14 -0
- package/lib/hooks/useUID.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/sdk-local-component-map.js +2 -2
- package/lib/sdk-pega-component-map.d.ts +21 -1
- package/lib/sdk-pega-component-map.js +112 -92
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/lib/types/PConnProps.d.ts +41 -0
- package/package.json +5 -2
- package/lib/components/helpers/auth.d.ts +0 -16
- package/lib/components/helpers/auth.d.ts.map +0 -1
- package/lib/components/helpers/auth.js +0 -437
- package/lib/components/helpers/auth.js.map +0 -1
- package/lib/components/helpers/authManager.d.ts +0 -18
- package/lib/components/helpers/authManager.d.ts.map +0 -1
- package/lib/components/helpers/authManager.js +0 -592
- package/lib/components/helpers/authManager.js.map +0 -1
- package/lib/components/helpers/config_access.d.ts +0 -3
- package/lib/components/helpers/config_access.d.ts.map +0 -1
- package/lib/components/helpers/config_access.js +0 -261
- package/lib/components/helpers/config_access.js.map +0 -1
|
@@ -5,14 +5,45 @@ const PAGELIST = '!PL!';
|
|
|
5
5
|
export const formatConstants = {
|
|
6
6
|
WorkStatus: 'WorkStatus',
|
|
7
7
|
Integer: 'Integer',
|
|
8
|
-
WorkLink: 'WorkLink'
|
|
8
|
+
WorkLink: 'WorkLink'
|
|
9
9
|
};
|
|
10
|
+
class DataApi {
|
|
11
|
+
mappedPropertyToOriginalProperty;
|
|
12
|
+
originalPropertyToMappedProperty;
|
|
13
|
+
constructor() {
|
|
14
|
+
this.originalPropertyToMappedProperty = {};
|
|
15
|
+
this.mappedPropertyToOriginalProperty = {};
|
|
16
|
+
this.setPropertyMaps = this.setPropertyMaps.bind(this);
|
|
17
|
+
this.getMappedProperty = this.getMappedProperty.bind(this);
|
|
18
|
+
this.getOriginalProperty = this.getOriginalProperty.bind(this);
|
|
19
|
+
}
|
|
20
|
+
setPropertyMaps(originalToMappedPropertyObj = {}, mappedToOriginalPropertyObj = {}) {
|
|
21
|
+
this.originalPropertyToMappedProperty = {
|
|
22
|
+
...this.originalPropertyToMappedProperty,
|
|
23
|
+
...originalToMappedPropertyObj
|
|
24
|
+
};
|
|
25
|
+
this.mappedPropertyToOriginalProperty = {
|
|
26
|
+
...this.mappedPropertyToOriginalProperty,
|
|
27
|
+
...mappedToOriginalPropertyObj
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
getMappedProperty(propertyName) {
|
|
31
|
+
return this.originalPropertyToMappedProperty[propertyName] ?? propertyName;
|
|
32
|
+
}
|
|
33
|
+
getOriginalProperty(propertyName) {
|
|
34
|
+
return this.mappedPropertyToOriginalProperty[propertyName] ?? propertyName;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
10
37
|
export async function getContext(componentConfig) {
|
|
11
|
-
const { promisesArray = []
|
|
38
|
+
const { promisesArray = [] // array of promises which can be invoked paralelly,
|
|
12
39
|
} = componentConfig;
|
|
13
40
|
const promisesResponseArray = await Promise.all(promisesArray);
|
|
41
|
+
const dataApi = new DataApi();
|
|
14
42
|
return {
|
|
15
43
|
promisesResponseArray,
|
|
44
|
+
setPropertyMaps: dataApi.setPropertyMaps,
|
|
45
|
+
getMappedProperty: dataApi.getMappedProperty,
|
|
46
|
+
getOriginalProperty: dataApi.getOriginalProperty
|
|
16
47
|
};
|
|
17
48
|
}
|
|
18
49
|
/**
|
|
@@ -41,13 +72,13 @@ export function getFieldNameFromEmbeddedFieldName(propertyName) {
|
|
|
41
72
|
* @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields.
|
|
42
73
|
*/
|
|
43
74
|
export function updateMetaEmbeddedFieldID(metaFields) {
|
|
44
|
-
return metaFields.forEach(
|
|
75
|
+
return metaFields.forEach(metaField => {
|
|
45
76
|
if (metaField.fieldID?.startsWith(PAGE) || metaField.fieldID?.startsWith(PAGELIST)) {
|
|
46
77
|
metaField.fieldID = getFieldNameFromEmbeddedFieldName(metaField.fieldID);
|
|
47
78
|
}
|
|
48
79
|
});
|
|
49
80
|
}
|
|
50
|
-
export const isEmbeddedField =
|
|
81
|
+
export const isEmbeddedField = field => {
|
|
51
82
|
if (field?.startsWith('@')) {
|
|
52
83
|
field = field.substring(field.indexOf(' ') + 1);
|
|
53
84
|
if (field[0] === '.')
|
|
@@ -55,6 +86,87 @@ export const isEmbeddedField = (field) => {
|
|
|
55
86
|
}
|
|
56
87
|
return field?.indexOf('.') > 0;
|
|
57
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* [isPageListProperty]
|
|
91
|
+
* Description - checking if propertyName is pageList or not
|
|
92
|
+
* @ignore
|
|
93
|
+
* @param {string} propertyName PropertyName
|
|
94
|
+
* @returns {boolean} true if property is pageList else false
|
|
95
|
+
*
|
|
96
|
+
* @example <caption>Example for isPageListProperty </caption>
|
|
97
|
+
* isPageListProperty('!PL!Employees.Name') return true
|
|
98
|
+
* isPageListProperty('!P!Employees.Name') return false
|
|
99
|
+
* isPageListProperty('Name') return false
|
|
100
|
+
*/
|
|
101
|
+
export function isPageListProperty(propertyName) {
|
|
102
|
+
return propertyName.startsWith(PAGELIST);
|
|
103
|
+
}
|
|
104
|
+
export const isPageListInPath = (propertyName, currentClassID) => {
|
|
105
|
+
if (!propertyName.includes('.')) {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
const [first, ...rest] = propertyName.split('.');
|
|
109
|
+
const metadata = PCore.getMetadataUtils().getPropertyMetadata(first, currentClassID);
|
|
110
|
+
if (metadata?.type === 'Page List') {
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
return isPageListInPath(rest.join('.'), metadata?.pageClass);
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* [getEmbeddedFieldName]
|
|
117
|
+
* Description - converting normal field name to embedded field starting with !P! or !PL!
|
|
118
|
+
* @ignore
|
|
119
|
+
* @param {string} propertyName Field name
|
|
120
|
+
* @param {string} classID classID of datapage
|
|
121
|
+
* @returns {string} returns converted string with !P! or !PL! and :
|
|
122
|
+
*
|
|
123
|
+
* @example <caption>Example for getEmbeddedFieldName </caption>
|
|
124
|
+
* For page property, getEmbeddedFieldName('Organisation.Name') return '!P!Organisation:Name'
|
|
125
|
+
* For pageList property, getEmbeddedFieldName('Employees.Name') return '!PL!Employees:Name'
|
|
126
|
+
*/
|
|
127
|
+
export function getEmbeddedFieldName(propertyName, classID) {
|
|
128
|
+
let value = propertyName;
|
|
129
|
+
if (isPageListInPath(value, classID)) {
|
|
130
|
+
value = `!PL!${value.replace(/\./g, ':')}`;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
value = `!P!${value.replace(/\./g, ':')}`;
|
|
134
|
+
}
|
|
135
|
+
return value;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* [preparePropertyMaps]
|
|
139
|
+
* Description - preparing maps for property names and set it in dataApi context
|
|
140
|
+
* @ignore
|
|
141
|
+
* @param {Array} fields fields array
|
|
142
|
+
* @param {string} classID classID of datapage
|
|
143
|
+
* @param {string} context dataApi context
|
|
144
|
+
* @returns {boolean} true if pageListProperty is present
|
|
145
|
+
*/
|
|
146
|
+
export function preparePropertyMaps(fields, classID, context) {
|
|
147
|
+
const { setPropertyMaps } = context;
|
|
148
|
+
const maps = fields.reduce((acc, field) => {
|
|
149
|
+
let { value } = field.config;
|
|
150
|
+
if (value.startsWith('@')) {
|
|
151
|
+
value = value.substring(value.indexOf(' ') + 1);
|
|
152
|
+
if (value[0] === '.')
|
|
153
|
+
value = value.substring(1);
|
|
154
|
+
}
|
|
155
|
+
let name = value;
|
|
156
|
+
// Preparing name for embedded property
|
|
157
|
+
if (isEmbeddedField(name)) {
|
|
158
|
+
name = getEmbeddedFieldName(name, classID);
|
|
159
|
+
}
|
|
160
|
+
if (isPageListProperty(name) && !acc[2]) {
|
|
161
|
+
acc[2] = true;
|
|
162
|
+
}
|
|
163
|
+
acc[0][value] = name;
|
|
164
|
+
acc[1][name] = value;
|
|
165
|
+
return acc;
|
|
166
|
+
}, [{}, {}, false]);
|
|
167
|
+
setPropertyMaps(maps[0], maps[1]);
|
|
168
|
+
return maps[2];
|
|
169
|
+
}
|
|
58
170
|
/**
|
|
59
171
|
* [getConfigEmbeddedFieldsMeta]
|
|
60
172
|
* Description - Get the metadata for configured embedded fields
|
|
@@ -65,13 +177,14 @@ export const isEmbeddedField = (field) => {
|
|
|
65
177
|
*/
|
|
66
178
|
export function getConfigEmbeddedFieldsMeta(configFields, classID) {
|
|
67
179
|
const configEmbeddedFieldsMeta = [];
|
|
68
|
-
configFields.forEach(
|
|
180
|
+
configFields.forEach(field => {
|
|
69
181
|
let value = field;
|
|
70
182
|
if (isEmbeddedField(value)) {
|
|
71
183
|
// conversion Page.PageList[].property => Page.PageList.property
|
|
72
184
|
if (value.includes('[')) {
|
|
73
185
|
value = value.substring(0, value.indexOf('[')) + value.substring(value.indexOf(']') + 1);
|
|
74
186
|
}
|
|
187
|
+
// @ts-ignore - Expected 3 arguments, but got 2.
|
|
75
188
|
const meta = PCore.getMetadataUtils().getEmbeddedPropertyMetadata(value, classID);
|
|
76
189
|
meta.fieldID = field;
|
|
77
190
|
configEmbeddedFieldsMeta.push(meta);
|
|
@@ -88,8 +201,8 @@ export function getConfigEmbeddedFieldsMeta(configFields, classID) {
|
|
|
88
201
|
*/
|
|
89
202
|
export function mergeConfigEmbeddedFieldsMeta(configEmbeddedFieldsMeta, metaFields) {
|
|
90
203
|
const mergedMetaFields = [...metaFields];
|
|
91
|
-
configEmbeddedFieldsMeta.forEach(
|
|
92
|
-
const fieldMeta = metaFields.find(
|
|
204
|
+
configEmbeddedFieldsMeta.forEach(configFieldMeta => {
|
|
205
|
+
const fieldMeta = metaFields.find(metaField => metaField.fieldID === configFieldMeta.fieldID);
|
|
93
206
|
if (!fieldMeta)
|
|
94
207
|
mergedMetaFields.push(configFieldMeta);
|
|
95
208
|
});
|
|
@@ -106,7 +219,7 @@ const oldToNewFieldTypeMapping = {
|
|
|
106
219
|
* @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields.
|
|
107
220
|
*/
|
|
108
221
|
function updateFieldType(metaFields) {
|
|
109
|
-
metaFields.forEach(
|
|
222
|
+
metaFields.forEach(metaField => {
|
|
110
223
|
if (metaField.type)
|
|
111
224
|
metaField.type = oldToNewFieldTypeMapping[metaField.type] || metaField.type;
|
|
112
225
|
});
|
|
@@ -128,7 +241,7 @@ function getPresetMetaAttribute(attribute) {
|
|
|
128
241
|
* @returns {Array} List of fields with updated meta objects.
|
|
129
242
|
*/
|
|
130
243
|
function generateViewMetaData(rawFields, classID, showField) {
|
|
131
|
-
return rawFields.map(
|
|
244
|
+
return rawFields.map(item => getDefaultViewMeta(item, classID, showField));
|
|
132
245
|
}
|
|
133
246
|
/**
|
|
134
247
|
* [getConfigFields]
|
|
@@ -142,7 +255,7 @@ function generateViewMetaData(rawFields, classID, showField) {
|
|
|
142
255
|
*/
|
|
143
256
|
function getConfigFields(configFields, primaryFields, metaFields, classID) {
|
|
144
257
|
const presetConfigFields = configFields;
|
|
145
|
-
const primaryFieldsViewIndex = presetConfigFields.findIndex(
|
|
258
|
+
const primaryFieldsViewIndex = presetConfigFields.findIndex(field => field.config.value === 'pyPrimaryFields');
|
|
146
259
|
if (!primaryFields || !primaryFields.length) {
|
|
147
260
|
if (primaryFieldsViewIndex < 0)
|
|
148
261
|
return presetConfigFields;
|
|
@@ -151,10 +264,10 @@ function getConfigFields(configFields, primaryFields, metaFields, classID) {
|
|
|
151
264
|
}
|
|
152
265
|
if (primaryFieldsViewIndex > -1) {
|
|
153
266
|
// list of uncommon fields - non overlap of primary fields grouped view and independent entity columns of primary type
|
|
154
|
-
const uncommonFieldsList = primaryFields.filter(
|
|
267
|
+
const uncommonFieldsList = primaryFields.filter(primaryField => !presetConfigFields.some(presetConfigField => presetConfigField.config.value.split('.')[1] === primaryField));
|
|
155
268
|
const uncommonFieldsRawMeta = [];
|
|
156
|
-
uncommonFieldsList.forEach(
|
|
157
|
-
const uncommonFieldMeta = metaFields.find(
|
|
269
|
+
uncommonFieldsList.forEach(uncommonField => {
|
|
270
|
+
const uncommonFieldMeta = metaFields.find(metaField => metaField.fieldID === uncommonField);
|
|
158
271
|
if (uncommonFieldMeta)
|
|
159
272
|
uncommonFieldsRawMeta.push(uncommonFieldMeta);
|
|
160
273
|
});
|
|
@@ -199,14 +312,14 @@ export function getTableConfigFromPresetMeta(presetMeta, isMetaWithPresets, getP
|
|
|
199
312
|
filterExpression = presetMeta.config.filterExpression;
|
|
200
313
|
[fieldsMeta] = presetMeta.children;
|
|
201
314
|
if (presetMeta.timelineTitle &&
|
|
202
|
-
!fieldsMeta.children.find(
|
|
315
|
+
!fieldsMeta.children.find(fieldMeta => {
|
|
203
316
|
return fieldMeta?.config?.value === presetMeta.timelineTitle?.config?.value;
|
|
204
317
|
})) {
|
|
205
318
|
const { type, config } = presetMeta.timelineTitle;
|
|
206
319
|
fieldsMeta.children.push({ type, config: { ...config, show: false } });
|
|
207
320
|
}
|
|
208
321
|
if (presetMeta.timelineDate &&
|
|
209
|
-
!fieldsMeta.children.find(
|
|
322
|
+
!fieldsMeta.children.find(fieldMeta => {
|
|
210
323
|
return fieldMeta?.config?.value === presetMeta.timelineDate?.config?.value;
|
|
211
324
|
})) {
|
|
212
325
|
const { type, config } = presetMeta.timelineDate;
|
|
@@ -219,7 +332,7 @@ export function getTableConfigFromPresetMeta(presetMeta, isMetaWithPresets, getP
|
|
|
219
332
|
configFields = getConfigFields(fieldsMeta
|
|
220
333
|
.getPConnect()
|
|
221
334
|
.getChildren()
|
|
222
|
-
?.map(
|
|
335
|
+
?.map(child => {
|
|
223
336
|
return child.getPConnect().getRawMetadata();
|
|
224
337
|
}), primaryFields, metaFields, classID);
|
|
225
338
|
}
|
|
@@ -247,7 +360,7 @@ export function getTableConfigFromPresetMeta(presetMeta, isMetaWithPresets, getP
|
|
|
247
360
|
function getReportColumns(response) {
|
|
248
361
|
const { data: { data: reportColumns } } = response;
|
|
249
362
|
const reportColumnsSet = new Set();
|
|
250
|
-
reportColumns?.forEach(
|
|
363
|
+
reportColumns?.forEach(item => {
|
|
251
364
|
let val = item.pyFieldName;
|
|
252
365
|
// Remove '.' from index 0 only, if '.' is present
|
|
253
366
|
if (val[0] === '.') {
|
|
@@ -284,7 +397,7 @@ function getConfigFieldValue(config) {
|
|
|
284
397
|
*/
|
|
285
398
|
function prepareConfigFields(configFields, pushToComponentsList) {
|
|
286
399
|
const configFieldSet = new Set();
|
|
287
|
-
configFields.forEach(
|
|
400
|
+
configFields.forEach(item => {
|
|
288
401
|
pushToComponentsList(item.type);
|
|
289
402
|
const val = getConfigFieldValue(item.config);
|
|
290
403
|
configFieldSet.add(val);
|
|
@@ -300,7 +413,7 @@ function prepareConfigFields(configFields, pushToComponentsList) {
|
|
|
300
413
|
* @returns {object} config with its field value equal to fieldID, which means an authored field
|
|
301
414
|
*/
|
|
302
415
|
function findAuthoredField(configFields, fieldID) {
|
|
303
|
-
return configFields.find(
|
|
416
|
+
return configFields.find(configField => {
|
|
304
417
|
const val = getConfigFieldValue(configField.config);
|
|
305
418
|
return val === fieldID;
|
|
306
419
|
});
|
|
@@ -367,7 +480,7 @@ function isAnExtraField(configFields, configFieldSet, reportColumnsSet, item, cl
|
|
|
367
480
|
*/
|
|
368
481
|
function prepareExtraFields(metaFields, configFields, configFieldSet, reportColumnsSet, classID, showDynamicFields) {
|
|
369
482
|
// Filter all the extra fields
|
|
370
|
-
const extraFileds = metaFields.filter(
|
|
483
|
+
const extraFileds = metaFields.filter(item => {
|
|
371
484
|
return isAnExtraField(configFields, configFieldSet, reportColumnsSet, item, classID, showDynamicFields);
|
|
372
485
|
});
|
|
373
486
|
return generateViewMetaData(extraFileds, classID, false);
|
|
@@ -417,15 +530,15 @@ export function initializeColumns(fields = [], getMappedProperty = null) {
|
|
|
417
530
|
fieldType: field.config.fieldType,
|
|
418
531
|
meta: {
|
|
419
532
|
...field
|
|
420
|
-
}
|
|
533
|
+
}
|
|
421
534
|
};
|
|
422
535
|
populateRenderingOptions(name, config, field);
|
|
423
536
|
return config;
|
|
424
537
|
});
|
|
425
538
|
}
|
|
426
|
-
export const getItemKey =
|
|
539
|
+
export const getItemKey = fields => {
|
|
427
540
|
let itemKey;
|
|
428
|
-
if (fields.findIndex(
|
|
541
|
+
if (fields.findIndex(field => field.id === 'pyGUID') > -1) {
|
|
429
542
|
itemKey = 'pyGUID';
|
|
430
543
|
}
|
|
431
544
|
else {
|
|
@@ -435,7 +548,7 @@ export const getItemKey = (fields) => {
|
|
|
435
548
|
};
|
|
436
549
|
export function preparePatchQueryFields(fields, isDataObject = false, classID = '') {
|
|
437
550
|
const queryFields = [];
|
|
438
|
-
fields.forEach(
|
|
551
|
+
fields.forEach(field => {
|
|
439
552
|
const patchFields = [];
|
|
440
553
|
if (field.cellRenderer === 'WorkLink') {
|
|
441
554
|
if (field.customObject && field.customObject.isAssignmentLink) {
|
|
@@ -452,7 +565,7 @@ export function preparePatchQueryFields(fields, isDataObject = false, classID =
|
|
|
452
565
|
else if (isDataObject) {
|
|
453
566
|
const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);
|
|
454
567
|
const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);
|
|
455
|
-
dataPageKeys?.forEach(
|
|
568
|
+
dataPageKeys?.forEach(item => (item.isAlternateKeyStorage ? patchFields.push(item.linkedField) : patchFields.push(item.keyName)));
|
|
456
569
|
}
|
|
457
570
|
else {
|
|
458
571
|
patchFields.push('pyID');
|
|
@@ -460,14 +573,27 @@ export function preparePatchQueryFields(fields, isDataObject = false, classID =
|
|
|
460
573
|
patchFields.push('pxObjClass');
|
|
461
574
|
}
|
|
462
575
|
}
|
|
463
|
-
patchFields.forEach(
|
|
464
|
-
if (!queryFields.find(
|
|
576
|
+
patchFields.forEach(k => {
|
|
577
|
+
if (!queryFields.find(q => q === k)) {
|
|
465
578
|
queryFields.push(k);
|
|
466
579
|
}
|
|
467
580
|
});
|
|
468
581
|
});
|
|
469
582
|
return queryFields;
|
|
470
583
|
}
|
|
584
|
+
/**
|
|
585
|
+
* Update the renderer type for the properties of type Page.
|
|
586
|
+
*/
|
|
587
|
+
export function updatePageFieldsConfig(configFields, parentClassID) {
|
|
588
|
+
return configFields.forEach(item => {
|
|
589
|
+
const { type, config: { value } } = item;
|
|
590
|
+
const propertyName = PCore.getAnnotationUtils().getPropertyName(value);
|
|
591
|
+
if (isEmbeddedField(value) && !isPageListInPath(propertyName, parentClassID)) {
|
|
592
|
+
item.config.componentType = type;
|
|
593
|
+
item.type = 'PagePropertyRenderer';
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}
|
|
471
597
|
export const readContextResponse = async (context, params) => {
|
|
472
598
|
const { getPConnect, apiContext, setListContext, children, showDynamicFields, referenceList, isDataObject } = params;
|
|
473
599
|
const { promisesResponseArray, apiContext: otherContext } = context;
|
|
@@ -489,11 +615,13 @@ export const readContextResponse = async (context, params) => {
|
|
|
489
615
|
const compositeKeys = [];
|
|
490
616
|
const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);
|
|
491
617
|
const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);
|
|
492
|
-
dataPageKeys?.forEach(
|
|
618
|
+
dataPageKeys?.forEach(item => (item.isAlternateKeyStorage ? compositeKeys.push(item.linkedField) : compositeKeys.push(item.keyName)));
|
|
493
619
|
if (compositeKeys.length) {
|
|
494
620
|
otherContext.setCompositeKeys(compositeKeys);
|
|
495
621
|
}
|
|
496
|
-
otherContext
|
|
622
|
+
if (otherContext) {
|
|
623
|
+
otherContext.fetchRowActionDetails = null;
|
|
624
|
+
}
|
|
497
625
|
}
|
|
498
626
|
const presetArray = [];
|
|
499
627
|
const rawMetadata = getPConnect().getRawMetadata().config;
|
|
@@ -505,7 +633,7 @@ export const readContextResponse = async (context, params) => {
|
|
|
505
633
|
let tableConfig;
|
|
506
634
|
childrenIterator?.forEach((presetMeta, index) => {
|
|
507
635
|
const { configFields } = getTableConfigFromPresetMeta({ ...presetMeta, label: resolvedPresets[index].label }, isMetaWithPresets, getPConnect, classID, primaryFields, metaFields);
|
|
508
|
-
const pushToComponentsList =
|
|
636
|
+
const pushToComponentsList = fieldType => {
|
|
509
637
|
listOfComponents.push(fieldType);
|
|
510
638
|
};
|
|
511
639
|
// read report columns response - in case of nonqueryable ignore the response and rely only on the fields configured at authoing time in presets
|
|
@@ -519,7 +647,12 @@ export const readContextResponse = async (context, params) => {
|
|
|
519
647
|
const mergedMetaFields = mergeConfigEmbeddedFieldsMeta(configEmbeddedFieldsMeta, metaFields);
|
|
520
648
|
const extraFields = prepareExtraFields(mergedMetaFields, // passing new merged meta fields which has meta of configured embedded fields of current preset
|
|
521
649
|
configFields, configFieldSet, reportColumnsSet, classID, showDynamicFields);
|
|
522
|
-
|
|
650
|
+
if (isQueryable) {
|
|
651
|
+
updatePageFieldsConfig(configFields, classID);
|
|
652
|
+
preparePropertyMaps([...configFields, ...extraFields], classID, context);
|
|
653
|
+
}
|
|
654
|
+
const { getMappedProperty } = context;
|
|
655
|
+
fields = initializeColumns([...configFields, ...extraFields], getMappedProperty);
|
|
523
656
|
const patchQueryFields = preparePatchQueryFields(fields, isDataObject, classID);
|
|
524
657
|
const itemKey = getItemKey(fields);
|
|
525
658
|
tableConfig = { fieldDefs: fields, patchQueryFields, itemKey, isQueryable };
|
|
@@ -529,7 +662,7 @@ export const readContextResponse = async (context, params) => {
|
|
|
529
662
|
meta,
|
|
530
663
|
presets: presetArray,
|
|
531
664
|
apiContext: {
|
|
532
|
-
...apiContext
|
|
665
|
+
...apiContext
|
|
533
666
|
}
|
|
534
667
|
});
|
|
535
668
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/template/ListView/utils.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,mBAAmB,CAAC;AAKnD,MAAM,cAAc,GAAG,eAAe,CAAC;AACvC,MAAM,IAAI,GAAG,KAAK,CAAC;AACnB,MAAM,QAAQ,GAAG,MAAM,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,eAAe;IAC9C,MAAM,EACJ,aAAa,GAAG,EAAE,EAAE,oDAAoD;MACzE,GAAG,eAAe,CAAC;IACpB,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC/D,OAAO;QACL,qBAAqB;KACtB,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACF,MAAM,UAAU,iCAAiC,CAAC,YAAY;IAC7D,IAAI,KAAK,GAAG,YAAY,CAAC;IACzB,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QACxD,KAAK,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QACpD,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;KAClC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACF,MAAM,UAAU,yBAAyB,CAAC,UAAU;IACnD,OAAO,UAAU,CAAC,OAA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AG,2BAA2B,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QACtF,MAAM,gBAAgB,GAAG,6BAA6B,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;QAE7F,MAAM,WAAW,GAAG,kBAAkB,CACpC,gBAAgB,EAAE,gGAAgG;QAClH,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,iBAAiB,CAClB,CAAC;QAGF,MAAM,GAAG,iBAAiB,CACxB,CAAC,GAAG,YAAY,EAAE,GAAG,WAAW,CAAC,CAClC,CAAC;QACF,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAChF,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QACnC,WAAW,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAC,CAAA;IAC5E,CAAC,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,WAAW,CAAC;IACzB,cAAc,CAAC;QACb,IAAI;QACJ,OAAO,EAAE,WAAW;QACpB,UAAU,EAAE;YACV,GAAG,UAAU;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import getDefaultViewMeta from './DefaultViewMeta';\n\n// Remove this and use \"real\" PCore type once .d.ts is fixed (currently shows 5 errors)\ndeclare const PCore: any;\n\nconst USER_REFERENCE = 'UserReference';\nconst PAGE = '!P!';\nconst PAGELIST = '!PL!';\n\nexport const formatConstants = {\n WorkStatus: 'WorkStatus',\n Integer: 'Integer',\n WorkLink: 'WorkLink',\n};\n\nexport async function getContext(componentConfig) {\n const {\n promisesArray = [], // array of promises which can be invoked paralelly,\n } = componentConfig;\n const promisesResponseArray = await Promise.all(promisesArray);\n return {\n promisesResponseArray,\n };\n}\n\n/**\n * [getFieldNameFromEmbeddedFieldName]\n * Description - converting embeddedField name starting with !P! or !PL! to normal field\n * @ignore\n * @param {string} propertyName EmbeddedField name starting with !P! or !PL!\n * @returns {string} returns converted string without !P! or !PL! and :\n *\n * @example <caption>Example for getFieldNameFromEmbeddedFieldName </caption>\n * getFieldNameFromEmbeddedFieldName('!P!Organisation:Name') return 'Organisation.Name'\n * getFieldNameFromEmbeddedFieldName('!PL!Employees:Name') return 'Employees.Name'\n */\n export function getFieldNameFromEmbeddedFieldName(propertyName) {\n let value = propertyName;\n if (value.startsWith(PAGE) || value.startsWith(PAGELIST)) {\n value = value.substring(value.lastIndexOf('!') + 1);\n value = value.replace(/:/g, '.');\n }\n return value;\n}\n\n/**\n * [updateMetaEmbeddedFieldID]\n * Description - If the fieldID in meta starts with '!P!' or '!PL!' and contains ':' then replace them with .(dot)\n * @ignore\n * @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields.\n */\n export function updateMetaEmbeddedFieldID(metaFields) {\n return metaFields.forEach((metaField) => {\n if (metaField.fieldID?.startsWith(PAGE) || metaField.fieldID?.startsWith(PAGELIST)) {\n metaField.fieldID = getFieldNameFromEmbeddedFieldName(metaField.fieldID);\n }\n });\n}\n\nexport const isEmbeddedField = (field) => {\n if (field?.startsWith('@')) {\n field = field.substring(field.indexOf(' ') + 1);\n if (field[0] === '.') field = field.substring(1);\n }\n return field?.indexOf('.') > 0;\n};\n\n/**\n * [getConfigEmbeddedFieldsMeta]\n * Description - Get the metadata for configured embedded fields\n * @ignore\n * @param {Set} configFields Set of config fields\n * @param {string} classID clasID of datapage\n * @returns {Array} Metadata of configured embedded fields\n */\nexport function getConfigEmbeddedFieldsMeta(configFields, classID) {\n const configEmbeddedFieldsMeta:Array<any> = [];\n configFields.forEach((field) => {\n let value = field;\n if (isEmbeddedField(value)) {\n // conversion Page.PageList[].property => Page.PageList.property\n if (value.includes('[')) {\n value = value.substring(0, value.indexOf('[')) + value.substring(value.indexOf(']') + 1);\n }\n const meta = PCore.getMetadataUtils().getEmbeddedPropertyMetadata(value, classID);\n meta.fieldID = field;\n configEmbeddedFieldsMeta.push(meta);\n }\n });\n return configEmbeddedFieldsMeta;\n}\n\n/**\n * [mergeConfigEmbeddedFieldsMeta]\n * Description - Get the metadata for configured embedded fields\n * @ignore\n * @param {Array} configEmbeddedFieldsMeta config fields metadata.\n * @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields\n */\nexport function mergeConfigEmbeddedFieldsMeta(configEmbeddedFieldsMeta, metaFields) {\n const mergedMetaFields = [...metaFields];\n configEmbeddedFieldsMeta.forEach((configFieldMeta) => {\n const fieldMeta = metaFields.find((metaField) => metaField.fieldID === configFieldMeta.fieldID);\n if (!fieldMeta) mergedMetaFields.push(configFieldMeta);\n });\n return mergedMetaFields;\n}\n\nconst oldToNewFieldTypeMapping = {\n 'Date Time': 'Date & time',\n Date: 'Date only'\n};\n\n/**\n * [updateFieldType]\n * Description - Updates the field type if its changed in the new implementation. Such mapping is maintained in oldToNewFieldTypeMapping.\n * @ignore\n * @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields.\n */\n function updateFieldType(metaFields) {\n metaFields.forEach((metaField) => {\n if (metaField.type) metaField.type = oldToNewFieldTypeMapping[metaField.type] || metaField.type;\n });\n}\n\nfunction getPresetMetaAttribute(attribute) {\n const {\n type,\n config: { label, value }\n } = attribute;\n return {\n type,\n name: value.startsWith('@') ? value.substring(4) : value,\n label: label.startsWith('@') ? label.substring(3) : label\n };\n}\n\n/**\n * [generateViewMetaData]\n * Description - Returns a list of metaobjects of the fields provided.\n * @ignore\n * @param {Array} rawFields List of fields to update meta for\n * @param {string} classID Class ID from the response\n * @returns {Array} List of fields with updated meta objects.\n */\n function generateViewMetaData(rawFields, classID, showField) {\n return rawFields.map((item) => getDefaultViewMeta(item, classID, showField));\n}\n\n/**\n * [getConfigFields]\n * Description - Returns list of config fields with primary fields meta updated.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {Array} primaryFields List of Primary Fields\n * @param {Array} metaFields Metadata of all fields\n * @param {string} classID Class ID from the response\n * @returns {Array} List of all fields with their meta updated.\n */\n function getConfigFields(configFields, primaryFields, metaFields, classID) {\n const presetConfigFields = configFields;\n const primaryFieldsViewIndex = presetConfigFields.findIndex((field) => field.config.value === 'pyPrimaryFields');\n if (!primaryFields || !primaryFields.length) {\n if (primaryFieldsViewIndex < 0) return presetConfigFields;\n\n presetConfigFields.splice(primaryFieldsViewIndex, 1);\n\n return presetConfigFields;\n }\n\n if (primaryFieldsViewIndex > -1) {\n // list of uncommon fields - non overlap of primary fields grouped view and independent entity columns of primary type\n const uncommonFieldsList = primaryFields.filter(\n (primaryField) =>\n !presetConfigFields.some((presetConfigField) => presetConfigField.config.value.split('.')[1] === primaryField)\n );\n const uncommonFieldsRawMeta:Array<any> = [];\n uncommonFieldsList.forEach((uncommonField) => {\n const uncommonFieldMeta= metaFields.find((metaField) => metaField.fieldID === uncommonField);\n if (uncommonFieldMeta) uncommonFieldsRawMeta.push(uncommonFieldMeta);\n });\n const uncommonFieldsConfigMeta = generateViewMetaData(uncommonFieldsRawMeta, classID, true);\n\n presetConfigFields.splice(primaryFieldsViewIndex, 1, ...uncommonFieldsConfigMeta);\n }\n return presetConfigFields;\n}\n\n/**\n * [getTableConfigFromPresetMeta]\n * Description - Get the table config from the presets meta.\n * @ignore\n * @param {object} presetMeta Presets meta\n * @param {boolean} isMetaWithPresets true if meta has presets else false\n * @param {Function} getPConnect Callback to get the PConnect object\n * @param {string} classID Class ID from the response\n * @param {Array} primaryFields List of Primary Fields\n * @param {Array} metaFields List of all metafields\n * @returns {object} Table config object\n */\n export function getTableConfigFromPresetMeta(\n presetMeta,\n isMetaWithPresets,\n getPConnect,\n classID,\n primaryFields,\n metaFields\n) {\n let presetId;\n let presetName;\n let cardHeader;\n let secondaryText;\n let timelineDate;\n let timelineTitle;\n let timelineStatus;\n let timelineIcon;\n let { filterExpression } = getPConnect().getRawMetadata().config;\n let fieldsMeta;\n let configFields;\n if (isMetaWithPresets) {\n presetId = presetMeta.id;\n presetName = presetMeta.label;\n cardHeader = presetMeta.cardHeader && getPresetMetaAttribute(presetMeta.cardHeader);\n secondaryText = presetMeta.secondaryText && getPresetMetaAttribute(presetMeta.secondaryText);\n timelineDate = presetMeta.timelineDate && getPresetMetaAttribute(presetMeta.timelineDate);\n timelineTitle = presetMeta.timelineTitle && getPresetMetaAttribute(presetMeta.timelineTitle);\n timelineStatus = presetMeta.timelineStatus && getPresetMetaAttribute(presetMeta.timelineStatus);\n timelineIcon = presetMeta.timelineIcon && getPresetMetaAttribute(presetMeta.timelineIcon);\n filterExpression = presetMeta.config.filterExpression;\n [fieldsMeta] = presetMeta.children;\n if (\n presetMeta.timelineTitle &&\n !fieldsMeta.children.find((fieldMeta) => {\n return fieldMeta?.config?.value === presetMeta.timelineTitle?.config?.value;\n })\n ) {\n const { type, config } = presetMeta.timelineTitle;\n fieldsMeta.children.push({ type, config: { ...config, show: false } });\n }\n if (\n presetMeta.timelineDate &&\n !fieldsMeta.children.find((fieldMeta) => {\n return fieldMeta?.config?.value === presetMeta.timelineDate?.config?.value;\n })\n ) {\n const { type, config } = presetMeta.timelineDate;\n fieldsMeta.children.push({ type, config: { ...config, show: false } });\n }\n configFields = getConfigFields(fieldsMeta.children, primaryFields, metaFields, classID);\n } else {\n fieldsMeta = presetMeta.props;\n configFields = getConfigFields(\n fieldsMeta\n .getPConnect()\n .getChildren()\n ?.map((child) => {\n return child.getPConnect().getRawMetadata();\n }),\n primaryFields,\n metaFields,\n classID\n );\n }\n return {\n presetId,\n presetName,\n cardHeader,\n secondaryText,\n timelineDate,\n timelineTitle,\n timelineStatus,\n timelineIcon,\n filterExpression,\n fieldsMeta,\n configFields\n };\n}\n\n/**\n * [getReportColumns]\n * Description - Returns a set of columns from the report response.\n * @ignore\n * @param {object} response -\n * @returns {Set} Set of columns from the report response\n */\n function getReportColumns(response) {\n const {\n data: { data: reportColumns }\n } = response;\n const reportColumnsSet = new Set();\n reportColumns?.forEach((item) => {\n let val = item.pyFieldName;\n // Remove '.' from index 0 only, if '.' is present\n if (val[0] === '.') {\n val = val.substring(1);\n }\n reportColumnsSet.add(val);\n });\n return reportColumnsSet;\n}\n\n/**\n * [getConfigFieldValue]\n * Descritpion - Returns a valid value for a configuration field. Remove any annotations and also \".\"\n * @ignore\n * @param {object} config\n * config.value - Raw value\n * @returns {string} value - Value with out any annotations or \".\"\n */\n function getConfigFieldValue(config) {\n let { value } = config;\n if (value.startsWith('@')) {\n value = value.substring(value.indexOf(' ') + 1);\n if (value[0] === '.') value = value.substring(1);\n }\n return value;\n}\n\n/**\n * [prepareConfigFields]\n * Description - Prepares a set of configuration fields and pushes each config type to a set using the callback parameter.\n * @ignore\n * @param {object} configFields List of Authored fields\n * @param {Function} pushToComponentsList Callback to push the field type to a set.\n * @returns {Set} configFieldSet\n */\nfunction prepareConfigFields(configFields, pushToComponentsList) {\n const configFieldSet = new Set();\n configFields.forEach((item) => {\n pushToComponentsList(item.type);\n const val = getConfigFieldValue(item.config);\n configFieldSet.add(val);\n });\n return configFieldSet;\n}\n\n/**\n * [findAuthoredField]\n * Description - Finds an authored field from yhe list of config fields.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {string} fieldID Filter\n * @returns {object} config with its field value equal to fieldID, which means an authored field\n */\n function findAuthoredField(configFields, fieldID) {\n return configFields.find((configField) => {\n const val = getConfigFieldValue(configField.config);\n return val === fieldID;\n });\n}\n\n/**\n * [findAndUpdateAuthoredFieldConfig]\n * Description - Find the authored field, and update its config.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {object} item Field item to copy displayAs and category information\n * @param {string} classId classID from the response\n */\n function findAndUpdateAuthoredFieldConfig(configFields, item, classId) {\n const authoredField = findAuthoredField(configFields, item.fieldID);\n if (authoredField?.config) {\n if (item.displayAs) {\n authoredField.config.displayAs = item.displayAs;\n }\n authoredField.config.classID = item.classID ?? classId;\n\n if (authoredField.type === USER_REFERENCE) {\n authoredField.config.associationID = item.associationID || item.fieldID;\n }\n authoredField.config.category = item.category;\n // FieldType identifies whether the field is configured as pickList\n authoredField.config.fieldType = item.fieldType;\n // type defined on the property rule,\n // used for the picklist field to assign the appropriate type\n authoredField.config.propertyType = item.dataType || item.type;\n }\n}\n\n/**\n * [isAnExtraField]\n * Description - Returns true if the field is an extra field. Extra field is the one which is not authored but part of the report.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {Set} configFieldSet Set if Authored filed values\n * @param {Set} reportColumnsSet Set of columns from the report\n * @param {object} item Config field item\n * @param {string} classId Class ID from the response\n * @param {boolean} showDynamicFields Flag indicating whether fields are fetched dynamically at runtime\n * @returns {boolean} true If the field is an extra field else false.\n */\n function isAnExtraField(configFields, configFieldSet, reportColumnsSet, item, classId, showDynamicFields) {\n // Is the field already present in authoring metadata?\n // Mutates config fields to copy displayAs and category information\n if (configFieldSet.has(item.fieldID)) {\n findAndUpdateAuthoredFieldConfig(configFields, item, classId);\n return false;\n }\n\n // If field is not authored and not part of report columns then discard it\n return showDynamicFields || !!reportColumnsSet.has(item.fieldID);\n}\n\n/**\n * [prepareExtraFields]\n * Description - Returns a list of extra fields with their meta updated.\n * @ignore\n * @param {Array} metaFields List of fields\n * @param {Array} configFields List of Authored fields\n * @param {Set} configFieldSet Set if Authored filed values\n * @param {Set} reportColumnsSet Set of columns from the report\n * @param {string} classID Class ID from the response\n * @param {boolean} showDynamicFields Flag indicating whether fields are fetched dynamically at runtime\n * @returns {Array} List of extra fields with their meta updated.\n */\n function prepareExtraFields(\n metaFields,\n configFields,\n configFieldSet,\n reportColumnsSet,\n classID,\n showDynamicFields\n) {\n // Filter all the extra fields\n const extraFileds = metaFields.filter((item) => {\n return isAnExtraField(configFields, configFieldSet, reportColumnsSet, item, classID, showDynamicFields);\n });\n return generateViewMetaData(extraFileds, classID, false);\n // Update the meta object of each of the extra fields.\n}\n\nconst AssignDashObjects = ['Assign-Worklist', 'Assign-WorkBasket'];\n\nfunction populateRenderingOptions(name, config, field) {\n const shouldDisplayAsSemanticLink = 'displayAsLink' in field.config && field.config.displayAsLink;\n if (shouldDisplayAsSemanticLink) {\n config.customObject.isAssignmentLink = AssignDashObjects.includes(field.config.classID);\n if (field.config.value.startsWith('@CA')) {\n config.customObject.isAssociation = true;\n }\n config.cellRenderer = formatConstants.WorkLink;\n } else if (name === 'pyStatusWork' || name === 'pyAssignmentStatus') {\n config.cellRenderer = formatConstants.WorkStatus;\n } else if (name === 'pxUrgencyWork') {\n config.cellRenderer = formatConstants.Integer;\n }\n}\nexport function initializeColumns(\n fields:Array<any> = [],\n getMappedProperty:any = null\n) {\n return fields.map((field, originalColIndex) => {\n let name = field.config.value;\n\n if (name.startsWith('@')) {\n name = name.substring(name.indexOf(' ') + 1);\n if (name[0] === '.') name = name.substring(1);\n }\n name = getMappedProperty?.(name) ?? name;\n\n let label = field.config.label || field.config.caption;\n const { show = true, displayAs } = field.config;\n if (label.startsWith('@')) {\n label = label.substring(3);\n }\n\n const config = {\n name,\n label,\n show,\n classID: field.config.classID,\n id: field.id || name || originalColIndex,\n displayAs,\n associationID: field.config.associationID,\n ...(field.config.classID && { category: field.config.category }),\n customObject: {},\n fieldType: field.config.fieldType,\n meta: {\n ...field\n },\n };\n\n populateRenderingOptions(name, config, field);\n\n return config;\n });\n}\n\nexport const getItemKey = (fields) => {\n let itemKey;\n if (fields.findIndex((field) => field.id === 'pyGUID') > -1) {\n itemKey = 'pyGUID';\n } else {\n itemKey = 'pzInsKey';\n }\n return itemKey;\n};\n\nexport function preparePatchQueryFields(fields, isDataObject = false, classID = '') {\n const queryFields:Array<any> = [];\n fields.forEach((field) => {\n const patchFields:Array<any> = [];\n if (field.cellRenderer === 'WorkLink') {\n if (field.customObject && field.customObject.isAssignmentLink) {\n const associationName = field.name.includes(':') ? `${field.name.split(':')[0]}:` : '';\n patchFields.push(`${associationName}pzInsKey`);\n patchFields.push(`${associationName}pxRefObjectClass`);\n } else if (field.customObject && field.customObject.isAssociation) {\n const associationCategory = field.name.split(':')[0];\n patchFields.push(`${associationCategory}:pyID`);\n patchFields.push(`${associationCategory}:pzInsKey`);\n patchFields.push(`${associationCategory}:pxObjClass`);\n } else if (isDataObject) {\n const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);\n const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);\n dataPageKeys?.forEach((item) =>\n item.isAlternateKeyStorage ? patchFields.push(item.linkedField) : patchFields.push(item.keyName)\n );\n } else {\n patchFields.push('pyID');\n patchFields.push('pzInsKey');\n patchFields.push('pxObjClass');\n }\n }\n patchFields.forEach((k) => {\n if (!queryFields.find((q) => q === k)) {\n queryFields.push(k);\n }\n });\n });\n\n return queryFields;\n}\n\nexport const readContextResponse = async (context, params) => {\n const {\n getPConnect,\n apiContext,\n setListContext,\n children,\n showDynamicFields,\n referenceList,\n isDataObject\n } = params;\n const { promisesResponseArray, apiContext: otherContext } = context;\n // eslint-disable-next-line sonarjs/no-unused-collection\n const listOfComponents:Array<any> = [];\n const {\n data: { fields: metaFields, classID, isQueryable }\n } = promisesResponseArray[0];\n let {\n data: { primaryFields }\n } = promisesResponseArray[0];\n // When list is configured with Include all class fields configuration, provide support for Primary fields column\n if (showDynamicFields) {\n const sourceMetadata = PCore.getMetadataUtils().getDataPageMetadata(referenceList);\n if (sourceMetadata?.primaryFields) {\n primaryFields = sourceMetadata.primaryFields;\n }\n // updating metaData fieldID to normal property if it has fieldID starts with !P! or !PL!\n updateMetaEmbeddedFieldID(metaFields);\n }\n updateFieldType(metaFields);\n\n\n if (isDataObject) {\n const compositeKeys:Array<any> = [];\n const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);\n const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);\n dataPageKeys?.forEach((item) =>\n item.isAlternateKeyStorage ? compositeKeys.push(item.linkedField) : compositeKeys.push(item.keyName)\n );\n if (compositeKeys.length) {\n otherContext.setCompositeKeys(compositeKeys);\n }\n otherContext.fetchRowActionDetails = null;\n }\n\n const presetArray = [];\n const rawMetadata = getPConnect().getRawMetadata().config;\n const rawPresets = rawMetadata.presets;\n const isMetaWithPresets = rawPresets && rawPresets.length !== 0;\n const childrenIterator = isMetaWithPresets ? rawPresets : children;\n const resolvedPresets = getPConnect().getConfigProps().presets;\n let fields;\n let tableConfig;\n childrenIterator?.forEach((presetMeta, index) => {\n const {\n configFields\n } = getTableConfigFromPresetMeta(\n { ...presetMeta, label: resolvedPresets[index].label },\n isMetaWithPresets,\n getPConnect,\n classID,\n primaryFields,\n metaFields\n );\n const pushToComponentsList = (fieldType) => {\n listOfComponents.push(fieldType);\n };\n // read report columns response - in case of nonqueryable ignore the response and rely only on the fields configured at authoing time in presets\n const reportColumnsSet = isQueryable ? getReportColumns(promisesResponseArray[1]) : new Set();\n\n const configFieldSet = prepareConfigFields(configFields, pushToComponentsList);\n\n // FIXME #EmbeddedPropertyPatch\n // TODO: Remove this merge logic when the metadata response includes all optimized embedded page and pagelists\n // merging configured embedded properties with metadata so that while preparing extra fields, config fields can get other properties from meta(eg: category, displayAsLink)\n // get configured embedded properties metadata and get new mergedMetaFields\n const configEmbeddedFieldsMeta = getConfigEmbeddedFieldsMeta(configFieldSet, classID);\n const mergedMetaFields = mergeConfigEmbeddedFieldsMeta(configEmbeddedFieldsMeta, metaFields);\n\n const extraFields = prepareExtraFields(\n mergedMetaFields, // passing new merged meta fields which has meta of configured embedded fields of current preset\n configFields,\n configFieldSet,\n reportColumnsSet,\n classID,\n showDynamicFields\n );\n\n\n fields = initializeColumns(\n [...configFields, ...extraFields],\n );\n const patchQueryFields = preparePatchQueryFields(fields, isDataObject, classID);\n const itemKey = getItemKey(fields);\n tableConfig = { fieldDefs: fields, patchQueryFields, itemKey, isQueryable}\n });\n const meta = tableConfig;\n setListContext({\n meta,\n presets: presetArray,\n apiContext: {\n ...apiContext,\n }\n });\n};\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/template/ListView/utils.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,mBAAmB,CAAC;AAEnD,MAAM,cAAc,GAAG,eAAe,CAAC;AACvC,MAAM,IA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ACZ,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,iBAAiB,CAClB,CAAC;QAEF,IAAI,WAAW,EAAE;YACf,sBAAsB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;YAC9C,mBAAmB,CAAC,CAAC,GAAG,YAAY,EAAE,GAAG,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC1E;QAED,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC;QAEtC,MAAM,GAAG,iBAAiB,CAAC,CAAC,GAAG,YAAY,EAAE,GAAG,WAAW,CAAC,EAAE,iBAAiB,CAAC,CAAC;QACjF,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,MAAM,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAChF,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QACnC,WAAW,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAC9E,CAAC,CAAC,CAAC;IACH,MAAM,IAAI,GAAG,WAAW,CAAC;IACzB,cAAc,CAAC;QACb,IAAI;QACJ,OAAO,EAAE,WAAW;QACpB,UAAU,EAAE;YACV,GAAG,UAAU;SACd;KACF,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["import getDefaultViewMeta from './DefaultViewMeta';\n\nconst USER_REFERENCE = 'UserReference';\nconst PAGE = '!P!';\nconst PAGELIST = '!PL!';\n\nexport const formatConstants = {\n WorkStatus: 'WorkStatus',\n Integer: 'Integer',\n WorkLink: 'WorkLink'\n};\n\nclass DataApi {\n mappedPropertyToOriginalProperty: any;\n originalPropertyToMappedProperty: any;\n constructor() {\n this.originalPropertyToMappedProperty = {};\n this.mappedPropertyToOriginalProperty = {};\n this.setPropertyMaps = this.setPropertyMaps.bind(this);\n this.getMappedProperty = this.getMappedProperty.bind(this);\n this.getOriginalProperty = this.getOriginalProperty.bind(this);\n }\n\n setPropertyMaps(originalToMappedPropertyObj = {}, mappedToOriginalPropertyObj = {}) {\n this.originalPropertyToMappedProperty = {\n ...this.originalPropertyToMappedProperty,\n ...originalToMappedPropertyObj\n };\n this.mappedPropertyToOriginalProperty = {\n ...this.mappedPropertyToOriginalProperty,\n ...mappedToOriginalPropertyObj\n };\n }\n\n getMappedProperty(propertyName) {\n return this.originalPropertyToMappedProperty[propertyName] ?? propertyName;\n }\n\n getOriginalProperty(propertyName) {\n return this.mappedPropertyToOriginalProperty[propertyName] ?? propertyName;\n }\n}\n\nexport async function getContext(componentConfig) {\n const {\n promisesArray = [] // array of promises which can be invoked paralelly,\n } = componentConfig;\n const promisesResponseArray = await Promise.all(promisesArray);\n const dataApi = new DataApi();\n return {\n promisesResponseArray,\n setPropertyMaps: dataApi.setPropertyMaps,\n getMappedProperty: dataApi.getMappedProperty,\n getOriginalProperty: dataApi.getOriginalProperty\n };\n}\n\n/**\n * [getFieldNameFromEmbeddedFieldName]\n * Description - converting embeddedField name starting with !P! or !PL! to normal field\n * @ignore\n * @param {string} propertyName EmbeddedField name starting with !P! or !PL!\n * @returns {string} returns converted string without !P! or !PL! and :\n *\n * @example <caption>Example for getFieldNameFromEmbeddedFieldName </caption>\n * getFieldNameFromEmbeddedFieldName('!P!Organisation:Name') return 'Organisation.Name'\n * getFieldNameFromEmbeddedFieldName('!PL!Employees:Name') return 'Employees.Name'\n */\nexport function getFieldNameFromEmbeddedFieldName(propertyName) {\n let value = propertyName;\n if (value.startsWith(PAGE) || value.startsWith(PAGELIST)) {\n value = value.substring(value.lastIndexOf('!') + 1);\n value = value.replace(/:/g, '.');\n }\n return value;\n}\n\n/**\n * [updateMetaEmbeddedFieldID]\n * Description - If the fieldID in meta starts with '!P!' or '!PL!' and contains ':' then replace them with .(dot)\n * @ignore\n * @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields.\n */\nexport function updateMetaEmbeddedFieldID(metaFields) {\n return metaFields.forEach(metaField => {\n if (metaField.fieldID?.startsWith(PAGE) || metaField.fieldID?.startsWith(PAGELIST)) {\n metaField.fieldID = getFieldNameFromEmbeddedFieldName(metaField.fieldID);\n }\n });\n}\n\nexport const isEmbeddedField = field => {\n if (field?.startsWith('@')) {\n field = field.substring(field.indexOf(' ') + 1);\n if (field[0] === '.') field = field.substring(1);\n }\n return field?.indexOf('.') > 0;\n};\n\n/**\n * [isPageListProperty]\n * Description - checking if propertyName is pageList or not\n * @ignore\n * @param {string} propertyName PropertyName\n * @returns {boolean} true if property is pageList else false\n *\n * @example <caption>Example for isPageListProperty </caption>\n * isPageListProperty('!PL!Employees.Name') return true\n * isPageListProperty('!P!Employees.Name') return false\n * isPageListProperty('Name') return false\n */\nexport function isPageListProperty(propertyName) {\n return propertyName.startsWith(PAGELIST);\n}\n\nexport const isPageListInPath = (propertyName, currentClassID) => {\n if (!propertyName.includes('.')) {\n return false;\n }\n const [first, ...rest] = propertyName.split('.');\n const metadata: any = PCore.getMetadataUtils().getPropertyMetadata(first, currentClassID);\n if (metadata?.type === 'Page List') {\n return true;\n }\n return isPageListInPath(rest.join('.'), metadata?.pageClass);\n};\n\n/**\n * [getEmbeddedFieldName]\n * Description - converting normal field name to embedded field starting with !P! or !PL!\n * @ignore\n * @param {string} propertyName Field name\n * @param {string} classID classID of datapage\n * @returns {string} returns converted string with !P! or !PL! and :\n *\n * @example <caption>Example for getEmbeddedFieldName </caption>\n * For page property, getEmbeddedFieldName('Organisation.Name') return '!P!Organisation:Name'\n * For pageList property, getEmbeddedFieldName('Employees.Name') return '!PL!Employees:Name'\n */\n\nexport function getEmbeddedFieldName(propertyName, classID) {\n let value = propertyName;\n if (isPageListInPath(value, classID)) {\n value = `!PL!${value.replace(/\\./g, ':')}`;\n } else {\n value = `!P!${value.replace(/\\./g, ':')}`;\n }\n return value;\n}\n\n/**\n * [preparePropertyMaps]\n * Description - preparing maps for property names and set it in dataApi context\n * @ignore\n * @param {Array} fields fields array\n * @param {string} classID classID of datapage\n * @param {string} context dataApi context\n * @returns {boolean} true if pageListProperty is present\n */\nexport function preparePropertyMaps(fields, classID, context) {\n const { setPropertyMaps } = context;\n const maps = fields.reduce(\n (acc, field) => {\n let { value } = field.config;\n if (value.startsWith('@')) {\n value = value.substring(value.indexOf(' ') + 1);\n if (value[0] === '.') value = value.substring(1);\n }\n let name = value;\n // Preparing name for embedded property\n if (isEmbeddedField(name)) {\n name = getEmbeddedFieldName(name, classID);\n }\n if (isPageListProperty(name) && !acc[2]) {\n acc[2] = true;\n }\n acc[0][value] = name;\n acc[1][name] = value;\n\n return acc;\n },\n [{}, {}, false]\n );\n setPropertyMaps(maps[0], maps[1]);\n return maps[2];\n}\n\n/**\n * [getConfigEmbeddedFieldsMeta]\n * Description - Get the metadata for configured embedded fields\n * @ignore\n * @param {Set} configFields Set of config fields\n * @param {string} classID clasID of datapage\n * @returns {Array} Metadata of configured embedded fields\n */\nexport function getConfigEmbeddedFieldsMeta(configFields, classID) {\n const configEmbeddedFieldsMeta: any[] = [];\n configFields.forEach(field => {\n let value = field;\n if (isEmbeddedField(value)) {\n // conversion Page.PageList[].property => Page.PageList.property\n if (value.includes('[')) {\n value = value.substring(0, value.indexOf('[')) + value.substring(value.indexOf(']') + 1);\n }\n // @ts-ignore - Expected 3 arguments, but got 2.\n const meta: any = PCore.getMetadataUtils().getEmbeddedPropertyMetadata(value, classID);\n meta.fieldID = field;\n configEmbeddedFieldsMeta.push(meta);\n }\n });\n return configEmbeddedFieldsMeta;\n}\n\n/**\n * [mergeConfigEmbeddedFieldsMeta]\n * Description - Get the metadata for configured embedded fields\n * @ignore\n * @param {Array} configEmbeddedFieldsMeta config fields metadata.\n * @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields\n */\nexport function mergeConfigEmbeddedFieldsMeta(configEmbeddedFieldsMeta, metaFields) {\n const mergedMetaFields = [...metaFields];\n configEmbeddedFieldsMeta.forEach(configFieldMeta => {\n const fieldMeta = metaFields.find(metaField => metaField.fieldID === configFieldMeta.fieldID);\n if (!fieldMeta) mergedMetaFields.push(configFieldMeta);\n });\n return mergedMetaFields;\n}\n\nconst oldToNewFieldTypeMapping = {\n 'Date Time': 'Date & time',\n Date: 'Date only'\n};\n\n/**\n * [updateFieldType]\n * Description - Updates the field type if its changed in the new implementation. Such mapping is maintained in oldToNewFieldTypeMapping.\n * @ignore\n * @param {Array} metaFields Fields metadata Array. Contains metadata of all the fields.\n */\nfunction updateFieldType(metaFields) {\n metaFields.forEach(metaField => {\n if (metaField.type) metaField.type = oldToNewFieldTypeMapping[metaField.type] || metaField.type;\n });\n}\n\nfunction getPresetMetaAttribute(attribute) {\n const {\n type,\n config: { label, value }\n } = attribute;\n return {\n type,\n name: value.startsWith('@') ? value.substring(4) : value,\n label: label.startsWith('@') ? label.substring(3) : label\n };\n}\n\n/**\n * [generateViewMetaData]\n * Description - Returns a list of metaobjects of the fields provided.\n * @ignore\n * @param {Array} rawFields List of fields to update meta for\n * @param {string} classID Class ID from the response\n * @returns {Array} List of fields with updated meta objects.\n */\nfunction generateViewMetaData(rawFields, classID, showField) {\n return rawFields.map(item => getDefaultViewMeta(item, classID, showField));\n}\n\n/**\n * [getConfigFields]\n * Description - Returns list of config fields with primary fields meta updated.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {Array} primaryFields List of Primary Fields\n * @param {Array} metaFields Metadata of all fields\n * @param {string} classID Class ID from the response\n * @returns {Array} List of all fields with their meta updated.\n */\nfunction getConfigFields(configFields, primaryFields, metaFields, classID) {\n const presetConfigFields = configFields;\n const primaryFieldsViewIndex = presetConfigFields.findIndex(field => field.config.value === 'pyPrimaryFields');\n if (!primaryFields || !primaryFields.length) {\n if (primaryFieldsViewIndex < 0) return presetConfigFields;\n\n presetConfigFields.splice(primaryFieldsViewIndex, 1);\n\n return presetConfigFields;\n }\n\n if (primaryFieldsViewIndex > -1) {\n // list of uncommon fields - non overlap of primary fields grouped view and independent entity columns of primary type\n const uncommonFieldsList = primaryFields.filter(\n primaryField => !presetConfigFields.some(presetConfigField => presetConfigField.config.value.split('.')[1] === primaryField)\n );\n const uncommonFieldsRawMeta: any[] = [];\n uncommonFieldsList.forEach(uncommonField => {\n const uncommonFieldMeta = metaFields.find(metaField => metaField.fieldID === uncommonField);\n if (uncommonFieldMeta) uncommonFieldsRawMeta.push(uncommonFieldMeta);\n });\n const uncommonFieldsConfigMeta = generateViewMetaData(uncommonFieldsRawMeta, classID, true);\n\n presetConfigFields.splice(primaryFieldsViewIndex, 1, ...uncommonFieldsConfigMeta);\n }\n return presetConfigFields;\n}\n\n/**\n * [getTableConfigFromPresetMeta]\n * Description - Get the table config from the presets meta.\n * @ignore\n * @param {object} presetMeta Presets meta\n * @param {boolean} isMetaWithPresets true if meta has presets else false\n * @param {Function} getPConnect Callback to get the PConnect object\n * @param {string} classID Class ID from the response\n * @param {Array} primaryFields List of Primary Fields\n * @param {Array} metaFields List of all metafields\n * @returns {object} Table config object\n */\nexport function getTableConfigFromPresetMeta(presetMeta, isMetaWithPresets, getPConnect, classID, primaryFields, metaFields) {\n let presetId;\n let presetName;\n let cardHeader;\n let secondaryText;\n let timelineDate;\n let timelineTitle;\n let timelineStatus;\n let timelineIcon;\n let { filterExpression } = getPConnect().getRawMetadata().config;\n let fieldsMeta;\n let configFields;\n if (isMetaWithPresets) {\n presetId = presetMeta.id;\n presetName = presetMeta.label;\n cardHeader = presetMeta.cardHeader && getPresetMetaAttribute(presetMeta.cardHeader);\n secondaryText = presetMeta.secondaryText && getPresetMetaAttribute(presetMeta.secondaryText);\n timelineDate = presetMeta.timelineDate && getPresetMetaAttribute(presetMeta.timelineDate);\n timelineTitle = presetMeta.timelineTitle && getPresetMetaAttribute(presetMeta.timelineTitle);\n timelineStatus = presetMeta.timelineStatus && getPresetMetaAttribute(presetMeta.timelineStatus);\n timelineIcon = presetMeta.timelineIcon && getPresetMetaAttribute(presetMeta.timelineIcon);\n filterExpression = presetMeta.config.filterExpression;\n [fieldsMeta] = presetMeta.children;\n if (\n presetMeta.timelineTitle &&\n !fieldsMeta.children.find(fieldMeta => {\n return fieldMeta?.config?.value === presetMeta.timelineTitle?.config?.value;\n })\n ) {\n const { type, config } = presetMeta.timelineTitle;\n fieldsMeta.children.push({ type, config: { ...config, show: false } });\n }\n if (\n presetMeta.timelineDate &&\n !fieldsMeta.children.find(fieldMeta => {\n return fieldMeta?.config?.value === presetMeta.timelineDate?.config?.value;\n })\n ) {\n const { type, config } = presetMeta.timelineDate;\n fieldsMeta.children.push({ type, config: { ...config, show: false } });\n }\n configFields = getConfigFields(fieldsMeta.children, primaryFields, metaFields, classID);\n } else {\n fieldsMeta = presetMeta.props;\n configFields = getConfigFields(\n fieldsMeta\n .getPConnect()\n .getChildren()\n ?.map(child => {\n return child.getPConnect().getRawMetadata();\n }),\n primaryFields,\n metaFields,\n classID\n );\n }\n return {\n presetId,\n presetName,\n cardHeader,\n secondaryText,\n timelineDate,\n timelineTitle,\n timelineStatus,\n timelineIcon,\n filterExpression,\n fieldsMeta,\n configFields\n };\n}\n\n/**\n * [getReportColumns]\n * Description - Returns a set of columns from the report response.\n * @ignore\n * @param {object} response -\n * @returns {Set} Set of columns from the report response\n */\nfunction getReportColumns(response) {\n const {\n data: { data: reportColumns }\n } = response;\n const reportColumnsSet = new Set();\n reportColumns?.forEach(item => {\n let val = item.pyFieldName;\n // Remove '.' from index 0 only, if '.' is present\n if (val[0] === '.') {\n val = val.substring(1);\n }\n reportColumnsSet.add(val);\n });\n return reportColumnsSet;\n}\n\n/**\n * [getConfigFieldValue]\n * Descritpion - Returns a valid value for a configuration field. Remove any annotations and also \".\"\n * @ignore\n * @param {object} config\n * config.value - Raw value\n * @returns {string} value - Value with out any annotations or \".\"\n */\nfunction getConfigFieldValue(config) {\n let { value } = config;\n if (value.startsWith('@')) {\n value = value.substring(value.indexOf(' ') + 1);\n if (value[0] === '.') value = value.substring(1);\n }\n return value;\n}\n\n/**\n * [prepareConfigFields]\n * Description - Prepares a set of configuration fields and pushes each config type to a set using the callback parameter.\n * @ignore\n * @param {object} configFields List of Authored fields\n * @param {Function} pushToComponentsList Callback to push the field type to a set.\n * @returns {Set} configFieldSet\n */\nfunction prepareConfigFields(configFields, pushToComponentsList) {\n const configFieldSet = new Set();\n configFields.forEach(item => {\n pushToComponentsList(item.type);\n const val = getConfigFieldValue(item.config);\n configFieldSet.add(val);\n });\n return configFieldSet;\n}\n\n/**\n * [findAuthoredField]\n * Description - Finds an authored field from yhe list of config fields.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {string} fieldID Filter\n * @returns {object} config with its field value equal to fieldID, which means an authored field\n */\nfunction findAuthoredField(configFields, fieldID) {\n return configFields.find(configField => {\n const val = getConfigFieldValue(configField.config);\n return val === fieldID;\n });\n}\n\n/**\n * [findAndUpdateAuthoredFieldConfig]\n * Description - Find the authored field, and update its config.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {object} item Field item to copy displayAs and category information\n * @param {string} classId classID from the response\n */\nfunction findAndUpdateAuthoredFieldConfig(configFields, item, classId) {\n const authoredField = findAuthoredField(configFields, item.fieldID);\n if (authoredField?.config) {\n if (item.displayAs) {\n authoredField.config.displayAs = item.displayAs;\n }\n authoredField.config.classID = item.classID ?? classId;\n\n if (authoredField.type === USER_REFERENCE) {\n authoredField.config.associationID = item.associationID || item.fieldID;\n }\n authoredField.config.category = item.category;\n // FieldType identifies whether the field is configured as pickList\n authoredField.config.fieldType = item.fieldType;\n // type defined on the property rule,\n // used for the picklist field to assign the appropriate type\n authoredField.config.propertyType = item.dataType || item.type;\n }\n}\n\n/**\n * [isAnExtraField]\n * Description - Returns true if the field is an extra field. Extra field is the one which is not authored but part of the report.\n * @ignore\n * @param {Array} configFields List of Authored fields\n * @param {Set} configFieldSet Set if Authored filed values\n * @param {Set} reportColumnsSet Set of columns from the report\n * @param {object} item Config field item\n * @param {string} classId Class ID from the response\n * @param {boolean} showDynamicFields Flag indicating whether fields are fetched dynamically at runtime\n * @returns {boolean} true If the field is an extra field else false.\n */\nfunction isAnExtraField(configFields, configFieldSet, reportColumnsSet, item, classId, showDynamicFields) {\n // Is the field already present in authoring metadata?\n // Mutates config fields to copy displayAs and category information\n if (configFieldSet.has(item.fieldID)) {\n findAndUpdateAuthoredFieldConfig(configFields, item, classId);\n return false;\n }\n\n // If field is not authored and not part of report columns then discard it\n return showDynamicFields || !!reportColumnsSet.has(item.fieldID);\n}\n\n/**\n * [prepareExtraFields]\n * Description - Returns a list of extra fields with their meta updated.\n * @ignore\n * @param {Array} metaFields List of fields\n * @param {Array} configFields List of Authored fields\n * @param {Set} configFieldSet Set if Authored filed values\n * @param {Set} reportColumnsSet Set of columns from the report\n * @param {string} classID Class ID from the response\n * @param {boolean} showDynamicFields Flag indicating whether fields are fetched dynamically at runtime\n * @returns {Array} List of extra fields with their meta updated.\n */\nfunction prepareExtraFields(metaFields, configFields, configFieldSet, reportColumnsSet, classID, showDynamicFields) {\n // Filter all the extra fields\n const extraFileds = metaFields.filter(item => {\n return isAnExtraField(configFields, configFieldSet, reportColumnsSet, item, classID, showDynamicFields);\n });\n return generateViewMetaData(extraFileds, classID, false);\n // Update the meta object of each of the extra fields.\n}\n\nconst AssignDashObjects = ['Assign-Worklist', 'Assign-WorkBasket'];\n\nfunction populateRenderingOptions(name, config, field) {\n const shouldDisplayAsSemanticLink = 'displayAsLink' in field.config && field.config.displayAsLink;\n if (shouldDisplayAsSemanticLink) {\n config.customObject.isAssignmentLink = AssignDashObjects.includes(field.config.classID);\n if (field.config.value.startsWith('@CA')) {\n config.customObject.isAssociation = true;\n }\n config.cellRenderer = formatConstants.WorkLink;\n } else if (name === 'pyStatusWork' || name === 'pyAssignmentStatus') {\n config.cellRenderer = formatConstants.WorkStatus;\n } else if (name === 'pxUrgencyWork') {\n config.cellRenderer = formatConstants.Integer;\n }\n}\nexport function initializeColumns(fields: any[] = [], getMappedProperty: any = null) {\n return fields.map((field, originalColIndex) => {\n let name = field.config.value;\n\n if (name.startsWith('@')) {\n name = name.substring(name.indexOf(' ') + 1);\n if (name[0] === '.') name = name.substring(1);\n }\n name = getMappedProperty?.(name) ?? name;\n\n let label = field.config.label || field.config.caption;\n const { show = true, displayAs } = field.config;\n if (label.startsWith('@')) {\n label = label.substring(3);\n }\n\n const config = {\n name,\n label,\n show,\n classID: field.config.classID,\n id: field.id || name || originalColIndex,\n displayAs,\n associationID: field.config.associationID,\n ...(field.config.classID && { category: field.config.category }),\n customObject: {},\n fieldType: field.config.fieldType,\n meta: {\n ...field\n }\n };\n\n populateRenderingOptions(name, config, field);\n\n return config;\n });\n}\n\nexport const getItemKey = fields => {\n let itemKey;\n if (fields.findIndex(field => field.id === 'pyGUID') > -1) {\n itemKey = 'pyGUID';\n } else {\n itemKey = 'pzInsKey';\n }\n return itemKey;\n};\n\nexport function preparePatchQueryFields(fields, isDataObject = false, classID = '') {\n const queryFields: any[] = [];\n fields.forEach(field => {\n const patchFields: any[] = [];\n if (field.cellRenderer === 'WorkLink') {\n if (field.customObject && field.customObject.isAssignmentLink) {\n const associationName = field.name.includes(':') ? `${field.name.split(':')[0]}:` : '';\n patchFields.push(`${associationName}pzInsKey`);\n patchFields.push(`${associationName}pxRefObjectClass`);\n } else if (field.customObject && field.customObject.isAssociation) {\n const associationCategory = field.name.split(':')[0];\n patchFields.push(`${associationCategory}:pyID`);\n patchFields.push(`${associationCategory}:pzInsKey`);\n patchFields.push(`${associationCategory}:pxObjClass`);\n } else if (isDataObject) {\n const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);\n const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);\n dataPageKeys?.forEach(item => (item.isAlternateKeyStorage ? patchFields.push(item.linkedField) : patchFields.push(item.keyName)));\n } else {\n patchFields.push('pyID');\n patchFields.push('pzInsKey');\n patchFields.push('pxObjClass');\n }\n }\n patchFields.forEach(k => {\n if (!queryFields.find(q => q === k)) {\n queryFields.push(k);\n }\n });\n });\n\n return queryFields;\n}\n\n/**\n * Update the renderer type for the properties of type Page.\n */\nexport function updatePageFieldsConfig(configFields, parentClassID) {\n return configFields.forEach(item => {\n const {\n type,\n config: { value }\n } = item;\n const propertyName = PCore.getAnnotationUtils().getPropertyName(value);\n if (isEmbeddedField(value) && !isPageListInPath(propertyName, parentClassID)) {\n item.config.componentType = type;\n item.type = 'PagePropertyRenderer';\n }\n });\n}\n\nexport const readContextResponse = async (context, params) => {\n const { getPConnect, apiContext, setListContext, children, showDynamicFields, referenceList, isDataObject } = params;\n const { promisesResponseArray, apiContext: otherContext } = context;\n // eslint-disable-next-line sonarjs/no-unused-collection\n const listOfComponents: any[] = [];\n const {\n data: { fields: metaFields, classID, isQueryable }\n } = promisesResponseArray[0];\n let {\n data: { primaryFields }\n } = promisesResponseArray[0];\n // When list is configured with Include all class fields configuration, provide support for Primary fields column\n if (showDynamicFields) {\n const sourceMetadata: any = PCore.getMetadataUtils().getDataPageMetadata(referenceList);\n if (sourceMetadata?.primaryFields) {\n primaryFields = sourceMetadata.primaryFields;\n }\n // updating metaData fieldID to normal property if it has fieldID starts with !P! or !PL!\n updateMetaEmbeddedFieldID(metaFields);\n }\n updateFieldType(metaFields);\n\n if (isDataObject) {\n const compositeKeys: any[] = [];\n const dataViewName = PCore.getDataTypeUtils().getSavableDataPage(classID);\n const dataPageKeys = PCore.getDataTypeUtils().getDataPageKeys(dataViewName);\n dataPageKeys?.forEach(item => (item.isAlternateKeyStorage ? compositeKeys.push(item.linkedField) : compositeKeys.push(item.keyName)));\n if (compositeKeys.length) {\n otherContext.setCompositeKeys(compositeKeys);\n }\n if (otherContext) {\n otherContext.fetchRowActionDetails = null;\n }\n }\n\n const presetArray = [];\n const rawMetadata = getPConnect().getRawMetadata().config;\n const rawPresets = rawMetadata.presets;\n const isMetaWithPresets = rawPresets && rawPresets.length !== 0;\n const childrenIterator = isMetaWithPresets ? rawPresets : children;\n const resolvedPresets = getPConnect().getConfigProps().presets;\n let fields;\n let tableConfig;\n childrenIterator?.forEach((presetMeta, index) => {\n const { configFields } = getTableConfigFromPresetMeta(\n { ...presetMeta, label: resolvedPresets[index].label },\n isMetaWithPresets,\n getPConnect,\n classID,\n primaryFields,\n metaFields\n );\n const pushToComponentsList = fieldType => {\n listOfComponents.push(fieldType);\n };\n // read report columns response - in case of nonqueryable ignore the response and rely only on the fields configured at authoing time in presets\n const reportColumnsSet = isQueryable ? getReportColumns(promisesResponseArray[1]) : new Set();\n\n const configFieldSet = prepareConfigFields(configFields, pushToComponentsList);\n\n // FIXME #EmbeddedPropertyPatch\n // TODO: Remove this merge logic when the metadata response includes all optimized embedded page and pagelists\n // merging configured embedded properties with metadata so that while preparing extra fields, config fields can get other properties from meta(eg: category, displayAsLink)\n // get configured embedded properties metadata and get new mergedMetaFields\n const configEmbeddedFieldsMeta = getConfigEmbeddedFieldsMeta(configFieldSet, classID);\n const mergedMetaFields = mergeConfigEmbeddedFieldsMeta(configEmbeddedFieldsMeta, metaFields);\n\n const extraFields = prepareExtraFields(\n mergedMetaFields, // passing new merged meta fields which has meta of configured embedded fields of current preset\n configFields,\n configFieldSet,\n reportColumnsSet,\n classID,\n showDynamicFields\n );\n\n if (isQueryable) {\n updatePageFieldsConfig(configFields, classID);\n preparePropertyMaps([...configFields, ...extraFields], classID, context);\n }\n\n const { getMappedProperty } = context;\n\n fields = initializeColumns([...configFields, ...extraFields], getMappedProperty);\n const patchQueryFields = preparePatchQueryFields(fields, isDataObject, classID);\n const itemKey = getItemKey(fields);\n tableConfig = { fieldDefs: fields, patchQueryFields, itemKey, isQueryable };\n });\n const meta = tableConfig;\n setListContext({\n meta,\n presets: presetArray,\n apiContext: {\n ...apiContext\n }\n });\n};\n"]}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
hideLabel: boolean;
|
|
8
|
-
};
|
|
9
|
-
var propTypes: {
|
|
10
|
-
config: PropTypes.Validator<object>;
|
|
11
|
-
getPConnect: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
-
label: PropTypes.Requireable<string>;
|
|
13
|
-
hideLabel: PropTypes.Requireable<boolean>;
|
|
2
|
+
import { PConnProps } from '../../../types/PConnProps';
|
|
3
|
+
interface MultiReferenceReadOnlyProps extends PConnProps {
|
|
4
|
+
config: {
|
|
5
|
+
referenceList: any;
|
|
6
|
+
readonlyContextList: any;
|
|
14
7
|
};
|
|
8
|
+
label: string;
|
|
9
|
+
hideLabel: boolean;
|
|
15
10
|
}
|
|
16
|
-
export default MultiReferenceReadOnly;
|
|
11
|
+
export default function MultiReferenceReadOnly(props: MultiReferenceReadOnlyProps): JSX.Element;
|
|
12
|
+
export {};
|
|
17
13
|
//# sourceMappingURL=MultiReferenceReadOnly.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiReferenceReadOnly.d.ts","sourceRoot":"","sources":["../../../../src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MultiReferenceReadOnly.d.ts","sourceRoot":"","sources":["../../../../src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,2BAA4B,SAAQ,UAAU;IACtD,MAAM,EAAE;QAAE,aAAa,EAAE,GAAG,CAAC;QAAC,mBAAmB,EAAE,GAAG,CAAA;KAAE,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,eA4BhF"}
|