ng-easycommerce-v18 0.1.3 → 0.1.4

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.
@@ -55,6 +55,7 @@ export declare class CoreConstantsService {
55
55
  * @returns
56
56
  */
57
57
  mediaBannerUrl: () => string;
58
+ mediaStoreUrl: () => string;
58
59
  /**
59
60
  * Retorna `true` si la vista es mobile, `false` caso contrario.
60
61
  * @returns {boolean}
@@ -21,6 +21,7 @@ export declare class LoginFormEcComponent {
21
21
  */
22
22
  loading: boolean;
23
23
  loggedIn: boolean;
24
+ inCart: boolean;
24
25
  /**
25
26
  * Signal que guarda el formulario de login.
26
27
  */
@@ -38,5 +39,5 @@ export declare class LoginFormEcComponent {
38
39
  */
39
40
  redirectHome(): void;
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<LoginFormEcComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<LoginFormEcComponent, "app-login-form-ec", never, { "redirect": { "alias": "redirect"; "required": false; }; "redirectTo": { "alias": "redirectTo"; "required": false; }; }, { "ready": "ready"; }, never, never, true, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoginFormEcComponent, "app-login-form-ec", never, { "redirect": { "alias": "redirect"; "required": false; }; "redirectTo": { "alias": "redirectTo"; "required": false; }; "inCart": { "alias": "inCart"; "required": false; }; }, { "ready": "ready"; }, never, never, true, never>;
42
43
  }
@@ -30,3 +30,4 @@ export * from './share-ec/share-ec.component';
30
30
  export * from './reviews-ec/reviews-ec.component';
31
31
  export * from './reviews-form-ec/reviews-form-ec.component';
32
32
  export * from './section-container-ec/section-container-ec.component';
33
+ export * from './stores-ec/stores-ec.component';
@@ -0,0 +1,62 @@
1
+ import { DomSanitizer } from '@angular/platform-browser';
2
+ import { ComponentHelper } from '../../classes/component-helper';
3
+ import { CoreConstantsService } from "../../constants";
4
+ import { StoresService } from '../../ec-services/stores.service';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import { Store } from '../../interfaces';
7
+ import * as i0 from "@angular/core";
8
+ export declare class StoresEcComponent extends ComponentHelper {
9
+ storesService: StoresService;
10
+ consts: CoreConstantsService;
11
+ protected sanitizer: DomSanitizer;
12
+ stores: BehaviorSubject<Store[]>;
13
+ filterStores: Store[] | null;
14
+ storesAll: Store[] | null;
15
+ exclusiveStores: Store[] | null;
16
+ imageMap: boolean;
17
+ urlmap: import("@angular/platform-browser").SafeResourceUrl;
18
+ provinces: never[];
19
+ private url;
20
+ private map;
21
+ private markers;
22
+ private locations;
23
+ ultimoElementoSeleccionado: any;
24
+ constructor(storesService: StoresService, consts: CoreConstantsService, sanitizer: DomSanitizer);
25
+ ngOnInit(): void;
26
+ updateMap(url: string): void;
27
+ /**
28
+ * @description Obtiene todas la provincias que figuren en el arreglo
29
+ * @param stores Arreglo de tiendas
30
+ * @returns {Array} Arreglo de provincias
31
+ */
32
+ getProvices: (stores: Store[]) => any[];
33
+ /**
34
+ * @description Retorna un arreglo de objetos formado por las claves
35
+ * "province"(contiene un objeto provincia) y
36
+ * "stores" (contiene un arreglo de tiendas pertenecientes a la provincia)
37
+ * @param stores Opcional, arreglo de tiendas a la que se le quiere aplicar la division por provincia
38
+ * @returns {Array<{"province", "stores"}>}
39
+ */
40
+ getStoresByProvinces: (stores?: Store[]) => {
41
+ province: any;
42
+ stores: Store[];
43
+ }[];
44
+ /**
45
+ * @description Retorna las tiendas con/sin retiro en el local
46
+ * @param stores Opcional, arreglo de tiendas
47
+ * @param cond Opcional, Si es "true" obtiene las tiendas con retiro local caso contrario "false"
48
+ * @returns {Array<Store>} Arreglo de Store
49
+ */
50
+ getPickupStores: (stores?: Store[], cond?: Boolean) => Store[];
51
+ /**
52
+ * @description Metodo que devuelve las tiendas que NO son exclusivas.
53
+ * @returns {Array<Store>} Arreglo de Store
54
+ */
55
+ getNonExclusiveStores: () => Store[];
56
+ selectChange: (select: string) => boolean;
57
+ initMap(): void;
58
+ showStoreOnMap(storeCode: string): void;
59
+ stopBounce(): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoresEcComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoresEcComponent, "app-store-ec", never, {}, {}, never, never, true, never>;
62
+ }
@@ -9,6 +9,7 @@ export * from './analytics';
9
9
  export * from './currency';
10
10
  export * from './deserializable';
11
11
  export * from './storage';
12
+ export * from './store';
12
13
  export * from './filter';
13
14
  export * from './pagination';
14
15
  export * from './coupon';
@@ -14,4 +14,8 @@ export interface Store {
14
14
  imageName?: string;
15
15
  exclusive?: boolean;
16
16
  pickupStore?: boolean;
17
+ latitude?: number;
18
+ longitude?: number;
19
+ whatsapp?: string;
20
+ instagram?: string;
17
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-easycommerce-v18",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"