@colijnit/catalog 256.1.7 → 256.1.9

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 (24) hide show
  1. package/bundles/colijnit-catalog.umd.js +94 -17
  2. package/bundles/colijnit-catalog.umd.js.map +1 -1
  3. package/colijnit-catalog-256.1.8.tgz +0 -0
  4. package/colijnit-catalog.metadata.json +1 -1
  5. package/esm2015/lib/catalog-version.js +3 -3
  6. package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +6 -6
  7. package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.component.js +68 -17
  8. package/esm2015/lib/service/catalog-connector-adapter.service.js +13 -3
  9. package/esm2015/lib/service/catalog-connector.service.js +6 -1
  10. package/esm2015/lib/service/catalog-stock-comparison.service.js +1 -2
  11. package/esm2015/lib/service/catalog-stock-transfer.service.js +1 -2
  12. package/esm2015/lib/service/catalog-stock.service.js +1 -2
  13. package/fesm2015/colijnit-catalog.js +90 -28
  14. package/fesm2015/colijnit-catalog.js.map +1 -1
  15. package/lib/component/catalog-external-sources/catalog-external-sources.component.d.ts +5 -0
  16. package/lib/component/catalog-external-sources/style/_layout.scss +17 -0
  17. package/lib/service/catalog-connector-adapter.service.d.ts +1 -1
  18. package/lib/service/catalog-connector.service.d.ts +1 -0
  19. package/package.json +1 -1
  20. package/colijnit-catalog-256.1.6.tgz +0 -0
  21. package/lib/component/catalog-external-configurator/style/_layout.scss +0 -4
  22. package/lib/component/catalog-external-configurator/style/_material-definition.scss +0 -32
  23. package/lib/component/catalog-external-configurator/style/_theme.scss +0 -4
  24. package/lib/component/catalog-external-configurator/style/material.scss +0 -4
@@ -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": "256.1.7",
3
+ "version": "256.1.9",
4
4
  "license": "MIT",
5
5
  "description": "iOne Catalog module based on Angular 12",
6
6
  "repository": "npm/npm",
Binary file
@@ -1,4 +0,0 @@
1
- @include export-module('co-catalog-external-source-layout') {
2
- .co-catalog-external-source {
3
- }
4
- }
@@ -1,32 +0,0 @@
1
- $co-catalog-categories-font-family: $ca-font-family !default;
2
- $co-catalog-categories-font-size: $ca-font-size !default;
3
- $co-catalog-categories-padding: 0 !default;
4
- $co-catalog-categories-column-gap: 10px !default;
5
- $co-catalog-categories-image-filter: brightness(80%) !default;
6
- $co-catalog-categories-image-hover-filter: brightness(100%) !default;
7
- $co-catalog-categories-category-description-font-size: 24px !default;
8
- $co-catalog-categories-category-description-font-color: white !default;
9
- $co-catalog-categories-category-description-font-weight: bold !default;
10
- $co-catalog-categories-category-description-text-transform: capitalize !default;
11
- $co-catalog-categories-category-description-text-shadow: 0 2px 3px rgba(1, 1, 1, .55) !default;
12
-
13
- $co-catalog-categories-turnovergroup-size: 150px !default;
14
- $co-catalog-categories-turnovergroup-column-gap: 10px !default;
15
- $co-catalog-categories-turnovergroup-padding: 0 !default;
16
- $co-catalog-categories-turnovergroup-category-title-text-transform: capitalize !default;
17
- $co-catalog-categories-turnovergroup-category-title-font-weight: 700 !default;
18
- $co-catalog-categories-turnovergroup-category-title-font-size: 16px !default;
19
- $co-catalog-categories-turnovergroup-category-title-margin: 10px 0 !default;
20
- $co-catalog-categories-turnovergroup-border-style: solid !default;
21
- $co-catalog-categories-turnovergroup-border-width: 1px !default;
22
- $co-catalog-categories-turnovergroup-border-radius: 10px !default;
23
- $co-catalog-categories-turnovergroup-border-color: $ca-color-border !default;
24
- $co-catalog-categories-turnovergroup-description-text-transform: capitalize !default;
25
- $co-catalog-categories-turnovergroup-description-font-size: 12px !default;
26
- $co-catalog-categories-turnovergroup-description-font-weight: 600 !default;
27
- $co-catalog-categories-turnovergroup-description-margin: 5px 0 !default;
28
- $co-catalog-categories-turnovergroup-image-filter: brightness(80%) !default;
29
- $co-catalog-categories-turnovergroup-image-hover-filter: brightness(100%) !default;
30
- $co-catalog-categories-turnovergroup-description-text-overflow: ellipsis !default;
31
- $co-catalog-categories-turnovergroup-description-overflow: hidden !default;
32
- $co-catalog-categories-turnovergroup-description-white-space: nowrap !default;
@@ -1,4 +0,0 @@
1
- @include export-module('co-catalog-external-source-theme') {
2
- .co-catalog-external-source {
3
- }
4
- }
@@ -1,4 +0,0 @@
1
- @import "../../../style/mixin";
2
- @import "./_material-definition";
3
- @import "./_layout";
4
- @import "./_theme";