From f19870cdaab345384d2f2d185ec862c449a3788f Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 7 Dec 2021 20:18:44 -0500 Subject: [PATCH 01/19] routing table init --- src/router/index.js | 11 +++++++++++ src/router/router-constants/fmgPage-values.js | 6 ++++++ src/router/router-constants/navigation-scenarios.js | 5 +++++ src/router/router-constants/routing-table.js | 13 +++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 src/router/router-constants/fmgPage-values.js create mode 100644 src/router/router-constants/navigation-scenarios.js create mode 100644 src/router/router-constants/routing-table.js diff --git a/src/router/index.js b/src/router/index.js index 2b3d566a1..d2c335ca7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,6 +70,17 @@ const router = createRouter({ routes, }); +router.navigate = (scenario, optionalQuery, optionalParams) => +{ + +} + +router.getNavigationMap = (scenario, currentRoute) => +{ + const fmgPageValue = currentRoute.query.fmgPage; + +} + // Get route information by page name. // This will reach out to the Cms and there is a 1:1 relationship between page names and route names. function GetRouteInfoFromPageName(pageName) { diff --git a/src/router/router-constants/fmgPage-values.js b/src/router/router-constants/fmgPage-values.js new file mode 100644 index 000000000..ee3031bff --- /dev/null +++ b/src/router/router-constants/fmgPage-values.js @@ -0,0 +1,6 @@ +const fmgPageValues = { + VEHICLE_YEAR: 'vehicle-year', + VEHICLE_MAKE: 'vehicle-make', +}; + +export { fmgPageValues }; \ No newline at end of file diff --git a/src/router/router-constants/navigation-scenarios.js b/src/router/router-constants/navigation-scenarios.js new file mode 100644 index 000000000..5db881eef --- /dev/null +++ b/src/router/router-constants/navigation-scenarios.js @@ -0,0 +1,5 @@ +const navigationScenarios = { + SELECTED_YEAR: 'SELECTED_YEAR', +}; + +export { navigationScenarios } ; \ No newline at end of file diff --git a/src/router/router-constants/routing-table.js b/src/router/router-constants/routing-table.js new file mode 100644 index 000000000..410665630 --- /dev/null +++ b/src/router/router-constants/routing-table.js @@ -0,0 +1,13 @@ +import { fmgPageValues } from '@/router/router-constants/fmg-page-values'; +import { navigationScenarios } from '@/router/router-constants/navigation-scenarios'; + +const routingTable = [ + { + fmgPageValue: fmgPageValues.VEHICLE_YEAR, + maps: [ + { scenario: navigationScenarios.SELECTED_YEAR, destinationFmgPageValue: fmgPageValues.VEHICLE_MAKE } + ] + } +] + +export { routingTable }; \ No newline at end of file From 1f7525abdc1c9da58ce3f44c83c78b2e9ac2e1fd Mon Sep 17 00:00:00 2001 From: bmauger Date: Wed, 8 Dec 2021 14:42:36 -0500 Subject: [PATCH 02/19] CSR-186 WIP radio button updates. --- src/common-components/radio-question/radio-question.vue | 4 +++- src/layouts/component-test/component-test.vue | 3 +++ src/ux-components/radio/radio.vue | 7 +++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/common-components/radio-question/radio-question.vue b/src/common-components/radio-question/radio-question.vue index 8e44d965c..1abf5bb0f 100644 --- a/src/common-components/radio-question/radio-question.vue +++ b/src/common-components/radio-question/radio-question.vue @@ -7,7 +7,7 @@
-

*

+

Vehicle Year

diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index 61614606a..d1b96ff23 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -81,6 +81,7 @@ groupName="demo-1" ariaLabelBy="vehicle-year" radioID="2021" + isRequired=true textPosition="text-start" loaderColor="blue" loaderPosition="right" @@ -90,6 +91,7 @@ groupName="demo-1" ariaLabelBy="vehicle-year" radioID="2020" + isRequired=true textPosition="text-start" loaderColor="blue" loaderPosition="right" @@ -99,6 +101,7 @@ groupName="demo-1" ariaLabelBy="vehicle-year" radioID="2019" + isRequired=true textPosition="text-start" loaderColor="blue" loaderPosition="right" diff --git a/src/ux-components/radio/radio.vue b/src/ux-components/radio/radio.vue index 2af1d9e38..2b4933ec1 100644 --- a/src/ux-components/radio/radio.vue +++ b/src/ux-components/radio/radio.vue @@ -7,10 +7,11 @@
- +

{{errorMessage}}

@@ -24,6 +25,8 @@ export default { props: { groupName: String, /* Required, unique for each radio button GROUP */ radioID: String, /* Required, unique for each radio button. Used for button id, label and