@taiga-ui/addon-commerce 3.57.0 → 3.59.0-canary.10da730
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/input-card/abstract-input-card.d.ts +1 -1
- package/components/input-card/input-card.component.d.ts +1 -1
- package/components/input-card/input-card.directive.d.ts +1 -1
- package/components/input-card-grouped/input-card-grouped.component.d.ts +1 -1
- package/components/input-cvc/input-cvc.component.d.ts +1 -1
- package/components/input-expire/input-expire.component.d.ts +1 -1
- package/components/money/money.component.d.ts +1 -1
- package/components/money/pipes/fraction-part.pipe.d.ts +1 -1
- package/components/money/pipes/integer-part.pipe.d.ts +1 -1
- package/components/money/pipes/sign-symbol.pipe.d.ts +1 -1
- package/components/thumbnail-card/deprecated.d.ts +1 -1
- package/components/thumbnail-card/thumbnail-card.component.d.ts +1 -1
- package/{esm2015/components/input-card/abstract-input-card.js → esm2020/components/input-card/abstract-input-card.mjs} +3 -3
- package/esm2020/components/input-card/input-card.component.mjs +91 -0
- package/{esm2015/components/input-card/input-card.directive.js → esm2020/components/input-card/input-card.directive.mjs} +3 -3
- package/{esm2015/components/input-card/input-card.module.js → esm2020/components/input-card/input-card.module.mjs} +9 -11
- package/esm2020/components/input-card-grouped/input-card-grouped.component.mjs +337 -0
- package/{esm2015/components/input-card-grouped/input-card-grouped.module.js → esm2020/components/input-card-grouped/input-card-grouped.module.mjs} +19 -21
- package/esm2020/components/input-card-grouped/input-card-grouped.options.mjs +14 -0
- package/esm2020/components/input-card-grouped/input-card-grouped.providers.mjs +28 -0
- package/esm2020/components/input-cvc/input-cvc.component.mjs +91 -0
- package/{esm2015/components/input-cvc/input-cvc.module.js → esm2020/components/input-cvc/input-cvc.module.mjs} +8 -10
- package/esm2020/components/input-expire/input-expire.component.mjs +73 -0
- package/{esm2015/components/input-expire/input-expire.module.js → esm2020/components/input-expire/input-expire.module.mjs} +8 -10
- package/esm2020/components/money/money.component.mjs +78 -0
- package/{esm2015/components/money/money.module.js → esm2020/components/money/money.module.mjs} +5 -5
- package/{esm2015/components/money/pipes/fraction-part.pipe.js → esm2020/components/money/pipes/fraction-part.pipe.mjs} +3 -3
- package/{esm2015/components/money/pipes/integer-part.pipe.js → esm2020/components/money/pipes/integer-part.pipe.mjs} +9 -5
- package/{esm2015/components/money/pipes/sign-symbol.pipe.js → esm2020/components/money/pipes/sign-symbol.pipe.mjs} +3 -3
- package/esm2020/components/money/utils/format-fraction-part.mjs +11 -0
- package/esm2020/components/thumbnail-card/deprecated.mjs +35 -0
- package/{esm2015/components/thumbnail-card/thumbnail-card.component.js → esm2020/components/thumbnail-card/thumbnail-card.component.mjs} +7 -12
- package/{esm2015/components/thumbnail-card/thumbnail-card.module.js → esm2020/components/thumbnail-card/thumbnail-card.module.mjs} +5 -5
- package/{esm2015/pipes/currency/currency.module.js → esm2020/pipes/currency/currency.module.mjs} +4 -4
- package/{esm2015/pipes/currency/currency.pipe.js → esm2020/pipes/currency/currency.pipe.mjs} +3 -3
- package/{esm2015/pipes/format-card/format-card.module.js → esm2020/pipes/format-card/format-card.module.mjs} +4 -4
- package/{esm2015/pipes/format-card/format-card.pipe.js → esm2020/pipes/format-card/format-card.pipe.mjs} +3 -3
- package/{esm2015/utils/get-code-by-currency.js → esm2020/utils/get-code-by-currency.mjs} +2 -3
- package/{esm2015/utils/get-currency-by-code.js → esm2020/utils/get-currency-by-code.mjs} +2 -3
- package/esm2020/utils/get-payment-system.mjs +105 -0
- package/esm2020/validators/card-expire.validator.mjs +8 -0
- package/esm2020/validators/card-number.validator.mjs +8 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.mjs +450 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.mjs +230 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.mjs +128 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.mjs +110 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-money.mjs +205 -0
- package/fesm2015/taiga-ui-addon-commerce-components-money.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.mjs +100 -0
- package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-components.js → taiga-ui-addon-commerce-components.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-constants.js → taiga-ui-addon-commerce-constants.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-constants.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-enums.js → taiga-ui-addon-commerce-enums.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-enums.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-interfaces.mjs +4 -0
- package/fesm2015/taiga-ui-addon-commerce-interfaces.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-pipes.js → taiga-ui-addon-commerce-pipes.mjs} +15 -15
- package/fesm2015/taiga-ui-addon-commerce-pipes.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-tokens.js → taiga-ui-addon-commerce-tokens.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-tokens.mjs.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-types.mjs +4 -0
- package/fesm2015/taiga-ui-addon-commerce-types.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-utils.js → taiga-ui-addon-commerce-utils.mjs} +1 -2
- package/fesm2015/taiga-ui-addon-commerce-utils.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce-validators.js → taiga-ui-addon-commerce-validators.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-validators.mjs.map +1 -0
- package/fesm2015/{taiga-ui-addon-commerce.js → taiga-ui-addon-commerce.mjs} +1 -1
- package/fesm2015/taiga-ui-addon-commerce.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-components-input-card-grouped.mjs +440 -0
- package/fesm2020/taiga-ui-addon-commerce-components-input-card-grouped.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-input-card.js → fesm2020/taiga-ui-addon-commerce-components-input-card.mjs} +28 -38
- package/fesm2020/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-input-cvc.js → fesm2020/taiga-ui-addon-commerce-components-input-cvc.mjs} +27 -36
- package/fesm2020/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-input-expire.js → fesm2020/taiga-ui-addon-commerce-components-input-expire.mjs} +20 -29
- package/fesm2020/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-money.js → fesm2020/taiga-ui-addon-commerce-components-money.mjs} +67 -65
- package/fesm2020/taiga-ui-addon-commerce-components-money.mjs.map +1 -0
- package/{fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js → fesm2020/taiga-ui-addon-commerce-components-thumbnail-card.mjs} +19 -29
- package/fesm2020/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-components.mjs +11 -0
- package/fesm2020/taiga-ui-addon-commerce-components.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-constants.mjs +103 -0
- package/fesm2020/taiga-ui-addon-commerce-constants.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-enums.mjs +721 -0
- package/fesm2020/taiga-ui-addon-commerce-enums.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-interfaces.mjs +4 -0
- package/fesm2020/taiga-ui-addon-commerce-interfaces.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-pipes.mjs +67 -0
- package/fesm2020/taiga-ui-addon-commerce-pipes.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-tokens.mjs +23 -0
- package/fesm2020/taiga-ui-addon-commerce-tokens.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-types.mjs +4 -0
- package/fesm2020/taiga-ui-addon-commerce-types.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-utils.mjs +443 -0
- package/fesm2020/taiga-ui-addon-commerce-utils.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce-validators.mjs +25 -0
- package/fesm2020/taiga-ui-addon-commerce-validators.mjs.map +1 -0
- package/fesm2020/taiga-ui-addon-commerce.mjs +14 -0
- package/fesm2020/taiga-ui-addon-commerce.mjs.map +1 -0
- package/package.json +172 -39
- package/pipes/currency/currency.pipe.d.ts +1 -1
- package/pipes/format-card/format-card.pipe.d.ts +1 -1
- package/types/code-length.d.ts +1 -1
- package/types/currency-variants.d.ts +2 -2
- package/types/money-sign.d.ts +2 -2
- package/types/payment-system.d.ts +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js +0 -917
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js +0 -635
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js +0 -507
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js +0 -480
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-money.umd.js +0 -272
- package/bundles/taiga-ui-addon-commerce-components-money.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js +0 -475
- package/bundles/taiga-ui-addon-commerce-components-thumbnail-card.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-components.umd.js +0 -51
- package/bundles/taiga-ui-addon-commerce-components.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-constants.umd.js +0 -114
- package/bundles/taiga-ui-addon-commerce-constants.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-enums.umd.js +0 -729
- package/bundles/taiga-ui-addon-commerce-enums.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-addon-commerce-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js +0 -110
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-tokens.umd.js +0 -31
- package/bundles/taiga-ui-addon-commerce-tokens.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-types.umd.js +0 -11
- package/bundles/taiga-ui-addon-commerce-types.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.js +0 -794
- package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce-validators.umd.js +0 -40
- package/bundles/taiga-ui-addon-commerce-validators.umd.js.map +0 -1
- package/bundles/taiga-ui-addon-commerce.umd.js +0 -69
- package/bundles/taiga-ui-addon-commerce.umd.js.map +0 -1
- package/components/input-card/package.json +0 -10
- package/components/input-card/taiga-ui-addon-commerce-components-input-card.d.ts +0 -5
- package/components/input-card-grouped/package.json +0 -10
- package/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.d.ts +0 -5
- package/components/input-cvc/package.json +0 -10
- package/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.d.ts +0 -5
- package/components/input-expire/package.json +0 -10
- package/components/input-expire/taiga-ui-addon-commerce-components-input-expire.d.ts +0 -5
- package/components/money/package.json +0 -10
- package/components/money/taiga-ui-addon-commerce-components-money.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/taiga-ui-addon-commerce-components.d.ts +0 -5
- package/components/thumbnail-card/package.json +0 -10
- package/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.d.ts +0 -5
- package/constants/package.json +0 -10
- package/constants/taiga-ui-addon-commerce-constants.d.ts +0 -5
- package/enums/package.json +0 -10
- package/enums/taiga-ui-addon-commerce-enums.d.ts +0 -5
- package/esm2015/components/input-card/input-card.component.js +0 -99
- package/esm2015/components/input-card-grouped/input-card-grouped.component.js +0 -357
- package/esm2015/components/input-card-grouped/input-card-grouped.options.js +0 -9
- package/esm2015/components/input-card-grouped/input-card-grouped.providers.js +0 -29
- package/esm2015/components/input-cvc/input-cvc.component.js +0 -98
- package/esm2015/components/input-expire/input-expire.component.js +0 -80
- package/esm2015/components/money/money.component.js +0 -83
- package/esm2015/components/money/utils/format-fraction-part.js +0 -8
- package/esm2015/components/thumbnail-card/deprecated.js +0 -40
- package/esm2015/utils/get-payment-system.js +0 -107
- package/esm2015/validators/card-expire.validator.js +0 -9
- package/esm2015/validators/card-number.validator.js +0 -8
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js +0 -458
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-money.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components-thumbnail-card.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-components.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-constants.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-enums.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-interfaces.js +0 -4
- package/fesm2015/taiga-ui-addon-commerce-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-pipes.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-tokens.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-types.js +0 -4
- package/fesm2015/taiga-ui-addon-commerce-types.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-utils.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce-validators.js.map +0 -1
- package/fesm2015/taiga-ui-addon-commerce.js.map +0 -1
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-addon-commerce-interfaces.d.ts +0 -5
- package/pipes/package.json +0 -10
- package/pipes/taiga-ui-addon-commerce-pipes.d.ts +0 -5
- package/taiga-ui-addon-commerce.d.ts +0 -5
- package/tokens/package.json +0 -10
- package/tokens/taiga-ui-addon-commerce-tokens.d.ts +0 -5
- package/types/package.json +0 -10
- package/types/taiga-ui-addon-commerce-types.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/taiga-ui-addon-commerce-utils.d.ts +0 -5
- package/validators/package.json +0 -10
- package/validators/taiga-ui-addon-commerce-validators.d.ts +0 -5
- /package/{esm2015/components/index.js → esm2020/components/index.mjs} +0 -0
- /package/{esm2015/components/input-card/index.js → esm2020/components/input-card/index.mjs} +0 -0
- /package/{esm2015/components/input-card/input-card.options.js → esm2020/components/input-card/input-card.options.mjs} +0 -0
- /package/{esm2015/components/input-card/taiga-ui-addon-commerce-components-input-card.js → esm2020/components/input-card/taiga-ui-addon-commerce-components-input-card.mjs} +0 -0
- /package/{esm2015/components/input-card-grouped/index.js → esm2020/components/input-card-grouped/index.mjs} +0 -0
- /package/{esm2015/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.js → esm2020/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.mjs} +0 -0
- /package/{esm2015/components/input-cvc/index.js → esm2020/components/input-cvc/index.mjs} +0 -0
- /package/{esm2015/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.js → esm2020/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.mjs} +0 -0
- /package/{esm2015/components/input-expire/index.js → esm2020/components/input-expire/index.mjs} +0 -0
- /package/{esm2015/components/input-expire/taiga-ui-addon-commerce-components-input-expire.js → esm2020/components/input-expire/taiga-ui-addon-commerce-components-input-expire.mjs} +0 -0
- /package/{esm2015/components/money/index.js → esm2020/components/money/index.mjs} +0 -0
- /package/{esm2015/components/money/money.options.js → esm2020/components/money/money.options.mjs} +0 -0
- /package/{esm2015/components/money/taiga-ui-addon-commerce-components-money.js → esm2020/components/money/taiga-ui-addon-commerce-components-money.mjs} +0 -0
- /package/{esm2015/components/money/utils/format-sign-symbol.js → esm2020/components/money/utils/format-sign-symbol.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-addon-commerce-components.js → esm2020/components/taiga-ui-addon-commerce-components.mjs} +0 -0
- /package/{esm2015/components/thumbnail-card/index.js → esm2020/components/thumbnail-card/index.mjs} +0 -0
- /package/{esm2015/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.js → esm2020/components/thumbnail-card/taiga-ui-addon-commerce-components-thumbnail-card.mjs} +0 -0
- /package/{esm2015/constants/card-holder-mask.js → esm2020/constants/card-holder-mask.mjs} +0 -0
- /package/{esm2015/constants/card-mask.js → esm2020/constants/card-mask.mjs} +0 -0
- /package/{esm2015/constants/default-card-validator.js → esm2020/constants/default-card-validator.mjs} +0 -0
- /package/{esm2015/constants/index.js → esm2020/constants/index.mjs} +0 -0
- /package/{esm2015/constants/taiga-ui-addon-commerce-constants.js → esm2020/constants/taiga-ui-addon-commerce-constants.mjs} +0 -0
- /package/{esm2015/enums/currency-code.js → esm2020/enums/currency-code.mjs} +0 -0
- /package/{esm2015/enums/currency.js → esm2020/enums/currency.mjs} +0 -0
- /package/{esm2015/enums/index.js → esm2020/enums/index.mjs} +0 -0
- /package/{esm2015/enums/taiga-ui-addon-commerce-enums.js → esm2020/enums/taiga-ui-addon-commerce-enums.mjs} +0 -0
- /package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- /package/{esm2015/interfaces/card.js → esm2020/interfaces/card.mjs} +0 -0
- /package/{esm2015/interfaces/index.js → esm2020/interfaces/index.mjs} +0 -0
- /package/{esm2015/interfaces/taiga-ui-addon-commerce-interfaces.js → esm2020/interfaces/taiga-ui-addon-commerce-interfaces.mjs} +0 -0
- /package/{esm2015/pipes/index.js → esm2020/pipes/index.mjs} +0 -0
- /package/{esm2015/pipes/taiga-ui-addon-commerce-pipes.js → esm2020/pipes/taiga-ui-addon-commerce-pipes.mjs} +0 -0
- /package/{esm2015/taiga-ui-addon-commerce.js → esm2020/taiga-ui-addon-commerce.mjs} +0 -0
- /package/{esm2015/tokens/i18n.js → esm2020/tokens/i18n.mjs} +0 -0
- /package/{esm2015/tokens/index.js → esm2020/tokens/index.mjs} +0 -0
- /package/{esm2015/tokens/taiga-ui-addon-commerce-tokens.js → esm2020/tokens/taiga-ui-addon-commerce-tokens.mjs} +0 -0
- /package/{esm2015/types/code-length.js → esm2020/types/code-length.mjs} +0 -0
- /package/{esm2015/types/currency-variants.js → esm2020/types/currency-variants.mjs} +0 -0
- /package/{esm2015/types/index.js → esm2020/types/index.mjs} +0 -0
- /package/{esm2015/types/money-sign.js → esm2020/types/money-sign.mjs} +0 -0
- /package/{esm2015/types/payment-system.js → esm2020/types/payment-system.mjs} +0 -0
- /package/{esm2015/types/taiga-ui-addon-commerce-types.js → esm2020/types/taiga-ui-addon-commerce-types.mjs} +0 -0
- /package/{esm2015/utils/create-auto-corrected-expire-pipe.js → esm2020/utils/create-auto-corrected-expire-pipe.mjs} +0 -0
- /package/{esm2015/utils/format-currency.js → esm2020/utils/format-currency.mjs} +0 -0
- /package/{esm2015/utils/get-currency-symbol.js → esm2020/utils/get-currency-symbol.mjs} +0 -0
- /package/{esm2015/utils/index.js → esm2020/utils/index.mjs} +0 -0
- /package/{esm2015/utils/is-card-length-valid.js → esm2020/utils/is-card-length-valid.mjs} +0 -0
- /package/{esm2015/utils/is-card-number-valid.js → esm2020/utils/is-card-number-valid.mjs} +0 -0
- /package/{esm2015/utils/is-expire-valid.js → esm2020/utils/is-expire-valid.mjs} +0 -0
- /package/{esm2015/utils/payment-system-icons.js → esm2020/utils/payment-system-icons.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-addon-commerce-utils.js → esm2020/utils/taiga-ui-addon-commerce-utils.mjs} +0 -0
- /package/{esm2015/validators/index.js → esm2020/validators/index.mjs} +0 -0
- /package/{esm2015/validators/luhn.validator.js → esm2020/validators/luhn.validator.mjs} +0 -0
- /package/{esm2015/validators/taiga-ui-addon-commerce-validators.js → esm2020/validators/taiga-ui-addon-commerce-validators.mjs} +0 -0
|
@@ -5,13 +5,13 @@ import * as i1 from '@angular/forms';
|
|
|
5
5
|
import { NgControl } from '@angular/forms';
|
|
6
6
|
import { AbstractTuiNullableControl, tuiPure, tuiCreateToken, tuiProvideOptions, tuiAsFocusableItemAccessor, tuiAsControl } from '@taiga-ui/cdk';
|
|
7
7
|
import { TUI_CARD_MASK } from '@taiga-ui/addon-commerce/constants';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i2 from '@taiga-ui/core';
|
|
9
9
|
import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, AbstractTuiTextfieldHost, tuiAsTextfieldHost, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiSvgModule, TuiTextfieldComponent } from '@taiga-ui/core';
|
|
10
10
|
import { TUI_PAYMENT_SYSTEM_ICONS, tuiGetPaymentSystem } from '@taiga-ui/addon-commerce/utils';
|
|
11
|
-
import * as
|
|
12
|
-
import { TuiValueAccessorModule } from '@taiga-ui/kit';
|
|
13
|
-
import * as i3 from '@maskito/angular';
|
|
11
|
+
import * as i1$1 from '@maskito/angular';
|
|
14
12
|
import { MaskitoModule } from '@maskito/angular';
|
|
13
|
+
import * as i3 from '@taiga-ui/kit';
|
|
14
|
+
import { TuiValueAccessorModule } from '@taiga-ui/kit';
|
|
15
15
|
|
|
16
16
|
class AbstractTuiInputCard extends AbstractTuiNullableControl {
|
|
17
17
|
constructor(control, cdr, options) {
|
|
@@ -48,12 +48,12 @@ class AbstractTuiInputCard extends AbstractTuiNullableControl {
|
|
|
48
48
|
return this.options.paymentSystemHandler(cardNumber);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
AbstractTuiInputCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
AbstractTuiInputCard.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
51
|
+
AbstractTuiInputCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AbstractTuiInputCard, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
+
AbstractTuiInputCard.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AbstractTuiInputCard, inputs: { cardSrc: "cardSrc", autocompleteEnabled: "autocompleteEnabled" }, outputs: { binChange: "binChange" }, usesInheritance: true, ngImport: i0 });
|
|
53
53
|
__decorate([
|
|
54
54
|
tuiPure
|
|
55
55
|
], AbstractTuiInputCard.prototype, "getPaymentSystem", null);
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AbstractTuiInputCard, decorators: [{
|
|
57
57
|
type: Directive
|
|
58
58
|
}], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
|
|
59
59
|
type: Optional
|
|
@@ -97,12 +97,10 @@ class TuiInputCardComponent extends AbstractTuiInputCard {
|
|
|
97
97
|
return this.textfieldSize.size;
|
|
98
98
|
}
|
|
99
99
|
get card() {
|
|
100
|
-
|
|
101
|
-
return (_a = this.value) !== null && _a !== void 0 ? _a : '';
|
|
100
|
+
return this.value ?? '';
|
|
102
101
|
}
|
|
103
102
|
get nativeFocusableElement() {
|
|
104
|
-
|
|
105
|
-
return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
|
|
103
|
+
return this.input?.nativeFocusableElement ?? null;
|
|
106
104
|
}
|
|
107
105
|
get focused() {
|
|
108
106
|
return !!this.input && this.input.focused;
|
|
@@ -131,23 +129,17 @@ class TuiInputCardComponent extends AbstractTuiInputCard {
|
|
|
131
129
|
return '';
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
|
-
TuiInputCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
135
|
-
TuiInputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
132
|
+
TuiInputCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_INPUT_CARD_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
133
|
+
TuiInputCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCardComponent, selector: "tui-input-card", host: { properties: { "attr.data-size": "this.size" } }, providers: [
|
|
136
134
|
tuiAsFocusableItemAccessor(TuiInputCardComponent),
|
|
137
135
|
tuiAsControl(TuiInputCardComponent),
|
|
138
|
-
], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}.t-payment-system{width:2rem;height:2rem;color:#1434cb}\n"],
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
136
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}.t-payment-system{width:2rem;height:2rem;color:#1434cb}\n"], dependencies: [{ kind: "directive", type: i1$1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i2.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { kind: "directive", type: i3.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }, { kind: "component", type: i2.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { kind: "pipe", type: i1$1.MaskitoPipe, name: "maskito" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardComponent, decorators: [{
|
|
140
138
|
type: Component,
|
|
141
|
-
args: [{
|
|
142
|
-
selector: 'tui-input-card',
|
|
143
|
-
templateUrl: './input-card.template.html',
|
|
144
|
-
styleUrls: ['./input-card.style.less'],
|
|
145
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
146
|
-
providers: [
|
|
139
|
+
args: [{ selector: 'tui-input-card', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
147
140
|
tuiAsFocusableItemAccessor(TuiInputCardComponent),
|
|
148
141
|
tuiAsControl(TuiInputCardComponent),
|
|
149
|
-
],
|
|
150
|
-
}]
|
|
142
|
+
], template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}.t-payment-system{width:2rem;height:2rem;color:#1434cb}\n"] }]
|
|
151
143
|
}], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
|
|
152
144
|
type: Optional
|
|
153
145
|
}, {
|
|
@@ -158,7 +150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
158
150
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
159
151
|
type: Inject,
|
|
160
152
|
args: [ChangeDetectorRef]
|
|
161
|
-
}] }, { type:
|
|
153
|
+
}] }, { type: i2.TuiTextfieldSizeDirective, decorators: [{
|
|
162
154
|
type: Inject,
|
|
163
155
|
args: [TUI_TEXTFIELD_SIZE]
|
|
164
156
|
}] }, { type: undefined, decorators: [{
|
|
@@ -186,9 +178,9 @@ class TuiInputCardDirective extends AbstractTuiTextfieldHost {
|
|
|
186
178
|
nativeFocusableElement.placeholder || '0000 0000 0000 0000';
|
|
187
179
|
}
|
|
188
180
|
}
|
|
189
|
-
TuiInputCardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
190
|
-
TuiInputCardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
181
|
+
TuiInputCardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
182
|
+
TuiInputCardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCardDirective, selector: "tui-input-card", providers: [tuiAsTextfieldHost(TuiInputCardDirective)], usesInheritance: true, ngImport: i0 });
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardDirective, decorators: [{
|
|
192
184
|
type: Directive,
|
|
193
185
|
args: [{
|
|
194
186
|
selector: 'tui-input-card',
|
|
@@ -198,20 +190,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
198
190
|
|
|
199
191
|
class TuiInputCardModule {
|
|
200
192
|
}
|
|
201
|
-
TuiInputCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
202
|
-
TuiInputCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
193
|
+
TuiInputCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
194
|
+
TuiInputCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, declarations: [TuiInputCardComponent, TuiInputCardDirective], imports: [MaskitoModule,
|
|
203
195
|
TuiPrimitiveTextfieldModule,
|
|
204
196
|
TuiTextfieldControllerModule,
|
|
205
197
|
TuiValueAccessorModule,
|
|
206
198
|
TuiSvgModule], exports: [TuiInputCardComponent, TuiInputCardDirective, TuiTextfieldComponent] });
|
|
207
|
-
TuiInputCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
]] });
|
|
214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCardModule, decorators: [{
|
|
199
|
+
TuiInputCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, imports: [MaskitoModule,
|
|
200
|
+
TuiPrimitiveTextfieldModule,
|
|
201
|
+
TuiTextfieldControllerModule,
|
|
202
|
+
TuiValueAccessorModule,
|
|
203
|
+
TuiSvgModule] });
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCardModule, decorators: [{
|
|
215
205
|
type: NgModule,
|
|
216
206
|
args: [{
|
|
217
207
|
imports: [
|
|
@@ -231,4 +221,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
231
221
|
*/
|
|
232
222
|
|
|
233
223
|
export { AbstractTuiInputCard, TUI_INPUT_CARD_DEFAULT_OPTIONS, TUI_INPUT_CARD_OPTIONS, TuiInputCardComponent, TuiInputCardDirective, TuiInputCardModule, tuiInputCardOptionsProvider };
|
|
234
|
-
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-card.
|
|
224
|
+
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-components-input-card.mjs","sources":["../../../projects/addon-commerce/components/input-card/abstract-input-card.ts","../../../projects/addon-commerce/components/input-card/input-card.options.ts","../../../projects/addon-commerce/components/input-card/input-card.component.ts","../../../projects/addon-commerce/components/input-card/input-card.template.html","../../../projects/addon-commerce/components/input-card/input-card.directive.ts","../../../projects/addon-commerce/components/input-card/input-card.module.ts","../../../projects/addon-commerce/components/input-card/taiga-ui-addon-commerce-components-input-card.ts"],"sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n EventEmitter,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\nimport {\n AbstractTuiNullableControl,\n TuiAutofillFieldName,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCardOptions} from './input-card.options';\n\n@Directive()\nexport abstract class AbstractTuiInputCard<\n T,\n Options extends TuiInputCardOptions = TuiInputCardOptions,\n >\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @Input()\n cardSrc: PolymorpheusContent;\n\n @Input()\n autocompleteEnabled = this.options.autocompleteEnabled;\n\n @Output()\n readonly binChange = new EventEmitter<string | null>();\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n protected readonly options: Options,\n ) {\n super(control, cdr);\n }\n\n abstract get card(): string;\n\n abstract get nativeFocusableElement(): TuiNativeFocusableElement | null;\n\n get defaultIcon(): string | null {\n const paymentSystem = this.getPaymentSystem(this.card);\n\n return paymentSystem && this.options.icons[paymentSystem];\n }\n\n get paymentSystem(): TuiPaymentSystem | null {\n return this.getPaymentSystem(this.card);\n }\n\n /** @deprecated remove in 4.0 */\n get icon(): PolymorpheusContent {\n return this.cardSrc || this.defaultIcon;\n }\n\n get autocomplete(): TuiAutofillFieldName {\n return this.autocompleteEnabled ? `cc-number` : `off`;\n }\n\n /**\n * @deprecated: drop in v4.0\n * use {@link autocomplete}\n */\n get autocompleteCard(): TuiAutofillFieldName {\n return this.autocomplete;\n }\n\n get bin(): string | null {\n return this.card.length < 6 ? null : this.card.slice(0, 6);\n }\n\n @tuiPure\n protected getPaymentSystem(cardNumber?: string | null): TuiPaymentSystem | null {\n return this.options.paymentSystemHandler(cardNumber);\n }\n}\n","import {Provider} from '@angular/core';\nimport {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\nimport {\n TUI_PAYMENT_SYSTEM_ICONS,\n tuiGetPaymentSystem,\n} from '@taiga-ui/addon-commerce/utils';\nimport {tuiCreateToken, TuiHandler, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCardOptions {\n readonly autocompleteEnabled: boolean;\n cardSrc: PolymorpheusContent;\n readonly icons: Record<TuiPaymentSystem, string>;\n readonly paymentSystemHandler: TuiHandler<\n string | null | undefined,\n TuiPaymentSystem | null\n >;\n}\n\n// TODO: Move payment system icons into its own token in 4.0\nexport const TUI_INPUT_CARD_DEFAULT_OPTIONS: TuiInputCardOptions = {\n icons: TUI_PAYMENT_SYSTEM_ICONS,\n cardSrc: ``,\n paymentSystemHandler: tuiGetPaymentSystem,\n autocompleteEnabled: false,\n};\n\nexport const TUI_INPUT_CARD_OPTIONS = tuiCreateToken(TUI_INPUT_CARD_DEFAULT_OPTIONS);\n\nexport function tuiInputCardOptionsProvider(\n options: Partial<TuiInputCardOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_CARD_OPTIONS,\n options,\n TUI_INPUT_CARD_DEFAULT_OPTIONS,\n );\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {MaskitoOptions} from '@maskito/core';\nimport {TUI_CARD_MASK} from '@taiga-ui/addon-commerce/constants';\nimport {tuiAsControl, tuiAsFocusableItemAccessor} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\n\nimport {AbstractTuiInputCard} from './abstract-input-card';\nimport {TUI_INPUT_CARD_OPTIONS, TuiInputCardOptions} from './input-card.options';\n\n@Component({\n selector: 'tui-input-card',\n templateUrl: './input-card.template.html',\n styleUrls: ['./input-card.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCardComponent),\n tuiAsControl(TuiInputCardComponent),\n ],\n})\nexport class TuiInputCardComponent extends AbstractTuiInputCard<string> {\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly input?: TuiPrimitiveTextfieldComponent;\n\n readonly maskOptions: MaskitoOptions = {\n mask: TUI_CARD_MASK,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_INPUT_CARD_OPTIONS) options: TuiInputCardOptions,\n ) {\n super(control, cdr, options);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n get card(): string {\n return this.value ?? '';\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.input?.nativeFocusableElement ?? null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n onValueChange(value: string): void {\n const parsed = value.split(' ').join('');\n const currentBin = this.bin;\n\n this.value = parsed;\n\n const newBin = this.bin;\n\n if (currentBin !== newBin) {\n this.binChange.emit(newBin);\n }\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n override writeValue(value: string | null): void {\n const currentBin = this.bin;\n\n super.writeValue(value);\n\n const newBin = this.bin;\n\n if (currentBin !== newBin) {\n this.binChange.emit(newBin);\n }\n }\n\n protected override getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"cardSrc || (defaultIcon && logo)\"\n [value]=\"card | maskito: maskOptions\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-template #logo>\n <tui-svg\n class=\"t-payment-system\"\n [src]=\"defaultIcon\"\n ></tui-svg>\n</ng-template>\n","import {AfterViewInit, Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCardComponent} from './input-card.component';\n\n@Directive({\n selector: 'tui-input-card',\n providers: [tuiAsTextfieldHost(TuiInputCardDirective)],\n})\nexport class TuiInputCardDirective\n extends AbstractTuiTextfieldHost<TuiInputCardComponent>\n implements AfterViewInit\n{\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n ngAfterViewInit(): void {\n const {nativeFocusableElement} = this.host;\n\n if (!nativeFocusableElement) {\n return;\n }\n\n nativeFocusableElement.inputMode = 'numeric';\n nativeFocusableElement.placeholder =\n nativeFocusableElement.placeholder || '0000 0000 0000 0000';\n }\n}\n","import {NgModule} from '@angular/core';\nimport {MaskitoModule} from '@maskito/angular';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\n\nimport {TuiInputCardComponent} from './input-card.component';\nimport {TuiInputCardDirective} from './input-card.directive';\n\n@NgModule({\n imports: [\n MaskitoModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiSvgModule,\n ],\n declarations: [TuiInputCardComponent, TuiInputCardDirective],\n exports: [TuiInputCardComponent, TuiInputCardDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCardModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;AAwBM,MAAgB,oBAIlB,SAAQ,0BAA6B,CAAA;AAYrC,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAC9B,OAAgB,EAAA;AAEnC,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAFD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;AAXvC,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC;AAG9C,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAiB,CAAC;KAWtD;AAMD,IAAA,IAAI,WAAW,GAAA;QACX,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEvD,OAAO,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KAC7D;AAED,IAAA,IAAI,aAAa,GAAA;QACb,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC3C;;AAGD,IAAA,IAAI,IAAI,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC;KAC3C;AAED,IAAA,IAAI,YAAY,GAAA;QACZ,OAAO,IAAI,CAAC,mBAAmB,GAAG,CAAA,SAAA,CAAW,GAAG,CAAA,GAAA,CAAK,CAAC;KACzD;AAED;;;AAGG;AACH,IAAA,IAAI,gBAAgB,GAAA;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC;KAC5B;AAED,IAAA,IAAI,GAAG,GAAA;QACH,OAAO,IAAI,CAAC,IAAI,CAAC,MAA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;wBAC5B,sBAAsB;wBACtB,YAAY;AACf,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AACjF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -3,14 +3,20 @@ import { ChangeDetectorRef, Component, ChangeDetectionStrategy, Optional, Self,
|
|
|
3
3
|
import * as i4 from '@angular/forms';
|
|
4
4
|
import { NgControl } from '@angular/forms';
|
|
5
5
|
import { AbstractTuiControl, tuiAsFocusableItemAccessor, tuiAsControl } from '@taiga-ui/cdk';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i2 from '@taiga-ui/core';
|
|
7
7
|
import { TUI_DIGIT_REGEXP, TUI_TEXTFIELD_LABEL_OUTSIDE, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
|
|
8
|
-
import * as
|
|
9
|
-
import { TuiValueAccessorModule } from '@taiga-ui/kit';
|
|
10
|
-
import * as i3 from '@maskito/angular';
|
|
8
|
+
import * as i1 from '@maskito/angular';
|
|
11
9
|
import { MaskitoModule } from '@maskito/angular';
|
|
10
|
+
import * as i3 from '@taiga-ui/kit';
|
|
11
|
+
import { TuiValueAccessorModule } from '@taiga-ui/kit';
|
|
12
12
|
|
|
13
13
|
class TuiInputCVCComponent extends AbstractTuiControl {
|
|
14
|
+
set length(length) {
|
|
15
|
+
this.exampleText = '0'.repeat(length);
|
|
16
|
+
this.maskOptions = {
|
|
17
|
+
mask: new Array(length).fill(TUI_DIGIT_REGEXP),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
14
20
|
constructor(control, cdr, textfieldLabelOutside, textfieldSize) {
|
|
15
21
|
super(control, cdr);
|
|
16
22
|
this.textfieldLabelOutside = textfieldLabelOutside;
|
|
@@ -21,18 +27,11 @@ class TuiInputCVCComponent extends AbstractTuiControl {
|
|
|
21
27
|
mask: new Array(3).fill(TUI_DIGIT_REGEXP),
|
|
22
28
|
};
|
|
23
29
|
}
|
|
24
|
-
set length(length) {
|
|
25
|
-
this.exampleText = '0'.repeat(length);
|
|
26
|
-
this.maskOptions = {
|
|
27
|
-
mask: new Array(length).fill(TUI_DIGIT_REGEXP),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
30
|
get size() {
|
|
31
31
|
return this.textfieldSize.size;
|
|
32
32
|
}
|
|
33
33
|
get nativeFocusableElement() {
|
|
34
|
-
|
|
35
|
-
return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
|
|
34
|
+
return this.input?.nativeFocusableElement ?? null;
|
|
36
35
|
}
|
|
37
36
|
get focused() {
|
|
38
37
|
return !!this.input && this.input.focused;
|
|
@@ -54,23 +53,17 @@ class TuiInputCVCComponent extends AbstractTuiControl {
|
|
|
54
53
|
return '';
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
|
-
TuiInputCVCComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
TuiInputCVCComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
56
|
+
TuiInputCVCComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_LABEL_OUTSIDE }, { token: TUI_TEXTFIELD_SIZE }], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
TuiInputCVCComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputCVCComponent, selector: "tui-input-cvc", inputs: { autocompleteEnabled: "autocompleteEnabled", length: "length" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
|
|
59
58
|
tuiAsFocusableItemAccessor(TuiInputCVCComponent),
|
|
60
59
|
tuiAsControl(TuiInputCVCComponent),
|
|
61
|
-
], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"],
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "component", type: i2.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { kind: "directive", type: i3.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCComponent, decorators: [{
|
|
63
62
|
type: Component,
|
|
64
|
-
args: [{
|
|
65
|
-
selector: 'tui-input-cvc',
|
|
66
|
-
templateUrl: './input-cvc.template.html',
|
|
67
|
-
styleUrls: ['./input-cvc.style.less'],
|
|
68
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
-
providers: [
|
|
63
|
+
args: [{ selector: 'tui-input-cvc', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
70
64
|
tuiAsFocusableItemAccessor(TuiInputCVCComponent),
|
|
71
65
|
tuiAsControl(TuiInputCVCComponent),
|
|
72
|
-
],
|
|
73
|
-
}]
|
|
66
|
+
], template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"] }]
|
|
74
67
|
}], ctorParameters: function () { return [{ type: i4.NgControl, decorators: [{
|
|
75
68
|
type: Optional
|
|
76
69
|
}, {
|
|
@@ -81,10 +74,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
81
74
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
82
75
|
type: Inject,
|
|
83
76
|
args: [ChangeDetectorRef]
|
|
84
|
-
}] }, { type:
|
|
77
|
+
}] }, { type: i2.TuiTextfieldLabelOutsideDirective, decorators: [{
|
|
85
78
|
type: Inject,
|
|
86
79
|
args: [TUI_TEXTFIELD_LABEL_OUTSIDE]
|
|
87
|
-
}] }, { type:
|
|
80
|
+
}] }, { type: i2.TuiTextfieldSizeDirective, decorators: [{
|
|
88
81
|
type: Inject,
|
|
89
82
|
args: [TUI_TEXTFIELD_SIZE]
|
|
90
83
|
}] }]; }, propDecorators: { input: [{
|
|
@@ -101,18 +94,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
101
94
|
|
|
102
95
|
class TuiInputCVCModule {
|
|
103
96
|
}
|
|
104
|
-
TuiInputCVCModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
105
|
-
TuiInputCVCModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
97
|
+
TuiInputCVCModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
98
|
+
TuiInputCVCModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, declarations: [TuiInputCVCComponent], imports: [MaskitoModule,
|
|
106
99
|
TuiPrimitiveTextfieldModule,
|
|
107
100
|
TuiTextfieldControllerModule,
|
|
108
101
|
TuiValueAccessorModule], exports: [TuiInputCVCComponent] });
|
|
109
|
-
TuiInputCVCModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
]] });
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCVCModule, decorators: [{
|
|
102
|
+
TuiInputCVCModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, imports: [MaskitoModule,
|
|
103
|
+
TuiPrimitiveTextfieldModule,
|
|
104
|
+
TuiTextfieldControllerModule,
|
|
105
|
+
TuiValueAccessorModule] });
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputCVCModule, decorators: [{
|
|
116
107
|
type: NgModule,
|
|
117
108
|
args: [{
|
|
118
109
|
imports: [
|
|
@@ -131,4 +122,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
131
122
|
*/
|
|
132
123
|
|
|
133
124
|
export { TuiInputCVCComponent, TuiInputCVCModule };
|
|
134
|
-
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-cvc.
|
|
125
|
+
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-cvc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-components-input-cvc.mjs","sources":["../../../projects/addon-commerce/components/input-cvc/input-cvc.component.ts","../../../projects/addon-commerce/components/input-cvc/input-cvc.template.html","../../../projects/addon-commerce/components/input-cvc/input-cvc.module.ts","../../../projects/addon-commerce/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {MaskitoOptions} from '@maskito/core';\nimport {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiAutofillFieldName,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DIGIT_REGEXP,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-input-cvc',\n templateUrl: './input-cvc.template.html',\n styleUrls: ['./input-cvc.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCVCComponent),\n tuiAsControl(TuiInputCVCComponent),\n ],\n})\nexport class TuiInputCVCComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly input?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n autocompleteEnabled = false;\n\n @Input()\n set length(length: TuiCodeCVCLength) {\n this.exampleText = '0'.repeat(length);\n this.maskOptions = {\n mask: new Array(length).fill(TUI_DIGIT_REGEXP),\n };\n }\n\n exampleText = '000';\n\n maskOptions: MaskitoOptions = {\n mask: new Array(3).fill(TUI_DIGIT_REGEXP),\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_LABEL_OUTSIDE)\n private readonly textfieldLabelOutside: TuiTextfieldLabelOutsideDirective,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.input?.nativeFocusableElement ?? null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n get autocomplete(): TuiAutofillFieldName {\n return this.autocompleteEnabled ? 'cc-csc' : 'off';\n }\n\n get computedPlaceholder(): string {\n return this.textfieldLabelOutside.labelOutside ? '' : this.exampleText;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /** deprecated use 'value' setter */\n onValueChange(value: string): void {\n this.value = value;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (copy.prevent)=\"(0)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <input\n inputmode=\"numeric\"\n tuiTextfield\n [autocomplete]=\"autocomplete\"\n [placeholder]=\"computedPlaceholder\"\n />\n</tui-primitive-textfield>\n","import {NgModule} from '@angular/core';\nimport {MaskitoModule} from '@maskito/angular';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\n\nimport {TuiInputCVCComponent} from './input-cvc.component';\n\n@NgModule({\n imports: [\n MaskitoModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputCVCComponent],\n exports: [TuiInputCVCComponent],\n})\nexport class TuiInputCVCModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA2CM,MAAO,oBACT,SAAQ,kBAA0B,CAAA;IASlC,IACI,MAAM,CAAC,MAAwB,EAAA;QAC/B,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG;YACf,IAAI,EAAE,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACjD,CAAC;KACL;AAQD,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAEhC,qBAAwD,EAExD,aAAwC,EAAA;AAEzD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAJH,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAmC;QAExD,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;QAzB7D,IAAmB,CAAA,mBAAA,GAAG,KAAK,CAAC;QAU5B,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AAEpB,QAAA,IAAA,CAAA,WAAW,GAAmB;YAC1B,IAAI,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;SAC5C,CAAC;KAcD;AAED,IAAA,IACI,IAAI,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;KAClC;AAED,IAAA,IAAI,sBAAsB,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,KAAK,EAAE,sBAAsB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A,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,aAAa;wBACb,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;AACzB,qBAAA;oBACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -4,12 +4,12 @@ import * as i4 from '@angular/forms';
|
|
|
4
4
|
import { NgControl } from '@angular/forms';
|
|
5
5
|
import { maskitoDateOptionsGenerator } from '@maskito/kit';
|
|
6
6
|
import { AbstractTuiControl, tuiAsFocusableItemAccessor, tuiAsControl } from '@taiga-ui/cdk';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i2 from '@taiga-ui/core';
|
|
8
8
|
import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
|
|
9
|
-
import * as
|
|
10
|
-
import { TuiValueAccessorModule } from '@taiga-ui/kit';
|
|
11
|
-
import * as i3 from '@maskito/angular';
|
|
9
|
+
import * as i1 from '@maskito/angular';
|
|
12
10
|
import { MaskitoModule } from '@maskito/angular';
|
|
11
|
+
import * as i3 from '@taiga-ui/kit';
|
|
12
|
+
import { TuiValueAccessorModule } from '@taiga-ui/kit';
|
|
13
13
|
|
|
14
14
|
class TuiInputExpireComponent extends AbstractTuiControl {
|
|
15
15
|
constructor(control, cdr, textfieldSize) {
|
|
@@ -25,8 +25,7 @@ class TuiInputExpireComponent extends AbstractTuiControl {
|
|
|
25
25
|
return this.textfieldSize.size;
|
|
26
26
|
}
|
|
27
27
|
get nativeFocusableElement() {
|
|
28
|
-
|
|
29
|
-
return (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) !== null && _b !== void 0 ? _b : null;
|
|
28
|
+
return this.input?.nativeFocusableElement ?? null;
|
|
30
29
|
}
|
|
31
30
|
get focused() {
|
|
32
31
|
return !!this.input && this.input.focused;
|
|
@@ -41,23 +40,17 @@ class TuiInputExpireComponent extends AbstractTuiControl {
|
|
|
41
40
|
return '';
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
|
-
TuiInputExpireComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
45
|
-
TuiInputExpireComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
43
|
+
TuiInputExpireComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
+
TuiInputExpireComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TuiInputExpireComponent, selector: "tui-input-expire", inputs: { autocompleteEnabled: "autocompleteEnabled" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
|
|
46
45
|
tuiAsFocusableItemAccessor(TuiInputExpireComponent),
|
|
47
46
|
tuiAsControl(TuiInputExpireComponent),
|
|
48
|
-
], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"],
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
47
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "component", type: i2.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { kind: "directive", type: i3.TuiValueAccessorDirective, selector: "[tuiValueAccessor]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireComponent, decorators: [{
|
|
50
49
|
type: Component,
|
|
51
|
-
args: [{
|
|
52
|
-
selector: 'tui-input-expire',
|
|
53
|
-
templateUrl: './input-expire.template.html',
|
|
54
|
-
styleUrls: ['./input-expire.style.less'],
|
|
55
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
56
|
-
providers: [
|
|
50
|
+
args: [{ selector: 'tui-input-expire', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
57
51
|
tuiAsFocusableItemAccessor(TuiInputExpireComponent),
|
|
58
52
|
tuiAsControl(TuiInputExpireComponent),
|
|
59
|
-
],
|
|
60
|
-
}]
|
|
53
|
+
], template: "<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n", styles: [":host{display:block;max-width:11rem;border-radius:var(--tui-radius-m);text-align:left}.t-input{border-radius:inherit;text-align:inherit}\n"] }]
|
|
61
54
|
}], ctorParameters: function () { return [{ type: i4.NgControl, decorators: [{
|
|
62
55
|
type: Optional
|
|
63
56
|
}, {
|
|
@@ -68,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
68
61
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
69
62
|
type: Inject,
|
|
70
63
|
args: [ChangeDetectorRef]
|
|
71
|
-
}] }, { type:
|
|
64
|
+
}] }, { type: i2.TuiTextfieldSizeDirective, decorators: [{
|
|
72
65
|
type: Inject,
|
|
73
66
|
args: [TUI_TEXTFIELD_SIZE]
|
|
74
67
|
}] }]; }, propDecorators: { input: [{
|
|
@@ -83,18 +76,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
83
76
|
|
|
84
77
|
class TuiInputExpireModule {
|
|
85
78
|
}
|
|
86
|
-
TuiInputExpireModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
TuiInputExpireModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
79
|
+
TuiInputExpireModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
80
|
+
TuiInputExpireModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, declarations: [TuiInputExpireComponent], imports: [MaskitoModule,
|
|
88
81
|
TuiPrimitiveTextfieldModule,
|
|
89
82
|
TuiTextfieldControllerModule,
|
|
90
83
|
TuiValueAccessorModule], exports: [TuiInputExpireComponent] });
|
|
91
|
-
TuiInputExpireModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
]] });
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputExpireModule, decorators: [{
|
|
84
|
+
TuiInputExpireModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, imports: [MaskitoModule,
|
|
85
|
+
TuiPrimitiveTextfieldModule,
|
|
86
|
+
TuiTextfieldControllerModule,
|
|
87
|
+
TuiValueAccessorModule] });
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TuiInputExpireModule, decorators: [{
|
|
98
89
|
type: NgModule,
|
|
99
90
|
args: [{
|
|
100
91
|
imports: [
|
|
@@ -113,4 +104,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
113
104
|
*/
|
|
114
105
|
|
|
115
106
|
export { TuiInputExpireComponent, TuiInputExpireModule };
|
|
116
|
-
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-expire.
|
|
107
|
+
//# sourceMappingURL=taiga-ui-addon-commerce-components-input-expire.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-components-input-expire.mjs","sources":["../../../projects/addon-commerce/components/input-expire/input-expire.component.ts","../../../projects/addon-commerce/components/input-expire/input-expire.template.html","../../../projects/addon-commerce/components/input-expire/input-expire.module.ts","../../../projects/addon-commerce/components/input-expire/taiga-ui-addon-commerce-components-input-expire.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiAutofillFieldName,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-input-expire',\n templateUrl: './input-expire.template.html',\n styleUrls: ['./input-expire.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputExpireComponent),\n tuiAsControl(TuiInputExpireComponent),\n ],\n})\nexport class TuiInputExpireComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly input?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n autocompleteEnabled = false;\n\n readonly maskOptions = maskitoDateOptionsGenerator({\n mode: 'mm/yy',\n separator: '/',\n });\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.input?.nativeFocusableElement ?? null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n get autocomplete(): TuiAutofillFieldName {\n return this.autocompleteEnabled ? 'cc-exp' : 'off';\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n tuiValueAccessor\n class=\"t-input\"\n [disabled]=\"disabled\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskOptions\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <input\n inputmode=\"numeric\"\n placeholder=\"00/00\"\n translate=\"no\"\n tuiTextfield\n type=\"\"\n [attr.autocomplete]=\"autocomplete\"\n />\n <ng-content></ng-content>\n</tui-primitive-textfield>\n","import {NgModule} from '@angular/core';\nimport {MaskitoModule} from '@maskito/angular';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\n\nimport {TuiInputExpireComponent} from './input-expire.component';\n\n@NgModule({\n imports: [\n MaskitoModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputExpireComponent],\n exports: [TuiInputExpireComponent],\n})\nexport class TuiInputExpireModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAsCM,MAAO,uBACT,SAAQ,kBAA0B,CAAA;AAclC,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAEhC,aAAwC,EAAA;AAEzD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAFH,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;QAd7D,IAAmB,CAAA,mBAAA,GAAG,KAAK,CAAC;QAEnB,IAAW,CAAA,WAAA,GAAG,2BAA2B,CAAC;AAC/C,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,SAAS,EAAE,GAAG;AACjB,SAAA,CAAC,CAAC;KAYF;AAED,IAAA,IACI,IAAI,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;KAClC;AAED,IAAA,IAAI,sBAAsB,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,KAAK,EAAE,sBAAsB,IAAI,IAAI,CAAC;KACrD;AAED,IAAA,IAAI,OAAO,GAAA;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;KAC7C;AAED,IAAA,IAAI,YAAY,GAAA;QACZ,OAAO,IAAI,CAAC,mBAAmB,GAAG,QAAQ,GAAG,KAAK,CAAC;KACtD;AAED,IAAA,SAAS,CAAC,OAAgB,EAAA;AACtB,QAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAES,gBAAgB,GAAA;AACtB,QAAA,OAAO,EAAE,CAAC;KACb;;AAlDQ,uBAAA,CAAA,I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