@osovitny/anatoly 3.17.122 → 3.17.123
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/billing/billing.module.mjs +6 -5
- package/esm2022/lib/billing/components/exports.mjs +2 -1
- package/esm2022/lib/billing/components/index.mjs +3 -2
- package/esm2022/lib/billing/components/pm/paypal/paypal-button.component.mjs +4 -3
- package/esm2022/lib/billing/components/pm/paypal/paypal-subscribe-button.component.mjs +134 -0
- package/esm2022/lib/billing/models/paypal-models.mjs +1 -1
- package/fesm2022/osovitny-anatoly.mjs +202 -75
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/billing/billing.module.d.ts +9 -8
- package/lib/billing/components/exports.d.ts +1 -0
- package/lib/billing/components/index.d.ts +2 -2
- package/lib/billing/components/pm/paypal/paypal-subscribe-button.component.d.ts +28 -0
- package/lib/billing/models/paypal-models.d.ts +1 -0
- package/package.json +1 -2
|
@@ -6,15 +6,16 @@ import * as i4 from "./components/payment-methods/payment-methods.component";
|
|
|
6
6
|
import * as i5 from "./components/payment-options/payment-options.component";
|
|
7
7
|
import * as i6 from "./components/pm/braintree/braintree.component";
|
|
8
8
|
import * as i7 from "./components/pm/paypal/paypal-button.component";
|
|
9
|
-
import * as i8 from "./components/pm/paypal/paypal.component";
|
|
10
|
-
import * as i9 from "./components/pm/
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../external/
|
|
15
|
-
import * as i14 from "../
|
|
9
|
+
import * as i8 from "./components/pm/paypal/paypal-subscribe-button.component";
|
|
10
|
+
import * as i9 from "./components/pm/paypal/paypal.component";
|
|
11
|
+
import * as i10 from "./components/pm/stripe/stripe.component";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "@angular/forms";
|
|
14
|
+
import * as i13 from "../external/fa.module";
|
|
15
|
+
import * as i14 from "../external/kendo.module";
|
|
16
|
+
import * as i15 from "../ui/ui.module";
|
|
16
17
|
export declare class AnatolyBillingModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyBillingModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyBillingModule, [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.OrderSummaryComponent, typeof i4.PaymentMethodsComponent, typeof i5.PaymentOptionsComponent, typeof i6.BraintreeDialog, typeof i7.PaypalButtonComponent, typeof i8.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyBillingModule, [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.OrderSummaryComponent, typeof i4.PaymentMethodsComponent, typeof i5.PaymentOptionsComponent, typeof i6.BraintreeDialog, typeof i7.PaypalButtonComponent, typeof i8.PaypalSubscribeButtonComponent, typeof i9.PayPalComponent, typeof i10.StripeDialog], [typeof i11.CommonModule, typeof i12.ReactiveFormsModule, typeof i12.FormsModule, typeof i13.FaModule, typeof i14.KendoModule, typeof i15.AnatolyUIModule], [typeof i1.BuyAccessButtonComponent, typeof i2.SubscribePlanButtonComponent, typeof i3.OrderSummaryComponent, typeof i4.PaymentMethodsComponent, typeof i5.PaymentOptionsComponent, typeof i6.BraintreeDialog, typeof i7.PaypalButtonComponent, typeof i8.PaypalSubscribeButtonComponent, typeof i9.PayPalComponent, typeof i10.StripeDialog]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyBillingModule>;
|
|
20
21
|
}
|
|
@@ -5,5 +5,6 @@ export * from "./payment-methods/payment-methods.component";
|
|
|
5
5
|
export * from "./payment-options/payment-options.component";
|
|
6
6
|
export * from "./pm/braintree/braintree.component";
|
|
7
7
|
export * from "./pm/paypal/paypal-button.component";
|
|
8
|
+
export * from "./pm/paypal/paypal-subscribe-button.component";
|
|
8
9
|
export * from "./pm/paypal/paypal.component";
|
|
9
10
|
export * from "./pm/stripe/stripe.component";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PayPalComponent, StripeDialog } from "./exports";
|
|
2
|
-
export declare const COMPONENTS: (typeof BuyAccessButtonComponent | typeof SubscribePlanButtonComponent | typeof OrderSummaryComponent | typeof PaymentMethodsComponent | typeof PaymentOptionsComponent | typeof BraintreeDialog | typeof PaypalButtonComponent | typeof PayPalComponent | typeof StripeDialog)[];
|
|
1
|
+
import { BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PaypalSubscribeButtonComponent, PayPalComponent, StripeDialog } from "./exports";
|
|
2
|
+
export declare const COMPONENTS: (typeof BuyAccessButtonComponent | typeof SubscribePlanButtonComponent | typeof OrderSummaryComponent | typeof PaymentMethodsComponent | typeof PaymentOptionsComponent | typeof BraintreeDialog | typeof PaypalButtonComponent | typeof PaypalSubscribeButtonComponent | typeof PayPalComponent | typeof StripeDialog)[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import { ComponentBase } from '../../../../ui/components/base/components/component';
|
|
3
|
+
import { IPayPalConfig } from '../../../models/paypal-models';
|
|
4
|
+
import { SubscriptionsApiService } from '../../../../data/services/billing/subscriptions-api.service';
|
|
5
|
+
import { AppContextService } from '../../../../core/services/appcontext.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PaypalSubscribeButtonComponent extends ComponentBase {
|
|
8
|
+
private zone;
|
|
9
|
+
private appContext;
|
|
10
|
+
private api;
|
|
11
|
+
private _requestedPlanId;
|
|
12
|
+
payPalConfig?: IPayPalConfig;
|
|
13
|
+
paymentInProgress: boolean;
|
|
14
|
+
paymentFailed: boolean;
|
|
15
|
+
currentSubscriptionId: any;
|
|
16
|
+
get requestedPlanId(): any;
|
|
17
|
+
set requestedPlanId(value: any);
|
|
18
|
+
statusChange: EventEmitter<any>;
|
|
19
|
+
constructor(zone: NgZone, appContext: AppContextService, api: SubscriptionsApiService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
private setDefaults;
|
|
22
|
+
private setValues;
|
|
23
|
+
private fireStatusChange;
|
|
24
|
+
private initPayPal;
|
|
25
|
+
private addSubscription;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaypalSubscribeButtonComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaypalSubscribeButtonComponent, "anatoly-billing-paypal-subscribe-button", never, { "currentSubscriptionId": { "alias": "currentSubscriptionId"; "required": false; }; "requestedPlanId": { "alias": "requestedPlanId"; "required": false; }; }, { "statusChange": "statusChange"; }, never, never, false, never>;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osovitny/anatoly",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.123",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "17.1.2",
|
|
6
6
|
"@angular/core": "17.1.2",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"js-beautify": "1.14.11",
|
|
53
53
|
"ngx-captcha": "13.0.0",
|
|
54
54
|
"ngx-toastr": "18.0.0",
|
|
55
|
-
"ngx-paypal": "11.0.0",
|
|
56
55
|
"ngx-sharebuttons": "13.0.0",
|
|
57
56
|
"sweetalert2": "11.10.5",
|
|
58
57
|
"uuid": "9.0.1",
|