sf-crud 12.0.1-beta1
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/README.md +24 -0
- package/bundles/sf-crud.umd.js +1037 -0
- package/bundles/sf-crud.umd.js.map +1 -0
- package/esm2015/lib/components/control/control.component.js +35 -0
- package/esm2015/lib/components/registro/registro.component.js +160 -0
- package/esm2015/lib/components/tablero/tablero.component.js +95 -0
- package/esm2015/lib/sf-crud.component.js +26 -0
- package/esm2015/lib/sf-crud.module.js +329 -0
- package/esm2015/lib/sf-crud.service.js +14 -0
- package/esm2015/lib/shared/services/general.service.js +50 -0
- package/esm2015/lib/shared/services/models/crud-config.model.js +43 -0
- package/esm2015/lib/shared/services/models/shema.model.js +6 -0
- package/esm2015/public-api.js +9 -0
- package/esm2015/sf-crud.js +5 -0
- package/fesm2015/sf-crud.js +733 -0
- package/fesm2015/sf-crud.js.map +1 -0
- package/lib/components/control/control.component.d.ts +13 -0
- package/lib/components/registro/registro.component.d.ts +36 -0
- package/lib/components/tablero/tablero.component.d.ts +29 -0
- package/lib/sf-crud.component.d.ts +8 -0
- package/lib/sf-crud.module.d.ts +82 -0
- package/lib/sf-crud.service.d.ts +6 -0
- package/lib/shared/services/general.service.d.ts +13 -0
- package/lib/shared/services/models/crud-config.model.d.ts +36 -0
- package/lib/shared/services/models/shema.model.d.ts +6 -0
- package/package.json +18 -0
- package/public-api.d.ts +5 -0
- package/sf-crud.d.ts +5 -0
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
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('@angular/forms'), require('primeng/accordion'), require('primeng/avatar'), require('primeng/avatargroup'), require('primeng/badge'), require('primeng/breadcrumb'), require('primeng/calendar'), require('primeng/card'), require('primeng/carousel'), require('primeng/cascadeselect'), require('primeng/checkbox'), require('primeng/chip'), require('primeng/chips'), require('primeng/codehighlighter'), require('primeng/confirmdialog'), require('primeng/confirmpopup'), require('primeng/colorpicker'), require('primeng/contextmenu'), require('primeng/dialog'), require('primeng/divider'), require('primeng/fieldset'), require('primeng/fileupload'), require('primeng/galleria'), require('primeng/inplace'), require('primeng/inputnumber'), require('primeng/inputmask'), require('primeng/inputswitch'), require('primeng/inputtextarea'), require('primeng/knob'), require('primeng/lightbox'), require('primeng/listbox'), require('primeng/megamenu'), require('primeng/menu'), require('primeng/menubar'), require('primeng/messages'), require('primeng/message'), require('primeng/multiselect'), require('primeng/organizationchart'), require('primeng/overlaypanel'), require('primeng/panel'), require('primeng/panelmenu'), 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', '@angular/forms', 'primeng/accordion', 'primeng/avatar', 'primeng/avatargroup', 'primeng/badge', 'primeng/breadcrumb', 'primeng/calendar', 'primeng/card', 'primeng/carousel', 'primeng/cascadeselect', 'primeng/checkbox', 'primeng/chip', 'primeng/chips', 'primeng/codehighlighter', 'primeng/confirmdialog', 'primeng/confirmpopup', 'primeng/colorpicker', 'primeng/contextmenu', 'primeng/dialog', 'primeng/divider', 'primeng/fieldset', 'primeng/fileupload', 'primeng/galleria', 'primeng/inplace', 'primeng/inputnumber', 'primeng/inputmask', 'primeng/inputswitch', 'primeng/inputtextarea', 'primeng/knob', 'primeng/lightbox', 'primeng/listbox', 'primeng/megamenu', 'primeng/menu', 'primeng/menubar', 'primeng/messages', 'primeng/message', 'primeng/multiselect', 'primeng/organizationchart', 'primeng/overlaypanel', 'primeng/panel', 'primeng/panelmenu', '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$1, global.i1$1, global.ng.forms, global.accordion, global.avatar, global.avatargroup, global.badge, global.breadcrumb, global.calendar, global.card, global.carousel, global.cascadeselect, global.checkbox, global.chip, global.chips, global.codehighlighter, global.confirmdialog, global.confirmpopup, global.colorpicker, global.contextmenu, global.dialog, global.divider, global.fieldset, global.fileupload, global.galleria, global.inplace, global.inputnumber, global.inputmask, global.inputswitch, global.inputtextarea, global.knob, global.lightbox, global.listbox, global.megamenu, global.menu, global.menubar, global.messages, global.message, global.multiselect, global.organizationchart, global.overlaypanel, global.panel, global.panelmenu, 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, i7, i3$1, i8, i9, i10, i11, jsonpath, i5$1, i1$1, i3$2, accordion, avatar, avatargroup, badge, breadcrumb, calendar, card, carousel, cascadeselect, checkbox, chip, chips, codehighlighter, confirmdialog, confirmpopup, colorpicker, contextmenu, dialog, divider, fieldset, fileupload, galleria, inplace, inputnumber, inputmask, inputswitch, inputtextarea, knob, lightbox, listbox, megamenu, menu, menubar, messages, message, multiselect, organizationchart, overlaypanel, panel, panelmenu, 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 i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
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$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
39
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
40
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
41
|
+
|
|
42
|
+
var Shema = /** @class */ (function () {
|
|
43
|
+
function Shema() {
|
|
44
|
+
this.type = '';
|
|
45
|
+
}
|
|
46
|
+
return Shema;
|
|
47
|
+
}());
|
|
48
|
+
|
|
49
|
+
var CrudConfig = /** @class */ (function () {
|
|
50
|
+
function CrudConfig() {
|
|
51
|
+
this.idEntidad = '';
|
|
52
|
+
this.tablero = new ConfigTablero();
|
|
53
|
+
this.esquema = new Shema();
|
|
54
|
+
this.registro = new ConfigRegistro();
|
|
55
|
+
}
|
|
56
|
+
return CrudConfig;
|
|
57
|
+
}());
|
|
58
|
+
var ConfigTablero = /** @class */ (function () {
|
|
59
|
+
function ConfigTablero() {
|
|
60
|
+
this.columns = [];
|
|
61
|
+
this.endpoint = '';
|
|
62
|
+
this.method = '';
|
|
63
|
+
this.server = '';
|
|
64
|
+
this.key = '';
|
|
65
|
+
this.filters = [];
|
|
66
|
+
}
|
|
67
|
+
return ConfigTablero;
|
|
68
|
+
}());
|
|
69
|
+
var ConfigRegistro = /** @class */ (function () {
|
|
70
|
+
function ConfigRegistro() {
|
|
71
|
+
this.operations = [];
|
|
72
|
+
this.btnBack = '';
|
|
73
|
+
}
|
|
74
|
+
return ConfigRegistro;
|
|
75
|
+
}());
|
|
76
|
+
var Operations = /** @class */ (function () {
|
|
77
|
+
function Operations() {
|
|
78
|
+
this.type = '';
|
|
79
|
+
this.server = '';
|
|
80
|
+
this.endpoint = '';
|
|
81
|
+
this.method = '';
|
|
82
|
+
this.validations = new Validations();
|
|
83
|
+
}
|
|
84
|
+
return Operations;
|
|
85
|
+
}());
|
|
86
|
+
var Validations = /** @class */ (function () {
|
|
87
|
+
function Validations() {
|
|
88
|
+
this.type = '';
|
|
89
|
+
this.required = [];
|
|
90
|
+
this.server = '';
|
|
91
|
+
this.endpoint = '';
|
|
92
|
+
}
|
|
93
|
+
return Validations;
|
|
94
|
+
}());
|
|
95
|
+
|
|
96
|
+
/******************************************************************************
|
|
97
|
+
Copyright (c) Microsoft Corporation.
|
|
98
|
+
|
|
99
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
100
|
+
purpose with or without fee is hereby granted.
|
|
101
|
+
|
|
102
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
103
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
104
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
105
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
106
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
107
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
108
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
109
|
+
***************************************************************************** */
|
|
110
|
+
/* global Reflect, Promise */
|
|
111
|
+
var extendStatics = function (d, b) {
|
|
112
|
+
extendStatics = Object.setPrototypeOf ||
|
|
113
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
114
|
+
function (d, b) { for (var p in b)
|
|
115
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
116
|
+
d[p] = b[p]; };
|
|
117
|
+
return extendStatics(d, b);
|
|
118
|
+
};
|
|
119
|
+
function __extends(d, b) {
|
|
120
|
+
if (typeof b !== "function" && b !== null)
|
|
121
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
122
|
+
extendStatics(d, b);
|
|
123
|
+
function __() { this.constructor = d; }
|
|
124
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
125
|
+
}
|
|
126
|
+
var __assign = function () {
|
|
127
|
+
__assign = Object.assign || function __assign(t) {
|
|
128
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
129
|
+
s = arguments[i];
|
|
130
|
+
for (var p in s)
|
|
131
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
132
|
+
t[p] = s[p];
|
|
133
|
+
}
|
|
134
|
+
return t;
|
|
135
|
+
};
|
|
136
|
+
return __assign.apply(this, arguments);
|
|
137
|
+
};
|
|
138
|
+
function __rest(s, e) {
|
|
139
|
+
var t = {};
|
|
140
|
+
for (var p in s)
|
|
141
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
142
|
+
t[p] = s[p];
|
|
143
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
144
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
145
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
146
|
+
t[p[i]] = s[p[i]];
|
|
147
|
+
}
|
|
148
|
+
return t;
|
|
149
|
+
}
|
|
150
|
+
function __decorate(decorators, target, key, desc) {
|
|
151
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
152
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
153
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
154
|
+
else
|
|
155
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
156
|
+
if (d = decorators[i])
|
|
157
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
158
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
159
|
+
}
|
|
160
|
+
function __param(paramIndex, decorator) {
|
|
161
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
162
|
+
}
|
|
163
|
+
function __metadata(metadataKey, metadataValue) {
|
|
164
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
165
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
166
|
+
}
|
|
167
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
168
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
169
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
170
|
+
function fulfilled(value) { try {
|
|
171
|
+
step(generator.next(value));
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
reject(e);
|
|
175
|
+
} }
|
|
176
|
+
function rejected(value) { try {
|
|
177
|
+
step(generator["throw"](value));
|
|
178
|
+
}
|
|
179
|
+
catch (e) {
|
|
180
|
+
reject(e);
|
|
181
|
+
} }
|
|
182
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
183
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
function __generator(thisArg, body) {
|
|
187
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
188
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
189
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
190
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
191
|
+
function step(op) {
|
|
192
|
+
if (f)
|
|
193
|
+
throw new TypeError("Generator is already executing.");
|
|
194
|
+
while (_)
|
|
195
|
+
try {
|
|
196
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
197
|
+
return t;
|
|
198
|
+
if (y = 0, t)
|
|
199
|
+
op = [op[0] & 2, t.value];
|
|
200
|
+
switch (op[0]) {
|
|
201
|
+
case 0:
|
|
202
|
+
case 1:
|
|
203
|
+
t = op;
|
|
204
|
+
break;
|
|
205
|
+
case 4:
|
|
206
|
+
_.label++;
|
|
207
|
+
return { value: op[1], done: false };
|
|
208
|
+
case 5:
|
|
209
|
+
_.label++;
|
|
210
|
+
y = op[1];
|
|
211
|
+
op = [0];
|
|
212
|
+
continue;
|
|
213
|
+
case 7:
|
|
214
|
+
op = _.ops.pop();
|
|
215
|
+
_.trys.pop();
|
|
216
|
+
continue;
|
|
217
|
+
default:
|
|
218
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
219
|
+
_ = 0;
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
223
|
+
_.label = op[1];
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
227
|
+
_.label = t[1];
|
|
228
|
+
t = op;
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
if (t && _.label < t[2]) {
|
|
232
|
+
_.label = t[2];
|
|
233
|
+
_.ops.push(op);
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
if (t[2])
|
|
237
|
+
_.ops.pop();
|
|
238
|
+
_.trys.pop();
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
op = body.call(thisArg, _);
|
|
242
|
+
}
|
|
243
|
+
catch (e) {
|
|
244
|
+
op = [6, e];
|
|
245
|
+
y = 0;
|
|
246
|
+
}
|
|
247
|
+
finally {
|
|
248
|
+
f = t = 0;
|
|
249
|
+
}
|
|
250
|
+
if (op[0] & 5)
|
|
251
|
+
throw op[1];
|
|
252
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
256
|
+
if (k2 === undefined)
|
|
257
|
+
k2 = k;
|
|
258
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
259
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
260
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
261
|
+
}
|
|
262
|
+
Object.defineProperty(o, k2, desc);
|
|
263
|
+
}) : (function (o, m, k, k2) {
|
|
264
|
+
if (k2 === undefined)
|
|
265
|
+
k2 = k;
|
|
266
|
+
o[k2] = m[k];
|
|
267
|
+
});
|
|
268
|
+
function __exportStar(m, o) {
|
|
269
|
+
for (var p in m)
|
|
270
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
271
|
+
__createBinding(o, m, p);
|
|
272
|
+
}
|
|
273
|
+
function __values(o) {
|
|
274
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
275
|
+
if (m)
|
|
276
|
+
return m.call(o);
|
|
277
|
+
if (o && typeof o.length === "number")
|
|
278
|
+
return {
|
|
279
|
+
next: function () {
|
|
280
|
+
if (o && i >= o.length)
|
|
281
|
+
o = void 0;
|
|
282
|
+
return { value: o && o[i++], done: !o };
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
286
|
+
}
|
|
287
|
+
function __read(o, n) {
|
|
288
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
289
|
+
if (!m)
|
|
290
|
+
return o;
|
|
291
|
+
var i = m.call(o), r, ar = [], e;
|
|
292
|
+
try {
|
|
293
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
294
|
+
ar.push(r.value);
|
|
295
|
+
}
|
|
296
|
+
catch (error) {
|
|
297
|
+
e = { error: error };
|
|
298
|
+
}
|
|
299
|
+
finally {
|
|
300
|
+
try {
|
|
301
|
+
if (r && !r.done && (m = i["return"]))
|
|
302
|
+
m.call(i);
|
|
303
|
+
}
|
|
304
|
+
finally {
|
|
305
|
+
if (e)
|
|
306
|
+
throw e.error;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return ar;
|
|
310
|
+
}
|
|
311
|
+
/** @deprecated */
|
|
312
|
+
function __spread() {
|
|
313
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
314
|
+
ar = ar.concat(__read(arguments[i]));
|
|
315
|
+
return ar;
|
|
316
|
+
}
|
|
317
|
+
/** @deprecated */
|
|
318
|
+
function __spreadArrays() {
|
|
319
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
320
|
+
s += arguments[i].length;
|
|
321
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
322
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
323
|
+
r[k] = a[j];
|
|
324
|
+
return r;
|
|
325
|
+
}
|
|
326
|
+
function __spreadArray(to, from, pack) {
|
|
327
|
+
if (pack || arguments.length === 2)
|
|
328
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
329
|
+
if (ar || !(i in from)) {
|
|
330
|
+
if (!ar)
|
|
331
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
332
|
+
ar[i] = from[i];
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
336
|
+
}
|
|
337
|
+
function __await(v) {
|
|
338
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
339
|
+
}
|
|
340
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
341
|
+
if (!Symbol.asyncIterator)
|
|
342
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
343
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
344
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
345
|
+
function verb(n) { if (g[n])
|
|
346
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
347
|
+
function resume(n, v) { try {
|
|
348
|
+
step(g[n](v));
|
|
349
|
+
}
|
|
350
|
+
catch (e) {
|
|
351
|
+
settle(q[0][3], e);
|
|
352
|
+
} }
|
|
353
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
354
|
+
function fulfill(value) { resume("next", value); }
|
|
355
|
+
function reject(value) { resume("throw", value); }
|
|
356
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
357
|
+
resume(q[0][0], q[0][1]); }
|
|
358
|
+
}
|
|
359
|
+
function __asyncDelegator(o) {
|
|
360
|
+
var i, p;
|
|
361
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
362
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
363
|
+
}
|
|
364
|
+
function __asyncValues(o) {
|
|
365
|
+
if (!Symbol.asyncIterator)
|
|
366
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
367
|
+
var m = o[Symbol.asyncIterator], i;
|
|
368
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
369
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
370
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
371
|
+
}
|
|
372
|
+
function __makeTemplateObject(cooked, raw) {
|
|
373
|
+
if (Object.defineProperty) {
|
|
374
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
cooked.raw = raw;
|
|
378
|
+
}
|
|
379
|
+
return cooked;
|
|
380
|
+
}
|
|
381
|
+
;
|
|
382
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
383
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
384
|
+
}) : function (o, v) {
|
|
385
|
+
o["default"] = v;
|
|
386
|
+
};
|
|
387
|
+
function __importStar(mod) {
|
|
388
|
+
if (mod && mod.__esModule)
|
|
389
|
+
return mod;
|
|
390
|
+
var result = {};
|
|
391
|
+
if (mod != null)
|
|
392
|
+
for (var k in mod)
|
|
393
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
394
|
+
__createBinding(result, mod, k);
|
|
395
|
+
__setModuleDefault(result, mod);
|
|
396
|
+
return result;
|
|
397
|
+
}
|
|
398
|
+
function __importDefault(mod) {
|
|
399
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
400
|
+
}
|
|
401
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
402
|
+
if (kind === "a" && !f)
|
|
403
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
404
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
405
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
406
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
407
|
+
}
|
|
408
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
409
|
+
if (kind === "m")
|
|
410
|
+
throw new TypeError("Private method is not writable");
|
|
411
|
+
if (kind === "a" && !f)
|
|
412
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
413
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
414
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
415
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
416
|
+
}
|
|
417
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
418
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
419
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
420
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
var GeneralService = /** @class */ (function () {
|
|
424
|
+
function GeneralService(http) {
|
|
425
|
+
var _a;
|
|
426
|
+
this.http = http;
|
|
427
|
+
this.generales = '';
|
|
428
|
+
this.jsonConfig = JSON.parse(sessionStorage.getItem('ConfigJSON') || '{}');
|
|
429
|
+
this.generales = (_a = this.jsonConfig) === null || _a === void 0 ? void 0 : _a.ServidorGenerales;
|
|
430
|
+
}
|
|
431
|
+
GeneralService.prototype.getCrudByEntidad = function (idKatios, idEntidad) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
433
|
+
return __generator(this, function (_b) {
|
|
434
|
+
return [2 /*return*/, this.http.get(this.generales + "crud/" + idKatios + "/" + idEntidad)
|
|
435
|
+
.toPromise()
|
|
436
|
+
.then(function (res) { return res.data; })
|
|
437
|
+
.then(function (data) { return data; })];
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
GeneralService.prototype.genericRequest = function (method, servidor, endpoint, data) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
443
|
+
return __generator(this, function (_b) {
|
|
444
|
+
switch (method) {
|
|
445
|
+
case 'GET':
|
|
446
|
+
return [2 /*return*/, this.http.get("" + this.jsonConfig[servidor] + endpoint)
|
|
447
|
+
.toPromise()];
|
|
448
|
+
case 'POST':
|
|
449
|
+
return [2 /*return*/, this.http.post("" + this.jsonConfig[servidor] + endpoint, data)
|
|
450
|
+
.toPromise()];
|
|
451
|
+
case 'PUT':
|
|
452
|
+
return [2 /*return*/, this.http.put("" + this.jsonConfig[servidor] + endpoint, data)
|
|
453
|
+
.toPromise()];
|
|
454
|
+
case 'DELETE':
|
|
455
|
+
return [2 /*return*/, this.http.delete("" + this.jsonConfig[servidor] + endpoint, data)
|
|
456
|
+
.toPromise()];
|
|
457
|
+
default:
|
|
458
|
+
return [2 /*return*/];
|
|
459
|
+
}
|
|
460
|
+
return [2 /*return*/];
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
return GeneralService;
|
|
465
|
+
}());
|
|
466
|
+
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 });
|
|
467
|
+
GeneralService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GeneralService, providedIn: 'root' });
|
|
468
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GeneralService, decorators: [{
|
|
469
|
+
type: i0.Injectable,
|
|
470
|
+
args: [{
|
|
471
|
+
providedIn: 'root'
|
|
472
|
+
}]
|
|
473
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.HttpClient }]; } });
|
|
474
|
+
|
|
475
|
+
var TableroComponent = /** @class */ (function () {
|
|
476
|
+
function TableroComponent(generalService, router) {
|
|
477
|
+
this.generalService = generalService;
|
|
478
|
+
this.router = router;
|
|
479
|
+
this.opciones = [];
|
|
480
|
+
this.idEntidad = '';
|
|
481
|
+
this.idKatios = '';
|
|
482
|
+
this.crudConfig = new CrudConfig();
|
|
483
|
+
this.enProceso = false;
|
|
484
|
+
this.data = [];
|
|
485
|
+
this.btn = { create: undefined, read: undefined, update: undefined, delete: undefined };
|
|
486
|
+
}
|
|
487
|
+
TableroComponent.prototype.ngOnInit = function () {
|
|
488
|
+
this.loadConfigCrud();
|
|
489
|
+
};
|
|
490
|
+
TableroComponent.prototype.loadConfigCrud = function () {
|
|
491
|
+
var _this = this;
|
|
492
|
+
this.enProceso = true;
|
|
493
|
+
this.generalService.getCrudByEntidad(this.idKatios, this.idEntidad)
|
|
494
|
+
.then(function (res) {
|
|
495
|
+
_this.crudConfig = res;
|
|
496
|
+
_this.getInfoTablero(_this.crudConfig.tablero);
|
|
497
|
+
_this.loadOptions();
|
|
498
|
+
})
|
|
499
|
+
.catch(function (err) {
|
|
500
|
+
console.log(err);
|
|
501
|
+
_this.enProceso = false;
|
|
502
|
+
});
|
|
503
|
+
};
|
|
504
|
+
TableroComponent.prototype.getInfoTablero = function (configTablero) {
|
|
505
|
+
var _this = this;
|
|
506
|
+
this.generalService.genericRequest(configTablero.method, configTablero.server, configTablero.endpoint)
|
|
507
|
+
.then(function (res) {
|
|
508
|
+
_this.data = res.data;
|
|
509
|
+
_this.enProceso = false;
|
|
510
|
+
})
|
|
511
|
+
.catch(function (err) {
|
|
512
|
+
console.log(err);
|
|
513
|
+
_this.enProceso = false;
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
TableroComponent.prototype.loadOptions = function () {
|
|
517
|
+
this.btn.create = this.opciones.find(function (x) { return x.label == 'Crear'; });
|
|
518
|
+
this.btn.read = this.opciones.find(function (x) { return x.label == 'Visualizar'; });
|
|
519
|
+
this.btn.update = this.opciones.find(function (x) { return x.label == 'Editar'; });
|
|
520
|
+
this.btn.delete = this.opciones.find(function (x) { return x.label == 'Eliminar'; });
|
|
521
|
+
};
|
|
522
|
+
TableroComponent.prototype.redirect = function (data, accion) {
|
|
523
|
+
var _a, _b;
|
|
524
|
+
switch (accion) {
|
|
525
|
+
case 'create':
|
|
526
|
+
this.router.navigateByUrl(((_b = (_a = this.btn.create) === null || _a === void 0 ? void 0 : _a.valor) === null || _b === void 0 ? void 0 : _b.redirect) || '');
|
|
527
|
+
break;
|
|
528
|
+
case 'read':
|
|
529
|
+
this.router.navigateByUrl(this.btn.read.valor.redirect.replace('$id', data[this.crudConfig.tablero.key]));
|
|
530
|
+
break;
|
|
531
|
+
case 'update':
|
|
532
|
+
this.router.navigateByUrl(this.btn.update.valor.redirect.replace('$id', data[this.crudConfig.tablero.key]));
|
|
533
|
+
break;
|
|
534
|
+
case 'delete':
|
|
535
|
+
this.router.navigateByUrl(this.btn.delete.valor.redirect.replace('$id', data[this.crudConfig.tablero.key]));
|
|
536
|
+
break;
|
|
537
|
+
default:
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
return TableroComponent;
|
|
542
|
+
}());
|
|
543
|
+
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 });
|
|
544
|
+
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\">\n <i class=\"pi pi-cog pi-spin\" style=\"font-size: 50px\"></i>\n</p-blockUI>\n\n<div class=\"card\" *ngIf=\"!enProceso\">\n <p-toolbar styleClass=\"mb-4 gap-2\">\n <ng-template pTemplate=\"left\">\n <button *ngIf=\"btn.create\" pButton pRipple [label]=\"btn.create.label\" [icon]=\"btn.create.icon\"\n class=\"p-button-success mr-2\" (click)=\"redirect(rowData, 'create')\"></button>\n </ng-template>\n </p-toolbar>\n <p-table #dt [columns]=\"crudConfig.tablero.columns\" [value]=\"data\" [rowHover]=\"true\" [rows]=\"10\" [paginator]=\"true\"\n [globalFilterFields]=\"crudConfig.tablero?.filters || []\" [tableStyle]=\"{'min-width': '75rem'}\"\n currentPageReportTemplate=\"Registro {first} al {last} de {totalRecords} {{idEntidad}}\"\n [showCurrentPageReport]=\"true\">\n <ng-template pTemplate=\"caption\">\n <div class=\"flex align-items-center justify-content-between\">\n <h5 class=\"m-0\">{{idEntidad}}</h5>\n <span class=\"p-input-icon-left\">\n <i class=\"pi pi-search\"></i>\n <input pInputText type=\"text\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\"\n placeholder=\"Buscar...\" />\n </span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\">\n {{col.label}}\n </th>\n <th>Acci\u00F3n</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr>\n <td *ngFor=\"let col of columns\">\n {{rowData[col.col]}}\n </td>\n <th>\n <button *ngIf=\"btn.read\" pButton pRipple [pTooltip]=\"btn.read.label\" [icon]=\"btn.read.icon\"\n class=\"p-button-rounded p-button-info mr-2\" (click)=\"redirect(rowData, 'read')\"></button>\n <button *ngIf=\"btn.update\" pButton pRipple [pTooltip]=\"btn.update.label\" [icon]=\"btn.update.icon\"\n class=\"p-button-rounded p-button-warning mr-2\" (click)=\"redirect(rowData, 'update')\"></button>\n <button *ngIf=\"btn.delete\" pButton pRipple [pTooltip]=\"btn.delete.label\" [icon]=\"btn.delete.icon\"\n class=\"p-button-rounded p-button-danger mr-2\" (click)=\"redirect(rowData, 'delete')\"></button>\n </th>\n </tr>\n </ng-template>\n </p-table>\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: i7__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: i7__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"] }] });
|
|
545
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TableroComponent, decorators: [{
|
|
546
|
+
type: i0.Component,
|
|
547
|
+
args: [{
|
|
548
|
+
selector: 'sf-crudtablero',
|
|
549
|
+
templateUrl: './tablero.component.html'
|
|
550
|
+
}]
|
|
551
|
+
}], ctorParameters: function () { return [{ type: GeneralService }, { type: i2__namespace.Router }]; }, propDecorators: { opciones: [{
|
|
552
|
+
type: i0.Input
|
|
553
|
+
}], idEntidad: [{
|
|
554
|
+
type: i0.Input
|
|
555
|
+
}], idKatios: [{
|
|
556
|
+
type: i0.Input
|
|
557
|
+
}] } });
|
|
558
|
+
|
|
559
|
+
var ControlComponent = /** @class */ (function () {
|
|
560
|
+
function ControlComponent() {
|
|
561
|
+
this.label = '';
|
|
562
|
+
this.setValue = new i0.EventEmitter();
|
|
563
|
+
}
|
|
564
|
+
ControlComponent.prototype.ngOnInit = function () {
|
|
565
|
+
};
|
|
566
|
+
ControlComponent.prototype.sendValue = function () {
|
|
567
|
+
this.setValue.emit(this.value);
|
|
568
|
+
};
|
|
569
|
+
return ControlComponent;
|
|
570
|
+
}());
|
|
571
|
+
ControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
572
|
+
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\">\n <ng-container *ngSwitchCase=\"'string'\">\n <label>{{label}}</label>\n <ng-container *ngIf=\"!control?.enum\">\n <input pInputText type=\"text\" [(ngModel)]=\"value\" (focusout)=\"sendValue()\">\n </ng-container>\n <ng-container *ngIf=\"control?.enum\">\n <p-dropdown [options]=\"control.enum\" [(ngModel)]=\"value\" (onChange)=\"sendValue()\" placeholder=\"Seleccione una opci\u00F3n\"></p-dropdown>\n </ng-container>\n </ng-container>\n</ng-container>\n", components: [{ type: i1__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"] }], directives: [{ type: i7__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.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: i3__namespace$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3__namespace$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
573
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ControlComponent, decorators: [{
|
|
574
|
+
type: i0.Component,
|
|
575
|
+
args: [{
|
|
576
|
+
selector: 'sf-control',
|
|
577
|
+
templateUrl: './control.component.html'
|
|
578
|
+
}]
|
|
579
|
+
}], ctorParameters: function () { return []; }, propDecorators: { control: [{
|
|
580
|
+
type: i0.Input
|
|
581
|
+
}], label: [{
|
|
582
|
+
type: i0.Input
|
|
583
|
+
}], value: [{
|
|
584
|
+
type: i0.Input
|
|
585
|
+
}], setValue: [{
|
|
586
|
+
type: i0.Output
|
|
587
|
+
}] } });
|
|
588
|
+
|
|
589
|
+
var RegistroComponent = /** @class */ (function () {
|
|
590
|
+
function RegistroComponent(generalService, router, messageSerice) {
|
|
591
|
+
this.generalService = generalService;
|
|
592
|
+
this.router = router;
|
|
593
|
+
this.messageSerice = messageSerice;
|
|
594
|
+
this.idKatios = '';
|
|
595
|
+
this.idEntidad = '';
|
|
596
|
+
this.trx = '';
|
|
597
|
+
this.id = '';
|
|
598
|
+
this.enProceso = false;
|
|
599
|
+
this.crudConfig = new CrudConfig();
|
|
600
|
+
this.configOperation = new Operations();
|
|
601
|
+
}
|
|
602
|
+
RegistroComponent.prototype.ngOnInit = function () {
|
|
603
|
+
this.loadConfigCrud();
|
|
604
|
+
this.setLabelSumbit();
|
|
605
|
+
};
|
|
606
|
+
RegistroComponent.prototype.loadConfigCrud = function () {
|
|
607
|
+
var _this = this;
|
|
608
|
+
this.enProceso = true;
|
|
609
|
+
this.generalService.getCrudByEntidad(this.idKatios, this.idEntidad)
|
|
610
|
+
.then(function (res) {
|
|
611
|
+
_this.crudConfig = res;
|
|
612
|
+
if (_this.trx != 'c')
|
|
613
|
+
_this.getInfoRegistro(_this.crudConfig.registro);
|
|
614
|
+
else {
|
|
615
|
+
_this.data = _this.createObject(_this.crudConfig.esquema);
|
|
616
|
+
_this.enProceso = false;
|
|
617
|
+
}
|
|
618
|
+
_this.configOperation = _this.crudConfig.registro.operations.find(function (x) { return x.type.startsWith(_this.trx); }) || new Operations();
|
|
619
|
+
})
|
|
620
|
+
.catch(function (err) {
|
|
621
|
+
console.log(err);
|
|
622
|
+
_this.enProceso = false;
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
RegistroComponent.prototype.setLabelSumbit = function () {
|
|
626
|
+
if (this.trx == 'c')
|
|
627
|
+
this.btnSubmit = { label: 'Guardar', icon: 'pi pi-save' };
|
|
628
|
+
else if (this.trx == 'r')
|
|
629
|
+
this.btnSubmit = undefined;
|
|
630
|
+
else if (this.trx == 'u')
|
|
631
|
+
this.btnSubmit = { label: 'Actualizar', icon: 'pi pi-sync' };
|
|
632
|
+
else if (this.trx == 'd')
|
|
633
|
+
this.btnSubmit = { label: 'Eliminar', icon: 'pi pi-trash' };
|
|
634
|
+
};
|
|
635
|
+
RegistroComponent.prototype.getInfoRegistro = function (configRegistro) {
|
|
636
|
+
var _this = this;
|
|
637
|
+
var op = configRegistro.operations.find(function (x) { return x.type == 'read'; });
|
|
638
|
+
var endpoint = (op === null || op === void 0 ? void 0 : op.endpoint) || '';
|
|
639
|
+
endpoint = endpoint.replace('@idKatios', this.idKatios);
|
|
640
|
+
endpoint = endpoint.replace('@id', this.id);
|
|
641
|
+
this.generalService.genericRequest((op === null || op === void 0 ? void 0 : op.method) || '', (op === null || op === void 0 ? void 0 : op.server) || '', endpoint)
|
|
642
|
+
.then(function (res) {
|
|
643
|
+
_this.data = res.data;
|
|
644
|
+
_this.enProceso = false;
|
|
645
|
+
})
|
|
646
|
+
.catch(function (err) {
|
|
647
|
+
console.log(err);
|
|
648
|
+
_this.enProceso = false;
|
|
649
|
+
});
|
|
650
|
+
};
|
|
651
|
+
RegistroComponent.prototype.back = function () {
|
|
652
|
+
this.router.navigateByUrl(this.crudConfig.registro.btnBack);
|
|
653
|
+
};
|
|
654
|
+
RegistroComponent.prototype.getControl = function (scope) {
|
|
655
|
+
return jsonpath__namespace.query(this.crudConfig.esquema, scope)[0];
|
|
656
|
+
};
|
|
657
|
+
RegistroComponent.prototype.getValue = function (scope) {
|
|
658
|
+
return jsonpath__namespace.query(this.data, scope.replace('.properties', ''))[0];
|
|
659
|
+
};
|
|
660
|
+
RegistroComponent.prototype.setValue = function (value, scope) {
|
|
661
|
+
jsonpath__namespace.value(this.data, scope.replace('.properties', ''), value);
|
|
662
|
+
};
|
|
663
|
+
RegistroComponent.prototype.createObject = function (esquema) {
|
|
664
|
+
var object = {};
|
|
665
|
+
switch (esquema.type) {
|
|
666
|
+
case 'string':
|
|
667
|
+
case 'number':
|
|
668
|
+
return (esquema === null || esquema === void 0 ? void 0 : esquema.default) || null;
|
|
669
|
+
case 'boolean':
|
|
670
|
+
return (esquema === null || esquema === void 0 ? void 0 : esquema.default) || false;
|
|
671
|
+
case 'object':
|
|
672
|
+
for (var key in esquema === null || esquema === void 0 ? void 0 : esquema.properties) {
|
|
673
|
+
Object.defineProperty(object, key, { value: this.createObject(esquema === null || esquema === void 0 ? void 0 : esquema.properties[key]), writable: true, enumerable: true, configurable: true });
|
|
674
|
+
}
|
|
675
|
+
break;
|
|
676
|
+
default:
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
return object;
|
|
680
|
+
};
|
|
681
|
+
RegistroComponent.prototype.submit = function () {
|
|
682
|
+
var _this = this;
|
|
683
|
+
if (!this.validateData())
|
|
684
|
+
return;
|
|
685
|
+
this.enProceso = true;
|
|
686
|
+
var endpoint = this.configOperation.endpoint;
|
|
687
|
+
endpoint = endpoint.replace('@idKatios', this.idKatios);
|
|
688
|
+
endpoint = endpoint.replace('@id', this.id);
|
|
689
|
+
this.generalService.genericRequest(this.configOperation.method, this.configOperation.server, endpoint, this.data)
|
|
690
|
+
.then(function () {
|
|
691
|
+
_this.messageSerice.add({ severity: 'success', detail: "Proceso exitoso!" });
|
|
692
|
+
setTimeout(function () {
|
|
693
|
+
_this.enProceso = false;
|
|
694
|
+
_this.back();
|
|
695
|
+
}, 2000);
|
|
696
|
+
})
|
|
697
|
+
.catch(function (err) {
|
|
698
|
+
var _a;
|
|
699
|
+
_this.messageSerice.add({ severity: 'warn', detail: "" + (((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.message) || 'Error no controlado, por favor comunicarse con del admin.') });
|
|
700
|
+
_this.enProceso = false;
|
|
701
|
+
});
|
|
702
|
+
};
|
|
703
|
+
RegistroComponent.prototype.validateData = function () {
|
|
704
|
+
if (this.configOperation.validations.type == 'local')
|
|
705
|
+
return this.validateDataLocal();
|
|
706
|
+
return true;
|
|
707
|
+
};
|
|
708
|
+
RegistroComponent.prototype.validateDataLocal = function () {
|
|
709
|
+
var _this = this;
|
|
710
|
+
var err = [];
|
|
711
|
+
this.configOperation.validations.required.forEach(function (x) {
|
|
712
|
+
if (!jsonpath__namespace.query(_this.data, x.field)[0])
|
|
713
|
+
err.push(x.message);
|
|
714
|
+
});
|
|
715
|
+
if (err.length != 0)
|
|
716
|
+
this.messageSerice.add({ severity: 'warn', detail: err.join('. ') });
|
|
717
|
+
return err.length == 0;
|
|
718
|
+
};
|
|
719
|
+
return RegistroComponent;
|
|
720
|
+
}());
|
|
721
|
+
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 });
|
|
722
|
+
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\">\n <i class=\"pi pi-cog pi-spin\" style=\"font-size: 50px\"></i>\n</p-blockUI>\n\n<p-toast></p-toast>\n\n<div class=\"card\" *ngIf=\"!enProceso\">\n <h5 class=\"card-header mb-2\" style=\"display: flex; justify-content: space-between;align-items: center;\">\n <span>{{idEntidad}} {{id != '' ? '-' + id : ''}}</span>\n <button pButton pRipple type=\"button\" icon=\"pi pi-arrow-left\" (click)=\"back()\"></button>\n </h5>\n <div *ngFor=\"let element of crudConfig.uiEsquema.elements\" [class]=\"element?.class\">\n <ng-container [ngSwitch]=\"element.type\">\n <div *ngSwitchCase=\"'Label'\" [style]=\"element?.style\">\n {{element?.label}}\n </div>\n <ng-container *ngSwitchCase=\"'HorizontalLayout'\">\n <div *ngFor=\"let el of element.elements\" [class]=\"el?.class\">\n <ng-container [ngSwitch]=\"el.type\" >\n <sf-control *ngSwitchCase=\"'Control'\" [control]=\"getControl(el.scope)\" [label]=\"el.label\" [value]=\"getValue(el.scope)\" (setValue)=\"setValue($event, el.scope)\"></sf-control>\n </ng-container>\n </div>\n </ng-container>\n <div *ngSwitchCase=\"'Control'\">\n <sf-control *ngSwitchCase=\"'Control'\" [control]=\"getControl(element.scope)\" [label]=\"element.label\"></sf-control>\n </div>\n </ng-container>\n </div>\n <div class=\"card-footer\" *ngIf=\"btnSubmit\">\n <button pButton pRipple type=\"button\" [icon]=\"btnSubmit.icon\" [label]=\"btnSubmit.label\" (click)=\"submit()\"></button>\n </div>\n</div>", components: [{ type: i3__namespace.BlockUI, selector: "p-blockUI", inputs: ["autoZIndex", "baseZIndex", "blocked", "target", "styleClass"] }, { type: i5__namespace$1.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: i7__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: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
723
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RegistroComponent, decorators: [{
|
|
724
|
+
type: i0.Component,
|
|
725
|
+
args: [{
|
|
726
|
+
selector: 'sf-registro',
|
|
727
|
+
templateUrl: './registro.component.html',
|
|
728
|
+
providers: [i3$1.MessageService]
|
|
729
|
+
}]
|
|
730
|
+
}], ctorParameters: function () { return [{ type: GeneralService }, { type: i2__namespace.Router }, { type: i3__namespace$1.MessageService }]; }, propDecorators: { idKatios: [{
|
|
731
|
+
type: i0.Input
|
|
732
|
+
}], idEntidad: [{
|
|
733
|
+
type: i0.Input
|
|
734
|
+
}], trx: [{
|
|
735
|
+
type: i0.Input
|
|
736
|
+
}], id: [{
|
|
737
|
+
type: i0.Input
|
|
738
|
+
}] } });
|
|
739
|
+
|
|
740
|
+
var SfCrudComponent = /** @class */ (function () {
|
|
741
|
+
function SfCrudComponent() {
|
|
742
|
+
}
|
|
743
|
+
SfCrudComponent.prototype.ngOnInit = function () {
|
|
744
|
+
};
|
|
745
|
+
return SfCrudComponent;
|
|
746
|
+
}());
|
|
747
|
+
SfCrudComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
748
|
+
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 });
|
|
749
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudComponent, decorators: [{
|
|
750
|
+
type: i0.Component,
|
|
751
|
+
args: [{
|
|
752
|
+
selector: 'lib-sf-crud',
|
|
753
|
+
template: "\n <p>\n sf-crud works!\n </p>\n ",
|
|
754
|
+
styles: []
|
|
755
|
+
}]
|
|
756
|
+
}], ctorParameters: function () { return []; } });
|
|
757
|
+
|
|
758
|
+
var SfCrudModule = /** @class */ (function () {
|
|
759
|
+
function SfCrudModule() {
|
|
760
|
+
}
|
|
761
|
+
return SfCrudModule;
|
|
762
|
+
}());
|
|
763
|
+
SfCrudModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
764
|
+
SfCrudModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, declarations: [SfCrudComponent,
|
|
765
|
+
TableroComponent,
|
|
766
|
+
RegistroComponent,
|
|
767
|
+
ControlComponent], imports: [accordion.AccordionModule,
|
|
768
|
+
avatargroup.AvatarGroupModule,
|
|
769
|
+
avatar.AvatarModule,
|
|
770
|
+
badge.BadgeModule,
|
|
771
|
+
i3.BlockUIModule,
|
|
772
|
+
breadcrumb.BreadcrumbModule,
|
|
773
|
+
i8.ButtonModule,
|
|
774
|
+
calendar.CalendarModule,
|
|
775
|
+
card.CardModule,
|
|
776
|
+
carousel.CarouselModule,
|
|
777
|
+
cascadeselect.CascadeSelectModule,
|
|
778
|
+
checkbox.CheckboxModule,
|
|
779
|
+
chip.ChipModule,
|
|
780
|
+
chips.ChipsModule,
|
|
781
|
+
codehighlighter.CodeHighlighterModule,
|
|
782
|
+
colorpicker.ColorPickerModule,
|
|
783
|
+
confirmdialog.ConfirmDialogModule,
|
|
784
|
+
confirmpopup.ConfirmPopupModule,
|
|
785
|
+
contextmenu.ContextMenuModule,
|
|
786
|
+
dialog.DialogModule,
|
|
787
|
+
divider.DividerModule,
|
|
788
|
+
i1$1.DropdownModule,
|
|
789
|
+
fieldset.FieldsetModule,
|
|
790
|
+
fileupload.FileUploadModule,
|
|
791
|
+
i3$2.FormsModule,
|
|
792
|
+
galleria.GalleriaModule,
|
|
793
|
+
i1.HttpClientModule,
|
|
794
|
+
inplace.InplaceModule,
|
|
795
|
+
inputmask.InputMaskModule,
|
|
796
|
+
inputnumber.InputNumberModule,
|
|
797
|
+
inputswitch.InputSwitchModule,
|
|
798
|
+
inputtextarea.InputTextareaModule,
|
|
799
|
+
i10.InputTextModule,
|
|
800
|
+
knob.KnobModule,
|
|
801
|
+
lightbox.LightboxModule,
|
|
802
|
+
listbox.ListboxModule,
|
|
803
|
+
megamenu.MegaMenuModule,
|
|
804
|
+
menubar.MenubarModule,
|
|
805
|
+
menu.MenuModule,
|
|
806
|
+
message.MessageModule,
|
|
807
|
+
messages.MessagesModule,
|
|
808
|
+
multiselect.MultiSelectModule,
|
|
809
|
+
organizationchart.OrganizationChartModule,
|
|
810
|
+
overlaypanel.OverlayPanelModule,
|
|
811
|
+
panelmenu.PanelMenuModule,
|
|
812
|
+
panel.PanelModule,
|
|
813
|
+
password.PasswordModule,
|
|
814
|
+
progressbar.ProgressBarModule,
|
|
815
|
+
radiobutton.RadioButtonModule,
|
|
816
|
+
rating.RatingModule,
|
|
817
|
+
i9.RippleModule,
|
|
818
|
+
scrollpanel.ScrollPanelModule,
|
|
819
|
+
scrolltop.ScrollTopModule,
|
|
820
|
+
selectbutton.SelectButtonModule,
|
|
821
|
+
sidebar.SidebarModule,
|
|
822
|
+
skeleton.SkeletonModule,
|
|
823
|
+
slidemenu.SlideMenuModule,
|
|
824
|
+
slider.SliderModule,
|
|
825
|
+
splitter.SplitterModule,
|
|
826
|
+
steps.StepsModule,
|
|
827
|
+
i5.TableModule,
|
|
828
|
+
tabmenu.TabMenuModule,
|
|
829
|
+
tabview.TabViewModule,
|
|
830
|
+
tag.TagModule,
|
|
831
|
+
terminal.TerminalModule,
|
|
832
|
+
tieredmenu.TieredMenuModule,
|
|
833
|
+
timeline.TimelineModule,
|
|
834
|
+
i5$1.ToastModule,
|
|
835
|
+
togglebutton.ToggleButtonModule,
|
|
836
|
+
i4.ToolbarModule,
|
|
837
|
+
i11.TooltipModule,
|
|
838
|
+
tree.TreeModule], exports: [SfCrudComponent,
|
|
839
|
+
TableroComponent,
|
|
840
|
+
RegistroComponent] });
|
|
841
|
+
SfCrudModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, imports: [[
|
|
842
|
+
accordion.AccordionModule,
|
|
843
|
+
avatargroup.AvatarGroupModule,
|
|
844
|
+
avatar.AvatarModule,
|
|
845
|
+
badge.BadgeModule,
|
|
846
|
+
i3.BlockUIModule,
|
|
847
|
+
breadcrumb.BreadcrumbModule,
|
|
848
|
+
i8.ButtonModule,
|
|
849
|
+
calendar.CalendarModule,
|
|
850
|
+
card.CardModule,
|
|
851
|
+
carousel.CarouselModule,
|
|
852
|
+
cascadeselect.CascadeSelectModule,
|
|
853
|
+
checkbox.CheckboxModule,
|
|
854
|
+
chip.ChipModule,
|
|
855
|
+
chips.ChipsModule,
|
|
856
|
+
codehighlighter.CodeHighlighterModule,
|
|
857
|
+
colorpicker.ColorPickerModule,
|
|
858
|
+
confirmdialog.ConfirmDialogModule,
|
|
859
|
+
confirmpopup.ConfirmPopupModule,
|
|
860
|
+
contextmenu.ContextMenuModule,
|
|
861
|
+
dialog.DialogModule,
|
|
862
|
+
divider.DividerModule,
|
|
863
|
+
i1$1.DropdownModule,
|
|
864
|
+
fieldset.FieldsetModule,
|
|
865
|
+
fileupload.FileUploadModule,
|
|
866
|
+
i3$2.FormsModule,
|
|
867
|
+
galleria.GalleriaModule,
|
|
868
|
+
i1.HttpClientModule,
|
|
869
|
+
inplace.InplaceModule,
|
|
870
|
+
inputmask.InputMaskModule,
|
|
871
|
+
inputnumber.InputNumberModule,
|
|
872
|
+
inputswitch.InputSwitchModule,
|
|
873
|
+
inputtextarea.InputTextareaModule,
|
|
874
|
+
i10.InputTextModule,
|
|
875
|
+
knob.KnobModule,
|
|
876
|
+
lightbox.LightboxModule,
|
|
877
|
+
listbox.ListboxModule,
|
|
878
|
+
megamenu.MegaMenuModule,
|
|
879
|
+
menubar.MenubarModule,
|
|
880
|
+
menu.MenuModule,
|
|
881
|
+
message.MessageModule,
|
|
882
|
+
messages.MessagesModule,
|
|
883
|
+
multiselect.MultiSelectModule,
|
|
884
|
+
organizationchart.OrganizationChartModule,
|
|
885
|
+
overlaypanel.OverlayPanelModule,
|
|
886
|
+
panelmenu.PanelMenuModule,
|
|
887
|
+
panel.PanelModule,
|
|
888
|
+
password.PasswordModule,
|
|
889
|
+
progressbar.ProgressBarModule,
|
|
890
|
+
radiobutton.RadioButtonModule,
|
|
891
|
+
rating.RatingModule,
|
|
892
|
+
i9.RippleModule,
|
|
893
|
+
scrollpanel.ScrollPanelModule,
|
|
894
|
+
scrolltop.ScrollTopModule,
|
|
895
|
+
selectbutton.SelectButtonModule,
|
|
896
|
+
sidebar.SidebarModule,
|
|
897
|
+
skeleton.SkeletonModule,
|
|
898
|
+
slidemenu.SlideMenuModule,
|
|
899
|
+
slider.SliderModule,
|
|
900
|
+
splitter.SplitterModule,
|
|
901
|
+
steps.StepsModule,
|
|
902
|
+
i5.TableModule,
|
|
903
|
+
tabmenu.TabMenuModule,
|
|
904
|
+
tabview.TabViewModule,
|
|
905
|
+
tag.TagModule,
|
|
906
|
+
terminal.TerminalModule,
|
|
907
|
+
tieredmenu.TieredMenuModule,
|
|
908
|
+
timeline.TimelineModule,
|
|
909
|
+
i5$1.ToastModule,
|
|
910
|
+
togglebutton.ToggleButtonModule,
|
|
911
|
+
i4.ToolbarModule,
|
|
912
|
+
i11.TooltipModule,
|
|
913
|
+
tree.TreeModule,
|
|
914
|
+
]] });
|
|
915
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudModule, decorators: [{
|
|
916
|
+
type: i0.NgModule,
|
|
917
|
+
args: [{
|
|
918
|
+
declarations: [
|
|
919
|
+
SfCrudComponent,
|
|
920
|
+
TableroComponent,
|
|
921
|
+
RegistroComponent,
|
|
922
|
+
ControlComponent
|
|
923
|
+
],
|
|
924
|
+
imports: [
|
|
925
|
+
accordion.AccordionModule,
|
|
926
|
+
avatargroup.AvatarGroupModule,
|
|
927
|
+
avatar.AvatarModule,
|
|
928
|
+
badge.BadgeModule,
|
|
929
|
+
i3.BlockUIModule,
|
|
930
|
+
breadcrumb.BreadcrumbModule,
|
|
931
|
+
i8.ButtonModule,
|
|
932
|
+
calendar.CalendarModule,
|
|
933
|
+
card.CardModule,
|
|
934
|
+
carousel.CarouselModule,
|
|
935
|
+
cascadeselect.CascadeSelectModule,
|
|
936
|
+
checkbox.CheckboxModule,
|
|
937
|
+
chip.ChipModule,
|
|
938
|
+
chips.ChipsModule,
|
|
939
|
+
codehighlighter.CodeHighlighterModule,
|
|
940
|
+
colorpicker.ColorPickerModule,
|
|
941
|
+
confirmdialog.ConfirmDialogModule,
|
|
942
|
+
confirmpopup.ConfirmPopupModule,
|
|
943
|
+
contextmenu.ContextMenuModule,
|
|
944
|
+
dialog.DialogModule,
|
|
945
|
+
divider.DividerModule,
|
|
946
|
+
i1$1.DropdownModule,
|
|
947
|
+
fieldset.FieldsetModule,
|
|
948
|
+
fileupload.FileUploadModule,
|
|
949
|
+
i3$2.FormsModule,
|
|
950
|
+
galleria.GalleriaModule,
|
|
951
|
+
i1.HttpClientModule,
|
|
952
|
+
inplace.InplaceModule,
|
|
953
|
+
inputmask.InputMaskModule,
|
|
954
|
+
inputnumber.InputNumberModule,
|
|
955
|
+
inputswitch.InputSwitchModule,
|
|
956
|
+
inputtextarea.InputTextareaModule,
|
|
957
|
+
i10.InputTextModule,
|
|
958
|
+
knob.KnobModule,
|
|
959
|
+
lightbox.LightboxModule,
|
|
960
|
+
listbox.ListboxModule,
|
|
961
|
+
megamenu.MegaMenuModule,
|
|
962
|
+
menubar.MenubarModule,
|
|
963
|
+
menu.MenuModule,
|
|
964
|
+
message.MessageModule,
|
|
965
|
+
messages.MessagesModule,
|
|
966
|
+
multiselect.MultiSelectModule,
|
|
967
|
+
organizationchart.OrganizationChartModule,
|
|
968
|
+
overlaypanel.OverlayPanelModule,
|
|
969
|
+
panelmenu.PanelMenuModule,
|
|
970
|
+
panel.PanelModule,
|
|
971
|
+
password.PasswordModule,
|
|
972
|
+
progressbar.ProgressBarModule,
|
|
973
|
+
radiobutton.RadioButtonModule,
|
|
974
|
+
rating.RatingModule,
|
|
975
|
+
i9.RippleModule,
|
|
976
|
+
scrollpanel.ScrollPanelModule,
|
|
977
|
+
scrolltop.ScrollTopModule,
|
|
978
|
+
selectbutton.SelectButtonModule,
|
|
979
|
+
sidebar.SidebarModule,
|
|
980
|
+
skeleton.SkeletonModule,
|
|
981
|
+
slidemenu.SlideMenuModule,
|
|
982
|
+
slider.SliderModule,
|
|
983
|
+
splitter.SplitterModule,
|
|
984
|
+
steps.StepsModule,
|
|
985
|
+
i5.TableModule,
|
|
986
|
+
tabmenu.TabMenuModule,
|
|
987
|
+
tabview.TabViewModule,
|
|
988
|
+
tag.TagModule,
|
|
989
|
+
terminal.TerminalModule,
|
|
990
|
+
tieredmenu.TieredMenuModule,
|
|
991
|
+
timeline.TimelineModule,
|
|
992
|
+
i5$1.ToastModule,
|
|
993
|
+
togglebutton.ToggleButtonModule,
|
|
994
|
+
i4.ToolbarModule,
|
|
995
|
+
i11.TooltipModule,
|
|
996
|
+
tree.TreeModule,
|
|
997
|
+
],
|
|
998
|
+
exports: [
|
|
999
|
+
SfCrudComponent,
|
|
1000
|
+
TableroComponent,
|
|
1001
|
+
RegistroComponent
|
|
1002
|
+
]
|
|
1003
|
+
}]
|
|
1004
|
+
}] });
|
|
1005
|
+
|
|
1006
|
+
var SfCrudService = /** @class */ (function () {
|
|
1007
|
+
function SfCrudService() {
|
|
1008
|
+
}
|
|
1009
|
+
return SfCrudService;
|
|
1010
|
+
}());
|
|
1011
|
+
SfCrudService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1012
|
+
SfCrudService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudService, providedIn: 'root' });
|
|
1013
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SfCrudService, decorators: [{
|
|
1014
|
+
type: i0.Injectable,
|
|
1015
|
+
args: [{
|
|
1016
|
+
providedIn: 'root'
|
|
1017
|
+
}]
|
|
1018
|
+
}], ctorParameters: function () { return []; } });
|
|
1019
|
+
|
|
1020
|
+
/*
|
|
1021
|
+
* Public API Surface of sf-crud
|
|
1022
|
+
*/
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Generated bundle index. Do not edit.
|
|
1026
|
+
*/
|
|
1027
|
+
|
|
1028
|
+
exports.RegistroComponent = RegistroComponent;
|
|
1029
|
+
exports.SfCrudComponent = SfCrudComponent;
|
|
1030
|
+
exports.SfCrudModule = SfCrudModule;
|
|
1031
|
+
exports.SfCrudService = SfCrudService;
|
|
1032
|
+
exports.TableroComponent = TableroComponent;
|
|
1033
|
+
|
|
1034
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1035
|
+
|
|
1036
|
+
}));
|
|
1037
|
+
//# sourceMappingURL=sf-crud.umd.js.map
|