@pega/react-sdk-components 8.23.11 → 23.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +17 -0
- package/SECURITY.md +10 -0
- package/lib/bridge/Context/StoreContext.js +3 -3
- package/lib/bridge/Context/StoreContext.js.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.js +24 -47
- package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
- package/lib/bridge/react_pconnect.d.ts.map +1 -1
- package/lib/bridge/react_pconnect.js +17 -28
- package/lib/bridge/react_pconnect.js.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +7 -10
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +2 -9
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.d.ts +15 -1
- package/lib/components/designSystemExtension/Banner/Banner.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.js +2 -10
- package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +6 -9
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +32 -33
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts +4 -10
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +10 -23
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts +8 -3
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +25 -14
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts +7 -2
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +6 -18
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts +7 -2
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -12
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.d.ts +17 -7
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.js +49 -67
- package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts +5 -2
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.js +9 -15
- package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts +19 -0
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -0
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +75 -0
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.d.ts +2 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.js +2 -0
- package/lib/components/designSystemExtension/RichTextEditor/index.js.map +1 -0
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts +6 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.d.ts.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +5 -11
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.d.ts +15 -1
- package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.js +17 -17
- package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.d.ts +12 -2
- package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.js +78 -70
- package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
- package/lib/components/field/CancelAlert/index.js.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.d.ts +9 -1
- package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.js +13 -13
- package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/field/Currency/Currency.d.ts +6 -1
- package/lib/components/field/Currency/Currency.d.ts.map +1 -1
- package/lib/components/field/Currency/Currency.js +15 -36
- package/lib/components/field/Currency/Currency.js.map +1 -1
- package/lib/components/field/Currency/currency-utils.d.ts.map +1 -1
- package/lib/components/field/Currency/currency-utils.js +5 -6
- package/lib/components/field/Currency/currency-utils.js.map +1 -1
- package/lib/components/field/Date/Date.d.ts +5 -1
- package/lib/components/field/Date/Date.d.ts.map +1 -1
- package/lib/components/field/Date/Date.js +15 -9
- package/lib/components/field/Date/Date.js.map +1 -1
- package/lib/components/field/DateTime/DateTime.d.ts +5 -1
- package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
- package/lib/components/field/DateTime/DateTime.js +15 -9
- package/lib/components/field/DateTime/DateTime.js.map +1 -1
- package/lib/components/field/Decimal/Decimal.d.ts +8 -1
- package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
- package/lib/components/field/Decimal/Decimal.js +13 -29
- package/lib/components/field/Decimal/Decimal.js.map +1 -1
- package/lib/components/field/Decimal/index.js.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts +13 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.js +105 -15
- package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/field/Email/Email.d.ts +5 -1
- package/lib/components/field/Email/Email.d.ts.map +1 -1
- package/lib/components/field/Email/Email.js +12 -11
- package/lib/components/field/Email/Email.js.map +1 -1
- package/lib/components/field/Email/index.js.map +1 -1
- package/lib/components/field/Group/Group.d.ts +13 -0
- package/lib/components/field/Group/Group.d.ts.map +1 -0
- package/lib/components/field/Group/Group.js +15 -0
- package/lib/components/field/Group/Group.js.map +1 -0
- package/lib/components/field/Group/index.d.ts +2 -0
- package/lib/components/field/Group/index.d.ts.map +1 -0
- package/lib/components/field/Group/index.js +2 -0
- package/lib/components/field/Group/index.js.map +1 -0
- package/lib/components/field/Integer/Integer.d.ts +5 -1
- package/lib/components/field/Integer/Integer.d.ts.map +1 -1
- package/lib/components/field/Integer/Integer.js +10 -8
- package/lib/components/field/Integer/Integer.js.map +1 -1
- package/lib/components/field/Percentage/Percentage.d.ts +6 -1
- package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
- package/lib/components/field/Percentage/Percentage.js +28 -29
- package/lib/components/field/Percentage/Percentage.js.map +1 -1
- package/lib/components/field/Phone/Phone.d.ts +5 -1
- package/lib/components/field/Phone/Phone.d.ts.map +1 -1
- package/lib/components/field/Phone/Phone.js +10 -9
- package/lib/components/field/Phone/Phone.js.map +1 -1
- package/lib/components/field/Phone/index.js.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts +7 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.js +19 -15
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
- package/lib/components/field/RichText/RichText.d.ts +7 -0
- package/lib/components/field/RichText/RichText.d.ts.map +1 -0
- package/lib/components/field/RichText/RichText.js +54 -0
- package/lib/components/field/RichText/RichText.js.map +1 -0
- package/lib/components/field/RichText/index.d.ts +2 -0
- package/lib/components/field/RichText/index.d.ts.map +1 -0
- package/lib/components/field/RichText/index.js +2 -0
- package/lib/components/field/RichText/index.js.map +1 -0
- package/lib/components/field/ScalarList/ScalarList.d.ts +13 -0
- package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -0
- package/lib/components/field/ScalarList/ScalarList.js +32 -0
- package/lib/components/field/ScalarList/ScalarList.js.map +1 -0
- package/lib/components/field/ScalarList/index.d.ts +2 -0
- package/lib/components/field/ScalarList/index.d.ts.map +1 -0
- package/lib/components/field/ScalarList/index.js +2 -0
- package/lib/components/field/ScalarList/index.js.map +1 -0
- package/lib/components/field/SemanticLink/SemanticLink.d.ts +5 -9
- package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -1
- package/lib/components/field/SemanticLink/SemanticLink.js +11 -19
- package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
- package/lib/components/field/SemanticLink/utils.d.ts.map +1 -1
- package/lib/components/field/SemanticLink/utils.js +8 -8
- package/lib/components/field/SemanticLink/utils.js.map +1 -1
- package/lib/components/field/TextArea/TextArea.d.ts +6 -1
- package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/field/TextArea/TextArea.js +8 -6
- package/lib/components/field/TextArea/TextArea.js.map +1 -1
- package/lib/components/field/TextContent/TextContent.d.ts +7 -1
- package/lib/components/field/TextContent/TextContent.d.ts.map +1 -1
- package/lib/components/field/TextContent/TextContent.js +2 -2
- package/lib/components/field/TextContent/TextContent.js.map +1 -1
- package/lib/components/field/TextInput/TextInput.d.ts +6 -1
- package/lib/components/field/TextInput/TextInput.d.ts.map +1 -1
- package/lib/components/field/TextInput/TextInput.js +10 -7
- package/lib/components/field/TextInput/TextInput.js.map +1 -1
- package/lib/components/field/TextInput/index.js.map +1 -1
- package/lib/components/field/Time/Time.d.ts +5 -1
- package/lib/components/field/Time/Time.d.ts.map +1 -1
- package/lib/components/field/Time/Time.js +11 -9
- package/lib/components/field/Time/Time.js.map +1 -1
- package/lib/components/field/URL/URL.d.ts +5 -1
- package/lib/components/field/URL/URL.d.ts.map +1 -1
- package/lib/components/field/URL/URL.js +10 -8
- package/lib/components/field/URL/URL.js.map +1 -1
- package/lib/components/field/URL/index.js.map +1 -1
- package/lib/components/field/UserReference/UserReference.d.ts +20 -41
- package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
- package/lib/components/field/UserReference/UserReference.js +17 -46
- package/lib/components/field/UserReference/UserReference.js.map +1 -1
- package/lib/components/field/UserReference/UserReferenceUtils.js +2 -2
- package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -1
- package/lib/components/helpers/attachmentHelpers.d.ts +3 -3
- package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
- package/lib/components/helpers/attachmentHelpers.js +6 -6
- package/lib/components/helpers/attachmentHelpers.js.map +1 -1
- package/lib/components/helpers/case-utils.d.ts.map +1 -1
- package/lib/components/helpers/case-utils.js +5 -4
- package/lib/components/helpers/case-utils.js.map +1 -1
- package/lib/components/helpers/common-utils.d.ts +2 -1
- package/lib/components/helpers/common-utils.d.ts.map +1 -1
- package/lib/components/helpers/common-utils.js +4 -1
- package/lib/components/helpers/common-utils.js.map +1 -1
- package/lib/components/helpers/data_page.d.ts.map +1 -1
- package/lib/components/helpers/data_page.js +2 -3
- package/lib/components/helpers/data_page.js.map +1 -1
- package/lib/components/helpers/date-format-utils.d.ts +1 -6
- package/lib/components/helpers/date-format-utils.d.ts.map +1 -1
- package/lib/components/helpers/date-format-utils.js.map +1 -1
- package/lib/components/helpers/event-utils.d.ts +1 -1
- package/lib/components/helpers/event-utils.d.ts.map +1 -1
- package/lib/components/helpers/event-utils.js +3 -3
- package/lib/components/helpers/event-utils.js.map +1 -1
- package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
- package/lib/components/helpers/field-group-utils.js +3 -7
- package/lib/components/helpers/field-group-utils.js.map +1 -1
- package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Boolean.js +9 -20
- package/lib/components/helpers/formatters/Boolean.js.map +1 -1
- package/lib/components/helpers/formatters/Currency.d.ts +6 -6
- package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Currency.js +13 -14
- package/lib/components/helpers/formatters/Currency.js.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.d.ts +69 -320
- package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.js +500 -500
- package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -1
- package/lib/components/helpers/formatters/Date.d.ts +5 -5
- package/lib/components/helpers/formatters/Date.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Date.js +20 -20
- package/lib/components/helpers/formatters/Date.js.map +1 -1
- package/lib/components/helpers/formatters/common.d.ts +1 -1
- package/lib/components/helpers/formatters/common.d.ts.map +1 -1
- package/lib/components/helpers/formatters/common.js +1 -1
- package/lib/components/helpers/formatters/common.js.map +1 -1
- package/lib/components/helpers/formatters/index.d.ts +12 -12
- package/lib/components/helpers/formatters/index.d.ts.map +1 -1
- package/lib/components/helpers/formatters/index.js +25 -19
- package/lib/components/helpers/formatters/index.js.map +1 -1
- package/lib/components/helpers/reactContextHelpers.d.ts.map +1 -1
- package/lib/components/helpers/reactContextHelpers.js +1 -1
- package/lib/components/helpers/reactContextHelpers.js.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts +3 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.js +48 -54
- package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
- package/lib/components/helpers/state-utils.d.ts.map +1 -1
- package/lib/components/helpers/state-utils.js +6 -8
- package/lib/components/helpers/state-utils.js.map +1 -1
- package/lib/components/helpers/template-utils.d.ts +7 -3
- package/lib/components/helpers/template-utils.d.ts.map +1 -1
- package/lib/components/helpers/template-utils.js +2 -2
- package/lib/components/helpers/template-utils.js.map +1 -1
- package/lib/components/helpers/utils.d.ts +1 -1
- package/lib/components/helpers/utils.d.ts.map +1 -1
- package/lib/components/helpers/utils.js +3 -8
- package/lib/components/helpers/utils.js.map +1 -1
- package/lib/components/helpers/versionHelpers.d.ts +6 -0
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
- package/lib/components/helpers/versionHelpers.js +7 -1
- package/lib/components/helpers/versionHelpers.js.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts +6 -13
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.js +11 -27
- package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
- package/lib/components/infra/ActionButtons/index.js.map +1 -1
- package/lib/components/infra/Assignment/Assignment.d.ts +9 -16
- package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
- package/lib/components/infra/Assignment/Assignment.js +71 -74
- package/lib/components/infra/Assignment/Assignment.js.map +1 -1
- package/lib/components/infra/Assignment/index.js.map +1 -1
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +7 -15
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -1
- package/lib/components/infra/AssignmentCard/AssignmentCard.js +6 -20
- package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -1
- package/lib/components/infra/AssignmentCard/index.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +10 -20
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +63 -192
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.js +30 -30
- package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts +9 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +36 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts +2 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js +2 -0
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/index.js.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +8 -17
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +179 -172
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -1
- package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts +9 -0
- package/lib/components/infra/Containers/SimpleView/SimpleView.d.ts.map +1 -0
- package/lib/components/infra/Containers/SimpleView/SimpleView.js +29 -0
- package/lib/components/infra/Containers/SimpleView/SimpleView.js.map +1 -0
- package/lib/components/infra/Containers/SimpleView/helper.d.ts +10 -0
- package/lib/components/infra/Containers/SimpleView/helper.d.ts.map +1 -0
- package/lib/components/infra/Containers/SimpleView/helper.js +102 -0
- package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -0
- package/lib/components/infra/Containers/SimpleView/index.d.ts +2 -0
- package/lib/components/infra/Containers/SimpleView/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/SimpleView/index.js +2 -0
- package/lib/components/infra/Containers/SimpleView/index.js.map +1 -0
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +9 -22
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +24 -44
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/helpers.d.ts +2 -0
- package/lib/components/infra/Containers/helpers.d.ts.map +1 -0
- package/lib/components/infra/Containers/helpers.js +7 -0
- package/lib/components/infra/Containers/helpers.js.map +1 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +9 -20
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.js +15 -33
- package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.js +10 -12
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts +8 -13
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.js +11 -22
- package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
- package/lib/components/infra/DeferLoad/index.js.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +5 -12
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +17 -26
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.css +11 -15
- package/lib/components/infra/MultiStep/MultiStep.d.ts +10 -18
- package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.js +32 -97
- package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
- package/lib/components/infra/MultiStep/index.js.map +1 -1
- package/lib/components/infra/NavBar/NavBar.css +103 -105
- package/lib/components/infra/NavBar/NavBar.d.ts +8 -16
- package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
- package/lib/components/infra/NavBar/NavBar.js +19 -66
- package/lib/components/infra/NavBar/NavBar.js.map +1 -1
- package/lib/components/infra/Reference/Reference.d.ts +8 -17
- package/lib/components/infra/Reference/Reference.d.ts.map +1 -1
- package/lib/components/infra/Reference/Reference.js +5 -17
- package/lib/components/infra/Reference/Reference.js.map +1 -1
- package/lib/components/infra/Region/Region.d.ts +4 -8
- package/lib/components/infra/Region/Region.d.ts.map +1 -1
- package/lib/components/infra/Region/Region.js +2 -7
- package/lib/components/infra/Region/Region.js.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.d.ts +13 -20
- package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.js +41 -80
- package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
- package/lib/components/infra/RootContainer/index.js.map +1 -1
- package/lib/components/infra/Stages/Stages.d.ts +5 -8
- package/lib/components/infra/Stages/Stages.d.ts.map +1 -1
- package/lib/components/infra/Stages/Stages.js +19 -27
- package/lib/components/infra/Stages/Stages.js.map +1 -1
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +6 -8
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts +4 -10
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.d.ts.map +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +13 -17
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
- package/lib/components/infra/View/View.d.ts +13 -17
- package/lib/components/infra/View/View.d.ts.map +1 -1
- package/lib/components/infra/View/View.js +10 -32
- package/lib/components/infra/View/View.js.map +1 -1
- package/lib/components/template/AppShell/AppShell.css +22 -23
- package/lib/components/template/AppShell/AppShell.d.ts +20 -16
- package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/template/AppShell/AppShell.js +27 -45
- package/lib/components/template/AppShell/AppShell.js.map +1 -1
- package/lib/components/template/BannerPage/BannerPage.d.ts +12 -24
- package/lib/components/template/BannerPage/BannerPage.d.ts.map +1 -1
- package/lib/components/template/BannerPage/BannerPage.js +7 -25
- package/lib/components/template/BannerPage/BannerPage.js.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.d.ts +5 -8
- package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -1
- package/lib/components/template/CaseSummary/CaseSummary.js +48 -12
- package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -1
- package/lib/components/template/CaseView/CaseView.d.ts +10 -23
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/template/CaseView/CaseView.js +22 -58
- package/lib/components/template/CaseView/CaseView.js.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -15
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +37 -19
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.d.ts +10 -17
- package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.js +10 -28
- package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/template/DataReference/DataReference.d.ts +15 -30
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReference.js +35 -72
- package/lib/components/template/DataReference/DataReference.js.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.css +7 -3
- package/lib/components/template/DefaultForm/DefaultForm.d.ts +7 -11
- package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -1
- package/lib/components/template/DefaultForm/DefaultForm.js +5 -15
- package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
- package/lib/components/template/Details/Details/Details.d.ts +7 -15
- package/lib/components/template/Details/Details/Details.d.ts.map +1 -1
- package/lib/components/template/Details/Details/Details.js +8 -21
- package/lib/components/template/Details/Details/Details.js.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts +7 -16
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +6 -23
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -15
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +9 -22
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -15
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +9 -22
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts +10 -0
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -0
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +45 -0
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -0
- package/lib/components/template/Details/DynamicTabs/index.d.ts +2 -0
- package/lib/components/template/Details/DynamicTabs/index.d.ts.map +1 -0
- package/lib/components/template/Details/DynamicTabs/index.js +2 -0
- package/lib/components/template/Details/DynamicTabs/index.js.map +1 -0
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts +12 -19
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +11 -26
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts +7 -8
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.js +3 -14
- package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts +8 -16
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -1
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js +9 -17
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -1
- package/lib/components/template/ListPage/ListPage.d.ts +5 -13
- package/lib/components/template/ListPage/ListPage.d.ts.map +1 -1
- package/lib/components/template/ListPage/ListPage.js +7 -11
- package/lib/components/template/ListPage/ListPage.js.map +1 -1
- package/lib/components/template/ListView/DefaultViewMeta.d.ts.map +1 -1
- package/lib/components/template/ListView/DefaultViewMeta.js.map +1 -1
- package/lib/components/template/ListView/ListView.d.ts +15 -8
- package/lib/components/template/ListView/ListView.d.ts.map +1 -1
- package/lib/components/template/ListView/ListView.js +168 -258
- package/lib/components/template/ListView/ListView.js.map +1 -1
- package/lib/components/template/ListView/hooks.d.ts.map +1 -1
- package/lib/components/template/ListView/hooks.js +4 -6
- package/lib/components/template/ListView/hooks.js.map +1 -1
- package/lib/components/template/ListView/utils.d.ts +45 -1
- package/lib/components/template/ListView/utils.d.ts.map +1 -1
- package/lib/components/template/ListView/utils.js +165 -32
- package/lib/components/template/ListView/utils.js.map +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +9 -13
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -1
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js +5 -16
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts +11 -2
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js +2 -10
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -15
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +9 -22
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +6 -2
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js +2 -5
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +8 -15
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js +7 -18
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts +5 -8
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js +9 -13
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts +4 -8
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js +5 -8
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts +5 -8
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -1
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js +2 -7
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.css +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +9 -14
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js +14 -27
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts +19 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +62 -13
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +24 -2
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +120 -130
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +14 -29
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +15 -33
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +14 -26
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -1
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js +8 -29
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -1
- package/lib/components/template/SubTabs/SubTabs.d.ts +5 -11
- package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -1
- package/lib/components/template/SubTabs/SubTabs.js +7 -17
- package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.js +2 -4
- package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts +6 -12
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +15 -24
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +4 -8
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js +5 -8
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +6 -12
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +15 -21
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts +11 -2
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js +3 -11
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -15
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +23 -26
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +6 -2
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js +2 -5
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +8 -15
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js +7 -17
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.d.ts +18 -1
- package/lib/components/template/WssNavBar/WssNavBar.d.ts.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.js +20 -37
- package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts +9 -17
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +13 -37
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
- package/lib/components/widget/Attachment/Attachment.css +60 -1
- package/lib/components/widget/Attachment/Attachment.d.ts +8 -1
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
- package/lib/components/widget/Attachment/Attachment.js +277 -343
- package/lib/components/widget/Attachment/Attachment.js.map +1 -1
- package/lib/components/widget/Attachment/index.js.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts +4 -7
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.js +38 -36
- package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
- package/lib/components/widget/CaseHistory/index.js.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +9 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +2 -4
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.css +2 -2
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts +5 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +121 -140
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
- package/lib/components/widget/Followers/Followers.d.ts +5 -6
- package/lib/components/widget/Followers/Followers.d.ts.map +1 -1
- package/lib/components/widget/Followers/Followers.js +10 -25
- package/lib/components/widget/Followers/Followers.js.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts +8 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js +59 -29
- package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.css +9 -9
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts +8 -1
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.js +8 -23
- package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
- package/lib/components/widget/SummaryItem/index.js.map +1 -1
- package/lib/components/widget/SummaryList/SummaryList.d.ts +8 -1
- package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -1
- package/lib/components/widget/SummaryList/SummaryList.js +6 -3
- package/lib/components/widget/SummaryList/SummaryList.js.map +1 -1
- package/lib/components/widget/ToDo/ToDo.css +4 -4
- package/lib/components/widget/ToDo/ToDo.d.ts +13 -27
- package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
- package/lib/components/widget/ToDo/ToDo.js +26 -98
- package/lib/components/widget/ToDo/ToDo.js.map +1 -1
- package/lib/components_map.d.ts +2 -2
- package/lib/components_map.d.ts.map +1 -1
- package/lib/components_map.js +4 -2
- package/lib/components_map.js.map +1 -1
- package/lib/doc/KeyReleaseUpdates.md +39 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useAfterInitialEffect.d.ts +9 -0
- package/lib/hooks/useAfterInitialEffect.d.ts.map +1 -0
- package/lib/hooks/useAfterInitialEffect.js +16 -0
- package/lib/hooks/useAfterInitialEffect.js.map +1 -0
- package/lib/hooks/useConsolidatedRef.d.ts +9 -0
- package/lib/hooks/useConsolidatedRef.d.ts.map +1 -0
- package/lib/hooks/useConsolidatedRef.js +30 -0
- package/lib/hooks/useConsolidatedRef.js.map +1 -0
- package/lib/hooks/useUID.d.ts +8 -0
- package/lib/hooks/useUID.d.ts.map +1 -0
- package/lib/hooks/useUID.js +14 -0
- package/lib/hooks/useUID.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/sdk-local-component-map.js +2 -2
- package/lib/sdk-pega-component-map.d.ts +21 -1
- package/lib/sdk-pega-component-map.js +112 -92
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/lib/types/PConnProps.d.ts +41 -0
- package/package.json +5 -2
- package/lib/components/helpers/auth.d.ts +0 -16
- package/lib/components/helpers/auth.d.ts.map +0 -1
- package/lib/components/helpers/auth.js +0 -437
- package/lib/components/helpers/auth.js.map +0 -1
- package/lib/components/helpers/authManager.d.ts +0 -18
- package/lib/components/helpers/authManager.d.ts.map +0 -1
- package/lib/components/helpers/authManager.js +0 -592
- package/lib/components/helpers/authManager.js.map +0 -1
- package/lib/components/helpers/config_access.d.ts +0 -3
- package/lib/components/helpers/config_access.d.ts.map +0 -1
- package/lib/components/helpers/config_access.js +0 -261
- package/lib/components/helpers/config_access.js.map +0 -1
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
2
3
|
import TextField from '@material-ui/core/TextField';
|
|
3
4
|
import { Utils } from '../../../helpers/utils';
|
|
4
|
-
import download from
|
|
5
|
-
import SummaryList from '../../SummaryList';
|
|
6
|
-
import ActionButtonsForFileUtil from '../ActionButtonsForFileUtil';
|
|
5
|
+
import download from 'downloadjs';
|
|
6
|
+
// import SummaryList from '../../SummaryList';
|
|
7
|
+
// import ActionButtonsForFileUtil from '../ActionButtonsForFileUtil';
|
|
7
8
|
import './FileUtility.css';
|
|
8
|
-
import { IconButton, Menu, MenuItem } from '@material-ui/core';
|
|
9
|
+
import { IconButton, Menu, MenuItem, Button, CircularProgress } from '@material-ui/core';
|
|
9
10
|
import MoreVertIcon from '@material-ui/icons/MoreVert';
|
|
10
|
-
import { Button } from '@material-ui/core';
|
|
11
11
|
import { validateMaxSize } from '../../../helpers/attachmentHelpers';
|
|
12
|
-
import {
|
|
12
|
+
import { getComponentFromMap } from '../../../../bridge/helpers/sdk_component_map';
|
|
13
13
|
export default function FileUtility(props) {
|
|
14
|
+
// Get emitted components from map (so we can get any override that may exist)
|
|
15
|
+
const SummaryList = getComponentFromMap('SummaryList');
|
|
16
|
+
const ActionButtonsForFileUtil = getComponentFromMap('ActionButtonsForFileUtil');
|
|
14
17
|
const { getPConnect } = props;
|
|
15
18
|
const thePConn = getPConnect();
|
|
16
19
|
const required = true;
|
|
@@ -20,23 +23,47 @@ export default function FileUtility(props) {
|
|
|
20
23
|
};
|
|
21
24
|
const [list, setList] = useState(listTemp);
|
|
22
25
|
const headerSvgIcon$ = Utils.getImageSrc('paper-clip', Utils.getSDKStaticConentUrl());
|
|
23
|
-
const closeSvgIcon = Utils.getImageSrc(
|
|
26
|
+
const closeSvgIcon = Utils.getImageSrc('times', Utils.getSDKStaticConentUrl());
|
|
24
27
|
const configProps = thePConn.resolveConfigProps(thePConn.getConfigProps());
|
|
25
28
|
const header = configProps.label;
|
|
26
29
|
const fileTemp = {
|
|
27
30
|
showfileModal: false,
|
|
28
31
|
fileList: [],
|
|
29
32
|
attachedFiles: [],
|
|
30
|
-
fileMainButtons: [
|
|
31
|
-
|
|
33
|
+
fileMainButtons: [
|
|
34
|
+
{
|
|
35
|
+
actionID: 'attach',
|
|
36
|
+
jsAction: 'attachFiles',
|
|
37
|
+
name: thePConn.getLocalizedValue('Attach files', '', '')
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
fileSecondaryButtons: [
|
|
41
|
+
{
|
|
42
|
+
actionID: 'cancel',
|
|
43
|
+
jsAction: 'cancel',
|
|
44
|
+
name: thePConn.getLocalizedValue('Cancel', '', '')
|
|
45
|
+
}
|
|
46
|
+
] // 2nd and 3rd args empty string until typedef marked correctly
|
|
32
47
|
};
|
|
33
48
|
const [fileData, setFileData] = useState(fileTemp);
|
|
34
49
|
const linkTemp = {
|
|
35
50
|
showLinkModal: false,
|
|
36
51
|
linksList: [],
|
|
37
52
|
attachedLinks: [],
|
|
38
|
-
linkMainButtons: [
|
|
39
|
-
|
|
53
|
+
linkMainButtons: [
|
|
54
|
+
{
|
|
55
|
+
actionID: 'attach',
|
|
56
|
+
jsAction: 'attachLinks',
|
|
57
|
+
name: thePConn.getLocalizedValue('Attach links', '', '')
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
linkSecondaryButtons: [
|
|
61
|
+
{
|
|
62
|
+
actionID: 'cancel',
|
|
63
|
+
jsAction: 'cancel',
|
|
64
|
+
name: thePConn.getLocalizedValue('Cancel', '', '')
|
|
65
|
+
}
|
|
66
|
+
] // 2nd and 3rd args empty string until typedef marked correctly
|
|
40
67
|
};
|
|
41
68
|
const [linkData, setLinkData] = useState(linkTemp);
|
|
42
69
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
@@ -46,12 +73,12 @@ export default function FileUtility(props) {
|
|
|
46
73
|
const [showViewAllModal, setViewAll] = useState(false);
|
|
47
74
|
const [vaItems, setFullAttachments] = useState([]);
|
|
48
75
|
function addAttachments(attsFromResp = []) {
|
|
49
|
-
attsFromResp = attsFromResp.map(
|
|
76
|
+
attsFromResp = attsFromResp.map(respAtt => {
|
|
50
77
|
const updatedAtt = {
|
|
51
78
|
...respAtt,
|
|
52
|
-
meta: `${respAtt.category} . ${Utils.generateDateTime(respAtt.createTime,
|
|
79
|
+
meta: `${respAtt.category} . ${Utils.generateDateTime(respAtt.createTime, 'DateTime-Since')}, ${respAtt.createdBy}`
|
|
53
80
|
};
|
|
54
|
-
if (updatedAtt.type ===
|
|
81
|
+
if (updatedAtt.type === 'FILE') {
|
|
55
82
|
updatedAtt.nameWithExt = updatedAtt.fileName;
|
|
56
83
|
}
|
|
57
84
|
return updatedAtt;
|
|
@@ -64,31 +91,31 @@ export default function FileUtility(props) {
|
|
|
64
91
|
actions = [
|
|
65
92
|
{
|
|
66
93
|
id: `Cancel-${att.ID}`,
|
|
67
|
-
text: thePConn.getLocalizedValue('Cancel'),
|
|
68
|
-
icon:
|
|
94
|
+
text: thePConn.getLocalizedValue('Cancel', '', ''),
|
|
95
|
+
icon: 'times',
|
|
69
96
|
onClick: cancelFile
|
|
70
97
|
}
|
|
71
98
|
];
|
|
72
99
|
}
|
|
73
100
|
else if (att.links) {
|
|
74
|
-
const isFile = att.type ===
|
|
75
|
-
const ID = att.ID.replace(/\s/gi,
|
|
101
|
+
const isFile = att.type === 'FILE';
|
|
102
|
+
const ID = att.ID.replace(/\s/gi, '');
|
|
76
103
|
const actionsMap = new Map([
|
|
77
104
|
[
|
|
78
|
-
|
|
105
|
+
'download',
|
|
79
106
|
{
|
|
80
107
|
id: `download-${ID}`,
|
|
81
|
-
text: isFile ? thePConn.getLocalizedValue('Download') : thePConn.getLocalizedValue('Open'),
|
|
82
|
-
icon: isFile ?
|
|
108
|
+
text: isFile ? thePConn.getLocalizedValue('Download', '', '') : thePConn.getLocalizedValue('Open', '', ''),
|
|
109
|
+
icon: isFile ? 'download' : 'open',
|
|
83
110
|
onClick: downloadFile
|
|
84
111
|
}
|
|
85
112
|
],
|
|
86
113
|
[
|
|
87
|
-
|
|
114
|
+
'delete',
|
|
88
115
|
{
|
|
89
116
|
id: `Delete-${ID}`,
|
|
90
|
-
text: thePConn.getLocalizedValue('Delete'),
|
|
91
|
-
icon:
|
|
117
|
+
text: thePConn.getLocalizedValue('Delete', '', ''),
|
|
118
|
+
icon: 'trash',
|
|
92
119
|
onClick: deleteFile
|
|
93
120
|
}
|
|
94
121
|
]
|
|
@@ -104,8 +131,8 @@ export default function FileUtility(props) {
|
|
|
104
131
|
actions = [
|
|
105
132
|
{
|
|
106
133
|
id: `Remove-${att.ID}`,
|
|
107
|
-
text: thePConn.getLocalizedValue('Remove'),
|
|
108
|
-
icon:
|
|
134
|
+
text: thePConn.getLocalizedValue('Remove', '', ''),
|
|
135
|
+
icon: 'trash',
|
|
109
136
|
onClick: removeFile
|
|
110
137
|
}
|
|
111
138
|
];
|
|
@@ -114,13 +141,13 @@ export default function FileUtility(props) {
|
|
|
114
141
|
id: att.ID,
|
|
115
142
|
visual: {
|
|
116
143
|
icon: Utils.getIconForAttachment(att),
|
|
117
|
-
progress: att.progress === 100 ? undefined : att.progress
|
|
144
|
+
progress: att.progress === 100 ? undefined : att.progress
|
|
118
145
|
},
|
|
119
146
|
primary: {
|
|
120
147
|
type: att.type,
|
|
121
148
|
name: att.name,
|
|
122
|
-
icon:
|
|
123
|
-
click: downloadFile
|
|
149
|
+
icon: 'open',
|
|
150
|
+
click: downloadFile
|
|
124
151
|
},
|
|
125
152
|
secondary: {
|
|
126
153
|
text: att.meta
|
|
@@ -132,23 +159,23 @@ export default function FileUtility(props) {
|
|
|
132
159
|
const file = ext ? `${fileName}.${ext}` : fileName;
|
|
133
160
|
download(atob(data), file);
|
|
134
161
|
}
|
|
135
|
-
;
|
|
136
162
|
function downloadAttachedFile(att) {
|
|
137
163
|
const attachUtils = PCore.getAttachmentUtils();
|
|
138
164
|
const { ID, name, extension, type } = att;
|
|
139
165
|
const context = thePConn.getContextName();
|
|
140
166
|
attachUtils
|
|
167
|
+
// @ts-ignore - 3rd parameter "responseEncoding" is optional
|
|
141
168
|
.downloadAttachment(ID, context)
|
|
142
169
|
.then((content) => {
|
|
143
|
-
if (type ===
|
|
170
|
+
if (type === 'FILE') {
|
|
144
171
|
fileDownload(content.data, name, extension);
|
|
145
172
|
}
|
|
146
|
-
else if (type ===
|
|
173
|
+
else if (type === 'URL') {
|
|
147
174
|
let { data } = content;
|
|
148
175
|
if (!/^(http|https):\/\//.test(data)) {
|
|
149
176
|
data = `//${data}`;
|
|
150
177
|
}
|
|
151
|
-
window.open(content.data,
|
|
178
|
+
window.open(content.data, '_blank');
|
|
152
179
|
}
|
|
153
180
|
})
|
|
154
181
|
.catch();
|
|
@@ -157,7 +184,8 @@ export default function FileUtility(props) {
|
|
|
157
184
|
const attachUtils = PCore.getAttachmentUtils();
|
|
158
185
|
const { ID } = att;
|
|
159
186
|
const context = thePConn.getContextName();
|
|
160
|
-
attachUtils
|
|
187
|
+
attachUtils
|
|
188
|
+
.deleteAttachment(ID, context)
|
|
161
189
|
.then(() => {
|
|
162
190
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
163
191
|
getAttachments();
|
|
@@ -166,14 +194,13 @@ export default function FileUtility(props) {
|
|
|
166
194
|
}
|
|
167
195
|
const getAttachments = () => {
|
|
168
196
|
const attachmentUtils = PCore.getAttachmentUtils();
|
|
169
|
-
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
170
|
-
if (caseID && caseID !==
|
|
197
|
+
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef marked correctly
|
|
198
|
+
if (caseID && caseID !== '') {
|
|
171
199
|
const attPromise = attachmentUtils.getCaseAttachments(caseID, thePConn.getContextName());
|
|
172
|
-
attPromise
|
|
173
|
-
.then((resp) => {
|
|
200
|
+
attPromise.then((resp) => {
|
|
174
201
|
const arFullListAttachments = addAttachments(resp);
|
|
175
202
|
const attachmentsCount = arFullListAttachments.length;
|
|
176
|
-
const arItems = arFullListAttachments.slice(0, 3).map(
|
|
203
|
+
const arItems = arFullListAttachments.slice(0, 3).map(att => {
|
|
177
204
|
return getListUtilityItemProps({
|
|
178
205
|
att,
|
|
179
206
|
downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,
|
|
@@ -182,7 +209,7 @@ export default function FileUtility(props) {
|
|
|
182
209
|
removeFile: null
|
|
183
210
|
});
|
|
184
211
|
});
|
|
185
|
-
const viewAllarItems = arFullListAttachments.map(
|
|
212
|
+
const viewAllarItems = arFullListAttachments.map(att => {
|
|
186
213
|
return getListUtilityItemProps({
|
|
187
214
|
att,
|
|
188
215
|
downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,
|
|
@@ -192,7 +219,7 @@ export default function FileUtility(props) {
|
|
|
192
219
|
});
|
|
193
220
|
});
|
|
194
221
|
setProgress(false);
|
|
195
|
-
setList(
|
|
222
|
+
setList(current => {
|
|
196
223
|
return { ...current, count: attachmentsCount, data: arItems };
|
|
197
224
|
});
|
|
198
225
|
setFullAttachments(viewAllarItems);
|
|
@@ -203,17 +230,17 @@ export default function FileUtility(props) {
|
|
|
203
230
|
getAttachments();
|
|
204
231
|
}, []);
|
|
205
232
|
useEffect(() => {
|
|
206
|
-
PCore.getPubSubUtils().subscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, getAttachments,
|
|
233
|
+
PCore.getPubSubUtils().subscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, getAttachments, 'caseAttachmentsUpdateFromCaseview');
|
|
207
234
|
return () => {
|
|
208
|
-
PCore.getPubSubUtils().unsubscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,
|
|
235
|
+
PCore.getPubSubUtils().unsubscribe(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, 'caseAttachmentsUpdateFromCaseview');
|
|
209
236
|
};
|
|
210
237
|
}, []);
|
|
211
238
|
function setNewFiles(arFiles) {
|
|
212
239
|
let index = 0;
|
|
213
240
|
for (const file of arFiles) {
|
|
214
|
-
if (!validateMaxSize(file, 5)) {
|
|
241
|
+
if (!validateMaxSize(file, '5')) {
|
|
215
242
|
file.error = true;
|
|
216
|
-
file.meta =
|
|
243
|
+
file.meta = 'File is too big. Max allowed size is 5MB.';
|
|
217
244
|
}
|
|
218
245
|
file.mimeType = file.type;
|
|
219
246
|
file.icon = Utils.getIconFromFileType(file.type);
|
|
@@ -239,18 +266,18 @@ export default function FileUtility(props) {
|
|
|
239
266
|
removeFile: null
|
|
240
267
|
});
|
|
241
268
|
});
|
|
242
|
-
setFileData(
|
|
269
|
+
setFileData(current => {
|
|
243
270
|
return { ...current, fileList: arFileList$, attachedFiles: myFiles };
|
|
244
271
|
});
|
|
245
272
|
}
|
|
246
|
-
const handleClick =
|
|
273
|
+
const handleClick = event => {
|
|
247
274
|
setAnchorEl(event.currentTarget);
|
|
248
275
|
};
|
|
249
276
|
const handleClose = () => {
|
|
250
277
|
setAnchorEl(null);
|
|
251
278
|
};
|
|
252
279
|
function onAddFilesClick() {
|
|
253
|
-
setFileData(
|
|
280
|
+
setFileData(current => {
|
|
254
281
|
return { ...current, showfileModal: true };
|
|
255
282
|
});
|
|
256
283
|
setAnchorEl(null);
|
|
@@ -261,57 +288,60 @@ export default function FileUtility(props) {
|
|
|
261
288
|
if (item !== null) {
|
|
262
289
|
attachedFiles = attachedFiles.filter(ele => ele.ID !== item.id);
|
|
263
290
|
fileList = fileList.filter(ele => ele.id !== item.id);
|
|
264
|
-
setFileData(
|
|
291
|
+
setFileData(current => {
|
|
265
292
|
return { ...current, fileList, attachedFiles };
|
|
266
293
|
});
|
|
267
294
|
}
|
|
268
295
|
}
|
|
269
296
|
function closeFilePopup() {
|
|
270
|
-
setFileData(
|
|
297
|
+
setFileData(current => {
|
|
271
298
|
return { ...current, showfileModal: false };
|
|
272
299
|
});
|
|
273
300
|
}
|
|
274
301
|
function onAttachFiles() {
|
|
275
302
|
const attachmentUtils = PCore.getAttachmentUtils();
|
|
276
|
-
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
303
|
+
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef marked correctly
|
|
277
304
|
const onUploadProgress = () => { };
|
|
278
305
|
const errorHandler = () => { };
|
|
279
306
|
closeFilePopup();
|
|
280
307
|
if (fileData.attachedFiles && fileData.attachedFiles.length > 0) {
|
|
281
308
|
setProgress(true);
|
|
282
309
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
if (fileResponse.
|
|
288
|
-
|
|
289
|
-
.then(() => {
|
|
290
|
-
setFileData((current) => {
|
|
291
|
-
return { ...current, fileList: [], attachedFiles: [] };
|
|
292
|
-
});
|
|
293
|
-
getAttachments();
|
|
294
|
-
})
|
|
295
|
-
.catch();
|
|
310
|
+
Promise.allSettled(fileData.attachedFiles.map(file => attachmentUtils.uploadAttachment(file, onUploadProgress, errorHandler, thePConn.getContextName())))
|
|
311
|
+
.then((fileResponses) => {
|
|
312
|
+
const uploadedFiles = [];
|
|
313
|
+
fileResponses.forEach(fileResponse => {
|
|
314
|
+
if (fileResponse.status === 'fulfilled') {
|
|
315
|
+
uploadedFiles.push(fileResponse.value);
|
|
296
316
|
}
|
|
297
|
-
})
|
|
298
|
-
|
|
299
|
-
|
|
317
|
+
});
|
|
318
|
+
if (uploadedFiles.length > 0) {
|
|
319
|
+
attachmentUtils.linkAttachmentsToCase(caseID, uploadedFiles, 'File', thePConn.getContextName())
|
|
320
|
+
.then(() => {
|
|
321
|
+
setFileData(current => {
|
|
322
|
+
return { ...current, fileList: [], attachedFiles: [] };
|
|
323
|
+
});
|
|
324
|
+
getAttachments();
|
|
325
|
+
})
|
|
326
|
+
.catch();
|
|
327
|
+
}
|
|
328
|
+
})
|
|
329
|
+
.catch();
|
|
300
330
|
}
|
|
301
331
|
function onAddLinksClick() {
|
|
302
|
-
setLinkData(
|
|
332
|
+
setLinkData(current => {
|
|
303
333
|
return { ...current, showLinkModal: true };
|
|
304
334
|
});
|
|
305
335
|
setAnchorEl(null);
|
|
306
336
|
}
|
|
307
337
|
function closeAddLinksPopup() {
|
|
308
|
-
setLinkData(
|
|
338
|
+
setLinkData(current => {
|
|
309
339
|
return { ...current, showLinkModal: false };
|
|
310
340
|
});
|
|
311
341
|
}
|
|
312
|
-
const fieldlinkOnChange =
|
|
342
|
+
const fieldlinkOnChange = event => {
|
|
313
343
|
const title = event.target.value;
|
|
314
|
-
setLink(
|
|
344
|
+
setLink(current => {
|
|
315
345
|
const updatedData = { ...current, title };
|
|
316
346
|
updatedData.disable = !(updatedData.title && updatedData.url);
|
|
317
347
|
return updatedData;
|
|
@@ -319,7 +349,7 @@ export default function FileUtility(props) {
|
|
|
319
349
|
};
|
|
320
350
|
function fieldurlOnChange(event) {
|
|
321
351
|
const url = event.target.value;
|
|
322
|
-
setLink(
|
|
352
|
+
setLink(current => {
|
|
323
353
|
const updatedData = { ...current, url };
|
|
324
354
|
updatedData.disable = !(updatedData.title && updatedData.url);
|
|
325
355
|
return updatedData;
|
|
@@ -334,7 +364,7 @@ export default function FileUtility(props) {
|
|
|
334
364
|
}
|
|
335
365
|
// list for display
|
|
336
366
|
let oLink = {};
|
|
337
|
-
oLink.icon =
|
|
367
|
+
oLink.icon = 'chain';
|
|
338
368
|
oLink.ID = `${new Date().getTime()}`;
|
|
339
369
|
oLink = getListUtilityItemProps({
|
|
340
370
|
att: oLink,
|
|
@@ -343,11 +373,11 @@ export default function FileUtility(props) {
|
|
|
343
373
|
deleteFile: null,
|
|
344
374
|
removeFile: null
|
|
345
375
|
});
|
|
346
|
-
oLink.type =
|
|
376
|
+
oLink.type = 'URL';
|
|
347
377
|
oLink.primary.type = oLink.type;
|
|
348
|
-
oLink.visual.icon =
|
|
378
|
+
oLink.visual.icon = 'chain';
|
|
349
379
|
oLink.primary.name = link.title;
|
|
350
|
-
oLink.primary.icon =
|
|
380
|
+
oLink.primary.icon = 'open';
|
|
351
381
|
oLink.secondary.text = url;
|
|
352
382
|
localList.push(oLink);
|
|
353
383
|
// list for actually attachments
|
|
@@ -358,8 +388,12 @@ export default function FileUtility(props) {
|
|
|
358
388
|
attachedLink.type = oLink.type;
|
|
359
389
|
attachedLink.url = url;
|
|
360
390
|
attachedListTemp.push(attachedLink);
|
|
361
|
-
setLinkData(
|
|
362
|
-
return {
|
|
391
|
+
setLinkData(current => {
|
|
392
|
+
return {
|
|
393
|
+
...current,
|
|
394
|
+
linksList: localList,
|
|
395
|
+
attachedLinks: attachedListTemp
|
|
396
|
+
};
|
|
363
397
|
});
|
|
364
398
|
// clear values
|
|
365
399
|
setLink({ title: '', url: '', disable: true });
|
|
@@ -370,87 +404,34 @@ export default function FileUtility(props) {
|
|
|
370
404
|
if (item !== null) {
|
|
371
405
|
attachedLinks = attachedLinks.filter(ele => ele.id !== item.id);
|
|
372
406
|
linksList = linksList.filter(ele => ele.id !== item.id);
|
|
373
|
-
setLinkData(
|
|
407
|
+
setLinkData(current => {
|
|
374
408
|
return { ...current, linksList, attachedLinks };
|
|
375
409
|
});
|
|
376
410
|
}
|
|
377
411
|
}
|
|
378
412
|
function onAttachLinks() {
|
|
379
413
|
const attachmentUtils = PCore.getAttachmentUtils();
|
|
380
|
-
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
414
|
+
const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID, ''); // 2nd arg empty string until typedef marked correctly
|
|
381
415
|
const links = linkData.attachedLinks;
|
|
382
416
|
closeAddLinksPopup();
|
|
383
417
|
const linksToAttach = links.map((item) => ({
|
|
384
|
-
type:
|
|
385
|
-
category:
|
|
418
|
+
type: 'URL',
|
|
419
|
+
category: 'URL',
|
|
386
420
|
url: item.url,
|
|
387
421
|
name: item.linkTitle
|
|
388
422
|
}));
|
|
389
423
|
if (linksToAttach && linksToAttach.length > 0) {
|
|
390
424
|
setProgress(true);
|
|
391
|
-
attachmentUtils
|
|
392
|
-
.linkAttachmentsToCase(caseID, linksToAttach, "URL", thePConn.getContextName())
|
|
425
|
+
attachmentUtils.linkAttachmentsToCase(caseID, linksToAttach, 'URL', thePConn.getContextName())
|
|
393
426
|
.then(() => {
|
|
394
|
-
setLinkData(
|
|
427
|
+
setLinkData(current => {
|
|
395
428
|
return { ...current, linksList: [], attachedLinks: [] };
|
|
396
429
|
});
|
|
397
430
|
getAttachments();
|
|
398
431
|
})
|
|
399
|
-
.catch(setProgress(false));
|
|
432
|
+
.catch(() => setProgress(false));
|
|
400
433
|
}
|
|
401
434
|
}
|
|
402
|
-
return (
|
|
403
|
-
inProgress && (React.createElement("div", { className: "progress-div" },
|
|
404
|
-
React.createElement(CircularProgress, null))),
|
|
405
|
-
React.createElement("div", { className: "psdk-header" },
|
|
406
|
-
React.createElement("img", { className: "psdk-file-utility-card-svg-icon", src: headerSvgIcon$ }),
|
|
407
|
-
React.createElement("div", { className: "header-text" }, header),
|
|
408
|
-
React.createElement("div", { className: "psdk-utility-count", id: "attachments-count" }, list.count),
|
|
409
|
-
React.createElement("div", { style: { flexGrow: 1 } }),
|
|
410
|
-
React.createElement("div", null,
|
|
411
|
-
React.createElement(IconButton, { id: "long-button", "aria-controls": open ? 'simple-menu' : undefined, "aria-expanded": open ? 'true' : undefined, "aria-haspopup": "true", onClick: handleClick },
|
|
412
|
-
React.createElement(MoreVertIcon, null)),
|
|
413
|
-
React.createElement(Menu, { style: { marginTop: '3rem' }, id: "simple-menu", anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose },
|
|
414
|
-
React.createElement(MenuItem, { style: { fontSize: '14px' }, onClick: onAddFilesClick }, thePConn.getLocalizedValue('Add files')),
|
|
415
|
-
React.createElement(MenuItem, { style: { fontSize: '14px' }, onClick: onAddLinksClick }, thePConn.getLocalizedValue('Add links'))))),
|
|
416
|
-
list.data.length > 0 && (React.createElement("div", { style: { marginTop: '1rem' } },
|
|
417
|
-
React.createElement(SummaryList, { "arItems$": list.data }))),
|
|
418
|
-
list.count > 3 && (React.createElement("div", { className: "psdk-utility-view-all" },
|
|
419
|
-
React.createElement(Button, { style: { textTransform: 'none' }, color: "primary", onClick: () => setViewAll(true) }, "View all"))),
|
|
420
|
-
fileData.showfileModal && (React.createElement("div", { className: "psdk-dialog-background" },
|
|
421
|
-
React.createElement("div", { className: "psdk-modal-file-top" },
|
|
422
|
-
React.createElement("h3", null, thePConn.getLocalizedValue('Add local files')),
|
|
423
|
-
React.createElement("div", { className: "psdk-modal-body" },
|
|
424
|
-
React.createElement("div", { className: "psdk-modal-file-selector" },
|
|
425
|
-
React.createElement("label", { htmlFor: 'upload-files' },
|
|
426
|
-
React.createElement("input", { style: { display: 'none' }, id: 'upload-files', name: 'upload-files', type: 'file', multiple: true, onChange: uploadMyFiles }),
|
|
427
|
-
React.createElement(Button, { variant: 'outlined', color: 'primary', component: "span" }, thePConn.getLocalizedValue('Attach files')))),
|
|
428
|
-
fileData.fileList.length > 0 && (React.createElement("div", { style: { marginTop: '1rem' } },
|
|
429
|
-
React.createElement(SummaryList, { "menuIconOverride$": 'trash', "arItems$": fileData.fileList, "menuIconOverrideAction$": removeFileFromList }))),
|
|
430
|
-
fileData.fileList.length === 0 && (React.createElement("div", null)),
|
|
431
|
-
React.createElement(ActionButtonsForFileUtil, { arMainButtons: fileData.fileMainButtons, arSecondaryButtons: fileData.fileSecondaryButtons, primaryAction: onAttachFiles, secondaryAction: closeFilePopup }))))),
|
|
432
|
-
linkData.showLinkModal && (React.createElement("div", { className: "psdk-dialog-background" },
|
|
433
|
-
React.createElement("div", { className: "psdk-modal-file-top" },
|
|
434
|
-
React.createElement("h3", null, thePConn.getLocalizedValue('Add links')),
|
|
435
|
-
React.createElement("div", { className: "psdk-modal-body" },
|
|
436
|
-
React.createElement("div", { className: "psdk-modal-links-row" },
|
|
437
|
-
React.createElement("div", { className: "psdk-links-two-column" },
|
|
438
|
-
React.createElement("div", { className: "psdk-modal-link-data" },
|
|
439
|
-
React.createElement(TextField, { fullWidth: true, variant: "outlined", label: "Link title", size: "small", required: required, value: link.title, onChange: fieldlinkOnChange })),
|
|
440
|
-
React.createElement("div", { className: "psdk-modal-link-data" },
|
|
441
|
-
React.createElement(TextField, { fullWidth: true, variant: "outlined", label: "URL", size: "small", required: required, value: link.url, onChange: fieldurlOnChange }))),
|
|
442
|
-
React.createElement("div", { className: "psdk-modal-link-add" },
|
|
443
|
-
React.createElement(Button, { className: "psdk-add-link-action", color: "primary", variant: "contained", component: "span", onClick: addLink, disabled: link.disable }, thePConn.getLocalizedValue('Add link')))),
|
|
444
|
-
linkData.linksList.length > 0 && (React.createElement("div", { style: { marginTop: '1rem' } },
|
|
445
|
-
React.createElement(SummaryList, { "menuIconOverride$": 'trash', "arItems$": linkData.linksList, "menuIconOverrideAction$": removeLinksFromList }))),
|
|
446
|
-
React.createElement(ActionButtonsForFileUtil, { arMainButtons: linkData.linkMainButtons, arSecondaryButtons: linkData.linkSecondaryButtons, primaryAction: onAttachLinks, secondaryAction: closeAddLinksPopup }))))),
|
|
447
|
-
showViewAllModal && (React.createElement("div", { className: "psdk-dialog-background" },
|
|
448
|
-
React.createElement("div", { className: "psdk-modal-file-top" },
|
|
449
|
-
React.createElement("div", { className: "psdk-view-all-header" },
|
|
450
|
-
React.createElement("h3", null, thePConn.getLocalizedValue('Attachments')),
|
|
451
|
-
React.createElement("button", { type: "button", className: "psdk-close-button", onClick: () => setViewAll(false) },
|
|
452
|
-
React.createElement("img", { className: "psdk-utility-card-actions-svg-icon", src: closeSvgIcon }))),
|
|
453
|
-
React.createElement("div", { className: "psdk-view-all-body" },
|
|
454
|
-
React.createElement(SummaryList, { "arItems$": vaItems })))))));
|
|
435
|
+
return (_jsxs("div", { className: 'psdk-utility', children: [inProgress && (_jsx("div", { className: 'progress-div', children: _jsx(CircularProgress, {}) })), _jsxs("div", { className: 'psdk-header', children: [_jsx("img", { className: 'psdk-file-utility-card-svg-icon', src: headerSvgIcon$ }), _jsx("div", { className: 'header-text', children: header }), _jsx("div", { className: 'psdk-utility-count', id: 'attachments-count', children: list.count }), _jsx("div", { style: { flexGrow: 1 } }), _jsxs("div", { children: [_jsx(IconButton, { id: 'long-button', "aria-controls": open ? 'simple-menu' : undefined, "aria-expanded": open ? 'true' : undefined, "aria-haspopup": 'true', onClick: handleClick, children: _jsx(MoreVertIcon, {}) }), _jsxs(Menu, { style: { marginTop: '3rem' }, id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose, children: [_jsx(MenuItem, { style: { fontSize: '14px' }, onClick: onAddFilesClick, children: thePConn.getLocalizedValue('Add files', '', '') }), ' ', _jsx(MenuItem, { style: { fontSize: '14px' }, onClick: onAddLinksClick, children: thePConn.getLocalizedValue('Add links', '', '') }), ' '] })] })] }), list.data.length > 0 && (_jsx("div", { style: { marginTop: '1rem' }, children: _jsx(SummaryList, { "arItems$": list.data }) })), list.count > 3 && (_jsx("div", { className: 'psdk-utility-view-all', children: _jsx(Button, { style: { textTransform: 'none' }, color: 'primary', onClick: () => setViewAll(true), children: "View all" }) })), fileData.showfileModal && (_jsx("div", { className: 'psdk-dialog-background', children: _jsxs("div", { className: 'psdk-modal-file-top', children: [_jsx("h3", { children: thePConn.getLocalizedValue('Add local files', '', '') }), _jsxs("div", { className: 'psdk-modal-body', children: [_jsx("div", { className: 'psdk-modal-file-selector', children: _jsxs("label", { htmlFor: 'upload-files', children: [_jsx("input", { style: { display: 'none' }, id: 'upload-files', name: 'upload-files', type: 'file', multiple: true, onChange: uploadMyFiles }), _jsx(Button, { variant: 'outlined', color: 'primary', component: 'span', children: thePConn.getLocalizedValue('Attach files', '', '') }), ' '] }) }), fileData.fileList.length > 0 && (_jsx("div", { style: { marginTop: '1rem' }, children: _jsx(SummaryList, { "menuIconOverride$": 'trash', "arItems$": fileData.fileList, "menuIconOverrideAction$": removeFileFromList }) })), fileData.fileList.length === 0 && _jsx("div", {}), _jsx(ActionButtonsForFileUtil, { arMainButtons: fileData.fileMainButtons, arSecondaryButtons: fileData.fileSecondaryButtons, primaryAction: onAttachFiles, secondaryAction: closeFilePopup })] })] }) })), linkData.showLinkModal && (_jsx("div", { className: 'psdk-dialog-background', children: _jsxs("div", { className: 'psdk-modal-file-top', children: [_jsx("h3", { children: thePConn.getLocalizedValue('Add links', '', '') }), " ", _jsxs("div", { className: 'psdk-modal-body', children: [_jsxs("div", { className: 'psdk-modal-links-row', children: [_jsxs("div", { className: 'psdk-links-two-column', children: [_jsx("div", { className: 'psdk-modal-link-data', children: _jsx(TextField, { fullWidth: true, variant: 'outlined', label: 'Link title', size: 'small', required: required, value: link.title, onChange: fieldlinkOnChange }) }), _jsx("div", { className: 'psdk-modal-link-data', children: _jsx(TextField, { fullWidth: true, variant: 'outlined', label: 'URL', size: 'small', required: required, value: link.url, onChange: fieldurlOnChange }) })] }), _jsxs("div", { className: 'psdk-modal-link-add', children: [_jsx(Button, { className: 'psdk-add-link-action', color: 'primary', variant: 'contained', component: 'span', onClick: addLink, disabled: link.disable, children: thePConn.getLocalizedValue('Add link', '', '') }), ' '] })] }), linkData.linksList.length > 0 && (_jsx("div", { style: { marginTop: '1rem' }, children: _jsx(SummaryList, { "menuIconOverride$": 'trash', "arItems$": linkData.linksList, "menuIconOverrideAction$": removeLinksFromList }) })), _jsx(ActionButtonsForFileUtil, { arMainButtons: linkData.linkMainButtons, arSecondaryButtons: linkData.linkSecondaryButtons, primaryAction: onAttachLinks, secondaryAction: closeAddLinksPopup })] })] }) })), showViewAllModal && (_jsx("div", { className: 'psdk-dialog-background', children: _jsxs("div", { className: 'psdk-modal-file-top', children: [_jsxs("div", { className: 'psdk-view-all-header', children: [_jsx("h3", { children: thePConn.getLocalizedValue('Attachments', '', '') }), " ", _jsx("button", { type: 'button', className: 'psdk-close-button', onClick: () => setViewAll(false), children: _jsx("img", { className: 'psdk-utility-card-actions-svg-icon', src: closeSvgIcon }) })] }), _jsx("div", { className: 'psdk-view-all-body', children: _jsx(SummaryList, { "arItems$": vaItems }) })] }) }))] }));
|
|
455
436
|
}
|
|
456
437
|
//# sourceMappingURL=FileUtility.js.map
|