@pega/react-sdk-components 24.2.10 → 25.1.10
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.d.ts.map +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 +50 -35
- 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 +32 -4
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +12 -2
- 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 +4 -7
- 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 +8 -7
- 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 +7 -7
- 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 +15 -11
- 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 +7 -6
- 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 +16 -13
- 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 +4 -3
- 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.css +4 -0
- package/lib/components/field/Location/Location.d.ts +11 -0
- package/lib/components/field/Location/Location.d.ts.map +1 -0
- package/lib/components/field/Location/Location.js +158 -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 +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 +7 -7
- 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 +15 -10
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
- package/lib/components/field/RichText/RichText.css +79 -0
- package/lib/components/field/RichText/RichText.d.ts +2 -1
- package/lib/components/field/RichText/RichText.d.ts.map +1 -1
- package/lib/components/field/RichText/RichText.js +1 -0
- 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 +3 -4
- 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 +13 -0
- package/lib/components/field/SelectableCard/utils.d.ts.map +1 -0
- package/lib/components/field/SelectableCard/utils.js +183 -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 +3 -6
- 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 +2 -5
- 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/attachmentShared.d.ts +2 -0
- package/lib/components/helpers/attachmentShared.d.ts.map +1 -0
- package/lib/components/helpers/attachmentShared.js +6 -0
- package/lib/components/helpers/attachmentShared.js.map +1 -0
- package/lib/components/helpers/case-utils.js.map +1 -1
- package/lib/components/helpers/common-utils.d.ts +8 -1
- package/lib/components/helpers/common-utils.d.ts.map +1 -1
- package/lib/components/helpers/common-utils.js +20 -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.d.ts +1 -0
- package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Currency.js +20 -19
- 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/common.d.ts +2 -2
- package/lib/components/helpers/formatters/common.d.ts.map +1 -1
- package/lib/components/helpers/formatters/common.js +2 -1
- package/lib/components/helpers/formatters/common.js.map +1 -1
- package/lib/components/helpers/formatters/index.d.ts +1 -0
- package/lib/components/helpers/formatters/index.d.ts.map +1 -1
- package/lib/components/helpers/formatters/index.js +2 -3
- 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/object-utils.d.ts +9 -0
- package/lib/components/helpers/object-utils.d.ts.map +1 -0
- package/lib/components/helpers/object-utils.js +11 -0
- package/lib/components/helpers/object-utils.js.map +1 -0
- 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 +16 -2
- 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 +35 -36
- 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 +18 -93
- 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 +1 -5
- 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 +3 -2
- 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 +4 -5
- 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 +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 +3 -0
- package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -0
- package/lib/components/infra/Containers/container-helpers.js +52 -0
- package/lib/components/infra/Containers/container-helpers.js.map +1 -0
- 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 +3 -7
- 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 -5
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts +2 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.js +6 -9
- 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 +48 -70
- 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 +19 -41
- 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 +13 -7
- 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 +1 -2
- 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 +2 -2
- 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 +2 -1
- package/lib/components/infra/View/View.js.map +1 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
- package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js +68 -0
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +23 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +26 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +179 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +25 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +10 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
- package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
- package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/index.js +2 -0
- package/lib/components/template/AdvancedSearch/index.js.map +1 -0
- 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 +14 -17
- 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 +4 -2
- package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.js +24 -37
- package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
- package/lib/components/template/CaseView/CaseView.d.ts +3 -2
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/template/CaseView/CaseView.js +14 -16
- 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 +1 -2
- package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/template/DataReference/DataReference.d.ts +9 -2
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReference.js +239 -80
- package/lib/components/template/DataReference/DataReference.js.map +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
- package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
- package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
- package/lib/components/template/DataReference/SearchForm.js +87 -0
- package/lib/components/template/DataReference/SearchForm.js.map +1 -0
- package/lib/components/template/DataReference/utils.d.ts +15 -0
- package/lib/components/template/DataReference/utils.d.ts.map +1 -0
- package/lib/components/template/DataReference/utils.js +75 -0
- package/lib/components/template/DataReference/utils.js.map +1 -0
- 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 +1 -2
- package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
- package/lib/components/template/DefaultPage/DefaultPage.d.ts +36 -0
- package/lib/components/template/DefaultPage/DefaultPage.d.ts.map +1 -0
- package/lib/components/template/DefaultPage/DefaultPage.js +28 -0
- package/lib/components/template/DefaultPage/DefaultPage.js.map +1 -0
- package/lib/components/template/DefaultPage/index.d.ts +2 -0
- package/lib/components/template/DefaultPage/index.d.ts.map +1 -0
- package/lib/components/template/DefaultPage/index.js +2 -0
- package/lib/components/template/DefaultPage/index.js.map +1 -0
- 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 +0 -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 -4
- 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 +4 -1
- package/lib/components/template/ListView/ListView.d.ts.map +1 -1
- package/lib/components/template/ListView/ListView.js +134 -67
- 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 +28 -6
- 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 -2
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
- package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts +2 -0
- package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.d.ts.map +1 -0
- package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js +73 -0
- package/lib/components/template/SelfServiceCaseView/SelfServiceCaseView.js.map +1 -0
- package/lib/components/template/SelfServiceCaseView/index.d.ts +2 -0
- package/lib/components/template/SelfServiceCaseView/index.d.ts.map +1 -0
- package/lib/components/template/SelfServiceCaseView/index.js +2 -0
- package/lib/components/template/SelfServiceCaseView/index.js.map +1 -0
- 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 -4
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +4 -2
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +64 -47
- 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 +2 -4
- 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 +3 -2
- 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 +10 -0
- package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.js +102 -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 +4 -4
- package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
- package/lib/components/template/utils.d.ts +7 -0
- package/lib/components/template/utils.d.ts.map +1 -0
- package/lib/components/template/utils.js +52 -0
- package/lib/components/template/utils.js.map +1 -0
- 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 +7 -8
- package/lib/components/widget/Attachment/Attachment.d.ts +4 -2
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
- package/lib/components/widget/Attachment/Attachment.js +255 -207
- package/lib/components/widget/Attachment/Attachment.js.map +1 -1
- package/lib/components/widget/Attachment/Attachment.types.d.ts +90 -0
- package/lib/components/widget/Attachment/Attachment.types.d.ts.map +1 -0
- package/lib/components/widget/Attachment/Attachment.types.js +2 -0
- package/lib/components/widget/Attachment/Attachment.types.js.map +1 -0
- package/lib/components/widget/Attachment/AttachmentUtils.d.ts +25 -0
- package/lib/components/widget/Attachment/AttachmentUtils.d.ts.map +1 -0
- package/lib/components/widget/Attachment/AttachmentUtils.js +255 -0
- package/lib/components/widget/Attachment/AttachmentUtils.js.map +1 -0
- 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 +2 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +29 -17
- 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 -2
- 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 +22 -17
- 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 +10 -0
- package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
- package/lib/hooks/useGetTabsCount.js +165 -0
- package/lib/hooks/useGetTabsCount.js.map +1 -0
- package/lib/hooks/useIsMount.d.ts +2 -0
- package/lib/hooks/useIsMount.d.ts.map +1 -0
- package/lib/hooks/useIsMount.js +9 -0
- package/lib/hooks/useIsMount.js.map +1 -0
- package/lib/hooks/useScrolltoTop.d.ts.map +1 -1
- package/lib/mediaco/ToDo/ToDo.css +81 -0
- package/lib/mediaco/ToDo/ToDo.d.ts +16 -0
- package/lib/mediaco/ToDo/ToDo.d.ts.map +1 -0
- package/lib/mediaco/ToDo/ToDo.js +187 -0
- package/lib/mediaco/ToDo/ToDo.js.map +1 -0
- package/lib/mediaco/ToDo/index.d.ts +2 -0
- package/lib/mediaco/ToDo/index.d.ts.map +1 -0
- package/lib/mediaco/ToDo/index.js +2 -0
- package/lib/mediaco/ToDo/index.js.map +1 -0
- package/lib/samples/Embedded/styles.css +26 -0
- package/lib/sdk-pega-component-map.d.ts +119 -103
- package/lib/sdk-pega-component-map.d.ts.map +1 -1
- package/lib/sdk-pega-component-map.js +20 -3
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/lib/theme.d.ts +30 -1
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +209 -2
- package/lib/theme.js.map +1 -1
- package/lib/types/PConnProps.d.ts +1 -1
- package/package.json +32 -1
- package/lib/components/helpers/attachmentHelpers.d.ts +0 -13
- package/lib/components/helpers/attachmentHelpers.d.ts.map +0 -1
- package/lib/components/helpers/attachmentHelpers.js +0 -72
- package/lib/components/helpers/attachmentHelpers.js.map +0 -1
- package/lib/components/infra/Containers/helpers.d.ts +0 -2
- package/lib/components/infra/Containers/helpers.d.ts.map +0 -1
- package/lib/components/infra/Containers/helpers.js +0 -7
- package/lib/components/infra/Containers/helpers.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromotedFilters.js","sourceRoot":"","sources":["../../../../src/components/template/PromotedFilters/PromotedFilters.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAE1C,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,uBAAuB,CAAC;AAe/B,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,mCAAmC,GAAG;IAC1C,WAAW;IACX,YAAY;IACZ,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,MAAM;IACN,MAAM;IACN,MAAM;IACN,UAAU;IACV,UAAU;IACV,KAAK;IACL,UAAU;CACX,CAAC;AAEF,SAAS,OAAO,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE;IAC5D,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QACnC,MAAM,WAAW,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;QAClC,4IAA4I;QAC5I,IAAI,CAAC,mCAAmC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACnE,WAAW,CAAC,IAAI,GAAG,WAAW,CAAC;YAC/B,OAAO,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;SACvC;QACD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OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,YAC5G,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,IAD5B,GAAG,CAEN,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAU,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,iBAAc,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,YACtI,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,IADF,GAAG,CAEjC,IACL,EACL,SAAS,IAAI,CACZ,KAAC,QAAQ,OACH,aAAa,EACjB,KAAK,EAAC,EAAE,EACR,OAAO,EAAE,OAAO,EAChB,YAAY,QACZ,YAAY,EAAE;oBACZ,IAAI,EAAE,SAAS;iBAChB,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useCallback, useMemo, useState, createElement } from 'react';\nimport Button from '@mui/material/Button';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\nimport { isEmptyObject } from '../../helpers/common-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport './PromotedFilters.css';\n\nimport { PConnProps } from '../../../types/PConnProps';\n\n// Can't use PromotedFilterProps until getContainerManager() knows about addTransientItem\n// Currently just expects \"object\"\ninterface PromotedFilterProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n viewName: string;\n filters: any[];\n listViewProps: any;\n pageClass: string;\n parameters?: object;\n}\n\nconst localeCategory = 'SimpleTable';\nconst SUPPORTED_TYPES_IN_PROMOTED_FILTERS = [\n 'TextInput',\n 'Percentage',\n 'Email',\n 'Integer',\n 'Decimal',\n 'Checkbox',\n 'DateTime',\n 'Date',\n 'Time',\n 'Text',\n 'TextArea',\n 'Currency',\n 'URL',\n 'RichText'\n];\n\nfunction Filters({ filters, transientItemID, localeReference }) {\n return filters.map((filter, index) => {\n const filterClone = { ...filter };\n // convert any field which is not supported to TextInput and delete the placeholder as it may contain placeholder specific to original type.\n if (!SUPPORTED_TYPES_IN_PROMOTED_FILTERS.includes(filterClone.type)) {\n filterClone.type = 'TextInput';\n delete filterClone.config.placeholder;\n }\n filterClone.config.contextName = transientItemID;\n filterClone.config.readOnly = false;\n filterClone.config.context = transientItemID;\n filterClone.config.localeReference = localeReference;\n const c11nEnv = PCore.createPConnect({\n meta: filterClone,\n options: {\n hasForm: true,\n contextName: transientItemID\n }\n });\n\n // eslint-disable-next-line react/no-array-index-key\n return <React.Fragment key={index}>{createElement(createPConnectComponent(), c11nEnv)}</React.Fragment>;\n });\n}\n\nfunction isValidInput(input) {\n return Object.values(input).findIndex(v => v) >= 0;\n}\n\nexport default function PromotedFilters(props: PromotedFilterProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const { getPConnect, viewName, filters, listViewProps, pageClass, parameters } = props;\n const [initTable, setInitTable] = useState(false);\n const [payload, setPayload] = useState({});\n const filtersProperties = {};\n\n filters.forEach(filter => {\n filtersProperties[PCore.getAnnotationUtils().getPropertyName(filter.config.value)] = '';\n });\n\n const transientItemID = useMemo(() => {\n const filtersWithClassID = {\n ...filtersProperties,\n classID: pageClass\n };\n return getPConnect().getContainerManager().addTransientItem({\n id: viewName,\n // @ts-ignore - Property 'coreHeaders' is missing in type '{ classID: string; }' but required in type '{ coreHeaders: any; }'.\n data: filtersWithClassID\n });\n }, []);\n\n function formatPromotedFilters(promotedFilters) {\n return Object.entries(promotedFilters).reduce((acc, [field, value]) => {\n if (value) {\n acc[field] = {\n lhs: {\n field\n },\n comparator: 'EQ',\n rhs: {\n value\n }\n };\n }\n return acc;\n }, {});\n }\n\n const getFilterData = useCallback(\n e => {\n e.preventDefault(); // to prevent un-intended forms submission.\n\n const changes = PCore.getFormUtils().getChanges(transientItemID);\n const formValues = {};\n Object.keys(changes).forEach(key => {\n if (!['context_data', 'pageInstructions'].includes(key)) {\n formValues[key] = changes[key];\n }\n });\n const promotedFilters = formatPromotedFilters(formValues);\n if (PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {\n setInitTable(true);\n const Query: any = {\n dataViewParameters: parameters\n };\n\n if (!isEmptyObject(promotedFilters)) {\n Query.query = { filter: { filterConditions: promotedFilters } };\n }\n setPayload(Query);\n }\n },\n [transientItemID]\n );\n\n const clearFilterData = useCallback(() => {\n PCore.getContainerUtils().clearTransientData(transientItemID);\n setInitTable(false);\n getPConnect()?.getListActions?.()?.setSelectedRows([]); // Clear the selection (if any made by user)\n }, [transientItemID]);\n\n return (\n <>\n <div>{listViewProps.title}</div>\n <div className='psdk-grid-filter'>\n <Filters filters={filters} transientItemID={transientItemID} localeReference={listViewProps.localeReference} />\n </div>\n <div>\n <Button key='1' type='button' onClick={clearFilterData} data-testid='clear' variant='contained' color='primary'>\n {localizedVal('Clear', localeCategory)}\n </Button>\n <Button style={{ float: 'right' }} key='2' type='submit' onClick={getFilterData} data-testid='search' variant='contained' color='primary'>\n {localizedVal('Search', localeCategory)}\n </Button>\n </div>\n {initTable && (\n <ListView\n {...listViewProps}\n title=''\n payload={payload}\n isSearchable\n tableDisplay={{\n show: initTable\n }}\n />\n )}\n </>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PromotedFilters.js","sourceRoot":"","sources":["../../../../src/components/template/PromotedFilters/PromotedFilters.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAE1C,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,uBAAuB,CAAC;AAe/B,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MA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B,CAAC;IAEF,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;QACvC,KAAK,CAAC,iBAAiB,EAAE,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;QAC9D,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,WAAW,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,4CAA4C;IACtG,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,CACL,8BACE,wBAAM,aAAa,CAAC,KAAK,GAAO,EAChC,cAAK,SAAS,EAAC,kBAAkB,YAC/B,KAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,CAAC,eAAe,GAAI,GAC3G,EACN,0BACE,KAAC,MAAM,IAAS,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,eAAe,iBAAc,OAAO,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,YAC5G,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,IAD5B,GAAG,CAEN,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAU,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,aAAa,iBAAc,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,SAAS,YACtI,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,IADF,GAAG,CAEjC,IACL,EACL,SAAS,IAAI,CACZ,KAAC,QAAQ,OACH,aAAa,EACjB,KAAK,EAAC,EAAE,EACR,OAAO,EAAE,OAAO,EAChB,YAAY,QACZ,YAAY,EAAE;oBACZ,IAAI,EAAE,SAAS;iBAChB,GACD,CACH,IACA,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useCallback, useMemo, useState, createElement } from 'react';\nimport Button from '@mui/material/Button';\n\nimport createPConnectComponent from '../../../bridge/react_pconnect';\nimport { isEmptyObject } from '../../helpers/common-utils';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport './PromotedFilters.css';\n\nimport type { PConnProps } from '../../../types/PConnProps';\n\n// Can't use PromotedFilterProps until getContainerManager() knows about addTransientItem\n// Currently just expects \"object\"\ninterface PromotedFilterProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n viewName: string;\n filters: any[];\n listViewProps: any;\n pageClass: string;\n parameters?: object;\n}\n\nconst localeCategory = 'SimpleTable';\nconst SUPPORTED_TYPES_IN_PROMOTED_FILTERS = [\n 'TextInput',\n 'Percentage',\n 'Email',\n 'Integer',\n 'Decimal',\n 'Checkbox',\n 'DateTime',\n 'Date',\n 'Time',\n 'Text',\n 'TextArea',\n 'Currency',\n 'URL',\n 'RichText'\n];\n\nfunction Filters({ filters, transientItemID, localeReference }) {\n return filters.map((filter, index) => {\n const filterClone = { ...filter };\n // convert any field which is not supported to TextInput and delete the placeholder as it may contain placeholder specific to original type.\n if (!SUPPORTED_TYPES_IN_PROMOTED_FILTERS.includes(filterClone.type)) {\n filterClone.type = 'TextInput';\n delete filterClone.config.placeholder;\n }\n filterClone.config.contextName = transientItemID;\n filterClone.config.readOnly = false;\n filterClone.config.context = transientItemID;\n filterClone.config.localeReference = localeReference;\n const c11nEnv = PCore.createPConnect({\n meta: filterClone,\n options: {\n hasForm: true,\n contextName: transientItemID\n }\n });\n\n return <React.Fragment key={index}>{createElement(createPConnectComponent(), c11nEnv)}</React.Fragment>;\n });\n}\n\nfunction isValidInput(input) {\n return Object.values(input).findIndex(v => v) >= 0;\n}\n\nexport default function PromotedFilters(props: PromotedFilterProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const { getPConnect, viewName, filters, listViewProps, pageClass, parameters } = props;\n const [initTable, setInitTable] = useState(false);\n const [payload, setPayload] = useState({});\n const filtersProperties = {};\n\n filters.forEach(filter => {\n filtersProperties[PCore.getAnnotationUtils().getPropertyName(filter.config.value)] = '';\n });\n\n const transientItemID = useMemo(() => {\n const filtersWithClassID = {\n ...filtersProperties,\n classID: pageClass\n };\n return getPConnect().getContainerManager().addTransientItem({\n id: viewName,\n data: filtersWithClassID\n });\n }, []);\n\n function formatPromotedFilters(promotedFilters) {\n return Object.entries(promotedFilters).reduce((acc, [field, value]) => {\n if (value) {\n acc[field] = {\n lhs: {\n field\n },\n comparator: 'EQ',\n rhs: {\n value\n }\n };\n }\n return acc;\n }, {});\n }\n\n const getFilterData = useCallback(\n e => {\n e.preventDefault(); // to prevent un-intended forms submission.\n\n const changes = PCore.getFormUtils().getChanges(transientItemID);\n const formValues = {};\n Object.keys(changes).forEach(key => {\n if (!['context_data', 'pageInstructions'].includes(key)) {\n formValues[key] = changes[key];\n }\n });\n const promotedFilters = formatPromotedFilters(formValues);\n if (PCore.getFormUtils().isFormValid(transientItemID) && isValidInput(formValues)) {\n setInitTable(true);\n const Query: any = {\n dataViewParameters: parameters\n };\n\n if (!isEmptyObject(promotedFilters)) {\n Query.query = { filter: { filterConditions: promotedFilters } };\n }\n setPayload(Query);\n }\n },\n [transientItemID]\n );\n\n const clearFilterData = useCallback(() => {\n PCore.getContainerUtils().clearTransientData(transientItemID);\n setInitTable(false);\n getPConnect()?.getListActions?.()?.setSelectedRows([]); // Clear the selection (if any made by user)\n }, [transientItemID]);\n\n return (\n <>\n <div>{listViewProps.title}</div>\n <div className='psdk-grid-filter'>\n <Filters filters={filters} transientItemID={transientItemID} localeReference={listViewProps.localeReference} />\n </div>\n <div>\n <Button key='1' type='button' onClick={clearFilterData} data-testid='clear' variant='contained' color='primary'>\n {localizedVal('Clear', localeCategory)}\n </Button>\n <Button style={{ float: 'right' }} key='2' type='submit' onClick={getFilterData} data-testid='search' variant='contained' color='primary'>\n {localizedVal('Search', localeCategory)}\n </Button>\n </div>\n {initTable && (\n <ListView\n {...listViewProps}\n title=''\n payload={payload}\n isSearchable\n tableDisplay={{\n show: initTable\n }}\n />\n )}\n </>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfServiceCaseView.d.ts","sourceRoot":"","sources":["../../../../src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx"],"names":[],"mappings":"AAkCA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,KAAA,2CA8GhD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar, Card, CardHeader, Divider, Typography } from '@mui/material';
|
|
3
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
4
|
+
import Grid2 from '@mui/material/Grid2';
|
|
5
|
+
import { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';
|
|
6
|
+
import { prepareCaseSummaryData, filterUtilities } from '../utils';
|
|
7
|
+
import { Utils } from '../../helpers/utils';
|
|
8
|
+
const useStyles = makeStyles(theme => ({
|
|
9
|
+
root: {
|
|
10
|
+
paddingRight: theme.spacing(1),
|
|
11
|
+
paddingLeft: theme.spacing(1),
|
|
12
|
+
paddingTop: theme.spacing(1),
|
|
13
|
+
paddingBottom: theme.spacing(1),
|
|
14
|
+
marginRight: theme.spacing(1),
|
|
15
|
+
marginLeft: theme.spacing(1),
|
|
16
|
+
marginTop: theme.spacing(1),
|
|
17
|
+
marginBottom: theme.spacing(1)
|
|
18
|
+
},
|
|
19
|
+
caseViewHeader: {
|
|
20
|
+
backgroundColor: theme.palette.info.light,
|
|
21
|
+
color: theme.palette.getContrastText(theme.palette.info.light),
|
|
22
|
+
borderRadius: 'inherit'
|
|
23
|
+
},
|
|
24
|
+
caseViewIconBox: {
|
|
25
|
+
backgroundColor: theme.palette.info.dark,
|
|
26
|
+
width: theme.spacing(8),
|
|
27
|
+
height: theme.spacing(8),
|
|
28
|
+
padding: theme.spacing(1)
|
|
29
|
+
},
|
|
30
|
+
caseViewIconImage: {
|
|
31
|
+
filter: 'var(--svg-color)'
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
export default function SelfServiceCaseView(props) {
|
|
35
|
+
const classes = useStyles();
|
|
36
|
+
const CaseViewActionsMenu = getComponentFromMap('CaseViewActionsMenu');
|
|
37
|
+
const CaseSummary = getComponentFromMap('CaseSummary');
|
|
38
|
+
const { icon = '', getPConnect, header, subheader, showCaseLifecycle = true, showSummaryRegion = true, showUtilitiesRegion = true, showCaseActions = true, children, caseClass, caseInfo: { availableActions = [], availableProcesses = [], caseTypeID = '', caseTypeName = '' } } = props;
|
|
39
|
+
const pConnect = getPConnect();
|
|
40
|
+
const [bShowCaseLifecycle, bShowSummaryRegion, bShowUtilitiesRegion, bShowCaseActions] = [
|
|
41
|
+
showCaseLifecycle,
|
|
42
|
+
showSummaryRegion,
|
|
43
|
+
showUtilitiesRegion,
|
|
44
|
+
showCaseActions
|
|
45
|
+
].map((prop) => prop === true || prop === 'true');
|
|
46
|
+
const isObjectType = PCore.getCaseUtils().isObjectCaseType(caseClass);
|
|
47
|
+
const localeKey = pConnect?.getCaseLocaleReference();
|
|
48
|
+
const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());
|
|
49
|
+
const renderedRegions = isObjectType
|
|
50
|
+
? {
|
|
51
|
+
caseSummary: children[0],
|
|
52
|
+
utilities: filterUtilities(children[2])
|
|
53
|
+
}
|
|
54
|
+
: {
|
|
55
|
+
caseSummary: children[0],
|
|
56
|
+
stages: children[1],
|
|
57
|
+
todo: children[2],
|
|
58
|
+
utilities: filterUtilities(children[4])
|
|
59
|
+
};
|
|
60
|
+
const { primarySummaryFields, secondarySummaryFields } = prepareCaseSummaryData(renderedRegions.caseSummary, (config) => config?.availableInChannel?.selfService === true);
|
|
61
|
+
const isUtilitiesRegionNotEmpty = () => {
|
|
62
|
+
const utilitiesElement = renderedRegions.utilities;
|
|
63
|
+
if (utilitiesElement?.props?.getPConnect()?.getChildren()?.length > 0) {
|
|
64
|
+
return utilitiesElement.props
|
|
65
|
+
.getPConnect()
|
|
66
|
+
.getChildren()
|
|
67
|
+
.some((prop) => prop.getPConnect().getConfigProps().visibility !== false);
|
|
68
|
+
}
|
|
69
|
+
return false;
|
|
70
|
+
};
|
|
71
|
+
return (_jsxs("div", { children: [bShowCaseActions && (_jsxs("div", { style: { display: 'flex', justifyContent: 'space-around', alignItems: 'center', margin: '10px' }, children: [_jsx("div", { children: PCore.getLocaleUtils().getLocaleValue(header, '', localeKey) }), _jsx(CaseViewActionsMenu, { getPConnect: getPConnect, availableActions: availableActions, availableProcesses: availableProcesses, caseTypeName: caseTypeName, caseTypeID: caseTypeID })] })), _jsx("div", { children: _jsxs(Grid2, { container: true, children: [_jsx(Grid2, { size: { xs: 3 }, children: bShowSummaryRegion && (primarySummaryFields.length > 0 || secondarySummaryFields.length > 0) && (_jsx("div", { children: _jsxs(Card, { className: classes.root, children: [_jsx(CardHeader, { className: classes.caseViewHeader, title: _jsx(Typography, { variant: 'h6', component: 'div', id: 'case-name', children: PCore.getLocaleUtils().getLocaleValue(header, '', localeKey) }), subheader: _jsx(Typography, { variant: 'body1', component: 'div', id: 'caseId', children: subheader }), avatar: _jsx(Avatar, { className: classes.caseViewIconBox, variant: 'square', children: _jsx("img", { src: svgCase, className: classes.caseViewIconImage }) }) }), _jsx(Divider, {}), _jsx(CaseSummary, { arPrimaryFields: primarySummaryFields, arSecondaryFields: secondarySummaryFields }), _jsx(Divider, {})] }) })) }), _jsxs(Grid2, { size: { xs: 6 }, children: [bShowCaseLifecycle && renderedRegions.stages, renderedRegions.todo] }), bShowUtilitiesRegion && isUtilitiesRegionNotEmpty() && _jsx(Grid2, { size: { xs: 3 }, children: renderedRegions.utilities })] }) })] }));
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=SelfServiceCaseView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfServiceCaseView.js","sourceRoot":"","sources":["../../../../src/components/template/SelfServi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GACK,EAER,MAAC,KAAK,IAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,aACnB,kBAAkB,IAAI,eAAe,CAAC,MAAM,EAC5C,eAAe,CAAC,IAAI,IACf,EAEP,oBAAoB,IAAI,yBAAyB,EAAE,IAAI,KAAC,KAAK,IAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,YAAG,eAAe,CAAC,SAAS,GAAS,IAC7G,GACJ,IACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["import { Avatar, Card, CardHeader, Divider, Typography } from '@mui/material';\nimport makeStyles from '@mui/styles/makeStyles';\nimport Grid2 from '@mui/material/Grid2';\nimport { getComponentFromMap } from '../../../bridge/helpers/sdk_component_map';\nimport { prepareCaseSummaryData, filterUtilities } from '../utils';\nimport { Utils } from '../../helpers/utils';\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 caseViewHeader: {\n backgroundColor: theme.palette.info.light,\n color: theme.palette.getContrastText(theme.palette.info.light),\n borderRadius: 'inherit'\n },\n caseViewIconBox: {\n backgroundColor: theme.palette.info.dark,\n width: theme.spacing(8),\n height: theme.spacing(8),\n padding: theme.spacing(1)\n },\n caseViewIconImage: {\n filter: 'var(--svg-color)'\n }\n}));\n\nexport default function SelfServiceCaseView(props) {\n const classes = useStyles();\n const CaseViewActionsMenu = getComponentFromMap('CaseViewActionsMenu');\n const CaseSummary = getComponentFromMap('CaseSummary');\n const {\n icon = '',\n getPConnect,\n header,\n subheader,\n showCaseLifecycle = true,\n showSummaryRegion = true,\n showUtilitiesRegion = true,\n showCaseActions = true,\n children,\n caseClass,\n caseInfo: { availableActions = [], availableProcesses = [], caseTypeID = '', caseTypeName = '' }\n } = props;\n const pConnect = getPConnect();\n const [bShowCaseLifecycle, bShowSummaryRegion, bShowUtilitiesRegion, bShowCaseActions] = [\n showCaseLifecycle,\n showSummaryRegion,\n showUtilitiesRegion,\n showCaseActions\n ].map((prop: boolean | string) => prop === true || prop === 'true');\n const isObjectType: boolean = (PCore.getCaseUtils() as any).isObjectCaseType(caseClass);\n const localeKey = pConnect?.getCaseLocaleReference();\n const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());\n const renderedRegions: any = isObjectType\n ? {\n caseSummary: children[0],\n utilities: filterUtilities(children[2])\n }\n : {\n caseSummary: children[0],\n stages: children[1],\n todo: children[2],\n utilities: filterUtilities(children[4])\n };\n const { primarySummaryFields, secondarySummaryFields } = prepareCaseSummaryData(\n renderedRegions.caseSummary,\n (config: any) => config?.availableInChannel?.selfService === true\n );\n\n const isUtilitiesRegionNotEmpty: () => boolean = () => {\n const utilitiesElement = renderedRegions.utilities;\n if (utilitiesElement?.props?.getPConnect()?.getChildren()?.length > 0) {\n return utilitiesElement.props\n .getPConnect()\n .getChildren()\n .some((prop: { getPConnect: () => any }) => prop.getPConnect().getConfigProps().visibility !== false);\n }\n return false;\n };\n\n return (\n <div>\n {bShowCaseActions && (\n <div style={{ display: 'flex', justifyContent: 'space-around', alignItems: 'center', margin: '10px' }}>\n <div>{PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}</div>\n <CaseViewActionsMenu\n getPConnect={getPConnect}\n availableActions={availableActions}\n availableProcesses={availableProcesses}\n caseTypeName={caseTypeName}\n caseTypeID={caseTypeID}\n />\n </div>\n )}\n <div>\n <Grid2 container>\n <Grid2 size={{ xs: 3 }}>\n {bShowSummaryRegion && (primarySummaryFields.length > 0 || secondarySummaryFields.length > 0) && (\n <div>\n <Card className={classes.root}>\n <CardHeader\n className={classes.caseViewHeader}\n title={\n <Typography variant='h6' component='div' id='case-name'>\n {PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}\n </Typography>\n }\n subheader={\n <Typography variant='body1' component='div' id='caseId'>\n {subheader}\n </Typography>\n }\n avatar={\n <Avatar className={classes.caseViewIconBox} variant='square'>\n <img src={svgCase} className={classes.caseViewIconImage} />\n </Avatar>\n }\n />\n <Divider />\n <CaseSummary arPrimaryFields={primarySummaryFields} arSecondaryFields={secondarySummaryFields}></CaseSummary>\n <Divider />\n </Card>\n </div>\n )}\n </Grid2>\n\n <Grid2 size={{ xs: 6 }}>\n {bShowCaseLifecycle && renderedRegions.stages}\n {renderedRegions.todo}\n </Grid2>\n\n {bShowUtilitiesRegion && isUtilitiesRegionNotEmpty() && <Grid2 size={{ xs: 3 }}>{renderedRegions.utilities}</Grid2>}\n </Grid2>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/SelfServiceCaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/template/SelfServiceCaseView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { default } from './SelfServiceCaseView';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG/D,UAAU,gBAAiB,SAAQ,UAAU;IAE3C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,GAAG,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAmG1D"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/* eslint-disable react-hooks/rules-of-hooks */
|
|
3
2
|
import { useRef } from 'react';
|
|
4
3
|
import { buildMetaForListView, getContext } from '../../../helpers/simpleTableHelpers';
|
|
5
4
|
import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
|
|
@@ -11,11 +10,9 @@ export default function SimpleTable(props) {
|
|
|
11
10
|
const { getPConnect, multiRecordDisplayAs, allowTableEdit, label: labelProp, propertyLabel, displayMode, fieldMetadata, hideLabel, parameters, isDataObject, type, ruleClass, authorContext, name } = props;
|
|
12
11
|
let { contextClass } = props;
|
|
13
12
|
if (!contextClass) {
|
|
14
|
-
// @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'.
|
|
15
13
|
let listName = getPConnect().getComponentConfig().referenceList;
|
|
16
14
|
listName = PCore.getAnnotationUtils().getPropertyName(listName);
|
|
17
15
|
// was... contextClass = getPConnect().getFieldMetadata(listName)?.pageClass;
|
|
18
|
-
// @ts-ignore - Property 'getFieldMetadata' is private and only accessible within class 'C11nEnv'.
|
|
19
16
|
const theFieldMetadata = getPConnect().getFieldMetadata(listName);
|
|
20
17
|
if (theFieldMetadata) {
|
|
21
18
|
contextClass = theFieldMetadata.pageClass;
|
|
@@ -39,7 +36,7 @@ export default function SimpleTable(props) {
|
|
|
39
36
|
const metaForListView = buildMetaForListView(fieldMetadata, rawFields, type, ruleClass, name, propsToUse.label, isDataObject, parameters // resolved params
|
|
40
37
|
);
|
|
41
38
|
const metaForPConnect = JSON.parse(JSON.stringify(metaForListView));
|
|
42
|
-
// @ts-
|
|
39
|
+
// @ts-expect-error - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.
|
|
43
40
|
metaForPConnect.config.parameters = rawParams ?? PCore.getMetadataUtils().getPropertyMetadata(name)?.datasource?.parameters;
|
|
44
41
|
const { referenceListStr: referenceList } = getContext(getPConnect());
|
|
45
42
|
let requiredContextForQueryInDisplayMode = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTable.js","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"SimpleTable.js","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAuBnF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,8EAA8E;IAC9E,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IACrE,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;IAEnE,MAAM,EACJ,WAAW,EACX,oBAAoB,EACpB,cAAc,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AO,EAAE,IAAI;SACd,CAAC;QACF,OAAO,KAAC,QAAQ,OAAK,aAAa,GAAI,CAAC;IACzC,CAAC;IACD,MAAM,sBAAsB,GAAQ,EAAE,GAAG,KAAK,EAAE,YAAY,EAAE,CAAC;IAC/D,IAAI,cAAc,KAAK,KAAK,EAAE,CAAC;QAC7B,sBAAsB,CAAC,UAAU,GAAG,IAAI,CAAC;QACzC,sBAAsB,CAAC,aAAa,GAAG,IAAI,CAAC;QAC5C,sBAAsB,CAAC,eAAe,GAAG,IAAI,CAAC;IAChD,CAAC;IACD,OAAO,KAAC,iBAAiB,OAAK,sBAAsB,GAAI,CAAC;AAC3D,CAAC","sourcesContent":["import { useRef } from 'react';\n\nimport { buildMetaForListView, getContext } from '../../../helpers/simpleTableHelpers';\nimport { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';\n\nimport type { PConnProps } from '../../../../types/PConnProps';\n\n// Can't use SimpleTableProps until getComponentConfig() and getFieldMetadata() are NOT private\ninterface SimpleTableProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n multiRecordDisplayAs: string;\n allowTableEdit: boolean;\n contextClass: any;\n label: string;\n propertyLabel?: string;\n displayMode?: string;\n fieldMetadata?: any;\n hideLabel?: boolean;\n parameters?: any;\n isDataObject?: boolean;\n type?: string;\n ruleClass?: string;\n authorContext?: string;\n name?: string;\n}\n\nexport default function SimpleTable(props: SimpleTableProps) {\n // Get emitted components from map (so we can get any override that may exist)\n const ListView = getComponentFromMap('ListView');\n const FieldGroupTemplate = getComponentFromMap('FieldGroupTemplate');\n const SimpleTableManual = getComponentFromMap('SimpleTableManual');\n\n const {\n getPConnect,\n multiRecordDisplayAs,\n allowTableEdit,\n label: labelProp,\n propertyLabel,\n displayMode,\n fieldMetadata,\n hideLabel,\n parameters,\n isDataObject,\n type,\n ruleClass,\n authorContext,\n name\n } = props;\n\n let { contextClass } = props;\n if (!contextClass) {\n let listName = getPConnect().getComponentConfig().referenceList;\n listName = PCore.getAnnotationUtils().getPropertyName(listName);\n // was... contextClass = getPConnect().getFieldMetadata(listName)?.pageClass;\n const theFieldMetadata = getPConnect().getFieldMetadata(listName);\n if (theFieldMetadata) {\n contextClass = theFieldMetadata.pageClass;\n } else {\n contextClass = undefined;\n }\n }\n if (multiRecordDisplayAs === 'fieldGroup') {\n const fieldGroupProps = { ...props, contextClass };\n return <FieldGroupTemplate {...fieldGroupProps} />;\n }\n\n const label = labelProp || propertyLabel;\n const propsToUse = { label, ...getPConnect().getInheritedProps() };\n const isDisplayModeEnabled = displayMode === 'DISPLAY_ONLY';\n\n if (fieldMetadata && fieldMetadata.type === 'Page List' && fieldMetadata.dataRetrievalType === 'refer') {\n const {\n children: [{ children: rawFields }],\n parameters: rawParams\n } = (getPConnect().getRawMetadata() as any).config;\n if (isDisplayModeEnabled && hideLabel) {\n propsToUse.label = '';\n }\n\n const metaForListView = buildMetaForListView(\n fieldMetadata,\n rawFields,\n type,\n ruleClass,\n name,\n propsToUse.label,\n isDataObject,\n parameters // resolved params\n );\n\n const metaForPConnect = JSON.parse(JSON.stringify(metaForListView));\n // @ts-expect-error - PCore.getMetadataUtils().getPropertyMetadata - An argument for 'currentClassID' was not provided.\n metaForPConnect.config.parameters = rawParams ?? PCore.getMetadataUtils().getPropertyMetadata(name)?.datasource?.parameters;\n\n const { referenceListStr: referenceList } = getContext(getPConnect());\n let requiredContextForQueryInDisplayMode = {};\n if (isDisplayModeEnabled) {\n requiredContextForQueryInDisplayMode = {\n referenceList\n };\n }\n const options = {\n context: getPConnect().getContextName(),\n pageReference: getPConnect().getPageReference(),\n ...requiredContextForQueryInDisplayMode\n };\n\n const refToPConnect = useRef(PCore.createPConnect({ meta: metaForPConnect, options }).getPConnect).current; // getPConnect should be created only once.\n /* BUG-637178 : need to send context */\n const listViewProps = {\n ...metaForListView.config,\n getPConnect: refToPConnect,\n displayMode,\n fieldName: authorContext,\n bInForm: true\n };\n return <ListView {...listViewProps} />;\n }\n const simpleTableManualProps: any = { ...props, contextClass };\n if (allowTableEdit === false) {\n simpleTableManualProps.hideAddRow = true;\n simpleTableManualProps.hideDeleteRow = true;\n simpleTableManualProps.disableDragDrop = true;\n }\n return <SimpleTableManual {...simpleTableManualProps} />;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { PConnProps } from '../../../../types/PConnProps';
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import type { PConnProps } from '../../../../types/PConnProps';
|
|
3
3
|
interface SimpleTableManualProps extends PConnProps {
|
|
4
4
|
hideAddRow?: boolean;
|
|
5
5
|
hideDeleteRow?: boolean;
|
|
@@ -19,6 +19,8 @@ interface SimpleTableManualProps extends PConnProps {
|
|
|
19
19
|
displayMode?: string;
|
|
20
20
|
useSeparateViewForEdit: any;
|
|
21
21
|
viewForEditModal: any;
|
|
22
|
+
validatemessage?: string;
|
|
23
|
+
required?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export default function SimpleTableManual(props: PropsWithChildren<SimpleTableManualProps>): import("react/jsx-runtime").JSX.Element;
|
|
24
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleTableManual.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimpleTableManual.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,iBAAiB,EAAgD,MAAM,OAAO,CAAC;AA+BpG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG/D,UAAU,sBAAuB,SAAQ,UAAU;IAEjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,sBAAsB,CAAC,EAAE,GAAG,CAAC;IAC7B,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,gBAAgB,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiDD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,sBAAsB,CAAC,2CAwsBzF"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
2
|
+
import React, { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
4
3
|
import Table from '@mui/material/Table';
|
|
5
4
|
import TableBody from '@mui/material/TableBody';
|
|
6
5
|
import TableCell from '@mui/material/TableCell';
|
|
@@ -28,14 +27,28 @@ import createPConnectComponent from '../../../../bridge/react_pconnect';
|
|
|
28
27
|
import { Utils } from '../../../helpers/utils';
|
|
29
28
|
import { getReferenceList } from '../../../helpers/field-group-utils';
|
|
30
29
|
import { getDataPage } from '../../../helpers/data_page';
|
|
30
|
+
import { getGenericFieldsLocalizedValue } from '../../../helpers/common-utils';
|
|
31
31
|
import { buildFieldsForTable, filterData, getContext } from '../../../helpers/simpleTableHelpers';
|
|
32
32
|
import { format } from '../../../helpers/formatters';
|
|
33
33
|
const useStyles = makeStyles(( /* theme */) => ({
|
|
34
34
|
label: {
|
|
35
35
|
margin: '8px'
|
|
36
36
|
},
|
|
37
|
+
tableLabel: {
|
|
38
|
+
'&::after': {
|
|
39
|
+
display: 'inline',
|
|
40
|
+
content: '" *"',
|
|
41
|
+
verticalAlign: 'top',
|
|
42
|
+
color: 'var(--app-error-color)'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
message: {
|
|
46
|
+
margin: '8px',
|
|
47
|
+
color: 'var(--app-error-color)',
|
|
48
|
+
fontSize: '14px'
|
|
49
|
+
},
|
|
37
50
|
header: {
|
|
38
|
-
background: '
|
|
51
|
+
background: 'var(--table-header-background)'
|
|
39
52
|
},
|
|
40
53
|
tableCell: {
|
|
41
54
|
borderRight: '1px solid lightgray',
|
|
@@ -64,7 +77,7 @@ let myRows;
|
|
|
64
77
|
export default function SimpleTableManual(props) {
|
|
65
78
|
const classes = useStyles();
|
|
66
79
|
const { getPConnect, referenceList = [], // if referenceList not in configProps$, default to empy list
|
|
67
|
-
children, renderMode, presets, label: labelProp, showLabel, dataPageName, contextClass, hideAddRow, hideDeleteRow, propertyLabel, fieldMetadata, editMode, addAndEditRowsWithin, viewForAddAndEditModal, editModeConfig, displayMode, useSeparateViewForEdit, viewForEditModal } = props;
|
|
80
|
+
children, renderMode, presets, label: labelProp, showLabel, dataPageName, contextClass, hideAddRow, hideDeleteRow, propertyLabel, fieldMetadata, editMode, addAndEditRowsWithin, viewForAddAndEditModal, editModeConfig, displayMode, useSeparateViewForEdit, viewForEditModal, required, validatemessage } = props;
|
|
68
81
|
const pConn = getPConnect();
|
|
69
82
|
const [rowData, setRowData] = useState([]);
|
|
70
83
|
const [elements, setElementsData] = useState([]);
|
|
@@ -83,6 +96,8 @@ export default function SimpleTableManual(props) {
|
|
|
83
96
|
const [displayDialogDateFilter, setDisplayDialogDateFilter] = useState('notequal');
|
|
84
97
|
const [displayDialogDateValue, setDisplayDialogDateValue] = useState('');
|
|
85
98
|
const selectedRowIndex = useRef(null);
|
|
99
|
+
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
100
|
+
const localeCategory = 'SimpleTable';
|
|
86
101
|
const parameters = fieldMetadata?.datasource?.parameters;
|
|
87
102
|
const { referenceListStr } = getContext(getPConnect());
|
|
88
103
|
const label = labelProp || propertyLabel;
|
|
@@ -96,6 +111,7 @@ export default function SimpleTableManual(props) {
|
|
|
96
111
|
pConn.setReferenceList(resolvedList);
|
|
97
112
|
const menuIconOverride$ = Utils.getImageSrc('trash', Utils.getSDKStaticConentUrl());
|
|
98
113
|
const resolvedFields = children?.[0]?.children || presets?.[0].children?.[0].children;
|
|
114
|
+
const primaryFieldsViewIndex = resolvedFields.findIndex(field => field.config.value === 'pyPrimaryFields');
|
|
99
115
|
// NOTE: props has each child.config with datasource and value undefined
|
|
100
116
|
// but getRawMetadata() has each child.config with datasource and value showing their unresolved values (ex: "@P thePropName")
|
|
101
117
|
// We need to use the prop name as the "glue" to tie the table dataSource, displayColumns and data together.
|
|
@@ -122,14 +138,8 @@ export default function SimpleTableManual(props) {
|
|
|
122
138
|
return { ...resolvedFields[index], propName: field.config.value.replace('@P .', '') };
|
|
123
139
|
});
|
|
124
140
|
useEffect(() => {
|
|
125
|
-
|
|
126
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
127
|
-
buildElementsForTable();
|
|
128
|
-
}
|
|
129
|
-
}, [referenceList.length]);
|
|
130
|
-
useEffect(() => {
|
|
141
|
+
buildElementsForTable();
|
|
131
142
|
if (readOnlyMode || allowEditingInModal) {
|
|
132
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
133
143
|
generateRowsData();
|
|
134
144
|
}
|
|
135
145
|
}, [referenceList]);
|
|
@@ -139,16 +149,18 @@ export default function SimpleTableManual(props) {
|
|
|
139
149
|
// Constellation DX Components do). It will also have the "label", and "meta" contains the original,
|
|
140
150
|
// unchanged config info. For now, much of the info here is carried over from
|
|
141
151
|
// Constellation DX Components.
|
|
142
|
-
const fieldDefs = buildFieldsForTable(rawFields,
|
|
152
|
+
const fieldDefs = buildFieldsForTable(rawFields, getPConnect(), showDeleteButton, {
|
|
153
|
+
primaryFieldsViewIndex,
|
|
154
|
+
fields: resolvedFields
|
|
155
|
+
});
|
|
143
156
|
useLayoutEffect(() => {
|
|
144
157
|
if (allowEditingInModal) {
|
|
145
158
|
getPConnect()
|
|
146
159
|
.getListActions()
|
|
147
|
-
// @ts-ignore - An argument for 'uniqueField' was not provided.
|
|
148
160
|
.initDefaultPageInstructions(getPConnect().getReferenceList(), fieldDefs.filter(item => item.name).map(item => item.name));
|
|
149
161
|
}
|
|
150
162
|
else {
|
|
151
|
-
// @ts-
|
|
163
|
+
// @ts-expect-error - An argument for 'fields' was not provided
|
|
152
164
|
getPConnect().getListActions().initDefaultPageInstructions(getPConnect().getReferenceList());
|
|
153
165
|
}
|
|
154
166
|
}, []);
|
|
@@ -200,7 +212,6 @@ export default function SimpleTableManual(props) {
|
|
|
200
212
|
setRowData(data);
|
|
201
213
|
})
|
|
202
214
|
.catch(e => {
|
|
203
|
-
// eslint-disable-next-line no-console
|
|
204
215
|
console.log(e);
|
|
205
216
|
});
|
|
206
217
|
}
|
|
@@ -240,10 +251,10 @@ export default function SimpleTableManual(props) {
|
|
|
240
251
|
if (allowEditingInModal && defaultView) {
|
|
241
252
|
pConn
|
|
242
253
|
.getActionsApi()
|
|
254
|
+
// @ts-expect-error
|
|
243
255
|
.openEmbeddedDataModal(defaultView, pConn, referenceListStr, referenceList.length, PCore.getConstants().RESOURCE_STATUS.CREATE);
|
|
244
256
|
}
|
|
245
257
|
else {
|
|
246
|
-
// @ts-ignore - An argument for 'pageRef' was not provided.
|
|
247
258
|
pConn.getListActions().insert({ classID: contextClass }, referenceList.length);
|
|
248
259
|
}
|
|
249
260
|
getPConnect().clearErrorMessages({
|
|
@@ -255,16 +266,15 @@ export default function SimpleTableManual(props) {
|
|
|
255
266
|
if (typeof selectedRowIndex.current === 'number') {
|
|
256
267
|
pConn
|
|
257
268
|
.getActionsApi()
|
|
269
|
+
// @ts-expect-error
|
|
258
270
|
.openEmbeddedDataModal(bUseSeparateViewForEdit ? editView : defaultView, pConn, referenceListStr, selectedRowIndex.current, PCore.getConstants().RESOURCE_STATUS.UPDATE);
|
|
259
271
|
}
|
|
260
272
|
};
|
|
261
273
|
const deleteRecord = () => {
|
|
262
274
|
setEditAnchorEl(null);
|
|
263
|
-
// @ts-ignore - An argument for 'pageRef' was not provided.
|
|
264
275
|
pConn.getListActions().deleteEntry(selectedRowIndex.current);
|
|
265
276
|
};
|
|
266
277
|
const deleteRecordFromInlineEditable = (index) => {
|
|
267
|
-
// @ts-ignore - An argument for 'pageRef' was not provided.
|
|
268
278
|
pConn.getListActions().deleteEntry(index);
|
|
269
279
|
};
|
|
270
280
|
function buildElementsForTable() {
|
|
@@ -273,23 +283,25 @@ export default function SimpleTableManual(props) {
|
|
|
273
283
|
const data = [];
|
|
274
284
|
rawFields.forEach(item => {
|
|
275
285
|
// removing label field from config to hide title in the table cell
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
286
|
+
if (!item.config.hide) {
|
|
287
|
+
item = { ...item, config: { ...item.config, label: '', displayMode: readOnlyMode || allowEditingInModal ? 'DISPLAY_ONLY' : undefined } };
|
|
288
|
+
const referenceListData = getReferenceList(pConn);
|
|
289
|
+
const isDatapage = referenceListData.startsWith('D_');
|
|
290
|
+
const pageReferenceValue = isDatapage
|
|
291
|
+
? `${referenceListData}[${index}]`
|
|
292
|
+
: `${pConn.getPageReference()}${referenceListData.substring(referenceListData.lastIndexOf('.'))}[${index}]`;
|
|
293
|
+
const config = {
|
|
294
|
+
meta: item,
|
|
295
|
+
options: {
|
|
296
|
+
context,
|
|
297
|
+
pageReference: pageReferenceValue,
|
|
298
|
+
referenceList: referenceListData,
|
|
299
|
+
hasForm: true
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
const view = PCore.createPConnect(config);
|
|
303
|
+
data.push(createElement(createPConnectComponent(), view));
|
|
304
|
+
}
|
|
293
305
|
});
|
|
294
306
|
eleData.push(data);
|
|
295
307
|
});
|
|
@@ -321,13 +333,16 @@ export default function SimpleTableManual(props) {
|
|
|
321
333
|
function stableSort(array, comparator) {
|
|
322
334
|
const stabilizedThis = array.map((el, index) => [el, index]);
|
|
323
335
|
stabilizedThis.sort((a, b) => {
|
|
324
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
325
336
|
const order = comparator(a[0], b[0]);
|
|
326
337
|
if (order !== 0)
|
|
327
338
|
return order;
|
|
328
339
|
return a[1] - b[1];
|
|
329
340
|
});
|
|
330
|
-
|
|
341
|
+
const newElements = new Array(stabilizedThis.length);
|
|
342
|
+
stabilizedThis.forEach((el, index) => {
|
|
343
|
+
newElements[index] = elements[el[1]];
|
|
344
|
+
});
|
|
345
|
+
return newElements;
|
|
331
346
|
}
|
|
332
347
|
function _menuClick(event, columnId, columnType, labelValue) {
|
|
333
348
|
menuColumnId = columnId;
|
|
@@ -450,7 +465,6 @@ export default function SimpleTableManual(props) {
|
|
|
450
465
|
function _showFilteredIcon(columnId) {
|
|
451
466
|
for (const filterObj of filterByColumns) {
|
|
452
467
|
if (filterObj.ref === columnId) {
|
|
453
|
-
// eslint-disable-next-line sonarjs/prefer-single-boolean-return
|
|
454
468
|
if (filterObj.containsFilterValue !== '') {
|
|
455
469
|
return true;
|
|
456
470
|
}
|
|
@@ -463,11 +477,15 @@ export default function SimpleTableManual(props) {
|
|
|
463
477
|
const len = editableMode ? elements.length : rowData.length;
|
|
464
478
|
return len ? (_jsxs("span", { style: { fontSize: '0.9em', opacity: '0.7' }, children: [len, " result", len > 1 ? 's' : ''] })) : null;
|
|
465
479
|
}
|
|
466
|
-
return (_jsxs(_Fragment, { children: [_jsxs(TableContainer, { component: Paper, style: { margin: '4px 0px' }, id: 'simple-table-manual', children: [propsToUse.label && (_jsxs("h3", { className: classes.label
|
|
467
|
-
|
|
480
|
+
return (_jsxs(_Fragment, { children: [_jsxs(TableContainer, { component: Paper, style: { margin: '4px 0px' }, id: 'simple-table-manual', children: [propsToUse.label && (_jsxs("h3", { className: `${classes.label} ${required ? classes.tableLabel : ''}`, children: [propsToUse.label, " ", results()] })), validatemessage && _jsx("div", { className: classes.message, children: validatemessage }), _jsxs(Table, { children: [_jsx(TableHead, { className: classes.header, children: _jsx(TableRow, { children: fieldDefs.map((field, index) => {
|
|
481
|
+
if (field?.meta?.config?.hide) {
|
|
482
|
+
return null; // Skip rendering if hide = true
|
|
483
|
+
}
|
|
484
|
+
return (_jsx(TableCell, { className: classes.tableCell, children: (readOnlyMode || allowEditingInModal) && field.cellRenderer !== 'DeleteIcon' ? (_jsxs("div", { style: { display: 'flex' }, children: [_jsxs(TableSortLabel, { style: { width: '75%' }, active: orderBy === displayedColumns[index], direction: orderBy === displayedColumns[index] ? order : 'asc', onClick: createSortHandler(displayedColumns[index]), children: [field.label || '---', _showFilteredIcon(field.name) && _jsx(FilterListIcon, { className: classes.moreIcon }), orderBy === displayedColumns[index] ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }), _jsx(MoreIcon, { style: { cursor: 'pointer', zIndex: 1000 }, id: 'menu-icon', onClick: event => {
|
|
468
485
|
_menuClick(event, field.name, field.meta.type, field.label);
|
|
469
486
|
} })] })) : (field.label) }, `head-${displayedColumns[index]}`));
|
|
470
487
|
}) }) }), _jsxs(TableBody, { children: [editableMode &&
|
|
488
|
+
!allowEditingInModal &&
|
|
471
489
|
elements.map((row, index) => {
|
|
472
490
|
const theKey = `row-${index}`;
|
|
473
491
|
return (_jsxs(TableRow, { children: [row.map((item, childIndex) => {
|
|
@@ -480,13 +498,12 @@ export default function SimpleTableManual(props) {
|
|
|
480
498
|
stableSort(rowData, getComparator(order, orderBy))
|
|
481
499
|
.slice(0)
|
|
482
500
|
.map((row, index) => {
|
|
483
|
-
return (
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
501
|
+
return (_jsxs(TableRow, { children: [row.map((item, childIndex) => {
|
|
502
|
+
const theColKey = displayedColumns[childIndex];
|
|
503
|
+
return (_jsx(TableCell, { className: classes.tableCell, children: item }, theColKey));
|
|
504
|
+
}), showDeleteButton && (_jsx(TableCell, { className: classes.tableCell, children: _jsxs("div", { children: [_jsx(MoreIcon, { id: 'table-edit-menu-icon', className: classes.moreIcon, onClick: event => {
|
|
487
505
|
editMenuClick(event, index);
|
|
488
|
-
} }), _jsxs(Menu, { id: 'table-edit-menu', anchorEl: editAnchorEl, keepMounted: true, open: Boolean(editAnchorEl), onClose: _menuClose, children: [_jsx(MenuItem, { onClick: () => editRecord(), children: "Edit" }), _jsx(MenuItem, { onClick: () => deleteRecord(), children: "Delete" })] })] })
|
|
489
|
-
|
|
490
|
-
})] })] }), readOnlyMode && rowData && rowData.length === 0 && (_jsx("div", { className: 'no-records', id: 'no-records', children: "No records found." })), editableMode && referenceList && referenceList.length === 0 && (_jsx("div", { className: 'no-records', id: 'no-records', children: "No records found." }))] }), showAddRowButton && (_jsx("div", { style: { fontSize: '1rem' }, children: _jsx(Link, { style: { cursor: 'pointer' }, onClick: addRecord, underline: 'hover', children: "+ Add" }) })), _jsxs(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose, children: [_jsxs(MenuItem, { onClick: _filterMenu, children: [_jsx(FilterListIcon, {}), " Filter"] }), _jsxs(MenuItem, { onClick: _groupMenu, children: [_jsx(SubjectIcon, {}), " Group"] })] }), _jsxs(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title', children: [_jsxs(DialogTitle, { id: 'form-dialog-title', children: ["Filter: ", filterBy] }), _jsx(DialogContent, { children: containsDateOrTime ? (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not equal to" }), _jsx(MenuItem, { value: 'equal', children: "is equal to" }), _jsx(MenuItem, { value: 'after', children: "after" }), _jsx(MenuItem, { value: 'before', children: "before" }), _jsx(MenuItem, { value: 'null', children: "is null" }), _jsx(MenuItem, { value: 'notnull', children: "is not null" })] }), filterType === 'Date' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', id: 'filter', fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter, children: [_jsx(MenuItem, { value: 'contains', children: "Contains" }), _jsx(MenuItem, { value: 'equals', children: "Equals" }), _jsx(MenuItem, { value: 'startswith', children: "Starts with" })] }), _jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })] })) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: _closeDialog, color: 'secondary', children: "Cancel" }), _jsx(Button, { onClick: _submitFilter, color: 'primary', children: "Submit" })] })] })] }));
|
|
506
|
+
} }), _jsxs(Menu, { id: 'table-edit-menu', anchorEl: editAnchorEl, keepMounted: true, open: Boolean(editAnchorEl), onClose: _menuClose, children: [_jsx(MenuItem, { onClick: () => editRecord(), children: "Edit" }), _jsx(MenuItem, { onClick: () => deleteRecord(), children: "Delete" })] })] }) }, 'DeleteIcon'))] }, index));
|
|
507
|
+
})] })] }), ((readOnlyMode && (!rowData || rowData?.length === 0)) || (editableMode && (!referenceList || referenceList?.length === 0))) && (_jsx("div", { className: 'no-records', id: 'no-records', children: getGenericFieldsLocalizedValue('COSMOSFIELDS.lists', 'No records found.') }))] }), showAddRowButton && (_jsx("div", { style: { fontSize: '1rem' }, children: _jsxs(Link, { style: { cursor: 'pointer' }, onClick: addRecord, underline: 'hover', children: ["+ ", localizedVal('Add', localeCategory)] }) })), _jsxs(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose, children: [_jsxs(MenuItem, { onClick: _filterMenu, children: [_jsx(FilterListIcon, {}), " Filter"] }), _jsxs(MenuItem, { onClick: _groupMenu, children: [_jsx(SubjectIcon, {}), " Group"] })] }), _jsxs(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title', children: [_jsxs(DialogTitle, { id: 'form-dialog-title', children: ["Filter: ", filterBy] }), _jsx(DialogContent, { children: containsDateOrTime ? (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not equal to" }), _jsx(MenuItem, { value: 'equal', children: "is equal to" }), _jsx(MenuItem, { value: 'after', children: "after" }), _jsx(MenuItem, { value: 'before', children: "before" }), _jsx(MenuItem, { value: 'null', children: "is null" }), _jsx(MenuItem, { value: 'notnull', children: "is not null" })] }), filterType === 'Date' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { variant: 'standard', id: 'filter', fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter, children: [_jsx(MenuItem, { value: 'contains', children: "Contains" }), _jsx(MenuItem, { value: 'equals', children: "Equals" }), _jsx(MenuItem, { value: 'startswith', children: "Starts with" })] }), _jsx(TextField, { variant: 'standard', autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })] })) }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: _closeDialog, color: 'secondary', children: "Cancel" }), _jsx(Button, { onClick: _submitFilter, color: 'primary', children: "Submit" })] })] })] }));
|
|
491
508
|
}
|
|
492
509
|
//# sourceMappingURL=SimpleTableManual.js.map
|