@pega/react-sdk-components 0.23.12 → 0.23.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -1
- package/lib/bridge/helpers/sdk_component_map.js +0 -91
- package/lib/bridge/helpers/sdk_component_map.js.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts +13 -0
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -0
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +124 -0
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -0
- package/lib/components/designSystemExtension/CaseSummaryFields/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/CaseSummaryFields/index.js.map +1 -0
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.d.ts.map +1 -0
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +106 -0
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -0
- package/lib/components/designSystemExtension/DetailsFields/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/DetailsFields/index.js.map +1 -0
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.d.ts.map +1 -0
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -0
- package/lib/components/designSystemExtension/FieldGroup/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/FieldGroup/index.js.map +1 -0
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.d.ts.map +1 -0
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -0
- package/lib/components/designSystemExtension/FieldGroupList/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/FieldGroupList/index.js.map +1 -0
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.d.ts.map +1 -0
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -0
- package/lib/components/designSystemExtension/FieldValueList/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/FieldValueList/index.js.map +1 -0
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -0
- package/lib/components/designSystemExtension/Operator/Operator.js +155 -0
- package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -0
- package/lib/components/designSystemExtension/Operator/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/Operator/index.js.map +1 -0
- package/lib/components/designSystemExtension/Pulse/Pulse.d.ts.map +1 -0
- package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -0
- package/lib/components/designSystemExtension/Pulse/index.d.ts.map +1 -0
- package/lib/components/designSystemExtension/Pulse/index.js.map +1 -0
- package/lib/components/field/AutoComplete/AutoComplete.d.ts.map +1 -0
- package/lib/components/field/AutoComplete/AutoComplete.js +140 -0
- package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -0
- package/lib/components/field/AutoComplete/index.d.ts.map +1 -0
- package/lib/components/field/AutoComplete/index.js.map +1 -0
- package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -0
- package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -0
- package/lib/components/field/CancelAlert/index.d.ts.map +1 -0
- package/lib/components/field/CancelAlert/index.js.map +1 -0
- package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/field/Checkbox/Checkbox.js +41 -0
- package/lib/components/field/Checkbox/Checkbox.js.map +1 -0
- package/lib/components/field/Checkbox/index.d.ts.map +1 -0
- package/lib/components/field/Checkbox/index.js.map +1 -0
- package/lib/components/field/Currency/Currency.d.ts.map +1 -0
- package/lib/components/field/Currency/Currency.js +46 -0
- package/lib/components/field/Currency/Currency.js.map +1 -0
- package/lib/components/field/Currency/index.d.ts.map +1 -0
- package/lib/components/field/Currency/index.js.map +1 -0
- package/lib/components/field/Date/Date.d.ts.map +1 -0
- package/lib/components/field/Date/Date.js +36 -0
- package/lib/components/field/Date/Date.js.map +1 -0
- package/lib/components/field/Date/index.d.ts.map +1 -0
- package/lib/components/field/Date/index.js.map +1 -0
- package/lib/components/field/DateTime/DateTime.d.ts.map +1 -0
- package/lib/components/field/DateTime/DateTime.js +35 -0
- package/lib/components/field/DateTime/DateTime.js.map +1 -0
- package/lib/components/field/DateTime/index.d.ts.map +1 -0
- package/lib/components/field/DateTime/index.js.map +1 -0
- package/lib/components/field/Decimal/Decimal.d.ts.map +1 -0
- package/lib/components/field/Decimal/Decimal.js +19 -0
- package/lib/components/field/Decimal/Decimal.js.map +1 -0
- package/lib/components/field/Decimal/index.d.ts.map +1 -0
- package/lib/components/field/Decimal/index.js.map +1 -0
- package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/components/field/Dropdown/Dropdown.js +41 -0
- package/lib/components/field/Dropdown/Dropdown.js.map +1 -0
- package/lib/components/field/Dropdown/index.d.ts.map +1 -0
- package/lib/components/field/Dropdown/index.js.map +1 -0
- package/lib/components/field/Email/Email.d.ts.map +1 -0
- package/lib/components/field/Email/Email.js +28 -0
- package/lib/components/field/Email/Email.js.map +1 -0
- package/lib/components/field/Email/index.d.ts.map +1 -0
- package/lib/components/field/Email/index.js.map +1 -0
- package/lib/components/field/Integer/Integer.d.ts.map +1 -0
- package/lib/components/field/Integer/Integer.js +37 -0
- package/lib/components/field/Integer/Integer.js.map +1 -0
- package/lib/components/field/Integer/index.d.ts.map +1 -0
- package/lib/components/field/Integer/index.js.map +1 -0
- package/lib/components/field/Percentage/Percentage.d.ts.map +1 -0
- package/lib/components/field/Percentage/Percentage.js +42 -0
- package/lib/components/field/Percentage/Percentage.js.map +1 -0
- package/lib/components/field/Percentage/index.d.ts.map +1 -0
- package/lib/components/field/Percentage/index.js.map +1 -0
- package/lib/components/field/Phone/Phone.d.ts.map +1 -0
- package/lib/components/field/Phone/Phone.js +36 -0
- package/lib/components/field/Phone/Phone.js.map +1 -0
- package/lib/components/field/Phone/index.d.ts.map +1 -0
- package/lib/components/field/Phone/index.js.map +1 -0
- package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -0
- package/lib/components/field/RadioButtons/RadioButtons.js +40 -0
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -0
- package/lib/components/field/RadioButtons/index.d.ts.map +1 -0
- package/lib/components/field/RadioButtons/index.js.map +1 -0
- package/lib/components/field/SemanticLink/SemanticLink.d.ts.map +1 -0
- package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -0
- package/lib/components/field/SemanticLink/index.d.ts.map +1 -0
- package/lib/components/field/SemanticLink/index.js.map +1 -0
- package/lib/components/field/SemanticLink/utils.d.ts.map +1 -0
- package/lib/components/field/SemanticLink/utils.js.map +1 -0
- package/lib/components/field/TextArea/TextArea.d.ts.map +1 -0
- package/lib/components/field/TextArea/TextArea.js +26 -0
- package/lib/components/field/TextArea/TextArea.js.map +1 -0
- package/lib/components/field/TextArea/index.d.ts.map +1 -0
- package/lib/components/field/TextArea/index.js.map +1 -0
- package/lib/components/field/TextContent/TextContent.d.ts.map +1 -0
- package/lib/components/field/TextContent/TextContent.js.map +1 -0
- package/lib/components/field/TextContent/index.d.ts.map +1 -0
- package/lib/components/field/TextContent/index.js.map +1 -0
- package/lib/components/field/TextInput/TextInput.d.ts.map +1 -0
- package/lib/components/field/TextInput/TextInput.js +24 -0
- package/lib/components/field/TextInput/TextInput.js.map +1 -0
- package/lib/components/field/TextInput/index.d.ts.map +1 -0
- package/lib/components/field/TextInput/index.js.map +1 -0
- package/lib/components/field/Time/Time.d.ts.map +1 -0
- package/lib/components/field/Time/Time.js +34 -0
- package/lib/components/field/Time/Time.js.map +1 -0
- package/lib/components/field/Time/index.d.ts.map +1 -0
- package/lib/components/field/Time/index.js.map +1 -0
- package/lib/components/field/URL/URL.d.ts.map +1 -0
- package/lib/components/field/URL/URL.js +22 -0
- package/lib/components/field/URL/URL.js.map +1 -0
- package/lib/components/field/URL/index.d.ts.map +1 -0
- package/lib/components/field/URL/index.js.map +1 -0
- package/lib/components/field/UserReference/UserReference.d.ts.map +1 -0
- package/lib/components/field/UserReference/UserReference.js.map +1 -0
- package/lib/components/field/UserReference/UserReferenceUtils.d.ts.map +1 -0
- package/lib/components/field/UserReference/UserReferenceUtils.js.map +1 -0
- package/lib/components/field/UserReference/index.d.ts.map +1 -0
- package/lib/components/field/UserReference/index.js.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
- package/lib/components/infra/View/View.js +1 -1
- package/lib/components/infra/View/View.js.map +1 -1
- package/lib/components/template/AppShell/AppShell.d.ts.map +1 -0
- package/lib/components/template/AppShell/AppShell.js.map +1 -0
- package/lib/components/template/AppShell/index.d.ts.map +1 -0
- package/lib/components/template/AppShell/index.js.map +1 -0
- package/lib/components/template/CaseSummary/CaseSummary.d.ts.map +1 -0
- package/lib/components/template/CaseSummary/CaseSummary.js +40 -0
- package/lib/components/template/CaseSummary/CaseSummary.js.map +1 -0
- package/lib/components/template/CaseSummary/index.d.ts.map +1 -0
- package/lib/components/template/CaseSummary/index.js.map +1 -0
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -0
- package/lib/components/template/CaseView/CaseView.js.map +1 -0
- package/lib/components/template/CaseView/index.d.ts.map +1 -0
- package/lib/components/template/CaseView/index.js.map +1 -0
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -0
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -0
- package/lib/components/template/CaseViewActionsMenu/index.d.ts.map +1 -0
- package/lib/components/template/CaseViewActionsMenu/index.js.map +1 -0
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -0
- package/lib/components/template/DataReference/DataReference.js.map +1 -0
- package/lib/components/template/DataReference/index.d.ts.map +1 -0
- package/lib/components/template/DataReference/index.js.map +1 -0
- package/lib/components/template/DefaultForm/DefaultForm.d.ts.map +1 -0
- package/lib/components/template/DefaultForm/DefaultForm.js.map +1 -0
- package/lib/components/template/DefaultForm/index.d.ts.map +1 -0
- package/lib/components/template/DefaultForm/index.js.map +1 -0
- package/lib/components/template/Details/Details/Details.d.ts.map +1 -0
- package/lib/components/template/Details/Details/Details.js +26 -0
- package/lib/components/template/Details/Details/Details.js.map +1 -0
- package/lib/components/template/Details/Details/index.d.ts.map +1 -0
- package/lib/components/template/Details/Details/index.js.map +1 -0
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -0
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -0
- package/lib/components/template/Details/DetailsSubTabs/index.d.ts.map +1 -0
- package/lib/components/template/Details/DetailsSubTabs/index.js.map +1 -0
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -0
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +34 -0
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -0
- package/lib/components/template/Details/DetailsThreeColumn/index.d.ts.map +1 -0
- package/lib/components/template/Details/DetailsThreeColumn/index.js.map +1 -0
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -0
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +32 -0
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -0
- package/lib/components/template/Details/DetailsTwoColumn/index.d.ts.map +1 -0
- package/lib/components/template/Details/DetailsTwoColumn/index.js.map +1 -0
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -0
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +78 -0
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -0
- package/lib/components/template/FieldGroupTemplate/index.d.ts.map +1 -0
- package/lib/components/template/FieldGroupTemplate/index.js.map +1 -0
- package/lib/components/template/InlineDashboard/InlineDashboard.d.ts.map +1 -0
- package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -0
- package/lib/components/template/InlineDashboard/index.d.ts.map +1 -0
- package/lib/components/template/InlineDashboard/index.js.map +1 -0
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -0
- package/lib/components/template/InlineDashboardPage/InlineDashboardPage.js.map +1 -0
- package/lib/components/template/InlineDashboardPage/index.d.ts.map +1 -0
- package/lib/components/template/InlineDashboardPage/index.js.map +1 -0
- package/lib/components/template/ListPage/ListPage.d.ts.map +1 -0
- package/lib/components/template/ListPage/ListPage.js.map +1 -0
- package/lib/components/template/ListPage/index.d.ts.map +1 -0
- package/lib/components/template/ListPage/index.js.map +1 -0
- package/lib/components/template/ListView/ListView.d.ts.map +1 -0
- package/lib/components/template/ListView/ListView.js +868 -0
- package/lib/components/template/ListView/ListView.js.map +1 -0
- package/lib/components/template/ListView/index.d.ts.map +1 -0
- package/lib/components/template/ListView/index.js.map +1 -0
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -0
- package/lib/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -0
- package/lib/components/template/MultiReferenceReadOnly/index.d.ts.map +1 -0
- package/lib/components/template/MultiReferenceReadOnly/index.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWide/NarrowWide.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWide/index.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWide/index.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +35 -0
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideDetails/index.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideDetails/index.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideForm/index.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWideForm/index.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWidePage/index.d.ts.map +1 -0
- package/lib/components/template/NarrowWide/NarrowWidePage/index.js.map +1 -0
- package/lib/components/template/OneColumn/OneColumn/OneColumn.d.ts.map +1 -0
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -0
- package/lib/components/template/OneColumn/OneColumn/index.d.ts.map +1 -0
- package/lib/components/template/OneColumn/OneColumn/index.js.map +1 -0
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -0
- package/lib/components/template/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -0
- package/lib/components/template/OneColumn/OneColumnPage/index.d.ts.map +1 -0
- package/lib/components/template/OneColumn/OneColumnPage/index.js.map +1 -0
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -0
- package/lib/components/template/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -0
- package/lib/components/template/OneColumn/OneColumnTab/index.d.ts.map +1 -0
- package/lib/components/template/OneColumn/OneColumnTab/index.js.map +1 -0
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts +18 -0
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -0
- package/lib/components/template/PromotedFilters/PromotedFilters.js +131 -0
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -0
- package/lib/components/template/PromotedFilters/index.d.ts.map +1 -0
- package/lib/components/template/PromotedFilters/index.js.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +26 -0
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTable/index.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTable/index.js.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableManual/index.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableManual/index.js.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +105 -0
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableSelect/index.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/SimpleTableSelect/index.js.map +1 -0
- package/lib/components/template/SimpleTable/simpleTableHelpers.d.ts.map +1 -0
- package/lib/components/template/SimpleTable/simpleTableHelpers.js.map +1 -0
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -0
- package/lib/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -0
- package/lib/components/template/SingleReferenceReadOnly/index.d.ts.map +1 -0
- package/lib/components/template/SingleReferenceReadOnly/index.js.map +1 -0
- package/lib/components/template/SubTabs/SubTabs.d.ts.map +1 -0
- package/lib/components/template/SubTabs/SubTabs.js.map +1 -0
- package/lib/components/template/SubTabs/index.d.ts.map +1 -0
- package/lib/components/template/SubTabs/index.js.map +1 -0
- package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -0
- package/lib/components/template/SubTabs/tabUtils.js.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumn/index.d.ts.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumn/index.js.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnPage/index.d.ts.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnPage/index.js.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnTab/index.d.ts.map +1 -0
- package/lib/components/template/TwoColumn/TwoColumnTab/index.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrow/WideNarrow.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrow/index.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrow/index.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +35 -0
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowDetails/index.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowDetails/index.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowForm/index.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowForm/index.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowPage/index.d.ts.map +1 -0
- package/lib/components/template/WideNarrow/WideNarrowPage/index.js.map +1 -0
- package/lib/components/template/utils.d.ts.map +1 -0
- package/lib/components/template/utils.js +22 -0
- package/lib/components/template/utils.js.map +1 -0
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.d.ts.map +1 -0
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -0
- package/lib/components/widget/AppAnnouncement/index.d.ts.map +1 -0
- package/lib/components/widget/AppAnnouncement/index.js.map +1 -0
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -0
- package/lib/components/widget/Attachment/Attachment.js +370 -0
- package/lib/components/widget/Attachment/Attachment.js.map +1 -0
- package/lib/components/widget/Attachment/index.d.ts.map +1 -0
- package/lib/components/widget/Attachment/index.js.map +1 -0
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -0
- package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -0
- package/lib/components/widget/CaseHistory/index.d.ts.map +1 -0
- package/lib/components/widget/CaseHistory/index.js.map +1 -0
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +1 -0
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -0
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/index.d.ts.map +1 -0
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/index.js.map +1 -0
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -0
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -0
- package/lib/components/widget/FileUtility/FileUtility/index.d.ts.map +1 -0
- package/lib/components/widget/FileUtility/FileUtility/index.js.map +1 -0
- package/lib/components/widget/Followers/Followers.d.ts.map +1 -0
- package/lib/components/widget/Followers/Followers.js.map +1 -0
- package/lib/components/widget/Followers/index.d.ts.map +1 -0
- package/lib/components/widget/Followers/index.js.map +1 -0
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -0
- package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -0
- package/lib/components/widget/SummaryItem/index.d.ts.map +1 -0
- package/lib/components/widget/SummaryItem/index.js.map +1 -0
- package/lib/components/widget/SummaryList/SummaryList.d.ts.map +1 -0
- package/lib/components/widget/SummaryList/SummaryList.js.map +1 -0
- package/lib/components/widget/SummaryList/index.d.ts.map +1 -0
- package/lib/components/widget/SummaryList/index.js.map +1 -0
- package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -0
- package/lib/components/widget/ToDo/ToDo.js.map +1 -0
- package/lib/components/widget/ToDo/index.d.ts.map +1 -0
- package/lib/components/widget/ToDo/index.js.map +1 -0
- package/lib/components_map.js +61 -61
- package/lib/components_map.js.map +1 -1
- package/lib/sdk-pega-component-map.d.ts +84 -84
- package/lib/sdk-pega-component-map.js +84 -84
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts +0 -13
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js +0 -102
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js.map +0 -1
- package/lib/components/designSystemExtensions/CaseSummaryFields/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/CaseSummaryFields/index.js.map +0 -1
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js +0 -106
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js.map +0 -1
- package/lib/components/designSystemExtensions/DetailsFields/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/DetailsFields/index.js.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.js.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroup/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroup/index.js.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.js.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroupList/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/FieldGroupList/index.js.map +0 -1
- package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.js.map +0 -1
- package/lib/components/designSystemExtensions/FieldValueList/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/FieldValueList/index.js.map +0 -1
- package/lib/components/designSystemExtensions/Operator/Operator.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/Operator/Operator.js +0 -154
- package/lib/components/designSystemExtensions/Operator/Operator.js.map +0 -1
- package/lib/components/designSystemExtensions/Operator/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/Operator/index.js.map +0 -1
- package/lib/components/designSystemExtensions/Pulse/Pulse.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/Pulse/Pulse.js.map +0 -1
- package/lib/components/designSystemExtensions/Pulse/index.d.ts.map +0 -1
- package/lib/components/designSystemExtensions/Pulse/index.js.map +0 -1
- package/lib/components/forms/AutoComplete/AutoComplete.d.ts.map +0 -1
- package/lib/components/forms/AutoComplete/AutoComplete.js +0 -133
- package/lib/components/forms/AutoComplete/AutoComplete.js.map +0 -1
- package/lib/components/forms/AutoComplete/index.d.ts.map +0 -1
- package/lib/components/forms/AutoComplete/index.js.map +0 -1
- package/lib/components/forms/CancelAlert/CancelAlert.d.ts.map +0 -1
- package/lib/components/forms/CancelAlert/CancelAlert.js.map +0 -1
- package/lib/components/forms/CancelAlert/index.d.ts.map +0 -1
- package/lib/components/forms/CancelAlert/index.js.map +0 -1
- package/lib/components/forms/Checkbox/Checkbox.d.ts.map +0 -1
- package/lib/components/forms/Checkbox/Checkbox.js +0 -34
- package/lib/components/forms/Checkbox/Checkbox.js.map +0 -1
- package/lib/components/forms/Checkbox/index.d.ts.map +0 -1
- package/lib/components/forms/Checkbox/index.js.map +0 -1
- package/lib/components/forms/Currency/Currency.d.ts.map +0 -1
- package/lib/components/forms/Currency/Currency.js +0 -46
- package/lib/components/forms/Currency/Currency.js.map +0 -1
- package/lib/components/forms/Currency/index.d.ts.map +0 -1
- package/lib/components/forms/Currency/index.js.map +0 -1
- package/lib/components/forms/Date/Date.d.ts.map +0 -1
- package/lib/components/forms/Date/Date.js +0 -36
- package/lib/components/forms/Date/Date.js.map +0 -1
- package/lib/components/forms/Date/index.d.ts.map +0 -1
- package/lib/components/forms/Date/index.js.map +0 -1
- package/lib/components/forms/DateTime/DateTime.d.ts.map +0 -1
- package/lib/components/forms/DateTime/DateTime.js +0 -35
- package/lib/components/forms/DateTime/DateTime.js.map +0 -1
- package/lib/components/forms/DateTime/index.d.ts.map +0 -1
- package/lib/components/forms/DateTime/index.js.map +0 -1
- package/lib/components/forms/Decimal/Decimal.d.ts.map +0 -1
- package/lib/components/forms/Decimal/Decimal.js +0 -19
- package/lib/components/forms/Decimal/Decimal.js.map +0 -1
- package/lib/components/forms/Decimal/index.d.ts.map +0 -1
- package/lib/components/forms/Decimal/index.js.map +0 -1
- package/lib/components/forms/Dropdown/Dropdown.d.ts.map +0 -1
- package/lib/components/forms/Dropdown/Dropdown.js +0 -34
- package/lib/components/forms/Dropdown/Dropdown.js.map +0 -1
- package/lib/components/forms/Dropdown/index.d.ts.map +0 -1
- package/lib/components/forms/Dropdown/index.js.map +0 -1
- package/lib/components/forms/Email/Email.d.ts.map +0 -1
- package/lib/components/forms/Email/Email.js +0 -28
- package/lib/components/forms/Email/Email.js.map +0 -1
- package/lib/components/forms/Email/index.d.ts.map +0 -1
- package/lib/components/forms/Email/index.js.map +0 -1
- package/lib/components/forms/Integer/Integer.d.ts.map +0 -1
- package/lib/components/forms/Integer/Integer.js +0 -37
- package/lib/components/forms/Integer/Integer.js.map +0 -1
- package/lib/components/forms/Integer/index.d.ts.map +0 -1
- package/lib/components/forms/Integer/index.js.map +0 -1
- package/lib/components/forms/Percentage/Percentage.d.ts.map +0 -1
- package/lib/components/forms/Percentage/Percentage.js +0 -42
- package/lib/components/forms/Percentage/Percentage.js.map +0 -1
- package/lib/components/forms/Percentage/index.d.ts.map +0 -1
- package/lib/components/forms/Percentage/index.js.map +0 -1
- package/lib/components/forms/Phone/Phone.d.ts.map +0 -1
- package/lib/components/forms/Phone/Phone.js +0 -36
- package/lib/components/forms/Phone/Phone.js.map +0 -1
- package/lib/components/forms/Phone/index.d.ts.map +0 -1
- package/lib/components/forms/Phone/index.js.map +0 -1
- package/lib/components/forms/RadioButtons/RadioButtons.d.ts.map +0 -1
- package/lib/components/forms/RadioButtons/RadioButtons.js +0 -33
- package/lib/components/forms/RadioButtons/RadioButtons.js.map +0 -1
- package/lib/components/forms/RadioButtons/index.d.ts.map +0 -1
- package/lib/components/forms/RadioButtons/index.js.map +0 -1
- package/lib/components/forms/SemanticLink/SemanticLink.d.ts.map +0 -1
- package/lib/components/forms/SemanticLink/SemanticLink.js.map +0 -1
- package/lib/components/forms/SemanticLink/index.d.ts.map +0 -1
- package/lib/components/forms/SemanticLink/index.js.map +0 -1
- package/lib/components/forms/SemanticLink/utils.d.ts.map +0 -1
- package/lib/components/forms/SemanticLink/utils.js.map +0 -1
- package/lib/components/forms/TextArea/TextArea.d.ts.map +0 -1
- package/lib/components/forms/TextArea/TextArea.js +0 -26
- package/lib/components/forms/TextArea/TextArea.js.map +0 -1
- package/lib/components/forms/TextArea/index.d.ts.map +0 -1
- package/lib/components/forms/TextArea/index.js.map +0 -1
- package/lib/components/forms/TextContent/TextContent.d.ts.map +0 -1
- package/lib/components/forms/TextContent/TextContent.js.map +0 -1
- package/lib/components/forms/TextContent/index.d.ts.map +0 -1
- package/lib/components/forms/TextContent/index.js.map +0 -1
- package/lib/components/forms/TextInput/TextInput.d.ts.map +0 -1
- package/lib/components/forms/TextInput/TextInput.js +0 -24
- package/lib/components/forms/TextInput/TextInput.js.map +0 -1
- package/lib/components/forms/TextInput/index.d.ts.map +0 -1
- package/lib/components/forms/TextInput/index.js.map +0 -1
- package/lib/components/forms/Time/Time.d.ts.map +0 -1
- package/lib/components/forms/Time/Time.js +0 -34
- package/lib/components/forms/Time/Time.js.map +0 -1
- package/lib/components/forms/Time/index.d.ts.map +0 -1
- package/lib/components/forms/Time/index.js.map +0 -1
- package/lib/components/forms/URL/URL.d.ts.map +0 -1
- package/lib/components/forms/URL/URL.js +0 -22
- package/lib/components/forms/URL/URL.js.map +0 -1
- package/lib/components/forms/URL/index.d.ts.map +0 -1
- package/lib/components/forms/URL/index.js.map +0 -1
- package/lib/components/forms/UserReference/UserReference.d.ts.map +0 -1
- package/lib/components/forms/UserReference/UserReference.js.map +0 -1
- package/lib/components/forms/UserReference/UserReferenceUtils.d.ts.map +0 -1
- package/lib/components/forms/UserReference/UserReferenceUtils.js.map +0 -1
- package/lib/components/forms/UserReference/index.d.ts.map +0 -1
- package/lib/components/forms/UserReference/index.js.map +0 -1
- package/lib/components/templates/AppShell/AppShell.d.ts.map +0 -1
- package/lib/components/templates/AppShell/AppShell.js.map +0 -1
- package/lib/components/templates/AppShell/index.d.ts.map +0 -1
- package/lib/components/templates/AppShell/index.js.map +0 -1
- package/lib/components/templates/CaseSummary/CaseSummary.d.ts.map +0 -1
- package/lib/components/templates/CaseSummary/CaseSummary.js +0 -40
- package/lib/components/templates/CaseSummary/CaseSummary.js.map +0 -1
- package/lib/components/templates/CaseSummary/index.d.ts.map +0 -1
- package/lib/components/templates/CaseSummary/index.js.map +0 -1
- package/lib/components/templates/CaseView/CaseView.d.ts.map +0 -1
- package/lib/components/templates/CaseView/CaseView.js.map +0 -1
- package/lib/components/templates/CaseView/index.d.ts.map +0 -1
- package/lib/components/templates/CaseView/index.js.map +0 -1
- package/lib/components/templates/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +0 -1
- package/lib/components/templates/CaseViewActionsMenu/CaseViewActionsMenu.js.map +0 -1
- package/lib/components/templates/CaseViewActionsMenu/index.d.ts.map +0 -1
- package/lib/components/templates/CaseViewActionsMenu/index.js.map +0 -1
- package/lib/components/templates/DataReference/DataReference.d.ts.map +0 -1
- package/lib/components/templates/DataReference/DataReference.js.map +0 -1
- package/lib/components/templates/DataReference/index.d.ts.map +0 -1
- package/lib/components/templates/DataReference/index.js.map +0 -1
- package/lib/components/templates/DefaultForm/DefaultForm.d.ts.map +0 -1
- package/lib/components/templates/DefaultForm/DefaultForm.js.map +0 -1
- package/lib/components/templates/DefaultForm/index.d.ts.map +0 -1
- package/lib/components/templates/DefaultForm/index.js.map +0 -1
- package/lib/components/templates/Details/Details/Details.d.ts.map +0 -1
- package/lib/components/templates/Details/Details/Details.js +0 -26
- package/lib/components/templates/Details/Details/Details.js.map +0 -1
- package/lib/components/templates/Details/Details/index.d.ts.map +0 -1
- package/lib/components/templates/Details/Details/index.js.map +0 -1
- package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +0 -1
- package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.js.map +0 -1
- package/lib/components/templates/Details/DetailsSubTabs/index.d.ts.map +0 -1
- package/lib/components/templates/Details/DetailsSubTabs/index.js.map +0 -1
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +0 -1
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js +0 -34
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +0 -1
- package/lib/components/templates/Details/DetailsThreeColumn/index.d.ts.map +0 -1
- package/lib/components/templates/Details/DetailsThreeColumn/index.js.map +0 -1
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +0 -1
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js +0 -32
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +0 -1
- package/lib/components/templates/Details/DetailsTwoColumn/index.d.ts.map +0 -1
- package/lib/components/templates/Details/DetailsTwoColumn/index.js.map +0 -1
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +0 -1
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js +0 -78
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js.map +0 -1
- package/lib/components/templates/FieldGroupTemplate/index.d.ts.map +0 -1
- package/lib/components/templates/FieldGroupTemplate/index.js.map +0 -1
- package/lib/components/templates/InlineDashboard/InlineDashboard.d.ts.map +0 -1
- package/lib/components/templates/InlineDashboard/InlineDashboard.js.map +0 -1
- package/lib/components/templates/InlineDashboard/index.d.ts.map +0 -1
- package/lib/components/templates/InlineDashboard/index.js.map +0 -1
- package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.d.ts.map +0 -1
- package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.js.map +0 -1
- package/lib/components/templates/InlineDashboardPage/index.d.ts.map +0 -1
- package/lib/components/templates/InlineDashboardPage/index.js.map +0 -1
- package/lib/components/templates/ListPage/ListPage.d.ts.map +0 -1
- package/lib/components/templates/ListPage/ListPage.js.map +0 -1
- package/lib/components/templates/ListPage/index.d.ts.map +0 -1
- package/lib/components/templates/ListPage/index.js.map +0 -1
- package/lib/components/templates/ListView/ListView.d.ts.map +0 -1
- package/lib/components/templates/ListView/ListView.js +0 -842
- package/lib/components/templates/ListView/ListView.js.map +0 -1
- package/lib/components/templates/ListView/index.d.ts.map +0 -1
- package/lib/components/templates/ListView/index.js.map +0 -1
- package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +0 -1
- package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +0 -1
- package/lib/components/templates/MultiReferenceReadOnly/index.d.ts.map +0 -1
- package/lib/components/templates/MultiReferenceReadOnly/index.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWide/index.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWide/index.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +0 -35
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideDetails/index.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideDetails/index.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideForm/index.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWideForm/index.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWidePage/index.d.ts.map +0 -1
- package/lib/components/templates/NarrowWide/NarrowWidePage/index.js.map +0 -1
- package/lib/components/templates/OneColumn/OneColumn/OneColumn.d.ts.map +0 -1
- package/lib/components/templates/OneColumn/OneColumn/OneColumn.js.map +0 -1
- package/lib/components/templates/OneColumn/OneColumn/index.d.ts.map +0 -1
- package/lib/components/templates/OneColumn/OneColumn/index.js.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.js.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnPage/index.d.ts.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnPage/index.js.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.js.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnTab/index.d.ts.map +0 -1
- package/lib/components/templates/OneColumn/OneColumnTab/index.js.map +0 -1
- package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts +0 -17
- package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts.map +0 -1
- package/lib/components/templates/PromotedFilters/PromotedFilters.js +0 -130
- package/lib/components/templates/PromotedFilters/PromotedFilters.js.map +0 -1
- package/lib/components/templates/PromotedFilters/index.d.ts.map +0 -1
- package/lib/components/templates/PromotedFilters/index.js.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js +0 -26
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTable/index.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTable/index.js.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableManual/index.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableManual/index.js.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +0 -105
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableSelect/index.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/SimpleTableSelect/index.js.map +0 -1
- package/lib/components/templates/SimpleTable/simpleTableHelpers.d.ts.map +0 -1
- package/lib/components/templates/SimpleTable/simpleTableHelpers.js.map +0 -1
- package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +0 -1
- package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +0 -1
- package/lib/components/templates/SingleReferenceReadOnly/index.d.ts.map +0 -1
- package/lib/components/templates/SingleReferenceReadOnly/index.js.map +0 -1
- package/lib/components/templates/SubTabs/SubTabs.d.ts.map +0 -1
- package/lib/components/templates/SubTabs/SubTabs.js.map +0 -1
- package/lib/components/templates/SubTabs/index.d.ts.map +0 -1
- package/lib/components/templates/SubTabs/index.js.map +0 -1
- package/lib/components/templates/SubTabs/tabUtils.d.ts.map +0 -1
- package/lib/components/templates/SubTabs/tabUtils.js.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.d.ts.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.js.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumn/index.d.ts.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumn/index.js.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnPage/index.d.ts.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnPage/index.js.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnTab/index.d.ts.map +0 -1
- package/lib/components/templates/TwoColumn/TwoColumnTab/index.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrow/index.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrow/index.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +0 -35
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowDetails/index.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowDetails/index.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowForm/index.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowForm/index.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowPage/index.d.ts.map +0 -1
- package/lib/components/templates/WideNarrow/WideNarrowPage/index.js.map +0 -1
- package/lib/components/templates/utils.d.ts.map +0 -1
- package/lib/components/templates/utils.js +0 -22
- package/lib/components/templates/utils.js.map +0 -1
- package/lib/components/widgets/AppAnnouncement/AppAnnouncement.d.ts.map +0 -1
- package/lib/components/widgets/AppAnnouncement/AppAnnouncement.js.map +0 -1
- package/lib/components/widgets/AppAnnouncement/index.d.ts.map +0 -1
- package/lib/components/widgets/AppAnnouncement/index.js.map +0 -1
- package/lib/components/widgets/Attachment/Attachment.d.ts.map +0 -1
- package/lib/components/widgets/Attachment/Attachment.js +0 -370
- package/lib/components/widgets/Attachment/Attachment.js.map +0 -1
- package/lib/components/widgets/Attachment/index.d.ts.map +0 -1
- package/lib/components/widgets/Attachment/index.js.map +0 -1
- package/lib/components/widgets/CaseHistory/CaseHistory.d.ts.map +0 -1
- package/lib/components/widgets/CaseHistory/CaseHistory.js.map +0 -1
- package/lib/components/widgets/CaseHistory/index.d.ts.map +0 -1
- package/lib/components/widgets/CaseHistory/index.js.map +0 -1
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map +0 -1
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +0 -1
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/index.d.ts.map +0 -1
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil/index.js.map +0 -1
- package/lib/components/widgets/FileUtility/FileUtility/FileUtility.d.ts.map +0 -1
- package/lib/components/widgets/FileUtility/FileUtility/FileUtility.js.map +0 -1
- package/lib/components/widgets/FileUtility/FileUtility/index.d.ts.map +0 -1
- package/lib/components/widgets/FileUtility/FileUtility/index.js.map +0 -1
- package/lib/components/widgets/Followers/Followers.d.ts.map +0 -1
- package/lib/components/widgets/Followers/Followers.js.map +0 -1
- package/lib/components/widgets/Followers/index.d.ts.map +0 -1
- package/lib/components/widgets/Followers/index.js.map +0 -1
- package/lib/components/widgets/SummaryItem/SummaryItem.d.ts.map +0 -1
- package/lib/components/widgets/SummaryItem/SummaryItem.js.map +0 -1
- package/lib/components/widgets/SummaryItem/index.d.ts.map +0 -1
- package/lib/components/widgets/SummaryItem/index.js.map +0 -1
- package/lib/components/widgets/SummaryList/SummaryList.d.ts.map +0 -1
- package/lib/components/widgets/SummaryList/SummaryList.js.map +0 -1
- package/lib/components/widgets/SummaryList/index.d.ts.map +0 -1
- package/lib/components/widgets/SummaryList/index.js.map +0 -1
- package/lib/components/widgets/ToDo/ToDo.d.ts.map +0 -1
- package/lib/components/widgets/ToDo/ToDo.js.map +0 -1
- package/lib/components/widgets/ToDo/index.d.ts.map +0 -1
- package/lib/components/widgets/ToDo/index.js.map +0 -1
- /package/lib/components/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/CaseSummaryFields.css +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/CaseSummaryFields/index.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/DetailsFields/DetailsFields.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/DetailsFields/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/DetailsFields/index.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/FieldGroup.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/FieldGroup.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroup/index.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/FieldGroupList.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldGroupList/index.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/FieldValueList.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/FieldValueList/index.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Operator/Operator.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Operator/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Operator/index.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/Pulse.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/Pulse.js +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/index.d.ts +0 -0
- /package/lib/components/{designSystemExtensions → designSystemExtension}/Pulse/index.js +0 -0
- /package/lib/components/{forms → field}/AutoComplete/AutoComplete.d.ts +0 -0
- /package/lib/components/{forms → field}/AutoComplete/index.d.ts +0 -0
- /package/lib/components/{forms → field}/AutoComplete/index.js +0 -0
- /package/lib/components/{forms → field}/CancelAlert/CancelAlert.css +0 -0
- /package/lib/components/{forms → field}/CancelAlert/CancelAlert.d.ts +0 -0
- /package/lib/components/{forms → field}/CancelAlert/CancelAlert.js +0 -0
- /package/lib/components/{forms → field}/CancelAlert/index.d.ts +0 -0
- /package/lib/components/{forms → field}/CancelAlert/index.js +0 -0
- /package/lib/components/{forms → field}/Checkbox/Checkbox.d.ts +0 -0
- /package/lib/components/{forms → field}/Checkbox/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Checkbox/index.js +0 -0
- /package/lib/components/{forms → field}/Currency/Currency.d.ts +0 -0
- /package/lib/components/{forms → field}/Currency/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Currency/index.js +0 -0
- /package/lib/components/{forms → field}/Date/Date.d.ts +0 -0
- /package/lib/components/{forms → field}/Date/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Date/index.js +0 -0
- /package/lib/components/{forms → field}/DateTime/DateTime.d.ts +0 -0
- /package/lib/components/{forms → field}/DateTime/index.d.ts +0 -0
- /package/lib/components/{forms → field}/DateTime/index.js +0 -0
- /package/lib/components/{forms → field}/Decimal/Decimal.d.ts +0 -0
- /package/lib/components/{forms → field}/Decimal/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Decimal/index.js +0 -0
- /package/lib/components/{forms → field}/Dropdown/Dropdown.d.ts +0 -0
- /package/lib/components/{forms → field}/Dropdown/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Dropdown/index.js +0 -0
- /package/lib/components/{forms → field}/Email/Email.d.ts +0 -0
- /package/lib/components/{forms → field}/Email/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Email/index.js +0 -0
- /package/lib/components/{forms → field}/Integer/Integer.d.ts +0 -0
- /package/lib/components/{forms → field}/Integer/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Integer/index.js +0 -0
- /package/lib/components/{forms → field}/Percentage/Percentage.d.ts +0 -0
- /package/lib/components/{forms → field}/Percentage/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Percentage/index.js +0 -0
- /package/lib/components/{forms → field}/Phone/Phone.d.ts +0 -0
- /package/lib/components/{forms → field}/Phone/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Phone/index.js +0 -0
- /package/lib/components/{forms → field}/RadioButtons/RadioButtons.d.ts +0 -0
- /package/lib/components/{forms → field}/RadioButtons/index.d.ts +0 -0
- /package/lib/components/{forms → field}/RadioButtons/index.js +0 -0
- /package/lib/components/{forms → field}/SemanticLink/SemanticLink.d.ts +0 -0
- /package/lib/components/{forms → field}/SemanticLink/SemanticLink.js +0 -0
- /package/lib/components/{forms → field}/SemanticLink/index.d.ts +0 -0
- /package/lib/components/{forms → field}/SemanticLink/index.js +0 -0
- /package/lib/components/{forms → field}/SemanticLink/utils.d.ts +0 -0
- /package/lib/components/{forms → field}/SemanticLink/utils.js +0 -0
- /package/lib/components/{forms → field}/TextArea/TextArea.d.ts +0 -0
- /package/lib/components/{forms → field}/TextArea/index.d.ts +0 -0
- /package/lib/components/{forms → field}/TextArea/index.js +0 -0
- /package/lib/components/{forms → field}/TextContent/TextContent.d.ts +0 -0
- /package/lib/components/{forms → field}/TextContent/TextContent.js +0 -0
- /package/lib/components/{forms → field}/TextContent/index.d.ts +0 -0
- /package/lib/components/{forms → field}/TextContent/index.js +0 -0
- /package/lib/components/{forms → field}/TextInput/TextInput.d.ts +0 -0
- /package/lib/components/{forms → field}/TextInput/index.d.ts +0 -0
- /package/lib/components/{forms → field}/TextInput/index.js +0 -0
- /package/lib/components/{forms → field}/Time/Time.d.ts +0 -0
- /package/lib/components/{forms → field}/Time/index.d.ts +0 -0
- /package/lib/components/{forms → field}/Time/index.js +0 -0
- /package/lib/components/{forms → field}/URL/URL.d.ts +0 -0
- /package/lib/components/{forms → field}/URL/index.d.ts +0 -0
- /package/lib/components/{forms → field}/URL/index.js +0 -0
- /package/lib/components/{forms → field}/UserReference/UserReference.d.ts +0 -0
- /package/lib/components/{forms → field}/UserReference/UserReference.js +0 -0
- /package/lib/components/{forms → field}/UserReference/UserReferenceUtils.d.ts +0 -0
- /package/lib/components/{forms → field}/UserReference/UserReferenceUtils.js +0 -0
- /package/lib/components/{forms → field}/UserReference/index.d.ts +0 -0
- /package/lib/components/{forms → field}/UserReference/index.js +0 -0
- /package/lib/components/{templates → template}/AppShell/AppShell.css +0 -0
- /package/lib/components/{templates → template}/AppShell/AppShell.d.ts +0 -0
- /package/lib/components/{templates → template}/AppShell/AppShell.js +0 -0
- /package/lib/components/{templates → template}/AppShell/index.d.ts +0 -0
- /package/lib/components/{templates → template}/AppShell/index.js +0 -0
- /package/lib/components/{templates → template}/CaseSummary/CaseSummary.d.ts +0 -0
- /package/lib/components/{templates → template}/CaseSummary/index.d.ts +0 -0
- /package/lib/components/{templates → template}/CaseSummary/index.js +0 -0
- /package/lib/components/{templates → template}/CaseView/CaseView.d.ts +0 -0
- /package/lib/components/{templates → template}/CaseView/CaseView.js +0 -0
- /package/lib/components/{templates → template}/CaseView/index.d.ts +0 -0
- /package/lib/components/{templates → template}/CaseView/index.js +0 -0
- /package/lib/components/{templates → template}/CaseViewActionsMenu/CaseViewActionsMenu.d.ts +0 -0
- /package/lib/components/{templates → template}/CaseViewActionsMenu/CaseViewActionsMenu.js +0 -0
- /package/lib/components/{templates → template}/CaseViewActionsMenu/index.d.ts +0 -0
- /package/lib/components/{templates → template}/CaseViewActionsMenu/index.js +0 -0
- /package/lib/components/{templates → template}/DataReference/DataReference.d.ts +0 -0
- /package/lib/components/{templates → template}/DataReference/DataReference.js +0 -0
- /package/lib/components/{templates → template}/DataReference/index.d.ts +0 -0
- /package/lib/components/{templates → template}/DataReference/index.js +0 -0
- /package/lib/components/{templates → template}/DefaultForm/DefaultForm.css +0 -0
- /package/lib/components/{templates → template}/DefaultForm/DefaultForm.d.ts +0 -0
- /package/lib/components/{templates → template}/DefaultForm/DefaultForm.js +0 -0
- /package/lib/components/{templates → template}/DefaultForm/index.d.ts +0 -0
- /package/lib/components/{templates → template}/DefaultForm/index.js +0 -0
- /package/lib/components/{templates → template}/Details/Details/Details.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/Details/index.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/Details/index.js +0 -0
- /package/lib/components/{templates → template}/Details/DetailsSubTabs/DetailsSubTabs.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/DetailsSubTabs/DetailsSubTabs.js +0 -0
- /package/lib/components/{templates → template}/Details/DetailsSubTabs/index.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/DetailsSubTabs/index.js +0 -0
- /package/lib/components/{templates → template}/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/DetailsThreeColumn/index.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/DetailsThreeColumn/index.js +0 -0
- /package/lib/components/{templates → template}/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/DetailsTwoColumn/index.d.ts +0 -0
- /package/lib/components/{templates → template}/Details/DetailsTwoColumn/index.js +0 -0
- /package/lib/components/{templates → template}/FieldGroupTemplate/FieldGroupTemplate.d.ts +0 -0
- /package/lib/components/{templates → template}/FieldGroupTemplate/index.d.ts +0 -0
- /package/lib/components/{templates → template}/FieldGroupTemplate/index.js +0 -0
- /package/lib/components/{templates → template}/InlineDashboard/InlineDashboard.d.ts +0 -0
- /package/lib/components/{templates → template}/InlineDashboard/InlineDashboard.js +0 -0
- /package/lib/components/{templates → template}/InlineDashboard/index.d.ts +0 -0
- /package/lib/components/{templates → template}/InlineDashboard/index.js +0 -0
- /package/lib/components/{templates → template}/InlineDashboardPage/InlineDashboardPage.d.ts +0 -0
- /package/lib/components/{templates → template}/InlineDashboardPage/InlineDashboardPage.js +0 -0
- /package/lib/components/{templates → template}/InlineDashboardPage/index.d.ts +0 -0
- /package/lib/components/{templates → template}/InlineDashboardPage/index.js +0 -0
- /package/lib/components/{templates → template}/ListPage/ListPage.d.ts +0 -0
- /package/lib/components/{templates → template}/ListPage/ListPage.js +0 -0
- /package/lib/components/{templates → template}/ListPage/index.d.ts +0 -0
- /package/lib/components/{templates → template}/ListPage/index.js +0 -0
- /package/lib/components/{templates → template}/ListView/ListView.css +0 -0
- /package/lib/components/{templates → template}/ListView/ListView.d.ts +0 -0
- /package/lib/components/{templates → template}/ListView/index.d.ts +0 -0
- /package/lib/components/{templates → template}/ListView/index.js +0 -0
- /package/lib/components/{templates → template}/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +0 -0
- /package/lib/components/{templates → template}/MultiReferenceReadOnly/MultiReferenceReadOnly.js +0 -0
- /package/lib/components/{templates → template}/MultiReferenceReadOnly/index.d.ts +0 -0
- /package/lib/components/{templates → template}/MultiReferenceReadOnly/index.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWide/NarrowWide.css +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWide/NarrowWide.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWide/NarrowWide.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWide/index.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWide/index.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideDetails/index.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideDetails/index.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/NarrowWideForm.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/index.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWideForm/index.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/NarrowWidePage.js +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/index.d.ts +0 -0
- /package/lib/components/{templates → template}/NarrowWide/NarrowWidePage/index.js +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumn/OneColumn.d.ts +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumn/OneColumn.js +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumn/index.d.ts +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumn/index.js +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnPage/OneColumnPage.d.ts +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnPage/OneColumnPage.js +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnPage/index.d.ts +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnPage/index.js +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnTab/OneColumnTab.d.ts +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnTab/OneColumnTab.js +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnTab/index.d.ts +0 -0
- /package/lib/components/{templates → template}/OneColumn/OneColumnTab/index.js +0 -0
- /package/lib/components/{templates → template}/PromotedFilters/PromotedFilters.css +0 -0
- /package/lib/components/{templates → template}/PromotedFilters/index.d.ts +0 -0
- /package/lib/components/{templates → template}/PromotedFilters/index.js +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTable/SimpleTable.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTable/index.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTable/index.js +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/SimpleTableManual.js +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/index.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableManual/index.js +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableSelect/index.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/SimpleTableSelect/index.js +0 -0
- /package/lib/components/{templates → template}/SimpleTable/simpleTableHelpers.d.ts +0 -0
- /package/lib/components/{templates → template}/SimpleTable/simpleTableHelpers.js +0 -0
- /package/lib/components/{templates → template}/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +0 -0
- /package/lib/components/{templates → template}/SingleReferenceReadOnly/SingleReferenceReadOnly.js +0 -0
- /package/lib/components/{templates → template}/SingleReferenceReadOnly/index.d.ts +0 -0
- /package/lib/components/{templates → template}/SingleReferenceReadOnly/index.js +0 -0
- /package/lib/components/{templates → template}/SubTabs/SubTabs.d.ts +0 -0
- /package/lib/components/{templates → template}/SubTabs/SubTabs.js +0 -0
- /package/lib/components/{templates → template}/SubTabs/index.d.ts +0 -0
- /package/lib/components/{templates → template}/SubTabs/index.js +0 -0
- /package/lib/components/{templates → template}/SubTabs/tabUtils.d.ts +0 -0
- /package/lib/components/{templates → template}/SubTabs/tabUtils.js +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumn/TwoColumn.css +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumn/TwoColumn.d.ts +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumn/TwoColumn.js +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumn/index.d.ts +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumn/index.js +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/TwoColumnPage.js +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/index.d.ts +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnPage/index.js +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.css +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/TwoColumnTab.js +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/index.d.ts +0 -0
- /package/lib/components/{templates → template}/TwoColumn/TwoColumnTab/index.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrow/WideNarrow.css +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrow/WideNarrow.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrow/WideNarrow.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrow/index.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrow/index.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowDetails/index.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowDetails/index.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/WideNarrowForm.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/index.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowForm/index.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/WideNarrowPage.js +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/index.d.ts +0 -0
- /package/lib/components/{templates → template}/WideNarrow/WideNarrowPage/index.js +0 -0
- /package/lib/components/{templates → template}/utils.d.ts +0 -0
- /package/lib/components/{widgets → widget}/AppAnnouncement/AppAnnouncement.d.ts +0 -0
- /package/lib/components/{widgets → widget}/AppAnnouncement/AppAnnouncement.js +0 -0
- /package/lib/components/{widgets → widget}/AppAnnouncement/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/AppAnnouncement/index.js +0 -0
- /package/lib/components/{widgets → widget}/Attachment/Attachment.css +0 -0
- /package/lib/components/{widgets → widget}/Attachment/Attachment.d.ts +0 -0
- /package/lib/components/{widgets → widget}/Attachment/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/Attachment/index.js +0 -0
- /package/lib/components/{widgets → widget}/CaseHistory/CaseHistory.d.ts +0 -0
- /package/lib/components/{widgets → widget}/CaseHistory/CaseHistory.js +0 -0
- /package/lib/components/{widgets → widget}/CaseHistory/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/CaseHistory/index.js +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/ActionButtonsForFileUtil/index.js +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/FileUtility/FileUtility.css +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/FileUtility/FileUtility.d.ts +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/FileUtility/FileUtility.js +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/FileUtility/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/FileUtility/FileUtility/index.js +0 -0
- /package/lib/components/{widgets → widget}/Followers/Followers.d.ts +0 -0
- /package/lib/components/{widgets → widget}/Followers/Followers.js +0 -0
- /package/lib/components/{widgets → widget}/Followers/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/Followers/index.js +0 -0
- /package/lib/components/{widgets → widget}/SummaryItem/SummaryItem.css +0 -0
- /package/lib/components/{widgets → widget}/SummaryItem/SummaryItem.d.ts +0 -0
- /package/lib/components/{widgets → widget}/SummaryItem/SummaryItem.js +0 -0
- /package/lib/components/{widgets → widget}/SummaryItem/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/SummaryItem/index.js +0 -0
- /package/lib/components/{widgets → widget}/SummaryList/SummaryList.d.ts +0 -0
- /package/lib/components/{widgets → widget}/SummaryList/SummaryList.js +0 -0
- /package/lib/components/{widgets → widget}/SummaryList/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/SummaryList/index.js +0 -0
- /package/lib/components/{widgets → widget}/ToDo/ToDo.css +0 -0
- /package/lib/components/{widgets → widget}/ToDo/ToDo.d.ts +0 -0
- /package/lib/components/{widgets → widget}/ToDo/ToDo.js +0 -0
- /package/lib/components/{widgets → widget}/ToDo/index.d.ts +0 -0
- /package/lib/components/{widgets → widget}/ToDo/index.js +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextField } from '@material-ui/core';
|
|
3
|
+
import FieldValueList from '../../designSystemExtension/FieldValueList';
|
|
4
|
+
export default function TextInput(props) {
|
|
5
|
+
const { label, required, disabled, value = '', validatemessage, status, onChange, onBlur, readOnly, testId, fieldMetadata, helperText, displayMode } = props;
|
|
6
|
+
const helperTextToDisplay = validatemessage || helperText;
|
|
7
|
+
const maxLength = fieldMetadata?.maxLength;
|
|
8
|
+
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
|
|
9
|
+
if (displayMode === 'LABELS_LEFT') {
|
|
10
|
+
const field = {
|
|
11
|
+
[label]: value
|
|
12
|
+
};
|
|
13
|
+
return React.createElement(FieldValueList, { item: field });
|
|
14
|
+
}
|
|
15
|
+
if (readOnly) {
|
|
16
|
+
readOnlyProp = { readOnly: true };
|
|
17
|
+
}
|
|
18
|
+
let testProp = {};
|
|
19
|
+
testProp = {
|
|
20
|
+
'data-test-id': testId
|
|
21
|
+
};
|
|
22
|
+
return (React.createElement(TextField, { fullWidth: true, variant: readOnly ? 'standard' : 'outlined', helperText: helperTextToDisplay, placeholder: '', size: 'small', required: required, disabled: disabled, onChange: onChange, onBlur: !readOnly ? onBlur : undefined, error: status === 'error', label: label, value: value, InputProps: { ...readOnlyProp, inputProps: { maxLength, ...testProp } } }));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=TextInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../../src/components/field/TextInput/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,cAAc,MAAM,4CAA4C,CAAC;AAExE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK;IACrC,MAAM,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,eAAe,EACf,MAAM,EACN,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,MAAM,EACN,aAAa,EACb,UAAU,EACV,WAAW,EACZ,GAAG,KAAK,CAAC;IACV,MAAM,mBAAmB,GAAG,eAAe,IAAI,UAAU,CAAC;IAE1D,MAAM,SAAS,GAAG,aAAa,EAAE,SAAS,CAAC;IAE3C,IAAI,YAAY,GAAG,EAAE,CAAC,CAAC,8BAA8B;IAErD,IAAG,WAAW,KAAK,aAAa,EAAE;QAChC,MAAM,KAAK,GAAG;YACZ,CAAC,KAAK,CAAC,EAAE,KAAK;SACf,CAAC;QACF,OAAO,oBAAC,cAAc,IAAC,IAAI,EAAE,KAAK,GAAI,CAAA;KACvC;IAED,IAAI,QAAQ,EAAE;QACZ,YAAY,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KACnC;IAED,IAAI,QAAQ,GAAG,EAAE,CAAC;IAElB,QAAQ,GAAG;QACT,cAAc,EAAE,MAAM;KACvB,CAAC;IAEF,OAAO,CACL,oBAAC,SAAS,IACR,SAAS,QACT,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,EAC3C,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAC,EAAE,EACd,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EACtC,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,EAAE,GAAG,YAAY,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,EAAE,GACvE,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { TextField } from '@material-ui/core';\nimport FieldValueList from '../../designSystemExtension/FieldValueList';\n\nexport default function TextInput(props) {\n const {\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n onChange,\n onBlur,\n readOnly,\n testId,\n fieldMetadata,\n helperText,\n displayMode\n } = props;\n const helperTextToDisplay = validatemessage || helperText;\n\n const maxLength = fieldMetadata?.maxLength;\n\n let readOnlyProp = {}; // Note: empty if NOT ReadOnly\n\n if(displayMode === 'LABELS_LEFT') {\n const field = {\n [label]: value\n };\n return <FieldValueList item={field} />\n }\n\n if (readOnly) {\n readOnlyProp = { readOnly: true };\n }\n\n let testProp = {};\n\n testProp = {\n 'data-test-id': testId\n };\n\n return (\n <TextField\n fullWidth\n variant={readOnly ? 'standard' : 'outlined'}\n helperText={helperTextToDisplay}\n placeholder=''\n size='small'\n required={required}\n disabled={disabled}\n onChange={onChange}\n onBlur={!readOnly ? onBlur : undefined}\n error={status === 'error'}\n label={label}\n value={value}\n InputProps={{ ...readOnlyProp, inputProps: { maxLength, ...testProp } }}\n />\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/field/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/field/TextInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { default } from './TextInput';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Time.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Time/Time.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,KAAA,eA+DjC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { KeyboardTimePicker } from '@material-ui/pickers';
|
|
3
|
+
import TextInput from '../TextInput';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import AccessTimeIcon from '@material-ui/icons/AccessTime';
|
|
6
|
+
import FieldValueList from '../../designSystemExtension/FieldValueList';
|
|
7
|
+
export default function Time(props) {
|
|
8
|
+
const { label, required, disabled, value, validatemessage, status, onChange, readOnly, helperText, displayMode } = props;
|
|
9
|
+
const helperTextToDisplay = validatemessage || helperText;
|
|
10
|
+
if (displayMode === 'LABELS_LEFT') {
|
|
11
|
+
const field = {
|
|
12
|
+
[label]: value
|
|
13
|
+
};
|
|
14
|
+
return React.createElement(FieldValueList, { item: field });
|
|
15
|
+
}
|
|
16
|
+
if (readOnly) {
|
|
17
|
+
return React.createElement(TextInput, { ...props });
|
|
18
|
+
}
|
|
19
|
+
const handleChange = date => {
|
|
20
|
+
const theValue = date && date.isValid() ? date.format('HH:mm') : null;
|
|
21
|
+
onChange({ value: theValue });
|
|
22
|
+
};
|
|
23
|
+
let timeValue = null;
|
|
24
|
+
if (value) {
|
|
25
|
+
const timeArray = value.split(':').map(itm => Number(itm));
|
|
26
|
+
timeValue = dayjs().hour(timeArray[0]).minute(timeArray[1]);
|
|
27
|
+
}
|
|
28
|
+
//
|
|
29
|
+
// TODO: Keyboard doesn't work in the minute field, it updates one digit then jump to am/pm field
|
|
30
|
+
// try an older version of the lib or use DateTimePicker
|
|
31
|
+
//
|
|
32
|
+
return (React.createElement(KeyboardTimePicker, { variant: 'inline', inputVariant: 'outlined', placeholder: 'hh:mm am', keyboardIcon: React.createElement(AccessTimeIcon, null), fullWidth: true, required: required, disabled: disabled, error: status === 'error', helperText: helperTextToDisplay, minutesStep: 5, size: 'small', label: label, autoOk: true, mask: '__:__ _m', format: 'hh:mm a', value: timeValue, onChange: handleChange }));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=Time.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Time.js","sourceRoot":"","sources":["../../../../src/components/field/Time/Time.tsx"],"names":[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S,GAAG,KAAK,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7D;IAED,EAAE;IACF,iGAAiG;IACjG,8DAA8D;IAC9D,EAAE;IAEF,OAAO,CACL,oBAAC,kBAAkB,IACjB,OAAO,EAAC,QAAQ,EAChB,YAAY,EAAC,UAAU,EACvB,WAAW,EAAC,UAAU,EACtB,YAAY,EAAE,oBAAC,cAAc,OAAG,EAChC,SAAS,QACT,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAE,CAAC,EACd,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,EACZ,MAAM,QACN,IAAI,EAAC,UAAU,EACf,MAAM,EAAC,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,YAAY,GACtB,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { KeyboardTimePicker } from '@material-ui/pickers';\nimport TextInput from '../TextInput';\nimport dayjs from 'dayjs';\nimport AccessTimeIcon from '@material-ui/icons/AccessTime';\nimport FieldValueList from '../../designSystemExtension/FieldValueList';\n\nexport default function Time(props) {\n const {\n label,\n required,\n disabled,\n value,\n validatemessage,\n status,\n onChange,\n readOnly,\n helperText,\n displayMode\n } = props;\n const helperTextToDisplay = validatemessage || helperText;\n\n if (displayMode === 'LABELS_LEFT') {\n const field = {\n [label]: value\n };\n return <FieldValueList item={field} />;\n }\n\n if (readOnly) {\n return <TextInput {...props} />;\n }\n\n const handleChange = date => {\n const theValue = date && date.isValid() ? date.format('HH:mm') : null;\n onChange({ value: theValue });\n };\n\n let timeValue: any = null;\n if (value) {\n const timeArray = value.split(':').map(itm => Number(itm));\n timeValue = dayjs().hour(timeArray[0]).minute(timeArray[1]);\n }\n\n //\n // TODO: Keyboard doesn't work in the minute field, it updates one digit then jump to am/pm field\n // try an older version of the lib or use DateTimePicker\n //\n\n return (\n <KeyboardTimePicker\n variant='inline'\n inputVariant='outlined'\n placeholder='hh:mm am'\n keyboardIcon={<AccessTimeIcon />}\n fullWidth\n required={required}\n disabled={disabled}\n error={status === 'error'}\n helperText={helperTextToDisplay}\n minutesStep={5}\n size='small'\n label={label}\n autoOk\n mask='__:__ _m'\n format='hh:mm a'\n value={timeValue}\n onChange={handleChange}\n />\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/field/Time/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/field/Time/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["export { default } from './Time';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"URL.d.ts","sourceRoot":"","sources":["../../../../src/components/field/URL/URL.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,KAAA,eA4CzC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextField } from '@material-ui/core';
|
|
3
|
+
import TextInput from '../TextInput';
|
|
4
|
+
import FieldValueList from '../../designSystemExtension/FieldValueList';
|
|
5
|
+
// NOTE: that we had to change the name from URL to URLComponent
|
|
6
|
+
// Otherwise, we were getting all kinds of weird errors when we
|
|
7
|
+
// referred to URL as a component.
|
|
8
|
+
export default function URLComponent(props) {
|
|
9
|
+
const { label, required, disabled, value = '', validatemessage, status, onChange, onBlur, readOnly, helperText, displayMode } = props;
|
|
10
|
+
const helperTextToDisplay = validatemessage || helperText;
|
|
11
|
+
if (displayMode === 'LABELS_LEFT') {
|
|
12
|
+
const field = {
|
|
13
|
+
[label]: value
|
|
14
|
+
};
|
|
15
|
+
return React.createElement(FieldValueList, { item: field });
|
|
16
|
+
}
|
|
17
|
+
if (readOnly) {
|
|
18
|
+
return React.createElement(TextInput, { ...props });
|
|
19
|
+
}
|
|
20
|
+
return (React.createElement(TextField, { type: 'url', fullWidth: true, variant: 'outlined', helperText: helperTextToDisplay, placeholder: '', size: 'small', required: required, disabled: disabled, onChange: onChange, onBlur: !readOnly ? onBlur : undefined, error: status === 'error', label: label, value: value }));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=URL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"URL.js","sourceRoot":"","sources":["../../../../src/components/field/URL/URL.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,cAAc,MAAM,4CAA4C,CAAC;AAExE,gEAAgE;AAChE,gEAAgE;AAChE,mCAAmC;AACnC,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK;IACxC,MAAM,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,eAAe,EACf,MAAM,EACN,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,UAAU,EACV,WAAW,EACZ,GAAG,KAAK,CAAC;IACV,MAAM,mBAAmB,GAAG,eAAe,IAAI,UAAU,CAAC;IAE1D,IAAG,WAAW,KAAK,aAAa,EAAE;QAChC,MAAM,KAAK,GAAG;YACZ,CAAC,KAAK,CAAC,EAAE,KAAK;SACf,CAAC;QACF,OAAO,oBAAC,cAAc,IAAC,IAAI,EAAE,KAAK,GAAI,CAAA;KACvC;IAED,IAAI,QAAQ,EAAE;QACZ,OAAO,oBAAC,SAAS,OAAK,KAAK,GAAI,CAAC;KACjC;IAED,OAAO,CACL,oBAAC,SAAS,IACR,IAAI,EAAC,KAAK,EACV,SAAS,QACT,OAAO,EAAC,UAAU,EAClB,UAAU,EAAE,mBAAmB,EAC/B,WAAW,EAAC,EAAE,EACd,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EACtC,KAAK,EAAE,MAAM,KAAK,OAAO,EACzB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\nimport { TextField } from '@material-ui/core';\nimport TextInput from '../TextInput';\nimport FieldValueList from '../../designSystemExtension/FieldValueList';\n\n// NOTE: that we had to change the name from URL to URLComponent\n// Otherwise, we were getting all kinds of weird errors when we\n// referred to URL as a component.\nexport default function URLComponent(props) {\n const {\n label,\n required,\n disabled,\n value = '',\n validatemessage,\n status,\n onChange,\n onBlur,\n readOnly,\n helperText,\n displayMode\n } = props;\n const helperTextToDisplay = validatemessage || helperText;\n\n if(displayMode === 'LABELS_LEFT') {\n const field = {\n [label]: value\n };\n return <FieldValueList item={field} />\n }\n\n if (readOnly) {\n return <TextInput {...props} />;\n }\n\n return (\n <TextField\n type='url'\n fullWidth\n variant='outlined'\n helperText={helperTextToDisplay}\n placeholder=''\n size='small'\n required={required}\n disabled={disabled}\n onChange={onChange}\n onBlur={!readOnly ? onBlur : undefined}\n error={status === 'error'}\n label={label}\n value={value}\n />\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/field/URL/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/field/URL/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC","sourcesContent":["export { default } from './URL';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserReference.d.ts","sourceRoot":"","sources":["../../../../src/components/field/UserReference/UserReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,SAAS,MAAM,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmMnC,wBAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserReference.js","sourceRoot":"","sources":["../../../../src/components/field/UserReference/UserReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGtE,MAAM,aAAa,GAAG,gBAAgB,CAAC;AACvC,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,MAAM,aAAa,GAAG,KAAK,CAAC,EAAE;IAC5B,MAAM,EACJ,KAAK,EACL,SAAS,EACT,WAAW,EACX,KAAK,EACL,MAAM,EACN,UAAU,EACV,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,eAAe,EACf,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,C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AAE,YAAY,CAAC,CAAC","sourcesContent":["import React, { Fragment, memo, useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Typography } from '@material-ui/core';\nimport AutoComplete from '../AutoComplete';\nimport Dropdown from '../Dropdown';\nimport { getUserId, isUserNameAvailable } from './UserReferenceUtils';\n\ndeclare const PCore: any;\nconst DROPDOWN_LIST = 'Drop-down list';\nconst SEARCH_BOX = 'Search box';\n\nconst UserReference = props => {\n const {\n label,\n displayAs,\n getPConnect,\n value,\n testId,\n helperText,\n validatemessage,\n placeholder,\n showAsFormattedText,\n additionalProps,\n hideLabel,\n readOnly,\n required,\n disabled,\n onChange\n } = props;\n const [dropDownDataSource, setDropDownDataSource] = useState([]);\n const [userName, setUserName] = useState('');\n const OPERATORS_DP = PCore.getEnvironmentInfo().getDefaultOperatorDP();\n const userId = getUserId(value);\n\n useEffect(() => {\n if (userId && readOnly && showAsFormattedText) {\n if (isUserNameAvailable(value)) {\n setUserName(value.userName);\n } else {\n // if same user ref field is referred in view as editable & readonly formatted text\n // referenced users won't be available, so get user details from dx api\n const { getOperatorDetails } = PCore.getUserApi();\n getOperatorDetails(userId).then(res => {\n if (res.data && res.data.pyOperatorInfo && res.data.pyOperatorInfo.pyUserName) {\n setUserName(res.data.pyOperatorInfo.pyUserName);\n }\n });\n }\n } else if (displayAs === DROPDOWN_LIST) {\n const queryPayload = {\n dataViewName: OPERATORS_DP\n };\n PCore.getRestClient()\n .invokeRestApi('getListData', { queryPayload })\n .then(res => {\n const ddDataSource = res.data.data.map(listItem => ({\n key: listItem.pyUserIdentifier,\n value: listItem.pyUserName\n }));\n setDropDownDataSource(ddDataSource);\n })\n .catch(err => {\n // eslint-disable-next-line no-console\n console.error(err);\n });\n }\n }, [displayAs, readOnly, showAsFormattedText, value]);\n\n let userReferenceComponent: any = null;\n\n if (readOnly && showAsFormattedText) {\n if (userId) {\n userReferenceComponent = (\n <Fragment>\n {/*\n TODO: This has to be replaced with Operator Component\n */}\n <div>\n <Typography variant='caption'>{label}</Typography>\n <Typography variant='body1'>{userName}</Typography>\n </div>\n </Fragment>\n );\n }\n } else {\n if (displayAs === SEARCH_BOX) {\n const columns = [\n {\n value: 'pyUserName',\n display: 'true',\n useForSearch: true,\n primary: 'true'\n },\n {\n value: 'pyUserIdentifier',\n setProperty: 'Associated property',\n key: 'true',\n display: 'true',\n secondary: 'true',\n useForSearch: 'true'\n }\n ];\n\n userReferenceComponent = (\n <AutoComplete\n additionalProps={additionalProps}\n label={label}\n getPConnect={getPConnect}\n datasource={OPERATORS_DP}\n listType='datapage'\n columns={columns}\n testId={testId}\n placeholder={placeholder}\n readOnly={readOnly}\n disabled={disabled}\n required={required}\n helperText={helperText}\n validatemessage={validatemessage}\n value={userId}\n hideLabel={hideLabel}\n onChange={onChange}\n />\n );\n }\n if (displayAs === DROPDOWN_LIST) {\n userReferenceComponent = (\n <Dropdown\n additionalProps={additionalProps}\n datasource={dropDownDataSource}\n listType='associated'\n getPConnect={getPConnect}\n label={label}\n value={userId}\n testId={testId}\n placeholder={placeholder}\n readOnly={readOnly}\n disabled={disabled}\n required={required}\n helperText={helperText}\n validatemessage={validatemessage}\n hideLabel={hideLabel}\n onChange={onChange}\n />\n );\n }\n }\n\n return userReferenceComponent;\n};\n\nUserReference.propTypes = {\n getPConnect: PropTypes.func.isRequired,\n displayAs: PropTypes.string,\n label: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.objectOf(PropTypes.any)]),\n testId: PropTypes.string,\n placeholder: PropTypes.string,\n helperText: PropTypes.string,\n disabled: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n required: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n validatemessage: PropTypes.string,\n showAsFormattedText: PropTypes.bool,\n additionalProps: PropTypes.objectOf(PropTypes.any),\n hideLabel: PropTypes.bool\n};\n\nUserReference.defaultProps = {\n displayAs: null,\n label: null,\n value: null,\n readOnly: false,\n testId: null,\n placeholder: null,\n helperText: null,\n disabled: false,\n required: false,\n validatemessage: null,\n showAsFormattedText: false,\n additionalProps: {},\n variant: 'inline',\n hideLabel: false\n};\n\n// as objects are there in props, shallow comparision fails & re-rendering of comp happens even with\n// same key value pairs in obj. hence using custom comparison function on when to re-render\nconst comparisonFn = (prevProps, nextProps) => {\n return (\n getUserId(prevProps.value) === getUserId(nextProps.value) &&\n prevProps.validatemessage === nextProps.validatemessage &&\n prevProps.required === nextProps.required &&\n prevProps.disabled === nextProps.disabled &&\n prevProps.readOnly === nextProps.readOnly\n );\n};\n\nexport default memo(UserReference, comparisonFn);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserReferenceUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/field/UserReference/UserReferenceUtils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,uBAQrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,oBAE/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserReferenceUtils.js","sourceRoot":"","sources":["../../../../src/components/field/UserReference/UserReferenceUtils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,EAAE;IAChC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE;QAC5D,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;KACtB;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,EAAE;QAC3C,MAAM,GAAG,IAAI,CAAC;KACf;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,EAAE;IAC1C,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC;AACpE,CAAC,CAAC","sourcesContent":["export const getUserId = (user) => {\n let userId = '';\n if (typeof user === 'object' && user !== null && user.userId) {\n userId = user.userId;\n } else if (typeof user === 'string' && user) {\n userId = user;\n }\n return userId;\n};\n\nexport const isUserNameAvailable = (user) => {\n return typeof user === 'object' && user !== null && user.userName;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/field/UserReference/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/field/UserReference/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default } from './UserReference';\n"]}
|
|
@@ -7,7 +7,7 @@ import { Card, CardHeader, Avatar, Typography } from "@material-ui/core";
|
|
|
7
7
|
import { Utils } from '../../../helpers/utils';
|
|
8
8
|
import { Alert } from '@material-ui/lab';
|
|
9
9
|
import Assignment from '../../Assignment';
|
|
10
|
-
import ToDo from "../../../
|
|
10
|
+
import ToDo from "../../../widget/ToDo";
|
|
11
11
|
import createPConnectComponent from '../../../../bridge/react_pconnect';
|
|
12
12
|
import StoreContext from "../../../../bridge/Context/StoreContext";
|
|
13
13
|
import DayjsUtils from "@date-io/dayjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,8BAA8B;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,SAAS,MAAM,YAAY,CAAC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U,IAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,IACnD,oBAAoB,CACV,CACW,CACrB;YACT,CAAC;gBACD;oBACE,oBAAC,IAAI,IAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EACtF,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EACxE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAS,CAC9C;QACR,CAAC;YACD,6BAAK,SAAS,EAAE,OAAO,CAAC,KAAK;gBAC3B,oBAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,IAAE,YAAY,CAAS,CAC5C,CAEJ,CACP,CAAA;AACH,CAAC;AAED,aAAa,CAAC,YAAY,GAAG;IAC3B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,aAAa,CAAC,SAAS,GAAG;IACxB,sDAAsD;IACtD,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,sDAAsD;IACtD,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC9C,sDAAsD;IACtD,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["/* eslint-disable no-nested-ternary */\n/* eslint-disable camelcase */\nimport React, { useState, useEffect, useContext, createElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Card, CardHeader, Avatar, Typography } from \"@material-ui/core\";\nimport { Utils } from '../../../helpers/utils';\nimport { Alert } from '@material-ui/lab';\n\nimport Assignment from '../../Assignment';\nimport ToDo from \"../../../widgets/ToDo\";\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from \"../../../../bridge/Context/StoreContext\";\nimport DayjsUtils from \"@date-io/dayjs\";\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\n\nimport { addContainerItem, getToDoAssignments } from './helpers';\n\ndeclare const PCore;\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1.5),\n paddingBottom: theme.spacing(1.5),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n alert: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light),\n }\n}));\n\n\n\nexport default function FlowContainer(props) {\n const pCoreConstants = PCore.getConstants();\n const { TODO } = pCoreConstants;\n const todo_headerText = \"To do\";\n\n const { getPConnect, routingInfo } = props;\n\n const {displayOnlyFA} = useContext(StoreContext);\n\n const thePConn = getPConnect();\n\n // const [init, setInit] = useState(true);\n // const [fcState, setFCState] = useState({ hasError: false });\n const [arNewChildren, setArNewChildren] = useState<Array<any>>(thePConn.getChildren());\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n\n const [todo_showTodo, setShowTodo] = useState(false);\n const [todo_caseInfoID, setCaseInfoID] = useState(\"\");\n const [todo_showTodoList, setShowTodoList] = useState(false);\n const [todo_datasource, setTodoDatasource] = useState({});\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [todo_context, setTodoContext] = useState(\"\");\n\n\n const [caseMessages, setCaseMessages] = useState(\"\");\n const [bHasCaseMessages, setHasCaseMessages] = useState(false);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [checkSvg, setCheckSvg] = useState(\"\");\n\n\n const [itemKey, setItemKey] = useState(\"\");\n const [containerName, setContainerName] = useState(\"\");\n const [buildName, setBuildName] = useState(\"\");\n\n const classes = useStyles();\n\n function initContainer() {\n\n const ourPConn = getPConnect();\n const containerMgr = ourPConn.getContainerManager();\n const baseContext = ourPConn.getContextName();\n const theContainerName = ourPConn.getContainerName();\n const containerType = \"single\";\n\n const flowContainerTarget = `${baseContext}/${theContainerName}`;\n const isContainerItemAvailable = PCore.getContainerUtils().getActiveContainerItemName(\n flowContainerTarget\n );\n\n window.sessionStorage.setItem(\"okToInitFlowContainer\", \"false\");\n\n if (!isContainerItemAvailable) {\n containerMgr.initializeContainers({\n type: containerType\n });\n\n // updated for 8.7 - 30-Mar-2022\n addContainerItem(ourPConn);\n }\n }\n\n\n function getBuildName(): string {\n const ourPConn = getPConnect();\n\n // let { getPConnect, name } = this.pConn$.pConn;\n const context = ourPConn.getContextName();\n let viewContainerName = ourPConn.getContainerName();\n\n if (!viewContainerName) viewContainerName = \"\";\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n\n function getTodoVisibility() {\n const caseViewMode = getPConnect().getValue(\"context_data.caseViewMode\");\n if (caseViewMode && caseViewMode === \"review\") {\n return true;\n }\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (caseViewMode && caseViewMode === \"perform\") {\n return false;\n }\n\n return true;\n }\n\n\n function initComponent(bLoadChildren: boolean) {\n\n const ourPConn = getPConnect();\n\n // when true, update arChildren from pConn, otherwise, arChilren will be updated in updateSelf()\n if (bLoadChildren) {\n setArNewChildren(ourPConn.getChildren());\n }\n\n // debugging/investigation help\n // console.log(`${ourPConn.getComponentName()}: children update for main draw`);\n\n // const oData = ourPConn.getDataObject();\n\n // const activeActionLabel = \"\";\n // const child0_getPConnect = arNewChildren[0].getPConnect();\n\n // this.templateName$ = this.configProps$[\"template\"];\n\n // debugger;\n setShowTodo(getTodoVisibility());\n\n // create pointers to functions\n // const containerMgr = ourPConn.getContainerManager();\n // const actionsAPI = thePConn.getActionsApi();\n const baseContext = ourPConn.getContextName();\n const acName = ourPConn.getContainerName();\n\n // for now, in general this should be overridden by updateSelf(), and not be blank\n if (itemKey === \"\") {\n // debugger;\n setItemKey(baseContext.concat(\"/\").concat(acName));\n }\n\n\n ourPConn.isBoundToState();\n\n\n // inside\n // get fist kid, get the name and displa\n // pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.\n const oWorkItem = arNewChildren[0].getPConnect(); // child0_getPConnect;\n const oWorkData = oWorkItem.getDataObject();\n\n if (bLoadChildren && oWorkData) {\n // debugger;\n setContainerName(oWorkData.caseInfo.assignments[0].name);\n }\n\n // debugger;\n setBuildName(getBuildName());\n\n }\n\n\n useEffect(() => {\n // from WC SDK connectedCallback (mount)\n initComponent(true);\n initContainer();\n }, []);\n\n\n function isCaseWideLocalAction() {\n const ourPConn = getPConnect();\n\n const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID);\n const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS);\n let bCaseWideAction = false;\n if (caseActions && actionID) {\n const actionObj = caseActions.find(\n (caseAction) => caseAction.ID === actionID\n );\n if (actionObj) {\n bCaseWideAction = actionObj.type === \"Case\";\n }\n }\n return bCaseWideAction;\n }\n\n\n function hasChildCaseAssignments() {\n const ourPConn = getPConnect();\n\n const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS);\n // const allAssignments = [];\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (childCases && childCases.length > 0) {\n return true;\n }\n return false;\n }\n\n\n function hasAssignments() {\n const ourPConn = getPConnect();\n\n let bHasAssignments = false;\n const assignmentsList: Array<any> = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);\n const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();\n // 8.7 includes assignments in Assignments List that may be assigned to\n // a different operator. So, see if there are any assignments for\n // the current operator\n let bAssignmentsForThisOperator = false;\n\n // Bail out if there isn't an assignmentsList\n if (!assignmentsList) {\n return bHasAssignments;\n }\n\n for (const assignment of assignmentsList) {\n if (assignment[\"assigneeInfo\"][\"ID\"] === thisOperator) {\n bAssignmentsForThisOperator = true;\n }\n }\n\n const bHasChildCaseAssignments = hasChildCaseAssignments();\n\n if (\n bAssignmentsForThisOperator ||\n bHasChildCaseAssignments ||\n isCaseWideLocalAction()\n ) {\n bHasAssignments = true;\n }\n\n return bHasAssignments;\n }\n\n\n\n function getActiveViewLabel() {\n const ourPConn = getPConnect();\n\n let activeActionLabel = \"\";\n\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n\n const caseActions = ourPConn.getValue(CASE_CONSTS.CASE_INFO_ACTIONS);\n const activeActionID = ourPConn.getValue(CASE_CONSTS.ACTIVE_ACTION_ID);\n const activeAction = caseActions.find(\n (action) => action.ID === activeActionID\n );\n if (activeAction) {\n activeActionLabel = activeAction.name;\n }\n return activeActionLabel;\n }\n\n\n // From WC SDK updateSelf - so do this in useEffect that's run only when the props change...\n\n useEffect(() => {\n const localPConn = arNewChildren[0].getPConnect();\n\n setBuildName(getBuildName());\n\n // routingInfo was added as component prop in populateAdditionalProps\n // let routingInfo = this.getComponentProp(\"routingInfo\");\n\n let loadingInfo: any;\n try {\n loadingInfo = thePConn.getLoadingStatus();\n }\n catch (ex) {\n // eslint-disable-next-line no-console\n console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);\n }\n\n // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());\n\n if (!loadingInfo) {\n // turn off spinner\n // this.psService.sendMessage(false);\n }\n\n const caseViewMode = thePConn.getValue(\"context_data.caseViewMode\");\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n if (caseViewMode && caseViewMode === \"review\") {\n setTimeout(() => {\n // updated for 8.7 - 30-Mar-2022\n const todoAssignments = getToDoAssignments(thePConn);\n if (todoAssignments && todoAssignments.length > 0) {\n setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID));\n setTodoDatasource({ source: todoAssignments });\n }\n setShowTodo(true);\n setShowTodoList(false);\n }, 100);\n\n // in React, when cancel is called, somehow the constructor for flowContainer is called which\n // does init/add of containers. This mimics that\n initContainer();\n }\n else if (caseViewMode && caseViewMode === \"perform\") {\n // perform\n // debugger;\n setShowTodo(false);\n\n // this is different than Angular SDK, as we need to initContainer if root container reloaded\n if (window.sessionStorage.getItem(\"okToInitFlowContainer\") === \"true\") {\n initContainer();\n }\n }\n\n // if have caseMessage show message and end\n const theCaseMessages = thePConn.getValue(\"caseMessages\");\n\n if (theCaseMessages || !hasAssignments()) {\n\n // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.\n // So, if we get here and caseMessages$ is empty, use default value in DX API response\n setCaseMessages(theCaseMessages || \"Thank you! The next step in this case has been routed appropriately.\");\n setHasCaseMessages(true);\n\n\n // publish this \"assignmentFinished\" for mashup, need to get approved as a standard\n PCore.getPubSubUtils().publish(\n \"assignmentFinished\");\n\n\n // debugger;\n setCheckSvg(Utils.getImageSrc(\"check\", PCore.getAssetLoader().getStaticServerUrl()));\n return;\n }\n else {\n // debugger;\n setHasCaseMessages(false);\n }\n\n\n // this check in routingInfo, mimic React to check and get the internals of the\n // flowContainer and force updates to pConnect/redux\n if (routingInfo && loadingInfo !== undefined) {\n\n // debugging/investigation help\n // console.log(`${thePConn.getComponentName()}: >>routingInfo: ${JSON.stringify(routingInfo)}`);\n\n const currentOrder = routingInfo.accessedOrder;\n const currentItems = routingInfo.items;\n const type = routingInfo.type;\n if (currentOrder && currentItems) { // JA - making more similar to React version\n const key = currentOrder[currentOrder.length - 1];\n\n // save off itemKey to be used for finishAssignment, etc.\n // debugger;\n setItemKey(key);\n\n if (currentOrder.length > 0 &&\n currentItems[key] &&\n currentItems[key].view &&\n type === \"single\" &&\n !Utils.isEmptyObject(currentItems[key].view)) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n\n config[\"options\"] = {\n context: currentItem.context,\n pageReference: context || localPConn.getPageReference(),\n hasForm: true,\n isFlowContainer: true,\n containerName: localPConn.getContainerName(),\n containerItemName: key,\n parentPageReference: localPConn.getPageReference()\n };\n\n const configObject = PCore.createPConnect(config);\n\n // Since we're setting an array, need to add in an appropriate key\n // to remove React warning.\n configObject[\"key\"] = config[\"options\"].parentPageReference;\n\n // keep track of these changes\n const theNewChildren: Array<Object> = [];\n theNewChildren.push(configObject);\n setArNewChildren(theNewChildren);\n\n // JEA - adapted from Nebula FlowContainer since we want to render children that are React components\n const root = createElement(createPConnectComponent(), configObject);\n setArNewChildrenAsReact([root]);\n\n const oWorkItem = configObject.getPConnect(); // was theNewChildren[0].getPConnect()\n const oWorkData = oWorkItem.getDataObject();\n\n\n // check if have oWorkData, there are times due to timing of state change, when this\n // may not be available\n if (oWorkData) {\n setContainerName(getActiveViewLabel() || oWorkData.caseInfo.assignments[0].name);\n }\n }\n }\n\n }\n\n\n }, [props]);\n\n const caseId = thePConn.getCaseSummary().content.pyID;\n const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments[0].urgency : \"\";\n const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());\n let instructionText = thePConn.getCaseSummary()?.assignments?.[0]?.instructions;\n if (instructionText === undefined) {\n instructionText = \"\";\n }\n\n return (\n <div style={{ textAlign: \"left\" }} id={buildName} className=\"psdk-flow-container-top\">\n {!bHasCaseMessages ?\n (!todo_showTodo) ?\n (!displayOnlyFA) ?\n <Card className={classes.root}>\n <CardHeader\n title={<Typography variant=\"h6\">{containerName}</Typography>}\n subheader={`Task in ${caseId} \\u2022 Priority ${urgency}`}\n avatar={\n <Avatar className={classes.avatar}>\n {operatorInitials}\n </Avatar>\n }\n ></CardHeader>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <Card className={classes.root}>\n <Typography variant=\"h6\">{containerName}</Typography>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <div>\n <ToDo getPConnect={getPConnect} caseInfoID={todo_caseInfoID} datasource={todo_datasource}\n showTodoList={todo_showTodoList} headerText={todo_headerText} type={TODO}\n context={todo_context} itemKey={itemKey}></ToDo>\n </div>\n :\n <div className={classes.alert}>\n <Alert severity=\"success\">{caseMessages}</Alert>\n </div>\n }\n </div>\n )\n}\n\nFlowContainer.defaultProps = {\n children: null,\n getPConnect: null,\n name: \"\",\n routingInfo: null,\n pageMessages: null\n};\n\nFlowContainer.propTypes = {\n // eslint-disable-next-line react/no-unused-prop-types\n children: PropTypes.node,\n getPConnect: PropTypes.func,\n // eslint-disable-next-line react/no-unused-prop-types\n name: PropTypes.string,\n routingInfo: PropTypes.objectOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n pageMessages: PropTypes.arrayOf(PropTypes.any)\n};\n"]}
|
|
1
|
+
{"version":3,"file":"FlowContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/FlowContainer/FlowContainer.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,8BAA8B;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,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AO,IACnD,oBAAoB,CACV,CACW,CACrB;YACT,CAAC;gBACD;oBACE,oBAAC,IAAI,IAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EACtF,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EACxE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAS,CAC9C;QACR,CAAC;YACD,6BAAK,SAAS,EAAE,OAAO,CAAC,KAAK;gBAC3B,oBAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,IAAE,YAAY,CAAS,CAC5C,CAEJ,CACP,CAAA;AACH,CAAC;AAED,aAAa,CAAC,YAAY,GAAG;IAC3B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,IAAI;CACnB,CAAC;AAEF,aAAa,CAAC,SAAS,GAAG;IACxB,sDAAsD;IACtD,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,sDAAsD;IACtD,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;IAC9C,sDAAsD;IACtD,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["/* eslint-disable no-nested-ternary */\n/* eslint-disable camelcase */\nimport React, { useState, useEffect, useContext, createElement } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles';\nimport { Card, CardHeader, Avatar, Typography } from \"@material-ui/core\";\nimport { Utils } from '../../../helpers/utils';\nimport { Alert } from '@material-ui/lab';\n\nimport Assignment from '../../Assignment';\nimport ToDo from \"../../../widget/ToDo\";\n\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport StoreContext from \"../../../../bridge/Context/StoreContext\";\nimport DayjsUtils from \"@date-io/dayjs\";\nimport { MuiPickersUtilsProvider } from \"@material-ui/pickers\";\n\nimport { addContainerItem, getToDoAssignments } from './helpers';\n\ndeclare const PCore;\n\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(2),\n paddingLeft: theme.spacing(2),\n paddingTop: theme.spacing(1.5),\n paddingBottom: theme.spacing(1.5),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n alert: {\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light),\n }\n}));\n\n\n\nexport default function FlowContainer(props) {\n const pCoreConstants = PCore.getConstants();\n const { TODO } = pCoreConstants;\n const todo_headerText = \"To do\";\n\n const { getPConnect, routingInfo } = props;\n\n const {displayOnlyFA} = useContext(StoreContext);\n\n const thePConn = getPConnect();\n\n // const [init, setInit] = useState(true);\n // const [fcState, setFCState] = useState({ hasError: false });\n const [arNewChildren, setArNewChildren] = useState<Array<any>>(thePConn.getChildren());\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n\n const [todo_showTodo, setShowTodo] = useState(false);\n const [todo_caseInfoID, setCaseInfoID] = useState(\"\");\n const [todo_showTodoList, setShowTodoList] = useState(false);\n const [todo_datasource, setTodoDatasource] = useState({});\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [todo_context, setTodoContext] = useState(\"\");\n\n\n const [caseMessages, setCaseMessages] = useState(\"\");\n const [bHasCaseMessages, setHasCaseMessages] = useState(false);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const [checkSvg, setCheckSvg] = useState(\"\");\n\n\n const [itemKey, setItemKey] = useState(\"\");\n const [containerName, setContainerName] = useState(\"\");\n const [buildName, setBuildName] = useState(\"\");\n\n const classes = useStyles();\n\n function initContainer() {\n\n const ourPConn = getPConnect();\n const containerMgr = ourPConn.getContainerManager();\n const baseContext = ourPConn.getContextName();\n const theContainerName = ourPConn.getContainerName();\n const containerType = \"single\";\n\n const flowContainerTarget = `${baseContext}/${theContainerName}`;\n const isContainerItemAvailable = PCore.getContainerUtils().getActiveContainerItemName(\n flowContainerTarget\n );\n\n window.sessionStorage.setItem(\"okToInitFlowContainer\", \"false\");\n\n if (!isContainerItemAvailable) {\n containerMgr.initializeContainers({\n type: containerType\n });\n\n // updated for 8.7 - 30-Mar-2022\n addContainerItem(ourPConn);\n }\n }\n\n\n function getBuildName(): string {\n const ourPConn = getPConnect();\n\n // let { getPConnect, name } = this.pConn$.pConn;\n const context = ourPConn.getContextName();\n let viewContainerName = ourPConn.getContainerName();\n\n if (!viewContainerName) viewContainerName = \"\";\n return `${context.toUpperCase()}/${viewContainerName.toUpperCase()}`;\n }\n\n\n function getTodoVisibility() {\n const caseViewMode = getPConnect().getValue(\"context_data.caseViewMode\");\n if (caseViewMode && caseViewMode === \"review\") {\n return true;\n }\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (caseViewMode && caseViewMode === \"perform\") {\n return false;\n }\n\n return true;\n }\n\n\n function initComponent(bLoadChildren: boolean) {\n\n const ourPConn = getPConnect();\n\n // when true, update arChildren from pConn, otherwise, arChilren will be updated in updateSelf()\n if (bLoadChildren) {\n setArNewChildren(ourPConn.getChildren());\n }\n\n // debugging/investigation help\n // console.log(`${ourPConn.getComponentName()}: children update for main draw`);\n\n // const oData = ourPConn.getDataObject();\n\n // const activeActionLabel = \"\";\n // const child0_getPConnect = arNewChildren[0].getPConnect();\n\n // this.templateName$ = this.configProps$[\"template\"];\n\n // debugger;\n setShowTodo(getTodoVisibility());\n\n // create pointers to functions\n // const containerMgr = ourPConn.getContainerManager();\n // const actionsAPI = thePConn.getActionsApi();\n const baseContext = ourPConn.getContextName();\n const acName = ourPConn.getContainerName();\n\n // for now, in general this should be overridden by updateSelf(), and not be blank\n if (itemKey === \"\") {\n // debugger;\n setItemKey(baseContext.concat(\"/\").concat(acName));\n }\n\n\n ourPConn.isBoundToState();\n\n\n // inside\n // get fist kid, get the name and displa\n // pass first kid to a view container, which will disperse it to a view which will use one column, two column, etc.\n const oWorkItem = arNewChildren[0].getPConnect(); // child0_getPConnect;\n const oWorkData = oWorkItem.getDataObject();\n\n if (bLoadChildren && oWorkData) {\n // debugger;\n setContainerName(oWorkData.caseInfo.assignments[0].name);\n }\n\n // debugger;\n setBuildName(getBuildName());\n\n }\n\n\n useEffect(() => {\n // from WC SDK connectedCallback (mount)\n initComponent(true);\n initContainer();\n }, []);\n\n\n function isCaseWideLocalAction() {\n const ourPConn = getPConnect();\n\n const actionID = ourPConn.getValue(pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID);\n const caseActions = ourPConn.getValue(pCoreConstants.CASE_INFO.AVAILABLEACTIONS);\n let bCaseWideAction = false;\n if (caseActions && actionID) {\n const actionObj = caseActions.find(\n (caseAction) => caseAction.ID === actionID\n );\n if (actionObj) {\n bCaseWideAction = actionObj.type === \"Case\";\n }\n }\n return bCaseWideAction;\n }\n\n\n function hasChildCaseAssignments() {\n const ourPConn = getPConnect();\n\n const childCases = ourPConn.getValue(pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS);\n // const allAssignments = [];\n // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n if (childCases && childCases.length > 0) {\n return true;\n }\n return false;\n }\n\n\n function hasAssignments() {\n const ourPConn = getPConnect();\n\n let bHasAssignments = false;\n const assignmentsList: Array<any> = ourPConn.getValue(pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);\n const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();\n // 8.7 includes assignments in Assignments List that may be assigned to\n // a different operator. So, see if there are any assignments for\n // the current operator\n let bAssignmentsForThisOperator = false;\n\n // Bail out if there isn't an assignmentsList\n if (!assignmentsList) {\n return bHasAssignments;\n }\n\n for (const assignment of assignmentsList) {\n if (assignment[\"assigneeInfo\"][\"ID\"] === thisOperator) {\n bAssignmentsForThisOperator = true;\n }\n }\n\n const bHasChildCaseAssignments = hasChildCaseAssignments();\n\n if (\n bAssignmentsForThisOperator ||\n bHasChildCaseAssignments ||\n isCaseWideLocalAction()\n ) {\n bHasAssignments = true;\n }\n\n return bHasAssignments;\n }\n\n\n\n function getActiveViewLabel() {\n const ourPConn = getPConnect();\n\n let activeActionLabel = \"\";\n\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n\n const caseActions = ourPConn.getValue(CASE_CONSTS.CASE_INFO_ACTIONS);\n const activeActionID = ourPConn.getValue(CASE_CONSTS.ACTIVE_ACTION_ID);\n const activeAction = caseActions.find(\n (action) => action.ID === activeActionID\n );\n if (activeAction) {\n activeActionLabel = activeAction.name;\n }\n return activeActionLabel;\n }\n\n\n // From WC SDK updateSelf - so do this in useEffect that's run only when the props change...\n\n useEffect(() => {\n const localPConn = arNewChildren[0].getPConnect();\n\n setBuildName(getBuildName());\n\n // routingInfo was added as component prop in populateAdditionalProps\n // let routingInfo = this.getComponentProp(\"routingInfo\");\n\n let loadingInfo: any;\n try {\n loadingInfo = thePConn.getLoadingStatus();\n }\n catch (ex) {\n // eslint-disable-next-line no-console\n console.error(`${thePConn.getComponentName()}: loadingInfo catch block`);\n }\n\n // let configProps = this.thePConn.resolveConfigProps(this.thePConn.getConfigProps());\n\n if (!loadingInfo) {\n // turn off spinner\n // this.psService.sendMessage(false);\n }\n\n const caseViewMode = thePConn.getValue(\"context_data.caseViewMode\");\n const { CASE_INFO: CASE_CONSTS } = pCoreConstants;\n if (caseViewMode && caseViewMode === \"review\") {\n setTimeout(() => {\n // updated for 8.7 - 30-Mar-2022\n const todoAssignments = getToDoAssignments(thePConn);\n if (todoAssignments && todoAssignments.length > 0) {\n setCaseInfoID(thePConn.getValue(CASE_CONSTS.CASE_INFO_ID));\n setTodoDatasource({ source: todoAssignments });\n }\n setShowTodo(true);\n setShowTodoList(false);\n }, 100);\n\n // in React, when cancel is called, somehow the constructor for flowContainer is called which\n // does init/add of containers. This mimics that\n initContainer();\n }\n else if (caseViewMode && caseViewMode === \"perform\") {\n // perform\n // debugger;\n setShowTodo(false);\n\n // this is different than Angular SDK, as we need to initContainer if root container reloaded\n if (window.sessionStorage.getItem(\"okToInitFlowContainer\") === \"true\") {\n initContainer();\n }\n }\n\n // if have caseMessage show message and end\n const theCaseMessages = thePConn.getValue(\"caseMessages\");\n\n if (theCaseMessages || !hasAssignments()) {\n\n // Temp fix for 8.7 change: confirmationNote no longer coming through in caseMessages$.\n // So, if we get here and caseMessages$ is empty, use default value in DX API response\n setCaseMessages(theCaseMessages || \"Thank you! The next step in this case has been routed appropriately.\");\n setHasCaseMessages(true);\n\n\n // publish this \"assignmentFinished\" for mashup, need to get approved as a standard\n PCore.getPubSubUtils().publish(\n \"assignmentFinished\");\n\n\n // debugger;\n setCheckSvg(Utils.getImageSrc(\"check\", PCore.getAssetLoader().getStaticServerUrl()));\n return;\n }\n else {\n // debugger;\n setHasCaseMessages(false);\n }\n\n\n // this check in routingInfo, mimic React to check and get the internals of the\n // flowContainer and force updates to pConnect/redux\n if (routingInfo && loadingInfo !== undefined) {\n\n // debugging/investigation help\n // console.log(`${thePConn.getComponentName()}: >>routingInfo: ${JSON.stringify(routingInfo)}`);\n\n const currentOrder = routingInfo.accessedOrder;\n const currentItems = routingInfo.items;\n const type = routingInfo.type;\n if (currentOrder && currentItems) { // JA - making more similar to React version\n const key = currentOrder[currentOrder.length - 1];\n\n // save off itemKey to be used for finishAssignment, etc.\n // debugger;\n setItemKey(key);\n\n if (currentOrder.length > 0 &&\n currentItems[key] &&\n currentItems[key].view &&\n type === \"single\" &&\n !Utils.isEmptyObject(currentItems[key].view)) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n\n config[\"options\"] = {\n context: currentItem.context,\n pageReference: context || localPConn.getPageReference(),\n hasForm: true,\n isFlowContainer: true,\n containerName: localPConn.getContainerName(),\n containerItemName: key,\n parentPageReference: localPConn.getPageReference()\n };\n\n const configObject = PCore.createPConnect(config);\n\n // Since we're setting an array, need to add in an appropriate key\n // to remove React warning.\n configObject[\"key\"] = config[\"options\"].parentPageReference;\n\n // keep track of these changes\n const theNewChildren: Array<Object> = [];\n theNewChildren.push(configObject);\n setArNewChildren(theNewChildren);\n\n // JEA - adapted from Nebula FlowContainer since we want to render children that are React components\n const root = createElement(createPConnectComponent(), configObject);\n setArNewChildrenAsReact([root]);\n\n const oWorkItem = configObject.getPConnect(); // was theNewChildren[0].getPConnect()\n const oWorkData = oWorkItem.getDataObject();\n\n\n // check if have oWorkData, there are times due to timing of state change, when this\n // may not be available\n if (oWorkData) {\n setContainerName(getActiveViewLabel() || oWorkData.caseInfo.assignments[0].name);\n }\n }\n }\n\n }\n\n\n }, [props]);\n\n const caseId = thePConn.getCaseSummary().content.pyID;\n const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments[0].urgency : \"\";\n const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());\n let instructionText = thePConn.getCaseSummary()?.assignments?.[0]?.instructions;\n if (instructionText === undefined) {\n instructionText = \"\";\n }\n\n return (\n <div style={{ textAlign: \"left\" }} id={buildName} className=\"psdk-flow-container-top\">\n {!bHasCaseMessages ?\n (!todo_showTodo) ?\n (!displayOnlyFA) ?\n <Card className={classes.root}>\n <CardHeader\n title={<Typography variant=\"h6\">{containerName}</Typography>}\n subheader={`Task in ${caseId} \\u2022 Priority ${urgency}`}\n avatar={\n <Avatar className={classes.avatar}>\n {operatorInitials}\n </Avatar>\n }\n ></CardHeader>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <Card className={classes.root}>\n <Typography variant=\"h6\">{containerName}</Typography>\n { instructionText !== '' ? <Typography variant=\"caption\">{instructionText}</Typography> : null }\n <MuiPickersUtilsProvider utils={DayjsUtils}>\n <Assignment getPConnect={getPConnect} itemKey={itemKey}>\n {arNewChildrenAsReact}\n </Assignment>\n </MuiPickersUtilsProvider>\n </Card>\n :\n <div>\n <ToDo getPConnect={getPConnect} caseInfoID={todo_caseInfoID} datasource={todo_datasource}\n showTodoList={todo_showTodoList} headerText={todo_headerText} type={TODO}\n context={todo_context} itemKey={itemKey}></ToDo>\n </div>\n :\n <div className={classes.alert}>\n <Alert severity=\"success\">{caseMessages}</Alert>\n </div>\n }\n </div>\n )\n}\n\nFlowContainer.defaultProps = {\n children: null,\n getPConnect: null,\n name: \"\",\n routingInfo: null,\n pageMessages: null\n};\n\nFlowContainer.propTypes = {\n // eslint-disable-next-line react/no-unused-prop-types\n children: PropTypes.node,\n getPConnect: PropTypes.func,\n // eslint-disable-next-line react/no-unused-prop-types\n name: PropTypes.string,\n routingInfo: PropTypes.objectOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n pageMessages: PropTypes.arrayOf(PropTypes.any)\n};\n"]}
|
|
@@ -7,7 +7,7 @@ import DialogTitle from '@material-ui/core/DialogTitle';
|
|
|
7
7
|
import { makeStyles } from '@material-ui/core/styles';
|
|
8
8
|
import createPConnectComponent from '../../../../bridge/react_pconnect';
|
|
9
9
|
import Assignment from '../../Assignment';
|
|
10
|
-
import CancelAlert from '../../../
|
|
10
|
+
import CancelAlert from '../../../field/CancelAlert';
|
|
11
11
|
import Utils from '../../../helpers/utils';
|
|
12
12
|
function buildName(pConnect, name = '') {
|
|
13
13
|
const context = pConnect.getContextName();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ModalViewContainer/ModalViewContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAC5D,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAI3C,SAAS,SAAS,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,OAAO,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,mBAAmB,CAAC,WAAW,EAAE,KAAK;IAC7C,MAAM,aAAa,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC/C,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,EAAE;QAChF,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;QAC7C,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpD,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC;KAC5B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BAAmB,EAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,IAC5D,KAAK,CACM;YACd,oBAAC,aAAa,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,IACzC,UAAU,CAAC,CAAC,CAAC,CACZ,oBAAC,UAAU,IAAC,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,UAC1E,oBAAoB,CACV,CACd,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACa,CACT;QACR,gBAAgB,IAAI,CACnB,oBAAC,WAAW,IACV,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,gBAAgB,EAC3B,gBAAgB,EAAE,gBAAgB,GAClC,CACH,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAElC,kBAAkB,CAAC,YAAY,GAAG;IAChC,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["import React, { useEffect, useRef, useState, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport isEqual from 'fast-deep-equal';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { makeStyles } from '@material-ui/core/styles';\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport Assignment from '../../Assignment';\nimport CancelAlert from '../../../forms/CancelAlert';\nimport Utils from '../../../helpers/utils';\n\ndeclare const PCore;\n\nfunction buildName(pConnect, name = '') {\n const context = pConnect.getContextName();\n return `${context}/${name}`;\n}\n\nfunction getKeyAndLatestItem(routinginfo, pConn) {\n const containerName = pConn.getContainerName();\n if (PCore.getContainerUtils().hasContainerItems(buildName(pConn, containerName))) {\n const { accessedOrder, items } = routinginfo;\n const key = accessedOrder[accessedOrder.length - 1];\n const latestItem = items[key];\n return { key, latestItem };\n }\n return {};\n}\n\nfunction getConfigObject(item, pConnect) {\n if (item) {\n const { context, view } = item;\n const config = {\n meta: view,\n options: {\n context,\n pageReference: view.config.context || pConnect.getPageReference(),\n hasForm: true\n }\n };\n return PCore.createPConnect(config);\n }\n return null;\n}\n\nconst useStyles = makeStyles(theme => ({\n dlgTitle: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(0)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n },\n dlgContent: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(0),\n marginBottom: theme.spacing(2)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n }\n}));\n\nconst ModalViewContainer = props => {\n const classes = useStyles();\n\n const routingInfoRef = useRef({});\n const { getPConnect, routingInfo, loadingInfo } = props;\n const pConn = getPConnect();\n const {\n CONTAINER_TYPE: { MULTIPLE },\n PUB_SUB_EVENTS: { EVENT_SHOW_CANCEL_ALERT }\n } = PCore.getConstants();\n const { subscribe } = PCore.getPubSubUtils();\n const [bShowModal, setShowModal] = useState(false);\n const [bSubscribed, setSubscribed] = useState(false);\n const [bShowCancelAlert, setShowCancelAlert] = useState(false);\n const [oCaseInfo, setOCaseInfo] = useState({});\n const [createdView, setCreatedView] = useState<any>(null);\n const [title, setTitle] = useState('');\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n const [itemKey, setItemKey] = useState('');\n const [cancelPConn, setCancelPConn] = useState(null);\n\n function showAlert(payload) {\n const { latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n const { isModalAction } = payload;\n\n /*\n If we are in create stage full page mode, created a new case and trying to click on cancel button\n it will show two alert dialogs which is not expected. Hence isModalAction flag to avoid that.\n */\n if (latestItem && isModalAction) {\n const configObject = getConfigObject(latestItem, pConn);\n setCancelPConn(configObject.getPConnect());\n setShowCancelAlert(true);\n }\n }\n\n function compareCaseInfoIsDifferent(oCurrentCaseInfo: Object): boolean {\n let bRet = false;\n\n // fast-deep-equal version\n if (isEqual !== undefined) {\n bRet = !isEqual(oCaseInfo, oCurrentCaseInfo);\n } else {\n const sCurrentCaseInfo = JSON.stringify(oCurrentCaseInfo);\n const sOldCaseInfo = JSON.stringify(oCaseInfo);\n // stringify compare version\n if (sCurrentCaseInfo !== sOldCaseInfo) {\n bRet = true;\n }\n }\n\n // if different, save off new case info\n if (bRet) {\n setOCaseInfo(JSON.parse(JSON.stringify(oCurrentCaseInfo)));\n }\n\n return bRet;\n }\n\n const updateAlertState = modalFlag => {\n setShowCancelAlert(false);\n setShowModal(modalFlag);\n };\n\n useEffect(() => {\n // Establish the necessary containers\n const containerMgr = pConn.getContainerManager();\n containerMgr.initializeContainers({ type: MULTIPLE });\n }, [MULTIPLE, pConn]);\n\n useEffect(() => {\n // Update routingInfoRef.current whenever routingInfo changes\n routingInfoRef.current = routingInfo;\n }, [routingInfo]);\n\n useEffect(() => {\n if (routingInfoRef.current && !loadingInfo) {\n const currentOrder = routingInfo.accessedOrder;\n\n if (undefined === currentOrder) {\n return;\n }\n\n const currentItems = routingInfo.items;\n\n const { key, latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n\n // console.log(`ModalViewContainer: key: ${key} latestItem: ${JSON.stringify(latestItem)}`);\n\n if (currentOrder.length > 0) {\n if (\n currentItems[key] &&\n currentItems[key].view &&\n !Utils.isEmptyObject(currentItems[key].view)\n ) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n config['options'] = {\n context: currentItem.context,\n hasForm: true,\n pageReference: context || pConn.getPageReference()\n };\n\n if (!bSubscribed) {\n setSubscribed(true);\n subscribe(\n EVENT_SHOW_CANCEL_ALERT,\n showAlert,\n EVENT_SHOW_CANCEL_ALERT /* Unique string for subscription */\n );\n }\n\n const configObject = PCore.createPConnect(config);\n\n // THIS is where the ViewContainer creates a View\n // The config has meta.config.type = \"view\"\n const newComp = configObject.getPConnect();\n // const newCompName = newComp.getComponentName();\n const caseInfo =\n newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo\n ? newComp.getDataObject().caseInfo\n : null;\n\n // console.log(`ModalViewContainer just created newComp: ${newCompName}`);\n\n // The metadata for pyDetails changed such that the \"template\": \"CaseView\"\n // is no longer a child of the created View but is in the created View's\n // config. So, we DON'T want to replace this.pConn$ since the created\n // component is a View (and not a ViewContainer). We now look for the\n // \"template\" type directly in the created component (newComp) and NOT\n // as a child of the newly created component.\n // console.log(`---> ModalViewContainer created new ${newCompName}`);\n\n // Use the newly created component (View) info but DO NOT replace\n // this ModalViewContainer's pConn$, etc.\n // Note that we're now using the newly created View's PConnect in the\n // ViewContainer HTML template to guide what's rendered similar to what\n // the React return of React.Fragment does\n\n // right now need to check caseInfo for changes, to trigger redraw, not getting\n // changes from angularPconnect except for first draw\n if (newComp && caseInfo && compareCaseInfoIsDifferent(caseInfo)) {\n setCreatedView(configObject);\n\n const { actionName } = latestItem;\n const theNewCaseInfo = newComp.getCaseInfo();\n const caseName = theNewCaseInfo.getName();\n const ID = theNewCaseInfo.getID();\n\n setTitle(actionName || `New ${caseName} (${ID})`);\n\n let arChildrenAsReact: Array<any> = [];\n\n if (newComp.getComponentName() === 'reference') {\n // Reference component doesn't have children. It can build the View we want.\n // The Reference component getPConnect is in configObject\n\n arChildrenAsReact.push(\n createElement(createPConnectComponent(), {\n ...configObject,\n key: `${caseName}-${ID}`\n })\n );\n } else {\n // This is the 8.6 implementation. Leaving it in for reference for now.\n // And create a similar array of the children as React components\n // passed to Assignment component when rendered\n arChildrenAsReact = newComp.getChildren().map(child => {\n // Use Case Summary ID as the React element's key\n const caseSummaryID = child.getPConnect().getCaseSummary().ID;\n return createElement(createPConnectComponent(), { ...child, key: caseSummaryID });\n });\n }\n\n if (arChildrenAsReact.length > 0) setArNewChildrenAsReact(arChildrenAsReact);\n\n setShowModal(true);\n\n // save off itemKey to be used for finishAssignment, etc.\n setItemKey(key);\n }\n }\n } else {\n if (bShowModal) {\n setShowModal(false);\n }\n if (!Utils.isEmptyObject(oCaseInfo)) {\n setOCaseInfo({});\n }\n }\n }\n });\n\n // function placeholderModalClose() {\n // // Intentionally a no-op. Similar behavior in other SDKs.\n // // Does NOT close the window. This forces the user to use\n // // the cancel or submit button to close the modal (which, in turn, gets the right\n // // Constellation code to run to clean up the containers, data, etc.)\n\n // // console.log(`ModalViewContainer: placeholderModalClose setting bShowModal to false`) setShowModal(false);\n // }\n\n // if (bShowModal) {\n // console.log(`ModalViewContainer about to show modal with`);\n // console.log(`--> createdView: ${createdView} createdView.getPConnect: ${typeof createdView.getPConnect}`);\n // console.log(`--> itemKey: ${itemKey}`);\n // console.log(`--> arNewChildrenAsReact: ${JSON.stringify(arNewChildrenAsReact)}`);\n // }\n\n return (\n <>\n <Dialog open={bShowModal} aria-labelledby='form-dialog-title'>\n <DialogTitle id='form-dialog-title' className={classes.dlgTitle}>\n {title}\n </DialogTitle>\n <DialogContent className={classes.dlgContent}>\n {bShowModal ? (\n <Assignment getPConnect={createdView.getPConnect} itemKey={itemKey} isInModal>\n {arNewChildrenAsReact}\n </Assignment>\n ) : (\n <></>\n )}\n </DialogContent>\n </Dialog>\n {bShowCancelAlert && (\n <CancelAlert\n pConn={cancelPConn}\n showAlert={bShowCancelAlert}\n updateAlertState={updateAlertState}\n />\n )}\n </>\n );\n};\n\nexport default ModalViewContainer;\n\nModalViewContainer.defaultProps = {\n getPConnect: null,\n loadingInfo: false,\n routingInfo: null\n};\n\nModalViewContainer.propTypes = {\n getPConnect: PropTypes.func,\n loadingInfo: PropTypes.bool,\n routingInfo: PropTypes.objectOf(PropTypes.any)\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ModalViewContainer.js","sourceRoot":"","sources":["../../../../../src/components/infra/Containers/ModalViewContainer/ModalViewContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAC5D,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAI3C,SAAS,SAAS,CAAC,QAAQ,EAAE,IAAI,GAAG,EAAE;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,OAAO,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,mBAAmB,CAAC,WAAW,EAAE,KAAK;IAC7C,MAAM,aAAa,GAAG,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC/C,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,EAAE;QAChF,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;QAC7C,MAAM,GAAG,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpD,MAAM,UAAU,GAAG,KAAK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IAAC,IAAI,EAAE,UAAU,qBAAkB,mBAAmB;YAC3D,oBAAC,WAAW,IAAC,EAAE,EAAC,mBAAmB,EAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,IAC5D,KAAK,CACM;YACd,oBAAC,aAAa,IAAC,SAAS,EAAE,OAAO,CAAC,UAAU,IACzC,UAAU,CAAC,CAAC,CAAC,CACZ,oBAAC,UAAU,IAAC,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,UAC1E,oBAAoB,CACV,CACd,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACa,CACT;QACR,gBAAgB,IAAI,CACnB,oBAAC,WAAW,IACV,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,gBAAgB,EAC3B,gBAAgB,EAAE,gBAAgB,GAClC,CACH,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAElC,kBAAkB,CAAC,YAAY,GAAG;IAChC,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;IAC3B,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC;CAC/C,CAAC","sourcesContent":["import React, { useEffect, useRef, useState, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport isEqual from 'fast-deep-equal';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport { makeStyles } from '@material-ui/core/styles';\nimport createPConnectComponent from '../../../../bridge/react_pconnect';\nimport Assignment from '../../Assignment';\nimport CancelAlert from '../../../field/CancelAlert';\nimport Utils from '../../../helpers/utils';\n\ndeclare const PCore;\n\nfunction buildName(pConnect, name = '') {\n const context = pConnect.getContextName();\n return `${context}/${name}`;\n}\n\nfunction getKeyAndLatestItem(routinginfo, pConn) {\n const containerName = pConn.getContainerName();\n if (PCore.getContainerUtils().hasContainerItems(buildName(pConn, containerName))) {\n const { accessedOrder, items } = routinginfo;\n const key = accessedOrder[accessedOrder.length - 1];\n const latestItem = items[key];\n return { key, latestItem };\n }\n return {};\n}\n\nfunction getConfigObject(item, pConnect) {\n if (item) {\n const { context, view } = item;\n const config = {\n meta: view,\n options: {\n context,\n pageReference: view.config.context || pConnect.getPageReference(),\n hasForm: true\n }\n };\n return PCore.createPConnect(config);\n }\n return null;\n}\n\nconst useStyles = makeStyles(theme => ({\n dlgTitle: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(0)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n },\n dlgContent: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n marginTop: theme.spacing(0),\n marginBottom: theme.spacing(2)\n // paddingLeft: theme.spacing(0),\n // paddingRight: theme.spacing(0),\n // paddingTop: theme.spacing(0),\n // paddingBottom: theme.spacing(0),\n }\n}));\n\nconst ModalViewContainer = props => {\n const classes = useStyles();\n\n const routingInfoRef = useRef({});\n const { getPConnect, routingInfo, loadingInfo } = props;\n const pConn = getPConnect();\n const {\n CONTAINER_TYPE: { MULTIPLE },\n PUB_SUB_EVENTS: { EVENT_SHOW_CANCEL_ALERT }\n } = PCore.getConstants();\n const { subscribe } = PCore.getPubSubUtils();\n const [bShowModal, setShowModal] = useState(false);\n const [bSubscribed, setSubscribed] = useState(false);\n const [bShowCancelAlert, setShowCancelAlert] = useState(false);\n const [oCaseInfo, setOCaseInfo] = useState({});\n const [createdView, setCreatedView] = useState<any>(null);\n const [title, setTitle] = useState('');\n const [arNewChildrenAsReact, setArNewChildrenAsReact] = useState<Array<any>>([]);\n const [itemKey, setItemKey] = useState('');\n const [cancelPConn, setCancelPConn] = useState(null);\n\n function showAlert(payload) {\n const { latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n const { isModalAction } = payload;\n\n /*\n If we are in create stage full page mode, created a new case and trying to click on cancel button\n it will show two alert dialogs which is not expected. Hence isModalAction flag to avoid that.\n */\n if (latestItem && isModalAction) {\n const configObject = getConfigObject(latestItem, pConn);\n setCancelPConn(configObject.getPConnect());\n setShowCancelAlert(true);\n }\n }\n\n function compareCaseInfoIsDifferent(oCurrentCaseInfo: Object): boolean {\n let bRet = false;\n\n // fast-deep-equal version\n if (isEqual !== undefined) {\n bRet = !isEqual(oCaseInfo, oCurrentCaseInfo);\n } else {\n const sCurrentCaseInfo = JSON.stringify(oCurrentCaseInfo);\n const sOldCaseInfo = JSON.stringify(oCaseInfo);\n // stringify compare version\n if (sCurrentCaseInfo !== sOldCaseInfo) {\n bRet = true;\n }\n }\n\n // if different, save off new case info\n if (bRet) {\n setOCaseInfo(JSON.parse(JSON.stringify(oCurrentCaseInfo)));\n }\n\n return bRet;\n }\n\n const updateAlertState = modalFlag => {\n setShowCancelAlert(false);\n setShowModal(modalFlag);\n };\n\n useEffect(() => {\n // Establish the necessary containers\n const containerMgr = pConn.getContainerManager();\n containerMgr.initializeContainers({ type: MULTIPLE });\n }, [MULTIPLE, pConn]);\n\n useEffect(() => {\n // Update routingInfoRef.current whenever routingInfo changes\n routingInfoRef.current = routingInfo;\n }, [routingInfo]);\n\n useEffect(() => {\n if (routingInfoRef.current && !loadingInfo) {\n const currentOrder = routingInfo.accessedOrder;\n\n if (undefined === currentOrder) {\n return;\n }\n\n const currentItems = routingInfo.items;\n\n const { key, latestItem } = getKeyAndLatestItem(routingInfoRef.current, pConn);\n\n // console.log(`ModalViewContainer: key: ${key} latestItem: ${JSON.stringify(latestItem)}`);\n\n if (currentOrder.length > 0) {\n if (\n currentItems[key] &&\n currentItems[key].view &&\n !Utils.isEmptyObject(currentItems[key].view)\n ) {\n const currentItem = currentItems[key];\n const rootView = currentItem.view;\n const { context } = rootView.config;\n const config = { meta: rootView };\n config['options'] = {\n context: currentItem.context,\n hasForm: true,\n pageReference: context || pConn.getPageReference()\n };\n\n if (!bSubscribed) {\n setSubscribed(true);\n subscribe(\n EVENT_SHOW_CANCEL_ALERT,\n showAlert,\n EVENT_SHOW_CANCEL_ALERT /* Unique string for subscription */\n );\n }\n\n const configObject = PCore.createPConnect(config);\n\n // THIS is where the ViewContainer creates a View\n // The config has meta.config.type = \"view\"\n const newComp = configObject.getPConnect();\n // const newCompName = newComp.getComponentName();\n const caseInfo =\n newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo\n ? newComp.getDataObject().caseInfo\n : null;\n\n // console.log(`ModalViewContainer just created newComp: ${newCompName}`);\n\n // The metadata for pyDetails changed such that the \"template\": \"CaseView\"\n // is no longer a child of the created View but is in the created View's\n // config. So, we DON'T want to replace this.pConn$ since the created\n // component is a View (and not a ViewContainer). We now look for the\n // \"template\" type directly in the created component (newComp) and NOT\n // as a child of the newly created component.\n // console.log(`---> ModalViewContainer created new ${newCompName}`);\n\n // Use the newly created component (View) info but DO NOT replace\n // this ModalViewContainer's pConn$, etc.\n // Note that we're now using the newly created View's PConnect in the\n // ViewContainer HTML template to guide what's rendered similar to what\n // the React return of React.Fragment does\n\n // right now need to check caseInfo for changes, to trigger redraw, not getting\n // changes from angularPconnect except for first draw\n if (newComp && caseInfo && compareCaseInfoIsDifferent(caseInfo)) {\n setCreatedView(configObject);\n\n const { actionName } = latestItem;\n const theNewCaseInfo = newComp.getCaseInfo();\n const caseName = theNewCaseInfo.getName();\n const ID = theNewCaseInfo.getID();\n\n setTitle(actionName || `New ${caseName} (${ID})`);\n\n let arChildrenAsReact: Array<any> = [];\n\n if (newComp.getComponentName() === 'reference') {\n // Reference component doesn't have children. It can build the View we want.\n // The Reference component getPConnect is in configObject\n\n arChildrenAsReact.push(\n createElement(createPConnectComponent(), {\n ...configObject,\n key: `${caseName}-${ID}`\n })\n );\n } else {\n // This is the 8.6 implementation. Leaving it in for reference for now.\n // And create a similar array of the children as React components\n // passed to Assignment component when rendered\n arChildrenAsReact = newComp.getChildren().map(child => {\n // Use Case Summary ID as the React element's key\n const caseSummaryID = child.getPConnect().getCaseSummary().ID;\n return createElement(createPConnectComponent(), { ...child, key: caseSummaryID });\n });\n }\n\n if (arChildrenAsReact.length > 0) setArNewChildrenAsReact(arChildrenAsReact);\n\n setShowModal(true);\n\n // save off itemKey to be used for finishAssignment, etc.\n setItemKey(key);\n }\n }\n } else {\n if (bShowModal) {\n setShowModal(false);\n }\n if (!Utils.isEmptyObject(oCaseInfo)) {\n setOCaseInfo({});\n }\n }\n }\n });\n\n // function placeholderModalClose() {\n // // Intentionally a no-op. Similar behavior in other SDKs.\n // // Does NOT close the window. This forces the user to use\n // // the cancel or submit button to close the modal (which, in turn, gets the right\n // // Constellation code to run to clean up the containers, data, etc.)\n\n // // console.log(`ModalViewContainer: placeholderModalClose setting bShowModal to false`) setShowModal(false);\n // }\n\n // if (bShowModal) {\n // console.log(`ModalViewContainer about to show modal with`);\n // console.log(`--> createdView: ${createdView} createdView.getPConnect: ${typeof createdView.getPConnect}`);\n // console.log(`--> itemKey: ${itemKey}`);\n // console.log(`--> arNewChildrenAsReact: ${JSON.stringify(arNewChildrenAsReact)}`);\n // }\n\n return (\n <>\n <Dialog open={bShowModal} aria-labelledby='form-dialog-title'>\n <DialogTitle id='form-dialog-title' className={classes.dlgTitle}>\n {title}\n </DialogTitle>\n <DialogContent className={classes.dlgContent}>\n {bShowModal ? (\n <Assignment getPConnect={createdView.getPConnect} itemKey={itemKey} isInModal>\n {arNewChildrenAsReact}\n </Assignment>\n ) : (\n <></>\n )}\n </DialogContent>\n </Dialog>\n {bShowCancelAlert && (\n <CancelAlert\n pConn={cancelPConn}\n showAlert={bShowCancelAlert}\n updateAlertState={updateAlertState}\n />\n )}\n </>\n );\n};\n\nexport default ModalViewContainer;\n\nModalViewContainer.defaultProps = {\n getPConnect: null,\n loadingInfo: false,\n routingInfo: null\n};\n\nModalViewContainer.propTypes = {\n getPConnect: PropTypes.func,\n loadingInfo: PropTypes.bool,\n routingInfo: PropTypes.objectOf(PropTypes.any)\n};\n"]}
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
// import { LazyMap as LazyComponentMap } from "../../components_map";
|
|
5
5
|
import { SdkComponentMap } from '../../../bridge/helpers/sdk_component_map';
|
|
6
6
|
import ErrorBoundary from '../ErrorBoundary';
|
|
7
|
-
import { getAllFields } from '../../
|
|
7
|
+
import { getAllFields } from '../../template/utils';
|
|
8
8
|
// Need to import any templates that we might render
|
|
9
9
|
import './View.css';
|
|
10
10
|
//
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,wDAAwD;AACxD,sEAAsE;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../src/components/infra/View/View.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,wDAAwD;AACxD,sEAAsE;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,oDAAoD;AAEpD,OAAO,YAAY,CAAC;AACpB,EAAE;AACF,qHAAqH;AACrH,uHAAuH;AACvH,+BAA+B;AAC/B,EAAE;AAEF,MAAM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ACZ,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;YACnC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACnC,MAAM;QAER;YACE,MAAM;KACT;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n// import { FieldGroup } from \"@pega/cosmos-react-core\";\n// import { LazyMap as LazyComponentMap } from \"../../components_map\";\n\nimport { SdkComponentMap } from '../../../bridge/helpers/sdk_component_map';\nimport ErrorBoundary from '../ErrorBoundary';\n\nimport { getAllFields } from '../../template/utils';\n\n// Need to import any templates that we might render\n\nimport './View.css';\n//\n// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with\n// Redux and creation/update of Redux containers and PConnect. Modifying this code could have undesireable results and\n// is totally at your own risk.\n//\n\nconst FORMTEMPLATES = ['OneColumn', 'TwoColumn', 'DefaultForm', 'WideNarrow', 'NarrowWide'];\n\nexport default function View(props) {\n const { children, template, getPConnect, mode } = props;\n let { label, showLabel = false } = props;\n\n // Get the inherited props from the parent to determine label settings. For 8.6, this is only for embedded data form views\n // Putting this logic here instead of copy/paste in every Form template index.js\n\n const inheritedProps = getPConnect().getInheritedProps();\n label = inheritedProps.label || label;\n showLabel = inheritedProps.showLabel || showLabel;\n\n const isEmbeddedDataView = mode === 'editable'; // would be better to check the reference child for `context` attribute if possible\n if (isEmbeddedDataView && showLabel === undefined) {\n showLabel = true;\n }\n\n // As long as the template is defined in the dependencies of the view\n // it will be loaded, otherwise fall back to single column\n // JA - React SDK not using LazyComponentMap yet\n if (template /* && LazyComponentMap[template] */) {\n // const ViewTemplate = LazyComponentMap[template];\n let ViewTemplate: any;\n\n if (SdkComponentMap) {\n // This is the node_modules version of react_pconnect!\n const theLocalComponent = SdkComponentMap.getLocalComponentMap()[template];\n if ( theLocalComponent !== undefined) {\n // eslint-disable-next-line no-console\n console.log(`View component found ${template}: Local`);\n ViewTemplate = theLocalComponent\n } else {\n const thePegaProvidedComponent = SdkComponentMap.getPegaProvidedComponentMap()[template];\n if ( thePegaProvidedComponent !== undefined) {\n // console.log(`View component found ${template}: Pega-provided`);\n ViewTemplate = thePegaProvidedComponent;\n } else {\n // eslint-disable-next-line no-console\n console.error(`View component can't find template type ${template}`);\n ViewTemplate = ErrorBoundary;\n }\n }\n\n if (template === \"ListView\") {\n // special case for ListView - add in a prop\n const bInForm = true;\n props = { ...props, bInForm};\n }\n } else {\n\n // eslint-disable-next-line no-console\n console.warn(`View: SdkComponentMap expected but not found.`)\n\n // eslint-disable-next-line no-console\n console.error(`View: Trying to render an unknown template: ${template}`);\n\n }\n\n // for debugging/investigation\n // console.log(`View rendering template: ${template}`);\n\n // spreading because all props should go to the template\n let RenderedTemplate = <ViewTemplate {...props}>{children}</ViewTemplate>;\n\n if (FORMTEMPLATES.includes(template) && showLabel) {\n // Original:\n // RenderedTemplate = (\n // <FieldGroup name={label} style={{ marginBlockStart: \"1rem\" }}>\n // {RenderedTemplate}\n // </FieldGroup>\n // );\n RenderedTemplate = (\n <div\n data-name='RenderedTemplate'\n data-template-type={template}\n /* name */ id='label'\n style={{ marginBlockStart: '1rem' }}\n className='grid-column'\n >\n {RenderedTemplate}\n </div>\n );\n }\n\n return (\n <div className='grid-column'>\n {showLabel && template !== 'SubTabs' && template !== 'SimpleTable' && (\n <div className='template-title-container'>\n <span>{label}</span>\n </div>\n )}\n {RenderedTemplate}\n </div>\n );\n }\n\n // debugging/investigation help\n // console.log(`View about to render React.Fragment for children: ${children}`);\n\n if (children) {\n return <>{children}</>;\n } else {\n return <div id='View'>View has no children.</div>;\n }\n}\n\nView.defaultProps = {\n label: undefined,\n showLabel: undefined,\n mode: undefined\n};\n\nView.propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.array\n ]) /* array might be empty */,\n template: PropTypes.string /* .isRequired */,\n getPConnect: PropTypes.func.isRequired,\n label: PropTypes.string,\n showLabel: PropTypes.bool,\n mode: PropTypes.string,\n title: PropTypes.string\n};\n\n// Adapted from Nebula/Constellation to add in additional props for some templates\nView.additionalProps = (state, getPConnect) => {\n const thePConn = getPConnect();\n const { template } = thePConn.getConfigProps();\n\n let propObj = {};\n let allFields = {};\n\n switch (template) {\n case 'CaseSummary':\n allFields = getAllFields(thePConn);\n // eslint-disable-next-line no-case-declarations\n const unresFields = {\n primaryFields: allFields[0],\n secondaryFields: allFields[1]\n };\n propObj = thePConn.resolveConfigProps(unresFields);\n break;\n\n case 'Details':\n allFields = getAllFields(thePConn);\n propObj = { fields: allFields[0] };\n break;\n\n default:\n break;\n }\n\n return propObj;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../../src/components/template/AppShell/AppShell.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAenC,OAAO,gBAAgB,CAAC;AAyBxB,iBAAwB,QAAQ,CAAC,KAAK,KAAA,eA0XrC;kBA1XuB,QAAQ;;;;;;;;;;;;;;eAAR,QAAQ"}
|