valtech-components 4.0.259 → 4.0.260
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/esm2022/lib/components/organisms/pricing-table/pricing-table.component.mjs +254 -0
- package/esm2022/lib/components/organisms/pricing-table/types.mjs +2 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +253 -2
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/pricing-table/pricing-table.component.d.ts +17 -0
- package/lib/components/organisms/pricing-table/types.d.ts +40 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PricingBillingCycle, PricingPlanCard, PricingTableMetadata } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PricingTableComponent {
|
|
5
|
+
props: PricingTableMetadata;
|
|
6
|
+
onSelect: EventEmitter<string>;
|
|
7
|
+
cycle(): PricingBillingCycle;
|
|
8
|
+
featuredLabel(): string;
|
|
9
|
+
currentLabel(): string;
|
|
10
|
+
customPriceLabel(): string;
|
|
11
|
+
defaultCtaLabel(): string;
|
|
12
|
+
periodLabel(): string;
|
|
13
|
+
priceLabel(plan: PricingPlanCard): string;
|
|
14
|
+
select(plan: PricingPlanCard): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PricingTableComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PricingTableComponent, "val-pricing-table", never, { "props": { "alias": "props"; "required": true; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type PricingBillingCycle = 'monthly' | 'annual';
|
|
2
|
+
export type PricingPlanFeature = {
|
|
3
|
+
label: string;
|
|
4
|
+
included?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type PricingPlanLimit = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
export type PricingPlanCard = {
|
|
11
|
+
tier: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
priceMonthly?: number;
|
|
15
|
+
priceAnnual?: number;
|
|
16
|
+
currency?: string;
|
|
17
|
+
highlighted?: boolean;
|
|
18
|
+
custom?: boolean;
|
|
19
|
+
current?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
badge?: string;
|
|
22
|
+
ctaLabel?: string;
|
|
23
|
+
summaryTitle?: string;
|
|
24
|
+
summary?: string[];
|
|
25
|
+
featuresTitle?: string;
|
|
26
|
+
features?: PricingPlanFeature[];
|
|
27
|
+
limits?: PricingPlanLimit[];
|
|
28
|
+
};
|
|
29
|
+
export type PricingTableMetadata = {
|
|
30
|
+
plans: PricingPlanCard[];
|
|
31
|
+
billingCycle?: PricingBillingCycle;
|
|
32
|
+
locale?: string;
|
|
33
|
+
emptyLabel?: string;
|
|
34
|
+
featuredLabel?: string;
|
|
35
|
+
currentLabel?: string;
|
|
36
|
+
customPriceLabel?: string;
|
|
37
|
+
monthlyPeriodLabel?: string;
|
|
38
|
+
annualPeriodLabel?: string;
|
|
39
|
+
defaultCtaLabel?: string;
|
|
40
|
+
};
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -344,6 +344,8 @@ export * from './lib/components/organisms/skeleton-layout/skeleton-layout.compon
|
|
|
344
344
|
export * from './lib/components/organisms/skeleton-layout/types';
|
|
345
345
|
export * from './lib/components/organisms/faq/faq.component';
|
|
346
346
|
export * from './lib/components/organisms/faq/types';
|
|
347
|
+
export * from './lib/components/organisms/pricing-table/pricing-table.component';
|
|
348
|
+
export * from './lib/components/organisms/pricing-table/types';
|
|
347
349
|
export * from './lib/components/templates/simple/simple.component';
|
|
348
350
|
export * from './lib/components/templates/simple/types';
|
|
349
351
|
export * from './lib/components/templates/page-template/page-template.component';
|