@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,12 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
/* eslint-disable no-plusplus */
|
|
2
|
-
/* eslint-disable guard-for-in */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
5
|
-
|
|
6
|
-
import React, { useState, useEffect, useRef } from 'react';
|
|
7
|
-
import PropTypes from 'prop-types';
|
|
5
|
+
import { useState, useEffect, useRef } from 'react';
|
|
8
6
|
import { createStyles, makeStyles } from '@material-ui/core/styles';
|
|
9
|
-
import { Utils } from '../../helpers/utils';
|
|
10
7
|
import Table from '@material-ui/core/Table';
|
|
11
8
|
import TableBody from '@material-ui/core/TableBody';
|
|
12
9
|
import TableCell from '@material-ui/core/TableCell';
|
|
@@ -39,6 +36,9 @@ import { Radio } from '@material-ui/core';
|
|
|
39
36
|
import Checkbox from '@material-ui/core/Checkbox';
|
|
40
37
|
import { filterData } from '../../helpers/simpleTableHelpers';
|
|
41
38
|
import './ListView.css';
|
|
39
|
+
import { getDateFormatInfo } from '../../helpers/date-format-utils';
|
|
40
|
+
import { getCurrencyOptions } from '../../field/Currency/currency-utils';
|
|
41
|
+
import { format } from '../../helpers/formatters';
|
|
42
42
|
import useInit from './hooks';
|
|
43
43
|
const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
|
|
44
44
|
let myRows;
|
|
@@ -49,8 +49,10 @@ let menuColumnLabel = '';
|
|
|
49
49
|
let sortColumnId;
|
|
50
50
|
const filterByColumns = [];
|
|
51
51
|
export default function ListView(props) {
|
|
52
|
-
const { getPConnect, bInForm } = props;
|
|
53
|
-
const { globalSearch, referenceList,
|
|
52
|
+
const { getPConnect, bInForm = true } = props;
|
|
53
|
+
const { globalSearch, referenceList,
|
|
54
|
+
/* rowClickAction, */
|
|
55
|
+
selectionMode, referenceType, payload, parameters, compositeKeys, showDynamicFields, readonlyContextList: selectedValues, value } = props;
|
|
54
56
|
const ref = useRef({}).current;
|
|
55
57
|
const cosmosTableRef = useRef();
|
|
56
58
|
// List component context
|
|
@@ -58,8 +60,16 @@ export default function ListView(props) {
|
|
|
58
60
|
const { meta } = listContext;
|
|
59
61
|
const xRayApis = PCore.getDebugger().getXRayRuntime();
|
|
60
62
|
const xRayUid = xRayApis.startXRay();
|
|
61
|
-
useInit({
|
|
63
|
+
useInit({
|
|
64
|
+
...props,
|
|
65
|
+
setListContext,
|
|
66
|
+
ref,
|
|
67
|
+
showDynamicFields,
|
|
68
|
+
xRayUid,
|
|
69
|
+
cosmosTableRef
|
|
70
|
+
});
|
|
62
71
|
const thePConn = getPConnect();
|
|
72
|
+
// @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'.
|
|
63
73
|
const componentConfig = thePConn.getComponentConfig();
|
|
64
74
|
const resolvedConfigProps = thePConn.getConfigProps();
|
|
65
75
|
/** By default, pyGUID is used for Data classes and pyID is for Work classes as row-id/key */
|
|
@@ -75,16 +85,16 @@ export default function ListView(props) {
|
|
|
75
85
|
const [open, setOpen] = useState(false);
|
|
76
86
|
const [showSnackbar, setShowSnackbar] = useState(false);
|
|
77
87
|
const [snackbarMessage, setSnackbarMessage] = useState('');
|
|
78
|
-
const [selectedValue, setSelectedValue] = useState(
|
|
88
|
+
const [selectedValue, setSelectedValue] = useState(value);
|
|
79
89
|
// This basically will hold the list of all current filters
|
|
80
90
|
const filters = useRef({});
|
|
81
91
|
// Will contain the list of columns specific for an instance
|
|
82
|
-
|
|
83
|
-
|
|
92
|
+
const columnList = useRef([]);
|
|
93
|
+
const filterPayload = useRef();
|
|
84
94
|
// Will be sent in the dashboardFilterPayload
|
|
85
95
|
let selectParam = [];
|
|
86
96
|
// dataview parameters coming from the ListPage
|
|
87
|
-
// This constant will also be used for parameters coming from from other components/utility
|
|
97
|
+
// This constant will also be used for parameters coming from from other components/utility functions in future
|
|
88
98
|
const dataViewParameters = parameters;
|
|
89
99
|
const useStyles = makeStyles((theme) => createStyles({
|
|
90
100
|
root: {
|
|
@@ -93,7 +103,8 @@ export default function ListView(props) {
|
|
|
93
103
|
paper: {
|
|
94
104
|
width: '100%',
|
|
95
105
|
marginTop: theme.spacing(2),
|
|
96
|
-
marginBottom: theme.spacing(2)
|
|
106
|
+
marginBottom: theme.spacing(2),
|
|
107
|
+
display: 'grid'
|
|
97
108
|
},
|
|
98
109
|
search: {
|
|
99
110
|
padding: '5px 5px'
|
|
@@ -150,14 +161,9 @@ export default function ListView(props) {
|
|
|
150
161
|
}
|
|
151
162
|
return 0;
|
|
152
163
|
}
|
|
153
|
-
function getComparator(theOrder, orderedBy
|
|
154
|
-
|
|
155
|
-
) {
|
|
156
|
-
return theOrder === 'desc'
|
|
157
|
-
? (a, b) => descendingComparator(a, b, orderedBy)
|
|
158
|
-
: (a, b) => -descendingComparator(a, b, orderedBy);
|
|
164
|
+
function getComparator(theOrder, orderedBy) {
|
|
165
|
+
return theOrder === 'desc' ? (a, b) => descendingComparator(a, b, orderedBy) : (a, b) => -descendingComparator(a, b, orderedBy);
|
|
159
166
|
}
|
|
160
|
-
// eslint-disable-next-line no-unused-vars
|
|
161
167
|
function stableSort(array, comparator) {
|
|
162
168
|
const stabilizedThis = array.map((el, index) => [el, index]);
|
|
163
169
|
stabilizedThis.sort((a, b) => {
|
|
@@ -178,8 +184,8 @@ export default function ListView(props) {
|
|
|
178
184
|
setPage(0);
|
|
179
185
|
};
|
|
180
186
|
const AssignDashObjects = ['Assign-Worklist', 'Assign-WorkBasket'];
|
|
181
|
-
function getHeaderCells(colFields, fields
|
|
182
|
-
|
|
187
|
+
function getHeaderCells(colFields, fields) {
|
|
188
|
+
return colFields.map((field, index) => {
|
|
183
189
|
let theField = field.config.value.substring(field.config.value.indexOf(' ') + 1);
|
|
184
190
|
if (theField.indexOf('.') === 0) {
|
|
185
191
|
theField = theField.substring(1);
|
|
@@ -187,17 +193,12 @@ export default function ListView(props) {
|
|
|
187
193
|
const colIndex = fields.findIndex(ele => ele.name === theField);
|
|
188
194
|
const displayAsLink = field.config.displayAsLink;
|
|
189
195
|
const headerRow = {};
|
|
190
|
-
headerRow.id =
|
|
196
|
+
headerRow.id = fields[index].id;
|
|
191
197
|
headerRow.type = field.type;
|
|
192
198
|
headerRow.displayAsLink = displayAsLink;
|
|
193
|
-
headerRow.numeric =
|
|
194
|
-
field.type === 'Decimal' ||
|
|
195
|
-
field.type === 'Integer' ||
|
|
196
|
-
field.type === 'Percentage' ||
|
|
197
|
-
field.type === 'Currency' ||
|
|
198
|
-
false;
|
|
199
|
+
headerRow.numeric = field.type === 'Decimal' || field.type === 'Integer' || field.type === 'Percentage' || field.type === 'Currency' || false;
|
|
199
200
|
headerRow.disablePadding = false;
|
|
200
|
-
headerRow.label =
|
|
201
|
+
headerRow.label = fields[index].label;
|
|
201
202
|
if (colIndex > -1) {
|
|
202
203
|
headerRow.classID = fields[colIndex].classID;
|
|
203
204
|
}
|
|
@@ -209,14 +210,6 @@ export default function ListView(props) {
|
|
|
209
210
|
}
|
|
210
211
|
return headerRow;
|
|
211
212
|
});
|
|
212
|
-
return arReturn;
|
|
213
|
-
}
|
|
214
|
-
function updateFields(arFields, theColumns) {
|
|
215
|
-
const arReturn = arFields.filter(ele => ele.type !== 'reference');
|
|
216
|
-
arReturn.forEach((field, index) => {
|
|
217
|
-
arReturn[index].config.name = theColumns[index].id;
|
|
218
|
-
});
|
|
219
|
-
return arReturn;
|
|
220
213
|
}
|
|
221
214
|
function getUsingData(arTableData) {
|
|
222
215
|
if (selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) {
|
|
@@ -226,48 +219,9 @@ export default function ListView(props) {
|
|
|
226
219
|
console.error('pyGUID or pyID values are mandatory to select the required row from the list');
|
|
227
220
|
}
|
|
228
221
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return row;
|
|
232
|
-
});
|
|
233
|
-
return arReturn;
|
|
234
|
-
}
|
|
235
|
-
function updateData(listData, fieldData) {
|
|
236
|
-
const returnList = new Array();
|
|
237
|
-
listData?.forEach(row => {
|
|
238
|
-
// copy
|
|
239
|
-
const rowData = JSON.parse(JSON.stringify(row));
|
|
240
|
-
fieldData.forEach(field => {
|
|
241
|
-
const config = field.config;
|
|
242
|
-
let fieldName;
|
|
243
|
-
let formattedDate;
|
|
244
|
-
let myFormat;
|
|
245
|
-
switch (field.type) {
|
|
246
|
-
case 'Date':
|
|
247
|
-
fieldName = config.name;
|
|
248
|
-
myFormat = config.formatter;
|
|
249
|
-
if (!myFormat) {
|
|
250
|
-
myFormat = 'Date';
|
|
251
|
-
}
|
|
252
|
-
formattedDate = Utils.generateDate(rowData[fieldName], myFormat);
|
|
253
|
-
rowData[fieldName] = formattedDate;
|
|
254
|
-
break;
|
|
255
|
-
case 'DateTime':
|
|
256
|
-
fieldName = config.name;
|
|
257
|
-
myFormat = config.formatter;
|
|
258
|
-
if (!myFormat) {
|
|
259
|
-
myFormat = 'DateTime-Long';
|
|
260
|
-
}
|
|
261
|
-
formattedDate = Utils.generateDateTime(rowData[fieldName], myFormat);
|
|
262
|
-
rowData[fieldName] = formattedDate;
|
|
263
|
-
break;
|
|
264
|
-
default:
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
returnList.push(rowData);
|
|
222
|
+
return arTableData?.map((data) => {
|
|
223
|
+
return data;
|
|
269
224
|
});
|
|
270
|
-
return returnList;
|
|
271
225
|
}
|
|
272
226
|
function getMyColumnList(arCols) {
|
|
273
227
|
const myColList = [];
|
|
@@ -290,34 +244,33 @@ export default function ListView(props) {
|
|
|
290
244
|
// Will be triggered when EVENT_DASHBOARD_FILTER_CHANGE fires
|
|
291
245
|
function processFilterChange(data) {
|
|
292
246
|
const { filterId, filterExpression } = data;
|
|
293
|
-
dashboardFilterPayload = {
|
|
247
|
+
let dashboardFilterPayload = {
|
|
294
248
|
query: {
|
|
295
249
|
filter: {},
|
|
296
250
|
select: []
|
|
297
251
|
}
|
|
298
252
|
};
|
|
299
253
|
filters.current[filterId] = filterExpression;
|
|
300
|
-
|
|
301
|
-
let isDateRange = data.filterExpression?.AND ? true : false;
|
|
254
|
+
let isDateRange = data.filterExpression?.AND;
|
|
302
255
|
// Will be AND by default but making it dynamic in case we support dynamic relational ops in future
|
|
303
256
|
const relationalOp = 'AND';
|
|
304
257
|
let field = getFieldFromFilter(filterExpression, isDateRange);
|
|
305
258
|
selectParam = [];
|
|
306
259
|
// Constructing the select parameters list (will be sent in dashboardFilterPayload)
|
|
307
|
-
columnList.forEach(col => {
|
|
260
|
+
columnList.current.forEach(col => {
|
|
308
261
|
selectParam.push({
|
|
309
262
|
field: col
|
|
310
263
|
});
|
|
311
264
|
});
|
|
312
265
|
// Checking if the triggered filter is applicable for this list
|
|
313
|
-
if (data.filterExpression !== null && !(columnList.length && columnList.includes(field))) {
|
|
266
|
+
if (data.filterExpression !== null && !(columnList.current?.length && columnList.current?.includes(field))) {
|
|
314
267
|
return;
|
|
315
268
|
}
|
|
316
269
|
// This is a flag which will be used to reset dashboardFilterPayload in case we don't find any valid filters
|
|
317
270
|
let validFilter = false;
|
|
318
271
|
let index = 1;
|
|
319
272
|
// Iterating over the current filters list to create filter data which will be POSTed
|
|
320
|
-
for (const filterExp
|
|
273
|
+
for (const filterExp of Object.keys(filters.current)) {
|
|
321
274
|
const filter = filters.current[filterExp];
|
|
322
275
|
// If the filter is null then we can skip this iteration
|
|
323
276
|
if (filter === null) {
|
|
@@ -325,10 +278,9 @@ export default function ListView(props) {
|
|
|
325
278
|
continue;
|
|
326
279
|
}
|
|
327
280
|
// Checking if the filter is of type- Date Range
|
|
328
|
-
|
|
329
|
-
isDateRange = filter?.AND ? true : false;
|
|
281
|
+
isDateRange = filter?.AND;
|
|
330
282
|
field = getFieldFromFilter(filter, isDateRange);
|
|
331
|
-
if (!(columnList.length && columnList.includes(field))) {
|
|
283
|
+
if (!(columnList.current.length && columnList.current.includes(field))) {
|
|
332
284
|
// eslint-disable-next-line no-continue
|
|
333
285
|
continue;
|
|
334
286
|
}
|
|
@@ -336,7 +288,7 @@ export default function ListView(props) {
|
|
|
336
288
|
validFilter = true;
|
|
337
289
|
/** Below are the 2 cases for- Text & Date-Range filter types where we'll construct filter data which will be sent in the dashboardFilterPayload
|
|
338
290
|
* In Constellation DX Components, through Repeating Structures they might be using several APIs to do it. We're doing it here
|
|
339
|
-
|
|
291
|
+
*/
|
|
340
292
|
if (isDateRange) {
|
|
341
293
|
const dateRelationalOp = filter?.AND ? 'AND' : 'OR';
|
|
342
294
|
dashboardFilterPayload.query.filter.filterConditions = {
|
|
@@ -370,37 +322,40 @@ export default function ListView(props) {
|
|
|
370
322
|
if (!validFilter) {
|
|
371
323
|
dashboardFilterPayload = undefined;
|
|
372
324
|
}
|
|
325
|
+
filterPayload.current = dashboardFilterPayload;
|
|
373
326
|
fetchDataFromServer();
|
|
374
327
|
}
|
|
375
328
|
// Will be triggered when EVENT_DASHBOARD_FILTER_CLEAR_ALL fires
|
|
376
329
|
function processFilterClear() {
|
|
377
|
-
|
|
330
|
+
filterPayload.current = undefined;
|
|
378
331
|
fetchDataFromServer();
|
|
379
332
|
}
|
|
380
|
-
useEffect(() => {
|
|
381
|
-
setTimeout(() => {
|
|
382
|
-
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, data => {
|
|
383
|
-
processFilterChange(data);
|
|
384
|
-
}, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
|
|
385
|
-
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL, () => {
|
|
386
|
-
filters.current = {};
|
|
387
|
-
processFilterClear();
|
|
388
|
-
}, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
|
|
389
|
-
}, 0);
|
|
390
|
-
}, []);
|
|
391
333
|
function fetchAllData(fields) {
|
|
392
334
|
let query = null;
|
|
393
335
|
if (payload) {
|
|
394
336
|
query = payload.query;
|
|
395
337
|
}
|
|
396
338
|
else if (fields?.length && meta.isQueryable) {
|
|
397
|
-
|
|
339
|
+
if (filterPayload.current) {
|
|
340
|
+
query = {
|
|
341
|
+
select: fields,
|
|
342
|
+
filter: filterPayload.current?.query?.filter
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
query = { select: fields };
|
|
347
|
+
}
|
|
398
348
|
}
|
|
399
|
-
else if (
|
|
400
|
-
query =
|
|
349
|
+
else if (filterPayload.current) {
|
|
350
|
+
query = filterPayload.current?.query;
|
|
401
351
|
}
|
|
402
352
|
const context = getPConnect().getContextName();
|
|
403
|
-
|
|
353
|
+
// getDataAsync isn't returning correct data for the Page(i.e. ListView within a page) case
|
|
354
|
+
return !bInForm
|
|
355
|
+
? // @ts-ignore - 3rd parameter "context" should be optional in getData method
|
|
356
|
+
PCore.getDataApiUtils().getData(referenceList, payload)
|
|
357
|
+
: // @ts-ignore - Argument of type 'null' is not assignable to parameter of type 'object'
|
|
358
|
+
PCore.getDataPageUtils().getDataAsync(referenceList, context, payload ? payload.dataViewParameters : dataViewParameters, null, query);
|
|
404
359
|
}
|
|
405
360
|
const buildSelect = (fieldDefs, colId, patchQueryFields = [], compositeKeys = []) => {
|
|
406
361
|
const listFields = [];
|
|
@@ -439,10 +394,17 @@ export default function ListView(props) {
|
|
|
439
394
|
};
|
|
440
395
|
const addItemKeyInSelect = (fieldDefs, itemKey, select, compositeKeys) => {
|
|
441
396
|
const elementFound = getField(fieldDefs, itemKey);
|
|
442
|
-
if (itemKey &&
|
|
443
|
-
|
|
397
|
+
if (itemKey &&
|
|
398
|
+
!elementFound &&
|
|
399
|
+
Array.isArray(select) &&
|
|
400
|
+
!(compositeKeys !== null && compositeKeys?.length) &&
|
|
401
|
+
!select.find(sel => sel.field === itemKey)) {
|
|
402
|
+
return [
|
|
403
|
+
...select,
|
|
404
|
+
{
|
|
444
405
|
field: itemKey
|
|
445
|
-
}
|
|
406
|
+
}
|
|
407
|
+
];
|
|
446
408
|
}
|
|
447
409
|
return select;
|
|
448
410
|
};
|
|
@@ -463,12 +425,10 @@ export default function ListView(props) {
|
|
|
463
425
|
let listFields = fieldDefs ? buildSelect(fieldDefs, undefined, patchQueryFields, compositeKeys) : [];
|
|
464
426
|
listFields = addItemKeyInSelect(fieldDefs, itemKey, listFields, compositeKeys);
|
|
465
427
|
const workListJSON = await fetchAllData(listFields);
|
|
466
|
-
// don't update these fields until we return from promise
|
|
467
|
-
let fields = presets[0].children[0].children;
|
|
468
428
|
// this is an unresovled version of this.fields$, need unresolved, so can get the property reference
|
|
469
429
|
const columnFields = componentConfig.presets[0].children[0].children;
|
|
470
|
-
const tableDataResults = workListJSON
|
|
471
|
-
const myColumns = getHeaderCells(columnFields, fieldDefs
|
|
430
|
+
const tableDataResults = !bInForm ? workListJSON.data.data : workListJSON.data;
|
|
431
|
+
const myColumns = getHeaderCells(columnFields, fieldDefs);
|
|
472
432
|
const selectParams = [];
|
|
473
433
|
myColumns.forEach(column => {
|
|
474
434
|
selectParams.push({
|
|
@@ -479,12 +439,11 @@ export default function ListView(props) {
|
|
|
479
439
|
selectParams.forEach(col => {
|
|
480
440
|
colList.push(col.field);
|
|
481
441
|
});
|
|
482
|
-
columnList = colList;
|
|
483
|
-
fields = updateFields(fields, myColumns);
|
|
442
|
+
columnList.current = colList;
|
|
484
443
|
setResponse(tableDataResults);
|
|
485
444
|
const usingDataResults = getUsingData(tableDataResults);
|
|
486
445
|
// store globally, so can be searched, filtered, etc.
|
|
487
|
-
myRows =
|
|
446
|
+
myRows = usingDataResults;
|
|
488
447
|
myDisplayColumnList = getMyColumnList(myColumns);
|
|
489
448
|
// At this point, if we have data ready to render and haven't been asked
|
|
490
449
|
// to NOT call setRows and setColumns, call them
|
|
@@ -505,12 +464,25 @@ export default function ListView(props) {
|
|
|
505
464
|
useEffect(() => {
|
|
506
465
|
if (listContext.meta) {
|
|
507
466
|
fetchDataFromServer();
|
|
467
|
+
setTimeout(() => {
|
|
468
|
+
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, data => {
|
|
469
|
+
processFilterChange(data);
|
|
470
|
+
}, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
|
|
471
|
+
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL, () => {
|
|
472
|
+
filters.current = {};
|
|
473
|
+
processFilterClear();
|
|
474
|
+
}, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
|
|
475
|
+
}, 0);
|
|
476
|
+
return function cleanupSubscriptions() {
|
|
477
|
+
PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, `dashboard-component-${'id'}`, getPConnect().getContextName());
|
|
478
|
+
PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL, `dashboard-component-${'id'}`, getPConnect().getContextName());
|
|
479
|
+
};
|
|
508
480
|
}
|
|
509
481
|
}, [listContext]);
|
|
510
482
|
function searchFilter(value, rows) {
|
|
511
483
|
function filterArray(el) {
|
|
512
484
|
const bReturn = false;
|
|
513
|
-
for (const key
|
|
485
|
+
for (const key of Object.keys(el)) {
|
|
514
486
|
// only search columsn that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
|
|
515
487
|
if (myDisplayColumnList.includes(key)) {
|
|
516
488
|
let myVal = el[key];
|
|
@@ -544,7 +516,7 @@ export default function ListView(props) {
|
|
|
544
516
|
function openAssignment(row) {
|
|
545
517
|
const { pxRefObjectClass, pzInsKey } = row;
|
|
546
518
|
const sTarget = thePConn.getContainerName();
|
|
547
|
-
const options = { containerName: sTarget };
|
|
519
|
+
const options = { containerName: sTarget, channelName: '' };
|
|
548
520
|
thePConn
|
|
549
521
|
.getActionsApi()
|
|
550
522
|
.openAssignment(pzInsKey, pxRefObjectClass, options)
|
|
@@ -555,16 +527,16 @@ export default function ListView(props) {
|
|
|
555
527
|
showToast(`openAssignment failed!`);
|
|
556
528
|
});
|
|
557
529
|
}
|
|
558
|
-
function _rowClick(row) {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
530
|
+
// function _rowClick(row: any) {
|
|
531
|
+
// // eslint-disable-next-line sonarjs/no-small-switch
|
|
532
|
+
// switch (rowClickAction) {
|
|
533
|
+
// case 'openAssignment':
|
|
534
|
+
// openAssignment(row);
|
|
535
|
+
// break;
|
|
536
|
+
// default:
|
|
537
|
+
// break;
|
|
538
|
+
// }
|
|
539
|
+
// }
|
|
568
540
|
function openWork(row) {
|
|
569
541
|
const { pxRefObjectKey } = row;
|
|
570
542
|
const pxRefObjectClass = row.pxRefObjectClass || row.pxObjClass;
|
|
@@ -590,7 +562,7 @@ export default function ListView(props) {
|
|
|
590
562
|
const [filterBy, setFilterBy] = useState();
|
|
591
563
|
const [containsDateOrTime, setContainsDateOrTime] = useState(false);
|
|
592
564
|
const [filterType, setFilterType] = useState('string');
|
|
593
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
565
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
594
566
|
const [displayDialogFilterName, setDisplayDialogFilterName] = useState('');
|
|
595
567
|
const [displayDialogContainsFilter, setDisplayDialogContainsFilter] = useState('contains');
|
|
596
568
|
const [displayDialogContainsValue, setDisplayDialogContainsValue] = useState('');
|
|
@@ -602,9 +574,7 @@ export default function ListView(props) {
|
|
|
602
574
|
for (const filterObj of filterByColumns) {
|
|
603
575
|
if (filterObj.ref === menuColumnId) {
|
|
604
576
|
setFilterBy(menuColumnLabel);
|
|
605
|
-
if (filterObj.type === 'Date' ||
|
|
606
|
-
filterObj.type === 'DateTime' ||
|
|
607
|
-
filterObj.type === 'Time') {
|
|
577
|
+
if (filterObj.type === 'Date' || filterObj.type === 'DateTime' || filterObj.type === 'Time') {
|
|
608
578
|
setContainsDateOrTime(true);
|
|
609
579
|
setFilterType(filterObj.type);
|
|
610
580
|
setDisplayDialogDateFilter(filterObj.containsFilter);
|
|
@@ -648,9 +618,9 @@ export default function ListView(props) {
|
|
|
648
618
|
}
|
|
649
619
|
function _showFilteredIcon(columnId) {
|
|
650
620
|
for (const filterObj of filterByColumns) {
|
|
651
|
-
if (filterObj
|
|
621
|
+
if (filterObj.ref === columnId) {
|
|
652
622
|
// eslint-disable-next-line sonarjs/prefer-single-boolean-return
|
|
653
|
-
if (filterObj
|
|
623
|
+
if (filterObj.containsFilterValue !== '') {
|
|
654
624
|
return true;
|
|
655
625
|
}
|
|
656
626
|
return false;
|
|
@@ -661,15 +631,15 @@ export default function ListView(props) {
|
|
|
661
631
|
function updateFilterWithInfo() {
|
|
662
632
|
let bFound = false;
|
|
663
633
|
for (const filterObj of filterByColumns) {
|
|
664
|
-
if (filterObj
|
|
665
|
-
filterObj
|
|
634
|
+
if (filterObj.ref === menuColumnId) {
|
|
635
|
+
filterObj.type = filterType;
|
|
666
636
|
if (containsDateOrTime) {
|
|
667
|
-
filterObj
|
|
668
|
-
filterObj
|
|
637
|
+
filterObj.containsFilter = displayDialogDateFilter;
|
|
638
|
+
filterObj.containsFilterValue = displayDialogDateValue;
|
|
669
639
|
}
|
|
670
640
|
else {
|
|
671
|
-
filterObj
|
|
672
|
-
filterObj
|
|
641
|
+
filterObj.containsFilter = displayDialogContainsFilter;
|
|
642
|
+
filterObj.containsFilterValue = displayDialogContainsValue;
|
|
673
643
|
}
|
|
674
644
|
bFound = true;
|
|
675
645
|
break;
|
|
@@ -679,14 +649,14 @@ export default function ListView(props) {
|
|
|
679
649
|
// add in
|
|
680
650
|
const filterObj = {};
|
|
681
651
|
filterObj.ref = menuColumnId;
|
|
682
|
-
filterObj
|
|
652
|
+
filterObj.type = filterType;
|
|
683
653
|
if (containsDateOrTime) {
|
|
684
|
-
filterObj
|
|
685
|
-
filterObj
|
|
654
|
+
filterObj.containsFilter = displayDialogDateFilter;
|
|
655
|
+
filterObj.containsFilterValue = displayDialogDateValue;
|
|
686
656
|
}
|
|
687
657
|
else {
|
|
688
|
-
filterObj
|
|
689
|
-
filterObj
|
|
658
|
+
filterObj.containsFilter = displayDialogContainsFilter;
|
|
659
|
+
filterObj.containsFilterValue = displayDialogContainsValue;
|
|
690
660
|
}
|
|
691
661
|
filterByColumns.push(filterObj);
|
|
692
662
|
}
|
|
@@ -750,7 +720,8 @@ export default function ListView(props) {
|
|
|
750
720
|
}
|
|
751
721
|
if (column.isAssignmentLink) {
|
|
752
722
|
thePConn.getActionsApi().openAssignment(pzInsKey, pxObjClass, {
|
|
753
|
-
containerName: 'primary'
|
|
723
|
+
containerName: 'primary',
|
|
724
|
+
channelName: ''
|
|
754
725
|
});
|
|
755
726
|
}
|
|
756
727
|
else {
|
|
@@ -772,7 +743,7 @@ export default function ListView(props) {
|
|
|
772
743
|
}
|
|
773
744
|
function _listTitle() {
|
|
774
745
|
const defaultTitle = 'List';
|
|
775
|
-
let title = resolvedConfigProps.title
|
|
746
|
+
let title = resolvedConfigProps.title || resolvedConfigProps?.label || defaultTitle;
|
|
776
747
|
const inheritedProps = resolvedConfigProps?.inheritedProps;
|
|
777
748
|
// Let any title in resolvedConfigProps that isn't the default take precedence
|
|
778
749
|
// but only look in inheritedProps if they exist
|
|
@@ -799,9 +770,7 @@ export default function ListView(props) {
|
|
|
799
770
|
else {
|
|
800
771
|
reqObj[rowID] = value;
|
|
801
772
|
}
|
|
802
|
-
getPConnect()
|
|
803
|
-
?.getListActions?.()
|
|
804
|
-
?.setSelectedRows([reqObj]);
|
|
773
|
+
getPConnect()?.getListActions?.()?.setSelectedRows([reqObj]);
|
|
805
774
|
setSelectedValue(value);
|
|
806
775
|
};
|
|
807
776
|
const onCheckboxClick = event => {
|
|
@@ -814,119 +783,60 @@ export default function ListView(props) {
|
|
|
814
783
|
compositeKeys.forEach(element => {
|
|
815
784
|
reqObj[element] = selectedRow[element];
|
|
816
785
|
});
|
|
817
|
-
reqObj
|
|
786
|
+
reqObj.$selected = checked;
|
|
818
787
|
}
|
|
819
788
|
else {
|
|
820
789
|
reqObj[rowID] = value;
|
|
821
|
-
reqObj
|
|
790
|
+
reqObj.$selected = checked;
|
|
791
|
+
}
|
|
792
|
+
getPConnect()?.getListActions()?.setSelectedRows([reqObj]);
|
|
793
|
+
};
|
|
794
|
+
const processColumnValue = (column, value) => {
|
|
795
|
+
let val;
|
|
796
|
+
const type = column.type;
|
|
797
|
+
let theDateFormatInfo;
|
|
798
|
+
let theFormat;
|
|
799
|
+
let theCurrencyOptions;
|
|
800
|
+
switch (type) {
|
|
801
|
+
case 'Date':
|
|
802
|
+
case 'DateTime':
|
|
803
|
+
theDateFormatInfo = getDateFormatInfo();
|
|
804
|
+
theFormat = type === 'DateTime' ? `${theDateFormatInfo.dateFormatStringLong} hh:mm a` : theDateFormatInfo.dateFormatStringLong;
|
|
805
|
+
val = format(value, column.type, { format: theFormat });
|
|
806
|
+
break;
|
|
807
|
+
case 'Currency':
|
|
808
|
+
theCurrencyOptions = getCurrencyOptions(PCore?.getEnvironmentInfo()?.getLocale());
|
|
809
|
+
val = format(value, column.type, theCurrencyOptions);
|
|
810
|
+
break;
|
|
811
|
+
default:
|
|
812
|
+
val = column.format && typeof value === 'number' ? column.format(value) : value;
|
|
822
813
|
}
|
|
823
|
-
|
|
824
|
-
?.getListActions()
|
|
825
|
-
?.setSelectedRows([reqObj]);
|
|
814
|
+
return val;
|
|
826
815
|
};
|
|
827
|
-
return (
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
_rowClick(row);
|
|
853
|
-
} }, arColumns.map(column => {
|
|
854
|
-
const value = row[column.id];
|
|
855
|
-
return (React.createElement(TableCell, { key: column.id, align: column.align, className: classes.cell }, _showButton(column.id, row) || column.displayAsLink ? (React.createElement(Link, { component: 'button', onClick: () => {
|
|
856
|
-
_listViewClick(row, column);
|
|
857
|
-
} }, column.format && typeof value === 'number'
|
|
858
|
-
? column.format(value)
|
|
859
|
-
: value)) : (React.createElement(React.Fragment, null, column.format && typeof value === 'number'
|
|
860
|
-
? column.format(value)
|
|
861
|
-
: value))));
|
|
862
|
-
})));
|
|
863
|
-
}))))) : (React.createElement(TableContainer, null,
|
|
864
|
-
React.createElement(Table, null,
|
|
865
|
-
React.createElement(TableHead, null,
|
|
866
|
-
React.createElement(TableRow, null,
|
|
867
|
-
(selectionMode === SELECTION_MODE.SINGLE ||
|
|
868
|
-
selectionMode === SELECTION_MODE.MULTI) && React.createElement(TableCell, null),
|
|
869
|
-
arColumns.map(column => {
|
|
870
|
-
return (React.createElement(TableCell, { className: classes.cell, key: column.id, sortDirection: orderBy === column.id ? order : false },
|
|
871
|
-
React.createElement(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id) },
|
|
872
|
-
column.label,
|
|
873
|
-
orderBy === column.id ? (React.createElement("span", { className: classes.visuallyHidden }, order === 'desc' ? 'sorted descending' : 'sorted ascending')) : null)));
|
|
874
|
-
}))),
|
|
875
|
-
React.createElement(TableBody, null, arRows &&
|
|
876
|
-
arRows.length > 0 &&
|
|
877
|
-
stableSort(arRows, getComparator(order, orderBy))
|
|
878
|
-
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
|
|
879
|
-
.map(row => {
|
|
880
|
-
return (React.createElement(TableRow, { key: row[rowID], onClick: () => {
|
|
881
|
-
_rowClick(row);
|
|
882
|
-
} },
|
|
883
|
-
selectionMode === SELECTION_MODE.SINGLE && (React.createElement(TableCell, null,
|
|
884
|
-
React.createElement(Radio, { onChange: handleChange, value: row[rowID], name: 'radio-buttons', inputProps: { 'aria-label': 'A' }, checked: selectedValue === row[rowID] }))),
|
|
885
|
-
selectionMode === SELECTION_MODE.MULTI && (React.createElement(TableCell, null,
|
|
886
|
-
React.createElement(Checkbox, { onChange: onCheckboxClick, value: row[rowID] }))),
|
|
887
|
-
arColumns.map(column => {
|
|
888
|
-
const value = row[column.id];
|
|
889
|
-
return (React.createElement(TableCell, { className: classes.cell, key: column.id, align: column.align }, column.format && typeof value === 'number'
|
|
890
|
-
? column.format(value)
|
|
891
|
-
: value));
|
|
892
|
-
})));
|
|
893
|
-
}))),
|
|
894
|
-
arRows && arRows.length === 0 && (React.createElement("div", { className: 'no-records' }, "No records found."))))),
|
|
895
|
-
arRows && arRows.length > 0 && (React.createElement(TablePagination, { rowsPerPageOptions: [10, 25, 100], component: 'div', count: arRows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage })))),
|
|
896
|
-
React.createElement(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: _menuClose },
|
|
897
|
-
React.createElement(MenuItem, { onClick: _filterMenu },
|
|
898
|
-
React.createElement(FilterListIcon, null),
|
|
899
|
-
" Filter"),
|
|
900
|
-
React.createElement(MenuItem, { onClick: _groupMenu },
|
|
901
|
-
React.createElement(SubjectIcon, null),
|
|
902
|
-
" Group")),
|
|
903
|
-
React.createElement(Dialog, { open: open, onClose: _closeDialog, "aria-labelledby": 'form-dialog-title' },
|
|
904
|
-
React.createElement(DialogTitle, { id: 'form-dialog-title' },
|
|
905
|
-
"Filter: ",
|
|
906
|
-
filterBy),
|
|
907
|
-
React.createElement(DialogContent, null, containsDateOrTime ? (React.createElement(React.Fragment, null,
|
|
908
|
-
React.createElement(Select, { value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true },
|
|
909
|
-
React.createElement(MenuItem, { value: 'notequal' }, "is not equal to"),
|
|
910
|
-
React.createElement(MenuItem, { value: 'after' }, "after"),
|
|
911
|
-
React.createElement(MenuItem, { value: 'before' }, "before"),
|
|
912
|
-
React.createElement(MenuItem, { value: 'null' }, "is null"),
|
|
913
|
-
React.createElement(MenuItem, { value: 'notnull' }, "is not null")),
|
|
914
|
-
filterType === 'Date' && (React.createElement(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })),
|
|
915
|
-
filterType === 'DateTime' && (React.createElement(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })),
|
|
916
|
-
filterType === 'Time' && (React.createElement(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })))) : (React.createElement(React.Fragment, null,
|
|
917
|
-
React.createElement(Select, { fullWidth: true, onChange: _dialogContainsFilter, value: displayDialogContainsFilter },
|
|
918
|
-
React.createElement(MenuItem, { value: 'contains' }, "Contains"),
|
|
919
|
-
React.createElement(MenuItem, { value: 'equals' }, "Equals"),
|
|
920
|
-
React.createElement(MenuItem, { value: 'startswith' }, "Starts with")),
|
|
921
|
-
React.createElement(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'text', fullWidth: true, value: displayDialogContainsValue, onChange: _dialogContainsValue })))),
|
|
922
|
-
React.createElement(DialogActions, null,
|
|
923
|
-
React.createElement(Button, { onClick: _closeDialog, color: 'secondary' }, "Cancel"),
|
|
924
|
-
React.createElement(Button, { onClick: _submitFilter, color: 'primary' }, "Submit"))),
|
|
925
|
-
React.createElement(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: React.createElement(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose },
|
|
926
|
-
React.createElement(CloseIcon, { fontSize: 'small' })) })));
|
|
816
|
+
return (_jsxs(_Fragment, { children: [arColumns && arColumns.length > 0 && (_jsxs(Paper, { className: classes.paper, children: [_jsx(Typography, { className: classes.title, variant: 'h6', color: 'textPrimary', gutterBottom: true, children: _listTitle() }), globalSearch && (_jsxs(Grid, { container: true, spacing: 1, alignItems: 'flex-end', className: classes.search, children: [_jsx(Grid, { item: true, children: _jsx(SearchIcon, {}) }), _jsx(Grid, { item: true, children: _jsx(TextField, { label: PCore.getLocaleUtils().getLocaleValue('Search', 'Search'), fullWidth: true, variant: 'outlined', placeholder: '', size: 'small', id: 'search', onChange: _onSearch }) })] })), _jsx(_Fragment, { children: !bInForm ? (_jsx(TableContainer, { id: 'list-view', className: classes.tableInForm, children: _jsxs(Table, { stickyHeader: true, "aria-label": 'sticky table', children: [_jsx(TableHead, { children: _jsx(TableRow, { children: arColumns.map(column => {
|
|
817
|
+
return (_jsxs(TableCell, { className: classes.cell, sortDirection: orderBy === column.id ? order : false, children: [_jsxs(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id), children: [column.label, _showFilteredIcon(column.id) && _jsx(FilterListIcon, { className: classes.filteredIcon }), orderBy === column.id ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }), _jsx(MoreIcon, { className: classes.moreIcon, onClick: event => {
|
|
818
|
+
_menuClick(event, column.id, column.type, column.label);
|
|
819
|
+
} })] }, column.id));
|
|
820
|
+
}) }) }), _jsx(TableBody, { children: stableSort(arRows, getComparator(order, orderBy))
|
|
821
|
+
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
|
|
822
|
+
.map(row => {
|
|
823
|
+
return (_jsx(TableRow, { children: arColumns.map(column => {
|
|
824
|
+
const value = row[column.id];
|
|
825
|
+
return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
|
|
826
|
+
_listViewClick(row, column);
|
|
827
|
+
}, children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value })) }, column.id));
|
|
828
|
+
}) }, row.pxRefObjectInsName || row.pyID));
|
|
829
|
+
}) })] }) })) : (_jsxs(TableContainer, { id: 'list-view', children: [_jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [(selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) && _jsx(TableCell, {}), arColumns.map(column => {
|
|
830
|
+
return (_jsx(TableCell, { className: classes.cell, sortDirection: orderBy === column.id ? order : false, children: _jsxs(TableSortLabel, { active: orderBy === column.id, direction: orderBy === column.id ? order : 'asc', onClick: createSortHandler(column.id), children: [column.label, orderBy === column.id ? (_jsx("span", { className: classes.visuallyHidden, children: order === 'desc' ? 'sorted descending' : 'sorted ascending' })) : null] }) }, column.id));
|
|
831
|
+
})] }) }), _jsx(TableBody, { children: arRows &&
|
|
832
|
+
arRows.length > 0 &&
|
|
833
|
+
stableSort(arRows, getComparator(order, orderBy))
|
|
834
|
+
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
|
|
835
|
+
.map(row => {
|
|
836
|
+
return (_jsxs(TableRow, { children: [selectionMode === SELECTION_MODE.SINGLE && (_jsx(TableCell, { children: _jsx(Radio, { onChange: handleChange, value: row[rowID], name: 'radio-buttons', inputProps: { 'aria-label': 'A' }, checked: selectedValue === row[rowID] }) })), selectionMode === SELECTION_MODE.MULTI && (_jsx(TableCell, { children: _jsx(Checkbox, { onChange: onCheckboxClick, checked: selectedValues.some(selectedValue => selectedValue[rowID] === row[rowID]), value: row[rowID] }) })), arColumns.map(column => {
|
|
837
|
+
const value = row[column.id];
|
|
838
|
+
return (_jsx(TableCell, { className: classes.cell, align: column.align, children: processColumnValue(column, value) }, column.id));
|
|
839
|
+
})] }, row[rowID]));
|
|
840
|
+
}) })] }), arRows && arRows.length === 0 && _jsx("div", { className: 'no-records', children: "No records found." })] })) }), arRows && arRows.length > 0 && (_jsx(TablePagination, { id: 'pagination', rowsPerPageOptions: [10, 25, 100], component: 'div', count: arRows.length, rowsPerPage: rowsPerPage, page: page, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage }))] })), _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, { value: displayDialogDateFilter, onChange: _dialogDateFilter, fullWidth: true, children: [_jsx(MenuItem, { value: 'notequal', children: "is not 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, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'date', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'DateTime' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'datetime-local', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue })), filterType === 'Time' && (_jsx(TextField, { autoFocus: true, margin: 'dense', id: 'containsFilter', type: 'time', fullWidth: true, value: displayDialogDateValue, onChange: _dialogDateValue }))] })) : (_jsxs(_Fragment, { children: [_jsxs(Select, { 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, { 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" })] })] }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
|
|
927
841
|
}
|
|
928
|
-
ListView.defaultProps = {};
|
|
929
|
-
ListView.propTypes = {
|
|
930
|
-
getPConnect: PropTypes.func.isRequired
|
|
931
|
-
};
|
|
932
842
|
//# sourceMappingURL=ListView.js.map
|