@colijnit/product 1.0.12 → 1.9.3
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 +9 -4
- package/app/components/product-additional-description/product-additional-description.component.d.ts +2 -1
- package/app/components/product-additional-info/product-additional-info.component.d.ts +2 -1
- package/app/components/product-addtocart/product-addtocart.component.d.ts +2 -1
- package/app/components/product-delivery/product-delivery.component.d.ts +1 -1
- package/app/components/product-info-tabs/product-info-tabs.component.d.ts +1 -1
- package/app/components/product-page/product-page.component.d.ts +8 -5
- package/app/components/product-price/product-price.component.d.ts +3 -2
- package/app/components/product-properties/product-properties.component.d.ts +2 -1
- package/app/components/product-related/product-related.component.d.ts +2 -1
- package/app/components/product-stock/product-stock.component.d.ts +1 -1
- package/app/components/product-symbols/product-symbols.component.d.ts +2 -1
- package/app/ione-product.component.d.ts +8 -5
- package/app/ione-product.module.d.ts +2 -0
- package/app/model/settings.d.ts +5 -0
- package/app/service/app-event.service.d.ts +5 -0
- package/app/service/app-initializer.service.d.ts +6 -0
- package/app/service/dictionary.service.d.ts +2 -2
- package/app/service/i-one-connector-adapter.service.d.ts +5 -2
- package/app/service/i-one-controller.service.d.ts +5 -3
- package/app/service/icon-cache.service.d.ts +1 -1
- package/app/service/settings.service.d.ts +5 -3
- package/app/style/_scrollbars.mixins.scss +18 -0
- package/app/style/_variables.scss +21 -0
- package/{css/styles.css → app/style/product-globals.scss} +97 -73
- package/bundles/colijnit-product.umd.js +275 -224
- 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 +1 -0
- 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 +26 -18
- package/esm2015/app/components/product-additional-description/product-additional-description.component.js +4 -4
- package/esm2015/app/components/product-additional-info/product-additional-info.component.js +7 -7
- package/esm2015/app/components/product-addtocart/product-addtocart.component.js +29 -21
- package/esm2015/app/components/product-delivery/product-delivery.component.js +4 -4
- package/esm2015/app/components/product-description/product-description.component.js +4 -4
- package/esm2015/app/components/product-documents/product-documents.component.js +4 -4
- package/esm2015/app/components/product-info/product-info.component.js +4 -4
- package/esm2015/app/components/product-info-tabs/product-info-tabs.component.js +5 -5
- package/esm2015/app/components/product-page/product-page.component.js +27 -56
- package/esm2015/app/components/product-price/product-price.component.js +5 -5
- package/esm2015/app/components/product-properties/product-properties.component.js +5 -5
- package/esm2015/app/components/product-related/product-related.component.js +7 -7
- package/esm2015/app/components/product-selector-type/product-selector-type.component.js +8 -8
- package/esm2015/app/components/product-stock/product-stock.component.js +4 -4
- package/esm2015/app/components/product-symbols/product-symbols.component.js +4 -4
- package/esm2015/app/ione-product.component.js +26 -52
- package/esm2015/app/ione-product.module.js +20 -5
- package/esm2015/app/model/settings.js +2 -1
- package/esm2015/app/pipe/localize.pipe.js +2 -2
- package/esm2015/app/service/app-event.service.js +13 -9
- package/esm2015/app/service/app-initializer.service.js +26 -0
- package/esm2015/app/service/dictionary.service.js +4 -4
- package/esm2015/app/service/i-one-connector-adapter.service.js +13 -7
- package/esm2015/app/service/i-one-controller.service.js +21 -8
- package/esm2015/app/service/icon-cache.service.js +3 -3
- package/esm2015/app/service/module.service.js +5 -5
- package/esm2015/app/service/settings.service.js +50 -21
- package/esm2015/app/utils/json-utils.service.js +7 -8
- package/esm2015/colijnit-product.js +2 -1
- package/esm5/app/components/core/header/header.component.js +4 -4
- package/esm5/app/components/image-carousel/image-carousel.component.js +26 -18
- package/esm5/app/components/product-additional-description/product-additional-description.component.js +4 -4
- package/esm5/app/components/product-additional-info/product-additional-info.component.js +13 -12
- package/esm5/app/components/product-addtocart/product-addtocart.component.js +41 -29
- package/esm5/app/components/product-delivery/product-delivery.component.js +4 -4
- package/esm5/app/components/product-description/product-description.component.js +4 -4
- package/esm5/app/components/product-documents/product-documents.component.js +4 -4
- package/esm5/app/components/product-info/product-info.component.js +4 -4
- package/esm5/app/components/product-info-tabs/product-info-tabs.component.js +5 -5
- package/esm5/app/components/product-page/product-page.component.js +29 -58
- package/esm5/app/components/product-price/product-price.component.js +5 -5
- package/esm5/app/components/product-properties/product-properties.component.js +5 -5
- package/esm5/app/components/product-related/product-related.component.js +7 -7
- package/esm5/app/components/product-selector-type/product-selector-type.component.js +8 -8
- package/esm5/app/components/product-stock/product-stock.component.js +4 -4
- package/esm5/app/components/product-symbols/product-symbols.component.js +4 -4
- package/esm5/app/ione-product.component.js +27 -59
- package/esm5/app/ione-product.module.js +20 -5
- package/esm5/app/model/settings.js +2 -1
- package/esm5/app/pipe/localize.pipe.js +5 -5
- package/esm5/app/service/app-event.service.js +13 -9
- package/esm5/app/service/app-initializer.service.js +29 -0
- package/esm5/app/service/dictionary.service.js +7 -7
- package/esm5/app/service/i-one-connector-adapter.service.js +13 -7
- package/esm5/app/service/i-one-controller.service.js +22 -9
- package/esm5/app/service/icon-cache.service.js +3 -3
- package/esm5/app/service/module.service.js +7 -7
- package/esm5/app/service/settings.service.js +117 -86
- package/esm5/app/utils/json-utils.service.js +8 -9
- package/esm5/colijnit-product.js +2 -1
- package/fesm2015/colijnit-product.js +200 -157
- package/fesm2015/colijnit-product.js.map +1 -1
- package/fesm5/colijnit-product.js +280 -233
- package/fesm5/colijnit-product.js.map +1 -1
- package/package.json +17 -42
|
@@ -4,31 +4,36 @@ import { IOneControllerService } from '../../service/i-one-controller.service';
|
|
|
4
4
|
import { AppEventService } from '../../service/app-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;
|
|
18
|
+
set images(value: CoDocument[]);
|
|
16
19
|
handleWindowResize(): void;
|
|
17
20
|
gotoNextSlide(): void;
|
|
18
21
|
gotoPrevSlide(): void;
|
|
19
22
|
isCurrentIndex(index: number): boolean;
|
|
20
|
-
currentIndex: number;
|
|
23
|
+
get currentIndex(): number;
|
|
24
|
+
set currentIndex(value: number);
|
|
21
25
|
resizing: boolean;
|
|
26
|
+
get images(): CoDocument[];
|
|
22
27
|
private _resizeTimer;
|
|
23
28
|
private _currentIndex;
|
|
24
29
|
private _images;
|
|
25
30
|
private _subs;
|
|
26
|
-
constructor(_ione: IOneControllerService, _appEventService: AppEventService, _changeDetector: ChangeDetectorRef, iconCache: IconCacheService);
|
|
31
|
+
constructor(_ione: IOneControllerService, _appEventService: AppEventService, _changeDetector: ChangeDetectorRef, _domSanitizer: DomSanitizer, iconCache: IconCacheService);
|
|
27
32
|
ngOnInit(): void;
|
|
28
33
|
ngOnDestroy(): void;
|
|
29
34
|
handleThumbClick(index: number): void;
|
|
30
35
|
onForceRenderImage(): void;
|
|
31
|
-
getImageSrc(image: CoDocument | CustomEvent):
|
|
36
|
+
getImageSrc(image: CoDocument | CustomEvent): SafeUrl;
|
|
32
37
|
private _loadImages;
|
|
33
38
|
private _scrollCarouselToIndex;
|
|
34
39
|
}
|
package/app/components/product-additional-description/product-additional-description.component.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { ArticleFullObject } from '@colijnit/ioneconnector/build/model/article-f
|
|
|
3
3
|
import { AppEventService } from '../../service/app-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
10
|
constructor(_appEventService: AppEventService);
|
|
@@ -6,7 +6,8 @@ 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;
|
|
@@ -14,7 +14,8 @@ export declare class ProductAddtocartComponent implements OnInit, OnDestroy {
|
|
|
14
14
|
configurable: boolean;
|
|
15
15
|
configuring: boolean;
|
|
16
16
|
fullscreen: boolean;
|
|
17
|
-
quantity: number;
|
|
17
|
+
set quantity(value: number);
|
|
18
|
+
get quantity(): number;
|
|
18
19
|
startConfiguration: EventEmitter<void>;
|
|
19
20
|
addToCartClick: EventEmitter<number>;
|
|
20
21
|
addToQuoteClick: EventEmitter<number>;
|
|
@@ -10,7 +10,7 @@ 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
16
|
constructor(_localizePipe: LocalizePipe, _iOne: IOneControllerService, _iconCache: IconCacheService);
|
|
@@ -8,7 +8,7 @@ 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
13
|
constructor(_appEventService: AppEventService);
|
|
14
14
|
ngOnDestroy(): void;
|
|
@@ -18,10 +18,13 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
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;
|
|
@@ -40,8 +43,8 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
|
|
|
40
43
|
ngOnInit(): void;
|
|
41
44
|
ngAfterViewInit(): void;
|
|
42
45
|
ngOnDestroy(): void;
|
|
46
|
+
setInstance(event: CustomEvent): void;
|
|
43
47
|
handleStartConfiguration(): void;
|
|
44
48
|
showFullScreen(): void;
|
|
45
|
-
private _prepareFullscreen;
|
|
46
49
|
private _getArticle;
|
|
47
50
|
}
|
|
@@ -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;
|
|
@@ -2,7 +2,8 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { ArticleFullObject } from '@colijnit//ioneconnector/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;
|
|
@@ -7,7 +7,8 @@ export declare class ProductRelatedComponent {
|
|
|
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
13
|
constructor(_iOne: IOneControllerService, _appEventService: AppEventService);
|
|
13
14
|
handleContentClick(article: ArticleListObject): void;
|
|
@@ -8,7 +8,7 @@ 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
14
|
constructor(_iOne: IOneControllerService, _iconCache: IconCacheService);
|
|
@@ -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
3
|
import { IOneControllerService } from './service/i-one-controller.service';
|
|
4
4
|
import { DictionaryService } from './service/dictionary.service';
|
|
5
5
|
import { AppEventService } from './service/app-event.service';
|
|
6
6
|
import { ArticleListObject } from '@colijnit/ioneconnector/build/model/article-list-object';
|
|
7
7
|
import { SettingsService } from './service/settings.service';
|
|
8
|
-
|
|
8
|
+
import { Article } from '@colijnit//ioneconnector/build/model/article';
|
|
9
|
+
import { Selection } from '@colijnit/ioneconnector/build/model/selection';
|
|
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<Article>;
|
|
25
|
+
onSelectionsReceived: EventEmitter<Selection[]>;
|
|
21
26
|
onAddToQuote: EventEmitter<string>;
|
|
22
27
|
upAndLoaded: boolean;
|
|
23
28
|
private _settings;
|
|
24
29
|
private _subs;
|
|
25
30
|
constructor(_dictionary: DictionaryService, _jsonUtils: JsonUtilsService, _ione: IOneControllerService, _changeDetector: ChangeDetectorRef, _appEventService: AppEventService, _settingsService: SettingsService);
|
|
26
|
-
ngOnInit(): Promise<void>;
|
|
27
|
-
ngAfterViewInit(): Promise<void>;
|
|
28
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
29
32
|
ngOnDestroy(): void;
|
|
30
33
|
private _handleSettingsLoaded;
|
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;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
2
|
import { ArticleListObject } from '@colijnit/ioneconnector/build/model/article-list-object';
|
|
3
|
+
import { Article } from '@colijnit//ioneconnector/build/model/article';
|
|
4
|
+
import { Selection } from '@colijnit/ioneconnector/build/model/selection';
|
|
3
5
|
export declare class AppEventService {
|
|
4
6
|
onAddToCart: Subject<string>;
|
|
5
7
|
onAlternativeClick: Subject<ArticleListObject>;
|
|
6
8
|
onAddToQuote: Subject<string>;
|
|
7
9
|
onForceRenderImage: Subject<void>;
|
|
10
|
+
onArticleReceived: Subject<Article>;
|
|
11
|
+
onSelectionsReceived: Subject<Selection[]>;
|
|
8
12
|
onImageReceived: Subject<string>;
|
|
9
13
|
onRenderStarted: Subject<void>;
|
|
10
14
|
onRenderImageReceived: Subject<string>;
|
|
15
|
+
onDraftRenderImageReceived: Subject<string>;
|
|
11
16
|
onArticleInfoReceived: Subject<string>;
|
|
12
17
|
onUpdateProductInfoTab: Subject<number>;
|
|
13
18
|
}
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
3
|
import { Connector } from '@colijnit//ioneconnector';
|
|
4
4
|
import { Options } from '@colijnit//ioneconnector/build/model/options';
|
|
5
5
|
import { SuperArticleImage } from '@colijnit//ioneconnector/build/model/super-article-image';
|
|
@@ -7,17 +7,20 @@ import { TurnoverGroupImage } from '@colijnit//ioneconnector/build/model/turnove
|
|
|
7
7
|
import { ArticleGroupImage } from '@colijnit//ioneconnector/build/model/article-group-image';
|
|
8
8
|
import { ArticleFullObject } from '@colijnit//ioneconnector/build/model/article-full-object';
|
|
9
9
|
import { SuperArticle } from '@colijnit/ioneconnector/build/model/super-article';
|
|
10
|
+
import { ConfiguratorStatisticsEnvironment } from '@colijnit/ioneconnector/build/model/configurator-statistics-environment';
|
|
10
11
|
export declare class IOneConnectorAdapterService implements OnDestroy {
|
|
11
12
|
readonly showLoader: Subject<boolean>;
|
|
12
13
|
connector?: Connector;
|
|
13
14
|
constructor();
|
|
14
15
|
ngOnDestroy(): void;
|
|
15
16
|
initConnector(options: Options): void;
|
|
17
|
+
setInstance(instanceId: string): void;
|
|
16
18
|
getDeliveryPrognosis(goodId: number): Promise<any>;
|
|
17
19
|
getArticleGroupImages(): Promise<ArticleGroupImage[]>;
|
|
18
20
|
getTurnoverGroupImages(): Promise<TurnoverGroupImage[]>;
|
|
19
21
|
getSuperArticleImages(): Promise<SuperArticleImage[]>;
|
|
20
|
-
getJsonConfiguredArticles(): Promise<void>;
|
|
22
|
+
getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<void>;
|
|
23
|
+
getJsonArticleFlatTree(goodId: number): Promise<void>;
|
|
21
24
|
getFullArticle(skuOrId: string): Promise<ArticleFullObject>;
|
|
22
25
|
getSuperArticle(id: string): Promise<SuperArticle>;
|
|
23
26
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<any>;
|
|
@@ -4,15 +4,15 @@ import { SuperArticleImage } from '@colijnit//ioneconnector/build/model/super-ar
|
|
|
4
4
|
import { TurnoverGroupImage } from '@colijnit//ioneconnector/build/model/turnover-group-image';
|
|
5
5
|
import { ArticleGroupImage } from '@colijnit//ioneconnector/build/model/article-group-image';
|
|
6
6
|
import { IOneConnectorAdapterService } from './i-one-connector-adapter.service';
|
|
7
|
-
import { BehaviorSubject } from 'rxjs
|
|
7
|
+
import { BehaviorSubject } from 'rxjs';
|
|
8
8
|
import { ArticleFullObject } from '@colijnit//ioneconnector/build/model/article-full-object';
|
|
9
9
|
import { SuperArticle } from '@colijnit/ioneconnector/build/model/super-article';
|
|
10
10
|
import { SettingsService } from './settings.service';
|
|
11
11
|
export declare class IOneControllerService implements OnDestroy {
|
|
12
12
|
connector: IOneConnectorAdapterService;
|
|
13
13
|
private _settingsService;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
get article(): Article;
|
|
15
|
+
get shouldShowLoader(): boolean;
|
|
16
16
|
controllerInitialized: BehaviorSubject<boolean>;
|
|
17
17
|
private _article;
|
|
18
18
|
private _shouldShowLoader;
|
|
@@ -23,6 +23,7 @@ export declare class IOneControllerService implements OnDestroy {
|
|
|
23
23
|
constructor(connector: IOneConnectorAdapterService, _settingsService: SettingsService);
|
|
24
24
|
ngOnDestroy(): void;
|
|
25
25
|
initDefaultDevelopTestConnection(): Promise<void>;
|
|
26
|
+
setInstance(instanceId: string): void;
|
|
26
27
|
getFullArticle(skuOrId: string): Promise<ArticleFullObject>;
|
|
27
28
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<any>;
|
|
28
29
|
getDeliveryPrognosis(goodId: number): Promise<any>;
|
|
@@ -31,5 +32,6 @@ export declare class IOneControllerService implements OnDestroy {
|
|
|
31
32
|
getSuperArticleImages(): Promise<SuperArticleImage[]>;
|
|
32
33
|
getSuperArticle(id: string): Promise<SuperArticle>;
|
|
33
34
|
getJsonConfiguredArticles(): Promise<any>;
|
|
35
|
+
getJsonArticleFlatTree(goodId: number): Promise<any>;
|
|
34
36
|
onShowLoaderChange(showLoader: boolean): void;
|
|
35
37
|
}
|
|
@@ -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;
|
|
@@ -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
5
|
export declare class SettingsService {
|
|
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;
|