@colijnit/catalog 255.1.14 → 255.1.16

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.
@@ -1,13 +1,18 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
+ import { CatalogDefinition } from '@colijnit/articleapi/build/model/catalog-definition.bo';
2
3
  import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
3
4
  import { CatalogConnectorService } from '../../service/catalog-connector.service';
4
5
  import { CatalogImageService } from '../../service/catalog-image.service';
5
6
  export declare class CatalogExternalSourcesComponent implements OnInit {
6
7
  private _catalogConnectorService;
7
8
  private _imageService;
9
+ isStandalone: boolean;
8
10
  externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
9
11
  showClass(): boolean;
10
12
  externalSourceViewModels: ExternalSourceViewmodel[];
13
+ unavailableCatalogs: CatalogDefinition[];
11
14
  constructor(_catalogConnectorService: CatalogConnectorService, _imageService: CatalogImageService);
12
15
  ngOnInit(): void;
16
+ loadCatalogs(defs: CatalogDefinition[]): Promise<void>;
17
+ loadUnavailableCatalogs(defs: CatalogDefinition[]): void;
13
18
  }
@@ -4,6 +4,7 @@
4
4
  width: 100%;
5
5
  font-family: $co-catalog-external-sources-font-family;
6
6
  font-size: $co-catalog-external-sources-font-size;
7
+
7
8
  .catalog-external-sources-wrapper {
8
9
  display: grid;
9
10
  grid-template-columns: repeat(auto-fit, minmax(10px, $co-catalog-external-sources-image-size));
@@ -11,6 +12,7 @@
11
12
  padding: $co-catalog-external-sources-padding;
12
13
  grid-gap: $co-catalog-external-sources-column-gap;
13
14
  }
15
+
14
16
  .external-source-item {
15
17
  cursor: pointer;
16
18
  position: relative;
@@ -19,12 +21,14 @@
19
21
  height: 100%;
20
22
  width: 100%;
21
23
  min-height: $co-catalog-external-sources-image-size;
24
+
22
25
  .co-image {
23
26
  height: 100%;
24
27
  width: 100%;
25
28
  border-style: $co-catalog-external-sources-item-border-style;
26
29
  border-width: $co-catalog-external-sources-item-border-width;
27
30
  border-radius: $co-catalog-external-sources-item-border-radius;
31
+
28
32
  img {
29
33
  height: 100%;
30
34
  width: 100%;
@@ -32,6 +36,7 @@
32
36
  border-radius: $co-catalog-external-sources-item-border-radius;
33
37
  }
34
38
  }
39
+
35
40
  .external-source-description {
36
41
  display: block;
37
42
  text-overflow: ellipsis;
@@ -43,6 +48,7 @@
43
48
  text-transform: $co-catalog-external-sources-description-text-transform;
44
49
  margin: $co-catalog-external-sources-description-margin;
45
50
  }
51
+
46
52
  &:hover {
47
53
  .co-image {
48
54
  img {
@@ -51,5 +57,16 @@
51
57
  }
52
58
  }
53
59
  }
60
+
61
+ .catalog-external-sources-wrapper-unavailable {
62
+ margin-top: $co-catalog-external-sources-column-gap;
63
+ .external-source-item-unavailable {
64
+ background-color: #eee !important;
65
+ opacity: 0.5;
66
+ pointer-events: none;
67
+ cursor: not-allowed;
68
+ border-radius: 4px;
69
+ }
70
+ }
54
71
  }
55
72
  }
@@ -47,7 +47,6 @@ export declare class CatalogConnectorAdapterService {
47
47
  private _shouldShowLoader;
48
48
  private _initializing;
49
49
  private _initialized;
50
- constructor();
51
50
  ngOnDestroy(): void;
52
51
  initConnector(settings?: any, forceReload?: boolean): Promise<void>;
53
52
  getCatalogBundleSettings(url: string, upId: number): Promise<string>;
@@ -84,6 +83,7 @@ export declare class CatalogConnectorAdapterService {
84
83
  getPriceLists(): Promise<PriceList[]>;
85
84
  getUserGroups(): Promise<UserGroup[]>;
86
85
  getSuppliers(): Promise<RelationListObject[]>;
86
+ getAvailabeCatalogsForLoggedInUser(): Promise<any>;
87
87
  getPresets(module?: string, user?: string): Promise<Preset[]>;
88
88
  getPreset(presetId: string): Promise<Preset>;
89
89
  savePreset(preset: Preset): Promise<boolean>;
@@ -79,6 +79,7 @@ export declare class CatalogConnectorService {
79
79
  getPriceLists(): Promise<PriceList[]>;
80
80
  getUserGroups(): Promise<UserGroup[]>;
81
81
  getSuppliers(): Promise<RelationListObject[]>;
82
+ getAvailabeCatalogsForLoggedInUser(): Promise<any[]>;
82
83
  getPresets(module?: string, user?: string): Promise<Preset[]>;
83
84
  getPreset(presetId: string): Promise<Preset>;
84
85
  savePreset(preset: Preset): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/catalog",
3
- "version": "255.1.14",
3
+ "version": "255.1.16",
4
4
  "license": "MIT",
5
5
  "description": "iOne Catalog module based on Angular 12",
6
6
  "repository": "npm/npm",