@osovitny/anatoly 2.14.16 → 2.14.18

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.
@@ -6,7 +6,6 @@ export declare class BillingApiService extends BaseApiService {
6
6
  constructor(http: HttpClient);
7
7
  requestNewSubscription(requestedPlan: Number, success?: Function, error?: Function): void;
8
8
  cancelRequestedSubscription(success?: Function, error?: Function): void;
9
- buyAccess(requestedPlan: Number, success?: Function, error?: Function): void;
10
9
  static ɵfac: i0.ɵɵFactoryDeclaration<BillingApiService, never>;
11
10
  static ɵprov: i0.ɵɵInjectableDeclaration<BillingApiService>;
12
11
  }
@@ -17,13 +17,13 @@ export declare abstract class BaseEditComponent extends BaseComponent {
17
17
  * Add control to form group
18
18
  * @param name
19
19
  * @param formControl
20
- * @param formGroup
20
+ * @param frmGroup
21
21
  */
22
22
  addControl(name: string, formControl: AbstractControl, frmGroup?: FormGroup): void;
23
23
  /**
24
24
  * Removes control from form group
25
25
  * @param name
26
- * @param formGroup
26
+ * @param frmGroup
27
27
  */
28
28
  removeControl(name: string, frmGroup?: FormGroup): void;
29
29
  /**
@@ -37,13 +37,13 @@ export declare abstract class BaseEditComponent extends BaseComponent {
37
37
  * Set error to control
38
38
  * @param controlName formControl name
39
39
  * @param err error expect {erroname: boolean} format
40
- * @param formGroup Specific form group. default it will apply on this.formGroup property
40
+ * @param frmGroup
41
41
  */
42
42
  setControlError(controlName: string, err: {}, frmGroup?: FormGroup): void;
43
43
  /**
44
44
  * Set {invalid: true} for the specified form
45
45
  * @param controlName form control name
46
- * @param formGroup
46
+ * @param frmGroup
47
47
  */
48
48
  setInValidError(controlName: string, frmGroup?: FormGroup): void;
49
49
  /**
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy } from "@angular/core";
2
- import { Subs } from "../../core/subs";
2
+ import { Subs } from "../../core";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare abstract class BaseComponent implements OnDestroy {
5
5
  protected subs: Subs;
@@ -1,10 +1,8 @@
1
- import { OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { AppContextService } from '../../../core/services/appcontext.service';
3
- import { BillingApiService } from '../../../data/services/billing-api.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class BuyAccessButtonComponent implements OnInit {
6
5
  private appContext;
7
- private api;
8
6
  contextUpdated: boolean;
9
7
  isUserSignedIn: boolean;
10
8
  currentPlan: number;
@@ -12,9 +10,10 @@ export declare class BuyAccessButtonComponent implements OnInit {
12
10
  plan: number;
13
11
  plantitle: string;
14
12
  visibleIfUserSignedIn: boolean;
15
- constructor(appContext: AppContextService, api: BillingApiService);
13
+ buy: EventEmitter<any>;
14
+ constructor(appContext: AppContextService);
16
15
  ngOnInit(): void;
17
- onBuyPlan(): void;
16
+ onBuyAccess(): void;
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<BuyAccessButtonComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<BuyAccessButtonComponent, "anatoly-buyaccess-button", never, { "plan": "plan"; "plantitle": "plantitle"; "visibleIfUserSignedIn": "visibleIfUserSignedIn"; }, {}, never, never, false>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuyAccessButtonComponent, "anatoly-buyaccess-button", never, { "plan": "plan"; "plantitle": "plantitle"; "visibleIfUserSignedIn": "visibleIfUserSignedIn"; }, { "buy": "buy"; }, never, never, false>;
20
19
  }
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { CoreApiService } from '../../../../data/services/core-api.service';
4
- import { BaseEditComponent } from '../../../components/base-edit.component';
3
+ import { CoreApiService } from '../../../../data';
4
+ import { BaseEditComponent } from '../../../components';
5
5
  import * as i0 from "@angular/core";
6
- interface CountryUsStateState {
6
+ interface CodeName {
7
7
  code: string;
8
8
  name: string;
9
9
  }
@@ -12,8 +12,8 @@ export declare class AddressComponent extends BaseEditComponent implements OnIni
12
12
  private api;
13
13
  private _address;
14
14
  formGroupGenerated: boolean;
15
- countryData: Array<CountryUsStateState>;
16
- usStateData: Array<CountryUsStateState>;
15
+ countryData: Array<CodeName>;
16
+ usStateData: Array<CodeName>;
17
17
  currentCountry: string;
18
18
  currentUSState: string;
19
19
  title: string;
@@ -1,6 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { BaseEditComponent } from '../../../components/base-edit.component';
3
+ import { BaseEditComponent } from '../../../components';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CompanyComponent extends BaseEditComponent implements OnInit {
6
6
  private fb;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovitny/anatoly",
3
- "version": "2.14.16",
3
+ "version": "2.14.18",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "14.0.6",
6
6
  "@angular/core": "14.0.6"