@osovitny/anatoly 3.19.33 → 3.19.35

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.
@@ -1,2 +1,2 @@
1
1
  import { BuyAccessButtonComponent, SubscribePlanButtonComponent, OrderSummaryComponent, PaymentMethodsComponent, PaymentOptionsComponent, BraintreeDialog, PaypalButtonComponent, PaypalSubscribeButtonComponent, PayPalComponent, StripeDialog } from "./exports";
2
- export declare const COMPONENTS: (typeof StripeDialog | typeof PaypalSubscribeButtonComponent | typeof PaypalButtonComponent | typeof BraintreeDialog | typeof BuyAccessButtonComponent | typeof SubscribePlanButtonComponent | typeof OrderSummaryComponent | typeof PaymentMethodsComponent | typeof PaymentOptionsComponent | typeof PayPalComponent)[];
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)[];
@@ -28,6 +28,7 @@ export declare class BillingService {
28
28
  paymentFailed(stage: PaymentStage): void;
29
29
  setPaymentProgress(stage: PaymentStage, paymentInProgress: any, isPaymentFailed: any): void;
30
30
  addSubscription(sp: SubscriptionProvider, newSubscriptionId: any, planId: any, addons: any, subtotal: any, promoCode: any, total: any, currency: any): void;
31
+ addFreeSubscription(planId: any, addons: any, subtotal: any, promoCode: any, total: any, currency: any): void;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<BillingService, never>;
32
33
  static ɵprov: i0.ɵɵInjectableDeclaration<BillingService>;
33
34
  }
@@ -3,4 +3,6 @@ export declare const AppContextStorageKeys: {
3
3
  currency: string;
4
4
  countries: string;
5
5
  languages: string;
6
+ timezones: string;
7
+ usStates: string;
6
8
  };
@@ -10,18 +10,26 @@ export declare class AppContextService extends ApiServiceBase {
10
10
  private storageKeyName;
11
11
  private subscription;
12
12
  private _updated;
13
- private _userUpdated;
14
13
  readonly updated$: Observable<any>;
14
+ private _userUpdated;
15
15
  readonly userUpdated$: Observable<any>;
16
+ private _jsonFilesLoaded;
17
+ readonly jsonFilesLoaded$: Observable<any>;
16
18
  constructor(http: HttpClient, localStorage: LocalStorageService, sessionStorage: SessionStorageService);
17
19
  private fireUpdated;
18
20
  protected fireUserUpdated(): void;
21
+ private fireJsonFilesLoaded;
22
+ private getCountriesJsonFile;
23
+ private getLanguagesJsonFile;
24
+ private getTimezonesJsonFile;
25
+ private getUSStatesJsonFile;
19
26
  private getCurrent4Session;
20
27
  private setCurrent2Session;
21
28
  private dataReceived;
22
29
  private getCurrentContext;
23
30
  private updateCurrentIfExpired;
24
31
  init(context?: any): void;
32
+ loadStandardJsonFiles(): Observable<any>;
25
33
  loadRequiredJsonFiles(): Observable<any>;
26
34
  loadRequiredItems(): Observable<any>;
27
35
  updateCurrent(): void;
@@ -42,6 +50,12 @@ export declare class AppContextService extends ApiServiceBase {
42
50
  get languages(): any;
43
51
  set languages(value: any);
44
52
  clearLanguages(): void;
53
+ get timezones(): any;
54
+ set timezones(value: any);
55
+ clearTimezones(): void;
56
+ get usStates(): any;
57
+ set usStates(value: any);
58
+ clearUSStates(): void;
45
59
  static ɵfac: i0.ɵɵFactoryDeclaration<AppContextService, never>;
46
60
  static ɵprov: i0.ɵɵInjectableDeclaration<AppContextService>;
47
61
  }
@@ -7,6 +7,7 @@ export declare class SubscriptionsApiService extends ApiServiceBase {
7
7
  constructor(http: HttpClient);
8
8
  getSubscriptions(data: any): Observable<any[]>;
9
9
  addSubscription(subscriptionProvider: any, newSubscriptionId: any, planId: any, addons: any, subtotal: any, promoCode: any, total: any, currency: any, success?: Function, error?: Function): void;
10
+ addFreeSubscription(planId: any, addons: any, subtotal: any, promoCode: any, total: any, currency: any, success?: Function, error?: Function): void;
10
11
  cancelSubscription(subscriptionProvider: any, subscriptionId: any, success?: Function, error?: Function): void;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionsApiService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionsApiService>;
@@ -1,13 +1,9 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
2
  import { ApiServiceBase } from '../base/api.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class CoreApiService extends ApiServiceBase {
6
5
  protected http: HttpClient;
7
6
  constructor(http: HttpClient);
8
- getTimezonesJsonFile(): Observable<any>;
9
- getCountriesJsonFile(): Observable<any>;
10
- getUSStatesJsonFile(): Observable<any>;
11
7
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreApiService, never>;
12
8
  static ɵprov: i0.ɵɵInjectableDeclaration<CoreApiService>;
13
9
  }
@@ -1,11 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { EditComponentBase } from '../../base/components/edit.component';
3
- import { CoreApiService } from '../../../../data/services/core-api.service';
3
+ import { AppContextService } from '../../../../core/services/appcontext.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CountryDropdownlist extends EditComponentBase implements OnInit {
6
- private api;
6
+ private appContext;
7
7
  items: any;
8
- constructor(api: CoreApiService);
8
+ constructor(appContext: AppContextService);
9
9
  ngOnInit(): void;
10
10
  setValues(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CountryDropdownlist, never>;
@@ -1,14 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { EditComponentBase } from '../../base/components/edit.component';
3
3
  import { AppContextService } from '../../../../core/services/appcontext.service';
4
- import { CoreApiService } from '../../../../data/services/core-api.service';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class TimezoneDropdownlist extends EditComponentBase implements OnInit {
7
- private api;
8
6
  private appContext;
9
7
  items: any;
10
8
  disabled: boolean;
11
- constructor(api: CoreApiService, appContext: AppContextService);
9
+ constructor(appContext: AppContextService);
12
10
  ngOnInit(): void;
13
11
  setValues(): void;
14
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneDropdownlist, never>;
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { CoreApiService } from '../../../../data/exports';
4
- import { EditComponentBase } from '../../../components/exports';
3
+ import { EditComponentBase } from '../../../components/base/components/edit.component';
4
+ import { AppContextService } from '../../../../core/services/appcontext.service';
5
5
  import * as i0 from "@angular/core";
6
6
  interface CodeName {
7
7
  code: string;
@@ -9,7 +9,7 @@ interface CodeName {
9
9
  }
10
10
  export declare class AddressComponent extends EditComponentBase implements OnInit {
11
11
  private fb;
12
- private api;
12
+ private appContext;
13
13
  private _address;
14
14
  formGroupGenerated: boolean;
15
15
  countryData: Array<CodeName>;
@@ -19,7 +19,7 @@ export declare class AddressComponent extends EditComponentBase implements OnIni
19
19
  get address(): any;
20
20
  set address(value: any);
21
21
  change: EventEmitter<any>;
22
- constructor(fb: FormBuilder, api: CoreApiService);
22
+ constructor(fb: FormBuilder, appContext: AppContextService);
23
23
  ngOnInit(): void;
24
24
  private createFormGroup;
25
25
  private init;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "3.19.33",
3
+ "version": "3.19.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.11",
6
6
  "@angular/core": "19.2.11",