@colijnit/catalog 12.1.34 → 12.1.36

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 (65) hide show
  1. package/bundles/colijnit-catalog.umd.js +513 -256
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog.d.ts +24 -35
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/colijnit-catalog.js +25 -36
  6. package/esm2015/lib/cache/service/business-object-cache-manager.service.js +2 -14
  7. package/esm2015/lib/cache/service/select-multiple-cache.service.js +2 -7
  8. package/esm2015/lib/cache/service/select-multiple-parameterized-cache.service.js +2 -7
  9. package/esm2015/lib/cache/service/select-single-cache.service.js +2 -7
  10. package/esm2015/lib/cache/service/select-single-parameterized-cache.service.js +2 -7
  11. package/esm2015/lib/catalog-version.js +3 -3
  12. package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +17 -5
  13. package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +5 -4
  14. package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +77 -34
  15. package/esm2015/lib/component/catalog-external-source/catalog-external-source.module.js +4 -2
  16. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +36 -19
  17. package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +29 -11
  18. package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +32 -10
  19. package/esm2015/lib/component/catalog-search/catalog-search.component.js +117 -15
  20. package/esm2015/lib/component/catalog-search/catalog-search.module.js +39 -2
  21. package/esm2015/lib/component/catalog-search-header/catalog-search-header.component.js +15 -4
  22. package/esm2015/lib/component/catalog-search-header/catalog-search-header.module.js +4 -3
  23. package/esm2015/lib/enum/external-settings.interface.js +2 -0
  24. package/esm2015/lib/enum/icon.enum.js +4 -1
  25. package/esm2015/lib/model/icon.js +5 -2
  26. package/esm2015/lib/model/settings.js +3 -2
  27. package/esm2015/lib/service/catalog-connector-adapter.service.js +40 -27
  28. package/esm2015/lib/service/catalog-connector.service.js +7 -11
  29. package/esm2015/lib/service/catalog-filter.service.js +14 -15
  30. package/esm2015/lib/service/catalog-image.service.js +2 -7
  31. package/esm2015/lib/service/catalog-navigation.service.js +83 -0
  32. package/esm2015/lib/service/catalog-options.service.js +2 -8
  33. package/esm2015/lib/service/catalog-search.service.js +2 -10
  34. package/esm2015/lib/service/catalog-settings.service.js +12 -12
  35. package/esm2015/lib/service/catalog.service.js +18 -18
  36. package/esm2015/public_api.js +13 -1
  37. package/fesm2015/colijnit-catalog.js +483 -180
  38. package/fesm2015/colijnit-catalog.js.map +1 -1
  39. package/lib/cache/service/business-object-cache-manager.service.d.ts +1 -4
  40. package/lib/component/catalog-categories/catalog-categories.component.d.ts +8 -3
  41. package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +34 -16
  42. package/lib/component/catalog-external-source/style/_layout.scss +0 -47
  43. package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +15 -8
  44. package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +12 -5
  45. package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +6 -1
  46. package/lib/component/catalog-navigation/style/_layout.scss +2 -0
  47. package/lib/component/catalog-navigation/style/_material-definition.scss +6 -1
  48. package/lib/component/catalog-search/catalog-search.component.d.ts +18 -1
  49. package/lib/component/catalog-search/catalog-search.module.d.ts +2 -0
  50. package/lib/component/catalog-search/style/_layout.scss +47 -1
  51. package/lib/component/catalog-search/style/_material-definition.scss +31 -2
  52. package/lib/component/catalog-search-header/catalog-search-header.component.d.ts +7 -1
  53. package/lib/component/catalog-search-header/style/_layout.scss +4 -1
  54. package/lib/component/catalog-search-header/style/_material-definition.scss +2 -1
  55. package/lib/enum/external-settings.interface.d.ts +4 -0
  56. package/lib/enum/icon.enum.d.ts +4 -1
  57. package/lib/model/settings.d.ts +2 -1
  58. package/lib/service/catalog-connector-adapter.service.d.ts +14 -9
  59. package/lib/service/catalog-connector.service.d.ts +8 -7
  60. package/lib/service/catalog-navigation.service.d.ts +27 -0
  61. package/lib/service/catalog-settings.service.d.ts +1 -1
  62. package/lib/service/catalog.service.d.ts +5 -2
  63. package/lib/style/_variables.scss +21 -9
  64. package/package.json +7 -7
  65. package/public_api.d.ts +12 -0
@@ -1,4 +1,3 @@
1
- import { OnDestroy } from '@angular/core';
2
1
  import { Subject } from 'rxjs';
3
2
  import { CacheField } from '../cache-field';
