@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.
- package/esm2020/lib/data/services/billing-api.service.mjs +1 -10
- package/esm2020/lib/ui/components/base-edit.component.mjs +8 -10
- package/esm2020/lib/ui/components/base.component.mjs +4 -5
- package/esm2020/lib/ui/components/billing/buyaccess-button.component.mjs +22 -17
- package/esm2020/lib/ui/forms/components/address/address.component.mjs +30 -30
- package/esm2020/lib/ui/forms/components/company/company.component.mjs +2 -2
- package/fesm2015/osovitny-anatoly.mjs +79 -83
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +79 -83
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/data/services/billing-api.service.d.ts +0 -1
- package/lib/ui/components/base-edit.component.d.ts +4 -4
- package/lib/ui/components/base.component.d.ts +1 -1
- package/lib/ui/components/billing/buyaccess-button.component.d.ts +5 -6
- package/lib/ui/forms/components/address/address.component.d.ts +5 -5
- package/lib/ui/forms/components/company/company.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
46
|
+
* @param frmGroup
|
|
47
47
|
*/
|
|
48
48
|
setInValidError(controlName: string, frmGroup?: FormGroup): void;
|
|
49
49
|
/**
|
|
@@ -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
|
-
|
|
13
|
+
buy: EventEmitter<any>;
|
|
14
|
+
constructor(appContext: AppContextService);
|
|
16
15
|
ngOnInit(): void;
|
|
17
|
-
|
|
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
|
|
4
|
-
import { BaseEditComponent } from '../../../components
|
|
3
|
+
import { CoreApiService } from '../../../../data';
|
|
4
|
+
import { BaseEditComponent } from '../../../components';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface
|
|
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<
|
|
16
|
-
usStateData: Array<
|
|
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
|
|
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;
|