@colijnit/product 1.9.5 → 2.9.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.
Files changed (66) hide show
  1. package/app/components/product-additional-info/product-additional-info.component.d.ts +4 -3
  2. package/app/components/product-external-source/product-external-source.component.d.ts +30 -0
  3. package/app/components/product-external-source/product-external-source.module.d.ts +2 -0
  4. package/app/components/product-page/product-page.component.d.ts +4 -0
  5. package/app/components/product-page/product-page.module.d.ts +2 -0
  6. package/app/ione-product.component.d.ts +1 -3
  7. package/app/model/{settings.d.ts → productSettings.d.ts} +3 -2
  8. package/app/pipe/pipe.module.d.ts +2 -0
  9. package/app/service/product-connector-adapter.service.d.ts +8 -2
  10. package/app/service/product-connector.service.d.ts +10 -5
  11. package/app/service/product-settings.service.d.ts +3 -3
  12. package/bundles/colijnit-product.umd.js +1476 -1262
  13. package/bundles/colijnit-product.umd.js.map +1 -1
  14. package/bundles/colijnit-product.umd.min.js +2 -2
  15. package/bundles/colijnit-product.umd.min.js.map +1 -1
  16. package/colijnit-product.d.ts +29 -28
  17. package/colijnit-product.metadata.json +1 -1
  18. package/esm2015/app/components/product-additional-info/product-additional-info.component.js +23 -16
  19. package/esm2015/app/components/product-addtocart/product-addtocart.component.js +2 -2
  20. package/esm2015/app/components/product-delivery/product-delivery.component.js +1 -2
  21. package/esm2015/app/components/product-external-source/product-external-source.component.js +123 -0
  22. package/esm2015/app/components/product-external-source/product-external-source.module.js +23 -0
  23. package/esm2015/app/components/product-page/product-page.component.js +45 -15
  24. package/esm2015/app/components/product-page/product-page.module.js +66 -0
  25. package/esm2015/app/ione-product.component.js +38 -19
  26. package/esm2015/app/ione-product.module.js +8 -61
  27. package/esm2015/app/model/productSettings.js +16 -0
  28. package/esm2015/app/pipe/pipe.module.js +20 -0
  29. package/esm2015/app/product-version.js +3 -3
  30. package/esm2015/app/service/dictionary.service.js +1 -1
  31. package/esm2015/app/service/product-connector-adapter.service.js +34 -9
  32. package/esm2015/app/service/product-connector.service.js +33 -35
  33. package/esm2015/app/service/product-event.service.js +2 -6
  34. package/esm2015/app/service/product-settings.service.js +13 -74
  35. package/esm2015/colijnit-product.js +30 -29
  36. package/esm2015/public_api.js +3 -1
  37. package/esm5/app/components/product-additional-info/product-additional-info.component.js +43 -24
  38. package/esm5/app/components/product-addtocart/product-addtocart.component.js +2 -2
  39. package/esm5/app/components/product-delivery/product-delivery.component.js +1 -2
  40. package/esm5/app/components/product-external-source/product-external-source.component.js +126 -0
  41. package/esm5/app/components/product-external-source/product-external-source.module.js +26 -0
  42. package/esm5/app/components/product-page/product-page.component.js +49 -15
  43. package/esm5/app/components/product-page/product-page.module.js +69 -0
  44. package/esm5/app/ione-product.component.js +47 -20
  45. package/esm5/app/ione-product.module.js +8 -61
  46. package/esm5/app/model/productSettings.js +18 -0
  47. package/esm5/app/pipe/pipe.module.js +23 -0
  48. package/esm5/app/product-version.js +3 -3
  49. package/esm5/app/service/dictionary.service.js +1 -1
  50. package/esm5/app/service/product-connector-adapter.service.js +61 -10
  51. package/esm5/app/service/product-connector.service.js +65 -52
  52. package/esm5/app/service/product-event.service.js +2 -6
  53. package/esm5/app/service/product-settings.service.js +14 -74
  54. package/esm5/colijnit-product.js +30 -29
  55. package/esm5/public_api.js +3 -1
  56. package/fesm2015/colijnit-product.js +1189 -1043
  57. package/fesm2015/colijnit-product.js.map +1 -1
  58. package/fesm5/colijnit-product.js +1447 -1234
  59. package/fesm5/colijnit-product.js.map +1 -1
  60. package/package.json +5 -4
  61. package/public_api.d.ts +2 -0
  62. package/app/service/product-module.service.d.ts +0 -9
  63. package/esm2015/app/model/settings.js +0 -15
  64. package/esm2015/app/service/product-module.service.js +0 -39
  65. package/esm5/app/model/settings.js +0 -17
  66. package/esm5/app/service/product-module.service.js +0 -50
@@ -1,10 +1,10 @@
1
1
  import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
3
  import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
