@taiga-ui/addon-commerce 2.59.1 → 3.0.0-rc.1
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/bundles/taiga-ui-addon-commerce-components-card.umd.js +420 -306
- package/bundles/taiga-ui-addon-commerce-components-card.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js +610 -463
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js +458 -332
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js +436 -310
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js +427 -304
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-money.umd.js +509 -377
- package/bundles/taiga-ui-addon-commerce-components-money.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components.umd.js +15 -27
- package/bundles/taiga-ui-addon-commerce-components.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-constants.umd.js +8 -6
- package/bundles/taiga-ui-addon-commerce-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-enums.umd.js +100 -41
- package/bundles/taiga-ui-addon-commerce-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.js +2 -2
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js +60 -271
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-tokens.umd.js +9 -5
- package/bundles/taiga-ui-addon-commerce-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-types.umd.js +2 -2
- package/bundles/taiga-ui-addon-commerce-types.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.js +46 -95
- package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-validators.umd.js +15 -9
- package/bundles/taiga-ui-addon-commerce-validators.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce.umd.js +31 -33
- package/bundles/taiga-ui-addon-commerce.umd.js.map +1 -1
- package/components/card/card.component.d.ts +5 -4
- package/components/card/card.module.d.ts +7 -0
- package/components/card/package.json +2 -5
- package/components/card/taiga-ui-addon-commerce-components-card.d.ts +1 -0
- package/components/input-card/input-card.component.d.ts +4 -4
- package/components/input-card/input-card.module.d.ts +8 -0
- package/components/input-card/package.json +2 -5
- package/components/input-card/taiga-ui-addon-commerce-components-input-card.d.ts +1 -0
- package/components/input-card-grouped/input-card-grouped.component.d.ts +5 -3
- package/components/input-card-grouped/input-card-grouped.module.d.ts +12 -0
- package/components/input-card-grouped/input-card-grouped.providers.d.ts +0 -2
- package/components/input-card-grouped/package.json +2 -5
- package/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.d.ts +1 -0
- package/components/input-cvc/input-cvc.component.d.ts +3 -1
- package/components/input-cvc/input-cvc.module.d.ts +8 -0
- package/components/input-cvc/package.json +2 -5
- package/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.d.ts +1 -0
- package/components/input-expire/input-expire.component.d.ts +3 -1
- package/components/input-expire/input-expire.module.d.ts +8 -0
- package/components/input-expire/package.json +2 -5
- package/components/input-expire/taiga-ui-addon-commerce-components-input-expire.d.ts +1 -0
- package/components/money/money-options.d.ts +4 -4
- package/components/money/money.component.d.ts +7 -4
- package/components/money/money.module.d.ts +10 -0
- package/components/money/package.json +2 -5
- package/components/money/pipes/fraction-part.pipe.d.ts +5 -2
- package/components/money/pipes/integer-part.pipe.d.ts +3 -0
- package/components/money/pipes/sign-symbol.pipe.d.ts +5 -2
- package/components/money/taiga-ui-addon-commerce-components-money.d.ts +1 -0
- package/components/money/utils/format-fraction-part.d.ts +2 -2
- package/components/money/utils/format-sign-symbol.d.ts +2 -2
- package/components/package.json +2 -5
- package/components/taiga-ui-addon-commerce-components.d.ts +1 -0
- package/constants/package.json +2 -5
- package/constants/taiga-ui-addon-commerce-constants.d.ts +1 -0
- package/enums/currency-code.d.ts +48 -6
- package/enums/currency.d.ts +48 -6
- package/enums/index.d.ts +0 -2
- package/enums/package.json +2 -5
- package/enums/taiga-ui-addon-commerce-enums.d.ts +1 -0
- package/esm2015/components/card/card.component.js +39 -30
- package/esm2015/components/card/card.module.js +15 -12
- package/esm2015/components/card/index.js +1 -1
- package/esm2015/components/card/taiga-ui-addon-commerce-components-card.js +1 -1
- package/esm2015/components/index.js +1 -1
- package/esm2015/components/input-card/index.js +1 -1
- package/esm2015/components/input-card/input-card.component.js +73 -60
- package/esm2015/components/input-card/input-card.module.js +24 -13
- package/esm2015/components/input-card/taiga-ui-addon-commerce-components-input-card.js +1 -1
- package/esm2015/components/input-card-grouped/index.js +1 -1
- package/esm2015/components/input-card-grouped/input-card-grouped.component.js +125 -109
- package/esm2015/components/input-card-grouped/input-card-grouped.module.js +45 -15
- package/esm2015/components/input-card-grouped/input-card-grouped.providers.js +20 -17
- package/esm2015/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.js +1 -1
- package/esm2015/components/input-cvc/index.js +1 -1
- package/esm2015/components/input-cvc/input-cvc.component.js +50 -41
- package/esm2015/components/input-cvc/input-cvc.module.js +26 -13
- package/esm2015/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.js +1 -1
- package/esm2015/components/input-expire/index.js +1 -1
- package/esm2015/components/input-expire/input-expire.component.js +46 -38
- package/esm2015/components/input-expire/input-expire.module.js +24 -13
- package/esm2015/components/input-expire/taiga-ui-addon-commerce-components-input-expire.js +1 -1
- package/esm2015/components/money/index.js +1 -1
- package/esm2015/components/money/money-options.js +1 -1
- package/esm2015/components/money/money.component.js +46 -33
- package/esm2015/components/money/money.module.js +23 -17
- package/esm2015/components/money/pipes/fraction-part.pipe.js +13 -12
- package/esm2015/components/money/pipes/integer-part.pipe.js +15 -14
- package/esm2015/components/money/pipes/sign-symbol.pipe.js +10 -8
- package/esm2015/components/money/taiga-ui-addon-commerce-components-money.js +1 -1
- package/esm2015/components/money/utils/format-fraction-part.js +1 -1
- package/esm2015/components/money/utils/format-sign-symbol.js +1 -1
- package/esm2015/components/taiga-ui-addon-commerce-components.js +1 -1
- package/esm2015/constants/card-holder-mask.js +1 -1
- package/esm2015/constants/card-mask.js +1 -1
- package/esm2015/constants/default-card-validator.js +3 -3
- package/esm2015/constants/index.js +1 -1
- package/esm2015/constants/taiga-ui-addon-commerce-constants.js +1 -1
- package/esm2015/enums/currency-code.js +48 -7
- package/esm2015/enums/currency.js +48 -7
- package/esm2015/enums/index.js +1 -3
- package/esm2015/enums/taiga-ui-addon-commerce-enums.js +1 -1
- package/esm2015/index.js +3 -1
- package/esm2015/interfaces/card.js +2 -1
- package/esm2015/interfaces/index.js +2 -1
- package/esm2015/interfaces/taiga-ui-addon-commerce-interfaces.js +2 -1
- package/esm2015/pipes/currency/currency.module.js +14 -11
- package/esm2015/pipes/currency/currency.pipe.js +14 -12
- package/esm2015/pipes/format-card/format-card.module.js +14 -11
- package/esm2015/pipes/format-card/format-card.pipe.js +10 -8
- package/esm2015/pipes/index.js +1 -1
- package/esm2015/pipes/taiga-ui-addon-commerce-pipes.js +1 -1
- package/esm2015/taiga-ui-addon-commerce.js +1 -1
- package/esm2015/tokens/i18n.js +4 -4
- package/esm2015/tokens/index.js +1 -1
- package/esm2015/tokens/taiga-ui-addon-commerce-tokens.js +1 -1
- package/esm2015/types/code-length.js +2 -1
- package/esm2015/types/currency-variants.js +2 -1
- package/esm2015/types/index.js +5 -1
- package/esm2015/types/money-sign.js +2 -1
- package/esm2015/types/payment-system.js +2 -0
- package/esm2015/types/taiga-ui-addon-commerce-types.js +2 -1
- package/esm2015/utils/create-auto-corrected-expire-pipe.js +1 -1
- package/esm2015/utils/format-currency.js +7 -12
- package/esm2015/utils/get-currency-symbol.js +11 -7
- package/esm2015/utils/get-payment-system.js +17 -47
- package/esm2015/utils/index.js +1 -1
- package/esm2015/utils/is-card-length-valid.js +9 -12
- package/esm2015/utils/is-card-number-valid.js +2 -5
- package/esm2015/utils/is-expire-valid.js +2 -7
- package/esm2015/utils/taiga-ui-addon-commerce-utils.js +1 -1
- package/esm2015/validators/card-expire.validator.js +3 -3
- package/esm2015/validators/card-number.validator.js +3 -3
- package/esm2015/validators/index.js +1 -1
- package/esm2015/validators/luhn.validator.js +5 -3
- package/esm2015/validators/taiga-ui-addon-commerce-validators.js +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-card.js +54 -40
- package/fesm2015/taiga-ui-addon-commerce-components-card.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js +188 -136
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.js +96 -70
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.js +73 -49
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js +67 -46
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-money.js +125 -100
- package/fesm2015/taiga-ui-addon-commerce-components-money.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-constants.js +2 -2
- package/fesm2015/taiga-ui-addon-commerce-constants.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-enums.js +95 -40
- package/fesm2015/taiga-ui-addon-commerce-enums.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-pipes.js +45 -31
- package/fesm2015/taiga-ui-addon-commerce-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-tokens.js +3 -3
- package/fesm2015/taiga-ui-addon-commerce-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-types.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-utils.js +41 -83
- package/fesm2015/taiga-ui-addon-commerce-utils.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-validators.js +6 -4
- package/fesm2015/taiga-ui-addon-commerce-validators.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce.js +2 -0
- package/fesm2015/taiga-ui-addon-commerce.js.map +1 -1
- package/interfaces/package.json +2 -5
- package/interfaces/taiga-ui-addon-commerce-interfaces.d.ts +1 -0
- package/package.json +12 -15
- package/pipes/currency/currency.module.d.ts +5 -0
- package/pipes/currency/currency.pipe.d.ts +3 -0
- package/pipes/format-card/format-card.module.d.ts +5 -0
- package/pipes/format-card/format-card.pipe.d.ts +3 -0
- package/pipes/package.json +2 -5
- package/pipes/taiga-ui-addon-commerce-pipes.d.ts +1 -0
- package/taiga-ui-addon-commerce.d.ts +1 -0
- package/tokens/package.json +2 -5
- package/tokens/taiga-ui-addon-commerce-tokens.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/money-sign.d.ts +1 -1
- package/types/package.json +2 -5
- package/types/payment-system.d.ts +1 -0
- package/types/taiga-ui-addon-commerce-types.d.ts +1 -0
- package/utils/format-currency.d.ts +1 -5
- package/utils/get-currency-symbol.d.ts +1 -5
- package/utils/get-payment-system.d.ts +7 -31
- package/utils/is-card-length-valid.d.ts +1 -3
- package/utils/is-card-number-valid.d.ts +1 -3
- package/utils/is-expire-valid.d.ts +1 -5
- package/utils/package.json +2 -5
- package/utils/taiga-ui-addon-commerce-utils.d.ts +1 -0
- package/validators/package.json +2 -5
- package/validators/taiga-ui-addon-commerce-validators.d.ts +1 -0
- package/bundles/taiga-ui-addon-commerce-components-card.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components-card.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-money.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components-money.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-components.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-constants.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-constants.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-enums.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-enums.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-pipes.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-tokens.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-tokens.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-types.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-types.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-utils.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-validators.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce-validators.umd.min.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce.umd.min.js +0 -2
- package/bundles/taiga-ui-addon-commerce.umd.min.js.map +0 -1
- package/components/card/taiga-ui-addon-commerce-components-card.metadata.json +0 -1
- package/components/input-card/taiga-ui-addon-commerce-components-input-card.metadata.json +0 -1
- package/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.metadata.json +0 -1
- package/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.metadata.json +0 -1
- package/components/input-expire/taiga-ui-addon-commerce-components-input-expire.metadata.json +0 -1
- package/components/money/taiga-ui-addon-commerce-components-money.metadata.json +0 -1
- package/components/taiga-ui-addon-commerce-components.metadata.json +0 -1
- package/constants/taiga-ui-addon-commerce-constants.metadata.json +0 -1
- package/enums/money-sign.d.ts +0 -16
- package/enums/payment-system.d.ts +0 -8
- package/enums/taiga-ui-addon-commerce-enums.metadata.json +0 -1
- package/esm2015/enums/money-sign.js +0 -18
- package/esm2015/enums/payment-system.js +0 -9
- package/esm5/components/card/card.component.js +0 -73
- package/esm5/components/card/card.module.js +0 -19
- package/esm5/components/card/index.js +0 -3
- package/esm5/components/card/taiga-ui-addon-commerce-components-card.js +0 -5
- package/esm5/components/index.js +0 -7
- package/esm5/components/input-card/index.js +0 -3
- package/esm5/components/input-card/input-card.component.js +0 -167
- package/esm5/components/input-card/input-card.module.js +0 -25
- package/esm5/components/input-card/taiga-ui-addon-commerce-components-input-card.js +0 -5
- package/esm5/components/input-card-grouped/index.js +0 -4
- package/esm5/components/input-card-grouped/input-card-grouped.component.js +0 -511
- package/esm5/components/input-card-grouped/input-card-grouped.module.js +0 -40
- package/esm5/components/input-card-grouped/input-card-grouped.providers.js +0 -34
- package/esm5/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.js +0 -5
- package/esm5/components/input-cvc/index.js +0 -3
- package/esm5/components/input-cvc/input-cvc.component.js +0 -113
- package/esm5/components/input-cvc/input-cvc.module.js +0 -26
- package/esm5/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.js +0 -5
- package/esm5/components/input-expire/index.js +0 -3
- package/esm5/components/input-expire/input-expire.component.js +0 -108
- package/esm5/components/input-expire/input-expire.module.js +0 -25
- package/esm5/components/input-expire/taiga-ui-addon-commerce-components-input-expire.js +0 -5
- package/esm5/components/money/index.js +0 -9
- package/esm5/components/money/money-options.js +0 -18
- package/esm5/components/money/money.component.js +0 -101
- package/esm5/components/money/money.module.js +0 -27
- package/esm5/components/money/pipes/fraction-part.pipe.js +0 -27
- package/esm5/components/money/pipes/integer-part.pipe.js +0 -21
- package/esm5/components/money/pipes/sign-symbol.pipe.js +0 -16
- package/esm5/components/money/taiga-ui-addon-commerce-components-money.js +0 -5
- package/esm5/components/money/utils/format-fraction-part.js +0 -7
- package/esm5/components/money/utils/format-sign-symbol.js +0 -11
- package/esm5/components/taiga-ui-addon-commerce-components.js +0 -5
- package/esm5/constants/card-holder-mask.js +0 -37
- package/esm5/constants/card-mask.js +0 -30
- package/esm5/constants/default-card-validator.js +0 -5
- package/esm5/constants/index.js +0 -4
- package/esm5/constants/taiga-ui-addon-commerce-constants.js +0 -5
- package/esm5/enums/currency-code.js +0 -178
- package/esm5/enums/currency.js +0 -178
- package/esm5/enums/index.js +0 -5
- package/esm5/enums/money-sign.js +0 -18
- package/esm5/enums/payment-system.js +0 -9
- package/esm5/enums/taiga-ui-addon-commerce-enums.js +0 -5
- package/esm5/index.js +0 -8
- package/esm5/interfaces/card.js +0 -1
- package/esm5/interfaces/index.js +0 -1
- package/esm5/interfaces/taiga-ui-addon-commerce-interfaces.js +0 -4
- package/esm5/pipes/currency/currency.module.js +0 -16
- package/esm5/pipes/currency/currency.pipe.js +0 -18
- package/esm5/pipes/format-card/format-card.module.js +0 -16
- package/esm5/pipes/format-card/format-card.pipe.js +0 -22
- package/esm5/pipes/index.js +0 -5
- package/esm5/pipes/taiga-ui-addon-commerce-pipes.js +0 -5
- package/esm5/taiga-ui-addon-commerce.js +0 -5
- package/esm5/tokens/i18n.js +0 -13
- package/esm5/tokens/index.js +0 -2
- package/esm5/tokens/taiga-ui-addon-commerce-tokens.js +0 -5
- package/esm5/types/code-length.js +0 -1
- package/esm5/types/currency-variants.js +0 -1
- package/esm5/types/index.js +0 -1
- package/esm5/types/money-sign.js +0 -1
- package/esm5/types/taiga-ui-addon-commerce-types.js +0 -4
- package/esm5/utils/create-auto-corrected-expire-pipe.js +0 -43
- package/esm5/utils/format-currency.js +0 -17
- package/esm5/utils/get-currency-symbol.js +0 -71
- package/esm5/utils/get-payment-system.js +0 -103
- package/esm5/utils/index.js +0 -8
- package/esm5/utils/is-card-length-valid.js +0 -25
- package/esm5/utils/is-card-number-valid.js +0 -21
- package/esm5/utils/is-expire-valid.js +0 -14
- package/esm5/utils/taiga-ui-addon-commerce-utils.js +0 -5
- package/esm5/validators/card-expire.validator.js +0 -10
- package/esm5/validators/card-number.validator.js +0 -9
- package/esm5/validators/index.js +0 -4
- package/esm5/validators/luhn.validator.js +0 -9
- package/esm5/validators/taiga-ui-addon-commerce-validators.js +0 -5
- package/fesm5/taiga-ui-addon-commerce-components-card.js +0 -94
- package/fesm5/taiga-ui-addon-commerce-components-card.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-card-grouped.js +0 -579
- package/fesm5/taiga-ui-addon-commerce-components-input-card-grouped.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-card.js +0 -193
- package/fesm5/taiga-ui-addon-commerce-components-input-card.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-cvc.js +0 -140
- package/fesm5/taiga-ui-addon-commerce-components-input-cvc.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-expire.js +0 -134
- package/fesm5/taiga-ui-addon-commerce-components-input-expire.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components-money.js +0 -210
- package/fesm5/taiga-ui-addon-commerce-components-money.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components.js +0 -11
- package/fesm5/taiga-ui-addon-commerce-components.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-constants.js +0 -78
- package/fesm5/taiga-ui-addon-commerce-constants.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-enums.js +0 -389
- package/fesm5/taiga-ui-addon-commerce-enums.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-interfaces.js +0 -4
- package/fesm5/taiga-ui-addon-commerce-interfaces.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-pipes.js +0 -67
- package/fesm5/taiga-ui-addon-commerce-pipes.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-tokens.js +0 -20
- package/fesm5/taiga-ui-addon-commerce-tokens.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-types.js +0 -4
- package/fesm5/taiga-ui-addon-commerce-types.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-utils.js +0 -298
- package/fesm5/taiga-ui-addon-commerce-utils.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-validators.js +0 -31
- package/fesm5/taiga-ui-addon-commerce-validators.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce.js +0 -12
- package/fesm5/taiga-ui-addon-commerce.js.map +0 -1
- package/interfaces/taiga-ui-addon-commerce-interfaces.metadata.json +0 -1
- package/pipes/taiga-ui-addon-commerce-pipes.metadata.json +0 -1
- package/taiga-ui-addon-commerce.metadata.json +0 -1
- package/tokens/taiga-ui-addon-commerce-tokens.metadata.json +0 -1
- package/types/taiga-ui-addon-commerce-types.metadata.json +0 -1
- package/utils/taiga-ui-addon-commerce-utils.metadata.json +0 -1
- package/validators/taiga-ui-addon-commerce-validators.metadata.json +0 -1
|
@@ -1,298 +1,400 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/addon-commerce/constants'), require('@taiga-ui/addon-commerce/utils'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-commerce/components/input-card-grouped', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/addon-commerce/constants', '@taiga-ui/addon-commerce/utils', '@taiga-ui/cdk', '@taiga-ui/core', '
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/addon-commerce/constants'), require('@taiga-ui/addon-commerce/utils'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@ng-web-apis/common'), require('@taiga-ui/addon-commerce/tokens'), require('@taiga-ui/core/tokens'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('angular2-text-mask'), require('@tinkoff/ng-polymorpheus'), require('@taiga-ui/addon-commerce/pipes')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-commerce/components/input-card-grouped', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/addon-commerce/constants', '@taiga-ui/addon-commerce/utils', '@taiga-ui/cdk', '@taiga-ui/core', '@ng-web-apis/common', '@taiga-ui/addon-commerce/tokens', '@taiga-ui/core/tokens', 'rxjs', 'rxjs/operators', '@angular/common', 'angular2-text-mask', '@tinkoff/ng-polymorpheus', '@taiga-ui/addon-commerce/pipes'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-commerce"] = global["taiga-ui"]["addon-commerce"] || {}, global["taiga-ui"]["addon-commerce"].components = global["taiga-ui"]["addon-commerce"].components || {}, global["taiga-ui"]["addon-commerce"].components["input-card-grouped"] = {}), global.ng.core, global.ng.forms, global["taiga-ui"]["addon-commerce"].constants, global["taiga-ui"]["addon-commerce"].utils, global.i3, global.i1, global.common, global["taiga-ui"]["addon-commerce"].tokens, global.tokens$1, global.rxjs, global.rxjs.operators, global.ng.common, global.i5, global.i6, global["taiga-ui"]["addon-commerce"].pipes));
|
|
5
|
+
})(this, (function (exports, i0, i4, constants, utils, i3, i1, common, tokens, tokens$1, i8, operators, i2, i5, i6, i7) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var extendStatics = function(d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var __assign = function() {
|
|
39
|
-
__assign = Object.assign || function __assign(t) {
|
|
40
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
41
|
-
s = arguments[i];
|
|
42
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
43
|
-
}
|
|
44
|
-
return t;
|
|
45
|
-
};
|
|
46
|
-
return __assign.apply(this, arguments);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
52
|
-
t[p] = s[p];
|
|
53
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
54
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
55
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
56
|
-
t[p[i]] = s[p[i]];
|
|
57
|
-
}
|
|
58
|
-
return t;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
64
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
65
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function __param(paramIndex, decorator) {
|
|
69
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function __metadata(metadataKey, metadataValue) {
|
|
73
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
77
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
78
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
79
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
80
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
81
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
82
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function __generator(thisArg, body) {
|
|
87
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
88
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
89
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
90
|
-
function step(op) {
|
|
91
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
92
|
-
while (_) try {
|
|
93
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
94
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
95
|
-
switch (op[0]) {
|
|
96
|
-
case 0: case 1: t = op; break;
|
|
97
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
98
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
99
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
100
|
-
default:
|
|
101
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
102
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
103
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
104
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
105
|
-
if (t[2]) _.ops.pop();
|
|
106
|
-
_.trys.pop(); continue;
|
|
107
|
-
}
|
|
108
|
-
op = body.call(thisArg, _);
|
|
109
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
110
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
115
|
-
if (k2 === undefined) k2 = k;
|
|
116
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
117
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
118
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
119
|
-
}
|
|
120
|
-
Object.defineProperty(o, k2, desc);
|
|
121
|
-
}) : (function(o, m, k, k2) {
|
|
122
|
-
if (k2 === undefined) k2 = k;
|
|
123
|
-
o[k2] = m[k];
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
function __exportStar(m, o) {
|
|
127
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function __values(o) {
|
|
131
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
132
|
-
if (m) return m.call(o);
|
|
133
|
-
if (o && typeof o.length === "number") return {
|
|
134
|
-
next: function () {
|
|
135
|
-
if (o && i >= o.length) o = void 0;
|
|
136
|
-
return { value: o && o[i++], done: !o };
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function __read(o, n) {
|
|
143
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
144
|
-
if (!m) return o;
|
|
145
|
-
var i = m.call(o), r, ar = [], e;
|
|
146
|
-
try {
|
|
147
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
148
|
-
}
|
|
149
|
-
catch (error) { e = { error: error }; }
|
|
150
|
-
finally {
|
|
151
|
-
try {
|
|
152
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
153
|
-
}
|
|
154
|
-
finally { if (e) throw e.error; }
|
|
155
|
-
}
|
|
156
|
-
return ar;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/** @deprecated */
|
|
160
|
-
function __spread() {
|
|
161
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
162
|
-
ar = ar.concat(__read(arguments[i]));
|
|
163
|
-
return ar;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/** @deprecated */
|
|
167
|
-
function __spreadArrays() {
|
|
168
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
169
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
170
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
171
|
-
r[k] = a[j];
|
|
172
|
-
return r;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function __spreadArray(to, from, pack) {
|
|
176
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
177
|
-
if (ar || !(i in from)) {
|
|
178
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
179
|
-
ar[i] = from[i];
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function __await(v) {
|
|
186
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
190
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
191
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
192
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
193
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
194
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
195
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
196
|
-
function fulfill(value) { resume("next", value); }
|
|
197
|
-
function reject(value) { resume("throw", value); }
|
|
198
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
function __asyncDelegator(o) {
|
|
202
|
-
var i, p;
|
|
203
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
204
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function __asyncValues(o) {
|
|
208
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
209
|
-
var m = o[Symbol.asyncIterator], i;
|
|
210
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
211
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
212
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
function __makeTemplateObject(cooked, raw) {
|
|
216
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
217
|
-
return cooked;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
221
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
222
|
-
}) : function(o, v) {
|
|
223
|
-
o["default"] = v;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
function __importStar(mod) {
|
|
227
|
-
if (mod && mod.__esModule) return mod;
|
|
228
|
-
var result = {};
|
|
229
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
230
|
-
__setModuleDefault(result, mod);
|
|
231
|
-
return result;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
function __importDefault(mod) {
|
|
235
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
239
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
240
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
241
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
245
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
246
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
247
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
248
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
252
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
253
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
254
23
|
}
|
|
255
24
|
|
|
256
|
-
var
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
30
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
32
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
33
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
34
|
+
|
|
35
|
+
/******************************************************************************
|
|
36
|
+
Copyright (c) Microsoft Corporation.
|
|
37
|
+
|
|
38
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
39
|
+
purpose with or without fee is hereby granted.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
42
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
43
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
45
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
46
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
47
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
48
|
+
***************************************************************************** */
|
|
49
|
+
/* global Reflect, Promise */
|
|
50
|
+
var extendStatics = function (d, b) {
|
|
51
|
+
extendStatics = Object.setPrototypeOf ||
|
|
52
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
53
|
+
function (d, b) { for (var p in b)
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
55
|
+
d[p] = b[p]; };
|
|
56
|
+
return extendStatics(d, b);
|
|
57
|
+
};
|
|
58
|
+
function __extends(d, b) {
|
|
59
|
+
if (typeof b !== "function" && b !== null)
|
|
60
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
61
|
+
extendStatics(d, b);
|
|
62
|
+
function __() { this.constructor = d; }
|
|
63
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
64
|
+
}
|
|
65
|
+
var __assign = function () {
|
|
66
|
+
__assign = Object.assign || function __assign(t) {
|
|
67
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
68
|
+
s = arguments[i];
|
|
69
|
+
for (var p in s)
|
|
70
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
71
|
+
t[p] = s[p];
|
|
72
|
+
}
|
|
73
|
+
return t;
|
|
74
|
+
};
|
|
75
|
+
return __assign.apply(this, arguments);
|
|
76
|
+
};
|
|
77
|
+
function __rest(s, e) {
|
|
78
|
+
var t = {};
|
|
79
|
+
for (var p in s)
|
|
80
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
81
|
+
t[p] = s[p];
|
|
82
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
83
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
84
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
85
|
+
t[p[i]] = s[p[i]];
|
|
86
|
+
}
|
|
87
|
+
return t;
|
|
88
|
+
}
|
|
89
|
+
function __decorate(decorators, target, key, desc) {
|
|
90
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
91
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
92
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
93
|
+
else
|
|
94
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
95
|
+
if (d = decorators[i])
|
|
96
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
97
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
98
|
+
}
|
|
99
|
+
function __param(paramIndex, decorator) {
|
|
100
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
101
|
+
}
|
|
102
|
+
function __metadata(metadataKey, metadataValue) {
|
|
103
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
104
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
105
|
+
}
|
|
106
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
107
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
108
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
109
|
+
function fulfilled(value) { try {
|
|
110
|
+
step(generator.next(value));
|
|
111
|
+
}
|
|
112
|
+
catch (e) {
|
|
113
|
+
reject(e);
|
|
114
|
+
} }
|
|
115
|
+
function rejected(value) { try {
|
|
116
|
+
step(generator["throw"](value));
|
|
117
|
+
}
|
|
118
|
+
catch (e) {
|
|
119
|
+
reject(e);
|
|
120
|
+
} }
|
|
121
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
122
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function __generator(thisArg, body) {
|
|
126
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
127
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
128
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
129
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
130
|
+
function step(op) {
|
|
131
|
+
if (f)
|
|
132
|
+
throw new TypeError("Generator is already executing.");
|
|
133
|
+
while (_)
|
|
134
|
+
try {
|
|
135
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
136
|
+
return t;
|
|
137
|
+
if (y = 0, t)
|
|
138
|
+
op = [op[0] & 2, t.value];
|
|
139
|
+
switch (op[0]) {
|
|
140
|
+
case 0:
|
|
141
|
+
case 1:
|
|
142
|
+
t = op;
|
|
143
|
+
break;
|
|
144
|
+
case 4:
|
|
145
|
+
_.label++;
|
|
146
|
+
return { value: op[1], done: false };
|
|
147
|
+
case 5:
|
|
148
|
+
_.label++;
|
|
149
|
+
y = op[1];
|
|
150
|
+
op = [0];
|
|
151
|
+
continue;
|
|
152
|
+
case 7:
|
|
153
|
+
op = _.ops.pop();
|
|
154
|
+
_.trys.pop();
|
|
155
|
+
continue;
|
|
156
|
+
default:
|
|
157
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
158
|
+
_ = 0;
|
|
159
|
+
continue;
|
|
160
|
+
}
|
|
161
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
162
|
+
_.label = op[1];
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
166
|
+
_.label = t[1];
|
|
167
|
+
t = op;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
if (t && _.label < t[2]) {
|
|
171
|
+
_.label = t[2];
|
|
172
|
+
_.ops.push(op);
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
if (t[2])
|
|
176
|
+
_.ops.pop();
|
|
177
|
+
_.trys.pop();
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
op = body.call(thisArg, _);
|
|
181
|
+
}
|
|
182
|
+
catch (e) {
|
|
183
|
+
op = [6, e];
|
|
184
|
+
y = 0;
|
|
185
|
+
}
|
|
186
|
+
finally {
|
|
187
|
+
f = t = 0;
|
|
188
|
+
}
|
|
189
|
+
if (op[0] & 5)
|
|
190
|
+
throw op[1];
|
|
191
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
195
|
+
if (k2 === undefined)
|
|
196
|
+
k2 = k;
|
|
197
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
198
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
199
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
200
|
+
}
|
|
201
|
+
Object.defineProperty(o, k2, desc);
|
|
202
|
+
}) : (function (o, m, k, k2) {
|
|
203
|
+
if (k2 === undefined)
|
|
204
|
+
k2 = k;
|
|
205
|
+
o[k2] = m[k];
|
|
260
206
|
});
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
207
|
+
function __exportStar(m, o) {
|
|
208
|
+
for (var p in m)
|
|
209
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
210
|
+
__createBinding(o, m, p);
|
|
211
|
+
}
|
|
212
|
+
function __values(o) {
|
|
213
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
214
|
+
if (m)
|
|
215
|
+
return m.call(o);
|
|
216
|
+
if (o && typeof o.length === "number")
|
|
217
|
+
return {
|
|
218
|
+
next: function () {
|
|
219
|
+
if (o && i >= o.length)
|
|
220
|
+
o = void 0;
|
|
221
|
+
return { value: o && o[i++], done: !o };
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
225
|
+
}
|
|
226
|
+
function __read(o, n) {
|
|
227
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
228
|
+
if (!m)
|
|
229
|
+
return o;
|
|
230
|
+
var i = m.call(o), r, ar = [], e;
|
|
231
|
+
try {
|
|
232
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
233
|
+
ar.push(r.value);
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
e = { error: error };
|
|
237
|
+
}
|
|
238
|
+
finally {
|
|
239
|
+
try {
|
|
240
|
+
if (r && !r.done && (m = i["return"]))
|
|
241
|
+
m.call(i);
|
|
242
|
+
}
|
|
243
|
+
finally {
|
|
244
|
+
if (e)
|
|
245
|
+
throw e.error;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return ar;
|
|
249
|
+
}
|
|
250
|
+
/** @deprecated */
|
|
251
|
+
function __spread() {
|
|
252
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
253
|
+
ar = ar.concat(__read(arguments[i]));
|
|
254
|
+
return ar;
|
|
255
|
+
}
|
|
256
|
+
/** @deprecated */
|
|
257
|
+
function __spreadArrays() {
|
|
258
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
259
|
+
s += arguments[i].length;
|
|
260
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
261
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
262
|
+
r[k] = a[j];
|
|
263
|
+
return r;
|
|
264
|
+
}
|
|
265
|
+
function __spreadArray(to, from, pack) {
|
|
266
|
+
if (pack || arguments.length === 2)
|
|
267
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
268
|
+
if (ar || !(i in from)) {
|
|
269
|
+
if (!ar)
|
|
270
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
271
|
+
ar[i] = from[i];
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
275
|
+
}
|
|
276
|
+
function __await(v) {
|
|
277
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
278
|
+
}
|
|
279
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
280
|
+
if (!Symbol.asyncIterator)
|
|
281
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
282
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
283
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
284
|
+
function verb(n) { if (g[n])
|
|
285
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
286
|
+
function resume(n, v) { try {
|
|
287
|
+
step(g[n](v));
|
|
288
|
+
}
|
|
289
|
+
catch (e) {
|
|
290
|
+
settle(q[0][3], e);
|
|
291
|
+
} }
|
|
292
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
293
|
+
function fulfill(value) { resume("next", value); }
|
|
294
|
+
function reject(value) { resume("throw", value); }
|
|
295
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
296
|
+
resume(q[0][0], q[0][1]); }
|
|
297
|
+
}
|
|
298
|
+
function __asyncDelegator(o) {
|
|
299
|
+
var i, p;
|
|
300
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
301
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
302
|
+
}
|
|
303
|
+
function __asyncValues(o) {
|
|
304
|
+
if (!Symbol.asyncIterator)
|
|
305
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
306
|
+
var m = o[Symbol.asyncIterator], i;
|
|
307
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
308
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
309
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
310
|
+
}
|
|
311
|
+
function __makeTemplateObject(cooked, raw) {
|
|
312
|
+
if (Object.defineProperty) {
|
|
313
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
314
|
+
}
|
|
315
|
+
else {
|
|
316
|
+
cooked.raw = raw;
|
|
317
|
+
}
|
|
318
|
+
return cooked;
|
|
319
|
+
}
|
|
320
|
+
;
|
|
321
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
322
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
323
|
+
}) : function (o, v) {
|
|
324
|
+
o["default"] = v;
|
|
325
|
+
};
|
|
326
|
+
function __importStar(mod) {
|
|
327
|
+
if (mod && mod.__esModule)
|
|
328
|
+
return mod;
|
|
329
|
+
var result = {};
|
|
330
|
+
if (mod != null)
|
|
331
|
+
for (var k in mod)
|
|
332
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
333
|
+
__createBinding(result, mod, k);
|
|
334
|
+
__setModuleDefault(result, mod);
|
|
335
|
+
return result;
|
|
336
|
+
}
|
|
337
|
+
function __importDefault(mod) {
|
|
338
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
339
|
+
}
|
|
340
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
341
|
+
if (kind === "a" && !f)
|
|
342
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
343
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
344
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
345
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
346
|
+
}
|
|
347
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
348
|
+
if (kind === "m")
|
|
349
|
+
throw new TypeError("Private method is not writable");
|
|
350
|
+
if (kind === "a" && !f)
|
|
351
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
352
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
353
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
354
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
355
|
+
}
|
|
356
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
357
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
358
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
359
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
var TUI_INPUT_CARD_GROUPED_TEXTS = new i0.InjectionToken("InputCardGrouped texts", {
|
|
363
|
+
factory: function () {
|
|
364
|
+
var windowRef = i0.inject(common.WINDOW);
|
|
365
|
+
var cardNumberTexts = i0.inject(tokens.TUI_CARD_NUMBER_TEXTS);
|
|
366
|
+
var expiryTexts = i0.inject(tokens.TUI_CARD_EXPIRY_TEXTS);
|
|
367
|
+
var cvcTexts = i0.inject(tokens.TUI_CARD_CVC_TEXTS);
|
|
368
|
+
var desktopSmall = i0.inject(tokens$1.TUI_MEDIA).desktopSmall;
|
|
369
|
+
var media = windowRef.matchMedia("screen and (min-width: " + (desktopSmall - 1) / 16 + "em)");
|
|
370
|
+
return i3.tuiTypedFromEvent(media, "change").pipe(operators.startWith(null), operators.switchMap(function () { return i8.combineLatest([
|
|
371
|
+
i8.of(Number(media.matches)),
|
|
268
372
|
cardNumberTexts,
|
|
269
373
|
expiryTexts,
|
|
270
374
|
cvcTexts,
|
|
271
|
-
]);
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
}
|
|
375
|
+
]); }), operators.map(function (_a) {
|
|
376
|
+
var _b = __read(_a, 4), index = _b[0], cardNumber = _b[1], expiry = _b[2], cvcTexts = _b[3];
|
|
377
|
+
return ({
|
|
378
|
+
cardNumberText: cardNumber[index],
|
|
379
|
+
expiryText: expiry[index],
|
|
380
|
+
cvcText: cvcTexts[index],
|
|
381
|
+
});
|
|
382
|
+
}));
|
|
383
|
+
},
|
|
384
|
+
});
|
|
281
385
|
|
|
282
|
-
var _a;
|
|
283
386
|
var STUB = {
|
|
284
387
|
card: "",
|
|
285
388
|
expire: "",
|
|
286
389
|
cvc: "",
|
|
287
390
|
};
|
|
288
|
-
var ICONS =
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
// @dynamic
|
|
391
|
+
var ICONS = {
|
|
392
|
+
mir: "tuiIconMir",
|
|
393
|
+
visa: "tuiIconVisa",
|
|
394
|
+
electron: "tuiIconElectron",
|
|
395
|
+
mastercard: "tuiIconMastercard",
|
|
396
|
+
maestro: "tuiIconMaestro",
|
|
397
|
+
};
|
|
296
398
|
var TuiInputCardGroupedComponent = /** @class */ (function (_super) {
|
|
297
399
|
__extends(TuiInputCardGroupedComponent, _super);
|
|
298
400
|
function TuiInputCardGroupedComponent(control, changeDetectorRef, elementRef, mode$, cardGroupedTexts$, appearance) {
|
|
@@ -303,15 +405,15 @@
|
|
|
303
405
|
_this.appearance = appearance;
|
|
304
406
|
_this.expireInert = false;
|
|
305
407
|
_this.autocompleteEnabled = false;
|
|
306
|
-
_this.cardSrc =
|
|
408
|
+
_this.cardSrc = "";
|
|
307
409
|
_this.exampleText = "0000 0000 0000 0000";
|
|
308
410
|
_this.cardValidator = constants.tuiDefaultCardValidator;
|
|
309
|
-
_this.autofilledChange = new
|
|
310
|
-
_this.binChange = new
|
|
411
|
+
_this.autofilledChange = new i0.EventEmitter();
|
|
412
|
+
_this.binChange = new i0.EventEmitter();
|
|
311
413
|
_this.dropdown = "";
|
|
312
414
|
_this.exampleTextCVC = "000";
|
|
313
415
|
_this.maskCVC = {
|
|
314
|
-
mask: new Array(3).fill(
|
|
416
|
+
mask: new Array(3).fill(i1.TUI_DIGIT_REGEXP),
|
|
315
417
|
guide: false,
|
|
316
418
|
};
|
|
317
419
|
_this.maskCard = {
|
|
@@ -321,11 +423,11 @@
|
|
|
321
423
|
};
|
|
322
424
|
_this.maskExpire = {
|
|
323
425
|
mask: [
|
|
324
|
-
|
|
325
|
-
|
|
426
|
+
i1.TUI_DIGIT_REGEXP,
|
|
427
|
+
i1.TUI_DIGIT_REGEXP,
|
|
326
428
|
"/",
|
|
327
|
-
|
|
328
|
-
|
|
429
|
+
i1.TUI_DIGIT_REGEXP,
|
|
430
|
+
i1.TUI_DIGIT_REGEXP,
|
|
329
431
|
],
|
|
330
432
|
pipe: utils.tuiCreateAutoCorrectedExpirePipe(),
|
|
331
433
|
guide: false,
|
|
@@ -333,54 +435,53 @@
|
|
|
333
435
|
_this.open = false;
|
|
334
436
|
return _this;
|
|
335
437
|
}
|
|
336
|
-
TuiInputCardGroupedComponent_1 = TuiInputCardGroupedComponent;
|
|
337
438
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "codeLength", {
|
|
338
439
|
set: function (length) {
|
|
339
440
|
this.exampleTextCVC = "0".repeat(length);
|
|
340
441
|
this.maskCVC = {
|
|
341
|
-
mask: new Array(length).fill(
|
|
442
|
+
mask: new Array(length).fill(i1.TUI_DIGIT_REGEXP),
|
|
342
443
|
guide: false,
|
|
343
444
|
};
|
|
344
445
|
},
|
|
345
|
-
enumerable:
|
|
446
|
+
enumerable: false,
|
|
346
447
|
configurable: true
|
|
347
448
|
});
|
|
348
449
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "nativeFocusableElement", {
|
|
349
450
|
get: function () {
|
|
350
451
|
return this.inputCard ? this.inputCard.nativeElement : null;
|
|
351
452
|
},
|
|
352
|
-
enumerable:
|
|
453
|
+
enumerable: false,
|
|
353
454
|
configurable: true
|
|
354
455
|
});
|
|
355
456
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "focused", {
|
|
356
457
|
get: function () {
|
|
357
|
-
return this.open ||
|
|
458
|
+
return this.open || i3.tuiIsNativeFocusedIn(this.elementRef.nativeElement);
|
|
358
459
|
},
|
|
359
|
-
enumerable:
|
|
460
|
+
enumerable: false,
|
|
360
461
|
configurable: true
|
|
361
462
|
});
|
|
362
463
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "card", {
|
|
363
464
|
get: function () {
|
|
364
|
-
var _a
|
|
365
|
-
return (
|
|
465
|
+
var _a;
|
|
466
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.card) || "";
|
|
366
467
|
},
|
|
367
|
-
enumerable:
|
|
468
|
+
enumerable: false,
|
|
368
469
|
configurable: true
|
|
369
470
|
});
|
|
370
471
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expire", {
|
|
371
472
|
get: function () {
|
|
372
|
-
var _a
|
|
373
|
-
return (
|
|
473
|
+
var _a;
|
|
474
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.expire) || "";
|
|
374
475
|
},
|
|
375
|
-
enumerable:
|
|
476
|
+
enumerable: false,
|
|
376
477
|
configurable: true
|
|
377
478
|
});
|
|
378
479
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvc", {
|
|
379
480
|
get: function () {
|
|
380
|
-
var _a
|
|
381
|
-
return (
|
|
481
|
+
var _a;
|
|
482
|
+
return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.cvc) || "";
|
|
382
483
|
},
|
|
383
|
-
enumerable:
|
|
484
|
+
enumerable: false,
|
|
384
485
|
configurable: true
|
|
385
486
|
});
|
|
386
487
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCleaner", {
|
|
@@ -388,14 +489,14 @@
|
|
|
388
489
|
var _a, _b;
|
|
389
490
|
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;
|
|
390
491
|
},
|
|
391
|
-
enumerable:
|
|
492
|
+
enumerable: false,
|
|
392
493
|
configurable: true
|
|
393
494
|
});
|
|
394
495
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasDropdown", {
|
|
395
496
|
get: function () {
|
|
396
497
|
return !!this.dropdown;
|
|
397
498
|
},
|
|
398
|
-
enumerable:
|
|
499
|
+
enumerable: false,
|
|
399
500
|
configurable: true
|
|
400
501
|
});
|
|
401
502
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "defaultIcon", {
|
|
@@ -403,15 +504,14 @@
|
|
|
403
504
|
var paymentSystem = this.paymentSystem;
|
|
404
505
|
return paymentSystem && ICONS[paymentSystem];
|
|
405
506
|
},
|
|
406
|
-
enumerable:
|
|
507
|
+
enumerable: false,
|
|
407
508
|
configurable: true
|
|
408
509
|
});
|
|
409
510
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "icon", {
|
|
410
511
|
get: function () {
|
|
411
|
-
|
|
412
|
-
return (_a = this.cardSrc) !== null && _a !== void 0 ? _a : this.defaultIcon;
|
|
512
|
+
return this.cardSrc || this.defaultIcon;
|
|
413
513
|
},
|
|
414
|
-
enumerable:
|
|
514
|
+
enumerable: false,
|
|
415
515
|
configurable: true
|
|
416
516
|
});
|
|
417
517
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "bin", {
|
|
@@ -420,14 +520,14 @@
|
|
|
420
520
|
? null
|
|
421
521
|
: this.value.card.slice(0, 6);
|
|
422
522
|
},
|
|
423
|
-
enumerable:
|
|
523
|
+
enumerable: false,
|
|
424
524
|
configurable: true
|
|
425
525
|
});
|
|
426
526
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "placeholderRaised", {
|
|
427
527
|
get: function () {
|
|
428
528
|
return (this.computedFocused && !this.readOnly) || this.hasCardNumber;
|
|
429
529
|
},
|
|
430
|
-
enumerable:
|
|
530
|
+
enumerable: false,
|
|
431
531
|
configurable: true
|
|
432
532
|
});
|
|
433
533
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "hasCardNumber", {
|
|
@@ -435,35 +535,35 @@
|
|
|
435
535
|
var _a, _b;
|
|
436
536
|
return !!((_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.card) === null || _b === void 0 ? void 0 : _b.trim());
|
|
437
537
|
},
|
|
438
|
-
enumerable:
|
|
538
|
+
enumerable: false,
|
|
439
539
|
configurable: true
|
|
440
540
|
});
|
|
441
541
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCard", {
|
|
442
542
|
get: function () {
|
|
443
543
|
return this.id + "_card";
|
|
444
544
|
},
|
|
445
|
-
enumerable:
|
|
545
|
+
enumerable: false,
|
|
446
546
|
configurable: true
|
|
447
547
|
});
|
|
448
548
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idExpire", {
|
|
449
549
|
get: function () {
|
|
450
550
|
return this.id + "_expire";
|
|
451
551
|
},
|
|
452
|
-
enumerable:
|
|
552
|
+
enumerable: false,
|
|
453
553
|
configurable: true
|
|
454
554
|
});
|
|
455
555
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "idCVC", {
|
|
456
556
|
get: function () {
|
|
457
557
|
return this.id + "_cvc";
|
|
458
558
|
},
|
|
459
|
-
enumerable:
|
|
559
|
+
enumerable: false,
|
|
460
560
|
configurable: true
|
|
461
561
|
});
|
|
462
562
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "isCardCollapsed", {
|
|
463
563
|
get: function () {
|
|
464
564
|
return this.isFocusable(this.card) && !this.cardFocused;
|
|
465
565
|
},
|
|
466
|
-
enumerable:
|
|
566
|
+
enumerable: false,
|
|
467
567
|
configurable: true
|
|
468
568
|
});
|
|
469
569
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteCard", {
|
|
@@ -472,7 +572,7 @@
|
|
|
472
572
|
? "cc-number" /* CcNumber */
|
|
473
573
|
: "off" /* Off */;
|
|
474
574
|
},
|
|
475
|
-
enumerable:
|
|
575
|
+
enumerable: false,
|
|
476
576
|
configurable: true
|
|
477
577
|
});
|
|
478
578
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteExpire", {
|
|
@@ -481,7 +581,7 @@
|
|
|
481
581
|
? "cc-exp" /* CcExp */
|
|
482
582
|
: "off" /* Off */;
|
|
483
583
|
},
|
|
484
|
-
enumerable:
|
|
584
|
+
enumerable: false,
|
|
485
585
|
configurable: true
|
|
486
586
|
});
|
|
487
587
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "autocompleteCVC", {
|
|
@@ -490,7 +590,7 @@
|
|
|
490
590
|
? "cc-csc" /* CcCsc */
|
|
491
591
|
: "off" /* Off */;
|
|
492
592
|
},
|
|
493
|
-
enumerable:
|
|
593
|
+
enumerable: false,
|
|
494
594
|
configurable: true
|
|
495
595
|
});
|
|
496
596
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "name", {
|
|
@@ -498,49 +598,49 @@
|
|
|
498
598
|
get: function () {
|
|
499
599
|
return this.autocompleteEnabled ? "ccexpiryyear" : null;
|
|
500
600
|
},
|
|
501
|
-
enumerable:
|
|
601
|
+
enumerable: false,
|
|
502
602
|
configurable: true
|
|
503
603
|
});
|
|
504
604
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardPrefilled", {
|
|
505
605
|
get: function () {
|
|
506
|
-
return !!this.card.match(
|
|
606
|
+
return !!this.card.match(i1.TUI_NON_DIGIT_REGEXP);
|
|
507
607
|
},
|
|
508
|
-
enumerable:
|
|
608
|
+
enumerable: false,
|
|
509
609
|
configurable: true
|
|
510
610
|
});
|
|
511
611
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcPrefilled", {
|
|
512
612
|
get: function () {
|
|
513
|
-
return !!this.cvc.match(
|
|
613
|
+
return !!this.cvc.match(i1.TUI_NON_DIGIT_REGEXP);
|
|
514
614
|
},
|
|
515
|
-
enumerable:
|
|
615
|
+
enumerable: false,
|
|
516
616
|
configurable: true
|
|
517
617
|
});
|
|
518
618
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocusable", {
|
|
519
619
|
get: function () {
|
|
520
620
|
return this.focusable && !this.cardPrefilled;
|
|
521
621
|
},
|
|
522
|
-
enumerable:
|
|
622
|
+
enumerable: false,
|
|
523
623
|
configurable: true
|
|
524
624
|
});
|
|
525
625
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "expireFocusable", {
|
|
526
626
|
get: function () {
|
|
527
627
|
return this.isFocusable(this.card) && !this.expireInert;
|
|
528
628
|
},
|
|
529
|
-
enumerable:
|
|
629
|
+
enumerable: false,
|
|
530
630
|
configurable: true
|
|
531
631
|
});
|
|
532
632
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cvcFocusable", {
|
|
533
633
|
get: function () {
|
|
534
634
|
return this.isFocusable(this.card);
|
|
535
635
|
},
|
|
536
|
-
enumerable:
|
|
636
|
+
enumerable: false,
|
|
537
637
|
configurable: true
|
|
538
638
|
});
|
|
539
639
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "masked", {
|
|
540
640
|
get: function () {
|
|
541
641
|
return this.cardPrefilled ? "*" + this.card.slice(-4) : "*";
|
|
542
642
|
},
|
|
543
|
-
enumerable:
|
|
643
|
+
enumerable: false,
|
|
544
644
|
configurable: true
|
|
545
645
|
});
|
|
546
646
|
TuiInputCardGroupedComponent.prototype.onEsc = function () {
|
|
@@ -554,7 +654,7 @@
|
|
|
554
654
|
};
|
|
555
655
|
TuiInputCardGroupedComponent.prototype.handleOption = function (option) {
|
|
556
656
|
var _a, _b;
|
|
557
|
-
var
|
|
657
|
+
var _d = option.card, card = _d === void 0 ? "" : _d, _e = option.expire, expire = _e === void 0 ? "" : _e, _f = option.cvc, cvc = _f === void 0 ? "" : _f;
|
|
558
658
|
var bin = this.bin;
|
|
559
659
|
var element = (!expire && ((_a = this.inputExpire) === null || _a === void 0 ? void 0 : _a.nativeElement)) || ((_b = this.inputCVC) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
560
660
|
this.updateValue({ card: card, expire: expire, cvc: cvc });
|
|
@@ -564,7 +664,7 @@
|
|
|
564
664
|
element === null || element === void 0 ? void 0 : element.focus();
|
|
565
665
|
};
|
|
566
666
|
TuiInputCardGroupedComponent.prototype.onCardChange = function (card) {
|
|
567
|
-
var
|
|
667
|
+
var _d = this, value = _d.value, bin = _d.bin;
|
|
568
668
|
var parsed = card.split(" ").join("");
|
|
569
669
|
if (value && value.card === parsed) {
|
|
570
670
|
return;
|
|
@@ -600,21 +700,18 @@
|
|
|
600
700
|
this.updateFocused(active);
|
|
601
701
|
this.open = active && this.open;
|
|
602
702
|
};
|
|
603
|
-
TuiInputCardGroupedComponent.prototype.onHovered = function (hovered) {
|
|
604
|
-
this.updateHovered(hovered);
|
|
605
|
-
};
|
|
606
703
|
TuiInputCardGroupedComponent.prototype.onMouseDown = function (event) {
|
|
607
|
-
|
|
608
|
-
if (event.target.matches("input")) {
|
|
704
|
+
if (i3.tuiIsElement(event.target) && i3.tuiIsInput(event.target)) {
|
|
609
705
|
return;
|
|
610
706
|
}
|
|
611
707
|
event.preventDefault();
|
|
612
708
|
this.focusInput();
|
|
613
709
|
};
|
|
614
|
-
TuiInputCardGroupedComponent.prototype.onScroll = function (
|
|
615
|
-
var currentTarget =
|
|
616
|
-
|
|
617
|
-
|
|
710
|
+
TuiInputCardGroupedComponent.prototype.onScroll = function (_d) {
|
|
711
|
+
var currentTarget = _d.currentTarget;
|
|
712
|
+
if (i3.tuiIsElement(currentTarget)) {
|
|
713
|
+
currentTarget.scrollLeft = 0;
|
|
714
|
+
}
|
|
618
715
|
};
|
|
619
716
|
TuiInputCardGroupedComponent.prototype.clear = function () {
|
|
620
717
|
this.updateValue(null);
|
|
@@ -644,16 +741,16 @@
|
|
|
644
741
|
};
|
|
645
742
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "cardFocused", {
|
|
646
743
|
get: function () {
|
|
647
|
-
return !!this.inputCard &&
|
|
744
|
+
return !!this.inputCard && i3.tuiIsNativeFocused(this.inputCard.nativeElement);
|
|
648
745
|
},
|
|
649
|
-
enumerable:
|
|
746
|
+
enumerable: false,
|
|
650
747
|
configurable: true
|
|
651
748
|
});
|
|
652
749
|
Object.defineProperty(TuiInputCardGroupedComponent.prototype, "paymentSystem", {
|
|
653
750
|
get: function () {
|
|
654
|
-
return this.value && utils.
|
|
751
|
+
return this.value && utils.tuiGetPaymentSystem(this.value.card);
|
|
655
752
|
},
|
|
656
|
-
enumerable:
|
|
753
|
+
enumerable: false,
|
|
657
754
|
configurable: true
|
|
658
755
|
});
|
|
659
756
|
TuiInputCardGroupedComponent.prototype.isFocusable = function (card) {
|
|
@@ -666,7 +763,7 @@
|
|
|
666
763
|
}
|
|
667
764
|
};
|
|
668
765
|
TuiInputCardGroupedComponent.prototype.updateProperty = function (propValue, propName) {
|
|
669
|
-
var
|
|
766
|
+
var _d = this.value || STUB, card = _d.card, expire = _d.expire, cvc = _d.cvc;
|
|
670
767
|
var newValue = {
|
|
671
768
|
card: card,
|
|
672
769
|
expire: expire,
|
|
@@ -683,138 +780,188 @@
|
|
|
683
780
|
TuiInputCardGroupedComponent.prototype.focusInput = function () {
|
|
684
781
|
var _a, _b, _c;
|
|
685
782
|
var element = (this.cardFocusable && ((_a = this.inputCard) === null || _a === void 0 ? void 0 : _a.nativeElement)) ||
|
|
686
|
-
(this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
|
|
783
|
+
(this.expireFocusable && ((_b = this.inputExpire) === null || _b === void 0 ? void 0 : _b.nativeElement)) ||
|
|
784
|
+
((_c = this.inputCVC) === null || _c === void 0 ? void 0 : _c.nativeElement);
|
|
687
785
|
element === null || element === void 0 ? void 0 : element.focus();
|
|
688
786
|
};
|
|
689
|
-
var TuiInputCardGroupedComponent_1;
|
|
690
|
-
TuiInputCardGroupedComponent.ctorParameters = function () { return [
|
|
691
|
-
{ type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NgControl,] }] },
|
|
692
|
-
{ type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
|
|
693
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
694
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [core$1.TUI_MODE,] }] },
|
|
695
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TUI_INPUT_CARD_GROUPED_TEXTS,] }] },
|
|
696
|
-
{ type: String, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_APPEARANCE,] }] }
|
|
697
|
-
]; };
|
|
698
|
-
__decorate([
|
|
699
|
-
core.ViewChild("inputCard")
|
|
700
|
-
], TuiInputCardGroupedComponent.prototype, "inputCard", void 0);
|
|
701
|
-
__decorate([
|
|
702
|
-
core.ViewChild("inputExpire")
|
|
703
|
-
], TuiInputCardGroupedComponent.prototype, "inputExpire", void 0);
|
|
704
|
-
__decorate([
|
|
705
|
-
core.ViewChild("inputCVC")
|
|
706
|
-
], TuiInputCardGroupedComponent.prototype, "inputCVC", void 0);
|
|
707
|
-
__decorate([
|
|
708
|
-
core.Input(),
|
|
709
|
-
cdk.tuiDefaultProp()
|
|
710
|
-
], TuiInputCardGroupedComponent.prototype, "autocompleteEnabled", void 0);
|
|
711
|
-
__decorate([
|
|
712
|
-
core.Input(),
|
|
713
|
-
cdk.tuiDefaultProp()
|
|
714
|
-
], TuiInputCardGroupedComponent.prototype, "cardSrc", void 0);
|
|
715
|
-
__decorate([
|
|
716
|
-
core.Input(),
|
|
717
|
-
cdk.tuiDefaultProp()
|
|
718
|
-
], TuiInputCardGroupedComponent.prototype, "exampleText", void 0);
|
|
719
|
-
__decorate([
|
|
720
|
-
core.Input(),
|
|
721
|
-
cdk.tuiDefaultProp()
|
|
722
|
-
], TuiInputCardGroupedComponent.prototype, "cardValidator", void 0);
|
|
723
|
-
__decorate([
|
|
724
|
-
core.Input(),
|
|
725
|
-
cdk.tuiRequiredSetter()
|
|
726
|
-
], TuiInputCardGroupedComponent.prototype, "codeLength", null);
|
|
727
|
-
__decorate([
|
|
728
|
-
core.Output()
|
|
729
|
-
], TuiInputCardGroupedComponent.prototype, "autofilledChange", void 0);
|
|
730
|
-
__decorate([
|
|
731
|
-
core.Output()
|
|
732
|
-
], TuiInputCardGroupedComponent.prototype, "binChange", void 0);
|
|
733
|
-
__decorate([
|
|
734
|
-
core.ContentChild(core$1.TuiDataListDirective, { read: core.TemplateRef })
|
|
735
|
-
], TuiInputCardGroupedComponent.prototype, "dropdown", void 0);
|
|
736
|
-
__decorate([
|
|
737
|
-
core.ContentChild(core$1.TuiDataListComponent)
|
|
738
|
-
], TuiInputCardGroupedComponent.prototype, "datalist", void 0);
|
|
739
|
-
__decorate([
|
|
740
|
-
core.HostListener("keydown.esc")
|
|
741
|
-
], TuiInputCardGroupedComponent.prototype, "onEsc", null);
|
|
742
|
-
__decorate([
|
|
743
|
-
core.HostListener("keydown.arrowDown.prevent", ["$event.target", "1"]),
|
|
744
|
-
core.HostListener("keydown.arrowUp.prevent", ["$event.target", "-1"])
|
|
745
|
-
], TuiInputCardGroupedComponent.prototype, "onArrow", null);
|
|
746
|
-
__decorate([
|
|
747
|
-
cdk.tuiPure
|
|
748
|
-
], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
|
|
749
|
-
TuiInputCardGroupedComponent = TuiInputCardGroupedComponent_1 = __decorate([
|
|
750
|
-
core.Component({
|
|
751
|
-
selector: "tui-input-card-grouped",
|
|
752
|
-
template: "<tui-wrapper\n *ngIf=\"cardGroupedTexts$ | async as texts\"\n class=\"t-common-wrapper\"\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n [tuiDropdown]=\"open\"\n [tuiDropdownContent]=\"dropdown || ''\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiActiveZoneChange)=\"onActiveZoneChange($event)\"\n (scroll)=\"onScroll($event)\"\n (mousedown)=\"onMouseDown($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 type=\"text\"\n automation-id=\"tui-input-card-grouped__card\"\n tuiInputMode=\"numeric\"\n class=\"t-input t-input_card\"\n [class.t-input_inert]=\"cardPrefilled\"\n [class.t-input_hidden]=\"!card.length && focused\"\n [attr.id]=\"idCard\"\n [attr.aria-invalid]=\"!cardPrefilled && !(this.card | tuiMapper: cardValidator)\"\n [placeholder]=\"cardPrefilled ? '' : exampleText\"\n [autocomplete]=\"autocompleteCard\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [textMask]=\"maskCard\"\n [tuiFocusable]=\"cardFocusable\"\n [ngModel]=\"formattedCard\"\n (ngModelChange)=\"onCardChange($event)\"\n (focus)=\"(0)\"\n />\n <span\n aria-hidden=\"true\"\n class=\"t-collapsed\"\n [attr.data-before]=\"masked\"\n [class.t-collapsed_enable-mask]=\"isCardCollapsed\"\n >\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [class.t-value_collapsed]=\"isCardCollapsed\"\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 type=\"text\"\n placeholder=\"00/00\"\n automation-id=\"tui-input-card-grouped__expire\"\n tuiInputMode=\"numeric\"\n class=\"t-input\"\n [class.t-input_inert]=\"!expireFocusable\"\n [attr.id]=\"idExpire\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocompleteExpire\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiFocusable]=\"expireFocusable\"\n [textMask]=\"maskExpire\"\n [ngModel]=\"expire\"\n (ngModelChange)=\"onExpireChange($event)\"\n (focus)=\"(0)\"\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 type=\"text\"\n automation-id=\"tui-input-card-grouped__cvc\"\n tuiInputMode=\"numeric\"\n class=\"t-input\"\n [class.t-input_prefilled]=\"cvcPrefilled\"\n [placeholder]=\"cvcPrefilled ? '\u2022\u2022\u2022' : exampleTextCVC\"\n [attr.id]=\"idCVC\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || cvcPrefilled\"\n [autocomplete]=\"autocompleteCVC\"\n [textMask]=\"maskCVC\"\n [tuiFocusable]=\"cvcFocusable\"\n [ngModel]=\"cvc\"\n (ngModelChange)=\"onCVCChange($event)\"\n (focus)=\"(0)\"\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 polymorpheus-outlet\n class=\"t-icon-outlet\"\n [content]=\"icon\"\n >\n <ng-template let-icon>\n <tui-svg\n automation-id=\"tui-input-card-grouped__icon\"\n class=\"t-card\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </div>\n <tui-svg\n *ngIf=\"hasCleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-icon\"\n (click)=\"clear()\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"hasDropdown\"\n src=\"tuiIconChevronDownLarge\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n (click)=\"toggle()\"\n ></tui-svg>\n </div>\n</tui-wrapper>\n",
|
|
753
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
754
|
-
providers: [
|
|
755
|
-
core$1.MODE_PROVIDER,
|
|
756
|
-
{
|
|
757
|
-
provide: cdk.TUI_FOCUSABLE_ITEM_ACCESSOR,
|
|
758
|
-
useExisting: core.forwardRef(function () { return TuiInputCardGroupedComponent_1; }),
|
|
759
|
-
},
|
|
760
|
-
{
|
|
761
|
-
provide: core$1.TUI_DATA_LIST_HOST,
|
|
762
|
-
useExisting: core.forwardRef(function () { return TuiInputCardGroupedComponent_1; }),
|
|
763
|
-
},
|
|
764
|
-
],
|
|
765
|
-
host: {
|
|
766
|
-
'($.data-mode.attr)': "mode$",
|
|
767
|
-
'data-size': "l",
|
|
768
|
-
},
|
|
769
|
-
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,300ms);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:.625rem}.t-collapsed{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0 0 0 1rem;margin:0;border-radius:inherit;background:0 0;font-size:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-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%;padding:0 var(--tui-padding-m);border:0;border-width:0 var(--border-end,0) 0 var(--border-start,0);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;line-height:2.25rem;pointer-events:none}.t-collapsed:-webkit-autofill,.t-collapsed:-webkit-autofill:focus,.t-collapsed:-webkit-autofill:hover{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 :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-collapsed :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-collapsed :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-collapsed :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-collapsed :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-collapsed :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-collapsed:-webkit-autofill,:host[data-mode=onDark] .t-collapsed:-webkit-autofill:focus,:host[data-mode=onDark] .t-collapsed:-webkit-autofill:hover{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}.t-collapsed :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-collapsed :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-collapsed{padding:0 var(--tui-padding-s)}.t-collapsed :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-collapsed :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-collapsed{padding:0 var(--tui-padding-l)}.t-collapsed :host-context(tui-primitive-textfield._disabled),.t-collapsed :host-context(tui-text-area._disabled),:host._disabled .t-collapsed{pointer-events:none}.t-collapsed :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-collapsed{padding-top:1.25rem}.t-collapsed :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder,:host[data-size='l']:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-collapsed :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-collapsed{padding-top:1.125rem}.t-collapsed :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder,:host[data-size='m']:not(._label-outside) .t-collapsed:-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-collapsed :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-collapsed{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,300ms);transition-timing-function:ease-in-out;position:absolute;bottom:0;right:100%;display:block;transform:translate3d(100%,0,0)}.t-value_collapsed{transform:translate3d(4ch,0,0)}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0 1rem;margin:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-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%;padding:0 var(--tui-padding-m);border:0;border-width:0 var(--border-end,0) 0 var(--border-start,0);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,300ms);transition-timing-function:ease-in-out}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{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 :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{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}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.t-content .t-placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.t-content .t-placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-input::-ms-input-placeholder{color:var(--tui-text-03)}.t-input::placeholder{color:var(--tui-text-03)}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}.t-input_card:not(.t-input_hidden),.t-input_card:not(.t-input_hidden):-webkit-autofill,.t-input_card:not(.t-input_hidden)::placeholder,:host[data-mode=onDark] .t-input_card:not(.t-input_hidden),:host[data-mode=onDark] .t-input_card:not(.t-input_hidden):-webkit-autofill,:host[data-mode=onDark] .t-input_card:not(.t-input_hidden)::placeholder{color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input_card::-webkit-credit-card-auto-fill-button,:host[data-mode=onDark] .t-input_card::-webkit-credit-card-auto-fill-button{pointer-events:none;background-color:transparent!important;-webkit-mask-image: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:inherit}.t-icon{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-icon:hover{color:var(--tui-text-02)}:host._disabled .t-icon,:host._readonly .t-icon{pointer-events:none}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-icon:hover{color:var(--tui-text-01-night)}.t-icon_rotated{transform:rotate(180deg)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1.125rem 1rem;line-height:1.25rem}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);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[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}"]
|
|
770
|
-
}),
|
|
771
|
-
__param(0, core.Optional()),
|
|
772
|
-
__param(0, core.Self()),
|
|
773
|
-
__param(0, core.Inject(forms.NgControl)),
|
|
774
|
-
__param(1, core.Inject(core.ChangeDetectorRef)),
|
|
775
|
-
__param(2, core.Inject(core.ElementRef)),
|
|
776
|
-
__param(3, core.Inject(core$1.TUI_MODE)),
|
|
777
|
-
__param(4, core.Inject(TUI_INPUT_CARD_GROUPED_TEXTS)),
|
|
778
|
-
__param(5, core.Inject(core$1.TUI_TEXTFIELD_APPEARANCE))
|
|
779
|
-
], TuiInputCardGroupedComponent);
|
|
780
787
|
return TuiInputCardGroupedComponent;
|
|
781
|
-
}(
|
|
788
|
+
}(i3.AbstractTuiNullableControl));
|
|
789
|
+
TuiInputCardGroupedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, deps: [{ token: i4.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TUI_MODE }, { token: TUI_INPUT_CARD_GROUPED_TEXTS }, { token: i1.TUI_TEXTFIELD_APPEARANCE }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
790
|
+
TuiInputCardGroupedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputCardGroupedComponent, selector: "tui-input-card-grouped", inputs: { autocompleteEnabled: "autocompleteEnabled", cardSrc: "cardSrc", exampleText: "exampleText", cardValidator: "cardValidator", codeLength: "codeLength" }, outputs: { autofilledChange: "autofilledChange", binChange: "binChange" }, 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: [
|
|
791
|
+
i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
|
|
792
|
+
i3.tuiAsControl(TuiInputCardGroupedComponent),
|
|
793
|
+
i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
|
|
794
|
+
i1.MODE_PROVIDER,
|
|
795
|
+
], queries: [{ propertyName: "dropdown", first: true, predicate: i1.TuiDataListDirective, descendants: true, read: i0.TemplateRef }, { propertyName: "datalist", first: true, predicate: i1.TuiDataListComponent, descendants: true }], viewQueries: [{ propertyName: "inputCard", first: true, predicate: ["inputCard"], descendants: true }, { propertyName: "inputExpire", first: true, predicate: ["inputExpire"], descendants: true }, { propertyName: "inputCVC", first: true, predicate: ["inputCVC"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<div\n *ngIf=\"cardGroupedTexts$ | async as texts\"\n tuiWrapper\n class=\"t-common-wrapper\"\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [tuiDropdownManual]=\"open\"\n [tuiDropdown]=\"dropdown || ''\"\n (tuiActiveZoneChange)=\"onActiveZoneChange($event)\"\n (scroll)=\"onScroll($event)\"\n (mousedown)=\"onMouseDown($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 type=\"text\"\n automation-id=\"tui-input-card-grouped__card\"\n tuiInputMode=\"numeric\"\n class=\"t-input t-input_card\"\n [class.t-input_inert]=\"cardPrefilled\"\n [class.t-input_hidden]=\"!card.length && focused\"\n [attr.id]=\"idCard\"\n [attr.aria-invalid]=\"!cardPrefilled && !(this.card | tuiMapper: cardValidator)\"\n [placeholder]=\"cardPrefilled ? '' : exampleText\"\n [autocomplete]=\"autocompleteCard\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [textMask]=\"maskCard\"\n [tuiFocusable]=\"cardFocusable\"\n [ngModel]=\"formattedCard\"\n (ngModelChange)=\"onCardChange($event)\"\n (focus)=\"(0)\"\n />\n <span\n aria-hidden=\"true\"\n class=\"t-collapsed\"\n [attr.data-before]=\"masked\"\n [class.t-collapsed_enable-mask]=\"isCardCollapsed\"\n >\n <span class=\"t-collapsed-wrapper\">\n <span\n class=\"t-value\"\n [class.t-value_collapsed]=\"isCardCollapsed\"\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 type=\"text\"\n placeholder=\"00/00\"\n automation-id=\"tui-input-card-grouped__expire\"\n tuiInputMode=\"numeric\"\n class=\"t-input\"\n [class.t-input_inert]=\"!expireFocusable\"\n [attr.id]=\"idExpire\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocompleteExpire\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiFocusable]=\"expireFocusable\"\n [textMask]=\"maskExpire\"\n [ngModel]=\"expire\"\n (ngModelChange)=\"onExpireChange($event)\"\n (focus)=\"(0)\"\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 type=\"text\"\n automation-id=\"tui-input-card-grouped__cvc\"\n tuiInputMode=\"numeric\"\n class=\"t-input\"\n [class.t-input_prefilled]=\"cvcPrefilled\"\n [placeholder]=\"cvcPrefilled ? '\u2022\u2022\u2022' : exampleTextCVC\"\n [attr.id]=\"idCVC\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || cvcPrefilled\"\n [autocomplete]=\"autocompleteCVC\"\n [textMask]=\"maskCVC\"\n [tuiFocusable]=\"cvcFocusable\"\n [ngModel]=\"cvc\"\n (ngModelChange)=\"onCVCChange($event)\"\n (focus)=\"(0)\"\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 src=\"tuiIconCloseLarge\"\n class=\"t-icon\"\n (click)=\"clear()\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"hasDropdown\"\n src=\"tuiIconChevronDownLarge\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\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:.3s;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:translate(100%)}:host-context(tui-root._mobile) .t-wrapper_cvc{margin-left:4.0625rem}.t-wrapper_expire{transform:translate(100%)}.t-wrapper_active{transform:translate(6.5625rem)}:host-context(tui-root._mobile) .t-wrapper_active{transform:translate(4.125rem)}.t-card{width:2rem;height:2rem;margin-right:.625rem}.t-collapsed{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin: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%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 0 0 0;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:0;border-inline-start-width:var(--border-start, 0);border-inline-end-width: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}:host[data-mode=onDark] .t-collapsed:-webkit-autofill,.t-collapsed :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill,.t-collapsed :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill,:host[data-mode=onDark] .t-collapsed:-webkit-autofill:hover,.t-collapsed :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill:hover,.t-collapsed :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill:hover,:host[data-mode=onDark] .t-collapsed:-webkit-autofill:focus,.t-collapsed :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill:focus,.t-collapsed :host-context(tui-text-area[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}: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-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}: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-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-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:1.125rem}: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:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;bottom:0;right:100%;display:block;transform:translate(100%)}.t-value_collapsed{transform:translate(4ch)}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin: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%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 0 0 0;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:0;border-inline-start-width:var(--border-start, 0);border-inline-end-width: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:.3s;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}:host[data-mode=onDark] .t-input:-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:hover,.t-input :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=\"onDark\"]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=\"onDark\"]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[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}: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-text-area[data-size=\"s\"]):not(tui-text-area){padding:0 var(--tui-padding-s)}: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-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-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:1.125rem}: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::-ms-input-placeholder{color:var(--tui-text-03)}.t-input::placeholder{color:var(--tui-text-03)}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}.t-input_card:not(.t-input_hidden),:host[data-mode=onDark] .t-input_card:not(.t-input_hidden),.t-input_card:not(.t-input_hidden)::placeholder,:host[data-mode=onDark] .t-input_card:not(.t-input_hidden)::placeholder,.t-input_card:not(.t-input_hidden):-webkit-autofill,:host[data-mode=onDark] .t-input_card:not(.t-input_hidden):-webkit-autofill{color:transparent!important;-webkit-text-fill-color:transparent!important}.t-input_card::-webkit-credit-card-auto-fill-button,:host[data-mode=onDark] .t-input_card::-webkit-credit-card-auto-fill-button{pointer-events:none;background-color:transparent!important;-webkit-mask-image: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-property:all;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-icon:hover{color:var(--tui-text-02)}:host._readonly .t-icon,:host._disabled .t-icon{pointer-events:none}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-icon:hover{color:var(--tui-text-01-night)}.t-icon_rotated{transform:rotate(180deg)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:.3s;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);margin:1.125rem 1rem;line-height:1.25rem}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size=m] .t-placeholder_raised{font:var(--tui-font-text-xs);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[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .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-size:.9375rem}: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)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size=m][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size=l][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size=m][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size=l][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}\n"], components: [{ type: i1__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i1__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i1__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i1__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i1__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i3__namespace.TuiPreventDefaultDirective, selector: "[tuiPreventDefault]" }, { type: i3__namespace.TuiInputModeDirective, selector: "input[tuiInputMode]", inputs: ["tuiInputMode"] }, { type: i4__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5__namespace.MaskedInputDirective, selector: "[textMask]", inputs: ["textMask"], exportAs: ["textMask"] }, { type: i3__namespace.TuiFocusableDirective, selector: "[tuiFocusable]", inputs: ["tuiFocusable"] }, { type: i4__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i6__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i2__namespace.AsyncPipe, "tuiFormatCard": i7__namespace.TuiFormatCardPipe, "tuiMapper": i3__namespace.TuiMapperPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
796
|
+
__decorate([
|
|
797
|
+
i3.tuiDefaultProp()
|
|
798
|
+
], TuiInputCardGroupedComponent.prototype, "autocompleteEnabled", void 0);
|
|
799
|
+
__decorate([
|
|
800
|
+
i3.tuiDefaultProp()
|
|
801
|
+
], TuiInputCardGroupedComponent.prototype, "cardSrc", void 0);
|
|
802
|
+
__decorate([
|
|
803
|
+
i3.tuiDefaultProp()
|
|
804
|
+
], TuiInputCardGroupedComponent.prototype, "exampleText", void 0);
|
|
805
|
+
__decorate([
|
|
806
|
+
i3.tuiDefaultProp()
|
|
807
|
+
], TuiInputCardGroupedComponent.prototype, "cardValidator", void 0);
|
|
808
|
+
__decorate([
|
|
809
|
+
i3.tuiRequiredSetter()
|
|
810
|
+
], TuiInputCardGroupedComponent.prototype, "codeLength", null);
|
|
811
|
+
__decorate([
|
|
812
|
+
i3.tuiPure
|
|
813
|
+
], TuiInputCardGroupedComponent.prototype, "isFocusable", null);
|
|
814
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputCardGroupedComponent, decorators: [{
|
|
815
|
+
type: i0.Component,
|
|
816
|
+
args: [{
|
|
817
|
+
selector: "tui-input-card-grouped",
|
|
818
|
+
templateUrl: "./input-card-grouped.template.html",
|
|
819
|
+
styleUrls: ["./input-card-grouped.style.less"],
|
|
820
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
821
|
+
providers: [
|
|
822
|
+
i3.tuiAsFocusableItemAccessor(TuiInputCardGroupedComponent),
|
|
823
|
+
i3.tuiAsControl(TuiInputCardGroupedComponent),
|
|
824
|
+
i1.tuiAsDataListHost(TuiInputCardGroupedComponent),
|
|
825
|
+
i1.MODE_PROVIDER,
|
|
826
|
+
],
|
|
827
|
+
host: {
|
|
828
|
+
'($.data-mode.attr)': "mode$",
|
|
829
|
+
'data-size': "l",
|
|
830
|
+
},
|
|
831
|
+
}]
|
|
832
|
+
}], ctorParameters: function () {
|
|
833
|
+
return [{ type: i4__namespace.NgControl, decorators: [{
|
|
834
|
+
type: i0.Optional
|
|
835
|
+
}, {
|
|
836
|
+
type: i0.Self
|
|
837
|
+
}, {
|
|
838
|
+
type: i0.Inject,
|
|
839
|
+
args: [i4.NgControl]
|
|
840
|
+
}] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
|
|
841
|
+
type: i0.Inject,
|
|
842
|
+
args: [i0.ChangeDetectorRef]
|
|
843
|
+
}] }, { type: i0__namespace.ElementRef, decorators: [{
|
|
844
|
+
type: i0.Inject,
|
|
845
|
+
args: [i0.ElementRef]
|
|
846
|
+
}] }, { type: i8__namespace.Observable, decorators: [{
|
|
847
|
+
type: i0.Inject,
|
|
848
|
+
args: [i1.TUI_MODE]
|
|
849
|
+
}] }, { type: i8__namespace.Observable, decorators: [{
|
|
850
|
+
type: i0.Inject,
|
|
851
|
+
args: [TUI_INPUT_CARD_GROUPED_TEXTS]
|
|
852
|
+
}] }, { type: undefined, decorators: [{
|
|
853
|
+
type: i0.Inject,
|
|
854
|
+
args: [i1.TUI_TEXTFIELD_APPEARANCE]
|
|
855
|
+
}] }];
|
|
856
|
+
}, propDecorators: { inputCard: [{
|
|
857
|
+
type: i0.ViewChild,
|
|
858
|
+
args: ["inputCard"]
|
|
859
|
+
}], inputExpire: [{
|
|
860
|
+
type: i0.ViewChild,
|
|
861
|
+
args: ["inputExpire"]
|
|
862
|
+
}], inputCVC: [{
|
|
863
|
+
type: i0.ViewChild,
|
|
864
|
+
args: ["inputCVC"]
|
|
865
|
+
}], autocompleteEnabled: [{
|
|
866
|
+
type: i0.Input
|
|
867
|
+
}], cardSrc: [{
|
|
868
|
+
type: i0.Input
|
|
869
|
+
}], exampleText: [{
|
|
870
|
+
type: i0.Input
|
|
871
|
+
}], cardValidator: [{
|
|
872
|
+
type: i0.Input
|
|
873
|
+
}], codeLength: [{
|
|
874
|
+
type: i0.Input
|
|
875
|
+
}], autofilledChange: [{
|
|
876
|
+
type: i0.Output
|
|
877
|
+
}], binChange: [{
|
|
878
|
+
type: i0.Output
|
|
879
|
+
}], dropdown: [{
|
|
880
|
+
type: i0.ContentChild,
|
|
881
|
+
args: [i1.TuiDataListDirective, { read: i0.TemplateRef }]
|
|
882
|
+
}], datalist: [{
|
|
883
|
+
type: i0.ContentChild,
|
|
884
|
+
args: [i1.TuiDataListComponent]
|
|
885
|
+
}], onEsc: [{
|
|
886
|
+
type: i0.HostListener,
|
|
887
|
+
args: ["keydown.esc"]
|
|
888
|
+
}], onArrow: [{
|
|
889
|
+
type: i0.HostListener,
|
|
890
|
+
args: ["keydown.arrowDown.prevent", ["$event.target", "1"]]
|
|
891
|
+
}, {
|
|
892
|
+
type: i0.HostListener,
|
|
893
|
+
args: ["keydown.arrowUp.prevent", ["$event.target", "-1"]]
|
|
894
|
+
}], isFocusable: [] } });
|
|
782
895
|
|
|
783
896
|
var TuiInputCardGroupedModule = /** @class */ (function () {
|
|
784
897
|
function TuiInputCardGroupedModule() {
|
|
785
898
|
}
|
|
786
|
-
TuiInputCardGroupedModule = __decorate([
|
|
787
|
-
core.NgModule({
|
|
788
|
-
imports: [
|
|
789
|
-
common$1.CommonModule,
|
|
790
|
-
forms.FormsModule,
|
|
791
|
-
angular2TextMask.TextMaskModule,
|
|
792
|
-
cdk.TuiFocusableModule,
|
|
793
|
-
core$1.TuiSvgModule,
|
|
794
|
-
core$1.TuiWrapperModule,
|
|
795
|
-
cdk.TuiHoveredModule,
|
|
796
|
-
cdk.TuiActiveZoneModule,
|
|
797
|
-
cdk.TuiInputModeModule,
|
|
798
|
-
cdk.TuiMapperPipeModule,
|
|
799
|
-
core$1.TuiDropdownModule,
|
|
800
|
-
cdk.TuiPreventDefaultModule,
|
|
801
|
-
ngPolymorpheus.PolymorpheusModule,
|
|
802
|
-
cdk.TuiLetModule,
|
|
803
|
-
pipes.TuiFormatCardModule,
|
|
804
|
-
],
|
|
805
|
-
declarations: [TuiInputCardGroupedComponent],
|
|
806
|
-
exports: [TuiInputCardGroupedComponent],
|
|
807
|
-
})
|
|
808
|
-
], TuiInputCardGroupedModule);
|
|
809
899
|
return TuiInputCardGroupedModule;
|
|
810
900
|
}());
|
|
901
|
+
TuiInputCardGroupedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputCardGroupedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
902
|
+
TuiInputCardGroupedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputCardGroupedModule, declarations: [TuiInputCardGroupedComponent], imports: [i2.CommonModule,
|
|
903
|
+
i4.FormsModule,
|
|
904
|
+
i5.TextMaskModule,
|
|
905
|
+
i3.TuiFocusableModule,
|
|
906
|
+
i1.TuiSvgModule,
|
|
907
|
+
i1.TuiWrapperModule,
|
|
908
|
+
i3.TuiActiveZoneModule,
|
|
909
|
+
i3.TuiInputModeModule,
|
|
910
|
+
i3.TuiMapperPipeModule,
|
|
911
|
+
i1.TuiDropdownModule,
|
|
912
|
+
i3.TuiPreventDefaultModule,
|
|
913
|
+
i6.PolymorpheusModule,
|
|
914
|
+
i3.TuiLetModule,
|
|
915
|
+
i7.TuiFormatCardModule], exports: [TuiInputCardGroupedComponent] });
|
|
916
|
+
TuiInputCardGroupedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputCardGroupedModule, imports: [[
|
|
917
|
+
i2.CommonModule,
|
|
918
|
+
i4.FormsModule,
|
|
919
|
+
i5.TextMaskModule,
|
|
920
|
+
i3.TuiFocusableModule,
|
|
921
|
+
i1.TuiSvgModule,
|
|
922
|
+
i1.TuiWrapperModule,
|
|
923
|
+
i3.TuiActiveZoneModule,
|
|
924
|
+
i3.TuiInputModeModule,
|
|
925
|
+
i3.TuiMapperPipeModule,
|
|
926
|
+
i1.TuiDropdownModule,
|
|
927
|
+
i3.TuiPreventDefaultModule,
|
|
928
|
+
i6.PolymorpheusModule,
|
|
929
|
+
i3.TuiLetModule,
|
|
930
|
+
i7.TuiFormatCardModule,
|
|
931
|
+
]] });
|
|
932
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputCardGroupedModule, decorators: [{
|
|
933
|
+
type: i0.NgModule,
|
|
934
|
+
args: [{
|
|
935
|
+
imports: [
|
|
936
|
+
i2.CommonModule,
|
|
937
|
+
i4.FormsModule,
|
|
938
|
+
i5.TextMaskModule,
|
|
939
|
+
i3.TuiFocusableModule,
|
|
940
|
+
i1.TuiSvgModule,
|
|
941
|
+
i1.TuiWrapperModule,
|
|
942
|
+
i3.TuiActiveZoneModule,
|
|
943
|
+
i3.TuiInputModeModule,
|
|
944
|
+
i3.TuiMapperPipeModule,
|
|
945
|
+
i1.TuiDropdownModule,
|
|
946
|
+
i3.TuiPreventDefaultModule,
|
|
947
|
+
i6.PolymorpheusModule,
|
|
948
|
+
i3.TuiLetModule,
|
|
949
|
+
i7.TuiFormatCardModule,
|
|
950
|
+
],
|
|
951
|
+
declarations: [TuiInputCardGroupedComponent],
|
|
952
|
+
exports: [TuiInputCardGroupedComponent],
|
|
953
|
+
}]
|
|
954
|
+
}] });
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Generated bundle index. Do not edit.
|
|
958
|
+
*/
|
|
811
959
|
|
|
812
960
|
exports.TUI_INPUT_CARD_GROUPED_TEXTS = TUI_INPUT_CARD_GROUPED_TEXTS;
|
|
813
961
|
exports.TuiInputCardGroupedComponent = TuiInputCardGroupedComponent;
|
|
814
962
|
exports.TuiInputCardGroupedModule = TuiInputCardGroupedModule;
|
|
815
|
-
exports.inputGroupedTextsFactory = inputGroupedTextsFactory;
|
|
816
963
|
|
|
817
964
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
818
965
|
|
|
819
|
-
}))
|
|
966
|
+
}));
|
|
820
967
|
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map
|