@pega/react-sdk-components 0.23.12 → 0.23.14
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 +39 -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/helpers/simpleTableHelpers.d.ts.map +1 -0
- package/lib/components/helpers/simpleTableHelpers.js +306 -0
- package/lib/components/helpers/simpleTableHelpers.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 +507 -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/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 +0 -507
- 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 +0 -306
- 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/SimpleTable → helpers}/simpleTableHelpers.d.ts +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/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}/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,370 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-boolean-value */
|
|
2
|
+
import { Button } from '@material-ui/core';
|
|
3
|
+
import React, { useState, useEffect } from 'react';
|
|
4
|
+
import { buildFilePropsFromResponse, getIconFromFileType, validateMaxSize, getIconForAttachment } from '../../helpers/attachmentHelpers';
|
|
5
|
+
import './Attachment.css';
|
|
6
|
+
import SummaryList from '../SummaryList';
|
|
7
|
+
import { CircularProgress } from "@material-ui/core";
|
|
8
|
+
import download from "downloadjs";
|
|
9
|
+
function getCurrentAttachmentsList(context) {
|
|
10
|
+
return PCore.getStoreValue('.attachmentsList', 'context_data', context) || [];
|
|
11
|
+
}
|
|
12
|
+
export default function Attachment(props) {
|
|
13
|
+
const { value, getPConnect, label } = props;
|
|
14
|
+
/* this is a temporary fix because required is supposed to be passed as a boolean and NOT as a string */
|
|
15
|
+
let { required, disabled } = props;
|
|
16
|
+
[required, disabled] = [required, disabled].map(prop => prop === true || (typeof prop === 'string' && prop === 'true'));
|
|
17
|
+
let arFileList$ = [];
|
|
18
|
+
const pConn = getPConnect();
|
|
19
|
+
let fileTemp = {};
|
|
20
|
+
let categoryName = '';
|
|
21
|
+
if (value && value.pyCategoryName) {
|
|
22
|
+
categoryName = value.pyCategoryName;
|
|
23
|
+
}
|
|
24
|
+
let valueRef = pConn.getStateProps().value;
|
|
25
|
+
valueRef = valueRef.indexOf('.') === 0 ? valueRef.substring(1) : valueRef;
|
|
26
|
+
const [file, setFile] = useState(fileTemp);
|
|
27
|
+
const fileDownload = (data, fileName, ext) => {
|
|
28
|
+
const fileData = ext ? `${fileName}.${ext}` : fileName;
|
|
29
|
+
download(atob(data), fileData);
|
|
30
|
+
};
|
|
31
|
+
function _downloadFileFromList(fileObj) {
|
|
32
|
+
PCore.getAttachmentUtils()
|
|
33
|
+
.downloadAttachment(fileObj.pzInsKey, pConn.getContextName())
|
|
34
|
+
.then((content) => {
|
|
35
|
+
const extension = fileObj.pyAttachName.split(".").pop();
|
|
36
|
+
fileDownload(content.data, fileObj.pyFileName, extension);
|
|
37
|
+
})
|
|
38
|
+
.catch(() => { });
|
|
39
|
+
}
|
|
40
|
+
function setNewFiles(arFiles) {
|
|
41
|
+
let index = 0;
|
|
42
|
+
for (const item of arFiles) {
|
|
43
|
+
if (!validateMaxSize(item, 5)) {
|
|
44
|
+
item.error = true;
|
|
45
|
+
item.meta = "File is too big. Max allowed size is 5MB.";
|
|
46
|
+
}
|
|
47
|
+
item.mimeType = item.type;
|
|
48
|
+
item.icon = getIconFromFileType(item.type);
|
|
49
|
+
item.ID = `${new Date().getTime()}I${index}`;
|
|
50
|
+
index += 1;
|
|
51
|
+
}
|
|
52
|
+
return arFiles;
|
|
53
|
+
}
|
|
54
|
+
function getFiles(arFiles) {
|
|
55
|
+
return setNewFiles(arFiles);
|
|
56
|
+
}
|
|
57
|
+
function getNewListUtilityItemProps({ att, cancelFile, downloadFile, deleteFile, removeFile }) {
|
|
58
|
+
let actions;
|
|
59
|
+
if (att.progress && att.progress !== 100) {
|
|
60
|
+
actions = [
|
|
61
|
+
{
|
|
62
|
+
id: `Cancel-${att.ID}`,
|
|
63
|
+
text: "Cancel",
|
|
64
|
+
icon: "times",
|
|
65
|
+
onClick: cancelFile
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
else if (att.links) {
|
|
70
|
+
const isFile = att.type === "FILE";
|
|
71
|
+
const ID = att.ID.replace(/\s/gi, "");
|
|
72
|
+
const actionsMap = new Map([
|
|
73
|
+
[
|
|
74
|
+
"download",
|
|
75
|
+
{
|
|
76
|
+
id: `download-${ID}`,
|
|
77
|
+
text: isFile ? "Download" : "Open",
|
|
78
|
+
icon: isFile ? "download" : "open",
|
|
79
|
+
onClick: downloadFile
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
"delete",
|
|
84
|
+
{
|
|
85
|
+
id: `Delete-${ID}`,
|
|
86
|
+
text: "Delete",
|
|
87
|
+
icon: "trash",
|
|
88
|
+
onClick: deleteFile
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
]);
|
|
92
|
+
actions = [];
|
|
93
|
+
actionsMap.forEach((action, actionKey) => {
|
|
94
|
+
if (att.links[actionKey]) {
|
|
95
|
+
actions.push(action);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
else if (att.error) {
|
|
100
|
+
actions = [
|
|
101
|
+
{
|
|
102
|
+
id: `Remove-${att.ID}`,
|
|
103
|
+
text: "Remove",
|
|
104
|
+
icon: "trash",
|
|
105
|
+
onClick: removeFile
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
id: att.ID,
|
|
111
|
+
visual: {
|
|
112
|
+
icon: getIconForAttachment(att),
|
|
113
|
+
progress: att.progress === 100 ? undefined : att.progress,
|
|
114
|
+
},
|
|
115
|
+
primary: {
|
|
116
|
+
type: att.type,
|
|
117
|
+
name: att.error ? att.fileName : att.name,
|
|
118
|
+
icon: "trash",
|
|
119
|
+
click: removeFile,
|
|
120
|
+
},
|
|
121
|
+
secondary: {
|
|
122
|
+
text: att.meta,
|
|
123
|
+
error: att.error
|
|
124
|
+
},
|
|
125
|
+
actions
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
;
|
|
129
|
+
const onFileAdded = (event) => {
|
|
130
|
+
const addedFile = event.target.files[0];
|
|
131
|
+
setFile({
|
|
132
|
+
props: {
|
|
133
|
+
name: addedFile.name,
|
|
134
|
+
icon: getIconFromFileType(addedFile.type),
|
|
135
|
+
},
|
|
136
|
+
inProgress: true
|
|
137
|
+
});
|
|
138
|
+
const arFiles$ = getFiles(event.target.files);
|
|
139
|
+
const myFiles = Array.from(arFiles$);
|
|
140
|
+
const onUploadProgress = () => { };
|
|
141
|
+
const errorHandler = (isFetchCanceled) => {
|
|
142
|
+
return (error) => {
|
|
143
|
+
if (!isFetchCanceled(error)) {
|
|
144
|
+
let uploadFailMsg = pConn.getLocalizedValue('Something went wrong');
|
|
145
|
+
if (error.response && error.response.data && error.response.data.errorDetails) {
|
|
146
|
+
uploadFailMsg = pConn.getLocalizedValue(error.response.data.errorDetails[0].localizedValue);
|
|
147
|
+
}
|
|
148
|
+
myFiles[0].meta = uploadFailMsg;
|
|
149
|
+
myFiles[0].error = true;
|
|
150
|
+
myFiles[0].fileName = pConn.getLocalizedValue('Unable to upload file');
|
|
151
|
+
arFileList$ = myFiles.map((att) => {
|
|
152
|
+
return getNewListUtilityItemProps({
|
|
153
|
+
att,
|
|
154
|
+
downloadFile: null,
|
|
155
|
+
cancelFile: null,
|
|
156
|
+
deleteFile: null,
|
|
157
|
+
removeFile: null
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
setFile((current) => {
|
|
161
|
+
return {
|
|
162
|
+
...current,
|
|
163
|
+
props: {
|
|
164
|
+
...current.props,
|
|
165
|
+
arFileList$
|
|
166
|
+
},
|
|
167
|
+
inProgress: false,
|
|
168
|
+
attachmentUploaded: true,
|
|
169
|
+
showMenuIcon: false
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
throw error;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
PCore.getAttachmentUtils()
|
|
177
|
+
.uploadAttachment(myFiles[0], onUploadProgress, errorHandler, pConn.getContextName())
|
|
178
|
+
.then((fileRes) => {
|
|
179
|
+
let reqObj;
|
|
180
|
+
if (PCore.getPCoreVersion()?.includes('8.7')) {
|
|
181
|
+
reqObj = {
|
|
182
|
+
type: "File",
|
|
183
|
+
attachmentFieldName: valueRef,
|
|
184
|
+
category: categoryName,
|
|
185
|
+
ID: fileRes.ID
|
|
186
|
+
};
|
|
187
|
+
pConn.attachmentsInfo = reqObj;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
reqObj = {
|
|
191
|
+
type: "File",
|
|
192
|
+
label: valueRef,
|
|
193
|
+
category: categoryName,
|
|
194
|
+
handle: fileRes.ID,
|
|
195
|
+
ID: fileRes.clientFileID
|
|
196
|
+
};
|
|
197
|
+
const currentAttachmentList = getCurrentAttachmentsList(pConn.getContextName()).filter((f) => f.label !== valueRef);
|
|
198
|
+
PCore.getStateUtils().updateState(pConn.getContextName(), 'attachmentsList', [...currentAttachmentList, reqObj], {
|
|
199
|
+
pageReference: 'context_data',
|
|
200
|
+
isArrayDeepMerge: false
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
const fieldName = pConn.getStateProps().value;
|
|
204
|
+
const context = pConn.getContextName();
|
|
205
|
+
PCore.getMessageManager().clearMessages({
|
|
206
|
+
type: PCore.getConstants().MESSAGES.MESSAGES_TYPE_ERROR,
|
|
207
|
+
property: fieldName,
|
|
208
|
+
pageReference: pConn.getPageReference(),
|
|
209
|
+
context
|
|
210
|
+
});
|
|
211
|
+
myFiles[0].meta = "Uploaded Successfully";
|
|
212
|
+
arFileList$ = myFiles.map((att) => {
|
|
213
|
+
return getNewListUtilityItemProps({
|
|
214
|
+
att,
|
|
215
|
+
downloadFile: null,
|
|
216
|
+
cancelFile: null,
|
|
217
|
+
deleteFile: null,
|
|
218
|
+
removeFile: null
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
setFile((current) => {
|
|
222
|
+
return {
|
|
223
|
+
...current,
|
|
224
|
+
props: {
|
|
225
|
+
...current.props,
|
|
226
|
+
arFileList$
|
|
227
|
+
},
|
|
228
|
+
inProgress: false,
|
|
229
|
+
attachmentUploaded: true,
|
|
230
|
+
showMenuIcon: false
|
|
231
|
+
};
|
|
232
|
+
});
|
|
233
|
+
})
|
|
234
|
+
.catch(() => {
|
|
235
|
+
// just catching the rethrown error at uploadAttachment
|
|
236
|
+
// to handle Unhandled rejections
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
function _removeFileFromList(item, list) {
|
|
240
|
+
const arFileList = file.props ? file.props.arFileList$ : list;
|
|
241
|
+
const fileIndex = arFileList.findIndex(element => element?.id === item?.id);
|
|
242
|
+
if (PCore.getPCoreVersion()?.includes('8.7')) {
|
|
243
|
+
if (value) {
|
|
244
|
+
pConn.attachmentsInfo = {
|
|
245
|
+
type: "File",
|
|
246
|
+
attachmentFieldName: valueRef,
|
|
247
|
+
delete: true
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
if (fileIndex > -1) {
|
|
251
|
+
arFileList.splice(parseInt(fileIndex, 10), 1);
|
|
252
|
+
}
|
|
253
|
+
;
|
|
254
|
+
setFile((current) => {
|
|
255
|
+
return {
|
|
256
|
+
...current,
|
|
257
|
+
props: {
|
|
258
|
+
...current.props,
|
|
259
|
+
arFileList
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
const attachmentsList = [];
|
|
266
|
+
const currentAttachmentList = getCurrentAttachmentsList(pConn.getContextName()).filter((f) => f.label !== valueRef);
|
|
267
|
+
if (value && value.pxResults && +value.pyCount > 0) {
|
|
268
|
+
const deletedFile = {
|
|
269
|
+
type: "File",
|
|
270
|
+
label: valueRef,
|
|
271
|
+
delete: true,
|
|
272
|
+
responseProps: {
|
|
273
|
+
pzInsKey: arFileList[fileIndex].id
|
|
274
|
+
},
|
|
275
|
+
};
|
|
276
|
+
// updating the redux store to help form-handler in passing the data to delete the file from server
|
|
277
|
+
PCore.getStateUtils().updateState(pConn.getContextName(), 'attachmentsList', [...currentAttachmentList, deletedFile], {
|
|
278
|
+
pageReference: 'context_data',
|
|
279
|
+
isArrayDeepMerge: false
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
PCore.getStateUtils().updateState(pConn.getContextName(), 'attachmentsList', [...currentAttachmentList, ...attachmentsList], {
|
|
284
|
+
pageReference: 'context_data',
|
|
285
|
+
isArrayDeepMerge: false
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
if (fileIndex > -1) {
|
|
289
|
+
arFileList.splice(parseInt(fileIndex, 10), 1);
|
|
290
|
+
}
|
|
291
|
+
;
|
|
292
|
+
setFile((current) => {
|
|
293
|
+
return {
|
|
294
|
+
...current,
|
|
295
|
+
props: {
|
|
296
|
+
...current.props,
|
|
297
|
+
arFileList
|
|
298
|
+
},
|
|
299
|
+
};
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
useEffect(() => {
|
|
304
|
+
if (value && value.pxResults && +value.pyCount > 0) {
|
|
305
|
+
fileTemp = buildFilePropsFromResponse(value.pxResults[0]);
|
|
306
|
+
if (fileTemp.responseProps) {
|
|
307
|
+
if (!pConn.attachmentsInfo) {
|
|
308
|
+
pConn.attachmentsInfo = {
|
|
309
|
+
type: "File",
|
|
310
|
+
attachmentFieldName: valueRef,
|
|
311
|
+
category: categoryName
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
if (fileTemp.responseProps.pzInsKey && !fileTemp.responseProps.pzInsKey.includes("temp")) {
|
|
315
|
+
fileTemp.props.type = fileTemp.responseProps.pyMimeFileExtension;
|
|
316
|
+
fileTemp.props.mimeType = fileTemp.responseProps.pyMimeFileExtension;
|
|
317
|
+
fileTemp.props.ID = fileTemp.responseProps.pzInsKey;
|
|
318
|
+
// create the actions for the "more" menu on the attachment
|
|
319
|
+
const arMenuList = [];
|
|
320
|
+
let oMenu = {};
|
|
321
|
+
oMenu.icon = "download";
|
|
322
|
+
oMenu.text = "Download";
|
|
323
|
+
oMenu.onClick = () => { _downloadFileFromList(value.pxResults[0]); };
|
|
324
|
+
arMenuList.push(oMenu);
|
|
325
|
+
oMenu = {};
|
|
326
|
+
oMenu.icon = "trash";
|
|
327
|
+
oMenu.text = "Delete";
|
|
328
|
+
oMenu.onClick = () => { _removeFileFromList(arFileList$[0], arFileList$); };
|
|
329
|
+
arMenuList.push(oMenu);
|
|
330
|
+
arFileList$.push(getNewListUtilityItemProps({
|
|
331
|
+
att: fileTemp.props,
|
|
332
|
+
downloadFile: null,
|
|
333
|
+
cancelFile: null,
|
|
334
|
+
deleteFile: null,
|
|
335
|
+
removeFile: null
|
|
336
|
+
}));
|
|
337
|
+
arFileList$[0].actions = arMenuList;
|
|
338
|
+
setFile((current) => {
|
|
339
|
+
return {
|
|
340
|
+
...current,
|
|
341
|
+
props: {
|
|
342
|
+
...current.props,
|
|
343
|
+
arFileList$
|
|
344
|
+
},
|
|
345
|
+
inProgress: false,
|
|
346
|
+
attachmentUploaded: true,
|
|
347
|
+
showMenuIcon: true
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}, [""]);
|
|
354
|
+
let content = (React.createElement("div", { className: 'file-div' },
|
|
355
|
+
file.inProgress && (React.createElement("div", { className: "progress-div" },
|
|
356
|
+
React.createElement(CircularProgress, null))),
|
|
357
|
+
React.createElement("div", { hidden: true, id: "attachment-ID" }, valueRef),
|
|
358
|
+
React.createElement("label", { htmlFor: valueRef },
|
|
359
|
+
React.createElement("input", { style: { display: 'none' }, id: valueRef, name: 'upload-photo', type: 'file', required: required, onChange: onFileAdded }),
|
|
360
|
+
React.createElement(Button, { variant: 'outlined', color: 'primary', component: "span" }, "Upload file"))));
|
|
361
|
+
if (file && file.attachmentUploaded && file.props.arFileList$ && file.props.arFileList$.length > 0) {
|
|
362
|
+
content = (React.createElement("div", null,
|
|
363
|
+
file.showMenuIcon && (React.createElement(SummaryList, { "arItems$": file.props.arFileList$, "menuIconOverrideAction$": _removeFileFromList })),
|
|
364
|
+
!file.showMenuIcon && (React.createElement(SummaryList, { "menuIconOverride$": 'trash', "arItems$": file.props.arFileList$, "menuIconOverrideAction$": _removeFileFromList }))));
|
|
365
|
+
}
|
|
366
|
+
return (React.createElement("div", { className: 'file-upload-container' },
|
|
367
|
+
React.createElement("span", { className: 'label' }, label),
|
|
368
|
+
React.createElement("section", null, content)));
|
|
369
|
+
}
|
|
370
|
+
//# sourceMappingURL=Attachment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attach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CACN,CACP,CAAC;IAEF,IAAI,IAAI,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAClG,OAAO,GAAG,CACR;YACI,IAAI,CAAC,YAAY,IAAI,CAAC,oBAAC,WAAW,gBAAW,IAAI,CAAC,KAAK,CAAC,WAAW,6BAA2B,mBAAmB,GAAgB,CAAC;YAClI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,oBAAC,WAAW,yBAAmB,OAAO,cAAW,IAAI,CAAC,KAAK,CAAC,WAAW,6BAA2B,mBAAmB,GAAgB,CAAC,CAC3J,CAEP,CAAC;KACH;IAED,OAAO,CACL,6BAAK,SAAS,EAAC,uBAAuB;QACpC,8BAAM,SAAS,EAAC,OAAO,IAAE,KAAK,CAAQ;QACtC,qCAAU,OAAO,CAAW,CACxB,CACP,CAAC;AACJ,CAAC","sourcesContent":["/* eslint-disable react/jsx-boolean-value */\n\nimport { Button } from '@material-ui/core';\nimport React, { useState, useEffect } from 'react';\nimport { buildFilePropsFromResponse, getIconFromFileType, validateMaxSize, getIconForAttachment } from '../../helpers/attachmentHelpers';\nimport './Attachment.css';\nimport SummaryList from '../SummaryList'\nimport { CircularProgress } from \"@material-ui/core\";\nimport download from \"downloadjs\";\n\ndeclare const PCore: any;\n\nfunction getCurrentAttachmentsList(context) {\n return PCore.getStoreValue('.attachmentsList', 'context_data', context) || [];\n}\n\nexport default function Attachment(props) {\n const {value, getPConnect, label} = props;\n /* this is a temporary fix because required is supposed to be passed as a boolean and NOT as a string */\n let { required, disabled } = props;\n [required, disabled] = [required, disabled].map(\n prop => prop === true || (typeof prop === 'string' && prop === 'true')\n );\n let arFileList$: Array<any> = [];\n const pConn = getPConnect();\n\n let fileTemp: any = {};\n\n let categoryName = '';\n if (value && value.pyCategoryName) {\n categoryName = value.pyCategoryName;\n }\n\n let valueRef = pConn.getStateProps().value;\n valueRef = valueRef.indexOf('.') === 0 ? valueRef.substring(1) : valueRef;\n const [file, setFile] = useState(fileTemp);\n\n const fileDownload = (data, fileName, ext) => {\n const fileData = ext ? `${fileName}.${ext}` : fileName;\n download(atob(data), fileData);\n };\n\n function _downloadFileFromList(fileObj: any) {\n PCore.getAttachmentUtils()\n .downloadAttachment(fileObj.pzInsKey, pConn.getContextName())\n .then((content) => {\n const extension = fileObj.pyAttachName.split(\".\").pop();\n fileDownload(content.data, fileObj.pyFileName, extension);\n })\n .catch(() => {});\n }\n\n function setNewFiles(arFiles) {\n let index = 0;\n for (const item of arFiles) {\n if (!validateMaxSize(item, 5)) {\n item.error = true;\n item.meta = \"File is too big. Max allowed size is 5MB.\";\n }\n item.mimeType = item.type;\n item.icon = getIconFromFileType(item.type);\n item.ID = `${new Date().getTime()}I${index}`;\n index+=1;\n }\n return arFiles;\n }\n\n function getFiles(arFiles: Array<any>) {\n return setNewFiles(arFiles);\n }\n\n function getNewListUtilityItemProps({\n att,\n cancelFile,\n downloadFile,\n deleteFile,\n removeFile\n }) {\n let actions;\n if (att.progress && att.progress !== 100) {\n actions = [\n {\n id: `Cancel-${att.ID}`,\n text: \"Cancel\",\n icon: \"times\",\n onClick: cancelFile\n }\n ];\n } else if (att.links) {\n const isFile = att.type === \"FILE\";\n const ID = att.ID.replace(/\\s/gi, \"\");\n const actionsMap = new Map([\n [\n \"download\",\n {\n id: `download-${ID}`,\n text: isFile ? \"Download\" : \"Open\",\n icon: isFile ? \"download\" : \"open\",\n onClick: downloadFile\n }\n ],\n [\n \"delete\",\n {\n id: `Delete-${ID}`,\n text: \"Delete\",\n icon: \"trash\",\n onClick: deleteFile\n }\n ]\n ]);\n actions = [];\n actionsMap.forEach((action, actionKey) => {\n if (att.links[actionKey]) {\n actions.push(action);\n }\n });\n } else if (att.error) {\n actions = [\n {\n id: `Remove-${att.ID}`,\n text: \"Remove\",\n icon: \"trash\",\n onClick: removeFile\n }\n ];\n }\n return {\n id: att.ID,\n visual: {\n icon: getIconForAttachment(att),\n progress: att.progress === 100 ? undefined: att.progress,\n },\n primary: {\n type: att.type,\n name: att.error ? att.fileName : att.name,\n icon: \"trash\",\n click: removeFile,\n },\n secondary: {\n text: att.meta,\n error: att.error\n },\n actions\n };\n };\n\n const onFileAdded = (event) => {\n const addedFile = event.target.files[0];\n setFile({\n props: {\n name: addedFile.name,\n icon: getIconFromFileType(addedFile.type),\n },\n inProgress: true\n });\n const arFiles$ = getFiles(event.target.files);\n const myFiles: any = Array.from(arFiles$);\n\n const onUploadProgress = () => {};\n\n const errorHandler = (isFetchCanceled) => {\n return (error) => {\n if (!isFetchCanceled(error)) {\n let uploadFailMsg = pConn.getLocalizedValue('Something went wrong');\n if (error.response && error.response.data && error.response.data.errorDetails) {\n uploadFailMsg = pConn.getLocalizedValue(error.response.data.errorDetails[0].localizedValue);\n }\n myFiles[0].meta = uploadFailMsg;\n myFiles[0].error = true;\n myFiles[0].fileName = pConn.getLocalizedValue('Unable to upload file');\n arFileList$ = myFiles.map((att) => {\n return getNewListUtilityItemProps({\n att,\n downloadFile: null,\n cancelFile: null,\n deleteFile: null,\n removeFile: null\n });\n });\n setFile((current) => {\n return {\n ...current,\n props: {\n ...current.props,\n arFileList$\n },\n inProgress: false,\n attachmentUploaded: true,\n showMenuIcon: false\n };\n });\n }\n throw error;\n };\n };\n\n PCore.getAttachmentUtils()\n .uploadAttachment(\n myFiles[0],\n onUploadProgress,\n errorHandler,\n pConn.getContextName()\n )\n .then((fileRes) => {\n let reqObj;\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n reqObj = {\n type: \"File\",\n attachmentFieldName: valueRef,\n category: categoryName,\n ID: fileRes.ID\n };\n pConn.attachmentsInfo = reqObj;\n } else {\n reqObj = {\n type: \"File\",\n label: valueRef,\n category: categoryName,\n handle: fileRes.ID,\n ID: fileRes.clientFileID\n };\n const currentAttachmentList = getCurrentAttachmentsList(pConn.getContextName()).filter(\n (f) => f.label !== valueRef\n );\n PCore.getStateUtils().updateState(\n pConn.getContextName(),\n 'attachmentsList',\n [...currentAttachmentList, reqObj],\n {\n pageReference: 'context_data',\n isArrayDeepMerge: false\n }\n );\n }\n const fieldName = pConn.getStateProps().value;\n const context = pConn.getContextName();\n\n PCore.getMessageManager().clearMessages({\n type: PCore.getConstants().MESSAGES.MESSAGES_TYPE_ERROR,\n property: fieldName,\n pageReference: pConn.getPageReference(),\n context\n });\n myFiles[0].meta = \"Uploaded Successfully\";\n\n arFileList$ = myFiles.map((att) => {\n return getNewListUtilityItemProps({\n att,\n downloadFile: null,\n cancelFile: null,\n deleteFile: null,\n removeFile: null\n });\n });\n setFile((current) => {\n return {\n ...current,\n props: {\n ...current.props,\n arFileList$\n },\n inProgress: false,\n attachmentUploaded: true,\n showMenuIcon: false\n };\n });\n })\n\n .catch(() => {\n // just catching the rethrown error at uploadAttachment\n // to handle Unhandled rejections\n });\n };\n\n function _removeFileFromList(item: any, list) {\n const arFileList = file.props ? file.props.arFileList$ : list;\n const fileIndex = arFileList.findIndex(element => element?.id === item?.id);\n if (PCore.getPCoreVersion()?.includes('8.7')) {\n if (value) {\n pConn.attachmentsInfo = {\n type: \"File\",\n attachmentFieldName: valueRef,\n delete: true\n };\n }\n if (fileIndex > -1) { arFileList.splice(parseInt(fileIndex, 10), 1) };\n setFile((current) => {\n return {\n ...current,\n props: {\n ...current.props,\n arFileList\n },\n };\n });\n } else {\n const attachmentsList = [];\n const currentAttachmentList = getCurrentAttachmentsList(pConn.getContextName()).filter(\n (f) => f.label !== valueRef\n );\n if (value && value.pxResults && +value.pyCount > 0) {\n const deletedFile = {\n type: \"File\",\n label: valueRef,\n delete: true,\n responseProps: {\n pzInsKey: arFileList[fileIndex].id\n },\n };\n // updating the redux store to help form-handler in passing the data to delete the file from server\n PCore.getStateUtils().updateState(\n pConn.getContextName(),\n 'attachmentsList',\n [...currentAttachmentList, deletedFile],\n {\n pageReference: 'context_data',\n isArrayDeepMerge: false\n }\n );\n } else {\n PCore.getStateUtils().updateState(\n pConn.getContextName(),\n 'attachmentsList',\n [...currentAttachmentList, ...attachmentsList],\n {\n pageReference: 'context_data',\n isArrayDeepMerge: false\n }\n );\n }\n if (fileIndex > -1) { arFileList.splice(parseInt(fileIndex, 10), 1) };\n setFile((current) => {\n return {\n ...current,\n props: {\n ...current.props,\n arFileList\n },\n };\n });\n }\n }\n\n useEffect(() => {\n if (value && value.pxResults && +value.pyCount > 0) {\n fileTemp = buildFilePropsFromResponse(value.pxResults[0]);\n\n if (fileTemp.responseProps) {\n if (!pConn.attachmentsInfo) {\n pConn.attachmentsInfo = {\n type: \"File\",\n attachmentFieldName: valueRef,\n category: categoryName\n };\n }\n\n if (fileTemp.responseProps.pzInsKey && !fileTemp.responseProps.pzInsKey.includes(\"temp\")) {\n\n fileTemp.props.type = fileTemp.responseProps.pyMimeFileExtension;\n fileTemp.props.mimeType = fileTemp.responseProps.pyMimeFileExtension;\n fileTemp.props.ID = fileTemp.responseProps.pzInsKey;\n // create the actions for the \"more\" menu on the attachment\n const arMenuList: Array<any> = [];\n let oMenu: any = {};\n\n oMenu.icon = \"download\";\n oMenu.text = \"Download\";\n oMenu.onClick = () => { _downloadFileFromList(value.pxResults[0])}\n arMenuList.push(oMenu);\n oMenu = {};\n oMenu.icon = \"trash\";\n oMenu.text = \"Delete\";\n oMenu.onClick = () => { _removeFileFromList(arFileList$[0], arFileList$)}\n arMenuList.push(oMenu);\n\n arFileList$.push(getNewListUtilityItemProps({\n att: fileTemp.props,\n downloadFile: null,\n cancelFile: null,\n deleteFile: null,\n removeFile: null\n }));\n arFileList$[0].actions = arMenuList;\n\n setFile((current) => {\n return {\n ...current,\n props: {\n ...current.props,\n arFileList$\n },\n inProgress: false,\n attachmentUploaded: true,\n showMenuIcon: true\n };\n });\n }\n }\n }\n }, [\"\"]);\n\n let content = (\n <div className='file-div'>\n {file.inProgress && (<div className=\"progress-div\"><CircularProgress /></div>)}\n <div hidden={true} id=\"attachment-ID\">{valueRef}</div>\n <label htmlFor={valueRef}>\n <input\n style={{ display: 'none' }}\n id={valueRef}\n name='upload-photo'\n type='file'\n required={required}\n onChange={onFileAdded}\n />\n <Button variant='outlined' color='primary' component=\"span\">\n Upload file\n </Button>\n </label>\n </div>\n );\n\n if (file && file.attachmentUploaded && file.props.arFileList$ && file.props.arFileList$.length > 0) {\n content = (\n <div>\n {file.showMenuIcon && (<SummaryList arItems$={file.props.arFileList$} menuIconOverrideAction$={_removeFileFromList}></SummaryList>)}\n {!file.showMenuIcon && (<SummaryList menuIconOverride$='trash' arItems$={file.props.arFileList$} menuIconOverrideAction$={_removeFileFromList}></SummaryList>)}\n </div>\n\n );\n }\n\n return (\n <div className='file-upload-container'>\n <span className='label'>{label}</span>\n <section>{content}</section>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/Attachment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/widget/Attachment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { default } from './Attachment';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaseHistory.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/CaseHistory/CaseHistory.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAiCnC,iBAAwB,WAAW,CAAC,KAAK,KAAA,eAkIxC;kBAlIuB,WAAW;;;;;eAAX,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaseHistory.js","sourceRoot":"","sources":["../../../../src/components/widget/CaseHistory/CaseHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAA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, { useState, useRef, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles, Theme, createStyles } from '@material-ui/core/styles';\nimport Table from '@material-ui/core/Table';\nimport TableBody from '@material-ui/core/TableBody';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableContainer from '@material-ui/core/TableContainer';\nimport TableHead from '@material-ui/core/TableHead';\nimport TableRow from '@material-ui/core/TableRow';\nimport isDeepEqual from 'fast-deep-equal/react';\nimport { Utils } from '../../helpers/utils';\n\ndeclare const PCore;\n\n\nconst StyledTableCell = withStyles((theme: Theme) =>\n createStyles({\n head: {\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n borderColor: \"silver\",\n backgroundColor: theme.palette.text.disabled,\n color: theme.palette.getContrastText(theme.palette.text.disabled),\n },\n body: {\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n borderColor: \"silver\",\n // fontSize: 14,\n },\n }),\n)(TableCell);\n\n\nexport default function CaseHistory(props) {\n const { getPConnect } = props;\n const thePConn = getPConnect();\n // let waitingForData = true;\n\n const displayedColumns = [\n { label: \"Date\", type: \"DateTime\", fieldName: \"pxTimeCreated\" },\n { label: \"Description\", type: \"TextInput\", fieldName: \"pyMessageKey\" },\n { label: \"User\", type: \"TextInput\", fieldName: \"pyPerformer\" }\n ];\n\n const rowData: any = useRef([]);\n // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars\n const [waitingForData, setWaitingForData] = useState<boolean>(true);\n\n\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n const dataViewName = \"D_pyWorkHistory\";\n const context = thePConn.getContextName();\n\n\n function computeRowData(rows: Array<Object>): void {\n const theRowData: Array<Object> = [];\n\n rows.forEach((row: any, rowIndex: number) => {\n // Now, for each property in the index of row properties (displayedColumns), add an object\n // to a new array of values\n const rowDisplayValues: any = [];\n\n displayedColumns.forEach((column: Object, rowValIndex) => {\n const theType = column[\"type\"];\n const theFieldName = column[\"fieldName\"];\n const theValue = ((theType === \"Date\" || theType === \"DateTime\")) ? Utils.generateDateTime(row[theFieldName], \"DateTime-Short\") : row[theFieldName];\n rowDisplayValues[rowValIndex] = theValue;\n });\n\n theRowData[rowIndex] = rowDisplayValues;\n })\n\n if (!isDeepEqual(theRowData, rowData.current)) {\n // Only update rowData.current when it actually changes (to prevent infinite loop)\n rowData.current = theRowData;\n }\n }\n\n // Get the case history data when component mounted/initialized\n useEffect( () => {\n\n let bCallSetWaitingForData = true;\n\n const historyData = PCore.getDataApiUtils().getData(\n dataViewName, `{\"dataViewParameters\":[{\"CaseInstanceKey\":\"${caseID}\"}]}`,\n context\n );\n\n historyData.then( (historyJSON: Object) => {\n\n const tableDataResults = historyJSON[\"data\"].data;\n\n // compute the rowData using the tableDataResults\n computeRowData(tableDataResults);\n\n // At this point, if we have data ready to render and haven't been asked\n // to NOT call setWaitingForData, we can stop progress indicator\n if (bCallSetWaitingForData) {\n setWaitingForData(false);\n }\n\n });\n\n return () => {\n // Inspired by https://juliangaramendy.dev/blog/use-promise-subscription\n // The useEffect closure lets us have access to the bCallSetWaitingForData\n // variable inside the useEffect and inside the \"then\" clause of the\n // historyData promise\n // So, if this cleanup code gets run before the promise .then is called,\n // we can avoid calling the useState setter which would otherwise show a warning\n bCallSetWaitingForData = false;\n }\n\n }, []);\n\n\n function getTableHeader() {\n const theRowKey = \"CaseHistory.TableHeader\";\n\n const theHeaderCells: Array<any> = displayedColumns.map((headerCol, index) => {\n const theCellKey = `${theRowKey}.${index}`;\n return <StyledTableCell key={theCellKey}>{headerCol.label}</StyledTableCell>\n })\n\n return <TableRow key={theRowKey}>{theHeaderCells}</TableRow>;\n }\n\n\n function getTableData() {\n const theDataRows: Array<any> = [];\n\n // Note: using rowData.current since we're using useRef as a mutatable\n // value that's only updated when it changes.\n if (rowData.current.length > 0) {\n rowData.current.forEach((dataRow: Array<Object>, index) => {\n // using dataRow[0]-dataRow[1] as the array key since it's a unique value\n const theKey = `CaseHistory-${index}`;\n theDataRows.push( <TableRow key={theKey}>\n <StyledTableCell>{dataRow[0] ? dataRow[0] : \"---\"}</StyledTableCell>\n <StyledTableCell>{dataRow[1] ? dataRow[1] : \"---\"}</StyledTableCell>\n <StyledTableCell>{dataRow[2] ? dataRow[2] : \"---\"}</StyledTableCell>\n </TableRow>\n )\n });\n }\n\n return theDataRows;\n }\n\n return (\n <div id=\"CaseHistory\">\n <TableContainer>\n <Table>\n <TableHead>\n {getTableHeader()}\n </TableHead>\n <TableBody>\n {getTableData()}\n </TableBody>\n </Table>\n </TableContainer>\n </div>\n )\n}\n\nCaseHistory.propTypes = {\n getPConnect: PropTypes.func.isRequired\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/CaseHistory/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/widget/CaseHistory/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './CaseHistory';"]}
|
package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtonsForFileUtil.d.ts","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx"],"names":[],"mappings":";AAEA,OAAO,gCAAgC,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,KAAK,KAAA,eAiBrD"}
|
package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtonsForFileUtil.js","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AAExC,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,KAAK;IAEpD,OAAO,CACL,6BAAK,SAAS,EAAC,cAAc;QAC3B,6BAAK,SAAS,EAAC,qBAAqB,IACjC,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACpC,oBAAC,MAAM,IAAC,SAAS,EAAC,kBAAkB,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,eAAe,IAAG,IAAI,CAAC,IAAI,CAAU,CAC9G,CAAC,CACE;QACN,6BAAK,SAAS,EAAC,qBAAqB,IACjC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAC/B,oBAAC,MAAM,IAAC,SAAS,EAAC,gBAAgB,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,IAAG,IAAI,CAAC,IAAI,CAAU,CAC1G,CAAC,CACE,CACF,CACP,CAAA;AAEH,CAAC","sourcesContent":["import React from \"react\";\nimport { Button } from '@material-ui/core';\nimport './ActionButtonsForFileUtil.css';\n\nexport default function ActionButtonsForFileUtil(props) {\n\n return (\n <div className=\"psdk-actions\">\n <div className=\"psdk-action-buttons\">\n {props.arSecondaryButtons.map(file => (\n <Button className=\"secondary-button\" key={file.actionID} onClick={props.secondaryAction}>{file.name}</Button>\n ))}\n </div>\n <div className=\"psdk-action-buttons\">\n {props.arMainButtons.map(file => (\n <Button className=\"primary-button\" key={file.actionID} onClick={props.primaryAction}>{file.name}</Button>\n ))}\n </div>\n </div>\n )\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/ActionButtonsForFileUtil/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/ActionButtonsForFileUtil/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC","sourcesContent":["export { default } from './ActionButtonsForFileUtil';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUtility.d.ts","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/FileUtility/FileUtility.tsx"],"names":[],"mappings":";AAMA,OAAO,mBAAmB,CAAC;AAS3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,KAAA,eAuiBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUtility.js","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/FileUtility/FileUtility.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,mBAAmB,CAAC;AAC3B,OAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,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AC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,eAAmB,CACrJ,CACF;oBACL,QAAQ,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,6BAAK,KAAK,EAAE,EAAC,SAAS,EAAE,MAAM,EAAC;wBAChE,oBAAC,WAAW,yBAAmB,OAAO,cAAW,QAAQ,CAAC,SAAS,6BAA2B,mBAAmB,GAAgB,CAC7H,CAAC;oBACP,oBAAC,wBAAwB,IAAC,aAAa,EAAE,QAAQ,CAAC,eAAe,EAAE,kBAAkB,EAAE,QAAQ,CAAC,oBAAoB,EACpH,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,GAA6B,CAC5F,CACF,CACF,CACP;QACA,gBAAgB,IAAI,CAAC,6BAAK,SAAS,EAAC,wBAAwB;YAC3D,6BAAK,SAAS,EAAC,qBAAqB;gBAClC,6BAAK,SAAS,EAAC,sBAAsB;oBACjC,8CAAoB;oBAEpB,gCAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,mBAAmB,EAAC,OAAO,EAAI,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;wBAAE,6BAAK,SAAS,EAAC,oCAAoC,EAAC,GAAG,EAAE,YAAY,GAAQ,CAAS,CAC5K;gBACN,6BAAK,SAAS,EAAC,oBAAoB;oBAAC,oBAAC,WAAW,gBAAW,OAAO,GAAgB,CAAM,CACpF,CACF,CAAC,CACH,CAEP,CAAA;AACH,CAAC","sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport TextField from '@material-ui/core/TextField';\nimport { Utils } from '../../../helpers/utils';\nimport download from \"downloadjs\";\nimport SummaryList from '../../SummaryList';\nimport ActionButtonsForFileUtil from '../ActionButtonsForFileUtil';\nimport './FileUtility.css';\nimport { IconButton, Menu, MenuItem } from '@material-ui/core';\nimport MoreVertIcon from '@material-ui/icons/MoreVert';\nimport { Button } from '@material-ui/core';\nimport { validateMaxSize } from '../../../helpers/attachmentHelpers';\nimport { CircularProgress } from \"@material-ui/core\";\n\ndeclare const PCore;\n\nexport default function FileUtility(props) {\n const { getPConnect } = props;\n const thePConn = getPConnect();\n const required = true;\n const listTemp = {\n data: [],\n count: 0\n };\n const [list, setList] = useState(listTemp);\n const headerSvgIcon$ = Utils.getImageSrc('paper-clip', PCore.getAssetLoader().getStaticServerUrl());\n const closeSvgIcon = Utils.getImageSrc(\"times\", PCore.getAssetLoader().getStaticServerUrl());\n const configProps: any = thePConn.resolveConfigProps(thePConn.getConfigProps());\n\n const header = configProps.label;\n const fileTemp = {\n showfileModal: false,\n fileList: [],\n attachedFiles: [],\n fileMainButtons: [{ actionID: \"attach\", jsAction: \"attachFiles\", name: \"Attach files\"}],\n fileSecondaryButtons: [{ actionID: \"cancel\", jsAction: \"cancel\", name: \"Cancel\"}]\n };\n const [fileData, setFileData] = useState(fileTemp);\n const linkTemp = {\n showLinkModal: false,\n linksList: [],\n attachedLinks: [],\n linkMainButtons: [{ actionID: \"attach\", jsAction: \"attachLinks\", name: \"Attach links\"}],\n linkSecondaryButtons: [{ actionID: \"cancel\", jsAction: \"cancel\", name: \"Cancel\"}]\n };\n const [linkData, setLinkData] = useState(linkTemp);\n const [anchorEl, setAnchorEl] = useState(null);\n const open = Boolean(anchorEl);\n const [link, setLink] = useState({title: '', url: '', disable: true});\n const [inProgress, setProgress] = useState(false);\n const [showViewAllModal, setViewAll] = useState(false);\n const [vaItems, setFullAttachments] = useState([]);\n\n function addAttachments(attsFromResp: Array<any> = []) {\n attsFromResp = attsFromResp.map((respAtt) => {\n const updatedAtt = {\n ...respAtt,\n meta: `${respAtt.category} . ${Utils.generateDateTime(respAtt.createTime, \"DateTime-Since\")}, ${\n respAtt.createdBy\n }`\n };\n if (updatedAtt.type === \"FILE\") {\n updatedAtt.nameWithExt = updatedAtt.fileName;\n }\n return updatedAtt;\n });\n return attsFromResp;\n }\n\n function getListUtilityItemProps({\n att,\n cancelFile,\n downloadFile,\n deleteFile,\n removeFile\n }) {\n let actions;\n\n\n if (att.progress && att.progress !== 100) {\n actions = [\n {\n id: `Cancel-${att.ID}`,\n text: \"Cancel\",\n icon: \"times\",\n onClick: cancelFile\n }\n ];\n } else if (att.links) {\n const isFile = att.type === \"FILE\";\n const ID = att.ID.replace(/\\s/gi, \"\");\n const actionsMap = new Map([\n [\n \"download\",\n {\n id: `download-${ID}`,\n text: isFile ? \"Download\" : \"Open\",\n icon: isFile ? \"download\" : \"open\",\n onClick: downloadFile\n }\n ],\n [\n \"delete\",\n {\n id: `Delete-${ID}`,\n text: \"Delete\",\n icon: \"trash\",\n onClick: deleteFile\n }\n ]\n ]);\n actions = [];\n actionsMap.forEach((action, actionKey) => {\n if (att.links[actionKey]) {\n actions.push(action);\n }\n });\n } else if (att.error) {\n actions = [\n {\n id: `Remove-${att.ID}`,\n text: \"Remove\",\n icon: \"trash\",\n onClick: removeFile\n }\n ];\n }\n\n return {\n id: att.ID,\n visual: {\n icon: Utils.getIconForAttachment(att),\n progress: att.progress === 100 ? undefined: att.progress,\n },\n primary: {\n type: att.type,\n name: att.name,\n icon: \"open\",\n click: downloadFile,\n },\n secondary: {\n text: att.meta\n },\n actions\n };\n }\n\n function fileDownload(data, fileName, ext) {\n const file = ext ? `${fileName}.${ext}` : fileName;\n download(atob(data), file);\n };\n\n function downloadAttachedFile(att: any) {\n const attachUtils = PCore.getAttachmentUtils();\n const {ID, name, extension, type} = att;\n const context = thePConn.getContextName();\n\n attachUtils\n .downloadAttachment(ID, context)\n .then((content) => {\n if (type === \"FILE\") {\n fileDownload(content.data, name, extension);\n } else if (type === \"URL\") {\n let { data } = content;\n if (!/^(http|https):\\/\\//.test(data)) {\n data = `//${data}`;\n }\n window.open(content.data, \"_blank\");\n }\n })\n .catch();\n }\n\n function deleteAttachedFile(att: any) {\n const attachUtils = PCore.getAttachmentUtils();\n const {ID} = att;\n const context = thePConn.getContextName();\n\n attachUtils.deleteAttachment(ID, context)\n .then(() => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n getAttachments();\n })\n .catch();\n }\n\n const getAttachments = () => {\n\n const attachmentUtils = PCore.getAttachmentUtils();\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n\n if (caseID && caseID !== \"\") {\n const attPromise = attachmentUtils.getCaseAttachments(caseID, thePConn.getContextName());\n\n attPromise\n .then( (resp) => {\n const arFullListAttachments = addAttachments(resp);\n const attachmentsCount = arFullListAttachments.length;\n const arItems: any = arFullListAttachments.slice(0, 3).map((att) => {\n return getListUtilityItemProps({\n att,\n downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,\n cancelFile: null,\n deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,\n removeFile: null\n });\n });\n const viewAllarItems: any = arFullListAttachments.map((att) => {\n return getListUtilityItemProps({\n att,\n downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,\n cancelFile: null,\n deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,\n removeFile: null\n });\n });\n setProgress(false);\n setList((current) => {\n return {...current, count: attachmentsCount, data: arItems}\n });\n setFullAttachments(viewAllarItems);\n });\n }\n }\n\n useEffect(() => {\n getAttachments();\n }, []);\n\n\n useEffect(() => {\n PCore.getPubSubUtils().subscribe(\n PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,\n getAttachments,\n \"caseAttachmentsUpdateFromCaseview\"\n );\n\n return () => {\n PCore.getPubSubUtils().unsubscribe(\n PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW,\n \"caseAttachmentsUpdateFromCaseview\"\n );\n };\n }, []);\n\n function setNewFiles(arFiles) {\n let index = 0;\n for (const file of arFiles) {\n if (!validateMaxSize(file, 5)) {\n file.error = true;\n file.meta = \"File is too big. Max allowed size is 5MB.\";\n }\n file.mimeType = file.type;\n file.icon = Utils.getIconFromFileType(file.type);\n file.ID = `${new Date().getTime()}I${index}`;\n index+=1;\n }\n return arFiles;\n }\n\n function getFiles(arFiles: Array<any>): Array<any> {\n return setNewFiles(arFiles);\n }\n\n function uploadMyFiles(event) {\n // alert($event.target.files[0]); // outputs the first file\n const arFiles = getFiles(event.target.files);\n // convert FileList to an array\n const myFiles: any = Array.from(arFiles);\n\n const arFileList$: any = myFiles.map((att: any) => {\n return getListUtilityItemProps({\n att,\n downloadFile: !att.progress ? () => downloadAttachedFile(att) : null,\n cancelFile: null,\n deleteFile: !att.progress ? () => deleteAttachedFile(att) : null,\n removeFile: null\n });\n });\n setFileData((current) => {\n return {...current, fileList: arFileList$, attachedFiles: myFiles}\n });\n }\n\n\n\n const handleClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n function onAddFilesClick() {\n setFileData((current) => {\n return {...current, showfileModal: true}\n });\n setAnchorEl(null);\n }\n\n function removeFileFromList(item: any) {\n let attachedFiles: any = fileData.attachedFiles;\n let fileList: any = fileData.fileList;\n if (item !== null) {\n attachedFiles = attachedFiles.filter(ele => ele.ID !== item.id);\n fileList = fileList.filter(ele => ele.id !== item.id);\n setFileData((current) => {\n return {...current, fileList, attachedFiles}\n });\n }\n }\n\n function closeFilePopup() {\n setFileData((current) => {\n return {...current, showfileModal: false}\n });\n }\n\n function onAttachFiles() {\n const attachmentUtils = PCore.getAttachmentUtils();\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n const onUploadProgress = () => {};\n const errorHandler = () => {};\n closeFilePopup()\n if (fileData.attachedFiles && fileData.attachedFiles.length > 0 ) {\n setProgress(true);\n }\n for (const file of fileData.attachedFiles) {\n attachmentUtils\n .uploadAttachment(\n file,\n onUploadProgress,\n errorHandler,\n thePConn.getContextName()\n )\n .then((fileResponse) => {\n if (fileResponse.type === \"File\") {\n attachmentUtils.linkAttachmentsToCase(\n caseID,\n [ fileResponse ],\n \"File\",\n thePConn.getContextName()\n )\n .then(() => {\n setFileData((current) => {\n return {...current, fileList: [], attachedFiles: []};\n });\n getAttachments();\n })\n .catch();\n }\n })\n .catch();\n }\n }\n\n function onAddLinksClick() {\n setLinkData((current) => {\n return {...current, showLinkModal: true}\n });\n setAnchorEl(null);\n }\n\n function closeAddLinksPopup() {\n setLinkData((current) => {\n return {...current, showLinkModal: false}\n });\n }\n\n const fieldlinkOnChange = (event) => {\n const title = event.target.value;\n setLink((current) => {\n const updatedData = {...current, title};\n updatedData.disable = !(updatedData.title && updatedData.url);\n return updatedData;\n });\n }\n\n function fieldurlOnChange(event) {\n const url = event.target.value;\n setLink((current) => {\n const updatedData = {...current, url}\n updatedData.disable = !(updatedData.title && updatedData.url);\n return updatedData;\n });\n }\n\n function addLink() {\n // copy list locally\n const localList: any = linkData.linksList.slice();\n const url = link.url;\n if (!/^(http|https):\\/\\//.test(link.url)) {\n link.url = `http://${link.url}`;\n }\n\n // list for display\n let oLink: any = {};\n oLink.icon = \"chain\";\n oLink.ID = `${new Date().getTime()}`;\n oLink = getListUtilityItemProps({\n att: oLink,\n downloadFile: null,\n cancelFile: null,\n deleteFile: null,\n removeFile: null\n });\n oLink.type = \"URL\";\n oLink.primary.type = oLink.type;\n oLink.visual.icon = \"chain\";\n oLink.primary.name = link.title;\n oLink.primary.icon = \"open\";\n oLink.secondary.text = url;\n\n localList.push(oLink);\n\n // list for actually attachments\n const attachedListTemp: any = linkData.attachedLinks.slice();\n const attachedLink: any = {};\n attachedLink.id = oLink.id;\n attachedLink.linkTitle = link.title;\n attachedLink.type = oLink.type;\n attachedLink.url = url;\n\n attachedListTemp.push(attachedLink);\n setLinkData((current) => {\n return {...current, linksList: localList, attachedLinks: attachedListTemp}\n });\n // clear values\n setLink({title: '', url: '', disable: true});\n }\n\n function removeLinksFromList(item: any) {\n let attachedLinks: any = linkData.attachedLinks;\n let linksList: any = linkData.linksList;\n if (item !== null) {\n attachedLinks = attachedLinks.filter(ele => ele.id !== item.id);\n linksList = linksList.filter(ele => ele.id !== item.id);\n setLinkData((current) => {\n return {...current, linksList, attachedLinks}\n });\n }\n }\n\n function onAttachLinks() {\n const attachmentUtils = PCore.getAttachmentUtils();\n const caseID = thePConn.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);\n const links = linkData.attachedLinks;\n closeAddLinksPopup();\n const linksToAttach = links.map((item: any) => ({\n type: \"URL\",\n category: \"URL\",\n url: item.url,\n name: item.linkTitle\n }));\n\n if (linksToAttach && linksToAttach.length > 0) {\n setProgress(true);\n attachmentUtils\n .linkAttachmentsToCase(caseID, linksToAttach, \"URL\", thePConn.getContextName())\n .then( () => {\n setLinkData((current) => {\n return {...current, linksList: [], attachedLinks: []};\n });\n getAttachments();\n })\n .catch(setProgress(false));\n }\n }\n\n return (\n <div className=\"psdk-utility\">\n {inProgress && (<div className=\"progress-div\"><CircularProgress /></div>)}\n <div className=\"psdk-header\">\n <img className=\"psdk-file-utility-card-svg-icon\" src={headerSvgIcon$}></img>\n <div className=\"header-text\">{header}</div>\n <div className=\"psdk-utility-count\" id=\"attachments-count\">{list.count}</div>\n <div style={{flexGrow: 1}}></div>\n <div>\n <IconButton\n id=\"long-button\"\n aria-controls={open ? 'simple-menu' : undefined}\n aria-expanded={open ? 'true' : undefined}\n aria-haspopup=\"true\"\n onClick={handleClick}\n >\n <MoreVertIcon />\n </IconButton>\n <Menu style={{marginTop: '3rem'}}\n id=\"simple-menu\"\n anchorEl={anchorEl}\n keepMounted\n open={Boolean(anchorEl)}\n onClose={handleClose}\n >\n <MenuItem style={{fontSize: '14px'}} onClick={onAddFilesClick}>Add Files</MenuItem>\n <MenuItem style={{fontSize: '14px'}} onClick={onAddLinksClick}>Add Links</MenuItem>\n </Menu>\n </div>\n </div>\n {list.data.length > 0 && (<div style={{marginTop: '1rem'}}>\n <SummaryList arItems$={list.data}></SummaryList>\n </div>)}\n {list.count > 3 && (<div className=\"psdk-utility-view-all\">\n <Button style={{textTransform: 'none'}} color=\"primary\" onClick = {() => setViewAll(true)}>View all</Button>\n </div>)}\n {fileData.showfileModal && (\n <div className=\"psdk-dialog-background\">\n <div className=\"psdk-modal-file-top\">\n <h3>Add local files</h3>\n <div className=\"psdk-modal-body\">\n <div className=\"psdk-modal-file-selector\">\n <label htmlFor='upload-files'>\n <input style={{ display: 'none' }} id='upload-files' name='upload-files' type='file' multiple onChange={uploadMyFiles}/>\n <Button variant='outlined' color='primary' component=\"span\">Upload file(s)</Button>\n </label>\n </div>\n {fileData.fileList.length > 0 && (<div style={{marginTop: '1rem'}}>\n <SummaryList menuIconOverride$='trash' arItems$={fileData.fileList} menuIconOverrideAction$={removeFileFromList}></SummaryList>\n </div>)}\n {fileData.fileList.length === 0 && (<div></div>)}\n <ActionButtonsForFileUtil arMainButtons={fileData.fileMainButtons} arSecondaryButtons={fileData.fileSecondaryButtons}\n primaryAction={onAttachFiles} secondaryAction={closeFilePopup}></ActionButtonsForFileUtil>\n </div>\n </div>\n </div>\n )}\n {linkData.showLinkModal && (\n <div className=\"psdk-dialog-background\">\n <div className=\"psdk-modal-file-top\">\n <h3>Add links</h3>\n <div className=\"psdk-modal-body\">\n <div className=\"psdk-modal-links-row\">\n <div className=\"psdk-links-two-column\">\n <div className=\"psdk-modal-link-data\">\n <TextField fullWidth variant=\"outlined\" label=\"Link title\" size=\"small\" required={required} value={link.title} onChange={fieldlinkOnChange}/>\n </div>\n <div className=\"psdk-modal-link-data\">\n <TextField fullWidth variant=\"outlined\" label=\"URL\" size=\"small\" required={required} value={link.url} onChange={fieldurlOnChange}/>\n </div>\n </div>\n <div className=\"psdk-modal-link-add\">\n <Button className=\"psdk-add-link-action\" color=\"primary\" variant=\"contained\" component=\"span\" onClick={addLink} disabled={link.disable}>Add Link</Button>\n </div>\n </div>\n {linkData.linksList.length > 0 && (<div style={{marginTop: '1rem'}}>\n <SummaryList menuIconOverride$='trash' arItems$={linkData.linksList} menuIconOverrideAction$={removeLinksFromList}></SummaryList>\n </div>)}\n <ActionButtonsForFileUtil arMainButtons={linkData.linkMainButtons} arSecondaryButtons={linkData.linkSecondaryButtons}\n primaryAction={onAttachLinks} secondaryAction={closeAddLinksPopup}></ActionButtonsForFileUtil>\n </div>\n </div>\n </div>\n )}\n {showViewAllModal && (<div className=\"psdk-dialog-background\">\n <div className=\"psdk-modal-file-top\">\n <div className=\"psdk-view-all-header\">\n <h3>Attachments</h3>\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <button type=\"button\" className=\"psdk-close-button\" onClick = {() => setViewAll(false)}><img className=\"psdk-utility-card-actions-svg-icon\" src={closeSvgIcon}></img></button>\n </div>\n <div className=\"psdk-view-all-body\"><SummaryList arItems$={vaItems}></SummaryList></div>\n </div>\n </div>)}\n </div>\n\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/FileUtility/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/widget/FileUtility/FileUtility/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './FileUtility';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Followers.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/Followers/Followers.tsx"],"names":[],"mappings":";AAqBA,iBAAwB,SAAS,gBAahC;kBAbuB,SAAS;;;;eAAT,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Followers.js","sourceRoot":"","sources":["../../../../src/components/widget/Followers/Followers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,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-types\";\nimport { Card, CardContent, CardHeader, Typography } from \"@material-ui/core\";\nimport { makeStyles } from '@material-ui/core/styles';\n// import { green } from \"@material-ui/core/colors\";\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n paddingRight: theme.spacing(1),\n paddingLeft: theme.spacing(1),\n paddingTop: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\n marginLeft: theme.spacing(1),\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n // borderLeft: \"6px solid\",\n // borderLeftColor: green[300]\n },\n}));\n\nexport default function Followers(/* props */) {\n const componentName = \"Followers\";\n // const { children } = props;\n const classes = useStyles();\n\n return (\n <Card className={classes.root}>\n <CardHeader title={<Typography variant=\"h6\" component=\"div\">{componentName} - <em>unsupported</em></Typography>} />\n <CardContent>\n <Typography>{componentName} content</Typography>\n </CardContent>\n </Card>\n );\n}\n\nFollowers.defaultProps = {\n // children: []\n}\n\nFollowers.propTypes = {\n // children: PropTypes.arrayOf(PropTypes.node)\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/Followers/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/widget/Followers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export { default } from './Followers';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SummaryItem.d.ts","sourceRoot":"","sources":["../../../../src/components/widget/SummaryItem/SummaryItem.tsx"],"names":[],"mappings":";AAEA,OAAO,mBAAmB,CAAA;AAM1B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,KAAA,eAuExC"}
|