@smartsoft001/crud-shell-angular 2.92.0 → 2.94.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;
@@ -365,8 +365,8 @@ declare class GroupComponent<T extends IEntity<string>> extends BaseComponent$1
365
365
  private styleService;
366
366
  private elementRef;
367
367
  private groupService;
368
- readonly groups: InputSignal<Array<ICrudListGroup> | undefined>;
369
- readonly listOptions: InputSignal<IListOptions<T> | undefined>;
368
+ readonly groups: InputSignal<Array<ICrudListGroup> | null>;
369
+ readonly listOptions: InputSignal<IListOptions<T> | null>;
370
370
  change(val: boolean, item: ICrudListGroup, force?: boolean): void;
371
371
  ngOnInit(): void;
372
372
  ngOnDestroy(): void;
@@ -395,7 +395,49 @@ declare class CrudComponentsModule {
395
395
  static ɵinj: i0.ɵɵInjectorDeclaration<CrudComponentsModule>;
396
396
  }
397
397
 
398
- declare class CrudCoreModule {
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>;
@@ -496,7 +538,7 @@ declare abstract class CrudListPageBaseComponent<T extends IEntity<string>> exte
496
538
  config: CrudFullConfig<T>;
497
539
  static smartType: DynamicComponentType;
498
540
  contentTpl: i0.Signal<ViewContainerRef | undefined>;
499
- listOptions: i0.InputSignal<IListOptions<T> | undefined>;
541
+ listOptions: i0.InputSignal<IListOptions<T> | null | undefined>;
500
542
  static ɵfac: i0.ɵɵFactoryDeclaration<CrudListPageBaseComponent<any>, never>;
501
543
  static ɵdir: i0.ɵɵDirectiveDeclaration<CrudListPageBaseComponent<any>, never, never, { "listOptions": { "alias": "listOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
502
544
  }
@@ -515,17 +557,13 @@ declare class ListComponent<T extends IEntity<string>> extends ListComponent_bas
515
557
  config: CrudFullConfig<T>;
516
558
  private searchService;
517
559
  private _cleanMultiSelected$;
518
- pageOptions: Signal<IPageOptions>;
519
- listOptions: WritableSignal<IListOptions<T>>;
520
- links: {
521
- next: any;
522
- prev: any;
523
- };
560
+ pageOptions: WritableSignal<IPageOptions | null>;
561
+ listOptions: WritableSignal<IListOptions<T> | null>;
562
+ links: Signal<any>;
524
563
  filter: Signal<ICrudFilter | undefined>;
525
564
  topTpl: Signal<ViewContainerRef | undefined>;
526
565
  contentTpl: Signal<TemplateRef<any> | undefined>;
527
566
  dynamicContents: Signal<readonly DynamicContentDirective[]>;
528
- constructor();
529
567
  refreshProperties(): void;
530
568
  ngOnInit(): Promise<void>;
531
569
  private initCloseMenu;
@@ -546,6 +584,7 @@ declare class ListStandardComponent<T extends IEntity<string>> extends CrudListP
546
584
 
547
585
  declare const PAGES: (typeof ItemStandardComponent | typeof ItemComponent | typeof ListStandardComponent | typeof ListComponent)[];
548
586
  declare class CrudFullModule<T extends IEntity<string>> {
587
+ constructor(config: CrudConfig<T>, effects: CrudEffects<any>);
549
588
  static ɵfac: i0.ɵɵFactoryDeclaration<CrudFullModule, never>;
550
589
  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
590
  static ɵinj: i0.ɵɵInjectorDeclaration<CrudFullModule>;
@@ -565,35 +604,6 @@ declare class CrudListPaginationFactory<T extends IEntity<string>> {
565
604
  static ɵprov: i0.ɵɵInjectableDeclaration<CrudListPaginationFactory<any>>;
566
605
  }
567
606
 
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
607
  declare class PageService<T> {
598
608
  private authService;
599
609
  private config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/crud-shell-angular",
3
- "version": "2.92.0",
3
+ "version": "2.94.0",
4
4
  "description": "Utils and Angular components",
5
5
  "repository": {
6
6
  "type": "git",