@osovitny/anatoly 3.17.82 → 3.17.83
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/core/services/appcontext.service.mjs +2 -1
- package/esm2022/lib/data/data.module.mjs +7 -1
- package/esm2022/lib/data/exports.mjs +3 -1
- package/esm2022/lib/data/services/billing/currencies-api.service.mjs +41 -0
- package/esm2022/lib/data/services/billing/currencies-storage.service.mjs +92 -0
- package/fesm2022/osovitny-anatoly.mjs +128 -1
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/data/exports.d.ts +2 -0
- package/lib/data/services/billing/currencies-api.service.d.ts +12 -0
- package/lib/data/services/billing/currencies-storage.service.d.ts +22 -0
- package/lib/ui/components/index.d.ts +1 -1
- package/lib/ui/forms/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/data/exports.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './base/api.service';
|
|
2
2
|
export * from './base/grid/grid-read.service';
|
|
3
3
|
export * from './base/grid/grid-edit.service';
|
|
4
|
+
export * from './services/billing/currencies-api.service';
|
|
5
|
+
export * from './services/billing/currencies-storage.service';
|
|
4
6
|
export * from './services/billing/discountcodes-api.service';
|
|
5
7
|
export * from './services/billing/payments-api.service';
|
|
6
8
|
export * from './services/core-api.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ApiServiceBase } from '../../base/api.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CurrenciesApiService extends ApiServiceBase {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
getCurrencies(): Observable<any>;
|
|
9
|
+
getRates(): Observable<any>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrenciesApiService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrenciesApiService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CurrenciesApiService } from './currencies-api.service';
|
|
2
|
+
import { AppContextService } from '../../../core/services/appcontext.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CurrenciesStorageService {
|
|
5
|
+
private appContext;
|
|
6
|
+
private api;
|
|
7
|
+
rates: any;
|
|
8
|
+
private _currencyUpdated;
|
|
9
|
+
private _ratesLoaded;
|
|
10
|
+
readonly currencyUpdated$: import("rxjs").Observable<string>;
|
|
11
|
+
readonly ratesLoaded$: import("rxjs").Observable<string>;
|
|
12
|
+
defaultCurrency: string;
|
|
13
|
+
constructor(appContext: AppContextService, api: CurrenciesApiService);
|
|
14
|
+
private setValues;
|
|
15
|
+
private fireUpdated;
|
|
16
|
+
private fireRatesLoaded;
|
|
17
|
+
changeCurrency(currency: string): void;
|
|
18
|
+
toDisplayPrice(price: any): any;
|
|
19
|
+
get currentCurrencyRateOrDefault(): any;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrenciesStorageService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrenciesStorageService>;
|
|
22
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { BuyAccessButtonComponent, SubscribePlanButtonComponent, CardComponent, CheckIconComponent, Copy2ClipboardComponent, CountryDropdownlist, TimezoneDropdownlist, NodataComponent, PageSpinnerComponent, LoadingComponent } from './exports';
|
|
2
|
-
export declare const MAIN_COMPONENTS: (typeof
|
|
2
|
+
export declare const MAIN_COMPONENTS: (typeof BuyAccessButtonComponent | typeof SubscribePlanButtonComponent | typeof CheckIconComponent | typeof NodataComponent | typeof LoadingComponent | typeof PageSpinnerComponent | typeof Copy2ClipboardComponent | typeof CountryDropdownlist | typeof TimezoneDropdownlist | typeof CardComponent)[];
|
package/lib/ui/forms/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AddressComponent, CompanyComponent, ContactUsForm } from './exports';
|
|
2
|
-
export declare const FORMS: (typeof
|
|
2
|
+
export declare const FORMS: (typeof AddressComponent | typeof ContactUsForm | typeof CompanyComponent)[];
|