@taiga-ui/addon-commerce 4.52.0-canary.2c75afa → 4.52.0-canary.2d877cf

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.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/components/index.d.ts +0 -2
  3. package/components/input-card/index.d.ts +3 -0
  4. package/components/input-card/input-card.component.d.ts +4 -4
  5. package/components/input-card/input-card.d.ts +7 -0
  6. package/components/input-card/input-cvc.directive.d.ts +10 -0
  7. package/components/input-card/input-expire.directive.d.ts +8 -0
  8. package/components/input-card-group/input-card-group.component.d.ts +3 -3
  9. package/components/input-card-group/input-card-group.options.d.ts +1 -3
  10. package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs +17 -21
  11. package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs +70 -10
  13. package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs +4 -4
  15. package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-addon-commerce-components.mjs +0 -2
  17. package/fesm2022/taiga-ui-addon-commerce-components.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-addon-commerce-constants.mjs +1 -1
  19. package/fesm2022/taiga-ui-addon-commerce-constants.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs +27 -26
  21. package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs +3 -3
  23. package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs +19 -12
  24. package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-addon-commerce-pipes-format-card.mjs +3 -3
  26. package/package.json +4 -12
  27. package/pipes/amount/amount.options.d.ts +1 -3
  28. package/pipes/amount/amount.pipe.d.ts +5 -2
  29. package/pipes/decimal/decimal.pipe.d.ts +4 -2
  30. package/components/input-cvc/index.d.ts +0 -1
  31. package/components/input-cvc/input-cvc.directive.d.ts +0 -10
  32. package/components/input-expire/index.d.ts +0 -1
  33. package/components/input-expire/input-expire.directive.d.ts +0 -8
  34. package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs +0 -39
  35. package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs.map +0 -1
  36. package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs +0 -38
  37. package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs.map +0 -1
@@ -1,12 +1,15 @@
1
1
  import { type PipeTransform } from '@angular/core';
2
2
  import { type TuiCurrencyVariants } from '@taiga-ui/addon-commerce/types';
3
3
  import { type TuiHorizontalDirection } from '@taiga-ui/core/types';
4
- import { type Observable } from 'rxjs';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class TuiAmountPipe implements PipeTransform {
7
6
  private readonly options;
8
7
  private readonly format;
9
- transform(value: number, currency?: TuiCurrencyVariants, currencyAlign?: TuiHorizontalDirection): Observable<string>;
8
+ private readonly value;
9
+ private readonly currency;
10
+ private readonly currencyAlign;
11
+ private readonly formatted;
12
+ transform(value: number, currency?: TuiCurrencyVariants, currencyAlign?: TuiHorizontalDirection): string;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiAmountPipe, never>;
11
14
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiAmountPipe, "tuiAmount", true>;
12
15
  }
@@ -1,11 +1,13 @@
1
1
  import { type PipeTransform } from '@angular/core';
2
2
  import { type TuiCurrencyVariants } from '@taiga-ui/addon-commerce/types';
3
- import { type Observable } from 'rxjs';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class TuiDecimalPipe implements PipeTransform {
6
5
  private readonly format;
7
6
  private readonly amountPipe;
8
- transform(value: number, currency?: TuiCurrencyVariants): Observable<string>;
7
+ private readonly value;
8
+ private readonly currency;
9
+ private readonly formatted;
10
+ transform(value: number, currency?: TuiCurrencyVariants): string;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDecimalPipe, never>;
10
12
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiDecimalPipe, "tuiDecimal", true>;
11
13
  }
