sf-crud 12.0.3 → 12.0.5
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/bundles/sf-crud.umd.js +96 -22
- package/bundles/sf-crud.umd.js.map +1 -1
- package/esm2015/lib/components/control/control.component.js +2 -2
- package/esm2015/lib/components/registro/registro.component.js +58 -15
- package/esm2015/lib/components/registro-child/registro-child.component.js +25 -7
- package/esm2015/lib/shared/models/crud-config.model.js +3 -1
- package/fesm2015/sf-crud.js +84 -21
- package/fesm2015/sf-crud.js.map +1 -1
- package/lib/components/registro/registro.component.d.ts +6 -3
- package/lib/components/registro-child/registro-child.component.d.ts +1 -0
- package/lib/shared/models/crud-config.model.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ConfigRegistro, CrudConfig, Operations, RequestChecking } from '../../shared/models/crud-config.model';
|
|
2
|
+
import { ConfigRegistro, CrudConfig, Key, Operations, RequestChecking } from '../../shared/models/crud-config.model';
|
|
3
3
|
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
4
|
import { GeneralService } from '../../shared/services/general.service';
|
|
5
5
|
import { Message, MessageService } from 'primeng/api';
|
|
@@ -18,6 +18,7 @@ export declare class RegistroComponent implements OnInit {
|
|
|
18
18
|
trx: string;
|
|
19
19
|
id: string;
|
|
20
20
|
user: any;
|
|
21
|
+
dataExt: any;
|
|
21
22
|
sendData: EventEmitter<any>;
|
|
22
23
|
onSubmit: EventEmitter<any>;
|
|
23
24
|
private dataTemp;
|
|
@@ -52,7 +53,8 @@ export declare class RegistroComponent implements OnInit {
|
|
|
52
53
|
generateMessage(currentMsg: Message | any, rta: any, requestChecking?: RequestChecking): void;
|
|
53
54
|
validateData(): boolean;
|
|
54
55
|
validateDataLocal(): boolean;
|
|
55
|
-
setDefaultValue(value:
|
|
56
|
+
setDefaultValue(value: any): any;
|
|
57
|
+
getValueKey(key: Key): any;
|
|
56
58
|
sendNotification(message: Message): void;
|
|
57
59
|
addObjectArray(element: any): void;
|
|
58
60
|
editRow(element: any, data: any, index: number): void;
|
|
@@ -66,7 +68,8 @@ export declare class RegistroComponent implements OnInit {
|
|
|
66
68
|
}): void;
|
|
67
69
|
setDataTemp(esquema: Shema, dataTemp: any[]): void;
|
|
68
70
|
applyValuesFromObject(event: any): void;
|
|
71
|
+
setValueByScope(scope: string, newVal: any): void;
|
|
69
72
|
aplyFormatValue(scope: string, value: any): any;
|
|
70
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegistroComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RegistroComponent, "sf-registro", never, { "idKatios": "idKatios"; "idEntidad": "idEntidad"; "trx": "trx"; "id": "id"; "user": "user"; }, { "sendData": "sendData"; "onSubmit": "onSubmit"; }, never, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegistroComponent, "sf-registro", never, { "idKatios": "idKatios"; "idEntidad": "idEntidad"; "trx": "trx"; "id": "id"; "user": "user"; "dataExt": "dataExt"; }, { "sendData": "sendData"; "onSubmit": "onSubmit"; }, never, never>;
|
|
72
75
|
}
|
|
@@ -40,6 +40,7 @@ export declare class RegistroChildComponent implements OnInit {
|
|
|
40
40
|
addObjectArray(element: any): void;
|
|
41
41
|
editRow(element: any, data: any, index: number): void;
|
|
42
42
|
deleteRow(element: any, index: number): void;
|
|
43
|
+
setValueByScope(scope: string, newVal: any): void;
|
|
43
44
|
applyValuesFromObject(event: any): void;
|
|
44
45
|
aplyFormatValue(scope: string, value: any): any;
|
|
45
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<RegistroChildComponent, never>;
|
|
@@ -32,6 +32,12 @@ export declare class Operations {
|
|
|
32
32
|
redirect?: string;
|
|
33
33
|
errorChecking?: RequestChecking;
|
|
34
34
|
answerChecking?: RequestChecking;
|
|
35
|
+
keys?: Key[];
|
|
36
|
+
}
|
|
37
|
+
export declare class Key {
|
|
38
|
+
key: string;
|
|
39
|
+
scope: string;
|
|
40
|
+
data?: string;
|
|
35
41
|
}
|
|
36
42
|
export declare class Validations {
|
|
37
43
|
type: string;
|