@rosoftlab/core 1.0.4-alpha-11 → 1.0.5-alpha-1

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.
Files changed (58) hide show
  1. package/fesm2022/rosoftlab-core.mjs +308 -51
  2. package/fesm2022/rosoftlab-core.mjs.map +1 -1
  3. package/package.json +9 -9
  4. package/types/rosoftlab-core.d.ts +507 -0
  5. package/index.d.ts +0 -5
  6. package/lib/auth/auth.service.d.ts +0 -29
  7. package/lib/auth/index.d.ts +0 -4
  8. package/lib/auth/provide-auth.d.ts +0 -3
  9. package/lib/auth/tokens.d.ts +0 -5
  10. package/lib/auth/user-manager.factory.d.ts +0 -5
  11. package/lib/base-components/base-form-edit.component.d.ts +0 -56
  12. package/lib/base-components/field-error-display/field-error-display.component.d.ts +0 -7
  13. package/lib/base-components/index.d.ts +0 -3
  14. package/lib/base-components/page-not-found/page-not-found.component.d.ts +0 -8
  15. package/lib/base-components/under-construction/under-construction.component.d.ts +0 -6
  16. package/lib/configurations.d.ts +0 -6
  17. package/lib/constants/symbols.d.ts +0 -1
  18. package/lib/converters/date/date.converter.d.ts +0 -5
  19. package/lib/core.d.ts +0 -10
  20. package/lib/decorators/attribute.decorator.d.ts +0 -2
  21. package/lib/decorators/base-datastore-config.decorator.d.ts +0 -1
  22. package/lib/decorators/base-model-config.decorator.d.ts +0 -1
  23. package/lib/decorators/custom.type.decorator.d.ts +0 -1
  24. package/lib/grid-layout-format.enum.d.ts +0 -12
  25. package/lib/index.d.ts +0 -26
  26. package/lib/interceptors/cache.interceptor.d.ts +0 -13
  27. package/lib/interceptors/index.d.ts +0 -1
  28. package/lib/interfaces/attribute-decorator-options.interface.d.ts +0 -8
  29. package/lib/interfaces/datastore-config.interface.d.ts +0 -8
  30. package/lib/interfaces/model-config.interface.d.ts +0 -10
  31. package/lib/interfaces/overrides.interface.d.ts +0 -5
  32. package/lib/interfaces/property-converter.interface.d.ts +0 -4
  33. package/lib/models/base-meta.model.d.ts +0 -5
  34. package/lib/models/base-query-data.d.ts +0 -7
  35. package/lib/models/base.model.d.ts +0 -31
  36. package/lib/models/error-response.model.d.ts +0 -17
  37. package/lib/models/filter-request.d.ts +0 -8
  38. package/lib/models/metadata-storage.d.ts +0 -5
  39. package/lib/models/rule.d.ts +0 -5
  40. package/lib/pipes/Nl2brPipe.pipe.d.ts +0 -7
  41. package/lib/pipes/input-error.pipe.d.ts +0 -10
  42. package/lib/providers.d.ts +0 -2
  43. package/lib/resolvers/dynamically-class-resolver.d.ts +0 -3
  44. package/lib/resolvers/dynamically-service-resolver.d.ts +0 -3
  45. package/lib/resolvers/index.d.ts +0 -2
  46. package/lib/rsl-base-module.d.ts +0 -13
  47. package/lib/services/base-datastore.service.d.ts +0 -47
  48. package/lib/services/base.service.d.ts +0 -27
  49. package/lib/services/cache.service.d.ts +0 -11
  50. package/lib/services/datastore.service.d.ts +0 -12
  51. package/lib/services/dialog.service.d.ts +0 -7
  52. package/lib/services/index.d.ts +0 -8
  53. package/lib/services/local-file.service.d.ts +0 -11
  54. package/lib/services/route-history.service.d.ts +0 -12
  55. package/lib/services/translate-loader.service.d.ts +0 -14
  56. package/lib/utils.d.ts +0 -2
  57. package/lib/validators/pattern-validator.d.ts +0 -4
  58. package/public-api.d.ts +0 -1
