sf-crud 13.0.4 → 13.0.6

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.
@@ -5,18 +5,21 @@ import { MenuItem } from 'primeng/api';
5
5
  import { Router } from '@angular/router';
6
6
  import { SfCrudService } from '../../sf-crud.service';
7
7
  import { StepService } from '../../shared/services/step.service';
8
+ import { CrudDialogService } from '../../shared/services/dialog.service';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class TableroComponent implements OnInit, OnChanges {
10
11
  private generalService;
11
12
  private router;
12
13
  private sfCrudService;
13
14
  private stepService;
15
+ private dialogService;
14
16
  opciones: any[];
15
17
  idEntidad: string;
16
18
  idKatios: string;
17
19
  environment?: any;
18
20
  user: any;
19
21
  dataExt: any;
22
+ showCreateButton: boolean;
20
23
  onSelectAction: EventEmitter<any>;
21
24
  color2: string;
22
25
  colorButtons: string;
@@ -32,13 +35,17 @@ export declare class TableroComponent implements OnInit, OnChanges {
32
35
  };
33
36
  itemSelected: any;
34
37
  private loading;
35
- constructor(generalService: GeneralService, router: Router, sfCrudService: SfCrudService, stepService: StepService);
38
+ optionsMap: Map<string, any>;
39
+ constructor(generalService: GeneralService, router: Router, sfCrudService: SfCrudService, stepService: StepService, dialogService: CrudDialogService);
36
40
  ngOnInit(): void;
37
41
  ngOnChanges(changes: SimpleChanges): void;
38
42
  loadConfigCrud(): void;
39
43
  customizeCompany(uiEsquemas: any[]): void;
40
44
  getInfoTablero(): void;
41
45
  generateData(data: any[]): void;
46
+ initFilterOptions(): void;
47
+ verifyCreateButton(): void;
48
+ generateFilterOptions(col: any): void;
42
49
  getValue(path: string, item: any): any;
43
50
  externalLinkAction(): void;
44
51
  loadOptions(): void;
@@ -49,6 +56,7 @@ export declare class TableroComponent implements OnInit, OnChanges {
49
56
  }[], endpoint: string, data?: any): string;
50
57
  execAction(params: any): void;
51
58
  onGlobalFilter(event: Event, dt: any): void;
59
+ showAddDialog(): void;
52
60
  static ɵfac: i0.ɵɵFactoryDeclaration<TableroComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<TableroComponent, "sf-crudtablero", never, { "opciones": { "alias": "opciones"; "required": false; }; "idEntidad": { "alias": "idEntidad"; "required": false; }; "idKatios": { "alias": "idKatios"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "user": { "alias": "user"; "required": false; }; "dataExt": { "alias": "dataExt"; "required": false; }; }, { "onSelectAction": "onSelectAction"; }, never, never, false, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableroComponent, "sf-crudtablero", never, { "opciones": { "alias": "opciones"; "required": false; }; "idEntidad": { "alias": "idEntidad"; "required": false; }; "idKatios": { "alias": "idKatios"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "user": { "alias": "user"; "required": false; }; "dataExt": { "alias": "dataExt"; "required": false; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; }; }, { "onSelectAction": "onSelectAction"; }, never, never, false, never>;
54
62
  }
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ import { DialogEntry } from "../models/dialog.model";
3
+ export declare const APP_DIALOG_COMPONENT: InjectionToken<DialogEntry[]>;
@@ -17,6 +17,8 @@ export declare class ConfigTablero {
17
17
  key: string;
18
18
  scope?: string;
19
19
  }[];
20
+ createButton?: any;
21
+ dialog: any;
20
22
  }
21
23
  export declare class ConfigRegistro {
22
24
  operations: Operation[];
@@ -0,0 +1,8 @@
1
+ import { Type } from "@angular/core";
2
+ export interface LibConfig {
3
+ entries: DialogEntry[];
4
+ }
5
+ export interface DialogEntry {
6
+ key: string;
7
+ component: Type<any>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { DialogEntry } from '../models/dialog.model';
2
+ import { DialogService } from 'primeng/dynamicdialog';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CrudDialogService {
5
+ dialogService: DialogService;
6
+ private dialogMap;
7
+ constructor(dialogs: DialogEntry[] | undefined, dialogService: DialogService);
8
+ showDialog(key: string, config?: any): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<CrudDialogService, [{ optional: true; }, null]>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<CrudDialogService>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sf-crud",
3
- "version": "13.0.4",
3
+ "version": "13.0.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",
package/public-api.d.ts CHANGED
@@ -10,3 +10,4 @@ export * from './lib/shared/services/notification.service';
10
10
  export * from './lib/shared/models/crud-config.model';
11
11
  export * from './lib/shared/models/Empresa.model';
12
12
  export * from './lib/shared/models/shema.model';
13
+ export * from './lib/shared/injections/token';