@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,310 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
3
|
+
import localizedFormat from 'dayjs/plugin/localizedFormat';
|
|
4
|
+
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
5
|
+
dayjs.extend(customParseFormat);
|
|
6
|
+
dayjs.extend(localizedFormat);
|
|
7
|
+
dayjs.extend(relativeTime);
|
|
8
|
+
export class Utils {
|
|
9
|
+
static getUniqueControlID() {
|
|
10
|
+
const sPrefix = 'control-';
|
|
11
|
+
this.lastControlID += 1;
|
|
12
|
+
return sPrefix + this.lastControlID.toString();
|
|
13
|
+
}
|
|
14
|
+
static getOptionList(configProps, dataObject) {
|
|
15
|
+
const listType = configProps.listType;
|
|
16
|
+
let arReturn = [];
|
|
17
|
+
if (listType) {
|
|
18
|
+
switch (listType.toLowerCase()) {
|
|
19
|
+
case 'associated':
|
|
20
|
+
// data source should be an array
|
|
21
|
+
if (typeof configProps.datasource === 'object') {
|
|
22
|
+
arReturn = configProps.datasource;
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
case 'datapage':
|
|
26
|
+
// get data page
|
|
27
|
+
// eslint-disable-next-line no-case-declarations
|
|
28
|
+
const dataPage = configProps.datasource;
|
|
29
|
+
if (dataObject[dataPage]) {
|
|
30
|
+
// eslint-disable-next-line no-alert
|
|
31
|
+
alert('need to handle data page');
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
let listSourceItems = configProps.listOutput;
|
|
35
|
+
if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {
|
|
36
|
+
listSourceItems = dataPage.source ? dataPage.source : [];
|
|
37
|
+
}
|
|
38
|
+
(listSourceItems || []).forEach(item => {
|
|
39
|
+
item.value = item.text ? item.text : item.value;
|
|
40
|
+
});
|
|
41
|
+
arReturn = listSourceItems || [];
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
default:
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return arReturn;
|
|
49
|
+
}
|
|
50
|
+
static getInitials(userName) {
|
|
51
|
+
let userInitials = userName;
|
|
52
|
+
if (userName && userName !== '') {
|
|
53
|
+
userInitials = userName.charAt(0);
|
|
54
|
+
if (userName.lastIndexOf(' ') > 0) {
|
|
55
|
+
const lastName = userName.substring(userName.lastIndexOf(' ') + 1);
|
|
56
|
+
userInitials += lastName.charAt(0);
|
|
57
|
+
}
|
|
58
|
+
else if (userName.lastIndexOf('.') > 0) {
|
|
59
|
+
const lastName = userName.substring(userName.lastIndexOf('.') + 1);
|
|
60
|
+
userInitials += lastName.charAt(0);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
userInitials = '';
|
|
65
|
+
}
|
|
66
|
+
return userInitials.toUpperCase();
|
|
67
|
+
}
|
|
68
|
+
static getImageSrc(name, serverUrl) {
|
|
69
|
+
let iconName = name.replace('pi-', '').replace('pi ', '').trim();
|
|
70
|
+
if (iconName === 'line-chart') {
|
|
71
|
+
iconName = 'chart-line';
|
|
72
|
+
}
|
|
73
|
+
return this.getIconPath(serverUrl).concat(iconName).concat('.svg');
|
|
74
|
+
}
|
|
75
|
+
static getIconPath(serverUrl) {
|
|
76
|
+
// Directory in the constellation folder where the icons will be
|
|
77
|
+
return serverUrl.concat('icons/');
|
|
78
|
+
}
|
|
79
|
+
static getBooleanValue(inValue) {
|
|
80
|
+
let bReturn = false;
|
|
81
|
+
if (typeof inValue === 'string') {
|
|
82
|
+
// Experiment with having "" be true, too (and "on")
|
|
83
|
+
if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {
|
|
84
|
+
bReturn = true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
bReturn = inValue;
|
|
89
|
+
}
|
|
90
|
+
return bReturn;
|
|
91
|
+
}
|
|
92
|
+
// Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke
|
|
93
|
+
// format and do away with all the separate Pega possible dateFormats.
|
|
94
|
+
static generateDate(dateVal, dateFormat) {
|
|
95
|
+
let sReturnDate = dateVal;
|
|
96
|
+
if (dateVal === null || dateVal === '') {
|
|
97
|
+
return dateVal;
|
|
98
|
+
}
|
|
99
|
+
// VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)
|
|
100
|
+
// dateTimeVal = dateTimeVal.replace("GMT", "+0000")
|
|
101
|
+
// Anything else would require a specific String pattern be specified as an argument to the dayjs constructor
|
|
102
|
+
// if date has a ".", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD
|
|
103
|
+
if (dateVal.indexOf('.') >= 0) {
|
|
104
|
+
// VRS: Dont think we need the dateVal.replace("GMT", "+0000"). Commenting out for now. (2020.05.20)
|
|
105
|
+
// dateVal = dayjs(dateVal.replace("GMT", "+0000"), "YYYYMMDD[T]HHmmss[.]SSS Z").format("YYYYMMDD");
|
|
106
|
+
// dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)
|
|
107
|
+
// Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)
|
|
108
|
+
// (better might be just doing that in a default switch block)
|
|
109
|
+
sReturnDate = dayjs(dateVal).format('YYYYMMDD');
|
|
110
|
+
}
|
|
111
|
+
switch (dateFormat) {
|
|
112
|
+
case 'Date-Short':
|
|
113
|
+
// 1/1/01
|
|
114
|
+
sReturnDate = dayjs(dateVal).format('M/D/YY');
|
|
115
|
+
break;
|
|
116
|
+
case 'Date-Short-YYYY':
|
|
117
|
+
// 1/1/2001
|
|
118
|
+
sReturnDate = dayjs(dateVal).format('M/D/YYYY');
|
|
119
|
+
break;
|
|
120
|
+
case 'Date-Short-Custom':
|
|
121
|
+
// 01/01/01
|
|
122
|
+
sReturnDate = dayjs(dateVal).format('MM/DD/YY');
|
|
123
|
+
break;
|
|
124
|
+
case 'Date-Short-Custom-YYYY':
|
|
125
|
+
// 01/01/2001
|
|
126
|
+
sReturnDate = dayjs(dateVal).format('L');
|
|
127
|
+
break;
|
|
128
|
+
case 'Date-Medium':
|
|
129
|
+
// Jan 1, 2001
|
|
130
|
+
sReturnDate = dayjs(dateVal).format('ll');
|
|
131
|
+
break;
|
|
132
|
+
case 'Date-DayMonthYear-Custom':
|
|
133
|
+
// 01-Jan-2001
|
|
134
|
+
sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');
|
|
135
|
+
break;
|
|
136
|
+
case 'Date-Full':
|
|
137
|
+
// Monday, January 1, 2001
|
|
138
|
+
sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');
|
|
139
|
+
break;
|
|
140
|
+
case 'DateTime-Frame':
|
|
141
|
+
case 'DateTime-Frame-Short':
|
|
142
|
+
case 'DateTime-Since':
|
|
143
|
+
// 2 days, 5 hours ago
|
|
144
|
+
sReturnDate = dayjs(dateVal).fromNow();
|
|
145
|
+
break;
|
|
146
|
+
case 'Date-Long':
|
|
147
|
+
// January 1, 2001
|
|
148
|
+
sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');
|
|
149
|
+
break;
|
|
150
|
+
case 'Date-ISO-8601':
|
|
151
|
+
// 2001/01/01 y/m/d
|
|
152
|
+
sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');
|
|
153
|
+
break;
|
|
154
|
+
case 'Date-Gregorian-1':
|
|
155
|
+
// 01 January, 2001
|
|
156
|
+
sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');
|
|
157
|
+
break;
|
|
158
|
+
case 'Date-Gregorian-2':
|
|
159
|
+
// January 01, 2001
|
|
160
|
+
sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');
|
|
161
|
+
break;
|
|
162
|
+
case 'Date-Gregorian-3':
|
|
163
|
+
// 2001, January 01
|
|
164
|
+
sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');
|
|
165
|
+
break;
|
|
166
|
+
case 'DateTime-Custom':
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
return sReturnDate;
|
|
172
|
+
}
|
|
173
|
+
// Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke
|
|
174
|
+
// format and do away with all the separate Pega possible dateFormats.
|
|
175
|
+
static generateDateTime(dateTimeVal, dateFormat) {
|
|
176
|
+
let sReturnDate = dateTimeVal;
|
|
177
|
+
if (dateTimeVal === null || dateTimeVal === '') {
|
|
178
|
+
return dateTimeVal;
|
|
179
|
+
}
|
|
180
|
+
// VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)
|
|
181
|
+
// dateTimeVal = dateTimeVal.replace("GMT", "+0000")
|
|
182
|
+
// dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)
|
|
183
|
+
// Anything else would require a specific String pattern be specified as an argument to the dayjs constructor
|
|
184
|
+
switch (dateFormat) {
|
|
185
|
+
case 'DateTime-Short':
|
|
186
|
+
// 1/1/01 1:00 AM
|
|
187
|
+
sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');
|
|
188
|
+
break;
|
|
189
|
+
case 'DateTime-Short-Custom':
|
|
190
|
+
// 01/01/01 01:00 AM
|
|
191
|
+
sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');
|
|
192
|
+
break;
|
|
193
|
+
case 'DateTime-Short-YYYY-Custom':
|
|
194
|
+
// 01/01/2001 01:00 AM
|
|
195
|
+
sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');
|
|
196
|
+
break;
|
|
197
|
+
case 'DateTime-Short-YYYY':
|
|
198
|
+
// 1/1/2001 1:00 AM
|
|
199
|
+
sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');
|
|
200
|
+
break;
|
|
201
|
+
case 'DateTime-Medium':
|
|
202
|
+
// Jan 1, 2001 1:00:00 AM
|
|
203
|
+
sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');
|
|
204
|
+
break;
|
|
205
|
+
case 'DateTime-Long':
|
|
206
|
+
// January 1, 2001 1:00:00 AM
|
|
207
|
+
sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');
|
|
208
|
+
break;
|
|
209
|
+
case 'DateTime-DayMonthYear-Custom':
|
|
210
|
+
// 01-Jan-2001 1:00:00 AM
|
|
211
|
+
sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');
|
|
212
|
+
break;
|
|
213
|
+
case 'DateTime-Full':
|
|
214
|
+
// Monday, January 1, 2001 1:00 AM EDT
|
|
215
|
+
sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');
|
|
216
|
+
break;
|
|
217
|
+
case 'DateTime-Frame':
|
|
218
|
+
case 'DateTime-Frame-Short':
|
|
219
|
+
case 'DateTime-Since':
|
|
220
|
+
// 2 days, 5 hours ago
|
|
221
|
+
sReturnDate = dayjs(dateTimeVal).fromNow();
|
|
222
|
+
break;
|
|
223
|
+
case 'DateTime-ISO-8601':
|
|
224
|
+
// 2001/01/01 1:00:00 AM y/m/d
|
|
225
|
+
sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');
|
|
226
|
+
break;
|
|
227
|
+
case 'DateTime-Gregorian-1':
|
|
228
|
+
// 01 January, 2001 1:00:00 AM
|
|
229
|
+
sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');
|
|
230
|
+
break;
|
|
231
|
+
case 'DateTime-Gregorian-2':
|
|
232
|
+
// January 01, 2001 1:00:00 AM
|
|
233
|
+
sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');
|
|
234
|
+
break;
|
|
235
|
+
case 'DateTime-Gregorian-3':
|
|
236
|
+
// 2001, January 01 1:00:00 AM
|
|
237
|
+
sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');
|
|
238
|
+
break;
|
|
239
|
+
case 'DateTime-Custom':
|
|
240
|
+
break;
|
|
241
|
+
default:
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
return sReturnDate;
|
|
245
|
+
}
|
|
246
|
+
static getSeconds(sTime) {
|
|
247
|
+
return dayjs(sTime).valueOf();
|
|
248
|
+
}
|
|
249
|
+
static getIconFromFileType(fileType) {
|
|
250
|
+
let icon = 'document-doc';
|
|
251
|
+
if (!fileType)
|
|
252
|
+
return icon;
|
|
253
|
+
if (fileType.startsWith('audio')) {
|
|
254
|
+
icon = 'audio';
|
|
255
|
+
}
|
|
256
|
+
else if (fileType.startsWith('video')) {
|
|
257
|
+
icon = 'video';
|
|
258
|
+
}
|
|
259
|
+
else if (fileType.startsWith('image')) {
|
|
260
|
+
icon = 'picture';
|
|
261
|
+
}
|
|
262
|
+
else if (fileType.includes('pdf')) {
|
|
263
|
+
icon = 'document-pdf';
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
const [, subtype] = fileType.split('/');
|
|
267
|
+
const foundMatch = sources => {
|
|
268
|
+
return sources.some(key => subtype.includes(key));
|
|
269
|
+
};
|
|
270
|
+
if (foundMatch(['excel', 'spreadsheet'])) {
|
|
271
|
+
icon = 'document-xls';
|
|
272
|
+
}
|
|
273
|
+
else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {
|
|
274
|
+
icon = 'document-compress';
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return icon;
|
|
278
|
+
}
|
|
279
|
+
static getIconForAttachment(attachment) {
|
|
280
|
+
let icon;
|
|
281
|
+
switch (attachment.type) {
|
|
282
|
+
case 'FILE':
|
|
283
|
+
icon = this.getIconFromFileType(attachment.mimeType);
|
|
284
|
+
break;
|
|
285
|
+
case 'URL':
|
|
286
|
+
icon = 'chain';
|
|
287
|
+
break;
|
|
288
|
+
default:
|
|
289
|
+
icon = 'document-doc';
|
|
290
|
+
}
|
|
291
|
+
return icon;
|
|
292
|
+
}
|
|
293
|
+
static getLastChar(text) {
|
|
294
|
+
return text.charAt(text.length - 1);
|
|
295
|
+
}
|
|
296
|
+
static isEmptyObject(obj) {
|
|
297
|
+
return Object.keys(obj).length === 0;
|
|
298
|
+
}
|
|
299
|
+
static isObject(objValue) {
|
|
300
|
+
return objValue && typeof objValue === 'object' && objValue.constructor === Object;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
Object.defineProperty(Utils, "lastControlID", {
|
|
304
|
+
enumerable: true,
|
|
305
|
+
configurable: true,
|
|
306
|
+
writable: true,
|
|
307
|
+
value: 0
|
|
308
|
+
});
|
|
309
|
+
export default Utils;
|
|
310
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/helpers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,gCAAgC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AAErD,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAChC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC9B,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,OAAO,KAAK;IAGhB,MAAM,CAAC,kBAAkB;QACv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AC,IAAI,EAAE;YACvB,KAAK,MAAM;gBACT,IAAI,GAAG,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACrD,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,GAAG,OAAO,CAAC;gBACf,MAAM;YACR;gBACE,IAAI,GAAG,cAAc,CAAC;SACzB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAI;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAW;QAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,QAAQ;QACtB,OAAO,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,WAAW,KAAK,MAAM,CAAC;IACrF,CAAC;;AAhUD;;;;WAA+B,CAAC;GAAC;AAmUnC,eAAe,KAAK,CAAC","sourcesContent":["import dayjs from 'dayjs';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport relativeTime from 'dayjs/plugin/relativeTime';\n\ndayjs.extend(customParseFormat);\ndayjs.extend(localizedFormat);\ndayjs.extend(relativeTime);\n\nexport class Utils {\n static lastControlID: number = 0;\n\n static getUniqueControlID(): string {\n const sPrefix = 'control-';\n\n this.lastControlID += 1;\n\n return sPrefix + this.lastControlID.toString();\n }\n\n static getOptionList(configProps: any, dataObject: any): Array<any> {\n const listType = configProps.listType;\n let arReturn: Array<any> = [];\n\n if (listType) {\n switch (listType.toLowerCase()) {\n case 'associated':\n // data source should be an array\n if (typeof configProps.datasource === 'object') {\n arReturn = configProps.datasource;\n }\n break;\n\n case 'datapage':\n // get data page\n // eslint-disable-next-line no-case-declarations\n const dataPage = configProps.datasource;\n if (dataObject[dataPage]) {\n // eslint-disable-next-line no-alert\n alert('need to handle data page');\n } else {\n let listSourceItems = configProps.listOutput;\n if (typeof dataPage === 'object' && !Array.isArray(listSourceItems)) {\n listSourceItems = dataPage.source ? dataPage.source : [];\n }\n (listSourceItems || []).forEach(item => {\n item.value = item.text ? item.text : item.value;\n });\n arReturn = listSourceItems || [];\n }\n break;\n\n default:\n break;\n }\n }\n\n return arReturn;\n }\n\n static getInitials(userName: string): string {\n let userInitials = userName;\n\n if (userName && userName !== '') {\n userInitials = userName.charAt(0);\n\n if (userName.lastIndexOf(' ') > 0) {\n const lastName = userName.substring(userName.lastIndexOf(' ') + 1);\n userInitials += lastName.charAt(0);\n } else if (userName.lastIndexOf('.') > 0) {\n const lastName = userName.substring(userName.lastIndexOf('.') + 1);\n userInitials += lastName.charAt(0);\n }\n } else {\n userInitials = '';\n }\n\n return userInitials.toUpperCase();\n }\n\n static getImageSrc(name: string, serverUrl: string): string {\n let iconName = name.replace('pi-', '').replace('pi ', '').trim();\n if (iconName === 'line-chart') {\n iconName = 'chart-line';\n }\n\n return this.getIconPath(serverUrl).concat(iconName).concat('.svg');\n }\n\n static getIconPath(serverUrl: string): string {\n // Directory in the constellation folder where the icons will be\n return serverUrl.concat('icons/');\n }\n\n static getBooleanValue(inValue: any): boolean {\n let bReturn = false;\n\n if (typeof inValue === 'string') {\n // Experiment with having \"\" be true, too (and \"on\")\n if (inValue.toLowerCase() === 'true' || inValue.toLowerCase() === 'on' || inValue === '') {\n bReturn = true;\n }\n } else {\n bReturn = inValue;\n }\n\n return bReturn;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDate(dateVal, dateFormat) {\n let sReturnDate = dateVal;\n\n if (dateVal === null || dateVal === '') {\n return dateVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n // if date has a \".\", then of the format YYYMMDD[T]HHmmss[.]SSS Z, need to change to YYYYMMDD\n if (dateVal.indexOf('.') >= 0) {\n // VRS: Dont think we need the dateVal.replace(\"GMT\", \"+0000\"). Commenting out for now. (2020.05.20)\n // dateVal = dayjs(dateVal.replace(\"GMT\", \"+0000\"), \"YYYYMMDD[T]HHmmss[.]SSS Z\").format(\"YYYYMMDD\");\n // dateVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Don't change the dateVal passed to dayjs (rather just set a default sReturnDate--if that is what we want to do)\n // (better might be just doing that in a default switch block)\n sReturnDate = dayjs(dateVal).format('YYYYMMDD');\n }\n\n switch (dateFormat) {\n case 'Date-Short':\n // 1/1/01\n sReturnDate = dayjs(dateVal).format('M/D/YY');\n break;\n case 'Date-Short-YYYY':\n // 1/1/2001\n sReturnDate = dayjs(dateVal).format('M/D/YYYY');\n break;\n case 'Date-Short-Custom':\n // 01/01/01\n sReturnDate = dayjs(dateVal).format('MM/DD/YY');\n break;\n case 'Date-Short-Custom-YYYY':\n // 01/01/2001\n sReturnDate = dayjs(dateVal).format('L');\n break;\n case 'Date-Medium':\n // Jan 1, 2001\n sReturnDate = dayjs(dateVal).format('ll');\n break;\n case 'Date-DayMonthYear-Custom':\n // 01-Jan-2001\n sReturnDate = dayjs(dateVal).format('DD-MMM-YYYY');\n break;\n case 'Date-Full':\n // Monday, January 1, 2001\n sReturnDate = dayjs(dateVal).format('dddd, MMMM D, YYYY');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateVal).fromNow();\n break;\n case 'Date-Long':\n // January 1, 2001\n sReturnDate = dayjs(dateVal).format('MMMM D, YYYY');\n break;\n case 'Date-ISO-8601':\n // 2001/01/01 y/m/d\n sReturnDate = dayjs(dateVal).format('YYYY/MM/DD');\n break;\n case 'Date-Gregorian-1':\n // 01 January, 2001\n sReturnDate = dayjs(dateVal).format('DD MMMM, YYYY');\n break;\n case 'Date-Gregorian-2':\n // January 01, 2001\n sReturnDate = dayjs(dateVal).format('MMMM DD, YYYY');\n break;\n case 'Date-Gregorian-3':\n // 2001, January 01\n sReturnDate = dayjs(dateVal).format('YYYY, MMMM DD');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n // Note: Explored using formatters/format but that doesn't do the same as this function. So not possible to just invoke\n // format and do away with all the separate Pega possible dateFormats.\n static generateDateTime(dateTimeVal, dateFormat) {\n let sReturnDate = dateTimeVal;\n\n if (dateTimeVal === null || dateTimeVal === '') {\n return dateTimeVal;\n }\n\n // VRS: Dont think we need the below line. Commenting out for now. (2020.05.20)\n // dateTimeVal = dateTimeVal.replace(\"GMT\", \"+0000\")\n // dateTimeVal format appears to be YYYY-MM-DDThh:mm:ss.SSSZ (which is the default dayjs expected format)\n // Anything else would require a specific String pattern be specified as an argument to the dayjs constructor\n\n switch (dateFormat) {\n case 'DateTime-Short':\n // 1/1/01 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YY h:mm A');\n break;\n case 'DateTime-Short-Custom':\n // 01/01/01 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MM/DD/YY hh:mm A');\n break;\n case 'DateTime-Short-YYYY-Custom':\n // 01/01/2001 01:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY hh:mm A');\n break;\n case 'DateTime-Short-YYYY':\n // 1/1/2001 1:00 AM\n sReturnDate = dayjs(dateTimeVal).format('M/D/YYYY h:mm A');\n break;\n case 'DateTime-Medium':\n // Jan 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-Long':\n // January 1, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM D, YYYY h:mm:ss A');\n break;\n case 'DateTime-DayMonthYear-Custom':\n // 01-Jan-2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD-MMM-YYYY h:mm:ss A');\n break;\n case 'DateTime-Full':\n // Monday, January 1, 2001 1:00 AM EDT\n sReturnDate = dayjs(dateTimeVal).format('dddd, MMMM D, YYYY h:mm A z');\n break;\n case 'DateTime-Frame':\n case 'DateTime-Frame-Short':\n case 'DateTime-Since':\n // 2 days, 5 hours ago\n sReturnDate = dayjs(dateTimeVal).fromNow();\n break;\n case 'DateTime-ISO-8601':\n // 2001/01/01 1:00:00 AM y/m/d\n sReturnDate = dayjs(dateTimeVal).format('YYYY/MM/DD h:mm:ss A');\n break;\n case 'DateTime-Gregorian-1':\n // 01 January, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('DD MMMM, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-2':\n // January 01, 2001 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('MMMM DD, YYYY h:mm:ss A');\n break;\n case 'DateTime-Gregorian-3':\n // 2001, January 01 1:00:00 AM\n sReturnDate = dayjs(dateTimeVal).format('YYYY, MMMM DD h:mm:ss A');\n break;\n case 'DateTime-Custom':\n break;\n default:\n break;\n }\n\n return sReturnDate;\n }\n\n static getSeconds(sTime): any {\n return dayjs(sTime).valueOf();\n }\n\n static getIconFromFileType(fileType): string {\n let icon = 'document-doc';\n if (!fileType) return icon;\n if (fileType.startsWith('audio')) {\n icon = 'audio';\n } else if (fileType.startsWith('video')) {\n icon = 'video';\n } else if (fileType.startsWith('image')) {\n icon = 'picture';\n } else if (fileType.includes('pdf')) {\n icon = 'document-pdf';\n } else {\n const [, subtype] = fileType.split('/');\n const foundMatch = sources => {\n return sources.some(key => subtype.includes(key));\n };\n\n if (foundMatch(['excel', 'spreadsheet'])) {\n icon = 'document-xls';\n } else if (foundMatch(['zip', 'compressed', 'gzip', 'rar', 'tar'])) {\n icon = 'document-compress';\n }\n }\n\n return icon;\n }\n\n static getIconForAttachment(attachment) {\n let icon;\n switch (attachment.type) {\n case 'FILE':\n icon = this.getIconFromFileType(attachment.mimeType);\n break;\n case 'URL':\n icon = 'chain';\n break;\n default:\n icon = 'document-doc';\n }\n return icon;\n }\n\n static getLastChar(text) {\n return text.charAt(text.length - 1);\n }\n\n static isEmptyObject(obj: Object): Boolean {\n return Object.keys(obj).length === 0;\n }\n\n static isObject(objValue) {\n return objValue && typeof objValue === 'object' && objValue.constructor === Object;\n }\n}\n\nexport default Utils;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* versionHelpers.ts
|
|
3
|
+
*
|
|
4
|
+
* Container helper functions that can identify which version of
|
|
5
|
+
* PCore/PConnect is being run
|
|
6
|
+
*/
|
|
7
|
+
export declare const sdkVersion = "8.7";
|
|
8
|
+
export declare function compareSdkPCoreVersions(): void;
|
|
9
|
+
//# sourceMappingURL=versionHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,SAOtC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* versionHelpers.ts
|
|
3
|
+
*
|
|
4
|
+
* Container helper functions that can identify which version of
|
|
5
|
+
* PCore/PConnect is being run
|
|
6
|
+
*/
|
|
7
|
+
export const sdkVersion = "8.7";
|
|
8
|
+
export function compareSdkPCoreVersions() {
|
|
9
|
+
// const theConstellationVersion = PCore.getPCoreVersion();
|
|
10
|
+
// eslint-disable-next-line no-console
|
|
11
|
+
console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=versionHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IAErC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;AAEnI,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\ndeclare const PCore;\n\nexport const sdkVersion = \"8.7\";\n\nexport function compareSdkPCoreVersions() {\n\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
declare function ActionButtons(props: any): JSX.Element;
|
|
4
|
+
declare namespace ActionButtons {
|
|
5
|
+
var propTypes: {
|
|
6
|
+
arMainButtons: PropTypes.Requireable<any[]>;
|
|
7
|
+
arSecondaryButtons: PropTypes.Requireable<any[]>;
|
|
8
|
+
onButtonPress: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
};
|
|
10
|
+
var defaultProps: {
|
|
11
|
+
arMainButtons: never[];
|
|
12
|
+
arSecondaryButtons: never[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default ActionButtons;
|
|
16
|
+
//# sourceMappingURL=ActionButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmBnC,iBAAwB,aAAa,CAAC,KAAK,KAAA,eAoC1C;kBApCuB,aAAa;;;;;;;;;;;eAAb,aAAa"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
4
|
+
import Button from '@material-ui/core/Button';
|
|
5
|
+
import { Grid, Divider } from "@material-ui/core";
|
|
6
|
+
const useStyles = makeStyles(( /* theme */) => ({
|
|
7
|
+
button: {
|
|
8
|
+
padding: "0px 5px",
|
|
9
|
+
},
|
|
10
|
+
divider: {
|
|
11
|
+
marginTop: "10px",
|
|
12
|
+
marginBottom: "10px"
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
export default function ActionButtons(props) {
|
|
16
|
+
const { arMainButtons, arSecondaryButtons, onButtonPress } = props;
|
|
17
|
+
const classes = useStyles();
|
|
18
|
+
function _onButtonPress(sAction, sButtonType) {
|
|
19
|
+
onButtonPress(sAction, sButtonType);
|
|
20
|
+
}
|
|
21
|
+
return (React.createElement(React.Fragment, null,
|
|
22
|
+
React.createElement(Divider, { className: classes.divider }),
|
|
23
|
+
React.createElement(Grid, { container: true, spacing: 4, justifyContent: "space-between" },
|
|
24
|
+
React.createElement(Grid, { item: true },
|
|
25
|
+
React.createElement(Grid, { container: true, spacing: 1 }, arSecondaryButtons.map((sButton) => (React.createElement(Grid, { item: true, key: sButton.name },
|
|
26
|
+
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => { _onButtonPress(sButton.jsAction, "secondary"); } }, sButton.name)))))),
|
|
27
|
+
React.createElement(Grid, { item: true },
|
|
28
|
+
React.createElement(Grid, { container: true, spacing: 1 }, arMainButtons.map((mButton) => (React.createElement(Grid, { item: true, key: mButton.name },
|
|
29
|
+
React.createElement(Button, { variant: "contained", color: "primary", onClick: () => { _onButtonPress(mButton.jsAction, "primary"); } }, mButton.name)))))))));
|
|
30
|
+
}
|
|
31
|
+
ActionButtons.propTypes = {
|
|
32
|
+
arMainButtons: PropTypes.array,
|
|
33
|
+
arSecondaryButtons: PropTypes.array,
|
|
34
|
+
onButtonPress: PropTypes.func
|
|
35
|
+
// buildName: PropTypes.string
|
|
36
|
+
};
|
|
37
|
+
ActionButtons.defaultProps = {
|
|
38
|
+
arMainButtons: [],
|
|
39
|
+
arSecondaryButtons: []
|
|
40
|
+
// buildName: null
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=ActionButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButtons.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/ActionButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIlD,MAAM,SAAS,GAAG,UAAU,CAAC,EAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,EAAE;QACN,OAAO,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,MAAM;QACjB,YAAY,EAAE,MAAM;KACrB;CACF,CAAC,CAAC,CAAC;AAGJ,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK;IACzC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACnE,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;IAE5B,SAAS,cAAc,CAAC,OAAe,EAAE,WAAmB;QAE1D,aAAa,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,oBAAC,OAAO,IAAC,SAAS,EAAE,OAAO,CAAC,OAAO,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AAE;IACjB,kBAAkB,EAAE,EAAE;IACtB,kBAAkB;CACnB,CAAC","sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport Button from '@material-ui/core/Button';\nimport { Grid, Divider } from \"@material-ui/core\";\n\n\n\nconst useStyles = makeStyles((/* theme */) => ({\n button: {\n padding: \"0px 5px\",\n },\n divider: {\n marginTop: \"10px\",\n marginBottom: \"10px\"\n }\n}));\n\n\nexport default function ActionButtons(props) {\n const { arMainButtons, arSecondaryButtons, onButtonPress } = props;\n const classes = useStyles();\n\n function _onButtonPress(sAction: string, sButtonType: string) {\n\n onButtonPress(sAction, sButtonType);\n }\n\n return (\n <React.Fragment>\n <Divider className={classes.divider}/>\n <Grid container spacing={4} justifyContent=\"space-between\">\n <Grid item>\n <Grid container spacing={1}>\n {arSecondaryButtons.map((sButton) => (\n <Grid item key={sButton.name}>\n <Button variant=\"contained\" color=\"secondary\" onClick={() => { _onButtonPress(sButton.jsAction, \"secondary\")}} >{sButton.name}</Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n <Grid item>\n <Grid container spacing={1}>\n {arMainButtons.map((mButton) => (\n <Grid item key={mButton.name}>\n <Button variant=\"contained\" color=\"primary\" onClick={() => { _onButtonPress(mButton.jsAction, \"primary\")}} >{mButton.name}</Button>\n </Grid>\n ))}\n </Grid>\n </Grid>\n </Grid>\n\n </React.Fragment>\n\n )\n}\n\nActionButtons.propTypes = {\n arMainButtons: PropTypes.array,\n arSecondaryButtons: PropTypes.array,\n onButtonPress: PropTypes.func\n // buildName: PropTypes.string\n};\n\nActionButtons.defaultProps = {\n arMainButtons: [],\n arSecondaryButtons: []\n // buildName: null\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/infra/ActionButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { default } from './ActionButtons';"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
declare function Assignment(props: any): JSX.Element;
|
|
4
|
+
declare namespace Assignment {
|
|
5
|
+
var propTypes: {
|
|
6
|
+
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
7
|
+
getPConnect: PropTypes.Validator<(...args: any[]) => any>;
|
|
8
|
+
itemKey: PropTypes.Requireable<string>;
|
|
9
|
+
isCreateStage: PropTypes.Requireable<boolean>;
|
|
10
|
+
};
|
|
11
|
+
var defaultProps: {
|
|
12
|
+
itemKey: null;
|
|
13
|
+
isCreateStage: boolean;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export default Assignment;
|
|
17
|
+
//# sourceMappingURL=Assignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Assignment.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/Assignment/Assignment.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAUnC,iBAAwB,UAAU,CAAC,KAAK,KAAA,eAyPvC;kBAzPuB,UAAU;;;;;;;;;;;;eAAV,UAAU"}
|