@colijnit/product 1.0.13 → 1.9.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.
- package/app/components/image-carousel/image-carousel.component.d.ts +11 -7
- package/app/components/product-additional-description/product-additional-description.component.d.ts +5 -4
- package/app/components/product-additional-info/product-additional-info.component.d.ts +5 -4
- package/app/components/product-addtocart/product-addtocart.component.d.ts +8 -5
- package/app/components/product-delivery/product-delivery.component.d.ts +3 -3
- package/app/components/product-description/product-description.component.d.ts +1 -1
- package/app/components/product-documents/product-documents.component.d.ts +1 -1
- package/app/components/product-info/product-info.component.d.ts +1 -1
- package/app/components/product-info-tabs/product-info-tabs.component.d.ts +4 -4
- package/app/components/product-page/product-page.component.d.ts +16 -12
- package/app/components/product-price/product-price.component.d.ts +3 -2
- package/app/components/product-properties/product-properties.component.d.ts +3 -2
- package/app/components/product-related/product-related.component.d.ts +6 -5
- package/app/components/product-stock/product-stock.component.d.ts +3 -3
- package/app/components/product-symbols/product-symbols.component.d.ts +2 -1
- package/app/ione-product.component.d.ts +13 -10
- package/app/ione-product.module.d.ts +2 -0
- package/app/model/article-quantity.model.d.ts +1 -1
- package/app/model/settings.d.ts +5 -0
- package/app/product-version.d.ts +6 -0
- package/app/service/dictionary.service.d.ts +2 -2
- package/app/service/icon-cache.service.d.ts +1 -1
- package/app/service/product-connector-adapter.service.d.ts +27 -0
- package/app/service/product-connector.service.d.ts +32 -0
- package/app/service/product-event.service.d.ts +18 -0
- package/app/service/product-initializer.service.d.ts +6 -0
- package/app/service/product-module.service.d.ts +9 -0
- package/app/service/{settings.service.d.ts → product-settings.service.d.ts} +6 -4
- package/app/style/_scrollbars.mixins.scss +18 -0
- package/app/style/_variables.scss +21 -0
- package/{css/styles.css → app/style/product-globals.scss} +102 -76
- package/bundles/colijnit-product.umd.js +544 -418
- package/bundles/colijnit-product.umd.js.map +1 -1
- package/bundles/colijnit-product.umd.min.js +2 -2
- package/bundles/colijnit-product.umd.min.js.map +1 -1
- package/colijnit-product.d.ts +6 -5
- package/colijnit-product.metadata.json +1 -1
- package/esm2015/app/components/core/header/header.component.js +4 -4
- package/esm2015/app/components/image-carousel/image-carousel.component.js +32 -26
- package/esm2015/app/components/product-additional-description/product-additional-description.component.js +7 -7
- package/esm2015/app/components/product-additional-info/product-additional-info.component.js +10 -10
- package/esm2015/app/components/product-addtocart/product-addtocart.component.js +33 -35
- package/esm2015/app/components/product-delivery/product-delivery.component.js +8 -8
- package/esm2015/app/components/product-description/product-description.component.js +5 -5
- package/esm2015/app/components/product-documents/product-documents.component.js +5 -5
- package/esm2015/app/components/product-info/product-info.component.js +5 -5
- package/esm2015/app/components/product-info-tabs/product-info-tabs.component.js +8 -8
- package/esm2015/app/components/product-page/product-page.component.js +38 -64
- package/esm2015/app/components/product-price/product-price.component.js +6 -6
- package/esm2015/app/components/product-properties/product-properties.component.js +6 -6
- package/esm2015/app/components/product-related/product-related.component.js +17 -13
- package/esm2015/app/components/product-selector-type/product-selector-type.component.js +8 -8
- package/esm2015/app/components/product-stock/product-stock.component.js +7 -7
- package/esm2015/app/components/product-symbols/product-symbols.component.js +4 -4
- package/esm2015/app/ione-product.component.js +34 -59
- package/esm2015/app/ione-product.module.js +24 -9
- package/esm2015/app/model/article-quantity.model.js +1 -1
- package/esm2015/app/model/settings.js +2 -1
- package/esm2015/app/pipe/localize.pipe.js +2 -2
- package/esm2015/app/product-version.js +10 -0
- package/esm2015/app/service/dictionary.service.js +6 -6
- package/esm2015/app/service/icon-cache.service.js +3 -3
- package/esm2015/app/service/product-connector-adapter.service.js +128 -0
- package/esm2015/app/service/product-connector.service.js +108 -0
- package/esm2015/app/service/product-event.service.js +41 -0
- package/esm2015/app/service/product-initializer.service.js +26 -0
- package/esm2015/app/service/product-module.service.js +39 -0
- package/esm2015/app/service/product-settings.service.js +142 -0
- package/esm2015/app/utils/json-utils.service.js +7 -8
- package/esm2015/colijnit-product.js +7 -6
- package/esm2015/public_api.js +2 -1
- package/esm5/app/components/core/header/header.component.js +4 -4
- package/esm5/app/components/image-carousel/image-carousel.component.js +32 -26
- package/esm5/app/components/product-additional-description/product-additional-description.component.js +7 -7
- package/esm5/app/components/product-additional-info/product-additional-info.component.js +15 -14
- package/esm5/app/components/product-addtocart/product-addtocart.component.js +38 -41
- package/esm5/app/components/product-delivery/product-delivery.component.js +8 -8
- package/esm5/app/components/product-description/product-description.component.js +5 -5
- package/esm5/app/components/product-documents/product-documents.component.js +5 -5
- package/esm5/app/components/product-info/product-info.component.js +5 -5
- package/esm5/app/components/product-info-tabs/product-info-tabs.component.js +8 -8
- package/esm5/app/components/product-page/product-page.component.js +40 -66
- package/esm5/app/components/product-price/product-price.component.js +6 -6
- package/esm5/app/components/product-properties/product-properties.component.js +6 -6
- package/esm5/app/components/product-related/product-related.component.js +17 -13
- package/esm5/app/components/product-selector-type/product-selector-type.component.js +8 -8
- package/esm5/app/components/product-stock/product-stock.component.js +7 -7
- package/esm5/app/components/product-symbols/product-symbols.component.js +4 -4
- package/esm5/app/ione-product.component.js +35 -66
- package/esm5/app/ione-product.module.js +24 -9
- package/esm5/app/model/article-quantity.model.js +1 -1
- package/esm5/app/model/settings.js +2 -1
- package/esm5/app/pipe/localize.pipe.js +5 -5
- package/esm5/app/product-version.js +12 -0
- package/esm5/app/service/dictionary.service.js +8 -8
- package/esm5/app/service/icon-cache.service.js +3 -3
- package/esm5/app/service/product-connector-adapter.service.js +197 -0
- package/esm5/app/service/product-connector.service.js +128 -0
- package/esm5/app/service/product-event.service.js +42 -0
- package/esm5/app/service/product-initializer.service.js +29 -0
- package/esm5/app/service/product-module.service.js +50 -0
- package/esm5/app/service/product-settings.service.js +165 -0
- package/esm5/app/utils/json-utils.service.js +8 -9
- package/esm5/colijnit-product.js +7 -6
- package/esm5/public_api.js +2 -1
- package/fesm2015/colijnit-product.js +376 -314
- package/fesm2015/colijnit-product.js.map +1 -1
- package/fesm5/colijnit-product.js +549 -422
- package/fesm5/colijnit-product.js.map +1 -1
- package/package.json +21 -44
- package/public_api.d.ts +1 -0
- package/app/service/app-event.service.d.ts +0 -13
- package/app/service/i-one-connector-adapter.service.d.ts +0 -24
- package/app/service/i-one-controller.service.d.ts +0 -35
- package/app/service/module.service.d.ts +0 -9
- package/app/utils/string-utils.d.ts +0 -21
- package/colijnit-product-1.0.13.tgz +0 -0
- package/esm2015/app/service/app-event.service.js +0 -37
- package/esm2015/app/service/i-one-connector-adapter.service.js +0 -52
- package/esm2015/app/service/i-one-controller.service.js +0 -104
- package/esm2015/app/service/module.service.js +0 -39
- package/esm2015/app/service/settings.service.js +0 -107
- package/esm2015/app/utils/string-utils.js +0 -51
- package/esm5/app/service/app-event.service.js +0 -38
- package/esm5/app/service/i-one-connector-adapter.service.js +0 -55
- package/esm5/app/service/i-one-controller.service.js +0 -118
- package/esm5/app/service/module.service.js +0 -50
- package/esm5/app/service/settings.service.js +0 -128
- package/esm5/app/utils/string-utils.js +0 -59
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { CoDocument } from '@colijnit
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
|
|
3
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
4
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
5
5
|
import { IconEnum } from '../../enum/icon.enum';
|
|
6
6
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
7
|
+
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
7
8
|
export declare class ImageCarouselComponent implements OnInit, OnDestroy {
|
|
8
9
|
private _ione;
|
|
9
10
|
private _appEventService;
|
|
10
11
|
private _changeDetector;
|
|
12
|
+
private _domSanitizer;
|
|
11
13
|
iconCache: IconCacheService;
|
|
12
14
|
readonly icons: typeof IconEnum;
|
|
13
15
|
showLoader: boolean;
|
|
14
16
|
carousel: ElementRef;
|
|
15
17
|
showRefresh: boolean;
|
|
16
|
-
images: CoDocument[];
|
|
18
|
+
set images(value: CoDocument[]);
|
|
17
19
|
handleWindowResize(): void;
|
|
18
20
|
gotoNextSlide(): void;
|
|
19
21
|
gotoPrevSlide(): void;
|
|
20
22
|
isCurrentIndex(index: number): boolean;
|
|
21
|
-
currentIndex: number;
|
|
23
|
+
get currentIndex(): number;
|
|
24
|
+
set currentIndex(value: number);
|
|
22
25
|
resizing: boolean;
|
|
26
|
+
get images(): CoDocument[];
|
|
23
27
|
private _resizeTimer;
|
|
24
28
|
private _currentIndex;
|
|
25
29
|
private _images;
|
|
26
30
|
private _subs;
|
|
27
|
-
constructor(_ione:
|
|
31
|
+
constructor(_ione: ProductConnectorService, _appEventService: ProductEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer, iconCache: IconCacheService);
|
|
28
32
|
ngOnInit(): void;
|
|
29
33
|
ngOnDestroy(): void;
|
|
30
34
|
handleThumbClick(index: number): void;
|
|
31
35
|
onForceRenderImage(): void;
|
|
32
|
-
getImageSrc(image: CoDocument | CustomEvent):
|
|
36
|
+
getImageSrc(image: CoDocument | CustomEvent): SafeUrl;
|
|
33
37
|
private _loadImages;
|
|
34
38
|
private _scrollCarouselToIndex;
|
|
35
39
|
}
|
package/app/components/product-additional-description/product-additional-description.component.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ArticleFullObject } from '@colijnit/
|
|
3
|
-
import {
|
|
2
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
3
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
4
4
|
export declare class ProductAdditionalDescriptionComponent implements OnInit {
|
|
5
5
|
private _appEventService;
|
|
6
|
-
article: ArticleFullObject;
|
|
6
|
+
set article(value: ArticleFullObject);
|
|
7
|
+
get article(): ArticleFullObject;
|
|
7
8
|
description: string;
|
|
8
9
|
private _article;
|
|
9
|
-
constructor(_appEventService:
|
|
10
|
+
constructor(_appEventService: ProductEventService);
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
onReadMore(): void;
|
|
12
13
|
private _prepareDescription;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import { ArticleFullObject } from '@colijnit/
|
|
4
|
-
import {
|
|
3
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
4
|
+
import { ProductModuleService } from '../../service/product-module.service';
|
|
5
5
|
export declare class ProductAdditionalInfoComponent implements OnInit {
|
|
6
6
|
private _sanitizer;
|
|
7
7
|
private _moduleService;
|
|
8
8
|
private _changeDetector;
|
|
9
|
-
article: ArticleFullObject;
|
|
9
|
+
set article(value: ArticleFullObject);
|
|
10
|
+
get article(): ArticleFullObject;
|
|
10
11
|
showLabel: boolean;
|
|
11
12
|
textParts: SafeHtml[];
|
|
12
13
|
info: string;
|
|
13
14
|
private _article;
|
|
14
|
-
constructor(_sanitizer: DomSanitizer, _moduleService:
|
|
15
|
+
constructor(_sanitizer: DomSanitizer, _moduleService: ProductModuleService, _changeDetector: ChangeDetectorRef);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
private _getTextsSuperArticle;
|
|
17
18
|
private _prepareArticleTexts;
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
3
3
|
import { IconEnum } from '../../enum/icon.enum';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { ArticleFullObject } from '@colijnit/
|
|
4
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
5
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
6
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
7
|
+
import { ProductSettingsService } from '../../service/product-settings.service';
|
|
7
8
|
export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
8
9
|
iconCache: IconCacheService;
|
|
9
10
|
private _ioneControllerService;
|
|
10
11
|
private _appEventService;
|
|
12
|
+
private _settingsService;
|
|
11
13
|
readonly icon: typeof IconEnum;
|
|
12
14
|
addToCartButton: ElementRef;
|
|
13
15
|
article: ArticleFullObject;
|
|
14
16
|
configurable: boolean;
|
|
15
17
|
configuring: boolean;
|
|
16
18
|
fullscreen: boolean;
|
|
17
|
-
quantity: number;
|
|
19
|
+
set quantity(value: number);
|
|
20
|
+
get quantity(): number;
|
|
18
21
|
startConfiguration: EventEmitter<void>;
|
|
19
22
|
addToCartClick: EventEmitter<number>;
|
|
20
23
|
addToQuoteClick: EventEmitter<number>;
|
|
21
24
|
showQuoteButton: boolean;
|
|
22
25
|
private _quantity;
|
|
23
|
-
constructor(iconCache: IconCacheService, _ioneControllerService:
|
|
26
|
+
constructor(iconCache: IconCacheService, _ioneControllerService: ProductConnectorService, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
|
|
24
27
|
ngOnInit(): void;
|
|
25
28
|
ngOnDestroy(): void;
|
|
26
29
|
handleAddToCartClick(quantity: number): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
3
3
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
4
|
import { SafeHtml } from '@angular/platform-browser';
|
|
5
5
|
import { IconEnum } from '../../enum/icon.enum';
|
|
@@ -10,9 +10,9 @@ export declare class ProductDeliveryComponent implements OnInit {
|
|
|
10
10
|
private _iOne;
|
|
11
11
|
private _iconCache;
|
|
12
12
|
readonly icon: typeof IconEnum;
|
|
13
|
-
stockAndDelivery: StockAndDelivery;
|
|
13
|
+
set stockAndDelivery(value: StockAndDelivery);
|
|
14
14
|
deliveryDescription: string;
|
|
15
15
|
iconData: SafeHtml;
|
|
16
|
-
constructor(_localizePipe: LocalizePipe, _iOne:
|
|
16
|
+
constructor(_localizePipe: LocalizePipe, _iOne: ProductConnectorService, _iconCache: IconCacheService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ArticleFullObject } from '@colijnit
|
|
2
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
3
3
|
export declare class ProductDescriptionComponent implements OnInit {
|
|
4
4
|
article: ArticleFullObject;
|
|
5
5
|
constructor();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoDocument } from '@colijnit
|
|
1
|
+
import { CoDocument } from '@colijnit/mainapi/build/model/co-document';
|
|
2
2
|
import { IconEnum } from '../../enum/icon.enum';
|
|
3
3
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
4
4
|
export declare class ProductDocumentsComponent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ArticleFullObject } from '@colijnit
|
|
2
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
3
3
|
export declare enum TabType {
|
|
4
4
|
Additional = "additional",
|
|
5
5
|
Properties = "properties"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ArticleFullObject } from '@colijnit/
|
|
3
|
-
import {
|
|
2
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
3
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
4
4
|
export declare class ProductInfoTabsComponent implements OnDestroy {
|
|
5
5
|
private _appEventService;
|
|
6
6
|
activeTab: number;
|
|
@@ -8,9 +8,9 @@ export declare class ProductInfoTabsComponent implements OnDestroy {
|
|
|
8
8
|
tabContent: ElementRef;
|
|
9
9
|
tabs: any[];
|
|
10
10
|
articleObject: ArticleFullObject;
|
|
11
|
-
article: ArticleFullObject;
|
|
11
|
+
set article(value: ArticleFullObject);
|
|
12
12
|
private _subs;
|
|
13
|
-
constructor(_appEventService:
|
|
13
|
+
constructor(_appEventService: ProductEventService);
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
updateTab(tabIndex: number): void;
|
|
16
16
|
updateHeight(tabIndex: number): void;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ArticleFullObject } from '@colijnit
|
|
2
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
3
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
4
4
|
import { StockAndDelivery } from '../../model/stock-and-delivery';
|
|
5
5
|
import { SelectorType } from '../../enum/selector-type.enum';
|
|
6
6
|
import { IconEnum } from '../../enum/icon.enum';
|
|
7
7
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { ProductSettingsService } from '../../service/product-settings.service';
|
|
9
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
10
10
|
export declare class ProductPageComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
11
11
|
private _ione;
|
|
12
12
|
private _renderer;
|
|
13
13
|
private _changeDetector;
|
|
14
14
|
iconCache: IconCacheService;
|
|
15
|
-
settingsService:
|
|
16
|
-
appEventService:
|
|
15
|
+
settingsService: ProductSettingsService;
|
|
16
|
+
appEventService: ProductEventService;
|
|
17
17
|
readonly icon: typeof IconEnum;
|
|
18
18
|
configurator: ElementRef;
|
|
19
19
|
selections: ElementRef;
|
|
20
20
|
fullscreenbutton: ElementRef;
|
|
21
|
-
sku: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
set sku(value: string);
|
|
22
|
+
get sku(): string;
|
|
23
|
+
set fullScreen(value: boolean);
|
|
24
|
+
get fullScreen(): boolean;
|
|
25
|
+
get fullScreenIcon(): IconEnum;
|
|
26
|
+
set currentView(value: SelectorType);
|
|
27
|
+
get currentView(): SelectorType;
|
|
25
28
|
article: ArticleFullObject;
|
|
26
29
|
stockAndDelivery: StockAndDelivery;
|
|
27
30
|
configurable: boolean;
|
|
@@ -31,17 +34,18 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
31
34
|
show3D: boolean;
|
|
32
35
|
configuring: boolean;
|
|
33
36
|
fullscreenAnimationEnd: boolean;
|
|
37
|
+
settingsLoaded: boolean;
|
|
34
38
|
private _sku;
|
|
35
39
|
private _initializedSub;
|
|
36
40
|
private _fullScreen;
|
|
37
41
|
private _currentView;
|
|
38
42
|
private _subs;
|
|
39
|
-
constructor(_ione:
|
|
43
|
+
constructor(_ione: ProductConnectorService, _renderer: Renderer2, _changeDetector: ChangeDetectorRef, iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService);
|
|
40
44
|
ngOnInit(): void;
|
|
41
45
|
ngAfterViewInit(): void;
|
|
42
46
|
ngOnDestroy(): void;
|
|
47
|
+
setInstance(event: CustomEvent): void;
|
|
43
48
|
handleStartConfiguration(): void;
|
|
44
49
|
showFullScreen(): void;
|
|
45
|
-
private _prepareFullscreen;
|
|
46
50
|
private _getArticle;
|
|
47
51
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
export declare class ProductPriceComponent implements OnInit {
|
|
3
3
|
private _changeDetector;
|
|
4
|
-
pricing: any;
|
|
5
|
-
|
|
4
|
+
set pricing(value: any);
|
|
5
|
+
get pricing(): any;
|
|
6
|
+
set configurable(value: boolean);
|
|
6
7
|
fromPrice: number;
|
|
7
8
|
toPrice: number;
|
|
8
9
|
valutaSign: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ArticleFullObject } from '@colijnit
|
|
2
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
3
3
|
export declare const propertyMap: Map<string, string>;
|
|
4
4
|
export declare class ProductPropertiesComponent implements OnInit {
|
|
5
|
-
article: ArticleFullObject;
|
|
5
|
+
set article(value: ArticleFullObject);
|
|
6
|
+
get article(): ArticleFullObject;
|
|
6
7
|
showLabel: boolean;
|
|
7
8
|
properties: {
|
|
8
9
|
key: string;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ArticleListObject } from '@colijnit
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
2
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
3
|
+
import { ProductEventService } from '../../service/product-event.service';
|
|
4
4
|
export declare class ProductRelatedComponent {
|
|
5
5
|
private _iOne;
|
|
6
6
|
private _appEventService;
|
|
7
7
|
refType: number;
|
|
8
8
|
label: string;
|
|
9
9
|
isSmallModus: boolean;
|
|
10
|
-
articles: ArticleListObject[];
|
|
10
|
+
set articles(value: ArticleListObject[]);
|
|
11
|
+
get articles(): ArticleListObject[];
|
|
11
12
|
private _articles;
|
|
12
|
-
constructor(_iOne:
|
|
13
|
+
constructor(_iOne: ProductConnectorService, _appEventService: ProductEventService);
|
|
13
14
|
handleContentClick(article: ArticleListObject): void;
|
|
14
15
|
private _loadImages;
|
|
15
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import {
|
|
3
|
+
import { ProductConnectorService } from '../../service/product-connector.service';
|
|
4
4
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
5
5
|
import { IconEnum } from '../../enum/icon.enum';
|
|
6
6
|
import { StockAndDelivery } from '../../model/stock-and-delivery';
|
|
@@ -8,9 +8,9 @@ export declare class ProductStockComponent implements OnInit {
|
|
|
8
8
|
private _iOne;
|
|
9
9
|
private _iconCache;
|
|
10
10
|
readonly icon: typeof IconEnum;
|
|
11
|
-
stockAndDelivery: StockAndDelivery;
|
|
11
|
+
set stockAndDelivery(value: StockAndDelivery);
|
|
12
12
|
numberInStock: number;
|
|
13
13
|
iconData: SafeHtml;
|
|
14
|
-
constructor(_iOne:
|
|
14
|
+
constructor(_iOne: ProductConnectorService, _iconCache: IconCacheService);
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { JsonUtilsService } from './utils/json-utils.service';
|
|
3
|
-
import {
|
|
3
|
+
import { ProductConnectorService } from './service/product-connector.service';
|
|
4
4
|
import { DictionaryService } from './service/dictionary.service';
|
|
5
|
-
import {
|
|
6
|
-
import { ArticleListObject } from '@colijnit/
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { ProductEventService } from './service/product-event.service';
|
|
6
|
+
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
7
|
+
import { ProductSettingsService } from './service/product-settings.service';
|
|
8
|
+
import { Selection } from '@colijnit/articleapi/build/model/selection';
|
|
9
|
+
import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-sel';
|
|
10
|
+
export declare class IoneProductComponent implements OnChanges, OnDestroy {
|
|
9
11
|
private _dictionary;
|
|
10
12
|
private _jsonUtils;
|
|
11
13
|
private _ione;
|
|
@@ -13,18 +15,19 @@ export declare class IoneProductComponent implements OnInit, OnChanges, OnDestro
|
|
|
13
15
|
private _appEventService;
|
|
14
16
|
private _settingsService;
|
|
15
17
|
sku: string;
|
|
16
|
-
settings: any;
|
|
18
|
+
set settings(value: any);
|
|
19
|
+
get settings(): any;
|
|
17
20
|
onAddToCart: EventEmitter<string>;
|
|
18
21
|
forceRenderImage: EventEmitter<void>;
|
|
19
22
|
onAlternativeClick: EventEmitter<ArticleListObject>;
|
|
20
23
|
onArticleInfoReceived: EventEmitter<string>;
|
|
24
|
+
onArticleReceived: EventEmitter<ArticleQuickSel>;
|
|
25
|
+
onSelectionsReceived: EventEmitter<Selection[]>;
|
|
21
26
|
onAddToQuote: EventEmitter<string>;
|
|
22
27
|
upAndLoaded: boolean;
|
|
23
28
|
private _settings;
|
|
24
29
|
private _subs;
|
|
25
|
-
constructor(_dictionary: DictionaryService, _jsonUtils: JsonUtilsService, _ione:
|
|
26
|
-
ngOnInit(): Promise<void>;
|
|
27
|
-
ngAfterViewInit(): Promise<void>;
|
|
30
|
+
constructor(_dictionary: DictionaryService, _jsonUtils: JsonUtilsService, _ione: ProductConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
|
|
28
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
29
32
|
ngOnDestroy(): void;
|
|
30
33
|
private _handleSettingsLoaded;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArticleFullObject } from '@colijnit/
|
|
1
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
2
2
|
export declare class ArticleQuantity {
|
|
3
3
|
article: ArticleFullObject;
|
|
4
4
|
quantity: number;
|
package/app/model/settings.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export declare class Settings {
|
|
|
15
15
|
useMatch: boolean;
|
|
16
16
|
assetPath: string;
|
|
17
17
|
assetIndex: string;
|
|
18
|
+
currencySymbol: string;
|
|
19
|
+
threeDAssetPath: string;
|
|
20
|
+
lightPresetsIndex: string;
|
|
21
|
+
additionalTranslationFile: string;
|
|
22
|
+
gtm: string;
|
|
18
23
|
client: string;
|
|
19
24
|
timeoutInMs: number;
|
|
20
25
|
languageCode: string;
|
|
@@ -4,8 +4,8 @@ export declare class DictionaryService {
|
|
|
4
4
|
private _http;
|
|
5
5
|
private _jsonUtils;
|
|
6
6
|
private readonly dictionaryUrl;
|
|
7
|
-
|
|
8
|
-
rootUrl: string;
|
|
7
|
+
get language(): string;
|
|
8
|
+
set rootUrl(value: string);
|
|
9
9
|
private _dictBasePath;
|
|
10
10
|
private _rootUrl;
|
|
11
11
|
private _dictionaries;
|
|
@@ -6,7 +6,7 @@ export declare class IconCacheService {
|
|
|
6
6
|
* All the icons as a large JSON object, from the all-icons.json file.
|
|
7
7
|
* The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
get iconCache(): {
|
|
10
10
|
[iconName: string]: SafeHtml;
|
|
11
11
|
};
|
|
12
12
|
private _iconCache;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
4
|
+
import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
|
|
5
|
+
import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
|
|
6
|
+
import { Articles } from '@colijnit/articleapi/build/articles';
|
|
7
|
+
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
8
|
+
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
9
|
+
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
10
|
+
export declare class ProductConnectorAdapterService implements OnDestroy {
|
|
11
|
+
readonly showLoader: Subject<boolean>;
|
|
12
|
+
articleConnector?: Articles;
|
|
13
|
+
private _boFactory;
|
|
14
|
+
constructor();
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
initConnector(options: Options): void;
|
|
17
|
+
setInstance(instanceId: string): void;
|
|
18
|
+
getDeliveryPrognosis(goodId: number, branchNr?: string): Promise<any>;
|
|
19
|
+
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
20
|
+
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
21
|
+
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
22
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
23
|
+
getGoodIdFromArticleNr(sku: string): Promise<number>;
|
|
24
|
+
getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
|
|
25
|
+
getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
|
|
26
|
+
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { ProductConnectorAdapterService } from './product-connector-adapter.service';
|
|
4
|
+
import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
|
|
5
|
+
import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
|
|
6
|
+
import { ProductSettingsService } from './product-settings.service';
|
|
7
|
+
import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
|
|
8
|
+
import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
|
|
9
|
+
import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
|
|
10
|
+
export declare class ProductConnectorService implements OnDestroy {
|
|
11
|
+
connector: ProductConnectorAdapterService;
|
|
12
|
+
private _settingsService;
|
|
13
|
+
get shouldShowLoader(): boolean;
|
|
14
|
+
controllerInitialized: BehaviorSubject<boolean>;
|
|
15
|
+
private _shouldShowLoader;
|
|
16
|
+
private _initializing;
|
|
17
|
+
private _initialized;
|
|
18
|
+
private readonly connectorOptions;
|
|
19
|
+
private readonly subs;
|
|
20
|
+
constructor(connector: ProductConnectorAdapterService, _settingsService: ProductSettingsService);
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
initDefaultDevelopTestConnection(): Promise<void>;
|
|
23
|
+
setInstance(instanceId: string): void;
|
|
24
|
+
getFullArticle(sku: string): Promise<ArticleFullObject>;
|
|
25
|
+
getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
|
|
26
|
+
getDeliveryPrognosis(goodId: number): Promise<DeliveryPrognosis>;
|
|
27
|
+
getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
|
|
28
|
+
getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
|
|
29
|
+
getSuperArticle(id: string): Promise<SuperArticle>;
|
|
30
|
+
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
31
|
+
onShowLoaderChange(showLoader: boolean): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
|
|
3
|
+
import { Selection } from '@colijnit/articleapi/build/model/selection';
|
|
4
|
+
import { ArticleQuickSel } from '@colijnit/articleapi/build/model/article-quick-sel';
|
|
5
|
+
export declare class ProductEventService {
|
|
6
|
+
onAddToCart: Subject<string>;
|
|
7
|
+
onAlternativeClick: Subject<ArticleListObject>;
|
|
8
|
+
onAddToQuote: Subject<string>;
|
|
9
|
+
onForceRenderImage: Subject<void>;
|
|
10
|
+
onArticleReceived: Subject<ArticleQuickSel>;
|
|
11
|
+
onSelectionsReceived: Subject<Selection[]>;
|
|
12
|
+
onImageReceived: Subject<string>;
|
|
13
|
+
onRenderStarted: Subject<void>;
|
|
14
|
+
onRenderImageReceived: Subject<string>;
|
|
15
|
+
onDraftRenderImageReceived: Subject<string>;
|
|
16
|
+
onArticleInfoReceived: Subject<string>;
|
|
17
|
+
onUpdateProductInfoTab: Subject<number>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProductConnectorService } from './product-connector.service';
|
|
2
|
+
import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
|
|
3
|
+
export declare class ProductModuleService {
|
|
4
|
+
private _iOneConnectorService;
|
|
5
|
+
private _superArticles;
|
|
6
|
+
constructor(_iOneConnectorService: ProductConnectorService);
|
|
7
|
+
getArticle(id: string): Promise<SuperArticle>;
|
|
8
|
+
private _getArticle;
|
|
9
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { JsonUtilsService } from '../utils/json-utils.service';
|
|
3
3
|
import { DictionaryService } from './dictionary.service';
|
|
4
4
|
import { Settings } from '../model/settings';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ProductSettingsService {
|
|
6
6
|
private _jsonUtilsService;
|
|
7
7
|
private _dictionaryService;
|
|
8
|
-
settings: Settings;
|
|
8
|
+
set settings(value: Settings);
|
|
9
|
+
get settings(): Settings;
|
|
9
10
|
settingsLoaded: BehaviorSubject<boolean>;
|
|
10
11
|
private _settings;
|
|
11
12
|
constructor(_jsonUtilsService: JsonUtilsService, _dictionaryService: DictionaryService);
|
|
13
|
+
initializeSettings(): Promise<void>;
|
|
12
14
|
createSettingsFromObject(obj: any): Promise<void>;
|
|
13
|
-
|
|
15
|
+
settingsFinished(): Promise<void>;
|
|
14
16
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@mixin scrollbar-gradient($pos, $color, $stopPoint) {
|
|
2
|
+
background: linear-gradient($pos, $color, $color $stopPoint, transparent $stopPoint, transparent);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@mixin scrollbar-full-style($thumbColor, $trackColor, $stopPoint) {
|
|
6
|
+
&::-webkit-scrollbar-thumb:vertical {
|
|
7
|
+
@include scrollbar-gradient(to left, $thumbColor, $stopPoint);
|
|
8
|
+
}
|
|
9
|
+
&::-webkit-scrollbar-track:vertical {
|
|
10
|
+
@include scrollbar-gradient(to left, $trackColor, $stopPoint);
|
|
11
|
+
}
|
|
12
|
+
&::-webkit-scrollbar-thumb:horizontal {
|
|
13
|
+
@include scrollbar-gradient(to top, $thumbColor, $stopPoint);
|
|
14
|
+
}
|
|
15
|
+
&::-webkit-scrollbar-track:horizontal {
|
|
16
|
+
@include scrollbar-gradient(to top, $trackColor, $stopPoint);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
$action-color: #2b60a7;
|
|
3
|
+
$action-color-secondary: #74B77F;
|
|
4
|
+
$border-color: #f6f5f4;
|
|
5
|
+
$background-color: #e4edf4;
|
|
6
|
+
$primary-color: #22313C;
|
|
7
|
+
$primary-color-light: #5b6875;
|
|
8
|
+
|
|
9
|
+
$color-scrollbar-thumb: #484f60;
|
|
10
|
+
$color-scrollbar-background: #e8eceb;
|
|
11
|
+
$color-tooltip-background: #a2857b;
|
|
12
|
+
|
|
13
|
+
$color-error: #f15152;
|
|
14
|
+
|
|
15
|
+
$scrollbar-narrow-stop-point: 25%;
|
|
16
|
+
$scrollbar-mini-stop-point: 10%;
|
|
17
|
+
$scrollbar-size: 15px;
|
|
18
|
+
|
|
19
|
+
$default-font-size: 12px;
|
|
20
|
+
|
|
21
|
+
$default-width: 340px;
|