@taiga-ui/addon-commerce 2.61.0 → 3.0.0-rc.2
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 +6 -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 +37 -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 +0 -5
- package/enums/currency.d.ts +0 -5
- 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 +1 -7
- package/esm2015/enums/currency.js +1 -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 +2 -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 +1 -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 +32 -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 -225
- package/esm5/enums/currency.js +0 -225
- 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 -80
- 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 -483
- 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 -307
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-constants.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-constants.js","sources":["../../../projects/addon-commerce/constants/card-holder-mask.ts","../../../projects/addon-commerce/constants/card-mask.ts","../../../projects/addon-commerce/constants/default-card-validator.ts","../../../projects/addon-commerce/constants/taiga-ui-addon-commerce-constants.ts"],"sourcesContent":["import {tuiCreateCorrectionMask, TuiTextMaskListHandler} from '@taiga-ui/core';\n\nconst ALLOWED_REGEXP = /[A-Z]| /;\nconst MAP: Record<string, string> = {\n А: `F`,\n В: `D`,\n Г: `U`,\n Д: `L`,\n Е: `T`,\n З: `P`,\n И: `B`,\n Й: `Q`,\n К: `R`,\n Л: `K`,\n М: `V`,\n Н: `Y`,\n О: `J`,\n П: `G`,\n Р: `H`,\n С: `C`,\n Т: `N`,\n У: `E`,\n Ф: `A`,\n Ц: `W`,\n Ч: `X`,\n Ш: `I`,\n Щ: `O`,\n Ы: `S`,\n Ь: `M`,\n Я: `Z`,\n};\n\nfunction toEnglishUppercase(char: string): string | null {\n const uppercase = char.toUpperCase();\n const result = ALLOWED_REGEXP.test(uppercase) ? uppercase : MAP[uppercase];\n\n return result || null;\n}\n\nexport const cardHolderMask: TuiTextMaskListHandler = tuiCreateCorrectionMask(\n ALLOWED_REGEXP,\n toEnglishUppercase,\n);\n","import {TUI_DIGIT_REGEXP} from '@taiga-ui/core';\n\n/**\n * @internal\n */\nexport const TUI_CARD_MASK = [\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ` `,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ` `,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ` `,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n ` `,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n TUI_DIGIT_REGEXP,\n];\n","import {tuiIsCardLengthValid, tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils';\nimport {TuiBooleanHandler} from '@taiga-ui/cdk';\n\nexport const tuiDefaultCardValidator: TuiBooleanHandler<string> = card =>\n card.length > 11 && tuiIsCardLengthValid(card) && tuiIsCardNumberValid(card);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,MAAM,cAAc,GAAG,SAAS,CAAC;AACjC,MAAM,GAAG,GAA2B;AAChC,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,CAAG,CAAA,CAAA;AACN,IAAA,CAAC,EAAE,C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";
|
|
155
|
-
/**
|
|
156
|
-
* @deprecated:
|
|
157
|
-
* TODO: 3.0 replace with {@link HongKongDollar}
|
|
158
|
-
*/
|
|
159
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
160
|
-
TuiCurrency["HongKong_dollar"] = "HKD";
|
|
161
155
|
/**
|
|
162
156
|
* Canadian dollar
|
|
163
157
|
*
|
|
@@ -377,12 +371,6 @@ var TuiCurrencyCode;
|
|
|
377
371
|
* @description Currency symbol: HK$
|
|
378
372
|
*/
|
|
379
373
|
TuiCurrencyCode["HongKongDollar"] = "344";
|
|
380
|
-
/**
|
|
381
|
-
* @deprecated
|
|
382
|
-
* TODO: 3.0 replace with {@link HongKongDollar}
|
|
383
|
-
*/
|
|
384
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
385
|
-
TuiCurrencyCode["HongKong_dollar"] = "344";
|
|
386
374
|
/**
|
|
387
375
|
* Canadian dollar
|
|
388
376
|
*
|
|
@@ -448,36 +436,9 @@ var TuiCurrencyCode;
|
|
|
448
436
|
TuiCurrencyCode["Dirham"] = "784";
|
|
449
437
|
})(TuiCurrencyCode || (TuiCurrencyCode = {}));
|
|
450
438
|
|
|
451
|
-
/**
|
|
452
|
-
* negative-only — show sign only for negative numbers
|
|
453
|
-
* always — always show sign, except for zero
|
|
454
|
-
* never — never show sign
|
|
455
|
-
* force-negative — show minus no matter the number, except for zero
|
|
456
|
-
* force-positive — show plus no matter the number, except for zero
|
|
457
|
-
* @deprecated use join type {@link TuiMoneySignT}
|
|
458
|
-
* TODO: delete in v3.0
|
|
459
|
-
*/
|
|
460
|
-
var TuiMoneySign;
|
|
461
|
-
(function (TuiMoneySign) {
|
|
462
|
-
TuiMoneySign["NegativeOnly"] = "negative-only";
|
|
463
|
-
TuiMoneySign["Always"] = "always";
|
|
464
|
-
TuiMoneySign["Never"] = "never";
|
|
465
|
-
TuiMoneySign["ForceNegative"] = "force-negative";
|
|
466
|
-
TuiMoneySign["ForcePositive"] = "force-positive";
|
|
467
|
-
})(TuiMoneySign || (TuiMoneySign = {}));
|
|
468
|
-
|
|
469
|
-
var TuiPaymentSystem;
|
|
470
|
-
(function (TuiPaymentSystem) {
|
|
471
|
-
TuiPaymentSystem["Visa"] = "visa";
|
|
472
|
-
TuiPaymentSystem["Electron"] = "electron";
|
|
473
|
-
TuiPaymentSystem["Mastercard"] = "mastercard";
|
|
474
|
-
TuiPaymentSystem["Maestro"] = "maestro";
|
|
475
|
-
TuiPaymentSystem["Mir"] = "mir";
|
|
476
|
-
})(TuiPaymentSystem || (TuiPaymentSystem = {}));
|
|
477
|
-
|
|
478
439
|
/**
|
|
479
440
|
* Generated bundle index. Do not edit.
|
|
480
441
|
*/
|
|
481
442
|
|
|
482
|
-
export { TuiCurrency, TuiCurrencyCode
|
|
443
|
+
export { TuiCurrency, TuiCurrencyCode };
|
|
483
444
|
//# sourceMappingURL=taiga-ui-addon-commerce-enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-enums.js","sources":["ng://@taiga-ui/addon-commerce/enums/currency.ts","ng://@taiga-ui/addon-commerce/enums/currency-code.ts","ng://@taiga-ui/addon-commerce/enums/money-sign.ts","ng://@taiga-ui/addon-commerce/enums/payment-system.ts","ng://@taiga-ui/addon-commerce/enums/taiga-ui-addon-commerce-enums.ts"],"sourcesContent":["/**\n * **Active ISO 4217 alphabetic currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Alphabetic code is also called \"alfa-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\nexport const enum TuiCurrency {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `RUB`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `EUR`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `USD`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `GBP`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `THB`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `TRY`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `CNY`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `KZT`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `ILS`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `INR`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `JPY`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `KRW`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `CHF`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `SGD`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `AUD`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `HKD`,\n\n /**\n * @deprecated:\n * TODO: 3.0 replace with {@link HongKongDollar}\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n HongKong_dollar = `HKD`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `CAD`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `AMD`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `UAH`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `MXN`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `UZS`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `KGS`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `AED`,\n}\n","/**\n * **Active ISO 4217 numeric currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Numeric code is also called \"number-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\nexport const enum TuiCurrencyCode {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `643`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `978`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `840`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `826`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `764`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `949`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `156`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `398`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `376`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `356`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `392`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `410`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `756`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `702`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `036`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `344`,\n\n /**\n * @deprecated\n * TODO: 3.0 replace with {@link HongKongDollar}\n */\n // eslint-disable-next-line @typescript-eslint/naming-convention\n HongKong_dollar = `344`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `124`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `051`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `980`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `484`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `860`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `417`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `784`,\n}\n","/**\n * negative-only — show sign only for negative numbers\n * always — always show sign, except for zero\n * never — never show sign\n * force-negative — show minus no matter the number, except for zero\n * force-positive — show plus no matter the number, except for zero\n * @deprecated use join type {@link TuiMoneySignT}\n * TODO: delete in v3.0\n */\nexport const enum TuiMoneySign {\n NegativeOnly = `negative-only`,\n Always = `always`,\n Never = `never`,\n ForceNegative = `force-negative`,\n ForcePositive = `force-positive`,\n}\n","export const enum TuiPaymentSystem {\n Visa = `visa`,\n Electron = `electron`,\n Mastercard = `mastercard`,\n Maestro = `maestro`,\n Mir = `mir`,\n}\n\nexport type TuiPaymentSystemT = 'visa' | 'electron' | 'mastercard' | 'maestro' | 'mir';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;;;IAQkB;AAAlB,WAAkB,WAAW;;;;;;;;;IASzB,4BAAa,CAAA;;;;;;;;;IAUb,2BAAY,CAAA;;;;;;;;;IAUZ,6BAAc,CAAA;;;;;;;;;IAUd,4BAAa,CAAA;;;;;;;;;IAUb,2BAAY,CAAA;;;;;;;;;IAUZ,kCAAmB,CAAA;;;;;;;;;IAUnB,mCAAoB,CAAA;;;;;;;;;IAUpB,4BAAa,CAAA;;;;;;;;;IAUb,oCAAqB,CAAA;;;;;;;;;IAUrB,kCAAmB,CAAA;;;;;;;;;IAUnB,0BAAW,CAAA;;;;;;;;;IAUX,0BAAW,CAAA;;;;;;;;;IAUX,iCAAkB,CAAA;;;;;;;;;IAUlB,sCAAuB,CAAA;;;;;;;;;IAUvB,uCAAwB,CAAA;;;;;;;;;IAUxB,qCAAsB,CAAA;;;;;;IAOtB,sCAAuB,CAAA;;;;;;;;;IAUvB,qCAAsB,CAAA;;;;;;;;;IAUtB,mCAAoB,CAAA;;;;;;;;;IAUpB,8BAAe,CAAA;;;;;;;;;IAUf,kCAAmB,CAAA;;;;;;;;;IAUnB,+BAAgB,CAAA;;;;;;;;;IAUhB,oCAAqB,CAAA;;;;;;;;;IAUrB,6BAAc,CAAA;AAClB,CAAC,EA7OiB,WAAW,KAAX,WAAW;;ACR7B;;;;;;;;IAQkB;AAAlB,WAAkB,eAAe;;;;;;;;;IAS7B,gCAAa,CAAA;;;;;;;;;IAUb,+BAAY,CAAA;;;;;;;;;IAUZ,iCAAc,CAAA;;;;;;;;;IAUd,gCAAa,CAAA;;;;;;;;;IAUb,+BAAY,CAAA;;;;;;;;;IAUZ,sCAAmB,CAAA;;;;;;;;;IAUnB,uCAAoB,CAAA;;;;;;;;;IAUpB,gCAAa,CAAA;;;;;;;;;IAUb,wCAAqB,CAAA;;;;;;;;;IAUrB,sCAAmB,CAAA;;;;;;;;;IAUnB,8BAAW,CAAA;;;;;;;;;IAUX,8BAAW,CAAA;;;;;;;;;IAUX,qCAAkB,CAAA;;;;;;;;;IAUlB,0CAAuB,CAAA;;;;;;;;;IAUvB,2CAAwB,CAAA;;;;;;;;;IAUxB,yCAAsB,CAAA;;;;;;IAOtB,0CAAuB,CAAA;;;;;;;;;IAUvB,yCAAsB,CAAA;;;;;;;;;IAUtB,uCAAoB,CAAA;;;;;;;;;IAUpB,kCAAe,CAAA;;;;;;;;;IAUf,sCAAmB,CAAA;;;;;;;;;IAUnB,mCAAgB,CAAA;;;;;;;;;IAUhB,wCAAqB,CAAA;;;;;;;;;IAUrB,iCAAc,CAAA;AAClB,CAAC,EA7OiB,eAAe,KAAf,eAAe;;ACRjC;;;;;;;;;IASkB;AAAlB,WAAkB,YAAY;IAC1B,8CAA8B,CAAA;IAC9B,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,gDAAgC,CAAA;IAChC,gDAAgC,CAAA;AACpC,CAAC,EANiB,YAAY,KAAZ,YAAY;;ICTZ;AAAlB,WAAkB,gBAAgB;IAC9B,iCAAa,CAAA;IACb,yCAAqB,CAAA;IACrB,6CAAyB,CAAA;IACzB,uCAAmB,CAAA;IACnB,+BAAW,CAAA;AACf,CAAC,EANiB,gBAAgB,KAAhB,gBAAgB;;ACAlC;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-enums.js","sources":["../../../projects/addon-commerce/enums/currency.ts","../../../projects/addon-commerce/enums/currency-code.ts","../../../projects/addon-commerce/enums/taiga-ui-addon-commerce-enums.ts"],"sourcesContent":["/**\n * **Active ISO 4217 alphabetic currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Alphabetic code is also called \"alfa-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\nexport const enum TuiCurrency {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `RUB`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `EUR`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `USD`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `GBP`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `THB`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `TRY`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `CNY`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `KZT`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `ILS`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `INR`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `JPY`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `KRW`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `CHF`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `SGD`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `AUD`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `HKD`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `CAD`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `AMD`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `UAH`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `MXN`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `UZS`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `KGS`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `AED`,\n}\n","/**\n * **Active ISO 4217 numeric currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Numeric code is also called \"number-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\nexport const enum TuiCurrencyCode {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `643`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `978`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `840`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `826`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `764`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `949`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `156`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `398`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `376`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `356`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `392`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `410`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `756`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `702`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `036`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `344`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `124`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `051`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `980`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `484`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `860`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `417`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `784`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;;AAOG;IACe,YAsOjB;AAtOD,CAAA,UAAkB,WAAW,EAAA;AACzB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,OAA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../../../projects/addon-commerce/interfaces/taiga-ui-addon-commerce-interfaces.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
|
@@ -1,28 +1,35 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
2
|
import { Pipe, NgModule } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { tuiFormatCurrency } from '@taiga-ui/addon-commerce/utils';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
class TuiCurrencyPipe {
|
|
6
6
|
transform(currency) {
|
|
7
|
-
return
|
|
7
|
+
return tuiFormatCurrency(currency);
|
|
8
8
|
}
|
|
9
|
-
}
|
|
10
|
-
TuiCurrencyPipe =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
}
|
|
10
|
+
TuiCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
|
+
TuiCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipe, name: "tuiCurrency" });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipe, decorators: [{
|
|
13
|
+
type: Pipe,
|
|
14
|
+
args: [{
|
|
15
|
+
name: `tuiCurrency`,
|
|
16
|
+
}]
|
|
17
|
+
}] });
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
TuiCurrencyPipeModule =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
class TuiCurrencyPipeModule {
|
|
20
|
+
}
|
|
21
|
+
TuiCurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
22
|
+
TuiCurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipeModule, declarations: [TuiCurrencyPipe], exports: [TuiCurrencyPipe] });
|
|
23
|
+
TuiCurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipeModule });
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiCurrencyPipeModule, decorators: [{
|
|
25
|
+
type: NgModule,
|
|
26
|
+
args: [{
|
|
27
|
+
declarations: [TuiCurrencyPipe],
|
|
28
|
+
exports: [TuiCurrencyPipe],
|
|
29
|
+
}]
|
|
30
|
+
}] });
|
|
24
31
|
|
|
25
|
-
|
|
32
|
+
class TuiFormatCardPipe {
|
|
26
33
|
transform(value = ``, cardPrefilled = false) {
|
|
27
34
|
return value && !cardPrefilled
|
|
28
35
|
? value
|
|
@@ -31,19 +38,26 @@ let TuiFormatCardPipe = class TuiFormatCardPipe {
|
|
|
31
38
|
.join(``)
|
|
32
39
|
: ``;
|
|
33
40
|
}
|
|
34
|
-
}
|
|
35
|
-
TuiFormatCardPipe =
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
}
|
|
42
|
+
TuiFormatCardPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
43
|
+
TuiFormatCardPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardPipe, name: "tuiFormatCard" });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardPipe, decorators: [{
|
|
45
|
+
type: Pipe,
|
|
46
|
+
args: [{ name: `tuiFormatCard` }]
|
|
47
|
+
}] });
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
TuiFormatCardModule =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
class TuiFormatCardModule {
|
|
50
|
+
}
|
|
51
|
+
TuiFormatCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
TuiFormatCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardModule, declarations: [TuiFormatCardPipe], exports: [TuiFormatCardPipe] });
|
|
53
|
+
TuiFormatCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardModule });
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiFormatCardModule, decorators: [{
|
|
55
|
+
type: NgModule,
|
|
56
|
+
args: [{
|
|
57
|
+
declarations: [TuiFormatCardPipe],
|
|
58
|
+
exports: [TuiFormatCardPipe],
|
|
59
|
+
}]
|
|
60
|
+
}] });
|
|
47
61
|
|
|
48
62
|
/**
|
|
49
63
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-pipes.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-pipes.js","sources":["../../../projects/addon-commerce/pipes/currency/currency.pipe.ts","../../../projects/addon-commerce/pipes/currency/currency.module.ts","../../../projects/addon-commerce/pipes/format-card/format-card.pipe.ts","../../../projects/addon-commerce/pipes/format-card/format-card.module.ts","../../../projects/addon-commerce/pipes/taiga-ui-addon-commerce-pipes.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiFormatCurrency} from '@taiga-ui/addon-commerce/utils';\n\n@Pipe({\n name: `tuiCurrency`,\n})\nexport class TuiCurrencyPipe implements PipeTransform {\n transform(currency: TuiCurrencyVariants): string {\n return tuiFormatCurrency(currency);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiCurrencyPipe} from './currency.pipe';\n\n@NgModule({\n declarations: [TuiCurrencyPipe],\n exports: [TuiCurrencyPipe],\n})\nexport class TuiCurrencyPipeModule {}\n","import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({name: `tuiFormatCard`})\nexport class TuiFormatCardPipe implements PipeTransform {\n transform(value: string | null = ``, cardPrefilled: boolean = false): string {\n return value && !cardPrefilled\n ? value\n .split(``)\n .map((char, index) => (index && index % 4 === 0 ? ` ${char}` : char))\n .join(``)\n : ``;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFormatCardPipe} from './format-card.pipe';\n\n@NgModule({\n declarations: [TuiFormatCardPipe],\n exports: [TuiFormatCardPipe],\n})\nexport class TuiFormatCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,eAAe,CAAA;AACxB,IAAA,SAAS,CAAC,QAA6B,EAAA;AACnC,QAAA,OAAO,iBAAiB,CAAC,QAAQ,CAAC,CAAC;KACtC;;6GAHQ,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2GAAf,eAAe,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,IAAI;AAAC,YAAA,IAAA,EAAA,C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,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kHAAnB,mBAAmB,EAAA,YAAA,EAAA,CAHb,iBAAiB,CAAA,EAAA,OAAA,EAAA,CACtB,iBAAiB,CAAA,EAAA,CAAA,CAAA;kHAElB,mBAAmB,EAAA,CAAA,CAAA;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC/B,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { tuiExtractI18n } from '@taiga-ui/i18n';
|
|
3
3
|
import { of } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
const TUI_CARD_NUMBER_TEXTS = new InjectionToken(`Number and card number i18n`, {
|
|
6
|
-
factory:
|
|
6
|
+
factory: tuiExtractI18n(`cardNumber`),
|
|
7
7
|
});
|
|
8
8
|
const TUI_CARD_EXPIRY_TEXTS = new InjectionToken(`Expiry and card expiry i18n`, {
|
|
9
|
-
factory:
|
|
9
|
+
factory: tuiExtractI18n(`cardExpiry`),
|
|
10
10
|
});
|
|
11
11
|
const TUI_CARD_CVC_TEXTS = new InjectionToken(`Card CVC number text`, {
|
|
12
12
|
factory: () => of([`CVC`, `CVC/CVV`]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-tokens.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-tokens.js","sources":["../../../projects/addon-commerce/tokens/i18n.ts","../../../projects/addon-commerce/tokens/taiga-ui-addon-commerce-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {tuiExtractI18n} from '@taiga-ui/i18n';\nimport {Observable, of} from 'rxjs';\n\nexport const TUI_CARD_NUMBER_TEXTS = new InjectionToken(`Number and card number i18n`, {\n factory: tuiExtractI18n(`cardNumber`),\n});\n\nexport const TUI_CARD_EXPIRY_TEXTS = new InjectionToken(`Expiry and card expiry i18n`, {\n factory: tuiExtractI18n(`cardExpiry`),\n});\n\nexport const TUI_CARD_CVC_TEXTS = new InjectionToken<Observable<[string, string]>>(\n `Card CVC number text`,\n {\n factory: () => of([`CVC`, `CVC/CVV`]),\n },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAIa,qBAAqB,GAAG,IAAI,cAAc,CAAC,6BAA6B,EAAE;AACnF,IAAA,OAAO,EAAE,cAAc,CAAC,CAAA,UAAA,CAAY,CAAC;AACxC,CAAA,EAAE;MAEU,qBAAqB,GAAG,IAAI,cAAc,CAAC,6BAA6B,EAAE;AACnF,IAAA,OAAO,EAAE,cAAc,CAAC,CAAA,UAAA,CAAY,CAAC;AACxC,CAAA,EAAE;MAEU,kBAAkB,GAAG,IAAI,cAAc,CAChD,sBAAsB,EACtB;IACI,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAK,GAAA,CAAA,EAAE,CAAS,OAAA,CAAA,CAAC,CAAC;AACxC,CAAA;;AChBL;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-types.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-types.js","sources":["../../../projects/addon-commerce/types/taiga-ui-addon-commerce-types.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TUI_NON_DIGIT_REGEXP, TUI_NON_DIGITS_REGEXP } from '@taiga-ui/core';
|
|
2
|
-
import {
|
|
2
|
+
import { tuiIsString } from '@taiga-ui/cdk';
|
|
3
3
|
|
|
4
4
|
const TUI_EXP_YEAR_MONTH = /^\d{2}[/|.]\d{4}$/;
|
|
5
5
|
const TUI_EXP_SAFARI = /^\d{1,4}.\d{1,2}.\d{1,4}$/;
|
|
@@ -39,11 +39,7 @@ function tuiCreateAutoCorrectedExpirePipe() {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
* @deprecated: use {@link tuiGetCurrencySymbol} instead
|
|
44
|
-
*/
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
46
|
-
function getCurrencySymbol(currency) {
|
|
42
|
+
function tuiGetCurrencySymbol(currency) {
|
|
47
43
|
switch (currency) {
|
|
48
44
|
case "RUB" /* Ruble */:
|
|
49
45
|
case "643" /* Ruble */:
|
|
@@ -117,28 +113,18 @@ function getCurrencySymbol(currency) {
|
|
|
117
113
|
return null;
|
|
118
114
|
}
|
|
119
115
|
}
|
|
120
|
-
const tuiGetCurrencySymbol = getCurrencySymbol;
|
|
121
116
|
|
|
122
|
-
|
|
123
|
-
* @deprecated: use {@link tuiFormatCurrency} instead
|
|
124
|
-
*/
|
|
125
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
126
|
-
function formatCurrency(currency) {
|
|
117
|
+
function tuiFormatCurrency(currency) {
|
|
127
118
|
const stringifiedCurrency = stringifyCurrency(currency);
|
|
128
|
-
return
|
|
119
|
+
return tuiGetCurrencySymbol(stringifiedCurrency) || stringifiedCurrency;
|
|
129
120
|
}
|
|
130
|
-
const tuiFormatCurrency = formatCurrency;
|
|
131
121
|
function stringifyCurrency(currency) {
|
|
132
|
-
return currency === null ||
|
|
122
|
+
return currency === null || tuiIsString(currency)
|
|
133
123
|
? currency || ``
|
|
134
|
-
:
|
|
124
|
+
: String(currency).padStart(3, `0`);
|
|
135
125
|
}
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
* @deprecated: use {@link tuiGetPaymentSystem} instead
|
|
139
|
-
*/
|
|
140
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
141
|
-
function getPaymentSystem(cardNumber) {
|
|
127
|
+
function tuiGetPaymentSystem(cardNumber) {
|
|
142
128
|
if (cardNumber === ``) {
|
|
143
129
|
return null;
|
|
144
130
|
}
|
|
@@ -146,29 +132,24 @@ function getPaymentSystem(cardNumber) {
|
|
|
146
132
|
const two = Number.parseInt(cardNumber.slice(0, 2), 10);
|
|
147
133
|
const three = Number.parseInt(cardNumber.slice(0, 3), 10);
|
|
148
134
|
const four = Number.parseInt(cardNumber.slice(0, 4), 10);
|
|
149
|
-
if (
|
|
150
|
-
return
|
|
135
|
+
if (tuiIsMaestro(three, two, one)) {
|
|
136
|
+
return `maestro`;
|
|
151
137
|
}
|
|
152
|
-
if (
|
|
153
|
-
return
|
|
138
|
+
if (tuiIsMastercard(four, two, one)) {
|
|
139
|
+
return `mastercard`;
|
|
154
140
|
}
|
|
155
|
-
if (
|
|
156
|
-
return
|
|
141
|
+
if (tuiIsMir(four)) {
|
|
142
|
+
return `mir`;
|
|
157
143
|
}
|
|
158
|
-
if (
|
|
159
|
-
return
|
|
144
|
+
if (tuiIsElectron(four)) {
|
|
145
|
+
return `electron`;
|
|
160
146
|
}
|
|
161
|
-
if (
|
|
162
|
-
return
|
|
147
|
+
if (tuiIsVisa(one)) {
|
|
148
|
+
return `visa`;
|
|
163
149
|
}
|
|
164
150
|
return null;
|
|
165
151
|
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @deprecated: use {@link tuiIsMaestro} instead
|
|
169
|
-
*/
|
|
170
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
171
|
-
function isMaestro(three, two, one) {
|
|
152
|
+
function tuiIsMaestro(three, two, one) {
|
|
172
153
|
if (one === 6) {
|
|
173
154
|
return true;
|
|
174
155
|
}
|
|
@@ -180,12 +161,7 @@ function isMaestro(three, two, one) {
|
|
|
180
161
|
}
|
|
181
162
|
return three < 510;
|
|
182
163
|
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* @deprecated: use {@link tuiIsMastercard} instead
|
|
186
|
-
*/
|
|
187
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
188
|
-
function isMastercard(four, two, one) {
|
|
164
|
+
function tuiIsMastercard(four, two, one) {
|
|
189
165
|
if (one === 5) {
|
|
190
166
|
return true;
|
|
191
167
|
}
|
|
@@ -200,20 +176,10 @@ function isMastercard(four, two, one) {
|
|
|
200
176
|
}
|
|
201
177
|
return four > 2220 && four < 2721;
|
|
202
178
|
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @deprecated: use {@link tuiIsMir} instead
|
|
206
|
-
*/
|
|
207
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
208
|
-
function isMir(four) {
|
|
179
|
+
function tuiIsMir(four) {
|
|
209
180
|
return four > 2199 && four < 2205;
|
|
210
181
|
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @deprecated: use {@link tuiIsElectron} instead
|
|
214
|
-
*/
|
|
215
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
216
|
-
function isElectron(four) {
|
|
182
|
+
function tuiIsElectron(four) {
|
|
217
183
|
switch (four) {
|
|
218
184
|
case 4026:
|
|
219
185
|
case 4175:
|
|
@@ -227,46 +193,35 @@ function isElectron(four) {
|
|
|
227
193
|
return false;
|
|
228
194
|
}
|
|
229
195
|
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated: use {@link tuiIsVisa} instead
|
|
233
|
-
*/
|
|
234
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
235
|
-
function isVisa(one) {
|
|
196
|
+
function tuiIsVisa(one) {
|
|
236
197
|
return one === 4;
|
|
237
198
|
}
|
|
238
|
-
const tuiIsVisa = isVisa;
|
|
239
199
|
|
|
240
200
|
/**
|
|
241
|
-
* @deprecated: use {@link tuiIsCardLengthValid} instead
|
|
242
201
|
* Validates card number length using payment system dictionary
|
|
243
202
|
*/
|
|
244
|
-
|
|
245
|
-
function isCardLengthValid(cardNumber) {
|
|
203
|
+
function tuiIsCardLengthValid(cardNumber) {
|
|
246
204
|
const { length } = cardNumber;
|
|
247
|
-
const paymentSystem =
|
|
205
|
+
const paymentSystem = tuiGetPaymentSystem(cardNumber);
|
|
248
206
|
switch (paymentSystem) {
|
|
249
|
-
case
|
|
207
|
+
case `electron`:
|
|
250
208
|
return length === 16;
|
|
251
|
-
case
|
|
209
|
+
case `maestro`:
|
|
252
210
|
return length > 11 && length < 20;
|
|
253
|
-
case
|
|
254
|
-
case
|
|
211
|
+
case `mastercard`:
|
|
212
|
+
case `mir`:
|
|
255
213
|
return length > 15 && length < 20;
|
|
256
|
-
case
|
|
214
|
+
case `visa`:
|
|
257
215
|
return length > 12 && length < 20;
|
|
258
216
|
default:
|
|
259
217
|
return length > 8 && length < 20;
|
|
260
218
|
}
|
|
261
219
|
}
|
|
262
|
-
const tuiIsCardLengthValid = isCardLengthValid;
|
|
263
220
|
|
|
264
221
|
/**
|
|
265
|
-
* @deprecated: use {@link tuiIsCardNumberValid} instead
|
|
266
222
|
* Validates card number using Luhn algorithm
|
|
267
223
|
*/
|
|
268
|
-
|
|
269
|
-
function isCardNumberValid(value) {
|
|
224
|
+
function tuiIsCardNumberValid(value) {
|
|
270
225
|
const cardNumber = String(value).replace(TUI_NON_DIGITS_REGEXP, ``);
|
|
271
226
|
const { length } = cardNumber;
|
|
272
227
|
const arr = cardNumber.split(``).map((char, index) => {
|
|
@@ -279,13 +234,8 @@ function isCardNumberValid(value) {
|
|
|
279
234
|
});
|
|
280
235
|
return !(arr.reduce((a, b) => a + b, 0) % 10);
|
|
281
236
|
}
|
|
282
|
-
const tuiIsCardNumberValid = isCardNumberValid;
|
|
283
237
|
|
|
284
|
-
|
|
285
|
-
* @deprecated: use {@link tuiIsExpireValid} instead
|
|
286
|
-
*/
|
|
287
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
288
|
-
function isExpireValid(expire) {
|
|
238
|
+
function tuiIsExpireValid(expire) {
|
|
289
239
|
const today = new Date();
|
|
290
240
|
const currentMonth = today.getMonth();
|
|
291
241
|
const currentYear = today.getFullYear() - 2000;
|
|
@@ -293,11 +243,10 @@ function isExpireValid(expire) {
|
|
|
293
243
|
const year = parseInt(expire.slice(-2), 0);
|
|
294
244
|
return year > currentYear || (year === currentYear && month >= currentMonth);
|
|
295
245
|
}
|
|
296
|
-
const tuiIsExpireValid = isExpireValid;
|
|
297
246
|
|
|
298
247
|
/**
|
|
299
248
|
* Generated bundle index. Do not edit.
|
|
300
249
|
*/
|
|
301
250
|
|
|
302
|
-
export {
|
|
251
|
+
export { tuiCreateAutoCorrectedExpirePipe, tuiFormatCurrency, tuiGetCurrencySymbol, tuiGetPaymentSystem, tuiIsCardLengthValid, tuiIsCardNumberValid, tuiIsElectron, tuiIsExpireValid, tuiIsMaestro, tuiIsMastercard, tuiIsMir, tuiIsVisa };
|
|
303
252
|
//# sourceMappingURL=taiga-ui-addon-commerce-utils.js.map
|