@pega/react-sdk-components 0.24.3 → 0.25.1
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/react_pconnect.d.ts.map +1 -1
- package/lib/bridge/react_pconnect.js +137 -140
- package/lib/bridge/react_pconnect.js.map +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js +1 -1
- package/lib/components/designSystemExtension/AlertBanner/AlertBanner.js.map +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.js +1 -1
- package/lib/components/designSystemExtension/Banner/Banner.js.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -1
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js +11 -11
- package/lib/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js +4 -4
- package/lib/components/designSystemExtension/DetailsFields/DetailsFields.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js +4 -4
- package/lib/components/designSystemExtension/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js +4 -4
- package/lib/components/designSystemExtension/FieldGroupList/FieldGroupList.js.map +1 -1
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js +6 -6
- package/lib/components/designSystemExtension/FieldValueList/FieldValueList.js.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.d.ts.map +1 -1
- package/lib/components/designSystemExtension/Operator/Operator.js +6 -6
- package/lib/components/designSystemExtension/Operator/Operator.js.map +1 -1
- package/lib/components/designSystemExtension/Pulse/Pulse.js +2 -2
- package/lib/components/designSystemExtension/Pulse/Pulse.js.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js +3 -2
- package/lib/components/designSystemExtension/RichTextEditor/RichTextEditor.js.map +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js +1 -1
- package/lib/components/designSystemExtension/WssQuickCreate/WssQuickCreate.js.map +1 -1
- package/lib/components/field/AutoComplete/AutoComplete.js +4 -4
- package/lib/components/field/AutoComplete/AutoComplete.js.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -1
- package/lib/components/field/CancelAlert/CancelAlert.js +3 -6
- package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/components/field/Checkbox/Checkbox.js +4 -4
- package/lib/components/field/Checkbox/Checkbox.js.map +1 -1
- package/lib/components/field/Currency/Currency.d.ts.map +1 -1
- package/lib/components/field/Currency/Currency.js +9 -8
- package/lib/components/field/Currency/Currency.js.map +1 -1
- package/lib/components/field/Date/Date.d.ts.map +1 -1
- package/lib/components/field/Date/Date.js +21 -9
- package/lib/components/field/Date/Date.js.map +1 -1
- package/lib/components/field/DateTime/DateTime.d.ts.map +1 -1
- package/lib/components/field/DateTime/DateTime.js +38 -9
- package/lib/components/field/DateTime/DateTime.js.map +1 -1
- package/lib/components/field/Decimal/Decimal.d.ts.map +1 -1
- package/lib/components/field/Decimal/Decimal.js +8 -5
- package/lib/components/field/Decimal/Decimal.js.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/field/Dropdown/Dropdown.js +18 -12
- package/lib/components/field/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/field/Email/Email.d.ts.map +1 -1
- package/lib/components/field/Email/Email.js +21 -5
- package/lib/components/field/Email/Email.js.map +1 -1
- package/lib/components/field/Group/Group.js +2 -2
- package/lib/components/field/Group/Group.js.map +1 -1
- package/lib/components/field/Integer/Integer.d.ts.map +1 -1
- package/lib/components/field/Integer/Integer.js +17 -6
- package/lib/components/field/Integer/Integer.js.map +1 -1
- package/lib/components/field/Multiselect/Multiselect.d.ts.map +1 -1
- package/lib/components/field/Multiselect/Multiselect.js +12 -8
- package/lib/components/field/Multiselect/Multiselect.js.map +1 -1
- package/lib/components/field/Multiselect/utils.js +1 -1
- package/lib/components/field/Multiselect/utils.js.map +1 -1
- package/lib/components/field/Percentage/Percentage.d.ts.map +1 -1
- package/lib/components/field/Percentage/Percentage.js +7 -4
- package/lib/components/field/Percentage/Percentage.js.map +1 -1
- package/lib/components/field/Phone/Phone.d.ts.map +1 -1
- package/lib/components/field/Phone/Phone.js +16 -10
- package/lib/components/field/Phone/Phone.js.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.d.ts.map +1 -1
- package/lib/components/field/RadioButtons/RadioButtons.js +6 -12
- package/lib/components/field/RadioButtons/RadioButtons.js.map +1 -1
- package/lib/components/field/RichText/RichText.js +1 -1
- package/lib/components/field/RichText/RichText.js.map +1 -1
- package/lib/components/field/ScalarList/ScalarList.d.ts.map +1 -1
- package/lib/components/field/ScalarList/ScalarList.js +5 -5
- package/lib/components/field/ScalarList/ScalarList.js.map +1 -1
- package/lib/components/field/SemanticLink/SemanticLink.js +4 -4
- package/lib/components/field/SemanticLink/SemanticLink.js.map +1 -1
- package/lib/components/field/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/field/TextArea/TextArea.js +20 -4
- package/lib/components/field/TextArea/TextArea.js.map +1 -1
- package/lib/components/field/TextContent/TextContent.js +1 -1
- package/lib/components/field/TextContent/TextContent.js.map +1 -1
- package/lib/components/field/TextInput/TextInput.js +2 -2
- package/lib/components/field/TextInput/TextInput.js.map +1 -1
- package/lib/components/field/Time/Time.d.ts.map +1 -1
- package/lib/components/field/Time/Time.js +31 -8
- package/lib/components/field/Time/Time.js.map +1 -1
- package/lib/components/field/URL/URL.d.ts.map +1 -1
- package/lib/components/field/URL/URL.js +19 -4
- package/lib/components/field/URL/URL.js.map +1 -1
- package/lib/components/field/UserReference/UserReference.d.ts.map +1 -1
- package/lib/components/field/UserReference/UserReference.js +3 -5
- package/lib/components/field/UserReference/UserReference.js.map +1 -1
- package/lib/components/helpers/common-utils.d.ts +7 -0
- package/lib/components/helpers/common-utils.d.ts.map +1 -1
- package/lib/components/helpers/common-utils.js +21 -1
- package/lib/components/helpers/common-utils.js.map +1 -1
- package/lib/components/helpers/field-group-utils.js +2 -2
- package/lib/components/helpers/field-group-utils.js.map +1 -1
- package/lib/components/helpers/formatters/Currency.d.ts.map +1 -1
- package/lib/components/helpers/formatters/Currency.js +12 -15
- package/lib/components/helpers/formatters/Currency.js.map +1 -1
- package/lib/components/helpers/formatters/common.d.ts +2 -2
- package/lib/components/helpers/formatters/common.d.ts.map +1 -1
- package/lib/components/helpers/formatters/common.js +2 -1
- package/lib/components/helpers/formatters/common.js.map +1 -1
- package/lib/components/helpers/formatters/index.d.ts.map +1 -1
- package/lib/components/helpers/formatters/index.js +2 -3
- package/lib/components/helpers/formatters/index.js.map +1 -1
- package/lib/components/helpers/simpleTableHelpers.d.ts +1 -1
- package/lib/components/helpers/simpleTableHelpers.js +1 -1
- package/lib/components/helpers/simpleTableHelpers.js.map +1 -1
- package/lib/components/infra/ActionButtons/ActionButtons.js +3 -3
- package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -1
- package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -1
- package/lib/components/infra/Assignment/Assignment.js +31 -13
- package/lib/components/infra/Assignment/Assignment.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +12 -22
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -1
- package/lib/components/infra/Containers/FlowContainer/helpers.js +1 -5
- package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.d.ts.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js +9 -4
- package/lib/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.js.map +1 -1
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +7 -7
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/SimpleView/helper.js +1 -1
- package/lib/components/infra/Containers/SimpleView/helper.js.map +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +1 -1
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -1
- package/lib/components/infra/Containers/container-helpers.d.ts +2 -0
- package/lib/components/infra/Containers/container-helpers.d.ts.map +1 -0
- package/lib/components/infra/Containers/{helpers.js → container-helpers.js} +1 -1
- package/lib/components/infra/Containers/container-helpers.js.map +1 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/DashboardFilter.js +4 -6
- package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -1
- package/lib/components/infra/DashboardFilter/filterUtils.js +3 -5
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts +1 -0
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -1
- package/lib/components/infra/DeferLoad/DeferLoad.js +7 -8
- package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.d.ts +1 -1
- package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -1
- package/lib/components/infra/MultiStep/MultiStep.js +12 -11
- package/lib/components/infra/MultiStep/MultiStep.js.map +1 -1
- package/lib/components/infra/NavBar/NavBar.css +1 -0
- package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -1
- package/lib/components/infra/NavBar/NavBar.js +24 -16
- package/lib/components/infra/NavBar/NavBar.js.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -1
- package/lib/components/infra/RootContainer/RootContainer.js +5 -6
- package/lib/components/infra/RootContainer/RootContainer.js.map +1 -1
- package/lib/components/infra/Stages/Stages.js +4 -4
- package/lib/components/infra/Stages/Stages.js.map +1 -1
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.d.ts.map +1 -1
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js +4 -3
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.js.map +1 -1
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js +2 -2
- package/lib/components/infra/VerticalTabs/VerticalTabs/VerticalTabs.js.map +1 -1
- package/lib/components/infra/View/View.d.ts +1 -0
- package/lib/components/infra/View/View.d.ts.map +1 -1
- package/lib/components/infra/View/View.js +32 -2
- package/lib/components/infra/View/View.js.map +1 -1
- package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts +2 -0
- package/lib/components/template/AdvancedSearch/AdvancedSearch.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js +69 -0
- package/lib/components/template/AdvancedSearch/AdvancedSearch.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts +24 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js +32 -0
- package/lib/components/template/AdvancedSearch/SearchGroup/persistUtils.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts +3 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js +181 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/SearchGroups.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts +10 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js +26 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/hooks.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts +2 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.js +2 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/index.js.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts +16 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.js +22 -0
- package/lib/components/template/AdvancedSearch/SearchGroups/utils.js.map +1 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.d.ts +11 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.js +11 -0
- package/lib/components/template/AdvancedSearch/TemplateContext.js.map +1 -0
- package/lib/components/template/AdvancedSearch/index.d.ts +2 -0
- package/lib/components/template/AdvancedSearch/index.d.ts.map +1 -0
- package/lib/components/template/AdvancedSearch/index.js +2 -0
- package/lib/components/template/AdvancedSearch/index.js.map +1 -0
- package/lib/components/template/AppShell/AppShell.d.ts +2 -0
- package/lib/components/template/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/template/AppShell/AppShell.js +33 -10
- package/lib/components/template/AppShell/AppShell.js.map +1 -1
- package/lib/components/template/CaseView/CaseView.d.ts +1 -0
- package/lib/components/template/CaseView/CaseView.d.ts.map +1 -1
- package/lib/components/template/CaseView/CaseView.js +7 -7
- package/lib/components/template/CaseView/CaseView.js.map +1 -1
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +6 -6
- package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/components/template/Confirmation/Confirmation.js +3 -2
- package/lib/components/template/Confirmation/Confirmation.js.map +1 -1
- package/lib/components/template/DataReference/DataReference.d.ts +7 -0
- package/lib/components/template/DataReference/DataReference.d.ts.map +1 -1
- package/lib/components/template/DataReference/DataReference.js +245 -81
- package/lib/components/template/DataReference/DataReference.js.map +1 -1
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts +8 -0
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.d.ts.map +1 -0
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js +9 -0
- package/lib/components/template/DataReference/DataReferenceAdvancedSearchContext.js.map +1 -0
- package/lib/components/template/DataReference/SearchForm.d.ts +3 -0
- package/lib/components/template/DataReference/SearchForm.d.ts.map +1 -0
- package/lib/components/template/DataReference/SearchForm.js +86 -0
- package/lib/components/template/DataReference/SearchForm.js.map +1 -0
- package/lib/components/template/DataReference/utils.d.ts +15 -0
- package/lib/components/template/DataReference/utils.d.ts.map +1 -0
- package/lib/components/template/DataReference/utils.js +75 -0
- package/lib/components/template/DataReference/utils.js.map +1 -0
- package/lib/components/template/DefaultForm/utils/index.d.ts.map +1 -1
- package/lib/components/template/DefaultForm/utils/index.js +1 -2
- package/lib/components/template/DefaultForm/utils/index.js.map +1 -1
- package/lib/components/template/Details/Details/Details.js +2 -2
- package/lib/components/template/Details/Details/Details.js.map +1 -1
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js +3 -3
- package/lib/components/template/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -1
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -2
- package/lib/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -2
- package/lib/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.d.ts.map +1 -1
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js +4 -4
- package/lib/components/template/Details/DynamicTabs/DynamicTabs.js.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -1
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js +9 -5
- package/lib/components/template/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -1
- package/lib/components/template/InlineDashboard/InlineDashboard.js +2 -2
- package/lib/components/template/InlineDashboard/InlineDashboard.js.map +1 -1
- package/lib/components/template/ListView/ListView.d.ts +3 -0
- package/lib/components/template/ListView/ListView.d.ts.map +1 -1
- package/lib/components/template/ListView/ListView.js +166 -90
- package/lib/components/template/ListView/ListView.js.map +1 -1
- package/lib/components/template/ListView/utils.d.ts.map +1 -1
- package/lib/components/template/ListView/utils.js +29 -6
- package/lib/components/template/ListView/utils.js.map +1 -1
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +2 -2
- package/lib/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -1
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js +2 -2
- package/lib/components/template/OneColumn/OneColumn/OneColumn.js.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.d.ts.map +1 -1
- package/lib/components/template/PromotedFilters/PromotedFilters.js +1 -2
- package/lib/components/template/PromotedFilters/PromotedFilters.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js +0 -2
- package/lib/components/template/SimpleTable/SimpleTable/SimpleTable.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +2 -0
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js +67 -44
- package/lib/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -1
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +2 -4
- package/lib/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -1
- package/lib/components/template/SubTabs/SubTabs.js +2 -2
- package/lib/components/template/SubTabs/SubTabs.js.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.d.ts +10 -0
- package/lib/components/template/SubTabs/tabUtils.d.ts.map +1 -1
- package/lib/components/template/SubTabs/tabUtils.js +102 -1
- package/lib/components/template/SubTabs/tabUtils.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js +2 -2
- package/lib/components/template/TwoColumn/TwoColumn/TwoColumn.js.map +1 -1
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js +2 -2
- package/lib/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -1
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +2 -2
- package/lib/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -1
- package/lib/components/template/WssNavBar/WssNavBar.js +9 -9
- package/lib/components/template/WssNavBar/WssNavBar.js.map +1 -1
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js +2 -2
- package/lib/components/widget/AppAnnouncement/AppAnnouncement.js.map +1 -1
- package/lib/components/widget/Attachment/Attachment.css +1 -0
- package/lib/components/widget/Attachment/Attachment.d.ts.map +1 -1
- package/lib/components/widget/Attachment/Attachment.js +7 -10
- package/lib/components/widget/Attachment/Attachment.js.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/components/widget/CaseHistory/CaseHistory.js +8 -7
- package/lib/components/widget/CaseHistory/CaseHistory.js.map +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js +1 -1
- package/lib/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.js.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.d.ts.map +1 -1
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js +4 -4
- package/lib/components/widget/FileUtility/FileUtility/FileUtility.js.map +1 -1
- package/lib/components/widget/Followers/Followers.js +2 -2
- package/lib/components/widget/Followers/Followers.js.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.d.ts.map +1 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js +0 -1
- package/lib/components/widget/QuickCreate/QuickCreate.js.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/lib/components/widget/SummaryItem/SummaryItem.js +3 -3
- package/lib/components/widget/SummaryItem/SummaryItem.js.map +1 -1
- package/lib/components/widget/ToDo/ToDo.d.ts.map +1 -1
- package/lib/components/widget/ToDo/ToDo.js +60 -17
- package/lib/components/widget/ToDo/ToDo.js.map +1 -1
- package/lib/doc/KeyReleaseUpdates.md +19 -7
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useFocusFirstField.d.ts +7 -0
- package/lib/hooks/useFocusFirstField.d.ts.map +1 -0
- package/lib/hooks/useFocusFirstField.js +20 -0
- package/lib/hooks/useFocusFirstField.js.map +1 -0
- package/lib/hooks/useGetTabsCount.d.ts +11 -0
- package/lib/hooks/useGetTabsCount.d.ts.map +1 -0
- package/lib/hooks/useGetTabsCount.js +166 -0
- package/lib/hooks/useGetTabsCount.js.map +1 -0
- package/lib/hooks/useIsMount.d.ts +2 -0
- package/lib/hooks/useIsMount.d.ts.map +1 -0
- package/lib/hooks/useIsMount.js +9 -0
- package/lib/hooks/useIsMount.js.map +1 -0
- package/lib/hooks/useScrolltoTop.d.ts +7 -0
- package/lib/hooks/useScrolltoTop.d.ts.map +1 -0
- package/lib/hooks/useScrolltoTop.js +13 -0
- package/lib/hooks/useScrolltoTop.js.map +1 -0
- package/lib/sdk-pega-component-map.d.ts +7 -1
- package/lib/sdk-pega-component-map.js +7 -1
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/lib/theme.d.ts +11 -0
- package/lib/theme.d.ts.map +1 -0
- package/lib/theme.js +31 -0
- package/lib/theme.js.map +1 -0
- package/package.json +30 -1
- package/lib/components/infra/Containers/helpers.d.ts +0 -2
- package/lib/components/infra/Containers/helpers.d.ts.map +0 -1
- package/lib/components/infra/Containers/helpers.js.map +0 -1
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
+
import { getTabLabel } from '../components/template/SubTabs/tabUtils';
|
|
3
|
+
const useGetTabsCount = (deferLoadedTabs, uuid, selectedTabId, template) => {
|
|
4
|
+
const pConn = deferLoadedTabs.props.getPConnect();
|
|
5
|
+
const [availableTabs] = useState(deferLoadedTabs.props.getPConnect().getChildren() || []);
|
|
6
|
+
const [data, setData] = useState([]);
|
|
7
|
+
const [loading, setLoading] = useState(false);
|
|
8
|
+
const [error, setError] = useState(false);
|
|
9
|
+
const [countMetadata, setCountMetadata] = useState([]);
|
|
10
|
+
const [currentTabId, setCurrentTabId] = useState(selectedTabId);
|
|
11
|
+
const viewName = deferLoadedTabs?.props?.getPConnect()?.options?.viewName || null;
|
|
12
|
+
const tabContent = (id, index, overideTabContent, tab) => {
|
|
13
|
+
if (id === currentTabId || template === 'HierarchicalForm') {
|
|
14
|
+
if (overideTabContent) {
|
|
15
|
+
return tab.getPConnect().getComponent();
|
|
16
|
+
}
|
|
17
|
+
if (data[index]?.content) {
|
|
18
|
+
return data[index]?.content;
|
|
19
|
+
}
|
|
20
|
+
return tab.getPConnect().getComponent();
|
|
21
|
+
}
|
|
22
|
+
if (template !== 'HierarchicalForm') {
|
|
23
|
+
return overideTabContent ? null : data[index]?.content;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const getTabsData = useCallback(overideTabContent => availableTabs.map((tab, index) => {
|
|
27
|
+
const config = tab.getPConnect().getConfigProps();
|
|
28
|
+
const name = getTabLabel(tab.getPConnect());
|
|
29
|
+
const tabId = `${viewName}-${config.name || name}-${index}`;
|
|
30
|
+
const count = countMetadata.find((item) => item.tabId === tabId)?.count;
|
|
31
|
+
return {
|
|
32
|
+
name,
|
|
33
|
+
id: tabId,
|
|
34
|
+
getPConnect: tab.getPConnect,
|
|
35
|
+
content: tabContent(tabId, index, overideTabContent, tab),
|
|
36
|
+
loaded: tabId === currentTabId || Boolean(data[index]?.content),
|
|
37
|
+
visibility: () => {
|
|
38
|
+
const tabConfig = tab.getPConnect().getConfigProps();
|
|
39
|
+
const isVisible = !('visibility' in tabConfig) || tabConfig.visibility === true;
|
|
40
|
+
if (!isVisible) {
|
|
41
|
+
tab.getPConnect().removeNode();
|
|
42
|
+
}
|
|
43
|
+
return isVisible;
|
|
44
|
+
},
|
|
45
|
+
count
|
|
46
|
+
};
|
|
47
|
+
}), [availableTabs, countMetadata, data, currentTabId, uuid]);
|
|
48
|
+
const tabCountSources = useMemo(() => availableTabs.reduce((prev, tab, index) => {
|
|
49
|
+
const config = tab.getPConnect().getConfigProps();
|
|
50
|
+
const { value: showTabCount } = config.inheritedProps?.find(item => item.prop === 'showTabCount') || {};
|
|
51
|
+
const { value } = config.inheritedProps?.find(item => item.prop === 'count') || {};
|
|
52
|
+
const tabCountSource = config.inheritedProps?.find(item => item.prop === 'tabCount');
|
|
53
|
+
const name = getTabLabel(tab.getPConnect());
|
|
54
|
+
const tabId = `${viewName}-${config.name || name}-${index}`;
|
|
55
|
+
if (showTabCount) {
|
|
56
|
+
if (tabCountSource?.value?.fields?.count) {
|
|
57
|
+
const isPrefixedByDot = tabCountSource.value.fields.count.substring(0, 1) === '.';
|
|
58
|
+
return {
|
|
59
|
+
...prev,
|
|
60
|
+
dataPageSources: [
|
|
61
|
+
...prev.dataPageSources,
|
|
62
|
+
{
|
|
63
|
+
dataPageName: tabCountSource.value.source,
|
|
64
|
+
tabId,
|
|
65
|
+
tabCountProp: isPrefixedByDot ? tabCountSource.value.fields.count.substring(1) : tabCountSource.value.fields.count,
|
|
66
|
+
dataViewParameters: tabCountSource.value?.parameters || {}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
if (Number.isInteger(value) && value % 1 === 0) {
|
|
72
|
+
return {
|
|
73
|
+
...prev,
|
|
74
|
+
calculatedFields: [
|
|
75
|
+
...prev.calculatedFields,
|
|
76
|
+
{
|
|
77
|
+
count: value,
|
|
78
|
+
context: tab.getPConnect().getContextName(),
|
|
79
|
+
tabId
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
if (value?.isDeferred) {
|
|
85
|
+
return {
|
|
86
|
+
...prev,
|
|
87
|
+
calculatedFields: [
|
|
88
|
+
...prev.calculatedFields,
|
|
89
|
+
{
|
|
90
|
+
propertyName: value.propertyName,
|
|
91
|
+
context: 'content',
|
|
92
|
+
tabId
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return prev;
|
|
99
|
+
}, {
|
|
100
|
+
dataPageSources: [],
|
|
101
|
+
calculatedFields: []
|
|
102
|
+
}), []);
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
setCurrentTabId(selectedTabId);
|
|
105
|
+
}, [selectedTabId]);
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
setData(getTabsData());
|
|
109
|
+
}, [countMetadata, currentTabId]);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
const { dataPageSources, calculatedFields } = tabCountSources;
|
|
112
|
+
const calculatedFieldsWithoutValue = calculatedFields.filter(item => item.propertyName);
|
|
113
|
+
if (dataPageSources.length) {
|
|
114
|
+
setLoading(true);
|
|
115
|
+
Promise.all(dataPageSources.map(item => PCore.getDataPageUtils().getPageDataAsync(item.dataPageName, '', item.dataViewParameters)))
|
|
116
|
+
.then(res => {
|
|
117
|
+
const temp = res.map((r, index) => ({
|
|
118
|
+
...dataPageSources[index],
|
|
119
|
+
count: r[dataPageSources[index].tabCountProp]
|
|
120
|
+
}));
|
|
121
|
+
setCountMetadata(temp);
|
|
122
|
+
setLoading(false);
|
|
123
|
+
})
|
|
124
|
+
.catch(err => {
|
|
125
|
+
setError(err);
|
|
126
|
+
setLoading(false);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
else if (calculatedFieldsWithoutValue.length) {
|
|
130
|
+
PCore.getViewRuleApi()
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
.getCalculatedFields(pConn.getCaseInfo().getKey(), pConn.getCurrentView(), calculatedFieldsWithoutValue.map(({ propertyName, context }) => ({
|
|
133
|
+
name: propertyName,
|
|
134
|
+
context
|
|
135
|
+
})))
|
|
136
|
+
.then(res => {
|
|
137
|
+
const values = res?.data?.caseInfo?.content || {};
|
|
138
|
+
const temp = calculatedFields.map(field => ({
|
|
139
|
+
...field,
|
|
140
|
+
count: values[field.propertyName?.substring(1)] || field.count
|
|
141
|
+
}));
|
|
142
|
+
setCountMetadata(temp);
|
|
143
|
+
})
|
|
144
|
+
.catch(err => {
|
|
145
|
+
setError(err);
|
|
146
|
+
setLoading(false);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
setCountMetadata(calculatedFields.map(field => ({
|
|
151
|
+
...field,
|
|
152
|
+
count: field.count
|
|
153
|
+
})));
|
|
154
|
+
}
|
|
155
|
+
}, []);
|
|
156
|
+
return {
|
|
157
|
+
availableTabs,
|
|
158
|
+
data,
|
|
159
|
+
loading,
|
|
160
|
+
error,
|
|
161
|
+
updateCurrentTabId: setCurrentTabId,
|
|
162
|
+
refreshTabData: () => setData(getTabsData(true))
|
|
163
|
+
};
|
|
164
|
+
};
|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AI;QACJ,OAAO;QACP,KAAK;QACL,kBAAkB,EAAE,eAAe;QACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KACjD,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["import { useState, useEffect, useCallback, useMemo } from 'react';\n\nimport { getTabLabel } from '../components/template/SubTabs/tabUtils';\n\nconst useGetTabsCount = (deferLoadedTabs, uuid, selectedTabId, template) => {\n const pConn = deferLoadedTabs.props.getPConnect();\n const [availableTabs] = useState(deferLoadedTabs.props.getPConnect().getChildren() || []);\n const [data, setData] = useState<any[]>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(false);\n const [countMetadata, setCountMetadata] = useState<any[]>([]);\n const [currentTabId, setCurrentTabId] = useState(selectedTabId);\n\n const viewName = deferLoadedTabs?.props?.getPConnect()?.options?.viewName || null;\n\n const tabContent = (id, index, overideTabContent, tab) => {\n if (id === currentTabId || template === 'HierarchicalForm') {\n if (overideTabContent) {\n return tab.getPConnect().getComponent();\n }\n if (data[index]?.content) {\n return data[index]?.content;\n }\n return tab.getPConnect().getComponent();\n }\n if (template !== 'HierarchicalForm') {\n return overideTabContent ? null : data[index]?.content;\n }\n };\n\n const getTabsData = useCallback(\n overideTabContent =>\n availableTabs.map((tab, index) => {\n const config = tab.getPConnect().getConfigProps();\n const name = getTabLabel(tab.getPConnect());\n const tabId = `${viewName}-${config.name || name}-${index}`;\n const count = countMetadata.find((item: any) => item.tabId === tabId)?.count;\n\n return {\n name,\n id: tabId,\n getPConnect: tab.getPConnect,\n content: tabContent(tabId, index, overideTabContent, tab),\n loaded: tabId === currentTabId || Boolean(data[index]?.content),\n visibility: () => {\n const tabConfig = tab.getPConnect().getConfigProps();\n const isVisible = !('visibility' in tabConfig) || tabConfig.visibility === true;\n if (!isVisible) {\n tab.getPConnect().removeNode();\n }\n return isVisible;\n },\n count\n };\n }),\n [availableTabs, countMetadata, data, currentTabId, uuid]\n );\n\n const tabCountSources = useMemo(\n () =>\n availableTabs.reduce(\n (prev, tab, index) => {\n const config = tab.getPConnect().getConfigProps();\n const { value: showTabCount } = config.inheritedProps?.find(item => item.prop === 'showTabCount') || {};\n const { value } = config.inheritedProps?.find(item => item.prop === 'count') || {};\n const tabCountSource = config.inheritedProps?.find(item => item.prop === 'tabCount');\n const name = getTabLabel(tab.getPConnect());\n const tabId = `${viewName}-${config.name || name}-${index}`;\n if (showTabCount) {\n if (tabCountSource?.value?.fields?.count) {\n const isPrefixedByDot = tabCountSource.value.fields.count.substring(0, 1) === '.';\n return {\n ...prev,\n dataPageSources: [\n ...prev.dataPageSources,\n {\n dataPageName: tabCountSource.value.source,\n tabId,\n tabCountProp: isPrefixedByDot ? tabCountSource.value.fields.count.substring(1) : tabCountSource.value.fields.count,\n dataViewParameters: tabCountSource.value?.parameters || {}\n }\n ]\n };\n }\n if (Number.isInteger(value) && value % 1 === 0) {\n return {\n ...prev,\n calculatedFields: [\n ...prev.calculatedFields,\n {\n count: value,\n context: tab.getPConnect().getContextName(),\n tabId\n }\n ]\n };\n }\n if (value?.isDeferred) {\n return {\n ...prev,\n calculatedFields: [\n ...prev.calculatedFields,\n {\n propertyName: value.propertyName,\n context: 'content',\n tabId\n }\n ]\n };\n }\n }\n return prev;\n },\n {\n dataPageSources: [],\n calculatedFields: []\n }\n ),\n []\n );\n\n useEffect(() => {\n setCurrentTabId(selectedTabId);\n }, [selectedTabId]);\n\n useEffect(() => {\n // @ts-ignore\n setData(getTabsData());\n }, [countMetadata, currentTabId]);\n\n useEffect(() => {\n const { dataPageSources, calculatedFields } = tabCountSources;\n const calculatedFieldsWithoutValue = calculatedFields.filter(item => item.propertyName);\n if (dataPageSources.length) {\n setLoading(true);\n Promise.all(dataPageSources.map(item => PCore.getDataPageUtils().getPageDataAsync(item.dataPageName, '', item.dataViewParameters)))\n .then(res => {\n const temp = res.map((r, index) => ({\n ...dataPageSources[index],\n count: r[dataPageSources[index].tabCountProp]\n }));\n setCountMetadata(temp);\n setLoading(false);\n })\n .catch(err => {\n setError(err);\n setLoading(false);\n });\n } else if (calculatedFieldsWithoutValue.length) {\n PCore.getViewRuleApi()\n // @ts-ignore\n .getCalculatedFields(\n pConn.getCaseInfo().getKey(),\n pConn.getCurrentView(),\n calculatedFieldsWithoutValue.map(({ propertyName, context }) => ({\n name: propertyName,\n context\n }))\n )\n .then(res => {\n const values = res?.data?.caseInfo?.content || {};\n const temp = calculatedFields.map(field => ({\n ...field,\n count: values[field.propertyName?.substring(1)] || field.count\n }));\n setCountMetadata(temp);\n })\n .catch(err => {\n setError(err);\n setLoading(false);\n });\n } else {\n setCountMetadata(\n calculatedFields.map(field => ({\n ...field,\n count: field.count\n }))\n );\n }\n }, []);\n\n return {\n availableTabs,\n data,\n loading,\n error,\n updateCurrentTabId: setCurrentTabId,\n refreshTabData: () => setData(getTabsData(true))\n };\n};\n\nexport default useGetTabsCount;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsMount.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMount.js"],"names":[],"mappings":"AAEA,8CAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsMount.js","sourceRoot":"","sources":["../../src/hooks/useIsMount.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,UAAU;IAChC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAEhC,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,OAAO,GAAG,KAAK,CAAC;IAC7B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,UAAU,CAAC,OAAO,CAAC;AAC5B,CAAC","sourcesContent":["import { useRef, useEffect } from 'react';\n\nexport default function useIsMount() {\n const isMountRef = useRef(true);\n\n useEffect(() => {\n isMountRef.current = false;\n }, []);\n\n return isMountRef.current;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrolltoTop.d.ts","sourceRoot":"","sources":["../../src/hooks/useScrolltoTop.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,cAAc,kCAKnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @example useScrolltoTop(id, children);;
|
|
4
|
+
* Page scrolls to top on view change.
|
|
5
|
+
*/
|
|
6
|
+
const useScrolltoTop = (id, children) => {
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
const scrollElement = document.querySelector(id);
|
|
9
|
+
scrollElement?.scrollIntoView();
|
|
10
|
+
}, [children]);
|
|
11
|
+
};
|
|
12
|
+
export default useScrolltoTop;
|
|
13
|
+
//# sourceMappingURL=useScrolltoTop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScrolltoTop.js","sourceRoot":"","sources":["../../src/hooks/useScrolltoTop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC;;;GAGG;AACH,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QACjD,aAAa,EAAE,cAAc,EAAE,CAAC;IAClC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useEffect } from 'react';\n\n/**\n * @example useScrolltoTop(id, children);;\n * Page scrolls to top on view change.\n */\nconst useScrolltoTop = (id, children) => {\n useEffect(() => {\n const scrollElement = document.querySelector(id);\n scrollElement?.scrollIntoView();\n }, [children]);\n};\n\nexport default useScrolltoTop;\n"]}
|
|
@@ -2,6 +2,7 @@ export default pegaSdkComponentMap;
|
|
|
2
2
|
declare namespace pegaSdkComponentMap {
|
|
3
3
|
export { ActionButtons };
|
|
4
4
|
export { ActionButtonsForFileUtil };
|
|
5
|
+
export { AdvancedSearch };
|
|
5
6
|
export { AlertBanner };
|
|
6
7
|
export { AppAnnouncement };
|
|
7
8
|
export { AppShell };
|
|
@@ -75,6 +76,8 @@ declare namespace pegaSdkComponentMap {
|
|
|
75
76
|
export { RichTextEditor };
|
|
76
77
|
export { RootContainer };
|
|
77
78
|
export { ScalarList };
|
|
79
|
+
export { SearchForm };
|
|
80
|
+
export { SearchGroups };
|
|
78
81
|
export { SemanticLink };
|
|
79
82
|
export { SimpleTable };
|
|
80
83
|
export { SimpleTableManual };
|
|
@@ -104,8 +107,9 @@ declare namespace pegaSdkComponentMap {
|
|
|
104
107
|
export { WssNavBar };
|
|
105
108
|
export { WssQuickCreate };
|
|
106
109
|
}
|
|
107
|
-
import ActionButtons from "
|
|
110
|
+
import ActionButtons from "./components/infra/ActionButtons";
|
|
108
111
|
import ActionButtonsForFileUtil from "./components/widget/FileUtility/ActionButtonsForFileUtil";
|
|
112
|
+
import AdvancedSearch from "./components/template/AdvancedSearch";
|
|
109
113
|
import AlertBanner from "./components/designSystemExtension/AlertBanner";
|
|
110
114
|
import AppAnnouncement from "./components/widget/AppAnnouncement";
|
|
111
115
|
import AppShell from "./components/template/AppShell/AppShell";
|
|
@@ -179,6 +183,8 @@ import RichText from "./components/field/RichText";
|
|
|
179
183
|
import RichTextEditor from "./components/designSystemExtension/RichTextEditor";
|
|
180
184
|
import RootContainer from "./components/infra/RootContainer/RootContainer";
|
|
181
185
|
import ScalarList from "./components/field/ScalarList";
|
|
186
|
+
import SearchForm from "./components/template/DataReference/SearchForm";
|
|
187
|
+
import SearchGroups from "./components/template/AdvancedSearch/SearchGroups";
|
|
182
188
|
import SemanticLink from "./components/field/SemanticLink";
|
|
183
189
|
import SimpleTable from "./components/template/SimpleTable/SimpleTable";
|
|
184
190
|
import SimpleTableManual from "./components/template/SimpleTable/SimpleTableManual";
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// placed in the npm module's 'lib' directory. So, we expect to import from there.
|
|
3
3
|
// This file should import and expose ALL of the components that may be
|
|
4
4
|
// dynamically rendered at runtime via calls to react_pconnect or the View component
|
|
5
|
-
import ActionButtons from '
|
|
5
|
+
import ActionButtons from './components/infra/ActionButtons';
|
|
6
6
|
import ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';
|
|
7
|
+
import AdvancedSearch from './components/template/AdvancedSearch';
|
|
7
8
|
import AlertBanner from './components/designSystemExtension/AlertBanner';
|
|
8
9
|
import AppAnnouncement from './components/widget/AppAnnouncement';
|
|
9
10
|
import AppShell from './components/template/AppShell/AppShell';
|
|
@@ -77,6 +78,8 @@ import RichText from './components/field/RichText';
|
|
|
77
78
|
import RichTextEditor from './components/designSystemExtension/RichTextEditor';
|
|
78
79
|
import RootContainer from './components/infra/RootContainer/RootContainer';
|
|
79
80
|
import ScalarList from './components/field/ScalarList';
|
|
81
|
+
import SearchForm from './components/template/DataReference/SearchForm';
|
|
82
|
+
import SearchGroups from './components/template/AdvancedSearch/SearchGroups';
|
|
80
83
|
import SemanticLink from './components/field/SemanticLink';
|
|
81
84
|
import SimpleTable from './components/template/SimpleTable/SimpleTable';
|
|
82
85
|
import SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';
|
|
@@ -115,6 +118,7 @@ import WssQuickCreate from './components/designSystemExtension/WssQuickCreate';
|
|
|
115
118
|
const pegaSdkComponentMap = {
|
|
116
119
|
ActionButtons,
|
|
117
120
|
ActionButtonsForFileUtil,
|
|
121
|
+
AdvancedSearch,
|
|
118
122
|
AlertBanner,
|
|
119
123
|
AppAnnouncement,
|
|
120
124
|
AppShell,
|
|
@@ -188,6 +192,8 @@ const pegaSdkComponentMap = {
|
|
|
188
192
|
RichTextEditor,
|
|
189
193
|
RootContainer,
|
|
190
194
|
ScalarList,
|
|
195
|
+
SearchForm,
|
|
196
|
+
SearchGroups,
|
|
191
197
|
SemanticLink,
|
|
192
198
|
SimpleTable,
|
|
193
199
|
SimpleTableManual,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAElE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,MAAM,MAAM,2CAA2C,CAAC;AAC/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,WAAW,MAAM,gCAAgC,CAAC;AACzD,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,sDAAsD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAC9D,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,aAAa,MAAM,qCAAqC,CAAC;AAChE,OAAO,IAAI,MAAM,yBAAyB,CAAC;AAC3C,OAAO,Q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UAAU;IACV,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,WAAW;IACX,aAAa;IACb,SAAS;IACT,KAAK;IACL,eAAe;IACf,mBAAmB;IACnB,OAAO;IACP,qBAAqB;IACrB,QAAQ;IACR,QAAQ;IACR,qBAAqB;IACrB,kBAAkB;IAClB,sBAAsB;IACtB,WAAW;IACX,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,MAAM;IACN,SAAS;IACT,aAAa;IACb,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,KAAK;IACL,eAAe;IACf,KAAK;IACL,WAAW;IACX,SAAS,EAAE,SAAS;IACpB,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,cAAc;IACd,aAAa;IACb,UAAU;IACV,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,MAAM;IACN,OAAO;IACP,WAAW;IACX,WAAW;IACX,QAAQ;IACR,WAAW;IACX,SAAS;IACT,IAAI;IACJ,IAAI,EAAE,IAAI;IACV,SAAS;IACT,aAAa;IACb,YAAY;IACZ,GAAG;IACH,aAAa;IACb,YAAY;IACZ,IAAI;IACJ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,SAAS;IACT,cAAc;CACf,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons';\n\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport DynamicTabs from './components/template/Details/DynamicTabs';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport Group from './components/field/Group';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport Multiselect from './components/field/Multiselect/Multiselect';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n ActionButtons,\n ActionButtonsForFileUtil,\n AlertBanner,\n AppAnnouncement,\n AppShell,\n Assignment,\n AssignmentCard,\n Attachment,\n AutoComplete,\n Banner,\n BannerPage,\n CancelAlert,\n CaseHistory,\n CaseSummary,\n CaseSummaryFields,\n CaseView,\n CaseViewActionsMenu,\n Checkbox,\n Confirmation,\n Currency,\n DashboardFilter,\n DataReference,\n Date,\n DateTime,\n Decimal,\n DefaultForm,\n DeferLoad,\n Details,\n DetailsSubTabs,\n DetailsThreeColumn,\n DetailsTwoColumn,\n Dropdown,\n DynamicTabs,\n Email,\n ErrorBoundary,\n FieldGroup,\n FieldGroupList,\n FieldGroupTemplate,\n FieldValueList,\n FileUtility,\n FlowContainer,\n Followers,\n Group,\n InlineDashboard,\n InlineDashboardPage,\n Integer,\n LeftAlignVerticalTabs,\n ListPage,\n ListView,\n ListViewActionButtons,\n ModalViewContainer,\n MultiReferenceReadOnly,\n Multiselect,\n MultiStep,\n NarrowWide,\n NarrowWideDetails,\n NarrowWideForm,\n NarrowWidePage,\n NavBar,\n OneColumn,\n OneColumnPage,\n OneColumnTab,\n Operator,\n Percentage,\n Phone,\n PromotedFilters,\n Pulse,\n QuickCreate,\n reference: Reference, // See note about about non-standard capitalization\n RadioButtons,\n Region,\n RichText,\n RichTextEditor,\n RootContainer,\n ScalarList,\n SemanticLink,\n SimpleTable,\n SimpleTableManual,\n SimpleTableSelect,\n SingleReferenceReadOnly,\n Stages,\n SubTabs,\n SummaryItem,\n SummaryList,\n TextArea,\n TextContent,\n TextInput,\n Time,\n Todo: ToDo, // See note about about non-standard capitalization\n TwoColumn,\n TwoColumnPage,\n TwoColumnTab,\n URL,\n UserReference,\n VerticalTabs,\n View,\n ViewContainer,\n WideNarrow,\n WideNarrowDetails,\n WideNarrowForm,\n WideNarrowPage,\n WssNavBar,\n WssQuickCreate\n};\n\nexport default pegaSdkComponentMap;\n"]}
|
|
1
|
+
{"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,kCAAkC,CAAC;AAC7D,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,cAAc,MAAM,sCAAsC,CAAC;AAClE,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,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;IACjB,uBAAuB;IACvB,MAAM;IACN,OAAO;IACP,WAAW;IACX,WAAW;IACX,QAAQ;IACR,WAAW;IACX,SAAS;IACT,IAAI;IACJ,IAAI,EAAE,IAAI;IACV,SAAS;IACT,aAAa;IACb,YAAY;IACZ,GAAG;IACH,aAAa;IACb,YAAY;IACZ,IAAI;IACJ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,SAAS;IACT,cAAc;CACf,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from './components/infra/ActionButtons';\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AdvancedSearch from './components/template/AdvancedSearch';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport DynamicTabs from './components/template/Details/DynamicTabs';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport Group from './components/field/Group';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport Multiselect from './components/field/Multiselect/Multiselect';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SearchForm from './components/template/DataReference/SearchForm';\nimport SearchGroups from './components/template/AdvancedSearch/SearchGroups';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n ActionButtons,\n ActionButtonsForFileUtil,\n AdvancedSearch,\n AlertBanner,\n AppAnnouncement,\n AppShell,\n Assignment,\n AssignmentCard,\n Attachment,\n AutoComplete,\n Banner,\n BannerPage,\n CancelAlert,\n CaseHistory,\n CaseSummary,\n CaseSummaryFields,\n CaseView,\n CaseViewActionsMenu,\n Checkbox,\n Confirmation,\n Currency,\n DashboardFilter,\n DataReference,\n Date,\n DateTime,\n Decimal,\n DefaultForm,\n DeferLoad,\n Details,\n DetailsSubTabs,\n DetailsThreeColumn,\n DetailsTwoColumn,\n Dropdown,\n DynamicTabs,\n Email,\n ErrorBoundary,\n FieldGroup,\n FieldGroupList,\n FieldGroupTemplate,\n FieldValueList,\n FileUtility,\n FlowContainer,\n Followers,\n Group,\n InlineDashboard,\n InlineDashboardPage,\n Integer,\n LeftAlignVerticalTabs,\n ListPage,\n ListView,\n ListViewActionButtons,\n ModalViewContainer,\n MultiReferenceReadOnly,\n Multiselect,\n MultiStep,\n NarrowWide,\n NarrowWideDetails,\n NarrowWideForm,\n NarrowWidePage,\n NavBar,\n OneColumn,\n OneColumnPage,\n OneColumnTab,\n Operator,\n Percentage,\n Phone,\n PromotedFilters,\n Pulse,\n QuickCreate,\n reference: Reference, // See note about about non-standard capitalization\n RadioButtons,\n Region,\n RichText,\n RichTextEditor,\n RootContainer,\n ScalarList,\n SearchForm,\n SearchGroups,\n SemanticLink,\n SimpleTable,\n SimpleTableManual,\n SimpleTableSelect,\n SingleReferenceReadOnly,\n Stages,\n SubTabs,\n SummaryItem,\n SummaryList,\n TextArea,\n TextContent,\n TextInput,\n Time,\n Todo: ToDo, // See note about about non-standard capitalization\n TwoColumn,\n TwoColumnPage,\n TwoColumnTab,\n URL,\n UserReference,\n VerticalTabs,\n View,\n ViewContainer,\n WideNarrow,\n WideNarrowDetails,\n WideNarrowForm,\n WideNarrowPage,\n WssNavBar,\n WssQuickCreate\n};\n\nexport default pegaSdkComponentMap;\n"]}
|
package/lib/theme.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
/**
|
|
3
|
+
* Since makeStyles is now exported from @mui/styles package which does not know about Theme in the core package.
|
|
4
|
+
* you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core.
|
|
5
|
+
*/
|
|
6
|
+
declare module '@mui/styles/defaultTheme' {
|
|
7
|
+
interface DefaultTheme extends Theme {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const theme: Theme;
|
|
11
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;;GAGG;AACH,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,YAAa,SAAQ,KAAK;KAAG;CACxC;AAGD,eAAO,MAAM,KAAK,OA2BhB,CAAC"}
|
package/lib/theme.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createTheme } from '@mui/material';
|
|
2
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
3
|
+
export const theme = createTheme({
|
|
4
|
+
components: {
|
|
5
|
+
MuiTextField: {
|
|
6
|
+
defaultProps: {
|
|
7
|
+
size: 'small'
|
|
8
|
+
},
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: {
|
|
11
|
+
width: '100%'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
palette: {
|
|
17
|
+
primary: {
|
|
18
|
+
contrastText: '#fff',
|
|
19
|
+
dark: '#303f9f',
|
|
20
|
+
light: '#7986cb',
|
|
21
|
+
main: '#3f51b5'
|
|
22
|
+
},
|
|
23
|
+
secondary: {
|
|
24
|
+
contrastText: '#fff',
|
|
25
|
+
dark: '#c51162',
|
|
26
|
+
light: '#ff4081',
|
|
27
|
+
main: '#f50057'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=theme.js.map
|
package/lib/theme.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,wDAAwD;AACxD,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;aACd;YACD,cAAc,EAAE;gBACd,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;iBACd;aACF;SACF;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;SAChB;QACD,SAAS,EAAE;YACT,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createTheme } from '@mui/material';\nimport { Theme } from '@mui/material/styles';\n\n/**\n * Since makeStyles is now exported from @mui/styles package which does not know about Theme in the core package.\n * you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core.\n */\ndeclare module '@mui/styles/defaultTheme' {\n interface DefaultTheme extends Theme {}\n}\n\n// eslint-disable-next-line import/prefer-default-export\nexport const theme = createTheme({\n components: {\n MuiTextField: {\n defaultProps: {\n size: 'small'\n },\n styleOverrides: {\n root: {\n width: '100%'\n }\n }\n }\n },\n palette: {\n primary: {\n contrastText: '#fff',\n dark: '#303f9f',\n light: '#7986cb',\n main: '#3f51b5'\n },\n secondary: {\n contrastText: '#fff',\n dark: '#c51162',\n light: '#ff4081',\n main: '#f50057'\n }\n }\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/react-sdk-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "React SDK Infrastructure: bridge and components",
|
|
5
5
|
"_filesComment": "During packing, npm ignores everything NOT in the files list",
|
|
6
6
|
"files": [
|
|
@@ -12,6 +12,35 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
14
|
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@emotion/react": "^11.14.0",
|
|
17
|
+
"@emotion/styled": "^11.14.0",
|
|
18
|
+
"@mui/icons-material": "^5.16.7",
|
|
19
|
+
"@mui/lab": "^5.0.0-alpha.173",
|
|
20
|
+
"@mui/material": "^5.16.7",
|
|
21
|
+
"@mui/styles": "^5.16.7",
|
|
22
|
+
"@mui/x-date-pickers": "^7.20.0",
|
|
23
|
+
"@tinymce/tinymce-react": "^5.1.1",
|
|
24
|
+
"clsx": "^2.1.1",
|
|
25
|
+
"dayjs": "^1.11.13",
|
|
26
|
+
"downloadjs": "^1.4.7",
|
|
27
|
+
"fast-deep-equal": "^3.1.3",
|
|
28
|
+
"lodash.clonedeep": "^4.5.0",
|
|
29
|
+
"lodash.difference": "^4.5.0",
|
|
30
|
+
"mui-tel-input": "^6.0.1",
|
|
31
|
+
"react-datepicker": "^4.25.0",
|
|
32
|
+
"react-number-format": "^5.4.4",
|
|
33
|
+
"react-redux": "^8.1.3",
|
|
34
|
+
"throttle-debounce": "^5.0.2"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@pega/pcore-pconnect-typedefs": "~3.2.2"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@pega/auth": "~0.2.30",
|
|
41
|
+
"react": "^17.0.2",
|
|
42
|
+
"react-dom": "^17.0.2"
|
|
43
|
+
},
|
|
15
44
|
"author": "Pegasystems",
|
|
16
45
|
"license": "SEE LICENCE IN LICENSE"
|
|
17
46
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Containers/helpers.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB,wBAIlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/components/infra/Containers/helpers.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,EAAE;IAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,MAAM,aAAa,GAAG,QAAQ,CAAC,gBAAgB,EAAE,CAAC;IAClD,OAAO,KAAK,CAAC,iBAAiB,EAAE,CAAC,sBAAsB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAClF,CAAC,CAAC","sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport const isContainerInitialized = pConnect => {\n const context = pConnect.getContextName();\n const containerName = pConnect.getContainerName();\n return PCore.getContainerUtils().isContainerInitialized(context, containerName);\n};\n"]}
|