lib-common-angular 0.0.1
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 +0 -0
- package/assets/i18n/de.json +45 -0
- package/assets/i18n/en.json +47 -0
- package/assets/i18n/es.json +49 -0
- package/assets/i18n/pt.json +44 -0
- package/assets/imagenes/bannerInflables.png +0 -0
- package/assets/state/business.state.ts +66 -0
- package/assets/state/categorias-productos.state.ts +76 -0
- package/assets/state/currency.state.ts +55 -0
- package/assets/state/productos.state.ts +157 -0
- package/assets/state/state-generic/generic-crud.actions.ts +39 -0
- package/assets/state/state-generic/generic-crud.state.ts +83 -0
- package/assets/state/usuarios.actions.ts +11 -0
- package/fesm2022/lib-common-angular.mjs +9409 -0
- package/fesm2022/lib-common-angular.mjs.map +1 -0
- package/index.d.ts +1866 -0
- package/package.json +24 -0
- package/styles/global-styles.scss +21 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1866 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, AfterViewInit, Type, ViewContainerRef, OnChanges, TemplateRef, SimpleChanges, Renderer2, InjectionToken, OnDestroy, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { MessageService, ConfirmationService, MenuItem as MenuItem$1 } from 'primeng/api';
|
|
4
|
+
import { DynamicField, FieldType, ExcelExportConfig, ComponentesDTO, MenuConfig, MenuItem, MenuEvent, BusinessDTO, ProductoDTO, CategoriaDTO, ImagenDTO, TipoCategoriaDTO, MonedaDTO, DatesUserDTO } from '@juliaosistem/core-dtos';
|
|
5
|
+
export { DynamicField, MenuConfig, MenuItem } from '@juliaosistem/core-dtos';
|
|
6
|
+
import * as i2$1 from '@ngx-translate/core';
|
|
7
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
|
+
import * as i3$1 from '@angular/forms';
|
|
9
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
10
|
+
import * as rxjs from 'rxjs';
|
|
11
|
+
import { Subscription, Observable } from 'rxjs';
|
|
12
|
+
import { Router, ActivatedRoute, Routes } from '@angular/router';
|
|
13
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
14
|
+
import { Platform, MenuController } from '@ionic/angular';
|
|
15
|
+
import { HttpClient } from '@angular/common/http';
|
|
16
|
+
import { PlantillaResponse } from 'juliaositembackenexpress/dist/utils/PlantillaResponse';
|
|
17
|
+
import * as juliaositembackenexpress_dist_utils_queryParams from 'juliaositembackenexpress/dist/utils/queryParams';
|
|
18
|
+
import { QueryParams } from 'juliaositembackenexpress/dist/utils/queryParams';
|
|
19
|
+
import * as i1 from '@angular/common';
|
|
20
|
+
import { CurrencyPipe } from '@angular/common';
|
|
21
|
+
import * as i4$1 from '@ngxs/store';
|
|
22
|
+
import { Store, StateContext } from '@ngxs/store';
|
|
23
|
+
import * as i2 from 'primeng/image';
|
|
24
|
+
import * as i3 from 'primeng/button';
|
|
25
|
+
import * as i4 from 'primeng/card';
|
|
26
|
+
import * as i5 from 'primeng/autocomplete';
|
|
27
|
+
import * as i6 from 'primeng/cascadeselect';
|
|
28
|
+
import * as i7 from 'primeng/checkbox';
|
|
29
|
+
import * as i8 from 'primeng/editor';
|
|
30
|
+
import * as i9 from 'primeng/menu';
|
|
31
|
+
import * as i10 from 'primeng/table';
|
|
32
|
+
import * as i11 from 'primeng/paginator';
|
|
33
|
+
import * as i12 from 'primeng/inputtext';
|
|
34
|
+
import * as i13 from 'primeng/password';
|
|
35
|
+
import * as i14 from 'primeng/ripple';
|
|
36
|
+
import * as i15 from 'primeng/toast';
|
|
37
|
+
import * as i16 from 'primeng/toolbar';
|
|
38
|
+
import * as i17 from 'primeng/rating';
|
|
39
|
+
import * as i18 from 'primeng/textarea';
|
|
40
|
+
import * as i19 from 'primeng/select';
|
|
41
|
+
import * as i20 from 'primeng/radiobutton';
|
|
42
|
+
import * as i21 from 'primeng/inputnumber';
|
|
43
|
+
import * as i22 from 'primeng/dialog';
|
|
44
|
+
import * as i23 from 'primeng/tag';
|
|
45
|
+
import * as i24 from 'primeng/inputicon';
|
|
46
|
+
import * as i25 from 'primeng/iconfield';
|
|
47
|
+
import * as i26 from 'primeng/confirmdialog';
|
|
48
|
+
import * as i27 from 'primeng/tieredmenu';
|
|
49
|
+
import * as i28 from 'primeng/fileupload';
|
|
50
|
+
import * as i29 from 'primeng/dataview';
|
|
51
|
+
import * as i30 from 'primeng/stepper';
|
|
52
|
+
import * as i31 from 'primeng/drawer';
|
|
53
|
+
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
54
|
+
import * as i5$1 from '@ngxs/devtools-plugin';
|
|
55
|
+
import * as i6$1 from '@ngxs/logger-plugin';
|
|
56
|
+
import * as i7$1 from '@angular/material/table';
|
|
57
|
+
import * as i8$1 from '@angular/material/form-field';
|
|
58
|
+
import * as i9$1 from '@angular/material/input';
|
|
59
|
+
import * as i10$1 from '@angular/material/select';
|
|
60
|
+
import * as i11$1 from '@angular/material/button';
|
|
61
|
+
import * as i12$1 from '@angular/material/icon';
|
|
62
|
+
import * as i13$1 from '@angular/material/grid-list';
|
|
63
|
+
import * as i14$1 from '@angular/material/paginator';
|
|
64
|
+
import * as i15$1 from '@angular/material/sidenav';
|
|
65
|
+
import * as i16$1 from '@angular/material/toolbar';
|
|
66
|
+
import * as i17$1 from '@angular/material/list';
|
|
67
|
+
import * as i18$1 from '@angular/material/card';
|
|
68
|
+
|
|
69
|
+
declare class CommonLibService {
|
|
70
|
+
constructor();
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonLibService, never>;
|
|
72
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonLibService>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare class CommonLibComponent {
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonLibComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonLibComponent, "lib-common-lib", never, {}, {}, never, never, true, never>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class DynamicEntity {
|
|
81
|
+
id?: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
fields: DynamicField[];
|
|
84
|
+
constructor(data?: Partial<DynamicEntity>);
|
|
85
|
+
addField(field: DynamicField): void;
|
|
86
|
+
getField(key: string): DynamicField | undefined;
|
|
87
|
+
getFieldValue<T = unknown>(key: string): T | undefined;
|
|
88
|
+
setFieldValue(key: string, value: unknown): void;
|
|
89
|
+
getOrderedFields(): DynamicField[];
|
|
90
|
+
toPlainObject(): Record<string, unknown>;
|
|
91
|
+
static fromPlainObject(data: Record<string, unknown>, fieldDefinitions: Omit<DynamicField, 'value'>[]): DynamicEntity;
|
|
92
|
+
static createBasicFieldDefinitions(): Omit<DynamicField, 'value'>[];
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface GenerateFieldsConfig {
|
|
96
|
+
data: Record<string, unknown>[];
|
|
97
|
+
fieldTypeConfig?: Record<string, FieldType>;
|
|
98
|
+
fieldLabels?: Record<string, string>;
|
|
99
|
+
fieldOrder?: string[];
|
|
100
|
+
excludeFields?: string[];
|
|
101
|
+
getValueFn?: (item: any, key: string) => any;
|
|
102
|
+
}
|
|
103
|
+
interface CreateFieldConfig {
|
|
104
|
+
key: string;
|
|
105
|
+
index: number;
|
|
106
|
+
data: Record<string, unknown>[];
|
|
107
|
+
fieldTypeConfig: Record<string, FieldType>;
|
|
108
|
+
fieldLabels: Record<string, string>;
|
|
109
|
+
}
|
|
110
|
+
declare class DynamicFieldService {
|
|
111
|
+
/**
|
|
112
|
+
* Genera campos dinámicos basados en los datos de entrada
|
|
113
|
+
*/
|
|
114
|
+
generateFieldsFromData(config: GenerateFieldsConfig): DynamicField[];
|
|
115
|
+
/**
|
|
116
|
+
* Obtiene todas las claves únicas de los datos, excluyendo campos especificados
|
|
117
|
+
*/
|
|
118
|
+
private getAllUniqueKeys;
|
|
119
|
+
/**
|
|
120
|
+
* Ordena las claves según el orden especificado o alfabéticamente
|
|
121
|
+
*/
|
|
122
|
+
private getOrderedKeys;
|
|
123
|
+
/**
|
|
124
|
+
* Crea un campo dinámico individual
|
|
125
|
+
*/
|
|
126
|
+
private createDynamicField;
|
|
127
|
+
/**
|
|
128
|
+
* Auto-detecta el tipo de campo basado en los datos
|
|
129
|
+
*/
|
|
130
|
+
detectFieldType(data: Record<string, unknown>[], key: string): FieldType;
|
|
131
|
+
/**
|
|
132
|
+
* Formatea una etiqueta desde el nombre del campo
|
|
133
|
+
*/
|
|
134
|
+
formatLabel(key: string): string;
|
|
135
|
+
/**
|
|
136
|
+
* Formatea el valor de un campo dinámico para mostrar
|
|
137
|
+
*/
|
|
138
|
+
formatDynamicFieldValue(field: DynamicField, value: unknown): string;
|
|
139
|
+
/**
|
|
140
|
+
* Obtiene la URL de imagen para un campo
|
|
141
|
+
*/
|
|
142
|
+
getImageUrl(field: DynamicField, value: unknown): string;
|
|
143
|
+
/**
|
|
144
|
+
* Obtiene el texto alternativo para una imagen
|
|
145
|
+
*/
|
|
146
|
+
getImageAltText(field: DynamicField, item: Record<string, unknown>): string;
|
|
147
|
+
/**
|
|
148
|
+
* Genera un ID único para nuevos elementos
|
|
149
|
+
*/
|
|
150
|
+
generateId(): string;
|
|
151
|
+
/**
|
|
152
|
+
* Busca el índice de un elemento por ID
|
|
153
|
+
*/
|
|
154
|
+
findIndexById(data: Record<string, unknown>[], id: string): number;
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldService, never>;
|
|
156
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFieldService>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare class ExcelExportService {
|
|
160
|
+
private messageService;
|
|
161
|
+
constructor(messageService: MessageService);
|
|
162
|
+
exportToExcel(config: ExcelExportConfig): Promise<void>;
|
|
163
|
+
private performExcelExport;
|
|
164
|
+
private prepareDataForExport;
|
|
165
|
+
private formatValue;
|
|
166
|
+
private generateFileName;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExcelExportService, never>;
|
|
168
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExcelExportService>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class Crud implements OnInit {
|
|
172
|
+
private messageService;
|
|
173
|
+
private confirmationService;
|
|
174
|
+
private dynamicFieldService;
|
|
175
|
+
private excelExportService;
|
|
176
|
+
showDialog: boolean;
|
|
177
|
+
submitted: boolean;
|
|
178
|
+
loaded: boolean;
|
|
179
|
+
tableType: 'table' | 'grid';
|
|
180
|
+
data: Record<string, unknown>[];
|
|
181
|
+
fieldTypeConfig: Record<string, FieldType>;
|
|
182
|
+
fieldLabels: Record<string, string>;
|
|
183
|
+
fieldOrder: string[];
|
|
184
|
+
excludeFields: string[];
|
|
185
|
+
fieldSelectOptions: Record<string, {
|
|
186
|
+
label: string;
|
|
187
|
+
value: string | number | boolean;
|
|
188
|
+
}[]>;
|
|
189
|
+
rows: number;
|
|
190
|
+
paginator: boolean;
|
|
191
|
+
rowsPerPageOptions: number[];
|
|
192
|
+
showCurrentPageReport: boolean;
|
|
193
|
+
dataChange: EventEmitter<Record<string, unknown>[]>;
|
|
194
|
+
editItemRequest: EventEmitter<Record<string, unknown>>;
|
|
195
|
+
newItemRequest: EventEmitter<void>;
|
|
196
|
+
itemSaved: EventEmitter<Record<string, unknown>>;
|
|
197
|
+
dialogCanceled: EventEmitter<void>;
|
|
198
|
+
displayFields: DynamicField[];
|
|
199
|
+
deleteItemRequest: EventEmitter<Record<string, unknown>>;
|
|
200
|
+
currentItem: Record<string, unknown>;
|
|
201
|
+
selectedItems: Record<string, unknown>[];
|
|
202
|
+
fields: DynamicField[];
|
|
203
|
+
componente: ComponentesDTO;
|
|
204
|
+
constructor(messageService: MessageService, confirmationService: ConfirmationService, dynamicFieldService: DynamicFieldService, excelExportService: ExcelExportService);
|
|
205
|
+
ngOnInit(): void;
|
|
206
|
+
initFields(): void;
|
|
207
|
+
editItem(item: Record<string, unknown>): void;
|
|
208
|
+
openNew(): void;
|
|
209
|
+
onItemSaved(savedItem: Record<string, unknown>): void;
|
|
210
|
+
onDialogCanceled(): void;
|
|
211
|
+
deleteItem(item: Record<string, unknown>): void;
|
|
212
|
+
deleteSelectedItems(): void;
|
|
213
|
+
private executeItemsDeletion;
|
|
214
|
+
private updateExistingItem;
|
|
215
|
+
private createNewItem;
|
|
216
|
+
processItemSave(savedItem: Record<string, unknown>): void;
|
|
217
|
+
setCurrentItem(item: Record<string, unknown>): void;
|
|
218
|
+
private finalizeItemSave;
|
|
219
|
+
onViewChange(newView: 'table' | 'grid'): void;
|
|
220
|
+
onSelectedItemsChange(newSelection: Record<string, unknown>[] | null): void;
|
|
221
|
+
exportToExcel(): void;
|
|
222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Crud, never>;
|
|
223
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Crud, "lib-crud", never, { "showDialog": { "alias": "showDialog"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "loaded": { "alias": "loaded"; "required": false; }; "tableType": { "alias": "tableType"; "required": false; }; "data": { "alias": "data"; "required": false; }; "fieldTypeConfig": { "alias": "fieldTypeConfig"; "required": false; }; "fieldLabels": { "alias": "fieldLabels"; "required": false; }; "fieldOrder": { "alias": "fieldOrder"; "required": false; }; "excludeFields": { "alias": "excludeFields"; "required": false; }; "fieldSelectOptions": { "alias": "fieldSelectOptions"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; }; "displayFields": { "alias": "displayFields"; "required": false; }; }, { "dataChange": "dataChange"; "editItemRequest": "editItemRequest"; "newItemRequest": "newItemRequest"; "itemSaved": "itemSaved"; "dialogCanceled": "dialogCanceled"; "deleteItemRequest": "deleteItemRequest"; }, never, never, true, never>;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
interface DocProp {
|
|
227
|
+
name: string;
|
|
228
|
+
type?: string;
|
|
229
|
+
description?: string;
|
|
230
|
+
}
|
|
231
|
+
declare class CrudDocComponent implements AfterViewInit {
|
|
232
|
+
/** Componente que se mostrará en el demo interactivo */
|
|
233
|
+
component: Type<any>;
|
|
234
|
+
/** Información de la documentación */
|
|
235
|
+
title: string;
|
|
236
|
+
description: string;
|
|
237
|
+
exampleCode: string;
|
|
238
|
+
inputsDocs: DocProp[];
|
|
239
|
+
outputsDocs: DocProp[];
|
|
240
|
+
/** Inputs y outputs para el demo dinámico */
|
|
241
|
+
demoInputs: Record<string, any>;
|
|
242
|
+
demoOutputs: Record<string, (value?: any) => void>;
|
|
243
|
+
container: ViewContainerRef;
|
|
244
|
+
ngAfterViewInit(): void;
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudDocComponent, never>;
|
|
246
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrudDocComponent, "lib-crud-doc", never, { "component": { "alias": "component"; "required": true; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "exampleCode": { "alias": "exampleCode"; "required": false; }; "inputsDocs": { "alias": "inputsDocs"; "required": false; }; "outputsDocs": { "alias": "outputsDocs"; "required": false; }; "demoInputs": { "alias": "demoInputs"; "required": false; }; "demoOutputs": { "alias": "demoOutputs"; "required": false; }; }, {}, never, never, true, never>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare class SelectInput1Component {
|
|
250
|
+
private translate;
|
|
251
|
+
componente: ComponentesDTO;
|
|
252
|
+
seleccionada: string;
|
|
253
|
+
lenguages: string[];
|
|
254
|
+
constructor(translate: TranslateService);
|
|
255
|
+
cambiaLang(event: string): void;
|
|
256
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectInput1Component, never>;
|
|
257
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectInput1Component, "lib-select-input1", never, { "lenguages": { "alias": "lenguages"; "required": false; }; }, {}, never, never, true, never>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare class ButtonActionEdit1Component {
|
|
261
|
+
item: Record<string, unknown>;
|
|
262
|
+
disabled: boolean;
|
|
263
|
+
size: 'small' | 'large' | undefined;
|
|
264
|
+
outlined: boolean;
|
|
265
|
+
rounded: boolean;
|
|
266
|
+
edit: EventEmitter<Record<string, unknown>>;
|
|
267
|
+
componente: ComponentesDTO;
|
|
268
|
+
onEdit(): void;
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonActionEdit1Component, never>;
|
|
270
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonActionEdit1Component, "lib-button-action-edit1", never, { "item": { "alias": "item"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "edit": "edit"; }, never, never, true, never>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
declare class ButtonActionDelete1Component {
|
|
274
|
+
componente: ComponentesDTO;
|
|
275
|
+
item: Record<string, unknown>;
|
|
276
|
+
disabled: boolean;
|
|
277
|
+
size: 'small' | 'large' | undefined;
|
|
278
|
+
outlined: boolean;
|
|
279
|
+
rounded: boolean;
|
|
280
|
+
delete: EventEmitter<Record<string, unknown>>;
|
|
281
|
+
onDelete(): void;
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonActionDelete1Component, never>;
|
|
283
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonActionDelete1Component, "lib-button-action-delete1", never, { "item": { "alias": "item"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "delete": "delete"; }, never, never, true, never>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
declare class ButtonAdd1Component {
|
|
287
|
+
componente: ComponentesDTO;
|
|
288
|
+
label: string;
|
|
289
|
+
icon: string;
|
|
290
|
+
disabled: boolean;
|
|
291
|
+
size: 'small' | 'large' | undefined;
|
|
292
|
+
outlined: boolean;
|
|
293
|
+
rounded: boolean;
|
|
294
|
+
severity: 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | undefined;
|
|
295
|
+
tooltip: string;
|
|
296
|
+
loading: boolean;
|
|
297
|
+
add: EventEmitter<void>;
|
|
298
|
+
onAdd(): void;
|
|
299
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonAdd1Component, never>;
|
|
300
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonAdd1Component, "lib-button-add1", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "severity": { "alias": "severity"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "add": "add"; }, never, never, true, never>;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare class Index2Component {
|
|
304
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Index2Component, never>;
|
|
305
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Index2Component, "lib-index2", never, {}, {}, never, never, true, never>;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare class Tabla1Component implements OnInit {
|
|
309
|
+
private dynamicFieldService;
|
|
310
|
+
data: Record<string, unknown>[];
|
|
311
|
+
selectedItems: Record<string, unknown>[] | null;
|
|
312
|
+
selectedItemsChange: EventEmitter<Record<string, unknown>[] | null>;
|
|
313
|
+
fieldTypeConfig: Record<string, FieldType>;
|
|
314
|
+
fieldLabels: Record<string, string>;
|
|
315
|
+
fieldOrder: string[];
|
|
316
|
+
excludeFields: string[];
|
|
317
|
+
fieldSelectOptions: Record<string, {
|
|
318
|
+
label: string;
|
|
319
|
+
value: string | number | boolean;
|
|
320
|
+
}[]>;
|
|
321
|
+
displayFields: DynamicField[];
|
|
322
|
+
showDefaultHeader: boolean;
|
|
323
|
+
showDefaultBody: boolean;
|
|
324
|
+
rows: number;
|
|
325
|
+
paginator: boolean;
|
|
326
|
+
rowsPerPageOptions: number[];
|
|
327
|
+
showCurrentPageReport: boolean;
|
|
328
|
+
editItem: EventEmitter<Record<string, unknown>>;
|
|
329
|
+
fields: DynamicField[];
|
|
330
|
+
componente: ComponentesDTO;
|
|
331
|
+
constructor(dynamicFieldService: DynamicFieldService);
|
|
332
|
+
ngOnInit(): void;
|
|
333
|
+
initFields(): void;
|
|
334
|
+
formatDynamicFieldValue(field: DynamicField, value: unknown): string;
|
|
335
|
+
getImageUrl(field: DynamicField, value: unknown): string;
|
|
336
|
+
getImageAltText(field: DynamicField, item: Record<string, unknown>): string;
|
|
337
|
+
onEditItem(item: Record<string, unknown>): void;
|
|
338
|
+
onSelectionChange(newSelection: Record<string, unknown>[] | null): void;
|
|
339
|
+
getValue(item: Record<string, any>, field: DynamicField): any;
|
|
340
|
+
getNestedValue(item: Record<string, any>, path: string): any;
|
|
341
|
+
getFieldValue(item: Record<string, any>, key: string): any;
|
|
342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Tabla1Component, never>;
|
|
343
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tabla1Component, "lib-tabla1", never, { "data": { "alias": "data"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "fieldTypeConfig": { "alias": "fieldTypeConfig"; "required": false; }; "fieldLabels": { "alias": "fieldLabels"; "required": false; }; "fieldOrder": { "alias": "fieldOrder"; "required": false; }; "excludeFields": { "alias": "excludeFields"; "required": false; }; "fieldSelectOptions": { "alias": "fieldSelectOptions"; "required": false; }; "displayFields": { "alias": "displayFields"; "required": false; }; "showDefaultHeader": { "alias": "showDefaultHeader"; "required": false; }; "showDefaultBody": { "alias": "showDefaultBody"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; }; }, { "selectedItemsChange": "selectedItemsChange"; "editItem": "editItem"; }, never, never, true, never>;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
declare class CrudDialog1Component implements OnChanges {
|
|
347
|
+
private fb;
|
|
348
|
+
onSubmit(): void;
|
|
349
|
+
visible: boolean;
|
|
350
|
+
displayFields: DynamicField[];
|
|
351
|
+
currentItem: Record<string, unknown>;
|
|
352
|
+
fieldSelectOptions: Record<string, {
|
|
353
|
+
label: string;
|
|
354
|
+
value: string | number | boolean;
|
|
355
|
+
}[]>;
|
|
356
|
+
isDefaultContent: boolean;
|
|
357
|
+
body: TemplateRef<any> | undefined;
|
|
358
|
+
visibleChange: EventEmitter<boolean>;
|
|
359
|
+
save: EventEmitter<Record<string, unknown>>;
|
|
360
|
+
cancel: EventEmitter<void>;
|
|
361
|
+
triggerSave: EventEmitter<void>;
|
|
362
|
+
itemForm: FormGroup;
|
|
363
|
+
componente: ComponentesDTO;
|
|
364
|
+
/**
|
|
365
|
+
* Archivos seleccionados
|
|
366
|
+
*/
|
|
367
|
+
selectedFiles: Record<string, File>;
|
|
368
|
+
constructor(fb: FormBuilder);
|
|
369
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
370
|
+
private updateForm;
|
|
371
|
+
/**
|
|
372
|
+
* Obtiene el valor inicial basado en el tipo de campo
|
|
373
|
+
*/
|
|
374
|
+
private getInitialValue;
|
|
375
|
+
/**
|
|
376
|
+
* Maneja la selección de archivos desde p-fileUpload
|
|
377
|
+
*/
|
|
378
|
+
onFileSelect(event: {
|
|
379
|
+
files: File[];
|
|
380
|
+
}, fieldKey: string): void;
|
|
381
|
+
/**
|
|
382
|
+
* Remueve un archivo seleccionado
|
|
383
|
+
*/
|
|
384
|
+
onFileRemove(fieldKey: string): void;
|
|
385
|
+
/**
|
|
386
|
+
* Obtiene el archivo seleccionado para un campo
|
|
387
|
+
*/
|
|
388
|
+
getSelectedFile(fieldKey: string): File | null;
|
|
389
|
+
getSelectOptions(fieldKey: string): {
|
|
390
|
+
label: string;
|
|
391
|
+
value: string | number | boolean;
|
|
392
|
+
}[];
|
|
393
|
+
hideDialog(): void;
|
|
394
|
+
saveItem(): void;
|
|
395
|
+
onDialogHide(): void;
|
|
396
|
+
onVisibilityChange(visible: boolean): void;
|
|
397
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudDialog1Component, never>;
|
|
398
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrudDialog1Component, "lib-crud-dialog1", never, { "visible": { "alias": "visible"; "required": false; }; "displayFields": { "alias": "displayFields"; "required": false; }; "currentItem": { "alias": "currentItem"; "required": false; }; "fieldSelectOptions": { "alias": "fieldSelectOptions"; "required": false; }; "isDefaultContent": { "alias": "isDefaultContent"; "required": false; }; "body": { "alias": "body"; "required": false; }; }, { "visibleChange": "visibleChange"; "save": "save"; "cancel": "cancel"; "triggerSave": "triggerSave"; }, never, never, true, never>;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
declare class ProductDialog1Component implements OnInit, OnChanges {
|
|
402
|
+
productDialog: boolean;
|
|
403
|
+
product: Record<string, unknown>;
|
|
404
|
+
statuses: string[];
|
|
405
|
+
triggerSave?: EventEmitter<void>;
|
|
406
|
+
productDialogChange: EventEmitter<boolean>;
|
|
407
|
+
onSave: EventEmitter<Record<string, unknown>>;
|
|
408
|
+
onCancel: EventEmitter<void>;
|
|
409
|
+
componente: ComponentesDTO;
|
|
410
|
+
submitted: boolean;
|
|
411
|
+
originalProduct: Record<string, unknown>;
|
|
412
|
+
ngOnInit(): void;
|
|
413
|
+
ngOnChanges(): void;
|
|
414
|
+
hideDialog(): void;
|
|
415
|
+
saveProduct(): void;
|
|
416
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDialog1Component, never>;
|
|
417
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductDialog1Component, "lib-product-dialog1", never, { "productDialog": { "alias": "productDialog"; "required": false; }; "product": { "alias": "product"; "required": false; }; "statuses": { "alias": "statuses"; "required": false; }; "triggerSave": { "alias": "triggerSave"; "required": false; }; }, { "productDialogChange": "productDialogChange"; "onSave": "onSave"; "onCancel": "onCancel"; }, never, never, true, never>;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
declare class Notfound {
|
|
421
|
+
componente: ComponentesDTO;
|
|
422
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Notfound, never>;
|
|
423
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Notfound, "app-notfound", never, {}, {}, never, never, true, never>;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
interface Inflatable {
|
|
427
|
+
id: number;
|
|
428
|
+
name: string;
|
|
429
|
+
parts: number;
|
|
430
|
+
basePrice: number;
|
|
431
|
+
}
|
|
432
|
+
interface Accessory {
|
|
433
|
+
id: string;
|
|
434
|
+
name: string;
|
|
435
|
+
price: number;
|
|
436
|
+
requiresText?: boolean;
|
|
437
|
+
customText?: string;
|
|
438
|
+
}
|
|
439
|
+
interface Project {
|
|
440
|
+
id: number;
|
|
441
|
+
product: Inflatable;
|
|
442
|
+
partColors: {
|
|
443
|
+
[key: number]: string;
|
|
444
|
+
};
|
|
445
|
+
accessories: Accessory[];
|
|
446
|
+
totalPrice: number;
|
|
447
|
+
}
|
|
448
|
+
declare class CustomizerComponent {
|
|
449
|
+
project: Project;
|
|
450
|
+
save: EventEmitter<Project>;
|
|
451
|
+
selectedColor: string;
|
|
452
|
+
selectedPart: number;
|
|
453
|
+
COLORS: {
|
|
454
|
+
name: string;
|
|
455
|
+
hex: string;
|
|
456
|
+
}[];
|
|
457
|
+
ACCESSORIES: Accessory[];
|
|
458
|
+
selectPart(index: number): void;
|
|
459
|
+
applyColor(): void;
|
|
460
|
+
toggleAccessory(acc: Accessory): void;
|
|
461
|
+
isAccessorySelected(acc: Accessory): boolean;
|
|
462
|
+
updatePrice(): void;
|
|
463
|
+
saveProject(): void;
|
|
464
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomizerComponent, never>;
|
|
465
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomizerComponent, "lib-customizer", never, { "project": { "alias": "project"; "required": false; }; }, { "save": "save"; }, never, never, true, never>;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
interface MenuService {
|
|
469
|
+
getMenuConfig(menuId: string): Promise<MenuConfig>;
|
|
470
|
+
updateMenuConfig(menuId: string, config: MenuConfig): Promise<void>;
|
|
471
|
+
getMenuItems(menuId: string): Promise<MenuItem[]>;
|
|
472
|
+
addMenuItem(menuId: string, item: MenuItem): Promise<void>;
|
|
473
|
+
removeMenuItem(menuId: string, itemId: string): Promise<void>;
|
|
474
|
+
updateMenuItem(menuId: string, itemId: string, item: Partial<MenuItem>): Promise<void>;
|
|
475
|
+
}
|
|
476
|
+
declare class MenuManager {
|
|
477
|
+
private config;
|
|
478
|
+
constructor(config: MenuConfig);
|
|
479
|
+
getVisibleItems(): MenuItem[];
|
|
480
|
+
private filterVisibleItems;
|
|
481
|
+
getOrderedItems(): MenuItem[];
|
|
482
|
+
private sortItems;
|
|
483
|
+
findItemById(itemId: string): MenuItem | null;
|
|
484
|
+
private findItemRecursive;
|
|
485
|
+
hasPermission(item: MenuItem, userPermissions: string[]): boolean;
|
|
486
|
+
filterByPermissions(userPermissions: string[]): MenuItem[];
|
|
487
|
+
private filterItemsByPermissions;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
declare class MenuItem1Component implements OnInit {
|
|
491
|
+
item: MenuItem;
|
|
492
|
+
showIcons: boolean;
|
|
493
|
+
showBadges: boolean;
|
|
494
|
+
collapsed: boolean;
|
|
495
|
+
depth: number;
|
|
496
|
+
maxDepth: number;
|
|
497
|
+
activeItemId?: string;
|
|
498
|
+
isItemExpanded: boolean;
|
|
499
|
+
expandedItems?: Set<string>;
|
|
500
|
+
menuEvent: EventEmitter<MenuEvent>;
|
|
501
|
+
hasSubItems: boolean;
|
|
502
|
+
ngOnInit(): void;
|
|
503
|
+
getItemClasses(): string;
|
|
504
|
+
getLinkClasses(): string;
|
|
505
|
+
getBadgeClasses(): string;
|
|
506
|
+
onItemClick(event: Event): void;
|
|
507
|
+
onItemHover(event: Event): void;
|
|
508
|
+
onItemLeave(event: Event): void;
|
|
509
|
+
onSubMenuEvent(event: MenuEvent): void;
|
|
510
|
+
isSubItemExpanded(itemId: string): boolean;
|
|
511
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItem1Component, never>;
|
|
512
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItem1Component, "app-menu-item1", never, { "item": { "alias": "item"; "required": false; }; "showIcons": { "alias": "showIcons"; "required": false; }; "showBadges": { "alias": "showBadges"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; "maxDepth": { "alias": "maxDepth"; "required": false; }; "activeItemId": { "alias": "activeItemId"; "required": false; }; "isItemExpanded": { "alias": "isItemExpanded"; "required": false; }; "expandedItems": { "alias": "expandedItems"; "required": false; }; }, { "menuEvent": "menuEvent"; }, never, never, true, never>;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare class DynamicMenuService implements MenuService {
|
|
516
|
+
private menuCache;
|
|
517
|
+
constructor();
|
|
518
|
+
getMenuConfig(menuId: string): Promise<MenuConfig>;
|
|
519
|
+
updateMenuConfig(menuId: string, config: MenuConfig): Promise<void>;
|
|
520
|
+
getMenuItems(menuId: string): Promise<MenuItem[]>;
|
|
521
|
+
addMenuItem(menuId: string, item: MenuItem): Promise<void>;
|
|
522
|
+
removeMenuItem(menuId: string, itemId: string): Promise<void>;
|
|
523
|
+
updateMenuItem(menuId: string, itemId: string, updates: Partial<MenuItem>): Promise<void>;
|
|
524
|
+
clearCache(menuId?: string): void;
|
|
525
|
+
private getDefaultMenuConfig;
|
|
526
|
+
private removeItemRecursive;
|
|
527
|
+
private updateItemRecursive;
|
|
528
|
+
duplicateMenu(sourceMenuId: string, newMenuId: string, newName: string): Promise<MenuConfig>;
|
|
529
|
+
exportMenuConfig(menuId: string): Promise<string>;
|
|
530
|
+
importMenuConfig(menuId: string, configJson: string): Promise<void>;
|
|
531
|
+
getMenuItemsByPermissions(menuId: string, permissions: string[]): Promise<MenuItem[]>;
|
|
532
|
+
private filterItemsByPermissions;
|
|
533
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicMenuService, never>;
|
|
534
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicMenuService>;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
declare class DynamicMenu1Component implements OnInit {
|
|
538
|
+
private menuService;
|
|
539
|
+
menuId: string;
|
|
540
|
+
userPermissions: string[];
|
|
541
|
+
menuConfig?: MenuConfig;
|
|
542
|
+
autoLoad: boolean;
|
|
543
|
+
menuEvent: EventEmitter<MenuEvent>;
|
|
544
|
+
menuLoaded: EventEmitter<MenuConfig>;
|
|
545
|
+
menuError: EventEmitter<string>;
|
|
546
|
+
config?: MenuConfig;
|
|
547
|
+
menuItems: MenuItem[];
|
|
548
|
+
collapsed: boolean;
|
|
549
|
+
loading: boolean;
|
|
550
|
+
error?: string;
|
|
551
|
+
activeItemId?: string;
|
|
552
|
+
expandedItems: Set<string>;
|
|
553
|
+
private menuManager?;
|
|
554
|
+
private subscription?;
|
|
555
|
+
constructor(menuService: DynamicMenuService);
|
|
556
|
+
ngOnInit(): void;
|
|
557
|
+
loadMenu(): Promise<void>;
|
|
558
|
+
private setConfig;
|
|
559
|
+
private updateMenuItems;
|
|
560
|
+
getMenuClasses(): string;
|
|
561
|
+
toggleMenu(): void;
|
|
562
|
+
onMenuItemEvent(event: MenuEvent): void;
|
|
563
|
+
private hasSubItems;
|
|
564
|
+
private toggleItemExpansion;
|
|
565
|
+
private collapseAllSubItems;
|
|
566
|
+
private findItemById;
|
|
567
|
+
isItemExpanded(itemId: string): boolean;
|
|
568
|
+
addMenuItem(item: MenuItem): Promise<void>;
|
|
569
|
+
removeMenuItem(itemId: string): Promise<void>;
|
|
570
|
+
updateMenuItem(itemId: string, updates: Partial<MenuItem>): Promise<void>;
|
|
571
|
+
setActiveItem(itemId: string): void;
|
|
572
|
+
refreshMenu(): void;
|
|
573
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicMenu1Component, never>;
|
|
574
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicMenu1Component, "app-dynamic-menu1", never, { "menuId": { "alias": "menuId"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; "menuConfig": { "alias": "menuConfig"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; }, { "menuEvent": "menuEvent"; "menuLoaded": "menuLoaded"; "menuError": "menuError"; }, never, never, true, never>;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
declare class MenuComponent implements OnInit {
|
|
578
|
+
private menuService;
|
|
579
|
+
menuId: string;
|
|
580
|
+
menuConfig?: MenuConfig;
|
|
581
|
+
userPermissions: string[];
|
|
582
|
+
showControls: boolean;
|
|
583
|
+
showInfo: boolean;
|
|
584
|
+
showEventLog: boolean;
|
|
585
|
+
showConfig: boolean;
|
|
586
|
+
initialConfig?: MenuConfig;
|
|
587
|
+
menuEvent: EventEmitter<MenuEvent>;
|
|
588
|
+
menuLoaded: EventEmitter<MenuConfig>;
|
|
589
|
+
menuError: EventEmitter<string>;
|
|
590
|
+
menuItemAdded: EventEmitter<MenuItem>;
|
|
591
|
+
menuRefreshed: EventEmitter<void>;
|
|
592
|
+
configApplied: EventEmitter<MenuConfig>;
|
|
593
|
+
menuItemCount: number;
|
|
594
|
+
menuStatus: string;
|
|
595
|
+
eventLog: Array<{
|
|
596
|
+
timestamp: Date;
|
|
597
|
+
type: string;
|
|
598
|
+
item: string;
|
|
599
|
+
}>;
|
|
600
|
+
constructor(menuService: DynamicMenuService);
|
|
601
|
+
ngOnInit(): void;
|
|
602
|
+
private initializeDynamicMenu;
|
|
603
|
+
loadMenuInfo(): Promise<void>;
|
|
604
|
+
countMenuItems(items: MenuItem[]): number;
|
|
605
|
+
onMenuChange(event: Event): void;
|
|
606
|
+
onMenuEvent(event: MenuEvent): void;
|
|
607
|
+
onMenuLoaded(config: MenuConfig): void;
|
|
608
|
+
onMenuError(error: string): void;
|
|
609
|
+
addMenuItem(): Promise<void>;
|
|
610
|
+
refreshMenu(): void;
|
|
611
|
+
applyCustomConfig(): void;
|
|
612
|
+
setMenuId(menuId: string): void;
|
|
613
|
+
setUserPermissions(permissions: string[]): void;
|
|
614
|
+
setMenuConfig(config: MenuConfig): void;
|
|
615
|
+
clearEventLog(): void;
|
|
616
|
+
getEventLog(): {
|
|
617
|
+
timestamp: Date;
|
|
618
|
+
type: string;
|
|
619
|
+
item: string;
|
|
620
|
+
}[];
|
|
621
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
622
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "lib-menu", never, { "menuId": { "alias": "menuId"; "required": false; }; "menuConfig": { "alias": "menuConfig"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; "showControls": { "alias": "showControls"; "required": false; }; "showInfo": { "alias": "showInfo"; "required": false; }; "showEventLog": { "alias": "showEventLog"; "required": false; }; "showConfig": { "alias": "showConfig"; "required": false; }; "initialConfig": { "alias": "initialConfig"; "required": false; }; }, { "menuEvent": "menuEvent"; "menuLoaded": "menuLoaded"; "menuError": "menuError"; "menuItemAdded": "menuItemAdded"; "menuRefreshed": "menuRefreshed"; "configApplied": "configApplied"; }, never, never, true, never>;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
interface layoutConfig {
|
|
626
|
+
preset?: string;
|
|
627
|
+
primary?: string;
|
|
628
|
+
surface?: string | undefined | null;
|
|
629
|
+
darkTheme?: boolean;
|
|
630
|
+
menuMode?: string;
|
|
631
|
+
}
|
|
632
|
+
interface LayoutState {
|
|
633
|
+
staticMenuDesktopInactive?: boolean;
|
|
634
|
+
overlayMenuActive?: boolean;
|
|
635
|
+
configSidebarVisible?: boolean;
|
|
636
|
+
staticMenuMobileActive?: boolean;
|
|
637
|
+
menuHoverActive?: boolean;
|
|
638
|
+
}
|
|
639
|
+
interface MenuChangeEvent {
|
|
640
|
+
key: string;
|
|
641
|
+
routeEvent?: boolean;
|
|
642
|
+
}
|
|
643
|
+
declare class LayoutService {
|
|
644
|
+
_config: layoutConfig;
|
|
645
|
+
_state: LayoutState;
|
|
646
|
+
layoutConfig: i0.WritableSignal<layoutConfig>;
|
|
647
|
+
layoutState: i0.WritableSignal<LayoutState>;
|
|
648
|
+
private configUpdate;
|
|
649
|
+
private overlayOpen;
|
|
650
|
+
private menuSource;
|
|
651
|
+
private resetSource;
|
|
652
|
+
menuSource$: rxjs.Observable<MenuChangeEvent>;
|
|
653
|
+
resetSource$: rxjs.Observable<unknown>;
|
|
654
|
+
configUpdate$: rxjs.Observable<layoutConfig>;
|
|
655
|
+
overlayOpen$: rxjs.Observable<unknown>;
|
|
656
|
+
theme: i0.Signal<"light" | "dark">;
|
|
657
|
+
isSidebarActive: i0.Signal<boolean | undefined>;
|
|
658
|
+
isDarkTheme: i0.Signal<boolean | undefined>;
|
|
659
|
+
getPrimary: i0.Signal<string | undefined>;
|
|
660
|
+
getSurface: i0.Signal<string | null | undefined>;
|
|
661
|
+
isOverlay: i0.Signal<boolean>;
|
|
662
|
+
transitionComplete: i0.WritableSignal<boolean>;
|
|
663
|
+
private initialized;
|
|
664
|
+
constructor();
|
|
665
|
+
private handleDarkModeTransition;
|
|
666
|
+
private startViewTransition;
|
|
667
|
+
toggleDarkMode(config?: layoutConfig): void;
|
|
668
|
+
private onTransitionEnd;
|
|
669
|
+
onMenuToggle(): void;
|
|
670
|
+
isDesktop(): boolean;
|
|
671
|
+
isMobile(): boolean;
|
|
672
|
+
onConfigUpdate(): void;
|
|
673
|
+
onMenuStateChange(event: MenuChangeEvent): void;
|
|
674
|
+
reset(): void;
|
|
675
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
|
|
676
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
declare class AppTopbar {
|
|
680
|
+
layoutService: LayoutService;
|
|
681
|
+
items: MenuItem$1[];
|
|
682
|
+
constructor(layoutService: LayoutService);
|
|
683
|
+
toggleDarkMode(): void;
|
|
684
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppTopbar, never>;
|
|
685
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppTopbar, "lib-topbar3", never, {}, {}, never, never, true, never>;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
declare class AppFooter {
|
|
689
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppFooter, never>;
|
|
690
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFooter, "lib-footer3", never, {}, {}, never, never, true, never>;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
declare const DASHBOARD3_MENU_CONFIG: MenuConfig;
|
|
694
|
+
|
|
695
|
+
declare class DaskBoard3 implements OnInit {
|
|
696
|
+
layoutService: LayoutService;
|
|
697
|
+
renderer: Renderer2;
|
|
698
|
+
router: Router;
|
|
699
|
+
private route;
|
|
700
|
+
menuConfig?: MenuConfig;
|
|
701
|
+
userPermissions: string[];
|
|
702
|
+
overlayMenuOpenSubscription: Subscription;
|
|
703
|
+
menuOutsideClickListener: any;
|
|
704
|
+
constructor(layoutService: LayoutService, renderer: Renderer2, router: Router, route: ActivatedRoute);
|
|
705
|
+
ngOnInit(): void;
|
|
706
|
+
isOutsideClicked(event: MouseEvent): boolean;
|
|
707
|
+
hideMenu(): void;
|
|
708
|
+
blockBodyScroll(): void;
|
|
709
|
+
unblockBodyScroll(): void;
|
|
710
|
+
get containerClass(): {
|
|
711
|
+
'layout-wrapper': boolean;
|
|
712
|
+
'layout-overlay': boolean;
|
|
713
|
+
'layout-static': boolean;
|
|
714
|
+
'layout-static-inactive': boolean | undefined;
|
|
715
|
+
'layout-overlay-active': boolean | undefined;
|
|
716
|
+
'layout-mobile-active': boolean | undefined;
|
|
717
|
+
};
|
|
718
|
+
ngOnDestroy(): void;
|
|
719
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DaskBoard3, never>;
|
|
720
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DaskBoard3, "lib-daskboard3", never, { "menuConfig": { "alias": "menuConfig"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; }, {}, never, never, true, never>;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
declare class Index1Component {
|
|
724
|
+
private platform;
|
|
725
|
+
private breakpointObserver;
|
|
726
|
+
private translate;
|
|
727
|
+
isMovile: boolean;
|
|
728
|
+
langs: string[];
|
|
729
|
+
negocio: BusinessDTO;
|
|
730
|
+
constructor(platform: Platform, breakpointObserver: BreakpointObserver, translate: TranslateService);
|
|
731
|
+
ngOnInit(): void;
|
|
732
|
+
configurarIdiomas(): void;
|
|
733
|
+
checkScreenSize(): void;
|
|
734
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Index1Component, never>;
|
|
735
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Index1Component, "lib-index1", never, { "negocio": { "alias": "negocio"; "required": false; }; }, {}, never, never, true, never>;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
interface LibCommonConfig {
|
|
739
|
+
baseUrlProducts?: string;
|
|
740
|
+
baseUrlAuth?: string;
|
|
741
|
+
baseUrlUsers?: string;
|
|
742
|
+
apiVersion?: string;
|
|
743
|
+
timeout?: number;
|
|
744
|
+
[key: string]: unknown;
|
|
745
|
+
}
|
|
746
|
+
declare const LIB_COMMON_CONFIG: InjectionToken<LibCommonConfig>;
|
|
747
|
+
declare class LibConfigService {
|
|
748
|
+
private injectedConfig;
|
|
749
|
+
private config;
|
|
750
|
+
constructor(injectedConfig: LibCommonConfig);
|
|
751
|
+
get<T = unknown>(key: string): T;
|
|
752
|
+
getConfig(): LibCommonConfig;
|
|
753
|
+
updateConfig(newConfig: Partial<LibCommonConfig>): void;
|
|
754
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibConfigService, [{ optional: true; }]>;
|
|
755
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LibConfigService>;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
declare class JuliaoSystemCrudHttpService<RES, RQ> {
|
|
759
|
+
protected http: HttpClient;
|
|
760
|
+
basePathUrl: string;
|
|
761
|
+
constructor(http: HttpClient);
|
|
762
|
+
/**
|
|
763
|
+
* Agrega una nueva entidad
|
|
764
|
+
* @param request Datos de la entidad a agregar
|
|
765
|
+
* @param queryParams Parámetros de consulta estándar
|
|
766
|
+
*/
|
|
767
|
+
add(request: RQ extends {
|
|
768
|
+
id: string | number;
|
|
769
|
+
} ? RQ : RQ & {
|
|
770
|
+
id: string | number;
|
|
771
|
+
}, queryParams: QueryParams): Observable<PlantillaResponse<RES>>;
|
|
772
|
+
/**
|
|
773
|
+
* Obtiene todas las entidades
|
|
774
|
+
* @param queryParams Parámetros de consulta estándar
|
|
775
|
+
* @param filters Filtros adicionales (opcional)
|
|
776
|
+
*/
|
|
777
|
+
all(queryParams: QueryParams, filters?: Map<string, string>): Observable<PlantillaResponse<RES>>;
|
|
778
|
+
/**
|
|
779
|
+
* Actualiza una entidad existente
|
|
780
|
+
* @param request Datos actualizados de la entidad
|
|
781
|
+
* @param queryParams Parámetros de consulta estándar
|
|
782
|
+
*/
|
|
783
|
+
update(request: RQ, queryParams: QueryParams): Observable<PlantillaResponse<RES>>;
|
|
784
|
+
/**
|
|
785
|
+
* Elimina una entidad
|
|
786
|
+
* @param queryParams Parámetros de consulta estándar
|
|
787
|
+
*/
|
|
788
|
+
delete(queryParams: QueryParams): Observable<PlantillaResponse<RES>>;
|
|
789
|
+
/**
|
|
790
|
+
* Método virtual para obtener datos mock
|
|
791
|
+
* Debe ser implementado por las clases hijas que necesiten datos mock
|
|
792
|
+
* @returns Array de datos mock o null si no está implementado
|
|
793
|
+
*/
|
|
794
|
+
getMockData?(): RES[] | null;
|
|
795
|
+
/**
|
|
796
|
+
* Construye los headers HTTP a partir de los QueryParams
|
|
797
|
+
* @param queryParams Parámetros de consulta
|
|
798
|
+
* @private
|
|
799
|
+
*/
|
|
800
|
+
private buildHeaders;
|
|
801
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JuliaoSystemCrudHttpService<any, any>, never>;
|
|
802
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JuliaoSystemCrudHttpService<any, any>>;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
interface Product {
|
|
806
|
+
id?: string;
|
|
807
|
+
code?: string;
|
|
808
|
+
name?: string;
|
|
809
|
+
description?: string;
|
|
810
|
+
price?: number;
|
|
811
|
+
quantity?: number;
|
|
812
|
+
inventoryStatus?: string;
|
|
813
|
+
category?: string;
|
|
814
|
+
image?: string;
|
|
815
|
+
rating?: number;
|
|
816
|
+
}
|
|
817
|
+
declare class ProductService extends JuliaoSystemCrudHttpService<ProductoDTO, ProductoDTO> {
|
|
818
|
+
private configService;
|
|
819
|
+
constructor(http: HttpClient, configService: LibConfigService);
|
|
820
|
+
mockProductoDTO(): ProductoDTO;
|
|
821
|
+
/**
|
|
822
|
+
* Método para Agregarle el nombre de la categoría a cada producto
|
|
823
|
+
* @param products Lista de productos a los cuales se les va a agregar el nombre de la categoría
|
|
824
|
+
* @param categorias Lista de categorías disponibles
|
|
825
|
+
* @return Lista de productos con el nombre de la categoría agregado
|
|
826
|
+
*/
|
|
827
|
+
addNameCategoriaToProducts(products: ProductoDTO[], categorias: CategoriaDTO[]): ProductoDTO[];
|
|
828
|
+
mockCategoriaInflablesDTO(): CategoriaDTO[];
|
|
829
|
+
mockProductosInflablesDTO(): ProductoDTO[];
|
|
830
|
+
getProductsData(): {
|
|
831
|
+
id: string;
|
|
832
|
+
code: string;
|
|
833
|
+
name: string;
|
|
834
|
+
description: string;
|
|
835
|
+
image: string;
|
|
836
|
+
price: number;
|
|
837
|
+
category: string;
|
|
838
|
+
quantity: number;
|
|
839
|
+
inventoryStatus: string;
|
|
840
|
+
rating: number;
|
|
841
|
+
}[];
|
|
842
|
+
getProductsWithOrdersData(): {
|
|
843
|
+
id: string;
|
|
844
|
+
code: string;
|
|
845
|
+
name: string;
|
|
846
|
+
description: string;
|
|
847
|
+
image: string;
|
|
848
|
+
price: number;
|
|
849
|
+
category: string;
|
|
850
|
+
quantity: number;
|
|
851
|
+
inventoryStatus: string;
|
|
852
|
+
rating: number;
|
|
853
|
+
orders: {
|
|
854
|
+
id: string;
|
|
855
|
+
productCode: string;
|
|
856
|
+
date: string;
|
|
857
|
+
amount: number;
|
|
858
|
+
quantity: number;
|
|
859
|
+
customer: string;
|
|
860
|
+
status: string;
|
|
861
|
+
}[];
|
|
862
|
+
}[];
|
|
863
|
+
status: string[];
|
|
864
|
+
productNames: string[];
|
|
865
|
+
getProductsMini(): Promise<{
|
|
866
|
+
id: string;
|
|
867
|
+
code: string;
|
|
868
|
+
name: string;
|
|
869
|
+
description: string;
|
|
870
|
+
image: string;
|
|
871
|
+
price: number;
|
|
872
|
+
category: string;
|
|
873
|
+
quantity: number;
|
|
874
|
+
inventoryStatus: string;
|
|
875
|
+
rating: number;
|
|
876
|
+
}[]>;
|
|
877
|
+
getProductsSmall(): Promise<{
|
|
878
|
+
id: string;
|
|
879
|
+
code: string;
|
|
880
|
+
name: string;
|
|
881
|
+
description: string;
|
|
882
|
+
image: string;
|
|
883
|
+
price: number;
|
|
884
|
+
category: string;
|
|
885
|
+
quantity: number;
|
|
886
|
+
inventoryStatus: string;
|
|
887
|
+
rating: number;
|
|
888
|
+
}[]>;
|
|
889
|
+
getProducts(): {
|
|
890
|
+
id: string;
|
|
891
|
+
code: string;
|
|
892
|
+
name: string;
|
|
893
|
+
description: string;
|
|
894
|
+
image: string;
|
|
895
|
+
price: number;
|
|
896
|
+
category: string;
|
|
897
|
+
quantity: number;
|
|
898
|
+
inventoryStatus: string;
|
|
899
|
+
rating: number;
|
|
900
|
+
}[];
|
|
901
|
+
getProductsWithOrdersSmall(): Promise<{
|
|
902
|
+
id: string;
|
|
903
|
+
code: string;
|
|
904
|
+
name: string;
|
|
905
|
+
description: string;
|
|
906
|
+
image: string;
|
|
907
|
+
price: number;
|
|
908
|
+
category: string;
|
|
909
|
+
quantity: number;
|
|
910
|
+
inventoryStatus: string;
|
|
911
|
+
rating: number;
|
|
912
|
+
orders: {
|
|
913
|
+
id: string;
|
|
914
|
+
productCode: string;
|
|
915
|
+
date: string;
|
|
916
|
+
amount: number;
|
|
917
|
+
quantity: number;
|
|
918
|
+
customer: string;
|
|
919
|
+
status: string;
|
|
920
|
+
}[];
|
|
921
|
+
}[]>;
|
|
922
|
+
calculateDiscount(product: ProductoDTO): number;
|
|
923
|
+
generatePrduct(): Product;
|
|
924
|
+
generateId(): string;
|
|
925
|
+
generateName(): string;
|
|
926
|
+
generatePrice(): number;
|
|
927
|
+
generateQuantity(): number;
|
|
928
|
+
generateStatus(): string;
|
|
929
|
+
generateRating(): number;
|
|
930
|
+
/**
|
|
931
|
+
* Devuelve true si el producto no es nulo ni undefined
|
|
932
|
+
* @param product
|
|
933
|
+
* @returns boolean
|
|
934
|
+
*/
|
|
935
|
+
checkIsProductIsnotEmptyOrNull(product: ProductoDTO): boolean;
|
|
936
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductService, never>;
|
|
937
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
type ProductoView$1 = ProductoDTO & {
|
|
941
|
+
nombreCategoria?: string;
|
|
942
|
+
};
|
|
943
|
+
declare class DetalleCarrito1Component implements OnInit {
|
|
944
|
+
private productService;
|
|
945
|
+
addToCart: EventEmitter<{
|
|
946
|
+
product: ProductoDTO;
|
|
947
|
+
quantity: number;
|
|
948
|
+
}>;
|
|
949
|
+
componente: ComponentesDTO;
|
|
950
|
+
product: ProductoView$1;
|
|
951
|
+
isLogin: boolean;
|
|
952
|
+
discount: number;
|
|
953
|
+
currentQuantity: number;
|
|
954
|
+
selectedImageUrl: string;
|
|
955
|
+
showCartMessage: boolean;
|
|
956
|
+
isFavorite: boolean;
|
|
957
|
+
isPersonalizable: boolean;
|
|
958
|
+
constructor(productService: ProductService);
|
|
959
|
+
ngOnInit(): void;
|
|
960
|
+
/**
|
|
961
|
+
* Método para verificar si el producto existe y tiene imágenes
|
|
962
|
+
* Si el producto tiene imágenes, se selecciona la primera imagen por defecto
|
|
963
|
+
* y se calcula el descuento utilizando el servicio de productos.
|
|
964
|
+
*/
|
|
965
|
+
checkIsProductExists(): void;
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @param imageUrl URL de la imagen seleccionada
|
|
969
|
+
* Método para actualizar la imagen principal cuando se selecciona una miniatura
|
|
970
|
+
*/
|
|
971
|
+
updateMainImage(imageUrl: string): void;
|
|
972
|
+
toggleFavorite(): void;
|
|
973
|
+
getWhatsAppLink(): string;
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @param imageUrl URL de la imagen a verificar
|
|
977
|
+
* Método para verificar si una miniatura es la imagen activa
|
|
978
|
+
* @returns
|
|
979
|
+
*/
|
|
980
|
+
isActiveThumbnail(imageUrl: string): boolean;
|
|
981
|
+
onChildAddToCart(event: {
|
|
982
|
+
product: ProductoDTO;
|
|
983
|
+
quantity: number;
|
|
984
|
+
}): void;
|
|
985
|
+
navigateToProductDetail(): void;
|
|
986
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetalleCarrito1Component, never>;
|
|
987
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetalleCarrito1Component, "lib-detalle-carrito-1", never, { "product": { "alias": "product"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; "isPersonalizable": { "alias": "isPersonalizable"; "required": false; }; }, { "addToCart": "addToCart"; }, never, never, true, never>;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
type ProductoView = ProductoDTO & {
|
|
991
|
+
nombreCategoria?: string;
|
|
992
|
+
};
|
|
993
|
+
declare class CardProductos1Component implements OnInit, OnDestroy {
|
|
994
|
+
private currencyPipe;
|
|
995
|
+
private productService;
|
|
996
|
+
private router;
|
|
997
|
+
product: ProductoView;
|
|
998
|
+
addToCart: EventEmitter<{
|
|
999
|
+
product: ProductoDTO;
|
|
1000
|
+
quantity: number;
|
|
1001
|
+
}>;
|
|
1002
|
+
isLogin: boolean;
|
|
1003
|
+
detailRouteBase: string[];
|
|
1004
|
+
discount: number;
|
|
1005
|
+
currentImageIndex: number;
|
|
1006
|
+
shareMenuOpen: boolean;
|
|
1007
|
+
private readonly shareBaseUrl;
|
|
1008
|
+
autoSlideInterval: any;
|
|
1009
|
+
constructor(currencyPipe: CurrencyPipe, productService: ProductService, router: Router);
|
|
1010
|
+
/**
|
|
1011
|
+
* Inicializa el componente calculando el descuento y
|
|
1012
|
+
* arrancando el carrusel de imágenes si el producto es válido.
|
|
1013
|
+
*/
|
|
1014
|
+
ngOnInit(): void;
|
|
1015
|
+
/**
|
|
1016
|
+
* Limpia recursos al destruir el componente, deteniendo
|
|
1017
|
+
* el carrusel automático si está activo.
|
|
1018
|
+
*/
|
|
1019
|
+
ngOnDestroy(): void;
|
|
1020
|
+
/**
|
|
1021
|
+
* Devuelve la imagen actualmente seleccionada para el producto.
|
|
1022
|
+
* @returns ImagenDTO imagen activa
|
|
1023
|
+
*/
|
|
1024
|
+
get currentImage(): ImagenDTO;
|
|
1025
|
+
/**
|
|
1026
|
+
* Devuelve la URL de la imagen actualmente seleccionada.
|
|
1027
|
+
* @returns string URL de la imagen activa
|
|
1028
|
+
*/
|
|
1029
|
+
get currentImageUrl(): string;
|
|
1030
|
+
/**
|
|
1031
|
+
* Avanza a la siguiente imagen del carrusel, ciclando al inicio
|
|
1032
|
+
* cuando se alcanza el final.
|
|
1033
|
+
*/
|
|
1034
|
+
nextImage(): void;
|
|
1035
|
+
/**
|
|
1036
|
+
* Retrocede a la imagen anterior del carrusel, ciclando al final
|
|
1037
|
+
* cuando se está al inicio.
|
|
1038
|
+
*/
|
|
1039
|
+
prevImage(): void;
|
|
1040
|
+
/**
|
|
1041
|
+
* Selecciona la imagen por índice dentro de la lista de imágenes del producto.
|
|
1042
|
+
* @param index Índice de la imagen a mostrar
|
|
1043
|
+
*/
|
|
1044
|
+
selectImage(index: number): void;
|
|
1045
|
+
/**
|
|
1046
|
+
* Indica si el índice recibido corresponde a la miniatura activa.
|
|
1047
|
+
* @param index Índice de miniatura a verificar
|
|
1048
|
+
* @returns boolean `true` si es la miniatura activa
|
|
1049
|
+
*/
|
|
1050
|
+
isActiveThumbnail(index: number): boolean;
|
|
1051
|
+
/**
|
|
1052
|
+
* Inicia el carrusel automático de imágenes cambiando cada 3 segundos.
|
|
1053
|
+
*/
|
|
1054
|
+
startAutoSlide(): void;
|
|
1055
|
+
/**
|
|
1056
|
+
* Detiene el carrusel automático si está activo.
|
|
1057
|
+
*/
|
|
1058
|
+
stopAutoSlide(): void;
|
|
1059
|
+
/**
|
|
1060
|
+
* Emite el evento para agregar el producto al carrito con la cantidad indicada.
|
|
1061
|
+
* @param event Objeto con `{ product, quantity }`
|
|
1062
|
+
*/
|
|
1063
|
+
onAddToCart(event: {
|
|
1064
|
+
product: ProductoDTO;
|
|
1065
|
+
quantity: number;
|
|
1066
|
+
}): void;
|
|
1067
|
+
/**
|
|
1068
|
+
* Navega al detalle del producto construyendo la ruta a partir de `detailRouteBase`.
|
|
1069
|
+
* Acepta rutas absolutas (inician con `/`) o relativas y pasa el producto en `history.state`.
|
|
1070
|
+
*/
|
|
1071
|
+
navigateToProductDetail(): void;
|
|
1072
|
+
/**
|
|
1073
|
+
* Abre WhatsApp para compartir información del producto con un mensaje
|
|
1074
|
+
* basado en si el usuario tiene sesión iniciada.
|
|
1075
|
+
*/
|
|
1076
|
+
shareProductOnWhatsapp(): void;
|
|
1077
|
+
/**
|
|
1078
|
+
* Alterna la visibilidad del menú flotante de compartir en redes.
|
|
1079
|
+
*/
|
|
1080
|
+
toggleShareMenu(): void;
|
|
1081
|
+
/**
|
|
1082
|
+
* Acciones de compartir en redes sociales soportadas.
|
|
1083
|
+
* @param red Red a utilizar: `'whatsapp' | 'facebook' | 'instagram'`
|
|
1084
|
+
*/
|
|
1085
|
+
touchRedes(red: 'whatsapp' | 'facebook' | 'instagram'): void;
|
|
1086
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardProductos1Component, never>;
|
|
1087
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardProductos1Component, "lib-card-productos1", never, { "product": { "alias": "product"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; "detailRouteBase": { "alias": "detailRouteBase"; "required": false; }; }, { "addToCart": "addToCart"; }, never, never, true, never>;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare class SectionFiltersCategoriesProductos {
|
|
1091
|
+
componente: ComponentesDTO;
|
|
1092
|
+
categorias: CategoriaDTO[];
|
|
1093
|
+
titleComponent: string;
|
|
1094
|
+
categorySelected: EventEmitter<string>;
|
|
1095
|
+
selectedCategory: string;
|
|
1096
|
+
selectCategory(category: string): void;
|
|
1097
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionFiltersCategoriesProductos, never>;
|
|
1098
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionFiltersCategoriesProductos, "lib-section-filters-categories-productos", never, { "categorias": { "alias": "categorias"; "required": false; }; "titleComponent": { "alias": "titleComponent"; "required": false; }; }, { "categorySelected": "categorySelected"; }, never, never, true, never>;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
declare class Terminal implements AfterViewInit {
|
|
1102
|
+
code: string;
|
|
1103
|
+
language: string;
|
|
1104
|
+
codeElement: ElementRef;
|
|
1105
|
+
ngAfterViewInit(): void;
|
|
1106
|
+
copyCode(): void;
|
|
1107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Terminal, never>;
|
|
1108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Terminal, "lib-terminal", never, { "code": { "alias": "code"; "required": false; }; "language": { "alias": "language"; "required": false; }; }, {}, never, never, true, never>;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
declare class LoadingZigma {
|
|
1112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingZigma, never>;
|
|
1113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingZigma, "lib-loading-zigma", never, {}, {}, never, never, true, never>;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
declare class PaginatorPgComponent {
|
|
1117
|
+
componente: ComponentesDTO;
|
|
1118
|
+
data: unknown[];
|
|
1119
|
+
rows: number;
|
|
1120
|
+
rowsPerPageOptions: number[];
|
|
1121
|
+
showCurrentPageReport: boolean;
|
|
1122
|
+
currentPageReportTemplate: string;
|
|
1123
|
+
itemTemplate: TemplateRef<unknown>;
|
|
1124
|
+
first: number;
|
|
1125
|
+
onPage(event: {
|
|
1126
|
+
first?: number;
|
|
1127
|
+
rows?: number;
|
|
1128
|
+
page?: number;
|
|
1129
|
+
pageCount?: number;
|
|
1130
|
+
}): void;
|
|
1131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorPgComponent, never>;
|
|
1132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatorPgComponent, "lib-paginator-pg", never, { "data": { "alias": "data"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "rowsPerPageOptions": { "alias": "rowsPerPageOptions"; "required": false; }; "showCurrentPageReport": { "alias": "showCurrentPageReport"; "required": false; }; "currentPageReportTemplate": { "alias": "currentPageReportTemplate"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
declare class ShWatsButtonCard {
|
|
1136
|
+
private currencyPipe;
|
|
1137
|
+
product: ProductoDTO;
|
|
1138
|
+
isLogin: boolean;
|
|
1139
|
+
discount: number;
|
|
1140
|
+
constructor(currencyPipe: CurrencyPipe);
|
|
1141
|
+
shareProductOnWhatsapp(): void;
|
|
1142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShWatsButtonCard, never>;
|
|
1143
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShWatsButtonCard, "lib-sh-wats-button-card", never, { "product": { "alias": "product"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; "discount": { "alias": "discount"; "required": false; }; }, {}, never, never, true, never>;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
declare class ButtonAddToCard1 {
|
|
1147
|
+
product: ProductoDTO;
|
|
1148
|
+
addToCart: EventEmitter<{
|
|
1149
|
+
product: ProductoDTO;
|
|
1150
|
+
quantity: number;
|
|
1151
|
+
}>;
|
|
1152
|
+
componente: ComponentesDTO;
|
|
1153
|
+
showQuantitySelector: boolean;
|
|
1154
|
+
selectedQuantity: number;
|
|
1155
|
+
handleAddToCart(): void;
|
|
1156
|
+
incrementQuantity(): void;
|
|
1157
|
+
decrementQuantity(): void;
|
|
1158
|
+
private emitAddToCart;
|
|
1159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonAddToCard1, never>;
|
|
1160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonAddToCard1, "lib-button-add-to-card1", never, { "product": { "alias": "product"; "required": false; }; }, { "addToCart": "addToCart"; }, never, never, true, never>;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
declare class SectionAddCardsButtons {
|
|
1164
|
+
product: ProductoDTO;
|
|
1165
|
+
isLogin: boolean;
|
|
1166
|
+
onAddToCart(event: {
|
|
1167
|
+
product: ProductoDTO;
|
|
1168
|
+
quantity: number;
|
|
1169
|
+
}): void;
|
|
1170
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionAddCardsButtons, never>;
|
|
1171
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionAddCardsButtons, "lib-section-add-cards-buttons", never, { "product": { "alias": "product"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; }, {}, never, never, true, never>;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
declare class Ecommerce1 implements OnInit, OnDestroy, OnChanges {
|
|
1175
|
+
private router;
|
|
1176
|
+
private route;
|
|
1177
|
+
private renderer;
|
|
1178
|
+
private platformId;
|
|
1179
|
+
isLogin: boolean;
|
|
1180
|
+
DatosNegocio: BusinessDTO | null;
|
|
1181
|
+
Categorias: CategoriaDTO[];
|
|
1182
|
+
routePaths: {
|
|
1183
|
+
[key: string]: string;
|
|
1184
|
+
};
|
|
1185
|
+
headerMenuConfig: MenuConfig | null;
|
|
1186
|
+
whatsappButton: ElementRef;
|
|
1187
|
+
productGrid: ElementRef;
|
|
1188
|
+
mobileMenu: ElementRef;
|
|
1189
|
+
currentPage: string;
|
|
1190
|
+
showWhatsappButton: boolean;
|
|
1191
|
+
showWhatsappModal: boolean;
|
|
1192
|
+
whatsappModalShown: boolean;
|
|
1193
|
+
isMobileMenuOpen: boolean;
|
|
1194
|
+
private whatsappModalTimer?;
|
|
1195
|
+
private scrollListener?;
|
|
1196
|
+
private mouseOutListener?;
|
|
1197
|
+
private beforeUnloadListener?;
|
|
1198
|
+
private intersectionObserver?;
|
|
1199
|
+
constructor(router: Router, route: ActivatedRoute, renderer: Renderer2, platformId: Object);
|
|
1200
|
+
ngOnInit(): void;
|
|
1201
|
+
ngOnChanges(): void;
|
|
1202
|
+
ngAfterViewInit(): void;
|
|
1203
|
+
ngOnDestroy(): void;
|
|
1204
|
+
getItemsInHeaderMenu(): MenuItem[];
|
|
1205
|
+
private updateMenuConfig;
|
|
1206
|
+
navigateToPage(page: string): void;
|
|
1207
|
+
toggleMobileMenu(): void;
|
|
1208
|
+
setupWhatsappModal(): void;
|
|
1209
|
+
showWhatsappModalDialog(): void;
|
|
1210
|
+
openWhatsappChat(message?: string): void;
|
|
1211
|
+
onNewsletterSubmit(email: string): void;
|
|
1212
|
+
setupScrollListener(): void;
|
|
1213
|
+
private handleWhatsappButtonVisibility;
|
|
1214
|
+
initializeAnimations(): void;
|
|
1215
|
+
private observeAnimationElements;
|
|
1216
|
+
private animateTitle;
|
|
1217
|
+
onProductClick(product: any): void;
|
|
1218
|
+
onCategoryFilter(category: string): void;
|
|
1219
|
+
private cleanup;
|
|
1220
|
+
onLanguageChange(language: string): void;
|
|
1221
|
+
onSocialLogin(provider: 'google' | 'facebook'): void;
|
|
1222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Ecommerce1, never>;
|
|
1223
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Ecommerce1, "lib-ecommerce1", never, { "isLogin": { "alias": "isLogin"; "required": false; }; "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; "Categorias": { "alias": "Categorias"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; }, {}, never, never, true, never>;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
declare class HomeEcommerce1 implements OnInit, AfterViewInit, OnChanges {
|
|
1227
|
+
private el;
|
|
1228
|
+
componente: ComponentesDTO;
|
|
1229
|
+
isLogin: boolean;
|
|
1230
|
+
bussinesDTO: BusinessDTO;
|
|
1231
|
+
categorias: CategoriaDTO[];
|
|
1232
|
+
detailRouteBase: string[];
|
|
1233
|
+
filteredProducts: ProductoDTO[];
|
|
1234
|
+
productClicked: EventEmitter<ProductoDTO>;
|
|
1235
|
+
categorySelected: EventEmitter<string>;
|
|
1236
|
+
constructor(el: ElementRef);
|
|
1237
|
+
ngOnInit(): void;
|
|
1238
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1239
|
+
ngAfterViewInit(): void;
|
|
1240
|
+
/**
|
|
1241
|
+
* Inicializa la animación de scroll configurando los observadores necesarios.
|
|
1242
|
+
*/
|
|
1243
|
+
iniciarAnimacionScroll(): void;
|
|
1244
|
+
/**
|
|
1245
|
+
* Crea el IntersectionObserver para manejar la visibilidad de los elementos.
|
|
1246
|
+
* @returns Instancia de IntersectionObserver configurada.
|
|
1247
|
+
*/
|
|
1248
|
+
private createIntersectionObserver;
|
|
1249
|
+
/**
|
|
1250
|
+
* Selecciona los elementos a animar y los añade al observador.
|
|
1251
|
+
* @param observer El IntersectionObserver activo.
|
|
1252
|
+
*/
|
|
1253
|
+
private observeElements;
|
|
1254
|
+
/**
|
|
1255
|
+
* Realiza la observación inicial después de un breve retraso para asegurar el renderizado.
|
|
1256
|
+
* @param observer El IntersectionObserver activo.
|
|
1257
|
+
*/
|
|
1258
|
+
private initialObservation;
|
|
1259
|
+
/**
|
|
1260
|
+
* Configura un MutationObserver para detectar cambios en la paginación y re-observar elementos.
|
|
1261
|
+
* @param observer El IntersectionObserver activo.
|
|
1262
|
+
*/
|
|
1263
|
+
private setupMutationObserver;
|
|
1264
|
+
onProductClick(product: ProductoDTO): void;
|
|
1265
|
+
onAddToCart(event: any): void;
|
|
1266
|
+
onCategoryFilter(category: string): void;
|
|
1267
|
+
private applyCategoryFilter;
|
|
1268
|
+
private getAllProducts;
|
|
1269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomeEcommerce1, never>;
|
|
1270
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HomeEcommerce1, "lib-home-ecommerce1", never, { "isLogin": { "alias": "isLogin"; "required": false; }; "bussinesDTO": { "alias": "bussinesDTO"; "required": false; }; "categorias": { "alias": "categorias"; "required": false; }; "detailRouteBase": { "alias": "detailRouteBase"; "required": false; }; }, { "productClicked": "productClicked"; "categorySelected": "categorySelected"; }, never, never, true, never>;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
declare class LoginEcommerce1 {
|
|
1274
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginEcommerce1, never>;
|
|
1275
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginEcommerce1, "lib-login-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
declare class RegisterEcommerce1 {
|
|
1279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterEcommerce1, never>;
|
|
1280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RegisterEcommerce1, "lib-register-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
declare class MetaDataService {
|
|
1284
|
+
constructor();
|
|
1285
|
+
/**
|
|
1286
|
+
* Devuelve los metadatos completos para cualquier operación.
|
|
1287
|
+
* @param topic nombre del topic o ruta del topic kafka
|
|
1288
|
+
* @param proceso Operación: 'listar' | 'guardar' | 'eliminar'
|
|
1289
|
+
*/
|
|
1290
|
+
get(topic: string, proceso?: 'listar' | 'guardar' | 'eliminar'): {
|
|
1291
|
+
ip: string;
|
|
1292
|
+
dominio: string;
|
|
1293
|
+
usuario: string;
|
|
1294
|
+
idBusiness: string | number;
|
|
1295
|
+
idDatosUsuario: string;
|
|
1296
|
+
topic: string;
|
|
1297
|
+
proceso: "listar" | "guardar" | "eliminar";
|
|
1298
|
+
};
|
|
1299
|
+
getIdBusinessFromSession(): string | number;
|
|
1300
|
+
getIdDatosUsuarioFromSession(): string;
|
|
1301
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetaDataService, never>;
|
|
1302
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MetaDataService>;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
declare class DetalleProductoPageLib implements OnInit {
|
|
1306
|
+
private route;
|
|
1307
|
+
private productSvc;
|
|
1308
|
+
private meta;
|
|
1309
|
+
private store;
|
|
1310
|
+
/**
|
|
1311
|
+
* Producto actual a mostrar en el detalle.
|
|
1312
|
+
* Puede llegar vía `@Input` o a través del `history.state`/ruta.
|
|
1313
|
+
*/
|
|
1314
|
+
product: ProductoDTO | undefined;
|
|
1315
|
+
/**
|
|
1316
|
+
* Indica si el usuario está autenticado para habilitar acciones/visualizaciones para agregar al carrito.
|
|
1317
|
+
*/
|
|
1318
|
+
isLogin: boolean;
|
|
1319
|
+
/**
|
|
1320
|
+
* Lista de categorías disponibles. Se usa para enriquecer los productos
|
|
1321
|
+
* relacionados con el nombre de la categoría cuando el store no lo provee.
|
|
1322
|
+
*/
|
|
1323
|
+
categorias: CategoriaDTO[];
|
|
1324
|
+
/**
|
|
1325
|
+
* Productos relacionados (misma categoría) que se mostrarán en el slider.
|
|
1326
|
+
*/
|
|
1327
|
+
products: ProductoDTO[];
|
|
1328
|
+
/**
|
|
1329
|
+
* Configuración de breakpoints para el slider de productos relacionados.
|
|
1330
|
+
* - 768px: 2 productos por vista
|
|
1331
|
+
* - 1024px: 3 productos por vista
|
|
1332
|
+
*/
|
|
1333
|
+
readonly breakpoints: {
|
|
1334
|
+
768: {
|
|
1335
|
+
slidesPerView: number;
|
|
1336
|
+
spaceBetween: number;
|
|
1337
|
+
};
|
|
1338
|
+
1024: {
|
|
1339
|
+
slidesPerView: number;
|
|
1340
|
+
spaceBetween: number;
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
/** Número base de productos por vista (móvil). */
|
|
1344
|
+
readonly slidesPerViewBase = 1;
|
|
1345
|
+
/** Espacio base entre slides (px). */
|
|
1346
|
+
readonly spaceBetweenBase = 12;
|
|
1347
|
+
constructor(route: ActivatedRoute, productSvc: ProductService, meta: MetaDataService, store: Store);
|
|
1348
|
+
/**
|
|
1349
|
+
* - Registra los web components de Swiper (una sola vez).
|
|
1350
|
+
* - Resuelve el producto a mostrar y carga los relacionados.
|
|
1351
|
+
*/
|
|
1352
|
+
ngOnInit(): void;
|
|
1353
|
+
/**
|
|
1354
|
+
* Obtiene el producto a mostrar:
|
|
1355
|
+
* 1. Prioriza `history.state` (navegación con estado).
|
|
1356
|
+
* 2. Si no está, intenta resolver por `id` en la URL:
|
|
1357
|
+
* - Busca en el store NGXS
|
|
1358
|
+
* - Si no existe, usa un mock de productos.
|
|
1359
|
+
* Finalmente, carga los productos relacionados.
|
|
1360
|
+
*/
|
|
1361
|
+
getData(): void;
|
|
1362
|
+
/**
|
|
1363
|
+
* Resuelve el `id` del producto desde diferentes ubicaciones en la ruta:
|
|
1364
|
+
* - `paramMap`: `id` o `productId`
|
|
1365
|
+
* - `queryParamMap`: `id`
|
|
1366
|
+
* - Último segmento de la URL
|
|
1367
|
+
*/
|
|
1368
|
+
private getProductIdFromRoute;
|
|
1369
|
+
/**
|
|
1370
|
+
* Busca un producto por `id` en el store NGXS.
|
|
1371
|
+
* @param id Identificador del producto
|
|
1372
|
+
* @returns Producto si existe, `undefined` en caso contrario
|
|
1373
|
+
*/
|
|
1374
|
+
private getFromStoreById;
|
|
1375
|
+
/**
|
|
1376
|
+
* Construye la lista de productos relacionados por categoría.
|
|
1377
|
+
* - Obtiene todos los productos desde el store o mock si está vacío.
|
|
1378
|
+
* - Filtra por `idCategoria` y excluye el producto actual.
|
|
1379
|
+
* - Enriquece los productos con `nombreCategoria` si es necesario.
|
|
1380
|
+
*/
|
|
1381
|
+
private loadRelatedProducts;
|
|
1382
|
+
/**
|
|
1383
|
+
* Obtiene categorías desde distintas fuentes (prioridad):
|
|
1384
|
+
* 1. `@Input categorias`
|
|
1385
|
+
* 2. Store NGXS (`categoriaproducto.dataList`)
|
|
1386
|
+
* 3. Mock proporcionado por `ProductService`
|
|
1387
|
+
*/
|
|
1388
|
+
private getCategoriasFromStoreOrInputOrMock;
|
|
1389
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetalleProductoPageLib, never>;
|
|
1390
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetalleProductoPageLib, "lib-product-detail-lib", never, { "product": { "alias": "product"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; "categorias": { "alias": "categorias"; "required": false; }; }, {}, never, never, true, never>;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
declare class ButtonsSocialmediaLogin {
|
|
1394
|
+
isRegistering: boolean;
|
|
1395
|
+
isLogout: boolean;
|
|
1396
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonsSocialmediaLogin, never>;
|
|
1397
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonsSocialmediaLogin, "lib-buttons-socialmedia-login", never, { "isRegistering": { "alias": "isRegistering"; "required": false; }; "isLogout": { "alias": "isLogout"; "required": false; }; }, {}, never, never, true, never>;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
declare class InputsLoginEcommerce1 {
|
|
1401
|
+
remember: boolean;
|
|
1402
|
+
onRememberChange(event: any): void;
|
|
1403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputsLoginEcommerce1, never>;
|
|
1404
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputsLoginEcommerce1, "lib-inputs-login-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
declare class InputsRegisterEcommerce1 {
|
|
1408
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputsRegisterEcommerce1, never>;
|
|
1409
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputsRegisterEcommerce1, "lib-inputs-register-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
declare class HeaderTopEcommerce1 {
|
|
1413
|
+
componente: ComponentesDTO;
|
|
1414
|
+
whatsappLink: string;
|
|
1415
|
+
facebookLink: string;
|
|
1416
|
+
instagramLink: string;
|
|
1417
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTopEcommerce1, never>;
|
|
1418
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderTopEcommerce1, "lib-header-top-ecommerce1", never, { "whatsappLink": { "alias": "whatsappLink"; "required": false; }; "facebookLink": { "alias": "facebookLink"; "required": false; }; "instagramLink": { "alias": "instagramLink"; "required": false; }; }, {}, never, never, true, never>;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
declare class FooterEcommerce1 {
|
|
1422
|
+
componente: ComponentesDTO;
|
|
1423
|
+
DatosNegocio: BusinessDTO | null;
|
|
1424
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterEcommerce1, never>;
|
|
1425
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterEcommerce1, "lib-footer-ecommerce1", never, { "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; }, {}, never, never, true, never>;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
declare class BarFloatEcommerce1 {
|
|
1429
|
+
componente: ComponentesDTO;
|
|
1430
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarFloatEcommerce1, never>;
|
|
1431
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarFloatEcommerce1, "lib-bar-float-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
declare class FormAuthEccomerce1 {
|
|
1435
|
+
isRegistering: boolean;
|
|
1436
|
+
isLogout: boolean;
|
|
1437
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAuthEccomerce1, never>;
|
|
1438
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAuthEccomerce1, "lib-form-auth-eccomerce1", never, { "isRegistering": { "alias": "isRegistering"; "required": false; }; "isLogout": { "alias": "isLogout"; "required": false; }; }, {}, never, never, true, never>;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
declare class HeaderEcommerce1Component implements OnInit {
|
|
1442
|
+
private translate;
|
|
1443
|
+
private menuCtrl;
|
|
1444
|
+
private router;
|
|
1445
|
+
componente: ComponentesDTO;
|
|
1446
|
+
DatosNegocio: BusinessDTO | null;
|
|
1447
|
+
logoText: string;
|
|
1448
|
+
logoUrl: string | null;
|
|
1449
|
+
logoAlt: string;
|
|
1450
|
+
menuConfig: MenuConfig | null;
|
|
1451
|
+
seleccionada: string;
|
|
1452
|
+
islogin: boolean;
|
|
1453
|
+
defaultMenuConfig: MenuConfig;
|
|
1454
|
+
langs: string[];
|
|
1455
|
+
private touchStartX;
|
|
1456
|
+
private touchEndX;
|
|
1457
|
+
private touchStartY;
|
|
1458
|
+
private lastTouchX;
|
|
1459
|
+
private isSwiping;
|
|
1460
|
+
private readonly EDGE_ZONE;
|
|
1461
|
+
private readonly OPEN_THRESHOLD;
|
|
1462
|
+
private readonly CLOSE_THRESHOLD;
|
|
1463
|
+
private readonly VERTICAL_TOLERANCE;
|
|
1464
|
+
constructor(translate: TranslateService, menuCtrl: MenuController, router: Router);
|
|
1465
|
+
currentMenu: MenuConfig;
|
|
1466
|
+
isMobileMenuOpen: boolean;
|
|
1467
|
+
isCartOpen: boolean;
|
|
1468
|
+
cartItems: Array<{
|
|
1469
|
+
id: number;
|
|
1470
|
+
name: string;
|
|
1471
|
+
qty: number;
|
|
1472
|
+
price: number;
|
|
1473
|
+
}>;
|
|
1474
|
+
ngOnInit(): void;
|
|
1475
|
+
/**
|
|
1476
|
+
* Maneja el evento `touchstart` del documento.
|
|
1477
|
+
* Guarda coordenadas iniciales y habilita el modo swipe si el toque inicia
|
|
1478
|
+
* cerca del borde izquierdo o si el menú ya está abierto.
|
|
1479
|
+
* @param e Evento táctil del documento.
|
|
1480
|
+
*/
|
|
1481
|
+
onTouchStart(e: TouchEvent): void;
|
|
1482
|
+
/**
|
|
1483
|
+
* Maneja el evento `touchend` del documento.
|
|
1484
|
+
* Calcula desplazamiento total y decide abrir/cerrar mediante `handleSwipeGesture`.
|
|
1485
|
+
* @param e Evento táctil del documento.
|
|
1486
|
+
*/
|
|
1487
|
+
onTouchEnd(e: TouchEvent): void;
|
|
1488
|
+
/**
|
|
1489
|
+
* Maneja el evento `touchmove` del documento.
|
|
1490
|
+
* Detecta desplazamiento horizontal significativo con tolerancia vertical.
|
|
1491
|
+
* Abre/cierra el menú cuando supera los umbrales definidos.
|
|
1492
|
+
* @param e Evento táctil del documento.
|
|
1493
|
+
*/
|
|
1494
|
+
onTouchMove(e: TouchEvent): void;
|
|
1495
|
+
/**
|
|
1496
|
+
* Evalúa el desplazamiento entre `touchstart` y `touchend` para decidir
|
|
1497
|
+
* apertura o cierre del menú móvil.
|
|
1498
|
+
*/
|
|
1499
|
+
handleSwipeGesture(): void;
|
|
1500
|
+
/**
|
|
1501
|
+
* Abre el `Drawer` del menú móvil y asegura el scroll al inicio del contenido.
|
|
1502
|
+
* También fuerza el scroll de la página al top para evitar solapamientos.
|
|
1503
|
+
*/
|
|
1504
|
+
openMenu(): void;
|
|
1505
|
+
closeMenu(): void;
|
|
1506
|
+
/** Abre el `Drawer` del carrito. */
|
|
1507
|
+
openCart(): void;
|
|
1508
|
+
closeCart(): void;
|
|
1509
|
+
/**
|
|
1510
|
+
* Calcula el total del carrito sumando `price * qty`.
|
|
1511
|
+
* @returns Total acumulado.
|
|
1512
|
+
*/
|
|
1513
|
+
getCartTotal(): number;
|
|
1514
|
+
goToCheckout(): void;
|
|
1515
|
+
toggleMobileMenu(): void;
|
|
1516
|
+
cambiaLang(event: any): void;
|
|
1517
|
+
/**
|
|
1518
|
+
* Configura idiomas disponibles y selecciona automáticamente
|
|
1519
|
+
* según el lenguaje del navegador (`en`|`es`).
|
|
1520
|
+
*/
|
|
1521
|
+
configLangs(): void;
|
|
1522
|
+
/**
|
|
1523
|
+
* Retorna ítems visibles no relacionados con autenticación
|
|
1524
|
+
* para mostrarlos en la zona izquierda del menú principal.
|
|
1525
|
+
* @returns Array de `MenuItem` para el menú izquierdo.
|
|
1526
|
+
*/
|
|
1527
|
+
getLeftMenuItems(): MenuItem[];
|
|
1528
|
+
/** Retorna los ítems de autenticación (login/register) para la zona derecha. */
|
|
1529
|
+
getRightMenuItems(): MenuItem[];
|
|
1530
|
+
/** Retorna todos los ítems visibles para el menú móvil. */
|
|
1531
|
+
getMobileMenuItems(): MenuItem[];
|
|
1532
|
+
/**
|
|
1533
|
+
* Maneja clics en ítems del menú:
|
|
1534
|
+
* - Previene navegación si el ítem está deshabilitado.
|
|
1535
|
+
* - Para `nosotros` y `categorias`, desplaza a la sección correspondiente
|
|
1536
|
+
* o navega con fragment si no se está en Home.
|
|
1537
|
+
* - Cierra el menú móvil tras la acción.
|
|
1538
|
+
*/
|
|
1539
|
+
onMenuItemClick(item: MenuItem, event?: Event): void;
|
|
1540
|
+
/** Determina si la ruta actual corresponde al Home. */
|
|
1541
|
+
private isHomeRoute;
|
|
1542
|
+
/**
|
|
1543
|
+
* Gestiona la navegación/scroll hacia una sección identificada por `anchorId`.
|
|
1544
|
+
* Si se está en Home y la sección existe, hace `scrollIntoView` suave.
|
|
1545
|
+
* En caso contrario, navega a Home con `fragment`.
|
|
1546
|
+
*/
|
|
1547
|
+
private handleSectionClick;
|
|
1548
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderEcommerce1Component, never>;
|
|
1549
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderEcommerce1Component, "lib-header-ecommerce1", never, { "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; "logoText": { "alias": "logoText"; "required": false; }; "logoUrl": { "alias": "logoUrl"; "required": false; }; "logoAlt": { "alias": "logoAlt"; "required": false; }; "menuConfig": { "alias": "menuConfig"; "required": false; }; "islogin": { "alias": "islogin"; "required": false; }; }, {}, never, never, true, never>;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
declare class HeroSectionEcommerce1 implements OnInit {
|
|
1553
|
+
ngOnInit(): void;
|
|
1554
|
+
componente: ComponentesDTO;
|
|
1555
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeroSectionEcommerce1, never>;
|
|
1556
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeroSectionEcommerce1, "lib-hero-section-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
declare class SectionImagesInstagramEcommerce1 implements OnInit, OnDestroy {
|
|
1560
|
+
private el;
|
|
1561
|
+
componente: ComponentesDTO;
|
|
1562
|
+
private observer?;
|
|
1563
|
+
private cardsObserver?;
|
|
1564
|
+
constructor(el: ElementRef);
|
|
1565
|
+
ngOnInit(): void;
|
|
1566
|
+
ngOnDestroy(): void;
|
|
1567
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionImagesInstagramEcommerce1, never>;
|
|
1568
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionImagesInstagramEcommerce1, "lib-section-images-instagram-ecommerce1", never, {}, {}, never, never, true, never>;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
declare class PrimegModule {
|
|
1572
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrimegModule, never>;
|
|
1573
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PrimegModule, never, [typeof i1.CommonModule, typeof i2.ImageModule, typeof i3.ButtonModule, typeof i4.CardModule, typeof i5.AutoCompleteModule, typeof i6.CascadeSelectModule, typeof i7.CheckboxModule, typeof i8.EditorModule, typeof i9.MenuModule, typeof i10.TableModule, typeof i11.PaginatorModule, typeof i12.InputTextModule, typeof i13.PasswordModule, typeof i14.RippleModule, typeof i15.ToastModule, typeof i16.ToolbarModule, typeof i17.RatingModule, typeof i18.TextareaModule, typeof i19.SelectModule, typeof i20.RadioButtonModule, typeof i21.InputNumberModule, typeof i22.DialogModule, typeof i23.TagModule, typeof i24.InputIconModule, typeof i25.IconFieldModule, typeof i26.ConfirmDialogModule, typeof i27.TieredMenuModule, typeof i28.FileUploadModule, typeof i29.DataViewModule, typeof i30.StepperModule, typeof i31.DrawerModule], [typeof i3.ButtonModule, typeof i4.CardModule, typeof i5.AutoCompleteModule, typeof i6.CascadeSelectModule, typeof i7.CheckboxModule, typeof i8.EditorModule, typeof i9.MenuModule, typeof i10.TableModule, typeof i11.PaginatorModule, typeof i12.InputTextModule, typeof i13.PasswordModule, typeof i14.RippleModule, typeof i15.ToastModule, typeof i16.ToolbarModule, typeof i17.RatingModule, typeof i18.TextareaModule, typeof i19.SelectModule, typeof i20.RadioButtonModule, typeof i21.InputNumberModule, typeof i22.DialogModule, typeof i23.TagModule, typeof i24.InputIconModule, typeof i25.IconFieldModule, typeof i26.ConfirmDialogModule, typeof i27.TieredMenuModule, typeof i28.FileUploadModule, typeof i29.DataViewModule, typeof i2.ImageModule, typeof i30.StepperModule, typeof i31.DrawerModule]>;
|
|
1574
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PrimegModule>;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
declare class LibConfigModule {
|
|
1578
|
+
static forRoot(config: LibCommonConfig): ModuleWithProviders<LibConfigModule>;
|
|
1579
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibConfigModule, never>;
|
|
1580
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LibConfigModule, never, never, never>;
|
|
1581
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LibConfigModule>;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
declare function createTranslateLoader(): TranslateHttpLoader;
|
|
1585
|
+
declare class CoreModuleLib {
|
|
1586
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModuleLib, never>;
|
|
1587
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModuleLib, never, [typeof i1.CommonModule, typeof i2$1.TranslateModule], [typeof i3$1.ReactiveFormsModule, typeof i2$1.TranslateModule, typeof i4$1.NgxsModule, typeof i5$1.NgxsReduxDevtoolsPluginModule, typeof i6$1.NgxsLoggerPluginModule, typeof i7$1.MatTableModule, typeof i8$1.MatFormFieldModule, typeof i9$1.MatInputModule, typeof i10$1.MatSelectModule, typeof i11$1.MatButtonModule, typeof i12$1.MatIconModule, typeof i13$1.MatGridListModule, typeof i14$1.MatPaginatorModule, typeof i15$1.MatSidenavModule, typeof i16$1.MatToolbarModule, typeof i17$1.MatListModule, typeof i18$1.MatCardModule]>;
|
|
1588
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModuleLib>;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
declare class CategoriasProductosService extends JuliaoSystemCrudHttpService<CategoriaDTO, CategoriaDTO> {
|
|
1592
|
+
private configService;
|
|
1593
|
+
tipoCategorias: TipoCategoriaDTO[];
|
|
1594
|
+
imagenCategoria1: ImagenDTO;
|
|
1595
|
+
imagenCategoria2: ImagenDTO;
|
|
1596
|
+
categoriaDTO1: CategoriaDTO;
|
|
1597
|
+
categoriaDTO2: CategoriaDTO;
|
|
1598
|
+
categoriasMock: CategoriaDTO[];
|
|
1599
|
+
constructor(http: HttpClient, configService: LibConfigService);
|
|
1600
|
+
getCategoriasMock(): Observable<CategoriaDTO[]>;
|
|
1601
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CategoriasProductosService, never>;
|
|
1602
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CategoriasProductosService>;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
declare class GenericCrudHttpService<T> {
|
|
1606
|
+
protected http: HttpClient;
|
|
1607
|
+
private config;
|
|
1608
|
+
private meta;
|
|
1609
|
+
private endpointKey?;
|
|
1610
|
+
protected basePathUrl: string;
|
|
1611
|
+
constructor(http: HttpClient, config: LibConfigService, meta: MetaDataService, endpointKey?: string | undefined);
|
|
1612
|
+
private buildHeaders;
|
|
1613
|
+
all(queryParams?: Record<string, any>): Observable<PlantillaResponse<T>>;
|
|
1614
|
+
add(payload: T, topic: string, queryParams?: Record<string, any>): Observable<PlantillaResponse<T>>;
|
|
1615
|
+
update(payload: T & {
|
|
1616
|
+
id: any;
|
|
1617
|
+
}, queryParams?: QueryParams): Observable<PlantillaResponse<T>>;
|
|
1618
|
+
delete(id: string, queryParams?: Record<string, any>): Observable<PlantillaResponse<T>>;
|
|
1619
|
+
getMockData(): T[];
|
|
1620
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudHttpService<any>, [null, null, null, { optional: true; }]>;
|
|
1621
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GenericCrudHttpService<any>>;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
interface GenericCrudActions<RQ> {
|
|
1625
|
+
All: new (payload: any, filters?: Map<string, string>) => any;
|
|
1626
|
+
Add: new (payload: RQ, queryParams: any) => any;
|
|
1627
|
+
Update: new (payload: RQ, queryParams: any) => any;
|
|
1628
|
+
Delete: new (queryParams: any) => any;
|
|
1629
|
+
LoadMock: new () => any;
|
|
1630
|
+
}
|
|
1631
|
+
declare abstract class GenericCrudState<RES, RQ> {
|
|
1632
|
+
protected readonly service: GenericCrudHttpService<RES>;
|
|
1633
|
+
protected readonly actions: GenericCrudActions<RQ>;
|
|
1634
|
+
protected constructor(service: GenericCrudHttpService<RES>, actions: GenericCrudActions<RQ>);
|
|
1635
|
+
static getResponse<RES>(state: PlantillaResponse<RES>): PlantillaResponse<RES>;
|
|
1636
|
+
/**
|
|
1637
|
+
* Selector factory para obtener un elemento por id desde el estado genérico.
|
|
1638
|
+
* Uso: store.selectSnapshot(YourState.selectById(id))
|
|
1639
|
+
*/
|
|
1640
|
+
static selectById<RES>(id: string | number): (response: PlantillaResponse<RES>) => RES | undefined;
|
|
1641
|
+
All({ setState }: StateContext<PlantillaResponse<RES>>, action: any): rxjs.Observable<PlantillaResponse<RES>>;
|
|
1642
|
+
add(ctx: StateContext<PlantillaResponse<RES>>, action: any): rxjs.Observable<PlantillaResponse<RES>>;
|
|
1643
|
+
update(ctx: StateContext<PlantillaResponse<RES>>, action: any): rxjs.Observable<PlantillaResponse<RES>>;
|
|
1644
|
+
delete(ctx: StateContext<PlantillaResponse<RES>>, action: any): rxjs.Observable<PlantillaResponse<RES>>;
|
|
1645
|
+
loadMock(ctx: StateContext<PlantillaResponse<RES>>): void;
|
|
1646
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericCrudState<any, any>, never>;
|
|
1647
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GenericCrudState<any, any>>;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
declare const ProductosActions: {
|
|
1651
|
+
All: {
|
|
1652
|
+
new (payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams, filters?: Map<string, string> | undefined): {
|
|
1653
|
+
payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1654
|
+
filters?: Map<string, string> | undefined;
|
|
1655
|
+
};
|
|
1656
|
+
readonly type: string;
|
|
1657
|
+
};
|
|
1658
|
+
Add: {
|
|
1659
|
+
new (payload: ProductoDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1660
|
+
payload: ProductoDTO;
|
|
1661
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1662
|
+
};
|
|
1663
|
+
readonly type: string;
|
|
1664
|
+
};
|
|
1665
|
+
Update: {
|
|
1666
|
+
new (payload: ProductoDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1667
|
+
payload: ProductoDTO;
|
|
1668
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1669
|
+
};
|
|
1670
|
+
readonly type: string;
|
|
1671
|
+
};
|
|
1672
|
+
Delete: {
|
|
1673
|
+
new (queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1674
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1675
|
+
};
|
|
1676
|
+
readonly type: string;
|
|
1677
|
+
};
|
|
1678
|
+
LoadMock: {
|
|
1679
|
+
new (): {};
|
|
1680
|
+
readonly type: string;
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
declare class ProductosState extends GenericCrudState<ProductoDTO, ProductoDTO> {
|
|
1684
|
+
private http;
|
|
1685
|
+
private config;
|
|
1686
|
+
private meta;
|
|
1687
|
+
private productSvc;
|
|
1688
|
+
constructor(http: HttpClient, config: LibConfigService, meta: MetaDataService, productSvc: ProductService);
|
|
1689
|
+
static getProductos(state: PlantillaResponse<ProductoDTO>): ProductoDTO[] | undefined;
|
|
1690
|
+
/**
|
|
1691
|
+
* Selector factory para obtener productos por id de categoría.
|
|
1692
|
+
* @param idCategoria
|
|
1693
|
+
* @returns
|
|
1694
|
+
*/
|
|
1695
|
+
static selectByCategoriaId(idCategoria: string): (response: PlantillaResponse<ProductoDTO>) => ProductoDTO[];
|
|
1696
|
+
all(ctx: StateContext<PlantillaResponse<ProductoDTO>>, action: any): rxjs.Observable<PlantillaResponse<ProductoDTO>>;
|
|
1697
|
+
add(ctx: StateContext<PlantillaResponse<ProductoDTO>>, action: any): rxjs.Observable<PlantillaResponse<ProductoDTO>>;
|
|
1698
|
+
update(ctx: StateContext<PlantillaResponse<ProductoDTO>>, action: any): rxjs.Observable<PlantillaResponse<ProductoDTO>>;
|
|
1699
|
+
delete(ctx: StateContext<PlantillaResponse<ProductoDTO>>, action: any): rxjs.Observable<PlantillaResponse<ProductoDTO>>;
|
|
1700
|
+
loadMock(ctx: StateContext<PlantillaResponse<ProductoDTO>>): void;
|
|
1701
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductosState, never>;
|
|
1702
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductosState>;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
declare const MonedaActions: {
|
|
1706
|
+
All: {
|
|
1707
|
+
new (payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams, filters?: Map<string, string> | undefined): {
|
|
1708
|
+
payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1709
|
+
filters?: Map<string, string> | undefined;
|
|
1710
|
+
};
|
|
1711
|
+
readonly type: string;
|
|
1712
|
+
};
|
|
1713
|
+
Add: {
|
|
1714
|
+
new (payload: ProductoDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1715
|
+
payload: ProductoDTO;
|
|
1716
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1717
|
+
};
|
|
1718
|
+
readonly type: string;
|
|
1719
|
+
};
|
|
1720
|
+
Update: {
|
|
1721
|
+
new (payload: ProductoDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1722
|
+
payload: ProductoDTO;
|
|
1723
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1724
|
+
};
|
|
1725
|
+
readonly type: string;
|
|
1726
|
+
};
|
|
1727
|
+
Delete: {
|
|
1728
|
+
new (queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1729
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1730
|
+
};
|
|
1731
|
+
readonly type: string;
|
|
1732
|
+
};
|
|
1733
|
+
LoadMock: {
|
|
1734
|
+
new (): {};
|
|
1735
|
+
readonly type: string;
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
declare class MonedaState extends GenericCrudState<MonedaDTO, MonedaDTO> {
|
|
1739
|
+
private http;
|
|
1740
|
+
private config;
|
|
1741
|
+
private meta;
|
|
1742
|
+
constructor(http: HttpClient, config: LibConfigService, meta: MetaDataService);
|
|
1743
|
+
static getProductos(state: PlantillaResponse<MonedaDTO>): MonedaDTO[] | undefined;
|
|
1744
|
+
all(ctx: StateContext<PlantillaResponse<MonedaDTO>>, action: any): rxjs.Observable<PlantillaResponse<MonedaDTO>>;
|
|
1745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonedaState, never>;
|
|
1746
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MonedaState>;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
declare class BusinessState extends GenericCrudState<BusinessDTO, BusinessDTO> {
|
|
1750
|
+
constructor(http: HttpClient, config: LibConfigService, meta: MetaDataService);
|
|
1751
|
+
loadMockBusiness(ctx: StateContext<PlantillaResponse<BusinessDTO>>): void;
|
|
1752
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BusinessState, never>;
|
|
1753
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BusinessState>;
|
|
1754
|
+
}
|
|
1755
|
+
declare const BusinessActions: {
|
|
1756
|
+
All: {
|
|
1757
|
+
new (payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams, filters?: Map<string, string> | undefined): {
|
|
1758
|
+
payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1759
|
+
filters?: Map<string, string> | undefined;
|
|
1760
|
+
};
|
|
1761
|
+
readonly type: string;
|
|
1762
|
+
};
|
|
1763
|
+
Add: {
|
|
1764
|
+
new (payload: BusinessDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1765
|
+
payload: BusinessDTO;
|
|
1766
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1767
|
+
};
|
|
1768
|
+
readonly type: string;
|
|
1769
|
+
};
|
|
1770
|
+
Update: {
|
|
1771
|
+
new (payload: BusinessDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1772
|
+
payload: BusinessDTO;
|
|
1773
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1774
|
+
};
|
|
1775
|
+
readonly type: string;
|
|
1776
|
+
};
|
|
1777
|
+
Delete: {
|
|
1778
|
+
new (queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1779
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1780
|
+
};
|
|
1781
|
+
readonly type: string;
|
|
1782
|
+
};
|
|
1783
|
+
LoadMock: {
|
|
1784
|
+
new (): {};
|
|
1785
|
+
readonly type: string;
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
declare const getUsers: {
|
|
1790
|
+
new (payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams, filters?: Map<string, string> | undefined): {
|
|
1791
|
+
payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1792
|
+
filters?: Map<string, string> | undefined;
|
|
1793
|
+
};
|
|
1794
|
+
readonly type: string;
|
|
1795
|
+
};
|
|
1796
|
+
declare const AddUser: {
|
|
1797
|
+
new (payload: DatesUserDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1798
|
+
payload: DatesUserDTO;
|
|
1799
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1800
|
+
};
|
|
1801
|
+
readonly type: string;
|
|
1802
|
+
};
|
|
1803
|
+
declare const UpdateUser: {
|
|
1804
|
+
new (payload: DatesUserDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1805
|
+
payload: DatesUserDTO;
|
|
1806
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1807
|
+
};
|
|
1808
|
+
readonly type: string;
|
|
1809
|
+
};
|
|
1810
|
+
declare const DeleteUser: {
|
|
1811
|
+
new (queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1812
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1813
|
+
};
|
|
1814
|
+
readonly type: string;
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
declare const CategoriaproductoActions: {
|
|
1818
|
+
All: {
|
|
1819
|
+
new (payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams, filters?: Map<string, string> | undefined): {
|
|
1820
|
+
payload: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1821
|
+
filters?: Map<string, string> | undefined;
|
|
1822
|
+
};
|
|
1823
|
+
readonly type: string;
|
|
1824
|
+
};
|
|
1825
|
+
Add: {
|
|
1826
|
+
new (payload: CategoriaDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1827
|
+
payload: CategoriaDTO;
|
|
1828
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1829
|
+
};
|
|
1830
|
+
readonly type: string;
|
|
1831
|
+
};
|
|
1832
|
+
Update: {
|
|
1833
|
+
new (payload: CategoriaDTO, queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1834
|
+
payload: CategoriaDTO;
|
|
1835
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1836
|
+
};
|
|
1837
|
+
readonly type: string;
|
|
1838
|
+
};
|
|
1839
|
+
Delete: {
|
|
1840
|
+
new (queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams): {
|
|
1841
|
+
queryParams: juliaositembackenexpress_dist_utils_queryParams.QueryParams;
|
|
1842
|
+
};
|
|
1843
|
+
readonly type: string;
|
|
1844
|
+
};
|
|
1845
|
+
LoadMock: {
|
|
1846
|
+
new (): {};
|
|
1847
|
+
readonly type: string;
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
declare class CategoriaProductoState extends GenericCrudState<CategoriaDTO, CategoriaDTO> {
|
|
1851
|
+
private http;
|
|
1852
|
+
private config;
|
|
1853
|
+
private meta;
|
|
1854
|
+
private productSvc;
|
|
1855
|
+
constructor(http: HttpClient, config: LibConfigService, meta: MetaDataService, productSvc: ProductService);
|
|
1856
|
+
static getProductos(state: PlantillaResponse<CategoriaDTO>): CategoriaDTO[] | undefined;
|
|
1857
|
+
all(ctx: StateContext<PlantillaResponse<CategoriaDTO>>, action: any): rxjs.Observable<PlantillaResponse<CategoriaDTO>>;
|
|
1858
|
+
loadMock(ctx: StateContext<PlantillaResponse<CategoriaDTO>>): void;
|
|
1859
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CategoriaProductoState, never>;
|
|
1860
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CategoriaProductoState>;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
declare const ecomerce1Routes: Routes;
|
|
1864
|
+
|
|
1865
|
+
export { AddUser, AppFooter, AppTopbar, BarFloatEcommerce1, BusinessActions, BusinessState, ButtonActionDelete1Component, ButtonActionEdit1Component, ButtonAdd1Component, ButtonAddToCard1, ButtonsSocialmediaLogin, CardProductos1Component, CategoriaProductoState, CategoriaproductoActions, CategoriasProductosService, CommonLibComponent, CommonLibService, CoreModuleLib, Crud, CrudDialog1Component, CrudDocComponent, CustomizerComponent, DASHBOARD3_MENU_CONFIG, DaskBoard3, DeleteUser, DetalleCarrito1Component, DetalleProductoPageLib, DynamicEntity, DynamicFieldService, DynamicMenu1Component, DynamicMenuService, Ecommerce1, FooterEcommerce1, FormAuthEccomerce1, GenericCrudState, HeaderEcommerce1Component, HeaderTopEcommerce1, HeroSectionEcommerce1, HomeEcommerce1, Index1Component, Index2Component, InputsLoginEcommerce1, InputsRegisterEcommerce1, LIB_COMMON_CONFIG, LibConfigModule, LibConfigService, LoadingZigma, LoginEcommerce1, MenuComponent, MenuItem1Component, MenuManager, MetaDataService, MonedaActions, MonedaState, Notfound, PaginatorPgComponent, PrimegModule, ProductDialog1Component, ProductService, ProductosActions, ProductosState, RegisterEcommerce1, SectionAddCardsButtons, SectionFiltersCategoriesProductos, SectionImagesInstagramEcommerce1, SelectInput1Component, ShWatsButtonCard, Tabla1Component, Terminal, UpdateUser, createTranslateLoader, ecomerce1Routes, getUsers };
|
|
1866
|
+
export type { Accessory, CreateFieldConfig, DocProp, GenerateFieldsConfig, GenericCrudActions, Inflatable, LibCommonConfig, MenuService, Product, Project };
|