@taiga-ui/addon-commerce 4.52.0-canary.e444d19 → 4.52.0-canary.e53e79e
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/index.d.ts +0 -2
- package/components/input-card/index.d.ts +3 -1
- package/components/input-card/input-card.component.d.ts +6 -12
- package/components/input-card/input-card.d.ts +7 -0
- package/components/input-card/input-cvc.directive.d.ts +10 -0
- package/components/input-card/input-expire.directive.d.ts +8 -0
- package/components/input-card-group/index.d.ts +1 -0
- package/components/input-card-group/input-card-group.component.d.ts +22 -24
- package/components/input-card-group/input-card-group.directive.d.ts +10 -0
- package/components/input-card-group/input-card-group.options.d.ts +2 -5
- package/components/input-card-group/input-card-group.providers.d.ts +4 -3
- package/components/thumbnail-card/thumbnail-card.component.d.ts +5 -6
- package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs +104 -129
- package/fesm2022/taiga-ui-addon-commerce-components-input-card-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs +95 -66
- package/fesm2022/taiga-ui-addon-commerce-components-input-card.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs +11 -19
- package/fesm2022/taiga-ui-addon-commerce-components-thumbnail-card.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-components.mjs +0 -2
- package/fesm2022/taiga-ui-addon-commerce-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-constants.mjs +1 -1
- package/fesm2022/taiga-ui-addon-commerce-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs +26 -24
- package/fesm2022/taiga-ui-addon-commerce-pipes-amount.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs +3 -4
- package/fesm2022/taiga-ui-addon-commerce-pipes-currency.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs +18 -10
- package/fesm2022/taiga-ui-addon-commerce-pipes-decimal.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-commerce-pipes-format-card.mjs +3 -4
- package/fesm2022/taiga-ui-addon-commerce-pipes-format-card.mjs.map +1 -1
- package/package.json +9 -14
- package/pipes/amount/amount.options.d.ts +1 -3
- package/pipes/amount/amount.pipe.d.ts +5 -2
- package/pipes/decimal/decimal.pipe.d.ts +4 -2
- package/tokens/i18n.d.ts +2 -2
- package/components/input-card/input-card.options.d.ts +0 -12
- package/components/input-cvc/index.d.ts +0 -1
- package/components/input-cvc/input-cvc.directive.d.ts +0 -14
- package/components/input-expire/index.d.ts +0 -1
- package/components/input-expire/input-expire.directive.d.ts +0 -10
- package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs +0 -53
- package/fesm2022/taiga-ui-addon-commerce-components-input-cvc.mjs.map +0 -1
- package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs +0 -44
- package/fesm2022/taiga-ui-addon-commerce-components-input-expire.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ consisting of multiple base libraries and several add-ons
|
|
|
16
16
|
|
|
17
17
|
Install base packages:
|
|
18
18
|
|
|
19
|
-
```
|
|
19
|
+
```bash
|
|
20
20
|
npm i @taiga-ui/{cdk,core}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Install addon-commerce:
|
|
24
24
|
|
|
25
|
-
```
|
|
25
|
+
```bash
|
|
26
26
|
npm i @taiga-ui/addon-commerce
|
|
27
27
|
```
|
|
28
28
|
|
package/components/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export * from '@taiga-ui/addon-commerce/components/input-card';
|
|
2
2
|
export * from '@taiga-ui/addon-commerce/components/input-card-group';
|
|
3
|
-
export * from '@taiga-ui/addon-commerce/components/input-cvc';
|
|
4
|
-
export * from '@taiga-ui/addon-commerce/components/input-expire';
|
|
5
3
|
export * from '@taiga-ui/addon-commerce/components/thumbnail-card';
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { type OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "@maskito/angular";
|
|
4
|
-
import * as i2 from "@taiga-ui/core/components/
|
|
5
|
-
export declare class
|
|
4
|
+
import * as i2 from "@taiga-ui/core/components/input";
|
|
5
|
+
export declare class TuiInputCardComponent implements OnInit {
|
|
6
6
|
private readonly icons;
|
|
7
|
-
private readonly options;
|
|
8
|
-
private readonly resolver;
|
|
9
7
|
private readonly control;
|
|
10
8
|
private readonly value;
|
|
11
|
-
private readonly icon;
|
|
12
9
|
private readonly accessor;
|
|
13
10
|
protected readonly mask: import("@angular/core").WritableSignal<import("@maskito/core").MaskitoOptions | null>;
|
|
14
|
-
protected readonly image: import("@angular/core").Signal<string
|
|
15
|
-
|
|
16
|
-
autocomplete: boolean;
|
|
17
|
-
readonly binChange: import("rxjs").Observable<string | null>;
|
|
18
|
-
set iconValue(icon: string | null);
|
|
11
|
+
protected readonly image: import("@angular/core").Signal<string>;
|
|
12
|
+
readonly binChange: import("@angular/core").OutputRef<string | null>;
|
|
19
13
|
ngOnInit(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputCardComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputCardComponent, "input[tuiInputCard]", never, {}, { "binChange": "binChange"; }, never, never, true, [{ directive: typeof i1.MaskitoDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiWithInput; inputs: {}; outputs: {}; }]>;
|
|
22
16
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TuiLabel } from '@taiga-ui/core/components/label';
|
|
2
|
+
import { TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
|
|
3
|
+
import { TuiDropdownContent } from '@taiga-ui/core/portals';
|
|
4
|
+
import { TuiInputCardComponent } from './input-card.component';
|
|
5
|
+
import { TuiInputCVCDirective } from './input-cvc.directive';
|
|
6
|
+
import { TuiInputExpireDirective } from './input-expire.directive';
|
|
7
|
+
export declare const TuiInputCard: readonly [typeof TuiInputCardComponent, typeof TuiInputCVCDirective, typeof TuiInputExpireDirective, typeof TuiLabel, typeof TuiTextfieldComponent, typeof TuiTextfieldOptionsDirective, typeof TuiDropdownContent];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@maskito/angular";
|
|
3
|
+
import * as i2 from "@taiga-ui/core/components/input";
|
|
4
|
+
export declare class TuiInputCVCDirective {
|
|
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<TuiInputCVCDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputCVCDirective, "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.TuiWithInput; inputs: {}; outputs: {}; }]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@maskito/angular";
|
|
3
|
+
import * as i2 from "@taiga-ui/core/components/input";
|
|
4
|
+
export declare class TuiInputExpireDirective {
|
|
5
|
+
protected readonly mask: import("@angular/core").WritableSignal<import("@maskito/core").MaskitoOptions | null>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputExpireDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputExpireDirective, "input[tuiInputExpire]", never, {}, {}, never, never, true, [{ directive: typeof i1.MaskitoDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiWithInput; inputs: {}; outputs: {}; }]>;
|
|
8
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Signal } from '@angular/core';
|
|
2
2
|
import { TuiControl } from '@taiga-ui/cdk/classes';
|
|
3
3
|
import { type TuiBooleanHandler } from '@taiga-ui/cdk/types';
|
|
4
4
|
import { type TuiDataListHost } from '@taiga-ui/core/components/data-list';
|
|
5
|
-
import { TuiDropdownDirective } from '@taiga-ui/core/
|
|
5
|
+
import { TuiDropdownDirective } from '@taiga-ui/core/portals/dropdown';
|
|
6
6
|
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
import * as i1 from "@taiga-ui/core/directives/appearance";
|
|
9
|
-
import * as i2 from "@taiga-ui/core/
|
|
10
|
-
import * as i3 from "
|
|
9
|
+
import * as i2 from "@taiga-ui/core/portals/dropdown";
|
|
10
|
+
import * as i3 from "./input-card-group.directive";
|
|
11
11
|
export interface TuiCard {
|
|
12
12
|
card: string;
|
|
13
13
|
cvc: string;
|
|
14
14
|
expire: string;
|
|
15
15
|
}
|
|
16
|
-
export declare class TuiInputCardGroup extends TuiControl<TuiCard | null> implements TuiDataListHost<Partial<TuiCard
|
|
17
|
-
private readonly inputCard
|
|
18
|
-
private readonly inputExpire
|
|
19
|
-
private readonly inputCVC
|
|
16
|
+
export declare class TuiInputCardGroup extends TuiControl<TuiCard | null> implements TuiDataListHost<Partial<TuiCard>> {
|
|
17
|
+
private readonly inputCard;
|
|
18
|
+
private readonly inputExpire;
|
|
19
|
+
private readonly inputCVC;
|
|
20
20
|
private readonly doc;
|
|
21
21
|
private readonly isServer;
|
|
22
22
|
private readonly focus$;
|
|
@@ -26,20 +26,21 @@ export declare class TuiInputCardGroup extends TuiControl<TuiCard | null> implem
|
|
|
26
26
|
private readonly el;
|
|
27
27
|
private readonly hover;
|
|
28
28
|
private readonly focusedIn;
|
|
29
|
-
protected exampleTextCVC: string
|
|
29
|
+
protected readonly exampleTextCVC: Signal<string>;
|
|
30
|
+
protected readonly maskCVC: Signal<import("@maskito/core").MaskitoOptions>;
|
|
30
31
|
protected cvcHidden: boolean;
|
|
31
|
-
protected maskCVC: import("@maskito/core").MaskitoOptions;
|
|
32
32
|
protected readonly isMobile: boolean;
|
|
33
33
|
protected readonly isWebkit: boolean;
|
|
34
34
|
protected readonly dropdown: TuiDropdownDirective;
|
|
35
35
|
protected readonly maskCard: import("@maskito/core").MaskitoOptions;
|
|
36
36
|
protected readonly maskExpire: Required<import("@maskito/core").MaskitoOptions>;
|
|
37
37
|
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
38
|
+
protected readonly textfield: import("@taiga-ui/core/components/textfield").TuiTextfieldOptions;
|
|
38
39
|
protected readonly texts: Signal<import("./input-card-group.providers").TuiCardGroupedTexts | undefined>;
|
|
39
|
-
protected readonly open: import("@angular/core").
|
|
40
|
+
protected readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
40
41
|
protected readonly $: import("rxjs").Subscription | import("rxjs").Observable<never>;
|
|
41
42
|
protected readonly m: Signal<string | readonly string[] | null>;
|
|
42
|
-
protected readonly appearance:
|
|
43
|
+
protected readonly appearance: Signal<string>;
|
|
43
44
|
protected readonly state: Signal<unknown>;
|
|
44
45
|
protected readonly focus: Signal<boolean | null>;
|
|
45
46
|
protected readonly labelRaised: Signal<boolean>;
|
|
@@ -47,18 +48,15 @@ export declare class TuiInputCardGroup extends TuiControl<TuiCard | null> implem
|
|
|
47
48
|
/**
|
|
48
49
|
* @deprecated use 'placeholder' instead
|
|
49
50
|
*/
|
|
50
|
-
exampleText: string
|
|
51
|
-
placeholder: string
|
|
52
|
-
inputs: import("./input-card-group.options").TuiCardInputs
|
|
53
|
-
cardValidator: TuiBooleanHandler<string
|
|
54
|
-
icon: PolymorpheusContent
|
|
55
|
-
id: string
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
readonly binChange: EventEmitter<string | null>;
|
|
59
|
-
set codeLength(length: 3 | 4);
|
|
51
|
+
readonly exampleText: import("@angular/core").InputSignal<string>;
|
|
52
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
53
|
+
readonly inputs: import("@angular/core").InputSignal<import("./input-card-group.options").TuiCardInputs>;
|
|
54
|
+
readonly cardValidator: import("@angular/core").InputSignal<TuiBooleanHandler<string>>;
|
|
55
|
+
readonly icon: import("@angular/core").InputSignal<PolymorpheusContent>;
|
|
56
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
57
|
+
readonly codeLength: import("@angular/core").InputSignal<4 | 3 | undefined>;
|
|
58
|
+
readonly binChange: import("@angular/core").OutputEmitterRef<string | null>;
|
|
60
59
|
get bin(): string | null;
|
|
61
|
-
ngAfterViewInit(): void;
|
|
62
60
|
writeValue(value: TuiCard | null): void;
|
|
63
61
|
/** Public API for manual focus management */
|
|
64
62
|
focusCard(): void;
|
|
@@ -91,5 +89,5 @@ export declare class TuiInputCardGroup extends TuiControl<TuiCard | null> implem
|
|
|
91
89
|
private updateProperty;
|
|
92
90
|
private focusInput;
|
|
93
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputCardGroup, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputCardGroup, "tui-input-card-group", never, { "exampleText": { "alias": "exampleText"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "cardValidator": { "alias": "cardValidator"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "id": { "alias": "id"; "required": false;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputCardGroup, "tui-input-card-group", never, { "exampleText": { "alias": "exampleText"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "inputs": { "alias": "inputs"; "required": false; "isSignal": true; }; "cardValidator": { "alias": "cardValidator"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "codeLength": { "alias": "codeLength"; "required": false; "isSignal": true; }; }, { "binChange": "binChange"; }, never, ["*"], true, [{ directive: typeof i1.TuiAppearance; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiDropdownDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiWithDropdownOpen; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiInputCardGroupDirective; inputs: { "compact": "compact"; }; outputs: {}; }]>;
|
|
95
93
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TuiInputCardGroupDirective {
|
|
3
|
+
private readonly c$;
|
|
4
|
+
private readonly m$;
|
|
5
|
+
readonly compact$: import("rxjs").Observable<boolean>;
|
|
6
|
+
readonly compact: import("@angular/core").Signal<boolean>;
|
|
7
|
+
set compactSetter(compact: boolean);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputCardGroupDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputCardGroupDirective, never, never, { "compactSetter": { "alias": "compact"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
|
-
import { type TuiInputCardOptions } from '@taiga-ui/addon-commerce/components/input-card';
|
|
3
1
|
import { type TuiBooleanHandler } from '@taiga-ui/cdk/types';
|
|
4
2
|
export interface TuiCardInputs {
|
|
5
3
|
cvc: boolean;
|
|
6
4
|
expire: boolean;
|
|
7
5
|
}
|
|
8
|
-
export interface TuiInputCardGroupOptions
|
|
6
|
+
export interface TuiInputCardGroupOptions {
|
|
9
7
|
readonly cardValidator: TuiBooleanHandler<string>;
|
|
10
8
|
readonly exampleText: string;
|
|
11
9
|
readonly exampleTextCVC: string;
|
|
@@ -13,5 +11,4 @@ export interface TuiInputCardGroupOptions extends TuiInputCardOptions {
|
|
|
13
11
|
readonly inputs: TuiCardInputs;
|
|
14
12
|
}
|
|
15
13
|
export declare const TUI_INPUT_CARD_GROUP_DEFAULT_OPTIONS: TuiInputCardGroupOptions;
|
|
16
|
-
export declare const TUI_INPUT_CARD_GROUP_OPTIONS: InjectionToken<TuiInputCardGroupOptions
|
|
17
|
-
export declare function tuiInputCardGroupOptionsProvider(options: Partial<TuiInputCardGroupOptions>): Provider;
|
|
14
|
+
export declare const TUI_INPUT_CARD_GROUP_OPTIONS: import("@angular/core").InjectionToken<TuiInputCardGroupOptions>, tuiInputCardGroupOptionsProvider: (item: Partial<TuiInputCardGroupOptions> | (() => Partial<TuiInputCardGroupOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -5,7 +5,8 @@ export interface TuiCardGroupedTexts {
|
|
|
5
5
|
readonly cvcText: string;
|
|
6
6
|
readonly expiryText: string;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
* InputCardGroup texts
|
|
10
|
-
*/
|
|
11
8
|
export declare const TUI_INPUT_CARD_GROUP_TEXTS: InjectionToken<Observable<TuiCardGroupedTexts>>;
|
|
9
|
+
export declare const TUI_INPUT_CARD_GROUP_TEXTS_PROVIDER: {
|
|
10
|
+
provide: InjectionToken<Observable<TuiCardGroupedTexts>>;
|
|
11
|
+
useFactory: () => Observable<TuiCardGroupedTexts>;
|
|
12
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { type TuiPaymentSystem } from '@taiga-ui/addon-commerce/types';
|
|
2
|
-
import { type TuiSizeL, type TuiSizeXS } from '@taiga-ui/core/types';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class TuiThumbnailCard {
|
|
5
4
|
protected readonly options: import("./thumbnail-card.options").TuiThumbnailCardOptions;
|
|
6
|
-
size:
|
|
7
|
-
paymentSystem: TuiPaymentSystem | null
|
|
8
|
-
iconStart: string
|
|
9
|
-
iconEnd: string
|
|
5
|
+
readonly size: import("@angular/core").InputSignal<"m" | "l" | "s" | "xs">;
|
|
6
|
+
readonly paymentSystem: import("@angular/core").InputSignal<TuiPaymentSystem | null>;
|
|
7
|
+
readonly iconStart: import("@angular/core").InputSignal<string>;
|
|
8
|
+
readonly iconEnd: import("@angular/core").InputSignal<string>;
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiThumbnailCard, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiThumbnailCard, "tui-thumbnail-card", never, { "size": { "alias": "size"; "required": false; }; "paymentSystem": { "alias": "paymentSystem"; "required": false; }; "iconStart": { "alias": "iconStart"; "required": false; }; "iconEnd": { "alias": "iconEnd"; "required": false; }; }, {}, never, ["img", "*"], true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiThumbnailCard, "tui-thumbnail-card", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "paymentSystem": { "alias": "paymentSystem"; "required": false; "isSignal": true; }; "iconStart": { "alias": "iconStart"; "required": false; "isSignal": true; }; "iconEnd": { "alias": "iconEnd"; "required": false; "isSignal": true; }; }, {}, never, ["img", "*"], true, never>;
|
|
12
11
|
}
|