master-control 0.2.14 → 0.2.16

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.
Files changed (330) hide show
  1. package/esm2022/lib/add-document/add-document.component.mjs +18 -0
  2. package/esm2022/lib/addition-button/addition-button.component.mjs +14 -0
  3. package/esm2022/lib/age-date/age-date.component.mjs +132 -0
  4. package/esm2022/lib/amount-textbox/amount-textbox.component.mjs +63 -0
  5. package/esm2022/lib/annuity-rate-logo/annuity-rate-logo.component.mjs +15 -0
  6. package/esm2022/lib/autocomplete/autocomplete.component.mjs +90 -0
  7. package/esm2022/lib/benefit-card/benefit-card.component.mjs +14 -0
  8. package/esm2022/lib/button/button.component.mjs +19 -0
  9. package/esm2022/lib/card/card.component.mjs +14 -0
  10. package/esm2022/lib/checkbox/checkbox.component.mjs +79 -0
  11. package/esm2022/lib/discount/discount.component.mjs +14 -0
  12. package/esm2022/lib/discount-v2/discount-v2.component.mjs +16 -0
  13. package/esm2022/lib/dob/dob.component.mjs +118 -0
  14. package/esm2022/lib/download-document/download-document.component.mjs +18 -0
  15. package/esm2022/lib/email-with-domain/email-with-domain.component.mjs +60 -0
  16. package/esm2022/lib/error-snackbar/error-snackbar.component.mjs +21 -0
  17. package/esm2022/lib/grey-label/grey-label.component.mjs +14 -0
  18. package/esm2022/lib/header/header.component.mjs +14 -0
  19. package/esm2022/lib/hr-line/hr-line.component.mjs +14 -0
  20. package/esm2022/lib/hyperlink/hyperlink.component.mjs +14 -0
  21. package/esm2022/lib/icon-button/icon-button.component.mjs +14 -0
  22. package/esm2022/lib/iframe/iframe.component.mjs +32 -0
  23. package/esm2022/lib/image/image.component.mjs +14 -0
  24. package/esm2022/lib/image-upload/image-upload.component.mjs +18 -0
  25. package/esm2022/lib/in-built-benefit/in-built-benefit.component.mjs +20 -0
  26. package/esm2022/lib/info/info.component.mjs +19 -0
  27. package/esm2022/lib/info-textbox/info-textbox.component.mjs +62 -0
  28. package/esm2022/lib/label/label.component.mjs +14 -0
  29. package/esm2022/lib/label-value-card/label-value-card.component.mjs +15 -0
  30. package/esm2022/lib/loader/loader.component.mjs +14 -0
  31. package/esm2022/lib/master-control.component.mjs +142 -0
  32. package/esm2022/lib/master-control.service.mjs +212 -0
  33. package/esm2022/lib/medial-questions/medial-questions.component.mjs +601 -0
  34. package/{src → esm2022}/lib/medial-questions/questions.json +39682 -39682
  35. package/esm2022/lib/mob-number/mob-number.component.mjs +65 -0
  36. package/esm2022/lib/multiple-select/multiple-select.component.mjs +119 -0
  37. package/esm2022/lib/neutral-snackbar/neutral-snackbar.component.mjs +21 -0
  38. package/esm2022/lib/other-benefits/other-benefits.component.mjs +14 -0
  39. package/esm2022/lib/otp-mob-number/otp-mob-number.component.mjs +63 -0
  40. package/esm2022/lib/otp-textbox/otp-textbox.component.mjs +68 -0
  41. package/esm2022/lib/page-nudge/page-nudge.component.mjs +14 -0
  42. package/esm2022/lib/pay-get-card/pay-get-card.component.mjs +29 -0
  43. package/esm2022/lib/radio/radio.component.mjs +58 -0
  44. package/esm2022/lib/search-multi-select/search-multi-select.component.mjs +127 -0
  45. package/esm2022/lib/select/select.component.mjs +99 -0
  46. package/esm2022/lib/select-textbox/select-textbox.component.mjs +83 -0
  47. package/esm2022/lib/stepper/stepper.component.mjs +25 -0
  48. package/esm2022/lib/sub-header/sub-header.component.mjs +14 -0
  49. package/esm2022/lib/subscript-textbox/subscript-textbox.component.mjs +62 -0
  50. package/esm2022/lib/success-snackbar/success-snackbar.component.mjs +21 -0
  51. package/esm2022/lib/suffix-textbox/suffix-textbox.component.mjs +65 -0
  52. package/esm2022/lib/tab/tab.component.mjs +32 -0
  53. package/esm2022/lib/table/table.component.mjs +82 -0
  54. package/esm2022/lib/tag-mob-number/tag-mob-number.component.mjs +66 -0
  55. package/esm2022/lib/textarea/textarea.component.mjs +20 -0
  56. package/esm2022/lib/textbox/textbox.component.mjs +67 -0
  57. package/esm2022/lib/textbox-with-image/textbox-with-image.component.mjs +57 -0
  58. package/esm2022/lib/textbox-with-text/textbox-with-text.component.mjs +58 -0
  59. package/esm2022/lib/textbox-with-underscore/textbox-with-underscore.component.mjs +71 -0
  60. package/esm2022/lib/toggle/toggle.component.mjs +20 -0
  61. package/esm2022/lib/toggle-button/toggle-button.component.mjs +16 -0
  62. package/esm2022/lib/underscore-mob-number/underscore-mob-number.component.mjs +74 -0
  63. package/esm2022/lib/upload/upload.component.mjs +24 -0
  64. package/esm2022/lib/warning-snackbar/warning-snackbar.component.mjs +21 -0
  65. package/esm2022/master-control.mjs +5 -0
  66. package/esm2022/public-api.mjs +60 -0
  67. package/fesm2022/master-control.mjs +42763 -0
  68. package/fesm2022/master-control.mjs.map +1 -0
  69. package/index.d.ts +5 -0
  70. package/lib/add-document/add-document.component.d.ts +6 -0
  71. package/lib/addition-button/addition-button.component.d.ts +6 -0
  72. package/lib/age-date/age-date.component.d.ts +20 -0
  73. package/lib/amount-textbox/amount-textbox.component.d.ts +17 -0
  74. package/lib/annuity-rate-logo/annuity-rate-logo.component.d.ts +7 -0
  75. package/lib/autocomplete/autocomplete.component.d.ts +25 -0
  76. package/lib/benefit-card/benefit-card.component.d.ts +6 -0
  77. package/lib/button/button.component.d.ts +9 -0
  78. package/lib/card/card.component.d.ts +6 -0
  79. package/lib/checkbox/checkbox.component.d.ts +20 -0
  80. package/lib/discount/discount.component.d.ts +6 -0
  81. package/lib/discount-v2/discount-v2.component.d.ts +6 -0
  82. package/lib/dob/dob.component.d.ts +32 -0
  83. package/lib/download-document/download-document.component.d.ts +6 -0
  84. package/lib/email-with-domain/email-with-domain.component.d.ts +19 -0
  85. package/lib/error-snackbar/error-snackbar.component.d.ts +10 -0
  86. package/lib/grey-label/grey-label.component.d.ts +6 -0
  87. package/lib/header/header.component.d.ts +6 -0
  88. package/lib/hr-line/hr-line.component.d.ts +6 -0
  89. package/lib/hyperlink/hyperlink.component.d.ts +6 -0
  90. package/lib/icon-button/icon-button.component.d.ts +6 -0
  91. package/lib/iframe/iframe.component.d.ts +13 -0
  92. package/lib/image/image.component.d.ts +6 -0
  93. package/lib/image-upload/image-upload.component.d.ts +6 -0
  94. package/lib/in-built-benefit/in-built-benefit.component.d.ts +8 -0
  95. package/lib/info/info.component.d.ts +9 -0
  96. package/lib/info-textbox/info-textbox.component.d.ts +16 -0
  97. package/lib/label/label.component.d.ts +6 -0
  98. package/lib/label-value-card/label-value-card.component.d.ts +7 -0
  99. package/lib/loader/loader.component.d.ts +6 -0
  100. package/lib/master-control.component.d.ts +9 -0
  101. package/lib/master-control.service.d.ts +11 -0
  102. package/lib/medial-questions/medial-questions.component.d.ts +62 -0
  103. package/lib/mob-number/mob-number.component.d.ts +21 -0
  104. package/lib/multiple-select/multiple-select.component.d.ts +27 -0
  105. package/lib/neutral-snackbar/neutral-snackbar.component.d.ts +10 -0
  106. package/lib/other-benefits/other-benefits.component.d.ts +6 -0
  107. package/lib/otp-mob-number/otp-mob-number.component.d.ts +17 -0
  108. package/lib/otp-textbox/otp-textbox.component.d.ts +17 -0
  109. package/lib/page-nudge/page-nudge.component.d.ts +6 -0
  110. package/lib/pay-get-card/pay-get-card.component.d.ts +11 -0
  111. package/lib/radio/radio.component.d.ts +18 -0
  112. package/lib/search-multi-select/search-multi-select.component.d.ts +27 -0
  113. package/lib/select/select.component.d.ts +22 -0
  114. package/lib/select-textbox/select-textbox.component.d.ts +17 -0
  115. package/lib/stepper/stepper.component.d.ts +11 -0
  116. package/lib/sub-header/sub-header.component.d.ts +6 -0
  117. package/lib/subscript-textbox/subscript-textbox.component.d.ts +16 -0
  118. package/lib/success-snackbar/success-snackbar.component.d.ts +10 -0
  119. package/lib/suffix-textbox/suffix-textbox.component.d.ts +16 -0
  120. package/lib/tab/tab.component.d.ts +14 -0
  121. package/lib/table/table.component.d.ts +23 -0
  122. package/lib/tag-mob-number/tag-mob-number.component.d.ts +17 -0
  123. package/lib/textarea/textarea.component.d.ts +9 -0
  124. package/lib/textbox/textbox.component.d.ts +20 -0
  125. package/lib/textbox-with-image/textbox-with-image.component.d.ts +16 -0
  126. package/lib/textbox-with-text/textbox-with-text.component.d.ts +16 -0
  127. package/lib/textbox-with-underscore/textbox-with-underscore.component.d.ts +18 -0
  128. package/lib/toggle/toggle.component.d.ts +9 -0
  129. package/lib/toggle-button/toggle-button.component.d.ts +6 -0
  130. package/lib/underscore-mob-number/underscore-mob-number.component.d.ts +19 -0
  131. package/lib/upload/upload.component.d.ts +9 -0
  132. package/lib/warning-snackbar/warning-snackbar.component.d.ts +10 -0
  133. package/master-control-0.2.16.tgz +0 -0
  134. package/package.json +25 -12
  135. package/{src/public-api.ts → public-api.d.ts} +56 -60
  136. package/ng-package.json +0 -7
  137. package/src/lib/add-document/add-document.component.css +0 -50
  138. package/src/lib/add-document/add-document.component.html +0 -31
  139. package/src/lib/add-document/add-document.component.ts +0 -17
  140. package/src/lib/addition-button/addition-button.component.css +0 -16
  141. package/src/lib/addition-button/addition-button.component.html +0 -20
  142. package/src/lib/addition-button/addition-button.component.ts +0 -13
  143. package/src/lib/age-date/age-date.component.css +0 -126
  144. package/src/lib/age-date/age-date.component.html +0 -82
  145. package/src/lib/age-date/age-date.component.ts +0 -104
  146. package/src/lib/amount-textbox/amount-textbox.component.css +0 -131
  147. package/src/lib/amount-textbox/amount-textbox.component.html +0 -69
  148. package/src/lib/amount-textbox/amount-textbox.component.ts +0 -53
  149. package/src/lib/annuity-rate-logo/annuity-rate-logo.component.css +0 -9
  150. package/src/lib/annuity-rate-logo/annuity-rate-logo.component.html +0 -6
  151. package/src/lib/annuity-rate-logo/annuity-rate-logo.component.ts +0 -13
  152. package/src/lib/autocomplete/autocomplete.component.css +0 -240
  153. package/src/lib/autocomplete/autocomplete.component.html +0 -61
  154. package/src/lib/autocomplete/autocomplete.component.ts +0 -85
  155. package/src/lib/benefit-card/benefit-card.component.css +0 -46
  156. package/src/lib/benefit-card/benefit-card.component.html +0 -25
  157. package/src/lib/benefit-card/benefit-card.component.ts +0 -13
  158. package/src/lib/button/button.component.css +0 -24
  159. package/src/lib/button/button.component.html +0 -22
  160. package/src/lib/button/button.component.ts +0 -16
  161. package/src/lib/card/card.component.css +0 -37
  162. package/src/lib/card/card.component.html +0 -24
  163. package/src/lib/card/card.component.ts +0 -13
  164. package/src/lib/checkbox/checkbox.component.css +0 -65
  165. package/src/lib/checkbox/checkbox.component.html +0 -23
  166. package/src/lib/checkbox/checkbox.component.ts +0 -70
  167. package/src/lib/discount/discount.component.css +0 -45
  168. package/src/lib/discount/discount.component.html +0 -51
  169. package/src/lib/discount/discount.component.ts +0 -14
  170. package/src/lib/discount-v2/discount-v2.component.css +0 -34
  171. package/src/lib/discount-v2/discount-v2.component.html +0 -20
  172. package/src/lib/discount-v2/discount-v2.component.ts +0 -14
  173. package/src/lib/dob/dob.component.css +0 -117
  174. package/src/lib/dob/dob.component.html +0 -88
  175. package/src/lib/dob/dob.component.ts +0 -107
  176. package/src/lib/download-document/download-document.component.css +0 -53
  177. package/src/lib/download-document/download-document.component.html +0 -38
  178. package/src/lib/download-document/download-document.component.ts +0 -17
  179. package/src/lib/email-with-domain/email-with-domain.component.css +0 -130
  180. package/src/lib/email-with-domain/email-with-domain.component.html +0 -73
  181. package/src/lib/email-with-domain/email-with-domain.component.ts +0 -51
  182. package/src/lib/error-snackbar/error-snackbar.component.css +0 -36
  183. package/src/lib/error-snackbar/error-snackbar.component.html +0 -21
  184. package/src/lib/error-snackbar/error-snackbar.component.ts +0 -19
  185. package/src/lib/grey-label/grey-label.component.css +0 -13
  186. package/src/lib/grey-label/grey-label.component.html +0 -7
  187. package/src/lib/grey-label/grey-label.component.ts +0 -13
  188. package/src/lib/header/header.component.css +0 -13
  189. package/src/lib/header/header.component.html +0 -9
  190. package/src/lib/header/header.component.ts +0 -14
  191. package/src/lib/hr-line/hr-line.component.css +0 -13
  192. package/src/lib/hr-line/hr-line.component.html +0 -7
  193. package/src/lib/hr-line/hr-line.component.ts +0 -13
  194. package/src/lib/hyperlink/hyperlink.component.css +0 -18
  195. package/src/lib/hyperlink/hyperlink.component.html +0 -8
  196. package/src/lib/hyperlink/hyperlink.component.ts +0 -13
  197. package/src/lib/icon-button/icon-button.component.css +0 -20
  198. package/src/lib/icon-button/icon-button.component.html +0 -17
  199. package/src/lib/icon-button/icon-button.component.ts +0 -13
  200. package/src/lib/iframe/iframe.component.css +0 -0
  201. package/src/lib/iframe/iframe.component.html +0 -7
  202. package/src/lib/iframe/iframe.component.ts +0 -32
  203. package/src/lib/image/image.component.css +0 -7
  204. package/src/lib/image/image.component.html +0 -3
  205. package/src/lib/image/image.component.ts +0 -13
  206. package/src/lib/image-upload/image-upload.component.css +0 -67
  207. package/src/lib/image-upload/image-upload.component.html +0 -61
  208. package/src/lib/image-upload/image-upload.component.ts +0 -17
  209. package/src/lib/in-built-benefit/in-built-benefit.component.css +0 -58
  210. package/src/lib/in-built-benefit/in-built-benefit.component.html +0 -30
  211. package/src/lib/in-built-benefit/in-built-benefit.component.ts +0 -16
  212. package/src/lib/info/info.component.css +0 -25
  213. package/src/lib/info/info.component.html +0 -21
  214. package/src/lib/info/info.component.ts +0 -15
  215. package/src/lib/info-textbox/info-textbox.component.css +0 -121
  216. package/src/lib/info-textbox/info-textbox.component.html +0 -83
  217. package/src/lib/info-textbox/info-textbox.component.ts +0 -52
  218. package/src/lib/label/label.component.css +0 -13
  219. package/src/lib/label/label.component.html +0 -7
  220. package/src/lib/label/label.component.ts +0 -14
  221. package/src/lib/label-value-card/label-value-card.component.css +0 -34
  222. package/src/lib/label-value-card/label-value-card.component.html +0 -12
  223. package/src/lib/label-value-card/label-value-card.component.ts +0 -15
  224. package/src/lib/loader/loader.component.css +0 -127
  225. package/src/lib/loader/loader.component.html +0 -37
  226. package/src/lib/loader/loader.component.spec.ts +0 -23
  227. package/src/lib/loader/loader.component.ts +0 -13
  228. package/src/lib/master-control.component.css +0 -0
  229. package/src/lib/master-control.component.html +0 -216
  230. package/src/lib/master-control.component.spec.ts +0 -23
  231. package/src/lib/master-control.component.ts +0 -143
  232. package/src/lib/master-control.service.spec.ts +0 -16
  233. package/src/lib/master-control.service.ts +0 -214
  234. package/src/lib/medial-questions/medial-questions.component.css +0 -52
  235. package/src/lib/medial-questions/medial-questions.component.html +0 -250
  236. package/src/lib/medial-questions/medial-questions.component.ts +0 -40371
  237. package/src/lib/mob-number/mob-number.component.css +0 -141
  238. package/src/lib/mob-number/mob-number.component.html +0 -82
  239. package/src/lib/mob-number/mob-number.component.ts +0 -53
  240. package/src/lib/multiple-select/multiple-select.component.css +0 -331
  241. package/src/lib/multiple-select/multiple-select.component.html +0 -100
  242. package/src/lib/multiple-select/multiple-select.component.ts +0 -115
  243. package/src/lib/neutral-snackbar/neutral-snackbar.component.css +0 -31
  244. package/src/lib/neutral-snackbar/neutral-snackbar.component.html +0 -21
  245. package/src/lib/neutral-snackbar/neutral-snackbar.component.ts +0 -19
  246. package/src/lib/other-benefits/other-benefits.component.css +0 -78
  247. package/src/lib/other-benefits/other-benefits.component.html +0 -21
  248. package/src/lib/other-benefits/other-benefits.component.ts +0 -13
  249. package/src/lib/otp-mob-number/otp-mob-number.component.css +0 -171
  250. package/src/lib/otp-mob-number/otp-mob-number.component.html +0 -101
  251. package/src/lib/otp-mob-number/otp-mob-number.component.ts +0 -54
  252. package/src/lib/otp-textbox/otp-textbox.component.css +0 -168
  253. package/src/lib/otp-textbox/otp-textbox.component.html +0 -84
  254. package/src/lib/otp-textbox/otp-textbox.component.ts +0 -57
  255. package/src/lib/page-nudge/page-nudge.component.css +0 -35
  256. package/src/lib/page-nudge/page-nudge.component.html +0 -13
  257. package/src/lib/page-nudge/page-nudge.component.ts +0 -13
  258. package/src/lib/pay-get-card/pay-get-card.component.css +0 -36
  259. package/src/lib/pay-get-card/pay-get-card.component.html +0 -20
  260. package/src/lib/pay-get-card/pay-get-card.component.ts +0 -18
  261. package/src/lib/radio/radio.component.css +0 -57
  262. package/src/lib/radio/radio.component.html +0 -37
  263. package/src/lib/radio/radio.component.ts +0 -55
  264. package/src/lib/search-multi-select/search-multi-select.component.css +0 -325
  265. package/src/lib/search-multi-select/search-multi-select.component.html +0 -125
  266. package/src/lib/search-multi-select/search-multi-select.component.ts +0 -164
  267. package/src/lib/select/select.component.css +0 -246
  268. package/src/lib/select/select.component.html +0 -72
  269. package/src/lib/select/select.component.ts +0 -95
  270. package/src/lib/select-textbox/select-textbox.component.css +0 -262
  271. package/src/lib/select-textbox/select-textbox.component.html +0 -77
  272. package/src/lib/select-textbox/select-textbox.component.ts +0 -72
  273. package/src/lib/stepper/stepper.component.css +0 -25
  274. package/src/lib/stepper/stepper.component.html +0 -16
  275. package/src/lib/stepper/stepper.component.ts +0 -20
  276. package/src/lib/sub-header/sub-header.component.css +0 -13
  277. package/src/lib/sub-header/sub-header.component.html +0 -9
  278. package/src/lib/sub-header/sub-header.component.ts +0 -13
  279. package/src/lib/subscript-textbox/subscript-textbox.component.css +0 -139
  280. package/src/lib/subscript-textbox/subscript-textbox.component.html +0 -85
  281. package/src/lib/subscript-textbox/subscript-textbox.component.ts +0 -53
  282. package/src/lib/success-snackbar/success-snackbar.component.css +0 -32
  283. package/src/lib/success-snackbar/success-snackbar.component.html +0 -21
  284. package/src/lib/success-snackbar/success-snackbar.component.ts +0 -19
  285. package/src/lib/suffix-textbox/suffix-textbox.component.css +0 -157
  286. package/src/lib/suffix-textbox/suffix-textbox.component.html +0 -84
  287. package/src/lib/suffix-textbox/suffix-textbox.component.ts +0 -54
  288. package/src/lib/tab/tab.component.css +0 -19
  289. package/src/lib/tab/tab.component.html +0 -17
  290. package/src/lib/tab/tab.component.ts +0 -27
  291. package/src/lib/table/table.component.css +0 -121
  292. package/src/lib/table/table.component.html +0 -41
  293. package/src/lib/table/table.component.spec.ts +0 -23
  294. package/src/lib/table/table.component.ts +0 -84
  295. package/src/lib/tag-mob-number/tag-mob-number.component.css +0 -167
  296. package/src/lib/tag-mob-number/tag-mob-number.component.html +0 -95
  297. package/src/lib/tag-mob-number/tag-mob-number.component.ts +0 -55
  298. package/src/lib/textarea/textarea.component.css +0 -34
  299. package/src/lib/textarea/textarea.component.html +0 -23
  300. package/src/lib/textarea/textarea.component.ts +0 -16
  301. package/src/lib/textbox/textbox.component.css +0 -118
  302. package/src/lib/textbox/textbox.component.html +0 -80
  303. package/src/lib/textbox/textbox.component.ts +0 -55
  304. package/src/lib/textbox-with-image/textbox-with-image.component.css +0 -118
  305. package/src/lib/textbox-with-image/textbox-with-image.component.html +0 -82
  306. package/src/lib/textbox-with-image/textbox-with-image.component.ts +0 -47
  307. package/src/lib/textbox-with-text/textbox-with-text.component.css +0 -124
  308. package/src/lib/textbox-with-text/textbox-with-text.component.html +0 -84
  309. package/src/lib/textbox-with-text/textbox-with-text.component.ts +0 -53
  310. package/src/lib/textbox-with-underscore/textbox-with-underscore.component.css +0 -121
  311. package/src/lib/textbox-with-underscore/textbox-with-underscore.component.html +0 -79
  312. package/src/lib/textbox-with-underscore/textbox-with-underscore.component.ts +0 -62
  313. package/src/lib/toggle/toggle.component.css +0 -101
  314. package/src/lib/toggle/toggle.component.html +0 -39
  315. package/src/lib/toggle/toggle.component.ts +0 -16
  316. package/src/lib/toggle-button/toggle-button.component.css +0 -87
  317. package/src/lib/toggle-button/toggle-button.component.html +0 -34
  318. package/src/lib/toggle-button/toggle-button.component.ts +0 -14
  319. package/src/lib/underscore-mob-number/underscore-mob-number.component.css +0 -147
  320. package/src/lib/underscore-mob-number/underscore-mob-number.component.html +0 -87
  321. package/src/lib/underscore-mob-number/underscore-mob-number.component.ts +0 -65
  322. package/src/lib/upload/upload.component.css +0 -81
  323. package/src/lib/upload/upload.component.html +0 -62
  324. package/src/lib/upload/upload.component.ts +0 -20
  325. package/src/lib/warning-snackbar/warning-snackbar.component.css +0 -29
  326. package/src/lib/warning-snackbar/warning-snackbar.component.html +0 -21
  327. package/src/lib/warning-snackbar/warning-snackbar.component.ts +0 -19
  328. package/tsconfig.lib.json +0 -15
  329. package/tsconfig.lib.prod.json +0 -11
  330. package/tsconfig.spec.json +0 -15
