@pega/react-sdk-components 0.23.0
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/Context/StoreContext.d.ts +4 -0
- package/lib/bridge/Context/StoreContext.d.ts.map +1 -0
- package/lib/bridge/Context/StoreContext.js +10 -0
- package/lib/bridge/Context/StoreContext.js.map +1 -0
- package/lib/bridge/helpers/sdk_component_map.d.ts +3 -0
- package/lib/bridge/helpers/sdk_component_map.d.ts.map +1 -0
- package/lib/bridge/helpers/sdk_component_map.js +239 -0
- package/lib/bridge/helpers/sdk_component_map.js.map +1 -0
- package/lib/bridge/react_pconnect.d.ts +9 -0
- package/lib/bridge/react_pconnect.d.ts.map +1 -0
- package/lib/bridge/react_pconnect.js +334 -0
- package/lib/bridge/react_pconnect.js.map +1 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.css +19 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts +13 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js +102 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js.map +1 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/index.js +2 -0
- package/lib/components/designSystemExtensions/CaseSummaryFields/index.js.map +1 -0
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.d.ts +13 -0
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js +112 -0
- package/lib/components/designSystemExtensions/DetailsFields/DetailsFields.js.map +1 -0
- package/lib/components/designSystemExtensions/DetailsFields/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/DetailsFields/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/DetailsFields/index.js +2 -0
- package/lib/components/designSystemExtensions/DetailsFields/index.js.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.d.ts +4 -0
- package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.js +76 -0
- package/lib/components/designSystemExtensions/FieldGroup/FieldGroup.js.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroup/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/FieldGroup/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroup/index.js +2 -0
- package/lib/components/designSystemExtensions/FieldGroup/index.js.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.d.ts +4 -0
- package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.js +27 -0
- package/lib/components/designSystemExtensions/FieldGroupList/FieldGroupList.js.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroupList/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/FieldGroupList/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/FieldGroupList/index.js +2 -0
- package/lib/components/designSystemExtensions/FieldGroupList/index.js.map +1 -0
- package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.d.ts +4 -0
- package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.js +69 -0
- package/lib/components/designSystemExtensions/FieldValueList/FieldValueList.js.map +1 -0
- package/lib/components/designSystemExtensions/FieldValueList/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/FieldValueList/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/FieldValueList/index.js +2 -0
- package/lib/components/designSystemExtensions/FieldValueList/index.js.map +1 -0
- package/lib/components/designSystemExtensions/Operator/Operator.d.ts +11 -0
- package/lib/components/designSystemExtensions/Operator/Operator.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/Operator/Operator.js +154 -0
- package/lib/components/designSystemExtensions/Operator/Operator.js.map +1 -0
- package/lib/components/designSystemExtensions/Operator/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/Operator/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/Operator/index.js +2 -0
- package/lib/components/designSystemExtensions/Operator/index.js.map +1 -0
- package/lib/components/designSystemExtensions/Pulse/Pulse.d.ts +3 -0
- package/lib/components/designSystemExtensions/Pulse/Pulse.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/Pulse/Pulse.js +24 -0
- package/lib/components/designSystemExtensions/Pulse/Pulse.js.map +1 -0
- package/lib/components/designSystemExtensions/Pulse/index.d.ts +2 -0
- package/lib/components/designSystemExtensions/Pulse/index.d.ts.map +1 -0
- package/lib/components/designSystemExtensions/Pulse/index.js +2 -0
- package/lib/components/designSystemExtensions/Pulse/index.js.map +1 -0
- package/lib/components/forms/AutoComplete/AutoComplete.d.ts +3 -0
- package/lib/components/forms/AutoComplete/AutoComplete.d.ts.map +1 -0
- package/lib/components/forms/AutoComplete/AutoComplete.js +118 -0
- package/lib/components/forms/AutoComplete/AutoComplete.js.map +1 -0
- package/lib/components/forms/AutoComplete/index.d.ts +2 -0
- package/lib/components/forms/AutoComplete/index.d.ts.map +1 -0
- package/lib/components/forms/AutoComplete/index.js +2 -0
- package/lib/components/forms/AutoComplete/index.js.map +1 -0
- package/lib/components/forms/CancelAlert/CancelAlert.css +24 -0
- package/lib/components/forms/CancelAlert/CancelAlert.d.ts +5 -0
- package/lib/components/forms/CancelAlert/CancelAlert.d.ts.map +1 -0
- package/lib/components/forms/CancelAlert/CancelAlert.js +81 -0
- package/lib/components/forms/CancelAlert/CancelAlert.js.map +1 -0
- package/lib/components/forms/CancelAlert/index.d.ts +2 -0
- package/lib/components/forms/CancelAlert/index.d.ts.map +1 -0
- package/lib/components/forms/CancelAlert/index.js +2 -0
- package/lib/components/forms/CancelAlert/index.js.map +1 -0
- package/lib/components/forms/Checkbox/Checkbox.d.ts +3 -0
- package/lib/components/forms/Checkbox/Checkbox.d.ts.map +1 -0
- package/lib/components/forms/Checkbox/Checkbox.js +34 -0
- package/lib/components/forms/Checkbox/Checkbox.js.map +1 -0
- package/lib/components/forms/Checkbox/index.d.ts +2 -0
- package/lib/components/forms/Checkbox/index.d.ts.map +1 -0
- package/lib/components/forms/Checkbox/index.js +2 -0
- package/lib/components/forms/Checkbox/index.js.map +1 -0
- package/lib/components/forms/Currency/Currency.d.ts +3 -0
- package/lib/components/forms/Currency/Currency.d.ts.map +1 -0
- package/lib/components/forms/Currency/Currency.js +46 -0
- package/lib/components/forms/Currency/Currency.js.map +1 -0
- package/lib/components/forms/Currency/index.d.ts +2 -0
- package/lib/components/forms/Currency/index.d.ts.map +1 -0
- package/lib/components/forms/Currency/index.js +2 -0
- package/lib/components/forms/Currency/index.js.map +1 -0
- package/lib/components/forms/Date/Date.d.ts +3 -0
- package/lib/components/forms/Date/Date.d.ts.map +1 -0
- package/lib/components/forms/Date/Date.js +36 -0
- package/lib/components/forms/Date/Date.js.map +1 -0
- package/lib/components/forms/Date/index.d.ts +2 -0
- package/lib/components/forms/Date/index.d.ts.map +1 -0
- package/lib/components/forms/Date/index.js +2 -0
- package/lib/components/forms/Date/index.js.map +1 -0
- package/lib/components/forms/DateTime/DateTime.d.ts +3 -0
- package/lib/components/forms/DateTime/DateTime.d.ts.map +1 -0
- package/lib/components/forms/DateTime/DateTime.js +35 -0
- package/lib/components/forms/DateTime/DateTime.js.map +1 -0
- package/lib/components/forms/DateTime/index.d.ts +2 -0
- package/lib/components/forms/DateTime/index.d.ts.map +1 -0
- package/lib/components/forms/DateTime/index.js +2 -0
- package/lib/components/forms/DateTime/index.js.map +1 -0
- package/lib/components/forms/Decimal/Decimal.d.ts +3 -0
- package/lib/components/forms/Decimal/Decimal.d.ts.map +1 -0
- package/lib/components/forms/Decimal/Decimal.js +19 -0
- package/lib/components/forms/Decimal/Decimal.js.map +1 -0
- package/lib/components/forms/Decimal/index.d.ts +2 -0
- package/lib/components/forms/Decimal/index.d.ts.map +1 -0
- package/lib/components/forms/Decimal/index.js +2 -0
- package/lib/components/forms/Decimal/index.js.map +1 -0
- package/lib/components/forms/Dropdown/Dropdown.d.ts +3 -0
- package/lib/components/forms/Dropdown/Dropdown.d.ts.map +1 -0
- package/lib/components/forms/Dropdown/Dropdown.js +34 -0
- package/lib/components/forms/Dropdown/Dropdown.js.map +1 -0
- package/lib/components/forms/Dropdown/index.d.ts +2 -0
- package/lib/components/forms/Dropdown/index.d.ts.map +1 -0
- package/lib/components/forms/Dropdown/index.js +2 -0
- package/lib/components/forms/Dropdown/index.js.map +1 -0
- package/lib/components/forms/Email/Email.d.ts +3 -0
- package/lib/components/forms/Email/Email.d.ts.map +1 -0
- package/lib/components/forms/Email/Email.js +28 -0
- package/lib/components/forms/Email/Email.js.map +1 -0
- package/lib/components/forms/Email/index.d.ts +2 -0
- package/lib/components/forms/Email/index.d.ts.map +1 -0
- package/lib/components/forms/Email/index.js +2 -0
- package/lib/components/forms/Email/index.js.map +1 -0
- package/lib/components/forms/Integer/Integer.d.ts +3 -0
- package/lib/components/forms/Integer/Integer.d.ts.map +1 -0
- package/lib/components/forms/Integer/Integer.js +37 -0
- package/lib/components/forms/Integer/Integer.js.map +1 -0
- package/lib/components/forms/Integer/index.d.ts +2 -0
- package/lib/components/forms/Integer/index.d.ts.map +1 -0
- package/lib/components/forms/Integer/index.js +2 -0
- package/lib/components/forms/Integer/index.js.map +1 -0
- package/lib/components/forms/Percentage/Percentage.d.ts +3 -0
- package/lib/components/forms/Percentage/Percentage.d.ts.map +1 -0
- package/lib/components/forms/Percentage/Percentage.js +42 -0
- package/lib/components/forms/Percentage/Percentage.js.map +1 -0
- package/lib/components/forms/Percentage/index.d.ts +2 -0
- package/lib/components/forms/Percentage/index.d.ts.map +1 -0
- package/lib/components/forms/Percentage/index.js +2 -0
- package/lib/components/forms/Percentage/index.js.map +1 -0
- package/lib/components/forms/Phone/Phone.d.ts +3 -0
- package/lib/components/forms/Phone/Phone.d.ts.map +1 -0
- package/lib/components/forms/Phone/Phone.js +36 -0
- package/lib/components/forms/Phone/Phone.js.map +1 -0
- package/lib/components/forms/Phone/index.d.ts +2 -0
- package/lib/components/forms/Phone/index.d.ts.map +1 -0
- package/lib/components/forms/Phone/index.js +2 -0
- package/lib/components/forms/Phone/index.js.map +1 -0
- package/lib/components/forms/RadioButtons/RadioButtons.d.ts +3 -0
- package/lib/components/forms/RadioButtons/RadioButtons.d.ts.map +1 -0
- package/lib/components/forms/RadioButtons/RadioButtons.js +33 -0
- package/lib/components/forms/RadioButtons/RadioButtons.js.map +1 -0
- package/lib/components/forms/RadioButtons/index.d.ts +2 -0
- package/lib/components/forms/RadioButtons/index.d.ts.map +1 -0
- package/lib/components/forms/RadioButtons/index.js +2 -0
- package/lib/components/forms/RadioButtons/index.js.map +1 -0
- package/lib/components/forms/SemanticLink/SemanticLink.d.ts +12 -0
- package/lib/components/forms/SemanticLink/SemanticLink.d.ts.map +1 -0
- package/lib/components/forms/SemanticLink/SemanticLink.js +55 -0
- package/lib/components/forms/SemanticLink/SemanticLink.js.map +1 -0
- package/lib/components/forms/SemanticLink/index.d.ts +2 -0
- package/lib/components/forms/SemanticLink/index.d.ts.map +1 -0
- package/lib/components/forms/SemanticLink/index.js +2 -0
- package/lib/components/forms/SemanticLink/index.js.map +1 -0
- package/lib/components/forms/SemanticLink/utils.d.ts +14 -0
- package/lib/components/forms/SemanticLink/utils.d.ts.map +1 -0
- package/lib/components/forms/SemanticLink/utils.js +42 -0
- package/lib/components/forms/SemanticLink/utils.js.map +1 -0
- package/lib/components/forms/TextArea/TextArea.d.ts +3 -0
- package/lib/components/forms/TextArea/TextArea.d.ts.map +1 -0
- package/lib/components/forms/TextArea/TextArea.js +26 -0
- package/lib/components/forms/TextArea/TextArea.js.map +1 -0
- package/lib/components/forms/TextArea/index.d.ts +2 -0
- package/lib/components/forms/TextArea/index.d.ts.map +1 -0
- package/lib/components/forms/TextArea/index.js +2 -0
- package/lib/components/forms/TextArea/index.js.map +1 -0
- package/lib/components/forms/TextContent/TextContent.d.ts +3 -0
- package/lib/components/forms/TextContent/TextContent.d.ts.map +1 -0
- package/lib/components/forms/TextContent/TextContent.js +29 -0
- package/lib/components/forms/TextContent/TextContent.js.map +1 -0
- package/lib/components/forms/TextContent/index.d.ts +2 -0
- package/lib/components/forms/TextContent/index.d.ts.map +1 -0
- package/lib/components/forms/TextContent/index.js +2 -0
- package/lib/components/forms/TextContent/index.js.map +1 -0
- package/lib/components/forms/TextInput/TextInput.d.ts +3 -0
- package/lib/components/forms/TextInput/TextInput.d.ts.map +1 -0
- package/lib/components/forms/TextInput/TextInput.js +24 -0
- package/lib/components/forms/TextInput/TextInput.js.map +1 -0
- package/lib/components/forms/TextInput/index.d.ts +2 -0
- package/lib/components/forms/TextInput/index.d.ts.map +1 -0
- package/lib/components/forms/TextInput/index.js +2 -0
- package/lib/components/forms/TextInput/index.js.map +1 -0
- package/lib/components/forms/Time/Time.d.ts +3 -0
- package/lib/components/forms/Time/Time.d.ts.map +1 -0
- package/lib/components/forms/Time/Time.js +34 -0
- package/lib/components/forms/Time/Time.js.map +1 -0
- package/lib/components/forms/Time/index.d.ts +2 -0
- package/lib/components/forms/Time/index.d.ts.map +1 -0
- package/lib/components/forms/Time/index.js +2 -0
- package/lib/components/forms/Time/index.js.map +1 -0
- package/lib/components/forms/URL/URL.d.ts +3 -0
- package/lib/components/forms/URL/URL.d.ts.map +1 -0
- package/lib/components/forms/URL/URL.js +22 -0
- package/lib/components/forms/URL/URL.js.map +1 -0
- package/lib/components/forms/URL/index.d.ts +2 -0
- package/lib/components/forms/URL/index.d.ts.map +1 -0
- package/lib/components/forms/URL/index.js +2 -0
- package/lib/components/forms/URL/index.js.map +1 -0
- package/lib/components/forms/UserReference/UserReference.d.ts +43 -0
- package/lib/components/forms/UserReference/UserReference.d.ts.map +1 -0
- package/lib/components/forms/UserReference/UserReference.js +127 -0
- package/lib/components/forms/UserReference/UserReference.js.map +1 -0
- package/lib/components/forms/UserReference/UserReferenceUtils.d.ts +3 -0
- package/lib/components/forms/UserReference/UserReferenceUtils.d.ts.map +1 -0
- package/lib/components/forms/UserReference/UserReferenceUtils.js +14 -0
- package/lib/components/forms/UserReference/UserReferenceUtils.js.map +1 -0
- package/lib/components/forms/UserReference/index.d.ts +2 -0
- package/lib/components/forms/UserReference/index.d.ts.map +1 -0
- package/lib/components/forms/UserReference/index.js +2 -0
- package/lib/components/forms/UserReference/index.js.map +1 -0
- package/lib/components/helpers/auth.d.ts +16 -0
- package/lib/components/helpers/auth.d.ts.map +1 -0
- package/lib/components/helpers/auth.js +437 -0
- package/lib/components/helpers/auth.js.map +1 -0
- package/lib/components/helpers/authManager.d.ts +18 -0
- package/lib/components/helpers/authManager.d.ts.map +1 -0
- package/lib/components/helpers/authManager.js +588 -0
- package/lib/components/helpers/authManager.js.map +1 -0
- package/lib/components/helpers/config_access.d.ts +3 -0
- package/lib/components/helpers/config_access.d.ts.map +1 -0
- package/lib/components/helpers/config_access.js +268 -0
- package/lib/components/helpers/config_access.js.map +1 -0
- package/lib/components/helpers/data_page.d.ts +2 -0
- package/lib/components/helpers/data_page.d.ts.map +1 -0
- package/lib/components/helpers/data_page.js +23 -0
- package/lib/components/helpers/data_page.js.map +1 -0
- package/lib/components/helpers/event-utils.d.ts +3 -0
- package/lib/components/helpers/event-utils.d.ts.map +1 -0
- package/lib/components/helpers/event-utils.js +19 -0
- package/lib/components/helpers/event-utils.js.map +1 -0
- package/lib/components/helpers/field-group-utils.d.ts +3 -0
- package/lib/components/helpers/field-group-utils.d.ts.map +1 -0
- package/lib/components/helpers/field-group-utils.js +57 -0
- package/lib/components/helpers/field-group-utils.js.map +1 -0
- package/lib/components/helpers/formatters/Boolean.d.ts +5 -0
- package/lib/components/helpers/formatters/Boolean.d.ts.map +1 -0
- package/lib/components/helpers/formatters/Boolean.js +31 -0
- package/lib/components/helpers/formatters/Boolean.js.map +1 -0
- package/lib/components/helpers/formatters/Currency.d.ts +10 -0
- package/lib/components/helpers/formatters/Currency.d.ts.map +1 -0
- package/lib/components/helpers/formatters/Currency.js +62 -0
- package/lib/components/helpers/formatters/Currency.js.map +1 -0
- package/lib/components/helpers/formatters/CurrencyMap.d.ts +1401 -0
- package/lib/components/helpers/formatters/CurrencyMap.d.ts.map +1 -0
- package/lib/components/helpers/formatters/CurrencyMap.js +903 -0
- package/lib/components/helpers/formatters/CurrencyMap.js.map +1 -0
- package/lib/components/helpers/formatters/Date.d.ts +11 -0
- package/lib/components/helpers/formatters/Date.d.ts.map +1 -0
- package/lib/components/helpers/formatters/Date.js +69 -0
- package/lib/components/helpers/formatters/Date.js.map +1 -0
- package/lib/components/helpers/formatters/common.d.ts +3 -0
- package/lib/components/helpers/formatters/common.d.ts.map +1 -0
- package/lib/components/helpers/formatters/common.js +12 -0
- package/lib/components/helpers/formatters/common.js.map +1 -0
- package/lib/components/helpers/formatters/index.d.ts +19 -0
- package/lib/components/helpers/formatters/index.d.ts.map +1 -0
- package/lib/components/helpers/formatters/index.js +104 -0
- package/lib/components/helpers/formatters/index.js.map +1 -0
- package/lib/components/helpers/utils.d.ts +19 -0
- package/lib/components/helpers/utils.d.ts.map +1 -0
- package/lib/components/helpers/utils.js +310 -0
- package/lib/components/helpers/utils.js.map +1 -0
- package/lib/components/helpers/versionHelpers.d.ts +9 -0
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -0
- package/lib/components/helpers/versionHelpers.js +13 -0
- package/lib/components/helpers/versionHelpers.js.map +1 -0
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts +16 -0
- package/lib/components/infra/ActionButtons/ActionButtons.d.ts.map +1 -0
- package/lib/components/infra/ActionButtons/ActionButtons.js +42 -0
- package/lib/components/infra/ActionButtons/ActionButtons.js.map +1 -0
- package/lib/components/infra/ActionButtons/index.d.ts +2 -0
- package/lib/components/infra/ActionButtons/index.d.ts.map +1 -0
- package/lib/components/infra/ActionButtons/index.js +2 -0
- package/lib/components/infra/ActionButtons/index.js.map +1 -0
- package/lib/components/infra/Assignment/Assignment.d.ts +17 -0
- package/lib/components/infra/Assignment/Assignment.d.ts.map +1 -0
- package/lib/components/infra/Assignment/Assignment.js +217 -0
- package/lib/components/infra/Assignment/Assignment.js.map +1 -0
- package/lib/components/infra/Assignment/index.d.ts +2 -0
- package/lib/components/infra/Assignment/index.d.ts.map +1 -0
- package/lib/components/infra/Assignment/index.js +2 -0
- package/lib/components/infra/Assignment/index.js.map +1 -0
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts +17 -0
- package/lib/components/infra/AssignmentCard/AssignmentCard.d.ts.map +1 -0
- package/lib/components/infra/AssignmentCard/AssignmentCard.js +35 -0
- package/lib/components/infra/AssignmentCard/AssignmentCard.js.map +1 -0
- package/lib/components/infra/AssignmentCard/index.d.ts +2 -0
- package/lib/components/infra/AssignmentCard/index.d.ts.map +1 -0
- package/lib/components/infra/AssignmentCard/index.js +2 -0
- package/lib/components/infra/AssignmentCard/index.js.map +1 -0
- package/lib/components/infra/Attachment/Attachment.css +18 -0
- package/lib/components/infra/Attachment/Attachment.d.ts +4 -0
- package/lib/components/infra/Attachment/Attachment.d.ts.map +1 -0
- package/lib/components/infra/Attachment/Attachment.js +334 -0
- package/lib/components/infra/Attachment/Attachment.js.map +1 -0
- package/lib/components/infra/Attachment/AttachmentUtils.d.ts +13 -0
- package/lib/components/infra/Attachment/AttachmentUtils.d.ts.map +1 -0
- package/lib/components/infra/Attachment/AttachmentUtils.js +72 -0
- package/lib/components/infra/Attachment/AttachmentUtils.js.map +1 -0
- package/lib/components/infra/Attachment/index.d.ts +2 -0
- package/lib/components/infra/Attachment/index.d.ts.map +1 -0
- package/lib/components/infra/Attachment/index.js +2 -0
- package/lib/components/infra/Attachment/index.js.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts +23 -0
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.d.ts.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js +370 -0
- package/lib/components/infra/Containers/FlowContainer/FlowContainer.js.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts +13 -0
- package/lib/components/infra/Containers/FlowContainer/helpers.d.ts.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/helpers.js +117 -0
- package/lib/components/infra/Containers/FlowContainer/helpers.js.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/index.d.ts +2 -0
- package/lib/components/infra/Containers/FlowContainer/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/FlowContainer/index.js +2 -0
- package/lib/components/infra/Containers/FlowContainer/index.js.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts +19 -0
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.d.ts.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js +248 -0
- package/lib/components/infra/Containers/ModalViewContainer/ModalViewContainer.js.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/index.d.ts +2 -0
- package/lib/components/infra/Containers/ModalViewContainer/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/ModalViewContainer/index.js +2 -0
- package/lib/components/infra/Containers/ModalViewContainer/index.js.map +1 -0
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts +25 -0
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.d.ts.map +1 -0
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js +167 -0
- package/lib/components/infra/Containers/ViewContainer/ViewContainer.js.map +1 -0
- package/lib/components/infra/Containers/ViewContainer/index.d.ts +2 -0
- package/lib/components/infra/Containers/ViewContainer/index.d.ts.map +1 -0
- package/lib/components/infra/Containers/ViewContainer/index.js +2 -0
- package/lib/components/infra/Containers/ViewContainer/index.js.map +1 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts +23 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.d.ts.map +1 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.js +110 -0
- package/lib/components/infra/DashboardFilter/DashboardFilter.js.map +1 -0
- package/lib/components/infra/DashboardFilter/filterUtils.d.ts +35 -0
- package/lib/components/infra/DashboardFilter/filterUtils.d.ts.map +1 -0
- package/lib/components/infra/DashboardFilter/filterUtils.js +134 -0
- package/lib/components/infra/DashboardFilter/filterUtils.js.map +1 -0
- package/lib/components/infra/DashboardFilter/index.d.ts +2 -0
- package/lib/components/infra/DashboardFilter/index.d.ts.map +1 -0
- package/lib/components/infra/DashboardFilter/index.js +2 -0
- package/lib/components/infra/DashboardFilter/index.js.map +1 -0
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts +15 -0
- package/lib/components/infra/DeferLoad/DeferLoad.d.ts.map +1 -0
- package/lib/components/infra/DeferLoad/DeferLoad.js +139 -0
- package/lib/components/infra/DeferLoad/DeferLoad.js.map +1 -0
- package/lib/components/infra/DeferLoad/index.d.ts +2 -0
- package/lib/components/infra/DeferLoad/index.d.ts.map +1 -0
- package/lib/components/infra/DeferLoad/index.js +2 -0
- package/lib/components/infra/DeferLoad/index.js.map +1 -0
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js +86 -0
- package/lib/components/infra/ErrorBoundary/ErrorBoundary.js.map +1 -0
- package/lib/components/infra/ErrorBoundary/index.d.ts +2 -0
- package/lib/components/infra/ErrorBoundary/index.d.ts.map +1 -0
- package/lib/components/infra/ErrorBoundary/index.js +2 -0
- package/lib/components/infra/ErrorBoundary/index.js.map +1 -0
- package/lib/components/infra/MultiStep/MultiStep.css +261 -0
- package/lib/components/infra/MultiStep/MultiStep.d.ts +21 -0
- package/lib/components/infra/MultiStep/MultiStep.d.ts.map +1 -0
- package/lib/components/infra/MultiStep/MultiStep.js +130 -0
- package/lib/components/infra/MultiStep/MultiStep.js.map +1 -0
- package/lib/components/infra/MultiStep/index.d.ts +2 -0
- package/lib/components/infra/MultiStep/index.d.ts.map +1 -0
- package/lib/components/infra/MultiStep/index.js +2 -0
- package/lib/components/infra/MultiStep/index.js.map +1 -0
- package/lib/components/infra/NavBar/NavBar.css +170 -0
- package/lib/components/infra/NavBar/NavBar.d.ts +20 -0
- package/lib/components/infra/NavBar/NavBar.d.ts.map +1 -0
- package/lib/components/infra/NavBar/NavBar.js +266 -0
- package/lib/components/infra/NavBar/NavBar.js.map +1 -0
- package/lib/components/infra/NavBar/index.d.ts +2 -0
- package/lib/components/infra/NavBar/index.d.ts.map +1 -0
- package/lib/components/infra/NavBar/index.js +2 -0
- package/lib/components/infra/NavBar/index.js.map +1 -0
- package/lib/components/infra/Reference/Reference.d.ts +20 -0
- package/lib/components/infra/Reference/Reference.d.ts.map +1 -0
- package/lib/components/infra/Reference/Reference.js +48 -0
- package/lib/components/infra/Reference/Reference.js.map +1 -0
- package/lib/components/infra/Reference/index.d.ts +2 -0
- package/lib/components/infra/Reference/index.d.ts.map +1 -0
- package/lib/components/infra/Reference/index.js +2 -0
- package/lib/components/infra/Reference/index.js.map +1 -0
- package/lib/components/infra/Region/Region.d.ts +10 -0
- package/lib/components/infra/Region/Region.d.ts.map +1 -0
- package/lib/components/infra/Region/Region.js +11 -0
- package/lib/components/infra/Region/Region.js.map +1 -0
- package/lib/components/infra/Region/index.d.ts +2 -0
- package/lib/components/infra/Region/index.d.ts.map +1 -0
- package/lib/components/infra/Region/index.js +2 -0
- package/lib/components/infra/Region/index.js.map +1 -0
- package/lib/components/infra/RootContainer/RootContainer.d.ts +22 -0
- package/lib/components/infra/RootContainer/RootContainer.d.ts.map +1 -0
- package/lib/components/infra/RootContainer/RootContainer.js +258 -0
- package/lib/components/infra/RootContainer/RootContainer.js.map +1 -0
- package/lib/components/infra/RootContainer/index.d.ts +2 -0
- package/lib/components/infra/RootContainer/index.d.ts.map +1 -0
- package/lib/components/infra/RootContainer/index.js +2 -0
- package/lib/components/infra/RootContainer/index.js.map +1 -0
- package/lib/components/infra/Stages/Stages.d.ts +11 -0
- package/lib/components/infra/Stages/Stages.d.ts.map +1 -0
- package/lib/components/infra/Stages/Stages.js +94 -0
- package/lib/components/infra/Stages/Stages.js.map +1 -0
- package/lib/components/infra/Stages/index.d.ts +2 -0
- package/lib/components/infra/Stages/index.d.ts.map +1 -0
- package/lib/components/infra/Stages/index.js +2 -0
- package/lib/components/infra/Stages/index.js.map +1 -0
- package/lib/components/infra/ToDo/ToDo.css +87 -0
- package/lib/components/infra/ToDo/ToDo.d.ts +29 -0
- package/lib/components/infra/ToDo/ToDo.d.ts.map +1 -0
- package/lib/components/infra/ToDo/ToDo.js +226 -0
- package/lib/components/infra/ToDo/ToDo.js.map +1 -0
- package/lib/components/infra/ToDo/index.d.ts +2 -0
- package/lib/components/infra/ToDo/index.d.ts.map +1 -0
- package/lib/components/infra/ToDo/index.js +2 -0
- package/lib/components/infra/ToDo/index.js.map +1 -0
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.d.ts +3 -0
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.d.ts.map +1 -0
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.js +23 -0
- package/lib/components/infra/VerticalTabs/LeftAlignVerticalTab.js.map +1 -0
- package/lib/components/infra/VerticalTabs/VerticalTabs.d.ts +13 -0
- package/lib/components/infra/VerticalTabs/VerticalTabs.d.ts.map +1 -0
- package/lib/components/infra/VerticalTabs/VerticalTabs.js +50 -0
- package/lib/components/infra/VerticalTabs/VerticalTabs.js.map +1 -0
- package/lib/components/infra/VerticalTabs/index.d.ts +2 -0
- package/lib/components/infra/VerticalTabs/index.d.ts.map +1 -0
- package/lib/components/infra/VerticalTabs/index.js +2 -0
- package/lib/components/infra/VerticalTabs/index.js.map +1 -0
- package/lib/components/infra/View/View.css +8 -0
- package/lib/components/infra/View/View.d.ts +23 -0
- package/lib/components/infra/View/View.d.ts.map +1 -0
- package/lib/components/infra/View/View.js +136 -0
- package/lib/components/infra/View/View.js.map +1 -0
- package/lib/components/infra/View/index.d.ts +2 -0
- package/lib/components/infra/View/index.d.ts.map +1 -0
- package/lib/components/infra/View/index.js +2 -0
- package/lib/components/infra/View/index.js.map +1 -0
- package/lib/components/templates/AppShell/AppShell.css +40 -0
- package/lib/components/templates/AppShell/AppShell.d.ts +24 -0
- package/lib/components/templates/AppShell/AppShell.d.ts.map +1 -0
- package/lib/components/templates/AppShell/AppShell.js +390 -0
- package/lib/components/templates/AppShell/AppShell.js.map +1 -0
- package/lib/components/templates/AppShell/index.d.ts +2 -0
- package/lib/components/templates/AppShell/index.d.ts.map +1 -0
- package/lib/components/templates/AppShell/index.js +2 -0
- package/lib/components/templates/AppShell/index.js.map +1 -0
- package/lib/components/templates/CaseSummary/CaseSummary.d.ts +10 -0
- package/lib/components/templates/CaseSummary/CaseSummary.d.ts.map +1 -0
- package/lib/components/templates/CaseSummary/CaseSummary.js +40 -0
- package/lib/components/templates/CaseSummary/CaseSummary.js.map +1 -0
- package/lib/components/templates/CaseSummary/index.d.ts +2 -0
- package/lib/components/templates/CaseSummary/index.d.ts.map +1 -0
- package/lib/components/templates/CaseSummary/index.js +2 -0
- package/lib/components/templates/CaseSummary/index.js.map +1 -0
- package/lib/components/templates/CaseView/CaseView.d.ts +25 -0
- package/lib/components/templates/CaseView/CaseView.d.ts.map +1 -0
- package/lib/components/templates/CaseView/CaseView.js +180 -0
- package/lib/components/templates/CaseView/CaseView.js.map +1 -0
- package/lib/components/templates/CaseView/CaseViewActionsMenu.d.ts +16 -0
- package/lib/components/templates/CaseView/CaseViewActionsMenu.d.ts.map +1 -0
- package/lib/components/templates/CaseView/CaseViewActionsMenu.js +43 -0
- package/lib/components/templates/CaseView/CaseViewActionsMenu.js.map +1 -0
- package/lib/components/templates/CaseView/index.d.ts +2 -0
- package/lib/components/templates/CaseView/index.d.ts.map +1 -0
- package/lib/components/templates/CaseView/index.js +2 -0
- package/lib/components/templates/CaseView/index.js.map +1 -0
- package/lib/components/templates/DataReference/DataReference.d.ts +32 -0
- package/lib/components/templates/DataReference/DataReference.d.ts.map +1 -0
- package/lib/components/templates/DataReference/DataReference.js +221 -0
- package/lib/components/templates/DataReference/DataReference.js.map +1 -0
- package/lib/components/templates/DataReference/index.d.ts +2 -0
- package/lib/components/templates/DataReference/index.d.ts.map +1 -0
- package/lib/components/templates/DataReference/index.js +2 -0
- package/lib/components/templates/DataReference/index.js.map +1 -0
- package/lib/components/templates/DefaultForm/DefaultForm.css +25 -0
- package/lib/components/templates/DefaultForm/DefaultForm.d.ts +14 -0
- package/lib/components/templates/DefaultForm/DefaultForm.d.ts.map +1 -0
- package/lib/components/templates/DefaultForm/DefaultForm.js +39 -0
- package/lib/components/templates/DefaultForm/DefaultForm.js.map +1 -0
- package/lib/components/templates/DefaultForm/index.d.ts +2 -0
- package/lib/components/templates/DefaultForm/index.d.ts.map +1 -0
- package/lib/components/templates/DefaultForm/index.js +2 -0
- package/lib/components/templates/DefaultForm/index.js.map +1 -0
- package/lib/components/templates/Details/Details/Details.d.ts +8 -0
- package/lib/components/templates/Details/Details/Details.d.ts.map +1 -0
- package/lib/components/templates/Details/Details/Details.js +24 -0
- package/lib/components/templates/Details/Details/Details.js.map +1 -0
- package/lib/components/templates/Details/Details/index.d.ts +2 -0
- package/lib/components/templates/Details/Details/index.d.ts.map +1 -0
- package/lib/components/templates/Details/Details/index.js +2 -0
- package/lib/components/templates/Details/Details/index.js.map +1 -0
- package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.d.ts +18 -0
- package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.d.ts.map +1 -0
- package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.js +45 -0
- package/lib/components/templates/Details/DetailsSubTabs/DetailsSubTabs.js.map +1 -0
- package/lib/components/templates/Details/DetailsSubTabs/index.d.ts +2 -0
- package/lib/components/templates/Details/DetailsSubTabs/index.d.ts.map +1 -0
- package/lib/components/templates/Details/DetailsSubTabs/index.js +2 -0
- package/lib/components/templates/Details/DetailsSubTabs/index.js.map +1 -0
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts +7 -0
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -0
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js +32 -0
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -0
- package/lib/components/templates/Details/DetailsThreeColumn/index.d.ts +2 -0
- package/lib/components/templates/Details/DetailsThreeColumn/index.d.ts.map +1 -0
- package/lib/components/templates/Details/DetailsThreeColumn/index.js +2 -0
- package/lib/components/templates/Details/DetailsThreeColumn/index.js.map +1 -0
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts +7 -0
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -0
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js +30 -0
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -0
- package/lib/components/templates/Details/DetailsTwoColumn/index.d.ts +2 -0
- package/lib/components/templates/Details/DetailsTwoColumn/index.d.ts.map +1 -0
- package/lib/components/templates/Details/DetailsTwoColumn/index.js +2 -0
- package/lib/components/templates/Details/DetailsTwoColumn/index.js.map +1 -0
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.d.ts +22 -0
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.d.ts.map +1 -0
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js +70 -0
- package/lib/components/templates/FieldGroupTemplate/FieldGroupTemplate.js.map +1 -0
- package/lib/components/templates/FieldGroupTemplate/index.d.ts +2 -0
- package/lib/components/templates/FieldGroupTemplate/index.d.ts.map +1 -0
- package/lib/components/templates/FieldGroupTemplate/index.js +2 -0
- package/lib/components/templates/FieldGroupTemplate/index.js.map +1 -0
- package/lib/components/templates/InlineDashboard/InlineDashboard.d.ts +10 -0
- package/lib/components/templates/InlineDashboard/InlineDashboard.d.ts.map +1 -0
- package/lib/components/templates/InlineDashboard/InlineDashboard.js +48 -0
- package/lib/components/templates/InlineDashboard/InlineDashboard.js.map +1 -0
- package/lib/components/templates/InlineDashboard/index.d.ts +2 -0
- package/lib/components/templates/InlineDashboard/index.d.ts.map +1 -0
- package/lib/components/templates/InlineDashboard/index.js +2 -0
- package/lib/components/templates/InlineDashboard/index.js.map +1 -0
- package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.d.ts +18 -0
- package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.d.ts.map +1 -0
- package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.js +34 -0
- package/lib/components/templates/InlineDashboardPage/InlineDashboardPage.js.map +1 -0
- package/lib/components/templates/InlineDashboardPage/index.d.ts +2 -0
- package/lib/components/templates/InlineDashboardPage/index.d.ts.map +1 -0
- package/lib/components/templates/InlineDashboardPage/index.js +2 -0
- package/lib/components/templates/InlineDashboardPage/index.js.map +1 -0
- package/lib/components/templates/ListPage/ListPage.d.ts +16 -0
- package/lib/components/templates/ListPage/ListPage.d.ts.map +1 -0
- package/lib/components/templates/ListPage/ListPage.js +14 -0
- package/lib/components/templates/ListPage/ListPage.js.map +1 -0
- package/lib/components/templates/ListPage/index.d.ts +2 -0
- package/lib/components/templates/ListPage/index.d.ts.map +1 -0
- package/lib/components/templates/ListPage/index.js +2 -0
- package/lib/components/templates/ListPage/index.js.map +1 -0
- package/lib/components/templates/ListView/ListView.css +10 -0
- package/lib/components/templates/ListView/ListView.d.ts +12 -0
- package/lib/components/templates/ListView/ListView.d.ts.map +1 -0
- package/lib/components/templates/ListView/ListView.js +842 -0
- package/lib/components/templates/ListView/ListView.js.map +1 -0
- package/lib/components/templates/ListView/index.d.ts +2 -0
- package/lib/components/templates/ListView/index.d.ts.map +1 -0
- package/lib/components/templates/ListView/index.js +2 -0
- package/lib/components/templates/ListView/index.js.map +1 -0
- package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts +17 -0
- package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.d.ts.map +1 -0
- package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.js +34 -0
- package/lib/components/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.js.map +1 -0
- package/lib/components/templates/MultiReferenceReadOnly/index.d.ts +2 -0
- package/lib/components/templates/MultiReferenceReadOnly/index.d.ts.map +1 -0
- package/lib/components/templates/MultiReferenceReadOnly/index.js +2 -0
- package/lib/components/templates/MultiReferenceReadOnly/index.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.css +21 -0
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.d.ts +4 -0
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.js +16 -0
- package/lib/components/templates/NarrowWide/NarrowWide/NarrowWide.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWide/index.d.ts +2 -0
- package/lib/components/templates/NarrowWide/NarrowWide/index.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWide/index.js +2 -0
- package/lib/components/templates/NarrowWide/NarrowWide/index.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts +7 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js +35 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/index.d.ts +2 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/index.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/index.js +2 -0
- package/lib/components/templates/NarrowWide/NarrowWideDetails/index.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.css +21 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts +4 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.js +10 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/NarrowWideForm.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/index.d.ts +2 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/index.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/index.js +2 -0
- package/lib/components/templates/NarrowWide/NarrowWideForm/index.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts +17 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.js +25 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/NarrowWidePage.js.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/index.d.ts +2 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/index.d.ts.map +1 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/index.js +2 -0
- package/lib/components/templates/NarrowWide/NarrowWidePage/index.js.map +1 -0
- package/lib/components/templates/OneColumn/OneColumn/OneColumn.d.ts +10 -0
- package/lib/components/templates/OneColumn/OneColumn/OneColumn.d.ts.map +1 -0
- package/lib/components/templates/OneColumn/OneColumn/OneColumn.js +22 -0
- package/lib/components/templates/OneColumn/OneColumn/OneColumn.js.map +1 -0
- package/lib/components/templates/OneColumn/OneColumn/index.d.ts +2 -0
- package/lib/components/templates/OneColumn/OneColumn/index.d.ts.map +1 -0
- package/lib/components/templates/OneColumn/OneColumn/index.js +2 -0
- package/lib/components/templates/OneColumn/OneColumn/index.js.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.d.ts +11 -0
- package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.d.ts.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.js +15 -0
- package/lib/components/templates/OneColumn/OneColumnPage/OneColumnPage.js.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnPage/index.d.ts +2 -0
- package/lib/components/templates/OneColumn/OneColumnPage/index.d.ts.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnPage/index.js +2 -0
- package/lib/components/templates/OneColumn/OneColumnPage/index.js.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.d.ts +10 -0
- package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.d.ts.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.js +11 -0
- package/lib/components/templates/OneColumn/OneColumnTab/OneColumnTab.js.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnTab/index.d.ts +2 -0
- package/lib/components/templates/OneColumn/OneColumnTab/index.d.ts.map +1 -0
- package/lib/components/templates/OneColumn/OneColumnTab/index.js +2 -0
- package/lib/components/templates/OneColumn/OneColumnTab/index.js.map +1 -0
- package/lib/components/templates/PromotedFilters/PromotedFilters.css +7 -0
- package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts +17 -0
- package/lib/components/templates/PromotedFilters/PromotedFilters.d.ts.map +1 -0
- package/lib/components/templates/PromotedFilters/PromotedFilters.js +130 -0
- package/lib/components/templates/PromotedFilters/PromotedFilters.js.map +1 -0
- package/lib/components/templates/PromotedFilters/index.d.ts +2 -0
- package/lib/components/templates/PromotedFilters/index.d.ts.map +1 -0
- package/lib/components/templates/PromotedFilters/index.js +2 -0
- package/lib/components/templates/PromotedFilters/index.js.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.d.ts +3 -0
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js +26 -0
- package/lib/components/templates/SimpleTable/SimpleTable/SimpleTable.js.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTable/index.d.ts +2 -0
- package/lib/components/templates/SimpleTable/SimpleTable/index.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTable/index.js +2 -0
- package/lib/components/templates/SimpleTable/SimpleTable/index.js.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts +3 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js +505 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/SimpleTableManual.js.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/index.d.ts +2 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/index.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/index.js +2 -0
- package/lib/components/templates/SimpleTable/SimpleTableManual/index.js.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts +35 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js +105 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.js.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/index.d.ts +2 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/index.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/index.js +2 -0
- package/lib/components/templates/SimpleTable/SimpleTableSelect/index.js.map +1 -0
- package/lib/components/templates/SimpleTable/helpers.d.ts +79 -0
- package/lib/components/templates/SimpleTable/helpers.d.ts.map +1 -0
- package/lib/components/templates/SimpleTable/helpers.js +306 -0
- package/lib/components/templates/SimpleTable/helpers.js.map +1 -0
- package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts +28 -0
- package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.d.ts.map +1 -0
- package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.js +51 -0
- package/lib/components/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.js.map +1 -0
- package/lib/components/templates/SingleReferenceReadOnly/index.d.ts +2 -0
- package/lib/components/templates/SingleReferenceReadOnly/index.d.ts.map +1 -0
- package/lib/components/templates/SingleReferenceReadOnly/index.js +2 -0
- package/lib/components/templates/SingleReferenceReadOnly/index.js.map +1 -0
- package/lib/components/templates/SubTabs/SubTabs.d.ts +13 -0
- package/lib/components/templates/SubTabs/SubTabs.d.ts.map +1 -0
- package/lib/components/templates/SubTabs/SubTabs.js +33 -0
- package/lib/components/templates/SubTabs/SubTabs.js.map +1 -0
- package/lib/components/templates/SubTabs/index.d.ts +2 -0
- package/lib/components/templates/SubTabs/index.d.ts.map +1 -0
- package/lib/components/templates/SubTabs/index.js +2 -0
- package/lib/components/templates/SubTabs/index.js.map +1 -0
- package/lib/components/templates/SubTabs/tabUtils.d.ts +5 -0
- package/lib/components/templates/SubTabs/tabUtils.d.ts.map +1 -0
- package/lib/components/templates/SubTabs/tabUtils.js +62 -0
- package/lib/components/templates/SubTabs/tabUtils.js.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.css +13 -0
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.d.ts +14 -0
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.d.ts.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.js +43 -0
- package/lib/components/templates/TwoColumn/TwoColumn/TwoColumn.js.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumn/index.d.ts +2 -0
- package/lib/components/templates/TwoColumn/TwoColumn/index.d.ts.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumn/index.js +2 -0
- package/lib/components/templates/TwoColumn/TwoColumn/index.js.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts +11 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.d.ts.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.js +16 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/TwoColumnPage.js.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/index.d.ts +2 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/index.d.ts.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/index.js +2 -0
- package/lib/components/templates/TwoColumn/TwoColumnPage/index.js.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.css +12 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts +14 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.d.ts.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.js +40 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/TwoColumnTab.js.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/index.d.ts +2 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/index.d.ts.map +1 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/index.js +2 -0
- package/lib/components/templates/TwoColumn/TwoColumnTab/index.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.css +21 -0
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.d.ts +4 -0
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.js +16 -0
- package/lib/components/templates/WideNarrow/WideNarrow/WideNarrow.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrow/index.d.ts +2 -0
- package/lib/components/templates/WideNarrow/WideNarrow/index.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrow/index.js +2 -0
- package/lib/components/templates/WideNarrow/WideNarrow/index.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts +7 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js +35 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/index.d.ts +2 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/index.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/index.js +2 -0
- package/lib/components/templates/WideNarrow/WideNarrowDetails/index.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.css +21 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts +4 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.js +10 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/WideNarrowForm.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/index.d.ts +2 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/index.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/index.js +2 -0
- package/lib/components/templates/WideNarrow/WideNarrowForm/index.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts +17 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.js +25 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/WideNarrowPage.js.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/index.d.ts +2 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/index.d.ts.map +1 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/index.js +2 -0
- package/lib/components/templates/WideNarrow/WideNarrowPage/index.js.map +1 -0
- package/lib/components/templates/utils.d.ts +3 -0
- package/lib/components/templates/utils.d.ts.map +1 -0
- package/lib/components/templates/utils.js +22 -0
- package/lib/components/templates/utils.js.map +1 -0
- package/lib/components/widgets/AppAnnouncement/AppAnnouncement.d.ts +19 -0
- package/lib/components/widgets/AppAnnouncement/AppAnnouncement.d.ts.map +1 -0
- package/lib/components/widgets/AppAnnouncement/AppAnnouncement.js +53 -0
- package/lib/components/widgets/AppAnnouncement/AppAnnouncement.js.map +1 -0
- package/lib/components/widgets/AppAnnouncement/index.d.ts +2 -0
- package/lib/components/widgets/AppAnnouncement/index.d.ts.map +1 -0
- package/lib/components/widgets/AppAnnouncement/index.js +2 -0
- package/lib/components/widgets/AppAnnouncement/index.js.map +1 -0
- package/lib/components/widgets/CaseHistory/CaseHistory.d.ts +10 -0
- package/lib/components/widgets/CaseHistory/CaseHistory.d.ts.map +1 -0
- package/lib/components/widgets/CaseHistory/CaseHistory.js +118 -0
- package/lib/components/widgets/CaseHistory/CaseHistory.js.map +1 -0
- package/lib/components/widgets/CaseHistory/index.d.ts +2 -0
- package/lib/components/widgets/CaseHistory/index.d.ts.map +1 -0
- package/lib/components/widgets/CaseHistory/index.js +2 -0
- package/lib/components/widgets/CaseHistory/index.js.map +1 -0
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.css +27 -0
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.d.ts +4 -0
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.d.ts.map +1 -0
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.js +9 -0
- package/lib/components/widgets/FileUtility/ActionButtonsForFileUtil.js.map +1 -0
- package/lib/components/widgets/FileUtility/FileUtility.css +117 -0
- package/lib/components/widgets/FileUtility/FileUtility.d.ts +4 -0
- package/lib/components/widgets/FileUtility/FileUtility.d.ts.map +1 -0
- package/lib/components/widgets/FileUtility/FileUtility.js +456 -0
- package/lib/components/widgets/FileUtility/FileUtility.js.map +1 -0
- package/lib/components/widgets/FileUtility/index.d.ts +1 -0
- package/lib/components/widgets/FileUtility/index.d.ts.map +1 -0
- package/lib/components/widgets/FileUtility/index.js +2 -0
- package/lib/components/widgets/FileUtility/index.js.map +1 -0
- package/lib/components/widgets/Followers/Followers.d.ts +8 -0
- package/lib/components/widgets/Followers/Followers.d.ts.map +1 -0
- package/lib/components/widgets/Followers/Followers.js +40 -0
- package/lib/components/widgets/Followers/Followers.js.map +1 -0
- package/lib/components/widgets/Followers/index.d.ts +2 -0
- package/lib/components/widgets/Followers/index.d.ts.map +1 -0
- package/lib/components/widgets/Followers/index.js +2 -0
- package/lib/components/widgets/Followers/index.js.map +1 -0
- package/lib/components/widgets/SummaryItem/SummaryItem.css +78 -0
- package/lib/components/widgets/SummaryItem/SummaryItem.d.ts +4 -0
- package/lib/components/widgets/SummaryItem/SummaryItem.d.ts.map +1 -0
- package/lib/components/widgets/SummaryItem/SummaryItem.js +46 -0
- package/lib/components/widgets/SummaryItem/SummaryItem.js.map +1 -0
- package/lib/components/widgets/SummaryItem/index.d.ts +2 -0
- package/lib/components/widgets/SummaryItem/index.d.ts.map +1 -0
- package/lib/components/widgets/SummaryItem/index.js +2 -0
- package/lib/components/widgets/SummaryItem/index.js.map +1 -0
- package/lib/components/widgets/SummaryList/SummaryList.d.ts +3 -0
- package/lib/components/widgets/SummaryList/SummaryList.d.ts.map +1 -0
- package/lib/components/widgets/SummaryList/SummaryList.js +6 -0
- package/lib/components/widgets/SummaryList/SummaryList.js.map +1 -0
- package/lib/components/widgets/SummaryList/index.d.ts +2 -0
- package/lib/components/widgets/SummaryList/index.d.ts.map +1 -0
- package/lib/components/widgets/SummaryList/index.js +2 -0
- package/lib/components/widgets/SummaryList/index.js.map +1 -0
- package/lib/components_map.d.ts +4 -0
- package/lib/components_map.d.ts.map +1 -0
- package/lib/components_map.js +820 -0
- package/lib/components_map.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/sdk-pega-component-map.d.ts +156 -0
- package/lib/sdk-pega-component-map.d.ts.map +1 -0
- package/lib/sdk-pega-component-map.js +167 -0
- package/lib/sdk-pega-component-map.js.map +1 -0
- package/package.json +14 -0
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
// This file wraps various calls related to logging in, logging out, etc.
|
|
2
|
+
// that use the auth.html/auth.js to do the work of logging in via OAuth 2.0.
|
|
3
|
+
import { getSdkConfig, SdkConfigAccess } from './config_access';
|
|
4
|
+
import PegaAuth from './auth';
|
|
5
|
+
// eslint-disable-next-line import/no-mutable-exports
|
|
6
|
+
export let gbLoggedIn = sessionStorage.getItem('rsdk_AH') !== null;
|
|
7
|
+
// eslint-disable-next-line import/no-mutable-exports
|
|
8
|
+
export let gbLoginInProgress = sessionStorage.getItem("rsdk_loggingIn") !== null;
|
|
9
|
+
// other sessionStorage items: rsdk_appName
|
|
10
|
+
// will store the PegaAuth instance
|
|
11
|
+
let authMgr = null;
|
|
12
|
+
// Since this variable is loaded in a separate instance in the popup scenario, use storage to coordinate across the two
|
|
13
|
+
let usePopupForRestOfSession = sessionStorage.getItem("rsdk_popup") === "1";
|
|
14
|
+
let gbC11NBootstrapInProgress = false;
|
|
15
|
+
// Some non Pega OAuth 2.0 Authentication in use (Basic or Custom for service package)
|
|
16
|
+
let gbCustomAuth = false;
|
|
17
|
+
/*
|
|
18
|
+
* Set to use popup experience for rest of session
|
|
19
|
+
*/
|
|
20
|
+
const forcePopupForReauths = (bForce) => {
|
|
21
|
+
if (bForce) {
|
|
22
|
+
sessionStorage.setItem("rsdk_popup", "1");
|
|
23
|
+
usePopupForRestOfSession = true;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
sessionStorage.removeItem("rsdk_popup");
|
|
27
|
+
usePopupForRestOfSession = false;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const setNoInitialRedirect = (bNoInitialRedirect) => {
|
|
31
|
+
if (bNoInitialRedirect) {
|
|
32
|
+
forcePopupForReauths(true);
|
|
33
|
+
sessionStorage.setItem("rsdk_noRedirect", "1");
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
sessionStorage.removeItem("rsdk_noRedirect");
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const isLoginExpired = () => {
|
|
40
|
+
let bExpired = true;
|
|
41
|
+
const sLoginStart = sessionStorage.getItem("rsdk_loggingIn");
|
|
42
|
+
if (sLoginStart !== null) {
|
|
43
|
+
const currTime = Date.now();
|
|
44
|
+
bExpired = currTime - parseInt(sLoginStart, 10) > 60000;
|
|
45
|
+
}
|
|
46
|
+
return bExpired;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Clean up any web storage allocated for the user session.
|
|
50
|
+
*/
|
|
51
|
+
const clearAuthMgr = (bFullReauth = false) => {
|
|
52
|
+
// Remove any local storage for the user
|
|
53
|
+
if (!gbCustomAuth) {
|
|
54
|
+
sessionStorage.removeItem('rsdk_AH');
|
|
55
|
+
}
|
|
56
|
+
if (!bFullReauth) {
|
|
57
|
+
sessionStorage.removeItem("rsdk_CI");
|
|
58
|
+
}
|
|
59
|
+
sessionStorage.removeItem("rsdk_TI");
|
|
60
|
+
sessionStorage.removeItem("rsdk_UI");
|
|
61
|
+
sessionStorage.removeItem("rsdk_loggingIn");
|
|
62
|
+
gbLoggedIn = false;
|
|
63
|
+
gbLoginInProgress = false;
|
|
64
|
+
forcePopupForReauths(bFullReauth);
|
|
65
|
+
// Not removing the authMgr structure itself...as it can be leveraged on next login
|
|
66
|
+
};
|
|
67
|
+
export const authNoRedirect = () => {
|
|
68
|
+
return sessionStorage.getItem("rsdk_noRedirect") === "1";
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Initialize OAuth config structure members and create authMgr instance
|
|
72
|
+
* bInit - governs whether to create new sessionStorage or load existing one
|
|
73
|
+
*/
|
|
74
|
+
const initOAuth = (bInit) => {
|
|
75
|
+
return getSdkConfig().then(sdkConfig => {
|
|
76
|
+
const sdkConfigAuth = sdkConfig.authConfig;
|
|
77
|
+
const sdkConfigServer = sdkConfig.serverConfig;
|
|
78
|
+
let pegaUrl = sdkConfigServer.infinityRestServerUrl;
|
|
79
|
+
const bNoInitialRedirect = authNoRedirect();
|
|
80
|
+
// Construct default OAuth endpoints (if not explicitly specified)
|
|
81
|
+
if (pegaUrl) {
|
|
82
|
+
// Cope with trailing slash being present
|
|
83
|
+
if (!pegaUrl.endsWith('/')) {
|
|
84
|
+
pegaUrl += '/';
|
|
85
|
+
}
|
|
86
|
+
if (!sdkConfigAuth.authorize) {
|
|
87
|
+
sdkConfigAuth.authorize = `${pegaUrl}PRRestService/oauth2/v1/authorize`;
|
|
88
|
+
}
|
|
89
|
+
if (!sdkConfigAuth.token) {
|
|
90
|
+
sdkConfigAuth.token = `${pegaUrl}PRRestService/oauth2/v1/token`;
|
|
91
|
+
}
|
|
92
|
+
if (!sdkConfigAuth.revoke) {
|
|
93
|
+
sdkConfigAuth.revoke = `${pegaUrl}PRRestService/oauth2/v1/revoke`;
|
|
94
|
+
}
|
|
95
|
+
if (!sdkConfigAuth.redirectUri) {
|
|
96
|
+
sdkConfigAuth.redirectUri = `${window.location.origin}${window.location.pathname}`;
|
|
97
|
+
}
|
|
98
|
+
if (!sdkConfigAuth.userinfo) {
|
|
99
|
+
const appAliasSeg = sdkConfigServer.appAlias ? `app/${sdkConfigServer.appAlias}/` : '';
|
|
100
|
+
sdkConfigAuth.userinfo = `${pegaUrl}${appAliasSeg}api/oauthclients/v1/userinfo/JSON`;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Auth service alias
|
|
104
|
+
if (!sdkConfigAuth.authService) {
|
|
105
|
+
sdkConfigAuth.authService = "pega";
|
|
106
|
+
}
|
|
107
|
+
// Construct path to auth.html (used for case when not doing a main window redirect)
|
|
108
|
+
let sNoMainRedirectUri = sdkConfigAuth.redirectUri;
|
|
109
|
+
const nLastPathSep = sNoMainRedirectUri.lastIndexOf("/");
|
|
110
|
+
sNoMainRedirectUri = nLastPathSep !== -1 ? `${sNoMainRedirectUri.substring(0, nLastPathSep + 1)}auth.html` : `${sNoMainRedirectUri}/auth.html`;
|
|
111
|
+
const authConfig = {
|
|
112
|
+
clientId: bNoInitialRedirect ? sdkConfigAuth.mashupClientId : sdkConfigAuth.portalClientId,
|
|
113
|
+
authorizeUri: sdkConfigAuth.authorize,
|
|
114
|
+
tokenUri: sdkConfigAuth.token,
|
|
115
|
+
revokeUri: sdkConfigAuth.revoke,
|
|
116
|
+
userinfoUri: sdkConfigAuth.userinfo,
|
|
117
|
+
redirectUri: bNoInitialRedirect || usePopupForRestOfSession
|
|
118
|
+
? sNoMainRedirectUri
|
|
119
|
+
: sdkConfigAuth.redirectUri,
|
|
120
|
+
authService: sdkConfigAuth.authService,
|
|
121
|
+
appAlias: sdkConfigServer.appAlias || '',
|
|
122
|
+
useLocking: true
|
|
123
|
+
};
|
|
124
|
+
// If no clientId is specified assume not OAuth but custom auth
|
|
125
|
+
if (!authConfig.clientId) {
|
|
126
|
+
gbCustomAuth = true;
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if ('silentTimeout' in sdkConfigAuth) {
|
|
130
|
+
authConfig.silentTimeout = sdkConfigAuth.silentTimeout;
|
|
131
|
+
}
|
|
132
|
+
if (bNoInitialRedirect) {
|
|
133
|
+
authConfig.userIdentifier = sdkConfigAuth.mashupUserIdentifier;
|
|
134
|
+
authConfig.password = sdkConfigAuth.mashupPassword;
|
|
135
|
+
}
|
|
136
|
+
if ('iframeLoginUI' in sdkConfigAuth) {
|
|
137
|
+
authConfig.iframeLoginUI = sdkConfigAuth.iframeLoginUI.toString().toLowerCase() === 'true';
|
|
138
|
+
}
|
|
139
|
+
// Check if sessionStorage exists (and if so if for same authorize endpoint). Otherwise, assume
|
|
140
|
+
// sessionStorage is out of date (user just edited endpoints). Else, logout required to clear
|
|
141
|
+
// sessionStorage and get other endpoints updates.
|
|
142
|
+
// Doing this as sessionIndex might have been added to this storage structure
|
|
143
|
+
let sSI = sessionStorage.getItem("rsdk_CI");
|
|
144
|
+
if (sSI) {
|
|
145
|
+
try {
|
|
146
|
+
const oSI = JSON.parse(sSI);
|
|
147
|
+
if (oSI.authorizeUri !== authConfig.authorizeUri ||
|
|
148
|
+
oSI.appAlias !== authConfig.appAlias ||
|
|
149
|
+
oSI.clientId !== authConfig.clientId ||
|
|
150
|
+
oSI.userIdentifier !== authConfig.userIdentifier ||
|
|
151
|
+
oSI.password !== authConfig.password) {
|
|
152
|
+
clearAuthMgr();
|
|
153
|
+
sSI = null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
catch (e) {
|
|
157
|
+
// do nothing
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (!sSI || bInit) {
|
|
161
|
+
sessionStorage.setItem('rsdk_CI', JSON.stringify(authConfig));
|
|
162
|
+
}
|
|
163
|
+
authMgr = new PegaAuth('rsdk_CI');
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
const getAuthMgr = (bInit) => {
|
|
167
|
+
return new Promise((resolve) => {
|
|
168
|
+
let idNextCheck = null;
|
|
169
|
+
const fnCheckForAuthMgr = () => {
|
|
170
|
+
if (PegaAuth && !authMgr) {
|
|
171
|
+
initOAuth(bInit);
|
|
172
|
+
}
|
|
173
|
+
if (authMgr) {
|
|
174
|
+
if (idNextCheck) {
|
|
175
|
+
clearInterval(idNextCheck);
|
|
176
|
+
}
|
|
177
|
+
return resolve(authMgr);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
fnCheckForAuthMgr();
|
|
181
|
+
idNextCheck = setInterval(fnCheckForAuthMgr, 10);
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
export const sdkGetAuthHeader = () => {
|
|
185
|
+
return sessionStorage.getItem("rsdk_AH");
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Initiate the process to get the Constellation bootstrap shell loaded and initialized
|
|
189
|
+
* @param {Object} authConfig
|
|
190
|
+
* @param {Object} tokenInfo
|
|
191
|
+
* @param {Function} authTokenUpdated - callback invoked when Constellation JS Engine silently updates
|
|
192
|
+
* an expired access_token
|
|
193
|
+
* @param {Function} fnReauth - callback invoked when a full or custom reauth is needed
|
|
194
|
+
*/
|
|
195
|
+
const constellationInit = (authConfig, tokenInfo, authTokenUpdated, fnReauth) => {
|
|
196
|
+
const constellationBootConfig = {};
|
|
197
|
+
const sdkConfigServer = SdkConfigAccess.getSdkConfigServer();
|
|
198
|
+
// Set up constellationConfig with data that bootstrapWithAuthHeader expects
|
|
199
|
+
constellationBootConfig.customRendering = true;
|
|
200
|
+
constellationBootConfig.restServerUrl = sdkConfigServer.infinityRestServerUrl;
|
|
201
|
+
// NOTE: Needs a trailing slash! So add one if not provided
|
|
202
|
+
if (!sdkConfigServer.sdkContentServerUrl.endsWith('/')) {
|
|
203
|
+
sdkConfigServer.sdkContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}/`;
|
|
204
|
+
}
|
|
205
|
+
constellationBootConfig.staticContentServerUrl = `${sdkConfigServer.sdkContentServerUrl}constellation/`;
|
|
206
|
+
if (!constellationBootConfig.staticContentServerUrl.endsWith('/')) {
|
|
207
|
+
constellationBootConfig.staticContentServerUrl = `${constellationBootConfig.staticContentServerUrl}/`;
|
|
208
|
+
}
|
|
209
|
+
// If appAlias specified, use it
|
|
210
|
+
if (sdkConfigServer.appAlias) {
|
|
211
|
+
constellationBootConfig.appAlias = sdkConfigServer.appAlias;
|
|
212
|
+
}
|
|
213
|
+
if (tokenInfo) {
|
|
214
|
+
// Pass in auth info to Constellation
|
|
215
|
+
constellationBootConfig.authInfo = {
|
|
216
|
+
authType: "OAuth2.0",
|
|
217
|
+
tokenInfo,
|
|
218
|
+
// Set whether we want constellation to try to do a full re-Auth or not ()
|
|
219
|
+
// true doesn't seem to be working in SDK scenario so always passing false for now
|
|
220
|
+
popupReauth: false /* !authNoRedirect() */,
|
|
221
|
+
client_id: authConfig.clientId,
|
|
222
|
+
authentication_service: authConfig.authService,
|
|
223
|
+
redirect_uri: authConfig.redirectUri,
|
|
224
|
+
endPoints: {
|
|
225
|
+
authorize: authConfig.authorizeUri,
|
|
226
|
+
token: authConfig.tokenUri,
|
|
227
|
+
revoke: authConfig.revokeUri
|
|
228
|
+
},
|
|
229
|
+
// TODO: setup callback so we can update own storage
|
|
230
|
+
onTokenRetrieval: authTokenUpdated
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
constellationBootConfig.authorizationHeader = sdkGetAuthHeader();
|
|
235
|
+
}
|
|
236
|
+
// Turn off dynamic load components (should be able to do it here instead of after load?)
|
|
237
|
+
constellationBootConfig.dynamicLoadComponents = false;
|
|
238
|
+
if (gbC11NBootstrapInProgress) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
gbC11NBootstrapInProgress = true;
|
|
243
|
+
}
|
|
244
|
+
// Note that staticContentServerUrl already ends with a slash (see above), so no slash added.
|
|
245
|
+
// In order to have this import succeed and to have it done with the webpackIgnore magic comment tag.
|
|
246
|
+
// See: https://webpack.js.org/api/module-methods/
|
|
247
|
+
import(/* webpackIgnore: true */ `${constellationBootConfig.staticContentServerUrl}bootstrap-shell.js`).then((bootstrapShell) => {
|
|
248
|
+
// NOTE: once this callback is done, we lose the ability to access loadMashup.
|
|
249
|
+
// So, create a reference to it
|
|
250
|
+
window.myLoadMashup = bootstrapShell.loadMashup;
|
|
251
|
+
window.myLoadPortal = bootstrapShell.loadPortal;
|
|
252
|
+
window.myLoadDefaultPortal = bootstrapShell.loadDefaultPortal;
|
|
253
|
+
bootstrapShell.bootstrapWithAuthHeader(constellationBootConfig, 'shell').then(() => {
|
|
254
|
+
// eslint-disable-next-line no-console
|
|
255
|
+
console.log('Bootstrap successful!');
|
|
256
|
+
gbC11NBootstrapInProgress = false;
|
|
257
|
+
// Setup listener for the reauth event
|
|
258
|
+
if (tokenInfo) {
|
|
259
|
+
// eslint-disable-next-line no-undef
|
|
260
|
+
PCore.getPubSubUtils().subscribe(PCore.getConstants().PUB_SUB_EVENTS.EVENT_FULL_REAUTH, fnReauth, "authFullReauth");
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
// customReauth event introduced with 8.8
|
|
264
|
+
// eslint-disable-next-line no-undef
|
|
265
|
+
const sEvent = PCore.getConstants().PUB_SUB_EVENTS.EVENT_CUSTOM_REAUTH;
|
|
266
|
+
if (sEvent) {
|
|
267
|
+
// eslint-disable-next-line no-undef
|
|
268
|
+
PCore.getPubSubUtils().subscribe(sEvent, fnReauth, "doReauth");
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
// Fire SdkConstellationReady event so bridge and app route can do expected post PCore initializations
|
|
272
|
+
const event = new CustomEvent('SdkConstellationReady', {});
|
|
273
|
+
document.dispatchEvent(event);
|
|
274
|
+
})
|
|
275
|
+
.catch(e => {
|
|
276
|
+
// Assume error caught is because token is not valid and attempt a full reauth
|
|
277
|
+
// eslint-disable-next-line no-console
|
|
278
|
+
console.error(`Constellation JS Engine bootstrap failed. ${e}`);
|
|
279
|
+
gbC11NBootstrapInProgress = false;
|
|
280
|
+
fnReauth();
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
/* Ends here */
|
|
284
|
+
};
|
|
285
|
+
export const updateLoginStatus = () => {
|
|
286
|
+
const sAuthHdr = sdkGetAuthHeader();
|
|
287
|
+
gbLoggedIn = sAuthHdr && sAuthHdr.length > 0;
|
|
288
|
+
};
|
|
289
|
+
const getCurrentTokens = () => {
|
|
290
|
+
let tokens = null;
|
|
291
|
+
const sTI = sessionStorage.getItem('rsdk_TI');
|
|
292
|
+
if (sTI) {
|
|
293
|
+
try {
|
|
294
|
+
tokens = JSON.parse(sTI);
|
|
295
|
+
}
|
|
296
|
+
catch (e) {
|
|
297
|
+
tokens = null;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return tokens;
|
|
301
|
+
};
|
|
302
|
+
const fireTokenAvailable = (token, bLoadC11N = true) => {
|
|
303
|
+
if (!token) {
|
|
304
|
+
// This is used on page reload to load the token from sessionStorage and carry on
|
|
305
|
+
token = getCurrentTokens();
|
|
306
|
+
if (!token) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
sessionStorage.setItem('rsdk_AH', `${token.token_type} ${token.access_token}`);
|
|
311
|
+
updateLoginStatus();
|
|
312
|
+
// gbLoggedIn is getting updated in updateLoginStatus
|
|
313
|
+
gbLoggedIn = true;
|
|
314
|
+
gbLoginInProgress = false;
|
|
315
|
+
sessionStorage.removeItem("rsdk_loggingIn");
|
|
316
|
+
forcePopupForReauths(true);
|
|
317
|
+
const sSI = sessionStorage.getItem("rsdk_CI");
|
|
318
|
+
let authConfig = null;
|
|
319
|
+
if (sSI) {
|
|
320
|
+
try {
|
|
321
|
+
authConfig = JSON.parse(sSI);
|
|
322
|
+
}
|
|
323
|
+
catch (e) {
|
|
324
|
+
// do nothing
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
if (!window.PCore && bLoadC11N) {
|
|
328
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
329
|
+
constellationInit(authConfig, token, authTokenUpdated, authFullReauth);
|
|
330
|
+
}
|
|
331
|
+
/*
|
|
332
|
+
// Create and dispatch the SdkLoggedIn event to trigger constellationInit
|
|
333
|
+
const event = new CustomEvent('SdkLoggedIn', { detail: { authConfig, tokenInfo: token } });
|
|
334
|
+
document.dispatchEvent(event);
|
|
335
|
+
*/
|
|
336
|
+
};
|
|
337
|
+
const processTokenOnLogin = (token, bLoadC11N = true) => {
|
|
338
|
+
sessionStorage.setItem("rsdk_TI", JSON.stringify(token));
|
|
339
|
+
if (window.PCore) {
|
|
340
|
+
window.PCore.getAuthUtils().setTokens(token);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
fireTokenAvailable(token, bLoadC11N);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
const updateRedirectUri = (aMgr, sRedirectUri) => {
|
|
347
|
+
const sSI = sessionStorage.getItem("rsdk_CI");
|
|
348
|
+
let authConfig = null;
|
|
349
|
+
if (sSI) {
|
|
350
|
+
try {
|
|
351
|
+
authConfig = JSON.parse(sSI);
|
|
352
|
+
}
|
|
353
|
+
catch (e) {
|
|
354
|
+
// do nothing
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
authConfig.redirectUri = sRedirectUri;
|
|
358
|
+
sessionStorage.setItem("rsdk_CI", JSON.stringify(authConfig));
|
|
359
|
+
aMgr.reloadConfig();
|
|
360
|
+
};
|
|
361
|
+
// TODO: Cope with 401 and refresh token if possible (or just hope that it succeeds during login)
|
|
362
|
+
/**
|
|
363
|
+
* Retrieve UserInfo for current authentication service
|
|
364
|
+
*/
|
|
365
|
+
export const getUserInfo = (bUseSS = true) => {
|
|
366
|
+
const ssUserInfo = sessionStorage.getItem("rsdk_UI");
|
|
367
|
+
let userInfo = null;
|
|
368
|
+
if (bUseSS && ssUserInfo) {
|
|
369
|
+
try {
|
|
370
|
+
userInfo = JSON.parse(ssUserInfo);
|
|
371
|
+
return Promise.resolve(userInfo);
|
|
372
|
+
}
|
|
373
|
+
catch (e) {
|
|
374
|
+
// do nothing
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
getAuthMgr(false).then((aMgr) => {
|
|
378
|
+
const tokenInfo = getCurrentTokens();
|
|
379
|
+
return aMgr.getUserinfo(tokenInfo.access_token).then(data => {
|
|
380
|
+
userInfo = data;
|
|
381
|
+
if (userInfo) {
|
|
382
|
+
sessionStorage.setItem("rsdk_UI", JSON.stringify(userInfo));
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
sessionStorage.removeItem("rsdk_UI");
|
|
386
|
+
}
|
|
387
|
+
return Promise.resolve(userInfo);
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
export const login = (bFullReauth = false) => {
|
|
392
|
+
if (gbCustomAuth)
|
|
393
|
+
return;
|
|
394
|
+
gbLoginInProgress = true;
|
|
395
|
+
// Needed so a redirect to login screen and back will know we are still in process of logging in
|
|
396
|
+
sessionStorage.setItem("rsdk_loggingIn", `${Date.now()}`);
|
|
397
|
+
getAuthMgr(!bFullReauth).then((aMgr) => {
|
|
398
|
+
const bMainRedirect = !authNoRedirect();
|
|
399
|
+
const sdkConfigAuth = SdkConfigAccess.getSdkConfigAuth();
|
|
400
|
+
let sRedirectUri = sdkConfigAuth.redirectUri;
|
|
401
|
+
// If initial main redirect is OK, redirect to main page, otherwise will authorize in a popup window
|
|
402
|
+
if (bMainRedirect && !bFullReauth) {
|
|
403
|
+
// update redirect uri to be the root
|
|
404
|
+
updateRedirectUri(aMgr, sRedirectUri);
|
|
405
|
+
aMgr.loginRedirect();
|
|
406
|
+
// Don't have token til after the redirect
|
|
407
|
+
return Promise.resolve(undefined);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
// Construct path to redirect uri
|
|
411
|
+
const nLastPathSep = sRedirectUri.lastIndexOf("/");
|
|
412
|
+
sRedirectUri = nLastPathSep !== -1 ? `${sRedirectUri.substring(0, nLastPathSep + 1)}auth.html` : `${sRedirectUri}/auth.html`;
|
|
413
|
+
// Set redirectUri to static auth.html
|
|
414
|
+
updateRedirectUri(aMgr, sRedirectUri);
|
|
415
|
+
return new Promise((resolve, reject) => {
|
|
416
|
+
aMgr.login().then(token => {
|
|
417
|
+
processTokenOnLogin(token);
|
|
418
|
+
// getUserInfo();
|
|
419
|
+
resolve(token.access_token);
|
|
420
|
+
}).catch((e) => {
|
|
421
|
+
gbLoginInProgress = false;
|
|
422
|
+
sessionStorage.removeItem("rsdk_loggingIn");
|
|
423
|
+
// eslint-disable-next-line no-console
|
|
424
|
+
console.log(e);
|
|
425
|
+
reject(e);
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
};
|
|
431
|
+
export const authRedirectCallback = (href, fnLoggedInCB = null) => {
|
|
432
|
+
// Get code from href and swap for token
|
|
433
|
+
const aHrefParts = href.split('?');
|
|
434
|
+
const urlParams = new URLSearchParams(aHrefParts.length > 1 ? `?${aHrefParts[1]}` : '');
|
|
435
|
+
const code = urlParams.get("code");
|
|
436
|
+
getAuthMgr(false).then((aMgr) => {
|
|
437
|
+
aMgr.getToken(code).then(token => {
|
|
438
|
+
if (token && token.access_token) {
|
|
439
|
+
processTokenOnLogin(token, false);
|
|
440
|
+
// getUserInfo();
|
|
441
|
+
if (fnLoggedInCB) {
|
|
442
|
+
fnLoggedInCB(token.access_token);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
/**
|
|
449
|
+
* Silent or visible login based on login status
|
|
450
|
+
* @param {string} appName - unique name for application route (will be used to clear an session storage for another route)
|
|
451
|
+
* @param {boolean} noMainRedirect - avoid the initial main window redirect that happens in scenarios where it is OK to transition
|
|
452
|
+
* away from the main page
|
|
453
|
+
* @param {boolean} deferLogin - defer logging in (if not already authenticated)
|
|
454
|
+
*/
|
|
455
|
+
export const loginIfNecessary = (appName, noMainRedirect = false, deferLogin = false) => {
|
|
456
|
+
// If no initial redirect status of page changed...clearAuthMgr
|
|
457
|
+
const currNoMainRedirect = authNoRedirect();
|
|
458
|
+
const currAppName = sessionStorage.getItem("rsdk_appName");
|
|
459
|
+
if (appName !== currAppName || noMainRedirect !== currNoMainRedirect) {
|
|
460
|
+
clearAuthMgr();
|
|
461
|
+
sessionStorage.setItem("rsdk_appName", appName);
|
|
462
|
+
}
|
|
463
|
+
setNoInitialRedirect(noMainRedirect);
|
|
464
|
+
// If custom auth no need to do any OAuth logic
|
|
465
|
+
if (gbCustomAuth) {
|
|
466
|
+
if (!window.PCore) {
|
|
467
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
468
|
+
constellationInit(null, null, null, authCustomReauth);
|
|
469
|
+
}
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
if (window.location.href.indexOf("?code") !== -1) {
|
|
473
|
+
// initialize authMgr
|
|
474
|
+
initOAuth(false);
|
|
475
|
+
return getAuthMgr(false).then(() => {
|
|
476
|
+
authRedirectCallback(window.location.href, () => {
|
|
477
|
+
window.location.href = window.location.pathname;
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
if (!deferLogin && (!gbLoginInProgress || isLoginExpired())) {
|
|
482
|
+
initOAuth(false);
|
|
483
|
+
return getAuthMgr(false).then(() => {
|
|
484
|
+
updateLoginStatus();
|
|
485
|
+
if (gbLoggedIn) {
|
|
486
|
+
fireTokenAvailable(getCurrentTokens());
|
|
487
|
+
// getUserInfo();
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
return login();
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
export const getHomeUrl = () => {
|
|
496
|
+
return `${window.location.origin}/`;
|
|
497
|
+
};
|
|
498
|
+
export const authIsMainRedirect = () => {
|
|
499
|
+
// Even with main redirect, we want to use it only for the first login (so it doesn't wipe out any state or the reload)
|
|
500
|
+
return !authNoRedirect() && !usePopupForRestOfSession;
|
|
501
|
+
};
|
|
502
|
+
// Passive update where just session storage is updated so can be used on a window refresh
|
|
503
|
+
export const authTokenUpdated = (tokenInfo) => {
|
|
504
|
+
sessionStorage.setItem("rsdk_TI", JSON.stringify(tokenInfo));
|
|
505
|
+
};
|
|
506
|
+
export const logout = () => {
|
|
507
|
+
return new Promise((resolve) => {
|
|
508
|
+
const fnClearAndResolve = () => {
|
|
509
|
+
clearAuthMgr();
|
|
510
|
+
const event = new Event('SdkLoggedOut');
|
|
511
|
+
document.dispatchEvent(event);
|
|
512
|
+
resolve();
|
|
513
|
+
};
|
|
514
|
+
if (gbCustomAuth) {
|
|
515
|
+
sessionStorage.removeItem("rsdk_AH");
|
|
516
|
+
fnClearAndResolve();
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
const tokenInfo = getCurrentTokens();
|
|
520
|
+
if (tokenInfo && tokenInfo.access_token) {
|
|
521
|
+
if (window.PCore) {
|
|
522
|
+
window.PCore.getAuthUtils().revokeTokens().then(() => {
|
|
523
|
+
fnClearAndResolve();
|
|
524
|
+
}).catch(err => {
|
|
525
|
+
// eslint-disable-next-line no-console
|
|
526
|
+
console.log("Error:", err?.message);
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
getAuthMgr(false).then((aMgr) => {
|
|
531
|
+
aMgr.revokeTokens(tokenInfo.access_token, tokenInfo.refresh_token)
|
|
532
|
+
.then(() => {
|
|
533
|
+
// Go to finally
|
|
534
|
+
})
|
|
535
|
+
.finally(() => {
|
|
536
|
+
fnClearAndResolve();
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
else {
|
|
542
|
+
fnClearAndResolve();
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
};
|
|
546
|
+
// Callback routine for custom event to ask for updated tokens
|
|
547
|
+
export const authUpdateTokens = (token) => {
|
|
548
|
+
processTokenOnLogin(token);
|
|
549
|
+
};
|
|
550
|
+
// Initiate a full OAuth re-authorization (any refresh token has also expired).
|
|
551
|
+
export const authFullReauth = () => {
|
|
552
|
+
const bHandleHere = true; // Other alternative is to raise an event and have someone else handle it
|
|
553
|
+
if (bHandleHere) {
|
|
554
|
+
// Don't want to do a full clear of authMgr as will loose sessionIndex. Rather just clear the tokens
|
|
555
|
+
clearAuthMgr(true);
|
|
556
|
+
login(true);
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
// Fire the SdkFullReauth event to indicate a new token is needed (PCore.getAuthUtils.setTokens method
|
|
560
|
+
// should be used to communicate the new token to Constellation JS Engine.
|
|
561
|
+
const event = new CustomEvent('SdkFullReauth', { detail: authUpdateTokens });
|
|
562
|
+
document.dispatchEvent(event);
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
// Set the custom authorization header for the SDK (and Constellation JS Engine) to
|
|
566
|
+
// utilize for every DX API request
|
|
567
|
+
export const sdkSetAuthHeader = (authHeader) => {
|
|
568
|
+
// set this within session storage so it survives a browser reload
|
|
569
|
+
if (authHeader) {
|
|
570
|
+
sessionStorage.setItem("rsdk_AH", authHeader);
|
|
571
|
+
// setAuthorizationHeader method not available til 8.8 so do safety check
|
|
572
|
+
if (window.PCore?.getAuthUtils().setAuthorizationHeader) {
|
|
573
|
+
window.PCore.getAuthUtils().setAuthorizationHeader(authHeader);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
else {
|
|
577
|
+
sessionStorage.removeItem("rsdk_AH");
|
|
578
|
+
}
|
|
579
|
+
gbCustomAuth = true;
|
|
580
|
+
};
|
|
581
|
+
// Initiate a custom re-authorization.
|
|
582
|
+
export const authCustomReauth = () => {
|
|
583
|
+
// Fire the SdkCustomReauth event to indicate a new authHeader is needed. Event listener should invoke sdkSetAuthHeader
|
|
584
|
+
// to communicate the new token to sdk (and Constellation JS Engine)
|
|
585
|
+
const event = new CustomEvent('SdkCustomReauth', { detail: sdkSetAuthHeader });
|
|
586
|
+
document.dispatchEvent(event);
|
|
587
|
+
};
|
|
588
|
+
//# sourceMappingURL=authManager.js.map
|