@colijnit/catalog 301.1.1 → 301.1.3
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/fesm2022/colijnit-catalog.mjs +1177 -1138
- package/fesm2022/colijnit-catalog.mjs.map +1 -1
- package/index.d.ts +25 -17
- package/lib/component/catalog-article-list/style/_layout.scss +5 -1
- package/lib/component/catalog-article-list/style/_material-definition.scss +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { CategoryDesign } from '@colijnit/articleapi/build/model/category-design
|
|
|
35
35
|
import { CoDocument } from '@colijnit/mainapi/build/model/co-document.bo';
|
|
36
36
|
import { ImageContent } from '@colijnit/mainapi/build/model/image-content.bo';
|
|
37
37
|
import * as i3 from '@colijnit/corecomponents_v12';
|
|
38
|
-
import { FilterItemViewmodel, FilterViewmodel, ContentViewMode, PromptService,
|
|
38
|
+
import { FilterItemViewmodel, FilterViewmodel, BaseModuleScreenConfigService, ContentViewMode, PromptService, BaseModuleService, FilterItemMode } from '@colijnit/corecomponents_v12';
|
|
39
39
|
import { WarehouseShort } from '@colijnit/mainapi/build/model/warehouse-short.bo';
|
|
40
40
|
import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
|
|
41
41
|
import { Article } from '@colijnit/configuratorapi/build/model/article';
|
|
@@ -604,6 +604,19 @@ declare class CatalogFilterService {
|
|
|
604
604
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogFilterService>;
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
+
declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
608
|
+
private _catalogAdapterService;
|
|
609
|
+
readonly screenModuleName: string;
|
|
610
|
+
private _screenConfigurationObjectCache;
|
|
611
|
+
constructor(_catalogAdapterService: CatalogConnectorAdapterService);
|
|
612
|
+
clear(): void;
|
|
613
|
+
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
614
|
+
private _setScreenConfigurationObjectCache;
|
|
615
|
+
private _screenConfigurationLoaded;
|
|
616
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
|
|
617
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
|
|
618
|
+
}
|
|
619
|
+
|
|
607
620
|
declare class CatalogSearchService implements OnDestroy {
|
|
608
621
|
private _filterService;
|
|
609
622
|
private _catalogConnectorService;
|
|
@@ -611,6 +624,7 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
611
624
|
private _settingsService;
|
|
612
625
|
private _optionService;
|
|
613
626
|
private _promptService;
|
|
627
|
+
private _screenConfigService;
|
|
614
628
|
searchRequest: ArticleExtendedRequest;
|
|
615
629
|
activeContentViewMode: ContentViewMode;
|
|
616
630
|
showFilterSidebar: boolean;
|
|
@@ -633,7 +647,7 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
633
647
|
private _turnoverGroup;
|
|
634
648
|
private _subs;
|
|
635
649
|
private _presetApplied;
|
|
636
|
-
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService, _promptService: PromptService);
|
|
650
|
+
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService, _promptService: PromptService, _screenConfigService: CatalogScreenConfigurationService);
|
|
637
651
|
ngOnDestroy(): void;
|
|
638
652
|
searchArticles(resetPaging?: boolean): void;
|
|
639
653
|
/**
|
|
@@ -647,25 +661,17 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
647
661
|
handleResetFilter(): void;
|
|
648
662
|
private _clearCache;
|
|
649
663
|
private _resetRequest;
|
|
664
|
+
/**
|
|
665
|
+
* Screen configuration default values take precedence over the (startup) parameters.
|
|
666
|
+
* Without a screen configuration default, the (startup) parameter value is kept.
|
|
667
|
+
*/
|
|
668
|
+
private _applyScreenConfigDefaults;
|
|
650
669
|
private _setRequestParametersAndProps;
|
|
651
670
|
private _resetRequestParametersAndProps;
|
|
652
671
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchService, never>;
|
|
653
672
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSearchService>;
|
|
654
673
|
}
|
|
655
674
|
|
|
656
|
-
declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
657
|
-
private _catalogAdapterService;
|
|
658
|
-
readonly screenModuleName: string;
|
|
659
|
-
private _screenConfigurationObjectCache;
|
|
660
|
-
constructor(_catalogAdapterService: CatalogConnectorAdapterService);
|
|
661
|
-
clear(): void;
|
|
662
|
-
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
663
|
-
private _setScreenConfigurationObjectCache;
|
|
664
|
-
private _screenConfigurationLoaded;
|
|
665
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
|
|
666
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
675
|
declare class CatalogService extends BaseModuleService {
|
|
670
676
|
protected connector: CatalogConnectorService;
|
|
671
677
|
protected connectorAdapter: CatalogConnectorAdapterService;
|
|
@@ -860,7 +866,8 @@ declare enum ConfigNameEnum {
|
|
|
860
866
|
BrandFilter = "brandFilter",
|
|
861
867
|
GoodKindFilter = "goodKindFilter",
|
|
862
868
|
ResultTiles = "resultSetting",
|
|
863
|
-
PurchaseDescriptionFilter = "purchaseDescriptionFilter"
|
|
869
|
+
PurchaseDescriptionFilter = "purchaseDescriptionFilter",
|
|
870
|
+
PurchaseDescriptionResult = "purchaseDescriptionResult"
|
|
864
871
|
}
|
|
865
872
|
|
|
866
873
|
interface Category {
|
|
@@ -1633,6 +1640,7 @@ declare class CatalogSearchResultListComponent extends CatalogSearchBaseComponen
|
|
|
1633
1640
|
}
|
|
1634
1641
|
|
|
1635
1642
|
declare class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
1643
|
+
readonly cfgName: typeof ConfigNameEnum;
|
|
1636
1644
|
embedded: boolean;
|
|
1637
1645
|
isReturn: boolean;
|
|
1638
1646
|
showClass(): boolean;
|
|
@@ -1642,7 +1650,7 @@ declare class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
|
1642
1650
|
|
|
1643
1651
|
declare class CatalogArticleListModule {
|
|
1644
1652
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogArticleListModule, never>;
|
|
1645
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogArticleListModule, [typeof CatalogArticleListComponent], [typeof i2.CommonModule, typeof i3.ImageModule, typeof i3.IconModule, typeof CatalogFilterModule, typeof i3.ButtonModule, typeof CatalogPipeModule], [typeof CatalogArticleListComponent]>;
|
|
1653
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogArticleListModule, [typeof CatalogArticleListComponent], [typeof i2.CommonModule, typeof i3.ImageModule, typeof i3.IconModule, typeof CatalogFilterModule, typeof i3.ButtonModule, typeof CatalogPipeModule, typeof i3.ScreenConfigurationModule], [typeof CatalogArticleListComponent]>;
|
|
1646
1654
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogArticleListModule>;
|
|
1647
1655
|
}
|
|
1648
1656
|
|
|
@@ -126,12 +126,16 @@
|
|
|
126
126
|
background: $co-catalog-article-list-article-buttons-background;
|
|
127
127
|
cursor: pointer;
|
|
128
128
|
place-content: center;
|
|
129
|
+
color: $co-catalog-article-list-article-buttons-color;
|
|
129
130
|
&:hover {
|
|
130
131
|
opacity: 0.8;
|
|
131
132
|
}
|
|
132
|
-
|
|
133
|
+
co-icon {
|
|
133
134
|
width: $co-catalog-article-list-article-buttons-button-size;
|
|
134
135
|
height: $co-catalog-article-list-article-buttons-button-size;
|
|
136
|
+
svg [fill] {
|
|
137
|
+
fill: $co-catalog-article-list-article-buttons-color;
|
|
138
|
+
}
|
|
135
139
|
}
|
|
136
140
|
}
|
|
137
141
|
> co-button.disabled {
|
|
@@ -22,6 +22,7 @@ $co-catalog-article-list-article-buttons-margin: 0 !default;
|
|
|
22
22
|
$co-catalog-article-list-article-buttons-width: 180px !default;
|
|
23
23
|
$co-catalog-article-list-article-buttons-button-height: 40px !default;
|
|
24
24
|
$co-catalog-article-list-article-buttons-button-margin: 0 !default;
|
|
25
|
+
$co-catalog-article-list-article-buttons-color: #FFF !default;
|
|
25
26
|
$co-catalog-article-list-article-buttons-button-border-radius: 5px !default;
|
|
26
27
|
$co-catalog-article-list-article-buttons-background: #3E7EFF !default;
|
|
27
28
|
$co-catalog-article-list-article-buttons-button-size: 34px !default;
|