@colijnit/catalog 12.1.31 → 12.1.33
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 +805 -146
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.d.ts +42 -33
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +43 -34
- package/esm2015/lib/catalog-version.js +3 -3
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +4 -2
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +4 -2
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +4 -2
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +45 -173
- package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +16 -8
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.component.js +42 -0
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.module.js +21 -0
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +375 -0
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +26 -0
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +175 -0
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +28 -0
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +102 -0
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +27 -0
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.module.js +4 -2
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.module.js +4 -2
- package/esm2015/lib/pipe/pipe.module.js +19 -0
- package/esm2015/lib/service/catalog-connector-adapter.service.js +90 -1
- package/esm2015/lib/service/catalog-connector.service.js +36 -1
- package/esm2015/lib/service/catalog-filter.service.js +30 -1
- package/esm2015/lib/service/catalog-search.service.js +49 -16
- package/fesm2015/colijnit-catalog.js +1043 -201
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +8 -28
- package/lib/component/catalog-filter/style/_layout.scss +13 -0
- package/lib/component/catalog-filter/style/material.scss +4 -0
- package/lib/component/catalog-filter-categories/catalog-filter-categories.component.d.ts +10 -0
- package/lib/component/catalog-filter-categories/catalog-filter-categories.module.d.ts +2 -0
- package/lib/component/catalog-filter-categories/style/_layout.scss +23 -0
- package/lib/component/catalog-filter-categories/style/_material-definition.scss +22 -0
- package/lib/component/catalog-filter-categories/style/_theme.scss +12 -0
- package/lib/component/catalog-filter-categories/style/material.scss +4 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +47 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.d.ts +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/style/_layout.scss +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/style/_material-definition.scss +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/style/_theme.scss +4 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-general/style/material.scss +4 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +16 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.d.ts +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/_layout.scss +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/_material-definition.scss +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/_theme.scss +4 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/style/material.scss +4 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +24 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.d.ts +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/_layout.scss +2 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/_material-definition.scss +1 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/_theme.scss +4 -0
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/style/material.scss +4 -0
- package/lib/pipe/pipe.module.d.ts +2 -0
- package/lib/service/catalog-connector-adapter.service.d.ts +18 -0
- package/lib/service/catalog-connector.service.d.ts +14 -0
- package/lib/service/catalog-filter.service.d.ts +12 -0
- package/lib/service/catalog-search.service.d.ts +4 -0
- package/package.json +4 -1
|
@@ -1,45 +1,25 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { SliderComponent } from '@colijnit/corecomponents';
|
|
3
|
-
import { NumericalRange } from '@colijnit/corecomponents/lib/core/model/numerical-range';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
4
2
|
import { IconEnum } from '../../enum/icon.enum';
|
|
5
|
-
import { CatalogFilterService } from '../../service/catalog-filter.service';
|
|
6
3
|
import { IconCacheService } from '../../service/icon-cache.service';
|
|
7
4
|
import { CatalogOptionsService } from '../../service/catalog-options.service';
|
|
8
|
-
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
9
|
-
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
10
|
-
import { FilterItemViewmodel } from '@colijnit/corecomponents_v12';
|
|
11
5
|
export declare class CatalogFilterComponent implements OnInit {
|
|
12
|
-
catalogSearchService: CatalogSearchService;
|
|
13
|
-
filterService: CatalogFilterService;
|
|
14
6
|
iconCache: IconCacheService;
|
|
15
7
|
optionsService: CatalogOptionsService;
|
|
16
8
|
private changeDetector;
|
|
17
|
-
private _catalogConnectorService;
|
|
18
9
|
readonly icons: typeof IconEnum;
|
|
19
|
-
|
|
10
|
+
filterItems: ElementRef;
|
|
11
|
+
generalFilter: ElementRef;
|
|
12
|
+
purchaseFilter: ElementRef;
|
|
13
|
+
logisticsFilter: ElementRef;
|
|
20
14
|
showResetFilter: boolean;
|
|
21
15
|
showClass(): boolean;
|
|
16
|
+
filterCategories: string[];
|
|
22
17
|
collapsed: boolean;
|
|
23
18
|
private _destroyed;
|
|
24
19
|
private _subs;
|
|
25
|
-
|
|
26
|
-
private _max;
|
|
27
|
-
constructor(catalogSearchService: CatalogSearchService, filterService: CatalogFilterService, iconCache: IconCacheService, optionsService: CatalogOptionsService, changeDetector: ChangeDetectorRef, _catalogConnectorService: CatalogConnectorService);
|
|
20
|
+
constructor(iconCache: IconCacheService, optionsService: CatalogOptionsService, changeDetector: ChangeDetectorRef);
|
|
28
21
|
ngOnInit(): void;
|
|
22
|
+
handleCategoryClick(cat: string): void;
|
|
29
23
|
ngOnDestroy(): void;
|
|
30
|
-
initializePriceFilterMinMax(): void;
|
|
31
|
-
resetFilters(event: MouseEvent): void;
|
|
32
|
-
onHandleClick(event: MouseEvent): void;
|
|
33
|
-
updatePriceInputs(range: NumericalRange): void;
|
|
34
|
-
updateSliderRange(): void;
|
|
35
|
-
updatePriceFrom(): void;
|
|
36
|
-
updatePriceTo(): void;
|
|
37
|
-
setPriceMinToDefault(): void;
|
|
38
|
-
setPriceMaxToDefault(): void;
|
|
39
|
-
filterOnPrice(): void;
|
|
40
|
-
loadArticles: (numberFilter: string) => Promise<FilterItemViewmodel[]>;
|
|
41
|
-
handleCollectionChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
42
|
-
handleCollectionChangeForSingleSelect(collection: FilterItemViewmodel[], modelName: string): void;
|
|
43
|
-
private _getFilterRequestForSingleSelect;
|
|
44
24
|
private detectChanges;
|
|
45
25
|
}
|
|
@@ -5,11 +5,24 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: $ca-filter-panel-width;
|
|
8
|
+
padding: 10px; //TODO VARIABELE MAKEN
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
position: relative;
|
|
8
11
|
overflow: hidden;
|
|
9
12
|
.catalog-filter-wrapper {
|
|
10
13
|
display: flex;
|
|
11
14
|
flex-direction: column;
|
|
12
15
|
}
|
|
16
|
+
|
|
17
|
+
.catalog-category-filter-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
overflow-x: hidden;
|
|
20
|
+
overflow-y: auto;
|
|
21
|
+
padding-top: 10px; //TODO VARIABELE MAKEN
|
|
22
|
+
height: 100%;
|
|
23
|
+
scroll-behavior: smooth;
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
.reset-filter-wrapper {
|
|
14
27
|
display: flex;
|
|
15
28
|
flex-direction: column;
|
|
@@ -2,3 +2,7 @@
|
|
|
2
2
|
@import "./_material-definition";
|
|
3
3
|
@import "./_layout";
|
|
4
4
|
@import "./_theme";
|
|
5
|
+
@import "./../../catalog-filter-categories/style/material";
|
|
6
|
+
@import "./../../catalog-filter-content/catalog-filter-content-general/style/material";
|
|
7
|
+
@import "./../../catalog-filter-content/catalog-filter-content-logistics/style/material";
|
|
8
|
+
@import "./../../catalog-filter-content/catalog-filter-content-purchase/style/material";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
export declare class CatalogFilterCategoriesComponent {
|
|
3
|
+
set categories(value: string[]);
|
|
4
|
+
get categories(): string[];
|
|
5
|
+
categoryClick: EventEmitter<string>;
|
|
6
|
+
showClass(): boolean;
|
|
7
|
+
activeCategory: string;
|
|
8
|
+
private _categories;
|
|
9
|
+
handleCategoryClick(category: string): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@include export-module('co-catalog-filter-categories-layout') {
|
|
2
|
+
.co-catalog-filter-categories {
|
|
3
|
+
font-family: $tp-co-catalog-filter-categories-font-family;
|
|
4
|
+
font-size: $tp-co-catalog-filter-categories-font-size;
|
|
5
|
+
font-weight: $tp-co-catalog-filter-categories-font-weight;
|
|
6
|
+
.catalog-filter-categories-wrapper {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-around;
|
|
9
|
+
}
|
|
10
|
+
.catalog-filter-category {
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
flex: 1;
|
|
13
|
+
text-align: center;
|
|
14
|
+
padding: $tp-co-catalog-filter-categories-padding;
|
|
15
|
+
border-width: $tp-co-catalog-filter-categories-border-width;
|
|
16
|
+
border-style: $tp-co-catalog-filter-categories-border-style;
|
|
17
|
+
&.active {
|
|
18
|
+
border-width: $tp-co-catalog-filter-categories-active-border-width;
|
|
19
|
+
border-style: $tp-co-catalog-filter-categories-active-border-style;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
$tp-co-catalog-filter-font-family: $ca-font-family !default;
|
|
2
|
+
$tp-co-catalog-filter-font-size: $ca-font-size !default;
|
|
3
|
+
$cc-co-catalog-filter-width: 350px !default;
|
|
4
|
+
$cc-co-catalog-filter-padding: 10px !default;
|
|
5
|
+
$cc-co-catalog-filter-border: none !default;
|
|
6
|
+
$cc-co-catalog-filter-top: 0 !default;
|
|
7
|
+
$cc-co-catalog-category-filter-wrapper-padding-top: 10px !default;
|
|
8
|
+
$cc-co-catalog-category-filter-content-width: 350px !default;
|
|
9
|
+
$cc-co-catalog-filter-background-color: $cc-color-light !default;
|
|
10
|
+
$tp-co-catalog-filter-categories-font-family: $ca-font-family !default;
|
|
11
|
+
$tp-co-catalog-filter-categories-font-size: $ca-font-size !default;
|
|
12
|
+
$tp-co-catalog-filter-categories-font-weight: normal !default;
|
|
13
|
+
$tp-co-catalog-filter-categories-active-color: $ca-color-action !default;
|
|
14
|
+
$tp-co-catalog-filter-categories-inactive-color: $ca-color-font !default;
|
|
15
|
+
$tp-co-catalog-filter-categories-inactive-border-color: grey /*$ca-color-grey*/ !default;
|
|
16
|
+
$tp-co-catalog-filter-categories-padding: 0 0 10px !default;
|
|
17
|
+
$tp-co-catalog-filter-categories-border-width: 0 0 1px 0 !default;
|
|
18
|
+
$tp-co-catalog-filter-categories-border-style: solid !default;
|
|
19
|
+
$tp-co-catalog-filter-categories-active-border-width: 0 0 1px 0 !default;
|
|
20
|
+
$tp-co-catalog-filter-categories-active-border-style: solid !default;
|
|
21
|
+
$tp-co-catalog-search-filter-width: 100% !default;
|
|
22
|
+
$tp-co-catalog-search-filter-content-wrapper-row-gap: 30px !default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@include export-module('co-transaction-filter-categories-theme') {
|
|
2
|
+
.co-catalog-filter-categories {
|
|
3
|
+
.catalog-filter-category {
|
|
4
|
+
color: $tp-co-catalog-filter-categories-inactive-color;
|
|
5
|
+
border-color: $tp-co-catalog-filter-categories-inactive-border-color;
|
|
6
|
+
&.active {
|
|
7
|
+
color: $tp-co-catalog-filter-categories-active-color;
|
|
8
|
+
border-color: $tp-co-catalog-filter-categories-active-color;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 {
|
|
8
|
+
catalogSearchService: CatalogSearchService;
|
|
9
|
+
filterService: CatalogFilterService;
|
|
10
|
+
iconCache: IconCacheService;
|
|
11
|
+
private _catalogConnectorService;
|
|
12
|
+
showClass(): boolean;
|
|
13
|
+
readonly icons: typeof IconEnum;
|
|
14
|
+
private _min;
|
|
15
|
+
private _max;
|
|
16
|
+
storeGroupCollection: FilterItemViewmodel[];
|
|
17
|
+
inOutCollectionCollection: FilterItemViewmodel[];
|
|
18
|
+
articleTypeCollection: FilterItemViewmodel[];
|
|
19
|
+
artPublicationCollection: FilterItemViewmodel[];
|
|
20
|
+
artPublicationSalesCollection: FilterItemViewmodel[];
|
|
21
|
+
priceListsSalesCollection: FilterItemViewmodel[];
|
|
22
|
+
categoryCollection: FilterItemViewmodel[];
|
|
23
|
+
supplierDropdownFields: {};
|
|
24
|
+
constructor(catalogSearchService: CatalogSearchService, filterService: CatalogFilterService, iconCache: IconCacheService, _catalogConnectorService: CatalogConnectorService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
private _setStoreGroups;
|
|
27
|
+
private _setInOutCollection;
|
|
28
|
+
private _setArticleTypes;
|
|
29
|
+
private _setCategories;
|
|
30
|
+
private _setPublicationCodes;
|
|
31
|
+
private _setPublicationCodesSales;
|
|
32
|
+
private _setPriceList;
|
|
33
|
+
filterOnPrice(): void;
|
|
34
|
+
updateLengthFilter(): void;
|
|
35
|
+
updateWidthFilter(): void;
|
|
36
|
+
updateHeightFilter(): void;
|
|
37
|
+
updateDepthFilter(): void;
|
|
38
|
+
getFromToFilter(min: number, max: number): string;
|
|
39
|
+
handleCollectionChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
40
|
+
handleSeparateCollectionChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
41
|
+
handleArticleTypeChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
42
|
+
handleSingleSelectChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
43
|
+
handleNumberListChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
44
|
+
handleCollectionChangeForSingleSelect(collection: FilterItemViewmodel[], modelName: string): void;
|
|
45
|
+
private _getFilterRequestForSingleSelect;
|
|
46
|
+
getRetail: (barcodeFilter: string) => Promise<FilterItemViewmodel[]>;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
2
|
+
import { IconEnum } from "../../../enum/icon.enum";
|
|
3
|
+
import { SliderComponent } from "@colijnit/corecomponents";
|
|
4
|
+
import { CatalogSearchService } from "../../../service/catalog-search.service";
|
|
5
|
+
export declare class CatalogFilterContentLogisticsComponent {
|
|
6
|
+
catalogSearchService: CatalogSearchService;
|
|
7
|
+
iconCache: IconCacheService;
|
|
8
|
+
showClass(): boolean;
|
|
9
|
+
priceSlider: SliderComponent;
|
|
10
|
+
readonly icons: typeof IconEnum;
|
|
11
|
+
constructor(catalogSearchService: CatalogSearchService, iconCache: IconCacheService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
handleAllChanged(value: boolean): void;
|
|
14
|
+
handleCheckboxValueChangeForString(value: boolean, modelName: string): void;
|
|
15
|
+
private _getFilterRequestForBooleanToString;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IconCacheService } from "../../../service/icon-cache.service";
|
|
2
|
+
import { IconEnum } from "../../../enum/icon.enum";
|
|
3
|
+
import { SliderComponent } from "@colijnit/corecomponents";
|
|
4
|
+
import { CatalogSearchService } from "../../../service/catalog-search.service";
|
|
5
|
+
import { FilterItemViewmodel } from "@colijnit/corecomponents_v12";
|
|
6
|
+
import { CatalogConnectorService } from "../../../service/catalog-connector.service";
|
|
7
|
+
import { CatalogFilterService } from "../../../service/catalog-filter.service";
|
|
8
|
+
export declare class CatalogFilterContentPurchaseComponent {
|
|
9
|
+
catalogSearchService: CatalogSearchService;
|
|
10
|
+
iconCache: IconCacheService;
|
|
11
|
+
private _catalogConnectorService;
|
|
12
|
+
filterService: CatalogFilterService;
|
|
13
|
+
showClass(): boolean;
|
|
14
|
+
priceSlider: SliderComponent;
|
|
15
|
+
readonly icons: typeof IconEnum;
|
|
16
|
+
suppliers: FilterItemViewmodel[];
|
|
17
|
+
priceListsPurchCollection: FilterItemViewmodel[];
|
|
18
|
+
constructor(catalogSearchService: CatalogSearchService, iconCache: IconCacheService, _catalogConnectorService: CatalogConnectorService, filterService: CatalogFilterService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
private _setSuppliers;
|
|
21
|
+
private _setPriceList;
|
|
22
|
+
handleSeparateCollectionChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
23
|
+
handleSingleSelectChange(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -9,11 +9,22 @@ 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";
|
|
18
|
+
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";
|
|
12
21
|
export declare class CatalogConnectorAdapterService {
|
|
13
22
|
get shouldShowLoader(): boolean;
|
|
14
23
|
controllerInitialized: BehaviorSubject<boolean>;
|
|
15
24
|
assetPath: string;
|
|
16
25
|
connector?: Articles;
|
|
26
|
+
relationConnector?: RelationApi;
|
|
27
|
+
mainConnector?: MainApi;
|
|
17
28
|
private readonly connectorOptions;
|
|
18
29
|
private _boFactory;
|
|
19
30
|
private _shouldShowLoader;
|
|
@@ -36,6 +47,13 @@ export declare class CatalogConnectorAdapterService {
|
|
|
36
47
|
getMaterialFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
37
48
|
getTagsFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
38
49
|
getTurnoverGroupFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
50
|
+
getBrandFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
51
|
+
getStoreGroups(settings?: any): Promise<StoreGroup[]>;
|
|
52
|
+
getCategories(settings?: any): Promise<Category[]>;
|
|
53
|
+
getDomainCollection(domainName: DomainName): Promise<CoDomainValue[]>;
|
|
54
|
+
getRVDomainCollection(domainName: DomainName): Promise<CoRVDomainValue[]>;
|
|
55
|
+
getPriceLists(): Promise<PriceList[]>;
|
|
56
|
+
getSuppliers(): Promise<RelationListObject[]>;
|
|
39
57
|
getSelectorArticleThumbnail(documentId: number): Promise<string>;
|
|
40
58
|
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
41
59
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
@@ -12,6 +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
22
|
export declare class CatalogConnectorService {
|
|
16
23
|
private _adapterService;
|
|
17
24
|
private _selectSingleCacheService;
|
|
@@ -36,7 +43,14 @@ export declare class CatalogConnectorService {
|
|
|
36
43
|
getMaterialFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
37
44
|
getTagsFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
38
45
|
getTurnoverGroupFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
46
|
+
getBrandFilter(params: ArticleExtendedRequest): Promise<ArticleSearchFilterSelections>;
|
|
39
47
|
getArticlePrice(goodId: number, type: string): Promise<ArticlePrice>;
|
|
48
|
+
getStoreGroups(): Promise<StoreGroup[]>;
|
|
49
|
+
getCategories(): Promise<Category[]>;
|
|
50
|
+
getDomainCollection(domainName: DomainName): Promise<CoDomainValue[]>;
|
|
51
|
+
getRVDomainCollection(domainName: DomainName): Promise<CoRVDomainValue[]>;
|
|
52
|
+
getPriceLists(): Promise<PriceList[]>;
|
|
53
|
+
getSuppliers(): Promise<RelationListObject[]>;
|
|
40
54
|
getDocumentContent(docId: number, thumbnail?: boolean): Promise<string>;
|
|
41
55
|
getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, showLoader?: boolean, instanceId?: number, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
|
|
42
56
|
}
|
|
@@ -2,14 +2,26 @@ import { CatalogConnectorService } from './catalog-connector.service';
|
|
|
2
2
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
3
3
|
import { ArticleSearchFilterSelections } from '@colijnit/articleapi/build/model/article-search-filter-selections';
|
|
4
4
|
import { CatalogFilterViewmodel } from '../model/catalog-filter-viewmodel';
|
|
5
|
+
import { FilterItemViewmodel } from "@colijnit/corecomponents_v12";
|
|
6
|
+
import { RelationListObject } from "@colijnit/relationapi/build/model/relation-list-object.bo";
|
|
5
7
|
export declare class CatalogFilterService {
|
|
6
8
|
private _iOneController;
|
|
7
9
|
priceMinFilter: number;
|
|
8
10
|
priceMaxFilter: number;
|
|
11
|
+
lengthMinFilter: number;
|
|
12
|
+
lengthMaxFilter: number;
|
|
13
|
+
widthMinFilter: number;
|
|
14
|
+
widthMaxFilter: number;
|
|
15
|
+
heightMinFilter: number;
|
|
16
|
+
heightMaxFilter: number;
|
|
17
|
+
depthMinFilter: number;
|
|
18
|
+
depthMaxFilter: number;
|
|
9
19
|
filters: CatalogFilterViewmodel[];
|
|
10
20
|
readonly filterItemMap: Map<string, string>;
|
|
11
21
|
constructor(_iOneController: CatalogConnectorService);
|
|
12
22
|
getFilters(filters: ArticleExtendedRequest): void;
|
|
13
23
|
createNewFiltersAndCopySelections(filter: ArticleSearchFilterSelections, key: string): CatalogFilterViewmodel;
|
|
14
24
|
getFilterItemMap(key: string): string;
|
|
25
|
+
createFilterSelectionsCollection(collection: any[], id: string, description: string): FilterItemViewmodel[];
|
|
26
|
+
createFilterSelectionsSupplierCollection(collection: RelationListObject[]): FilterItemViewmodel[];
|
|
15
27
|
}
|
|
@@ -33,6 +33,10 @@ export declare class CatalogSearchService implements OnDestroy {
|
|
|
33
33
|
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService);
|
|
34
34
|
ngOnDestroy(): void;
|
|
35
35
|
filterOnCollection(filterName: string, collection: FilterItemViewmodel[]): void;
|
|
36
|
+
createFilterString(collection: FilterItemViewmodel[], searchFilterProp: string): string;
|
|
37
|
+
createFilterStringCollection(collection: FilterItemViewmodel[]): string[];
|
|
38
|
+
createSingleSelectString(collection: FilterItemViewmodel[]): string;
|
|
39
|
+
createFilterNumber(collection: FilterItemViewmodel[]): number;
|
|
36
40
|
searchArticles(getFilters?: boolean): void;
|
|
37
41
|
resetFilters(search?: boolean): void;
|
|
38
42
|
private _resetRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "iOne Catalog module based on Angular 12",
|
|
6
6
|
"repository": "npm/npm",
|
|
@@ -18,9 +18,12 @@
|
|
|
18
18
|
"@angular/platform-browser-dynamic": ">=12.2.7",
|
|
19
19
|
"@angular/router": ">=12.2.7",
|
|
20
20
|
"@colijnit/articleapi": ">=1.0.15",
|
|
21
|
+
"@colijnit/transactionapi": ">=1.1.87",
|
|
21
22
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
22
23
|
"@colijnit/corecomponents_v12": ">=12.1.0",
|
|
23
24
|
"@colijnit/ioneconnector": ">=2.1.15",
|
|
25
|
+
"@colijnit/relationapi": ">=1.0.6",
|
|
26
|
+
"@colijnit/mainapi": ">=1.0.17",
|
|
24
27
|
"@types/three": ">=0.125.0",
|
|
25
28
|
"@tweenjs/tween.js": ">=17.2.0",
|
|
26
29
|
"core-js": ">=2.5.4",
|