sf-crud 11.0.1-beta1 → 12.0.1-beta10
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 +490 -239
- package/bundles/sf-crud.umd.js.map +1 -1
- package/esm2015/lib/components/control/control.component.js +55 -15
- package/esm2015/lib/components/registro/registro.component.js +54 -23
- package/esm2015/lib/components/tablero/tablero.component.js +29 -19
- package/esm2015/lib/sf-crud.component.js +17 -9
- package/esm2015/lib/sf-crud.module.js +255 -97
- package/esm2015/lib/sf-crud.service.js +9 -8
- package/esm2015/lib/shared/services/general.service.js +9 -11
- package/esm2015/lib/shared/services/models/shema.model.js +2 -1
- package/esm2015/sf-crud.js +1 -3
- package/fesm2015/sf-crud.js +473 -238
- package/fesm2015/sf-crud.js.map +1 -1
- package/lib/components/control/control.component.d.ts +13 -2
- package/lib/components/registro/registro.component.d.ts +4 -0
- package/lib/components/tablero/tablero.component.d.ts +4 -1
- package/lib/sf-crud.component.d.ts +3 -0
- package/lib/sf-crud.module.d.ts +81 -0
- package/lib/sf-crud.service.d.ts +3 -0
- package/lib/shared/services/general.service.d.ts +3 -0
- package/lib/shared/services/models/shema.model.d.ts +2 -0
- package/package.json +1 -2
- package/sf-crud.d.ts +1 -2
- package/bundles/sf-crud.umd.min.js +0 -2
- package/bundles/sf-crud.umd.min.js.map +0 -1
- package/esm2015/lib/components/control/control.component.ngfactory.js +0 -52
- package/esm2015/lib/components/control/control.component.ngsummary.json +0 -1
- package/esm2015/lib/components/registro/registro.component.ngfactory.js +0 -46
- package/esm2015/lib/components/registro/registro.component.ngsummary.json +0 -1
- package/esm2015/lib/components/tablero/tablero.component.ngfactory.js +0 -60
- package/esm2015/lib/components/tablero/tablero.component.ngsummary.json +0 -1
- package/esm2015/lib/sf-crud.component.ngfactory.js +0 -16
- package/esm2015/lib/sf-crud.component.ngsummary.json +0 -1
- package/esm2015/lib/sf-crud.module.ngfactory.js +0 -93
- package/esm2015/lib/sf-crud.module.ngsummary.json +0 -1
- package/esm2015/lib/sf-crud.service.ngsummary.json +0 -1
- package/esm2015/lib/shared/services/general.service.ngsummary.json +0 -1
- package/esm2015/lib/shared/services/models/crud-config.model.ngsummary.json +0 -1
- package/esm2015/lib/shared/services/models/shema.model.ngsummary.json +0 -1
- package/esm2015/public-api.ngsummary.json +0 -1
- package/esm2015/sf-crud.ngsummary.json +0 -1
- package/lib/components/control/control.component.ngfactory.d.ts +0 -1
- package/lib/components/registro/registro.component.ngfactory.d.ts +0 -1
- package/lib/components/tablero/tablero.component.ngfactory.d.ts +0 -1
- package/lib/sf-crud.component.ngfactory.d.ts +0 -1
- package/lib/sf-crud.module.ngfactory.d.ts +0 -3
- package/sf-crud.metadata.json +0 -1
package/bundles/sf-crud.umd.js
CHANGED
|
@@ -1,8 +1,101 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('sf-crud', ['exports', '@angular/core', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global[
|
|
5
|
-
}(this, (function (exports, i0,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@angular/router'), require('primeng/blockui'), require('primeng/toolbar'), require('primeng/table'), require('@angular/common'), require('primeng/api'), require('primeng/button'), require('primeng/ripple'), require('primeng/inputtext'), require('primeng/tooltip'), require('jsonpath'), require('primeng/toast'), require('primeng/dropdown'), require('primeng/autocomplete'), require('primeng/calendar'), require('primeng/inputnumber'), require('@angular/forms'), require('primeng/accordion'), require('primeng/avatargroup'), require('primeng/avatar'), require('primeng/badge'), require('primeng/breadcrumb'), require('primeng/card'), require('primeng/carousel'), require('primeng/cascadeselect'), require('primeng/checkbox'), require('primeng/chip'), require('primeng/chips'), require('primeng/codehighlighter'), require('primeng/colorpicker'), require('primeng/confirmdialog'), require('primeng/confirmpopup'), require('primeng/contextmenu'), require('primeng/dialog'), require('primeng/divider'), require('primeng/fieldset'), require('primeng/fileupload'), require('primeng/galleria'), require('primeng/inplace'), require('primeng/inputmask'), require('primeng/inputswitch'), require('primeng/inputtextarea'), require('primeng/knob'), require('primeng/lightbox'), require('primeng/listbox'), require('primeng/megamenu'), require('primeng/menubar'), require('primeng/menu'), require('primeng/message'), require('primeng/messages'), require('primeng/multiselect'), require('primeng/organizationchart'), require('primeng/overlaypanel'), require('primeng/panelmenu'), require('primeng/panel'), require('primeng/password'), require('primeng/progressbar'), require('primeng/radiobutton'), require('primeng/rating'), require('primeng/scrollpanel'), require('primeng/scrolltop'), require('primeng/selectbutton'), require('primeng/sidebar'), require('primeng/skeleton'), require('primeng/slidemenu'), require('primeng/slider'), require('primeng/splitter'), require('primeng/steps'), require('primeng/tabmenu'), require('primeng/tabview'), require('primeng/tag'), require('primeng/terminal'), require('primeng/tieredmenu'), require('primeng/timeline'), require('primeng/togglebutton'), require('primeng/tree')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('sf-crud', ['exports', '@angular/core', '@angular/common/http', '@angular/router', 'primeng/blockui', 'primeng/toolbar', 'primeng/table', '@angular/common', 'primeng/api', 'primeng/button', 'primeng/ripple', 'primeng/inputtext', 'primeng/tooltip', 'jsonpath', 'primeng/toast', 'primeng/dropdown', 'primeng/autocomplete', 'primeng/calendar', 'primeng/inputnumber', '@angular/forms', 'primeng/accordion', 'primeng/avatargroup', 'primeng/avatar', 'primeng/badge', 'primeng/breadcrumb', 'primeng/card', 'primeng/carousel', 'primeng/cascadeselect', 'primeng/checkbox', 'primeng/chip', 'primeng/chips', 'primeng/codehighlighter', 'primeng/colorpicker', 'primeng/confirmdialog', 'primeng/confirmpopup', 'primeng/contextmenu', 'primeng/dialog', 'primeng/divider', 'primeng/fieldset', 'primeng/fileupload', 'primeng/galleria', 'primeng/inplace', 'primeng/inputmask', 'primeng/inputswitch', 'primeng/inputtextarea', 'primeng/knob', 'primeng/lightbox', 'primeng/listbox', 'primeng/megamenu', 'primeng/menubar', 'primeng/menu', 'primeng/message', 'primeng/messages', 'primeng/multiselect', 'primeng/organizationchart', 'primeng/overlaypanel', 'primeng/panelmenu', 'primeng/panel', 'primeng/password', 'primeng/progressbar', 'primeng/radiobutton', 'primeng/rating', 'primeng/scrollpanel', 'primeng/scrolltop', 'primeng/selectbutton', 'primeng/sidebar', 'primeng/skeleton', 'primeng/slidemenu', 'primeng/slider', 'primeng/splitter', 'primeng/steps', 'primeng/tabmenu', 'primeng/tabview', 'primeng/tag', 'primeng/terminal', 'primeng/tieredmenu', 'primeng/timeline', 'primeng/togglebutton', 'primeng/tree'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["sf-crud"] = {}, global.ng.core, global.ng.common.http, global.ng.router, global.i3, global.i4, global.i5, global.ng.common, global.i3$1, global.i8, global.i9, global.i10, global.i11, global.jsonpath, global.i5$2, global.i2$1, global.i3$2, global.i4$1, global.i5$1, global.ng.forms, global.accordion, global.avatargroup, global.avatar, global.badge, global.breadcrumb, global.card, global.carousel, global.cascadeselect, global.checkbox, global.chip, global.chips, global.codehighlighter, global.colorpicker, global.confirmdialog, global.confirmpopup, global.contextmenu, global.dialog, global.divider, global.fieldset, global.fileupload, global.galleria, global.inplace, global.inputmask, global.inputswitch, global.inputtextarea, global.knob, global.lightbox, global.listbox, global.megamenu, global.menubar, global.menu, global.message, global.messages, global.multiselect, global.organizationchart, global.overlaypanel, global.panelmenu, global.panel, global.password, global.progressbar, global.radiobutton, global.rating, global.scrollpanel, global.scrolltop, global.selectbutton, global.sidebar, global.skeleton, global.slidemenu, global.slider, global.splitter, global.steps, global.tabmenu, global.tabview, global.tag, global.terminal, global.tieredmenu, global.timeline, global.togglebutton, global.tree));
|
|
5
|
+
})(this, (function (exports, i0, i1, i2, i3, i4, i5, i6, i3$1, i8, i9, i10, i11, jsonpath, i5$2, i2$1, i3$2, i4$1, i5$1, i7, accordion, avatargroup, avatar, badge, breadcrumb, card, carousel, cascadeselect, checkbox, chip, chips, codehighlighter, colorpicker, confirmdialog, confirmpopup, contextmenu, dialog, divider, fieldset, fileupload, galleria, inplace, inputmask, inputswitch, inputtextarea, knob, lightbox, listbox, megamenu, menubar, menu, message, messages, multiselect, organizationchart, overlaypanel, panelmenu, panel, password, progressbar, radiobutton, rating, scrollpanel, scrolltop, selectbutton, sidebar, skeleton, slidemenu, slider, splitter, steps, tabmenu, tabview, tag, terminal, tieredmenu, timeline, togglebutton, tree) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
29
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
31
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
32
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
33
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
34
|
+
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
35
|
+
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
36
|
+
var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
|
|
37
|
+
var jsonpath__namespace = /*#__PURE__*/_interopNamespace(jsonpath);
|
|
38
|
+
var i5__namespace$2 = /*#__PURE__*/_interopNamespace(i5$2);
|
|
39
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
40
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
41
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
42
|
+
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
43
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
44
|
+
|
|
45
|
+
var Shema = /** @class */ (function () {
|
|
46
|
+
function Shema() {
|
|
47
|
+
this.type = '';
|
|
48
|
+
this.subtype = '';
|
|
49
|
+
}
|
|
50
|
+
return Shema;
|
|
51
|
+
}());
|
|
52
|
+
|
|
53
|
+
var CrudConfig = /** @class */ (function () {
|
|
54
|
+
function CrudConfig() {
|
|
55
|
+
this.idEntidad = '';
|
|
56
|
+
this.tablero = new ConfigTablero();
|
|
57
|
+
this.esquema = new Shema();
|
|
58
|
+
this.registro = new ConfigRegistro();
|
|
59
|
+
}
|
|
60
|
+
return CrudConfig;
|
|
61
|
+
}());
|
|
62
|
+
var ConfigTablero = /** @class */ (function () {
|
|
63
|
+
function ConfigTablero() {
|
|
64
|
+
this.columns = [];
|
|
65
|
+
this.endpoint = '';
|
|
66
|
+
this.method = '';
|
|
67
|
+
this.server = '';
|
|
68
|
+
this.key = '';
|
|
69
|
+
this.filters = [];
|
|
70
|
+
}
|
|
71
|
+
return ConfigTablero;
|
|
72
|
+
}());
|
|
73
|
+
var ConfigRegistro = /** @class */ (function () {
|
|
74
|
+
function ConfigRegistro() {
|
|
75
|
+
this.operations = [];
|
|
76
|
+
this.btnBack = '';
|
|
77
|
+
}
|
|
78
|
+
return ConfigRegistro;
|
|
79
|
+
}());
|
|
80
|
+
var Operations = /** @class */ (function () {
|
|
81
|
+
function Operations() {
|
|
82
|
+
this.type = '';
|
|
83
|
+
this.server = '';
|
|
84
|
+
this.endpoint = '';
|
|
85
|
+
this.method = '';
|
|
86
|
+
this.validations = new Validations();
|
|
87
|
+
}
|
|
88
|
+
return Operations;
|
|
89
|
+
}());
|
|
90
|
+
var Validations = /** @class */ (function () {
|
|
91
|
+
function Validations() {
|
|
92
|
+
this.type = '';
|
|
93
|
+
this.required = [];
|
|
94
|
+
this.server = '';
|
|
95
|
+
this.endpoint = '';
|
|
96
|
+
}
|
|
97
|
+
return Validations;
|
|
98
|
+
}());
|
|
6
99
|
|
|
7
100
|
/******************************************************************************
|
|
8
101
|
Copyright (c) Microsoft Corporation.
|
|
@@ -374,69 +467,14 @@
|
|
|
374
467
|
};
|
|
375
468
|
return GeneralService;
|
|
376
469
|
}());
|
|
377
|
-
GeneralService.ɵ
|
|
378
|
-
GeneralService
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
]; };
|
|
386
|
-
|
|
387
|
-
var Shema = /** @class */ (function () {
|
|
388
|
-
function Shema() {
|
|
389
|
-
this.type = '';
|
|
390
|
-
}
|
|
391
|
-
return Shema;
|
|
392
|
-
}());
|
|
393
|
-
|
|
394
|
-
var CrudConfig = /** @class */ (function () {
|
|
395
|
-
function CrudConfig() {
|
|
396
|
-
this.idEntidad = '';
|
|
397
|
-
this.tablero = new ConfigTablero();
|
|
398
|
-
this.esquema = new Shema();
|
|
399
|
-
this.registro = new ConfigRegistro();
|
|
400
|
-
}
|
|
401
|
-
return CrudConfig;
|
|
402
|
-
}());
|
|
403
|
-
var ConfigTablero = /** @class */ (function () {
|
|
404
|
-
function ConfigTablero() {
|
|
405
|
-
this.columns = [];
|
|
406
|
-
this.endpoint = '';
|
|
407
|
-
this.method = '';
|
|
408
|
-
this.server = '';
|
|
409
|
-
this.key = '';
|
|
410
|
-
this.filters = [];
|
|
411
|
-
}
|
|
412
|
-
return ConfigTablero;
|
|
413
|
-
}());
|
|
414
|
-
var ConfigRegistro = /** @class */ (function () {
|
|
415
|
-
function ConfigRegistro() {
|
|
416
|
-
this.operations = [];
|
|
417
|
-
this.btnBack = '';
|
|
418
|
-
}
|
|
419
|
-
return ConfigRegistro;
|
|
420
|
-
}());
|
|
421
|
-
var Operations = /** @class */ (function () {
|
|
422
|
-
function Operations() {
|
|
423
|
-
this.type = '';
|
|
424
|
-
this.server = '';
|
|
425
|
-
this.endpoint = '';
|
|
426
|
-
this.method = '';
|
|
427
|
-
this.validations = new Validations();
|
|
428
|
-
}
|
|
429
|
-
return Operations;
|
|
430
|
-
}());
|
|
431
|
-
var Validations = /** @class */ (function () {
|
|
432
|
-
function Validations() {
|
|
433
|
-
this.type = '';
|
|
434
|
-
this.required = [];
|
|
435
|
-
this.server = '';
|
|
436
|
-
this.endpoint = '';
|
|
437
|
-
}
|
|
438
|
-
return Validations;
|
|
439
|
-
}());
|
|
470
|
+
GeneralService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GeneralService, deps: [{ token: i1__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
471
|
+
GeneralService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GeneralService, providedIn: 'root' });
|
|
472
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GeneralService, decorators: [{
|
|
473
|
+
type: i0.Injectable,
|
|
474
|
+
args: [{
|
|
475
|
+
providedIn: 'root'
|
|
476
|
+
}]
|
|
477
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.HttpClient }]; } });
|
|
440
478
|
|
|
441
479
|
var TableroComponent = /** @class */ (function () {
|
|
442
480
|
function TableroComponent(generalService, router) {
|
|
@@ -485,7 +523,7 @@
|
|
|
485
523
|
this.btn.update = this.opciones.find(function (x) { return x.label == 'Editar'; });
|
|
486
524
|
this.btn.delete = this.opciones.find(function (x) { return x.label == 'Eliminar'; });
|
|
487
525
|
};
|
|
488
|
-
TableroComponent.prototype.redirect = function (
|
|
526
|
+
TableroComponent.prototype.redirect = function (accion, data) {
|
|
489
527
|
var _a, _b;
|
|
490
528
|
switch (accion) {
|
|
491
529
|
case 'create':
|
|
@@ -506,21 +544,79 @@
|
|
|
506
544
|
};
|
|
507
545
|
return TableroComponent;
|
|
508
546
|
}());
|
|
509
|
-
TableroComponent
|
|
510
|
-
{ type:
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
547
|
+
TableroComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TableroComponent, deps: [{ token: GeneralService }, { token: i2__namespace.Router }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
548
|
+
TableroComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TableroComponent, selector: "sf-crudtablero", inputs: { opciones: "opciones", idEntidad: "idEntidad", idKatios: "idKatios" }, ngImport: i0__namespace, template: "<p-blockUI [blocked]=\"enProceso\">\r\n <i class=\"pi pi-cog pi-spin\" style=\"font-size: 50px\"></i>\r\n</p-blockUI>\r\n\r\n<div class=\"card\" *ngIf=\"!enProceso\">\r\n <p-toolbar styleClass=\"mb-4 gap-2\">\r\n <ng-template pTemplate=\"left\">\r\n <button *ngIf=\"btn.create\" pButton pRipple [label]=\"btn.create.label\" [icon]=\"btn.create.icon\"\r\n class=\"p-button-success mr-2\" (click)=\"redirect('create')\"></button>\r\n </ng-template>\r\n </p-toolbar>\r\n <p-table #dt [columns]=\"crudConfig.tablero.columns\" [value]=\"data\" [rowHover]=\"true\" [rows]=\"10\" [paginator]=\"true\"\r\n [globalFilterFields]=\"crudConfig.tablero?.filters || []\" [tableStyle]=\"{'min-width': '75rem'}\"\r\n currentPageReportTemplate=\"Registro {first} al {last} de {totalRecords} {{idEntidad}}\"\r\n [showCurrentPageReport]=\"true\">\r\n <ng-template pTemplate=\"caption\">\r\n <div class=\"flex align-items-center justify-content-between\">\r\n <h5 class=\"m-0\">{{idEntidad}}</h5>\r\n <span class=\"p-input-icon-left\">\r\n <i class=\"pi pi-search\"></i>\r\n <input pInputText type=\"text\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\"\r\n placeholder=\"Buscar...\" />\r\n </span>\r\n </div>\r\n </ng-template>\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th *ngFor=\"let col of columns\">\r\n {{col.label}}\r\n </th>\r\n <th>Acci\u00F3n</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\r\n <tr>\r\n <td *ngFor=\"let col of columns\">\r\n {{rowData[col.col]}}\r\n </td>\r\n <th>\r\n <button *ngIf=\"btn.read\" pButton pRipple [pTooltip]=\"btn.read.label\" [icon]=\"btn.read.icon\"\r\n class=\"p-button-rounded p-button-info mr-2\" (click)=\"redirect('read', rowData)\"></button>\r\n <button *ngIf=\"btn.update\" pButton pRipple [pTooltip]=\"btn.update.label\" [icon]=\"btn.update.icon\"\r\n class=\"p-button-rounded p-button-warning mr-2\" (click)=\"redirect('update', rowData)\"></button>\r\n <button *ngIf=\"btn.delete\" pButton pRipple [pTooltip]=\"btn.delete.label\" [icon]=\"btn.delete.icon\"\r\n class=\"p-button-rounded p-button-danger mr-2\" (click)=\"redirect('delete', rowData)\"></button>\r\n </th>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n</div>", components: [{ type: i3__namespace.BlockUI, selector: "p-blockUI", inputs: ["autoZIndex", "baseZIndex", "blocked", "target", "styleClass"] }, { type: i4__namespace.Toolbar, selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: i5__namespace.Table, selector: "p-table", inputs: ["pageLinks", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "contextMenuSelectionMode", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "filterDelay", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "virtualScrollDelay", "virtualRowHeight", "columnResizeMode", "loadingIcon", "showLoader", "showInitialSortBadge", "stateStorage", "editMode", "totalRecords", "value", "columns", "first", "rows", "sortField", "sortOrder", "multiSortMeta", "selection", "contextMenuSelection", "frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "rowsPerPageOptions", "paginatorDropdownAppendTo", "showCurrentPageReport", "showJumpToPageDropdown", "selectionMode", "dataKey", "metaKeySelection", "globalFilterFields", "filterLocale", "scrollable", "scrollHeight", "virtualScroll", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "reorderableColumns", "loading", "rowHover", "customSort", "autoLayout", "exportFunction", "stateKey", "minBufferPx", "maxBufferPx"], outputs: ["selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i8__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9__namespace.Ripple, selector: "[pRipple]" }, { type: i10__namespace.InputText, selector: "[pInputText]" }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11__namespace.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "tooltipZIndex", "escape", "tooltipDisabled", "pTooltip", "positionStyle", "tooltipStyleClass", "showDelay", "hideDelay", "life"] }] });
|
|
549
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TableroComponent, decorators: [{
|
|
550
|
+
type: i0.Component,
|
|
551
|
+
args: [{
|
|
552
|
+
selector: 'sf-crudtablero',
|
|
553
|
+
templateUrl: './tablero.component.html'
|
|
554
|
+
}]
|
|
555
|
+
}], ctorParameters: function () { return [{ type: GeneralService }, { type: i2__namespace.Router }]; }, propDecorators: { opciones: [{
|
|
556
|
+
type: i0.Input
|
|
557
|
+
}], idEntidad: [{
|
|
558
|
+
type: i0.Input
|
|
559
|
+
}], idKatios: [{
|
|
560
|
+
type: i0.Input
|
|
561
|
+
}] } });
|
|
562
|
+
|
|
563
|
+
var ControlComponent = /** @class */ (function () {
|
|
564
|
+
function ControlComponent(generalService) {
|
|
565
|
+
this.generalService = generalService;
|
|
566
|
+
this.control = new Shema();
|
|
567
|
+
this.label = '';
|
|
568
|
+
this.setValue = new i0.EventEmitter();
|
|
569
|
+
this.isLoading = false;
|
|
570
|
+
this.dataFromService = [];
|
|
571
|
+
}
|
|
572
|
+
ControlComponent.prototype.ngOnInit = function () {
|
|
573
|
+
var _a;
|
|
574
|
+
if (((_a = this.control) === null || _a === void 0 ? void 0 : _a.config) && this.control.subtype == 'dropdown')
|
|
575
|
+
this.loadDataFromService();
|
|
576
|
+
};
|
|
577
|
+
ControlComponent.prototype.sendValue = function () {
|
|
578
|
+
this.setValue.emit(this.value);
|
|
579
|
+
};
|
|
580
|
+
ControlComponent.prototype.sendValueFromObject = function () {
|
|
581
|
+
this.setValue.emit(this.value[this.control.config.optionValue]);
|
|
582
|
+
};
|
|
583
|
+
ControlComponent.prototype.loadDataFromService = function () {
|
|
584
|
+
var _this = this;
|
|
585
|
+
this.isLoading = true;
|
|
586
|
+
this.generalService.genericRequest(this.control.config.method, this.control.config.server, this.control.config.endpoint)
|
|
587
|
+
.then(function (res) {
|
|
588
|
+
_this.dataFromService = res.data;
|
|
589
|
+
_this.isLoading = false;
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
ControlComponent.prototype.loadDataFromControlBusquedaService = function (event) {
|
|
593
|
+
var _this = this;
|
|
594
|
+
this.isLoading = true;
|
|
595
|
+
this.generalService.genericRequest(this.control.config.method, this.control.config.server, this.control.config.endpoint.replace('@query', (event === null || event === void 0 ? void 0 : event.query) || ''))
|
|
596
|
+
.then(function (res) {
|
|
597
|
+
_this.dataFromService = res.data;
|
|
598
|
+
_this.isLoading = false;
|
|
599
|
+
});
|
|
600
|
+
};
|
|
601
|
+
return ControlComponent;
|
|
602
|
+
}());
|
|
603
|
+
ControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ControlComponent, deps: [{ token: GeneralService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
604
|
+
ControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ControlComponent, selector: "sf-control", inputs: { control: "control", label: "label", value: "value" }, outputs: { setValue: "setValue" }, ngImport: i0__namespace, template: "<ng-container [ngSwitch]=\"control.type\">\r\n <label>{{label}}</label>\r\n <ng-container *ngSwitchCase=\"'string'\">\r\n <ng-container [ngSwitch]=\"control.subtype\">\r\n <ng-container *ngSwitchCase=\"'input'\">\r\n <input pInputText type=\"text\" [(ngModel)]=\"value\" (focusout)=\"sendValue()\">\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'password'\">\r\n <input pInputText type=\"password\" [(ngModel)]=\"value\" (focusout)=\"sendValue()\">\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'email'\">\r\n <input pInputText type=\"email\" [(ngModel)]=\"value\" (focusout)=\"sendValue()\">\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'phone'\">\r\n <input pInputText type=\"tel\" [(ngModel)]=\"value\" (focusout)=\"sendValue()\">\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'enum'\">\r\n <p-dropdown [options]=\"control.enum\" [(ngModel)]=\"value\" (onChange)=\"sendValue()\"\r\n placeholder=\"Seleccione una opci\u00F3n\"></p-dropdown>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'dropdown'\">\r\n <p-dropdown [lazy]=\"isLoading\" [options]=\"dataFromService\" [(ngModel)]=\"value\" (onChange)=\"sendValue()\"\r\n [optionLabel]=\"control.config.optionLabel\" [optionValue]=\"control.config.optionValue\"\r\n placeholder=\"Seleccione una opci\u00F3n\"></p-dropdown>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'autocomplete'\">\r\n <p-autoComplete [(ngModel)]=\"value\" [showEmptyMessage]=\"true\" [suggestions]=\"dataFromService\"\r\n (completeMethod)=\"loadDataFromControlBusquedaService($event)\" field=\"descrip\"\r\n [minLength]=\"1\" (onSelect)=\"sendValueFromObject()\">\r\n\r\n </p-autoComplete>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <ng-container [ngSwitch]=\"control.subtype\">\r\n <ng-container *ngSwitchCase=\"'calendar'\">\r\n <p-calendar [(ngModel)]=\"value\" (onSelect)=\"sendValue()\"\r\n [format]=\"control?.format || 'yy-mm-dd'\"></p-calendar>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'numeric'\">\r\n <ng-container [ngSwitch]=\"control.subtype\">\r\n <ng-container *ngSwitchCase=\"'currency'\">\r\n <p-inputNumber [(ngModel)]=\"value\" mode=\"currency\" [minFractionDigits]=\"control?.minFractionDigits || 0\"\r\n (onChange)=\"sendValue()\" [currency]=\"control?.currency || 'USD'\"></p-inputNumber>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'decimal'\">\r\n <p-inputNumber [(ngModel)]=\"value\" mode=\"decimal\" (onChange)=\"sendValue()\"\r\n [minFractionDigits]=\"control?.minFractionDigits || 0\"></p-inputNumber>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'percentage'\">\r\n <p-inputNumber [(ngModel)]=\"value\" suffix=\" %\" (onChange)=\"sendValue()\"\r\n [minFractionDigits]=\"control?.minFractionDigits || 2\"></p-inputNumber>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n</ng-container>", components: [{ type: i2__namespace$1.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "resetFilterOnHide", "dropdownIcon", "optionGroupChildren", "autoDisplayFirst", "emptyFilterMessage", "emptyMessage", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "autofocusFilter", "disabled", "options", "filterValue", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "group", "showClear", "virtualScroll", "itemSize", "ariaFilterLabel", "ariaLabelledBy", "maxlength", "tooltipStyleClass"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide"] }, { type: i3__namespace$2.AutoComplete, selector: "p-autoComplete", inputs: ["minLength", "delay", "type", "autoZIndex", "baseZIndex", "dropdownIcon", "unique", "completeOnFocus", "scrollHeight", "dropdownMode", "showTransitionOptions", "hideTransitionOptions", "autocomplete", "suggestions", "disabled", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "virtualScroll", "itemSize", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "ariaLabel", "ariaLabelledBy", "group", "field", "dropdown", "showEmptyMessage", "multiple", "tabindex", "dataKey", "emptyMessage", "autofocus", "optionGroupChildren", "optionGroupLabel"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide"] }, { type: i4__namespace$1.Calendar, selector: "p-calendar", inputs: ["dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "icon", "shortYearCutoff", "hourFormat", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "dataType", "selectionMode", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "keepInvalid", "hideOnDateTimeSelect", "numberOfMonths", "view", "timeSeparator", "focusTrap", "firstDayOfWeek", "showTransitionOptions", "hideTransitionOptions", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "locale", "disabled", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "selectOtherMonths", "showIcon", "appendTo", "readonlyInput", "monthNavigator", "yearNavigator", "timeOnly", "required", "maxDateCount", "showButtonBar", "panelStyleClass", "panelStyle", "touchUI", "tabindex"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { type: i5__namespace$1.InputNumber, selector: "p-inputNumber", inputs: ["showButtons", "format", "buttonLayout", "incrementButtonIcon", "decrementButtonIcon", "step", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "disabled", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "inputStyle", "inputStyleClass"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown"] }], directives: [{ type: i6__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i6__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i10__namespace.InputText, selector: "[pInputText]" }, { type: i7__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
605
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ControlComponent, decorators: [{
|
|
606
|
+
type: i0.Component,
|
|
607
|
+
args: [{
|
|
608
|
+
selector: 'sf-control',
|
|
609
|
+
templateUrl: './control.component.html'
|
|
610
|
+
}]
|
|
611
|
+
}], ctorParameters: function () { return [{ type: GeneralService }]; }, propDecorators: { control: [{
|
|
612
|
+
type: i0.Input
|
|
613
|
+
}], label: [{
|
|
614
|
+
type: i0.Input
|
|
615
|
+
}], value: [{
|
|
616
|
+
type: i0.Input
|
|
617
|
+
}], setValue: [{
|
|
618
|
+
type: i0.Output
|
|
619
|
+
}] } });
|
|
524
620
|
|
|
525
621
|
var RegistroComponent = /** @class */ (function () {
|
|
526
622
|
function RegistroComponent(generalService, router, messageSerice) {
|
|
@@ -588,22 +684,26 @@
|
|
|
588
684
|
this.router.navigateByUrl(this.crudConfig.registro.btnBack);
|
|
589
685
|
};
|
|
590
686
|
RegistroComponent.prototype.getControl = function (scope) {
|
|
591
|
-
return
|
|
687
|
+
return jsonpath__namespace.query(this.crudConfig.esquema, scope)[0];
|
|
592
688
|
};
|
|
593
689
|
RegistroComponent.prototype.getValue = function (scope) {
|
|
594
|
-
return
|
|
690
|
+
return jsonpath__namespace.query(this.data, scope.replace('.properties', ''))[0];
|
|
595
691
|
};
|
|
596
692
|
RegistroComponent.prototype.setValue = function (value, scope) {
|
|
597
|
-
|
|
693
|
+
jsonpath__namespace.value(this.data, scope.replace('.properties', ''), value);
|
|
598
694
|
};
|
|
599
695
|
RegistroComponent.prototype.createObject = function (esquema) {
|
|
600
696
|
var object = {};
|
|
601
697
|
switch (esquema.type) {
|
|
698
|
+
case 'numeric':
|
|
699
|
+
return (esquema === null || esquema === void 0 ? void 0 : esquema.default) || 0;
|
|
602
700
|
case 'string':
|
|
603
|
-
case '
|
|
604
|
-
return (esquema === null || esquema === void 0 ? void 0 : esquema.default)
|
|
701
|
+
case 'date':
|
|
702
|
+
return (esquema === null || esquema === void 0 ? void 0 : esquema.default) ? this.setDefaultValue(esquema.default) : null;
|
|
605
703
|
case 'boolean':
|
|
606
704
|
return (esquema === null || esquema === void 0 ? void 0 : esquema.default) || false;
|
|
705
|
+
case 'array':
|
|
706
|
+
return [];
|
|
607
707
|
case 'object':
|
|
608
708
|
for (var key in esquema === null || esquema === void 0 ? void 0 : esquema.properties) {
|
|
609
709
|
Object.defineProperty(object, key, { value: this.createObject(esquema === null || esquema === void 0 ? void 0 : esquema.properties[key]), writable: true, enumerable: true, configurable: true });
|
|
@@ -645,33 +745,52 @@
|
|
|
645
745
|
var _this = this;
|
|
646
746
|
var err = [];
|
|
647
747
|
this.configOperation.validations.required.forEach(function (x) {
|
|
648
|
-
if (!
|
|
748
|
+
if (!jsonpath__namespace.query(_this.data, x.field)[0])
|
|
649
749
|
err.push(x.message);
|
|
650
750
|
});
|
|
651
751
|
if (err.length != 0)
|
|
652
752
|
this.messageSerice.add({ severity: 'warn', detail: err.join('. ') });
|
|
653
753
|
return err.length == 0;
|
|
654
754
|
};
|
|
755
|
+
RegistroComponent.prototype.setDefaultValue = function (value) {
|
|
756
|
+
var data = null;
|
|
757
|
+
switch (value) {
|
|
758
|
+
case '@uactivo':
|
|
759
|
+
var uactivo = JSON.parse(localStorage.getItem('oSessionTFM') || '{}');
|
|
760
|
+
if (!uactivo)
|
|
761
|
+
console.log('Validar configuracion de sesion');
|
|
762
|
+
else
|
|
763
|
+
data = uactivo.UsuarioSistema.TDOC + "-" + uactivo.UsuarioSistema.NDOC;
|
|
764
|
+
break;
|
|
765
|
+
case '@hoy':
|
|
766
|
+
data = new Date();
|
|
767
|
+
break;
|
|
768
|
+
default:
|
|
769
|
+
data = value;
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
return data;
|
|
773
|
+
};
|
|
655
774
|
return RegistroComponent;
|
|
656
775
|
}());
|
|
657
|
-
RegistroComponent
|
|
658
|
-
{ type:
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
776
|
+
RegistroComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RegistroComponent, deps: [{ token: GeneralService }, { token: i2__namespace.Router }, { token: i3__namespace$1.MessageService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
777
|
+
RegistroComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RegistroComponent, selector: "sf-registro", inputs: { idKatios: "idKatios", idEntidad: "idEntidad", trx: "trx", id: "id" }, providers: [i3$1.MessageService], ngImport: i0__namespace, template: "<p-blockUI [blocked]=\"enProceso\">\r\n <i class=\"pi pi-cog pi-spin\" style=\"font-size: 50px\"></i>\r\n</p-blockUI>\r\n\r\n<p-toast></p-toast>\r\n\r\n<div class=\"card\" *ngIf=\"!enProceso\">\r\n <h5 class=\"card-header mb-2\" style=\"display: flex; justify-content: space-between;align-items: center;\">\r\n <span>{{idEntidad}} {{id != '' ? '-' + id : ''}}</span>\r\n <button pButton pRipple type=\"button\" icon=\"pi pi-arrow-left\" (click)=\"back()\"></button>\r\n </h5>\r\n <div *ngFor=\"let element of crudConfig.uiEsquema.elements\" [class]=\"element?.class\">\r\n <ng-container [ngSwitch]=\"element.type\">\r\n <div *ngSwitchCase=\"'Label'\" [style]=\"element?.style\">\r\n {{element?.label}}\r\n </div>\r\n <ng-container *ngSwitchCase=\"'HorizontalLayout'\">\r\n <div *ngFor=\"let el of element.elements\" [class]=\"el?.class\">\r\n <ng-container [ngSwitch]=\"el.type\" >\r\n <sf-control *ngSwitchCase=\"'Control'\" [control]=\"getControl(el.scope)\" [label]=\"el.label\" [value]=\"getValue(el.scope)\" (setValue)=\"setValue($event, el.scope)\"></sf-control>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <div *ngSwitchCase=\"'Control'\">\r\n <sf-control *ngSwitchCase=\"'Control'\" [control]=\"getControl(element.scope)\" [label]=\"element.label\"></sf-control>\r\n </div>\r\n </ng-container>\r\n </div>\r\n <div class=\"card-footer\" *ngIf=\"btnSubmit\">\r\n <button pButton pRipple type=\"button\" [icon]=\"btnSubmit.icon\" [label]=\"btnSubmit.label\" (click)=\"submit()\"></button>\r\n </div>\r\n</div>", components: [{ type: i3__namespace.BlockUI, selector: "p-blockUI", inputs: ["autoZIndex", "baseZIndex", "blocked", "target", "styleClass"] }, { type: i5__namespace$2.Toast, selector: "p-toast", inputs: ["autoZIndex", "baseZIndex", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "key", "style", "styleClass", "breakpoints"], outputs: ["onClose"] }, { type: ControlComponent, selector: "sf-control", inputs: ["control", "label", "value"], outputs: ["setValue"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9__namespace.Ripple, selector: "[pRipple]" }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i6__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
778
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RegistroComponent, decorators: [{
|
|
779
|
+
type: i0.Component,
|
|
780
|
+
args: [{
|
|
781
|
+
selector: 'sf-registro',
|
|
782
|
+
templateUrl: './registro.component.html',
|
|
783
|
+
providers: [i3$1.MessageService]
|
|
784
|
+
}]
|
|
785
|
+
}], ctorParameters: function () { return [{ type: GeneralService }, { type: i2__namespace.Router }, { type: i3__namespace$1.MessageService }]; }, propDecorators: { idKatios: [{
|
|
786
|
+
type: i0.Input
|
|
787
|
+
}], idEntidad: [{
|
|
788
|
+
type: i0.Input
|
|
789
|
+
}], trx: [{
|
|
790
|
+
type: i0.Input
|
|
791
|
+
}], id: [{
|
|
792
|
+
type: i0.Input
|
|
793
|
+
}] } });
|
|
675
794
|
|
|
676
795
|
var SfCrudComponent = /** @class */ (function () {
|
|
677
796
|
function SfCrudComponent() {
|
|
@@ -680,147 +799,281 @@
|
|
|
680
799
|
};
|
|
681
800
|
return SfCrudComponent;
|
|
682
801
|
}());
|
|
683
|
-
SfCrudComponent
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
this.label = '';
|
|
694
|
-
this.setValue = new i0.EventEmitter();
|
|
695
|
-
}
|
|
696
|
-
ControlComponent.prototype.ngOnInit = function () {
|
|
697
|
-
};
|
|
698
|
-
ControlComponent.prototype.sendValue = function () {
|
|
699
|
-
this.setValue.emit(this.value);
|
|
700
|
-
};
|
|
701
|
-
return ControlComponent;
|
|
702
|
-
}());
|
|
703
|
-
ControlComponent.decorators = [
|
|
704
|
-
{ type: i0.Component, args: [{
|
|
705
|
-
selector: 'sf-control',
|
|
706
|
-
template: "<ng-container [ngSwitch]=\"control.type\">\r\n <ng-container *ngSwitchCase=\"'string'\">\r\n <label>{{label}}</label>\r\n <ng-container *ngIf=\"!control?.enum\">\r\n <input pInputText type=\"text\" [(ngModel)]=\"value\" (focusout)=\"sendValue()\">\r\n </ng-container>\r\n <ng-container *ngIf=\"control?.enum\">\r\n <p-dropdown [options]=\"control.enum\" [(ngModel)]=\"value\" (onChange)=\"sendValue()\" placeholder=\"Seleccione una opci\u00F3n\"></p-dropdown>\r\n </ng-container>\r\n </ng-container>\r\n</ng-container>\r\n"
|
|
707
|
-
},] }
|
|
708
|
-
];
|
|
709
|
-
ControlComponent.ctorParameters = function () { return []; };
|
|
710
|
-
ControlComponent.propDecorators = {
|
|
711
|
-
control: [{ type: i0.Input }],
|
|
712
|
-
label: [{ type: i0.Input }],
|
|
713
|
-
value: [{ type: i0.Input }],
|
|
714
|
-
setValue: [{ type: i0.Output }]
|
|
715
|
-
};
|
|
802
|
+
SfCrudComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
803
|
+
SfCrudComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SfCrudComponent, selector: "lib-sf-crud", ngImport: i0__namespace, template: "\n <p>\n sf-crud works!\n </p>\n ", isInline: true });
|
|
804
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudComponent, decorators: [{
|
|
805
|
+
type: i0.Component,
|
|
806
|
+
args: [{
|
|
807
|
+
selector: 'lib-sf-crud',
|
|
808
|
+
template: "\n <p>\n sf-crud works!\n </p>\n ",
|
|
809
|
+
styles: []
|
|
810
|
+
}]
|
|
811
|
+
}], ctorParameters: function () { return []; } });
|
|
716
812
|
|
|
717
813
|
var SfCrudModule = /** @class */ (function () {
|
|
718
814
|
function SfCrudModule() {
|
|
719
815
|
}
|
|
720
816
|
return SfCrudModule;
|
|
721
817
|
}());
|
|
722
|
-
SfCrudModule
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
818
|
+
SfCrudModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
819
|
+
SfCrudModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, declarations: [SfCrudComponent,
|
|
820
|
+
TableroComponent,
|
|
821
|
+
RegistroComponent,
|
|
822
|
+
ControlComponent], imports: [accordion.AccordionModule,
|
|
823
|
+
i3$2.AutoCompleteModule,
|
|
824
|
+
avatargroup.AvatarGroupModule,
|
|
825
|
+
avatar.AvatarModule,
|
|
826
|
+
badge.BadgeModule,
|
|
827
|
+
i3.BlockUIModule,
|
|
828
|
+
breadcrumb.BreadcrumbModule,
|
|
829
|
+
i8.ButtonModule,
|
|
830
|
+
i4$1.CalendarModule,
|
|
831
|
+
card.CardModule,
|
|
832
|
+
carousel.CarouselModule,
|
|
833
|
+
cascadeselect.CascadeSelectModule,
|
|
834
|
+
checkbox.CheckboxModule,
|
|
835
|
+
chip.ChipModule,
|
|
836
|
+
chips.ChipsModule,
|
|
837
|
+
codehighlighter.CodeHighlighterModule,
|
|
838
|
+
colorpicker.ColorPickerModule,
|
|
839
|
+
confirmdialog.ConfirmDialogModule,
|
|
840
|
+
confirmpopup.ConfirmPopupModule,
|
|
841
|
+
contextmenu.ContextMenuModule,
|
|
842
|
+
dialog.DialogModule,
|
|
843
|
+
divider.DividerModule,
|
|
844
|
+
i2$1.DropdownModule,
|
|
845
|
+
fieldset.FieldsetModule,
|
|
846
|
+
fileupload.FileUploadModule,
|
|
847
|
+
i7.FormsModule,
|
|
848
|
+
galleria.GalleriaModule,
|
|
849
|
+
i1.HttpClientModule,
|
|
850
|
+
inplace.InplaceModule,
|
|
851
|
+
inputmask.InputMaskModule,
|
|
852
|
+
i5$1.InputNumberModule,
|
|
853
|
+
inputswitch.InputSwitchModule,
|
|
854
|
+
inputtextarea.InputTextareaModule,
|
|
855
|
+
i10.InputTextModule,
|
|
856
|
+
knob.KnobModule,
|
|
857
|
+
lightbox.LightboxModule,
|
|
858
|
+
listbox.ListboxModule,
|
|
859
|
+
megamenu.MegaMenuModule,
|
|
860
|
+
menubar.MenubarModule,
|
|
861
|
+
menu.MenuModule,
|
|
862
|
+
message.MessageModule,
|
|
863
|
+
messages.MessagesModule,
|
|
864
|
+
multiselect.MultiSelectModule,
|
|
865
|
+
organizationchart.OrganizationChartModule,
|
|
866
|
+
overlaypanel.OverlayPanelModule,
|
|
867
|
+
panelmenu.PanelMenuModule,
|
|
868
|
+
panel.PanelModule,
|
|
869
|
+
password.PasswordModule,
|
|
870
|
+
progressbar.ProgressBarModule,
|
|
871
|
+
radiobutton.RadioButtonModule,
|
|
872
|
+
rating.RatingModule,
|
|
873
|
+
i9.RippleModule,
|
|
874
|
+
scrollpanel.ScrollPanelModule,
|
|
875
|
+
scrolltop.ScrollTopModule,
|
|
876
|
+
selectbutton.SelectButtonModule,
|
|
877
|
+
sidebar.SidebarModule,
|
|
878
|
+
skeleton.SkeletonModule,
|
|
879
|
+
slidemenu.SlideMenuModule,
|
|
880
|
+
slider.SliderModule,
|
|
881
|
+
splitter.SplitterModule,
|
|
882
|
+
steps.StepsModule,
|
|
883
|
+
i5.TableModule,
|
|
884
|
+
tabmenu.TabMenuModule,
|
|
885
|
+
tabview.TabViewModule,
|
|
886
|
+
tag.TagModule,
|
|
887
|
+
terminal.TerminalModule,
|
|
888
|
+
tieredmenu.TieredMenuModule,
|
|
889
|
+
timeline.TimelineModule,
|
|
890
|
+
i5$2.ToastModule,
|
|
891
|
+
togglebutton.ToggleButtonModule,
|
|
892
|
+
i4.ToolbarModule,
|
|
893
|
+
i11.TooltipModule,
|
|
894
|
+
tree.TreeModule], exports: [SfCrudComponent,
|
|
895
|
+
TableroComponent,
|
|
896
|
+
RegistroComponent] });
|
|
897
|
+
SfCrudModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, imports: [[
|
|
898
|
+
accordion.AccordionModule,
|
|
899
|
+
i3$2.AutoCompleteModule,
|
|
900
|
+
avatargroup.AvatarGroupModule,
|
|
901
|
+
avatar.AvatarModule,
|
|
902
|
+
badge.BadgeModule,
|
|
903
|
+
i3.BlockUIModule,
|
|
904
|
+
breadcrumb.BreadcrumbModule,
|
|
905
|
+
i8.ButtonModule,
|
|
906
|
+
i4$1.CalendarModule,
|
|
907
|
+
card.CardModule,
|
|
908
|
+
carousel.CarouselModule,
|
|
909
|
+
cascadeselect.CascadeSelectModule,
|
|
910
|
+
checkbox.CheckboxModule,
|
|
911
|
+
chip.ChipModule,
|
|
912
|
+
chips.ChipsModule,
|
|
913
|
+
codehighlighter.CodeHighlighterModule,
|
|
914
|
+
colorpicker.ColorPickerModule,
|
|
915
|
+
confirmdialog.ConfirmDialogModule,
|
|
916
|
+
confirmpopup.ConfirmPopupModule,
|
|
917
|
+
contextmenu.ContextMenuModule,
|
|
918
|
+
dialog.DialogModule,
|
|
919
|
+
divider.DividerModule,
|
|
920
|
+
i2$1.DropdownModule,
|
|
921
|
+
fieldset.FieldsetModule,
|
|
922
|
+
fileupload.FileUploadModule,
|
|
923
|
+
i7.FormsModule,
|
|
924
|
+
galleria.GalleriaModule,
|
|
925
|
+
i1.HttpClientModule,
|
|
926
|
+
inplace.InplaceModule,
|
|
927
|
+
inputmask.InputMaskModule,
|
|
928
|
+
i5$1.InputNumberModule,
|
|
929
|
+
inputswitch.InputSwitchModule,
|
|
930
|
+
inputtextarea.InputTextareaModule,
|
|
931
|
+
i10.InputTextModule,
|
|
932
|
+
knob.KnobModule,
|
|
933
|
+
lightbox.LightboxModule,
|
|
934
|
+
listbox.ListboxModule,
|
|
935
|
+
megamenu.MegaMenuModule,
|
|
936
|
+
menubar.MenubarModule,
|
|
937
|
+
menu.MenuModule,
|
|
938
|
+
message.MessageModule,
|
|
939
|
+
messages.MessagesModule,
|
|
940
|
+
multiselect.MultiSelectModule,
|
|
941
|
+
organizationchart.OrganizationChartModule,
|
|
942
|
+
overlaypanel.OverlayPanelModule,
|
|
943
|
+
panelmenu.PanelMenuModule,
|
|
944
|
+
panel.PanelModule,
|
|
945
|
+
password.PasswordModule,
|
|
946
|
+
progressbar.ProgressBarModule,
|
|
947
|
+
radiobutton.RadioButtonModule,
|
|
948
|
+
rating.RatingModule,
|
|
949
|
+
i9.RippleModule,
|
|
950
|
+
scrollpanel.ScrollPanelModule,
|
|
951
|
+
scrolltop.ScrollTopModule,
|
|
952
|
+
selectbutton.SelectButtonModule,
|
|
953
|
+
sidebar.SidebarModule,
|
|
954
|
+
skeleton.SkeletonModule,
|
|
955
|
+
slidemenu.SlideMenuModule,
|
|
956
|
+
slider.SliderModule,
|
|
957
|
+
splitter.SplitterModule,
|
|
958
|
+
steps.StepsModule,
|
|
959
|
+
i5.TableModule,
|
|
960
|
+
tabmenu.TabMenuModule,
|
|
961
|
+
tabview.TabViewModule,
|
|
962
|
+
tag.TagModule,
|
|
963
|
+
terminal.TerminalModule,
|
|
964
|
+
tieredmenu.TieredMenuModule,
|
|
965
|
+
timeline.TimelineModule,
|
|
966
|
+
i5$2.ToastModule,
|
|
967
|
+
togglebutton.ToggleButtonModule,
|
|
968
|
+
i4.ToolbarModule,
|
|
969
|
+
i11.TooltipModule,
|
|
970
|
+
tree.TreeModule,
|
|
971
|
+
]] });
|
|
972
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, decorators: [{
|
|
973
|
+
type: i0.NgModule,
|
|
974
|
+
args: [{
|
|
975
|
+
declarations: [
|
|
976
|
+
SfCrudComponent,
|
|
977
|
+
TableroComponent,
|
|
978
|
+
RegistroComponent,
|
|
979
|
+
ControlComponent
|
|
980
|
+
],
|
|
981
|
+
imports: [
|
|
982
|
+
accordion.AccordionModule,
|
|
983
|
+
i3$2.AutoCompleteModule,
|
|
984
|
+
avatargroup.AvatarGroupModule,
|
|
985
|
+
avatar.AvatarModule,
|
|
986
|
+
badge.BadgeModule,
|
|
987
|
+
i3.BlockUIModule,
|
|
988
|
+
breadcrumb.BreadcrumbModule,
|
|
989
|
+
i8.ButtonModule,
|
|
990
|
+
i4$1.CalendarModule,
|
|
991
|
+
card.CardModule,
|
|
992
|
+
carousel.CarouselModule,
|
|
993
|
+
cascadeselect.CascadeSelectModule,
|
|
994
|
+
checkbox.CheckboxModule,
|
|
995
|
+
chip.ChipModule,
|
|
996
|
+
chips.ChipsModule,
|
|
997
|
+
codehighlighter.CodeHighlighterModule,
|
|
998
|
+
colorpicker.ColorPickerModule,
|
|
999
|
+
confirmdialog.ConfirmDialogModule,
|
|
1000
|
+
confirmpopup.ConfirmPopupModule,
|
|
1001
|
+
contextmenu.ContextMenuModule,
|
|
1002
|
+
dialog.DialogModule,
|
|
1003
|
+
divider.DividerModule,
|
|
1004
|
+
i2$1.DropdownModule,
|
|
1005
|
+
fieldset.FieldsetModule,
|
|
1006
|
+
fileupload.FileUploadModule,
|
|
1007
|
+
i7.FormsModule,
|
|
1008
|
+
galleria.GalleriaModule,
|
|
1009
|
+
i1.HttpClientModule,
|
|
1010
|
+
inplace.InplaceModule,
|
|
1011
|
+
inputmask.InputMaskModule,
|
|
1012
|
+
i5$1.InputNumberModule,
|
|
1013
|
+
inputswitch.InputSwitchModule,
|
|
1014
|
+
inputtextarea.InputTextareaModule,
|
|
1015
|
+
i10.InputTextModule,
|
|
1016
|
+
knob.KnobModule,
|
|
1017
|
+
lightbox.LightboxModule,
|
|
1018
|
+
listbox.ListboxModule,
|
|
1019
|
+
megamenu.MegaMenuModule,
|
|
1020
|
+
menubar.MenubarModule,
|
|
1021
|
+
menu.MenuModule,
|
|
1022
|
+
message.MessageModule,
|
|
1023
|
+
messages.MessagesModule,
|
|
1024
|
+
multiselect.MultiSelectModule,
|
|
1025
|
+
organizationchart.OrganizationChartModule,
|
|
1026
|
+
overlaypanel.OverlayPanelModule,
|
|
1027
|
+
panelmenu.PanelMenuModule,
|
|
1028
|
+
panel.PanelModule,
|
|
1029
|
+
password.PasswordModule,
|
|
1030
|
+
progressbar.ProgressBarModule,
|
|
1031
|
+
radiobutton.RadioButtonModule,
|
|
1032
|
+
rating.RatingModule,
|
|
1033
|
+
i9.RippleModule,
|
|
1034
|
+
scrollpanel.ScrollPanelModule,
|
|
1035
|
+
scrolltop.ScrollTopModule,
|
|
1036
|
+
selectbutton.SelectButtonModule,
|
|
1037
|
+
sidebar.SidebarModule,
|
|
1038
|
+
skeleton.SkeletonModule,
|
|
1039
|
+
slidemenu.SlideMenuModule,
|
|
1040
|
+
slider.SliderModule,
|
|
1041
|
+
splitter.SplitterModule,
|
|
1042
|
+
steps.StepsModule,
|
|
1043
|
+
i5.TableModule,
|
|
1044
|
+
tabmenu.TabMenuModule,
|
|
1045
|
+
tabview.TabViewModule,
|
|
1046
|
+
tag.TagModule,
|
|
1047
|
+
terminal.TerminalModule,
|
|
1048
|
+
tieredmenu.TieredMenuModule,
|
|
1049
|
+
timeline.TimelineModule,
|
|
1050
|
+
i5$2.ToastModule,
|
|
1051
|
+
togglebutton.ToggleButtonModule,
|
|
1052
|
+
i4.ToolbarModule,
|
|
1053
|
+
i11.TooltipModule,
|
|
1054
|
+
tree.TreeModule,
|
|
1055
|
+
],
|
|
1056
|
+
exports: [
|
|
1057
|
+
SfCrudComponent,
|
|
1058
|
+
TableroComponent,
|
|
1059
|
+
RegistroComponent
|
|
1060
|
+
]
|
|
1061
|
+
}]
|
|
1062
|
+
}] });
|
|
811
1063
|
|
|
812
1064
|
var SfCrudService = /** @class */ (function () {
|
|
813
1065
|
function SfCrudService() {
|
|
814
1066
|
}
|
|
815
1067
|
return SfCrudService;
|
|
816
1068
|
}());
|
|
817
|
-
SfCrudService.ɵ
|
|
818
|
-
SfCrudService
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
1069
|
+
SfCrudService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1070
|
+
SfCrudService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudService, providedIn: 'root' });
|
|
1071
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudService, decorators: [{
|
|
1072
|
+
type: i0.Injectable,
|
|
1073
|
+
args: [{
|
|
1074
|
+
providedIn: 'root'
|
|
1075
|
+
}]
|
|
1076
|
+
}], ctorParameters: function () { return []; } });
|
|
824
1077
|
|
|
825
1078
|
/*
|
|
826
1079
|
* Public API Surface of sf-crud
|
|
@@ -835,10 +1088,8 @@
|
|
|
835
1088
|
exports.SfCrudModule = SfCrudModule;
|
|
836
1089
|
exports.SfCrudService = SfCrudService;
|
|
837
1090
|
exports.TableroComponent = TableroComponent;
|
|
838
|
-
exports.ɵa = GeneralService;
|
|
839
|
-
exports.ɵb = ControlComponent;
|
|
840
1091
|
|
|
841
1092
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
842
1093
|
|
|
843
|
-
}))
|
|
1094
|
+
}));
|
|
844
1095
|
//# sourceMappingURL=sf-crud.umd.js.map
|