@esolve/ng-esolve-connect 0.42.0 → 0.44.0
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/esm2022/lib/account/esolve-account.service.mjs +5 -6
- package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +5 -6
- package/esm2022/lib/auth/esolve-auth.service.mjs +5 -6
- package/esm2022/lib/banners/esolve-banner.service.mjs +5 -6
- package/esm2022/lib/cart/esolve-cart.service.mjs +5 -6
- package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +5 -6
- package/esm2022/lib/core/esolve-config.service.mjs +5 -6
- package/esm2022/lib/coupons/esolve-coupons.service.mjs +5 -6
- package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +5 -6
- package/esm2022/lib/images/directives/cdn-src.directive.mjs +5 -6
- package/esm2022/lib/locations/esolve-locations.service.mjs +5 -6
- package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +5 -6
- package/esm2022/lib/menu/esolve-menu.service.mjs +5 -6
- package/esm2022/lib/news/esolve-news.service.mjs +5 -6
- package/esm2022/lib/ng-esolve-connect.module.mjs +6 -7
- package/esm2022/lib/payment/esolve-payment.service.mjs +5 -6
- package/esm2022/lib/ranges/esolve-ranges.service.mjs +5 -6
- package/esm2022/lib/session/esolve-session-metadata.service.mjs +5 -6
- package/esm2022/lib/session/esolve-session.service.mjs +5 -6
- package/esm2022/lib/shared/assets/esolve-assets.service.mjs +43 -13
- package/esm2022/lib/shared/assets/esolve-media-asset-options.interface.mjs +2 -0
- package/esm2022/lib/shared/assets/index.mjs +2 -1
- package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +5 -6
- package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +5 -6
- package/esm2022/lib/shared/errors/esolve-http-error.model.mjs +3 -3
- package/esm2022/lib/shared/geocoder/esolve-geocoder.service.mjs +5 -6
- package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +5 -6
- package/esm2022/lib/shared/seo/esolve-seo.service.mjs +5 -6
- package/esm2022/lib/shipping/esolve-shipping.service.mjs +5 -6
- package/esm2022/lib/specials/esolve-specials.service.mjs +5 -6
- package/esm2022/lib/stock/classes/esolve-linked-stock-item.model.mjs +3 -3
- package/esm2022/lib/stock/classes/esolve-media-stock-item.model.mjs +3 -3
- package/esm2022/lib/stock/classes/esolve-stock-item-base.model.mjs +18 -1
- package/esm2022/lib/stock/esolve-stock.service.mjs +5 -6
- package/esm2022/lib/stock/interfaces/esolve-linked-stock-record.interface.mjs +1 -1
- package/esm2022/lib/stock/interfaces/esolve-stock-base-record.interface.mjs +1 -1
- package/esm2022/lib/stock/types/esolve-media-stock-item-record.type.mjs +1 -1
- package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +5 -6
- package/esm2022/lib/tags/esolve-tags.service.mjs +5 -6
- package/esm2022/lib/topics/esolve-topic.service.mjs +5 -6
- package/esm2022/lib/transactions/esolve-transactions.service.mjs +5 -6
- package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +5 -6
- package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +5 -6
- package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +5 -6
- package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +6 -7
- package/esm2022/media/lib/services/esolve-media-layout.service.mjs +5 -6
- package/esm2022/media/lib/services/esolve-media.service.mjs +5 -6
- package/esm2022/notifications/lib/ng-esolve-connect-notifications.module.mjs +6 -7
- package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +5 -6
- package/esm2022/survey/lib/ng-esolve-connect-survey.module.mjs +6 -7
- package/esm2022/survey/lib/services/esolve-survey.service.mjs +5 -6
- package/fesm2022/esolve-ng-esolve-connect-media.mjs +16 -16
- package/fesm2022/esolve-ng-esolve-connect-media.mjs.map +1 -1
- package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +7 -7
- package/fesm2022/esolve-ng-esolve-connect-notifications.mjs.map +1 -1
- package/fesm2022/esolve-ng-esolve-connect-survey.mjs +7 -7
- package/fesm2022/esolve-ng-esolve-connect-survey.mjs.map +1 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs +158 -111
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/shared/assets/esolve-assets.service.d.ts +3 -0
- package/lib/shared/assets/esolve-media-asset-options.interface.d.ts +5 -0
- package/lib/shared/assets/index.d.ts +1 -0
- package/lib/shared/errors/esolve-http-error.model.d.ts +1 -1
- package/lib/stock/classes/esolve-linked-stock-item.model.d.ts +2 -2
- package/lib/stock/classes/esolve-media-stock-item.model.d.ts +2 -2
- package/lib/stock/classes/esolve-stock-item-base.model.d.ts +11 -1
- package/lib/stock/interfaces/esolve-linked-stock-record.interface.d.ts +2 -4
- package/lib/stock/interfaces/esolve-stock-base-record.interface.d.ts +1 -0
- package/lib/stock/types/esolve-media-stock-item-record.type.d.ts +2 -2
- package/package.json +1 -1
|
@@ -47,10 +47,10 @@ class EsolveConfigService {
|
|
|
47
47
|
this.cdn = config.cdn;
|
|
48
48
|
this.error_image_path = config.error_image_path;
|
|
49
49
|
}
|
|
50
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
51
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveConfigService, deps: [{ token: ESOLVE_CONNECT_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
51
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveConfigService, providedIn: 'root' }); }
|
|
52
52
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveConfigService, decorators: [{
|
|
54
54
|
type: Injectable,
|
|
55
55
|
args: [{
|
|
56
56
|
providedIn: 'root',
|
|
@@ -61,9 +61,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImpor
|
|
|
61
61
|
}] }]; } });
|
|
62
62
|
|
|
63
63
|
class EsolveHttpError extends Error {
|
|
64
|
-
constructor(type, code, message
|
|
64
|
+
constructor(type, code, message) {
|
|
65
65
|
// Pass remaining arguments (including vendor specific ones) to parent constructor
|
|
66
|
-
super(
|
|
66
|
+
super(message);
|
|
67
67
|
this.http_error = true;
|
|
68
68
|
// Maintains proper stack trace for where our error was thrown (only available on V8)
|
|
69
69
|
if (Error.captureStackTrace) {
|
|
@@ -154,10 +154,10 @@ class EsolveErrorHandlerService {
|
|
|
154
154
|
parseDeleteError(result) {
|
|
155
155
|
return new EsolveHttpError('error', result.code, result.message);
|
|
156
156
|
}
|
|
157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
158
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
158
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveErrorHandlerService, providedIn: 'root' }); }
|
|
159
159
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveErrorHandlerService, decorators: [{
|
|
161
161
|
type: Injectable,
|
|
162
162
|
args: [{
|
|
163
163
|
providedIn: 'root',
|
|
@@ -180,10 +180,10 @@ class EsolveCookieService {
|
|
|
180
180
|
delete(name, path, domain, secure) {
|
|
181
181
|
this.cookieService.delete(name, path, domain, secure);
|
|
182
182
|
}
|
|
183
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
184
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCookieService, deps: [{ token: i1.SsrCookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
184
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCookieService, providedIn: 'root' }); }
|
|
185
185
|
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCookieService, decorators: [{
|
|
187
187
|
type: Injectable,
|
|
188
188
|
args: [{
|
|
189
189
|
providedIn: 'root',
|
|
@@ -374,10 +374,10 @@ class EsolveSessionService {
|
|
|
374
374
|
}
|
|
375
375
|
localStorage.removeItem(this.storage_key);
|
|
376
376
|
}
|
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
378
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
377
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSessionService, deps: [{ token: PLATFORM_ID }, { token: EsolveConfigService }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
378
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSessionService, providedIn: 'root' }); }
|
|
379
379
|
}
|
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSessionService, decorators: [{
|
|
381
381
|
type: Injectable,
|
|
382
382
|
args: [{
|
|
383
383
|
providedIn: 'root',
|
|
@@ -425,10 +425,10 @@ class EsolveResponseHandlerService {
|
|
|
425
425
|
}
|
|
426
426
|
return resultHandler(response);
|
|
427
427
|
}
|
|
428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
429
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveResponseHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveResponseHandlerService, providedIn: 'root' }); }
|
|
430
430
|
}
|
|
431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveResponseHandlerService, decorators: [{
|
|
432
432
|
type: Injectable,
|
|
433
433
|
args: [{
|
|
434
434
|
providedIn: 'root',
|
|
@@ -488,10 +488,10 @@ class EsolveSessionMetadataService {
|
|
|
488
488
|
return this.errorHandler.handleHttpDeleteError('delete-sessions-metadata', errorRes);
|
|
489
489
|
}));
|
|
490
490
|
}
|
|
491
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
492
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
491
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSessionMetadataService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
492
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSessionMetadataService, providedIn: 'root' }); }
|
|
493
493
|
}
|
|
494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSessionMetadataService, decorators: [{
|
|
495
495
|
type: Injectable,
|
|
496
496
|
args: [{
|
|
497
497
|
providedIn: 'root',
|
|
@@ -711,10 +711,10 @@ class EsolveAuthService {
|
|
|
711
711
|
}
|
|
712
712
|
return throwError(() => error);
|
|
713
713
|
}
|
|
714
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
715
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAuthService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
715
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAuthService, providedIn: 'root' }); }
|
|
716
716
|
}
|
|
717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAuthService, decorators: [{
|
|
718
718
|
type: Injectable,
|
|
719
719
|
args: [{
|
|
720
720
|
providedIn: 'root',
|
|
@@ -752,10 +752,10 @@ class EsolveAuthInterceptorService {
|
|
|
752
752
|
}
|
|
753
753
|
return next.handle(req);
|
|
754
754
|
}
|
|
755
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
756
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
755
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAuthInterceptorService, deps: [{ token: EsolveConfigService }, { token: EsolveSessionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
756
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAuthInterceptorService }); }
|
|
757
757
|
}
|
|
758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAuthInterceptorService, decorators: [{
|
|
759
759
|
type: Injectable
|
|
760
760
|
}], ctorParameters: function () { return [{ type: EsolveConfigService }, { type: EsolveSessionService }]; } });
|
|
761
761
|
|
|
@@ -790,11 +790,11 @@ class NgEsolveConnectModule {
|
|
|
790
790
|
providers,
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
794
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
795
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
793
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgEsolveConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
794
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.1", ngImport: i0, type: NgEsolveConnectModule, imports: [CommonModule, HttpClientModule] }); }
|
|
795
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgEsolveConnectModule, providers: [SsrCookieService], imports: [CommonModule, HttpClientModule] }); }
|
|
796
796
|
}
|
|
797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: NgEsolveConnectModule, decorators: [{
|
|
798
798
|
type: NgModule,
|
|
799
799
|
args: [{
|
|
800
800
|
declarations: [],
|
|
@@ -905,10 +905,10 @@ class EsolveCdnSrcDirective {
|
|
|
905
905
|
isImage(el) {
|
|
906
906
|
return 'loading' in this.el.nativeElement;
|
|
907
907
|
}
|
|
908
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
909
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
908
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCdnSrcDirective, deps: [{ token: i0.ElementRef }, { token: EsolveConfigService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
909
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.1", type: EsolveCdnSrcDirective, isStandalone: true, selector: "[eslvCdnSrc]", inputs: { src: ["eslvCdnSrc", "src"] }, host: { listeners: { "error": "onError()" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
910
910
|
}
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCdnSrcDirective, decorators: [{
|
|
912
912
|
type: Directive,
|
|
913
913
|
args: [{
|
|
914
914
|
selector: '[eslvCdnSrc]',
|
|
@@ -1236,10 +1236,10 @@ class EsolveSeoService {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
return pageSeo;
|
|
1238
1238
|
}
|
|
1239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1240
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSeoService, deps: [{ token: EsolveConfigService }, { token: i2.Title }, { token: i2.Meta }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1240
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSeoService, providedIn: 'root' }); }
|
|
1241
1241
|
}
|
|
1242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSeoService, decorators: [{
|
|
1243
1243
|
type: Injectable,
|
|
1244
1244
|
args: [{
|
|
1245
1245
|
providedIn: 'root',
|
|
@@ -1326,10 +1326,10 @@ class EsolveGeocoderService {
|
|
|
1326
1326
|
const geocode_result = new EsolveGeocodeResult(record.formatted_address, geocode_address, geocode_coords, record.status, record.checksum, record.cached);
|
|
1327
1327
|
return geocode_result;
|
|
1328
1328
|
}
|
|
1329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1330
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveGeocoderService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1330
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveGeocoderService, providedIn: 'root' }); }
|
|
1331
1331
|
}
|
|
1332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveGeocoderService, decorators: [{
|
|
1333
1333
|
type: Injectable,
|
|
1334
1334
|
args: [{
|
|
1335
1335
|
providedIn: 'root',
|
|
@@ -1530,10 +1530,10 @@ class EsolveCategoryTreeService {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
return null;
|
|
1532
1532
|
}
|
|
1533
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1534
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1533
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCategoryTreeService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1534
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCategoryTreeService, providedIn: 'root' }); }
|
|
1535
1535
|
}
|
|
1536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCategoryTreeService, decorators: [{
|
|
1537
1537
|
type: Injectable,
|
|
1538
1538
|
args: [{
|
|
1539
1539
|
providedIn: 'root',
|
|
@@ -1652,10 +1652,10 @@ class EsolveManufacturersService {
|
|
|
1652
1652
|
processManufacturer(record) {
|
|
1653
1653
|
return new EsolveManufacturer(record);
|
|
1654
1654
|
}
|
|
1655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1656
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveManufacturersService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveManufacturersService, providedIn: 'root' }); }
|
|
1657
1657
|
}
|
|
1658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveManufacturersService, decorators: [{
|
|
1659
1659
|
type: Injectable,
|
|
1660
1660
|
args: [{
|
|
1661
1661
|
providedIn: 'root',
|
|
@@ -1772,10 +1772,10 @@ class EsolveRangesService {
|
|
|
1772
1772
|
processRange(record) {
|
|
1773
1773
|
return new EsolveRange(record);
|
|
1774
1774
|
}
|
|
1775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1776
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1775
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveRangesService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1776
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveRangesService, providedIn: 'root' }); }
|
|
1777
1777
|
}
|
|
1778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveRangesService, decorators: [{
|
|
1779
1779
|
type: Injectable,
|
|
1780
1780
|
args: [{
|
|
1781
1781
|
providedIn: 'root',
|
|
@@ -1878,10 +1878,10 @@ class EsolveTagsService {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
return tags;
|
|
1880
1880
|
}
|
|
1881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1882
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTagsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1882
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTagsService, providedIn: 'root' }); }
|
|
1883
1883
|
}
|
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTagsService, decorators: [{
|
|
1885
1885
|
type: Injectable,
|
|
1886
1886
|
args: [{
|
|
1887
1887
|
providedIn: 'root',
|
|
@@ -1943,10 +1943,10 @@ class EsolveTopicService {
|
|
|
1943
1943
|
}
|
|
1944
1944
|
return topics;
|
|
1945
1945
|
}
|
|
1946
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1947
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTopicService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1947
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTopicService, providedIn: 'root' }); }
|
|
1948
1948
|
}
|
|
1949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTopicService, decorators: [{
|
|
1950
1950
|
type: Injectable,
|
|
1951
1951
|
args: [{
|
|
1952
1952
|
providedIn: 'root',
|
|
@@ -2050,14 +2050,34 @@ class EsolveAssetsService {
|
|
|
2050
2050
|
if (response.records === undefined) {
|
|
2051
2051
|
throw response;
|
|
2052
2052
|
}
|
|
2053
|
-
const
|
|
2054
|
-
|
|
2055
|
-
|
|
2053
|
+
const additional_data = response.additional_data;
|
|
2054
|
+
const records = response.records;
|
|
2055
|
+
const total_records = +additional_data.total_records;
|
|
2056
|
+
return this.processAssetLists(records, total_records, options);
|
|
2057
|
+
}));
|
|
2058
|
+
}
|
|
2059
|
+
getMediaAssets(options) {
|
|
2060
|
+
let params = this.parseOptions(options);
|
|
2061
|
+
if (options.media_id && options.media_id > 0) {
|
|
2062
|
+
params = params.set('media_id', options.media_id);
|
|
2063
|
+
}
|
|
2064
|
+
else if (options.media_identifier &&
|
|
2065
|
+
options.media_identifier !== '') {
|
|
2066
|
+
params = params.set('media_identifier', options.media_identifier);
|
|
2067
|
+
}
|
|
2068
|
+
else {
|
|
2069
|
+
return throwError(() => new Error('Media ID or identifier is required'));
|
|
2070
|
+
}
|
|
2071
|
+
return this.http
|
|
2072
|
+
.get(`${this.config.api_url}/get-media-assets.php`, { params })
|
|
2073
|
+
.pipe(map$1((response) => {
|
|
2074
|
+
if (response.records === undefined) {
|
|
2075
|
+
throw response;
|
|
2056
2076
|
}
|
|
2057
|
-
const
|
|
2058
|
-
const
|
|
2059
|
-
const
|
|
2060
|
-
return
|
|
2077
|
+
const additional_data = response.additional_data;
|
|
2078
|
+
const records = response.records;
|
|
2079
|
+
const total_records = +additional_data.total_records;
|
|
2080
|
+
return this.processAssetLists(records, total_records, options);
|
|
2061
2081
|
}));
|
|
2062
2082
|
}
|
|
2063
2083
|
processAsset(record) {
|
|
@@ -2109,10 +2129,20 @@ class EsolveAssetsService {
|
|
|
2109
2129
|
}
|
|
2110
2130
|
return params;
|
|
2111
2131
|
}
|
|
2112
|
-
|
|
2113
|
-
|
|
2132
|
+
processAssetLists(records, total_records, options) {
|
|
2133
|
+
const assets = [];
|
|
2134
|
+
for (const record of records) {
|
|
2135
|
+
assets.push(this.processAsset(record));
|
|
2136
|
+
}
|
|
2137
|
+
const page = options?.page ?? 0;
|
|
2138
|
+
const rows = options?.rows ?? 0;
|
|
2139
|
+
const total = total_records;
|
|
2140
|
+
return new EsolveList(assets, page, rows, total);
|
|
2141
|
+
}
|
|
2142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAssetsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2143
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAssetsService, providedIn: 'root' }); }
|
|
2114
2144
|
}
|
|
2115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAssetsService, decorators: [{
|
|
2116
2146
|
type: Injectable,
|
|
2117
2147
|
args: [{
|
|
2118
2148
|
providedIn: 'root',
|
|
@@ -2648,10 +2678,10 @@ class EsolveLocationsService {
|
|
|
2648
2678
|
}
|
|
2649
2679
|
return stock_locations;
|
|
2650
2680
|
}
|
|
2651
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2652
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
2681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveLocationsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2682
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveLocationsService, providedIn: 'root' }); }
|
|
2653
2683
|
}
|
|
2654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveLocationsService, decorators: [{
|
|
2655
2685
|
type: Injectable,
|
|
2656
2686
|
args: [{
|
|
2657
2687
|
providedIn: 'root',
|
|
@@ -2854,10 +2884,10 @@ class EsolveTransactionsService {
|
|
|
2854
2884
|
}
|
|
2855
2885
|
return transactions;
|
|
2856
2886
|
}
|
|
2857
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2858
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
2887
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTransactionsService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2888
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTransactionsService, providedIn: 'root' }); }
|
|
2859
2889
|
}
|
|
2860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveTransactionsService, decorators: [{
|
|
2861
2891
|
type: Injectable,
|
|
2862
2892
|
args: [{
|
|
2863
2893
|
providedIn: 'root',
|
|
@@ -3238,10 +3268,10 @@ class EsolveCouponsService {
|
|
|
3238
3268
|
}
|
|
3239
3269
|
return coupons;
|
|
3240
3270
|
}
|
|
3241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
3242
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
3271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCouponsService, deps: [{ token: PLATFORM_ID }, { token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3272
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCouponsService, providedIn: 'root' }); }
|
|
3243
3273
|
}
|
|
3244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
3274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCouponsService, decorators: [{
|
|
3245
3275
|
type: Injectable,
|
|
3246
3276
|
args: [{
|
|
3247
3277
|
providedIn: 'root',
|
|
@@ -3462,10 +3492,10 @@ class EsolveCartService {
|
|
|
3462
3492
|
const cart_totals = new EsolveCartTotals(+record.records, +record.items, +record.total, +record.vat, +record.discount);
|
|
3463
3493
|
return cart_totals;
|
|
3464
3494
|
}
|
|
3465
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
3466
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
3495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCartService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }, { token: EsolveCouponsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3496
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCartService, providedIn: 'root' }); }
|
|
3467
3497
|
}
|
|
3468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
3498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveCartService, decorators: [{
|
|
3469
3499
|
type: Injectable,
|
|
3470
3500
|
args: [{
|
|
3471
3501
|
providedIn: 'root',
|
|
@@ -3869,10 +3899,10 @@ class EsolveAccountService {
|
|
|
3869
3899
|
return new EsolveLocationUpdateResult(response);
|
|
3870
3900
|
})));
|
|
3871
3901
|
}
|
|
3872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
3873
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
3902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAccountService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3903
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAccountService, providedIn: 'root' }); }
|
|
3874
3904
|
}
|
|
3875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
3905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveAccountService, decorators: [{
|
|
3876
3906
|
type: Injectable,
|
|
3877
3907
|
args: [{
|
|
3878
3908
|
providedIn: 'root',
|
|
@@ -4008,10 +4038,10 @@ class EsolveBannerService {
|
|
|
4008
4038
|
}
|
|
4009
4039
|
return banners;
|
|
4010
4040
|
}
|
|
4011
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
4012
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
4041
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveBannerService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4042
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveBannerService, providedIn: 'root' }); }
|
|
4013
4043
|
}
|
|
4014
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
4044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveBannerService, decorators: [{
|
|
4015
4045
|
type: Injectable,
|
|
4016
4046
|
args: [{
|
|
4017
4047
|
providedIn: 'root',
|
|
@@ -4078,10 +4108,10 @@ class EsolveMenuService {
|
|
|
4078
4108
|
}
|
|
4079
4109
|
return menu;
|
|
4080
4110
|
}
|
|
4081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
4082
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
4111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveMenuService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4112
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveMenuService, providedIn: 'root' }); }
|
|
4083
4113
|
}
|
|
4084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
4114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveMenuService, decorators: [{
|
|
4085
4115
|
type: Injectable,
|
|
4086
4116
|
args: [{
|
|
4087
4117
|
providedIn: 'root',
|
|
@@ -4293,10 +4323,10 @@ class EsolveNewsService {
|
|
|
4293
4323
|
}
|
|
4294
4324
|
return params;
|
|
4295
4325
|
}
|
|
4296
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
4297
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
4326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveNewsService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4327
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveNewsService, providedIn: 'root' }); }
|
|
4298
4328
|
}
|
|
4299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
4329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveNewsService, decorators: [{
|
|
4300
4330
|
type: Injectable,
|
|
4301
4331
|
args: [{
|
|
4302
4332
|
providedIn: 'root',
|
|
@@ -4435,6 +4465,14 @@ class EsolveStockItemBase {
|
|
|
4435
4465
|
* Code identifying the stock item
|
|
4436
4466
|
*/
|
|
4437
4467
|
this.code = '';
|
|
4468
|
+
/**
|
|
4469
|
+
* Code used by supplier
|
|
4470
|
+
*/
|
|
4471
|
+
this.supplier_code = '';
|
|
4472
|
+
/**
|
|
4473
|
+
* The barcode of the item
|
|
4474
|
+
*/
|
|
4475
|
+
this.barcode = '';
|
|
4438
4476
|
/**
|
|
4439
4477
|
* Name of the stock item
|
|
4440
4478
|
*/
|
|
@@ -4575,6 +4613,8 @@ class EsolveStockItemBase {
|
|
|
4575
4613
|
* Colours
|
|
4576
4614
|
*/
|
|
4577
4615
|
this.colours = [];
|
|
4616
|
+
/** Sizes */
|
|
4617
|
+
this.sizes = [];
|
|
4578
4618
|
/**
|
|
4579
4619
|
* Image filename
|
|
4580
4620
|
*/
|
|
@@ -4592,6 +4632,8 @@ class EsolveStockItemBase {
|
|
|
4592
4632
|
if (record) {
|
|
4593
4633
|
this.id = +(record.id ?? 0);
|
|
4594
4634
|
this.code = record.code ?? '';
|
|
4635
|
+
this.supplier_code = record.supplier_code ?? '';
|
|
4636
|
+
this.barcode = record.barcode ?? '';
|
|
4595
4637
|
this.name = record.name ?? '';
|
|
4596
4638
|
this.sef_name = record.sef_name ?? '';
|
|
4597
4639
|
this.search_composite = record.search_composite ?? '';
|
|
@@ -4661,6 +4703,11 @@ class EsolveStockItemBase {
|
|
|
4661
4703
|
this.colours.push(new EsolveColour(colour));
|
|
4662
4704
|
}
|
|
4663
4705
|
}
|
|
4706
|
+
if (record.sizes && record.sizes.length > 0) {
|
|
4707
|
+
for (const size of record.sizes) {
|
|
4708
|
+
this.sizes.push(size);
|
|
4709
|
+
}
|
|
4710
|
+
}
|
|
4664
4711
|
if (record.lead_times) {
|
|
4665
4712
|
this.lead_times = new EsolveStockLeadTimes(record.lead_times);
|
|
4666
4713
|
}
|
|
@@ -4761,7 +4808,7 @@ class EsolveRecipeStockItem extends EsolveStockItemBase {
|
|
|
4761
4808
|
}
|
|
4762
4809
|
}
|
|
4763
4810
|
|
|
4764
|
-
class EsolveLinkedStockItem extends
|
|
4811
|
+
class EsolveLinkedStockItem extends EsolveStockItem {
|
|
4765
4812
|
constructor(record) {
|
|
4766
4813
|
super(record);
|
|
4767
4814
|
this.qty = 0;
|
|
@@ -4769,7 +4816,7 @@ class EsolveLinkedStockItem extends EsolveStockItemBase {
|
|
|
4769
4816
|
}
|
|
4770
4817
|
}
|
|
4771
4818
|
|
|
4772
|
-
class EsolveMediaStockItem extends
|
|
4819
|
+
class EsolveMediaStockItem extends EsolveStockItem {
|
|
4773
4820
|
constructor(record) {
|
|
4774
4821
|
super(record);
|
|
4775
4822
|
}
|
|
@@ -5269,10 +5316,10 @@ class EsolveStockService {
|
|
|
5269
5316
|
getStockHistoryRecords(params) {
|
|
5270
5317
|
return this.http.get(`${this.config.api_url}/get-items-transaction-history.php`, { params });
|
|
5271
5318
|
}
|
|
5272
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
5273
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
5319
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveStockService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5320
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveStockService, providedIn: 'root' }); }
|
|
5274
5321
|
}
|
|
5275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
5322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveStockService, decorators: [{
|
|
5276
5323
|
type: Injectable,
|
|
5277
5324
|
args: [{
|
|
5278
5325
|
providedIn: 'root',
|
|
@@ -5419,10 +5466,10 @@ class EsolveSpecialsService {
|
|
|
5419
5466
|
processSpecial(record) {
|
|
5420
5467
|
return new EsolveSpecial(record);
|
|
5421
5468
|
}
|
|
5422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
5423
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
5469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSpecialsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5470
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSpecialsService, providedIn: 'root' }); }
|
|
5424
5471
|
}
|
|
5425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
5472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSpecialsService, decorators: [{
|
|
5426
5473
|
type: Injectable,
|
|
5427
5474
|
args: [{
|
|
5428
5475
|
providedIn: 'root',
|
|
@@ -5765,10 +5812,10 @@ class EsolvePaymentService {
|
|
|
5765
5812
|
const year_string = card_data.expiry_year.padStart(4, '0');
|
|
5766
5813
|
return `${month_string}${year_string}`;
|
|
5767
5814
|
}
|
|
5768
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
5769
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
5815
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolvePaymentService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5816
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolvePaymentService, providedIn: 'root' }); }
|
|
5770
5817
|
}
|
|
5771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
5818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolvePaymentService, decorators: [{
|
|
5772
5819
|
type: Injectable,
|
|
5773
5820
|
args: [{
|
|
5774
5821
|
providedIn: 'root',
|
|
@@ -6037,10 +6084,10 @@ class EsolveShippingService {
|
|
|
6037
6084
|
const shipping_cost = new EsolveShippingCost(+record.shipping_total, +record.vat_on_shipping, +record.total_saving_on_shipping, +record.insurance_total, +record.vat_on_insurance, +record.total_saving_on_insurance);
|
|
6038
6085
|
return shipping_cost;
|
|
6039
6086
|
}
|
|
6040
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
6041
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
6087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveShippingService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6088
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveShippingService, providedIn: 'root' }); }
|
|
6042
6089
|
}
|
|
6043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
6090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveShippingService, decorators: [{
|
|
6044
6091
|
type: Injectable,
|
|
6045
6092
|
args: [{
|
|
6046
6093
|
providedIn: 'root',
|
|
@@ -6078,10 +6125,10 @@ class EsolveEnquiryService {
|
|
|
6078
6125
|
return this.errorHandler.handleHttpPostError('set-enquiry', errorRes);
|
|
6079
6126
|
}));
|
|
6080
6127
|
}
|
|
6081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
6082
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
6128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveEnquiryService, deps: [{ token: EsolveConfigService }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6129
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveEnquiryService, providedIn: 'root' }); }
|
|
6083
6130
|
}
|
|
6084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
6131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveEnquiryService, decorators: [{
|
|
6085
6132
|
type: Injectable,
|
|
6086
6133
|
args: [{
|
|
6087
6134
|
providedIn: 'root',
|
|
@@ -6199,10 +6246,10 @@ class EsolveWishlistService {
|
|
|
6199
6246
|
getWishlistRecords(params) {
|
|
6200
6247
|
return this.http.get(`${this.config.api_url}/get-wishlist.php`, { params });
|
|
6201
6248
|
}
|
|
6202
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
6203
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
6249
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveWishlistService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6250
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveWishlistService, providedIn: 'root' }); }
|
|
6204
6251
|
}
|
|
6205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
6252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveWishlistService, decorators: [{
|
|
6206
6253
|
type: Injectable,
|
|
6207
6254
|
args: [{
|
|
6208
6255
|
providedIn: 'root',
|
|
@@ -6276,10 +6323,10 @@ class EsolveSuppliersService {
|
|
|
6276
6323
|
processSuppliers(record) {
|
|
6277
6324
|
return new EsolveSupplier(record);
|
|
6278
6325
|
}
|
|
6279
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
6280
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
6326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSuppliersService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6327
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSuppliersService, providedIn: 'root' }); }
|
|
6281
6328
|
}
|
|
6282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
6329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImport: i0, type: EsolveSuppliersService, decorators: [{
|
|
6283
6330
|
type: Injectable,
|
|
6284
6331
|
args: [{
|
|
6285
6332
|
providedIn: 'root',
|