master-control 0.2.13 → 0.2.15
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/esm2022/lib/add-document/add-document.component.mjs +18 -0
- package/esm2022/lib/addition-button/addition-button.component.mjs +14 -0
- package/esm2022/lib/age-date/age-date.component.mjs +132 -0
- package/esm2022/lib/amount-textbox/amount-textbox.component.mjs +63 -0
- package/esm2022/lib/annuity-rate-logo/annuity-rate-logo.component.mjs +15 -0
- package/esm2022/lib/autocomplete/autocomplete.component.mjs +90 -0
- package/esm2022/lib/benefit-card/benefit-card.component.mjs +14 -0
- package/esm2022/lib/button/button.component.mjs +19 -0
- package/esm2022/lib/card/card.component.mjs +14 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +79 -0
- package/esm2022/lib/discount/discount.component.mjs +14 -0
- package/esm2022/lib/discount-v2/discount-v2.component.mjs +16 -0
- package/esm2022/lib/dob/dob.component.mjs +118 -0
- package/esm2022/lib/download-document/download-document.component.mjs +18 -0
- package/esm2022/lib/email-with-domain/email-with-domain.component.mjs +60 -0
- package/esm2022/lib/error-snackbar/error-snackbar.component.mjs +21 -0
- package/esm2022/lib/grey-label/grey-label.component.mjs +14 -0
- package/esm2022/lib/header/header.component.mjs +14 -0
- package/esm2022/lib/hr-line/hr-line.component.mjs +14 -0
- package/esm2022/lib/hyperlink/hyperlink.component.mjs +14 -0
- package/esm2022/lib/icon-button/icon-button.component.mjs +14 -0
- package/esm2022/lib/iframe/iframe.component.mjs +32 -0
- package/esm2022/lib/image/image.component.mjs +14 -0
- package/esm2022/lib/image-upload/image-upload.component.mjs +18 -0
- package/esm2022/lib/in-built-benefit/in-built-benefit.component.mjs +20 -0
- package/esm2022/lib/info/info.component.mjs +19 -0
- package/esm2022/lib/info-textbox/info-textbox.component.mjs +62 -0
- package/esm2022/lib/label/label.component.mjs +14 -0
- package/esm2022/lib/label-value-card/label-value-card.component.mjs +15 -0
- package/esm2022/lib/loader/loader.component.mjs +14 -0
- package/esm2022/lib/master-control.component.mjs +142 -0
- package/esm2022/lib/master-control.service.mjs +212 -0
- package/esm2022/lib/medial-questions/medial-questions.component.mjs +40283 -0
- package/esm2022/lib/mob-number/mob-number.component.mjs +65 -0
- package/esm2022/lib/multiple-select/multiple-select.component.mjs +119 -0
- package/esm2022/lib/neutral-snackbar/neutral-snackbar.component.mjs +21 -0
- package/esm2022/lib/other-benefits/other-benefits.component.mjs +14 -0
- package/esm2022/lib/otp-mob-number/otp-mob-number.component.mjs +63 -0
- package/esm2022/lib/otp-textbox/otp-textbox.component.mjs +68 -0
- package/esm2022/lib/page-nudge/page-nudge.component.mjs +14 -0
- package/esm2022/lib/pay-get-card/pay-get-card.component.mjs +29 -0
- package/esm2022/lib/radio/radio.component.mjs +58 -0
- package/esm2022/lib/search-multi-select/search-multi-select.component.mjs +127 -0
- package/esm2022/lib/select/select.component.mjs +99 -0
- package/esm2022/lib/select-textbox/select-textbox.component.mjs +83 -0
- package/esm2022/lib/stepper/stepper.component.mjs +25 -0
- package/esm2022/lib/sub-header/sub-header.component.mjs +14 -0
- package/esm2022/lib/subscript-textbox/subscript-textbox.component.mjs +62 -0
- package/esm2022/lib/success-snackbar/success-snackbar.component.mjs +21 -0
- package/esm2022/lib/suffix-textbox/suffix-textbox.component.mjs +65 -0
- package/esm2022/lib/tab/tab.component.mjs +32 -0
- package/esm2022/lib/table/table.component.mjs +82 -0
- package/esm2022/lib/tag-mob-number/tag-mob-number.component.mjs +66 -0
- package/esm2022/lib/textarea/textarea.component.mjs +20 -0
- package/esm2022/lib/textbox/textbox.component.mjs +67 -0
- package/esm2022/lib/textbox-with-image/textbox-with-image.component.mjs +57 -0
- package/esm2022/lib/textbox-with-text/textbox-with-text.component.mjs +58 -0
- package/esm2022/lib/textbox-with-underscore/textbox-with-underscore.component.mjs +71 -0
- package/esm2022/lib/toggle/toggle.component.mjs +20 -0
- package/esm2022/lib/toggle-button/toggle-button.component.mjs +16 -0
- package/esm2022/lib/underscore-mob-number/underscore-mob-number.component.mjs +74 -0
- package/esm2022/lib/upload/upload.component.mjs +24 -0
- package/esm2022/lib/warning-snackbar/warning-snackbar.component.mjs +21 -0
- package/esm2022/master-control.mjs +5 -0
- package/esm2022/public-api.mjs +60 -0
- package/fesm2022/master-control.mjs +42689 -0
- package/fesm2022/master-control.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/add-document/add-document.component.d.ts +6 -0
- package/lib/addition-button/addition-button.component.d.ts +6 -0
- package/lib/age-date/age-date.component.d.ts +20 -0
- package/lib/amount-textbox/amount-textbox.component.d.ts +17 -0
- package/lib/annuity-rate-logo/annuity-rate-logo.component.d.ts +7 -0
- package/lib/autocomplete/autocomplete.component.d.ts +25 -0
- package/lib/benefit-card/benefit-card.component.d.ts +6 -0
- package/lib/button/button.component.d.ts +9 -0
- package/lib/card/card.component.d.ts +6 -0
- package/lib/checkbox/checkbox.component.d.ts +20 -0
- package/lib/discount/discount.component.d.ts +6 -0
- package/lib/discount-v2/discount-v2.component.d.ts +6 -0
- package/lib/dob/dob.component.d.ts +32 -0
- package/lib/download-document/download-document.component.d.ts +6 -0
- package/lib/email-with-domain/email-with-domain.component.d.ts +19 -0
- package/lib/error-snackbar/error-snackbar.component.d.ts +10 -0
- package/lib/grey-label/grey-label.component.d.ts +6 -0
- package/lib/header/header.component.d.ts +6 -0
- package/lib/hr-line/hr-line.component.d.ts +6 -0
- package/lib/hyperlink/hyperlink.component.d.ts +6 -0
- package/lib/icon-button/icon-button.component.d.ts +6 -0
- package/lib/iframe/iframe.component.d.ts +13 -0
- package/lib/image/image.component.d.ts +6 -0
- package/lib/image-upload/image-upload.component.d.ts +6 -0
- package/lib/in-built-benefit/in-built-benefit.component.d.ts +8 -0
- package/lib/info/info.component.d.ts +9 -0
- package/lib/info-textbox/info-textbox.component.d.ts +16 -0
- package/lib/label/label.component.d.ts +6 -0
- package/lib/label-value-card/label-value-card.component.d.ts +7 -0
- package/lib/loader/loader.component.d.ts +6 -0
- package/lib/master-control.component.d.ts +9 -0
- package/lib/master-control.service.d.ts +11 -0
- package/lib/medial-questions/medial-questions.component.d.ts +63 -0
- package/lib/mob-number/mob-number.component.d.ts +21 -0
- package/lib/multiple-select/multiple-select.component.d.ts +27 -0
- package/lib/neutral-snackbar/neutral-snackbar.component.d.ts +10 -0
- package/lib/other-benefits/other-benefits.component.d.ts +6 -0
- package/lib/otp-mob-number/otp-mob-number.component.d.ts +17 -0
- package/lib/otp-textbox/otp-textbox.component.d.ts +17 -0
- package/lib/page-nudge/page-nudge.component.d.ts +6 -0
- package/lib/pay-get-card/pay-get-card.component.d.ts +11 -0
- package/lib/radio/radio.component.d.ts +18 -0
- package/lib/search-multi-select/search-multi-select.component.d.ts +27 -0
- package/lib/select/select.component.d.ts +22 -0
- package/lib/select-textbox/select-textbox.component.d.ts +17 -0
- package/lib/stepper/stepper.component.d.ts +11 -0
- package/lib/sub-header/sub-header.component.d.ts +6 -0
- package/lib/subscript-textbox/subscript-textbox.component.d.ts +16 -0
- package/lib/success-snackbar/success-snackbar.component.d.ts +10 -0
- package/lib/suffix-textbox/suffix-textbox.component.d.ts +16 -0
- package/lib/tab/tab.component.d.ts +14 -0
- package/lib/table/table.component.d.ts +23 -0
- package/lib/tag-mob-number/tag-mob-number.component.d.ts +17 -0
- package/lib/textarea/textarea.component.d.ts +9 -0
- package/lib/textbox/textbox.component.d.ts +20 -0
- package/lib/textbox-with-image/textbox-with-image.component.d.ts +16 -0
- package/lib/textbox-with-text/textbox-with-text.component.d.ts +16 -0
- package/lib/textbox-with-underscore/textbox-with-underscore.component.d.ts +18 -0
- package/lib/toggle/toggle.component.d.ts +9 -0
- package/lib/toggle-button/toggle-button.component.d.ts +6 -0
- package/lib/underscore-mob-number/underscore-mob-number.component.d.ts +19 -0
- package/lib/upload/upload.component.d.ts +9 -0
- package/lib/warning-snackbar/warning-snackbar.component.d.ts +10 -0
- package/master-control-0.2.15.tgz +0 -0
- package/package.json +25 -12
- package/{src/public-api.ts → public-api.d.ts} +56 -60
- package/ng-package.json +0 -7
- package/src/lib/add-document/add-document.component.css +0 -50
- package/src/lib/add-document/add-document.component.html +0 -31
- package/src/lib/add-document/add-document.component.ts +0 -17
- package/src/lib/addition-button/addition-button.component.css +0 -16
- package/src/lib/addition-button/addition-button.component.html +0 -20
- package/src/lib/addition-button/addition-button.component.ts +0 -13
- package/src/lib/age-date/age-date.component.css +0 -126
- package/src/lib/age-date/age-date.component.html +0 -82
- package/src/lib/age-date/age-date.component.ts +0 -104
- package/src/lib/amount-textbox/amount-textbox.component.css +0 -131
- package/src/lib/amount-textbox/amount-textbox.component.html +0 -69
- package/src/lib/amount-textbox/amount-textbox.component.ts +0 -53
- package/src/lib/annuity-rate-logo/annuity-rate-logo.component.css +0 -9
- package/src/lib/annuity-rate-logo/annuity-rate-logo.component.html +0 -6
- package/src/lib/annuity-rate-logo/annuity-rate-logo.component.ts +0 -13
- package/src/lib/autocomplete/autocomplete.component.css +0 -240
- package/src/lib/autocomplete/autocomplete.component.html +0 -61
- package/src/lib/autocomplete/autocomplete.component.ts +0 -85
- package/src/lib/benefit-card/benefit-card.component.css +0 -46
- package/src/lib/benefit-card/benefit-card.component.html +0 -25
- package/src/lib/benefit-card/benefit-card.component.ts +0 -13
- package/src/lib/button/button.component.css +0 -24
- package/src/lib/button/button.component.html +0 -22
- package/src/lib/button/button.component.ts +0 -16
- package/src/lib/card/card.component.css +0 -37
- package/src/lib/card/card.component.html +0 -24
- package/src/lib/card/card.component.ts +0 -13
- package/src/lib/checkbox/checkbox.component.css +0 -65
- package/src/lib/checkbox/checkbox.component.html +0 -23
- package/src/lib/checkbox/checkbox.component.ts +0 -70
- package/src/lib/discount/discount.component.css +0 -45
- package/src/lib/discount/discount.component.html +0 -51
- package/src/lib/discount/discount.component.ts +0 -14
- package/src/lib/discount-v2/discount-v2.component.css +0 -34
- package/src/lib/discount-v2/discount-v2.component.html +0 -20
- package/src/lib/discount-v2/discount-v2.component.ts +0 -14
- package/src/lib/dob/dob.component.css +0 -117
- package/src/lib/dob/dob.component.html +0 -88
- package/src/lib/dob/dob.component.ts +0 -107
- package/src/lib/download-document/download-document.component.css +0 -53
- package/src/lib/download-document/download-document.component.html +0 -38
- package/src/lib/download-document/download-document.component.ts +0 -17
- package/src/lib/email-with-domain/email-with-domain.component.css +0 -130
- package/src/lib/email-with-domain/email-with-domain.component.html +0 -73
- package/src/lib/email-with-domain/email-with-domain.component.ts +0 -51
- package/src/lib/error-snackbar/error-snackbar.component.css +0 -36
- package/src/lib/error-snackbar/error-snackbar.component.html +0 -21
- package/src/lib/error-snackbar/error-snackbar.component.ts +0 -19
- package/src/lib/grey-label/grey-label.component.css +0 -13
- package/src/lib/grey-label/grey-label.component.html +0 -7
- package/src/lib/grey-label/grey-label.component.ts +0 -13
- package/src/lib/header/header.component.css +0 -13
- package/src/lib/header/header.component.html +0 -9
- package/src/lib/header/header.component.ts +0 -14
- package/src/lib/hr-line/hr-line.component.css +0 -13
- package/src/lib/hr-line/hr-line.component.html +0 -7
- package/src/lib/hr-line/hr-line.component.ts +0 -13
- package/src/lib/hyperlink/hyperlink.component.css +0 -18
- package/src/lib/hyperlink/hyperlink.component.html +0 -8
- package/src/lib/hyperlink/hyperlink.component.ts +0 -13
- package/src/lib/icon-button/icon-button.component.css +0 -20
- package/src/lib/icon-button/icon-button.component.html +0 -17
- package/src/lib/icon-button/icon-button.component.ts +0 -13
- package/src/lib/iframe/iframe.component.css +0 -0
- package/src/lib/iframe/iframe.component.html +0 -7
- package/src/lib/iframe/iframe.component.ts +0 -32
- package/src/lib/image/image.component.css +0 -7
- package/src/lib/image/image.component.html +0 -3
- package/src/lib/image/image.component.ts +0 -13
- package/src/lib/image-upload/image-upload.component.css +0 -67
- package/src/lib/image-upload/image-upload.component.html +0 -61
- package/src/lib/image-upload/image-upload.component.ts +0 -17
- package/src/lib/in-built-benefit/in-built-benefit.component.css +0 -58
- package/src/lib/in-built-benefit/in-built-benefit.component.html +0 -30
- package/src/lib/in-built-benefit/in-built-benefit.component.ts +0 -16
- package/src/lib/info/info.component.css +0 -25
- package/src/lib/info/info.component.html +0 -21
- package/src/lib/info/info.component.ts +0 -15
- package/src/lib/info-textbox/info-textbox.component.css +0 -121
- package/src/lib/info-textbox/info-textbox.component.html +0 -83
- package/src/lib/info-textbox/info-textbox.component.ts +0 -52
- package/src/lib/label/label.component.css +0 -13
- package/src/lib/label/label.component.html +0 -7
- package/src/lib/label/label.component.ts +0 -14
- package/src/lib/label-value-card/label-value-card.component.css +0 -34
- package/src/lib/label-value-card/label-value-card.component.html +0 -12
- package/src/lib/label-value-card/label-value-card.component.ts +0 -15
- package/src/lib/loader/loader.component.css +0 -127
- package/src/lib/loader/loader.component.html +0 -37
- package/src/lib/loader/loader.component.spec.ts +0 -23
- package/src/lib/loader/loader.component.ts +0 -13
- package/src/lib/master-control.component.css +0 -0
- package/src/lib/master-control.component.html +0 -216
- package/src/lib/master-control.component.spec.ts +0 -23
- package/src/lib/master-control.component.ts +0 -143
- package/src/lib/master-control.service.spec.ts +0 -16
- package/src/lib/master-control.service.ts +0 -214
- package/src/lib/medial-questions/medial-questions.component.css +0 -52
- package/src/lib/medial-questions/medial-questions.component.html +0 -250
- package/src/lib/medial-questions/medial-questions.component.ts +0 -40371
- package/src/lib/medial-questions/questions.json +0 -39682
- package/src/lib/mob-number/mob-number.component.css +0 -141
- package/src/lib/mob-number/mob-number.component.html +0 -82
- package/src/lib/mob-number/mob-number.component.ts +0 -53
- package/src/lib/multiple-select/multiple-select.component.css +0 -331
- package/src/lib/multiple-select/multiple-select.component.html +0 -100
- package/src/lib/multiple-select/multiple-select.component.ts +0 -115
- package/src/lib/neutral-snackbar/neutral-snackbar.component.css +0 -31
- package/src/lib/neutral-snackbar/neutral-snackbar.component.html +0 -21
- package/src/lib/neutral-snackbar/neutral-snackbar.component.ts +0 -19
- package/src/lib/other-benefits/other-benefits.component.css +0 -78
- package/src/lib/other-benefits/other-benefits.component.html +0 -21
- package/src/lib/other-benefits/other-benefits.component.ts +0 -13
- package/src/lib/otp-mob-number/otp-mob-number.component.css +0 -171
- package/src/lib/otp-mob-number/otp-mob-number.component.html +0 -101
- package/src/lib/otp-mob-number/otp-mob-number.component.ts +0 -54
- package/src/lib/otp-textbox/otp-textbox.component.css +0 -168
- package/src/lib/otp-textbox/otp-textbox.component.html +0 -84
- package/src/lib/otp-textbox/otp-textbox.component.ts +0 -57
- package/src/lib/page-nudge/page-nudge.component.css +0 -35
- package/src/lib/page-nudge/page-nudge.component.html +0 -13
- package/src/lib/page-nudge/page-nudge.component.ts +0 -13
- package/src/lib/pay-get-card/pay-get-card.component.css +0 -36
- package/src/lib/pay-get-card/pay-get-card.component.html +0 -20
- package/src/lib/pay-get-card/pay-get-card.component.ts +0 -18
- package/src/lib/radio/radio.component.css +0 -57
- package/src/lib/radio/radio.component.html +0 -37
- package/src/lib/radio/radio.component.ts +0 -55
- package/src/lib/search-multi-select/search-multi-select.component.css +0 -325
- package/src/lib/search-multi-select/search-multi-select.component.html +0 -125
- package/src/lib/search-multi-select/search-multi-select.component.ts +0 -164
- package/src/lib/select/select.component.css +0 -246
- package/src/lib/select/select.component.html +0 -72
- package/src/lib/select/select.component.ts +0 -95
- package/src/lib/select-textbox/select-textbox.component.css +0 -262
- package/src/lib/select-textbox/select-textbox.component.html +0 -77
- package/src/lib/select-textbox/select-textbox.component.ts +0 -72
- package/src/lib/stepper/stepper.component.css +0 -25
- package/src/lib/stepper/stepper.component.html +0 -16
- package/src/lib/stepper/stepper.component.ts +0 -20
- package/src/lib/sub-header/sub-header.component.css +0 -13
- package/src/lib/sub-header/sub-header.component.html +0 -9
- package/src/lib/sub-header/sub-header.component.ts +0 -13
- package/src/lib/subscript-textbox/subscript-textbox.component.css +0 -139
- package/src/lib/subscript-textbox/subscript-textbox.component.html +0 -85
- package/src/lib/subscript-textbox/subscript-textbox.component.ts +0 -53
- package/src/lib/success-snackbar/success-snackbar.component.css +0 -32
- package/src/lib/success-snackbar/success-snackbar.component.html +0 -21
- package/src/lib/success-snackbar/success-snackbar.component.ts +0 -19
- package/src/lib/suffix-textbox/suffix-textbox.component.css +0 -157
- package/src/lib/suffix-textbox/suffix-textbox.component.html +0 -84
- package/src/lib/suffix-textbox/suffix-textbox.component.ts +0 -54
- package/src/lib/tab/tab.component.css +0 -19
- package/src/lib/tab/tab.component.html +0 -17
- package/src/lib/tab/tab.component.ts +0 -27
- package/src/lib/table/table.component.css +0 -121
- package/src/lib/table/table.component.html +0 -41
- package/src/lib/table/table.component.spec.ts +0 -23
- package/src/lib/table/table.component.ts +0 -84
- package/src/lib/tag-mob-number/tag-mob-number.component.css +0 -167
- package/src/lib/tag-mob-number/tag-mob-number.component.html +0 -95
- package/src/lib/tag-mob-number/tag-mob-number.component.ts +0 -55
- package/src/lib/textarea/textarea.component.css +0 -34
- package/src/lib/textarea/textarea.component.html +0 -23
- package/src/lib/textarea/textarea.component.ts +0 -16
- package/src/lib/textbox/textbox.component.css +0 -118
- package/src/lib/textbox/textbox.component.html +0 -80
- package/src/lib/textbox/textbox.component.ts +0 -55
- package/src/lib/textbox-with-image/textbox-with-image.component.css +0 -118
- package/src/lib/textbox-with-image/textbox-with-image.component.html +0 -82
- package/src/lib/textbox-with-image/textbox-with-image.component.ts +0 -47
- package/src/lib/textbox-with-text/textbox-with-text.component.css +0 -124
- package/src/lib/textbox-with-text/textbox-with-text.component.html +0 -84
- package/src/lib/textbox-with-text/textbox-with-text.component.ts +0 -53
- package/src/lib/textbox-with-underscore/textbox-with-underscore.component.css +0 -121
- package/src/lib/textbox-with-underscore/textbox-with-underscore.component.html +0 -79
- package/src/lib/textbox-with-underscore/textbox-with-underscore.component.ts +0 -62
- package/src/lib/toggle/toggle.component.css +0 -101
- package/src/lib/toggle/toggle.component.html +0 -39
- package/src/lib/toggle/toggle.component.ts +0 -16
- package/src/lib/toggle-button/toggle-button.component.css +0 -87
- package/src/lib/toggle-button/toggle-button.component.html +0 -34
- package/src/lib/toggle-button/toggle-button.component.ts +0 -14
- package/src/lib/underscore-mob-number/underscore-mob-number.component.css +0 -147
- package/src/lib/underscore-mob-number/underscore-mob-number.component.html +0 -87
- package/src/lib/underscore-mob-number/underscore-mob-number.component.ts +0 -65
- package/src/lib/upload/upload.component.css +0 -81
- package/src/lib/upload/upload.component.html +0 -62
- package/src/lib/upload/upload.component.ts +0 -20
- package/src/lib/warning-snackbar/warning-snackbar.component.css +0 -29
- package/src/lib/warning-snackbar/warning-snackbar.component.html +0 -21
- package/src/lib/warning-snackbar/warning-snackbar.component.ts +0 -19
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,118 +0,0 @@
|
|
|
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
|
-
|
|
11
|
-
* {
|
|
12
|
-
font-family: "mulish" !important;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* focus css for mat-form-field */
|
|
16
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
|
|
17
|
-
.mat-mdc-notch-piece {
|
|
18
|
-
border-color: var(--custom-border-color-focus, #ffbb00) !important;
|
|
19
|
-
border-width: var(--custom-border-width-focus, 1.5px) !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
::ng-deep .mat-mdc-form-field {
|
|
23
|
-
background-color: var(--custom-bg-color, #ffffff) !important;
|
|
24
|
-
border-radius: var(--custom-border-radius , 7px) !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* hover css for mat-form-field */
|
|
28
|
-
|
|
29
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
30
|
-
.mdc-text-field--focused
|
|
31
|
-
):hover
|
|
32
|
-
.mdc-notched-outline
|
|
33
|
-
.mdc-notched-outline__leading {
|
|
34
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
35
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
39
|
-
.mdc-text-field--focused
|
|
40
|
-
):hover
|
|
41
|
-
.mdc-notched-outline
|
|
42
|
-
.mdc-notched-outline__notch {
|
|
43
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
44
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
48
|
-
.mdc-text-field--focused
|
|
49
|
-
):hover
|
|
50
|
-
.mdc-notched-outline
|
|
51
|
-
.mdc-notched-outline__trailing {
|
|
52
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
53
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* regular css for mat-form-field */
|
|
57
|
-
::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
58
|
-
border-color: var(--custom-border-color, #dddddd) !important;
|
|
59
|
-
border-width: var(--custom-border-width, 1.5px) !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* field css for mat-form-input-field */
|
|
63
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
|
|
64
|
-
.mdc-text-field__input {
|
|
65
|
-
caret-color: var(--custom-caret-color, #ffbb00) !important;
|
|
66
|
-
/* font-size: var(--custom-font-size, 16px) !important; */
|
|
67
|
-
font-size: 12px !important;
|
|
68
|
-
font-weight: var(--custom-font-weight, 400) !important;
|
|
69
|
-
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
70
|
-
color: var(--custom-font-color, #444444) !important;
|
|
71
|
-
}
|
|
72
|
-
/* Error state for mat-form-field */
|
|
73
|
-
::ng-deep .mat-form-field-invalid
|
|
74
|
-
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
75
|
-
border-color: var(--custom-border-color-error, red) !important;
|
|
76
|
-
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
|
|
80
|
-
background: var(--custom-bg-color-disabled, #ECECEC) !important;
|
|
81
|
-
}
|
|
82
|
-
::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
83
|
-
color : var(--custom-font-color-disabled, #999999) !important;
|
|
84
|
-
}
|
|
85
|
-
::ng-deep .mdc-label {
|
|
86
|
-
color: var(--custom-font-color, #444) !important;
|
|
87
|
-
font-size: var(--custom-font-size, 16px) !important;
|
|
88
|
-
font-weight: var(--custom-font-weight, 400) !important;
|
|
89
|
-
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
90
|
-
}
|
|
91
|
-
::placeholder {
|
|
92
|
-
color: #8f8f8f !important;
|
|
93
|
-
font-size: 12px !important;
|
|
94
|
-
}
|
|
95
|
-
::ng-deep .mat-mdc-form-field-hint-wrapper{
|
|
96
|
-
padding: 0px !important;
|
|
97
|
-
}
|
|
98
|
-
::ng-deep .mat-mdc-form-field-error-wrapper{
|
|
99
|
-
padding: 0px !important;
|
|
100
|
-
}
|
|
101
|
-
::ng-deep .mat-mdc-form-field-error{
|
|
102
|
-
color: #EE0000 !important;
|
|
103
|
-
font-size: 12px;
|
|
104
|
-
font-weight: 500;
|
|
105
|
-
font-family: "Mulish" !important;
|
|
106
|
-
letter-spacing: 0;
|
|
107
|
-
}
|
|
108
|
-
::ng-deep .mdc-text-field--outlined {
|
|
109
|
-
--mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
|
|
110
|
-
}
|
|
111
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
112
|
-
border-color: var(--custom-border-color-error, red) !important;
|
|
113
|
-
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
117
|
-
display: none !important;
|
|
118
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
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
|
|
8
|
-
class="w-100"
|
|
9
|
-
appearance="outline"
|
|
10
|
-
*ngIf="field() && field()?.isVisible"
|
|
11
|
-
[ngStyle]="{
|
|
12
|
-
'--custom-border-color': field()?.controlStyle?.borderColor ,
|
|
13
|
-
'--custom-border-width': field()?.controlStyle?.borderWidth ,
|
|
14
|
-
'--custom-border-radius': field()?.controlStyle?.borderRadius ,
|
|
15
|
-
'--custom-bg-color': field()?.controlStyle?.background ,
|
|
16
|
-
'--custom-border-color-focus': field()?.controlStyle?.focusBorderColor ,
|
|
17
|
-
'--custom-border-width-focus': field()?.controlStyle?.focusBorderWidth ,
|
|
18
|
-
'--custom-bg-color-focus': field()?.controlStyle?.focusBackground ,
|
|
19
|
-
'--custom-border-color-hover': field()?.controlStyle?.hoverBorderColor ,
|
|
20
|
-
'--custom-border-width-hover': field()?.controlStyle?.hoverBorderWidth ,
|
|
21
|
-
'--custom-border-color-error': field()?.controlStyle?.errorBorderColor ,
|
|
22
|
-
'--custom-border-width-error': field()?.controlStyle?.errorBorderWidth ,
|
|
23
|
-
'--custom-font-size': field()?.controlStyle?.fontSize ,
|
|
24
|
-
'--custom-font-weight': field()?.controlStyle?.fontWeight ,
|
|
25
|
-
'--custom-font-family': field()?.controlStyle?.fontFamily ,
|
|
26
|
-
'--custom-font-color': field()?.controlStyle?.color ,
|
|
27
|
-
'--custom-caret-color': field()?.controlStyle?.caretColor ,
|
|
28
|
-
'--custom-font-color-disabled' : field()?.controlStyle?.disableColor ,
|
|
29
|
-
'--custom-bg-color-disabled' : field()?.controlStyle?.disableBackground ,
|
|
30
|
-
}"
|
|
31
|
-
>
|
|
32
|
-
@if(reactiveFormControlobject()) {
|
|
33
|
-
<input
|
|
34
|
-
matInput
|
|
35
|
-
autocomplete="none"
|
|
36
|
-
[type]="field()?.controlType"
|
|
37
|
-
[name]="field()?.fieldName"
|
|
38
|
-
[id]="field()?.fieldName"
|
|
39
|
-
[placeholder]="field()?.placeHolder"
|
|
40
|
-
[maxLength]="field()?.validators?.maxLength"
|
|
41
|
-
[minLength]="field()?.validators?.minLength"
|
|
42
|
-
[disabled]="field()?.isDisable"
|
|
43
|
-
[required]="field()?.validators?.isRequired"
|
|
44
|
-
[pattern]="field()?.validators?.pattern"
|
|
45
|
-
(input)="onInputChange($event)"
|
|
46
|
-
(blur)="onInputBlur()"
|
|
47
|
-
[value]="inputValue"
|
|
48
|
-
[formControl]="reactiveFormControlobject()"
|
|
49
|
-
/>
|
|
50
|
-
}@else {
|
|
51
|
-
<input
|
|
52
|
-
matInput
|
|
53
|
-
autocomplete="none"
|
|
54
|
-
[type]="field()?.controlType"
|
|
55
|
-
[name]="field()?.fieldName"
|
|
56
|
-
[id]="field()?.fieldName"
|
|
57
|
-
[placeholder]="field()?.placeHolder"
|
|
58
|
-
[maxLength]="field()?.validators?.maxLength"
|
|
59
|
-
[minLength]="field()?.validators?.minLength"
|
|
60
|
-
[disabled]="field()?.isDisable"
|
|
61
|
-
[required]="field()?.validators?.isRequired"
|
|
62
|
-
[pattern]="field()?.validators?.pattern"
|
|
63
|
-
(input)="onInputChange($event)"
|
|
64
|
-
(blur)="onInputBlur()"
|
|
65
|
-
[value]="inputValue"
|
|
66
|
-
/>
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
<span matSuffix class="mx-3">
|
|
70
|
-
<img *ngIf="field()?.imageUrl" [src]='field().imageUrl' alt="" />
|
|
71
|
-
<!-- "https://cdn.godigit.com/retail-life/location.svg" -->
|
|
72
|
-
</span>
|
|
73
|
-
<mat-error *ngIf="false">
|
|
74
|
-
{{ field()?.validators?.isRequiredMessage }}
|
|
75
|
-
</mat-error>
|
|
76
|
-
</mat-form-field>
|
|
77
|
-
<div class="error-message" *ngIf="false">
|
|
78
|
-
{{ field()?.validators?.isRequiredMessage }}.
|
|
79
|
-
</div>
|
|
80
|
-
<div class="error-message" *ngIf="false">
|
|
81
|
-
{{ field()?.validators?.patternMessage }}.
|
|
82
|
-
</div>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, input } from '@angular/core';
|
|
3
|
-
import { FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
-
import { MatInputModule } from '@angular/material/input';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'lib-textbox-with-image',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [MatInputModule, MatFormFieldModule, CommonModule, FormsModule, ReactiveFormsModule],
|
|
11
|
-
templateUrl: './textbox-with-image.component.html',
|
|
12
|
-
styleUrl: './textbox-with-image.component.css',
|
|
13
|
-
providers: [
|
|
14
|
-
{
|
|
15
|
-
provide: NG_VALUE_ACCESSOR,
|
|
16
|
-
useExisting: TextboxWithImageComponent,
|
|
17
|
-
multi: true
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
})
|
|
21
|
-
export class TextboxWithImageComponent {
|
|
22
|
-
field: any = input.required<any>();
|
|
23
|
-
inputValue: any = null;
|
|
24
|
-
reactiveFormControlobject : any = input<any>();
|
|
25
|
-
_onChange: any = (inputValue:any) => {};
|
|
26
|
-
_unTouched: any = () => {};
|
|
27
|
-
|
|
28
|
-
writeValue(obj: any): void{
|
|
29
|
-
this.inputValue=obj;
|
|
30
|
-
};
|
|
31
|
-
registerOnChange(fn: any): void{
|
|
32
|
-
this._onChange = fn;
|
|
33
|
-
};
|
|
34
|
-
registerOnTouched(fn: any): void{
|
|
35
|
-
this._unTouched = fn;
|
|
36
|
-
};
|
|
37
|
-
setDisabledState?(isDisabled: boolean): void{};
|
|
38
|
-
|
|
39
|
-
onInputChange(event: any): void {
|
|
40
|
-
this.inputValue = event.target.value;
|
|
41
|
-
this._onChange(this.inputValue);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
onInputBlur(): void {
|
|
45
|
-
this._unTouched();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
.field-lable{
|
|
2
|
-
font-size: 10px !important;
|
|
3
|
-
font-weight: 700 !important;
|
|
4
|
-
color: #444 !important;
|
|
5
|
-
margin-bottom: 0px !important;
|
|
6
|
-
}
|
|
7
|
-
.below-input-text{
|
|
8
|
-
font-weight: 400;
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
color: #444;
|
|
11
|
-
font-family: "Mulish";
|
|
12
|
-
}
|
|
13
|
-
.error-message{
|
|
14
|
-
color: red;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
* {
|
|
18
|
-
font-family: "mulish" !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* focus css for mat-form-field */
|
|
22
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
|
|
23
|
-
.mat-mdc-notch-piece {
|
|
24
|
-
border-color: var(--custom-border-color-focus, #ffbb00) !important;
|
|
25
|
-
border-width: var(--custom-border-width-focus, 1.5px) !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
::ng-deep .mat-mdc-form-field {
|
|
29
|
-
background-color: var(--custom-bg-color, #ffffff) !important;
|
|
30
|
-
border-radius: var(--custom-border-radius , 7px) !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* hover css for mat-form-field */
|
|
34
|
-
|
|
35
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
36
|
-
.mdc-text-field--focused
|
|
37
|
-
):hover
|
|
38
|
-
.mdc-notched-outline
|
|
39
|
-
.mdc-notched-outline__leading {
|
|
40
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
41
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
45
|
-
.mdc-text-field--focused
|
|
46
|
-
):hover
|
|
47
|
-
.mdc-notched-outline
|
|
48
|
-
.mdc-notched-outline__notch {
|
|
49
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
50
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
54
|
-
.mdc-text-field--focused
|
|
55
|
-
):hover
|
|
56
|
-
.mdc-notched-outline
|
|
57
|
-
.mdc-notched-outline__trailing {
|
|
58
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
59
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* regular css for mat-form-field */
|
|
63
|
-
::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
64
|
-
border-color: var(--custom-border-color, #dddddd) !important;
|
|
65
|
-
border-width: var(--custom-border-width, 1.5px) !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* field css for mat-form-input-field */
|
|
69
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
|
|
70
|
-
.mdc-text-field__input {
|
|
71
|
-
caret-color: var(--custom-caret-color, #ffbb00) !important;
|
|
72
|
-
/* font-size: var(--custom-font-size, 16px) !important; */
|
|
73
|
-
font-size: 12px !important;
|
|
74
|
-
font-weight: var(--custom-font-weight, 400) !important;
|
|
75
|
-
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
76
|
-
color: var(--custom-font-color, #444444) !important;
|
|
77
|
-
}
|
|
78
|
-
/* Error state for mat-form-field */
|
|
79
|
-
::ng-deep .mat-form-field-invalid
|
|
80
|
-
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
81
|
-
border-color: var(--custom-border-color-error, red) !important;
|
|
82
|
-
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
|
|
86
|
-
background: var(--custom-bg-color-disabled, #ECECEC) !important;
|
|
87
|
-
}
|
|
88
|
-
::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
89
|
-
color : var(--custom-font-color-disabled, #999999) !important;
|
|
90
|
-
}
|
|
91
|
-
::ng-deep .mdc-label {
|
|
92
|
-
color: var(--custom-font-color, #444) !important;
|
|
93
|
-
font-size: var(--custom-font-size, 16px) !important;
|
|
94
|
-
font-weight: var(--custom-font-weight, 400) !important;
|
|
95
|
-
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
96
|
-
}
|
|
97
|
-
::placeholder {
|
|
98
|
-
color: #8f8f8f !important;
|
|
99
|
-
font-size: 12px !important;
|
|
100
|
-
}
|
|
101
|
-
::ng-deep .mat-mdc-form-field-hint-wrapper{
|
|
102
|
-
padding: 0px !important;
|
|
103
|
-
}
|
|
104
|
-
::ng-deep .mat-mdc-form-field-error-wrapper{
|
|
105
|
-
padding: 0px !important;
|
|
106
|
-
}
|
|
107
|
-
::ng-deep .mat-mdc-form-field-error{
|
|
108
|
-
color: #EE0000 !important;
|
|
109
|
-
font-size: 12px;
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
font-family: "Mulish" !important;
|
|
112
|
-
letter-spacing: 0;
|
|
113
|
-
}
|
|
114
|
-
::ng-deep .mdc-text-field--outlined {
|
|
115
|
-
--mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
|
|
116
|
-
}
|
|
117
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
118
|
-
border-color: var(--custom-border-color-error, red) !important;
|
|
119
|
-
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
123
|
-
display: none !important;
|
|
124
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<label
|
|
2
|
-
class="field-lable"
|
|
3
|
-
*ngIf="field() && field()?.isVisible && field().isShowLabel"
|
|
4
|
-
>{{ field()?.label
|
|
5
|
-
}}<span style="color: red" *ngIf="field() && field()?.validators?.isRequired"
|
|
6
|
-
>*</span
|
|
7
|
-
></label
|
|
8
|
-
>
|
|
9
|
-
<mat-form-field
|
|
10
|
-
class="w-100"
|
|
11
|
-
appearance="outline"
|
|
12
|
-
*ngIf="field() && field()?.isVisible"
|
|
13
|
-
[ngStyle]="{
|
|
14
|
-
'--custom-border-color': field()?.controlStyle?.borderColor ,
|
|
15
|
-
'--custom-border-width': field()?.controlStyle?.borderWidth ,
|
|
16
|
-
'--custom-border-radius': field()?.controlStyle?.borderRadius ,
|
|
17
|
-
'--custom-bg-color': field()?.controlStyle?.background ,
|
|
18
|
-
'--custom-border-color-focus': field()?.controlStyle?.focusBorderColor ,
|
|
19
|
-
'--custom-border-width-focus': field()?.controlStyle?.focusBorderWidth ,
|
|
20
|
-
'--custom-bg-color-focus': field()?.controlStyle?.focusBackground ,
|
|
21
|
-
'--custom-border-color-hover': field()?.controlStyle?.hoverBorderColor ,
|
|
22
|
-
'--custom-border-width-hover': field()?.controlStyle?.hoverBorderWidth ,
|
|
23
|
-
'--custom-border-color-error': field()?.controlStyle?.errorBorderColor ,
|
|
24
|
-
'--custom-border-width-error': field()?.controlStyle?.errorBorderWidth ,
|
|
25
|
-
'--custom-font-size': field()?.controlStyle?.fontSize ,
|
|
26
|
-
'--custom-font-weight': field()?.controlStyle?.fontWeight ,
|
|
27
|
-
'--custom-font-family': field()?.controlStyle?.fontFamily ,
|
|
28
|
-
'--custom-font-color': field()?.controlStyle?.color ,
|
|
29
|
-
'--custom-caret-color': field()?.controlStyle?.caretColor ,
|
|
30
|
-
'--custom-font-color-disabled' : field()?.controlStyle?.disableColor ,
|
|
31
|
-
'--custom-bg-color-disabled' : field()?.controlStyle?.disableBackground ,
|
|
32
|
-
}"
|
|
33
|
-
>
|
|
34
|
-
@if(reactiveFormControlobject()) {
|
|
35
|
-
<input
|
|
36
|
-
matInput
|
|
37
|
-
autocomplete="none"
|
|
38
|
-
[type]="field()?.controlType"
|
|
39
|
-
[name]="field()?.fieldName"
|
|
40
|
-
[id]="field()?.fieldName"
|
|
41
|
-
[placeholder]="field()?.placeHolder"
|
|
42
|
-
[maxLength]="field()?.validators?.maxLength"
|
|
43
|
-
[minLength]="field()?.validators?.minLength"
|
|
44
|
-
[disabled]="field()?.isDisable"
|
|
45
|
-
[required]="field()?.validators?.isRequired"
|
|
46
|
-
[pattern]="field()?.validators?.pattern"
|
|
47
|
-
(input)="onInputChange($event)"
|
|
48
|
-
(blur)="onInputBlur()"
|
|
49
|
-
[value]="inputValue"
|
|
50
|
-
[formControl]="reactiveFormControlobject()"
|
|
51
|
-
/>
|
|
52
|
-
}@else {
|
|
53
|
-
<input
|
|
54
|
-
matInput
|
|
55
|
-
autocomplete="none"
|
|
56
|
-
[type]="field()?.controlType"
|
|
57
|
-
[name]="field()?.fieldName"
|
|
58
|
-
[id]="field()?.fieldName"
|
|
59
|
-
[placeholder]="field()?.placeHolder"
|
|
60
|
-
[maxLength]="field()?.validators?.maxLength"
|
|
61
|
-
[minLength]="field()?.validators?.minLength"
|
|
62
|
-
[disabled]="field()?.isDisable"
|
|
63
|
-
[required]="field()?.validators?.isRequired"
|
|
64
|
-
[pattern]="field()?.validators?.pattern"
|
|
65
|
-
(input)="onInputChange($event)"
|
|
66
|
-
(blur)="onInputBlur()"
|
|
67
|
-
[value]="inputValue"
|
|
68
|
-
[formControl]="reactiveFormControlobject()"
|
|
69
|
-
/>
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
<mat-error *ngIf="false">
|
|
73
|
-
{{ field()?.validators?.isRequiredMessage }}
|
|
74
|
-
</mat-error>
|
|
75
|
-
</mat-form-field>
|
|
76
|
-
<div>
|
|
77
|
-
<span class="below-input-text">Allowed range is 10 to 30 years</span>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="error-message" *ngIf="false">
|
|
80
|
-
{{ field()?.validators?.isRequiredMessage }}.
|
|
81
|
-
</div>
|
|
82
|
-
<div class="error-message" *ngIf="false">
|
|
83
|
-
{{ field()?.validators?.patternMessage }}.
|
|
84
|
-
</div>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, input } from '@angular/core';
|
|
3
|
-
import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
-
import { MatInputModule } from '@angular/material/input';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'lib-textbox-with-text',
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [
|
|
11
|
-
MatInputModule,
|
|
12
|
-
MatFormFieldModule,
|
|
13
|
-
CommonModule,
|
|
14
|
-
ReactiveFormsModule,
|
|
15
|
-
],
|
|
16
|
-
templateUrl: './textbox-with-text.component.html',
|
|
17
|
-
styleUrl: './textbox-with-text.component.css',
|
|
18
|
-
providers: [
|
|
19
|
-
{
|
|
20
|
-
provide: NG_VALUE_ACCESSOR,
|
|
21
|
-
useExisting: TextboxWithTextComponent,
|
|
22
|
-
multi: true,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
export class TextboxWithTextComponent {
|
|
27
|
-
inputValue: any = null;
|
|
28
|
-
reactiveFormControlobject: any = input<any>();
|
|
29
|
-
field: any = input.required<any>();
|
|
30
|
-
|
|
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
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
.field-lable{
|
|
2
|
-
font-size: 10px !important;
|
|
3
|
-
font-weight: 700 !important;
|
|
4
|
-
color: #444 !important;
|
|
5
|
-
margin-bottom: 0px !important;
|
|
6
|
-
}
|
|
7
|
-
.hyphen-input{
|
|
8
|
-
letter-spacing: 5px !important;
|
|
9
|
-
}
|
|
10
|
-
.error-message{
|
|
11
|
-
color: red;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
* {
|
|
15
|
-
font-family: "mulish" !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* focus css for mat-form-field */
|
|
19
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
|
|
20
|
-
.mat-mdc-notch-piece {
|
|
21
|
-
border-color: var(--custom-border-color-focus, #ffbb00) !important;
|
|
22
|
-
border-width: var(--custom-border-width-focus, 1.5px) !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
::ng-deep .mat-mdc-form-field {
|
|
26
|
-
background-color: var(--custom-bg-color, #ffffff) !important;
|
|
27
|
-
border-radius: var(--custom-border-radius , 7px) !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* hover css for mat-form-field */
|
|
31
|
-
|
|
32
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
33
|
-
.mdc-text-field--focused
|
|
34
|
-
):hover
|
|
35
|
-
.mdc-notched-outline
|
|
36
|
-
.mdc-notched-outline__leading {
|
|
37
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
38
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
42
|
-
.mdc-text-field--focused
|
|
43
|
-
):hover
|
|
44
|
-
.mdc-notched-outline
|
|
45
|
-
.mdc-notched-outline__notch {
|
|
46
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
47
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
51
|
-
.mdc-text-field--focused
|
|
52
|
-
):hover
|
|
53
|
-
.mdc-notched-outline
|
|
54
|
-
.mdc-notched-outline__trailing {
|
|
55
|
-
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
56
|
-
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* regular css for mat-form-field */
|
|
60
|
-
::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
61
|
-
border-color: var(--custom-border-color, #dddddd) !important;
|
|
62
|
-
border-width: var(--custom-border-width, 1.5px) !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* field css for mat-form-input-field */
|
|
66
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
|
|
67
|
-
.mdc-text-field__input {
|
|
68
|
-
caret-color: var(--custom-caret-color, #ffbb00) !important;
|
|
69
|
-
/* font-size: var(--custom-font-size, 16px) !important; */
|
|
70
|
-
font-size: 12px !important;
|
|
71
|
-
font-weight: var(--custom-font-weight, 400) !important;
|
|
72
|
-
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
73
|
-
color: var(--custom-font-color, #444444) !important;
|
|
74
|
-
}
|
|
75
|
-
/* Error state for mat-form-field */
|
|
76
|
-
::ng-deep .mat-form-field-invalid
|
|
77
|
-
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
78
|
-
border-color: var(--custom-border-color-error, red) !important;
|
|
79
|
-
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
|
|
83
|
-
background: var(--custom-bg-color-disabled, #ECECEC) !important;
|
|
84
|
-
}
|
|
85
|
-
::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
86
|
-
color : var(--custom-font-color-disabled, #999999) !important;
|
|
87
|
-
}
|
|
88
|
-
::ng-deep .mdc-label {
|
|
89
|
-
color: var(--custom-font-color, #444) !important;
|
|
90
|
-
font-size: var(--custom-font-size, 16px) !important;
|
|
91
|
-
font-weight: var(--custom-font-weight, 400) !important;
|
|
92
|
-
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
93
|
-
}
|
|
94
|
-
::placeholder {
|
|
95
|
-
color: #8f8f8f !important;
|
|
96
|
-
font-size: 12px !important;
|
|
97
|
-
}
|
|
98
|
-
::ng-deep .mat-mdc-form-field-hint-wrapper{
|
|
99
|
-
padding: 0px !important;
|
|
100
|
-
}
|
|
101
|
-
::ng-deep .mat-mdc-form-field-error-wrapper{
|
|
102
|
-
padding: 0px !important;
|
|
103
|
-
}
|
|
104
|
-
::ng-deep .mat-mdc-form-field-error{
|
|
105
|
-
color: #EE0000 !important;
|
|
106
|
-
font-size: 12px;
|
|
107
|
-
font-weight: 500;
|
|
108
|
-
font-family: "Mulish" !important;
|
|
109
|
-
letter-spacing: 0;
|
|
110
|
-
}
|
|
111
|
-
::ng-deep .mdc-text-field--outlined {
|
|
112
|
-
--mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
|
|
113
|
-
}
|
|
114
|
-
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
115
|
-
border-color: var(--custom-border-color-error, red) !important;
|
|
116
|
-
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
120
|
-
display: none !important;
|
|
121
|
-
}
|