@@ -1,167 +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
- .mobile-field .mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{
8
- transform: var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc(1 * (61.625px + var(--mat-mdc-form-field-label-offset-x, 0px))))) !important;
9
- }
10
- .error-message{
11
- color: red;
12
- }
13
-
14
- .prefix_alternate_mobile {
15
- font-size: 12px;
16
- font-weight: 400;
17
- color: #8F8F8F;
18
- padding: 10px 6px 10px 0px;
19
- border-right: 1px solid #dddddd;
20
- height: 20px;
21
- width: auto;
22
- display: flex;
23
- justify-content: center;
24
- align-items: center;
25
- position: relative;
26
- cursor: pointer;
27
- transform: translate(-6px, 0px);
28
- }
29
- .countryCode {
30
- gap: 4px;
31
- }
32
- * {
33
- font-family: "mulish" !important;
34
- }
35
-
36
- .checkbox-tag{
37
- font-size: 10px;
38
- font-weight: 700;
39
- color: #444;
40
- margin-right: 5px;
41
- }
42
-
43
- .checkbox{
44
- padding: 4px 8px 3px 0px;
45
- background: #f5f5f5;
46
- border-radius: 4px;
47
- margin-right: 8px;
48
- }
49
-
50
- .optional-checkbox.mat-mdc-checkbox label{
51
- font-size: 10px !important;
52
- font-weight: 700 !important;
53
- color: #444 !important;
54
- padding: 0px !important;
55
- margin-bottom: 2px;
56
- }
57
- .optional-checkbox .mdc-checkbox{
58
- flex: 0 0 12px !important;
59
- }
60
- .optional-checkbox, .mdc-checkbox__background{
61
- transform: translate(-2px, -1px);
62
- }
63
-
64
- /* focus css for mat-form-field */
65
- ::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
66
- .mat-mdc-notch-piece {
67
- border-color: var(--custom-border-color-focus, #ffbb00) !important;
68
- border-width: var(--custom-border-width-focus, 1.5px) !important;
69
- }
70
-
71
- ::ng-deep .mat-mdc-form-field {
72
- background-color: var(--custom-bg-color, #ffffff) !important;
73
- border-radius: var(--custom-border-radius , 7px) !important;
74
- }
75
-
76
- /* hover css for mat-form-field */
77
-
78
- ::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
79
- .mdc-text-field--focused
80
- ):hover
81
- .mdc-notched-outline
82
- .mdc-notched-outline__leading {
83
- border-color: var(--custom-border-color-hover, #ffbb00) !important;
84
- border-width: var(--custom-border-width-hover, 1.5px) !important;
85
- }
86
-
87
- ::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
88
- .mdc-text-field--focused
89
- ):hover
90
- .mdc-notched-outline
91
- .mdc-notched-outline__notch {
92
- border-color: var(--custom-border-color-hover, #ffbb00) !important;
93
- border-width: var(--custom-border-width-hover, 1.5px) !important;
94
- }
95
-
96
- ::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(
97
- .mdc-text-field--focused
98
- ):hover
99
- .mdc-notched-outline
100
- .mdc-notched-outline__trailing {
101
- border-color: var(--custom-border-color-hover, #ffbb00) !important;
102
- border-width: var(--custom-border-width-hover, 1.5px) !important;
103
- }
104
-
105
- /* regular css for mat-form-field */
106
- ::ng-deep .mdc-text-field--outlined .mat-mdc-notch-piece {
107
- border-color: var(--custom-border-color, #dddddd) !important;
108
- border-width: var(--custom-border-width, 1.5px) !important;
109
- }
110
-
111
- /* field css for mat-form-input-field */
112
- ::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled)
113
- .mdc-text-field__input {
114
- caret-color: var(--custom-caret-color, #ffbb00) !important;
115
- /* font-size: var(--custom-font-size, 16px) !important; */
116
- font-size: 12px !important;
117
- font-weight: var(--custom-font-weight, 400) !important;
118
- font-family: var(--custom-font-family, 'Mulish') !important;
119
- color: var(--custom-font-color, #444444) !important;
120
- }
121
- /* Error state for mat-form-field */
122
- ::ng-deep .mat-form-field-invalid
123
- .mdc-text-field--outlined .mat-mdc-notch-piece {
124
- border-color: var(--custom-border-color-error, red) !important;
125
- border-width: var(--custom-border-width-error, 1.5px) !important;
126
- }
127
-
128
- ::ng-deep .mat-mdc-form-field.mat-form-field-disabled{
129
- background: var(--custom-bg-color-disabled, #ECECEC) !important;
130
- }
131
- ::ng-deep .mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input {
132
- color : var(--custom-font-color-disabled, #999999) !important;
133
- }
134
- ::ng-deep .mdc-label {
135
- color: var(--custom-font-color, #444) !important;
136
- font-size: var(--custom-font-size, 16px) !important;
137
- font-weight: var(--custom-font-weight, 400) !important;
138
- font-family: var(--custom-font-family, 'Mulish') !important;
139
- }
140
- ::placeholder {
141
- color: #8f8f8f !important;
142
- font-size: 12px !important;
143
- }
144
- ::ng-deep .mat-mdc-form-field-hint-wrapper{
145
- padding: 0px !important;
146
- }
147
- ::ng-deep .mat-mdc-form-field-error-wrapper{
148
- padding: 0px !important;
149
- }
150
- ::ng-deep .mat-mdc-form-field-error{
151
- color: #EE0000 !important;
152
- font-size: 12px;
153
- font-weight: 500;
154
- font-family: "Mulish" !important;
155
- letter-spacing: 0;
156
- }
157
- ::ng-deep .mdc-text-field--outlined {
158
- --mdc-outlined-text-field-container-shape: var(--custom-border-radius , 7px) !important;
159
- }
160
- ::ng-deep .mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece {
161
- border-color: var(--custom-border-color-error, red) !important;
162
- border-width: var(--custom-border-width-error, 1.5px) !important;
163
- }
164
-
165
- ::ng-deep .mat-mdc-form-field-subscript-wrapper {
166
- display: none !important;
167
- }
@@ -1,95 +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
-
5
- >*</span
6
- ></label
7
- >
8
- <mat-form-field
9
- class="w-100 mobile-field"
10
- appearance="outline"
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
- <div matTextPrefix class="prefix_alternate_mobile primary">
33
- <div class="d-flex countryCode">
34
- <span class="country_code_input"> {{ CountryCode }} </span>
35
- <span
36
- ><img src="https://cdn.godigit.com/retail-life/down-arrow.svg" alt=""
37
- /></span>
38
- </div>
39
- </div>
40
- @if(reactiveFormControlobject()) {
41
- <input
42
- matInput
43
- autocomplete="none"
44
- [type]="field()?.controlType"
45
- [name]="field()?.fieldName"
46
- [id]="field()?.fieldName"
47
- autocomplete="none"
48
- [placeholder]="field()?.placeHolder"
49
- [maxLength]="field()?.validators?.maxLength"
50
- [minLength]="field()?.validators?.minLength"
51
- [disabled]="field()?.isDisable"
52
- [required]="field()?.validators?.isRequired"
53
- [pattern]="field()?.validators?.pattern"
54
- (input)="onInputChange($event)"
55
- (blur)="onInputBlur()"
56
- [value]="inputValue"
57
- [formControl]="reactiveFormControlobject()"
58
- />
59
- }@else {
60
- <input
61
- matInput
62
- autocomplete="none"
63
- [type]="field()?.controlType"
64
- [name]="field()?.fieldName"
65
- [id]="field()?.fieldName"
66
- autocomplete="none"
67
- [placeholder]="field()?.placeHolder"
68
- [maxLength]="field()?.validators?.maxLength"
69
- [minLength]="field()?.validators?.minLength"
70
- [disabled]="field()?.isDisable"
71
- [required]="field()?.validators?.isRequired"
72
- [pattern]="field()?.validators?.pattern"
73
- (input)="onInputChange($event)"
74
- (blur)="onInputBlur()"
75
- [value]="inputValue"
76
- />
77
- }
78
- <mat-error *ngIf="false">
79
- {{ field()?.validators?.requiredMessage }}
80
- </mat-error>
81
- </mat-form-field>
82
- <div>
83
- <span class="checkbox-tag">Tag as:</span>
84
- <span *ngFor="let option of field()?.options" class="checkbox">
85
- <mat-checkbox class="optional-checkbox">
86
- {{ option.label }}
87
- </mat-checkbox>
88
- </span>
89
- </div>
90
- <div class="error-message" *ngIf="false">
91
- {{ field()?.validators?.requiredMessage }}.
92
- </div>
93
- <div class="error-message" *ngIf="false">
94
- {{ field()?.validators?.patternMessage }}.
95
- </div>
@@ -1,55 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, input } from '@angular/core';
3
- import { MatCheckboxModule } from '@angular/material/checkbox';
4
- import { MatFormFieldModule } from '@angular/material/form-field';
5
- import { MatInputModule } from '@angular/material/input';
6
- import { NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
7
-
8
- @Component({
9
- selector: 'lib-tag-mob-number',
10
- standalone: true,
11
- imports: [
12
- MatInputModule,
13
- MatFormFieldModule,
14
- CommonModule,
15
- MatCheckboxModule,
16
- ReactiveFormsModule
17
- ],
18
- templateUrl: './tag-mob-number.component.html',
19
- styleUrl: './tag-mob-number.component.css',
20
- providers: [
21
- {
22
- provide: NG_VALUE_ACCESSOR,
23
- useExisting: TagMobNumberComponent,
24
- multi: true
25
- }
26
- ]
27
- })
28
- export class TagMobNumberComponent {
29
- CountryCode: any = '+91';
30
- field: any = input.required<any>();
31
- inputValue: any = null;
32
- reactiveFormControlobject : any = input<any>();
33
- _onChange: any = (inputValue:any) => {};
34
- _unTouched: any = () => {};
35
-
36
- writeValue(obj: any): void{
37
- this.inputValue=obj;
38
- };
39
- registerOnChange(fn: any): void{
40
- this._onChange = fn;
41
- };
42
- registerOnTouched(fn: any): void{
43
- this._unTouched = fn;
44
- };
45
- setDisabledState?(isDisabled: boolean): void{};
46
-
47
- onInputChange(event: any): void {
48
- this.inputValue = event.target.value;
49
- this._onChange(this.inputValue);
50
- }
51
-
52
- onInputBlur(): void {
53
- this._unTouched();
54
- }
55
- }
@@ -1,34 +0,0 @@
1
- * {
2
- font-family: "mulish" !important;
3
- }
4
- ::ng-deep textarea{
5
- width: -webkit-fill-available !important;
6
- border: 1.5px solid #dddddd !important;
7
- border-radius: 4px !important;
8
- caret-color: #ffbb00 !important;
9
- color: #444444 !important;
10
- }
11
- ::ng-deep textarea:focus{
12
- outline: none !important;
13
- border: 1.5px solid #ffbb00 !important;
14
- }
15
- ::ng-deep textarea:focus-visible{
16
- outline: none !important;
17
- border: 1.5px solid #ffbb00 !important;
18
- }
19
- ::ng-deep textarea{
20
- width: var(--custom-textarea-width, -webkit-fill-available) !important;
21
- border-radius: var(--custom-textarea-radius, 4px) !important;
22
- caret-color: var(--custom-textarea-caret-color, #ffbb00) !important;
23
- color: var(--custom-textarea-font-color, #444444) !important;
24
- border-color: var(--custom-textarea-border-color,#dddddd) !important;
25
- border-width: var(--custom-textarea-border-width, 1.5px solid) !important;
26
- }
27
- ::ng-deep textarea:focus{
28
- border-color: var(--custom-textarea-border-color-focus,#dddddd) !important;
29
- border-width: var(--custom-textarea-border-width-focus, 1.5px solid) !important;
30
- }
31
- ::ng-deep textarea:focus-visible{
32
- border-color: var(--custom-textarea-border-color-focus,#dddddd) !important;
33
- border-width: var(--custom-textarea-border-width-focus, 1.5px solid) !important;
34
- }
@@ -1,23 +0,0 @@
1
- <textarea
2
- [ngStyle]="{
3
- '--custom-textarea-width': field()?.controlStyle?.width ,
4
- '--custom-textarea-border-color': field()?.controlStyle?.borderColor ,
5
- '--custom-textarea-border-width': field()?.controlStyle?.borderWidth ,
6
- '--custom-textarea-border-color-focus': field()?.controlStyle?.focusBorderColor ,
7
- '--custom-textarea-border-width-focus': field()?.controlStyle?.focusBorderColor ,
8
- '--custom-textarea-radius': field()?.controlStyle?.borderRadius ,
9
- '--custom-textarea-caret-color': field()?.controlStyle?.caretColor ,
10
- '--custom-textarea-font-color': field()?.controlStyle?.color ,
11
- }"
12
- *ngIf="field() && field()?.isVisible"
13
- cols="40"
14
- rows="3"
15
- autocomplete="nope"
16
- [name]="field()?.fieldName"
17
- [id]="field()?.fieldName"
18
- [placeholder]="field()?.placeHolder"
19
- [maxLength]="field()?.validators?.maxLength"
20
- [minLength]="field()?.validators?.minLength"
21
- [disabled]="field()?.isDisable"
22
- [required]="field()?.validators?.isRequired"
23
- ></textarea>
@@ -1,16 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, input } from '@angular/core';
3
- import { MasterControlService } from '../master-control.service';
4
- import { ReactiveFormsModule } from '@angular/forms';
5
-
6
- @Component({
7
- selector: 'lib-textarea',
8
- standalone: true,
9
- imports: [CommonModule, ReactiveFormsModule],
10
- templateUrl: './textarea.component.html',
11
- styleUrl: './textarea.component.css'
12
- })
13
- export class TextareaComponent {
14
- constructor(public masterService : MasterControlService){}
15
- field : any = input.required<any>();
16
- }
@@ -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,80 +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
- />
69
- }
70
-
71
- <mat-error *ngIf="false">
72
- {{ field()?.validators?.isRequiredMessage }}
73
- </mat-error>
74
- </mat-form-field>
75
- <div class="error-message" *ngIf="false">
76
- {{ field()?.validators?.isRequiredMessage }}.
77
- </div>
78
- <div class="error-message" *ngIf="false">
79
- {{ field()?.validators?.patternMessage }}.
80
- </div>
@@ -1,55 +0,0 @@
1
- import { Component, forwardRef, input } from '@angular/core';
2
- import { MatInputModule } from '@angular/material/input';
3
- import { MatFormFieldModule } from '@angular/material/form-field';
4
- import { CommonModule } from '@angular/common';
5
- import { MasterControlService } from '../master-control.service';
6
- import { ControlValueAccessor, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
7
-
8
- @Component({
9
- selector: 'lib-textbox',
10
- standalone: true,
11
- imports: [
12
- MatInputModule,
13
- MatFormFieldModule ,
14
- CommonModule,
15
- ReactiveFormsModule
16
- ],
17
- templateUrl: './textbox.component.html',
18
- styleUrl: './textbox.component.css',
19
- providers: [
20
- {
21
- provide: NG_VALUE_ACCESSOR,
22
- useExisting: TextboxComponent,
23
- multi: true
24
- }
25
- ]
26
- })
27
- export class TextboxComponent implements ControlValueAccessor {
28
- constructor(public masterService : MasterControlService){}
29
- inputValue: any = null;
30
- field : any = input.required<any>();
31
- reactiveFormControlobject : any = input<any>();
32
-
33
- _onChange: any = (inputValue:any) => {};
34
- _unTouched: any = () => {};
35
-
36
- writeValue(obj: any): void{
37
- this.inputValue=obj;
38
- };
39
- registerOnChange(fn: any): void{
40
- this._onChange = fn;
41
- };
42
- registerOnTouched(fn: any): void{
43
- this._unTouched = fn;
44
- };
45
- setDisabledState?(isDisabled: boolean): void{};
46
-
47
- onInputChange(event: any): void {
48
- this.inputValue = event.target.value;
49
- this._onChange(this.inputValue);
50
- }
51
-
52
- onInputBlur(): void {
53
- this._unTouched();
54
- }
55
- }