@taiga-ui/addon-commerce 2.43.0 → 2.46.0
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-input-card-grouped.umd.js +16 -25
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.min.js +2 -2
- package/bundles/taiga-ui-addon-commerce-components-input-card-grouped.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-card.umd.min.js.map +1 -1
- package/bundles/{taiga-ui-addon-commerce-components-input-CVC.umd.js → taiga-ui-addon-commerce-components-input-cvc.umd.js} +3 -3
- package/bundles/taiga-ui-addon-commerce-components-input-cvc.umd.js.map +1 -0
- package/bundles/{taiga-ui-addon-commerce-components-input-CVC.umd.min.js → taiga-ui-addon-commerce-components-input-cvc.umd.min.js} +2 -2
- package/bundles/{taiga-ui-addon-commerce-components-input-CVC.umd.min.js.map → taiga-ui-addon-commerce-components-input-cvc.umd.min.js.map} +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js +4 -4
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-expire.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-components.umd.js +6 -6
- package/bundles/taiga-ui-addon-commerce-components.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js +33 -0
- package/bundles/taiga-ui-addon-commerce-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-commerce-pipes.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.js +5 -5
- package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.min.js.map +1 -1
- package/components/index.d.ts +1 -1
- package/components/input-card-grouped/input-card-grouped.component.d.ts +0 -1
- package/components/input-card-grouped/taiga-ui-addon-commerce-components-input-card-grouped.metadata.json +1 -1
- package/components/input-cvc/index.d.ts +2 -0
- package/components/{input-CVC/input-CVC.component.d.ts → input-cvc/input-cvc.component.d.ts} +0 -0
- package/components/{input-CVC/input-CVC.module.d.ts → input-cvc/input-cvc.module.d.ts} +0 -0
- package/components/input-cvc/package.json +13 -0
- package/components/{input-CVC/taiga-ui-addon-commerce-components-input-CVC.d.ts → input-cvc/taiga-ui-addon-commerce-components-input-cvc.d.ts} +0 -0
- package/components/{input-CVC/taiga-ui-addon-commerce-components-input-CVC.metadata.json → input-cvc/taiga-ui-addon-commerce-components-input-cvc.metadata.json} +1 -1
- package/components/taiga-ui-addon-commerce-components.metadata.json +1 -1
- package/esm2015/components/index.js +2 -2
- package/esm2015/components/input-card/input-card.component.js +2 -2
- package/esm2015/components/input-card-grouped/input-card-grouped.component.js +11 -18
- package/esm2015/components/input-card-grouped/input-card-grouped.module.js +5 -2
- package/esm2015/components/input-cvc/index.js +3 -0
- package/esm2015/components/{input-CVC/input-CVC.component.js → input-cvc/input-cvc.component.js} +1 -1
- package/esm2015/components/{input-CVC/input-CVC.module.js → input-cvc/input-cvc.module.js} +2 -2
- package/esm2015/components/{input-CVC/taiga-ui-addon-commerce-components-input-CVC.js → input-cvc/taiga-ui-addon-commerce-components-input-cvc.js} +1 -1
- package/esm2015/components/input-expire/input-expire.component.js +5 -5
- package/esm2015/pipes/currency/currency.module.js +13 -0
- package/esm2015/pipes/currency/currency.pipe.js +15 -0
- package/esm2015/pipes/format-card/format-card.module.js +13 -0
- package/esm2015/pipes/format-card/format-card.pipe.js +17 -0
- package/esm2015/pipes/index.js +5 -3
- package/esm2015/utils/create-auto-corrected-expire-pipe.js +3 -3
- package/esm2015/utils/get-payment-system.js +4 -4
- package/esm5/components/index.js +2 -2
- package/esm5/components/input-card/input-card.component.js +2 -2
- package/esm5/components/input-card-grouped/input-card-grouped.component.js +11 -22
- package/esm5/components/input-card-grouped/input-card-grouped.module.js +5 -2
- package/esm5/components/input-cvc/index.js +3 -0
- package/esm5/components/{input-CVC/input-CVC.component.js → input-cvc/input-cvc.component.js} +1 -1
- package/esm5/components/{input-CVC/input-CVC.module.js → input-cvc/input-cvc.module.js} +2 -2
- package/esm5/components/{input-CVC/taiga-ui-addon-commerce-components-input-CVC.js → input-cvc/taiga-ui-addon-commerce-components-input-cvc.js} +1 -1
- package/esm5/components/input-expire/input-expire.component.js +5 -5
- package/esm5/pipes/currency/currency.module.js +16 -0
- package/esm5/pipes/currency/currency.pipe.js +18 -0
- package/esm5/pipes/format-card/format-card.module.js +16 -0
- package/esm5/pipes/format-card/format-card.pipe.js +22 -0
- package/esm5/pipes/index.js +5 -3
- package/esm5/utils/create-auto-corrected-expire-pipe.js +3 -3
- package/esm5/utils/get-payment-system.js +4 -4
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js +14 -18
- package/fesm2015/taiga-ui-addon-commerce-components-input-card-grouped.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.js +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-card.js.map +1 -1
- package/fesm2015/{taiga-ui-addon-commerce-components-input-CVC.js → taiga-ui-addon-commerce-components-input-cvc.js} +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components-input-cvc.js.map +1 -0
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js +4 -4
- package/fesm2015/taiga-ui-addon-commerce-components-input-expire.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-components.js +1 -1
- package/fesm2015/taiga-ui-addon-commerce-pipes.js +24 -1
- package/fesm2015/taiga-ui-addon-commerce-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-utils.js +5 -5
- package/fesm2015/taiga-ui-addon-commerce-utils.js.map +1 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-card-grouped.js +14 -22
- package/fesm5/taiga-ui-addon-commerce-components-input-card-grouped.js.map +1 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-card.js +1 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-card.js.map +1 -1
- package/fesm5/{taiga-ui-addon-commerce-components-input-CVC.js → taiga-ui-addon-commerce-components-input-cvc.js} +1 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-cvc.js.map +1 -0
- package/fesm5/taiga-ui-addon-commerce-components-input-expire.js +4 -4
- package/fesm5/taiga-ui-addon-commerce-components-input-expire.js.map +1 -1
- package/fesm5/taiga-ui-addon-commerce-components.js +1 -1
- package/fesm5/taiga-ui-addon-commerce-pipes.js +32 -1
- package/fesm5/taiga-ui-addon-commerce-pipes.js.map +1 -1
- package/fesm5/taiga-ui-addon-commerce-utils.js +5 -5
- package/fesm5/taiga-ui-addon-commerce-utils.js.map +1 -1
- package/package.json +4 -4
- package/pipes/{currency.module.d.ts → currency/currency.module.d.ts} +0 -0
- package/pipes/{currency.pipe.d.ts → currency/currency.pipe.d.ts} +0 -0
- package/pipes/format-card/format-card.module.d.ts +2 -0
- package/pipes/format-card/format-card.pipe.d.ts +4 -0
- package/pipes/index.d.ts +4 -2
- package/pipes/taiga-ui-addon-commerce-pipes.metadata.json +1 -1
- package/bundles/taiga-ui-addon-commerce-components-input-CVC.umd.js.map +0 -1
- package/components/input-CVC/index.d.ts +0 -2
- package/components/input-CVC/package.json +0 -13
- package/esm2015/components/input-CVC/index.js +0 -3
- package/esm2015/pipes/currency.module.js +0 -13
- package/esm2015/pipes/currency.pipe.js +0 -15
- package/esm5/components/input-CVC/index.js +0 -3
- package/esm5/pipes/currency.module.js +0 -16
- package/esm5/pipes/currency.pipe.js +0 -18
- package/fesm2015/taiga-ui-addon-commerce-components-input-CVC.js.map +0 -1
- package/fesm5/taiga-ui-addon-commerce-components-input-CVC.js.map +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../../bundles/taiga-ui-addon-commerce-components-input-CVC.umd.js",
|
|
3
|
-
"module": "../../fesm5/taiga-ui-addon-commerce-components-input-CVC.js",
|
|
4
|
-
"es2015": "../../fesm2015/taiga-ui-addon-commerce-components-input-CVC.js",
|
|
5
|
-
"esm5": "../../esm5/components/input-CVC/taiga-ui-addon-commerce-components-input-CVC.js",
|
|
6
|
-
"esm2015": "../../esm2015/components/input-CVC/taiga-ui-addon-commerce-components-input-CVC.js",
|
|
7
|
-
"fesm5": "../../fesm5/taiga-ui-addon-commerce-components-input-CVC.js",
|
|
8
|
-
"fesm2015": "../../fesm2015/taiga-ui-addon-commerce-components-input-CVC.js",
|
|
9
|
-
"typings": "taiga-ui-addon-commerce-components-input-CVC.d.ts",
|
|
10
|
-
"metadata": "taiga-ui-addon-commerce-components-input-CVC.metadata.json",
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"name": "@taiga-ui/addon-commerce/components/input-CVC"
|
|
13
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './input-CVC.component';
|
|
2
|
-
export * from './input-CVC.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkvYWRkb24tY29tbWVyY2UvY29tcG9uZW50cy9pbnB1dC1DVkMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2lucHV0LUNWQy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnB1dC1DVkMubW9kdWxlJztcbiJdfQ==
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { TuiCurrencyPipe } from './currency.pipe';
|
|
4
|
-
let TuiCurrencyPipeModule = class TuiCurrencyPipeModule {
|
|
5
|
-
};
|
|
6
|
-
TuiCurrencyPipeModule = __decorate([
|
|
7
|
-
NgModule({
|
|
8
|
-
declarations: [TuiCurrencyPipe],
|
|
9
|
-
exports: [TuiCurrencyPipe],
|
|
10
|
-
})
|
|
11
|
-
], TuiCurrencyPipeModule);
|
|
12
|
-
export { TuiCurrencyPipeModule };
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRhaWdhLXVpL2FkZG9uLWNvbW1lcmNlL3BpcGVzLyIsInNvdXJjZXMiOlsiY3VycmVuY3kubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQU1oRCxJQUFhLHFCQUFxQixHQUFsQyxNQUFhLHFCQUFxQjtDQUFHLENBQUE7QUFBeEIscUJBQXFCO0lBSmpDLFFBQVEsQ0FBQztRQUNOLFlBQVksRUFBRSxDQUFDLGVBQWUsQ0FBQztRQUMvQixPQUFPLEVBQUUsQ0FBQyxlQUFlLENBQUM7S0FDN0IsQ0FBQztHQUNXLHFCQUFxQixDQUFHO1NBQXhCLHFCQUFxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge1R1aUN1cnJlbmN5UGlwZX0gZnJvbSAnLi9jdXJyZW5jeS5waXBlJztcblxuQE5nTW9kdWxlKHtcbiAgICBkZWNsYXJhdGlvbnM6IFtUdWlDdXJyZW5jeVBpcGVdLFxuICAgIGV4cG9ydHM6IFtUdWlDdXJyZW5jeVBpcGVdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlDdXJyZW5jeVBpcGVNb2R1bGUge31cbiJdfQ==
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { formatCurrency } from '@taiga-ui/addon-commerce/utils';
|
|
4
|
-
let TuiCurrencyPipe = class TuiCurrencyPipe {
|
|
5
|
-
transform(currency) {
|
|
6
|
-
return formatCurrency(currency);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
TuiCurrencyPipe = __decorate([
|
|
10
|
-
Pipe({
|
|
11
|
-
name: 'tuiCurrency',
|
|
12
|
-
})
|
|
13
|
-
], TuiCurrencyPipe);
|
|
14
|
-
export { TuiCurrencyPipe };
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9hZGRvbi1jb21tZXJjZS9waXBlcy8iLCJzb3VyY2VzIjpbImN1cnJlbmN5LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQWdCLE1BQU0sZUFBZSxDQUFDO0FBRWxELE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxnQ0FBZ0MsQ0FBQztBQUs5RCxJQUFhLGVBQWUsR0FBNUIsTUFBYSxlQUFlO0lBQ3hCLFNBQVMsQ0FBQyxRQUE2QjtRQUNuQyxPQUFPLGNBQWMsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNwQyxDQUFDO0NBQ0osQ0FBQTtBQUpZLGVBQWU7SUFIM0IsSUFBSSxDQUFDO1FBQ0YsSUFBSSxFQUFFLGFBQWE7S0FDdEIsQ0FBQztHQUNXLGVBQWUsQ0FJM0I7U0FKWSxlQUFlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtQaXBlLCBQaXBlVHJhbnNmb3JtfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7VHVpQ3VycmVuY3lWYXJpYW50c30gZnJvbSAnQHRhaWdhLXVpL2FkZG9uLWNvbW1lcmNlL3R5cGVzJztcbmltcG9ydCB7Zm9ybWF0Q3VycmVuY3l9IGZyb20gJ0B0YWlnYS11aS9hZGRvbi1jb21tZXJjZS91dGlscyc7XG5cbkBQaXBlKHtcbiAgICBuYW1lOiAndHVpQ3VycmVuY3knLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlDdXJyZW5jeVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgICB0cmFuc2Zvcm0oY3VycmVuY3k6IFR1aUN1cnJlbmN5VmFyaWFudHMpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gZm9ybWF0Q3VycmVuY3koY3VycmVuY3kpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './input-CVC.component';
|
|
2
|
-
export * from './input-CVC.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkvYWRkb24tY29tbWVyY2UvY29tcG9uZW50cy9pbnB1dC1DVkMvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2lucHV0LUNWQy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnB1dC1DVkMubW9kdWxlJztcbiJdfQ==
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { TuiCurrencyPipe } from './currency.pipe';
|
|
4
|
-
var TuiCurrencyPipeModule = /** @class */ (function () {
|
|
5
|
-
function TuiCurrencyPipeModule() {
|
|
6
|
-
}
|
|
7
|
-
TuiCurrencyPipeModule = __decorate([
|
|
8
|
-
NgModule({
|
|
9
|
-
declarations: [TuiCurrencyPipe],
|
|
10
|
-
exports: [TuiCurrencyPipe],
|
|
11
|
-
})
|
|
12
|
-
], TuiCurrencyPipeModule);
|
|
13
|
-
return TuiCurrencyPipeModule;
|
|
14
|
-
}());
|
|
15
|
-
export { TuiCurrencyPipeModule };
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRhaWdhLXVpL2FkZG9uLWNvbW1lcmNlL3BpcGVzLyIsInNvdXJjZXMiOlsiY3VycmVuY3kubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQU1oRDtJQUFBO0lBQW9DLENBQUM7SUFBeEIscUJBQXFCO1FBSmpDLFFBQVEsQ0FBQztZQUNOLFlBQVksRUFBRSxDQUFDLGVBQWUsQ0FBQztZQUMvQixPQUFPLEVBQUUsQ0FBQyxlQUFlLENBQUM7U0FDN0IsQ0FBQztPQUNXLHFCQUFxQixDQUFHO0lBQUQsNEJBQUM7Q0FBQSxBQUFyQyxJQUFxQztTQUF4QixxQkFBcUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHtUdWlDdXJyZW5jeVBpcGV9IGZyb20gJy4vY3VycmVuY3kucGlwZSc7XG5cbkBOZ01vZHVsZSh7XG4gICAgZGVjbGFyYXRpb25zOiBbVHVpQ3VycmVuY3lQaXBlXSxcbiAgICBleHBvcnRzOiBbVHVpQ3VycmVuY3lQaXBlXSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpQ3VycmVuY3lQaXBlTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { formatCurrency } from '@taiga-ui/addon-commerce/utils';
|
|
4
|
-
var TuiCurrencyPipe = /** @class */ (function () {
|
|
5
|
-
function TuiCurrencyPipe() {
|
|
6
|
-
}
|
|
7
|
-
TuiCurrencyPipe.prototype.transform = function (currency) {
|
|
8
|
-
return formatCurrency(currency);
|
|
9
|
-
};
|
|
10
|
-
TuiCurrencyPipe = __decorate([
|
|
11
|
-
Pipe({
|
|
12
|
-
name: 'tuiCurrency',
|
|
13
|
-
})
|
|
14
|
-
], TuiCurrencyPipe);
|
|
15
|
-
return TuiCurrencyPipe;
|
|
16
|
-
}());
|
|
17
|
-
export { TuiCurrencyPipe };
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kucGlwZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9hZGRvbi1jb21tZXJjZS9waXBlcy8iLCJzb3VyY2VzIjpbImN1cnJlbmN5LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQWdCLE1BQU0sZUFBZSxDQUFDO0FBRWxELE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxnQ0FBZ0MsQ0FBQztBQUs5RDtJQUFBO0lBSUEsQ0FBQztJQUhHLG1DQUFTLEdBQVQsVUFBVSxRQUE2QjtRQUNuQyxPQUFPLGNBQWMsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNwQyxDQUFDO0lBSFEsZUFBZTtRQUgzQixJQUFJLENBQUM7WUFDRixJQUFJLEVBQUUsYUFBYTtTQUN0QixDQUFDO09BQ1csZUFBZSxDQUkzQjtJQUFELHNCQUFDO0NBQUEsQUFKRCxJQUlDO1NBSlksZUFBZSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7UGlwZSwgUGlwZVRyYW5zZm9ybX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge1R1aUN1cnJlbmN5VmFyaWFudHN9IGZyb20gJ0B0YWlnYS11aS9hZGRvbi1jb21tZXJjZS90eXBlcyc7XG5pbXBvcnQge2Zvcm1hdEN1cnJlbmN5fSBmcm9tICdAdGFpZ2EtdWkvYWRkb24tY29tbWVyY2UvdXRpbHMnO1xuXG5AUGlwZSh7XG4gICAgbmFtZTogJ3R1aUN1cnJlbmN5Jyxcbn0pXG5leHBvcnQgY2xhc3MgVHVpQ3VycmVuY3lQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gICAgdHJhbnNmb3JtKGN1cnJlbmN5OiBUdWlDdXJyZW5jeVZhcmlhbnRzKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIGZvcm1hdEN1cnJlbmN5KGN1cnJlbmN5KTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-components-input-CVC.js","sources":["ng://@taiga-ui/addon-commerce/components/input-CVC/input-CVC.component.ts","ng://@taiga-ui/addon-commerce/components/input-CVC/input-CVC.module.ts","ng://@taiga-ui/addon-commerce/components/input-CVC/taiga-ui-addon-commerce-components-input-CVC.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types';\nimport {\n AbstractTuiControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiCreditCardAutofillName,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DIGIT_REGEXP,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldLabelOutsideDirective,\n} from '@taiga-ui/core';\nimport {TextMaskConfig} from 'angular2-text-mask';\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 {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputCVCComponent),\n },\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 @tuiDefaultProp()\n autocompleteEnabled = false;\n\n @Input()\n @tuiRequiredSetter()\n set length(length: TuiCodeCVCLength) {\n this.exampleText = '0'.repeat(length);\n this.textMaskOptions = {\n mask: new Array(length).fill(TUI_DIGIT_REGEXP),\n guide: false,\n };\n }\n\n exampleText = '000';\n\n textMaskOptions: TextMaskConfig = {\n mask: new Array(3).fill(TUI_DIGIT_REGEXP),\n guide: false,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_LABEL_OUTSIDE)\n private readonly textfieldLabelOutside: TuiTextfieldLabelOutsideDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.input ? this.input.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n get autocomplete(): TuiCreditCardAutofillName {\n return this.autocompleteEnabled\n ? TuiCreditCardAutofillName.CcCsc\n : TuiCreditCardAutofillName.Off;\n }\n\n get computedExampleText(): string {\n return this.textfieldLabelOutside.labelOutside ? '' : this.exampleText;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onCopy() {}\n\n onValueChange(value: string) {\n this.updateValue(value);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {NgModule} from '@angular/core';\nimport {\n TuiHintControllerModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputCVCComponent} from './input-CVC.component';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiHintControllerModule,\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":";;;;;;;;;IA0Ca,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,kBAA0B;IA2BlC,YAII,OAAyB,EACE,iBAAoC,EAE9C,qBAAwD;QAEzE,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;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QAAQ,YACR,IAAI,YACJ,MAAM,SAAC,SAAS;YAE6B,iBAAiB,uBAA9D,MAAM,SAAC,iBAAiB;YAEe,iCAAiC,uBADxE,MAAM,SAAC,2BAA2B;;AA7BvC;IADC,SAAS,CAAC,8BAA8B,CAAC;mDACc;AAIxD;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iEACW;AAI5B;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;kDAOnB;AAnBQ,oBAAoB;IAZhC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QACzB,4tBAAwC;QAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAoB,CAAC;aACtD;SACJ;;KACJ,CAAC;IA8BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAlC/B,oBAAoB,CA2EhC;;IC/FY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAX7B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,cAAc;YACd,2BAA2B;YAC3B,4BAA4B;YAC5B,uBAAuB;YACvB,sBAAsB;SACzB;QACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACtBjC;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-components-input-CVC.js","sources":["ng://@taiga-ui/addon-commerce/components/input-CVC/input-CVC.component.ts","ng://@taiga-ui/addon-commerce/components/input-CVC/input-CVC.module.ts","ng://@taiga-ui/addon-commerce/components/input-CVC/taiga-ui-addon-commerce-components-input-CVC.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types';\nimport {\n AbstractTuiControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiCreditCardAutofillName,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DIGIT_REGEXP,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldLabelOutsideDirective,\n} from '@taiga-ui/core';\nimport {TextMaskConfig} from 'angular2-text-mask';\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 {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputCVCComponent),\n },\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 @tuiDefaultProp()\n autocompleteEnabled = false;\n\n @Input()\n @tuiRequiredSetter()\n set length(length: TuiCodeCVCLength) {\n this.exampleText = '0'.repeat(length);\n this.textMaskOptions = {\n mask: new Array(length).fill(TUI_DIGIT_REGEXP),\n guide: false,\n };\n }\n\n exampleText = '000';\n\n textMaskOptions: TextMaskConfig = {\n mask: new Array(3).fill(TUI_DIGIT_REGEXP),\n guide: false,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_LABEL_OUTSIDE)\n private readonly textfieldLabelOutside: TuiTextfieldLabelOutsideDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.input ? this.input.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.input && this.input.focused;\n }\n\n get autocomplete(): TuiCreditCardAutofillName {\n return this.autocompleteEnabled\n ? TuiCreditCardAutofillName.CcCsc\n : TuiCreditCardAutofillName.Off;\n }\n\n get computedExampleText(): string {\n return this.textfieldLabelOutside.labelOutside ? '' : this.exampleText;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onCopy() {}\n\n onValueChange(value: string) {\n this.updateValue(value);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {NgModule} from '@angular/core';\nimport {\n TuiHintControllerModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputCVCComponent} from './input-CVC.component';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiHintControllerModule,\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":";;;;;;;;;IA2CY,wCAA0B;IA2BlC,8BAII,OAAyB,EACE,iBAAoC,EAE9C,qBAAwD;QAP7E,YASI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHoB,2BAAqB,GAArB,qBAAqB,CAAmC;QA1B7E,yBAAmB,GAAG,KAAK,CAAC;QAY5B,iBAAW,GAAG,KAAK,CAAC;QAE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