@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,256 +1,355 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-commerce/components/money', ['exports', '@angular/core', '@taiga-ui/cdk', '@
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/addon-commerce/pipes'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-commerce/components/money', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/addon-commerce/pipes', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-commerce"] = global["taiga-ui"]["addon-commerce"] || {}, global["taiga-ui"]["addon-commerce"].components = global["taiga-ui"]["addon-commerce"].components || {}, global["taiga-ui"]["addon-commerce"].components.money = {}), global.ng.core, global.cdk, global.core, global["taiga-ui"]["addon-commerce"].pipes, global.ng.common));
|
|
5
|
+
})(this, (function (exports, i0, cdk, core, i4, common) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
o[
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
return
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
function
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
27
|
+
|
|
28
|
+
/******************************************************************************
|
|
29
|
+
Copyright (c) Microsoft Corporation.
|
|
30
|
+
|
|
31
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
32
|
+
purpose with or without fee is hereby granted.
|
|
33
|
+
|
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
35
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
36
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
37
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
38
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
39
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
40
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
41
|
+
***************************************************************************** */
|
|
42
|
+
/* global Reflect, Promise */
|
|
43
|
+
var extendStatics = function (d, b) {
|
|
44
|
+
extendStatics = Object.setPrototypeOf ||
|
|
45
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
46
|
+
function (d, b) { for (var p in b)
|
|
47
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
48
|
+
d[p] = b[p]; };
|
|
49
|
+
return extendStatics(d, b);
|
|
50
|
+
};
|
|
51
|
+
function __extends(d, b) {
|
|
52
|
+
if (typeof b !== "function" && b !== null)
|
|
53
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
54
|
+
extendStatics(d, b);
|
|
55
|
+
function __() { this.constructor = d; }
|
|
56
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
57
|
+
}
|
|
58
|
+
var __assign = function () {
|
|
59
|
+
__assign = Object.assign || function __assign(t) {
|
|
60
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
61
|
+
s = arguments[i];
|
|
62
|
+
for (var p in s)
|
|
63
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
64
|
+
t[p] = s[p];
|
|
65
|
+
}
|
|
66
|
+
return t;
|
|
67
|
+
};
|
|
68
|
+
return __assign.apply(this, arguments);
|
|
69
|
+
};
|
|
70
|
+
function __rest(s, e) {
|
|
71
|
+
var t = {};
|
|
72
|
+
for (var p in s)
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
74
|
+
t[p] = s[p];
|
|
75
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
76
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
77
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
78
|
+
t[p[i]] = s[p[i]];
|
|
79
|
+
}
|
|
80
|
+
return t;
|
|
81
|
+
}
|
|
82
|
+
function __decorate(decorators, target, key, desc) {
|
|
83
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
84
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
85
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
86
|
+
else
|
|
87
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
88
|
+
if (d = decorators[i])
|
|
89
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
90
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
91
|
+
}
|
|
92
|
+
function __param(paramIndex, decorator) {
|
|
93
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
94
|
+
}
|
|
95
|
+
function __metadata(metadataKey, metadataValue) {
|
|
96
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
97
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
98
|
+
}
|
|
99
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
100
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
101
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
102
|
+
function fulfilled(value) { try {
|
|
103
|
+
step(generator.next(value));
|
|
104
|
+
}
|
|
105
|
+
catch (e) {
|
|
106
|
+
reject(e);
|
|
107
|
+
} }
|
|
108
|
+
function rejected(value) { try {
|
|
109
|
+
step(generator["throw"](value));
|
|
110
|
+
}
|
|
111
|
+
catch (e) {
|
|
112
|
+
reject(e);
|
|
113
|
+
} }
|
|
114
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
115
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function __generator(thisArg, body) {
|
|
119
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
120
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
121
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
122
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
123
|
+
function step(op) {
|
|
124
|
+
if (f)
|
|
125
|
+
throw new TypeError("Generator is already executing.");
|
|
126
|
+
while (_)
|
|
127
|
+
try {
|
|
128
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
129
|
+
return t;
|
|
130
|
+
if (y = 0, t)
|
|
131
|
+
op = [op[0] & 2, t.value];
|
|
132
|
+
switch (op[0]) {
|
|
133
|
+
case 0:
|
|
134
|
+
case 1:
|
|
135
|
+
t = op;
|
|
136
|
+
break;
|
|
137
|
+
case 4:
|
|
138
|
+
_.label++;
|
|
139
|
+
return { value: op[1], done: false };
|
|
140
|
+
case 5:
|
|
141
|
+
_.label++;
|
|
142
|
+
y = op[1];
|
|
143
|
+
op = [0];
|
|
144
|
+
continue;
|
|
145
|
+
case 7:
|
|
146
|
+
op = _.ops.pop();
|
|
147
|
+
_.trys.pop();
|
|
148
|
+
continue;
|
|
149
|
+
default:
|
|
150
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
151
|
+
_ = 0;
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
155
|
+
_.label = op[1];
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
159
|
+
_.label = t[1];
|
|
160
|
+
t = op;
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (t && _.label < t[2]) {
|
|
164
|
+
_.label = t[2];
|
|
165
|
+
_.ops.push(op);
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
if (t[2])
|
|
169
|
+
_.ops.pop();
|
|
170
|
+
_.trys.pop();
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
op = body.call(thisArg, _);
|
|
174
|
+
}
|
|
175
|
+
catch (e) {
|
|
176
|
+
op = [6, e];
|
|
177
|
+
y = 0;
|
|
178
|
+
}
|
|
179
|
+
finally {
|
|
180
|
+
f = t = 0;
|
|
181
|
+
}
|
|
182
|
+
if (op[0] & 5)
|
|
183
|
+
throw op[1];
|
|
184
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
188
|
+
if (k2 === undefined)
|
|
189
|
+
k2 = k;
|
|
190
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
191
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
192
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
193
|
+
}
|
|
194
|
+
Object.defineProperty(o, k2, desc);
|
|
195
|
+
}) : (function (o, m, k, k2) {
|
|
196
|
+
if (k2 === undefined)
|
|
197
|
+
k2 = k;
|
|
198
|
+
o[k2] = m[k];
|
|
199
|
+
});
|
|
200
|
+
function __exportStar(m, o) {
|
|
201
|
+
for (var p in m)
|
|
202
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
203
|
+
__createBinding(o, m, p);
|
|
204
|
+
}
|
|
205
|
+
function __values(o) {
|
|
206
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
207
|
+
if (m)
|
|
208
|
+
return m.call(o);
|
|
209
|
+
if (o && typeof o.length === "number")
|
|
210
|
+
return {
|
|
211
|
+
next: function () {
|
|
212
|
+
if (o && i >= o.length)
|
|
213
|
+
o = void 0;
|
|
214
|
+
return { value: o && o[i++], done: !o };
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
218
|
+
}
|
|
219
|
+
function __read(o, n) {
|
|
220
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
221
|
+
if (!m)
|
|
222
|
+
return o;
|
|
223
|
+
var i = m.call(o), r, ar = [], e;
|
|
224
|
+
try {
|
|
225
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
226
|
+
ar.push(r.value);
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
e = { error: error };
|
|
230
|
+
}
|
|
231
|
+
finally {
|
|
232
|
+
try {
|
|
233
|
+
if (r && !r.done && (m = i["return"]))
|
|
234
|
+
m.call(i);
|
|
235
|
+
}
|
|
236
|
+
finally {
|
|
237
|
+
if (e)
|
|
238
|
+
throw e.error;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return ar;
|
|
242
|
+
}
|
|
243
|
+
/** @deprecated */
|
|
244
|
+
function __spread() {
|
|
245
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
246
|
+
ar = ar.concat(__read(arguments[i]));
|
|
247
|
+
return ar;
|
|
248
|
+
}
|
|
249
|
+
/** @deprecated */
|
|
250
|
+
function __spreadArrays() {
|
|
251
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
252
|
+
s += arguments[i].length;
|
|
253
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
254
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
255
|
+
r[k] = a[j];
|
|
256
|
+
return r;
|
|
257
|
+
}
|
|
258
|
+
function __spreadArray(to, from, pack) {
|
|
259
|
+
if (pack || arguments.length === 2)
|
|
260
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
261
|
+
if (ar || !(i in from)) {
|
|
262
|
+
if (!ar)
|
|
263
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
264
|
+
ar[i] = from[i];
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
268
|
+
}
|
|
269
|
+
function __await(v) {
|
|
270
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
271
|
+
}
|
|
272
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
273
|
+
if (!Symbol.asyncIterator)
|
|
274
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
275
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
276
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
277
|
+
function verb(n) { if (g[n])
|
|
278
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
279
|
+
function resume(n, v) { try {
|
|
280
|
+
step(g[n](v));
|
|
281
|
+
}
|
|
282
|
+
catch (e) {
|
|
283
|
+
settle(q[0][3], e);
|
|
284
|
+
} }
|
|
285
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
286
|
+
function fulfill(value) { resume("next", value); }
|
|
287
|
+
function reject(value) { resume("throw", value); }
|
|
288
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
289
|
+
resume(q[0][0], q[0][1]); }
|
|
290
|
+
}
|
|
291
|
+
function __asyncDelegator(o) {
|
|
292
|
+
var i, p;
|
|
293
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
294
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
295
|
+
}
|
|
296
|
+
function __asyncValues(o) {
|
|
297
|
+
if (!Symbol.asyncIterator)
|
|
298
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
299
|
+
var m = o[Symbol.asyncIterator], i;
|
|
300
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
301
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
302
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
303
|
+
}
|
|
304
|
+
function __makeTemplateObject(cooked, raw) {
|
|
305
|
+
if (Object.defineProperty) {
|
|
306
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
cooked.raw = raw;
|
|
310
|
+
}
|
|
311
|
+
return cooked;
|
|
312
|
+
}
|
|
313
|
+
;
|
|
314
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
315
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
316
|
+
}) : function (o, v) {
|
|
317
|
+
o["default"] = v;
|
|
318
|
+
};
|
|
319
|
+
function __importStar(mod) {
|
|
320
|
+
if (mod && mod.__esModule)
|
|
321
|
+
return mod;
|
|
322
|
+
var result = {};
|
|
323
|
+
if (mod != null)
|
|
324
|
+
for (var k in mod)
|
|
325
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
326
|
+
__createBinding(result, mod, k);
|
|
327
|
+
__setModuleDefault(result, mod);
|
|
328
|
+
return result;
|
|
329
|
+
}
|
|
330
|
+
function __importDefault(mod) {
|
|
331
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
332
|
+
}
|
|
333
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
334
|
+
if (kind === "a" && !f)
|
|
335
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
336
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
337
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
338
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
339
|
+
}
|
|
340
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
341
|
+
if (kind === "m")
|
|
342
|
+
throw new TypeError("Private method is not writable");
|
|
343
|
+
if (kind === "a" && !f)
|
|
344
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
345
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
346
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
347
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
348
|
+
}
|
|
349
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
350
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
351
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
352
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
254
353
|
}
|
|
255
354
|
|
|
256
355
|
var TUI_MONEY_DEFAULT_DEFAULT_OPTIONS = {
|
|
@@ -261,12 +360,12 @@
|
|
|
261
360
|
precision: 2,
|
|
262
361
|
singleColor: false,
|
|
263
362
|
};
|
|
264
|
-
var TUI_MONEY_OPTIONS = new
|
|
363
|
+
var TUI_MONEY_OPTIONS = new i0.InjectionToken("Default parameters for money component", {
|
|
265
364
|
factory: function () { return TUI_MONEY_DEFAULT_DEFAULT_OPTIONS; },
|
|
266
365
|
});
|
|
267
366
|
var tuiMoneyOptionsProvider = function (options) { return ({
|
|
268
367
|
provide: TUI_MONEY_OPTIONS,
|
|
269
|
-
useValue:
|
|
368
|
+
useValue: Object.assign(Object.assign({}, TUI_MONEY_DEFAULT_DEFAULT_OPTIONS), options),
|
|
270
369
|
}); };
|
|
271
370
|
|
|
272
371
|
function tuiFormatSignSymbol(value, sign) {
|
|
@@ -279,6 +378,75 @@
|
|
|
279
378
|
return cdk.CHAR_PLUS;
|
|
280
379
|
}
|
|
281
380
|
|
|
381
|
+
var TuiSignSymbolPipe = /** @class */ (function () {
|
|
382
|
+
function TuiSignSymbolPipe() {
|
|
383
|
+
}
|
|
384
|
+
TuiSignSymbolPipe.prototype.transform = function (value, sign) {
|
|
385
|
+
return tuiFormatSignSymbol(value, sign);
|
|
386
|
+
};
|
|
387
|
+
return TuiSignSymbolPipe;
|
|
388
|
+
}());
|
|
389
|
+
TuiSignSymbolPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSignSymbolPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
390
|
+
TuiSignSymbolPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSignSymbolPipe, name: "tuiSignSymbol" });
|
|
391
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiSignSymbolPipe, decorators: [{
|
|
392
|
+
type: i0.Pipe,
|
|
393
|
+
args: [{ name: "tuiSignSymbol" }]
|
|
394
|
+
}] });
|
|
395
|
+
|
|
396
|
+
var TuiIntegerPartPipe = /** @class */ (function () {
|
|
397
|
+
function TuiIntegerPartPipe(numberFormat) {
|
|
398
|
+
this.numberFormat = numberFormat;
|
|
399
|
+
}
|
|
400
|
+
TuiIntegerPartPipe.prototype.transform = function (value, precision) {
|
|
401
|
+
return core.tuiFormatNumber(Math.floor(Math.abs(Number(value.toFixed(precision)))), this.numberFormat);
|
|
402
|
+
};
|
|
403
|
+
return TuiIntegerPartPipe;
|
|
404
|
+
}());
|
|
405
|
+
TuiIntegerPartPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIntegerPartPipe, deps: [{ token: core.TUI_NUMBER_FORMAT }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
406
|
+
TuiIntegerPartPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIntegerPartPipe, name: "tuiIntegerPart" });
|
|
407
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiIntegerPartPipe, decorators: [{
|
|
408
|
+
type: i0.Pipe,
|
|
409
|
+
args: [{ name: "tuiIntegerPart" }]
|
|
410
|
+
}], ctorParameters: function () {
|
|
411
|
+
return [{ type: undefined, decorators: [{
|
|
412
|
+
type: i0.Inject,
|
|
413
|
+
args: [core.TUI_NUMBER_FORMAT]
|
|
414
|
+
}] }];
|
|
415
|
+
} });
|
|
416
|
+
|
|
417
|
+
function tuiFormatFractionPart(options) {
|
|
418
|
+
var value = options.value, decimal = options.decimal, numberFormat = options.numberFormat, precision = options.precision;
|
|
419
|
+
var fraction = value.toFixed(precision).split(".")[1];
|
|
420
|
+
var shouldShow = decimal !== "never" && (decimal === "always" || !!parseInt(fraction, 10));
|
|
421
|
+
return shouldShow ? "" + numberFormat.decimalSeparator + fraction : "";
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
var TuiFractionPartPipe = /** @class */ (function () {
|
|
425
|
+
function TuiFractionPartPipe(numberFormat) {
|
|
426
|
+
this.numberFormat = numberFormat;
|
|
427
|
+
}
|
|
428
|
+
TuiFractionPartPipe.prototype.transform = function (value, decimal, precision) {
|
|
429
|
+
return tuiFormatFractionPart({
|
|
430
|
+
value: value,
|
|
431
|
+
decimal: decimal,
|
|
432
|
+
precision: precision,
|
|
433
|
+
numberFormat: this.numberFormat,
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
return TuiFractionPartPipe;
|
|
437
|
+
}());
|
|
438
|
+
TuiFractionPartPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiFractionPartPipe, deps: [{ token: core.TUI_NUMBER_FORMAT }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
439
|
+
TuiFractionPartPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiFractionPartPipe, name: "tuiFractionPart" });
|
|
440
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiFractionPartPipe, decorators: [{
|
|
441
|
+
type: i0.Pipe,
|
|
442
|
+
args: [{ name: "tuiFractionPart" }]
|
|
443
|
+
}], ctorParameters: function () {
|
|
444
|
+
return [{ type: undefined, decorators: [{
|
|
445
|
+
type: i0.Inject,
|
|
446
|
+
args: [core.TUI_NUMBER_FORMAT]
|
|
447
|
+
}] }];
|
|
448
|
+
} });
|
|
449
|
+
|
|
282
450
|
var TuiMoneyComponent = /** @class */ (function () {
|
|
283
451
|
function TuiMoneyComponent(options) {
|
|
284
452
|
this.options = options;
|
|
@@ -294,7 +462,7 @@
|
|
|
294
462
|
get: function () {
|
|
295
463
|
return tuiFormatSignSymbol(this.value, this.sign);
|
|
296
464
|
},
|
|
297
|
-
enumerable:
|
|
465
|
+
enumerable: false,
|
|
298
466
|
configurable: true
|
|
299
467
|
});
|
|
300
468
|
Object.defineProperty(TuiMoneyComponent.prototype, "red", {
|
|
@@ -303,7 +471,7 @@
|
|
|
303
471
|
(this.signSymbol === cdk.CHAR_MINUS ||
|
|
304
472
|
(this.value < 0 && this.sign !== "force-positive")));
|
|
305
473
|
},
|
|
306
|
-
enumerable:
|
|
474
|
+
enumerable: false,
|
|
307
475
|
configurable: true
|
|
308
476
|
});
|
|
309
477
|
Object.defineProperty(TuiMoneyComponent.prototype, "green", {
|
|
@@ -312,143 +480,107 @@
|
|
|
312
480
|
(this.signSymbol === cdk.CHAR_PLUS ||
|
|
313
481
|
(this.value > 0 && this.sign !== "force-negative")));
|
|
314
482
|
},
|
|
315
|
-
enumerable:
|
|
483
|
+
enumerable: false,
|
|
316
484
|
configurable: true
|
|
317
485
|
});
|
|
318
486
|
Object.defineProperty(TuiMoneyComponent.prototype, "inheritColor", {
|
|
319
487
|
get: function () {
|
|
320
488
|
return this.singleColor || (this.value === 0 && this.colored);
|
|
321
489
|
},
|
|
322
|
-
enumerable:
|
|
490
|
+
enumerable: false,
|
|
323
491
|
configurable: true
|
|
324
492
|
});
|
|
325
|
-
TuiMoneyComponent.ctorParameters = function () { return [
|
|
326
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [TUI_MONEY_OPTIONS,] }] }
|
|
327
|
-
]; };
|
|
328
|
-
__decorate([
|
|
329
|
-
core.Input(),
|
|
330
|
-
cdk.tuiDefaultProp()
|
|
331
|
-
], TuiMoneyComponent.prototype, "value", void 0);
|
|
332
|
-
__decorate([
|
|
333
|
-
core.Input(),
|
|
334
|
-
cdk.tuiDefaultProp()
|
|
335
|
-
], TuiMoneyComponent.prototype, "decimal", void 0);
|
|
336
|
-
__decorate([
|
|
337
|
-
core.Input(),
|
|
338
|
-
cdk.tuiDefaultProp()
|
|
339
|
-
], TuiMoneyComponent.prototype, "currency", void 0);
|
|
340
|
-
__decorate([
|
|
341
|
-
core.Input(),
|
|
342
|
-
cdk.tuiDefaultProp()
|
|
343
|
-
], TuiMoneyComponent.prototype, "sign", void 0);
|
|
344
|
-
__decorate([
|
|
345
|
-
core.Input(),
|
|
346
|
-
cdk.tuiDefaultProp()
|
|
347
|
-
], TuiMoneyComponent.prototype, "colored", void 0);
|
|
348
|
-
__decorate([
|
|
349
|
-
core.Input(),
|
|
350
|
-
cdk.tuiDefaultProp()
|
|
351
|
-
], TuiMoneyComponent.prototype, "precision", void 0);
|
|
352
|
-
__decorate([
|
|
353
|
-
core.Input(),
|
|
354
|
-
cdk.tuiDefaultProp()
|
|
355
|
-
], TuiMoneyComponent.prototype, "singleColor", void 0);
|
|
356
|
-
__decorate([
|
|
357
|
-
core.HostBinding("class._red")
|
|
358
|
-
], TuiMoneyComponent.prototype, "red", null);
|
|
359
|
-
__decorate([
|
|
360
|
-
core.HostBinding("class._green")
|
|
361
|
-
], TuiMoneyComponent.prototype, "green", null);
|
|
362
|
-
__decorate([
|
|
363
|
-
core.HostBinding("class._inherit-color")
|
|
364
|
-
], TuiMoneyComponent.prototype, "inheritColor", null);
|
|
365
|
-
TuiMoneyComponent = __decorate([
|
|
366
|
-
core.Component({
|
|
367
|
-
selector: "tui-money",
|
|
368
|
-
template: "<span\n automation-id=\"tui-money__sign\"\n [textContent]=\"value | tuiSignSymbol: sign\"\n></span>\n<span\n automation-id=\"tui-money__integer-part\"\n [textContent]=\"value | tuiIntegerPart: precision\"\n></span>\n<span class=\"t-lighter\">\n <span\n automation-id=\"tui-money__fraction-part\"\n [textContent]=\"value | tuiFractionPart: decimal:precision\"\n ></span>\n <span\n automation-id=\"tui-money__currency\"\n class=\"t-currency\"\n [textContent]=\"currency | tuiCurrency\"\n ></span>\n</span>\n",
|
|
369
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
370
|
-
styles: [":host{white-space:nowrap}:host._red{color:var(--tui-negative)}:host._green{color:var(--tui-positive)}:host:not(._inherit-color) .t-lighter{opacity:var(--tui-disabled-opacity)}.t-currency:not(:empty){padding-left:.2rem}"]
|
|
371
|
-
}),
|
|
372
|
-
__param(0, core.Inject(TUI_MONEY_OPTIONS))
|
|
373
|
-
], TuiMoneyComponent);
|
|
374
493
|
return TuiMoneyComponent;
|
|
375
494
|
}());
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
495
|
+
TuiMoneyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiMoneyComponent, deps: [{ token: TUI_MONEY_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
496
|
+
TuiMoneyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiMoneyComponent, selector: "tui-money", inputs: { value: "value", decimal: "decimal", currency: "currency", sign: "sign", colored: "colored", precision: "precision", singleColor: "singleColor" }, host: { properties: { "class._red": "this.red", "class._green": "this.green", "class._inherit-color": "this.inheritColor" } }, ngImport: i0__namespace, template: "<span\n automation-id=\"tui-money__sign\"\n [textContent]=\"value | tuiSignSymbol: sign\"\n></span>\n<span\n automation-id=\"tui-money__integer-part\"\n [textContent]=\"value | tuiIntegerPart: precision\"\n></span>\n<span class=\"t-lighter\">\n <span\n automation-id=\"tui-money__fraction-part\"\n [textContent]=\"value | tuiFractionPart: decimal:precision\"\n ></span>\n <span\n automation-id=\"tui-money__currency\"\n class=\"t-currency\"\n [textContent]=\"currency | tuiCurrency\"\n ></span>\n</span>\n", styles: [":host{white-space:nowrap}:host._red{color:var(--tui-negative)}:host._green{color:var(--tui-positive)}:host:not(._inherit-color) .t-lighter{opacity:var(--tui-disabled-opacity)}.t-currency:not(:empty){padding-left:.2rem}\n"], pipes: { "tuiSignSymbol": TuiSignSymbolPipe, "tuiIntegerPart": TuiIntegerPartPipe, "tuiFractionPart": TuiFractionPartPipe, "tuiCurrency": i4__namespace.TuiCurrencyPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
497
|
+
__decorate([
|
|
498
|
+
cdk.tuiDefaultProp()
|
|
499
|
+
], TuiMoneyComponent.prototype, "value", void 0);
|
|
500
|
+
__decorate([
|
|
501
|
+
cdk.tuiDefaultProp()
|
|
502
|
+
], TuiMoneyComponent.prototype, "decimal", void 0);
|
|
503
|
+
__decorate([
|
|
504
|
+
cdk.tuiDefaultProp()
|
|
505
|
+
], TuiMoneyComponent.prototype, "currency", void 0);
|
|
506
|
+
__decorate([
|
|
507
|
+
cdk.tuiDefaultProp()
|
|
508
|
+
], TuiMoneyComponent.prototype, "sign", void 0);
|
|
509
|
+
__decorate([
|
|
510
|
+
cdk.tuiDefaultProp()
|
|
511
|
+
], TuiMoneyComponent.prototype, "colored", void 0);
|
|
512
|
+
__decorate([
|
|
513
|
+
cdk.tuiDefaultProp()
|
|
514
|
+
], TuiMoneyComponent.prototype, "precision", void 0);
|
|
515
|
+
__decorate([
|
|
516
|
+
cdk.tuiDefaultProp()
|
|
517
|
+
], TuiMoneyComponent.prototype, "singleColor", void 0);
|
|
518
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiMoneyComponent, decorators: [{
|
|
519
|
+
type: i0.Component,
|
|
520
|
+
args: [{
|
|
521
|
+
selector: "tui-money",
|
|
522
|
+
templateUrl: "./money.template.html",
|
|
523
|
+
styleUrls: ["./money.style.less"],
|
|
524
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
525
|
+
}]
|
|
526
|
+
}], ctorParameters: function () {
|
|
527
|
+
return [{ type: undefined, decorators: [{
|
|
528
|
+
type: i0.Inject,
|
|
529
|
+
args: [TUI_MONEY_OPTIONS]
|
|
530
|
+
}] }];
|
|
531
|
+
}, propDecorators: { value: [{
|
|
532
|
+
type: i0.Input
|
|
533
|
+
}], decimal: [{
|
|
534
|
+
type: i0.Input
|
|
535
|
+
}], currency: [{
|
|
536
|
+
type: i0.Input
|
|
537
|
+
}], sign: [{
|
|
538
|
+
type: i0.Input
|
|
539
|
+
}], colored: [{
|
|
540
|
+
type: i0.Input
|
|
541
|
+
}], precision: [{
|
|
542
|
+
type: i0.Input
|
|
543
|
+
}], singleColor: [{
|
|
544
|
+
type: i0.Input
|
|
545
|
+
}], red: [{
|
|
546
|
+
type: i0.HostBinding,
|
|
547
|
+
args: ["class._red"]
|
|
548
|
+
}], green: [{
|
|
549
|
+
type: i0.HostBinding,
|
|
550
|
+
args: ["class._green"]
|
|
551
|
+
}], inheritColor: [{
|
|
552
|
+
type: i0.HostBinding,
|
|
553
|
+
args: ["class._inherit-color"]
|
|
554
|
+
}] } });
|
|
434
555
|
|
|
435
556
|
var TuiMoneyModule = /** @class */ (function () {
|
|
436
557
|
function TuiMoneyModule() {
|
|
437
558
|
}
|
|
438
|
-
TuiMoneyModule = __decorate([
|
|
439
|
-
core.NgModule({
|
|
440
|
-
imports: [common.CommonModule, pipes.TuiCurrencyPipeModule],
|
|
441
|
-
declarations: [
|
|
442
|
-
TuiMoneyComponent,
|
|
443
|
-
TuiFractionPartPipe,
|
|
444
|
-
TuiIntegerPartPipe,
|
|
445
|
-
TuiSignSymbolPipe,
|
|
446
|
-
],
|
|
447
|
-
exports: [TuiMoneyComponent],
|
|
448
|
-
})
|
|
449
|
-
], TuiMoneyModule);
|
|
450
559
|
return TuiMoneyModule;
|
|
451
560
|
}());
|
|
561
|
+
TuiMoneyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiMoneyModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
562
|
+
TuiMoneyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiMoneyModule, declarations: [TuiMoneyComponent,
|
|
563
|
+
TuiFractionPartPipe,
|
|
564
|
+
TuiIntegerPartPipe,
|
|
565
|
+
TuiSignSymbolPipe], imports: [common.CommonModule, i4.TuiCurrencyPipeModule], exports: [TuiMoneyComponent] });
|
|
566
|
+
TuiMoneyModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiMoneyModule, imports: [[common.CommonModule, i4.TuiCurrencyPipeModule]] });
|
|
567
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiMoneyModule, decorators: [{
|
|
568
|
+
type: i0.NgModule,
|
|
569
|
+
args: [{
|
|
570
|
+
imports: [common.CommonModule, i4.TuiCurrencyPipeModule],
|
|
571
|
+
declarations: [
|
|
572
|
+
TuiMoneyComponent,
|
|
573
|
+
TuiFractionPartPipe,
|
|
574
|
+
TuiIntegerPartPipe,
|
|
575
|
+
TuiSignSymbolPipe,
|
|
576
|
+
],
|
|
577
|
+
exports: [TuiMoneyComponent],
|
|
578
|
+
}]
|
|
579
|
+
}] });
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Generated bundle index. Do not edit.
|
|
583
|
+
*/
|
|
452
584
|
|
|
453
585
|
exports.TUI_MONEY_DEFAULT_DEFAULT_OPTIONS = TUI_MONEY_DEFAULT_DEFAULT_OPTIONS;
|
|
454
586
|
exports.TUI_MONEY_OPTIONS = TUI_MONEY_OPTIONS;
|
|
@@ -463,5 +595,5 @@
|
|
|
463
595
|
|
|
464
596
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
465
597
|
|
|
466
|
-
}))
|
|
598
|
+
}));
|
|
467
599
|
//# sourceMappingURL=taiga-ui-addon-commerce-components-money.umd.js.map
|