master-control 0.2.6 → 0.2.8
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/{esm2022 → src}/lib/medial-questions/questions.json +39682 -39682
- 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 -56
- 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 -140
- package/esm2022/lib/master-control.service.mjs +0 -212
- package/esm2022/lib/medial-questions/medial-questions.component.mjs +0 -601
- package/esm2022/lib/mob-number/mob-number.component.mjs +0 -65
- package/esm2022/lib/multiple-select/multiple-select.component.mjs +0 -119
- 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 -25
- 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 -60
- package/fesm2022/master-control.mjs +0 -42759
- 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/medial-questions/medial-questions.component.d.ts +0 -62
- package/lib/mob-number/mob-number.component.d.ts +0 -21
- package/lib/multiple-select/multiple-select.component.d.ts +0 -27
- 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 -11
- 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.6.tgz +0 -0
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "master-control",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^18.2.0",
|
|
6
|
-
"@angular/core": "^18.2.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
|
-
"sideEffects": false
|
|
12
|
-
|
|
13
|
-
"typings": "index.d.ts",
|
|
14
|
-
"exports": {
|
|
15
|
-
"./package.json": {
|
|
16
|
-
"default": "./package.json"
|
|
17
|
-
},
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./index.d.ts",
|
|
20
|
-
"esm2022": "./esm2022/master-control.mjs",
|
|
21
|
-
"esm": "./esm2022/master-control.mjs",
|
|
22
|
-
"default": "./fesm2022/master-control.mjs"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "master-control",
|
|
3
|
+
"version": "0.2.8",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.field-lable{
|
|
2
|
+
font-size: 10px !important;
|
|
3
|
+
font-weight: 700 !important;
|
|
4
|
+
color: #444 !important;
|
|
5
|
+
margin-bottom: 0px !important;
|
|
6
|
+
opacity: 0;
|
|
7
|
+
}
|
|
8
|
+
.upload-btn {
|
|
9
|
+
width: 100% !important;
|
|
10
|
+
height: 48px !important;
|
|
11
|
+
padding: 10px;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
}
|
|
14
|
+
.upload-btn {
|
|
15
|
+
width: var(--upload-width , 100%) !important;
|
|
16
|
+
border-radius: var(--upload-border-radius , 8px) !important;
|
|
17
|
+
}
|
|
18
|
+
.add-document-btn{
|
|
19
|
+
border: 1px dashed #999;
|
|
20
|
+
background: #ffffff;
|
|
21
|
+
color: #444;
|
|
22
|
+
}
|
|
23
|
+
.add-document-btn{
|
|
24
|
+
border-color: var(--add-doc-border-color , #999);
|
|
25
|
+
border-width: var(--add-doc-border-width , 1px) ;
|
|
26
|
+
border-style: var(--add-doc-border-style , dashed);
|
|
27
|
+
background: var(--add-doc-background , #ffffff);
|
|
28
|
+
color: var(--add-doc-font-color , #444);
|
|
29
|
+
}
|
|
30
|
+
.add-icon{
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: start;
|
|
33
|
+
gap: 7px;
|
|
34
|
+
}
|
|
35
|
+
.upload-text{
|
|
36
|
+
color: #444 !important;
|
|
37
|
+
font-weight: 700 !important;
|
|
38
|
+
font-size: 14px !important;
|
|
39
|
+
}
|
|
40
|
+
.upload-text{
|
|
41
|
+
color: var(--upload-font-color , #444) !important;
|
|
42
|
+
font-size: var( --upload-font-size , 14px) !important;
|
|
43
|
+
font-weight: var(--upload-font-weight , 700) !important;
|
|
44
|
+
}
|
|
45
|
+
.light-font{
|
|
46
|
+
color: #b4b4b4;
|
|
47
|
+
}
|
|
48
|
+
* {
|
|
49
|
+
font-family: "mulish" !important;
|
|
50
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<label class="field-lable" *ngIf="field() && field()?.isVisible && field()?.isShowLabel">{{field().label}}</label>
|
|
2
|
+
<input
|
|
3
|
+
hidden
|
|
4
|
+
[type]="field()?.controlType"
|
|
5
|
+
#fileInput
|
|
6
|
+
(click)="(fileInput.value)"
|
|
7
|
+
[required]="field()?.validators?.isRequired"
|
|
8
|
+
/>
|
|
9
|
+
<button
|
|
10
|
+
type="button"
|
|
11
|
+
class="upload-btn add-document-btn"
|
|
12
|
+
*ngIf="field() && field()?.isVisible"
|
|
13
|
+
[ngStyle]="{
|
|
14
|
+
'--add-doc-border-color': field()?.controlStyle?.borderColor ,
|
|
15
|
+
'--add-doc-border-width': field()?.controlStyle?.borderWidth ,
|
|
16
|
+
'--add-doc-border-style': field()?.controlStyle?.borderStyle ,
|
|
17
|
+
'--add-doc-background': field()?.controlStyle?.background
|
|
18
|
+
}"
|
|
19
|
+
>
|
|
20
|
+
<span class="add-icon">
|
|
21
|
+
<span
|
|
22
|
+
><img class="mb-1" src="https://cdn.godigit.com/retail-life/add.svg"></span>
|
|
23
|
+
<span class="upload-text" [ngStyle]="{
|
|
24
|
+
'--upload-font-color': field()?.controlStyle?.color ,
|
|
25
|
+
'--upload-font-size': field()?.controlStyle?.fontSize ,
|
|
26
|
+
'--upload-font-weight': field()?.controlStyle?.fontWeight,
|
|
27
|
+
'--upload-focus-font-color': field()?.controlStyle?.focusColor ,
|
|
28
|
+
}">{{ field()?.label }}</span>
|
|
29
|
+
<span class="light-font">(optional)</span>
|
|
30
|
+
</span>
|
|
31
|
+
</button>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, input } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'lib-add-document',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [
|
|
9
|
+
CommonModule,
|
|
10
|
+
FormsModule
|
|
11
|
+
],
|
|
12
|
+
templateUrl: './add-document.component.html',
|
|
13
|
+
styleUrl: './add-document.component.css'
|
|
14
|
+
})
|
|
15
|
+
export class AddDocumentComponent {
|
|
16
|
+
field : any = input.required<any>();
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.additional-button{
|
|
2
|
+
background: none !important;
|
|
3
|
+
border: none !important;
|
|
4
|
+
}
|
|
5
|
+
.additional-button-text{
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
font-weight: 700;
|
|
8
|
+
}
|
|
9
|
+
.additional-button-img{
|
|
10
|
+
height: 12px;
|
|
11
|
+
width: 12px;
|
|
12
|
+
margin-bottom: 2px;
|
|
13
|
+
}
|
|
14
|
+
* {
|
|
15
|
+
font-family: "mulish" !important;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<Button class="additional-button" *ngIf="field() && field()?.isVisible" [ngStyle]="
|
|
2
|
+
{
|
|
3
|
+
'--button-border': field()?.controlStyle?.borderWidth ,
|
|
4
|
+
'--button-width': field()?.controlStyle?.width ,
|
|
5
|
+
'--button-font-size': field()?.controlStyle?.fontSize ,
|
|
6
|
+
'--button-font-weight': field()?.controlStyle?.fontWeight ,
|
|
7
|
+
'--button-background': field()?.controlStyle?.background ,
|
|
8
|
+
'--button-border-radius': field()?.controlStyle?.borderRadius ,
|
|
9
|
+
'--button-text-color': field()?.controlStyle?.color ,
|
|
10
|
+
}">
|
|
11
|
+
<span class="additional-button-text">
|
|
12
|
+
<img
|
|
13
|
+
class="additional-button-img"
|
|
14
|
+
src="https://cdn.godigit.com/retail-life/add.svg"
|
|
15
|
+
/>
|
|
16
|
+
<span
|
|
17
|
+
><u>{{ field()?.label }}</u></span
|
|
18
|
+
>
|
|
19
|
+
</span>
|
|
20
|
+
</Button>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, input } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-addition-button',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
templateUrl: './addition-button.component.html',
|
|
9
|
+
styleUrl: './addition-button.component.css'
|
|
10
|
+
})
|
|
11
|
+
export class AdditionButtonComponent {
|
|
12
|
+
field: any = input.required<any>();
|
|
13
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
.field-lable{
|
|
2
|
+
font-size: 12px !important;
|
|
3
|
+
font-weight: 700 !important;
|
|
4
|
+
color: #444 !important;
|
|
5
|
+
margin-bottom: 0px;
|
|
6
|
+
}
|
|
7
|
+
.right-date-text{
|
|
8
|
+
padding: 4px 8px 4px 8px;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
color: #444;
|
|
13
|
+
background: #f5f5f5;
|
|
14
|
+
margin-right: 7px;
|
|
15
|
+
}
|
|
16
|
+
.error-message{
|
|
17
|
+
color: red;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* focus css for mat-form-field */
|
|
21
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
|
|
22
|
+
.mat-mdc-notch-piece {
|
|
23
|
+
border-color: var(--custom-border-color-focus, #ffbb00) !important;
|
|
24
|
+
border-width: var(--custom-border-width-focus, 1.5px) !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
::ng-deep .mat-mdc-form-field {
|
|
28
|
+
background-color: var(--custom-bg-color, #ffffff) !important;
|
|
29
|
+
border-radius: var(--custom-border-radius , 7px) !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* hover css for mat-form-field */
|
|
33
|
+
|
|
34
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
35
|
+
.mdc-text-field--focused
|
|
36
|
+
):hover
|
|
37
|
+
.mdc-notched-outline
|
|
38
|
+
.mdc-notched-outline__leading {
|
|
39
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
40
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
44
|
+
.mdc-text-field--focused
|
|
45
|
+
):hover
|
|
46
|
+
.mdc-notched-outline
|
|
47
|
+
.mdc-notched-outline__notch {
|
|
48
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
49
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
53
|
+
.mdc-text-field--focused
|
|
54
|
+
):hover
|
|
55
|
+
.mdc-notched-outline
|
|
56
|
+
.mdc-notched-outline__trailing {
|
|
57
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
58
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* regular css for mat-form-field */
|
|
62
|
+
::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
63
|
+
border-color: var(--custom-border-color, #dddddd) !important;
|
|
64
|
+
border-width: var(--custom-border-width, 1.5px) !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* field css for mat-form-input-field */
|
|
68
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
|
|
69
|
+
.mdc-text-field__input {
|
|
70
|
+
caret-color: var(--custom-caret-color, #ffbb00) !important;
|
|
71
|
+
/* font-size: var(--custom-font-size, 16px) !important; */
|
|
72
|
+
font-weight: var(--custom-font-weight, 400) !important;
|
|
73
|
+
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
74
|
+
color: var(--custom-font-color, #444444) !important;
|
|
75
|
+
font-size: 12px !important;
|
|
76
|
+
}
|
|
77
|
+
/* Error state for mat-form-field */
|
|
78
|
+
::ng-deep .mat-form-field-invalid
|
|
79
|
+
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
80
|
+
border-color: var(--custom-border-color-error, red) !important;
|
|
81
|
+
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
|
|
85
|
+
background: var(--custom-bg-color-disabled, #ECECEC) !important;
|
|
86
|
+
}
|
|
87
|
+
::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
88
|
+
color : var(--custom-font-color-disabled, #999999) !important;
|
|
89
|
+
}
|
|
90
|
+
::ng-deep .mdc-label {
|
|
91
|
+
color: var(--custom-font-color, #444) !important;
|
|
92
|
+
font-size: var(--custom-font-size, 16px) !important;
|
|
93
|
+
font-weight: var(--custom-font-weight, 400) !important;
|
|
94
|
+
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
95
|
+
}
|
|
96
|
+
::placeholder {
|
|
97
|
+
color: #8f8f8f !important;
|
|
98
|
+
font-size: 12px !important;
|
|
99
|
+
}
|
|
100
|
+
::ng-deep .mat-mdc-form-field-hint-wrapper{
|
|
101
|
+
padding: 0px !important;
|
|
102
|
+
}
|
|
103
|
+
::ng-deep .mat-mdc-form-field-error-wrapper{
|
|
104
|
+
padding: 0px !important;
|
|
105
|
+
}
|
|
106
|
+
::ng-deep .mat-mdc-form-field-error{
|
|
107
|
+
color: #EE0000 !important;
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
font-family: "Mulish" !important;
|
|
111
|
+
letter-spacing: 0;
|
|
112
|
+
}
|
|
113
|
+
::ng-deep .mdc-text-field--outlined {
|
|
114
|
+
--mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
|
|
115
|
+
}
|
|
116
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
117
|
+
border-color: var(--custom-border-color-error, red) !important;
|
|
118
|
+
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
122
|
+
display: none !important;
|
|
123
|
+
}
|
|
124
|
+
* {
|
|
125
|
+
font-family: "mulish" !important;
|
|
126
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
|
3
|
+
class="w-100"
|
|
4
|
+
appearance="outline"
|
|
5
|
+
*ngIf="field() && field()?.isVisible"
|
|
6
|
+
[ngStyle]="{
|
|
7
|
+
'--custom-border-color': field()?.controlStyle?.borderColor ,
|
|
8
|
+
'--custom-border-width': field()?.controlStyle?.borderWidth ,
|
|
9
|
+
'--custom-border-radius': field()?.controlStyle?.borderRadius ,
|
|
10
|
+
'--custom-bg-color': field()?.controlStyle?.background ,
|
|
11
|
+
'--custom-border-color-focus': field()?.controlStyle?.focusBorderColor ,
|
|
12
|
+
'--custom-border-width-focus': field()?.controlStyle?.focusBorderWidth ,
|
|
13
|
+
'--custom-bg-color-focus': field()?.controlStyle?.focusBackground ,
|
|
14
|
+
'--custom-border-color-hover': field()?.controlStyle?.hoverBorderColor ,
|
|
15
|
+
'--custom-border-width-hover': field()?.controlStyle?.hoverBorderWidth ,
|
|
16
|
+
'--custom-border-color-error': field()?.controlStyle?.errorBorderColor ,
|
|
17
|
+
'--custom-border-width-error': field()?.controlStyle?.errorBorderWidth ,
|
|
18
|
+
'--custom-font-size': field()?.controlStyle?.fontSize ,
|
|
19
|
+
'--custom-font-weight': field()?.controlStyle?.fontWeight ,
|
|
20
|
+
'--custom-font-family': field()?.controlStyle?.fontFamily ,
|
|
21
|
+
'--custom-font-color': field()?.controlStyle?.color ,
|
|
22
|
+
'--custom-caret-color': field()?.controlStyle?.caretColor ,
|
|
23
|
+
'--custom-font-color-disabled' : field()?.controlStyle?.disableColor ,
|
|
24
|
+
'--custom-bg-color-disabled' : field()?.controlStyle?.disableBackground ,
|
|
25
|
+
}">
|
|
26
|
+
@if(reactiveFormControlobject()) {
|
|
27
|
+
<input
|
|
28
|
+
matInput
|
|
29
|
+
autocomplete="none"
|
|
30
|
+
[type]="field()?.controlType"
|
|
31
|
+
[name]="field()?.fieldName"
|
|
32
|
+
[id]="field()?.fieldName"
|
|
33
|
+
[placeholder]="field()?.placeHolder"
|
|
34
|
+
[required]="field()?.validators?.isRequired"
|
|
35
|
+
[pattern]="field()?.validators?.pattern"
|
|
36
|
+
[matDatepicker]="picker"
|
|
37
|
+
(keyup)="dateDivisionFormat($event)"
|
|
38
|
+
[disabled]="field()?.isDisable"
|
|
39
|
+
(dateChange)="onInputChange($event)"
|
|
40
|
+
(blur)="onInputBlur($event)"
|
|
41
|
+
[value]="inputValue"
|
|
42
|
+
[formControl]="reactiveFormControlobject()"
|
|
43
|
+
/>
|
|
44
|
+
}@else{
|
|
45
|
+
<input
|
|
46
|
+
matInput
|
|
47
|
+
autocomplete="none"
|
|
48
|
+
[type]="field()?.controlType"
|
|
49
|
+
[name]="field()?.fieldName"
|
|
50
|
+
[id]="field()?.fieldName"
|
|
51
|
+
[placeholder]="field()?.placeHolder"
|
|
52
|
+
[required]="field()?.validators?.isRequired"
|
|
53
|
+
[pattern]="field()?.validators?.pattern"
|
|
54
|
+
[matDatepicker]="picker"
|
|
55
|
+
(keyup)="dateDivisionFormat($event)"
|
|
56
|
+
[disabled]="field()?.isDisable"
|
|
57
|
+
(dateChange)="onInputChange($event)"
|
|
58
|
+
(blur)="onInputBlur($event)"
|
|
59
|
+
[value]="inputValue"
|
|
60
|
+
/>
|
|
61
|
+
}
|
|
62
|
+
<span matSuffix class="right-date-text">
|
|
63
|
+
33yrs
|
|
64
|
+
</span>
|
|
65
|
+
<mat-datepicker-toggle matSuffix [for]="picker" *ngIf="false">
|
|
66
|
+
<img
|
|
67
|
+
src="https://cdn.godigit.com/digitPlusAssets/retail-life-icon/svgicon/date_picker_icon.svg"
|
|
68
|
+
style="width: 16px"
|
|
69
|
+
matDatepickerToggleIcon
|
|
70
|
+
/>
|
|
71
|
+
</mat-datepicker-toggle>
|
|
72
|
+
<mat-datepicker #picker></mat-datepicker>
|
|
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>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, input } from '@angular/core';
|
|
3
|
+
import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MomentDateModule } from '@angular/material-moment-adapter';
|
|
5
|
+
import { MAT_DATE_FORMATS } from '@angular/material/core';
|
|
6
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
7
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
8
|
+
import { MatInputModule } from '@angular/material/input';
|
|
9
|
+
import { MasterControlService } from '../master-control.service';
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'lib-age-date',
|
|
13
|
+
standalone: true,
|
|
14
|
+
imports: [
|
|
15
|
+
MatInputModule,
|
|
16
|
+
MatFormFieldModule,
|
|
17
|
+
CommonModule,
|
|
18
|
+
MatDatepickerModule,
|
|
19
|
+
MomentDateModule,
|
|
20
|
+
ReactiveFormsModule
|
|
21
|
+
],
|
|
22
|
+
providers: [{ provide: MAT_DATE_FORMATS, useValue: {
|
|
23
|
+
parse: {
|
|
24
|
+
dateInput: [
|
|
25
|
+
'DD-MM-YYYY',
|
|
26
|
+
'MM/DD/YYYY',
|
|
27
|
+
'YYYY/MM/DD',
|
|
28
|
+
'DD/MM/YYYY',
|
|
29
|
+
'DD MMM YYYY',
|
|
30
|
+
'DD MMMM YYYY',
|
|
31
|
+
'DD-MMM-YYYY',
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
display: {
|
|
35
|
+
dateInput: 'DD-MMM-YYYY',
|
|
36
|
+
monthYearLabel: 'MMM YYYY',
|
|
37
|
+
dateA11yLabel: 'DD-MMM-YYYY',
|
|
38
|
+
monthYearA11yLabel: 'MMMM YYYY',
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
provide: NG_VALUE_ACCESSOR,
|
|
44
|
+
useExisting: AgeDateComponent,
|
|
45
|
+
multi: true
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
templateUrl: './age-date.component.html',
|
|
49
|
+
styleUrl: './age-date.component.css',
|
|
50
|
+
})
|
|
51
|
+
export class AgeDateComponent {
|
|
52
|
+
field: any = input.required<any>();
|
|
53
|
+
inputValue: any = null;
|
|
54
|
+
reactiveFormControlobject : any = input<any>();
|
|
55
|
+
constructor(public service : MasterControlService) {}
|
|
56
|
+
|
|
57
|
+
dateDivisionFormat(event: any) {
|
|
58
|
+
let evt = event.target;
|
|
59
|
+
if (evt.value.length > 2 && !evt.value.substr(2, 1).includes('-')) {
|
|
60
|
+
evt.value = [evt.value.slice(0, 2), '-', evt.value.slice(2)].join('');
|
|
61
|
+
} else if (
|
|
62
|
+
evt.value.length > 5 &&
|
|
63
|
+
Number(evt.value.substr(3, 2)) &&
|
|
64
|
+
!evt.value.substr(5, 1).includes('-')
|
|
65
|
+
) {
|
|
66
|
+
evt.value = [evt.value.slice(0, 5), '-', evt.value.slice(5)].join('');
|
|
67
|
+
} else if (
|
|
68
|
+
evt.value.length > 6 &&
|
|
69
|
+
!Number(evt.value.substr(3, 2)) &&
|
|
70
|
+
!evt.value.substr(6, 1).includes('-')
|
|
71
|
+
) {
|
|
72
|
+
evt.value = [evt.value.slice(0, 6), '-', evt.value.slice(6)].join('');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
_onChange: any = (inputValue:any) => {};
|
|
76
|
+
_unTouched: any = () => {};
|
|
77
|
+
|
|
78
|
+
writeValue(obj: any): void{
|
|
79
|
+
this.inputValue=obj;
|
|
80
|
+
};
|
|
81
|
+
registerOnChange(fn: any): void{
|
|
82
|
+
this._onChange = fn;
|
|
83
|
+
};
|
|
84
|
+
registerOnTouched(fn: any): void{
|
|
85
|
+
this._unTouched = fn;
|
|
86
|
+
};
|
|
87
|
+
setDisabledState?(isDisabled: boolean): void{};
|
|
88
|
+
|
|
89
|
+
onInputChange(event: any): void {
|
|
90
|
+
this.inputValue = event.target.value;
|
|
91
|
+
this._onChange(this.inputValue);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
onInputBlur(event : any): void {
|
|
95
|
+
if (!this.service.checkIfValueIsEmpty(event.target.value)) {
|
|
96
|
+
if (isNaN(Date.parse(event.target.value))) {
|
|
97
|
+
event.target.value = '';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
}
|
|
101
|
+
this._unTouched();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.field-lable{
|
|
2
|
+
font-size: 10px !important;
|
|
3
|
+
font-weight: 700 !important;
|
|
4
|
+
color: #444 !important;
|
|
5
|
+
margin-bottom: 0px !important;
|
|
6
|
+
}
|
|
7
|
+
* {
|
|
8
|
+
font-family: "mulish" !important;
|
|
9
|
+
}
|
|
10
|
+
.right-amount-text{
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
font-size: 10px;
|
|
13
|
+
color: #444;
|
|
14
|
+
background: #f5f5f5;
|
|
15
|
+
border-radius: 2px;
|
|
16
|
+
padding: 5.5px 6px 4px 6px;
|
|
17
|
+
}
|
|
18
|
+
.error-message{
|
|
19
|
+
color: red;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* focus css for mat-form-field */
|
|
23
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
|
|
24
|
+
.mat-mdc-notch-piece {
|
|
25
|
+
border-color: var(--custom-border-color-focus, #ffbb00) !important;
|
|
26
|
+
border-width: var(--custom-border-width-focus, 1.5px) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::ng-deep .mat-mdc-form-field {
|
|
30
|
+
background-color: var(--custom-bg-color, #ffffff) !important;
|
|
31
|
+
border-radius: var(--custom-border-radius , 7px) !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* hover css for mat-form-field */
|
|
35
|
+
|
|
36
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
37
|
+
.mdc-text-field--focused
|
|
38
|
+
):hover
|
|
39
|
+
.mdc-notched-outline
|
|
40
|
+
.mdc-notched-outline__leading {
|
|
41
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
42
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
46
|
+
.mdc-text-field--focused
|
|
47
|
+
):hover
|
|
48
|
+
.mdc-notched-outline
|
|
49
|
+
.mdc-notched-outline__notch {
|
|
50
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
51
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
|
|
55
|
+
.mdc-text-field--focused
|
|
56
|
+
):hover
|
|
57
|
+
.mdc-notched-outline
|
|
58
|
+
.mdc-notched-outline__trailing {
|
|
59
|
+
border-color: var(--custom-border-color-hover, #ffbb00) !important;
|
|
60
|
+
border-width: var(--custom-border-width-hover, 1.5px) !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* regular css for mat-form-field */
|
|
64
|
+
::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
65
|
+
border-color: var(--custom-border-color, #dddddd) !important;
|
|
66
|
+
border-width: var(--custom-border-width, 1.5px) !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* field css for mat-form-input-field */
|
|
70
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
|
|
71
|
+
.mdc-text-field__input {
|
|
72
|
+
caret-color: var(--custom-caret-color, #ffbb00) !important;
|
|
73
|
+
/* font-size: var(--custom-font-size, 16px) !important; */
|
|
74
|
+
font-size: 12px !important;
|
|
75
|
+
font-weight: var(--custom-font-weight, 400) !important;
|
|
76
|
+
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
77
|
+
color: var(--custom-font-color, #444444) !important;
|
|
78
|
+
}
|
|
79
|
+
/* Error state for mat-form-field */
|
|
80
|
+
::ng-deep .mat-form-field-invalid
|
|
81
|
+
.mdc-text-field--outlined .mat-mdc-notch-piece {
|
|
82
|
+
border-color: var(--custom-border-color-error, red) !important;
|
|
83
|
+
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
|
|
87
|
+
background: var(--custom-bg-color-disabled, #ECECEC) !important;
|
|
88
|
+
}
|
|
89
|
+
::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
|
|
90
|
+
color : var(--custom-font-color-disabled, #999999) !important;
|
|
91
|
+
}
|
|
92
|
+
::ng-deep .mdc-label {
|
|
93
|
+
color: var(--custom-font-color, #444) !important;
|
|
94
|
+
font-size: var(--custom-font-size, 16px) !important;
|
|
95
|
+
font-weight: var(--custom-font-weight, 400) !important;
|
|
96
|
+
font-family: var(--custom-font-family, 'Mulish') !important;
|
|
97
|
+
}
|
|
98
|
+
::placeholder {
|
|
99
|
+
color: #8f8f8f !important;
|
|
100
|
+
font-size: 12px !important;
|
|
101
|
+
}
|
|
102
|
+
::ng-deep .mat-mdc-form-field-hint-wrapper{
|
|
103
|
+
padding: 0px !important;
|
|
104
|
+
}
|
|
105
|
+
::ng-deep .mat-mdc-form-field-error-wrapper{
|
|
106
|
+
padding: 0px !important;
|
|
107
|
+
}
|
|
108
|
+
::ng-deep .mat-mdc-form-field-error{
|
|
109
|
+
color: #EE0000 !important;
|
|
110
|
+
font-size: 12px;
|
|
111
|
+
font-weight: 500;
|
|
112
|
+
font-family: "Mulish" !important;
|
|
113
|
+
letter-spacing: 0;
|
|
114
|
+
}
|
|
115
|
+
::ng-deep .mdc-text-field--outlined {
|
|
116
|
+
--mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
|
|
117
|
+
}
|
|
118
|
+
::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
|
|
119
|
+
border-color: var(--custom-border-color-error, red) !important;
|
|
120
|
+
border-width: var(--custom-border-width-error, 1.5px) !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
::ng-deep .mat-mdc-form-field-subscript-wrapper {
|
|
124
|
+
display: none !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.rupee-symbol{
|
|
128
|
+
color: #444;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
font-weight: 400;
|
|
131
|
+
}
|