@smartsoft001/crud-shell-angular 2.92.0 → 2.93.0
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/index.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ import * as _smartsoft001_models from '@smartsoft001/models';
|
|
|
7
7
|
import { IModelFilter } from '@smartsoft001/models';
|
|
8
8
|
import { TranslateService } from '@ngx-translate/core';
|
|
9
9
|
import * as _ngrx_store from '@ngrx/store';
|
|
10
|
-
import { Store, Action } from '@ngrx/store';
|
|
10
|
+
import { Store, ActionsSubject, State as State$1, Action } from '@ngrx/store';
|
|
11
11
|
import * as i17 from '@angular/forms';
|
|
12
12
|
import * as i18 from '@angular/common';
|
|
13
13
|
import * as i19 from 'ng-dynamic-component';
|
|
14
|
+
import { HttpClient } from '@angular/common/http';
|
|
14
15
|
import { Subscription, Observable } from 'rxjs';
|
|
15
16
|
import * as i7 from '@angular/router';
|
|
16
|
-
import { HttpClient } from '@angular/common/http';
|
|
17
17
|
|
|
18
18
|
declare class ExportComponent<T extends IEntity<string>> extends BaseComponent$1 implements OnInit {
|
|
19
19
|
private facade;
|
|
@@ -395,7 +395,49 @@ declare class CrudComponentsModule {
|
|
|
395
395
|
static ɵinj: i0.ɵɵInjectorDeclaration<CrudComponentsModule>;
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
declare class
|
|
398
|
+
declare class CrudService<T extends IEntity<string>> {
|
|
399
|
+
protected config: CrudConfig<any>;
|
|
400
|
+
protected http: HttpClient;
|
|
401
|
+
protected _formatMap: {
|
|
402
|
+
csv: string;
|
|
403
|
+
xlsx: string;
|
|
404
|
+
};
|
|
405
|
+
create(item: T): Promise<string>;
|
|
406
|
+
createMany(items: Array<T>, options: ICrudCreateManyOptions): Promise<void>;
|
|
407
|
+
getById(id: string): Promise<T>;
|
|
408
|
+
getList<T>(filter?: ICrudFilter | null): Promise<{
|
|
409
|
+
data: T[];
|
|
410
|
+
totalCount: number;
|
|
411
|
+
links: any;
|
|
412
|
+
}>;
|
|
413
|
+
exportList(filter: (ICrudFilter | null) | undefined, format: 'csv' | 'xlsx'): Promise<void>;
|
|
414
|
+
update(item: T): Promise<void>;
|
|
415
|
+
updatePartial(item: Partial<T> & {
|
|
416
|
+
id: string;
|
|
417
|
+
}): Promise<void>;
|
|
418
|
+
updatePartialMany(items: (Partial<T> & {
|
|
419
|
+
id: string;
|
|
420
|
+
})[]): Promise<any>;
|
|
421
|
+
delete(id: string): Promise<void>;
|
|
422
|
+
protected getQuery(filter: ICrudFilter): string;
|
|
423
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudService<any>, never>;
|
|
424
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrudService<any>>;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
declare class CrudEffects<T extends IEntity<string>> {
|
|
428
|
+
private actions$;
|
|
429
|
+
private service;
|
|
430
|
+
private config;
|
|
431
|
+
private store;
|
|
432
|
+
private state;
|
|
433
|
+
constructor(actions$: ActionsSubject, service: CrudService<T>, config: CrudConfig<T>, store: Store<any>, state: State$1<any>);
|
|
434
|
+
init(): void;
|
|
435
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudEffects<any>, never>;
|
|
436
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrudEffects<any>>;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare class CrudCoreModule<T extends IEntity<string>> {
|
|
440
|
+
constructor(config: CrudConfig<T>, effects: CrudEffects<any>);
|
|
399
441
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrudCoreModule, never>;
|
|
400
442
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudCoreModule, never, [typeof _smartsoft001_angular.SharedModule, typeof CrudPipesModule, typeof i17.FormsModule, typeof i18.CommonModule, typeof CrudComponentsModule], [typeof CrudComponentsModule]>;
|
|
401
443
|
static ɵinj: i0.ɵɵInjectorDeclaration<CrudCoreModule>;
|
|
@@ -546,6 +588,7 @@ declare class ListStandardComponent<T extends IEntity<string>> extends CrudListP
|
|
|
546
588
|
|
|
547
589
|
declare const PAGES: (typeof ItemStandardComponent | typeof ItemComponent | typeof ListStandardComponent | typeof ListComponent)[];
|
|
548
590
|
declare class CrudFullModule<T extends IEntity<string>> {
|
|
591
|
+
constructor(config: CrudConfig<T>, effects: CrudEffects<any>);
|
|
549
592
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullModule, never>;
|
|
550
593
|
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudFullModule, never, [typeof ItemComponent, typeof ListComponent, typeof ListStandardComponent, typeof ItemStandardComponent, typeof _smartsoft001_angular.SharedModule, typeof CrudPipesModule, typeof i7.RouterModule, typeof i17.FormsModule, typeof i18.CommonModule, typeof CrudComponentsModule], [typeof ItemComponent, typeof ListComponent, typeof ListStandardComponent, typeof ItemStandardComponent, typeof CrudComponentsModule]>;
|
|
551
594
|
static ɵinj: i0.ɵɵInjectorDeclaration<CrudFullModule>;
|
|
@@ -565,35 +608,6 @@ declare class CrudListPaginationFactory<T extends IEntity<string>> {
|
|
|
565
608
|
static ɵprov: i0.ɵɵInjectableDeclaration<CrudListPaginationFactory<any>>;
|
|
566
609
|
}
|
|
567
610
|
|
|
568
|
-
declare class CrudService<T extends IEntity<string>> {
|
|
569
|
-
protected config: CrudConfig<any>;
|
|
570
|
-
protected http: HttpClient;
|
|
571
|
-
protected _formatMap: {
|
|
572
|
-
csv: string;
|
|
573
|
-
xlsx: string;
|
|
574
|
-
};
|
|
575
|
-
create(item: T): Promise<string>;
|
|
576
|
-
createMany(items: Array<T>, options: ICrudCreateManyOptions): Promise<void>;
|
|
577
|
-
getById(id: string): Promise<T>;
|
|
578
|
-
getList<T>(filter?: ICrudFilter | null): Promise<{
|
|
579
|
-
data: T[];
|
|
580
|
-
totalCount: number;
|
|
581
|
-
links: any;
|
|
582
|
-
}>;
|
|
583
|
-
exportList(filter: (ICrudFilter | null) | undefined, format: 'csv' | 'xlsx'): Promise<void>;
|
|
584
|
-
update(item: T): Promise<void>;
|
|
585
|
-
updatePartial(item: Partial<T> & {
|
|
586
|
-
id: string;
|
|
587
|
-
}): Promise<void>;
|
|
588
|
-
updatePartialMany(items: (Partial<T> & {
|
|
589
|
-
id: string;
|
|
590
|
-
})[]): Promise<any>;
|
|
591
|
-
delete(id: string): Promise<void>;
|
|
592
|
-
protected getQuery(filter: ICrudFilter): string;
|
|
593
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CrudService<any>, never>;
|
|
594
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CrudService<any>>;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
611
|
declare class PageService<T> {
|
|
598
612
|
private authService;
|
|
599
613
|
private config;
|