4
3
  import { ParameterCacheField } from '../parameter-cache-field';
@@ -14,15 +13,13 @@ import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/busines
14
13
  *
15
14
  * All caches are reset when the user logs out.
16
15
  */
17
- export declare class BusinessObjectCacheManagerService implements OnDestroy {
16
+ export declare class BusinessObjectCacheManagerService {
18
17
  readonly reset: Subject<void>;
19
18
  private static _NullBoId;
20
19
  private _selectMultipleCache;
21
20
  private _selectMultipleParameterizedCache;
22
21
  private _selectSingleCache;
23
22
  private _selectSingleParameterizedCache;
24
- private _logoutSub;
25
- ngOnDestroy(): void;
26
23
  /**
27
24
  * Creates and adds a new simple cache item for the given key with the given load function.
28
25
  * @param key
@@ -1,17 +1,22 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { CatalogService } from '../../service/catalog.service';
3
3
  import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
4
4
  import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
5
- export declare class CatalogCategoriesComponent implements OnInit {
5
+ import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
6
+ export declare class CatalogCategoriesComponent implements OnInit, OnDestroy {
6
7
  private _catalogService;
8
+ private _adapterService;
7
9
  showTurnoverGroups: boolean;
8
10
  categoryClick: EventEmitter<string>;
9
11
  turnoverGroupClick: EventEmitter<string>;
12
+ parentForOverlay: ElementRef;
10
13
  showClass(): boolean;
11
14
  categories: ArticleCategory[];
12
15
  turnoverGroups: TurnoverGroupImage[];
13
- constructor(_catalogService: CatalogService);
16
+ private _subs;
17
+ constructor(_catalogService: CatalogService, _adapterService: CatalogConnectorAdapterService);
14
18
  ngOnInit(): void;
19
+ ngOnDestroy(): void;
15
20
  getCategories(): Promise<void>;
16
21
  prepareTurnoverGroups(): void;
17
22
  handleCategoryClick(event: MouseEvent, category: string): void;
@@ -1,18 +1,36 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
2
- import { CatalogService } from '../../service/catalog.service';
3
- import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
4
- import { CatalogEventService } from '../../service/catalog-event.service';
5
- export declare class CatalogExternalSourceComponent implements AfterViewInit {
6
- catalogService: CatalogService;
7
- private _appEventService;
1
+ import { EventEmitter } from '@angular/core';
2
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
+ import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
4
+ import { ExternalSettingsInterface } from '../../enum/external-settings.interface';
5
+ import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
6
+ import { CatalogConnectorService } from '../../service/catalog-connector.service';
7
+ export declare class CatalogExternalSourceComponent {
8
8
  private _sanitizer;
9
- private _ref;
10
- private _renderer;
11
- externalSourceFrame: ElementRef;
12
- showClass(): boolean;
13
- private _subs;
14
- constructor(catalogService: CatalogService, _appEventService: CatalogEventService, _sanitizer: DomSanitizer, _ref: ChangeDetectorRef, _renderer: Renderer2);
15
- ngAfterViewInit(): void;
16
- ngOnDestroy(): void;
17
- getSafeUrl(): SafeUrl;
9
+ private _catalogConnectorService;
10
+ set externalSource(value: ExternalSource);
11
+ get externalSource(): ExternalSource;
12
+ title: string;
13
+ subTitle: string;
14
+ searchPlaceholder: string;
15
+ showFilter: boolean;
16
+ showNavigation: boolean;
17
+ options: {};
18
+ /**
19
+ * The name of the external source
20
+ */
21
+ name: string;
22
+ articleClick: EventEmitter<{
23
+ article: ArticleListObjectExtended;
24
+ settings: ExternalSettingsInterface;
25
+ }>;
26
+ showClass: boolean;
27
+ showCatalog: boolean;
28
+ safeUrl: SafeResourceUrl;
29
+ loaded: boolean;
30
+ externalUrl: string;
31
+ externalSettings: any;
32
+ private _externalSource;
33
+ constructor(_sanitizer: DomSanitizer, _catalogConnectorService: CatalogConnectorService);
34
+ handleArticleClick(article: ArticleListObjectExtended): void;
35
+ private _prepareExternalSource;
18
36
  }
@@ -1,51 +1,4 @@
1
1
  @include export-module('co-catalog-external-source-layout') {
2
2
  .co-catalog-external-source {
3
- //.page-wrapper {
4
- // display: flex;
5
- // flex-direction: column;
6
- // padding: 0 30px;
7
- // margin: 0 auto;
8
- // width: 100%;
9
- //}
10
- //
11
- //.component-wrapper {
12
- // display: flex;
13
- // flex-direction: column;
14
- // height: 100%;
15
- //
16
- // .page-wrapper {
17
- // flex-direction: row;
18
- // height: 100%;
19
- // align-items: flex-start;
20
- // }
21
- //}
22
- //
23
- //.content-wrapper {
24
- // display: flex;
25
- // flex-basis: 100%;
26
- // position: relative;
27
- // padding: 15px 0 0;
28
- // //flex-direction: row;
29
- // //overflow: hidden;
30
- //}
31
- //
32
- //#left_content {
33
- //
34
- //}
35
- //
36
- //#top_content {
37
- // display: flex;
38
- // flex-basis: auto;
39
- // border-bottom: 1px solid $background-color;
40
- //}
41
- //
42
- //#main_content {
43
- // width: 100%;
44
- //}
45
- //@media screen and (max-width: 640px) {
46
- // .page-wrapper {
47
- // padding: 0px;
48
- // }
49
- //}
50
3
  }
51
4
  }
@@ -1,18 +1,23 @@
1
- import { FilterItemViewmodel } from "@colijnit/corecomponents_v12";
2
- import { CatalogFilterService } from "../../../service/catalog-filter.service";
3
- import { IconCacheService } from "../../../service/icon-cache.service";
4
- import { IconEnum } from "../../../enum/icon.enum";
5
- import { CatalogSearchService } from "../../../service/catalog-search.service";
6
- import { CatalogConnectorService } from "../../../service/catalog-connector.service";
7
- export declare class CatalogFilterContentGeneralComponent {
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { FilterItemMode, FilterItemViewmodel } from '@colijnit/corecomponents_v12';
3
+ import { CatalogFilterService } from '../../../service/catalog-filter.service';
4
+ import { IconCacheService } from '../../../service/icon-cache.service';
5
+ import { IconEnum } from '../../../enum/icon.enum';
6
+ import { CatalogSearchService } from '../../../service/catalog-search.service';
7
+ import { CatalogConnectorService } from '../../../service/catalog-connector.service';
8
+ import { CatalogConnectorAdapterService } from '../../../service/catalog-connector-adapter.service';
9
+ export declare class CatalogFilterContentGeneralComponent implements OnInit, OnDestroy {
8
10
  catalogSearchService: CatalogSearchService;
9
11
  filterService: CatalogFilterService;
10
12
  iconCache: IconCacheService;
11
13
  private _catalogConnectorService;
14
+ private _adapterService;
15
+ readonly modes: typeof FilterItemMode;
12
16
  showClass(): boolean;
13
17
  readonly icons: typeof IconEnum;
14
18
  private _min;
15
19
  private _max;
20
+ private _subs;
16
21
  storeGroupCollection: FilterItemViewmodel[];
17
22
  inOutCollectionCollection: FilterItemViewmodel[];
18
23
  articleTypeCollection: FilterItemViewmodel[];
@@ -21,8 +26,10 @@ export declare class CatalogFilterContentGeneralComponent {
21
26
  priceListsSalesCollection: FilterItemViewmodel[];
22
27
  categoryCollection: FilterItemViewmodel[];
23
28
  supplierDropdownFields: {};
24
- constructor(catalogSearchService: CatalogSearchService, filterService: CatalogFilterService, iconCache: IconCacheService, _catalogConnectorService: CatalogConnectorService);
29
+ constructor(catalogSearchService: CatalogSearchService, filterService: CatalogFilterService, iconCache: IconCacheService, _catalogConnectorService: CatalogConnectorService, _adapterService: CatalogConnectorAdapterService);
25
30
  ngOnInit(): void;
31
+ ngOnDestroy(): void;
32
+ private _setCollections;
26
33
  private _setStoreGroups;
27
34
  private _setInOutCollection;
28
35
  private _setArticleTypes;
@@ -1,22 +1,29 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
1
2
  import { IconCacheService } from "../../../service/icon-cache.service";
2
3
  import { IconEnum } from "../../../enum/icon.enum";
3
4
  import { SliderComponent } from "@colijnit/corecomponents";
4
5
  import { CatalogSearchService } from "../../../service/catalog-search.service";
5
- import { FilterItemViewmodel } from "@colijnit/corecomponents_v12";
6
+ import { FilterItemMode, FilterItemViewmodel } from '@colijnit/corecomponents_v12';
6
7
  import { CatalogConnectorService } from "../../../service/catalog-connector.service";
7
8
  import { CatalogFilterService } from "../../../service/catalog-filter.service";
8
- export declare class CatalogFilterContentPurchaseComponent {
9
+ import { CatalogConnectorAdapterService } from '../../../service/catalog-connector-adapter.service';
10
+ export declare class CatalogFilterContentPurchaseComponent implements OnInit, OnDestroy {
9
11
  catalogSearchService: CatalogSearchService;
10
12
  iconCache: IconCacheService;
11
- private _catalogConnectorService;
12
13
  filterService: CatalogFilterService;
14
+ private _catalogConnectorService;
15
+ private _adapterService;
16
+ readonly modes: typeof FilterItemMode;
17
+ readonly icons: typeof IconEnum;
13
18
  showClass(): boolean;
14
19
  priceSlider: SliderComponent;
15
- readonly icons: typeof IconEnum;
16
20
  suppliers: FilterItemViewmodel[];
17
21
  priceListsPurchCollection: FilterItemViewmodel[];
18
- constructor(catalogSearchService: CatalogSearchService, iconCache: IconCacheService, _catalogConnectorService: CatalogConnectorService, filterService: CatalogFilterService);
22
+ private _subs;
23
+ constructor(catalogSearchService: CatalogSearchService, iconCache: IconCacheService, filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _adapterService: CatalogConnectorAdapterService);
19
24
  ngOnInit(): void;
25
+ ngOnDestroy(): void;
26
+ private _setCollections;
20
27
  private _setSuppliers;
21
28
  private _setPriceList;
22
29
  handleSeparateCollectionChange(filterName: string, collection: FilterItemViewmodel[]): void;
@@ -6,15 +6,18 @@ import { CatalogEventService } from '../../service/catalog-event.service';
6
6
  import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
7
7
  import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
8
8
  import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
9
+ import { CatalogConnectorAdapterService } from '../../service/catalog-connector-adapter.service';
9
10
  export declare class CatalogNavigationComponent {
10
11
  iconCache: IconCacheService;
11
12
  catalogService: CatalogService;
12
13
  private _appEventService;
14
+ private _adapterService;
13
15
  readonly icons: typeof IconEnum;
14
16
  homeLabel: string;
15
17
  collectionLabel: string;
16
18
  externalSourcesLabel: string;
17
19
  showTurnoverGroups: boolean;
20
+ view: HTMLElement;
18
21
  homeClick: EventEmitter<void>;
19
22
  categoryClick: EventEmitter<string>;
20
23
  turnoverGroupClick: EventEmitter<string>;
@@ -32,8 +35,10 @@ export declare class CatalogNavigationComponent {
32
35
  showExternalOverlay: boolean;
33
36
  get internalList(): any[];
34
37
  get externalList(): any[];
35
- constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService);
38
+ private _subs;
39
+ constructor(iconCache: IconCacheService, catalogService: CatalogService, _appEventService: CatalogEventService, _adapterService: CatalogConnectorAdapterService);
36
40
  ngOnInit(): void;
41
+ ngOnDestroy(): void;
37
42
  getCategories(): Promise<void>;
38
43
  prepareTurnoverGroups(): void;
39
44
  handleCategoryClick(event: MouseEvent, category: string): void;
@@ -30,6 +30,8 @@
30
30
  column-gap: $co-catalog-navigation-column-gap;
31
31
  box-shadow: $co-catalog-navigation-box-shadow;
32
32
  width: 100%;
33
+ max-height: $co-catalog-navigation-max-height;
34
+ overflow-y: auto;
33
35
  }
34
36
  .navigation-category {
35
37
  cursor: pointer;
@@ -1,11 +1,16 @@
1
+ :root {
2
+ --co-catalog-navigation-font-color: #{$ca-color-font};
3
+ }
1
4
  $co-catalog-navigation-font-family: $ca-font-family !default;
2
5
  $co-catalog-navigation-font-size: $ca-font-size !default;
3
- $co-catalog-navigation-font-color: $ca-color-font !default;
6
+ $co-catalog-navigation-font-color: var(--co-catalog-navigation-font-color) !default;
4
7
  $co-catalog-navigation-margin: 10px !default;
5
8
  $co-catalog-navigation-padding: 20px !default;
6
9
  $co-catalog-navigation-column-gap: 10px !default;
7
10
  $co-catalog-navigation-box-shadow: 0 3px 5px $ca-color-border !default;
8
11
 
12
+ $co-catalog-navigation-max-height: 60vh !default;
13
+
9
14
  $co-catalog-navigation-home-font-family: $ca-font-family !default;
10
15
  $co-catalog-navigation-home-font-size: $ca-font-size-big !default;
11
16
  $co-catalog-navigation-home-font-weight: bold !default;
@@ -2,25 +2,42 @@ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { CatalogSearchService } from '../../service/catalog-search.service';
3
3
  import { CatalogEventService } from '../../service/catalog-event.service';
4
4
  import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
5
+ import { IconEnum } from '../../enum/icon.enum';
6
+ import { IconCacheService } from '../../service/icon-cache.service';
7
+ import { CatalogService } from '../../service/catalog.service';
8
+ import { CatalogSettingsService } from '../../service/catalog-settings.service';
9
+ import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
5
10
  export declare class CatalogSearchComponent implements OnInit, OnDestroy {
11
+ private _settingsService;
12
+ private _catalogService;
6
13
  private _catalogSearchService;
7
14
  private _catalogEventService;
15
+ iconCacheService: IconCacheService;
16
+ readonly icons: typeof IconEnum;
17
+ set settings(value: any);
18
+ title: string;
19
+ subTitle: string;
20
+ searchPlaceholder: string;
8
21
  showNavigation: boolean;
9
22
  showLandingPage: boolean;
10
23
  showFilter: boolean;
11
24
  showViewModes: boolean;
25
+ settingsChange: EventEmitter<any>;
12
26
  onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
13
27
  onArButtonClick: EventEmitter<ArticleExtended>;
14
28
  onAddArticleButtonClick: EventEmitter<string>;
15
29
  onArticleClick: EventEmitter<ArticleExtended>;
16
30
  onStockDetailsClick: EventEmitter<ArticleExtended>;
31
+ onExternalSourceClick: EventEmitter<ExternalSourceViewmodel>;
17
32
  showClass(): boolean;
18
33
  mode: string;
19
34
  showCategories: boolean;
20
35
  private _subs;
21
- constructor(_catalogSearchService: CatalogSearchService, _catalogEventService: CatalogEventService);
36
+ constructor(_settingsService: CatalogSettingsService, _catalogService: CatalogService, _catalogSearchService: CatalogSearchService, _catalogEventService: CatalogEventService, iconCacheService: IconCacheService);
22
37
  ngOnInit(): void;
23
38
  ngOnDestroy(): void;
24
39
  handleCategoryClick(category: string): void;
25
40
  handleTurnoverGroupClick(turnoverGroup: string): void;
41
+ handleResetButtonClick(event: MouseEvent): void;
42
+ handleGetTransactionClick(): void;
26
43
  }
@@ -1,2 +1,4 @@
1
+ import { ModuleWithProviders } from '@angular/core';
1
2
  export declare class CatalogSearchModule {
3
+ static ForRoot(): ModuleWithProviders<CatalogSearchModule>;
2
4
  }
@@ -1,5 +1,6 @@
1
1
  @include export-module('co-catalog-search-layout') {
2
2
  .co-catalog-search {
3
+ font-family: $co-catalog-search-font-family;
3
4
  display: flex;
4
5
  flex-direction: column;
5
6
  width: 100%;
@@ -8,7 +9,7 @@
8
9
  .catalog-search-wrapper {
9
10
  display: flex;
10
11
  width: 100%;
11
- //height: 100%;
12
+ column-gap: $co-catalog-search-column-gap;
12
13
  }
13
14
  .search-content-wrapper {
14
15
  display: flex;
@@ -19,6 +20,29 @@
19
20
  display: flex;
20
21
  align-items: center;
21
22
  justify-content: center;
23
+ .search-catalog-title-wrapper {
24
+ .catalog-title-wrapper {
25
+ display: flex;
26
+ align-items: center;
27
+ column-gap: $co-catalog-search-title-column-gap;
28
+ .co-icon {
29
+ height: $co-catalog-search-title-icon-size;
30
+ width: $co-catalog-search-title-icon-size;
31
+ }
32
+ }
33
+ .catalog-title {
34
+ font-size: $co-catalog-search-title-font-size;
35
+ font-weight: $co-catalog-search-title-font-weight;
36
+ }
37
+ .catalog-sub-title {
38
+ font-size: $co-catalog-search-sub-title-font-size;
39
+ font-weight: $co-catalog-search-sub-title-font-weight;
40
+ }
41
+ }
42
+ .co-catalog-search-header {
43
+ margin-left: auto;
44
+ margin-right: auto;
45
+ }
22
46
  }
23
47
  .search-content {
24
48
  display: flex;
@@ -26,5 +50,27 @@
26
50
  overflow: $co-catalog-search-content-overflow;
27
51
  padding: $co-catalog-search-content-padding;
28
52
  }
53
+ .filter-content {
54
+ display: flex;
55
+ flex-direction: column;
56
+ flex-shrink: 0;
57
+ overflow: hidden;
58
+ }
59
+ .search-filter-panel-header-wrapper {
60
+ display: flex;
61
+ justify-content: space-between;
62
+ .co-icon {
63
+ cursor: pointer;
64
+ height: $co-catalog-search-filter-title-icon-size;
65
+ width: $co-catalog-search-filter-title-icon-size;
66
+ }
67
+ }
68
+ .search-filter-panel-header {
69
+ display: flex;
70
+ column-gap: 10px;
71
+ align-items: center;
72
+ font-size: $co-catalog-search-filter-title-font-size;
73
+ font-weight: $co-catalog-search-filter-title-font-weight;
74
+ }
29
75
  }
30
76
  }
@@ -1,2 +1,31 @@
1
- $co-catalog-search-content-padding: 20px !default;
2
- $co-catalog-search-content-overflow: initial !default;
1
+ :root {
2
+ --co-catalog-search-font-family: #{$ca-font-family};
3
+ --co-catalog-search-column-gap: 20px;
4
+ --co-catalog-search-content-padding: 20px;
5
+ --co-catalog-search-content-overflow: initial;
6
+ --co-catalog-search-title-font-size: 20px;
7
+ --co-catalog-search-title-font-weight: 600;
8
+ --co-catalog-search-title-icon-size: 17px;
9
+ --co-catalog-search-title-column-gap: 10px;
10
+ --co-catalog-search-sub-title-font-size: 12px;
11
+ --co-catalog-search-sub-title-font-weight: 400;
12
+ --co-catalog-search-filter-title-font-size: 16px;
13
+ --co-catalog-search-filter-title-font-weight: bold;
14
+ --co-catalog-search-filter-title-icon-size: 13px;
15
+ }
16
+ $co-catalog-search-font-family: var(--co-catalog-search-font-family) !default;
17
+ $co-catalog-search-column-gap: var(--co-catalog-search-column-gap) !default;
18
+ $co-catalog-search-content-padding: var(--co-catalog-search-content-padding) !default;
19
+ $co-catalog-search-content-overflow: var(--co-catalog-search-content-overflow) !default;
20
+
21
+ $co-catalog-search-title-font-size: var(--co-catalog-search-title-font-size) !default;
22
+ $co-catalog-search-title-font-weight: var(--co-catalog-search-title-font-weight) !default;
23
+ $co-catalog-search-title-icon-size: var(--co-catalog-search-title-icon-size) !default;
24
+ $co-catalog-search-title-column-gap: var(--co-catalog-search-title-column-gap) !default;
25
+
26
+ $co-catalog-search-sub-title-font-size: var(--co-catalog-search-sub-title-font-size) !default;
27
+ $co-catalog-search-sub-title-font-weight: var(--co-catalog-search-sub-title-font-weight) !default;
28
+
29
+ $co-catalog-search-filter-title-font-size: var(--co-catalog-search-filter-title-font-size) !default;
30
+ $co-catalog-search-filter-title-font-weight: var(--co-catalog-search-filter-title-font-weight) !default;
31
+ $co-catalog-search-filter-title-icon-size: var(--co-catalog-search-filter-title-icon-size) !default;
@@ -1,7 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import { CatalogSearchService } from '../../service/catalog-search.service';
3
+ import { IconEnum } from '../../enum/icon.enum';
4
+ import { IconCacheService } from '../../service/icon-cache.service';
2
5
  export declare class CatalogSearchHeaderComponent {
3
6
  catalogSearchService: CatalogSearchService;
7
+ iconCacheService: IconCacheService;
8
+ readonly icons: typeof IconEnum;
4
9
  placeholder: string;
10
+ filterIconClick: EventEmitter<void>;
5
11
  showClass(): boolean;
6
- constructor(catalogSearchService: CatalogSearchService);
12
+ constructor(catalogSearchService: CatalogSearchService, iconCacheService: IconCacheService);
7
13
  }
@@ -3,10 +3,13 @@
3
3
  font-family: $co-catalog-search-header-font-family;
4
4
  font-size: $co-catalog-search-header-font-size;
5
5
  .catalog-search-header-wrapper {
6
+ display: flex;
7
+ align-items: center;
8
+ column-gap: $co-catalog-search-header-column-gap;
6
9
  padding: $co-catalog-search-header-padding;
7
10
  }
8
11
  .co-input-search {
9
- max-width: $co-catalog-search-header-input-search-max-width;
12
+ width: $co-catalog-search-header-input-search-max-width;
10
13
  }
11
14
  }
12
15
  }
@@ -1,4 +1,5 @@
1
1
  $co-catalog-search-header-font-family: $ca-font-family !default;
2
2
  $co-catalog-search-header-font-size: $ca-font-size !default;
3
+ $co-catalog-search-header-column-gap: 10px !default;
3
4
  $co-catalog-search-header-padding: 20px !default;
4
- $co-catalog-search-header-input-search-max-width: 320px !default;
5
+ $co-catalog-search-header-input-search-max-width: 440px !default;
@@ -0,0 +1,4 @@
1
+ export interface ExternalSettingsInterface {
2
+ name: string;
3
+ settings: any;
4
+ }
@@ -4,7 +4,9 @@ export declare enum IconEnum {
4
4
  Ar = "ar",
5
5
  ArrowScrollDown = "arrow_scroll_down",
6
6
  ArrowScrollLeft = "arrow_scroll_left",
7
+ BarsFilter = "bars_filter",
7
8
  Camera = "camera",
9
+ Cancel = "cancel",
8
10
  Check = "check",
9
11
  Close = "close",
10
12
  Eye = "eye",
@@ -19,5 +21,6 @@ export declare enum IconEnum {
19
21
  SyncAlt = "sync_alt",
20
22
  ThreeD = "three_d",
21
23
  TileView = "tile_view",
22
- Truck = "truck"
24
+ Truck = "truck",
25
+ WebCatalog = "web_catalog"
23
26
  }
@@ -8,11 +8,12 @@ export declare class Settings {
8
8
  username: string;
9
9
  password: string;
10
10
  session: any;
11
- useEncryption: boolean;
11
+ useLoginEncryption: boolean;
12
12
  additionalTranslationFile: string;
13
13
  timeoutInMs: number;
14
14
  languageCode: string;
15
15
  type: string;
16
16
  catalogParameters: any;
17
17
  options: SettingsOptions;
18
+ jwtEnabled: boolean;
18
19
  }
@@ -9,15 +9,16 @@ import { ArticleSearchFilterSelections } from '@colijnit/articleapi/build/model/
9
9
  import { ArticleSearchFilterMaxAndMinPrice } from '@colijnit/articleapi/build/model/article-search-filter-max-and-min-price';
10
10
  import { ArticlePrice } from '@colijnit/articleapi/build/model/article-price';
11
11
  import { ConfiguratorStatisticsEnvironment } from '@colijnit/articleapi/build/model/configurator-statistics-environment';
12
- import { RelationApi } from "@colijnit/relationapi";
13
- import { MainApi } from "@colijnit/mainapi";
14
- import { StoreGroup } from "@colijnit/mainapi/build/model/store-group.bo";
15
- import { CoDomainValue } from "@colijnit/mainapi/build/model/co-domain-value.bo";
16
- import { DomainName } from "@colijnit/mainapi/build/enum/domain-name.enum";
17
- import { RelationListObject } from "@colijnit/relationapi/build/model/relation-list-object.bo";
12
+ import { RelationApi } from '@colijnit/relationapi';
13
+ import { MainApi } from '@colijnit/mainapi';
14
+ import { StoreGroup } from '@colijnit/mainapi/build/model/store-group.bo';
15
+ import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
16
+ import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
17
+ import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
18
+ import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-value.bo';
19
+ import { Category } from '@colijnit/mainapi/build/model/category.bo';
18
20
  import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
19
- import { CoRVDomainValue } from "@colijnit/mainapi/build/model/co-rv-domain-value.bo";
20
- import { Category } from "@colijnit/mainapi/build/model/category.bo";
21
+ import { Transaction } from '@colijnit/transactionapi/build/transaction';
21
22
  export declare class CatalogConnectorAdapterService {
22
23
  get shouldShowLoader(): boolean;
23
24
  controllerInitialized: BehaviorSubject<boolean>;
@@ -25,13 +26,15 @@ export declare class CatalogConnectorAdapterService {
25
26
  connector?: Articles;
26
27
  relationConnector?: RelationApi;
27
28
  mainConnector?: MainApi;
28
- private readonly connectorOptions;
29
+ transactionConnector: Transaction;
30
+ private connectorOptions;
29
31
  private _boFactory;
30
32
  private _shouldShowLoader;
31
33
  private _initializing;
32
34
  private _initialized;
33
35
  ngOnDestroy(): void;
34
36
  initConnector(settings?: any, forceReload?: boolean): Promise<void>;
37
+ getCatalogBundleSettings(url: string, upId: number): Promise<string>;
35
38
  getArticlesForCatalog(params: ArticleExtendedRequest, showLoader?: boolean): Promise<ArticlesSearchResult>;
36
39
  getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
37
40
  getCatalogDefinitions(showLoader?: boolean): Promise<CatalogDefinition[]>;
@@ -57,6 +60,8 @@ export declare class CatalogConnectorAdapterService {
57
60
  getSelectorArticleThumbnail(documentId: number): Promise<string>;
58
61
  getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
59
62
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
63
+ addWebSessionTransactionLine(sku: string, quantity: number): void;
64
+ getWebTransaction(): void;
60
65
  getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
61
66
  onShowLoaderChange(showLoader: boolean): void;
62
67
  }
@@ -12,13 +12,13 @@ import { SelectSingleCacheService } from '../cache/service/select-single-cache.s
12
12
  import { SelectMultipleCacheService } from '../cache/service/select-multiple-cache.service';
13
13
  import { SelectMultipleParameterizedCacheService } from '../cache/service/select-multiple-parameterized-cache.service';
14
14
  import { SelectSingleParameterizedCacheService } from '../cache/service/select-single-parameterized-cache.service';
15
- import { StoreGroup } from "@colijnit/mainapi/build/model/store-group.bo";
16
- import { CoDomainValue } from "@colijnit/mainapi/build/model/co-domain-value.bo";
17
- import { DomainName } from "@colijnit/mainapi/build/enum/domain-name.enum";
18
- import { PriceList } from "@colijnit/transactionapi/build/model/price-list";
19
- import { RelationListObject } from "@colijnit/relationapi/build/model/relation-list-object.bo";
20
- import { CoRVDomainValue } from "@colijnit/mainapi/build/model/co-rv-domain-value.bo";
21
- import { Category } from "@colijnit/mainapi/build/model/category.bo";
15
+ import { StoreGroup } from '@colijnit/mainapi/build/model/store-group.bo';
16
+ import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
17
+ import { DomainName } from '@colijnit/mainapi/build/enum/domain-name.enum';
18
+ import { PriceList } from '@colijnit/transactionapi/build/model/price-list';
19
+ import { RelationListObject } from '@colijnit/relationapi/build/model/relation-list-object.bo';
20
+ import { CoRVDomainValue } from '@colijnit/mainapi/build/model/co-rv-domain-value.bo';
21
+ import { Category } from '@colijnit/mainapi/build/model/category.bo';
22
22
  export declare class CatalogConnectorService {
23
23
  private _adapterService;
24
24
  private _selectSingleCacheService;
@@ -28,6 +28,7 @@ export declare class CatalogConnectorService {
28
28
  private _boFactory;
29
29
  constructor(_adapterService: CatalogConnectorAdapterService, _selectSingleCacheService: SelectSingleCacheService, _selectMultipleCacheService: SelectMultipleCacheService, _selectMultipleParameterizedCacheService: SelectMultipleParameterizedCacheService, _selectSingleParameterizedCacheService: SelectSingleParameterizedCacheService);
30
30
  initConnector(settings?: any, forceReload?: boolean): Promise<void>;
31
+ getCatalogBundleSettings(url: string, upId: number): Promise<string>;
31
32
  getArticlesForCatalog(params: ArticleExtendedRequest, showLoader?: boolean): Promise<ArticlesSearchResult>;
32
33
  getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
33
34
  getCatalogDefinitions(showLoader?: boolean): Promise<CatalogDefinition[]>;
@@ -0,0 +1,27 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { CatalogService } from './catalog.service';
3
+ import { CatalogConnectorService } from './catalog-connector.service';
4
+ import { CatalogOptionsService } from './catalog-options.service';
5
+ import { ArticleCategory } from '@colijnit/articleapi/build/model/article-category';
6
+ import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
7
+ import { CatalogImageService } from './catalog-image.service';
8
+ export declare class CatalogNavigationService implements OnDestroy {
9
+ private _catalog;
10
+ private _iOne;
11
+ private _optionsService;
12
+ private _imageService;
13
+ private _subs;
14
+ private _connectionMade;
15
+ private _optionsSet;
16
+ navigationCategories: ArticleCategory[];
17
+ allTurnoverGroups: TurnoverGroupImage[];
18
+ constructor(_catalog: CatalogService, _iOne: CatalogConnectorService, _optionsService: CatalogOptionsService, _imageService: CatalogImageService);
19
+ ngOnDestroy(): void;
20
+ setCategory(category: string): void;
21
+ setTurnoverGroup(turnoverGroup: string): void;
22
+ setExternalSourceUrl(url: string): void;
23
+ setIoneSourceUrl(url: string, ioneUrl: string, id: string, username: string, password: string): void;
24
+ navigateToHome(): void;
25
+ getCategories(): Promise<void>;
26
+ getTurnoverGroupList(): void;
27
+ }