sf-crud 11.0.1-beta1 → 12.0.1-beta2
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 +446 -236
- package/bundles/sf-crud.umd.js.map +1 -1
- package/esm2015/lib/components/control/control.component.js +41 -15
- package/esm2015/lib/components/registro/registro.component.js +29 -21
- package/esm2015/lib/components/tablero/tablero.component.js +28 -18
- package/esm2015/lib/sf-crud.component.js +17 -9
- package/esm2015/lib/sf-crud.module.js +244 -90
- 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 +422 -228
- package/fesm2015/sf-crud.js.map +1 -1
- package/lib/components/control/control.component.d.ts +11 -2
- package/lib/components/registro/registro.component.d.ts +3 -0
- package/lib/components/tablero/tablero.component.d.ts +3 -0
- package/lib/sf-crud.component.d.ts +3 -0
- package/lib/sf-crud.module.d.ts +80 -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/fesm2015/sf-crud.js
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component, Input, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
3
|
import { __awaiter } from 'tslib';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import * as i1 from '@angular/common/http';
|
|
5
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
6
|
+
import * as i2 from '@angular/router';
|
|
7
|
+
import * as i3 from 'primeng/blockui';
|
|
8
|
+
import { BlockUIModule } from 'primeng/blockui';
|
|
9
|
+
import * as i4 from 'primeng/toolbar';
|
|
10
|
+
import { ToolbarModule } from 'primeng/toolbar';
|
|
11
|
+
import * as i5 from 'primeng/table';
|
|
12
|
+
import { TableModule } from 'primeng/table';
|
|
13
|
+
import * as i7 from '@angular/common';
|
|
14
|
+
import * as i3$1 from 'primeng/api';
|
|
6
15
|
import { MessageService } from 'primeng/api';
|
|
16
|
+
import * as i8 from 'primeng/button';
|
|
17
|
+
import { ButtonModule } from 'primeng/button';
|
|
18
|
+
import * as i9 from 'primeng/ripple';
|
|
19
|
+
import { RippleModule } from 'primeng/ripple';
|
|
20
|
+
import * as i10 from 'primeng/inputtext';
|
|
21
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
22
|
+
import * as i11 from 'primeng/tooltip';
|
|
23
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
24
|
+
import * as jsonpath from 'jsonpath';
|
|
25
|
+
import * as i5$1 from 'primeng/toast';
|
|
26
|
+
import { ToastModule } from 'primeng/toast';
|
|
27
|
+
import * as i2$1 from 'primeng/dropdown';
|
|
28
|
+
import { DropdownModule } from 'primeng/dropdown';
|
|
29
|
+
import * as i4$1 from '@angular/forms';
|
|
7
30
|
import { FormsModule } from '@angular/forms';
|
|
8
31
|
import { AccordionModule } from 'primeng/accordion';
|
|
9
32
|
import { AvatarModule } from 'primeng/avatar';
|
|
10
33
|
import { AvatarGroupModule } from 'primeng/avatargroup';
|
|
11
34
|
import { BadgeModule } from 'primeng/badge';
|
|
12
|
-
import { BlockUIModule } from 'primeng/blockui';
|
|
13
35
|
import { BreadcrumbModule } from 'primeng/breadcrumb';
|
|
14
|
-
import { ButtonModule } from 'primeng/button';
|
|
15
36
|
import { CalendarModule } from 'primeng/calendar';
|
|
16
37
|
import { CardModule } from 'primeng/card';
|
|
17
38
|
import { CarouselModule } from 'primeng/carousel';
|
|
@@ -26,7 +47,6 @@ import { ColorPickerModule } from 'primeng/colorpicker';
|
|
|
26
47
|
import { ContextMenuModule } from 'primeng/contextmenu';
|
|
27
48
|
import { DialogModule } from 'primeng/dialog';
|
|
28
49
|
import { DividerModule } from 'primeng/divider';
|
|
29
|
-
import { DropdownModule } from 'primeng/dropdown';
|
|
30
50
|
import { FieldsetModule } from 'primeng/fieldset';
|
|
31
51
|
import { FileUploadModule } from 'primeng/fileupload';
|
|
32
52
|
import { GalleriaModule } from 'primeng/galleria';
|
|
@@ -34,7 +54,6 @@ import { InplaceModule } from 'primeng/inplace';
|
|
|
34
54
|
import { InputNumberModule } from 'primeng/inputnumber';
|
|
35
55
|
import { InputMaskModule } from 'primeng/inputmask';
|
|
36
56
|
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
37
|
-
import { InputTextModule } from 'primeng/inputtext';
|
|
38
57
|
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
39
58
|
import { KnobModule } from 'primeng/knob';
|
|
40
59
|
import { LightboxModule } from 'primeng/lightbox';
|
|
@@ -53,7 +72,6 @@ import { PasswordModule } from 'primeng/password';
|
|
|
53
72
|
import { ProgressBarModule } from 'primeng/progressbar';
|
|
54
73
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
55
74
|
import { RatingModule } from 'primeng/rating';
|
|
56
|
-
import { RippleModule } from 'primeng/ripple';
|
|
57
75
|
import { ScrollPanelModule } from 'primeng/scrollpanel';
|
|
58
76
|
import { ScrollTopModule } from 'primeng/scrolltop';
|
|
59
77
|
import { SelectButtonModule } from 'primeng/selectbutton';
|
|
@@ -63,69 +81,19 @@ import { SlideMenuModule } from 'primeng/slidemenu';
|
|
|
63
81
|
import { SliderModule } from 'primeng/slider';
|
|
64
82
|
import { SplitterModule } from 'primeng/splitter';
|
|
65
83
|
import { StepsModule } from 'primeng/steps';
|
|
66
|
-
import { TableModule } from 'primeng/table';
|
|
67
84
|
import { TabMenuModule } from 'primeng/tabmenu';
|
|
68
85
|
import { TabViewModule } from 'primeng/tabview';
|
|
69
86
|
import { TagModule } from 'primeng/tag';
|
|
70
87
|
import { TerminalModule } from 'primeng/terminal';
|
|
71
88
|
import { TieredMenuModule } from 'primeng/tieredmenu';
|
|
72
89
|
import { TimelineModule } from 'primeng/timeline';
|
|
73
|
-
import { ToastModule } from 'primeng/toast';
|
|
74
90
|
import { ToggleButtonModule } from 'primeng/togglebutton';
|
|
75
|
-
import { ToolbarModule } from 'primeng/toolbar';
|
|
76
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
77
91
|
import { TreeModule } from 'primeng/tree';
|
|
78
92
|
|
|
79
|
-
class GeneralService {
|
|
80
|
-
constructor(http) {
|
|
81
|
-
var _a;
|
|
82
|
-
this.http = http;
|
|
83
|
-
this.generales = '';
|
|
84
|
-
this.jsonConfig = JSON.parse(sessionStorage.getItem('ConfigJSON') || '{}');
|
|
85
|
-
this.generales = (_a = this.jsonConfig) === null || _a === void 0 ? void 0 : _a.ServidorGenerales;
|
|
86
|
-
}
|
|
87
|
-
getCrudByEntidad(idKatios, idEntidad) {
|
|
88
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
return this.http.get(`${this.generales}crud/${idKatios}/${idEntidad}`)
|
|
90
|
-
.toPromise()
|
|
91
|
-
.then((res) => res.data)
|
|
92
|
-
.then(data => { return data; });
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
genericRequest(method, servidor, endpoint, data) {
|
|
96
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
-
switch (method) {
|
|
98
|
-
case 'GET':
|
|
99
|
-
return this.http.get(`${this.jsonConfig[servidor]}${endpoint}`)
|
|
100
|
-
.toPromise();
|
|
101
|
-
case 'POST':
|
|
102
|
-
return this.http.post(`${this.jsonConfig[servidor]}${endpoint}`, data)
|
|
103
|
-
.toPromise();
|
|
104
|
-
case 'PUT':
|
|
105
|
-
return this.http.put(`${this.jsonConfig[servidor]}${endpoint}`, data)
|
|
106
|
-
.toPromise();
|
|
107
|
-
case 'DELETE':
|
|
108
|
-
return this.http.delete(`${this.jsonConfig[servidor]}${endpoint}`, data)
|
|
109
|
-
.toPromise();
|
|
110
|
-
default:
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
GeneralService.ɵprov = ɵɵdefineInjectable({ factory: function GeneralService_Factory() { return new GeneralService(ɵɵinject(HttpClient)); }, token: GeneralService, providedIn: "root" });
|
|
117
|
-
GeneralService.decorators = [
|
|
118
|
-
{ type: Injectable, args: [{
|
|
119
|
-
providedIn: 'root'
|
|
120
|
-
},] }
|
|
121
|
-
];
|
|
122
|
-
GeneralService.ctorParameters = () => [
|
|
123
|
-
{ type: HttpClient }
|
|
124
|
-
];
|
|
125
|
-
|
|
126
93
|
class Shema {
|
|
127
94
|
constructor() {
|
|
128
95
|
this.type = '';
|
|
96
|
+
this.subtype = '';
|
|
129
97
|
}
|
|
130
98
|
}
|
|
131
99
|
|
|
@@ -171,6 +139,52 @@ class Validations {
|
|
|
171
139
|
}
|
|
172
140
|
}
|
|
173
141
|
|
|
142
|
+
class GeneralService {
|
|
143
|
+
constructor(http) {
|
|
144
|
+
var _a;
|
|
145
|
+
this.http = http;
|
|
146
|
+
this.generales = '';
|
|
147
|
+
this.jsonConfig = JSON.parse(sessionStorage.getItem('ConfigJSON') || '{}');
|
|
148
|
+
this.generales = (_a = this.jsonConfig) === null || _a === void 0 ? void 0 : _a.ServidorGenerales;
|
|
149
|
+
}
|
|
150
|
+
getCrudByEntidad(idKatios, idEntidad) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
return this.http.get(`${this.generales}crud/${idKatios}/${idEntidad}`)
|
|
153
|
+
.toPromise()
|
|
154
|
+
.then((res) => res.data)
|
|
155
|
+
.then(data => { return data; });
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
genericRequest(method, servidor, endpoint, data) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
switch (method) {
|
|
161
|
+
case 'GET':
|
|
162
|
+
return this.http.get(`${this.jsonConfig[servidor]}${endpoint}`)
|
|
163
|
+
.toPromise();
|
|
164
|
+
case 'POST':
|
|
165
|
+
return this.http.post(`${this.jsonConfig[servidor]}${endpoint}`, data)
|
|
166
|
+
.toPromise();
|
|
167
|
+
case 'PUT':
|
|
168
|
+
return this.http.put(`${this.jsonConfig[servidor]}${endpoint}`, data)
|
|
169
|
+
.toPromise();
|
|
170
|
+
case 'DELETE':
|
|
171
|
+
return this.http.delete(`${this.jsonConfig[servidor]}${endpoint}`, data)
|
|
172
|
+
.toPromise();
|
|
173
|
+
default:
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
GeneralService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GeneralService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
180
|
+
GeneralService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GeneralService, providedIn: 'root' });
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GeneralService, decorators: [{
|
|
182
|
+
type: Injectable,
|
|
183
|
+
args: [{
|
|
184
|
+
providedIn: 'root'
|
|
185
|
+
}]
|
|
186
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
187
|
+
|
|
174
188
|
class TableroComponent {
|
|
175
189
|
constructor(generalService, router) {
|
|
176
190
|
this.generalService = generalService;
|
|
@@ -236,21 +250,65 @@ class TableroComponent {
|
|
|
236
250
|
}
|
|
237
251
|
}
|
|
238
252
|
}
|
|
239
|
-
TableroComponent
|
|
240
|
-
{ type:
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
};
|
|
253
|
+
TableroComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TableroComponent, deps: [{ token: GeneralService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
+
TableroComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TableroComponent, selector: "sf-crudtablero", inputs: { opciones: "opciones", idEntidad: "idEntidad", idKatios: "idKatios" }, ngImport: i0, 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(rowData, '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(rowData, 'read')\"></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(rowData, 'update')\"></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(rowData, 'delete')\"></button>\r\n </th>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n</div>", components: [{ type: i3.BlockUI, selector: "p-blockUI", inputs: ["autoZIndex", "baseZIndex", "blocked", "target", "styleClass"] }, { type: i4.Toolbar, selector: "p-toolbar", inputs: ["style", "styleClass"] }, { type: i5.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i8.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9.Ripple, selector: "[pRipple]" }, { type: i10.InputText, selector: "[pInputText]" }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "tooltipZIndex", "escape", "tooltipDisabled", "pTooltip", "positionStyle", "tooltipStyleClass", "showDelay", "hideDelay", "life"] }] });
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TableroComponent, decorators: [{
|
|
256
|
+
type: Component,
|
|
257
|
+
args: [{
|
|
258
|
+
selector: 'sf-crudtablero',
|
|
259
|
+
templateUrl: './tablero.component.html'
|
|
260
|
+
}]
|
|
261
|
+
}], ctorParameters: function () { return [{ type: GeneralService }, { type: i2.Router }]; }, propDecorators: { opciones: [{
|
|
262
|
+
type: Input
|
|
263
|
+
}], idEntidad: [{
|
|
264
|
+
type: Input
|
|
265
|
+
}], idKatios: [{
|
|
266
|
+
type: Input
|
|
267
|
+
}] } });
|
|
268
|
+
|
|
269
|
+
class ControlComponent {
|
|
270
|
+
constructor(generalService) {
|
|
271
|
+
this.generalService = generalService;
|
|
272
|
+
this.control = new Shema();
|
|
273
|
+
this.label = '';
|
|
274
|
+
this.setValue = new EventEmitter();
|
|
275
|
+
this.isLoading = false;
|
|
276
|
+
this.dataFromService = [];
|
|
277
|
+
}
|
|
278
|
+
ngOnInit() {
|
|
279
|
+
var _a;
|
|
280
|
+
if ((_a = this.control) === null || _a === void 0 ? void 0 : _a.config)
|
|
281
|
+
this.loadDataFromService();
|
|
282
|
+
}
|
|
283
|
+
sendValue() {
|
|
284
|
+
this.setValue.emit(this.value);
|
|
285
|
+
}
|
|
286
|
+
loadDataFromService() {
|
|
287
|
+
this.isLoading = true;
|
|
288
|
+
this.generalService.genericRequest(this.control.config.method, this.control.config.server, this.control.config.endpoint)
|
|
289
|
+
.then((res) => {
|
|
290
|
+
this.dataFromService = res.data;
|
|
291
|
+
this.isLoading = false;
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
ControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ControlComponent, deps: [{ token: GeneralService }], target: i0.ɵɵFactoryTarget.Component });
|
|
296
|
+
ControlComponent.ɵcmp = i0.ɵɵ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, template: "<ng-container [ngSwitch]=\"control.type\">\r\n <ng-container *ngSwitchCase=\"'string'\">\r\n <label>{{label}}</label>\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=\"'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>\r\n </ng-container>\r\n</ng-container>", components: [{ type: i2$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.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i4$1.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.InputText, selector: "[pInputText]" }, { type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ControlComponent, decorators: [{
|
|
298
|
+
type: Component,
|
|
299
|
+
args: [{
|
|
300
|
+
selector: 'sf-control',
|
|
301
|
+
templateUrl: './control.component.html'
|
|
302
|
+
}]
|
|
303
|
+
}], ctorParameters: function () { return [{ type: GeneralService }]; }, propDecorators: { control: [{
|
|
304
|
+
type: Input
|
|
305
|
+
}], label: [{
|
|
306
|
+
type: Input
|
|
307
|
+
}], value: [{
|
|
308
|
+
type: Input
|
|
309
|
+
}], setValue: [{
|
|
310
|
+
type: Output
|
|
311
|
+
}] } });
|
|
254
312
|
|
|
255
313
|
class RegistroComponent {
|
|
256
314
|
constructor(generalService, router, messageSerice) {
|
|
@@ -316,13 +374,13 @@ class RegistroComponent {
|
|
|
316
374
|
this.router.navigateByUrl(this.crudConfig.registro.btnBack);
|
|
317
375
|
}
|
|
318
376
|
getControl(scope) {
|
|
319
|
-
return query(this.crudConfig.esquema, scope)[0];
|
|
377
|
+
return jsonpath.query(this.crudConfig.esquema, scope)[0];
|
|
320
378
|
}
|
|
321
379
|
getValue(scope) {
|
|
322
|
-
return query(this.data, scope.replace('.properties', ''))[0];
|
|
380
|
+
return jsonpath.query(this.data, scope.replace('.properties', ''))[0];
|
|
323
381
|
}
|
|
324
|
-
setValue(value
|
|
325
|
-
value(this.data, scope.replace('.properties', ''), value
|
|
382
|
+
setValue(value, scope) {
|
|
383
|
+
jsonpath.value(this.data, scope.replace('.properties', ''), value);
|
|
326
384
|
}
|
|
327
385
|
createObject(esquema) {
|
|
328
386
|
let object = {};
|
|
@@ -371,7 +429,7 @@ class RegistroComponent {
|
|
|
371
429
|
validateDataLocal() {
|
|
372
430
|
let err = [];
|
|
373
431
|
this.configOperation.validations.required.forEach(x => {
|
|
374
|
-
if (!query(this.data, x.field)[0])
|
|
432
|
+
if (!jsonpath.query(this.data, x.field)[0])
|
|
375
433
|
err.push(x.message);
|
|
376
434
|
});
|
|
377
435
|
if (err.length != 0)
|
|
@@ -379,169 +437,305 @@ class RegistroComponent {
|
|
|
379
437
|
return err.length == 0;
|
|
380
438
|
}
|
|
381
439
|
}
|
|
382
|
-
RegistroComponent
|
|
383
|
-
{ type:
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
]
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
};
|
|
440
|
+
RegistroComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RegistroComponent, deps: [{ token: GeneralService }, { token: i2.Router }, { token: i3$1.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
441
|
+
RegistroComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RegistroComponent, selector: "sf-registro", inputs: { idKatios: "idKatios", idEntidad: "idEntidad", trx: "trx", id: "id" }, providers: [MessageService], ngImport: i0, 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.BlockUI, selector: "p-blockUI", inputs: ["autoZIndex", "baseZIndex", "blocked", "target", "styleClass"] }, { type: i5$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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i9.Ripple, selector: "[pRipple]" }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] });
|
|
442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RegistroComponent, decorators: [{
|
|
443
|
+
type: Component,
|
|
444
|
+
args: [{
|
|
445
|
+
selector: 'sf-registro',
|
|
446
|
+
templateUrl: './registro.component.html',
|
|
447
|
+
providers: [MessageService]
|
|
448
|
+
}]
|
|
449
|
+
}], ctorParameters: function () { return [{ type: GeneralService }, { type: i2.Router }, { type: i3$1.MessageService }]; }, propDecorators: { idKatios: [{
|
|
450
|
+
type: Input
|
|
451
|
+
}], idEntidad: [{
|
|
452
|
+
type: Input
|
|
453
|
+
}], trx: [{
|
|
454
|
+
type: Input
|
|
455
|
+
}], id: [{
|
|
456
|
+
type: Input
|
|
457
|
+
}] } });
|
|
400
458
|
|
|
401
459
|
class SfCrudComponent {
|
|
402
460
|
constructor() { }
|
|
403
461
|
ngOnInit() {
|
|
404
462
|
}
|
|
405
463
|
}
|
|
406
|
-
SfCrudComponent
|
|
407
|
-
|
|
408
|
-
selector: 'lib-sf-crud',
|
|
409
|
-
template: `
|
|
464
|
+
SfCrudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
465
|
+
SfCrudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SfCrudComponent, selector: "lib-sf-crud", ngImport: i0, template: `
|
|
410
466
|
<p>
|
|
411
467
|
sf-crud works!
|
|
412
468
|
</p>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
this.setValue.emit(this.value);
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
ControlComponent.decorators = [
|
|
430
|
-
{ type: Component, args: [{
|
|
431
|
-
selector: 'sf-control',
|
|
432
|
-
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"
|
|
433
|
-
},] }
|
|
434
|
-
];
|
|
435
|
-
ControlComponent.ctorParameters = () => [];
|
|
436
|
-
ControlComponent.propDecorators = {
|
|
437
|
-
control: [{ type: Input }],
|
|
438
|
-
label: [{ type: Input }],
|
|
439
|
-
value: [{ type: Input }],
|
|
440
|
-
setValue: [{ type: Output }]
|
|
441
|
-
};
|
|
469
|
+
`, isInline: true });
|
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudComponent, decorators: [{
|
|
471
|
+
type: Component,
|
|
472
|
+
args: [{
|
|
473
|
+
selector: 'lib-sf-crud',
|
|
474
|
+
template: `
|
|
475
|
+
<p>
|
|
476
|
+
sf-crud works!
|
|
477
|
+
</p>
|
|
478
|
+
`,
|
|
479
|
+
styles: []
|
|
480
|
+
}]
|
|
481
|
+
}], ctorParameters: function () { return []; } });
|
|
442
482
|
|
|
443
483
|
class SfCrudModule {
|
|
444
484
|
}
|
|
445
|
-
SfCrudModule
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
485
|
+
SfCrudModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
486
|
+
SfCrudModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudModule, declarations: [SfCrudComponent,
|
|
487
|
+
TableroComponent,
|
|
488
|
+
RegistroComponent,
|
|
489
|
+
ControlComponent], imports: [AccordionModule,
|
|
490
|
+
AvatarGroupModule,
|
|
491
|
+
AvatarModule,
|
|
492
|
+
BadgeModule,
|
|
493
|
+
BlockUIModule,
|
|
494
|
+
BreadcrumbModule,
|
|
495
|
+
ButtonModule,
|
|
496
|
+
CalendarModule,
|
|
497
|
+
CardModule,
|
|
498
|
+
CarouselModule,
|
|
499
|
+
CascadeSelectModule,
|
|
500
|
+
CheckboxModule,
|
|
501
|
+
ChipModule,
|
|
502
|
+
ChipsModule,
|
|
503
|
+
CodeHighlighterModule,
|
|
504
|
+
ColorPickerModule,
|
|
505
|
+
ConfirmDialogModule,
|
|
506
|
+
ConfirmPopupModule,
|
|
507
|
+
ContextMenuModule,
|
|
508
|
+
DialogModule,
|
|
509
|
+
DividerModule,
|
|
510
|
+
DropdownModule,
|
|
511
|
+
FieldsetModule,
|
|
512
|
+
FileUploadModule,
|
|
513
|
+
FormsModule,
|
|
514
|
+
GalleriaModule,
|
|
515
|
+
HttpClientModule,
|
|
516
|
+
InplaceModule,
|
|
517
|
+
InputMaskModule,
|
|
518
|
+
InputNumberModule,
|
|
519
|
+
InputSwitchModule,
|
|
520
|
+
InputTextareaModule,
|
|
521
|
+
InputTextModule,
|
|
522
|
+
KnobModule,
|
|
523
|
+
LightboxModule,
|
|
524
|
+
ListboxModule,
|
|
525
|
+
MegaMenuModule,
|
|
526
|
+
MenubarModule,
|
|
527
|
+
MenuModule,
|
|
528
|
+
MessageModule,
|
|
529
|
+
MessagesModule,
|
|
530
|
+
MultiSelectModule,
|
|
531
|
+
OrganizationChartModule,
|
|
532
|
+
OverlayPanelModule,
|
|
533
|
+
PanelMenuModule,
|
|
534
|
+
PanelModule,
|
|
535
|
+
PasswordModule,
|
|
536
|
+
ProgressBarModule,
|
|
537
|
+
RadioButtonModule,
|
|
538
|
+
RatingModule,
|
|
539
|
+
RippleModule,
|
|
540
|
+
ScrollPanelModule,
|
|
541
|
+
ScrollTopModule,
|
|
542
|
+
SelectButtonModule,
|
|
543
|
+
SidebarModule,
|
|
544
|
+
SkeletonModule,
|
|
545
|
+
SlideMenuModule,
|
|
546
|
+
SliderModule,
|
|
547
|
+
SplitterModule,
|
|
548
|
+
StepsModule,
|
|
549
|
+
TableModule,
|
|
550
|
+
TabMenuModule,
|
|
551
|
+
TabViewModule,
|
|
552
|
+
TagModule,
|
|
553
|
+
TerminalModule,
|
|
554
|
+
TieredMenuModule,
|
|
555
|
+
TimelineModule,
|
|
556
|
+
ToastModule,
|
|
557
|
+
ToggleButtonModule,
|
|
558
|
+
ToolbarModule,
|
|
559
|
+
TooltipModule,
|
|
560
|
+
TreeModule], exports: [SfCrudComponent,
|
|
561
|
+
TableroComponent,
|
|
562
|
+
RegistroComponent] });
|
|
563
|
+
SfCrudModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudModule, imports: [[
|
|
564
|
+
AccordionModule,
|
|
565
|
+
AvatarGroupModule,
|
|
566
|
+
AvatarModule,
|
|
567
|
+
BadgeModule,
|
|
568
|
+
BlockUIModule,
|
|
569
|
+
BreadcrumbModule,
|
|
570
|
+
ButtonModule,
|
|
571
|
+
CalendarModule,
|
|
572
|
+
CardModule,
|
|
573
|
+
CarouselModule,
|
|
574
|
+
CascadeSelectModule,
|
|
575
|
+
CheckboxModule,
|
|
576
|
+
ChipModule,
|
|
577
|
+
ChipsModule,
|
|
578
|
+
CodeHighlighterModule,
|
|
579
|
+
ColorPickerModule,
|
|
580
|
+
ConfirmDialogModule,
|
|
581
|
+
ConfirmPopupModule,
|
|
582
|
+
ContextMenuModule,
|
|
583
|
+
DialogModule,
|
|
584
|
+
DividerModule,
|
|
585
|
+
DropdownModule,
|
|
586
|
+
FieldsetModule,
|
|
587
|
+
FileUploadModule,
|
|
588
|
+
FormsModule,
|
|
589
|
+
GalleriaModule,
|
|
590
|
+
HttpClientModule,
|
|
591
|
+
InplaceModule,
|
|
592
|
+
InputMaskModule,
|
|
593
|
+
InputNumberModule,
|
|
594
|
+
InputSwitchModule,
|
|
595
|
+
InputTextareaModule,
|
|
596
|
+
InputTextModule,
|
|
597
|
+
KnobModule,
|
|
598
|
+
LightboxModule,
|
|
599
|
+
ListboxModule,
|
|
600
|
+
MegaMenuModule,
|
|
601
|
+
MenubarModule,
|
|
602
|
+
MenuModule,
|
|
603
|
+
MessageModule,
|
|
604
|
+
MessagesModule,
|
|
605
|
+
MultiSelectModule,
|
|
606
|
+
OrganizationChartModule,
|
|
607
|
+
OverlayPanelModule,
|
|
608
|
+
PanelMenuModule,
|
|
609
|
+
PanelModule,
|
|
610
|
+
PasswordModule,
|
|
611
|
+
ProgressBarModule,
|
|
612
|
+
RadioButtonModule,
|
|
613
|
+
RatingModule,
|
|
614
|
+
RippleModule,
|
|
615
|
+
ScrollPanelModule,
|
|
616
|
+
ScrollTopModule,
|
|
617
|
+
SelectButtonModule,
|
|
618
|
+
SidebarModule,
|
|
619
|
+
SkeletonModule,
|
|
620
|
+
SlideMenuModule,
|
|
621
|
+
SliderModule,
|
|
622
|
+
SplitterModule,
|
|
623
|
+
StepsModule,
|
|
624
|
+
TableModule,
|
|
625
|
+
TabMenuModule,
|
|
626
|
+
TabViewModule,
|
|
627
|
+
TagModule,
|
|
628
|
+
TerminalModule,
|
|
629
|
+
TieredMenuModule,
|
|
630
|
+
TimelineModule,
|
|
631
|
+
ToastModule,
|
|
632
|
+
ToggleButtonModule,
|
|
633
|
+
ToolbarModule,
|
|
634
|
+
TooltipModule,
|
|
635
|
+
TreeModule,
|
|
636
|
+
]] });
|
|
637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudModule, decorators: [{
|
|
638
|
+
type: NgModule,
|
|
639
|
+
args: [{
|
|
640
|
+
declarations: [
|
|
641
|
+
SfCrudComponent,
|
|
642
|
+
TableroComponent,
|
|
643
|
+
RegistroComponent,
|
|
644
|
+
ControlComponent
|
|
645
|
+
],
|
|
646
|
+
imports: [
|
|
647
|
+
AccordionModule,
|
|
648
|
+
AvatarGroupModule,
|
|
649
|
+
AvatarModule,
|
|
650
|
+
BadgeModule,
|
|
651
|
+
BlockUIModule,
|
|
652
|
+
BreadcrumbModule,
|
|
653
|
+
ButtonModule,
|
|
654
|
+
CalendarModule,
|
|
655
|
+
CardModule,
|
|
656
|
+
CarouselModule,
|
|
657
|
+
CascadeSelectModule,
|
|
658
|
+
CheckboxModule,
|
|
659
|
+
ChipModule,
|
|
660
|
+
ChipsModule,
|
|
661
|
+
CodeHighlighterModule,
|
|
662
|
+
ColorPickerModule,
|
|
663
|
+
ConfirmDialogModule,
|
|
664
|
+
ConfirmPopupModule,
|
|
665
|
+
ContextMenuModule,
|
|
666
|
+
DialogModule,
|
|
667
|
+
DividerModule,
|
|
668
|
+
DropdownModule,
|
|
669
|
+
FieldsetModule,
|
|
670
|
+
FileUploadModule,
|
|
671
|
+
FormsModule,
|
|
672
|
+
GalleriaModule,
|
|
673
|
+
HttpClientModule,
|
|
674
|
+
InplaceModule,
|
|
675
|
+
InputMaskModule,
|
|
676
|
+
InputNumberModule,
|
|
677
|
+
InputSwitchModule,
|
|
678
|
+
InputTextareaModule,
|
|
679
|
+
InputTextModule,
|
|
680
|
+
KnobModule,
|
|
681
|
+
LightboxModule,
|
|
682
|
+
ListboxModule,
|
|
683
|
+
MegaMenuModule,
|
|
684
|
+
MenubarModule,
|
|
685
|
+
MenuModule,
|
|
686
|
+
MessageModule,
|
|
687
|
+
MessagesModule,
|
|
688
|
+
MultiSelectModule,
|
|
689
|
+
OrganizationChartModule,
|
|
690
|
+
OverlayPanelModule,
|
|
691
|
+
PanelMenuModule,
|
|
692
|
+
PanelModule,
|
|
693
|
+
PasswordModule,
|
|
694
|
+
ProgressBarModule,
|
|
695
|
+
RadioButtonModule,
|
|
696
|
+
RatingModule,
|
|
697
|
+
RippleModule,
|
|
698
|
+
ScrollPanelModule,
|
|
699
|
+
ScrollTopModule,
|
|
700
|
+
SelectButtonModule,
|
|
701
|
+
SidebarModule,
|
|
702
|
+
SkeletonModule,
|
|
703
|
+
SlideMenuModule,
|
|
704
|
+
SliderModule,
|
|
705
|
+
SplitterModule,
|
|
706
|
+
StepsModule,
|
|
707
|
+
TableModule,
|
|
708
|
+
TabMenuModule,
|
|
709
|
+
TabViewModule,
|
|
710
|
+
TagModule,
|
|
711
|
+
TerminalModule,
|
|
712
|
+
TieredMenuModule,
|
|
713
|
+
TimelineModule,
|
|
714
|
+
ToastModule,
|
|
715
|
+
ToggleButtonModule,
|
|
716
|
+
ToolbarModule,
|
|
717
|
+
TooltipModule,
|
|
718
|
+
TreeModule,
|
|
719
|
+
],
|
|
720
|
+
exports: [
|
|
721
|
+
SfCrudComponent,
|
|
722
|
+
TableroComponent,
|
|
723
|
+
RegistroComponent
|
|
724
|
+
]
|
|
725
|
+
}]
|
|
726
|
+
}] });
|
|
534
727
|
|
|
535
728
|
class SfCrudService {
|
|
536
729
|
constructor() { }
|
|
537
730
|
}
|
|
538
|
-
SfCrudService.ɵ
|
|
539
|
-
SfCrudService
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
731
|
+
SfCrudService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
732
|
+
SfCrudService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudService, providedIn: 'root' });
|
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SfCrudService, decorators: [{
|
|
734
|
+
type: Injectable,
|
|
735
|
+
args: [{
|
|
736
|
+
providedIn: 'root'
|
|
737
|
+
}]
|
|
738
|
+
}], ctorParameters: function () { return []; } });
|
|
545
739
|
|
|
546
740
|
/*
|
|
547
741
|
* Public API Surface of sf-crud
|
|
@@ -551,5 +745,5 @@ SfCrudService.ctorParameters = () => [];
|
|
|
551
745
|
* Generated bundle index. Do not edit.
|
|
552
746
|
*/
|
|
553
747
|
|
|
554
|
-
export { RegistroComponent, SfCrudComponent, SfCrudModule, SfCrudService, TableroComponent
|
|
748
|
+
export { RegistroComponent, SfCrudComponent, SfCrudModule, SfCrudService, TableroComponent };
|
|
555
749
|
//# sourceMappingURL=sf-crud.js.map
|