@taiga-ui/addon-commerce 3.57.0 → 3.59.0-canary.10da730
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/components/input-card/abstract-input-card.d.ts +1 -1
- package/components/input-card/input-card.component.d.ts +1 -1
- package/components/input-card/input-card.directive.d.ts +1 -1
- package/components/input-card-grouped/input-card-grouped.component.d.ts +1 -1
- package/components/input-cvc/input-cvc.component.d.ts +1 -1
- package/components/input-expire/input-expire.component.d.ts +1 -1
- package/components/money/money.component.d.ts +1 -1
- package/components/money/pipes/fraction-part.pipe.d.ts +1 -1
- package/components/money/pipes/integer-part.pipe.d.ts +1 -1
- package/components/money/pipes/sign-symbol.pipe.d.ts +1 -1
- package/components/thumbnail-card/deprecated.d.ts +1 -1
- package/components/thumbnail-card/thumbnail-card.component.d.ts +1 -1
- package/{esm2015/components/input-card/abstract-input-card.js → esm2020/components/input-card/abstract-input-card.mjs} +3 -3
- package/esm2020/components/input-card/input-card.component.mjs +91 -0
- package/{esm2015/components/input-card/input-card.directive.js → esm2020/components/input-card/input-card.directive.mjs} +3 -3
- package/{esm2015/components/input-card/input-card.module.js → esm2020/components/input-card/input-card.module.mjs} +9 -11
- package/esm2020/components/input-card-grouped/input-card-grouped.component.mjs +337 -0
- package/{esm2015/components/input-card-grouped/input-card-grouped.module.js → esm2020/components/input-card-grouped/input-card-grouped.module.mjs} +19 -21
- package/esm2020/components/input-card-grouped/input-card-grouped.options.mjs +14 -0
- package/esm2020/components/input-card-grouped/input-card-grouped.providers.mjs +28 -0
- package/esm2020/components/input-cvc/input-cvc.component.mjs +91 -0
- package/{esm2015/components/input-cvc/input-cvc.module.js → esm2020/components/input-cvc/input-cvc.module.mjs} +8 -10
- package/esm2020/components/input-expire/input-expire.component.mjs +73 -0
- package/{esm2015/components/input-expire/input-expire.module.js → esm2020/components/input-expire/input-expire.module.mjs} +8 -10
- package/esm2020/components/money/money.component.mjs +78 -0
- package/{esm2015/components/money/money.module.js → esm2020/components/money/money.module.mjs} +5 -5
- package/{esm2015/components/money/pipes/fraction-part.pipe.js → esm2020/components/money/pipes/fraction-part.pipe.mjs} +3 -3
- package/{esm2015/components/money/pipes/integer-part.pipe.js → esm2020/components/money/pipes/integer-part.pipe.mjs} +9 -5
- package/{esm2015/components/money/pipes/sign-symbol.pipe.js → esm2020/components/money/pipes/sign-symbol.pipe.mjs} +3 -3
- package/esm2020/components/money/utils/format-fraction-part.mjs +11 -0
- package/esm2020/components/thumbnail-card/deprecated.mjs +35 -0
- package/{esm2015/components/thumbnail-card/thumbnail-card.component.js → esm2020/components/thumbnail-card/thumbnail-card.component.mjs} +7 -12
- package/{esm2015/components/thumbnail-card/thumbnail-card.module.js → esm2020/components/thumbnail-card/thumbnail-card.module.mjs} +5 -5
- package/{esm2015/pipes/currency/currency.module.js → esm2020/pipes/currency/currency.module.mjs} +4 -4
- package/{esm2015/pipes/currency/currency.pipe.js → esm2020/pipes/currency/currency.pipe.mjs} +3 -3
- package/{esm2015/pipes/format-card/format-card.module.js → esm2020/pipes/format-card/format-card.module.mjs} +4 -4
- package/{esm2015/pipes/format-card/format-card.pipe.js → esm2020/pipes/format-card/format-card.pipe.mjs} +3 -3
- package/{esm2015/utils/get-code-by-currency.js → esm2020/utils/get-code-by-currency.mjs} +2 -3
- package/{esm2015/utils/get-currency-by-code.js → esm2020/utils/get-currency-by-code.mjs} +2 -3
- package/esm2020/utils/get-payment-system.mjs +105 -0
- package/esm2020/validators/card-expire.validator.mjs +8 -0
- package/esm2020/validators/card-number.validator.mjs +8 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.mjs +450 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.mjs +230 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.mjs +128 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.mjs +110 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-money.mjs +205 -0
- package/fesm2015/taiga-ui-addon-commerce-components-money.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.mjs +100 -0
- package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-components.js → taiga-ui-addon-commerce-components.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-constants.js → taiga-ui-addon-commerce-constants.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-constants.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-enums.js → taiga-ui-addon-commerce-enums.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-enums.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-interfaces.mjs +4 -0
- package/fesm2015/taiga-ui-addon-commerce-interfaces.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-pipes.js → taiga-ui-addon-commerce-pipes.mjs} +15 -15
- package/fesm2015/taiga-ui-addon-commerce-pipes.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-tokens.js → taiga-ui-addon-commerce-tokens.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-tokens.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-types.mjs +4 -0
- package/fesm2015/taiga-ui-addon-commerce-types.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-utils.js → taiga-ui-addon-commerce-utils.mjs} +1 -2
- package/fesm2015/taiga-ui-addon-commerce-utils.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-validators.js → taiga-ui-addon-commerce-validators.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-validators.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce.js → taiga-ui-addon-commerce.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-components-input-card-grouped.mjs +440 -0
- package/fesm2020/taiga-ui-addon-commerce-components-input-card-grouped.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-input-card.js → fesm2020/taiga-ui-addon-commerce-components-input-card.mjs} +28 -38
- package/fesm2020/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-input-cvc.js → fesm2020/taiga-ui-addon-commerce-components-input-cvc.mjs} +27 -36
- package/fesm2020/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-input-expire.js → fesm2020/taiga-ui-addon-commerce-components-input-expire.mjs} +20 -29
- package/fesm2020/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-money.js → fesm2020/taiga-ui-addon-commerce-components-money.mjs} +67 -65
- package/fesm2020/taiga-ui-addon-commerce-components-money.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js → fesm2020/taiga-ui-addon-commerce-components-thumbnail-card.mjs} +19 -29
- package/fesm2020/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-components.mjs +11 -0
- package/fesm2020/taiga-ui-addon-commerce-components.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-constants.mjs +103 -0
- package/fesm2020/taiga-ui-addon-commerce-constants.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-enums.mjs +721 -0
- package/fesm2020/taiga-ui-addon-commerce-enums.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-interfaces.mjs +4 -0
- package/fesm2020/taiga-ui-addon-commerce-interfaces.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-pipes.mjs +67 -0
- package/fesm2020/taiga-ui-addon-commerce-pipes.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-tokens.mjs +23 -0
- package/fesm2020/taiga-ui-addon-commerce-tokens.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-types.mjs +4 -0
- package/fesm2020/taiga-ui-addon-commerce-types.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-utils.mjs +443 -0
- package/fesm2020/taiga-ui-addon-commerce-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-validators.mjs +25 -0
- package/fesm2020/taiga-ui-addon-commerce-validators.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce.mjs +14 -0
- package/fesm2020/taiga-ui-addon-commerce.mjs.map +1 -0
- package/package.json +172 -39
- package/pipes/currency/currency.pipe.d.ts +1 -1
- package/pipes/format-card/format-card.pipe.d.ts +1 -1
- package/types/code-length.d.ts +1 -1
- package/types/currency-variants.d.ts +2 -2
- package/types/money-sign.d.ts +2 -2
- package/types/payment-system.d.ts +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js +0 -917
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js +0 -635
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js +0 -507
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js +0 -480
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-money.umd.js +0 -272
- package/bundles/taiga-ui-addon-commerce-components-money.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js +0 -475
- package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components.umd.js +0 -51
- package/bundles/taiga-ui-addon-commerce-components.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-constants.umd.js +0 -114
- package/bundles/taiga-ui-addon-commerce-constants.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-enums.umd.js +0 -729
- package/bundles/taiga-ui-addon-commerce-enums.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js +0 -110
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-tokens.umd.js +0 -31
- package/bundles/taiga-ui-addon-commerce-tokens.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-types.umd.js +0 -11
- package/bundles/taiga-ui-addon-commerce-types.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.js +0 -794
- package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-validators.umd.js +0 -40
- package/bundles/taiga-ui-addon-commerce-validators.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce.umd.js +0 -69
- package/bundles/taiga-ui-addon-commerce.umd.js.map +0 -1
- package/components/input-card/package.json +0 -10
- package/components/input-card/taiga-ui-addon-commerce-components-input-card.d.ts +0 -5
- package/components/input-card-grouped/package.json +0 -10
- package/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.d.ts +0 -5
- package/components/input-cvc/package.json +0 -10
- package/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.d.ts +0 -5
- package/components/input-expire/package.json +0 -10
- package/components/input-expire/taiga-ui-addon-commerce-components-input-expire.d.ts +0 -5
- package/components/money/package.json +0 -10
- package/components/money/taiga-ui-addon-commerce-components-money.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/taiga-ui-addon-commerce-components.d.ts +0 -5
- package/components/thumbnail-card/package.json +0 -10
- package/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.d.ts +0 -5
- package/constants/package.json +0 -10
- package/constants/taiga-ui-addon-commerce-constants.d.ts +0 -5
- package/enums/package.json +0 -10
- package/enums/taiga-ui-addon-commerce-enums.d.ts +0 -5
- package/esm2015/components/input-card/input-card.component.js +0 -99
- package/esm2015/components/input-card-grouped/input-card-grouped.component.js +0 -357
- package/esm2015/components/input-card-grouped/input-card-grouped.options.js +0 -9
- package/esm2015/components/input-card-grouped/input-card-grouped.providers.js +0 -29
- package/esm2015/components/input-cvc/input-cvc.component.js +0 -98
- package/esm2015/components/input-expire/input-expire.component.js +0 -80
- package/esm2015/components/money/money.component.js +0 -83
- package/esm2015/components/money/utils/format-fraction-part.js +0 -8
- package/esm2015/components/thumbnail-card/deprecated.js +0 -40
- package/esm2015/utils/get-payment-system.js +0 -107
- package/esm2015/validators/card-expire.validator.js +0 -9
- package/esm2015/validators/card-number.validator.js +0 -8
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js +0 -458
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-money.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-constants.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-enums.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-interfaces.js +0 -4
- package/fesm2015/taiga-ui-addon-commerce-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-pipes.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-tokens.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-types.js +0 -4
- package/fesm2015/taiga-ui-addon-commerce-types.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-utils.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-validators.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce.js.map +0 -1
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-addon-commerce-interfaces.d.ts +0 -5
- package/pipes/package.json +0 -10
- package/pipes/taiga-ui-addon-commerce-pipes.d.ts +0 -5
- package/taiga-ui-addon-commerce.d.ts +0 -5
- package/tokens/package.json +0 -10
- package/tokens/taiga-ui-addon-commerce-tokens.d.ts +0 -5
- package/types/package.json +0 -10
- package/types/taiga-ui-addon-commerce-types.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-addon-commerce-utils.d.ts +0 -5
- package/validators/package.json +0 -10
- package/validators/taiga-ui-addon-commerce-validators.d.ts +0 -5
- /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
- /package/{esm2015/components/input-card/index.js → esm2020/components/input-card/index.mjs} +0 -0
- /package/{esm2015/components/input-card/input-card.options.js → esm2020/components/input-card/input-card.options.mjs} +0 -0
- /package/{esm2015/components/input-card/taiga-ui-addon-commerce-components-input-card.js → esm2020/components/input-card/taiga-ui-addon-commerce-components-input-card.mjs} +0 -0
- /package/{esm2015/components/input-card-grouped/index.js → esm2020/components/input-card-grouped/index.mjs} +0 -0
- /package/{esm2015/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.js → esm2020/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.mjs} +0 -0
- /package/{esm2015/components/input-cvc/index.js → esm2020/components/input-cvc/index.mjs} +0 -0
- /package/{esm2015/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.js → esm2020/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.mjs} +0 -0
- /package/{esm2015/components/input-expire/index.js → esm2020/components/input-expire/index.mjs} +0 -0
- /package/{esm2015/components/input-expire/taiga-ui-addon-commerce-components-input-expire.js → esm2020/components/input-expire/taiga-ui-addon-commerce-components-input-expire.mjs} +0 -0
- /package/{esm2015/components/money/index.js → esm2020/components/money/index.mjs} +0 -0
- /package/{esm2015/components/money/money.options.js → esm2020/components/money/money.options.mjs} +0 -0
- /package/{esm2015/components/money/taiga-ui-addon-commerce-components-money.js → esm2020/components/money/taiga-ui-addon-commerce-components-money.mjs} +0 -0
- /package/{esm2015/components/money/utils/format-sign-symbol.js → esm2020/components/money/utils/format-sign-symbol.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-addon-commerce-components.js → esm2020/components/taiga-ui-addon-commerce-components.mjs} +0 -0
- /package/{esm2015/components/thumbnail-card/index.js → esm2020/components/thumbnail-card/index.mjs} +0 -0
- /package/{esm2015/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.js → esm2020/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.mjs} +0 -0
- /package/{esm2015/constants/card-holder-mask.js → esm2020/constants/card-holder-mask.mjs} +0 -0
- /package/{esm2015/constants/card-mask.js → esm2020/constants/card-mask.mjs} +0 -0
- /package/{esm2015/constants/default-card-validator.js → esm2020/constants/default-card-validator.mjs} +0 -0
- /package/{esm2015/constants/index.js → esm2020/constants/index.mjs} +0 -0
- /package/{esm2015/constants/taiga-ui-addon-commerce-constants.js → esm2020/constants/taiga-ui-addon-commerce-constants.mjs} +0 -0
- /package/{esm2015/enums/currency-code.js → esm2020/enums/currency-code.mjs} +0 -0
- /package/{esm2015/enums/currency.js → esm2020/enums/currency.mjs} +0 -0
- /package/{esm2015/enums/index.js → esm2020/enums/index.mjs} +0 -0
- /package/{esm2015/enums/taiga-ui-addon-commerce-enums.js → esm2020/enums/taiga-ui-addon-commerce-enums.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/interfaces/card.js → esm2020/interfaces/card.mjs} +0 -0
- /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
- /package/{esm2015/interfaces/taiga-ui-addon-commerce-interfaces.js → esm2020/interfaces/taiga-ui-addon-commerce-interfaces.mjs} +0 -0
- /package/{esm2015/pipes/index.js → esm2020/pipes/index.mjs} +0 -0
- /package/{esm2015/pipes/taiga-ui-addon-commerce-pipes.js → esm2020/pipes/taiga-ui-addon-commerce-pipes.mjs} +0 -0
- /package/{esm2015/taiga-ui-addon-commerce.js → esm2020/taiga-ui-addon-commerce.mjs} +0 -0
- /package/{esm2015/tokens/i18n.js → esm2020/tokens/i18n.mjs} +0 -0
- /package/{esm2015/tokens/index.js → esm2020/tokens/index.mjs} +0 -0
- /package/{esm2015/tokens/taiga-ui-addon-commerce-tokens.js → esm2020/tokens/taiga-ui-addon-commerce-tokens.mjs} +0 -0
- /package/{esm2015/types/code-length.js → esm2020/types/code-length.mjs} +0 -0
- /package/{esm2015/types/currency-variants.js → esm2020/types/currency-variants.mjs} +0 -0
- /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
- /package/{esm2015/types/money-sign.js → esm2020/types/money-sign.mjs} +0 -0
- /package/{esm2015/types/payment-system.js → esm2020/types/payment-system.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-addon-commerce-types.js → esm2020/types/taiga-ui-addon-commerce-types.mjs} +0 -0
- /package/{esm2015/utils/create-auto-corrected-expire-pipe.js → esm2020/utils/create-auto-corrected-expire-pipe.mjs} +0 -0
- /package/{esm2015/utils/format-currency.js → esm2020/utils/format-currency.mjs} +0 -0
- /package/{esm2015/utils/get-currency-symbol.js → esm2020/utils/get-currency-symbol.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/is-card-length-valid.js → esm2020/utils/is-card-length-valid.mjs} +0 -0
- /package/{esm2015/utils/is-card-number-valid.js → esm2020/utils/is-card-number-valid.mjs} +0 -0
- /package/{esm2015/utils/is-expire-valid.js → esm2020/utils/is-expire-valid.mjs} +0 -0
- /package/{esm2015/utils/payment-system-icons.js → esm2020/utils/payment-system-icons.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-addon-commerce-utils.js → esm2020/utils/taiga-ui-addon-commerce-utils.mjs} +0 -0
- /package/{esm2015/validators/index.js → esm2020/validators/index.mjs} +0 -0
- /package/{esm2015/validators/luhn.validator.js → esm2020/validators/luhn.validator.mjs} +0 -0
- /package/{esm2015/validators/taiga-ui-addon-commerce-validators.js → esm2020/validators/taiga-ui-addon-commerce-validators.mjs} +0 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, EventEmitter, ChangeDetectorRef, ElementRef, TemplateRef, Component, ChangeDetectionStrategy, Optional, Self, Inject, ViewChild, Input, Output, ContentChild, HostListener, NgModule } from '@angular/core';
|
|
4
|
+
import * as i2 from '@angular/forms';
|
|
5
|
+
import { NgControl, FormsModule } from '@angular/forms';
|
|
6
|
+
import { maskitoDateOptionsGenerator } from '@maskito/kit';
|
|
7
|
+
import { TUI_INPUT_CARD_DEFAULT_OPTIONS, AbstractTuiInputCard } from '@taiga-ui/addon-commerce/components/input-card';
|
|
8
|
+
import { tuiDefaultCardValidator, TUI_CARD_MASK } from '@taiga-ui/addon-commerce/constants';
|
|
9
|
+
import * as i4 from '@taiga-ui/cdk';
|
|
10
|
+
import { tuiCreateToken, tuiProvideOptions, tuiCreateTokenFromFactory, tuiTypedFromEvent, tuiIsNativeFocusedIn, tuiIsElement, tuiIsInput, tuiIsNativeFocused, tuiAsFocusableItemAccessor, tuiAsControl, TuiAutoFocusDirective, tuiPure, TuiFocusableModule, TuiActiveZoneModule, TuiMapperPipeModule, TuiPreventDefaultModule, TuiLetModule, TuiResizeModule, TuiAutoFocusModule } from '@taiga-ui/cdk';
|
|
11
|
+
import * as i5 from '@taiga-ui/core';
|
|
12
|
+
import { TUI_MEDIA, TUI_DIGIT_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_MODE, TUI_TEXTFIELD_WATCHED_CONTROLLER, TUI_COMMON_ICONS, tuiAsDataListHost, MODE_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, TuiDataListDirective, TuiDataListComponent, TuiSvgModule, TuiWrapperModule, TuiDropdownModule } from '@taiga-ui/core';
|
|
13
|
+
import { TUI_ARROW_OPTIONS } from '@taiga-ui/kit';
|
|
14
|
+
import { WINDOW } from '@ng-web-apis/common';
|
|
15
|
+
import { TUI_CARD_NUMBER_TEXTS, TUI_CARD_EXPIRY_TEXTS, TUI_CARD_CVC_TEXTS } from '@taiga-ui/addon-commerce/tokens';
|
|
16
|
+
import * as i8 from 'rxjs';
|
|
17
|
+
import { startWith, switchMap, combineLatest, of, map } from 'rxjs';
|
|
18
|
+
import * as i1 from '@angular/common';
|
|
19
|
+
import { CommonModule } from '@angular/common';
|
|
20
|
+
import * as i3 from '@maskito/angular';
|
|
21
|
+
import { MaskitoModule } from '@maskito/angular';
|
|
22
|
+
import * as i6 from '@tinkoff/ng-polymorpheus';
|
|
23
|
+
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
24
|
+
import * as i7 from '@taiga-ui/addon-commerce/pipes';
|
|
25
|
+
import { TuiFormatCardModule } from '@taiga-ui/addon-commerce/pipes';
|
|
26
|
+
|
|
27
|
+
const TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS = Object.assign(Object.assign({}, TUI_INPUT_CARD_DEFAULT_OPTIONS), { cardValidator: tuiDefaultCardValidator, exampleText: `0000 0000 0000 0000`, exampleTextCVC: `000` });
|
|
28
|
+
const TUI_INPUT_CARD_GROUPED_OPTIONS = tuiCreateToken(TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS);
|
|
29
|
+
function tuiInputCardGroupedOptionsProvider(options) {
|
|
30
|
+
return tuiProvideOptions(TUI_INPUT_CARD_GROUPED_OPTIONS, options, TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* InputCardGrouped texts
|
|
35
|
+
*/
|
|
36
|
+
const TUI_INPUT_CARD_GROUPED_TEXTS = tuiCreateTokenFromFactory(() => {
|
|
37
|
+
const win = inject(WINDOW);
|
|
38
|
+
const cardNumberTexts = inject(TUI_CARD_NUMBER_TEXTS);
|
|
39
|
+
const expiryTexts = inject(TUI_CARD_EXPIRY_TEXTS);
|
|
40
|
+
const cvcTexts = inject(TUI_CARD_CVC_TEXTS);
|
|
41
|
+
const { desktopSmall } = inject(TUI_MEDIA);
|
|
42
|
+
const media = win.matchMedia(`screen and (min-width: ${(desktopSmall - 1) / 16}em)`);
|
|
43
|
+
return tuiTypedFromEvent(media, `change`).pipe(startWith(null), switchMap(() => combineLatest([
|
|
44
|
+
of(Number(media.matches)),
|
|
45
|
+
cardNumberTexts,
|
|
46
|
+
expiryTexts,
|
|
47
|
+
cvcTexts,
|
|
48
|
+
])), map(([index, cardNumber, expiry, cvcTexts]) => ({
|
|
49
|
+
cardNumberText: cardNumber[index],
|
|
50
|
+
expiryText: expiry[index],
|
|
51
|
+
cvcText: cvcTexts[index],
|
|
52
|
+
})));
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const EXPIRE_COMPLETE_LENGTH = 5; // MM/YY
|
|
56
|
+
class TuiInputCardGroupedComponent extends AbstractTuiInputCard {
|
|
57
|
+
set codeLength(length) {
|
|
58
|
+
this.exampleTextCVC = '0'.repeat(length);
|
|
59
|
+
this.maskCVC = {
|
|
60
|
+
mask: new Array(length).fill(TUI_DIGIT_REGEXP),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
constructor(control, cdr, el, mode$, cardGroupedTexts$, controller, icons, arrowOptions, options) {
|
|
64
|
+
super(control, cdr, options);
|
|
65
|
+
this.el = el;
|
|
66
|
+
this.mode$ = mode$;
|
|
67
|
+
this.cardGroupedTexts$ = cardGroupedTexts$;
|
|
68
|
+
this.controller = controller;
|
|
69
|
+
this.icons = icons;
|
|
70
|
+
this.arrowOptions = arrowOptions;
|
|
71
|
+
this.expireInert = false;
|
|
72
|
+
this.exampleText = this.options.exampleText;
|
|
73
|
+
this.cardValidator = this.options.cardValidator;
|
|
74
|
+
this.autofilledChange = new EventEmitter();
|
|
75
|
+
this.exampleTextCVC = this.options.exampleTextCVC;
|
|
76
|
+
this.maskCVC = {
|
|
77
|
+
mask: new Array(3).fill(TUI_DIGIT_REGEXP),
|
|
78
|
+
};
|
|
79
|
+
this.maskCard = {
|
|
80
|
+
mask: TUI_CARD_MASK,
|
|
81
|
+
};
|
|
82
|
+
this.maskExpire = maskitoDateOptionsGenerator({
|
|
83
|
+
mode: 'mm/yy',
|
|
84
|
+
separator: '/',
|
|
85
|
+
});
|
|
86
|
+
this.open = false;
|
|
87
|
+
}
|
|
88
|
+
get nativeFocusableElement() {
|
|
89
|
+
var _a, _b;
|
|
90
|
+
return (_b = (_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement) !== null && _b !== void 0 ? _b : null;
|
|
91
|
+
}
|
|
92
|
+
get focused() {
|
|
93
|
+
return this.open || tuiIsNativeFocusedIn(this.el.nativeElement);
|
|
94
|
+
}
|
|
95
|
+
get appearance() {
|
|
96
|
+
return this.controller.appearance;
|
|
97
|
+
}
|
|
98
|
+
get card() {
|
|
99
|
+
var _a;
|
|
100
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.card) || '';
|
|
101
|
+
}
|
|
102
|
+
get expire() {
|
|
103
|
+
var _a;
|
|
104
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.expire) || '';
|
|
105
|
+
}
|
|
106
|
+
get cvc() {
|
|
107
|
+
var _a;
|
|
108
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.cvc) || '';
|
|
109
|
+
}
|
|
110
|
+
get hasCleaner() {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim()) && !this.readOnly && !this.computedDisabled;
|
|
113
|
+
}
|
|
114
|
+
get hasDropdown() {
|
|
115
|
+
return !!this.dropdown;
|
|
116
|
+
}
|
|
117
|
+
get placeholderRaised() {
|
|
118
|
+
return (this.computedFocused && !this.readOnly) || this.hasCardNumber;
|
|
119
|
+
}
|
|
120
|
+
get hasCardNumber() {
|
|
121
|
+
var _a, _b;
|
|
122
|
+
return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim());
|
|
123
|
+
}
|
|
124
|
+
get idCard() {
|
|
125
|
+
return `${this.id}_card`;
|
|
126
|
+
}
|
|
127
|
+
get idExpire() {
|
|
128
|
+
return `${this.id}_expire`;
|
|
129
|
+
}
|
|
130
|
+
get idCVC() {
|
|
131
|
+
return `${this.id}_cvc`;
|
|
132
|
+
}
|
|
133
|
+
get isCardCollapsed() {
|
|
134
|
+
return this.isFocusable(this.card) && !this.cardFocused;
|
|
135
|
+
}
|
|
136
|
+
get autocompleteExpire() {
|
|
137
|
+
return this.autocompleteEnabled ? 'cc-exp' : 'off';
|
|
138
|
+
}
|
|
139
|
+
get autocompleteCVC() {
|
|
140
|
+
return this.autocompleteEnabled ? 'cc-csc' : 'off';
|
|
141
|
+
}
|
|
142
|
+
get tailLength() {
|
|
143
|
+
return this.hasExtraSpace ? 5 : 4;
|
|
144
|
+
}
|
|
145
|
+
// Safari expiration date autofill workaround
|
|
146
|
+
get name() {
|
|
147
|
+
return this.autocompleteEnabled ? 'ccexpiryyear' : null;
|
|
148
|
+
}
|
|
149
|
+
get cardPrefilled() {
|
|
150
|
+
return !!this.card.match(TUI_NON_DIGIT_REGEXP);
|
|
151
|
+
}
|
|
152
|
+
get cvcPrefilled() {
|
|
153
|
+
return !!this.cvc.match(TUI_NON_DIGIT_REGEXP);
|
|
154
|
+
}
|
|
155
|
+
get cardFocusable() {
|
|
156
|
+
return this.focusable && !this.cardPrefilled;
|
|
157
|
+
}
|
|
158
|
+
get expireFocusable() {
|
|
159
|
+
return this.isFocusable(this.card) && !this.expireInert;
|
|
160
|
+
}
|
|
161
|
+
get cvcFocusable() {
|
|
162
|
+
return this.isFocusable(this.card);
|
|
163
|
+
}
|
|
164
|
+
get masked() {
|
|
165
|
+
return this.cardPrefilled ? `*${this.card.slice(-4)}` : '*';
|
|
166
|
+
}
|
|
167
|
+
get expireSelectionStart() {
|
|
168
|
+
var _a;
|
|
169
|
+
return ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement.selectionStart) || 0;
|
|
170
|
+
}
|
|
171
|
+
onEsc() {
|
|
172
|
+
this.open = false;
|
|
173
|
+
}
|
|
174
|
+
onArrow(element, step) {
|
|
175
|
+
var _a;
|
|
176
|
+
this.open = this.hasDropdown;
|
|
177
|
+
this.cdr.detectChanges();
|
|
178
|
+
(_a = this.datalist) === null || _a === void 0 ? void 0 : _a.onKeyDownArrow(element, step);
|
|
179
|
+
}
|
|
180
|
+
handleOption(option) {
|
|
181
|
+
var _a, _b;
|
|
182
|
+
const { card = '', expire = '', cvc = '' } = option;
|
|
183
|
+
const { bin } = this;
|
|
184
|
+
const element = (!expire && ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement)) || ((_b = this.inputCVC) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
185
|
+
this.value = { card, expire, cvc };
|
|
186
|
+
this.updateBin(bin);
|
|
187
|
+
this.open = false;
|
|
188
|
+
this.expireInert = !!expire;
|
|
189
|
+
element === null || element === void 0 ? void 0 : element.focus();
|
|
190
|
+
}
|
|
191
|
+
onCardChange(card) {
|
|
192
|
+
const { value, bin } = this;
|
|
193
|
+
const parsed = card.split(' ').join('');
|
|
194
|
+
if (value && value.card === parsed) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
this.updateProperty(parsed, 'card');
|
|
198
|
+
this.updateBin(bin);
|
|
199
|
+
if (this.cardValidator(this.card) && !this.expire && this.inputExpire) {
|
|
200
|
+
this.focusExpire();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
onExpireChange(expire) {
|
|
204
|
+
this.updateProperty(expire, 'expire');
|
|
205
|
+
if (expire.length === EXPIRE_COMPLETE_LENGTH &&
|
|
206
|
+
this.expireSelectionStart >= EXPIRE_COMPLETE_LENGTH) {
|
|
207
|
+
this.focusCVC();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
onCVCChange(cvc) {
|
|
211
|
+
this.updateProperty(cvc, 'cvc');
|
|
212
|
+
}
|
|
213
|
+
transform({ offsetWidth }) {
|
|
214
|
+
return this.isCardCollapsed ? `translate3d(${offsetWidth}px, 0, 0)` : '';
|
|
215
|
+
}
|
|
216
|
+
onActiveZoneChange(active) {
|
|
217
|
+
this.updateFocused(active);
|
|
218
|
+
this.open = active && this.open;
|
|
219
|
+
}
|
|
220
|
+
onMouseDown(event) {
|
|
221
|
+
if (tuiIsElement(event.target) && tuiIsInput(event.target)) {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
this.focusInput();
|
|
226
|
+
}
|
|
227
|
+
onScroll({ currentTarget }) {
|
|
228
|
+
if (tuiIsElement(currentTarget)) {
|
|
229
|
+
currentTarget.scrollLeft = 0;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
clear() {
|
|
233
|
+
this.expireInert = false;
|
|
234
|
+
this.value = null;
|
|
235
|
+
this.focusCard();
|
|
236
|
+
}
|
|
237
|
+
toggle() {
|
|
238
|
+
this.open = !this.open;
|
|
239
|
+
}
|
|
240
|
+
writeValue(value) {
|
|
241
|
+
const { bin } = this;
|
|
242
|
+
super.writeValue(value);
|
|
243
|
+
this.updateBin(bin);
|
|
244
|
+
this.expireInert = !!this.expire && this.cardPrefilled;
|
|
245
|
+
}
|
|
246
|
+
/** Public API for manual focus management */
|
|
247
|
+
focusCard() {
|
|
248
|
+
var _a;
|
|
249
|
+
(_a = this.cardNumberAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
250
|
+
}
|
|
251
|
+
focusExpire() {
|
|
252
|
+
var _a;
|
|
253
|
+
(_a = this.expireCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
254
|
+
}
|
|
255
|
+
focusCVC() {
|
|
256
|
+
var _a;
|
|
257
|
+
(_a = this.cvcCardAutofocusRef) === null || _a === void 0 ? void 0 : _a.focus();
|
|
258
|
+
}
|
|
259
|
+
get cardFocused() {
|
|
260
|
+
return !!this.inputCard && tuiIsNativeFocused(this.inputCard.nativeElement);
|
|
261
|
+
}
|
|
262
|
+
get hasExtraSpace() {
|
|
263
|
+
return this.card.length % 4 > 0;
|
|
264
|
+
}
|
|
265
|
+
isFocusable(card) {
|
|
266
|
+
return this.focusable && (this.cardValidator(card) || this.cardPrefilled);
|
|
267
|
+
}
|
|
268
|
+
updateBin(oldBin) {
|
|
269
|
+
const { bin } = this;
|
|
270
|
+
if (bin !== oldBin && !this.cardPrefilled) {
|
|
271
|
+
this.binChange.emit(bin);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
updateProperty(value, propName) {
|
|
275
|
+
const { card = '', expire = '', cvc = '' } = this.value || {};
|
|
276
|
+
const newValue = { card, expire, cvc };
|
|
277
|
+
newValue[propName] = value;
|
|
278
|
+
this.value = newValue.expire || newValue.cvc || newValue.card ? newValue : null;
|
|
279
|
+
}
|
|
280
|
+
focusInput() {
|
|
281
|
+
var _a, _b, _c;
|
|
282
|
+
const element = (this.cardFocusable && ((_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement)) ||
|
|
283
|
+
(this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
|
|
284
|
+
((_c = this.inputCVC) === null || _c === void 0 ? void 0 : _c.nativeElement);
|
|
285
|
+
element === null || element === void 0 ? void 0 : element.focus();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
TuiInputCardGroupedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardGroupedComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: ElementRef }, { token: TUI_MODE }, { token: TUI_INPUT_CARD_GROUPED_TEXTS }, { token: TUI_TEXTFIELD_WATCHED_CONTROLLER }, { token: TUI_COMMON_ICONS }, { token: TUI_ARROW_OPTIONS }, { token: TUI_INPUT_CARD_GROUPED_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
289
|
+
TuiInputCardGroupedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCardGroupedComponent, selector: "tui-input-card-grouped", inputs: { exampleText: "exampleText", cardValidator: "cardValidator", codeLength: "codeLength" }, outputs: { autofilledChange: "autofilledChange" }, host: { attributes: { "data-size": "l" }, listeners: { "$.data-mode.attr": "mode$", "keydown.esc": "onEsc()", "keydown.arrowDown.prevent": "onArrow($event.target,1)", "keydown.arrowUp.prevent": "onArrow($event.target,-1)" } }, providers: [
|
|
290
|
+
tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
|
|
291
|
+
tuiAsControl(TuiInputCardGroupedComponent),
|
|
292
|
+
tuiAsDataListHost(TuiInputCardGroupedComponent),
|
|
293
|
+
MODE_PROVIDER,
|
|
294
|
+
TEXTFIELD_CONTROLLER_PROVIDER,
|
|
295
|
+
], queries: [{ propertyName: "dropdown", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef }, { propertyName: "datalist", first: true, predicate: TuiDataListComponent, descendants: true }], viewQueries: [{ propertyName: "inputCard", first: true, predicate: ["inputCard"], descendants: true }, { propertyName: "cardNumberAutofocusRef", first: true, predicate: ["inputCard"], descendants: true, read: TuiAutoFocusDirective }, { propertyName: "inputExpire", first: true, predicate: ["inputExpire"], descendants: true }, { propertyName: "expireCardAutofocusRef", first: true, predicate: ["inputExpire"], descendants: true, read: TuiAutoFocusDirective }, { propertyName: "inputCVC", first: true, predicate: ["inputCVC"], descendants: true }, { propertyName: "cvcCardAutofocusRef", first: true, predicate: ["inputCVC"], descendants: true, read: TuiAutoFocusDirective }], usesInheritance: true, ngImport: i0, template: "<div\n *ngIf=\"cardGroupedTexts$ | async as texts\"\n tuiDropdownLimitWidth=\"fixed\"\n tuiWrapper\n class=\"t-common-wrapper\"\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [tuiDropdown]=\"dropdown || ''\"\n [tuiDropdownManual]=\"open\"\n (mousedown)=\"onMouseDown($event)\"\n (scroll)=\"onScroll($event)\"\n (tuiActiveZoneChange)=\"onActiveZoneChange($event)\"\n>\n <div class=\"t-wrapper\">\n <label\n *tuiLet=\"value?.card | tuiFormatCard: cardPrefilled as formattedCard\"\n tuiPreventDefault=\"click\"\n >\n <input\n #inputCard\n automation-id=\"tui-input-card-grouped__card\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input t-input_card\"\n [attr.aria-invalid]=\"!cardPrefilled && !(this.card | tuiMapper: cardValidator)\"\n [attr.id]=\"idCard\"\n [autocomplete]=\"autocompleteCard\"\n [class.t-input_hidden]=\"!card.length && focused\"\n [class.t-input_inert]=\"cardPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCard\"\n [ngModel]=\"formattedCard\"\n [placeholder]=\"cardPrefilled ? '' : exampleText\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cardFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCardChange($event)\"\n />\n <span\n aria-hidden=\"true\"\n translate=\"no\"\n class=\"t-collapsed\"\n [attr.data-before]=\"masked\"\n [class.t-collapsed_enable-mask]=\"isCardCollapsed\"\n (tuiResize)=\"(0)\"\n >\n <span\n #ghost\n class=\"t-ghost\"\n [textContent]=\"formattedCard.slice(-tailLength)\"\n ></span>\n\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [style.transform]=\"transform(ghost)\"\n >\n {{ formattedCard }}\n </span>\n </span>\n </span>\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cardNumberText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_expire\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputExpire\n automation-id=\"tui-input-card-grouped__expire\"\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n class=\"t-input\"\n [attr.id]=\"idExpire\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocompleteExpire\"\n [class.t-input_inert]=\"!expireFocusable\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskExpire\"\n [ngModel]=\"expire\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"expireFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onExpireChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.expiryText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_cvc\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputCVC\n automation-id=\"tui-input-card-grouped__cvc\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input\"\n [attr.id]=\"idCVC\"\n [autocomplete]=\"autocompleteCVC\"\n [class.t-input_prefilled]=\"cvcPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCVC\"\n [ngModel]=\"cvc\"\n [placeholder]=\"cvcPrefilled ? '\u2022\u2022\u2022' : exampleTextCVC\"\n [readOnly]=\"readOnly || cvcPrefilled\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cvcFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCVCChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cvcText }}\n </span>\n </label>\n </div>\n <div class=\"t-icons\">\n <div\n *ngIf=\"icon\"\n class=\"t-icon-outlet\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as text\"\n automation-id=\"tui-input-card-grouped__icon\"\n class=\"t-card\"\n [src]=\"text\"\n ></tui-svg>\n </div>\n <tui-svg\n *ngIf=\"hasCleaner\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__cleaner\"\n tuiWrapper\n class=\"t-icon\"\n [src]=\"icons.close\"\n (click)=\"clear()\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"hasDropdown\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__dropdown\"\n tuiWrapper\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n [src]=\"arrowOptions.iconLarge\"\n (click)=\"toggle()\"\n ></tui-svg>\n </div>\n</div>\n", styles: [":host{display:block;height:var(--tui-height-l);width:29.5rem;border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{--tui-autofill: var(--tui-autofill-night)}:host :host-context(tui-root._mobile){width:18rem}.t-outline{height:100%;width:100%}.t-common-wrapper{position:relative;height:100%;width:100%;overflow:hidden}.t-wrapper{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;width:100%;height:100%}.t-wrapper_cvc{margin-left:7.1875rem;transform:translate3d(100%,0,0)}:host-context(tui-root._mobile) .t-wrapper_cvc{margin-left:4.0625rem}.t-wrapper_expire{transform:translate3d(100%,0,0)}.t-wrapper_active{transform:translate3d(6.5625rem,0,0)}:host-context(tui-root._mobile) .t-wrapper_active{transform:translate3d(4.125rem,0,0)}.t-card{width:2rem;height:2rem;margin-right:.5rem;color:#1434cb}.t-collapsed{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;border:0;padding-left:1rem;line-height:2.25rem;pointer-events:none}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:hover,.t-collapsed:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-collapsed::-webkit-caps-lock-indicator,.t-collapsed::-webkit-contacts-auto-fill-button,.t-collapsed::-webkit-credit-card-auto-fill-button,.t-collapsed::-webkit-credentials-auto-fill-button,.t-collapsed::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-collapsed::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-collapsed::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-collapsed::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:hover,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:focus,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-collapsed::placeholder,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._disabled),.t-collapsed :host-context(tui-textarea._disabled),.t-collapsed :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-collapsed_enable-mask:before{content:attr(data-before)}.t-collapsed_enable-mask .t-collapsed-wrapper{left:1.375rem}.t-collapsed-wrapper{position:absolute;top:0;display:block;width:100%;height:100%;overflow:hidden}.t-value{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;bottom:0;right:100%;display:block;transform:translate3d(100%,0,0)}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border:0;padding:0 1rem}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:-webkit-autofill,.t-input:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input::-webkit-caps-lock-indicator,.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-input::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-input::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-input::placeholder,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-input,.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-textarea._disabled),.t-input :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-input,.t-input :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-input::placeholder{color:var(--tui-text-03);opacity:1}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}.t-input.t-input.t-input_card:not(.t-input_hidden),:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden),.t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,.t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill{caret-color:var(--tui-base-09);color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button,:host[data-mode=onDark] .t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input_inert{pointer-events:none}.t-icons{position:absolute;right:.75rem;display:flex;align-items:center;height:100%}.t-icon-outlet{display:flex}.t-icon{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-icon,:host._disabled .t-icon{pointer-events:none}.t-icon_rotated{transform:rotate(180deg)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1.125rem 1rem;line-height:1.25rem}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}.t-ghost{visibility:hidden}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "directive", type: i3.MaskitoCva, selector: "input[maskito], textarea[maskito]", inputs: ["maskito"] }, { kind: "directive", type: i4.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { kind: "component", type: i5.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { kind: "directive", type: i5.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i4.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { kind: "directive", type: i5.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i5.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { kind: "directive", type: i5.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { kind: "directive", type: i5.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { kind: "directive", type: i5.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { kind: "directive", type: i4.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", inputs: ["tuiPreventDefault"] }, { kind: "directive", type: i6.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i4.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "directive", type: i4.TuiResizeDirective, selector: "[tuiResize]", outputs: ["tuiResize"] }, { kind: "directive", type: i4.TuiAutoFocusDirective, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TuiMapperPipe, name: "tuiMapper" }, { kind: "pipe", type: i7.TuiFormatCardPipe, name: "tuiFormatCard" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
296
|
+
__decorate([
|
|
297
|
+
tuiPure
|
|
298
|
+
], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardGroupedComponent, decorators: [{
|
|
300
|
+
type: Component,
|
|
301
|
+
args: [{ selector: 'tui-input-card-grouped', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
302
|
+
tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
|
|
303
|
+
tuiAsControl(TuiInputCardGroupedComponent),
|
|
304
|
+
tuiAsDataListHost(TuiInputCardGroupedComponent),
|
|
305
|
+
MODE_PROVIDER,
|
|
306
|
+
TEXTFIELD_CONTROLLER_PROVIDER,
|
|
307
|
+
], host: {
|
|
308
|
+
'($.data-mode.attr)': 'mode$',
|
|
309
|
+
'data-size': 'l',
|
|
310
|
+
}, template: "<div\n *ngIf=\"cardGroupedTexts$ | async as texts\"\n tuiDropdownLimitWidth=\"fixed\"\n tuiWrapper\n class=\"t-common-wrapper\"\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [tuiDropdown]=\"dropdown || ''\"\n [tuiDropdownManual]=\"open\"\n (mousedown)=\"onMouseDown($event)\"\n (scroll)=\"onScroll($event)\"\n (tuiActiveZoneChange)=\"onActiveZoneChange($event)\"\n>\n <div class=\"t-wrapper\">\n <label\n *tuiLet=\"value?.card | tuiFormatCard: cardPrefilled as formattedCard\"\n tuiPreventDefault=\"click\"\n >\n <input\n #inputCard\n automation-id=\"tui-input-card-grouped__card\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input t-input_card\"\n [attr.aria-invalid]=\"!cardPrefilled && !(this.card | tuiMapper: cardValidator)\"\n [attr.id]=\"idCard\"\n [autocomplete]=\"autocompleteCard\"\n [class.t-input_hidden]=\"!card.length && focused\"\n [class.t-input_inert]=\"cardPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCard\"\n [ngModel]=\"formattedCard\"\n [placeholder]=\"cardPrefilled ? '' : exampleText\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cardFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCardChange($event)\"\n />\n <span\n aria-hidden=\"true\"\n translate=\"no\"\n class=\"t-collapsed\"\n [attr.data-before]=\"masked\"\n [class.t-collapsed_enable-mask]=\"isCardCollapsed\"\n (tuiResize)=\"(0)\"\n >\n <span\n #ghost\n class=\"t-ghost\"\n [textContent]=\"formattedCard.slice(-tailLength)\"\n ></span>\n\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [style.transform]=\"transform(ghost)\"\n >\n {{ formattedCard }}\n </span>\n </span>\n </span>\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cardNumberText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_expire\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputExpire\n automation-id=\"tui-input-card-grouped__expire\"\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n class=\"t-input\"\n [attr.id]=\"idExpire\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocompleteExpire\"\n [class.t-input_inert]=\"!expireFocusable\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskExpire\"\n [ngModel]=\"expire\"\n [readOnly]=\"readOnly\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"expireFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onExpireChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.expiryText }}\n </span>\n </label>\n </div>\n <div\n class=\"t-wrapper t-wrapper_cvc\"\n [class.t-wrapper_active]=\"isCardCollapsed\"\n >\n <label tuiPreventDefault=\"click\">\n <input\n #inputCVC\n automation-id=\"tui-input-card-grouped__cvc\"\n inputmode=\"numeric\"\n translate=\"no\"\n type=\"text\"\n class=\"t-input\"\n [attr.id]=\"idCVC\"\n [autocomplete]=\"autocompleteCVC\"\n [class.t-input_prefilled]=\"cvcPrefilled\"\n [disabled]=\"computedDisabled\"\n [maskito]=\"maskCVC\"\n [ngModel]=\"cvc\"\n [placeholder]=\"cvcPrefilled ? '\u2022\u2022\u2022' : exampleTextCVC\"\n [readOnly]=\"readOnly || cvcPrefilled\"\n [tuiAutoFocus]=\"false\"\n [tuiFocusable]=\"cvcFocusable\"\n (focus)=\"(0)\"\n (ngModelChange)=\"onCVCChange($event)\"\n />\n <span\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n {{ texts.cvcText }}\n </span>\n </label>\n </div>\n <div class=\"t-icons\">\n <div\n *ngIf=\"icon\"\n class=\"t-icon-outlet\"\n >\n <tui-svg\n *polymorpheusOutlet=\"icon as text\"\n automation-id=\"tui-input-card-grouped__icon\"\n class=\"t-card\"\n [src]=\"text\"\n ></tui-svg>\n </div>\n <tui-svg\n *ngIf=\"hasCleaner\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__cleaner\"\n tuiWrapper\n class=\"t-icon\"\n [src]=\"icons.close\"\n (click)=\"clear()\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"hasDropdown\"\n appearance=\"icon\"\n automation-id=\"tui-input-card-grouped__dropdown\"\n tuiWrapper\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n [src]=\"arrowOptions.iconLarge\"\n (click)=\"toggle()\"\n ></tui-svg>\n </div>\n</div>\n", styles: [":host{display:block;height:var(--tui-height-l);width:29.5rem;border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{--tui-autofill: var(--tui-autofill-night)}:host :host-context(tui-root._mobile){width:18rem}.t-outline{height:100%;width:100%}.t-common-wrapper{position:relative;height:100%;width:100%;overflow:hidden}.t-wrapper{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;width:100%;height:100%}.t-wrapper_cvc{margin-left:7.1875rem;transform:translate3d(100%,0,0)}:host-context(tui-root._mobile) .t-wrapper_cvc{margin-left:4.0625rem}.t-wrapper_expire{transform:translate3d(100%,0,0)}.t-wrapper_active{transform:translate3d(6.5625rem,0,0)}:host-context(tui-root._mobile) .t-wrapper_active{transform:translate3d(4.125rem,0,0)}.t-card{width:2rem;height:2rem;margin-right:.5rem;color:#1434cb}.t-collapsed{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;border:0;padding-left:1rem;line-height:2.25rem;pointer-events:none}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:hover,.t-collapsed:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-collapsed::-webkit-caps-lock-indicator,.t-collapsed::-webkit-contacts-auto-fill-button,.t-collapsed::-webkit-credit-card-auto-fill-button,.t-collapsed::-webkit-credentials-auto-fill-button,.t-collapsed::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-collapsed::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-collapsed::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-collapsed::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-collapsed::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:hover,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-collapsed:-webkit-autofill:focus,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-collapsed::placeholder,.t-collapsed :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-collapsed :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-collapsed :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._disabled),.t-collapsed :host-context(tui-textarea._disabled),.t-collapsed :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-collapsed,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder,.t-collapsed :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-collapsed,.t-collapsed :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-collapsed_enable-mask:before{content:attr(data-before)}.t-collapsed_enable-mask .t-collapsed-wrapper{left:1.375rem}.t-collapsed-wrapper{position:absolute;top:0;display:block;width:100%;height:100%;overflow:hidden}.t-value{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;bottom:0;right:100%;display:block;transform:translate3d(100%,0,0)}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border:0;padding:0 1rem}.t-input:-webkit-autofill,.t-input:-webkit-autofill:hover,.t-input:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input:-webkit-autofill,.t-input:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input::-webkit-caps-lock-indicator,.t-input::-webkit-contacts-auto-fill-button,.t-input::-webkit-credit-card-auto-fill-button,.t-input::-webkit-credentials-auto-fill-button,.t-input::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host._focused:not(._readonly) .t-input::placeholder,:host-context(tui-primitive-textfield._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-textarea._focused:not(._readonly)) .t-input::placeholder,:host-context(tui-text-area._focused:not(._readonly)) .t-input::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:hover,[tuiWrapper][data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"]):-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] .t-input::placeholder,.t-input :host-context([tuiWrapper][data-mode=\"onDark\"])::placeholder{color:var(--tui-text-03-night)}:host[data-size=s] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"s\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"s\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}:host[data-size=m] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"m\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"m\"]):not(tui-text-area){padding:0 var(--tui-padding-m)}:host[data-size=l] .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]):not(tui-primitive-textfield),.t-input :host-context(tui-textarea[data-size=\"l\"]):not(tui-textarea),.t-input :host-context(tui-text-area[data-size=\"l\"]):not(tui-text-area){padding:0 var(--tui-padding-l)}:host._disabled .t-input,.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-textarea._disabled),.t-input :host-context(tui-text-area._disabled){pointer-events:none}:host[data-size=l]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1.25rem}:host[data-size=l]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"l\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}:host[data-size=m]:not(._label-outside) .t-input,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield){padding-top:1rem}:host[data-size=m]:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder,.t-input :host-context(tui-primitive-textfield[data-size=\"m\"]:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}:host._hidden input.t-input,.t-input :host-context(tui-primitive-textfield._hidden){opacity:0;text-indent:-10em;-webkit-user-select:none}.t-input::placeholder{color:var(--tui-text-03);opacity:1}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}.t-input.t-input.t-input_card:not(.t-input_hidden),:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden),.t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden)::placeholder,.t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill,:host[data-mode=onDark] .t-input.t-input.t-input_card:not(.t-input_hidden):-webkit-autofill{caret-color:var(--tui-base-09);color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button,:host[data-mode=onDark] .t-input.t-input.t-input_card::-webkit-credit-card-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input_inert{pointer-events:none}.t-icons{position:absolute;right:.75rem;display:flex;align-items:center;height:100%}.t-icon-outlet{display:flex}.t-icon{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}:host._readonly .t-icon,:host._disabled .t-icon{pointer-events:none}.t-icon_rotated{transform:rotate(180deg)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1.125rem 1rem;line-height:1.25rem}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host._invalid:not(._focused) [tuiWrapper][data-mode=onDark] .t-placeholder_raised,:host._invalid:not(._focused):hover [tuiWrapper][data-mode=onDark] .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size=m]._focused._label-outside .t-placeholder,:host[data-size=l]._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size=l] .t-placeholder{font:var(--tui-font-text-m);line-height:1.25rem}:host[data-size=l] .t-placeholder_raised{font-size:.8156rem}:host[data-size=m]._focused:not(._label-outside) .t-placeholder,:host[data-size=l]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused:not(._label-outside) [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-01-night)}:host._focused [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=m]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder,:host[data-size=l]._focused._label-outside [tuiWrapper][data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}.t-ghost{visibility:hidden}\n"] }]
|
|
311
|
+
}], ctorParameters: function () {
|
|
312
|
+
return [{ type: i2.NgControl, decorators: [{
|
|
313
|
+
type: Optional
|
|
314
|
+
}, {
|
|
315
|
+
type: Self
|
|
316
|
+
}, {
|
|
317
|
+
type: Inject,
|
|
318
|
+
args: [NgControl]
|
|
319
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
320
|
+
type: Inject,
|
|
321
|
+
args: [ChangeDetectorRef]
|
|
322
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
323
|
+
type: Inject,
|
|
324
|
+
args: [ElementRef]
|
|
325
|
+
}] }, { type: i8.Observable, decorators: [{
|
|
326
|
+
type: Inject,
|
|
327
|
+
args: [TUI_MODE]
|
|
328
|
+
}] }, { type: i8.Observable, decorators: [{
|
|
329
|
+
type: Inject,
|
|
330
|
+
args: [TUI_INPUT_CARD_GROUPED_TEXTS]
|
|
331
|
+
}] }, { type: i5.TuiTextfieldController, decorators: [{
|
|
332
|
+
type: Inject,
|
|
333
|
+
args: [TUI_TEXTFIELD_WATCHED_CONTROLLER]
|
|
334
|
+
}] }, { type: undefined, decorators: [{
|
|
335
|
+
type: Inject,
|
|
336
|
+
args: [TUI_COMMON_ICONS]
|
|
337
|
+
}] }, { type: undefined, decorators: [{
|
|
338
|
+
type: Inject,
|
|
339
|
+
args: [TUI_ARROW_OPTIONS]
|
|
340
|
+
}] }, { type: undefined, decorators: [{
|
|
341
|
+
type: Inject,
|
|
342
|
+
args: [TUI_INPUT_CARD_GROUPED_OPTIONS]
|
|
343
|
+
}] }];
|
|
344
|
+
}, propDecorators: { inputCard: [{
|
|
345
|
+
type: ViewChild,
|
|
346
|
+
args: ['inputCard']
|
|
347
|
+
}], cardNumberAutofocusRef: [{
|
|
348
|
+
type: ViewChild,
|
|
349
|
+
args: ['inputCard', { read: TuiAutoFocusDirective }]
|
|
350
|
+
}], inputExpire: [{
|
|
351
|
+
type: ViewChild,
|
|
352
|
+
args: ['inputExpire']
|
|
353
|
+
}], expireCardAutofocusRef: [{
|
|
354
|
+
type: ViewChild,
|
|
355
|
+
args: ['inputExpire', { read: TuiAutoFocusDirective }]
|
|
356
|
+
}], inputCVC: [{
|
|
357
|
+
type: ViewChild,
|
|
358
|
+
args: ['inputCVC']
|
|
359
|
+
}], cvcCardAutofocusRef: [{
|
|
360
|
+
type: ViewChild,
|
|
361
|
+
args: ['inputCVC', { read: TuiAutoFocusDirective }]
|
|
362
|
+
}], exampleText: [{
|
|
363
|
+
type: Input
|
|
364
|
+
}], cardValidator: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], codeLength: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}], autofilledChange: [{
|
|
369
|
+
type: Output
|
|
370
|
+
}], dropdown: [{
|
|
371
|
+
type: ContentChild,
|
|
372
|
+
args: [TuiDataListDirective, { read: TemplateRef }]
|
|
373
|
+
}], datalist: [{
|
|
374
|
+
type: ContentChild,
|
|
375
|
+
args: [TuiDataListComponent]
|
|
376
|
+
}], onEsc: [{
|
|
377
|
+
type: HostListener,
|
|
378
|
+
args: ['keydown.esc']
|
|
379
|
+
}], onArrow: [{
|
|
380
|
+
type: HostListener,
|
|
381
|
+
args: ['keydown.arrowDown.prevent', ['$event.target', '1']]
|
|
382
|
+
}, {
|
|
383
|
+
type: HostListener,
|
|
384
|
+
args: ['keydown.arrowUp.prevent', ['$event.target', '-1']]
|
|
385
|
+
}], isFocusable: [] } });
|
|
386
|
+
|
|
387
|
+
class TuiInputCardGroupedModule {
|
|
388
|
+
}
|
|
389
|
+
TuiInputCardGroupedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardGroupedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
390
|
+
TuiInputCardGroupedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardGroupedModule, declarations: [TuiInputCardGroupedComponent], imports: [CommonModule,
|
|
391
|
+
FormsModule,
|
|
392
|
+
MaskitoModule,
|
|
393
|
+
TuiFocusableModule,
|
|
394
|
+
TuiSvgModule,
|
|
395
|
+
TuiWrapperModule,
|
|
396
|
+
TuiActiveZoneModule,
|
|
397
|
+
TuiMapperPipeModule,
|
|
398
|
+
TuiDropdownModule,
|
|
399
|
+
TuiPreventDefaultModule,
|
|
400
|
+
PolymorpheusModule,
|
|
401
|
+
TuiLetModule,
|
|
402
|
+
TuiResizeModule,
|
|
403
|
+
TuiFormatCardModule,
|
|
404
|
+
TuiAutoFocusModule], exports: [TuiInputCardGroupedComponent] });
|
|
405
|
+
TuiInputCardGroupedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardGroupedModule, imports: [CommonModule,
|
|
406
|
+
FormsModule,
|
|
407
|
+
MaskitoModule,
|
|
408
|
+
TuiFocusableModule,
|
|
409
|
+
TuiSvgModule,
|
|
410
|
+
TuiWrapperModule,
|
|
411
|
+
TuiActiveZoneModule,
|
|
412
|
+
TuiMapperPipeModule,
|
|
413
|
+
TuiDropdownModule,
|
|
414
|
+
TuiPreventDefaultModule,
|
|
415
|
+
PolymorpheusModule,
|
|
416
|
+
TuiLetModule,
|
|
417
|
+
TuiResizeModule,
|
|
418
|
+
TuiFormatCardModule,
|
|
419
|
+
TuiAutoFocusModule] });
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardGroupedModule, decorators: [{
|
|
421
|
+
type: NgModule,
|
|
422
|
+
args: [{
|
|
423
|
+
imports: [
|
|
424
|
+
CommonModule,
|
|
425
|
+
FormsModule,
|
|
426
|
+
MaskitoModule,
|
|
427
|
+
TuiFocusableModule,
|
|
428
|
+
TuiSvgModule,
|
|
429
|
+
TuiWrapperModule,
|
|
430
|
+
TuiActiveZoneModule,
|
|
431
|
+
TuiMapperPipeModule,
|
|
432
|
+
TuiDropdownModule,
|
|
433
|
+
TuiPreventDefaultModule,
|
|
434
|
+
PolymorpheusModule,
|
|
435
|
+
TuiLetModule,
|
|
436
|
+
TuiResizeModule,
|
|
437
|
+
TuiFormatCardModule,
|
|
438
|
+
TuiAutoFocusModule,
|
|
439
|
+
],
|
|
440
|
+
declarations: [TuiInputCardGroupedComponent],
|
|
441
|
+
exports: [TuiInputCardGroupedComponent],
|
|
442
|
+
}]
|
|
443
|
+
}] });
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Generated bundle index. Do not edit.
|
|
447
|
+
*/
|
|
448
|
+
|
|
449
|
+
export { TUI_INPUT_CARD_GROUPED_DEFAULT_OPTIONS, TUI_INPUT_CARD_GROUPED_OPTIONS, TUI_INPUT_CARD_GROUPED_TEXTS, TuiInputCardGroupedComponent, TuiInputCardGroupedModule, tuiInputCardGroupedOptionsProvider };
|
|
450
|
+
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-card-grouped.mjs.map
|