@taiga-ui/addon-commerce 4.52.0-canary.24b31eb → 4.52.0-canary.2fa3dd5
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/README.md +2 -2
- package/components/input-card-group/index.d.ts +1 -0
- package/components/input-card-group/input-card-group.component.d.ts +17 -16
- package/components/input-card-group/input-card-group.directive.d.ts +10 -0
- package/components/input-card-group/input-card-group.options.d.ts +1 -3
- package/components/input-card-group/input-card-group.providers.d.ts +4 -3
- package/components/input-cvc/input-cvc.directive.d.ts +5 -7
- package/components/thumbnail-card/thumbnail-card.component.d.ts +5 -6
- package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs +95 -104
- package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs +2 -2
- package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs +8 -17
- package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs +0 -1
- package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs +9 -17
- package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs +6 -10
- package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs +0 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs +3 -2
- package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-format-card.mjs +0 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-format-card.mjs.map +1 -1
- package/package.json +15 -12
- package/pipes/amount/amount.options.d.ts +1 -3
- package/tokens/i18n.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-pipes-format-card.mjs","sources":["../../../projects/addon-commerce/pipes/format-card/format-card.pipe.ts","../../../projects/addon-commerce/pipes/format-card/taiga-ui-addon-commerce-pipes-format-card.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\n\n@Pipe({\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-pipes-format-card.mjs","sources":["../../../projects/addon-commerce/pipes/format-card/format-card.pipe.ts","../../../projects/addon-commerce/pipes/format-card/taiga-ui-addon-commerce-pipes-format-card.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\n\n@Pipe({\n name: 'tuiFormatCard',\n})\nexport class TuiFormatCardPipe implements PipeTransform {\n public transform(value: string | null = '', cardPrefilled = false): string {\n return value && !cardPrefilled\n ? value\n .split('')\n .map((char, index) =>\n index && index % 4 === 0 ? `${CHAR_NO_BREAK_SPACE}${char}` : char,\n )\n .join('')\n : '';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,iBAAiB,CAAA;AACnB,IAAA,SAAS,CAAC,KAAuB,GAAA,EAAE,EAAE,aAAa,GAAG,KAAK,EAAA;QAC7D,OAAO,KAAK,IAAI,CAAC;AACb,cAAE;iBACK,KAAK,CAAC,EAAE;iBACR,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KACb,KAAK,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,CAAA,EAAG,mBAAmB,CAAA,EAAG,IAAI,CAAA,CAAE,GAAG,IAAI;iBAEpE,IAAI,CAAC,EAAE;cACZ,EAAE;;+GATH,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,eAAe;AACxB,iBAAA;;;ACLD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/addon-commerce",
|
|
3
|
-
"version": "4.52.0-canary.
|
|
3
|
+
"version": "4.52.0-canary.2fa3dd5",
|
|
4
4
|
"description": "Extension package for Taiga UI related to commerce, payment systems, currencies etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -11,15 +11,18 @@
|
|
|
11
11
|
"payment"
|
|
12
12
|
],
|
|
13
13
|
"homepage": "https://github.com/taiga-family/taiga-ui",
|
|
14
|
-
"repository":
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/taiga-family/taiga-ui"
|
|
17
|
+
},
|
|
15
18
|
"license": "Apache-2.0",
|
|
16
19
|
"peerDependencies": {
|
|
17
20
|
"@angular/common": ">=19.0.0",
|
|
18
21
|
"@angular/core": ">=19.0.0",
|
|
19
22
|
"@angular/forms": ">=19.0.0",
|
|
20
|
-
"@maskito/angular": "^
|
|
21
|
-
"@maskito/core": "^
|
|
22
|
-
"@maskito/kit": "^
|
|
23
|
+
"@maskito/angular": "^4.0.0",
|
|
24
|
+
"@maskito/core": "^4.0.0",
|
|
25
|
+
"@maskito/kit": "^4.0.0",
|
|
23
26
|
"@ng-web-apis/common": "^4.12.2",
|
|
24
27
|
"@taiga-ui/cdk": "^4.52.0",
|
|
25
28
|
"@taiga-ui/core": "^4.52.0",
|
|
@@ -78,22 +81,22 @@
|
|
|
78
81
|
"types": "./components/input-cvc/index.d.ts",
|
|
79
82
|
"default": "./fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs"
|
|
80
83
|
},
|
|
81
|
-
"./components/input-expire": {
|
|
82
|
-
"types": "./components/input-expire/index.d.ts",
|
|
83
|
-
"default": "./fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs"
|
|
84
|
-
},
|
|
85
84
|
"./components/thumbnail-card": {
|
|
86
85
|
"types": "./components/thumbnail-card/index.d.ts",
|
|
87
86
|
"default": "./fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs"
|
|
88
87
|
},
|
|
89
|
-
"./
|
|
90
|
-
"types": "./
|
|
91
|
-
"default": "./fesm2022/taiga-ui-addon-commerce-
|
|
88
|
+
"./components/input-expire": {
|
|
89
|
+
"types": "./components/input-expire/index.d.ts",
|
|
90
|
+
"default": "./fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs"
|
|
92
91
|
},
|
|
93
92
|
"./pipes/currency": {
|
|
94
93
|
"types": "./pipes/currency/index.d.ts",
|
|
95
94
|
"default": "./fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs"
|
|
96
95
|
},
|
|
96
|
+
"./pipes/amount": {
|
|
97
|
+
"types": "./pipes/amount/index.d.ts",
|
|
98
|
+
"default": "./fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs"
|
|
99
|
+
},
|
|
97
100
|
"./pipes/decimal": {
|
|
98
101
|
"types": "./pipes/decimal/index.d.ts",
|
|
99
102
|
"default": "./fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
import { type TuiCurrencyVariants } from '@taiga-ui/addon-commerce/types';
|
|
3
2
|
import { type TuiHorizontalDirection } from '@taiga-ui/core/types';
|
|
4
3
|
import { type TuiAmountSign } from './amount.types';
|
|
@@ -8,5 +7,4 @@ export interface TuiAmountOptions {
|
|
|
8
7
|
readonly sign: TuiAmountSign;
|
|
9
8
|
}
|
|
10
9
|
export declare const TUI_AMOUNT_DEFAULT_OPTIONS: TuiAmountOptions;
|
|
11
|
-
export declare const TUI_AMOUNT_OPTIONS: InjectionToken<TuiAmountOptions
|
|
12
|
-
export declare function tuiAmountOptionsProvider(options: Partial<TuiAmountOptions>): Provider;
|
|
10
|
+
export declare const TUI_AMOUNT_OPTIONS: import("@angular/core").InjectionToken<TuiAmountOptions>, tuiAmountOptionsProvider: (item: Partial<TuiAmountOptions> | (() => Partial<TuiAmountOptions>)) => import("@angular/core").FactoryProvider;
|
package/tokens/i18n.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { type Observable } from 'rxjs';
|
|
|
3
3
|
/**
|
|
4
4
|
* Number and card number i18n
|
|
5
5
|
*/
|
|
6
|
-
export declare const TUI_CARD_NUMBER_TEXTS: InjectionToken<
|
|
6
|
+
export declare const TUI_CARD_NUMBER_TEXTS: InjectionToken<import("@angular/core").Signal<readonly [number: string, card_number: string]>>;
|
|
7
7
|
/**
|
|
8
8
|
* Expiry and card expiry i18n
|
|
9
9
|
*/
|
|
10
|
-
export declare const TUI_CARD_EXPIRY_TEXTS: InjectionToken<
|
|
10
|
+
export declare const TUI_CARD_EXPIRY_TEXTS: InjectionToken<import("@angular/core").Signal<readonly [expiry: string, expiry_date: string]>>;
|
|
11
11
|
/**
|
|
12
12
|
* Card CVC number text [mobile, desktop]
|
|
13
13
|
*/
|