@pega/react-sdk-components 0.23.26 → 0.23.27
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.d.ts +3 -2
- package/lib/bridge/Context/StoreContext.d.ts.map +1 -1
- package/lib/bridge/Context/StoreContext.js +5 -6
- package/lib/bridge/Context/StoreContext.js.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.d.ts +1 -0
- package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.js +45 -46
- 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 +18 -41
- package/lib/bridge/react_pconnect.js.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts +10 -0
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.d.ts.map +1 -0
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +19 -0
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -0
- package/lib/components/designSystemExtension/AlertBanner/index.d.ts +2 -0
- package/lib/components/designSystemExtension/AlertBanner/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/AlertBanner/index.js +2 -0
- package/lib/components/designSystemExtension/AlertBanner/index.js.map +1 -0
- 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 +7 -19
- 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 +16 -7
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.js +56 -73
- 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 +7 -2
- package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.js +11 -22
- 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 +12 -12
- 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 +14 -29
- package/lib/components/field/Currency/Currency.js.map +1 -1
- package/lib/components/field/Currency/currency-utils.d.ts +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 +26 -14
- 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 +16 -10
- 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 +32 -10
- 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 +115 -11
- 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 +13 -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 +5 -1
- package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
- package/lib/components/field/Percentage/Percentage.js +10 -8
- 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 +12 -10
- 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 +30 -13
- 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 +26 -6
- 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 +15 -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 +14 -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 +6 -6
- package/lib/components/helpers/attachmentHelpers.d.ts.map +1 -1
- package/lib/components/helpers/attachmentHelpers.js +8 -8
- package/lib/components/helpers/attachmentHelpers.js.map +1 -1
- package/lib/components/helpers/case-utils.d.ts +20 -0
- package/lib/components/helpers/case-utils.d.ts.map +1 -0
- package/lib/components/helpers/case-utils.js +82 -0
- package/lib/components/helpers/case-utils.js.map +1 -0
- package/lib/components/helpers/common-utils.d.ts +3 -0
- package/lib/components/helpers/common-utils.d.ts.map +1 -0
- package/lib/components/helpers/common-utils.js +8 -0
- package/lib/components/helpers/common-utils.js.map +1 -0
- 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 +23 -14
- 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 +15 -2
- package/lib/components/helpers/field-group-utils.d.ts.map +1 -1
- package/lib/components/helpers/field-group-utils.js +5 -9
- package/lib/components/helpers/field-group-utils.js.map +1 -1
- package/lib/components/helpers/formatters/Boolean.d.ts +3 -3
- 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 -13
- package/lib/components/helpers/formatters/Currency.js.map +1 -1
- package/lib/components/helpers/formatters/CurrencyMap.d.ts +881 -1399
- 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 +2 -2
- package/lib/components/helpers/formatters/common.d.ts.map +1 -1
- package/lib/components/helpers/formatters/common.js +4 -5
- 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 +19 -19
- package/lib/components/helpers/formatters/index.js.map +1 -1
- package/lib/components/helpers/reactContextHelpers.d.ts +3 -2
- 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 +5 -3
- package/lib/components/helpers/simpleTableHelpers.d.ts.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.js +51 -54
- package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
- package/lib/components/helpers/state-utils.d.ts +4 -0
- package/lib/components/helpers/state-utils.d.ts.map +1 -0
- package/lib/components/helpers/state-utils.js +34 -0
- package/lib/components/helpers/state-utils.js.map +1 -0
- 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 +1 -2
- package/lib/components/helpers/template-utils.js.map +1 -1
- package/lib/components/helpers/utils.d.ts +2 -2
- package/lib/components/helpers/utils.d.ts.map +1 -1
- package/lib/components/helpers/utils.js +11 -10
- package/lib/components/helpers/utils.js.map +1 -1
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
- package/lib/components/helpers/versionHelpers.js +1 -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 +13 -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 -15
- package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
- package/lib/components/infra/Assignment/Assignment.js +67 -70
- 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 +69 -190
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts +12 -12
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.js +46 -45
- 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 +37 -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 +62 -42
- 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 +27 -45
- 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 +21 -27
- 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 +34 -99
- 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 +22 -69
- 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 +46 -88
- 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 +20 -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 +16 -66
- 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 +32 -50
- 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 +10 -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 +38 -65
- package/lib/components/template/CaseView/CaseView.js.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +8 -13
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +24 -20
- 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 +11 -17
- package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -1
- package/lib/components/template/DefaultForm/utils/index.d.ts +3 -0
- package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -0
- package/lib/components/template/DefaultForm/utils/index.js +27 -0
- package/lib/components/template/DefaultForm/utils/index.js.map +1 -0
- 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 +12 -27
- 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 +1 -90
- 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 +166 -257
- 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 -7
- package/lib/components/template/ListView/hooks.js.map +1 -1
- package/lib/components/template/ListView/utils.d.ts +72 -16
- package/lib/components/template/ListView/utils.d.ts.map +1 -1
- package/lib/components/template/ListView/utils.js +163 -33
- 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 +16 -29
- 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 +109 -129
- 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 +18 -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 +75 -4
- 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 +267 -340
- 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 +122 -141
- 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 +11 -10
- 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 +10 -25
- 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 +30 -98
- package/lib/components/widget/ToDo/ToDo.js.map +1 -1
- package/lib/components_map.d.ts +3 -3
- package/lib/components_map.d.ts.map +1 -1
- package/lib/components_map.js +821 -818
- package/lib/components_map.js.map +1 -1
- package/lib/doc/KeyReleaseUpdates.md +66 -9
- 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 -589
- 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 -268
- 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: {
|
|
@@ -150,14 +160,9 @@ export default function ListView(props) {
|
|
|
150
160
|
}
|
|
151
161
|
return 0;
|
|
152
162
|
}
|
|
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);
|
|
163
|
+
function getComparator(theOrder, orderedBy) {
|
|
164
|
+
return theOrder === 'desc' ? (a, b) => descendingComparator(a, b, orderedBy) : (a, b) => -descendingComparator(a, b, orderedBy);
|
|
159
165
|
}
|
|
160
|
-
// eslint-disable-next-line no-unused-vars
|
|
161
166
|
function stableSort(array, comparator) {
|
|
162
167
|
const stabilizedThis = array.map((el, index) => [el, index]);
|
|
163
168
|
stabilizedThis.sort((a, b) => {
|
|
@@ -178,8 +183,8 @@ export default function ListView(props) {
|
|
|
178
183
|
setPage(0);
|
|
179
184
|
};
|
|
180
185
|
const AssignDashObjects = ['Assign-Worklist', 'Assign-WorkBasket'];
|
|
181
|
-
function getHeaderCells(colFields, fields
|
|
182
|
-
|
|
186
|
+
function getHeaderCells(colFields, fields) {
|
|
187
|
+
return colFields.map((field, index) => {
|
|
183
188
|
let theField = field.config.value.substring(field.config.value.indexOf(' ') + 1);
|
|
184
189
|
if (theField.indexOf('.') === 0) {
|
|
185
190
|
theField = theField.substring(1);
|
|
@@ -187,17 +192,12 @@ export default function ListView(props) {
|
|
|
187
192
|
const colIndex = fields.findIndex(ele => ele.name === theField);
|
|
188
193
|
const displayAsLink = field.config.displayAsLink;
|
|
189
194
|
const headerRow = {};
|
|
190
|
-
headerRow.id =
|
|
195
|
+
headerRow.id = fields[index].id;
|
|
191
196
|
headerRow.type = field.type;
|
|
192
197
|
headerRow.displayAsLink = displayAsLink;
|
|
193
|
-
headerRow.numeric =
|
|
194
|
-
field.type === 'Decimal' ||
|
|
195
|
-
field.type === 'Integer' ||
|
|
196
|
-
field.type === 'Percentage' ||
|
|
197
|
-
field.type === 'Currency' ||
|
|
198
|
-
false;
|
|
198
|
+
headerRow.numeric = field.type === 'Decimal' || field.type === 'Integer' || field.type === 'Percentage' || field.type === 'Currency' || false;
|
|
199
199
|
headerRow.disablePadding = false;
|
|
200
|
-
headerRow.label =
|
|
200
|
+
headerRow.label = fields[index].label;
|
|
201
201
|
if (colIndex > -1) {
|
|
202
202
|
headerRow.classID = fields[colIndex].classID;
|
|
203
203
|
}
|
|
@@ -209,14 +209,6 @@ export default function ListView(props) {
|
|
|
209
209
|
}
|
|
210
210
|
return headerRow;
|
|
211
211
|
});
|
|
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
212
|
}
|
|
221
213
|
function getUsingData(arTableData) {
|
|
222
214
|
if (selectionMode === SELECTION_MODE.SINGLE || selectionMode === SELECTION_MODE.MULTI) {
|
|
@@ -226,48 +218,9 @@ export default function ListView(props) {
|
|
|
226
218
|
console.error('pyGUID or pyID values are mandatory to select the required row from the list');
|
|
227
219
|
}
|
|
228
220
|
}
|
|
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);
|
|
221
|
+
return arTableData?.map((data) => {
|
|
222
|
+
return data;
|
|
269
223
|
});
|
|
270
|
-
return returnList;
|
|
271
224
|
}
|
|
272
225
|
function getMyColumnList(arCols) {
|
|
273
226
|
const myColList = [];
|
|
@@ -290,34 +243,33 @@ export default function ListView(props) {
|
|
|
290
243
|
// Will be triggered when EVENT_DASHBOARD_FILTER_CHANGE fires
|
|
291
244
|
function processFilterChange(data) {
|
|
292
245
|
const { filterId, filterExpression } = data;
|
|
293
|
-
dashboardFilterPayload = {
|
|
246
|
+
let dashboardFilterPayload = {
|
|
294
247
|
query: {
|
|
295
248
|
filter: {},
|
|
296
249
|
select: []
|
|
297
250
|
}
|
|
298
251
|
};
|
|
299
252
|
filters.current[filterId] = filterExpression;
|
|
300
|
-
|
|
301
|
-
let isDateRange = data.filterExpression?.AND ? true : false;
|
|
253
|
+
let isDateRange = data.filterExpression?.AND;
|
|
302
254
|
// Will be AND by default but making it dynamic in case we support dynamic relational ops in future
|
|
303
255
|
const relationalOp = 'AND';
|
|
304
256
|
let field = getFieldFromFilter(filterExpression, isDateRange);
|
|
305
257
|
selectParam = [];
|
|
306
258
|
// Constructing the select parameters list (will be sent in dashboardFilterPayload)
|
|
307
|
-
columnList.forEach(col => {
|
|
259
|
+
columnList.current.forEach(col => {
|
|
308
260
|
selectParam.push({
|
|
309
261
|
field: col
|
|
310
262
|
});
|
|
311
263
|
});
|
|
312
264
|
// Checking if the triggered filter is applicable for this list
|
|
313
|
-
if (data.filterExpression !== null && !(columnList.length && columnList.includes(field))) {
|
|
265
|
+
if (data.filterExpression !== null && !(columnList.current?.length && columnList.current?.includes(field))) {
|
|
314
266
|
return;
|
|
315
267
|
}
|
|
316
268
|
// This is a flag which will be used to reset dashboardFilterPayload in case we don't find any valid filters
|
|
317
269
|
let validFilter = false;
|
|
318
270
|
let index = 1;
|
|
319
271
|
// Iterating over the current filters list to create filter data which will be POSTed
|
|
320
|
-
for (const filterExp
|
|
272
|
+
for (const filterExp of Object.keys(filters.current)) {
|
|
321
273
|
const filter = filters.current[filterExp];
|
|
322
274
|
// If the filter is null then we can skip this iteration
|
|
323
275
|
if (filter === null) {
|
|
@@ -325,10 +277,9 @@ export default function ListView(props) {
|
|
|
325
277
|
continue;
|
|
326
278
|
}
|
|
327
279
|
// Checking if the filter is of type- Date Range
|
|
328
|
-
|
|
329
|
-
isDateRange = filter?.AND ? true : false;
|
|
280
|
+
isDateRange = filter?.AND;
|
|
330
281
|
field = getFieldFromFilter(filter, isDateRange);
|
|
331
|
-
if (!(columnList.length && columnList.includes(field))) {
|
|
282
|
+
if (!(columnList.current.length && columnList.current.includes(field))) {
|
|
332
283
|
// eslint-disable-next-line no-continue
|
|
333
284
|
continue;
|
|
334
285
|
}
|
|
@@ -336,7 +287,7 @@ export default function ListView(props) {
|
|
|
336
287
|
validFilter = true;
|
|
337
288
|
/** 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
289
|
* In Constellation DX Components, through Repeating Structures they might be using several APIs to do it. We're doing it here
|
|
339
|
-
|
|
290
|
+
*/
|
|
340
291
|
if (isDateRange) {
|
|
341
292
|
const dateRelationalOp = filter?.AND ? 'AND' : 'OR';
|
|
342
293
|
dashboardFilterPayload.query.filter.filterConditions = {
|
|
@@ -370,37 +321,40 @@ export default function ListView(props) {
|
|
|
370
321
|
if (!validFilter) {
|
|
371
322
|
dashboardFilterPayload = undefined;
|
|
372
323
|
}
|
|
324
|
+
filterPayload.current = dashboardFilterPayload;
|
|
373
325
|
fetchDataFromServer();
|
|
374
326
|
}
|
|
375
327
|
// Will be triggered when EVENT_DASHBOARD_FILTER_CLEAR_ALL fires
|
|
376
328
|
function processFilterClear() {
|
|
377
|
-
|
|
329
|
+
filterPayload.current = undefined;
|
|
378
330
|
fetchDataFromServer();
|
|
379
331
|
}
|
|
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
332
|
function fetchAllData(fields) {
|
|
392
333
|
let query = null;
|
|
393
334
|
if (payload) {
|
|
394
335
|
query = payload.query;
|
|
395
336
|
}
|
|
396
337
|
else if (fields?.length && meta.isQueryable) {
|
|
397
|
-
|
|
338
|
+
if (filterPayload.current) {
|
|
339
|
+
query = {
|
|
340
|
+
select: fields,
|
|
341
|
+
filter: filterPayload.current?.query?.filter
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
query = { select: fields };
|
|
346
|
+
}
|
|
398
347
|
}
|
|
399
|
-
else if (
|
|
400
|
-
query =
|
|
348
|
+
else if (filterPayload.current) {
|
|
349
|
+
query = filterPayload.current?.query;
|
|
401
350
|
}
|
|
402
351
|
const context = getPConnect().getContextName();
|
|
403
|
-
|
|
352
|
+
// getDataAsync isn't returning correct data for the Page(i.e. ListView within a page) case
|
|
353
|
+
return !bInForm
|
|
354
|
+
? // @ts-ignore - 3rd parameter "context" should be optional in getData method
|
|
355
|
+
PCore.getDataApiUtils().getData(referenceList, payload)
|
|
356
|
+
: // @ts-ignore - Argument of type 'null' is not assignable to parameter of type 'object'
|
|
357
|
+
PCore.getDataPageUtils().getDataAsync(referenceList, context, payload ? payload.dataViewParameters : dataViewParameters, null, query);
|
|
404
358
|
}
|
|
405
359
|
const buildSelect = (fieldDefs, colId, patchQueryFields = [], compositeKeys = []) => {
|
|
406
360
|
const listFields = [];
|
|
@@ -439,10 +393,17 @@ export default function ListView(props) {
|
|
|
439
393
|
};
|
|
440
394
|
const addItemKeyInSelect = (fieldDefs, itemKey, select, compositeKeys) => {
|
|
441
395
|
const elementFound = getField(fieldDefs, itemKey);
|
|
442
|
-
if (itemKey &&
|
|
443
|
-
|
|
396
|
+
if (itemKey &&
|
|
397
|
+
!elementFound &&
|
|
398
|
+
Array.isArray(select) &&
|
|
399
|
+
!(compositeKeys !== null && compositeKeys?.length) &&
|
|
400
|
+
!select.find(sel => sel.field === itemKey)) {
|
|
401
|
+
return [
|
|
402
|
+
...select,
|
|
403
|
+
{
|
|
444
404
|
field: itemKey
|
|
445
|
-
}
|
|
405
|
+
}
|
|
406
|
+
];
|
|
446
407
|
}
|
|
447
408
|
return select;
|
|
448
409
|
};
|
|
@@ -463,12 +424,10 @@ export default function ListView(props) {
|
|
|
463
424
|
let listFields = fieldDefs ? buildSelect(fieldDefs, undefined, patchQueryFields, compositeKeys) : [];
|
|
464
425
|
listFields = addItemKeyInSelect(fieldDefs, itemKey, listFields, compositeKeys);
|
|
465
426
|
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
427
|
// this is an unresovled version of this.fields$, need unresolved, so can get the property reference
|
|
469
428
|
const columnFields = componentConfig.presets[0].children[0].children;
|
|
470
|
-
const tableDataResults = workListJSON
|
|
471
|
-
const myColumns = getHeaderCells(columnFields, fieldDefs
|
|
429
|
+
const tableDataResults = !bInForm ? workListJSON.data.data : workListJSON.data;
|
|
430
|
+
const myColumns = getHeaderCells(columnFields, fieldDefs);
|
|
472
431
|
const selectParams = [];
|
|
473
432
|
myColumns.forEach(column => {
|
|
474
433
|
selectParams.push({
|
|
@@ -479,12 +438,11 @@ export default function ListView(props) {
|
|
|
479
438
|
selectParams.forEach(col => {
|
|
480
439
|
colList.push(col.field);
|
|
481
440
|
});
|
|
482
|
-
columnList = colList;
|
|
483
|
-
fields = updateFields(fields, myColumns);
|
|
441
|
+
columnList.current = colList;
|
|
484
442
|
setResponse(tableDataResults);
|
|
485
443
|
const usingDataResults = getUsingData(tableDataResults);
|
|
486
444
|
// store globally, so can be searched, filtered, etc.
|
|
487
|
-
myRows =
|
|
445
|
+
myRows = usingDataResults;
|
|
488
446
|
myDisplayColumnList = getMyColumnList(myColumns);
|
|
489
447
|
// At this point, if we have data ready to render and haven't been asked
|
|
490
448
|
// to NOT call setRows and setColumns, call them
|
|
@@ -505,12 +463,25 @@ export default function ListView(props) {
|
|
|
505
463
|
useEffect(() => {
|
|
506
464
|
if (listContext.meta) {
|
|
507
465
|
fetchDataFromServer();
|
|
466
|
+
setTimeout(() => {
|
|
467
|
+
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, data => {
|
|
468
|
+
processFilterChange(data);
|
|
469
|
+
}, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
|
|
470
|
+
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL, () => {
|
|
471
|
+
filters.current = {};
|
|
472
|
+
processFilterClear();
|
|
473
|
+
}, `dashboard-component-${'id'}`, false, getPConnect().getContextName());
|
|
474
|
+
}, 0);
|
|
475
|
+
return function cleanupSubscriptions() {
|
|
476
|
+
PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CHANGE, `dashboard-component-${'id'}`, getPConnect().getContextName());
|
|
477
|
+
PCore.getPubSubUtils().unsubscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL, `dashboard-component-${'id'}`, getPConnect().getContextName());
|
|
478
|
+
};
|
|
508
479
|
}
|
|
509
480
|
}, [listContext]);
|
|
510
481
|
function searchFilter(value, rows) {
|
|
511
482
|
function filterArray(el) {
|
|
512
483
|
const bReturn = false;
|
|
513
|
-
for (const key
|
|
484
|
+
for (const key of Object.keys(el)) {
|
|
514
485
|
// only search columsn that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
|
|
515
486
|
if (myDisplayColumnList.includes(key)) {
|
|
516
487
|
let myVal = el[key];
|
|
@@ -544,7 +515,7 @@ export default function ListView(props) {
|
|
|
544
515
|
function openAssignment(row) {
|
|
545
516
|
const { pxRefObjectClass, pzInsKey } = row;
|
|
546
517
|
const sTarget = thePConn.getContainerName();
|
|
547
|
-
const options = { containerName: sTarget };
|
|
518
|
+
const options = { containerName: sTarget, channelName: '' };
|
|
548
519
|
thePConn
|
|
549
520
|
.getActionsApi()
|
|
550
521
|
.openAssignment(pzInsKey, pxRefObjectClass, options)
|
|
@@ -555,16 +526,16 @@ export default function ListView(props) {
|
|
|
555
526
|
showToast(`openAssignment failed!`);
|
|
556
527
|
});
|
|
557
528
|
}
|
|
558
|
-
function _rowClick(row) {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
529
|
+
// function _rowClick(row: any) {
|
|
530
|
+
// // eslint-disable-next-line sonarjs/no-small-switch
|
|
531
|
+
// switch (rowClickAction) {
|
|
532
|
+
// case 'openAssignment':
|
|
533
|
+
// openAssignment(row);
|
|
534
|
+
// break;
|
|
535
|
+
// default:
|
|
536
|
+
// break;
|
|
537
|
+
// }
|
|
538
|
+
// }
|
|
568
539
|
function openWork(row) {
|
|
569
540
|
const { pxRefObjectKey } = row;
|
|
570
541
|
const pxRefObjectClass = row.pxRefObjectClass || row.pxObjClass;
|
|
@@ -590,7 +561,7 @@ export default function ListView(props) {
|
|
|
590
561
|
const [filterBy, setFilterBy] = useState();
|
|
591
562
|
const [containsDateOrTime, setContainsDateOrTime] = useState(false);
|
|
592
563
|
const [filterType, setFilterType] = useState('string');
|
|
593
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
564
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
594
565
|
const [displayDialogFilterName, setDisplayDialogFilterName] = useState('');
|
|
595
566
|
const [displayDialogContainsFilter, setDisplayDialogContainsFilter] = useState('contains');
|
|
596
567
|
const [displayDialogContainsValue, setDisplayDialogContainsValue] = useState('');
|
|
@@ -602,9 +573,7 @@ export default function ListView(props) {
|
|
|
602
573
|
for (const filterObj of filterByColumns) {
|
|
603
574
|
if (filterObj.ref === menuColumnId) {
|
|
604
575
|
setFilterBy(menuColumnLabel);
|
|
605
|
-
if (filterObj.type === 'Date' ||
|
|
606
|
-
filterObj.type === 'DateTime' ||
|
|
607
|
-
filterObj.type === 'Time') {
|
|
576
|
+
if (filterObj.type === 'Date' || filterObj.type === 'DateTime' || filterObj.type === 'Time') {
|
|
608
577
|
setContainsDateOrTime(true);
|
|
609
578
|
setFilterType(filterObj.type);
|
|
610
579
|
setDisplayDialogDateFilter(filterObj.containsFilter);
|
|
@@ -648,9 +617,9 @@ export default function ListView(props) {
|
|
|
648
617
|
}
|
|
649
618
|
function _showFilteredIcon(columnId) {
|
|
650
619
|
for (const filterObj of filterByColumns) {
|
|
651
|
-
if (filterObj
|
|
620
|
+
if (filterObj.ref === columnId) {
|
|
652
621
|
// eslint-disable-next-line sonarjs/prefer-single-boolean-return
|
|
653
|
-
if (filterObj
|
|
622
|
+
if (filterObj.containsFilterValue !== '') {
|
|
654
623
|
return true;
|
|
655
624
|
}
|
|
656
625
|
return false;
|
|
@@ -661,15 +630,15 @@ export default function ListView(props) {
|
|
|
661
630
|
function updateFilterWithInfo() {
|
|
662
631
|
let bFound = false;
|
|
663
632
|
for (const filterObj of filterByColumns) {
|
|
664
|
-
if (filterObj
|
|
665
|
-
filterObj
|
|
633
|
+
if (filterObj.ref === menuColumnId) {
|
|
634
|
+
filterObj.type = filterType;
|
|
666
635
|
if (containsDateOrTime) {
|
|
667
|
-
filterObj
|
|
668
|
-
filterObj
|
|
636
|
+
filterObj.containsFilter = displayDialogDateFilter;
|
|
637
|
+
filterObj.containsFilterValue = displayDialogDateValue;
|
|
669
638
|
}
|
|
670
639
|
else {
|
|
671
|
-
filterObj
|
|
672
|
-
filterObj
|
|
640
|
+
filterObj.containsFilter = displayDialogContainsFilter;
|
|
641
|
+
filterObj.containsFilterValue = displayDialogContainsValue;
|
|
673
642
|
}
|
|
674
643
|
bFound = true;
|
|
675
644
|
break;
|
|
@@ -679,14 +648,14 @@ export default function ListView(props) {
|
|
|
679
648
|
// add in
|
|
680
649
|
const filterObj = {};
|
|
681
650
|
filterObj.ref = menuColumnId;
|
|
682
|
-
filterObj
|
|
651
|
+
filterObj.type = filterType;
|
|
683
652
|
if (containsDateOrTime) {
|
|
684
|
-
filterObj
|
|
685
|
-
filterObj
|
|
653
|
+
filterObj.containsFilter = displayDialogDateFilter;
|
|
654
|
+
filterObj.containsFilterValue = displayDialogDateValue;
|
|
686
655
|
}
|
|
687
656
|
else {
|
|
688
|
-
filterObj
|
|
689
|
-
filterObj
|
|
657
|
+
filterObj.containsFilter = displayDialogContainsFilter;
|
|
658
|
+
filterObj.containsFilterValue = displayDialogContainsValue;
|
|
690
659
|
}
|
|
691
660
|
filterByColumns.push(filterObj);
|
|
692
661
|
}
|
|
@@ -750,7 +719,8 @@ export default function ListView(props) {
|
|
|
750
719
|
}
|
|
751
720
|
if (column.isAssignmentLink) {
|
|
752
721
|
thePConn.getActionsApi().openAssignment(pzInsKey, pxObjClass, {
|
|
753
|
-
containerName: 'primary'
|
|
722
|
+
containerName: 'primary',
|
|
723
|
+
channelName: ''
|
|
754
724
|
});
|
|
755
725
|
}
|
|
756
726
|
else {
|
|
@@ -772,7 +742,7 @@ export default function ListView(props) {
|
|
|
772
742
|
}
|
|
773
743
|
function _listTitle() {
|
|
774
744
|
const defaultTitle = 'List';
|
|
775
|
-
let title = resolvedConfigProps.title
|
|
745
|
+
let title = resolvedConfigProps.title || resolvedConfigProps?.label || defaultTitle;
|
|
776
746
|
const inheritedProps = resolvedConfigProps?.inheritedProps;
|
|
777
747
|
// Let any title in resolvedConfigProps that isn't the default take precedence
|
|
778
748
|
// but only look in inheritedProps if they exist
|
|
@@ -799,9 +769,7 @@ export default function ListView(props) {
|
|
|
799
769
|
else {
|
|
800
770
|
reqObj[rowID] = value;
|
|
801
771
|
}
|
|
802
|
-
getPConnect()
|
|
803
|
-
?.getListActions?.()
|
|
804
|
-
?.setSelectedRows([reqObj]);
|
|
772
|
+
getPConnect()?.getListActions?.()?.setSelectedRows([reqObj]);
|
|
805
773
|
setSelectedValue(value);
|
|
806
774
|
};
|
|
807
775
|
const onCheckboxClick = event => {
|
|
@@ -814,119 +782,60 @@ export default function ListView(props) {
|
|
|
814
782
|
compositeKeys.forEach(element => {
|
|
815
783
|
reqObj[element] = selectedRow[element];
|
|
816
784
|
});
|
|
817
|
-
reqObj
|
|
785
|
+
reqObj.$selected = checked;
|
|
818
786
|
}
|
|
819
787
|
else {
|
|
820
788
|
reqObj[rowID] = value;
|
|
821
|
-
reqObj
|
|
789
|
+
reqObj.$selected = checked;
|
|
790
|
+
}
|
|
791
|
+
getPConnect()?.getListActions()?.setSelectedRows([reqObj]);
|
|
792
|
+
};
|
|
793
|
+
const processColumnValue = (column, value) => {
|
|
794
|
+
let val;
|
|
795
|
+
const type = column.type;
|
|
796
|
+
let theDateFormatInfo;
|
|
797
|
+
let theFormat;
|
|
798
|
+
let theCurrencyOptions;
|
|
799
|
+
switch (type) {
|
|
800
|
+
case 'Date':
|
|
801
|
+
case 'DateTime':
|
|
802
|
+
theDateFormatInfo = getDateFormatInfo();
|
|
803
|
+
theFormat = type === 'DateTime' ? `${theDateFormatInfo.dateFormatStringLong} hh:mm a` : theDateFormatInfo.dateFormatStringLong;
|
|
804
|
+
val = format(value, column.type, { format: theFormat });
|
|
805
|
+
break;
|
|
806
|
+
case 'Currency':
|
|
807
|
+
theCurrencyOptions = getCurrencyOptions(PCore?.getEnvironmentInfo()?.getLocale());
|
|
808
|
+
val = format(value, column.type, theCurrencyOptions);
|
|
809
|
+
break;
|
|
810
|
+
default:
|
|
811
|
+
val = column.format && typeof value === 'number' ? column.format(value) : value;
|
|
822
812
|
}
|
|
823
|
-
|
|
824
|
-
?.getListActions()
|
|
825
|
-
?.setSelectedRows([reqObj]);
|
|
813
|
+
return val;
|
|
826
814
|
};
|
|
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' })) })));
|
|
815
|
+
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 => {
|
|
816
|
+
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 => {
|
|
817
|
+
_menuClick(event, column.id, column.type, column.label);
|
|
818
|
+
} })] }, column.id));
|
|
819
|
+
}) }) }), _jsx(TableBody, { children: stableSort(arRows, getComparator(order, orderBy))
|
|
820
|
+
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
|
|
821
|
+
.map(row => {
|
|
822
|
+
return (_jsx(TableRow, { children: arColumns.map(column => {
|
|
823
|
+
const value = row[column.id];
|
|
824
|
+
return (_jsx(TableCell, { align: column.align, className: classes.cell, children: _showButton(column.id, row) || column.displayAsLink ? (_jsx(Link, { component: 'button', onClick: () => {
|
|
825
|
+
_listViewClick(row, column);
|
|
826
|
+
}, children: column.format && typeof value === 'number' ? column.format(value) : value })) : (_jsx(_Fragment, { children: column.format && typeof value === 'number' ? column.format(value) : value })) }, column.id));
|
|
827
|
+
}) }, row.pxRefObjectInsName || row.pyID));
|
|
828
|
+
}) })] }) })) : (_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 => {
|
|
829
|
+
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));
|
|
830
|
+
})] }) }), _jsx(TableBody, { children: arRows &&
|
|
831
|
+
arRows.length > 0 &&
|
|
832
|
+
stableSort(arRows, getComparator(order, orderBy))
|
|
833
|
+
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
|
|
834
|
+
.map(row => {
|
|
835
|
+
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 => {
|
|
836
|
+
const value = row[column.id];
|
|
837
|
+
return (_jsx(TableCell, { className: classes.cell, align: column.align, children: processColumnValue(column, value) }, column.id));
|
|
838
|
+
})] }, row[rowID]));
|
|
839
|
+
}) })] }), 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
840
|
}
|
|
928
|
-
ListView.defaultProps = {};
|
|
929
|
-
ListView.propTypes = {
|
|
930
|
-
getPConnect: PropTypes.func.isRequired
|
|
931
|
-
};
|
|
932
841
|
//# sourceMappingURL=ListView.js.map
|