diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js index 6899c2aec..b5cbde3fa 100644 --- a/src/constants/error-messages.js +++ b/src/constants/error-messages.js @@ -44,6 +44,10 @@ const errorMessages = { DAMAGE_TYPES_REQUIRED: "How damage occurred is required", ZIP_CODE_REQUIRED: "Please enter your ZIP code", ZIP_CODE_FORMAT: "Zip must be 5 digits", + DATE_OF_BIRTH_REQUIRED: "Please enter your date of birth", + LOSS_TIME_REQUIRED: "Please enter your loss time", + LOSS_LOCATION_REQUIRED: "Please select your loss location", + SUBROGATION_REQUIRED: "Please make a selection", }; export { errorMessages }; diff --git a/src/constants/insurance.js b/src/constants/insurance.js index b23e1fddd..fe4d2b8f9 100644 --- a/src/constants/insurance.js +++ b/src/constants/insurance.js @@ -82,3 +82,8 @@ export function coverageTypeEnum(strCoverageType) { export const NON_MANAGED_SHOW_CLAIM_NUMBER_PARENTS = [ { name: "KentuckyFarmBureau", value: "223499" }, ]; + +export const PARENT_ACCOUNT_NUMBERS = { + STATE_FARM: "711310", + USAA: "900040", +}; \ No newline at end of file diff --git a/src/digital-components/date-picker-popup/date-picker-popup.vue b/src/digital-components/date-picker-popup/date-picker-popup.vue index 7f3e109ac..ea24197bc 100644 --- a/src/digital-components/date-picker-popup/date-picker-popup.vue +++ b/src/digital-components/date-picker-popup/date-picker-popup.vue @@ -26,7 +26,8 @@ :min-date="minDate" :max-date="maxDate" :auto-apply="autoApply" - :text-input="textInput" + :text-input="resolvedTextInput" + :hide-input-icon="textInputOnly" :prevent-min-max-navigation="preventMinMaxNavigation" :teleport="true" :aria-labels="{ input: questionText }" @@ -107,6 +108,12 @@ export default { type: Boolean, default: false, }, + // Force manual entry: text input enabled, calendar popup never opens + // and the calendar icon is hidden. + textInputOnly: { + type: Boolean, + default: false, + }, preventMinMaxNavigation: { type: Boolean, default: false, @@ -155,7 +162,7 @@ export default { questionText() { if (!this.cmsWidgetName) return ""; const text = this.getCmsContent - ? this.getCmsContent(this.cmsWidgetName, "BodyText") + ? this.getCmsContent(this.cmsWidgetName, "QuestionText") : ""; return this.addOptionalText ? `${text} (optional)` : text; }, @@ -193,6 +200,15 @@ export default { clearable: this.clearable, }; }, + // Forwarded to VueDatePicker's `text-input` prop. When `textInputOnly` + // is set, force text input on AND tell the picker never to open its + // menu (so focus/click on the input is a no-op visually). + resolvedTextInput() { + if (this.textInputOnly) { + return { enabled: true, openMenu: false }; + } + return this.textInput; + }, }, methods: { onDateChange(newValue) { diff --git a/src/fmg-components/funnel-header/funnel-header.vue b/src/fmg-components/funnel-header/funnel-header.vue index 7bfa3eef6..ac6e73bde 100644 --- a/src/fmg-components/funnel-header/funnel-header.vue +++ b/src/fmg-components/funnel-header/funnel-header.vue @@ -5,8 +5,17 @@