From 6881ff35ec8cc27b1dc6e424f615099bf4b9bffb Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 10 Feb 2025 18:44:16 -0500 Subject: [PATCH 01/13] CASH-153: duplicate date-picker and begin styling --- .../date-picker/date-picker-2.vue | 1093 +++++++++++++++++ src/layouts/schedule/schedule.vue | 9 +- 2 files changed, 1098 insertions(+), 4 deletions(-) create mode 100644 src/digital-components/date-picker/date-picker-2.vue diff --git a/src/digital-components/date-picker/date-picker-2.vue b/src/digital-components/date-picker/date-picker-2.vue new file mode 100644 index 000000000..a1af80723 --- /dev/null +++ b/src/digital-components/date-picker/date-picker-2.vue @@ -0,0 +1,1093 @@ + + + + + diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 7800876cd..6c06cf727 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -10,6 +10,7 @@
+ selectedDate: {{ selectedDate }} - Date: Thu, 13 Feb 2025 19:33:12 -0500 Subject: [PATCH 02/13] CASH-153 - new styling --- .../date-picker/date-picker-2.vue | 92 +++++-------------- 1 file changed, 24 insertions(+), 68 deletions(-) diff --git a/src/digital-components/date-picker/date-picker-2.vue b/src/digital-components/date-picker/date-picker-2.vue index a1af80723..7a0f4e0cf 100644 --- a/src/digital-components/date-picker/date-picker-2.vue +++ b/src/digital-components/date-picker/date-picker-2.vue @@ -750,8 +750,7 @@ export default { .grid-item { text-align: center; - // margin: 10px 3px; - margin: 0; + margin: 0; font-size: 0.875rem; line-height: 1.5; @@ -810,50 +809,27 @@ export default { position: relative; display: flex; justify-content: center; - // align-items: center; - align-items: flex-start; + align-items: flex-start; outline: none; - // height: 1.5rem; - width: 100%; - height: 2.5rem; + width: 100%; opacity: 1; - transition: + transition: height ease 250ms, opacity ease 250ms; - color: $gray-500; - background-color: $gray-100; - + color: $gray-500; + background-color: $gray-100; input[type="radio"] { position: absolute; //override bootstrap height: 0; opacity: 0; - &:focus-visible + label { - box-shadow: 0 0 0 2.5px $blue; - } - - &:focus + label, - &:checked:focus + label { - box-shadow: - 0 0 0 3px #fff, - 0 0 0 5.5px #1574a1; - background-color: $blue; - color: $white; - &.current-day { - &:after { - background-color: $white; - } - .first-day { - color: $white; - } - } - } - &:checked + label { - color: $white; - background: $blue; + background: $blue-100; + border: 2px solid $blue; + border-radius: 4px; + &:after { background-color: $white; } @@ -882,29 +858,25 @@ export default { position: relative; cursor: pointer; display: flex; - flex-direction: column; + flex-direction: column; justify-content: center; align-items: center; min-width: 2.5rem; - // width: 2.5rem; - // height: 2.5rem; - min-height: 2.5rem; - width: 100%; - font-size: .75rem; - line-height: 1.2; - justify-content: flex-start; - padding: .25rem; - + height: 3rem; + width: 100%; + font-size: 0.75rem; + line-height: 1.2; + justify-content: flex-start; + padding: 0.25rem; span { - margin-top: .25rem; + margin-top: 0.25rem; &.small { font-size: 0.75rem; color: $gray-550; } } - // &:hover, &:checked { @include media-breakpoint-up(sm) { box-shadow: 0 0 0 4px transparent; @@ -930,30 +902,16 @@ export default { } &.selectable-day { - background-color: $white; + background-color: $white; label { color: $blue; - // background-color: $blue-100; - // border: 1px solid $blue; - // min-width: 2.5rem; - // width: 2.5rem; - // border-radius: 50%; - - span { - // text-underline-offset: 4px; - text-decoration: underline; - } + span { + text-decoration: underline; + } } } - // &.unavailable-day { - // label { - // color: $gray-500; - // background-color: $gray-100; - // border: none; - // pointer-events: none; - // } - // } + &.unavailable-day:not(&.sunday) { label { &::before { @@ -974,13 +932,11 @@ export default { &:after { content: ""; - margin-top: .2rem; + margin-top: 0.2rem; width: 0.25rem; height: 0.25rem; border-radius: 50%; background-color: $black; - // position: absolute; - // top: 28px; } .first-day { color: $blue; From 881ad6345824e0969f15ada65a98522a171572b4 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Thu, 13 Feb 2025 19:46:26 -0500 Subject: [PATCH 03/13] CASH-153 - cleanup and more css tweaks --- src/digital-components/date-picker/date-picker-2.vue | 6 +++--- src/layouts/schedule/schedule.vue | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/digital-components/date-picker/date-picker-2.vue b/src/digital-components/date-picker/date-picker-2.vue index 7a0f4e0cf..50ea6f0fb 100644 --- a/src/digital-components/date-picker/date-picker-2.vue +++ b/src/digital-components/date-picker/date-picker-2.vue @@ -39,7 +39,6 @@ date.dayClasses, date.isSelectable ? 'selectable-day' : '', ]"> -
- selectedDate: {{ selectedDate }} diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index e21a5037a..c4a8e4900 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -10,9 +10,9 @@ href="javascript:void(0)" class="col d-flex justify-content-between py-0"> {{ OrderDetailsText }} - {{ - getLineItemAmount(amountDue, showCoverageAsPending) - }} + + {{ getLineItemAmount(amountDue, showCoverageAsPending) }} +
@@ -48,11 +48,11 @@ v-for="(cartItem, i) in packageCartItems" :key="i" class="packaged-cart-item"> - {{ - cartItem.name - }} + + + {{ cartItem.name }} + + {{ - getLineItemAmount(cartItem.subTotal, null, cartItem.category) - }} + "> + {{ getLineItemAmount(cartItem.subTotal, null, cartItem.category) }} +
@@ -143,8 +141,10 @@ class="my-2 lh-1 applied-promo-tag" v-for="(promoCode, i) in getPromoCodeList" :key="i"> - Promo code {{ promoCode }} applied + + Promo code + {{ promoCode }} + applied
diff --git a/src/fmg-components/promo-modal-question/promo-modal-question.vue b/src/fmg-components/promo-modal-question/promo-modal-question.vue index 656aeaa38..8efad6f3e 100644 --- a/src/fmg-components/promo-modal-question/promo-modal-question.vue +++ b/src/fmg-components/promo-modal-question/promo-modal-question.vue @@ -54,8 +54,10 @@ class="mt-4 d-flex align-items-center justify-content-between" v-for="(promoCode, i) in this.getPromoCodeList()" :key="i"> - Promo code {{ promoCode }} applied + + Promo code + {{ promoCode }} + applied - Add to calendar + Add to calendar +
- + v-model="selectedCalendarOption"> + + diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 20dc16304..eb8268551 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -387,8 +387,7 @@ export default { // prettier-ignore { - const log = getQuerystringParameter(queryStrings.LOG); - if (log === "true") { + if (store.getters.applicationUser.loggingOption) { console.log("------------- quote.vue thresholds start -----------------"); console.log(new Date() + " isExternalParameter: " + isExternalParameter); console.log(new Date() + " internalThreshold: " + internalThreshold); diff --git a/src/layouts/quote/service-package-question/service-package-question.vue b/src/layouts/quote/service-package-question/service-package-question.vue index b39213267..982d03948 100644 --- a/src/layouts/quote/service-package-question/service-package-question.vue +++ b/src/layouts/quote/service-package-question/service-package-question.vue @@ -4,11 +4,12 @@ :answers="servicePackageAnswers" :groupName="groupName" buttonTypeString="servicePackageRadio" - :buttonTypeObject="servicePackageRadio" + :buttonTypeObject="hasPricingByDay() ? servicePackageRadioExperiment : servicePackageRadio" v-model="selectedPackageName" :validationRules="validationRules" :isRequired="isRequired" - :logDisplayedValuesEvent="true" /> + :logDisplayedValuesEvent="true" + :isInsuranceSelected="isInsuranceSelected" />