@@ -1 +0,0 @@
1
- export * from './input-cvc.directive';
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@maskito/angular";
3
- import * as i2 from "@taiga-ui/core/components/textfield";
4
- export declare class TuiInputCVC {
5
- protected readonly mask: import("@angular/core").Signal<import("@maskito/core").MaskitoOptions | null>;
6
- readonly hidden: import("@angular/core").InputSignal<boolean>;
7
- readonly length: import("@angular/core").InputSignal<3 | 4>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputCVC, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputCVC, "input[tuiInputCVC]", never, { "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.MaskitoDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiWithTextfield; inputs: {}; outputs: {}; }]>;
10
- }
@@ -1 +0,0 @@
1
- export * from './input-expire.directive';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@maskito/angular";
3
- import * as i2 from "@taiga-ui/core/components/textfield";
4
- export declare class TuiInputExpire {
5
- protected readonly mask: import("@angular/core").WritableSignal<import("@maskito/core").MaskitoOptions | null>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputExpire, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputExpire, "input[tuiInputExpire]", never, {}, {}, never, never, true, [{ directive: typeof i1.MaskitoDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiWithTextfield; inputs: {}; outputs: {}; }]>;
8
- }
@@ -1,39 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { computed, input, Directive } from '@angular/core';
3
- import * as i1 from '@maskito/angular';
4
- import { MaskitoDirective } from '@maskito/angular';
5
- import { TUI_MASK_CVC } from '@taiga-ui/addon-commerce/constants';
6
- import * as i2 from '@taiga-ui/core/components/textfield';
7
- import { TuiWithTextfield } from '@taiga-ui/core/components/textfield';
8
- import { tuiMaskito } from '@taiga-ui/kit/utils';
9
-
10
- class TuiInputCVC {
11
- constructor() {
12
- this.mask = tuiMaskito(computed(() => TUI_MASK_CVC(this.length())));
13
- this.hidden = input(true);
14
- this.length = input(3);
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputCVC, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiInputCVC, isStandalone: true, selector: "input[tuiInputCVC]", inputs: { hidden: { classPropertyName: "hidden", publicName: "hidden", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "inputmode": "numeric", "autocomplete": "cc-csc" }, listeners: { "copy.prevent": "(0)" }, properties: { "placeholder": "\"0\".repeat(length())", "style.-webkit-text-security": "hidden() ? \"disc\" : null" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithTextfield }], ngImport: i0 }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputCVC, decorators: [{
20
- type: Directive,
21
- args: [{
22
- selector: 'input[tuiInputCVC]',
23
- hostDirectives: [MaskitoDirective, TuiWithTextfield],
24
- host: {
25
- inputmode: 'numeric',
26
- autocomplete: 'cc-csc',
27
- '[placeholder]': '"0".repeat(length())',
28
- '[style.-webkit-text-security]': 'hidden() ? "disc" : null',
29
- '(copy.prevent)': '(0)',
30
- },
31
- }]
32
- }] });
33
-
34
- /**
35
- * Generated bundle index. Do not edit.
36
- */
37
-
38
- export { TuiInputCVC };
39
- //# sourceMappingURL=taiga-ui-addon-commerce-components-input-cvc.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-addon-commerce-components-input-cvc.mjs","sources":["../../../projects/addon-commerce/components/input-cvc/input-cvc.directive.ts","../../../projects/addon-commerce/components/input-cvc/taiga-ui-addon-commerce-components-input-cvc.ts"],"sourcesContent":["import {computed, Directive, input} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {TUI_MASK_CVC} from '@taiga-ui/addon-commerce/constants';\nimport {TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\n@Directive({\n selector: 'input[tuiInputCVC]',\n hostDirectives: [MaskitoDirective, TuiWithTextfield],\n host: {\n inputmode: 'numeric',\n autocomplete: 'cc-csc',\n '[placeholder]': '\"0\".repeat(length())',\n '[style.-webkit-text-security]': 'hidden() ? \"disc\" : null',\n '(copy.prevent)': '(0)',\n },\n})\nexport class TuiInputCVC {\n protected readonly mask = tuiMaskito(computed(() => TUI_MASK_CVC(this.length())));\n\n public readonly hidden = input(true);\n\n public readonly length = input<3 | 4>(3);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAiBa,WAAW,CAAA;AAXxB,IAAA,WAAA,GAAA;AAYuB,QAAA,IAAA,CAAA,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC,MAAM,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEjE,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC;AAEpB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAQ,CAAC,CAAC;AAC3C;+GANY,WAAW,EAAA,IAA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ACJ,iBAAA;;;AChBD;;AAEG;;;;"}
@@ -1,38 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import * as i1 from '@maskito/angular';
4
- import { MaskitoDirective } from '@maskito/angular';
5
- import { TUI_MASK_EXPIRE } from '@taiga-ui/addon-commerce/constants';
6
- import * as i2 from '@taiga-ui/core/components/textfield';
7
- import { TuiWithTextfield } from '@taiga-ui/core/components/textfield';
8
- import { tuiMaskito } from '@taiga-ui/kit/utils';
9
-
10
- class TuiInputExpire {
11
- constructor() {
12
- this.mask = tuiMaskito(TUI_MASK_EXPIRE);
13
- }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputExpire, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputExpire, isStandalone: true, selector: "input[tuiInputExpire]", host: { attributes: { "inputmode": "numeric", "placeholder": "00/00", "translate": "no", "maxlength": "5", "name": "ccexpiryyear", "autocomplete": "cc-exp" } }, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithTextfield }], ngImport: i0 }); }
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputExpire, decorators: [{
18
- type: Directive,
19
- args: [{
20
- selector: 'input[tuiInputExpire]',
21
- hostDirectives: [MaskitoDirective, TuiWithTextfield],
22
- host: {
23
- inputmode: 'numeric',
24
- placeholder: '00/00',
25
- translate: 'no',
26
- maxlength: '5',
27
- name: 'ccexpiryyear',
28
- autocomplete: 'cc-exp',
29
- },
30
- }]
31
- }] });
32
-
33
- /**
34
- * Generated bundle index. Do not edit.
35
- */
36
-
37
- export { TuiInputExpire };
38
- //# sourceMappingURL=taiga-ui-addon-commerce-components-input-expire.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-addon-commerce-components-input-expire.mjs","sources":["../../../projects/addon-commerce/components/input-expire/input-expire.directive.ts","../../../projects/addon-commerce/components/input-expire/taiga-ui-addon-commerce-components-input-expire.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {TUI_MASK_EXPIRE} from '@taiga-ui/addon-commerce/constants';\nimport {TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\n@Directive({\n selector: 'input[tuiInputExpire]',\n hostDirectives: [MaskitoDirective, TuiWithTextfield],\n host: {\n inputmode: 'numeric',\n placeholder: '00/00',\n translate: 'no',\n maxlength: '5',\n name: 'ccexpiryyear',\n autocomplete: 'cc-exp',\n },\n})\nexport class TuiInputExpire {\n protected readonly mask = tuiMaskito(TUI_MASK_EXPIRE);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAkBa,cAAc,CAAA;AAZ3B,IAAA,WAAA,GAAA;AAauB,QAAA,IAAA,CAAA,IAAI,GAAG,UAAU,CAAC,eAAe,CAAC;AACxD;+GAFY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,aAAA,EAAA,OAAA,EAAA,WAAA,EAAA,IAAA,EAAA,WAAA,EAAA,GAAA,EAAA,MAAA,EAAA,cAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;AACpD,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,WAAW,EAAE,OAAO;AACpB,wBAAA,SAAS,EAAE,IAAI;AACf,wBAAA,SAAS,EAAE,GAAG;AACd,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,YAAY,EAAE,QAAQ;AACzB,qBAAA;AACJ,iBAAA;;;ACjBD;;AAEG;;;;"}