@@ -1,8 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class PageNotFoundComponent implements OnInit {
4
- constructor();
5
- ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<PageNotFoundComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<PageNotFoundComponent, "rsl-page-not-found", never, {}, {}, never, never, false, never>;
8
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class UnderConstructionComponent {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<UnderConstructionComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<UnderConstructionComponent, "rsl-under-construction", never, {}, {}, never, never, false, never>;
6
- }
@@ -1,6 +0,0 @@
1
- export declare class Configurations {
2
- baseUrl: string;
3
- authUrl: string;
4
- apiVersion: string;
5
- constructor();
6
- }
@@ -1 +0,0 @@
1
- export declare const AttributeMetadata: any;
@@ -1,5 +0,0 @@
1
- import { PropertyConverter } from '../../interfaces/property-converter.interface';
2
- export declare class DateConverter implements PropertyConverter {
3
- mask(value: any): any;
4
- unmask(value: any): any;
5
- }
package/lib/core.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export * from './auth';
2
- export { FieldErrorDisplayComponent, PageNotFoundComponent, UnderConstructionComponent } from './base-components';
3
- export { BaseFormEditComponent } from './base-components/base-form-edit.component';
4
- export * from './configurations';
5
- export * from './grid-layout-format.enum';
6
- export * from './index';
7
- export * from './models/metadata-storage';
8
- export * from './providers';
9
- export * from './rsl-base-module';
10
- export * from './utils';
@@ -1,2 +0,0 @@
1
- import { AttributeDecoratorOptions } from '../interfaces/attribute-decorator-options.interface';
2
- export declare function Attribute(options?: AttributeDecoratorOptions): PropertyDecorator;
@@ -1 +0,0 @@
1
- export declare function BaseDatastoreConfig(config?: any): (target: any) => void;
@@ -1 +0,0 @@
1
- export declare function BaseModelConfig(config?: any): (target: any) => void;
@@ -1 +0,0 @@
1
- export declare function CustomType(config?: any): (target: any, propertyName: string | symbol) => void;
@@ -1,12 +0,0 @@
1
- export declare enum GridLayoutFormat {
2
- none = 0,
3
- date = 1,
4
- number = 2,
5
- percent = 3,
6
- picture = 4
7
- }
8
- export declare enum CellTextAlign {
9
- left = "left",
10
- center = "center",
11
- right = "right"
12
- }
package/lib/index.d.ts DELETED
@@ -1,26 +0,0 @@
1
- export * from './auth';
2
- export * from './base-components';
3
- export * from './decorators/attribute.decorator';
4
- export * from './decorators/base-datastore-config.decorator';
5
- export * from './decorators/base-model-config.decorator';
6
- export * from './decorators/custom.type.decorator';
7
- export * from './interceptors';
8
- export * from './interfaces/attribute-decorator-options.interface';
9
- export * from './interfaces/datastore-config.interface';
10
- export * from './interfaces/model-config.interface';
11
- export * from './interfaces/overrides.interface';
12
- export * from './interfaces/property-converter.interface';
13
- export * from './models/base-meta.model';
14
- export * from './models/base-query-data';
15
- export * from './models/base.model';
16
- export * from './models/error-response.model';
17
- export * from './models/filter-request';
18
- export * from './models/rule';
19
- export * from './pipes/input-error.pipe';
20
- export * from './pipes/Nl2brPipe.pipe';
21
- export * from './providers';
22
- export * from './resolvers';
23
- export * from './rsl-base-module';
24
- export * from './services/base.service';
25
- export * from './services/local-file.service';
26
- export * from './validators/pattern-validator';
@@ -1,13 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { CacheService } from '../services/cache.service';
4
- import * as i0 from "@angular/core";
5
- export declare class CacheInterceptor implements HttpInterceptor {
6
- private expirationTime;
7
- private cacheService;
8
- private cache;
9
- constructor(expirationTime: number, cacheService: CacheService);
10
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<CacheInterceptor, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<CacheInterceptor>;
13
- }
@@ -1 +0,0 @@
1
- export * from './cache.interceptor';
@@ -1,8 +0,0 @@
1
- import { PropertyConverter } from './property-converter.interface';
2
- export interface AttributeDecoratorOptions {
3
- serializedName?: string;
4
- converter?: PropertyConverter;
5
- required?: boolean;
6
- defaultValue?: any;
7
- formSubGroup?: string;
8
- }
@@ -1,8 +0,0 @@
1
- import { Overrides } from './overrides.interface';
2
- export interface DatastoreConfig {
3
- apiVersion?: string;
4
- baseUrl?: string;
5
- models?: object;
6
- overrides?: Overrides;
7
- mock?: boolean;
8
- }
@@ -1,10 +0,0 @@
1
- import { BaseMetaModel } from '../models/base-meta.model';
2
- export interface ModelConfig {
3
- type: string;
4
- apiVersion?: string;
5
- baseUrl?: string;
6
- modelEndpointUrl?: string;
7
- meta?: BaseMetaModel;
8
- formTitle: string;
9
- bypassCache?: boolean;
10
- }
@@ -1,5 +0,0 @@
1
- export interface Overrides {
2
- getDirtyAttributes?: (attributedMetadata: any, model?: any) => object;
3
- getAllAttributes?: (attributedMetadata: any, model?: any) => object;
4
- toQueryString?: (params: any) => string;
5
- }
@@ -1,4 +0,0 @@
1
- export interface PropertyConverter {
2
- mask(value: any): any;
3
- unmask(value: any): any;
4
- }
@@ -1,5 +0,0 @@
1
- export declare class BaseMetaModel {
2
- links: Array<any>;
3
- meta: any;
4
- constructor(response: any);
5
- }
@@ -1,7 +0,0 @@
1
- export declare class BaseQueryData<T> {
2
- protected jsonApiModels: Array<T>;
3
- protected metaData?: any;
4
- constructor(jsonApiModels: Array<T>, metaData?: any);
5
- getModels(): T[];
6
- getMeta(): any;
7
- }
@@ -1,31 +0,0 @@
1
- import { HttpHeaders } from '@angular/common/http';
2
- import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { ModelConfig } from '../interfaces/model-config.interface';
5
- import { BaseDatastore, ModelType } from '../services/base-datastore.service';
6
- export declare class BaseModel {
7
- protected _datastore: BaseDatastore;
8
- highlighted: boolean;
9
- id: any;
10
- [key: string]: any;
11
- constructor(_datastore: BaseDatastore, data?: any);
12
- save(params?: any, headers?: HttpHeaders, customUrl?: string, customBody?: any): Observable<this>;
13
- patch(origModel: this, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<this>;
14
- replace(params?: any, headers?: HttpHeaders, customUrl?: string, customBody?: any): Observable<this>;
15
- get attributeMetadata(): any;
16
- set attributeMetadata(val: any);
17
- get hasDirtyAttributes(): boolean;
18
- rollbackAttributes(): void;
19
- get modelConfig(): ModelConfig;
20
- protected deserializeModel<T extends BaseModel>(modelType: ModelType<T>, data: any): T;
21
- protected transformSerializedNamesToPropertyNames<T extends BaseModel>(modelType: ModelType<T>, attributes: any): any;
22
- getModelPropertyNames(model: BaseModel): any;
23
- getModelRequiredPropertyNames(model: BaseModel): any;
24
- getModelDefaultPropertyValues(model: BaseModel): any;
25
- getModelSubGroupPropertyNames(model: BaseModel): any;
26
- getFromGroup(fb: UntypedFormBuilder): UntypedFormGroup;
27
- private getSubFromGroup;
28
- getModelFromFormGroup(formGroup: UntypedFormGroup, id?: any): void;
29
- getSerializedModel(): any;
30
- getCellClass(property: string): string;
31
- }
@@ -1,17 +0,0 @@
1
- export interface JsonBaseError {
2
- id?: string;
3
- links?: Array<any>;
4
- status?: string;
5
- code?: string;
6
- title?: string;
7
- detail?: string;
8
- source?: {
9
- pointer?: string;
10
- parameter?: string;
11
- };
12
- meta?: any;
13
- }
14
- export declare class ErrorResponse {
15
- errors?: JsonBaseError[];
16
- constructor(errors?: JsonBaseError[]);
17
- }
@@ -1,8 +0,0 @@
1
- export interface FilterRequest {
2
- page?: number;
3
- page_size?: number;
4
- filters?: string;
5
- sorts?: any;
6
- group_by?: any;
7
- distinct_columns?: any;
8
- }
@@ -1,5 +0,0 @@
1
- export declare class MetadataStorage {
2
- private static metadataMap;
3
- static getMetadata(key: string, target: object, propertyKey?: string): any;
4
- static setMetadata(key: string, value: any, target: object, propertyKey?: string): void;
5
- }
@@ -1,5 +0,0 @@
1
- export declare class Rule {
2
- rule: any;
3
- order: number;
4
- parameters: string[];
5
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class Nl2brPipe implements PipeTransform {
4
- transform(value: any, args?: any): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<Nl2brPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<Nl2brPipe, "nl2br", false>;
7
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import * as i0 from "@angular/core";
4
- export declare class InputErrorPipe implements PipeTransform {
5
- protected translate: TranslateService;
6
- constructor(translate: TranslateService);
7
- transform(value: any, filedTranslationKey: any): string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<InputErrorPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<InputErrorPipe, "inputError", false>;
10
- }
@@ -1,2 +0,0 @@
1
- export * from './services';
2
- export declare const PROVIDERS: any[];
@@ -1,3 +0,0 @@
1
- import { ResolveFn } from '@angular/router';
2
- import { BaseModel } from '../core';
3
- export declare function DynamicallyModelResolver<T extends BaseModel>(modelsImport: any, className?: string | undefined): ResolveFn<T>;
@@ -1,3 +0,0 @@
1
- import { ResolveFn } from '@angular/router';
2
- import { BaseModel, BaseService } from '../core';
3
- export declare function DynamicallyServiceResolver<T extends BaseModel, U extends BaseService<T>>(serviceImport: any, serviceName: string): ResolveFn<U>;
@@ -1,2 +0,0 @@
1
- export { DynamicallyModelResolver } from './dynamically-class-resolver';
2
- export { DynamicallyServiceResolver } from './dynamically-service-resolver';
@@ -1,13 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { Configurations } from './configurations';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- import * as i2 from "@ngx-translate/core";
6
- import * as i3 from "@angular/forms";
7
- import * as i4 from "@angular/common/http";
8
- export declare class RslBaseModule {
9
- static forRoot(config: Configurations): ModuleWithProviders<RslBaseModule>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RslBaseModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<RslBaseModule, never, [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.ReactiveFormsModule], [typeof i4.HttpClientModule, typeof i2.TranslateModule]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<RslBaseModule>;
13
- }
@@ -1,47 +0,0 @@
1
- import { HttpClient, HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { DatastoreConfig } from '../interfaces/datastore-config.interface';
4
- import { BaseQueryData } from '../models/base-query-data';
5
- import { BaseModel } from '../models/base.model';
6
- import { CacheService } from './cache.service';
7
- import * as i0 from "@angular/core";
8
- export type ModelType<T extends BaseModel> = new (datastore: BaseDatastore, data: any) => T;
9
- export declare class BaseDatastore {
10
- protected httpClient: HttpClient;
11
- protected cacheService: CacheService;
12
- protected config: DatastoreConfig;
13
- private _store;
14
- private toQueryString;
15
- private get getDirtyAttributes();
16
- get getAllAttributes(): (attributedMetadata: any, model?: any) => object;
17
- private static getDirtyAttributes;
18
- private static getAllAttributes;
19
- constructor(httpClient: HttpClient, cacheService: CacheService);
20
- findAll<T extends BaseModel>(modelType: ModelType<T>, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<BaseQueryData<T>>;
21
- findRecord<T extends BaseModel>(modelType: ModelType<T>, id?: string, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<T>;
22
- getCustom<U, T extends BaseModel>(modelType: ModelType<T>, params?: any, headers?: HttpHeaders, customUrl?: string, customResponseType?: any): Observable<U>;
23
- postCustom<U, T extends BaseModel>(modelType: ModelType<T>, body: any, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<U>;
24
- patchCustom<U, T extends BaseModel>(modelType: ModelType<T>, body: any, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<U>;
25
- createRecord<T extends BaseModel>(modelType: ModelType<T>, data?: any): T;
26
- saveRecord<T extends BaseModel>(attributesMetadata: any, model: T, params?: any, headers?: HttpHeaders, customUrl?: string, customBody?: any): Observable<T>;
27
- patchRecord<T extends BaseModel>(attributesMetadata: any, model: T, origModel: T, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<T>;
28
- replaceRecord<T extends BaseModel>(attributesMetadata: any, model: T, params?: any, headers?: HttpHeaders, customUrl?: string, customBody?: any): Observable<T>;
29
- deleteRecord<T extends BaseModel>(modelType: ModelType<T>, id: string, headers?: HttpHeaders, customUrl?: string): Observable<{}>;
30
- buildUrl<T extends BaseModel>(modelType: ModelType<T>, customUrl?: string): string;
31
- protected extractQueryData<T extends BaseModel>(res: any, modelType: ModelType<T>): BaseQueryData<T>;
32
- protected deserializeModel<T extends BaseModel>(modelType: ModelType<T>, data: any): T;
33
- protected handleError(error: HttpErrorResponse): Observable<never>;
34
- protected parseMeta(body: any, modelType: ModelType<BaseModel>): any;
35
- protected resetMetadataAttributes<T extends BaseModel>(res: T, attributesMetadata: any, modelType: ModelType<T>): T;
36
- get datastoreConfig(): DatastoreConfig;
37
- protected transformSerializedNamesToPropertyNames<T extends BaseModel>(modelType: ModelType<T>, attributes: any): any;
38
- protected getModelPropertyNames(model: BaseModel): any;
39
- buildHeaders(customHeaders?: HttpHeaders): HttpHeaders;
40
- buildParams<T extends BaseModel>(modelType: ModelType<T>, params: any): HttpParams;
41
- protected entityToModel<T extends BaseModel>(res: any, modelType: ModelType<T>, model?: T): T;
42
- private extractRecordDataJson;
43
- modelToEntity<T extends BaseModel>(model: T, attributesMetadata: any, allAttributes?: boolean): any;
44
- private _toQueryString;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseDatastore, never>;
46
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseDatastore>;
47
- }
@@ -1,27 +0,0 @@
1
- import { HttpHeaders } from '@angular/common/http';
2
- import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { BaseQueryData } from '../models/base-query-data';
5
- import { BaseModel } from '../models/base.model';
6
- import { BaseDatastore, ModelType } from './base-datastore.service';
7
- import * as i0 from "@angular/core";
8
- export declare class BaseService<T extends BaseModel> {
9
- datastore: BaseDatastore;
10
- modelType: ModelType<T>;
11
- constructor(datastore: BaseDatastore);
12
- setModelType(modelType: ModelType<T>): void;
13
- get(id?: any, customInclude?: string): Observable<T>;
14
- getAll(page: number, pageSize: number, sort?: string, filters?: string, customInclude?: string): Observable<BaseQueryData<T>>;
15
- delete(id: any): Observable<{}>;
16
- getCustom<U>(params?: any, headers?: HttpHeaders, customUrl?: string, customResponseType?: any): Observable<U>;
17
- postCustom<U>(body: any, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<U>;
18
- patchCustom<U>(body: any, params?: any, headers?: HttpHeaders, customUrl?: string): Observable<U>;
19
- save(docTypeOrFormGroup: T | UntypedFormGroup, id?: any, origModel?: T): Observable<T>;
20
- patch(docTypeOrFormGroup: T | UntypedFormGroup, origModel: T, id?: any): Observable<T>;
21
- newModel(data?: any): T;
22
- toFormGroup(fb: UntypedFormBuilder, fromModel?: T): UntypedFormGroup;
23
- fromFormGroup(formGroup: UntypedFormGroup, id?: any): T;
24
- getSelectValues(property: string): Observable<any[]>;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseService<any>, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseService<any>>;
27
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CacheService {
3
- private cache;
4
- constructor();
5
- get(key: string): any;
6
- set(key: string, data: any, expiresInMs: number): void;
7
- delete(key: string): void;
8
- clearCacheContainingKeyword(keyword: string): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<CacheService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<CacheService>;
11
- }
@@ -1,12 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Configurations } from '../configurations';
3
- import { BaseDatastore } from './base-datastore.service';
4
- import { CacheService } from './cache.service';
5
- import * as i0 from "@angular/core";
6
- export declare class DatastoreCore extends BaseDatastore {
7
- private configExt;
8
- private customConfig;
9
- constructor(http: HttpClient, cacheService: CacheService, configExt: Configurations);
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DatastoreCore, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<DatastoreCore>;
12
- }
@@ -1,7 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export interface DialogService {
3
- confirm(message?: string, text?: string, confirmButtonText?: string, cancelButtonText?: string): Observable<boolean>;
4
- showSaveMessage(message?: string, title?: string): Observable<boolean>;
5
- showRegisteredMessage(message?: string, title?: string): Observable<boolean>;
6
- showErrorMessage(e: any, message?: string): Observable<boolean>;
7
- }
@@ -1,8 +0,0 @@
1
- export * from './base-datastore.service';
2
- export * from './base.service';
3
- export * from './cache.service';
4
- export * from './datastore.service';
5
- export * from './dialog.service';
6
- export * from './local-file.service';
7
- export * from './route-history.service';
8
- export * from './translate-loader.service';
@@ -1,11 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class LocalFileService {
5
- private http;
6
- private cache;
7
- constructor(http: HttpClient);
8
- getJsonData(jsonUrl: string): Observable<any>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalFileService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalFileService>;
11
- }
@@ -1,12 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import * as i0 from "@angular/core";
3
- export declare class RouteHistoryService {
4
- private router;
5
- private previousUrl;
6
- private currentUrl;
7
- constructor(router: Router);
8
- getPreviousUrl(): string | null;
9
- getCurrentUrl(): string | null;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RouteHistoryService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<RouteHistoryService>;
12
- }
@@ -1,14 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { TranslateLoader } from '@ngx-translate/core';
3
- import { Observable } from 'rxjs';
4
- import { Configurations } from '../configurations';
5
- import * as i0 from "@angular/core";
6
- export declare class TranslateloaderService implements TranslateLoader {
7
- private httpClient;
8
- private _apiUrl;
9
- private headers;
10
- constructor(httpClient: HttpClient, config: Configurations);
11
- getTranslation(lang: string): Observable<any>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TranslateloaderService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<TranslateloaderService>;
14
- }
package/lib/utils.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare function readFileAsync(file: File): Promise<any>;
2
- export declare function getValueFromJsonData(jsonData: any, key: string): any;
@@ -1,4 +0,0 @@
1
- import { ValidationErrors, ValidatorFn } from '@angular/forms';
2
- export declare class CustomValidators {
3
- static patternValidator(regex: RegExp, error: ValidationErrors): ValidatorFn;
4
- }
package/public-api.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/core';