@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 +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,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;CACT,CAAC;AAEF,SAAS,kBAAkB,CAAC,IAAY,EAAA;AACpC,IAAA,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AACrC,IAAA,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC;IAE3E,OAAO,MAAM,IAAI,IAAI,CAAC;AAC1B,CAAC;AAEY,MAAA,cAAc,GAA2B,uBAAuB,CACzE,cAAc,EACd,kBAAkB;;ACvCtB;;AAEG;AACU,MAAA,aAAa,GAAG;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,CAAG,CAAA,CAAA;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,CAAG,CAAA,CAAA;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,CAAG,CAAA,CAAA;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,CAAG,CAAA,CAAA;IACH,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;;;MCzBP,uBAAuB,GAA8B,IAAI,IAClE,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,oBAAoB,CAAC,IAAI,CAAC,IAAI,oBAAoB,CAAC,IAAI;;ACJ/E;;AAEG;;;;"}
|
|
@@ -14,6 +14,7 @@ var TuiCurrency;
|
|
|
14
14
|
* @description Numeric code: 643
|
|
15
15
|
* @description Alphabetic code: RUB
|
|
16
16
|
* @description Countries and territories: Russia
|
|
17
|
+
* @description Currency symbol: ₽
|
|
17
18
|
*/
|
|
18
19
|
TuiCurrency["Ruble"] = "RUB";
|
|
19
20
|
/**
|
|
@@ -22,6 +23,7 @@ var TuiCurrency;
|
|
|
22
23
|
* @description Numeric code: 978
|
|
23
24
|
* @description Alphabetic code: EUR
|
|
24
25
|
* @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)
|
|
26
|
+
* @description Currency symbol: €
|
|
25
27
|
*/
|
|
26
28
|
TuiCurrency["Euro"] = "EUR";
|
|
27
29
|
/**
|
|
@@ -30,6 +32,7 @@ var TuiCurrency;
|
|
|
30
32
|
* @description Numeric code: 840
|
|
31
33
|
* @description Alphabetic code: USD
|
|
32
34
|
* @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)
|
|
35
|
+
* @description Currency symbol: $
|
|
33
36
|
*/
|
|
34
37
|
TuiCurrency["Dollar"] = "USD";
|
|
35
38
|
/**
|
|
@@ -38,6 +41,7 @@ var TuiCurrency;
|
|
|
38
41
|
* @description Numeric code: 826
|
|
39
42
|
* @description Alphabetic code: GBP
|
|
40
43
|
* @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)
|
|
44
|
+
* @description Currency symbol: £
|
|
41
45
|
*/
|
|
42
46
|
TuiCurrency["Pound"] = "GBP";
|
|
43
47
|
/**
|
|
@@ -46,6 +50,7 @@ var TuiCurrency;
|
|
|
46
50
|
* @description Numeric code: 764
|
|
47
51
|
* @description Alphabetic code: THB
|
|
48
52
|
* @description Countries and territories: Thailand
|
|
53
|
+
* @description Currency symbol: ฿
|
|
49
54
|
*/
|
|
50
55
|
TuiCurrency["Baht"] = "THB";
|
|
51
56
|
/**
|
|
@@ -54,6 +59,7 @@ var TuiCurrency;
|
|
|
54
59
|
* @description Numeric code: 949
|
|
55
60
|
* @description Alphabetic code: TRY
|
|
56
61
|
* @description Countries and territories: Turkey
|
|
62
|
+
* @description Currency symbol: ₺
|
|
57
63
|
*/
|
|
58
64
|
TuiCurrency["TurkishLira"] = "TRY";
|
|
59
65
|
/**
|
|
@@ -62,6 +68,7 @@ var TuiCurrency;
|
|
|
62
68
|
* @description Numeric code: 156
|
|
63
69
|
* @description Alphabetic code: CNY
|
|
64
70
|
* @description Countries and territories: China
|
|
71
|
+
* @description Currency symbol: CN¥
|
|
65
72
|
*/
|
|
66
73
|
TuiCurrency["YuanRenminbi"] = "CNY";
|
|
67
74
|
/**
|
|
@@ -70,6 +77,7 @@ var TuiCurrency;
|
|
|
70
77
|
* @description Numeric code: 398
|
|
71
78
|
* @description Alphabetic code: KZT
|
|
72
79
|
* @description Countries and territories: Kazakhstan
|
|
80
|
+
* @description Currency symbol: ₸
|
|
73
81
|
*/
|
|
74
82
|
TuiCurrency["Tenge"] = "KZT";
|
|
75
83
|
/**
|
|
@@ -78,6 +86,7 @@ var TuiCurrency;
|
|
|
78
86
|
* @description Numeric code: 376
|
|
79
87
|
* @description Alphabetic code: ILS
|
|
80
88
|
* @description Countries and territories: Israel
|
|
89
|
+
* @description Currency symbol: ₪
|
|
81
90
|
*/
|
|
82
91
|
TuiCurrency["IsraeliShekel"] = "ILS";
|
|
83
92
|
/**
|
|
@@ -86,6 +95,7 @@ var TuiCurrency;
|
|
|
86
95
|
* @description Numeric code: 356
|
|
87
96
|
* @description Alphabetic code: INR
|
|
88
97
|
* @description Countries and territories: India, Bhutan
|
|
98
|
+
* @description Currency symbol: ₹
|
|
89
99
|
*/
|
|
90
100
|
TuiCurrency["IndianRupee"] = "INR";
|
|
91
101
|
/**
|
|
@@ -94,6 +104,7 @@ var TuiCurrency;
|
|
|
94
104
|
* @description Numeric code: 392
|
|
95
105
|
* @description Alphabetic code: JPY
|
|
96
106
|
* @description Countries and territories: Japan
|
|
107
|
+
* @description Currency symbol: ¥
|
|
97
108
|
*/
|
|
98
109
|
TuiCurrency["Yen"] = "JPY";
|
|
99
110
|
/**
|
|
@@ -102,6 +113,7 @@ var TuiCurrency;
|
|
|
102
113
|
* @description Numeric code: 410
|
|
103
114
|
* @description Alphabetic code: KRW
|
|
104
115
|
* @description Countries and territories: South Korea
|
|
116
|
+
* @description Currency symbol: ₩
|
|
105
117
|
*/
|
|
106
118
|
TuiCurrency["Won"] = "KRW";
|
|
107
119
|
/**
|
|
@@ -110,6 +122,7 @@ var TuiCurrency;
|
|
|
110
122
|
* @description Numeric code: 756
|
|
111
123
|
* @description Alphabetic code: CHF
|
|
112
124
|
* @description Countries and territories: Switzerland, Liechtenstein (LI)
|
|
125
|
+
* @description Currency symbol: ₣
|
|
113
126
|
*/
|
|
114
127
|
TuiCurrency["SwissFranc"] = "CHF";
|
|
115
128
|
/**
|
|
@@ -118,6 +131,7 @@ var TuiCurrency;
|
|
|
118
131
|
* @description Numeric code: 702
|
|
119
132
|
* @description Alphabetic code: SGD
|
|
120
133
|
* @description Countries and territories: Singapore
|
|
134
|
+
* @description Currency symbol: S$
|
|
121
135
|
*/
|
|
122
136
|
TuiCurrency["SingaporeDollar"] = "SGD";
|
|
123
137
|
/**
|
|
@@ -126,6 +140,7 @@ var TuiCurrency;
|
|
|
126
140
|
* @description Numeric code: 036
|
|
127
141
|
* @description Alphabetic code: AUD
|
|
128
142
|
* @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)
|
|
143
|
+
* @description Currency symbol: A$
|
|
129
144
|
*/
|
|
130
145
|
TuiCurrency["AustralianDollar"] = "AUD";
|
|
131
146
|
/**
|
|
@@ -134,20 +149,16 @@ var TuiCurrency;
|
|
|
134
149
|
* @description Numeric code: 344
|
|
135
150
|
* @description Alphabetic code: HKD
|
|
136
151
|
* @description Countries and territories: Hong Kong
|
|
152
|
+
* @description Currency symbol: HK$
|
|
137
153
|
*/
|
|
138
154
|
TuiCurrency["HongKongDollar"] = "HKD";
|
|
139
|
-
/**
|
|
140
|
-
* @deprecated:
|
|
141
|
-
* TODO: 3.0 replace with {@link HongKongDollar}
|
|
142
|
-
*/
|
|
143
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
144
|
-
TuiCurrency["HongKong_dollar"] = "HKD";
|
|
145
155
|
/**
|
|
146
156
|
* Canadian dollar
|
|
147
157
|
*
|
|
148
158
|
* @description Numeric code: 124
|
|
149
159
|
* @description Alphabetic code: CAD
|
|
150
160
|
* @description Countries and territories: Canada
|
|
161
|
+
* @description Currency symbol: C$
|
|
151
162
|
*/
|
|
152
163
|
TuiCurrency["CanadianDollar"] = "CAD";
|
|
153
164
|
/**
|
|
@@ -156,6 +167,7 @@ var TuiCurrency;
|
|
|
156
167
|
* @description Numeric code: 051
|
|
157
168
|
* @description Alphabetic code: AMD
|
|
158
169
|
* @description Countries and territories: Armenia
|
|
170
|
+
* @description Currency symbol: ֏
|
|
159
171
|
*/
|
|
160
172
|
TuiCurrency["ArmenianDram"] = "AMD";
|
|
161
173
|
/**
|
|
@@ -164,6 +176,7 @@ var TuiCurrency;
|
|
|
164
176
|
* @description Numeric code: 980
|
|
165
177
|
* @description Alphabetic code: UAH
|
|
166
178
|
* @description Countries and territories: Ukraine
|
|
179
|
+
* @description Currency symbol: ₴
|
|
167
180
|
*/
|
|
168
181
|
TuiCurrency["Hryvnia"] = "UAH";
|
|
169
182
|
/**
|
|
@@ -172,8 +185,36 @@ var TuiCurrency;
|
|
|
172
185
|
* @description Numeric code: 484
|
|
173
186
|
* @description Alphabetic code: MXN
|
|
174
187
|
* @description Countries and territories: Mexico
|
|
188
|
+
* @description Currency symbol: $
|
|
175
189
|
*/
|
|
176
190
|
TuiCurrency["MexicanPeso"] = "MXN";
|
|
191
|
+
/**
|
|
192
|
+
* Uzbek sum
|
|
193
|
+
*
|
|
194
|
+
* @description Numeric code: 860
|
|
195
|
+
* @description Alphabetic code: UZS
|
|
196
|
+
* @description Countries and territories: Uzbekistan
|
|
197
|
+
* @description Currency symbol: So'm
|
|
198
|
+
*/
|
|
199
|
+
TuiCurrency["UzbekSum"] = "UZS";
|
|
200
|
+
/**
|
|
201
|
+
* Kyrgyzstani som
|
|
202
|
+
*
|
|
203
|
+
* @description Numeric code: 417
|
|
204
|
+
* @description Alphabetic code: KGS
|
|
205
|
+
* @description Countries and territories: Kyrgyzstan
|
|
206
|
+
* @description Currency symbol: c
|
|
207
|
+
*/
|
|
208
|
+
TuiCurrency["KyrgyzstanSom"] = "KGS";
|
|
209
|
+
/**
|
|
210
|
+
* United Arab Emirates dirham
|
|
211
|
+
*
|
|
212
|
+
* @description Numeric code: 784
|
|
213
|
+
* @description Alphabetic code: AED
|
|
214
|
+
* @description Countries and territories: United Arab Emirates
|
|
215
|
+
* @description Currency symbol: Dh
|
|
216
|
+
*/
|
|
217
|
+
TuiCurrency["Dirham"] = "AED";
|
|
177
218
|
})(TuiCurrency || (TuiCurrency = {}));
|
|
178
219
|
|
|
179
220
|
/**
|
|
@@ -192,6 +233,7 @@ var TuiCurrencyCode;
|
|
|
192
233
|
* @description Numeric code: 643
|
|
193
234
|
* @description Alphabetic code: RUB
|
|
194
235
|
* @description Countries and territories: Russia
|
|
236
|
+
* @description Currency symbol: ₽
|
|
195
237
|
*/
|
|
196
238
|
TuiCurrencyCode["Ruble"] = "643";
|
|
197
239
|
/**
|
|
@@ -200,6 +242,7 @@ var TuiCurrencyCode;
|
|
|
200
242
|
* @description Numeric code: 978
|
|
201
243
|
* @description Alphabetic code: EUR
|
|
202
244
|
* @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)
|
|
245
|
+
* @description Currency symbol: €
|
|
203
246
|
*/
|
|
204
247
|
TuiCurrencyCode["Euro"] = "978";
|
|
205
248
|
/**
|
|
@@ -208,6 +251,7 @@ var TuiCurrencyCode;
|
|
|
208
251
|
* @description Numeric code: 840
|
|
209
252
|
* @description Alphabetic code: USD
|
|
210
253
|
* @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)
|
|
254
|
+
* @description Currency symbol: $
|
|
211
255
|
*/
|
|
212
256
|
TuiCurrencyCode["Dollar"] = "840";
|
|
213
257
|
/**
|
|
@@ -216,6 +260,7 @@ var TuiCurrencyCode;
|
|
|
216
260
|
* @description Numeric code: 826
|
|
217
261
|
* @description Alphabetic code: GBP
|
|
218
262
|
* @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)
|
|
263
|
+
* @description Currency symbol: £
|
|
219
264
|
*/
|
|
220
265
|
TuiCurrencyCode["Pound"] = "826";
|
|
221
266
|
/**
|
|
@@ -224,6 +269,7 @@ var TuiCurrencyCode;
|
|
|
224
269
|
* @description Numeric code: 764
|
|
225
270
|
* @description Alphabetic code: THB
|
|
226
271
|
* @description Countries and territories: Thailand
|
|
272
|
+
* @description Currency symbol: ฿
|
|
227
273
|
*/
|
|
228
274
|
TuiCurrencyCode["Baht"] = "764";
|
|
229
275
|
/**
|
|
@@ -232,6 +278,7 @@ var TuiCurrencyCode;
|
|
|
232
278
|
* @description Numeric code: 949
|
|
233
279
|
* @description Alphabetic code: TRY
|
|
234
280
|
* @description Countries and territories: Turkey
|
|
281
|
+
* @description Currency symbol: ₺
|
|
235
282
|
*/
|
|
236
283
|
TuiCurrencyCode["TurkishLira"] = "949";
|
|
237
284
|
/**
|
|
@@ -240,6 +287,7 @@ var TuiCurrencyCode;
|
|
|
240
287
|
* @description Numeric code: 156
|
|
241
288
|
* @description Alphabetic code: CNY
|
|
242
289
|
* @description Countries and territories: China
|
|
290
|
+
* @description Currency symbol: CN¥
|
|
243
291
|
*/
|
|
244
292
|
TuiCurrencyCode["YuanRenminbi"] = "156";
|
|
245
293
|
/**
|
|
@@ -248,6 +296,7 @@ var TuiCurrencyCode;
|
|
|
248
296
|
* @description Numeric code: 398
|
|
249
297
|
* @description Alphabetic code: KZT
|
|
250
298
|
* @description Countries and territories: Kazakhstan
|
|
299
|
+
* @description Currency symbol: ₸
|
|
251
300
|
*/
|
|
252
301
|
TuiCurrencyCode["Tenge"] = "398";
|
|
253
302
|
/**
|
|
@@ -256,6 +305,7 @@ var TuiCurrencyCode;
|
|
|
256
305
|
* @description Numeric code: 376
|
|
257
306
|
* @description Alphabetic code: ILS
|
|
258
307
|
* @description Countries and territories: Israel
|
|
308
|
+
* @description Currency symbol: ₪
|
|
259
309
|
*/
|
|
260
310
|
TuiCurrencyCode["IsraeliShekel"] = "376";
|
|
261
311
|
/**
|
|
@@ -264,6 +314,7 @@ var TuiCurrencyCode;
|
|
|
264
314
|
* @description Numeric code: 356
|
|
265
315
|
* @description Alphabetic code: INR
|
|
266
316
|
* @description Countries and territories: India, Bhutan
|
|
317
|
+
* @description Currency symbol: ₹
|
|
267
318
|
*/
|
|
268
319
|
TuiCurrencyCode["IndianRupee"] = "356";
|
|
269
320
|
/**
|
|
@@ -272,6 +323,7 @@ var TuiCurrencyCode;
|
|
|
272
323
|
* @description Numeric code: 392
|
|
273
324
|
* @description Alphabetic code: JPY
|
|
274
325
|
* @description Countries and territories: Japan
|
|
326
|
+
* @description Currency symbol: ¥
|
|
275
327
|
*/
|
|
276
328
|
TuiCurrencyCode["Yen"] = "392";
|
|
277
329
|
/**
|
|
@@ -280,6 +332,7 @@ var TuiCurrencyCode;
|
|
|
280
332
|
* @description Numeric code: 410
|
|
281
333
|
* @description Alphabetic code: KRW
|
|
282
334
|
* @description Countries and territories: South Korea
|
|
335
|
+
* @description Currency symbol: ₩
|
|
283
336
|
*/
|
|
284
337
|
TuiCurrencyCode["Won"] = "410";
|
|
285
338
|
/**
|
|
@@ -288,6 +341,7 @@ var TuiCurrencyCode;
|
|
|
288
341
|
* @description Numeric code: 756
|
|
289
342
|
* @description Alphabetic code: CHF
|
|
290
343
|
* @description Countries and territories: Switzerland, Liechtenstein (LI)
|
|
344
|
+
* @description Currency symbol: ₣
|
|
291
345
|
*/
|
|
292
346
|
TuiCurrencyCode["SwissFranc"] = "756";
|
|
293
347
|
/**
|
|
@@ -296,6 +350,7 @@ var TuiCurrencyCode;
|
|
|
296
350
|
* @description Numeric code: 702
|
|
297
351
|
* @description Alphabetic code: SGD
|
|
298
352
|
* @description Countries and territories: Singapore
|
|
353
|
+
* @description Currency symbol: S$
|
|
299
354
|
*/
|
|
300
355
|
TuiCurrencyCode["SingaporeDollar"] = "702";
|
|
301
356
|
/**
|
|
@@ -304,6 +359,7 @@ var TuiCurrencyCode;
|
|
|
304
359
|
* @description Numeric code: 036
|
|
305
360
|
* @description Alphabetic code: AUD
|
|
306
361
|
* @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)
|
|
362
|
+
* @description Currency symbol: A$
|
|
307
363
|
*/
|
|
308
364
|
TuiCurrencyCode["AustralianDollar"] = "036";
|
|
309
365
|
/**
|
|
@@ -312,20 +368,16 @@ var TuiCurrencyCode;
|
|
|
312
368
|
* @description Numeric code: 344
|
|
313
369
|
* @description Alphabetic code: HKD
|
|
314
370
|
* @description Countries and territories: Hong Kong
|
|
371
|
+
* @description Currency symbol: HK$
|
|
315
372
|
*/
|
|
316
373
|
TuiCurrencyCode["HongKongDollar"] = "344";
|
|
317
|
-
/**
|
|
318
|
-
* @deprecated
|
|
319
|
-
* TODO: 3.0 replace with {@link HongKongDollar}
|
|
320
|
-
*/
|
|
321
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
322
|
-
TuiCurrencyCode["HongKong_dollar"] = "344";
|
|
323
374
|
/**
|
|
324
375
|
* Canadian dollar
|
|
325
376
|
*
|
|
326
377
|
* @description Numeric code: 124
|
|
327
378
|
* @description Alphabetic code: CAD
|
|
328
379
|
* @description Countries and territories: Canada
|
|
380
|
+
* @description Currency symbol: C$
|
|
329
381
|
*/
|
|
330
382
|
TuiCurrencyCode["CanadianDollar"] = "124";
|
|
331
383
|
/**
|
|
@@ -334,6 +386,7 @@ var TuiCurrencyCode;
|
|
|
334
386
|
* @description Numeric code: 051
|
|
335
387
|
* @description Alphabetic code: AMD
|
|
336
388
|
* @description Countries and territories: Armenia
|
|
389
|
+
* @description Currency symbol: ֏
|
|
337
390
|
*/
|
|
338
391
|
TuiCurrencyCode["ArmenianDram"] = "051";
|
|
339
392
|
/**
|
|
@@ -342,6 +395,7 @@ var TuiCurrencyCode;
|
|
|
342
395
|
* @description Numeric code: 980
|
|
343
396
|
* @description Alphabetic code: UAH
|
|
344
397
|
* @description Countries and territories: Ukraine
|
|
398
|
+
* @description Currency symbol: ₴
|
|
345
399
|
*/
|
|
346
400
|
TuiCurrencyCode["Hryvnia"] = "980";
|
|
347
401
|
/**
|
|
@@ -350,40 +404,41 @@ var TuiCurrencyCode;
|
|
|
350
404
|
* @description Numeric code: 484
|
|
351
405
|
* @description Alphabetic code: MXN
|
|
352
406
|
* @description Countries and territories: Mexico
|
|
407
|
+
* @description Currency symbol: $
|
|
353
408
|
*/
|
|
354
409
|
TuiCurrencyCode["MexicanPeso"] = "484";
|
|
410
|
+
/**
|
|
411
|
+
* Uzbek sum
|
|
412
|
+
*
|
|
413
|
+
* @description Numeric code: 860
|
|
414
|
+
* @description Alphabetic code: UZS
|
|
415
|
+
* @description Countries and territories: Uzbekistan
|
|
416
|
+
* @description Currency symbol: So'm
|
|
417
|
+
*/
|
|
418
|
+
TuiCurrencyCode["UzbekSum"] = "860";
|
|
419
|
+
/**
|
|
420
|
+
* Kyrgyzstani som
|
|
421
|
+
*
|
|
422
|
+
* @description Numeric code: 417
|
|
423
|
+
* @description Alphabetic code: KGS
|
|
424
|
+
* @description Countries and territories: Kyrgyzstan
|
|
425
|
+
* @description Currency symbol: c
|
|
426
|
+
*/
|
|
427
|
+
TuiCurrencyCode["KyrgyzstanSom"] = "417";
|
|
428
|
+
/**
|
|
429
|
+
* United Arab Emirates dirham
|
|
430
|
+
*
|
|
431
|
+
* @description Numeric code: 784
|
|
432
|
+
* @description Alphabetic code: AED
|
|
433
|
+
* @description Countries and territories: United Arab Emirates
|
|
434
|
+
* @description Currency symbol: Dh
|
|
435
|
+
*/
|
|
436
|
+
TuiCurrencyCode["Dirham"] = "784";
|
|
355
437
|
})(TuiCurrencyCode || (TuiCurrencyCode = {}));
|
|
356
438
|
|
|
357
|
-
/**
|
|
358
|
-
* negative-only — show sign only for negative numbers
|
|
359
|
-
* always — always show sign, except for zero
|
|
360
|
-
* never — never show sign
|
|
361
|
-
* force-negative — show minus no matter the number, except for zero
|
|
362
|
-
* force-positive — show plus no matter the number, except for zero
|
|
363
|
-
* @deprecated use join type {@link TuiMoneySignT}
|
|
364
|
-
* TODO: delete in v3.0
|
|
365
|
-
*/
|
|
366
|
-
var TuiMoneySign;
|
|
367
|
-
(function (TuiMoneySign) {
|
|
368
|
-
TuiMoneySign["NegativeOnly"] = "negative-only";
|
|
369
|
-
TuiMoneySign["Always"] = "always";
|
|
370
|
-
TuiMoneySign["Never"] = "never";
|
|
371
|
-
TuiMoneySign["ForceNegative"] = "force-negative";
|
|
372
|
-
TuiMoneySign["ForcePositive"] = "force-positive";
|
|
373
|
-
})(TuiMoneySign || (TuiMoneySign = {}));
|
|
374
|
-
|
|
375
|
-
var TuiPaymentSystem;
|
|
376
|
-
(function (TuiPaymentSystem) {
|
|
377
|
-
TuiPaymentSystem["Visa"] = "visa";
|
|
378
|
-
TuiPaymentSystem["Electron"] = "electron";
|
|
379
|
-
TuiPaymentSystem["Mastercard"] = "mastercard";
|
|
380
|
-
TuiPaymentSystem["Maestro"] = "maestro";
|
|
381
|
-
TuiPaymentSystem["Mir"] = "mir";
|
|
382
|
-
})(TuiPaymentSystem || (TuiPaymentSystem = {}));
|
|
383
|
-
|
|
384
439
|
/**
|
|
385
440
|
* Generated bundle index. Do not edit.
|
|
386
441
|
*/
|
|
387
442
|
|
|
388
|
-
export { TuiCurrency, TuiCurrencyCode
|
|
443
|
+
export { TuiCurrency, TuiCurrencyCode };
|
|
389
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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\n MexicanPeso = `MXN`,\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\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 */\n MexicanPeso = `484`,\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;;;;;;;;IAQzB,4BAAa,CAAA;;;;;;;;IASb,2BAAY,CAAA;;;;;;;;IASZ,6BAAc,CAAA;;;;;;;;IASd,4BAAa,CAAA;;;;;;;;IASb,2BAAY,CAAA;;;;;;;;IASZ,kCAAmB,CAAA;;;;;;;;IASnB,mCAAoB,CAAA;;;;;;;;IASpB,4BAAa,CAAA;;;;;;;;IASb,oCAAqB,CAAA;;;;;;;;IASrB,kCAAmB,CAAA;;;;;;;;IASnB,0BAAW,CAAA;;;;;;;;IASX,0BAAW,CAAA;;;;;;;;IASX,iCAAkB,CAAA;;;;;;;;IASlB,sCAAuB,CAAA;;;;;;;;IASvB,uCAAwB,CAAA;;;;;;;;IASxB,qCAAsB,CAAA;;;;;;IAOtB,sCAAuB,CAAA;;;;;;;;IASvB,qCAAsB,CAAA;;;;;;;;IAStB,mCAAoB,CAAA;;;;;;;;IASpB,8BAAe,CAAA;;;;;;;;IASf,kCAAmB,CAAA;AACvB,CAAC,EA3LiB,WAAW,KAAX,WAAW;;ACR7B;;;;;;;;IAQkB;AAAlB,WAAkB,eAAe;;;;;;;;IAQ7B,gCAAa,CAAA;;;;;;;;IASb,+BAAY,CAAA;;;;;;;;IASZ,iCAAc,CAAA;;;;;;;;IASd,gCAAa,CAAA;;;;;;;;IASb,+BAAY,CAAA;;;;;;;;IASZ,sCAAmB,CAAA;;;;;;;;IASnB,uCAAoB,CAAA;;;;;;;;IASpB,gCAAa,CAAA;;;;;;;;IASb,wCAAqB,CAAA;;;;;;;;IASrB,sCAAmB,CAAA;;;;;;;;IASnB,8BAAW,CAAA;;;;;;;;IASX,8BAAW,CAAA;;;;;;;;IASX,qCAAkB,CAAA;;;;;;;;IASlB,0CAAuB,CAAA;;;;;;;;IASvB,2CAAwB,CAAA;;;;;;;;IASxB,yCAAsB,CAAA;;;;;;IAOtB,0CAAuB,CAAA;;;;;;;;IASvB,yCAAsB,CAAA;;;;;;;;IAStB,uCAAoB,CAAA;;;;;;;;IASpB,kCAAe,CAAA;;;;;;;;IASf,sCAAmB,CAAA;AACvB,CAAC,EA3LiB,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,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAEd;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,cAAA,CAAA,GAAA,KAAoB,CAAA;AAEpB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,eAAA,CAAA,GAAA,KAAqB,CAAA;AAErB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AAEX;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AAEX;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,YAAA,CAAA,GAAA,KAAkB,CAAA;AAElB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,iBAAA,CAAA,GAAA,KAAuB,CAAA;AAEvB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,kBAAA,CAAA,GAAA,KAAwB,CAAA;AAExB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AAEtB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AAEtB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,cAAA,CAAA,GAAA,KAAoB,CAAA;AAEpB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,SAAA,CAAA,GAAA,KAAe,CAAA;AAEf;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,UAAA,CAAA,GAAA,KAAgB,CAAA;AAEhB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,eAAA,CAAA,GAAA,KAAqB,CAAA;AAErB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAClB,CAAC,EAtOiB,WAAW,KAAX,WAAW,GAsO5B,EAAA,CAAA,CAAA;;AC9OD;;;;;;;AAOG;IACe,gBAsOjB;AAtOD,CAAA,UAAkB,eAAe,EAAA;AAC7B;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAEd;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,cAAA,CAAA,GAAA,KAAoB,CAAA;AAEpB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,eAAA,CAAA,GAAA,KAAqB,CAAA;AAErB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AAEX;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AAEX;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,YAAA,CAAA,GAAA,KAAkB,CAAA;AAElB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,iBAAA,CAAA,GAAA,KAAuB,CAAA;AAEvB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,kBAAA,CAAA,GAAA,KAAwB,CAAA;AAExB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AAEtB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AAEtB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,cAAA,CAAA,GAAA,KAAoB,CAAA;AAEpB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,KAAe,CAAA;AAEf;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,KAAgB,CAAA;AAEhB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,eAAA,CAAA,GAAA,KAAqB,CAAA;AAErB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAClB,CAAC,EAtOiB,eAAe,KAAf,eAAe,GAsOhC,EAAA,CAAA,CAAA;;AC9OD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-interfaces.js","sources":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-interfaces.js","sources":["../../../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,CAAA;AACF,oBAAA,IAAI,EAAE,CAAa,WAAA,CAAA;AACtB,iBAAA,CAAA;;;MCEY,qBAAqB,CAAA;;mHAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;oHAArB,qBAAqB,EAAA,YAAA,EAAA,CAHf,eAAe,CAAA,EAAA,OAAA,EAAA,CACpB,eAAe,CAAA,EAAA,CAAA,CAAA;oHAEhB,qBAAqB,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC7B,iBAAA,CAAA;;;MCJY,iBAAiB,CAAA;AAC1B,IAAA,SAAS,CAAC,KAAA,GAAuB,CAAE,CAAA,EAAE,gBAAyB,KAAK,EAAA;QAC/D,OAAO,KAAK,IAAI,CAAC,aAAa;AAC1B,cAAE,KAAK;iBACA,KAAK,CAAC,EAAE,CAAC;iBACT,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,MAAM,KAAK,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,CAAI,CAAA,EAAA,IAAI,CAAE,CAAA,GAAG,IAAI,CAAC,CAAC;iBACpE,IAAI,CAAC,EAAE,CAAC;cACb,EAAE,CAAC;KACZ;;+GARQ,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAjB,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,CAAA;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,IAAI;mBAAC,EAAC,IAAI,EAAE,CAAA,aAAA,CAAe,EAAC,CAAA;;;MCMhB,mBAAmB,CAAA;;iHAAnB,mBAAmB,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;;;;"}
|