4
- import { ProductModuleService } from '../../service/product-module.service';
4
+ import { ProductConnectorService } from '../../service/product-connector.service';
5
5
  export declare class ProductAdditionalInfoComponent implements OnInit {
6
6
  private _sanitizer;
7
- private _moduleService;
7
+ private _connectorService;
8
8
  private _changeDetector;
9
9
  set article(value: ArticleFullObject);
10
10
  get article(): ArticleFullObject;
@@ -12,7 +12,8 @@ export declare class ProductAdditionalInfoComponent implements OnInit {
12
12
  textParts: SafeHtml[];
13
13
  info: string;
14
14
  private _article;
15
- constructor(_sanitizer: DomSanitizer, _moduleService: ProductModuleService, _changeDetector: ChangeDetectorRef);
15
+ private _superArticles;
16
+ constructor(_sanitizer: DomSanitizer, _connectorService: ProductConnectorService, _changeDetector: ChangeDetectorRef);
16
17
  ngOnInit(): void;
17
18
  private _getTextsSuperArticle;
18
19
  private _prepareArticleTexts;
@@ -0,0 +1,30 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
+ import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
4
+ import { ProductConnectorService } from '../../service/product-connector.service';
5
+ import { ArticleListObject } from '@colijnit/articleapi/build/model/article-list-object';
6
+ import { ProductEventService } from '../../service/product-event.service';
7
+ export declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
8
+ private _sanitizer;
9
+ private _productConnectorService;
10
+ private _appEventService;
11
+ sku: string;
12
+ set externalSource(value: ExternalSource);
13
+ get externalSource(): ExternalSource;
14
+ options: {};
15
+ addToCart: EventEmitter<string>;
16
+ addToQuote: EventEmitter<string>;
17
+ alternativeClick: EventEmitter<ArticleListObject>;
18
+ showClass(): boolean;
19
+ showProduct: boolean;
20
+ safeUrl: SafeResourceUrl;
21
+ loaded: boolean;
22
+ externalUrl: string;
23
+ externalSettings: any;
24
+ private _externalSource;
25
+ private _subs;
26
+ constructor(_sanitizer: DomSanitizer, _productConnectorService: ProductConnectorService, _appEventService: ProductEventService);
27
+ ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ private _prepareExternalSource;
30
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ProductExternalSourceModule {
2
+ }
@@ -20,6 +20,8 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
20
20
  fullscreenbutton: ElementRef;
21
21
  set sku(value: string);
22
22
  get sku(): string;
23
+ set settings(value: any);
24
+ get settings(): any;
23
25
  set fullScreen(value: boolean);
24
26
  get fullScreen(): boolean;
25
27
  get fullScreenIcon(): IconEnum;
@@ -40,6 +42,7 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
40
42
  private _fullScreen;
41
43
  private _currentView;
42
44
  private _subs;
45
+ private _settings;
43
46
  constructor(_ione: ProductConnectorService, _renderer: Renderer2, _changeDetector: ChangeDetectorRef, iconCache: IconCacheService, settingsService: ProductSettingsService, appEventService: ProductEventService);
44
47
  ngOnInit(): void;
45
48
  ngAfterViewInit(): void;
@@ -47,5 +50,6 @@ export declare class ProductPageComponent implements OnInit, OnDestroy, AfterVie
47
50
  setInstance(event: CustomEvent): void;
48
51
  handleStartConfiguration(): void;
49
52
  showFullScreen(): void;
53
+ private _handleSettingsLoaded;
50
54
  private _getArticle;
51
55
  }
@@ -0,0 +1,2 @@
1
+ export declare class ProductPageModule {
2
+ }
@@ -24,13 +24,11 @@ export declare class IoneProductComponent implements OnChanges, OnDestroy {
24
24
  onArticleReceived: EventEmitter<ArticleQuickSel>;
25
25
  onSelectionsReceived: EventEmitter<Selection[]>;
26
26
  onAddToQuote: EventEmitter<string>;
27
- upAndLoaded: boolean;
28
27
  private _settings;
29
28
  private _subs;
30
29
  constructor(_dictionary: DictionaryService, _jsonUtils: JsonUtilsService, _ione: ProductConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: ProductEventService, _settingsService: ProductSettingsService);
31
30
  ngOnChanges(changes: SimpleChanges): void;
32
31
  ngOnDestroy(): void;
33
- private _handleSettingsLoaded;
34
32
  private _handleAnswerInfoReceived;
35
- private _initConnection;
33
+ private _handleAddToCart;
36
34
  }
@@ -1,6 +1,6 @@
1
1
  import { SettingsOptions } from './settings-options';
2
2
  import { RenderParameters } from './render-parameters';
3
- export declare class Settings {
3
+ export declare class ProductSettings {
4
4
  url: string;
5
5
  schema: string;
6
6
  version: string;
@@ -11,7 +11,8 @@ export declare class Settings {
11
11
  session: any;
12
12
  useGroups: boolean;
13
13
  useRenders: boolean;
14
- useEncryption: boolean;
14
+ useLoginEncryption: boolean;
15
+ createWebOrder: boolean;
15
16
  useMatch: boolean;
16
17
  assetPath: string;
17
18
  assetIndex: string;
@@ -0,0 +1,2 @@
1
+ export declare class PipeModule {
2
+ }
@@ -5,23 +5,29 @@ import { SuperArticle } from '@colijnit/articleapi/build/model/super-article';
5
5
  import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
6
6
  import { Articles } from '@colijnit/articleapi/build/articles';
7
7
  import { Options } from '@colijnit/ioneconnector/build/model/options';
8
+ import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
8
9
  import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
9
10
  import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
11
+ import { Transaction } from '@colijnit/transactionapi/build/transaction';
10
12
  export declare class ProductConnectorAdapterService implements OnDestroy {
11
13
  readonly showLoader: Subject<boolean>;
12
14
  articleConnector?: Articles;
15
+ transactionConnector: Transaction;
13
16
  private _boFactory;
14
17
  constructor();
15
18
  ngOnDestroy(): void;
16
- initConnector(options: Options): void;
19
+ initConnector(options: Options): Promise<void>;
17
20
  setInstance(instanceId: string): void;
21
+ getProductBundleSettings(url: string, upId: number): Promise<string>;
18
22
  getDeliveryPrognosis(goodId: number, branchNr?: string): Promise<any>;
19
23
  getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
20
24
  getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
21
25
  getJsonConfiguredArticles(configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
22
- getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
26
+ getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: any, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
23
27
  getGoodIdFromArticleNr(sku: string): Promise<number>;
24
28
  getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
25
29
  getSuperArticle(id: string, branch?: string): Promise<SuperArticle>;
26
30
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
31
+ addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
32
+ getWebTransaction(): Promise<DataServiceResponseData>;
27
33
  }
@@ -7,19 +7,22 @@ import { ProductSettingsService } from './product-settings.service';
7
7
  import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
8
8
  import { DeliveryPrognosis } from '@colijnit/articleapi/build/model/delivery-prognosis';
9
9
  import { DocumentContent } from '@colijnit/articleapi/build/model/document-content';
10
+ import { DataServiceResponseData } from '@colijnit/ioneconnector/build/model/data-service-response-data';
10
11
  export declare class ProductConnectorService implements OnDestroy {
11
- connector: ProductConnectorAdapterService;
12
+ private _adapterService;
12
13
  private _settingsService;
13
14
  get shouldShowLoader(): boolean;
14
15
  controllerInitialized: BehaviorSubject<boolean>;
15
16
  private _shouldShowLoader;
16
17
  private _initializing;
17
18
  private _initialized;
18
- private readonly connectorOptions;
19
+ private _instanceId;
20
+ private connectorOptions;
19
21
  private readonly subs;
20
- constructor(connector: ProductConnectorAdapterService, _settingsService: ProductSettingsService);
22
+ constructor(_adapterService: ProductConnectorAdapterService, _settingsService: ProductSettingsService);
21
23
  ngOnDestroy(): void;
22
- initDefaultDevelopTestConnection(): Promise<void>;
24
+ initConnection(): Promise<void>;
25
+ getProductBundleSettings(url: string, upId: number): Promise<string>;
23
26
  setInstance(instanceId: string): void;
24
27
  getFullArticle(sku: string): Promise<ArticleFullObject>;
25
28
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
@@ -27,6 +30,8 @@ export declare class ProductConnectorService implements OnDestroy {
27
30
  getSelectorDeliveryDate(): Promise<DeliveryPrognosis>;
28
31
  getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
29
32
  getSuperArticle(id: string): Promise<SuperArticle>;
30
- getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
33
+ getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
34
+ addWebSessionTransactionLine(sku: string, quantity: number): Promise<DataServiceResponseData>;
35
+ getWebTransaction(): void;
31
36
  onShowLoaderChange(showLoader: boolean): void;
32
37
  }
@@ -1,12 +1,12 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
2
  import { JsonUtilsService } from '../utils/json-utils.service';
3
3
  import { DictionaryService } from './dictionary.service';
4
- import { Settings } from '../model/settings';
4
+ import { ProductSettings } from '../model/productSettings';
5
5
  export declare class ProductSettingsService {
6
6
  private _jsonUtilsService;
7
7
  private _dictionaryService;
8
- set settings(value: Settings);
9
- get settings(): Settings;
8
+ set settings(value: ProductSettings);
9
+ get settings(): ProductSettings;
10
10
  settingsLoaded: BehaviorSubject<boolean>;
11
11
  private _settings;
12
12
  constructor(_jsonUtilsService: JsonUtilsService, _dictionaryService: DictionaryService);