@taiga-ui/addon-commerce 4.52.0-canary.6ee9658 → 4.52.0-canary.763e67d

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 (33) hide show
  1. package/components/index.d.ts +0 -2
  2. package/components/input-card/index.d.ts +3 -0
  3. package/components/input-card/input-card.component.d.ts +4 -4
  4. package/components/input-card/input-card.d.ts +7 -0
  5. package/components/input-card/input-cvc.directive.d.ts +10 -0
  6. package/components/input-card/input-expire.directive.d.ts +8 -0
  7. package/components/input-card-group/input-card-group.component.d.ts +3 -3
  8. package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs +15 -16
  9. package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs.map +1 -1
  10. package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs +70 -10
  11. package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs +3 -3
  13. package/fesm2022/taiga-ui-addon-commerce-components.mjs +0 -2
  14. package/fesm2022/taiga-ui-addon-commerce-components.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-addon-commerce-constants.mjs +1 -1
  16. package/fesm2022/taiga-ui-addon-commerce-constants.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs +25 -19
  18. package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs +3 -3
  20. package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs +19 -12
  21. package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-addon-commerce-pipes-format-card.mjs +3 -3
  23. package/package.json +12 -20
  24. package/pipes/amount/amount.pipe.d.ts +5 -2
  25. package/pipes/decimal/decimal.pipe.d.ts +4 -2
  26. package/components/input-cvc/index.d.ts +0 -1
  27. package/components/input-cvc/input-cvc.directive.d.ts +0 -10
  28. package/components/input-expire/index.d.ts +0 -1
  29. package/components/input-expire/input-expire.directive.d.ts +0 -8
  30. package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs +0 -39
  31. package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs.map +0 -1
  32. package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs +0 -38
  33. package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs.map +0 -1
@@ -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,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,SAAA,EAAA,cAAA,EAAA,QAAA,EAAA,EAAA,SAAA,EAAA,EAAA,cAAA,EAAA,KAAA,EAAA,EAAA,UAAA,EAAA,EAAA,aAAA,EAAA,wBAAA,EAAA,6BAAA,EAAA,4BAAA,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;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAXvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;AACpD,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,YAAY,EAAE,QAAQ;AACtB,wBAAA,eAAe,EAAE,sBAAsB;AACvC,wBAAA,+BAA+B,EAAE,0BAA0B;AAC3D,wBAAA,gBAAgB,EAAE,KAAK;AAC1B,qBAAA;AACJ,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;;;;"}