@colijnit/product 258.1.4 → 259.1.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/app/bundle/service/local-storage.service.d.ts +14 -0
- package/app/ione-product.component.d.ts +6 -1
- package/bundles/colijnit-product.umd.js +586 -504
- package/bundles/colijnit-product.umd.js.map +1 -1
- package/colijnit-product.d.ts +1 -0
- package/colijnit-product.metadata.json +1 -1
- package/esm2015/app/bundle/service/local-storage.service.js +37 -0
- package/esm2015/app/ione-product.component.js +36 -5
- package/esm2015/app/product-version.js +3 -3
- package/esm2015/colijnit-product.js +2 -1
- package/fesm2015/colijnit-product.js +288 -223
- package/fesm2015/colijnit-product.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class RootStorageObject {
|
|
2
|
+
id: string;
|
|
3
|
+
}
|
|
4
|
+
export declare class LocalStorageService {
|
|
5
|
+
readonly storage: Storage;
|
|
6
|
+
protected _appRoot: string;
|
|
7
|
+
protected _storageObj: RootStorageObject;
|
|
8
|
+
constructor();
|
|
9
|
+
save(): void;
|
|
10
|
+
clear(): void;
|
|
11
|
+
set id(id: string);
|
|
12
|
+
get id(): string;
|
|
13
|
+
protected _initLocalStorageObj(): void;
|
|
14
|
+
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ProductConnectorService } from './service/product-connector.service';
|
|
2
3
|
import { ProductEventService } from './service/product-event.service';
|
|
3
4
|
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
4
5
|
import { ProductSettingsService } from './service/product-settings.service';
|
|
5
6
|
import { Selection } from '@colijnit/articleapi/build/model/selection';
|
|
6
7
|
import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-sel';
|
|
7
8
|
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
9
|
+
import { LocalStorageService } from "./bundle/service/local-storage.service";
|
|
8
10
|
export declare class IoneProductComponent implements OnInit, OnDestroy {
|
|
9
11
|
private _appEventService;
|
|
10
12
|
private _settingsService;
|
|
13
|
+
private _productConnectorService;
|
|
14
|
+
private _localStorageService;
|
|
11
15
|
sku: string;
|
|
12
16
|
isReturn: boolean;
|
|
13
17
|
showRelatedProductsPopup: boolean;
|
|
@@ -15,6 +19,7 @@ export declare class IoneProductComponent implements OnInit, OnDestroy {
|
|
|
15
19
|
set settings(value: any);
|
|
16
20
|
get settings(): any;
|
|
17
21
|
handleAddArticleInternally: boolean;
|
|
22
|
+
handleAddToCartInternally: boolean;
|
|
18
23
|
onAddToCart: EventEmitter<{
|
|
19
24
|
article: string | ArticleListObjectExtended;
|
|
20
25
|
quantity: number;
|
|
@@ -32,7 +37,7 @@ export declare class IoneProductComponent implements OnInit, OnDestroy {
|
|
|
32
37
|
showHD: boolean;
|
|
33
38
|
private _settings;
|
|
34
39
|
private _subs;
|
|
35
|
-
constructor(_appEventService: ProductEventService, _settingsService: ProductSettingsService);
|
|
40
|
+
constructor(_appEventService: ProductEventService, _settingsService: ProductSettingsService, _productConnectorService: ProductConnectorService, _localStorageService: LocalStorageService);
|
|
36
41
|
ngOnInit(): Promise<void>;
|
|
37
42
|
ngOnDestroy(): void;
|
|
38
43
|
private _handleAnswerInfoReceived;
|