@colijnit/catalog 256.1.6 → 256.1.8
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/bundles/colijnit-catalog.umd.js +110 -27
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog-256.1.7.tgz +0 -0
- package/colijnit-catalog.d.ts +7 -7
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +8 -8
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +9 -6
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +6 -6
- package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.component.js +62 -17
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.component.js +24 -6
- package/esm2015/lib/enum/icon.enum.js +3 -1
- package/esm2015/lib/model/icon.js +3 -1
- package/esm2015/lib/service/catalog-connector-adapter.service.js +13 -3
- package/esm2015/lib/service/catalog-connector.service.js +6 -1
- package/esm2015/lib/service/catalog-stock-comparison.service.js +1 -2
- package/esm2015/lib/service/catalog-stock-transfer.service.js +1 -2
- package/esm2015/lib/service/catalog-stock.service.js +1 -2
- package/fesm2015/colijnit-catalog.js +117 -36
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-article-tile/style/_layout.scss +30 -8
- package/lib/component/catalog-article-tile/style/_material-definition.scss +1 -1
- package/lib/component/catalog-external-sources/catalog-external-sources.component.d.ts +5 -0
- package/lib/component/catalog-external-sources/style/_layout.scss +17 -0
- package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +10 -5
- package/lib/enum/icon.enum.d.ts +2 -0
- package/lib/service/catalog-connector-adapter.service.d.ts +1 -1
- package/lib/service/catalog-connector.service.d.ts +1 -0
- package/package.json +1 -1
- package/colijnit-catalog-256.1.4.tgz +0 -0
|
@@ -70,16 +70,29 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
.button-wrapper {
|
|
73
|
-
height: 30px;
|
|
74
73
|
position: absolute;
|
|
75
|
-
left:
|
|
76
|
-
top:
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
left: -10px;
|
|
75
|
+
top: -10px;
|
|
76
|
+
background: rgba(255,255,255,0.5);
|
|
77
|
+
border-radius: 0 0 5px 0;
|
|
78
|
+
padding: 5px;
|
|
79
|
+
co-icon {
|
|
79
80
|
display: inline-block;
|
|
80
81
|
width: 30px;
|
|
81
82
|
height: 30px;
|
|
82
83
|
}
|
|
84
|
+
&.right {
|
|
85
|
+
left: initial;
|
|
86
|
+
right: -10px;
|
|
87
|
+
top: -10px;
|
|
88
|
+
background: rgba(255,255,255,0.5);
|
|
89
|
+
border-radius: 0 0 0 5px;
|
|
90
|
+
height: auto;
|
|
91
|
+
padding: 5px;
|
|
92
|
+
co-icon {
|
|
93
|
+
padding: 2px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
83
96
|
}
|
|
84
97
|
.description-wrapper {
|
|
85
98
|
display: flex;
|
|
@@ -118,9 +131,18 @@
|
|
|
118
131
|
opacity: 0.8;
|
|
119
132
|
}
|
|
120
133
|
|
|
121
|
-
|
|
122
|
-
width:
|
|
123
|
-
height:
|
|
134
|
+
co-icon {
|
|
135
|
+
width: 30px;
|
|
136
|
+
height: 30px;
|
|
137
|
+
}
|
|
138
|
+
&.configurable {
|
|
139
|
+
co-icon {
|
|
140
|
+
width: 20px;
|
|
141
|
+
height: 20px;
|
|
142
|
+
svg {
|
|
143
|
+
fill: #FFF;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
124
146
|
}
|
|
125
147
|
}
|
|
126
148
|
> co-button.disabled {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$co-catalog-article-tile-font-family: $ca-font-family !default;
|
|
2
2
|
$co-catalog-article-tile-font-size: $ca-font-size !default;
|
|
3
3
|
$co-catalog-article-tile-font-color: $ca-color-font !default;
|
|
4
|
-
$co-catalog-article-tile-padding: 10px
|
|
4
|
+
$co-catalog-article-tile-padding: 10px !default;
|
|
5
5
|
$co-catalog-article-tile-border-style: solid !default;
|
|
6
6
|
$co-catalog-article-tile-border-width: 1px !default;
|
|
7
7
|
$co-catalog-article-tile-border-color: transparent transparent $ca-color-border transparent !default;
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
import { FilterItemMode } from
|
|
3
|
-
import { CatalogSearchService } from
|
|
4
|
-
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FilterItemMode } from '@colijnit/corecomponents_v12';
|
|
3
|
+
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
4
|
+
import { CatalogScreenConfigurationService } from '../../service/catalog-screen-configuration.service';
|
|
5
|
+
export declare class CatalogFilterItemComponent implements OnInit, OnDestroy {
|
|
5
6
|
searchService: CatalogSearchService;
|
|
7
|
+
private _screenConfigService;
|
|
6
8
|
model: any;
|
|
7
9
|
mode: FilterItemMode;
|
|
8
10
|
collection: any[];
|
|
@@ -19,12 +21,15 @@ export declare class CatalogFilterItemComponent {
|
|
|
19
21
|
modelChange: EventEmitter<any>;
|
|
20
22
|
collectionChange: EventEmitter<any>;
|
|
21
23
|
screenConfigurationObjectName: string;
|
|
22
|
-
constructor(searchService: CatalogSearchService);
|
|
23
24
|
searchPlaceholder: string;
|
|
24
25
|
noResultsLabel: string;
|
|
25
26
|
showMoreLabel: string;
|
|
26
27
|
showLessLabel: string;
|
|
27
28
|
filterButtonLabel: string;
|
|
29
|
+
private _subs;
|
|
30
|
+
constructor(searchService: CatalogSearchService, _screenConfigService: CatalogScreenConfigurationService);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
28
33
|
onFilterButtonClicked(): void;
|
|
29
34
|
private _scrollToTop;
|
|
30
35
|
}
|
package/lib/enum/icon.enum.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare enum IconEnum {
|
|
|
8
8
|
Camera = "camera",
|
|
9
9
|
Cancel = "cancel",
|
|
10
10
|
Check = "check",
|
|
11
|
+
ChevronRightRegular = "chevron_right_regular",
|
|
11
12
|
Close = "close",
|
|
12
13
|
Eye = "eye",
|
|
13
14
|
Filter = "filter",
|
|
@@ -24,5 +25,6 @@ export declare enum IconEnum {
|
|
|
24
25
|
ThreeD = "three_d",
|
|
25
26
|
TileView = "tile_view",
|
|
26
27
|
Truck = "truck",
|
|
28
|
+
WandMagicSparklesLight = "wand_magic_sparkles_light",
|
|
27
29
|
WebCatalog = "web_catalog"
|
|
28
30
|
}
|
|
@@ -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
|
Binary file
|