From 434e65ef15501888a4224cfb3a3b0991d9f62c9e Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 1 Jul 2024 14:44:06 +0300 Subject: [PATCH] feat(addon-commerce): add `cvcHidden` input property --- .../input-card-grouped/input-card-grouped.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts index c065ff6d408d..bf41f781b63e 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts @@ -111,6 +111,9 @@ export class TuiInputCardGroupedComponent @Input() cardValidator = this.options.cardValidator; + @Input() + cvcHidden = this.options.cvcHidden; + @Input() set codeLength(length: TuiCodeCVCLength) { this.exampleTextCVC = '0'.repeat(length); @@ -130,8 +133,6 @@ export class TuiInputCardGroupedComponent exampleTextCVC = this.options.exampleTextCVC; - cvcHidden = this.options.cvcHidden; - maskCVC: MaskitoOptions = { mask: new Array(3).fill(TUI_DIGIT_REGEXP), };