lib-common-angular 0.0.15 → 0.0.16
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/fesm2022/lib-common-angular.mjs +193 -76
- package/fesm2022/lib-common-angular.mjs.map +1 -1
- package/index.d.ts +32 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter, AfterViewInit, Type, ViewContainerRef, OnDestroy, TemplateRef, InjectionToken, OnChanges, SimpleChanges, Renderer2, ElementRef, ModuleWithProviders } from '@angular/core';
|
|
3
3
|
import { MessageService, ConfirmationService, MenuItem as MenuItem$1 } from 'primeng/api';
|
|
4
|
-
import { DynamicField, FieldType, ExcelExportConfig, ComponentesDTO, ProductoDTO, CategoriaDTO, MenuConfig, MenuItem, MenuEvent,
|
|
4
|
+
import { DynamicField, FieldType, ExcelExportConfig, ComponentesDTO, BusinessDTO, ProductoDTO, CategoriaDTO, MenuConfig, MenuItem, MenuEvent, ImagenDTO, TipoCategoriaDTO, MonedaDTO, DatesUserDTO } from '@juliaosistem/core-dtos';
|
|
5
5
|
export { DynamicField, MenuConfig, MenuItem } from '@juliaosistem/core-dtos';
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
@@ -65,6 +65,18 @@ import * as i16$1 from '@angular/material/toolbar';
|
|
|
65
65
|
import * as i17$1 from '@angular/material/list';
|
|
66
66
|
import * as i18$1 from '@angular/material/card';
|
|
67
67
|
|
|
68
|
+
declare global {
|
|
69
|
+
interface Window {
|
|
70
|
+
gtag?: (...args: unknown[]) => void;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
declare class GoogleService {
|
|
74
|
+
reportConversion(sendTo: string, url?: string): void;
|
|
75
|
+
reportAnalyticsEvent(eventName: string, params?: Record<string, unknown>): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleService, never>;
|
|
77
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GoogleService>;
|
|
78
|
+
}
|
|
79
|
+
|
|
68
80
|
declare class CommonLibService {
|
|
69
81
|
constructor();
|
|
70
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonLibService, never>;
|
|
@@ -246,6 +258,9 @@ declare class CrudDocComponent implements AfterViewInit {
|
|
|
246
258
|
}
|
|
247
259
|
|
|
248
260
|
declare class Carruselt1 implements OnInit, OnDestroy {
|
|
261
|
+
private googleService;
|
|
262
|
+
DatosNegocio: BusinessDTO | null;
|
|
263
|
+
constructor(googleService: GoogleService);
|
|
249
264
|
slides: {
|
|
250
265
|
id: number;
|
|
251
266
|
tag: string;
|
|
@@ -304,7 +319,7 @@ declare class Carruselt1 implements OnInit, OnDestroy {
|
|
|
304
319
|
* **/
|
|
305
320
|
navigateToWhatsapp(slide: any): void;
|
|
306
321
|
static ɵfac: i0.ɵɵFactoryDeclaration<Carruselt1, never>;
|
|
307
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Carruselt1, "lib-carruselt-1", never, {}, {}, never, never, true, never>;
|
|
322
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Carruselt1, "lib-carruselt-1", never, { "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; }, {}, never, never, true, never>;
|
|
308
323
|
}
|
|
309
324
|
|
|
310
325
|
declare class PaginatorPgComponent {
|
|
@@ -559,13 +574,15 @@ declare class ProductService extends JuliaoSystemCrudHttpService<ProductoDTO, Pr
|
|
|
559
574
|
|
|
560
575
|
declare class ShWatsButtonCard {
|
|
561
576
|
private productSvc;
|
|
577
|
+
private googleService;
|
|
562
578
|
product: ProductoDTO;
|
|
579
|
+
DatosNegocio: BusinessDTO | null;
|
|
563
580
|
isLogin: boolean;
|
|
564
581
|
discount: number;
|
|
565
|
-
constructor(productSvc: ProductService);
|
|
582
|
+
constructor(productSvc: ProductService, googleService: GoogleService);
|
|
566
583
|
shareProductOnWhatsapp(): void;
|
|
567
584
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShWatsButtonCard, never>;
|
|
568
|
-
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>;
|
|
585
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShWatsButtonCard, "lib-sh-wats-button-card", never, { "product": { "alias": "product"; "required": false; }; "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; "discount": { "alias": "discount"; "required": false; }; }, {}, never, never, true, never>;
|
|
569
586
|
}
|
|
570
587
|
|
|
571
588
|
declare class SelectInput1Component {
|
|
@@ -1062,6 +1079,7 @@ type ProductoView$1 = ProductoDTO & {
|
|
|
1062
1079
|
};
|
|
1063
1080
|
declare class DetalleCarrito1Component implements OnInit {
|
|
1064
1081
|
private productService;
|
|
1082
|
+
private googleService;
|
|
1065
1083
|
addToCart: EventEmitter<{
|
|
1066
1084
|
product: ProductoDTO;
|
|
1067
1085
|
quantity: number;
|
|
@@ -1076,7 +1094,8 @@ declare class DetalleCarrito1Component implements OnInit {
|
|
|
1076
1094
|
isFavorite: boolean;
|
|
1077
1095
|
isPersonalizable: boolean;
|
|
1078
1096
|
shareMenuOpen: boolean;
|
|
1079
|
-
|
|
1097
|
+
DatosNegocio: BusinessDTO | null;
|
|
1098
|
+
constructor(productService: ProductService, googleService: GoogleService);
|
|
1080
1099
|
ngOnInit(): void;
|
|
1081
1100
|
/**
|
|
1082
1101
|
* Método para verificar si el producto existe y tiene imágenes
|
|
@@ -1107,7 +1126,7 @@ declare class DetalleCarrito1Component implements OnInit {
|
|
|
1107
1126
|
}): void;
|
|
1108
1127
|
navigateToProductDetail(): void;
|
|
1109
1128
|
static ɵfac: i0.ɵɵFactoryDeclaration<DetalleCarrito1Component, never>;
|
|
1110
|
-
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>;
|
|
1129
|
+
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; }; "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; }, { "addToCart": "addToCart"; }, never, never, true, never>;
|
|
1111
1130
|
}
|
|
1112
1131
|
|
|
1113
1132
|
type ProductoView = ProductoDTO & {
|
|
@@ -1116,19 +1135,21 @@ type ProductoView = ProductoDTO & {
|
|
|
1116
1135
|
declare class CardProductos1Component implements OnInit, OnDestroy {
|
|
1117
1136
|
private productService;
|
|
1118
1137
|
private router;
|
|
1138
|
+
private googleService;
|
|
1119
1139
|
product: ProductoView;
|
|
1120
1140
|
addToCart: EventEmitter<{
|
|
1121
1141
|
product: ProductoDTO;
|
|
1122
1142
|
quantity: number;
|
|
1123
1143
|
}>;
|
|
1124
1144
|
isLogin: boolean;
|
|
1145
|
+
DatosNegocio: BusinessDTO | null;
|
|
1125
1146
|
detailRouteBase: string[];
|
|
1126
1147
|
discount: number;
|
|
1127
1148
|
currentImageIndex: number;
|
|
1128
1149
|
shareMenuOpen: boolean;
|
|
1129
1150
|
private readonly shareBaseUrl;
|
|
1130
1151
|
autoSlideInterval: any;
|
|
1131
|
-
constructor(productService: ProductService, router: Router);
|
|
1152
|
+
constructor(productService: ProductService, router: Router, googleService: GoogleService);
|
|
1132
1153
|
/**
|
|
1133
1154
|
* Inicializa el componente calculando el descuento y
|
|
1134
1155
|
* arrancando el carrusel de imágenes si el producto es válido.
|
|
@@ -1214,7 +1235,7 @@ declare class CardProductos1Component implements OnInit, OnDestroy {
|
|
|
1214
1235
|
*/
|
|
1215
1236
|
touchRedes(red: 'whatsapp' | 'facebook' | 'instagram'): void;
|
|
1216
1237
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardProductos1Component, never>;
|
|
1217
|
-
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>;
|
|
1238
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardProductos1Component, "lib-card-productos1", never, { "product": { "alias": "product"; "required": false; }; "isLogin": { "alias": "isLogin"; "required": false; }; "DatosNegocio": { "alias": "DatosNegocio"; "required": false; }; "detailRouteBase": { "alias": "detailRouteBase"; "required": false; }; }, { "addToCart": "addToCart"; }, never, never, true, never>;
|
|
1218
1239
|
}
|
|
1219
1240
|
|
|
1220
1241
|
declare class SectionFiltersCategoriesProductos {
|
|
@@ -1275,6 +1296,7 @@ declare class Ecommerce1 implements OnInit, OnDestroy, OnChanges {
|
|
|
1275
1296
|
private router;
|
|
1276
1297
|
private route;
|
|
1277
1298
|
private renderer;
|
|
1299
|
+
private googleService;
|
|
1278
1300
|
private platformId;
|
|
1279
1301
|
isLogin: boolean;
|
|
1280
1302
|
DatosNegocio: BusinessDTO | null;
|
|
@@ -1296,7 +1318,7 @@ declare class Ecommerce1 implements OnInit, OnDestroy, OnChanges {
|
|
|
1296
1318
|
private mouseOutListener?;
|
|
1297
1319
|
private beforeUnloadListener?;
|
|
1298
1320
|
private intersectionObserver?;
|
|
1299
|
-
constructor(router: Router, route: ActivatedRoute, renderer: Renderer2, platformId: Object);
|
|
1321
|
+
constructor(router: Router, route: ActivatedRoute, renderer: Renderer2, googleService: GoogleService, platformId: Object);
|
|
1300
1322
|
ngOnInit(): void;
|
|
1301
1323
|
ngOnChanges(): void;
|
|
1302
1324
|
ngAfterViewInit(): void;
|
|
@@ -1978,5 +2000,5 @@ declare class CategoriaProductoState extends GenericCrudState<CategoriaDTO, Cate
|
|
|
1978
2000
|
|
|
1979
2001
|
declare const ecomerce1Routes: Routes;
|
|
1980
2002
|
|
|
1981
|
-
export { AddUser, AppFooter, AppTopbar, BarFloatEcommerce1, BusinessActions, BusinessState, ButtonActionDelete1Component, ButtonActionEdit1Component, ButtonAdd1Component, ButtonAddToCard1, ButtonsSocialmediaLogin, CardProductos1Component, Carruselt1, 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 };
|
|
2003
|
+
export { AddUser, AppFooter, AppTopbar, BarFloatEcommerce1, BusinessActions, BusinessState, ButtonActionDelete1Component, ButtonActionEdit1Component, ButtonAdd1Component, ButtonAddToCard1, ButtonsSocialmediaLogin, CardProductos1Component, Carruselt1, 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, GoogleService, 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 };
|
|
1982
2004
|
export type { Accessory, CreateFieldConfig, DocProp, GenerateFieldsConfig, GenericCrudActions, Inflatable, LibCommonConfig, MenuService, Product, Project };
|