@pega/react-sdk-components 0.25.1 → 0.25.3
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/lib/bridge/Context/StoreContext.d.ts +0 -1
- package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
- 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 +0 -6
- 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 +11 -14
- package/lib/bridge/react_pconnect.js.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.css +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.js +2 -2
- 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.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +49 -34
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +6 -8
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +3 -5
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +2 -2
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +4 -6
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.d.ts +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.js +12 -9
- package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +28 -4
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +4 -4
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.d.ts +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.css +4 -4
- package/lib/components/field/CancelAlert/CancelAlert.d.ts +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.js +3 -3
- package/lib/components/field/CancelAlert/CancelAlert.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 +52 -3
- package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/field/Currency/Currency.d.ts +1 -1
- package/lib/components/field/Currency/Currency.d.ts.map +1 -1
- package/lib/components/field/Currency/Currency.js +2 -2
- 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 +0 -2
- package/lib/components/field/Currency/currency-utils.js.map +1 -1
- package/lib/components/field/Date/Date.d.ts +1 -1
- package/lib/components/field/Date/Date.d.ts.map +1 -1
- package/lib/components/field/Date/Date.js +3 -6
- package/lib/components/field/Date/Date.js.map +1 -1
- package/lib/components/field/DateTime/DateTime.d.ts +1 -1
- package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
- package/lib/components/field/DateTime/DateTime.js +4 -7
- package/lib/components/field/DateTime/DateTime.js.map +1 -1
- package/lib/components/field/Decimal/Decimal.d.ts +1 -1
- package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
- package/lib/components/field/Decimal/Decimal.js +2 -4
- package/lib/components/field/Decimal/Decimal.js.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts +1 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.js +6 -9
- package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/field/Email/Email.d.ts +1 -1
- package/lib/components/field/Email/Email.d.ts.map +1 -1
- package/lib/components/field/Email/Email.js +6 -7
- package/lib/components/field/Email/Email.js.map +1 -1
- package/lib/components/field/Group/Group.d.ts +2 -2
- package/lib/components/field/Group/Group.d.ts.map +1 -1
- package/lib/components/field/Group/Group.js +2 -2
- package/lib/components/field/Group/Group.js.map +1 -1
- package/lib/components/field/Integer/Integer.d.ts +1 -1
- package/lib/components/field/Integer/Integer.d.ts.map +1 -1
- package/lib/components/field/Integer/Integer.js +4 -5
- package/lib/components/field/Integer/Integer.js.map +1 -1
- package/lib/components/field/Location/Location.d.ts +10 -0
- package/lib/components/field/Location/Location.d.ts.map +1 -0
- package/lib/components/field/Location/Location.js +157 -0
- package/lib/components/field/Location/Location.js.map +1 -0
- package/lib/components/field/Location/index.d.ts +2 -0
- package/lib/components/field/Location/index.d.ts.map +1 -0
- package/lib/components/field/Location/index.js +2 -0
- package/lib/components/field/Location/index.js.map +1 -0
- package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
- package/lib/components/field/Multiselect/utils.d.ts +2 -1
- package/lib/components/field/Multiselect/utils.d.ts.map +1 -1
- package/lib/components/field/Multiselect/utils.js.map +1 -1
- package/lib/components/field/ObjectReference/ObjectReference.d.ts +16 -0
- package/lib/components/field/ObjectReference/ObjectReference.d.ts.map +1 -0
- package/lib/components/field/ObjectReference/ObjectReference.js +165 -0
- package/lib/components/field/ObjectReference/ObjectReference.js.map +1 -0
- package/lib/components/field/ObjectReference/index.d.ts +2 -0
- package/lib/components/field/ObjectReference/index.d.ts.map +1 -0
- package/lib/components/field/ObjectReference/index.js +2 -0
- package/lib/components/field/ObjectReference/index.js.map +1 -0
- package/lib/components/field/ObjectReference/utils.d.ts +17 -0
- package/lib/components/field/ObjectReference/utils.d.ts.map +1 -0
- package/lib/components/field/ObjectReference/utils.js +99 -0
- package/lib/components/field/ObjectReference/utils.js.map +1 -0
- package/lib/components/field/Percentage/Percentage.d.ts +1 -1
- package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
- package/lib/components/field/Percentage/Percentage.js +2 -5
- package/lib/components/field/Percentage/Percentage.js.map +1 -1
- package/lib/components/field/Phone/Phone.d.ts +1 -1
- package/lib/components/field/Phone/Phone.d.ts.map +1 -1
- package/lib/components/field/Phone/Phone.js +6 -4
- package/lib/components/field/Phone/Phone.js.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts +8 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.js +12 -1
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
- package/lib/components/field/RichText/RichText.d.ts +1 -1
- package/lib/components/field/RichText/RichText.d.ts.map +1 -1
- package/lib/components/field/RichText/RichText.js.map +1 -1
- package/lib/components/field/ScalarList/ScalarList.d.ts +1 -1
- package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
- package/lib/components/field/ScalarList/ScalarList.js +1 -2
- package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
- package/lib/components/field/SelectableCard/SelectableCard.d.ts +2 -0
- package/lib/components/field/SelectableCard/SelectableCard.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/SelectableCard.js +57 -0
- package/lib/components/field/SelectableCard/SelectableCard.js.map +1 -0
- package/lib/components/field/SelectableCard/index.d.ts +2 -0
- package/lib/components/field/SelectableCard/index.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/index.js +2 -0
- package/lib/components/field/SelectableCard/index.js.map +1 -0
- package/lib/components/field/SelectableCard/utils.d.ts +14 -0
- package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/utils.js +185 -0
- package/lib/components/field/SelectableCard/utils.js.map +1 -0
- package/lib/components/field/SemanticLink/SemanticLink.d.ts +10 -2
- package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
- package/lib/components/field/SemanticLink/SemanticLink.js +128 -15
- package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
- package/lib/components/field/SemanticLink/utils.js +1 -1
- package/lib/components/field/SemanticLink/utils.js.map +1 -1
- package/lib/components/field/TextArea/TextArea.d.ts +1 -1
- package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/field/TextArea/TextArea.js +4 -5
- package/lib/components/field/TextArea/TextArea.js.map +1 -1
- package/lib/components/field/TextContent/TextContent.d.ts +1 -1
- package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
- package/lib/components/field/TextContent/TextContent.js +0 -1
- package/lib/components/field/TextContent/TextContent.js.map +1 -1
- package/lib/components/field/TextInput/TextInput.d.ts +1 -1
- package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
- package/lib/components/field/TextInput/TextInput.js +4 -5
- package/lib/components/field/TextInput/TextInput.js.map +1 -1
- package/lib/components/field/Time/Time.d.ts +1 -1
- package/lib/components/field/Time/Time.d.ts.map +1 -1
- package/lib/components/field/Time/Time.js +2 -5
- package/lib/components/field/Time/Time.js.map +1 -1
- package/lib/components/field/URL/URL.d.ts +1 -1
- package/lib/components/field/URL/URL.d.ts.map +1 -1
- package/lib/components/field/URL/URL.js +4 -5
- package/lib/components/field/URL/URL.js.map +1 -1
- package/lib/components/field/UserReference/UserReference.d.ts +1 -2
- package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
- package/lib/components/field/UserReference/UserReference.js +0 -1
- package/lib/components/field/UserReference/UserReference.js.map +1 -1
- package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -1
- package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
- package/lib/components/helpers/attachmentHelpers.d.ts +14 -11
- package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
- package/lib/components/helpers/attachmentHelpers.js +52 -30
- package/lib/components/helpers/attachmentHelpers.js.map +1 -1
- package/lib/components/helpers/case-utils.js.map +1 -1
- package/lib/components/helpers/common-utils.d.ts +1 -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 +0 -1
- package/lib/components/helpers/data_page.js.map +1 -1
- package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
- package/lib/components/helpers/event-utils.d.ts.map +1 -1
- package/lib/components/helpers/event-utils.js.map +1 -1
- package/lib/components/helpers/field-group-utils.d.ts +1 -1
- package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
- package/lib/components/helpers/field-group-utils.js.map +1 -1
- package/lib/components/helpers/formatters/Boolean.js.map +1 -1
- package/lib/components/helpers/formatters/Currency.js.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.js +0 -1
- package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
- package/lib/components/helpers/formatters/Date.js.map +1 -1
- package/lib/components/helpers/formatters/index.js.map +1 -1
- package/lib/components/helpers/instructions-utils.d.ts.map +1 -1
- package/lib/components/helpers/reactContextHelpers.d.ts +0 -1
- package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts +15 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.js +111 -5
- 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.map +1 -1
- package/lib/components/helpers/template-utils.js.map +1 -1
- package/lib/components/helpers/utils.d.ts +1 -0
- package/lib/components/helpers/utils.d.ts.map +1 -1
- package/lib/components/helpers/utils.js +7 -1
- package/lib/components/helpers/utils.js.map +1 -1
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
- package/lib/components/helpers/versionHelpers.js +0 -1
- package/lib/components/helpers/versionHelpers.js.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.js +12 -7
- package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
- package/lib/components/infra/Assignment/Assignment.d.ts +2 -2
- package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
- package/lib/components/infra/Assignment/Assignment.js +1 -2
- package/lib/components/infra/Assignment/Assignment.js.map +1 -1
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +2 -2
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
- package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +1 -2
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +13 -77
- 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.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +0 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +0 -2
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +0 -1
- package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -1
- package/lib/components/infra/Containers/SimpleView/helper.d.ts +0 -1
- package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -1
- package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +3 -4
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/container-helpers.d.ts +1 -0
- package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -1
- package/lib/components/infra/Containers/container-helpers.js +46 -1
- package/lib/components/infra/Containers/container-helpers.js.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +2 -2
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.js +0 -2
- 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 +2 -3
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.js +2 -4
- package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +0 -2
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.css +8 -8
- package/lib/components/infra/MultiStep/MultiStep.d.ts +2 -2
- package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.js +1 -1
- package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
- package/lib/components/infra/NavBar/NavBar.css +1 -1
- package/lib/components/infra/NavBar/NavBar.d.ts +1 -1
- package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
- package/lib/components/infra/NavBar/NavBar.js +4 -5
- package/lib/components/infra/NavBar/NavBar.js.map +1 -1
- package/lib/components/infra/Reference/Reference.d.ts +1 -1
- package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
- package/lib/components/infra/Reference/Reference.js +2 -3
- package/lib/components/infra/Reference/Reference.js.map +1 -1
- package/lib/components/infra/Region/Region.d.ts +1 -1
- package/lib/components/infra/Region/Region.d.ts.map +1 -1
- package/lib/components/infra/Region/Region.js.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.d.ts +2 -2
- package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.js +0 -1
- package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
- package/lib/components/infra/Stages/Stages.d.ts +1 -1
- package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
- package/lib/components/infra/Stages/Stages.js.map +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
- package/lib/components/infra/View/View.d.ts +2 -2
- package/lib/components/infra/View/View.d.ts.map +1 -1
- package/lib/components/infra/View/View.js.map +1 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js +0 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +0 -1
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +2 -8
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +3 -5
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +0 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -1
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -1
- package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +0 -1
- package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -1
- package/lib/components/template/AppShell/AppShell.css +1 -1
- package/lib/components/template/AppShell/AppShell.d.ts +2 -2
- package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/template/AppShell/AppShell.js +4 -9
- package/lib/components/template/AppShell/AppShell.js.map +1 -1
- package/lib/components/template/BannerPage/BannerPage.d.ts +2 -2
- package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
- package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.d.ts +2 -2
- package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.js +0 -1
- package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
- package/lib/components/template/CaseView/CaseView.d.ts +2 -2
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/template/CaseView/CaseView.js +4 -5
- package/lib/components/template/CaseView/CaseView.js.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.d.ts +2 -2
- package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.js +0 -1
- package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/template/DataReference/DataReference.d.ts +2 -2
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReference.js +8 -12
- package/lib/components/template/DataReference/DataReference.js.map +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -1
- package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -1
- package/lib/components/template/DataReference/SearchForm.js +3 -2
- package/lib/components/template/DataReference/SearchForm.js.map +1 -1
- package/lib/components/template/DataReference/utils.d.ts +4 -4
- package/lib/components/template/DataReference/utils.d.ts.map +1 -1
- package/lib/components/template/DataReference/utils.js +1 -1
- package/lib/components/template/DataReference/utils.js.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.d.ts +2 -2
- package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
- package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
- package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
- package/lib/components/template/Details/Details/Details.d.ts +1 -1
- package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
- package/lib/components/template/Details/Details/Details.js +2 -3
- package/lib/components/template/Details/Details/Details.js.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +2 -2
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -3
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -3
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +1 -2
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +2 -2
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
- package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +2 -2
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
- package/lib/components/template/ListPage/ListPage.d.ts +1 -1
- package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
- package/lib/components/template/ListPage/ListPage.js.map +1 -1
- package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
- package/lib/components/template/ListView/ListView.d.ts +1 -1
- package/lib/components/template/ListView/ListView.d.ts.map +1 -1
- package/lib/components/template/ListView/ListView.js +3 -14
- 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 +2 -5
- package/lib/components/template/ListView/hooks.js.map +1 -1
- package/lib/components/template/ListView/utils.d.ts.map +1 -1
- package/lib/components/template/ListView/utils.js +0 -1
- package/lib/components/template/ListView/utils.js.map +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +2 -2
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -3
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +2 -2
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +2 -2
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +2 -2
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +2 -2
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js +0 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +1 -2
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -2
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +33 -31
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
- package/lib/components/template/SubTabs/SubTabs.d.ts +2 -2
- package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +2 -2
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -3
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +2 -2
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -3
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +2 -2
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -3
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +2 -2
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +2 -2
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.css +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.d.ts +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.js +3 -3
- package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
- package/lib/components/widget/Attachment/Attachment.css +6 -8
- package/lib/components/widget/Attachment/Attachment.d.ts +1 -1
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
- package/lib/components/widget/Attachment/Attachment.js +52 -51
- package/lib/components/widget/Attachment/Attachment.js.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.js +2 -2
- package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +7 -6
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +9 -10
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
- package/lib/components/widget/Followers/Followers.d.ts +2 -2
- package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
- package/lib/components/widget/Followers/Followers.js +0 -2
- package/lib/components/widget/Followers/Followers.js.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.css +9 -11
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.js +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
- package/lib/components/widget/SummaryList/SummaryList.d.ts +1 -1
- package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
- package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
- package/lib/components/widget/ToDo/ToDo.css +1 -13
- package/lib/components/widget/ToDo/ToDo.d.ts +1 -1
- package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
- package/lib/components/widget/ToDo/ToDo.js +14 -8
- package/lib/components/widget/ToDo/ToDo.js.map +1 -1
- package/lib/hooks/useAfterInitialEffect.d.ts +1 -1
- package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -1
- package/lib/hooks/useAfterInitialEffect.js.map +1 -1
- package/lib/hooks/useConsolidatedRef.d.ts +1 -1
- package/lib/hooks/useConsolidatedRef.d.ts.map +1 -1
- package/lib/hooks/useConsolidatedRef.js.map +1 -1
- package/lib/hooks/useFocusFirstField.d.ts.map +1 -1
- package/lib/hooks/useFocusFirstField.js.map +1 -1
- package/lib/hooks/useGetTabsCount.d.ts +0 -1
- package/lib/hooks/useGetTabsCount.d.ts.map +1 -1
- package/lib/hooks/useGetTabsCount.js +2 -3
- package/lib/hooks/useGetTabsCount.js.map +1 -1
- package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
- package/lib/sdk-pega-component-map.d.ts +112 -106
- package/lib/sdk-pega-component-map.d.ts.map +1 -1
- package/lib/sdk-pega-component-map.js +9 -2
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/lib/theme.d.ts +23 -0
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +189 -2
- package/lib/theme.js.map +1 -1
- package/lib/types/PConnProps.d.ts +1 -1
- package/package.json +16 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/field/SelectableCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { default } from './SelectableCard';\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const getResolvedConstantValue: (pConnect: any, key: any) => any;
|
|
2
|
+
export declare const resolveReferencedPConnect: (pConnect: any) => any;
|
|
3
|
+
/**
|
|
4
|
+
* A helper function to create an object consisting react component as per the type.
|
|
5
|
+
* This is used by CaseSummary template.
|
|
6
|
+
* @param {object} pConnectMeta Object containing meta information for the particular field authored
|
|
7
|
+
* @param {Function} getPConnect PConnect function passed along to other components.
|
|
8
|
+
* @param {string} displayMode displayMode string contains information about the layout of component in review mode.
|
|
9
|
+
*/
|
|
10
|
+
export declare function prepareComponentInCaseSummary(pConnectMeta: any, getPConnect: Function): any;
|
|
11
|
+
export declare function resolveReferenceFields(item: {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}, hideFieldLabels: boolean, recordKey: string, pConnect: typeof PConnect): any;
|
|
14
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/field/SelectableCard/utils.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB,GAAI,aAAQ,EAAE,QAAG,QAErD,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAG,aAAQ,QAKhD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,OA0JrF;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE;IACJ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,EACD,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,OAAO,QAAQ,OAyC1B"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Link } from '@mui/material';
|
|
3
|
+
import { Utils } from '../../helpers/utils';
|
|
4
|
+
export const getResolvedConstantValue = (pConnect, key) => {
|
|
5
|
+
return pConnect.getValue(PCore.getResolvedConstantValue(key)) || pConnect.getValue(key);
|
|
6
|
+
};
|
|
7
|
+
export const resolveReferencedPConnect = pConnect => {
|
|
8
|
+
if (!pConnect || !pConnect.meta)
|
|
9
|
+
return undefined;
|
|
10
|
+
const type = pConnect?._type ?? undefined;
|
|
11
|
+
const referencedPConnect = type === 'reference' && pConnect.getReferencedViewPConnect().getPConnect();
|
|
12
|
+
return referencedPConnect || pConnect;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A helper function to create an object consisting react component as per the type.
|
|
16
|
+
* This is used by CaseSummary template.
|
|
17
|
+
* @param {object} pConnectMeta Object containing meta information for the particular field authored
|
|
18
|
+
* @param {Function} getPConnect PConnect function passed along to other components.
|
|
19
|
+
* @param {string} displayMode displayMode string contains information about the layout of component in review mode.
|
|
20
|
+
*/
|
|
21
|
+
export function prepareComponentInCaseSummary(pConnectMeta, getPConnect) {
|
|
22
|
+
const { config, children } = pConnectMeta;
|
|
23
|
+
const noValueComponent = _jsx("div", { children: "No Value" });
|
|
24
|
+
const placeholder = '...';
|
|
25
|
+
const pConnect = getPConnect();
|
|
26
|
+
const caseSummaryComponentObject = {};
|
|
27
|
+
let { type } = pConnectMeta;
|
|
28
|
+
let showAddressLabel = true;
|
|
29
|
+
if (config && config.value === `@P .${Utils.getMappedKey('pyStatusWork')}`) {
|
|
30
|
+
config.displayAsStatus = true;
|
|
31
|
+
type = 'TextInput'; // force the type to be TextInput for status field.
|
|
32
|
+
// As TextInput is loaded forcefully sometimes, TextInput component might not be available in lazy map.
|
|
33
|
+
// Load TextInput if it is not available.
|
|
34
|
+
if (!PCore.getComponentsRegistry().getLazyComponent(type)) {
|
|
35
|
+
PCore.getAssetLoader().getLoader('component-loader')([type]);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
caseSummaryComponentObject.name = pConnect.resolveConfigProps({ label: config.label }).label;
|
|
39
|
+
if (config.inheritedProps) {
|
|
40
|
+
const labelInInheritedProp = config.inheritedProps.find(inheritedProp => inheritedProp.prop === 'label');
|
|
41
|
+
if (labelInInheritedProp) {
|
|
42
|
+
labelInInheritedProp.value = pConnect.resolveConfigProps({ label: labelInInheritedProp.value }).label;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
switch (type) {
|
|
46
|
+
case 'CaseOperator': {
|
|
47
|
+
if (config.label.includes('Create operator')) {
|
|
48
|
+
caseSummaryComponentObject.name = pConnect.resolveConfigProps({
|
|
49
|
+
createLabel: config.createLabel
|
|
50
|
+
}).createLabel;
|
|
51
|
+
}
|
|
52
|
+
else if (config.label.includes('Update operator')) {
|
|
53
|
+
caseSummaryComponentObject.name = pConnect.resolveConfigProps({
|
|
54
|
+
updateLabel: config.updateLabel
|
|
55
|
+
}).updateLabel;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
caseSummaryComponentObject.name = pConnect.resolveConfigProps({
|
|
59
|
+
resolveLabel: config.resolveLabel
|
|
60
|
+
}).resolveLabel;
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
case 'Checkbox': {
|
|
65
|
+
caseSummaryComponentObject.name = pConnect.resolveConfigProps({
|
|
66
|
+
label: config.caption
|
|
67
|
+
}).label;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
case 'Pega_UI_PercentageWidget': {
|
|
71
|
+
const rawValue = pConnect.resolveConfigProps({
|
|
72
|
+
value: config.value
|
|
73
|
+
}).value;
|
|
74
|
+
caseSummaryComponentObject.simpleValue = rawValue || rawValue === 0 ? `${rawValue}%` : noValueComponent;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case 'Address': {
|
|
78
|
+
showAddressLabel = false;
|
|
79
|
+
caseSummaryComponentObject.variant = 'stacked';
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
case 'Location':
|
|
83
|
+
case 'RichText': {
|
|
84
|
+
const rawValue = pConnect.resolveConfigProps({
|
|
85
|
+
value: config.value
|
|
86
|
+
}).value;
|
|
87
|
+
caseSummaryComponentObject.variant = 'stacked';
|
|
88
|
+
caseSummaryComponentObject.simpleValue = rawValue?.length ? rawValue : noValueComponent;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case 'TextArea': {
|
|
92
|
+
const rawValue = pConnect.resolveConfigProps({
|
|
93
|
+
value: config.value
|
|
94
|
+
}).value;
|
|
95
|
+
if (rawValue?.length > 22) {
|
|
96
|
+
caseSummaryComponentObject.variant = 'stacked';
|
|
97
|
+
}
|
|
98
|
+
caseSummaryComponentObject.simpleValue = rawValue?.length ? rawValue : noValueComponent;
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
case 'URL': {
|
|
102
|
+
if (config.displayAs === 'Image') {
|
|
103
|
+
const rawValue = pConnect.resolveConfigProps({
|
|
104
|
+
value: config.value
|
|
105
|
+
}).value;
|
|
106
|
+
caseSummaryComponentObject.variant = 'stacked';
|
|
107
|
+
caseSummaryComponentObject.simpleValue = rawValue?.length ? _jsx(Link, { href: rawValue, children: rawValue }) : noValueComponent;
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
case 'reference': {
|
|
112
|
+
const referencedPConnect = resolveReferencedPConnect(pConnect);
|
|
113
|
+
const viewType = referencedPConnect?.meta?.config.type;
|
|
114
|
+
const viewTemplate = referencedPConnect?.meta?.config.template;
|
|
115
|
+
const isTable = ['multirecordlist'].includes(viewType);
|
|
116
|
+
const isDataReference = viewTemplate === 'DataReference';
|
|
117
|
+
if (isTable || !isDataReference) {
|
|
118
|
+
caseSummaryComponentObject.variant = 'stacked';
|
|
119
|
+
caseSummaryComponentObject.simpleValue = placeholder;
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
case 'view': {
|
|
124
|
+
caseSummaryComponentObject.variant = 'stacked';
|
|
125
|
+
caseSummaryComponentObject.simpleValue = placeholder;
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
default:
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
const createdComponent = pConnect.createComponent({
|
|
132
|
+
type,
|
|
133
|
+
children: children ? [...children] : [],
|
|
134
|
+
showAddressLabel,
|
|
135
|
+
config: {
|
|
136
|
+
...config,
|
|
137
|
+
// Need a unique key for each summary component which helps in creating new component based on visibility
|
|
138
|
+
// Also a consistent key helps in rerendering summary components instead of remounting
|
|
139
|
+
key: config
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
createdComponent.props.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
|
|
143
|
+
createdComponent.props.getPConnect().setInheritedProp('readOnly', true);
|
|
144
|
+
if (type === 'Address') {
|
|
145
|
+
createdComponent.props.getPConnect().setInheritedProp('showAddressLabel', showAddressLabel);
|
|
146
|
+
}
|
|
147
|
+
// Add field label for reference summary item when not Embedded data
|
|
148
|
+
if (type === 'reference') {
|
|
149
|
+
const isEmbeddedData = config.context && config.displayAs === 'Form';
|
|
150
|
+
if (!isEmbeddedData) {
|
|
151
|
+
caseSummaryComponentObject.name = createdComponent.props.getPConnect().getInheritedProps().label;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
caseSummaryComponentObject.value = createdComponent;
|
|
155
|
+
return caseSummaryComponentObject;
|
|
156
|
+
}
|
|
157
|
+
export function resolveReferenceFields(item, hideFieldLabels, recordKey, pConnect) {
|
|
158
|
+
const presets = (pConnect.getRawMetadata()?.config).presets ?? [];
|
|
159
|
+
const presetChildren = presets[0]?.children?.[0]?.children ?? [];
|
|
160
|
+
const maxFields = 5;
|
|
161
|
+
return presetChildren.slice(0, maxFields).map((preset, index) => {
|
|
162
|
+
const fieldMeta = {
|
|
163
|
+
meta: {
|
|
164
|
+
...preset,
|
|
165
|
+
config: {
|
|
166
|
+
...preset.config,
|
|
167
|
+
displayMode: 'DISPLAY_ONLY'
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
useCustomContext: item
|
|
171
|
+
};
|
|
172
|
+
const configObj = PCore.createPConnect(fieldMeta);
|
|
173
|
+
const meta = configObj.getPConnect().getMetadata();
|
|
174
|
+
const fieldInfo = meta ? prepareComponentInCaseSummary(meta, configObj.getPConnect) : {};
|
|
175
|
+
return hideFieldLabels
|
|
176
|
+
? { id: `${item[recordKey]} - ${index}`, value: fieldInfo.value }
|
|
177
|
+
: {
|
|
178
|
+
id: `${item[recordKey]} - ${index}`,
|
|
179
|
+
name: fieldInfo.name,
|
|
180
|
+
value: fieldInfo.value,
|
|
181
|
+
type: preset.type
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/field/SelectableCard/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE;IACxD,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC1F,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC,EAAE;IA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QAAQ,IAAI,EAAE,CAAC;IAEjE,MAAM,SAAS,GAAG,CAAC,CAAC;IACpB,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QAC9D,MAAM,SAAS,GAAG;YAChB,IAAI,EAAE;gBACJ,GAAG,MAAM;gBACT,MAAM,EAAE;oBACN,GAAG,MAAM,CAAC,MAAM;oBAChB,WAAW,EAAE,cAAc;iBAC5B;aACF;YACD,gBAAgB,EAAE,IAAI;SACvB,CAAC;QACF,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAClD,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,CAAC;QACnD,MAAM,SAAS,GAGX,IAAI,CAAC,CAAC,CAAC,6BAA6B,CAAC,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3E,OAAO,eAAe;YACpB,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE;YACjE,CAAC,CAAC;gBACE,EAAE,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,EAAE;gBACnC,IAAI,EAAE,SAAS,CAAC,IAAI;gBACpB,KAAK,EAAE,SAAS,CAAC,KAAK;gBACtB,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC;IACR,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { Link } from '@mui/material';\n\nimport { Utils } from '../../helpers/utils';\n\nexport const getResolvedConstantValue = (pConnect, key) => {\n return pConnect.getValue(PCore.getResolvedConstantValue(key)) || pConnect.getValue(key);\n};\n\nexport const resolveReferencedPConnect = pConnect => {\n if (!pConnect || !pConnect.meta) return undefined;\n const type = pConnect?._type ?? undefined;\n const referencedPConnect = type === 'reference' && pConnect.getReferencedViewPConnect().getPConnect();\n return referencedPConnect || pConnect;\n};\n\n/**\n * A helper function to create an object consisting react component as per the type.\n * This is used by CaseSummary template.\n * @param {object} pConnectMeta Object containing meta information for the particular field authored\n * @param {Function} getPConnect PConnect function passed along to other components.\n * @param {string} displayMode displayMode string contains information about the layout of component in review mode.\n */\nexport function prepareComponentInCaseSummary(pConnectMeta: any, getPConnect: Function) {\n const { config, children } = pConnectMeta;\n\n const noValueComponent = <div>No Value</div>;\n const placeholder = '...';\n const pConnect = getPConnect();\n\n const caseSummaryComponentObject: any = {};\n\n let { type } = pConnectMeta;\n let showAddressLabel = true;\n\n if (config && config.value === `@P .${Utils.getMappedKey('pyStatusWork')}`) {\n config.displayAsStatus = true;\n type = 'TextInput'; // force the type to be TextInput for status field.\n // As TextInput is loaded forcefully sometimes, TextInput component might not be available in lazy map.\n // Load TextInput if it is not available.\n if (!PCore.getComponentsRegistry().getLazyComponent(type)) {\n PCore.getAssetLoader().getLoader('component-loader')([type]);\n }\n }\n\n caseSummaryComponentObject.name = pConnect.resolveConfigProps({ label: config.label }).label;\n\n if (config.inheritedProps) {\n const labelInInheritedProp = config.inheritedProps.find(inheritedProp => inheritedProp.prop === 'label');\n if (labelInInheritedProp) {\n labelInInheritedProp.value = pConnect.resolveConfigProps({ label: labelInInheritedProp.value }).label;\n }\n }\n\n switch (type) {\n case 'CaseOperator': {\n if (config.label.includes('Create operator')) {\n caseSummaryComponentObject.name = pConnect.resolveConfigProps({\n createLabel: config.createLabel\n }).createLabel;\n } else if (config.label.includes('Update operator')) {\n caseSummaryComponentObject.name = pConnect.resolveConfigProps({\n updateLabel: config.updateLabel\n }).updateLabel;\n } else {\n caseSummaryComponentObject.name = pConnect.resolveConfigProps({\n resolveLabel: config.resolveLabel\n }).resolveLabel;\n }\n\n break;\n }\n case 'Checkbox': {\n caseSummaryComponentObject.name = pConnect.resolveConfigProps({\n label: config.caption\n }).label;\n\n break;\n }\n case 'Pega_UI_PercentageWidget': {\n const rawValue = pConnect.resolveConfigProps({\n value: config.value\n }).value;\n\n caseSummaryComponentObject.simpleValue = rawValue || rawValue === 0 ? `${rawValue}%` : noValueComponent;\n break;\n }\n case 'Address': {\n showAddressLabel = false;\n\n caseSummaryComponentObject.variant = 'stacked';\n break;\n }\n case 'Location':\n case 'RichText': {\n const rawValue = pConnect.resolveConfigProps({\n value: config.value\n }).value;\n\n caseSummaryComponentObject.variant = 'stacked';\n caseSummaryComponentObject.simpleValue = rawValue?.length ? rawValue : noValueComponent;\n break;\n }\n case 'TextArea': {\n const rawValue = pConnect.resolveConfigProps({\n value: config.value\n }).value;\n\n if (rawValue?.length > 22) {\n caseSummaryComponentObject.variant = 'stacked';\n }\n\n caseSummaryComponentObject.simpleValue = rawValue?.length ? rawValue : noValueComponent;\n break;\n }\n case 'URL': {\n if (config.displayAs === 'Image') {\n const rawValue = pConnect.resolveConfigProps({\n value: config.value\n }).value;\n\n caseSummaryComponentObject.variant = 'stacked';\n caseSummaryComponentObject.simpleValue = rawValue?.length ? <Link href={rawValue}>{rawValue}</Link> : noValueComponent;\n }\n break;\n }\n case 'reference': {\n const referencedPConnect = resolveReferencedPConnect(pConnect);\n const viewType = referencedPConnect?.meta?.config.type;\n const viewTemplate = referencedPConnect?.meta?.config.template;\n const isTable = ['multirecordlist'].includes(viewType);\n const isDataReference = viewTemplate === 'DataReference';\n\n if (isTable || !isDataReference) {\n caseSummaryComponentObject.variant = 'stacked';\n caseSummaryComponentObject.simpleValue = placeholder;\n }\n break;\n }\n case 'view': {\n caseSummaryComponentObject.variant = 'stacked';\n caseSummaryComponentObject.simpleValue = placeholder;\n break;\n }\n default:\n break;\n }\n\n const createdComponent = pConnect.createComponent({\n type,\n children: children ? [...children] : [],\n showAddressLabel,\n config: {\n ...config,\n // Need a unique key for each summary component which helps in creating new component based on visibility\n // Also a consistent key helps in rerendering summary components instead of remounting\n key: config\n }\n });\n\n createdComponent.props.getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');\n createdComponent.props.getPConnect().setInheritedProp('readOnly', true);\n\n if (type === 'Address') {\n createdComponent.props.getPConnect().setInheritedProp('showAddressLabel', showAddressLabel);\n }\n // Add field label for reference summary item when not Embedded data\n if (type === 'reference') {\n const isEmbeddedData = config.context && config.displayAs === 'Form';\n if (!isEmbeddedData) {\n caseSummaryComponentObject.name = createdComponent.props.getPConnect().getInheritedProps().label;\n }\n }\n\n caseSummaryComponentObject.value = createdComponent;\n\n return caseSummaryComponentObject;\n}\n\nexport function resolveReferenceFields(\n item: {\n [key: string]: unknown;\n },\n hideFieldLabels: boolean,\n recordKey: string,\n pConnect: typeof PConnect\n) {\n const presets: {\n children?: {\n children?: {\n config;\n type;\n };\n config?;\n };\n } = (pConnect.getRawMetadata()?.config as any).presets ?? [];\n\n const presetChildren = presets[0]?.children?.[0]?.children ?? [];\n\n const maxFields = 5;\n return presetChildren.slice(0, maxFields).map((preset, index) => {\n const fieldMeta = {\n meta: {\n ...preset,\n config: {\n ...preset.config,\n displayMode: 'DISPLAY_ONLY'\n }\n },\n useCustomContext: item\n };\n const configObj = PCore.createPConnect(fieldMeta);\n const meta = configObj.getPConnect().getMetadata();\n const fieldInfo: {\n name?: string;\n value?: React.ReactNode;\n } = meta ? prepareComponentInCaseSummary(meta, configObj.getPConnect) : {};\n return hideFieldLabels\n ? { id: `${item[recordKey]} - ${index}`, value: fieldInfo.value }\n : {\n id: `${item[recordKey]} - ${index}`,\n name: fieldInfo.name,\n value: fieldInfo.value,\n type: preset.type\n };\n });\n}\n"]}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { PConnFieldProps } from '../../../types/PConnProps';
|
|
1
|
+
import type { PConnFieldProps } from '../../../types/PConnProps';
|
|
2
2
|
interface SemanticLinkProps extends PConnFieldProps {
|
|
3
3
|
text: string;
|
|
4
|
+
resourcePayload: any;
|
|
5
|
+
resourceParams: any;
|
|
6
|
+
previewKey: string | null;
|
|
7
|
+
onClick: (event: any) => void;
|
|
8
|
+
testId: string;
|
|
9
|
+
referenceType: string | null;
|
|
10
|
+
dataRelationshipContext: string | null;
|
|
11
|
+
contextPage: any;
|
|
4
12
|
}
|
|
5
|
-
export default function SemanticLink(props: SemanticLinkProps): import("react/jsx-runtime").JSX.Element
|
|
13
|
+
export default function SemanticLink(props: SemanticLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
6
14
|
export {};
|
|
7
15
|
//# sourceMappingURL=SemanticLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SemanticLink.d.ts","sourceRoot":"","sources":["../../../../src/components/field/SemanticLink/SemanticLink.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SemanticLink.d.ts","sourceRoot":"","sources":["../../../../src/components/field/SemanticLink/SemanticLink.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAoCjE,UAAU,iBAAkB,SAAQ,eAAe;IAEjD,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,WAAW,EAAE,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA2J5D"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
2
|
-
import
|
|
3
|
-
import Grid from '@mui/material/Grid';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Link } from '@mui/material';
|
|
4
3
|
import makeStyles from '@mui/styles/makeStyles';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
SemanticLink in SDK and only showing the value as a read only text field. */
|
|
4
|
+
import semanticUtils from './utils';
|
|
5
|
+
// eslint-disable-next-line
|
|
8
6
|
const useStyles = makeStyles(theme => ({
|
|
9
7
|
root: {
|
|
10
8
|
paddingRight: theme.spacing(1),
|
|
@@ -36,16 +34,131 @@ const useStyles = makeStyles(theme => ({
|
|
|
36
34
|
}
|
|
37
35
|
}));
|
|
38
36
|
export default function SemanticLink(props) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
const { text, resourcePayload = {}, resourceParams = {}, getPConnect, previewKey,
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
39
|
+
onClick, testId = '', referenceType, dataRelationshipContext = null, contextPage, ...restProps } = props;
|
|
40
|
+
const { ACTION_OPENWORKBYHANDLE, ACTION_SHOWDATA } = PCore.getSemanticUrlUtils().getActions();
|
|
41
|
+
const pConnect = getPConnect();
|
|
42
|
+
const dataResourcePayLoad = resourcePayload?.resourceType === 'DATA' ? resourcePayload : null;
|
|
43
|
+
const { RESOURCE_TYPES: { DATA }, WORKCLASS, CASE_INFO: { CASE_INFO_CLASSID } } = PCore.getConstants();
|
|
44
|
+
let linkURL = '';
|
|
45
|
+
let payload = {};
|
|
46
|
+
let dataViewName;
|
|
47
|
+
let linkComponentProps = {
|
|
48
|
+
href: linkURL
|
|
49
|
+
};
|
|
50
|
+
if (text) {
|
|
51
|
+
linkComponentProps.href = linkURL;
|
|
46
52
|
}
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
let isData = false;
|
|
54
|
+
const shouldTreatAsDataReference = !previewKey && resourcePayload.caseClassName;
|
|
55
|
+
if (contextPage?.classID) {
|
|
56
|
+
resourcePayload.caseClassName = contextPage.classID;
|
|
49
57
|
}
|
|
58
|
+
/* TODO : In case of duplicate search case the classID is Work- need to set it to
|
|
59
|
+
the current case class ID */
|
|
60
|
+
if (resourcePayload.caseClassName === WORKCLASS) {
|
|
61
|
+
resourcePayload.caseClassName = pConnect.getValue(CASE_INFO_CLASSID);
|
|
62
|
+
}
|
|
63
|
+
function showDataAction() {
|
|
64
|
+
if (dataResourcePayLoad && dataResourcePayLoad.resourceType === 'DATA') {
|
|
65
|
+
const { content } = dataResourcePayLoad;
|
|
66
|
+
const lookUpDataPageInfo = PCore.getDataTypeUtils().getLookUpDataPageInfo(dataResourcePayLoad?.className);
|
|
67
|
+
const lookUpDataPage = PCore.getDataTypeUtils().getLookUpDataPage(dataResourcePayLoad?.className);
|
|
68
|
+
if (lookUpDataPageInfo) {
|
|
69
|
+
const { parameters } = lookUpDataPageInfo;
|
|
70
|
+
payload = Object.keys(parameters).reduce((acc, param) => {
|
|
71
|
+
const paramValue = parameters[param];
|
|
72
|
+
return {
|
|
73
|
+
...acc,
|
|
74
|
+
[param]: PCore.getAnnotationUtils().isProperty(paramValue) ? content[PCore.getAnnotationUtils().getPropertyName(paramValue)] : paramValue
|
|
75
|
+
};
|
|
76
|
+
}, {});
|
|
77
|
+
}
|
|
78
|
+
getPConnect()
|
|
79
|
+
.getActionsApi()
|
|
80
|
+
.showData('pyDetails', lookUpDataPage, {
|
|
81
|
+
...payload
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if ((referenceType && referenceType.toUpperCase() === DATA) || shouldTreatAsDataReference) {
|
|
85
|
+
getPConnect()
|
|
86
|
+
.getActionsApi()
|
|
87
|
+
.showData('pyDetails', dataViewName, {
|
|
88
|
+
...payload
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function openLinkClick(e) {
|
|
93
|
+
if (!e.metaKey && !e.ctrlKey) {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
if ((dataResourcePayLoad && dataResourcePayLoad.resourceType === 'DATA') ||
|
|
96
|
+
(referenceType && referenceType.toUpperCase() === DATA) ||
|
|
97
|
+
shouldTreatAsDataReference) {
|
|
98
|
+
showDataAction();
|
|
99
|
+
}
|
|
100
|
+
else if (previewKey) {
|
|
101
|
+
getPConnect().getActionsApi().openWorkByHandle(previewKey, resourcePayload.caseClassName);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if ((referenceType && referenceType.toUpperCase() === DATA) || shouldTreatAsDataReference) {
|
|
106
|
+
try {
|
|
107
|
+
isData = true;
|
|
108
|
+
// @ts-expect-error
|
|
109
|
+
const dataRefContext = semanticUtils.getDataReferenceInfo(pConnect, dataRelationshipContext, contextPage);
|
|
110
|
+
dataViewName = dataRefContext.dataContext;
|
|
111
|
+
payload = dataRefContext.dataContextParameters;
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
console.log('Error in getting the data reference info', error);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else if (resourcePayload && resourcePayload.resourceType === 'DATA') {
|
|
118
|
+
isData = true;
|
|
119
|
+
dataViewName = PCore.getDataTypeUtils().getLookUpDataPage(resourcePayload.className);
|
|
120
|
+
const lookUpDataPageInfo = PCore.getDataTypeUtils().getLookUpDataPageInfo(resourcePayload.className);
|
|
121
|
+
const { content } = resourcePayload;
|
|
122
|
+
if (lookUpDataPageInfo) {
|
|
123
|
+
const { parameters } = lookUpDataPageInfo;
|
|
124
|
+
payload = Object.keys(parameters).reduce((acc, param) => {
|
|
125
|
+
const paramValue = parameters[param];
|
|
126
|
+
return {
|
|
127
|
+
...acc,
|
|
128
|
+
[param]: PCore.getAnnotationUtils().isProperty(paramValue) ? content[PCore.getAnnotationUtils().getPropertyName(paramValue)] : paramValue
|
|
129
|
+
};
|
|
130
|
+
}, {});
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const keysInfo = PCore.getDataTypeUtils().getDataPageKeys(dataViewName) ?? [];
|
|
134
|
+
payload = keysInfo.reduce((acc, curr) => {
|
|
135
|
+
return {
|
|
136
|
+
...acc,
|
|
137
|
+
[curr.keyName]: content[curr.isAlternateKeyStorage ? curr.linkedField : curr.keyName]
|
|
138
|
+
};
|
|
139
|
+
}, {});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (isData && dataViewName && payload) {
|
|
143
|
+
linkURL = PCore.getSemanticUrlUtils().getResolvedSemanticURL(ACTION_SHOWDATA, { pageName: 'pyDetails', dataViewName }, {
|
|
144
|
+
...payload
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
// BUG-678282 fix to handle scenario when workID was not populated.
|
|
149
|
+
// Check renderParentLink in Caseview / CasePreview
|
|
150
|
+
resourceParams.objectID = resourceParams.workID === '' && typeof previewKey === 'string' ? previewKey.split(' ')[1] : resourceParams.workID;
|
|
151
|
+
if (previewKey) {
|
|
152
|
+
resourceParams.id = previewKey;
|
|
153
|
+
}
|
|
154
|
+
linkURL = PCore.getSemanticUrlUtils().getResolvedSemanticURL(ACTION_OPENWORKBYHANDLE, resourcePayload, resourceParams);
|
|
155
|
+
}
|
|
156
|
+
if (text) {
|
|
157
|
+
linkComponentProps = {
|
|
158
|
+
...linkComponentProps,
|
|
159
|
+
href: linkURL
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
return (_jsx(Link, { component: 'button', ...linkComponentProps, ...restProps, onClick: openLinkClick, "data-testid": testId, children: text }));
|
|
50
163
|
}
|
|
51
164
|
//# sourceMappingURL=SemanticLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SemanticLink.js","sourceRoot":"","sources":["../../../../src/components/field/SemanticLink/SemanticLink.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAGhF;4EAC4E;AAE5E,MAAM,SAAS,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AAO,UAAU,YAAY,CAAC,KAAwB;IAC3D,8EAA8E;IAC9E,MAAM,cAAc,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAE7D,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,IAAI,WAAW,KAAK,cAAc,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,KAAK,SAAS,CAAC,EAAE;QAC3E,MAAM,KAAK,GAAG,IAAI,IAAI,KAAK,CAAC;QAC5B,OAAO,CACL,MAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,EAAC,oBAAoB,aAChF,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,YACnG,KAAK,GACK,GACR,EACP,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,MAAM,EAAC,SAAS,EAAE,OAAO,CAAC,UAAU,YACvE,KAAK,GACK,GACR,IACF,CACR,CAAC;KACH;IAED,IAAI,WAAW,KAAK,mBAAmB,EAAE;QACvC,OAAO,KAAC,cAAc,IAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAC,SAAS,GAAG,CAAC;KACxF;AACH,CAAC","sourcesContent":["import Typography from '@mui/material/Typography';\nimport Grid from '@mui/material/Grid';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { PConnFieldProps } from '../../../types/PConnProps';\n\n/* although this is called the SemanticLink component, we are not yet displaying as a\nSemanticLink in SDK and only showing the value as a read only text field. */\n\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldMargin: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldLabel: {\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n fontWeight: 400,\n color: theme.palette.text.primary\n }\n}));\n\ninterface SemanticLinkProps extends PConnFieldProps {\n // If any, enter additional props that only exist on SemanticLink here\n // from previous PropTypes\n text: string;\n}\n\nexport default function SemanticLink(props: SemanticLinkProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const { text, displayMode, label, hideLabel } = props;\n const classes = useStyles();\n\n if (displayMode === 'DISPLAY_ONLY' || (!displayMode && label !== undefined)) {\n const value = text || '---';\n return (\n <Grid container spacing={1} style={{ padding: '4px 0px' }} id='semantic-link-grid'>\n <Grid item xs={6}>\n <Typography variant='body2' component='span' className={`${classes.fieldLabel} ${classes.fieldMargin}`}>\n {label}\n </Typography>\n </Grid>\n <Grid item xs={6}>\n <Typography variant='body2' component='span' className={classes.fieldValue}>\n {value}\n </Typography>\n </Grid>\n </Grid>\n );\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={text} variant='stacked' />;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file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qBAAqB,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;iBACtF,CAAC;YACJ,CAAC,EAAE,EAAE,CAAC,CAAC;QACT,CAAC;IACH,CAAC;IAED,IAAI,MAAM,IAAI,YAAY,IAAI,OAAO,EAAE,CAAC;QACtC,OAAO,GAAG,KAAK,CAAC,mBAAmB,EAAE,CAAC,sBAAsB,CAC1D,eAAe,EACf,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,EACvC;YACE,GAAG,OAAO;SACX,CACF,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,mEAAmE;QACnE,mDAAmD;QACnD,cAAc,CAAC,QAAQ,GAAG,cAAc,CAAC,MAAM,KAAK,EAAE,IAAI,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC;QAC5I,IAAI,UAAU,EAAE,CAAC;YACf,cAAc,CAAC,EAAE,GAAG,UAAU,CAAC;QACjC,CAAC;QACD,OAAO,GAAG,KAAK,CAAC,mBAAmB,EAAE,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IACzH,CAAC;IAED,IAAI,IAAI,EAAE,CAAC;QACT,kBAAkB,GAAG;YACnB,GAAG,kBAAkB;YACrB,IAAI,EAAE,OAAO;SACd,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,KAAK,kBAAkB,KAAM,SAAS,EAAE,OAAO,EAAE,aAAa,iBAAe,MAAM,YACxG,IAAI,GACA,CACR,CAAC;AACJ,CAAC","sourcesContent":["import { Link } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\n\nimport type { PConnFieldProps } from '../../../types/PConnProps';\n\nimport semanticUtils from './utils';\n\n// eslint-disable-next-line\nconst useStyles = makeStyles(theme => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldMargin: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n },\n fieldLabel: {\n fontWeight: 400,\n color: theme.palette.text.secondary\n },\n fieldValue: {\n fontWeight: 400,\n color: theme.palette.text.primary\n }\n}));\n\ninterface SemanticLinkProps extends PConnFieldProps {\n // If any, enter additional props that only exist on SemanticLink here\n text: string;\n resourcePayload: any;\n resourceParams: any;\n previewKey: string | null;\n onClick: (event: any) => void;\n testId: string;\n referenceType: string | null;\n dataRelationshipContext: string | null;\n contextPage: any;\n}\n\nexport default function SemanticLink(props: SemanticLinkProps) {\n const {\n text,\n resourcePayload = {},\n resourceParams = {},\n getPConnect,\n previewKey,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onClick,\n testId = '',\n referenceType,\n dataRelationshipContext = null,\n contextPage,\n ...restProps\n } = props;\n const { ACTION_OPENWORKBYHANDLE, ACTION_SHOWDATA }: any = PCore.getSemanticUrlUtils().getActions();\n const pConnect = getPConnect();\n const dataResourcePayLoad = resourcePayload?.resourceType === 'DATA' ? resourcePayload : null;\n\n const {\n RESOURCE_TYPES: { DATA },\n WORKCLASS,\n CASE_INFO: { CASE_INFO_CLASSID }\n } = PCore.getConstants();\n\n let linkURL = '';\n let payload = {};\n let dataViewName;\n let linkComponentProps = {\n href: linkURL\n };\n if (text) {\n (linkComponentProps as any).href = linkURL;\n }\n let isData = false;\n const shouldTreatAsDataReference = !previewKey && resourcePayload.caseClassName;\n if (contextPage?.classID) {\n resourcePayload.caseClassName = contextPage.classID;\n }\n /* TODO : In case of duplicate search case the classID is Work- need to set it to\n the current case class ID */\n if (resourcePayload.caseClassName === WORKCLASS) {\n resourcePayload.caseClassName = pConnect.getValue(CASE_INFO_CLASSID);\n }\n\n function showDataAction() {\n if (dataResourcePayLoad && dataResourcePayLoad.resourceType === 'DATA') {\n const { content } = dataResourcePayLoad;\n const lookUpDataPageInfo = PCore.getDataTypeUtils().getLookUpDataPageInfo(dataResourcePayLoad?.className);\n const lookUpDataPage = PCore.getDataTypeUtils().getLookUpDataPage(dataResourcePayLoad?.className);\n if (lookUpDataPageInfo) {\n const { parameters }: any = lookUpDataPageInfo;\n payload = Object.keys(parameters).reduce((acc, param) => {\n const paramValue = parameters[param];\n return {\n ...acc,\n [param]: PCore.getAnnotationUtils().isProperty(paramValue) ? content[PCore.getAnnotationUtils().getPropertyName(paramValue)] : paramValue\n };\n }, {});\n }\n getPConnect()\n .getActionsApi()\n .showData('pyDetails', lookUpDataPage, {\n ...payload\n });\n }\n if ((referenceType && referenceType.toUpperCase() === DATA) || shouldTreatAsDataReference) {\n getPConnect()\n .getActionsApi()\n .showData('pyDetails', dataViewName, {\n ...payload\n });\n }\n }\n\n function openLinkClick(e) {\n if (!e.metaKey && !e.ctrlKey) {\n e.preventDefault();\n if (\n (dataResourcePayLoad && dataResourcePayLoad.resourceType === 'DATA') ||\n (referenceType && referenceType.toUpperCase() === DATA) ||\n shouldTreatAsDataReference\n ) {\n showDataAction();\n } else if (previewKey) {\n getPConnect().getActionsApi().openWorkByHandle(previewKey, resourcePayload.caseClassName);\n }\n }\n }\n\n if ((referenceType && referenceType.toUpperCase() === DATA) || shouldTreatAsDataReference) {\n try {\n isData = true;\n // @ts-expect-error\n const dataRefContext = semanticUtils.getDataReferenceInfo(pConnect, dataRelationshipContext, contextPage);\n dataViewName = dataRefContext.dataContext;\n payload = dataRefContext.dataContextParameters as any;\n } catch (error) {\n console.log('Error in getting the data reference info', error);\n }\n } else if (resourcePayload && resourcePayload.resourceType === 'DATA') {\n isData = true;\n dataViewName = PCore.getDataTypeUtils().getLookUpDataPage(resourcePayload.className);\n const lookUpDataPageInfo = PCore.getDataTypeUtils().getLookUpDataPageInfo(resourcePayload.className);\n const { content } = resourcePayload;\n if (lookUpDataPageInfo) {\n const { parameters }: any = lookUpDataPageInfo;\n payload = Object.keys(parameters).reduce((acc, param) => {\n const paramValue = parameters[param];\n return {\n ...acc,\n [param]: PCore.getAnnotationUtils().isProperty(paramValue) ? content[PCore.getAnnotationUtils().getPropertyName(paramValue)] : paramValue\n };\n }, {});\n } else {\n const keysInfo = PCore.getDataTypeUtils().getDataPageKeys(dataViewName) ?? [];\n payload = keysInfo.reduce((acc, curr) => {\n return {\n ...acc,\n [curr.keyName]: content[curr.isAlternateKeyStorage ? curr.linkedField : curr.keyName]\n };\n }, {});\n }\n }\n\n if (isData && dataViewName && payload) {\n linkURL = PCore.getSemanticUrlUtils().getResolvedSemanticURL(\n ACTION_SHOWDATA,\n { pageName: 'pyDetails', dataViewName },\n {\n ...payload\n }\n );\n } else {\n // BUG-678282 fix to handle scenario when workID was not populated.\n // Check renderParentLink in Caseview / CasePreview\n resourceParams.objectID = resourceParams.workID === '' && typeof previewKey === 'string' ? previewKey.split(' ')[1] : resourceParams.workID;\n if (previewKey) {\n resourceParams.id = previewKey;\n }\n linkURL = PCore.getSemanticUrlUtils().getResolvedSemanticURL(ACTION_OPENWORKBYHANDLE, resourcePayload, resourceParams);\n }\n\n if (text) {\n linkComponentProps = {\n ...linkComponentProps,\n href: linkURL\n };\n }\n\n return (\n <Link component='button' {...linkComponentProps} {...restProps} onClick={openLinkClick} data-testid={testId}>\n {text}\n </Link>\n );\n}\n"]}
|
|
@@ -27,7 +27,7 @@ function getDataReferenceInfo(pConnect, dataRelationshipContext) {
|
|
|
27
27
|
dataContext = name;
|
|
28
28
|
for (const [key, value] of Object.entries(parameters)) {
|
|
29
29
|
const property =
|
|
30
|
-
// @ts-
|
|
30
|
+
// @ts-expect-error - Property 'getLeafPropertyName' is private and only accessible within class 'AnnotationUtils'
|
|
31
31
|
dataRelationshipContext !== null ? annotationUtils.getPropertyName(value) : annotationUtils.getLeafPropertyName(value);
|
|
32
32
|
payload[key] = pConnect.getValue(`.${property}`);
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/field/SemanticLink/utils.ts"],"names":[],"mappings":"AAAA,SAAS,oBAAoB,CAAC,QAAQ,EAAE,uBAAuB;IAC7D,IAAI,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/field/SemanticLink/utils.ts"],"names":[],"mappings":"AAAA,SAAS,oBAAoB,CAAC,QAAQ,EAAE,uBAAuB;IAC7D,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,KAAK,CAAC,gCAAgC,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,MAAM,aAAa,GAAG,QAAQ,CAAC,gBAAgB,EAAE,CAAC;IAClD,MAAM,eAAe,GAAG,KAAK,CAAC,kBAAkB,EAAE,CAAC;IACnD,IAAI,aAAa,CAAC;IAElB,IAAI,aAAa,EAAE,CAAC;QAClB;;;UAGE;QACF,MAAM,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAE/C,kEAAkE;QAClE,MAAM,iBAAiB,GAAG,6BAA6B,CAAC;QACxD,yDAAyD;QACzD,MAAM,UAAU,GAAG,mBAAmB,CAAC;QAEvC,IAAI,eAAe,GAAG,uBAAuB,KAAK,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QACvG,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC/D,eAAe,GAAG,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC;QAC7F,aAAa,GAAG,QAAQ,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAC7D,CAAC;IAED,IAAI,CAAC,CAAC,aAAa,IAAI,aAAa,CAAC,UAAU,EAAE,CAAC;QAChD,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,UAAU,CAAC;QACtD,WAAW,GAAG,IAAI,CAAC;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YACtD,MAAM,QAAQ;YACZ,kHAAkH;YAClH,uBAAuB,KAAK,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,eAAe,CAAC,KAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;YACnI,OAAO,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC;IACzD,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,eAAe,CAAC,IAAI;IAC3B,OAAO,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC;AAC5D,CAAC;AAED,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,CAAC","sourcesContent":["function getDataReferenceInfo(pConnect, dataRelationshipContext) {\n if (!pConnect) {\n throw Error('PConnect parameter is required');\n }\n\n let dataContext = '';\n const payload = {};\n const pageReference = pConnect.getPageReference();\n const annotationUtils = PCore.getAnnotationUtils();\n let fieldMetadata;\n\n if (pageReference) {\n /*\n For page list the page refernce will be something like caseInfo.content.EmployeeRef[1].\n Need to extract EmployeeRef from caseInfo.content.EmployeeRef[1]\n */\n const propertySplit = pageReference.split('.');\n\n // Regex to match if the property is list type. Eg: EmployeeRef[1]\n const listPropertyRegex = /([a-z|A-Z]*[[][\\d]*)[\\]]$/gm;\n // Regex to match [1] part of the property EmployeeRef[1]\n const indexRegex = /([[][\\d]*[\\]])+/gm;\n\n let contextProperty = dataRelationshipContext !== null ? dataRelationshipContext : propertySplit.pop();\n const isListProperty = listPropertyRegex.test(contextProperty);\n contextProperty = isListProperty ? contextProperty.replace(indexRegex, '') : contextProperty;\n fieldMetadata = pConnect.getFieldMetadata(contextProperty);\n }\n\n if (!!fieldMetadata && fieldMetadata.datasource) {\n const { name, parameters } = fieldMetadata.datasource;\n dataContext = name;\n for (const [key, value] of Object.entries(parameters)) {\n const property =\n // @ts-expect-error - Property 'getLeafPropertyName' is private and only accessible within class 'AnnotationUtils'\n dataRelationshipContext !== null ? annotationUtils.getPropertyName(value as string) : annotationUtils.getLeafPropertyName(value);\n payload[key] = pConnect.getValue(`.${property}`);\n }\n return { dataContext, dataContextParameters: payload };\n }\n\n return {};\n}\n\nfunction isLinkTextEmpty(text) {\n return text === '' || text === undefined || text === null;\n}\n\nexport default { getDataReferenceInfo, isLinkTextEmpty };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextArea/TextArea.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextArea/TextArea.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,UAAU,aAAc,SAAQ,eAAe;IAE7C,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAiFpD"}
|
|
@@ -28,10 +28,7 @@ export default function TextArea(props) {
|
|
|
28
28
|
// since we want to preserve the minRows, maxRows info.
|
|
29
29
|
readOnlyProp = { readOnly: true };
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
testProp = {
|
|
33
|
-
'data-test-id': testId
|
|
34
|
-
};
|
|
31
|
+
const testProps = { 'data-test-id': testId };
|
|
35
32
|
function handleChange(event) {
|
|
36
33
|
// update internal value
|
|
37
34
|
setInputValue(event?.target?.value);
|
|
@@ -39,6 +36,8 @@ export default function TextArea(props) {
|
|
|
39
36
|
function handleBlur() {
|
|
40
37
|
handleEvent(actions, 'changeNblur', propName, inputValue);
|
|
41
38
|
}
|
|
42
|
-
return (_jsx(TextField, { multiline: true, minRows: 5, maxRows: 5, fullWidth: true, variant: readOnly ? 'standard' : 'outlined', helperText: helperTextToDisplay, placeholder: placeholder ?? '', size: 'small', required: required, disabled: disabled, onChange: handleChange, onBlur: !readOnly ? handleBlur : undefined, error: status === 'error', label: label, value: inputValue,
|
|
39
|
+
return (_jsx(TextField, { multiline: true, minRows: 5, maxRows: 5, fullWidth: true, variant: readOnly ? 'standard' : 'outlined', helperText: helperTextToDisplay, placeholder: placeholder ?? '', size: 'small', required: required, disabled: disabled, onChange: handleChange, onBlur: !readOnly ? handleBlur : undefined, error: status === 'error', label: label, value: inputValue, slotProps: {
|
|
40
|
+
input: { ...readOnlyProp, inputProps: { maxLength, ...testProps } }
|
|
41
|
+
} }));
|
|
43
42
|
}
|
|
44
43
|
//# sourceMappingURL=TextArea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/field/TextArea/TextArea.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,WAAW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IAED,IAAI,QAAQ,EAAE,CAAC;QACb,wEAAwE;QACxE,wDAAwD;QACxD,YAAY,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpC,CAAC;IAED,MAAM,SAAS,GAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;IAElD,SAAS,YAAY,CAAC,KAAK;QACzB,wBAAwB;QACxB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,SAAS,UAAU;QACjB,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,CACL,KAAC,SAAS,IACR,SAAS,QACT,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,CAAC,EACV,SAAS,QACT,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAC3C,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAE,WAAW,IAAI,EAAE,EAC9B,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAC1C,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE;YACT,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE;SACpE,GACD,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { useEffect, useState } from 'react';\nimport { TextField } from '@mui/material';\n\nimport handleEvent from '../../helpers/event-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport type { PConnFieldProps } from '../../../types/PConnProps';\n\ninterface TextAreaProps extends PConnFieldProps {\n // If any, enter additional props that only exist on TextArea here\n fieldMetadata?: any;\n}\n\nexport default function TextArea(props: TextAreaProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const FieldValueList = getComponentFromMap('FieldValueList');\n\n const {\n getPConnect,\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n readOnly,\n testId,\n fieldMetadata,\n helperText,\n displayMode,\n hideLabel,\n placeholder\n } = props;\n const helperTextToDisplay = validatemessage || helperText;\n const pConn = getPConnect();\n const actions = pConn.getActionsApi();\n const propName = (pConn.getStateProps() as any).value;\n const maxLength = fieldMetadata?.maxLength;\n\n const [inputValue, setInputValue] = useState('');\n\n let readOnlyProp = {};\n\n useEffect(() => {\n setInputValue(value);\n }, [value]);\n\n if (displayMode === 'DISPLAY_ONLY') {\n return <FieldValueList name={hideLabel ? '' : label} value={value} />;\n }\n\n if (displayMode === 'STACKED_LARGE_VAL') {\n return <FieldValueList name={hideLabel ? '' : label} value={value} variant='stacked' />;\n }\n\n if (readOnly) {\n // Not just emitting a read only Textfield like some other components do\n // since we want to preserve the minRows, maxRows info.\n readOnlyProp = { readOnly: true };\n }\n\n const testProps: any = { 'data-test-id': testId };\n\n function handleChange(event) {\n // update internal value\n setInputValue(event?.target?.value);\n }\n\n function handleBlur() {\n handleEvent(actions, 'changeNblur', propName, inputValue);\n }\n\n return (\n <TextField\n multiline\n minRows={5}\n maxRows={5}\n fullWidth\n variant={readOnly ? 'standard' : 'outlined'}\n helperText={helperTextToDisplay}\n placeholder={placeholder ?? ''}\n size='small'\n required={required}\n disabled={disabled}\n onChange={handleChange}\n onBlur={!readOnly ? handleBlur : undefined}\n error={status === 'error'}\n label={label}\n value={inputValue}\n slotProps={{\n input: { ...readOnlyProp, inputProps: { maxLength, ...testProps } }\n }}\n />\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextContent.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextContent/TextContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextContent.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextContent/TextContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;CAChF;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAmC1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextContent.js","sourceRoot":"","sources":["../../../../src/components/field/TextContent/TextContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IAIzD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAsD,KAAK,CAAC;IAExF,IAAI,UAAU,GAAqB,OAAO,CAAC;IAE3C,QAAQ,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"TextContent.js","sourceRoot":"","sources":["../../../../src/components/field/TextContent/TextContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAU3C,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IAIzD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAsD,KAAK,CAAC;IAExF,IAAI,UAAU,GAAqB,OAAO,CAAC;IAE3C,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,WAAW;YACd,UAAU,GAAG,OAAO,CAAC;YACrB,MAAM;QAER,KAAK,WAAW;YACd,UAAU,GAAG,IAAI,CAAC;YAClB,MAAM;QAER,KAAK,WAAW;YACd,UAAU,GAAG,IAAI,CAAC;YAClB,MAAM;QAER,KAAK,WAAW;YACd,UAAU,GAAG,IAAI,CAAC;YAClB,MAAM;QAER,KAAK,WAAW;YACd,UAAU,GAAG,IAAI,CAAC;YAClB,MAAM;QAER;YACE,OAAO,CAAC,KAAK,CAAC,+CAA+C,SAAS,EAAE,CAAC,CAAC;YAC1E,MAAM;IACV,CAAC;IAED,OAAO,KAAC,UAAU,IAAC,OAAO,EAAE,UAAU,YAAG,OAAO,GAAc,CAAC;AACjE,CAAC","sourcesContent":["import { Typography } from '@mui/material';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\ninterface TextContentProps extends PConnProps {\n // If any, enter additional props that only exist on TextContent here\n content: string;\n displayAs: 'Paragraph' | 'Heading 1' | 'Heading 2' | 'Heading 3' | 'Heading 4';\n}\n\nexport default function TextContent(props: TextContentProps) {\n type ExpectedDisplayAs = 'Paragraph' | 'Heading 1' | 'Heading 2' | 'Heading 3' | 'Heading 4';\n type ExpectedVariants = 'body1' | 'h1' | 'h2' | 'h3' | 'h4';\n\n const { content, displayAs }: { content: string; displayAs: ExpectedDisplayAs } = props;\n\n let theVariant: ExpectedVariants = 'body1';\n\n switch (displayAs) {\n case 'Paragraph':\n theVariant = 'body1';\n break;\n\n case 'Heading 1':\n theVariant = 'h1';\n break;\n\n case 'Heading 2':\n theVariant = 'h2';\n break;\n\n case 'Heading 3':\n theVariant = 'h3';\n break;\n\n case 'Heading 4':\n theVariant = 'h4';\n break;\n\n default:\n console.error(`TextContent got an expected displayAs prop: ${displayAs}`);\n break;\n }\n\n return <Typography variant={theVariant}>{content}</Typography>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextInput/TextInput.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextInput/TextInput.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,UAAU,cAAe,SAAQ,eAAe;IAE9C,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,2CA+EtD"}
|