@microsoft/omnichannel-chat-components 1.1.18 → 1.1.19
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/cjs/assets/Icons.js +21 -42
- package/lib/cjs/common/Constants.js +17 -31
- package/lib/cjs/common/decodeComponentString.js +0 -6
- package/lib/cjs/common/encodeComponentString.js +0 -2
- package/lib/cjs/common/utils.js +22 -56
- package/lib/cjs/components/callingcontainer/CallingContainer.js +3 -18
- package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerControlProps.js +2 -5
- package/lib/cjs/components/callingcontainer/common/defaultProps/defaultCallingContainerProps.js +2 -6
- package/lib/cjs/components/callingcontainer/common/defaultStyles/customizedCallingContainerStyles.js +2 -3
- package/lib/cjs/components/callingcontainer/common/defaultStyles/defaultCallingContainerStyles.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +95 -135
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlProps.js +2 -5
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallControlPropsRtl.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultProps/defaultCurrentCallProps.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +3 -5
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/customizedCurrentCallStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/defaultCurrentCallStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +51 -78
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverrideProps.js +3 -11
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/componentOverridesControlProps.js +2 -7
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlProps.js +2 -5
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallControlPropsRtl.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultProps/defaultIncomingCallProps.js +2 -6
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/componentOverridesStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/IncomingCall/common/defaultStyles/defaultIncomingCallStyleProps.js +2 -3
- package/lib/cjs/components/callingcontainer/subcomponents/Timer/Timer.js +2 -11
- package/lib/cjs/components/chatbutton/ChatButton.js +26 -57
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonControlProps.js +2 -5
- package/lib/cjs/components/chatbutton/common/defaultProps/defaultChatButtonProps.js +2 -6
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonGeneralStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonIconContainerStyles.js +2 -5
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonNotificationBubbleStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonStyleProps.js +2 -10
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonSubTitleStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTextContainerStyles.js +2 -3
- package/lib/cjs/components/chatbutton/common/defaultStyles/defaultChatButtonTitleStyles.js +2 -3
- package/lib/cjs/components/citationpane/CitationPane.js +19 -46
- package/lib/cjs/components/citationpane/ScalingTest.js +2 -8
- package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneControlProps.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneProps.js +2 -6
- package/lib/cjs/components/citationpane/common/defaultProps/defaultCitationPaneStyleProps.js +2 -13
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +2 -5
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +2 -4
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +2 -4
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneStyles.js +2 -13
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTitleStyles.js +1 -2
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +2 -4
- package/lib/cjs/components/common/commandbutton/CommandButton.js +16 -27
- package/lib/cjs/components/common/subcomponents/CloseButton.js +2 -9
- package/lib/cjs/components/confirmationpane/ConfirmationPane.js +23 -54
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneControlProps.js +2 -5
- package/lib/cjs/components/confirmationpane/common/defaultProps/defaultConfirmationPaneProps.js +2 -6
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneCancelButtonStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneConfirmButtonStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneStyles.js +2 -10
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/confirmationpane/common/defaultStyles/defaultConfirmationPaneTitleStyles.js +2 -3
- package/lib/cjs/components/footer/Footer.js +9 -28
- package/lib/cjs/components/footer/common/defaultProps/customFooterControlProps.js +2 -6
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +2 -11
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterControlProps.js +2 -5
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterOverridesProps.js +2 -7
- package/lib/cjs/components/footer/common/defaultProps/defaultFooterProps.js +2 -6
- package/lib/cjs/components/footer/common/defaultStyles/defaultFooterStyleProps.js +2 -3
- package/lib/cjs/components/footer/subcomponents/AudioNotificationButton.js +13 -23
- package/lib/cjs/components/footer/subcomponents/DownloadTranscriptButton.js +2 -9
- package/lib/cjs/components/footer/subcomponents/EmailTranscriptButton.js +2 -9
- package/lib/cjs/components/header/Header.js +11 -29
- package/lib/cjs/components/header/common/defaultProps/azureHeaderControlProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/azureHeaderProps.js +2 -7
- package/lib/cjs/components/header/common/defaultProps/customHeaderControlProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderComponentOverrides.js +3 -13
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderControlProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/defaultHeaderProps.js +2 -6
- package/lib/cjs/components/header/common/defaultProps/overridesDefaultHeaderProps.js +2 -7
- package/lib/cjs/components/header/common/defaultStyles/advancedHeaderStyleProps.js +2 -3
- package/lib/cjs/components/header/common/defaultStyles/defaultHeaderStyleProps.js +2 -3
- package/lib/cjs/components/header/subcomponents/MinimizeButton.js +2 -9
- package/lib/cjs/components/inputvalidationpane/InputValidationPane.js +52 -89
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneControlProps.js +2 -5
- package/lib/cjs/components/inputvalidationpane/common/default/defaultProps/defaultInputValidationPaneProps.js +2 -6
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonHoveredStyles.js +1 -2
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneHeaderGroupStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInputStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonHoveredStyles.js +1 -2
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneStyles.js +2 -15
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/default/defaultStyles/defaultInputValidationPaneTitleStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneComponentOverrides.js +3 -8
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneControlProps.js +2 -5
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoProps/presetTwoInputValidationPaneProps.js +2 -7
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneCancelButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneHeaderGroupStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneInputStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneSendButtonStyles.js +2 -3
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneStyles.js +2 -9
- package/lib/cjs/components/inputvalidationpane/common/presetTwo/presetTwoStyles/presetTwoInputValidationPaneTitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/LoadingPane.js +12 -28
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneControlProps.js +2 -5
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconImageProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneIconStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSpinnerTextStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneStyles.js +2 -11
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/defaultProps/defaultStyles/defaultLoadingPaneTitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +3 -5
- package/lib/cjs/components/loadingpane/common/presetOneProps/presetOneLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +3 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconImageProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneIconStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSpinnerTextStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneStyles.js +2 -11
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetThreeProps/presetThreeStyles/presetThreeLoadingPaneTitleStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +3 -6
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneProps.js +2 -6
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneGeneralStyles.js +2 -5
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneSpinnerStyles.js +2 -3
- package/lib/cjs/components/loadingpane/common/presetTwoProps/presetTwoStyles/presetTwoLoadingPaneStyles.js +2 -11
- package/lib/cjs/components/notificationpane/NotificationPane.js +3 -15
- package/lib/cjs/components/notificationpane/subcomponents/CloseChatButton.js +2 -9
- package/lib/cjs/components/notificationpane/subcomponents/DismissButton.js +2 -9
- package/lib/cjs/components/outofofficehourspane/OOOHPane.js +5 -17
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneControlProps.js +2 -5
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneStyles.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/defaultProps/defaultStyles/defaultOOOHPaneTitleStyles.js +2 -3
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +3 -5
- package/lib/cjs/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +3 -5
- package/lib/cjs/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +3 -5
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneProps.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneGeneralStyles.js +2 -5
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneStyles.js +2 -6
- package/lib/cjs/components/outofofficehourspane/common/presetTwoProps/presetTwoStyles/presetTwoOOOHPaneTitleStyles.js +2 -3
- package/lib/cjs/components/postchatsurveypane/PostChatSurveyPane.js +4 -13
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneControlProps.js +2 -5
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultPostChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/postchatsurveypane/common/defaultProps/defaultStyles/defaultPostChatSurveyPaneStyles.js +2 -5
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +3 -5
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/postchatsurveypane/common/presetOneProps/presetOneStyles/presetOnePostChatSurveyPaneStyles.js +2 -5
- package/lib/cjs/components/prechatsurveypane/PreChatSurveyPane.js +35 -56
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneControlProps.js +2 -5
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultPreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneACContainerStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneButtonStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultichoiceInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneMultilineTextInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneStyles.js +2 -11
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneTextInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/defaultProps/defaultStyles/defaultPreChatSurveyPaneToggleInputStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +3 -5
- package/lib/cjs/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneControlProps.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreePreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneACContainerStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneButtonStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetThreeProps/presetThreeStyles/presetThreePreChatSurveyPaneStyles.js +2 -7
- package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneControlProps.js +2 -3
- package/lib/cjs/components/prechatsurveypane/common/presetTwoProps/presetTwoPreChatSurveyPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/ProactiveChatPane.js +29 -65
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/default/defaultProps/defaultProactiveChatPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyContainerStyles.js +1 -2
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneBodyTitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneCloseButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneHeaderContainerStyles.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneStyles.js +2 -15
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTextContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/default/defaultStyles/defaultProactiveChatPaneTitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneProps/presetOneProactiveChatPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneBodyTitleStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneCloseButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetOne/presetOneStyles/presetOneProactiveChatPaneStyles.js +2 -9
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeProps/presetThreeProactiveChatPaneProps.js +2 -6
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneBodyContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneCloseButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneHeaderContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetThree/presetThreeStyles/presetThreeProactiveChatPaneStyles.js +2 -11
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +4 -11
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneControlProps.js +2 -5
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneProps.js +2 -7
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneBodyContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneHeaderContainerStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStartButtonStyles.js +2 -3
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneStyles.js +2 -10
- package/lib/cjs/components/proactivechatpane/common/presetTwo/presetTwoStyles/presetTwoProactiveChatPaneTextContainerStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/ReconnectChatPane.js +33 -69
- package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneControlProps.js +2 -5
- package/lib/cjs/components/reconnectchatpane/common/default/defaultProps/defaultReconnectChatPaneProps.js +2 -6
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneContinueChatButtonStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneIconStyles.js +2 -5
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartChatButtonFocusedStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonHoveredStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStartNewChatButtonStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneStyles.js +2 -14
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneSubtitleStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneTitleStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/default/defaultStyles/defaultReconnectChatPaneWrapperStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneControlProps.js +2 -5
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeProps/presetThreeReconnectChatPaneProps.js +2 -6
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneButtonGroupStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneContinueChatButtonStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneGeneralStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneStyles.js +2 -9
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneTitleStyles.js +2 -3
- package/lib/cjs/components/reconnectchatpane/common/presetThree/presetThreeStyles/presetThreeReconnectChatPaneWrapperStyles.js +2 -3
- package/lib/cjs/index.js +1 -24
- package/lib/cjs/services/BroadcastService.js +15 -26
- package/lib/cjs/services/EventQueue.js +4 -23
- package/lib/esm/common/Constants.js +15 -17
- package/lib/esm/common/decodeComponentString.js +0 -1
- package/lib/esm/common/utils.js +22 -30
- package/lib/esm/components/callingcontainer/CallingContainer.js +0 -5
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/CurrentCall.js +86 -109
- package/lib/esm/components/callingcontainer/subcomponents/CurrentCall/common/defaultStyles/componentOverridesStyleProps.js +2 -1
- package/lib/esm/components/callingcontainer/subcomponents/IncomingCall/IncomingCall.js +41 -57
- package/lib/esm/components/callingcontainer/subcomponents/Timer/Timer.js +0 -2
- package/lib/esm/components/chatbutton/ChatButton.js +24 -37
- package/lib/esm/components/citationpane/CitationPane.js +17 -21
- package/lib/esm/components/citationpane/ScalingTest.js +1 -1
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneCloseButtonStyles.js +0 -2
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneContentStyles.js +0 -1
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneGeneralStyles.js +0 -1
- package/lib/esm/components/citationpane/common/defaultStyles/defaultCitationPaneTopCloseButtonStyles.js +0 -1
- package/lib/esm/components/common/commandbutton/CommandButton.js +14 -15
- package/lib/esm/components/common/subcomponents/CloseButton.js +0 -2
- package/lib/esm/components/confirmationpane/ConfirmationPane.js +21 -27
- package/lib/esm/components/footer/Footer.js +6 -10
- package/lib/esm/components/footer/common/defaultProps/defaultFooterComponentOverrides.js +0 -2
- package/lib/esm/components/footer/subcomponents/AudioNotificationButton.js +11 -11
- package/lib/esm/components/footer/subcomponents/DownloadTranscriptButton.js +0 -2
- package/lib/esm/components/footer/subcomponents/EmailTranscriptButton.js +0 -2
- package/lib/esm/components/header/Header.js +8 -12
- package/lib/esm/components/header/subcomponents/MinimizeButton.js +0 -2
- package/lib/esm/components/inputvalidationpane/InputValidationPane.js +50 -60
- package/lib/esm/components/loadingpane/LoadingPane.js +10 -13
- package/lib/esm/components/loadingpane/common/presetOneProps/presetOneLoadingPaneControlProps.js +2 -1
- package/lib/esm/components/loadingpane/common/presetThreeProps/presetThreeLoadingPaneControlProps.js +2 -1
- package/lib/esm/components/loadingpane/common/presetTwoProps/presetTwoLoadingPaneControlProps.js +2 -1
- package/lib/esm/components/notificationpane/NotificationPane.js +1 -5
- package/lib/esm/components/notificationpane/subcomponents/CloseChatButton.js +0 -2
- package/lib/esm/components/notificationpane/subcomponents/DismissButton.js +0 -2
- package/lib/esm/components/outofofficehourspane/OOOHPane.js +3 -6
- package/lib/esm/components/outofofficehourspane/common/presetFourProps/presetFourOOOHPaneControlProps.js +2 -1
- package/lib/esm/components/outofofficehourspane/common/presetOneProps/presetOneOOOHPaneControlProps.js +2 -1
- package/lib/esm/components/outofofficehourspane/common/presetTwoProps/presetTwoOOOHPaneControlProps.js +2 -1
- package/lib/esm/components/postchatsurveypane/PostChatSurveyPane.js +2 -4
- package/lib/esm/components/postchatsurveypane/common/presetOneProps/presetOnePostChatSurveyPaneControlProps.js +2 -1
- package/lib/esm/components/prechatsurveypane/PreChatSurveyPane.js +33 -38
- package/lib/esm/components/prechatsurveypane/common/presetOneProps/presetOnePreChatSurveyPaneControlProps.js +2 -1
- package/lib/esm/components/proactivechatpane/ProactiveChatPane.js +26 -35
- package/lib/esm/components/proactivechatpane/common/presetTwo/presetTwoProps/presetTwoProactiveChatPaneComponentOverrides.js +1 -1
- package/lib/esm/components/reconnectchatpane/ReconnectChatPane.js +31 -39
- package/lib/esm/services/BroadcastService.js +12 -13
- package/lib/esm/services/EventQueue.js +3 -20
- package/package.json +16 -14
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultHeaderProps = void 0;
|
|
7
|
-
|
|
8
7
|
var _defaultHeaderStyleProps = require("../defaultStyles/defaultHeaderStyleProps");
|
|
9
|
-
|
|
10
8
|
var _defaultHeaderControlProps = require("./defaultHeaderControlProps");
|
|
11
|
-
|
|
12
|
-
const defaultHeaderProps = {
|
|
9
|
+
const defaultHeaderProps = exports.defaultHeaderProps = {
|
|
13
10
|
controlProps: _defaultHeaderControlProps.defaultHeaderControlProps,
|
|
14
11
|
styleProps: _defaultHeaderStyleProps.defaultHeaderStyleProps
|
|
15
|
-
};
|
|
16
|
-
exports.defaultHeaderProps = defaultHeaderProps;
|
|
12
|
+
};
|
|
@@ -4,16 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.overridesDefaultHeaderProps = void 0;
|
|
7
|
-
|
|
8
7
|
var _defaultHeaderStyleProps = require("../defaultStyles/defaultHeaderStyleProps");
|
|
9
|
-
|
|
10
8
|
var _defaultHeaderComponentOverrides = require("./defaultHeaderComponentOverrides");
|
|
11
|
-
|
|
12
9
|
var _defaultHeaderControlProps = require("./defaultHeaderControlProps");
|
|
13
|
-
|
|
14
|
-
const overridesDefaultHeaderProps = {
|
|
10
|
+
const overridesDefaultHeaderProps = exports.overridesDefaultHeaderProps = {
|
|
15
11
|
componentOverrides: _defaultHeaderComponentOverrides.defaultHeaderComponentOverrides,
|
|
16
12
|
controlProps: _defaultHeaderControlProps.defaultHeaderControlProps,
|
|
17
13
|
styleProps: _defaultHeaderStyleProps.defaultHeaderStyleProps
|
|
18
|
-
};
|
|
19
|
-
exports.overridesDefaultHeaderProps = overridesDefaultHeaderProps;
|
|
14
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.advancedHeaderStyleProps = void 0;
|
|
7
|
-
const advancedHeaderStyleProps = {
|
|
7
|
+
const advancedHeaderStyleProps = exports.advancedHeaderStyleProps = {
|
|
8
8
|
generalStyleProps: {
|
|
9
9
|
background: "linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%)",
|
|
10
10
|
border: "1px solid green",
|
|
@@ -39,5 +39,4 @@ const advancedHeaderStyleProps = {
|
|
|
39
39
|
headerItemFocusStyleProps: {
|
|
40
40
|
border: "2px dotted #000"
|
|
41
41
|
}
|
|
42
|
-
};
|
|
43
|
-
exports.advancedHeaderStyleProps = advancedHeaderStyleProps;
|
|
42
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultHeaderStyleProps = void 0;
|
|
7
|
-
const defaultHeaderStyleProps = {
|
|
7
|
+
const defaultHeaderStyleProps = exports.defaultHeaderStyleProps = {
|
|
8
8
|
generalStyleProps: {
|
|
9
9
|
background: "#315fa2",
|
|
10
10
|
borderRadius: "4px 4px 0 0",
|
|
@@ -44,5 +44,4 @@ const defaultHeaderStyleProps = {
|
|
|
44
44
|
headerItemFocusStyleProps: {
|
|
45
45
|
border: "2px dotted #000"
|
|
46
46
|
}
|
|
47
|
-
};
|
|
48
|
-
exports.defaultHeaderStyleProps = defaultHeaderStyleProps;
|
|
47
|
+
};
|
|
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Constants = require("../../../common/Constants");
|
|
11
|
-
|
|
12
9
|
var _CommandButton = _interopRequireDefault(require("../../common/commandbutton/CommandButton"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
function MinimizeButton(props) {
|
|
17
12
|
const {
|
|
18
13
|
type
|
|
@@ -37,6 +32,4 @@ function MinimizeButton(props) {
|
|
|
37
32
|
customEvent: customEvent
|
|
38
33
|
});
|
|
39
34
|
}
|
|
40
|
-
|
|
41
|
-
var _default = MinimizeButton;
|
|
42
|
-
exports.default = _default;
|
|
35
|
+
var _default = exports.default = MinimizeButton;
|
|
@@ -4,52 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _Button = require("@fluentui/react/lib/Button");
|
|
9
|
-
|
|
10
8
|
var _react = require("@fluentui/react");
|
|
11
|
-
|
|
12
9
|
var _react2 = _interopRequireWildcard(require("react"));
|
|
13
|
-
|
|
14
10
|
var _BroadcastService = require("../../services/BroadcastService");
|
|
15
|
-
|
|
16
11
|
var _Constants = require("../../common/Constants");
|
|
17
|
-
|
|
18
12
|
var _decodeComponentString = require("../../common/decodeComponentString");
|
|
19
|
-
|
|
20
13
|
var _defaultInputValidationPaneButtonGroupStyles = require("./common/default/defaultStyles/defaultInputValidationPaneButtonGroupStyles");
|
|
21
|
-
|
|
22
14
|
var _defaultInputValidationPaneCancelButtonHoveredStyles = require("./common/default/defaultStyles/defaultInputValidationPaneCancelButtonHoveredStyles");
|
|
23
|
-
|
|
24
15
|
var _defaultInputValidationPaneCancelButtonStyles = require("./common/default/defaultStyles/defaultInputValidationPaneCancelButtonStyles");
|
|
25
|
-
|
|
26
16
|
var _defaultInputValidationPaneControlProps = require("./common/default/defaultProps/defaultInputValidationPaneControlProps");
|
|
27
|
-
|
|
28
17
|
var _defaultInputValidationPaneGeneralStyles = require("./common/default/defaultStyles/defaultInputValidationPaneGeneralStyles");
|
|
29
|
-
|
|
30
18
|
var _defaultInputValidationPaneHeaderGroupStyles = require("./common/default/defaultStyles/defaultInputValidationPaneHeaderGroupStyles");
|
|
31
|
-
|
|
32
19
|
var _defaultInputValidationPaneInputStyles = require("./common/default/defaultStyles/defaultInputValidationPaneInputStyles");
|
|
33
|
-
|
|
34
20
|
var _defaultInputValidationPaneInvalidInputErrorMessageStyles = require("./common/default/defaultStyles/defaultInputValidationPaneInvalidInputErrorMessageStyles");
|
|
35
|
-
|
|
36
21
|
var _defaultInputValidationPaneSendButtonHoveredStyles = require("./common/default/defaultStyles/defaultInputValidationPaneSendButtonHoveredStyles");
|
|
37
|
-
|
|
38
22
|
var _defaultInputValidationPaneSendButtonStyles = require("./common/default/defaultStyles/defaultInputValidationPaneSendButtonStyles");
|
|
39
|
-
|
|
40
23
|
var _defaultInputValidationPaneSubtitleStyles = require("./common/default/defaultStyles/defaultInputValidationPaneSubtitleStyles");
|
|
41
|
-
|
|
42
24
|
var _defaultInputValidationPaneTitleStyles = require("./common/default/defaultStyles/defaultInputValidationPaneTitleStyles");
|
|
43
|
-
|
|
44
25
|
var _utils = require("../../common/utils");
|
|
45
|
-
|
|
46
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
47
|
-
|
|
48
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
49
|
-
|
|
26
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
50
27
|
function InputValidationPane(props) {
|
|
51
|
-
var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$
|
|
52
|
-
|
|
28
|
+
var _props$controlProps, _props$styleProps, _props$styleProps2, _props$styleProps3, _props$styleProps4, _props$controlProps12, _props$styleProps5, _props$styleProps6, _props$styleProps7, _props$styleProps8, _props$styleProps9, _props$styleProps0, _props$styleProps1, _props$styleProps10, _props$styleProps11, _props$styleProps12, _props$styleProps13, _props$styleProps14, _props$controlProps13, _props$styleProps15, _props$controlProps14, _props$controlProps15, _props$styleProps16, _props$controlProps16, _props$componentOverr, _props$styleProps17, _props$controlProps17, _props$controlProps18, _props$componentOverr2, _props$styleProps18, _props$controlProps19, _props$controlProps20, _props$componentOverr3, _props$styleProps19, _props$controlProps21, _props$controlProps22, _props$controlProps23, _props$componentOverr4, _props$styleProps20, _props$controlProps24, _props$controlProps25, _props$styleProps21, _props$controlProps26, _props$componentOverr5, _props$styleProps22, _props$controlProps27, _props$controlProps28, _props$controlProps29, _props$controlProps30, _props$componentOverr6, _props$styleProps23, _props$controlProps31, _props$controlProps32, _props$controlProps33;
|
|
53
29
|
const elementId = ((_props$controlProps = props.controlProps) === null || _props$controlProps === void 0 ? void 0 : _props$controlProps.id) ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.id;
|
|
54
30
|
const [inputValue, setInputValue] = (0, _react2.useState)("");
|
|
55
31
|
const [isInitialRendering, setIsInitialRendering] = (0, _react2.useState)(true);
|
|
@@ -57,46 +33,40 @@ function InputValidationPane(props) {
|
|
|
57
33
|
const [isSendButtonEnabled, setIsSendButtonEnabled] = (0, _react2.useState)(false);
|
|
58
34
|
const isValidInput = (0, _react2.useCallback)(() => {
|
|
59
35
|
var _props$controlProps2, _props$controlProps3;
|
|
60
|
-
|
|
61
36
|
if (!((_props$controlProps2 = props.controlProps) !== null && _props$controlProps2 !== void 0 && _props$controlProps2.checkInput)) {
|
|
62
37
|
return true;
|
|
63
38
|
}
|
|
64
|
-
|
|
65
39
|
if (!inputValue) {
|
|
66
40
|
return false;
|
|
67
41
|
}
|
|
68
|
-
|
|
69
42
|
return (_props$controlProps3 = props.controlProps) === null || _props$controlProps3 === void 0 ? void 0 : _props$controlProps3.checkInput(inputValue);
|
|
70
|
-
}, [inputValue]);
|
|
43
|
+
}, [inputValue]);
|
|
71
44
|
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
46
|
const handleInputChange = (0, _react2.useCallback)(e => {
|
|
73
47
|
var _props$controlProps4, _props$controlProps5;
|
|
74
|
-
|
|
75
48
|
setInputValue(e.target.value);
|
|
76
49
|
e.target.value ? setIsSendButtonEnabled(((_props$controlProps4 = props.controlProps) === null || _props$controlProps4 === void 0 ? void 0 : _props$controlProps4.enableSendButton) || e.target.value !== "") : setIsSendButtonEnabled(((_props$controlProps5 = props.controlProps) === null || _props$controlProps5 === void 0 ? void 0 : _props$controlProps5.enableSendButton) ?? false);
|
|
77
50
|
setIsInvalidInput(false);
|
|
78
51
|
}, []);
|
|
79
52
|
const send = (0, _react2.useCallback)((controlId, suffix) => {
|
|
80
53
|
var _props$controlProps6;
|
|
81
|
-
|
|
82
54
|
if ((_props$controlProps6 = props.controlProps) !== null && _props$controlProps6 !== void 0 && _props$controlProps6.onSend) {
|
|
83
55
|
if (isValidInput()) {
|
|
84
56
|
var _props$controlProps7;
|
|
85
|
-
|
|
86
57
|
const eventName = (0, _utils.generateEventName)(controlId, "on", suffix);
|
|
87
58
|
const customEvent = {
|
|
88
59
|
eventName: eventName
|
|
89
60
|
};
|
|
90
|
-
|
|
91
61
|
_BroadcastService.BroadcastService.postMessage(customEvent);
|
|
92
|
-
|
|
93
|
-
(_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 ? void 0 : _props$controlProps7.onSend(inputValue);
|
|
62
|
+
(_props$controlProps7 = props.controlProps) === null || _props$controlProps7 === void 0 || _props$controlProps7.onSend(inputValue);
|
|
94
63
|
} else {
|
|
95
64
|
setIsInvalidInput(true);
|
|
96
65
|
}
|
|
97
66
|
}
|
|
98
|
-
}, [inputValue]);
|
|
67
|
+
}, [inputValue]);
|
|
99
68
|
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
70
|
const handleInputKeyUp = (0, _react2.useCallback)(e => {
|
|
101
71
|
if (e.code === _Constants.KeyCodes.ENTER) {
|
|
102
72
|
send(elementId + "-textField", "KeyUp");
|
|
@@ -107,10 +77,8 @@ function InputValidationPane(props) {
|
|
|
107
77
|
}, [inputValue]);
|
|
108
78
|
const cancel = (0, _react2.useCallback)((controlId, suffix) => {
|
|
109
79
|
var _props$controlProps8;
|
|
110
|
-
|
|
111
80
|
if ((_props$controlProps8 = props.controlProps) !== null && _props$controlProps8 !== void 0 && _props$controlProps8.onCancel) {
|
|
112
|
-
var _props$controlProps9, _props$
|
|
113
|
-
|
|
81
|
+
var _props$controlProps9, _props$controlProps0;
|
|
114
82
|
setInputValue("");
|
|
115
83
|
setIsInvalidInput(false);
|
|
116
84
|
setIsSendButtonEnabled(((_props$controlProps9 = props.controlProps) === null || _props$controlProps9 === void 0 ? void 0 : _props$controlProps9.enableSendButton) ?? false);
|
|
@@ -118,13 +86,12 @@ function InputValidationPane(props) {
|
|
|
118
86
|
const customEvent = {
|
|
119
87
|
eventName: eventName
|
|
120
88
|
};
|
|
121
|
-
|
|
122
89
|
_BroadcastService.BroadcastService.postMessage(customEvent);
|
|
123
|
-
|
|
124
|
-
(_props$controlProps10 = props.controlProps) === null || _props$controlProps10 === void 0 ? void 0 : _props$controlProps10.onCancel();
|
|
90
|
+
(_props$controlProps0 = props.controlProps) === null || _props$controlProps0 === void 0 || _props$controlProps0.onCancel();
|
|
125
91
|
}
|
|
126
|
-
}, []);
|
|
92
|
+
}, []);
|
|
127
93
|
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
95
|
const handleEscKeyDown = (0, _react2.useCallback)(e => {
|
|
129
96
|
if (e.code === _Constants.KeyCodes.ESCAPE) {
|
|
130
97
|
cancel(elementId, "KeyDown");
|
|
@@ -134,12 +101,10 @@ function InputValidationPane(props) {
|
|
|
134
101
|
cancel(elementId + "-cancelbutton", "Click");
|
|
135
102
|
}, []);
|
|
136
103
|
(0, _react2.useEffect)(() => {
|
|
137
|
-
var _props$
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
setIsSendButtonEnabled(((_props$controlProps13 = props.controlProps) === null || _props$controlProps13 === void 0 ? void 0 : _props$controlProps13.enableSendButton) || !isInputEmpty);
|
|
142
|
-
|
|
104
|
+
var _props$controlProps1, _props$controlProps10, _props$controlProps11;
|
|
105
|
+
setInputValue(((_props$controlProps1 = props.controlProps) === null || _props$controlProps1 === void 0 ? void 0 : _props$controlProps1.inputInitialText) ?? "");
|
|
106
|
+
const isInputEmpty = (_props$controlProps10 = props.controlProps) !== null && _props$controlProps10 !== void 0 && _props$controlProps10.inputInitialText ? false : true;
|
|
107
|
+
setIsSendButtonEnabled(((_props$controlProps11 = props.controlProps) === null || _props$controlProps11 === void 0 ? void 0 : _props$controlProps11.enableSendButton) || !isInputEmpty);
|
|
143
108
|
if (isInitialRendering) {
|
|
144
109
|
setIsInitialRendering(!isInitialRendering);
|
|
145
110
|
}
|
|
@@ -155,7 +120,7 @@ function InputValidationPane(props) {
|
|
|
155
120
|
root: Object.assign({}, _defaultInputValidationPaneSubtitleStyles.defaultInputValidationPaneSubtitleStyles, (_props$styleProps4 = props.styleProps) === null || _props$styleProps4 === void 0 ? void 0 : _props$styleProps4.subtitleStyleProps)
|
|
156
121
|
};
|
|
157
122
|
const redBorderStyles = {
|
|
158
|
-
borderColor: ((_props$
|
|
123
|
+
borderColor: ((_props$controlProps12 = props.controlProps) === null || _props$controlProps12 === void 0 ? void 0 : _props$controlProps12.inputWithErrorMessageBorderColor) ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputWithErrorMessageBorderColor,
|
|
159
124
|
borderRadius: "1px",
|
|
160
125
|
borderStyle: "solid",
|
|
161
126
|
borderWidth: "1px"
|
|
@@ -198,85 +163,83 @@ function InputValidationPane(props) {
|
|
|
198
163
|
root: Object.assign({}, _defaultInputValidationPaneInvalidInputErrorMessageStyles.defaultInputValidationPaneInvalidInputErrorMessageStyles, (_props$styleProps9 = props.styleProps) === null || _props$styleProps9 === void 0 ? void 0 : _props$styleProps9.invalidInputErrorMessageStyleProps)
|
|
199
164
|
};
|
|
200
165
|
const buttonGroupStyles = {
|
|
201
|
-
root: Object.assign({}, _defaultInputValidationPaneButtonGroupStyles.defaultInputValidationPaneButtonGroupStyles, (_props$
|
|
166
|
+
root: Object.assign({}, _defaultInputValidationPaneButtonGroupStyles.defaultInputValidationPaneButtonGroupStyles, (_props$styleProps0 = props.styleProps) === null || _props$styleProps0 === void 0 ? void 0 : _props$styleProps0.buttonGroupStyleProps)
|
|
202
167
|
};
|
|
203
168
|
const sendButtonStyles = {
|
|
204
|
-
root: Object.assign({}, _defaultInputValidationPaneSendButtonStyles.defaultInputValidationPaneSendButtonStyles, (_props$
|
|
205
|
-
rootHovered: Object.assign({}, _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles, (_props$
|
|
206
|
-
rootPressed: Object.assign({}, _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles, (_props$
|
|
169
|
+
root: Object.assign({}, _defaultInputValidationPaneSendButtonStyles.defaultInputValidationPaneSendButtonStyles, (_props$styleProps1 = props.styleProps) === null || _props$styleProps1 === void 0 ? void 0 : _props$styleProps1.sendButtonStyleProps),
|
|
170
|
+
rootHovered: Object.assign({}, _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps10 = props.styleProps) === null || _props$styleProps10 === void 0 ? void 0 : _props$styleProps10.sendButtonHoveredStyleProps),
|
|
171
|
+
rootPressed: Object.assign({}, _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles, (_props$styleProps11 = props.styleProps) === null || _props$styleProps11 === void 0 ? void 0 : _props$styleProps11.sendButtonHoveredStyleProps)
|
|
207
172
|
};
|
|
208
173
|
const cancelButtonStyles = {
|
|
209
|
-
root: Object.assign({}, _defaultInputValidationPaneCancelButtonStyles.defaultInputValidationPaneCancelButtonStyles, (_props$
|
|
210
|
-
rootHovered: Object.assign({}, _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles, (_props$
|
|
211
|
-
rootPressed: Object.assign({}, _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles, (_props$
|
|
174
|
+
root: Object.assign({}, _defaultInputValidationPaneCancelButtonStyles.defaultInputValidationPaneCancelButtonStyles, (_props$styleProps12 = props.styleProps) === null || _props$styleProps12 === void 0 ? void 0 : _props$styleProps12.cancelButtonStyleProps),
|
|
175
|
+
rootHovered: Object.assign({}, _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps13 = props.styleProps) === null || _props$styleProps13 === void 0 ? void 0 : _props$styleProps13.cancelButtonHoveredStyleProps),
|
|
176
|
+
rootPressed: Object.assign({}, _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles, (_props$styleProps14 = props.styleProps) === null || _props$styleProps14 === void 0 ? void 0 : _props$styleProps14.cancelButtonHoveredStyleProps)
|
|
212
177
|
};
|
|
213
|
-
return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, !((_props$
|
|
214
|
-
className: (_props$
|
|
178
|
+
return /*#__PURE__*/_react2.default.createElement(_react2.default.Fragment, null, !((_props$controlProps13 = props.controlProps) !== null && _props$controlProps13 !== void 0 && _props$controlProps13.hideInputValidationPane) && /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
179
|
+
className: (_props$styleProps15 = props.styleProps) === null || _props$styleProps15 === void 0 || (_props$styleProps15 = _props$styleProps15.classNames) === null || _props$styleProps15 === void 0 ? void 0 : _props$styleProps15.containerClassName,
|
|
215
180
|
id: elementId,
|
|
216
181
|
tabIndex: -1,
|
|
217
182
|
onKeyDown: handleEscKeyDown,
|
|
218
|
-
dir: ((_props$
|
|
219
|
-
"aria-label": ((_props$
|
|
183
|
+
dir: ((_props$controlProps14 = props.controlProps) === null || _props$controlProps14 === void 0 ? void 0 : _props$controlProps14.dir) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.dir,
|
|
184
|
+
"aria-label": ((_props$controlProps15 = props.controlProps) === null || _props$controlProps15 === void 0 ? void 0 : _props$controlProps15.inputValidationPaneAriaLabel) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputValidationPaneAriaLabel,
|
|
220
185
|
styles: containerStyles
|
|
221
186
|
}, /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
222
|
-
className: (_props$
|
|
187
|
+
className: (_props$styleProps16 = props.styleProps) === null || _props$styleProps16 === void 0 || (_props$styleProps16 = _props$styleProps16.classNames) === null || _props$styleProps16 === void 0 ? void 0 : _props$styleProps16.headerGroupClassName,
|
|
223
188
|
styles: headerGroupStyles,
|
|
224
189
|
tabIndex: -1,
|
|
225
190
|
id: elementId + "-headergroup"
|
|
226
|
-
}, !((_props$
|
|
227
|
-
className: (_props$
|
|
191
|
+
}, !((_props$controlProps16 = props.controlProps) !== null && _props$controlProps16 !== void 0 && _props$controlProps16.hideTitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr = props.componentOverrides) === null || _props$componentOverr === void 0 ? void 0 : _props$componentOverr.title) || /*#__PURE__*/_react2.default.createElement("h1", {
|
|
192
|
+
className: (_props$styleProps17 = props.styleProps) === null || _props$styleProps17 === void 0 || (_props$styleProps17 = _props$styleProps17.classNames) === null || _props$styleProps17 === void 0 ? void 0 : _props$styleProps17.titleClassName,
|
|
228
193
|
style: titleStyles,
|
|
229
194
|
tabIndex: -1,
|
|
230
195
|
id: elementId + "-title"
|
|
231
|
-
}, ((_props$
|
|
232
|
-
className: (_props$
|
|
196
|
+
}, ((_props$controlProps17 = props.controlProps) === null || _props$controlProps17 === void 0 ? void 0 : _props$controlProps17.titleText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.titleText)), !((_props$controlProps18 = props.controlProps) !== null && _props$controlProps18 !== void 0 && _props$controlProps18.hideSubtitle) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr2 = props.componentOverrides) === null || _props$componentOverr2 === void 0 ? void 0 : _props$componentOverr2.subtitle) || /*#__PURE__*/_react2.default.createElement(_react.Label, {
|
|
197
|
+
className: (_props$styleProps18 = props.styleProps) === null || _props$styleProps18 === void 0 || (_props$styleProps18 = _props$styleProps18.classNames) === null || _props$styleProps18 === void 0 ? void 0 : _props$styleProps18.subtitleClassName,
|
|
233
198
|
styles: subtitleStyles,
|
|
234
199
|
tabIndex: -1,
|
|
235
200
|
id: elementId + "-subtitle"
|
|
236
|
-
}, ((_props$
|
|
237
|
-
className: (_props$
|
|
201
|
+
}, ((_props$controlProps19 = props.controlProps) === null || _props$controlProps19 === void 0 ? void 0 : _props$controlProps19.subtitleText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.subtitleText)), !((_props$controlProps20 = props.controlProps) !== null && _props$controlProps20 !== void 0 && _props$controlProps20.hideInput) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr3 = props.componentOverrides) === null || _props$componentOverr3 === void 0 ? void 0 : _props$componentOverr3.input) || /*#__PURE__*/_react2.default.createElement(_react.TextField, {
|
|
202
|
+
className: (_props$styleProps19 = props.styleProps) === null || _props$styleProps19 === void 0 || (_props$styleProps19 = _props$styleProps19.classNames) === null || _props$styleProps19 === void 0 ? void 0 : _props$styleProps19.inputClassName,
|
|
238
203
|
styles: isInvalidInput ? inputWithErrorMessageStyles : inputStyles,
|
|
239
204
|
tabIndex: 0,
|
|
240
205
|
value: inputValue ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputInitialText,
|
|
241
|
-
id: ((_props$
|
|
242
|
-
ariaLabel: ((_props$
|
|
206
|
+
id: ((_props$controlProps21 = props.controlProps) === null || _props$controlProps21 === void 0 ? void 0 : _props$controlProps21.inputId) ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputId,
|
|
207
|
+
ariaLabel: ((_props$controlProps22 = props.controlProps) === null || _props$controlProps22 === void 0 ? void 0 : _props$controlProps22.inputAriaLabel) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputAriaLabel,
|
|
243
208
|
borderless: isInvalidInput,
|
|
244
209
|
onChange: handleInputChange,
|
|
245
210
|
onKeyUp: handleInputKeyUp,
|
|
246
|
-
placeholder: ((_props$
|
|
211
|
+
placeholder: ((_props$controlProps23 = props.controlProps) === null || _props$controlProps23 === void 0 ? void 0 : _props$controlProps23.inputPlaceHolder) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.inputPlaceHolder
|
|
247
212
|
})), isInvalidInput && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr4 = props.componentOverrides) === null || _props$componentOverr4 === void 0 ? void 0 : _props$componentOverr4.invalidInputErrorMessage) || /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
248
|
-
className: (_props$
|
|
213
|
+
className: (_props$styleProps20 = props.styleProps) === null || _props$styleProps20 === void 0 || (_props$styleProps20 = _props$styleProps20.classNames) === null || _props$styleProps20 === void 0 ? void 0 : _props$styleProps20.invalidInputErrorMessageClassName,
|
|
249
214
|
styles: invalidInputErrorMessageStyles,
|
|
250
215
|
tabIndex: -1,
|
|
251
216
|
role: "alert",
|
|
252
217
|
id: elementId + "-invalidinputerrormessage"
|
|
253
|
-
}, ((_props$
|
|
254
|
-
horizontal: ((_props$
|
|
255
|
-
className: (_props$
|
|
218
|
+
}, ((_props$controlProps24 = props.controlProps) === null || _props$controlProps24 === void 0 ? void 0 : _props$controlProps24.invalidInputErrorMessageText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.invalidInputErrorMessageText))), /*#__PURE__*/_react2.default.createElement(_react.Stack, {
|
|
219
|
+
horizontal: ((_props$controlProps25 = props.controlProps) === null || _props$controlProps25 === void 0 ? void 0 : _props$controlProps25.isButtonGroupHorizontal) ?? _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.isButtonGroupHorizontal,
|
|
220
|
+
className: (_props$styleProps21 = props.styleProps) === null || _props$styleProps21 === void 0 || (_props$styleProps21 = _props$styleProps21.classNames) === null || _props$styleProps21 === void 0 ? void 0 : _props$styleProps21.buttonGroupClassName,
|
|
256
221
|
styles: buttonGroupStyles,
|
|
257
222
|
tabIndex: -1,
|
|
258
223
|
id: elementId + "-buttongroup"
|
|
259
|
-
}, !((_props$
|
|
260
|
-
className: (_props$
|
|
224
|
+
}, !((_props$controlProps26 = props.controlProps) !== null && _props$controlProps26 !== void 0 && _props$controlProps26.hideSendButton) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr5 = props.componentOverrides) === null || _props$componentOverr5 === void 0 ? void 0 : _props$componentOverr5.sendButton) || /*#__PURE__*/_react2.default.createElement(_Button.PrimaryButton, {
|
|
225
|
+
className: (_props$styleProps22 = props.styleProps) === null || _props$styleProps22 === void 0 || (_props$styleProps22 = _props$styleProps22.classNames) === null || _props$styleProps22 === void 0 ? void 0 : _props$styleProps22.sendButtonClassName,
|
|
261
226
|
styles: sendButtonStyles,
|
|
262
|
-
title: ((_props$
|
|
227
|
+
title: ((_props$controlProps27 = props.controlProps) === null || _props$controlProps27 === void 0 ? void 0 : _props$controlProps27.sendButtonText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.sendButtonText,
|
|
263
228
|
tabIndex: 0,
|
|
264
229
|
disabled: !isSendButtonEnabled,
|
|
265
|
-
text: ((_props$
|
|
230
|
+
text: ((_props$controlProps28 = props.controlProps) === null || _props$controlProps28 === void 0 ? void 0 : _props$controlProps28.sendButtonText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.sendButtonText,
|
|
266
231
|
onClick: handleSendClick,
|
|
267
232
|
id: elementId + "-sendbutton",
|
|
268
|
-
ariaLabel: ((_props$
|
|
269
|
-
})), !((_props$
|
|
270
|
-
className: (_props$
|
|
233
|
+
ariaLabel: ((_props$controlProps29 = props.controlProps) === null || _props$controlProps29 === void 0 ? void 0 : _props$controlProps29.sendButtonAriaLabel) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.sendButtonAriaLabel
|
|
234
|
+
})), !((_props$controlProps30 = props.controlProps) !== null && _props$controlProps30 !== void 0 && _props$controlProps30.hideCancelButton) && ((0, _decodeComponentString.decodeComponentString)((_props$componentOverr6 = props.componentOverrides) === null || _props$componentOverr6 === void 0 ? void 0 : _props$componentOverr6.cancelButton) || /*#__PURE__*/_react2.default.createElement(_Button.DefaultButton, {
|
|
235
|
+
className: (_props$styleProps23 = props.styleProps) === null || _props$styleProps23 === void 0 || (_props$styleProps23 = _props$styleProps23.classNames) === null || _props$styleProps23 === void 0 ? void 0 : _props$styleProps23.cancelButtonClassName,
|
|
271
236
|
styles: cancelButtonStyles,
|
|
272
|
-
title: ((_props$
|
|
237
|
+
title: ((_props$controlProps31 = props.controlProps) === null || _props$controlProps31 === void 0 ? void 0 : _props$controlProps31.cancelButtonText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.cancelButtonText,
|
|
273
238
|
tabIndex: 0,
|
|
274
|
-
text: ((_props$
|
|
239
|
+
text: ((_props$controlProps32 = props.controlProps) === null || _props$controlProps32 === void 0 ? void 0 : _props$controlProps32.cancelButtonText) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.cancelButtonText,
|
|
275
240
|
onClick: handleCancelClick,
|
|
276
241
|
id: elementId + "-cancelbutton",
|
|
277
|
-
ariaLabel: ((_props$
|
|
242
|
+
ariaLabel: ((_props$controlProps33 = props.controlProps) === null || _props$controlProps33 === void 0 ? void 0 : _props$controlProps33.cancelButtonAriaLabel) || _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps.cancelButtonAriaLabel
|
|
278
243
|
})))));
|
|
279
244
|
}
|
|
280
|
-
|
|
281
|
-
var _default = InputValidationPane;
|
|
282
|
-
exports.default = _default;
|
|
245
|
+
var _default = exports.default = InputValidationPane;
|
|
@@ -4,10 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneControlProps = void 0;
|
|
7
|
-
|
|
8
7
|
var _Constants = require("../../../../../common/Constants");
|
|
9
|
-
|
|
10
|
-
const defaultInputValidationPaneControlProps = {
|
|
8
|
+
const defaultInputValidationPaneControlProps = exports.defaultInputValidationPaneControlProps = {
|
|
11
9
|
id: _Constants.Ids.DefaultInputValidationPaneId,
|
|
12
10
|
dir: "ltr",
|
|
13
11
|
hideInputValidationPane: false,
|
|
@@ -41,5 +39,4 @@ const defaultInputValidationPaneControlProps = {
|
|
|
41
39
|
checkInput: function (input) {
|
|
42
40
|
return new RegExp(_Constants.Regex.EmailRegex).test(input);
|
|
43
41
|
}
|
|
44
|
-
};
|
|
45
|
-
exports.defaultInputValidationPaneControlProps = defaultInputValidationPaneControlProps;
|
|
42
|
+
};
|
|
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneProps = void 0;
|
|
7
|
-
|
|
8
7
|
var _defaultInputValidationPaneStyles = require("../defaultStyles/defaultInputValidationPaneStyles");
|
|
9
|
-
|
|
10
8
|
var _defaultInputValidationPaneControlProps = require("./defaultInputValidationPaneControlProps");
|
|
11
|
-
|
|
12
|
-
const defaultInputValidationPaneProps = {
|
|
9
|
+
const defaultInputValidationPaneProps = exports.defaultInputValidationPaneProps = {
|
|
13
10
|
controlProps: _defaultInputValidationPaneControlProps.defaultInputValidationPaneControlProps,
|
|
14
11
|
styleProps: _defaultInputValidationPaneStyles.defaultInputValidationPaneStyles
|
|
15
|
-
};
|
|
16
|
-
exports.defaultInputValidationPaneProps = defaultInputValidationPaneProps;
|
|
12
|
+
};
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneButtonGroupStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneButtonGroupStyles = {
|
|
7
|
+
const defaultInputValidationPaneButtonGroupStyles = exports.defaultInputValidationPaneButtonGroupStyles = {
|
|
8
8
|
gap: "10px"
|
|
9
|
-
};
|
|
10
|
-
exports.defaultInputValidationPaneButtonGroupStyles = defaultInputValidationPaneButtonGroupStyles;
|
|
9
|
+
};
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneCancelButtonHoveredStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneCancelButtonHoveredStyles = {};
|
|
8
|
-
exports.defaultInputValidationPaneCancelButtonHoveredStyles = defaultInputValidationPaneCancelButtonHoveredStyles;
|
|
7
|
+
const defaultInputValidationPaneCancelButtonHoveredStyles = exports.defaultInputValidationPaneCancelButtonHoveredStyles = {};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneCancelButtonStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneCancelButtonStyles = {
|
|
7
|
+
const defaultInputValidationPaneCancelButtonStyles = exports.defaultInputValidationPaneCancelButtonStyles = {
|
|
8
8
|
border: "solid",
|
|
9
9
|
borderColor: "#e0e3e6",
|
|
10
10
|
borderWidth: "2px",
|
|
@@ -18,5 +18,4 @@ const defaultInputValidationPaneCancelButtonStyles = {
|
|
|
18
18
|
textOverflow: "ellipsis",
|
|
19
19
|
whiteSpace: "nowrap",
|
|
20
20
|
width: "80px"
|
|
21
|
-
};
|
|
22
|
-
exports.defaultInputValidationPaneCancelButtonStyles = defaultInputValidationPaneCancelButtonStyles;
|
|
21
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneGeneralStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneGeneralStyles = {
|
|
7
|
+
const defaultInputValidationPaneGeneralStyles = exports.defaultInputValidationPaneGeneralStyles = {
|
|
8
8
|
backgroundColor: "#fff",
|
|
9
9
|
borderBottomLeftRadius: "4px",
|
|
10
10
|
borderBottomRightRadius: "4px",
|
|
@@ -18,5 +18,4 @@ const defaultInputValidationPaneGeneralStyles = {
|
|
|
18
18
|
width: "100%",
|
|
19
19
|
maxHeight: "100%",
|
|
20
20
|
zIndex: "9999"
|
|
21
|
-
};
|
|
22
|
-
exports.defaultInputValidationPaneGeneralStyles = defaultInputValidationPaneGeneralStyles;
|
|
21
|
+
};
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneHeaderGroupStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneHeaderGroupStyles = {
|
|
7
|
+
const defaultInputValidationPaneHeaderGroupStyles = exports.defaultInputValidationPaneHeaderGroupStyles = {
|
|
8
8
|
marginBottom: "15px"
|
|
9
|
-
};
|
|
10
|
-
exports.defaultInputValidationPaneHeaderGroupStyles = defaultInputValidationPaneHeaderGroupStyles;
|
|
9
|
+
};
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneInputStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneInputStyles = {
|
|
7
|
+
const defaultInputValidationPaneInputStyles = exports.defaultInputValidationPaneInputStyles = {
|
|
8
8
|
boxSizing: "border-box",
|
|
9
9
|
fontFamily: "'Segoe UI', Arial, sans-serif",
|
|
10
10
|
fontSize: "16px",
|
|
11
11
|
fontWeight: "400",
|
|
12
12
|
textIndent: "10px",
|
|
13
13
|
width: "100%"
|
|
14
|
-
};
|
|
15
|
-
exports.defaultInputValidationPaneInputStyles = defaultInputValidationPaneInputStyles;
|
|
14
|
+
};
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneInvalidInputErrorMessageStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneInvalidInputErrorMessageStyles = {
|
|
7
|
+
const defaultInputValidationPaneInvalidInputErrorMessageStyles = exports.defaultInputValidationPaneInvalidInputErrorMessageStyles = {
|
|
8
8
|
color: "#a4262c",
|
|
9
9
|
fontFamily: "'Segoe UI', Arial, sans-serif",
|
|
10
10
|
fontSize: "12px",
|
|
11
11
|
height: "16px",
|
|
12
12
|
lineHeight: "16px",
|
|
13
13
|
marginTop: "4px"
|
|
14
|
-
};
|
|
15
|
-
exports.defaultInputValidationPaneInvalidInputErrorMessageStyles = defaultInputValidationPaneInvalidInputErrorMessageStyles;
|
|
14
|
+
};
|
|
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneSendButtonHoveredStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneSendButtonHoveredStyles = {};
|
|
8
|
-
exports.defaultInputValidationPaneSendButtonHoveredStyles = defaultInputValidationPaneSendButtonHoveredStyles;
|
|
7
|
+
const defaultInputValidationPaneSendButtonHoveredStyles = exports.defaultInputValidationPaneSendButtonHoveredStyles = {};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneSendButtonStyles = void 0;
|
|
7
|
-
const defaultInputValidationPaneSendButtonStyles = {
|
|
7
|
+
const defaultInputValidationPaneSendButtonStyles = exports.defaultInputValidationPaneSendButtonStyles = {
|
|
8
8
|
color: "rgb(255, 255, 255)",
|
|
9
9
|
cursor: "pointer",
|
|
10
10
|
fontFamily: "'Segoe UI', Arial, sans-serif",
|
|
@@ -14,5 +14,4 @@ const defaultInputValidationPaneSendButtonStyles = {
|
|
|
14
14
|
textOverflow: "ellipsis",
|
|
15
15
|
whiteSpace: "nowrap",
|
|
16
16
|
width: "80px"
|
|
17
|
-
};
|
|
18
|
-
exports.defaultInputValidationPaneSendButtonStyles = defaultInputValidationPaneSendButtonStyles;
|
|
17
|
+
};
|
|
@@ -4,30 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.defaultInputValidationPaneStyles = void 0;
|
|
7
|
-
|
|
8
7
|
var _defaultInputValidationPaneSubtitleStyles = require("./defaultInputValidationPaneSubtitleStyles");
|
|
9
|
-
|
|
10
8
|
var _defaultInputValidationPaneButtonGroupStyles = require("./defaultInputValidationPaneButtonGroupStyles");
|
|
11
|
-
|
|
12
9
|
var _defaultInputValidationPaneGeneralStyles = require("./defaultInputValidationPaneGeneralStyles");
|
|
13
|
-
|
|
14
10
|
var _defaultInputValidationPaneTitleStyles = require("./defaultInputValidationPaneTitleStyles");
|
|
15
|
-
|
|
16
11
|
var _defaultInputValidationPaneInputStyles = require("./defaultInputValidationPaneInputStyles");
|
|
17
|
-
|
|
18
12
|
var _defaultInputValidationPaneSendButtonStyles = require("./defaultInputValidationPaneSendButtonStyles");
|
|
19
|
-
|
|
20
13
|
var _defaultInputValidationPaneSendButtonHoveredStyles = require("./defaultInputValidationPaneSendButtonHoveredStyles");
|
|
21
|
-
|
|
22
14
|
var _defaultInputValidationPaneCancelButtonStyles = require("./defaultInputValidationPaneCancelButtonStyles");
|
|
23
|
-
|
|
24
15
|
var _defaultInputValidationPaneCancelButtonHoveredStyles = require("./defaultInputValidationPaneCancelButtonHoveredStyles");
|
|
25
|
-
|
|
26
16
|
var _defaultInputValidationPaneHeaderGroupStyles = require("./defaultInputValidationPaneHeaderGroupStyles");
|
|
27
|
-
|
|
28
17
|
var _defaultInputValidationPaneInvalidInputErrorMessageStyles = require("./defaultInputValidationPaneInvalidInputErrorMessageStyles");
|
|
29
|
-
|
|
30
|
-
const defaultInputValidationPaneStyles = {
|
|
18
|
+
const defaultInputValidationPaneStyles = exports.defaultInputValidationPaneStyles = {
|
|
31
19
|
generalStyleProps: _defaultInputValidationPaneGeneralStyles.defaultInputValidationPaneGeneralStyles,
|
|
32
20
|
headerGroupStyleProps: _defaultInputValidationPaneHeaderGroupStyles.defaultInputValidationPaneHeaderGroupStyles,
|
|
33
21
|
titleStyleProps: _defaultInputValidationPaneTitleStyles.defaultInputValidationPaneTitleStyles,
|
|
@@ -39,5 +27,4 @@ const defaultInputValidationPaneStyles = {
|
|
|
39
27
|
sendButtonHoveredStyleProps: _defaultInputValidationPaneSendButtonHoveredStyles.defaultInputValidationPaneSendButtonHoveredStyles,
|
|
40
28
|
cancelButtonStyleProps: _defaultInputValidationPaneCancelButtonStyles.defaultInputValidationPaneCancelButtonStyles,
|
|
41
29
|
cancelButtonHoveredStyleProps: _defaultInputValidationPaneCancelButtonHoveredStyles.defaultInputValidationPaneCancelButtonHoveredStyles
|
|
42
|
-
};
|
|
43
|
-
exports.defaultInputValidationPaneStyles = defaultInputValidationPaneStyles;
|
|
30
|
+
};
|