@colijnit/catalog 12.1.26 → 12.1.27
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 +156 -40
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.d.ts +17 -14
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +18 -15
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.component.js +6 -6
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +12 -7
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.module.js +4 -4
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +2 -4
- package/esm2015/lib/directive/overlay/overlay-parent.directive.js +19 -0
- package/esm2015/lib/directive/overlay/overlay.directive.js +73 -0
- package/esm2015/lib/directive/overlay/overlay.module.js +18 -0
- package/esm2015/lib/service/catalog-search.service.js +9 -19
- package/esm2015/lib/service/catalog.service.js +2 -2
- package/fesm2015/colijnit-catalog.js +137 -39
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-categories/style/_layout.scss +3 -0
- package/lib/component/catalog-categories/style/_material-definition.scss +3 -0
- package/lib/component/catalog-external-sources/catalog-external-sources.component.d.ts +2 -1
- package/lib/component/catalog-external-sources/style/_layout.scss +13 -21
- package/lib/component/catalog-external-sources/style/_material-definition.scss +5 -4
- package/lib/component/catalog-external-sources/style/_theme.scss +3 -1
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +3 -0
- package/lib/component/catalog-navigation/style/_layout.scss +8 -0
- package/lib/component/catalog-navigation/style/_material-definition.scss +8 -3
- package/lib/component/catalog-navigation/style/_theme.scss +3 -0
- package/lib/directive/overlay/overlay-parent.directive.d.ts +6 -0
- package/lib/directive/overlay/overlay.directive.d.ts +15 -0
- package/lib/directive/overlay/overlay.module.d.ts +2 -0
- package/lib/service/catalog-search.service.d.ts +1 -4
- package/package.json +2 -2
|
@@ -95,6 +95,9 @@
|
|
|
95
95
|
font-weight: $co-catalog-categories-turnovergroup-description-font-weight;
|
|
96
96
|
font-size: $co-catalog-categories-turnovergroup-description-font-size;
|
|
97
97
|
margin: $co-catalog-categories-turnovergroup-description-margin;
|
|
98
|
+
text-overflow: $co-catalog-categories-turnovergroup-description-text-overflow;
|
|
99
|
+
overflow: $co-catalog-categories-turnovergroup-description-overflow;
|
|
100
|
+
white-space: $co-catalog-categories-turnovergroup-description-white-space;
|
|
98
101
|
}
|
|
99
102
|
&:hover {
|
|
100
103
|
.co-image {
|
|
@@ -27,3 +27,6 @@ $co-catalog-categories-turnovergroup-description-font-weight: 600 !default;
|
|
|
27
27
|
$co-catalog-categories-turnovergroup-description-margin: 5px 0 !default;
|
|
28
28
|
$co-catalog-categories-turnovergroup-image-filter: brightness(80%) !default;
|
|
29
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,10 +1,11 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
|
|
3
3
|
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
4
4
|
import { CatalogImageService } from '../../service/catalog-image.service';
|
|
5
5
|
export declare class CatalogExternalSourcesComponent implements OnInit {
|
|
6
6
|
private _catalogConnectorService;
|
|
7
7
|
private _imageService;
|
|
8
|
+
externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
|
|
8
9
|
showClass(): boolean;
|
|
9
10
|
externalSourceViewModels: ExternalSourceViewmodel[];
|
|
10
11
|
constructor(_catalogConnectorService: CatalogConnectorService, _imageService: CatalogImageService);
|
|
@@ -15,41 +15,33 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
position: relative;
|
|
17
17
|
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
18
19
|
height: 100%;
|
|
19
20
|
width: 100%;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
border-style: $co-catalog-external-sources-item-border-style;
|
|
22
|
-
border-width: $co-catalog-external-sources-item-border-width;
|
|
23
|
-
border-radius: $co-catalog-external-sources-item-border-radius;
|
|
24
21
|
min-height: $co-catalog-external-sources-image-size;
|
|
25
22
|
.co-image {
|
|
26
23
|
height: 100%;
|
|
27
24
|
width: 100%;
|
|
25
|
+
border-style: $co-catalog-external-sources-item-border-style;
|
|
26
|
+
border-width: $co-catalog-external-sources-item-border-width;
|
|
27
|
+
border-radius: $co-catalog-external-sources-item-border-radius;
|
|
28
28
|
img {
|
|
29
29
|
height: 100%;
|
|
30
30
|
width: 100%;
|
|
31
31
|
filter: $co-catalog-external-sources-image-filter;
|
|
32
|
+
border-radius: $co-catalog-external-sources-item-border-radius;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
.external-source-description {
|
|
35
36
|
display: block;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
transform:
|
|
43
|
-
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
width: 100%;
|
|
48
|
-
height: 100%;
|
|
49
|
-
font-weight: $co-catalog-external-sources-description-font-weight;
|
|
50
|
-
text-shadow: $co-catalog-external-sources-description-text-shadow;
|
|
51
|
-
text-transform: $co-catalog-external-sources-description-text-transform;
|
|
52
|
-
}
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
font-size: $co-catalog-external-sources-description-font-size;
|
|
41
|
+
font-weight: $co-catalog-external-sources-description-font-weight;
|
|
42
|
+
text-shadow: $co-catalog-external-sources-description-text-shadow;
|
|
43
|
+
text-transform: $co-catalog-external-sources-description-text-transform;
|
|
44
|
+
margin: $co-catalog-external-sources-description-margin;
|
|
53
45
|
}
|
|
54
46
|
&:hover {
|
|
55
47
|
.co-image {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$co-catalog-external-sources-font-family: $ca-font-family !default;
|
|
2
2
|
$co-catalog-external-sources-font-size: $ca-font-size !default;
|
|
3
|
-
$co-catalog-external-sources-image-size:
|
|
3
|
+
$co-catalog-external-sources-image-size: 150px !default;
|
|
4
4
|
$co-catalog-external-sources-padding: 0 !default;
|
|
5
5
|
$co-catalog-external-sources-column-gap: 10px !default;
|
|
6
6
|
|
|
@@ -11,8 +11,9 @@ $co-catalog-external-sources-item-border-radius: 10px !default;
|
|
|
11
11
|
|
|
12
12
|
$co-catalog-external-sources-image-filter: brightness(80%) !default;
|
|
13
13
|
$co-catalog-external-sources-image-hover-filter: brightness(100%) !default;
|
|
14
|
-
$co-catalog-external-sources-description-
|
|
15
|
-
$co-catalog-external-sources-description-font-
|
|
14
|
+
$co-catalog-external-sources-description-margin: 10px 0 !default;
|
|
15
|
+
$co-catalog-external-sources-description-font-size: $ca-font-size !default;
|
|
16
|
+
$co-catalog-external-sources-description-font-color: $ca-color-font !default;
|
|
16
17
|
$co-catalog-external-sources-description-font-weight: bold !default;
|
|
17
18
|
$co-catalog-external-sources-description-text-transform: capitalize !default;
|
|
18
|
-
$co-catalog-external-sources-description-text-shadow: 0 2px 3px rgba(1, 1, 1, .55) !default;
|
|
19
|
+
$co-catalog-external-sources-description-text-shadow: none /*0 2px 3px rgba(1, 1, 1, .55)*/ !default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@include export-module('co-catalog-external-sources-theme') {
|
|
2
2
|
.co-catalog-external-sources {
|
|
3
3
|
.external-source-item {
|
|
4
|
-
|
|
4
|
+
.co-image {
|
|
5
|
+
border-color: $co-catalog-external-sources-item-border-color;
|
|
6
|
+
}
|
|
5
7
|
}
|
|
6
8
|
.external-source-description {
|
|
7
9
|
.text {
|
|
@@ -5,6 +5,7 @@ import { CatalogService } from '../../service/catalog.service';
|
|
|
5
5
|
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
|
+
import { ExternalSourceViewmodel } from '../../model/external-source-viewmodel';
|
|
8
9
|
export declare class CatalogNavigationComponent {
|
|
9
10
|
iconCache: IconCacheService;
|
|
10
11
|
catalogService: CatalogService;
|
|
@@ -17,6 +18,7 @@ export declare class CatalogNavigationComponent {
|
|
|
17
18
|
homeClick: EventEmitter<void>;
|
|
18
19
|
categoryClick: EventEmitter<string>;
|
|
19
20
|
turnoverGroupClick: EventEmitter<string>;
|
|
21
|
+
externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
|
|
20
22
|
minified: boolean;
|
|
21
23
|
showClass: boolean;
|
|
22
24
|
mobileMenuToggle: boolean;
|
|
@@ -36,6 +38,7 @@ export declare class CatalogNavigationComponent {
|
|
|
36
38
|
prepareTurnoverGroups(): void;
|
|
37
39
|
handleCategoryClick(event: MouseEvent, category: string): void;
|
|
38
40
|
handleTurnoverGroupClick(event: MouseEvent, turnovergroupNr: string): void;
|
|
41
|
+
handleExternalSourceClick(externalSource: ExternalSourceViewmodel): void;
|
|
39
42
|
onToggleMobileMenu(): void;
|
|
40
43
|
onSubMenuToggle(event: any): void;
|
|
41
44
|
onOpenSubMenu(event: MouseEvent): void;
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
font-family: $co-catalog-navigation-font-family;
|
|
4
4
|
font-size: $co-catalog-navigation-font-size;
|
|
5
5
|
color: $co-catalog-navigation-font-color;
|
|
6
|
+
margin: $co-catalog-navigation-margin;
|
|
7
|
+
.home-link {
|
|
8
|
+
font-family: $co-catalog-navigation-home-font-family;
|
|
9
|
+
font-size: $co-catalog-navigation-home-font-size;
|
|
10
|
+
font-weight: $co-catalog-navigation-home-font-weight;
|
|
11
|
+
}
|
|
6
12
|
.navigation-wrapper {
|
|
7
13
|
display: flex;
|
|
8
14
|
align-items: center;
|
|
@@ -15,6 +21,7 @@
|
|
|
15
21
|
}
|
|
16
22
|
.navigation-overlay-wrapper {
|
|
17
23
|
position: fixed;
|
|
24
|
+
left: 0;
|
|
18
25
|
display: flex;
|
|
19
26
|
overflow: hidden;
|
|
20
27
|
background: white;
|
|
@@ -22,6 +29,7 @@
|
|
|
22
29
|
padding: $co-catalog-navigation-padding;
|
|
23
30
|
column-gap: $co-catalog-navigation-column-gap;
|
|
24
31
|
box-shadow: $co-catalog-navigation-box-shadow;
|
|
32
|
+
width: 100%;
|
|
25
33
|
}
|
|
26
34
|
.navigation-category {
|
|
27
35
|
cursor: pointer;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
$co-catalog-navigation-font-family: $ca-font-family !default;
|
|
2
2
|
$co-catalog-navigation-font-size: $ca-font-size !default;
|
|
3
3
|
$co-catalog-navigation-font-color: $ca-color-font !default;
|
|
4
|
-
$co-catalog-navigation-
|
|
4
|
+
$co-catalog-navigation-margin: 10px !default;
|
|
5
|
+
$co-catalog-navigation-padding: 20px !default;
|
|
5
6
|
$co-catalog-navigation-column-gap: 10px !default;
|
|
6
7
|
$co-catalog-navigation-box-shadow: 0 3px 5px $ca-color-border !default;
|
|
7
8
|
|
|
9
|
+
$co-catalog-navigation-home-font-family: $ca-font-family !default;
|
|
10
|
+
$co-catalog-navigation-home-font-size: $ca-font-size-big !default;
|
|
11
|
+
$co-catalog-navigation-home-font-weight: bold !default;
|
|
12
|
+
$co-catalog-navigation-home-font-color: $ca-color-font !default;
|
|
13
|
+
|
|
14
|
+
|
|
8
15
|
$co-catalog-navigation-category-font-family: $ca-font-family !default;
|
|
9
16
|
$co-catalog-navigation-category-font-size: $ca-font-size-big !default;
|
|
10
17
|
$co-catalog-navigation-category-font-weight: bold !default;
|
|
11
|
-
$co-catalog-navigation-category-font-weight: bold !default;
|
|
12
|
-
$co-catalog-navigation-category-font-weight: bold !default;
|
|
13
18
|
$co-catalog-navigation-category-padding: 0 0 5px 0 !default;
|
|
14
19
|
$co-catalog-navigation-category-margin: 0 0 10px 0 !default;
|
|
15
20
|
$co-catalog-navigation-category-border-style: solid !default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { OverlayParentDirective } from "./overlay-parent.directive";
|
|
3
|
+
export declare class OverlayDirective implements OnDestroy, OnInit {
|
|
4
|
+
set parent(value: OverlayParentDirective);
|
|
5
|
+
keepInView: boolean;
|
|
6
|
+
handleScroll(event: MouseEvent): void;
|
|
7
|
+
private _elementRef;
|
|
8
|
+
private _observer;
|
|
9
|
+
private _parent;
|
|
10
|
+
constructor(elementRef: ElementRef);
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
private _checkAndPlaceElement;
|
|
14
|
+
private _placeElement;
|
|
15
|
+
}
|
|
@@ -12,7 +12,6 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
12
12
|
private _settingsService;
|
|
13
13
|
private _optionService;
|
|
14
14
|
searchRequest: ArticleExtendedRequest;
|
|
15
|
-
previousSearchRequest: ArticleExtendedRequest;
|
|
16
15
|
showFilterSidebar: boolean;
|
|
17
16
|
searchPlaceholder: string;
|
|
18
17
|
articles: ArticleExtended[];
|
|
@@ -35,10 +34,8 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
35
34
|
ngOnDestroy(): void;
|
|
36
35
|
filterOnCollection(collection: FilterItemViewmodel[]): void;
|
|
37
36
|
searchArticles(getFilters?: boolean): void;
|
|
38
|
-
resetFilters(): void;
|
|
37
|
+
resetFilters(search?: boolean): void;
|
|
39
38
|
private _resetRequest;
|
|
40
|
-
setPreviousSearchRequest(): void;
|
|
41
|
-
isNewGeneralSearch(): boolean;
|
|
42
39
|
toggleFilter(): void;
|
|
43
40
|
handleHideFilter(): void;
|
|
44
41
|
handleResetFilter(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.27",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "iOne Catalog module based on Angular 12",
|
|
6
6
|
"repository": "npm/npm",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@angular/router": ">=12.2.7",
|
|
20
20
|
"@colijnit/articleapi": ">=1.0.15",
|
|
21
21
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
22
|
-
"@colijnit/corecomponents_v12": ">=12.0.
|
|
22
|
+
"@colijnit/corecomponents_v12": ">=12.0.102",
|
|
23
23
|
"@colijnit/ioneconnector": ">=2.1.10",
|
|
24
24
|
"@syncfusion/ej2-angular-buttons": ">=19.3.44",
|
|
25
25
|
"@syncfusion/ej2-angular-calendars": ">=19.3.44",
|