master-control 0.2.5 → 0.2.7
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/ng-package.json +7 -0
- package/package.json +12 -25
- package/src/lib/add-document/add-document.component.css +50 -0
- package/src/lib/add-document/add-document.component.html +31 -0
- package/src/lib/add-document/add-document.component.ts +17 -0
- package/src/lib/addition-button/addition-button.component.css +16 -0
- package/src/lib/addition-button/addition-button.component.html +20 -0
- package/src/lib/addition-button/addition-button.component.ts +13 -0
- package/src/lib/age-date/age-date.component.css +126 -0
- package/src/lib/age-date/age-date.component.html +82 -0
- package/src/lib/age-date/age-date.component.ts +104 -0
- package/src/lib/amount-textbox/amount-textbox.component.css +131 -0
- package/src/lib/amount-textbox/amount-textbox.component.html +69 -0
- package/src/lib/amount-textbox/amount-textbox.component.ts +53 -0
- package/src/lib/annuity-rate-logo/annuity-rate-logo.component.css +9 -0
- package/src/lib/annuity-rate-logo/annuity-rate-logo.component.html +6 -0
- package/src/lib/annuity-rate-logo/annuity-rate-logo.component.ts +13 -0
- package/src/lib/autocomplete/autocomplete.component.css +240 -0
- package/src/lib/autocomplete/autocomplete.component.html +61 -0
- package/src/lib/autocomplete/autocomplete.component.ts +85 -0
- package/src/lib/benefit-card/benefit-card.component.css +46 -0
- package/src/lib/benefit-card/benefit-card.component.html +25 -0
- package/src/lib/benefit-card/benefit-card.component.ts +13 -0
- package/src/lib/button/button.component.css +24 -0
- package/src/lib/button/button.component.html +22 -0
- package/src/lib/button/button.component.ts +16 -0
- package/src/lib/card/card.component.css +37 -0
- package/src/lib/card/card.component.html +24 -0
- package/src/lib/card/card.component.ts +13 -0
- package/src/lib/checkbox/checkbox.component.css +65 -0
- package/src/lib/checkbox/checkbox.component.html +23 -0
- package/src/lib/checkbox/checkbox.component.ts +70 -0
- package/src/lib/discount/discount.component.css +45 -0
- package/src/lib/discount/discount.component.html +51 -0
- package/src/lib/discount/discount.component.ts +14 -0
- package/src/lib/discount-v2/discount-v2.component.css +34 -0
- package/src/lib/discount-v2/discount-v2.component.html +20 -0
- package/src/lib/discount-v2/discount-v2.component.ts +14 -0
- package/src/lib/dob/dob.component.css +117 -0
- package/src/lib/dob/dob.component.html +88 -0
- package/src/lib/dob/dob.component.ts +107 -0
- package/src/lib/download-document/download-document.component.css +53 -0
- package/src/lib/download-document/download-document.component.html +38 -0
- package/src/lib/download-document/download-document.component.ts +17 -0
- package/src/lib/email-with-domain/email-with-domain.component.css +130 -0
- package/src/lib/email-with-domain/email-with-domain.component.html +73 -0
- package/src/lib/email-with-domain/email-with-domain.component.ts +51 -0
- package/src/lib/error-snackbar/error-snackbar.component.css +36 -0
- package/src/lib/error-snackbar/error-snackbar.component.html +21 -0
- package/src/lib/error-snackbar/error-snackbar.component.ts +19 -0
- package/src/lib/grey-label/grey-label.component.css +13 -0
- package/src/lib/grey-label/grey-label.component.html +7 -0
- package/src/lib/grey-label/grey-label.component.ts +13 -0
- package/src/lib/header/header.component.css +13 -0
- package/src/lib/header/header.component.html +9 -0
- package/src/lib/header/header.component.ts +14 -0
- package/src/lib/hr-line/hr-line.component.css +13 -0
- package/src/lib/hr-line/hr-line.component.html +7 -0
- package/src/lib/hr-line/hr-line.component.ts +13 -0
- package/src/lib/hyperlink/hyperlink.component.css +18 -0
- package/src/lib/hyperlink/hyperlink.component.html +8 -0
- package/src/lib/hyperlink/hyperlink.component.ts +13 -0
- package/src/lib/icon-button/icon-button.component.css +20 -0
- package/src/lib/icon-button/icon-button.component.html +17 -0
- package/src/lib/icon-button/icon-button.component.ts +13 -0
- package/src/lib/iframe/iframe.component.css +0 -0
- package/src/lib/iframe/iframe.component.html +7 -0
- package/src/lib/iframe/iframe.component.ts +32 -0
- package/src/lib/image/image.component.css +7 -0
- package/src/lib/image/image.component.html +3 -0
- package/src/lib/image/image.component.ts +13 -0
- package/src/lib/image-upload/image-upload.component.css +67 -0
- package/src/lib/image-upload/image-upload.component.html +61 -0
- package/src/lib/image-upload/image-upload.component.ts +17 -0
- package/src/lib/in-built-benefit/in-built-benefit.component.css +58 -0
- package/src/lib/in-built-benefit/in-built-benefit.component.html +30 -0
- package/src/lib/in-built-benefit/in-built-benefit.component.ts +16 -0
- package/src/lib/info/info.component.css +25 -0
- package/src/lib/info/info.component.html +21 -0
- package/src/lib/info/info.component.ts +15 -0
- package/src/lib/info-textbox/info-textbox.component.css +121 -0
- package/src/lib/info-textbox/info-textbox.component.html +83 -0
- package/src/lib/info-textbox/info-textbox.component.ts +52 -0
- package/src/lib/label/label.component.css +13 -0
- package/src/lib/label/label.component.html +7 -0
- package/src/lib/label/label.component.ts +14 -0
- package/src/lib/label-value-card/label-value-card.component.css +34 -0
- package/src/lib/label-value-card/label-value-card.component.html +12 -0
- package/src/lib/label-value-card/label-value-card.component.ts +15 -0
- package/src/lib/loader/loader.component.css +127 -0
- package/src/lib/loader/loader.component.html +37 -0
- package/src/lib/loader/loader.component.spec.ts +23 -0
- package/src/lib/loader/loader.component.ts +13 -0
- package/src/lib/master-control.component.css +0 -0
- package/src/lib/master-control.component.html +216 -0
- package/src/lib/master-control.component.spec.ts +23 -0
- package/src/lib/master-control.component.ts +143 -0
- package/src/lib/master-control.service.spec.ts +16 -0
- package/src/lib/master-control.service.ts +214 -0
- package/src/lib/medial-questions/medial-questions.component.css +52 -0
- package/src/lib/medial-questions/medial-questions.component.html +250 -0
- package/src/lib/medial-questions/medial-questions.component.ts +689 -0
- package/src/lib/medial-questions/questions.json +39682 -0
- package/src/lib/mob-number/mob-number.component.css +141 -0
- package/src/lib/mob-number/mob-number.component.html +82 -0
- package/src/lib/mob-number/mob-number.component.ts +53 -0
- package/src/lib/multiple-select/multiple-select.component.css +331 -0
- package/src/lib/multiple-select/multiple-select.component.html +100 -0
- package/src/lib/multiple-select/multiple-select.component.ts +115 -0
- package/src/lib/neutral-snackbar/neutral-snackbar.component.css +31 -0
- package/src/lib/neutral-snackbar/neutral-snackbar.component.html +21 -0
- package/src/lib/neutral-snackbar/neutral-snackbar.component.ts +19 -0
- package/src/lib/other-benefits/other-benefits.component.css +78 -0
- package/src/lib/other-benefits/other-benefits.component.html +21 -0
- package/src/lib/other-benefits/other-benefits.component.ts +13 -0
- package/src/lib/otp-mob-number/otp-mob-number.component.css +171 -0
- package/src/lib/otp-mob-number/otp-mob-number.component.html +101 -0
- package/src/lib/otp-mob-number/otp-mob-number.component.ts +54 -0
- package/src/lib/otp-textbox/otp-textbox.component.css +168 -0
- package/src/lib/otp-textbox/otp-textbox.component.html +84 -0
- package/src/lib/otp-textbox/otp-textbox.component.ts +57 -0
- package/src/lib/page-nudge/page-nudge.component.css +35 -0
- package/src/lib/page-nudge/page-nudge.component.html +13 -0
- package/src/lib/page-nudge/page-nudge.component.ts +13 -0
- package/src/lib/pay-get-card/pay-get-card.component.css +36 -0
- package/src/lib/pay-get-card/pay-get-card.component.html +20 -0
- package/src/lib/pay-get-card/pay-get-card.component.ts +18 -0
- package/src/lib/radio/radio.component.css +57 -0
- package/src/lib/radio/radio.component.html +37 -0
- package/src/lib/radio/radio.component.ts +55 -0
- package/src/lib/search-multi-select/search-multi-select.component.css +325 -0
- package/src/lib/search-multi-select/search-multi-select.component.html +125 -0
- package/src/lib/search-multi-select/search-multi-select.component.ts +164 -0
- package/src/lib/select/select.component.css +246 -0
- package/src/lib/select/select.component.html +72 -0
- package/src/lib/select/select.component.ts +95 -0
- package/src/lib/select-textbox/select-textbox.component.css +262 -0
- package/src/lib/select-textbox/select-textbox.component.html +77 -0
- package/src/lib/select-textbox/select-textbox.component.ts +72 -0
- package/src/lib/stepper/stepper.component.css +25 -0
- package/src/lib/stepper/stepper.component.html +16 -0
- package/src/lib/stepper/stepper.component.ts +20 -0
- package/src/lib/sub-header/sub-header.component.css +13 -0
- package/src/lib/sub-header/sub-header.component.html +9 -0
- package/src/lib/sub-header/sub-header.component.ts +13 -0
- package/src/lib/subscript-textbox/subscript-textbox.component.css +139 -0
- package/src/lib/subscript-textbox/subscript-textbox.component.html +85 -0
- package/src/lib/subscript-textbox/subscript-textbox.component.ts +53 -0
- package/src/lib/success-snackbar/success-snackbar.component.css +32 -0
- package/src/lib/success-snackbar/success-snackbar.component.html +21 -0
- package/src/lib/success-snackbar/success-snackbar.component.ts +19 -0
- package/src/lib/suffix-textbox/suffix-textbox.component.css +157 -0
- package/src/lib/suffix-textbox/suffix-textbox.component.html +84 -0
- package/src/lib/suffix-textbox/suffix-textbox.component.ts +54 -0
- package/src/lib/tab/tab.component.css +19 -0
- package/src/lib/tab/tab.component.html +17 -0
- package/src/lib/tab/tab.component.ts +27 -0
- package/src/lib/table/table.component.css +121 -0
- package/src/lib/table/table.component.html +41 -0
- package/src/lib/table/table.component.spec.ts +23 -0
- package/src/lib/table/table.component.ts +84 -0
- package/src/lib/tag-mob-number/tag-mob-number.component.css +167 -0
- package/src/lib/tag-mob-number/tag-mob-number.component.html +95 -0
- package/src/lib/tag-mob-number/tag-mob-number.component.ts +55 -0
- package/src/lib/textarea/textarea.component.css +34 -0
- package/src/lib/textarea/textarea.component.html +23 -0
- package/src/lib/textarea/textarea.component.ts +16 -0
- package/src/lib/textbox/textbox.component.css +118 -0
- package/src/lib/textbox/textbox.component.html +80 -0
- package/src/lib/textbox/textbox.component.ts +55 -0
- package/src/lib/textbox-with-image/textbox-with-image.component.css +118 -0
- package/src/lib/textbox-with-image/textbox-with-image.component.html +82 -0
- package/src/lib/textbox-with-image/textbox-with-image.component.ts +47 -0
- package/src/lib/textbox-with-text/textbox-with-text.component.css +124 -0
- package/src/lib/textbox-with-text/textbox-with-text.component.html +84 -0
- package/src/lib/textbox-with-text/textbox-with-text.component.ts +53 -0
- package/src/lib/textbox-with-underscore/textbox-with-underscore.component.css +121 -0
- package/src/lib/textbox-with-underscore/textbox-with-underscore.component.html +79 -0
- package/src/lib/textbox-with-underscore/textbox-with-underscore.component.ts +62 -0
- package/src/lib/toggle/toggle.component.css +101 -0
- package/src/lib/toggle/toggle.component.html +39 -0
- package/src/lib/toggle/toggle.component.ts +16 -0
- package/src/lib/toggle-button/toggle-button.component.css +87 -0
- package/src/lib/toggle-button/toggle-button.component.html +34 -0
- package/src/lib/toggle-button/toggle-button.component.ts +14 -0
- package/src/lib/underscore-mob-number/underscore-mob-number.component.css +147 -0
- package/src/lib/underscore-mob-number/underscore-mob-number.component.html +87 -0
- package/src/lib/underscore-mob-number/underscore-mob-number.component.ts +65 -0
- package/src/lib/upload/upload.component.css +81 -0
- package/src/lib/upload/upload.component.html +62 -0
- package/src/lib/upload/upload.component.ts +20 -0
- package/src/lib/warning-snackbar/warning-snackbar.component.css +29 -0
- package/src/lib/warning-snackbar/warning-snackbar.component.html +21 -0
- package/src/lib/warning-snackbar/warning-snackbar.component.ts +19 -0
- package/{public-api.d.ts → src/public-api.ts} +60 -55
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +15 -0
- package/esm2022/lib/add-document/add-document.component.mjs +0 -18
- package/esm2022/lib/addition-button/addition-button.component.mjs +0 -14
- package/esm2022/lib/age-date/age-date.component.mjs +0 -132
- package/esm2022/lib/amount-textbox/amount-textbox.component.mjs +0 -63
- package/esm2022/lib/annuity-rate-logo/annuity-rate-logo.component.mjs +0 -15
- package/esm2022/lib/autocomplete/autocomplete.component.mjs +0 -90
- package/esm2022/lib/benefit-card/benefit-card.component.mjs +0 -14
- package/esm2022/lib/button/button.component.mjs +0 -19
- package/esm2022/lib/card/card.component.mjs +0 -14
- package/esm2022/lib/checkbox/checkbox.component.mjs +0 -79
- package/esm2022/lib/discount/discount.component.mjs +0 -14
- package/esm2022/lib/discount-v2/discount-v2.component.mjs +0 -16
- package/esm2022/lib/dob/dob.component.mjs +0 -118
- package/esm2022/lib/download-document/download-document.component.mjs +0 -18
- package/esm2022/lib/email-with-domain/email-with-domain.component.mjs +0 -60
- package/esm2022/lib/error-snackbar/error-snackbar.component.mjs +0 -21
- package/esm2022/lib/grey-label/grey-label.component.mjs +0 -14
- package/esm2022/lib/header/header.component.mjs +0 -14
- package/esm2022/lib/hr-line/hr-line.component.mjs +0 -14
- package/esm2022/lib/hyperlink/hyperlink.component.mjs +0 -14
- package/esm2022/lib/icon-button/icon-button.component.mjs +0 -14
- package/esm2022/lib/iframe/iframe.component.mjs +0 -32
- package/esm2022/lib/image/image.component.mjs +0 -14
- package/esm2022/lib/image-upload/image-upload.component.mjs +0 -18
- package/esm2022/lib/in-built-benefit/in-built-benefit.component.mjs +0 -20
- package/esm2022/lib/info/info.component.mjs +0 -19
- package/esm2022/lib/info-textbox/info-textbox.component.mjs +0 -62
- package/esm2022/lib/label/label.component.mjs +0 -14
- package/esm2022/lib/label-value-card/label-value-card.component.mjs +0 -15
- package/esm2022/lib/loader/loader.component.mjs +0 -14
- package/esm2022/lib/master-control.component.mjs +0 -138
- package/esm2022/lib/master-control.service.mjs +0 -193
- package/esm2022/lib/mob-number/mob-number.component.mjs +0 -65
- package/esm2022/lib/multiple-select/multiple-select.component.mjs +0 -118
- package/esm2022/lib/neutral-snackbar/neutral-snackbar.component.mjs +0 -21
- package/esm2022/lib/other-benefits/other-benefits.component.mjs +0 -14
- package/esm2022/lib/otp-mob-number/otp-mob-number.component.mjs +0 -63
- package/esm2022/lib/otp-textbox/otp-textbox.component.mjs +0 -68
- package/esm2022/lib/pay-get-card/pay-get-card.component.mjs +0 -29
- package/esm2022/lib/radio/radio.component.mjs +0 -58
- package/esm2022/lib/search-multi-select/search-multi-select.component.mjs +0 -127
- package/esm2022/lib/select/select.component.mjs +0 -99
- package/esm2022/lib/select-textbox/select-textbox.component.mjs +0 -83
- package/esm2022/lib/stepper/stepper.component.mjs +0 -16
- package/esm2022/lib/sub-header/sub-header.component.mjs +0 -14
- package/esm2022/lib/subscript-textbox/subscript-textbox.component.mjs +0 -62
- package/esm2022/lib/success-snackbar/success-snackbar.component.mjs +0 -21
- package/esm2022/lib/suffix-textbox/suffix-textbox.component.mjs +0 -65
- package/esm2022/lib/tab/tab.component.mjs +0 -32
- package/esm2022/lib/table/table.component.mjs +0 -82
- package/esm2022/lib/tag-mob-number/tag-mob-number.component.mjs +0 -66
- package/esm2022/lib/textarea/textarea.component.mjs +0 -20
- package/esm2022/lib/textbox/textbox.component.mjs +0 -67
- package/esm2022/lib/textbox-with-image/textbox-with-image.component.mjs +0 -57
- package/esm2022/lib/textbox-with-text/textbox-with-text.component.mjs +0 -58
- package/esm2022/lib/textbox-with-underscore/textbox-with-underscore.component.mjs +0 -71
- package/esm2022/lib/toggle/toggle.component.mjs +0 -20
- package/esm2022/lib/toggle-button/toggle-button.component.mjs +0 -16
- package/esm2022/lib/underscore-mob-number/underscore-mob-number.component.mjs +0 -74
- package/esm2022/lib/upload/upload.component.mjs +0 -24
- package/esm2022/lib/warning-snackbar/warning-snackbar.component.mjs +0 -21
- package/esm2022/master-control.mjs +0 -5
- package/esm2022/public-api.mjs +0 -59
- package/fesm2022/master-control.mjs +0 -2380
- package/fesm2022/master-control.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/add-document/add-document.component.d.ts +0 -6
- package/lib/addition-button/addition-button.component.d.ts +0 -6
- package/lib/age-date/age-date.component.d.ts +0 -20
- package/lib/amount-textbox/amount-textbox.component.d.ts +0 -17
- package/lib/annuity-rate-logo/annuity-rate-logo.component.d.ts +0 -7
- package/lib/autocomplete/autocomplete.component.d.ts +0 -25
- package/lib/benefit-card/benefit-card.component.d.ts +0 -6
- package/lib/button/button.component.d.ts +0 -9
- package/lib/card/card.component.d.ts +0 -6
- package/lib/checkbox/checkbox.component.d.ts +0 -20
- package/lib/discount/discount.component.d.ts +0 -6
- package/lib/discount-v2/discount-v2.component.d.ts +0 -6
- package/lib/dob/dob.component.d.ts +0 -32
- package/lib/download-document/download-document.component.d.ts +0 -6
- package/lib/email-with-domain/email-with-domain.component.d.ts +0 -19
- package/lib/error-snackbar/error-snackbar.component.d.ts +0 -10
- package/lib/grey-label/grey-label.component.d.ts +0 -6
- package/lib/header/header.component.d.ts +0 -6
- package/lib/hr-line/hr-line.component.d.ts +0 -6
- package/lib/hyperlink/hyperlink.component.d.ts +0 -6
- package/lib/icon-button/icon-button.component.d.ts +0 -6
- package/lib/iframe/iframe.component.d.ts +0 -13
- package/lib/image/image.component.d.ts +0 -6
- package/lib/image-upload/image-upload.component.d.ts +0 -6
- package/lib/in-built-benefit/in-built-benefit.component.d.ts +0 -8
- package/lib/info/info.component.d.ts +0 -9
- package/lib/info-textbox/info-textbox.component.d.ts +0 -16
- package/lib/label/label.component.d.ts +0 -6
- package/lib/label-value-card/label-value-card.component.d.ts +0 -7
- package/lib/loader/loader.component.d.ts +0 -6
- package/lib/master-control.component.d.ts +0 -9
- package/lib/master-control.service.d.ts +0 -11
- package/lib/mob-number/mob-number.component.d.ts +0 -21
- package/lib/multiple-select/multiple-select.component.d.ts +0 -26
- package/lib/neutral-snackbar/neutral-snackbar.component.d.ts +0 -10
- package/lib/other-benefits/other-benefits.component.d.ts +0 -6
- package/lib/otp-mob-number/otp-mob-number.component.d.ts +0 -17
- package/lib/otp-textbox/otp-textbox.component.d.ts +0 -17
- package/lib/pay-get-card/pay-get-card.component.d.ts +0 -11
- package/lib/radio/radio.component.d.ts +0 -18
- package/lib/search-multi-select/search-multi-select.component.d.ts +0 -27
- package/lib/select/select.component.d.ts +0 -22
- package/lib/select-textbox/select-textbox.component.d.ts +0 -17
- package/lib/stepper/stepper.component.d.ts +0 -6
- package/lib/sub-header/sub-header.component.d.ts +0 -6
- package/lib/subscript-textbox/subscript-textbox.component.d.ts +0 -16
- package/lib/success-snackbar/success-snackbar.component.d.ts +0 -10
- package/lib/suffix-textbox/suffix-textbox.component.d.ts +0 -16
- package/lib/tab/tab.component.d.ts +0 -14
- package/lib/table/table.component.d.ts +0 -23
- package/lib/tag-mob-number/tag-mob-number.component.d.ts +0 -17
- package/lib/textarea/textarea.component.d.ts +0 -9
- package/lib/textbox/textbox.component.d.ts +0 -20
- package/lib/textbox-with-image/textbox-with-image.component.d.ts +0 -16
- package/lib/textbox-with-text/textbox-with-text.component.d.ts +0 -16
- package/lib/textbox-with-underscore/textbox-with-underscore.component.d.ts +0 -18
- package/lib/toggle/toggle.component.d.ts +0 -9
- package/lib/toggle-button/toggle-button.component.d.ts +0 -6
- package/lib/underscore-mob-number/underscore-mob-number.component.d.ts +0 -19
- package/lib/upload/upload.component.d.ts +0 -9
- package/lib/warning-snackbar/warning-snackbar.component.d.ts +0 -10
- package/master-control-0.2.5.tgz +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<label class="field-lable" *ngIf="field() && field()?.isVisible && field()?.isShowLabel"
|
|
2
|
+
>{{ field().label
|
|
3
|
+
}}<span style="color: red" *ngIf="field() && field()?.validators.isRequired"
|
|
4
|
+
>*</span
|
|
5
|
+
></label
|
|
6
|
+
>
|
|
7
|
+
<mat-form-field class="w-100" appearance="outline" [ngStyle]="{
|
|
8
|
+
'--custom-border-color': field()?.controlStyle?.borderColor ,
|
|
9
|
+
'--custom-border-width': field()?.controlStyle?.borderWidth ,
|
|
10
|
+
'--custom-border-radius': field()?.controlStyle?.borderRadius ,
|
|
11
|
+
'--custom-bg-color': field()?.controlStyle?.background ,
|
|
12
|
+
'--custom-border-color-focus': field()?.controlStyle?.focusBorderColor ,
|
|
13
|
+
'--custom-border-width-focus': field()?.controlStyle?.focusBorderWidth ,
|
|
14
|
+
'--custom-bg-color-focus': field()?.controlStyle?.focusBackground ,
|
|
15
|
+
'--custom-border-color-hover': field()?.controlStyle?.hoverBorderColor ,
|
|
16
|
+
'--custom-border-width-hover': field()?.controlStyle?.hoverBorderWidth ,
|
|
17
|
+
'--custom-border-color-error': field()?.controlStyle?.errorBorderColor ,
|
|
18
|
+
'--custom-border-width-error': field()?.controlStyle?.errorBorderWidth ,
|
|
19
|
+
'--custom-font-size': field()?.controlStyle?.fontSize ,
|
|
20
|
+
'--custom-font-weight': field()?.controlStyle?.fontWeight ,
|
|
21
|
+
'--custom-font-family': field()?.controlStyle?.fontFamily ,
|
|
22
|
+
'--custom-font-color': field()?.controlStyle?.color ,
|
|
23
|
+
'--custom-caret-color': field()?.controlStyle?.caretColor ,
|
|
24
|
+
'--custom-font-color-disabled' : field()?.controlStyle?.disableColor ,
|
|
25
|
+
'--custom-bg-color-disabled' : field()?.controlStyle?.disableBackground ,
|
|
26
|
+
}">
|
|
27
|
+
@if(reactiveFormControlobject()) {
|
|
28
|
+
<input
|
|
29
|
+
matInput
|
|
30
|
+
[type]="field()?.controlType"
|
|
31
|
+
[name]="field()?.fieldName"
|
|
32
|
+
[id]="field()?.fieldName"
|
|
33
|
+
autocomplete="none"
|
|
34
|
+
[placeholder]="field()?.placeHolder"
|
|
35
|
+
[maxLength]="field()?.validators?.maxLength"
|
|
36
|
+
[minLength]="field()?.validators?.minLength"
|
|
37
|
+
[disabled]="field()?.isDisable"
|
|
38
|
+
[required]="field()?.validators?.isRequired"
|
|
39
|
+
[pattern]="field()?.validators?.pattern"
|
|
40
|
+
(input)="onInputChange($event)"
|
|
41
|
+
(blur)="onInputBlur()"
|
|
42
|
+
[value]="inputValue"
|
|
43
|
+
[formControl]="reactiveFormControlobject()"
|
|
44
|
+
/>
|
|
45
|
+
}@else {
|
|
46
|
+
<input
|
|
47
|
+
matInput
|
|
48
|
+
[type]="field()?.controlType"
|
|
49
|
+
[name]="field()?.fieldName"
|
|
50
|
+
[id]="field()?.fieldName"
|
|
51
|
+
autocomplete="none"
|
|
52
|
+
[placeholder]="field()?.placeHolder"
|
|
53
|
+
[maxLength]="field()?.validators?.maxLength"
|
|
54
|
+
[minLength]="field()?.validators?.minLength"
|
|
55
|
+
[disabled]="field()?.isDisable"
|
|
56
|
+
[required]="field()?.validators?.isRequired"
|
|
57
|
+
[pattern]="field()?.validators?.pattern"
|
|
58
|
+
(input)="onInputChange($event)"
|
|
59
|
+
(blur)="onInputBlur()"
|
|
60
|
+
[value]="inputValue"
|
|
61
|
+
/>
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
<mat-error *ngIf="false">
|
|
65
|
+
{{ field()?.validators?.requiredMessage }}
|
|
66
|
+
</mat-error>
|
|
67
|
+
<span matPrefix class="rupee-symbol px-2">₹</span>
|
|
68
|
+
<span matSuffix class="me-2 right-amount-text"> ₹ 3.50 L </span>
|
|
69
|
+
</mat-form-field>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, input } from '@angular/core';
|
|
3
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
4
|
+
import { MatInputModule } from '@angular/material/input';
|
|
5
|
+
import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'lib-amount-textbox',
|
|
9
|
+
standalone: true,
|
|
10
|
+
imports: [
|
|
11
|
+
MatFormFieldModule,
|
|
12
|
+
CommonModule,
|
|
13
|
+
MatInputModule,
|
|
14
|
+
ReactiveFormsModule
|
|
15
|
+
],
|
|
16
|
+
templateUrl: './amount-textbox.component.html',
|
|
17
|
+
styleUrl: './amount-textbox.component.css',
|
|
18
|
+
providers: [
|
|
19
|
+
{
|
|
20
|
+
provide: NG_VALUE_ACCESSOR,
|
|
21
|
+
useExisting: AmountTextboxComponent,
|
|
22
|
+
multi: true
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
})
|
|
26
|
+
export class AmountTextboxComponent {
|
|
27
|
+
constructor(){}
|
|
28
|
+
field : any = input.required<any>();
|
|
29
|
+
inputValue: any = null;
|
|
30
|
+
reactiveFormControlobject : any = input<any>();
|
|
31
|
+
_onChange: any = (inputValue:any) => {};
|
|
32
|
+
_unTouched: any = () => {};
|
|
33
|
+
|
|
34
|
+
writeValue(obj: any): void{
|
|
35
|
+
this.inputValue=obj;
|
|
36
|
+
};
|
|
37
|
+
registerOnChange(fn: any): void{
|
|
38
|
+
this._onChange = fn;
|
|
39
|
+
};
|
|
40
|
+
registerOnTouched(fn: any): void{
|
|
41
|
+
this._unTouched = fn;
|
|
42
|
+
};
|
|
43
|
+
setDisabledState?(isDisabled: boolean): void{};
|
|
44
|
+
|
|
45
|
+
onInputChange(event: any): void {
|
|
46
|
+
this.inputValue = event.target.value;
|
|
47
|
+
this._onChange(this.inputValue);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
onInputBlur(): void {
|
|
51
|
+
this._unTouched();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, input, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-annuity-rate-logo',
|
|
5
|
+
standalone: true,
|
|
6
|
+
imports: [],
|
|
7
|
+
templateUrl: './annuity-rate-logo.component.html',
|
|
8
|
+
styleUrl: './annuity-rate-logo.component.css'
|
|
9
|
+
})
|
|
10
|
+
export class AnnuityRateLogoComponent {
|
|
11
|
+
field: any = input.required<any>();
|
|
12
|
+
@Input() ratePercent: any = '7%';
|
|
13
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
.field-lable{
|
|
2
|
+
font-size: 10px !important;
|
|
3
|
+
font-weight: 700 !important;
|
|
4
|
+
color: #444 !important;
|
|
5
|
+
margin-bottom: 0px !important;
|
|
6
|
+
}
|
|
7
|
+
.error-message{
|
|
8
|
+
color: red;
|
|
9
|
+
}
|
|
10
|
+
/* focus css for mat-form-field */
|
|
11
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
|
|
12
|
+
.mat-mdc-notch-piece {
|
|
13
|
+
border-color: var(--custom-border-color-focus, #ffbb00) !important;
|
|
14
|
+
border-width: var(--custom-border-width-focus, 1.5px) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
::ng-deep .mat-mdc-form-field {
|
|
18
|
+
background-color: var(--custom-bg-color, #ffffff) !important;
|
|
19
|
+
border-radius: var(--custom-border-radius , 7px) !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* hover css for mat-form-field */
|
|
23
|
+
|
|
24
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
25
|
+
.mdc-text-field--focused
|
|
26
|
+
):hover
|
|
27
|
+
.mdc-notched-outline
|
|
28
|
+
.mdc-notched-outline__leading {
|
|
29
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
30
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
34
|
+
.mdc-text-field--focused
|
|
35
|
+
):hover
|
|
36
|
+
.mdc-notched-outline
|
|
37
|
+
.mdc-notched-outline__notch {
|
|
38
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
39
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
43
|
+
.mdc-text-field--focused
|
|
44
|
+
):hover
|
|
45
|
+
.mdc-notched-outline
|
|
46
|
+
.mdc-notched-outline__trailing {
|
|
47
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
48
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* regular css for mat-form-field */
|
|
52
|
+
::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
53
|
+
border-color: var(--custom-border-color, #dddddd) !important;
|
|
54
|
+
border-width: var(--custom-border-width, 1.5px) !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* field css for mat-form-input-field */
|
|
58
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
|
|
59
|
+
.mdc-text-field__input {
|
|
60
|
+
caret-color: var(--custom-caret-color, #ffbb00) !important;
|
|
61
|
+
/* font-size: var(--custom-font-size, 16px) !important; */
|
|
62
|
+
font-size: 12px !important;
|
|
63
|
+
font-weight: var(--custom-font-weight, 400) !important;
|
|
64
|
+
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
65
|
+
color: var(--custom-font-color, #444444) !important;
|
|
66
|
+
}
|
|
67
|
+
/* Error state for mat-form-field */
|
|
68
|
+
::ng-deep .mat-form-field-invalid
|
|
69
|
+
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
70
|
+
border-color: var(--custom-border-color-error, red) !important;
|
|
71
|
+
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
|
|
75
|
+
background: var(--custom-bg-color-disabled, #ECECEC) !important;
|
|
76
|
+
}
|
|
77
|
+
::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
78
|
+
color : var(--custom-font-color-disabled, #999999) !important;
|
|
79
|
+
}
|
|
80
|
+
::ng-deep .mdc-label {
|
|
81
|
+
color: var(--custom-font-color, #444) !important;
|
|
82
|
+
font-size: var(--custom-font-size, 16px) !important;
|
|
83
|
+
font-weight: var(--custom-font-weight, 400) !important;
|
|
84
|
+
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
85
|
+
}
|
|
86
|
+
::placeholder {
|
|
87
|
+
color: #8f8f8f !important;
|
|
88
|
+
font-size: 12px !important;
|
|
89
|
+
}
|
|
90
|
+
::ng-deep .mat-mdc-form-field-hint-wrapper{
|
|
91
|
+
padding: 0px !important;
|
|
92
|
+
}
|
|
93
|
+
::ng-deep .mat-mdc-form-field-error-wrapper{
|
|
94
|
+
padding: 0px !important;
|
|
95
|
+
}
|
|
96
|
+
::ng-deep .mat-mdc-form-field-error{
|
|
97
|
+
color: #EE0000 !important;
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
font-weight: 500;
|
|
100
|
+
font-family: "Mulish" !important;
|
|
101
|
+
letter-spacing: 0;
|
|
102
|
+
}
|
|
103
|
+
::ng-deep .mdc-text-field--outlined {
|
|
104
|
+
--mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
|
|
105
|
+
}
|
|
106
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
107
|
+
border-color: var(--custom-border-color-error, red) !important;
|
|
108
|
+
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
112
|
+
display: none !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
::ng-deep .mat-mdc-form-field.mat-focused.mat-primary .mat-select-arrow {
|
|
116
|
+
color: #fb0;
|
|
117
|
+
}
|
|
118
|
+
::ng-deep .mat-mdc-select-arrow {
|
|
119
|
+
border-style: solid !important;
|
|
120
|
+
border-width: 0 2px 2px 0 !important;
|
|
121
|
+
border-right: 2px solid !important;
|
|
122
|
+
content: "" !important;
|
|
123
|
+
display: inline-block !important;
|
|
124
|
+
padding: 3px !important;
|
|
125
|
+
transform: rotate(45deg) !important;
|
|
126
|
+
vertical-align: middle !important;
|
|
127
|
+
width: unset !important;
|
|
128
|
+
height: unset !important;
|
|
129
|
+
color: #444 !important;
|
|
130
|
+
}
|
|
131
|
+
::ng-deep .mat-mdc-form-field.mat-focused.mat-primary .mat-mdc-select-arrow {
|
|
132
|
+
color: #fb0;
|
|
133
|
+
}
|
|
134
|
+
::ng-deep .mat-mdc-select-arrow svg {
|
|
135
|
+
display: none !important;
|
|
136
|
+
}
|
|
137
|
+
::ng-deep .cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel {
|
|
138
|
+
background: #fff !important;
|
|
139
|
+
}
|
|
140
|
+
::ng-deep div.mat-mdc-select-panel{
|
|
141
|
+
background: #fff !important;
|
|
142
|
+
}
|
|
143
|
+
::ng-deep .mat-mdc-option.mdc-list-item {
|
|
144
|
+
background: #fff !important;
|
|
145
|
+
color: #444 !important;
|
|
146
|
+
font-weight: 400;
|
|
147
|
+
}
|
|
148
|
+
::ng-deep .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
|
|
149
|
+
color: #ffbb00 !important;
|
|
150
|
+
}
|
|
151
|
+
::ng-deep .mat-mdc-option:focus.mdc-list-item{
|
|
152
|
+
background: #fffaeb !important;
|
|
153
|
+
border-left: 4px solid #fb0;
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
color: #444 !important;
|
|
156
|
+
border-radius: 3px;
|
|
157
|
+
}
|
|
158
|
+
::ng-deep .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
|
|
159
|
+
background: #fffaeb !important;
|
|
160
|
+
border-left: 4px solid #fb0;
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
color: #444 !important;
|
|
163
|
+
border-radius: 3px;
|
|
164
|
+
}
|
|
165
|
+
::ng-deep .mat-mdc-option.mdc-list-item {
|
|
166
|
+
background: var(--custom-select-option-background-color, #fff) !important;
|
|
167
|
+
color: var(--custom-select-option-font-color, #444) !important;
|
|
168
|
+
font-weight: var(--custom-select-option-font-weight, 400) !important;
|
|
169
|
+
}
|
|
170
|
+
::ng-deep .mat-mdc-option:focus.mdc-list-item {
|
|
171
|
+
background: var(--custom-select-option-background-color-focus, #fffaeb) !important;
|
|
172
|
+
color: var(--custom-select-option-font-color-focus, #444) !important;
|
|
173
|
+
font-weight: var(--custom-select-option-font-weight-focus, 600) !important;
|
|
174
|
+
border-left: var(--custom-select-option-border-left-focus, 4px solid #fb0) !important;
|
|
175
|
+
border-radius: var(--custom-select-option-border-radius-focus, 3px) !important;
|
|
176
|
+
}
|
|
177
|
+
::ng-deep .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
|
|
178
|
+
background: var(--custom-select-option-background-color-focus, #fffaeb) !important;
|
|
179
|
+
color: var(--custom-select-option-font-color-focus, #444) !important;
|
|
180
|
+
font-weight: var(--custom-select-option-font-weight-focus, 600) !important;
|
|
181
|
+
border-left: var(--custom-select-option-border-left-focus, 4px solid #fb0) !important;
|
|
182
|
+
border-radius: var(--custom-select-option-border-radius-focus, 3px) !important;
|
|
183
|
+
}
|
|
184
|
+
::ng-deep .mat-mdc-option .mdc-list-item__primary-text {
|
|
185
|
+
font-size: var(--custom-font-size, 12px) !important;
|
|
186
|
+
}
|
|
187
|
+
::ng-deep .cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel {
|
|
188
|
+
padding: 0px !important;
|
|
189
|
+
background: #fafafa !important;
|
|
190
|
+
}
|
|
191
|
+
::ng-deep .mat-mdc-form-field.mat-focused.mat-primary .mat-select-arrow {
|
|
192
|
+
color: #fb0;
|
|
193
|
+
}
|
|
194
|
+
::ng-deep .mat-mdc-option .mdc-list-item__primary-text {
|
|
195
|
+
font-size: 12px !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
::ng-deep .mat-mdc-form-field.mat-focused.mat-primary .mat-select-arrow {
|
|
199
|
+
color: #fb0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
::ng-deep .mat-mdc-select-panel-above div.mat-mdc-select-panel{
|
|
203
|
+
padding: 0px !important;
|
|
204
|
+
}
|
|
205
|
+
::ng-deep .mat-mdc-select-panel-above div.mat-mdc-select-panel{
|
|
206
|
+
padding: 0px !important
|
|
207
|
+
}
|
|
208
|
+
::ng-deep .mat-mdc-optgroup-label{
|
|
209
|
+
background: #f5f5f5;
|
|
210
|
+
color: #444;
|
|
211
|
+
font-weight: 800;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
::ng-deep .mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{
|
|
215
|
+
padding: 0px !important;
|
|
216
|
+
background: #fff !important;
|
|
217
|
+
}
|
|
218
|
+
::ng-deep .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){
|
|
219
|
+
background: #fffaeb !important;
|
|
220
|
+
border-left: 4px solid #fb0;
|
|
221
|
+
font-weight: 600 !important;
|
|
222
|
+
color: #444 !important;
|
|
223
|
+
border-radius: 3px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
::ng-deep .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text {
|
|
227
|
+
color: unset !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
::ng-deep .mat-mdc-option .mat-pseudo-checkbox-minimal {
|
|
231
|
+
display: none !important;
|
|
232
|
+
}
|
|
233
|
+
::ng-deep .mat-mdc-form-field .mat-mdc-select-placeholder {
|
|
234
|
+
color: #8f8f8f !important;
|
|
235
|
+
font-size: 12px !important;
|
|
236
|
+
vertical-align: sub;
|
|
237
|
+
}
|
|
238
|
+
* {
|
|
239
|
+
font-family: "mulish" !important;
|
|
240
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<label *ngIf="field() && field()?.isVisible && field().isShowLabel" class="field-lable">{{field()?.label}}<span style="color: red;" *ngIf="field() && field()?.validators?.isRequired">*</span></label>
|
|
2
|
+
<mat-form-field class="w-100" appearance="outline" *ngIf="field() && field()?.isVisible" [ngStyle]="{
|
|
3
|
+
'--custom-border-color': field()?.controlStyle?.borderColor ,
|
|
4
|
+
'--custom-border-width': field()?.controlStyle?.borderWidth ,
|
|
5
|
+
'--custom-border-radius': field()?.controlStyle?.borderRadius ,
|
|
6
|
+
'--custom-bg-color': field()?.controlStyle?.background ,
|
|
7
|
+
'--custom-border-color-focus': field()?.controlStyle?.focusBorderColor ,
|
|
8
|
+
'--custom-border-width-focus': field()?.controlStyle?.focusBorderWidth ,
|
|
9
|
+
'--custom-bg-color-focus': field()?.controlStyle?.focusBackground ,
|
|
10
|
+
'--custom-border-color-hover': field()?.controlStyle?.hoverBorderColor ,
|
|
11
|
+
'--custom-border-width-hover': field()?.controlStyle?.hoverBorderWidth ,
|
|
12
|
+
'--custom-border-color-error': field()?.controlStyle?.errorBorderColor ,
|
|
13
|
+
'--custom-border-width-error': field()?.controlStyle?.errorBorderWidth ,
|
|
14
|
+
'--custom-font-color-disabled' : field()?.controlStyle?.disableColor ,
|
|
15
|
+
'--custom-bg-color-disabled' : field()?.controlStyle?.disableBackground ,
|
|
16
|
+
}">
|
|
17
|
+
@if(reactiveFormControlobject()) {
|
|
18
|
+
<input
|
|
19
|
+
matInput
|
|
20
|
+
type="text"
|
|
21
|
+
[name]="field()?.fieldName"
|
|
22
|
+
[id]="field()?.fieldName"
|
|
23
|
+
[matAutocomplete]="auto"
|
|
24
|
+
(ngModelChange)="filterOptions()"
|
|
25
|
+
(focus)="filterOptions()"
|
|
26
|
+
[disabled]="field()?.isDisable"
|
|
27
|
+
[required]="field()?.validators?.isRequired"
|
|
28
|
+
[placeholder]="field()?.placeHolder"
|
|
29
|
+
[value]="inputValue"
|
|
30
|
+
[formControl]="reactiveFormControlobject()"
|
|
31
|
+
/>
|
|
32
|
+
}@else {
|
|
33
|
+
<input
|
|
34
|
+
matInput
|
|
35
|
+
type="text"
|
|
36
|
+
[name]="field()?.fieldName"
|
|
37
|
+
[id]="field()?.fieldName"
|
|
38
|
+
[matAutocomplete]="auto"
|
|
39
|
+
(ngModelChange)="filterOptions()"
|
|
40
|
+
(focus)="filterOptions()"
|
|
41
|
+
[disabled]="field()?.isDisable"
|
|
42
|
+
[required]="field()?.validators?.isRequired"
|
|
43
|
+
[placeholder]="field()?.placeHolder"
|
|
44
|
+
[value]="inputValue"
|
|
45
|
+
/>
|
|
46
|
+
}
|
|
47
|
+
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete" [displayWith]="displayFn">
|
|
48
|
+
<mat-option *ngFor="let option of filteredOptions" [value]="option.label">
|
|
49
|
+
{{ option.label }}
|
|
50
|
+
</mat-option>
|
|
51
|
+
</mat-autocomplete>
|
|
52
|
+
<mat-error>
|
|
53
|
+
{{ field().validators.requiredMessage }}
|
|
54
|
+
</mat-error>
|
|
55
|
+
</mat-form-field>
|
|
56
|
+
<div class="error-message" *ngIf="false">
|
|
57
|
+
{{ field()?.validators?.isRequiredMessage }}.
|
|
58
|
+
</div>
|
|
59
|
+
<div class="error-message" *ngIf="false">
|
|
60
|
+
{{ field()?.validators?.patternMessage }}.
|
|
61
|
+
</div>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Component, input } from '@angular/core';
|
|
2
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { MatInputModule } from '@angular/material/input';
|
|
5
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
6
|
+
import { MatOptionModule } from '@angular/material/core';
|
|
7
|
+
import { MasterControlService } from '../master-control.service';
|
|
8
|
+
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'lib-autocomplete',
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [
|
|
14
|
+
MatFormFieldModule,
|
|
15
|
+
CommonModule,
|
|
16
|
+
MatInputModule,
|
|
17
|
+
MatAutocompleteModule,
|
|
18
|
+
MatOptionModule,
|
|
19
|
+
FormsModule,
|
|
20
|
+
ReactiveFormsModule
|
|
21
|
+
],
|
|
22
|
+
templateUrl: './autocomplete.component.html',
|
|
23
|
+
styleUrl: './autocomplete.component.css',
|
|
24
|
+
providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: NG_VALUE_ACCESSOR,
|
|
27
|
+
useExisting: AutocompleteComponent,
|
|
28
|
+
multi: true
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
})
|
|
32
|
+
export class AutocompleteComponent {
|
|
33
|
+
constructor(public masterService : MasterControlService) {}
|
|
34
|
+
field: any = input.required<any>();
|
|
35
|
+
selectedOption: any = null;
|
|
36
|
+
filteredOptions:any=[];
|
|
37
|
+
inputValue: any = null;
|
|
38
|
+
reactiveFormControlobject : any = input<any>();
|
|
39
|
+
ngOnInit() {
|
|
40
|
+
this.filteredOptions = this.field().options;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
onChange: any = () => {};
|
|
44
|
+
onTouched: any = () => {};
|
|
45
|
+
|
|
46
|
+
writeValue(value: any): void {
|
|
47
|
+
this.inputValue = value;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
registerOnChange(fn: any): void {
|
|
51
|
+
this.onChange = fn;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
registerOnTouched(fn: any): void {
|
|
55
|
+
this.onTouched = fn;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
onValueChange(newValue: any): void {
|
|
59
|
+
this.inputValue = newValue;
|
|
60
|
+
this.onChange(newValue);
|
|
61
|
+
this.onTouched();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
selectionChanged(event: MatSelectChange) {
|
|
65
|
+
this.inputValue = event.value;
|
|
66
|
+
this.onChange(event.value);
|
|
67
|
+
this.onTouched();
|
|
68
|
+
}
|
|
69
|
+
setDisabledState?(isDisabled: boolean): void{};
|
|
70
|
+
|
|
71
|
+
filterOptions() {
|
|
72
|
+
if (!this.selectedOption) {
|
|
73
|
+
this.filteredOptions = this.field().options;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const filterValue = this.selectedOption.toLowerCase();
|
|
77
|
+
this.filteredOptions = this.field().options.filter((option:any) =>
|
|
78
|
+
option.label.toLowerCase().includes(filterValue)
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
displayFn(option: any) {
|
|
83
|
+
return option ? option : '';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.benefit-card{
|
|
2
|
+
max-width: 380px;
|
|
3
|
+
max-height: 92px;
|
|
4
|
+
border: 1px solid #dadada;
|
|
5
|
+
padding: 16px;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
}
|
|
8
|
+
.benefit-card{
|
|
9
|
+
max-width: var(--benefit-card-width, 380px) !important;
|
|
10
|
+
border-radius: var(--benefit-border-radius, 8px) !important;
|
|
11
|
+
border-color: var(--benefit-border-color, #dadada) !important;
|
|
12
|
+
border-width: var(--benefit-border-width, 1px) !important;
|
|
13
|
+
}
|
|
14
|
+
.b1-bold{
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
color: #444;
|
|
18
|
+
}
|
|
19
|
+
.add-card-button{
|
|
20
|
+
width: 72px;
|
|
21
|
+
max-height: 24px;
|
|
22
|
+
border-radius: 32px;
|
|
23
|
+
border: 1px solid #ffbb00;
|
|
24
|
+
padding: 0px 6px 6px 6px;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
background: #ffbb00;
|
|
28
|
+
}
|
|
29
|
+
.remove-card-button{
|
|
30
|
+
width: 84px;
|
|
31
|
+
max-height: 24px;
|
|
32
|
+
padding: 0px 6px 6px 6px;
|
|
33
|
+
border-radius: 24px;
|
|
34
|
+
border: 0.8px solid #444;
|
|
35
|
+
background: #fff;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
}
|
|
39
|
+
.b3-regular{
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
color: #444;
|
|
43
|
+
}
|
|
44
|
+
* {
|
|
45
|
+
font-family: "mulish" !important;
|
|
46
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="benefit-card"
|
|
3
|
+
*ngIf="field() && field()?.isVisible"
|
|
4
|
+
[ngStyle]="
|
|
5
|
+
{
|
|
6
|
+
'--benefit-border-width': field()?.controlStyle?.borderWidth,
|
|
7
|
+
'--benefit-card-width': field()?.controlStyle?.width ,
|
|
8
|
+
'--benefit-border-radius': field()?.controlStyle?.borderRadius ,
|
|
9
|
+
'--benefit-border-color': field()?.controlStyle?.borderColor ,
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
12
|
+
<div class="d-flex justify-content-between">
|
|
13
|
+
<span class="b1-bold" *ngIf="field()?.isShowLabel">{{ field()?.label }}</span>
|
|
14
|
+
<button class="add-card-button">+ Add</button>
|
|
15
|
+
<button class="remove-card-button" *ngIf="false">x Remove</button>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="mt-2">
|
|
18
|
+
<img
|
|
19
|
+
src="https://cdn.godigit.com/retail-life/tabler_wheelchair.png"
|
|
20
|
+
alt=""
|
|
21
|
+
/>
|
|
22
|
+
<span class="b3-regular mx-2">Policy Continuance Benefit on Death</span>
|
|
23
|
+
<img src="https://cdn.godigit.com/retail-life/info-button-lib.svg" alt="" />
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, input } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-benefit-card',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
templateUrl: './benefit-card.component.html',
|
|
9
|
+
styleUrl: './benefit-card.component.css',
|
|
10
|
+
})
|
|
11
|
+
export class BenefitCardComponent {
|
|
12
|
+
field: any = input.required<any>();
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.button{
|
|
2
|
+
height: var(--button-height, 48px) !important;
|
|
3
|
+
min-width: var(--button-width, 164px) !important;
|
|
4
|
+
background: var(--button-background, #ffbb00) !important;
|
|
5
|
+
border-width: var(--button-border-width, 0px) !important;
|
|
6
|
+
border-color: var(--button-border-color, #fb0) !important;
|
|
7
|
+
border-style: var(--button-border-style, solid) !important;
|
|
8
|
+
border-radius: var(--button-border-radius, 8px) !important;
|
|
9
|
+
font-size: var(--button-font-size, 16px) !important;
|
|
10
|
+
font-weight: var(--button-font-weight, 800) !important;
|
|
11
|
+
color: var(--button-text-color, #444) !important;;
|
|
12
|
+
max-width: fit-content;
|
|
13
|
+
}
|
|
14
|
+
.button-text{
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
gap: 4px;
|
|
18
|
+
}
|
|
19
|
+
.button-text img{
|
|
20
|
+
margin-top: 3px;
|
|
21
|
+
}
|
|
22
|
+
*{
|
|
23
|
+
font-family: 'Mulish' !important;
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<Button
|
|
2
|
+
class="button"
|
|
3
|
+
*ngIf="field() && field()?.isVisible"
|
|
4
|
+
[ngStyle]="
|
|
5
|
+
{
|
|
6
|
+
'--button-border-width': field()?.controlStyle?.borderWidth ,
|
|
7
|
+
'--button-border-color': field()?.controlStyle?.borderColor ,
|
|
8
|
+
'--button-border-style': field()?.controlStyle?.borderStyle ,
|
|
9
|
+
'--button-width': field()?.controlStyle?.width ,
|
|
10
|
+
'--button-font-size': field()?.controlStyle?.fontSize ,
|
|
11
|
+
'--button-font-weight': field()?.controlStyle?.fontWeight ,
|
|
12
|
+
'--button-background': field()?.controlStyle?.background ,
|
|
13
|
+
'--button-border-radius': field()?.controlStyle?.borderRadius ,
|
|
14
|
+
'--button-text-color': field()?.controlStyle?.color ,
|
|
15
|
+
'--button-margin': field()?.controlStyle?.margin ,
|
|
16
|
+
}"
|
|
17
|
+
>
|
|
18
|
+
<span class="button-text">
|
|
19
|
+
<img *ngIf="field()?.imageUrl" [src]='field().imageUrl'>
|
|
20
|
+
<span>{{field()?.label}}</span>
|
|
21
|
+
</span>
|
|
22
|
+
</Button>
|