@smartsoft001/crud-shell-angular 2.87.0 → 2.89.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
|
@@ -6,7 +6,8 @@ import { IEntity } from '@smartsoft001/domain-core';
|
|
|
6
6
|
import * as _smartsoft001_models from '@smartsoft001/models';
|
|
7
7
|
import { IModelFilter } from '@smartsoft001/models';
|
|
8
8
|
import { TranslateService } from '@ngx-translate/core';
|
|
9
|
-
import
|
|
9
|
+
import * as _ngrx_store from '@ngrx/store';
|
|
10
|
+
import { Store, Action } from '@ngrx/store';
|
|
10
11
|
import * as i17 from '@angular/forms';
|
|
11
12
|
import * as i18 from '@angular/common';
|
|
12
13
|
import * as i19 from 'ng-dynamic-component';
|
|
@@ -614,6 +615,56 @@ declare class CrudSearchService {
|
|
|
614
615
|
static ɵprov: i0.ɵɵInjectableDeclaration<CrudSearchService>;
|
|
615
616
|
}
|
|
616
617
|
|
|
618
|
+
interface State<T extends IEntity<string>> {
|
|
619
|
+
selected?: T;
|
|
620
|
+
multiSelected?: Array<T>;
|
|
621
|
+
list?: T[];
|
|
622
|
+
totalCount?: number;
|
|
623
|
+
filter?: ICrudFilter;
|
|
624
|
+
links?: any;
|
|
625
|
+
loaded: boolean;
|
|
626
|
+
error?: string | null;
|
|
627
|
+
}
|
|
628
|
+
declare const initialState: State<any>;
|
|
629
|
+
declare function getReducer(entity: string): (state: any, action: Action) => State<any> | {
|
|
630
|
+
loaded: boolean;
|
|
631
|
+
error: any;
|
|
632
|
+
selected?: any;
|
|
633
|
+
multiSelected?: any[] | undefined;
|
|
634
|
+
list?: any[] | undefined;
|
|
635
|
+
totalCount?: number;
|
|
636
|
+
filter?: ICrudFilter;
|
|
637
|
+
links?: any;
|
|
638
|
+
} | {
|
|
639
|
+
loaded: boolean;
|
|
640
|
+
filter: any;
|
|
641
|
+
error: null;
|
|
642
|
+
totalCount: null;
|
|
643
|
+
links: null;
|
|
644
|
+
selected?: any;
|
|
645
|
+
multiSelected?: any[] | undefined;
|
|
646
|
+
list?: any[] | undefined;
|
|
647
|
+
} | {
|
|
648
|
+
loaded: boolean;
|
|
649
|
+
list: any[];
|
|
650
|
+
totalCount: any;
|
|
651
|
+
links: any;
|
|
652
|
+
error: null;
|
|
653
|
+
selected?: any;
|
|
654
|
+
multiSelected?: any[] | undefined;
|
|
655
|
+
filter?: ICrudFilter;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
declare const getCrudState: (entity: string) => _ngrx_store.MemoizedSelector<object, any, _ngrx_store.DefaultProjectorFn<any>>;
|
|
659
|
+
declare const getCrudSelected: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
660
|
+
declare const getCrudMultiSelected: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
661
|
+
declare const getCrudList: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
662
|
+
declare const getCrudTotalCount: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
663
|
+
declare const getCrudLinks: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
664
|
+
declare const getCrudLoaded: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
665
|
+
declare const getCrudFilter: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
666
|
+
declare const getCrudError: (entity: string) => _ngrx_store.MemoizedSelector<object, any, (s1: any) => any>;
|
|
667
|
+
|
|
617
668
|
/**
|
|
618
669
|
* @deprecated - please, use IModelPossibilitiesProvider from @smartsoft001/angular
|
|
619
670
|
*/
|
|
@@ -630,5 +681,5 @@ declare abstract class ICrudModelPossibilitiesProvider {
|
|
|
630
681
|
*/
|
|
631
682
|
declare const CRUD_MODEL_POSSIBILITIES_PROVIDER: InjectionToken<ICrudModelPossibilitiesProvider>;
|
|
632
683
|
|
|
633
|
-
export { CRUD_MODEL_POSSIBILITIES_PROVIDER, CrudComponentsModule, CrudConfig, CrudCoreModule, CrudFacade, CrudFullConfig, CrudFullModule, CrudItemPageBaseComponent, CrudListPageBaseComponent, CrudListPaginationFactory, CrudModule, CrudPipesModule, CrudSearchService, CrudService, ExportComponent, FilterCheckComponent, FilterComponent, FilterDateComponent, FilterDateTimeComponent, FilterDateWithEditComponent, FilterFlagComponent, FilterIntComponent, FilterRadioComponent, FilterTextComponent, FiltersComponent, FiltersConfigComponent, FormOptionsPipe, GroupComponent, ICrudModelPossibilitiesProvider, ItemComponent, ItemStandardComponent, ListComponent, ListStandardComponent, MultiselectComponent, PAGES, PageService };
|
|
634
|
-
export type { CrudCreateManyMode, ICrudCreateManyOptions, ICrudFilter, ICrudFilterQueryItem, ICrudListGroup, ICrudModuleOptionsWithRoutng, ICrudModuleOptionsWithoutRoutng };
|
|
684
|
+
export { CRUD_MODEL_POSSIBILITIES_PROVIDER, CrudComponentsModule, CrudConfig, CrudCoreModule, CrudFacade, CrudFullConfig, CrudFullModule, CrudItemPageBaseComponent, CrudListPageBaseComponent, CrudListPaginationFactory, CrudModule, CrudPipesModule, CrudSearchService, CrudService, ExportComponent, FilterCheckComponent, FilterComponent, FilterDateComponent, FilterDateTimeComponent, FilterDateWithEditComponent, FilterFlagComponent, FilterIntComponent, FilterRadioComponent, FilterTextComponent, FiltersComponent, FiltersConfigComponent, FormOptionsPipe, GroupComponent, ICrudModelPossibilitiesProvider, ItemComponent, ItemStandardComponent, ListComponent, ListStandardComponent, MultiselectComponent, PAGES, PageService, getCrudError, getCrudFilter, getCrudLinks, getCrudList, getCrudLoaded, getCrudMultiSelected, getCrudSelected, getCrudState, getCrudTotalCount, getReducer, initialState };
|
|
685
|
+
export type { CrudCreateManyMode, ICrudCreateManyOptions, ICrudFilter, ICrudFilterQueryItem, ICrudListGroup, ICrudModuleOptionsWithRoutng, ICrudModuleOptionsWithoutRoutng, State };
|