@colijnit/catalog 262.1.11 → 262.1.13
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 +1178 -1139
- 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 { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
@@ -600,6 +600,19 @@ declare class CatalogFilterService {
|
|
|
600
600
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogFilterService>;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
+
declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
604
|
+
private _catalogAdapterService;
|
|
605
|
+
readonly screenModuleName: string;
|
|
606
|
+
private _screenConfigurationObjectCache;
|
|
607
|
+
constructor(_catalogAdapterService: CatalogConnectorAdapterService);
|
|
608
|
+
clear(): void;
|
|
609
|
+
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
610
|
+
private _setScreenConfigurationObjectCache;
|
|
611
|
+
private _screenConfigurationLoaded;
|
|
612
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
|
|
613
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
|
|
614
|
+
}
|
|
615
|
+
|
|
603
616
|
declare class CatalogSearchService implements OnDestroy {
|
|
604
617
|
private _filterService;
|
|
605
618
|
private _catalogConnectorService;
|
|
@@ -607,6 +620,7 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
607
620
|
private _settingsService;
|
|
608
621
|
private _optionService;
|
|
609
622
|
private _promptService;
|
|
623
|
+
private _screenConfigService;
|
|
610
624
|
searchRequest: ArticleExtendedRequest;
|
|
611
625
|
activeContentViewMode: ContentViewMode;
|
|
612
626
|
showFilterSidebar: boolean;
|
|
@@ -629,7 +643,7 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
629
643
|
private _turnoverGroup;
|
|
630
644
|
private _subs;
|
|
631
645
|
private _presetApplied;
|
|
632
|
-
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService, _promptService: PromptService);
|
|
646
|
+
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService, _promptService: PromptService, _screenConfigService: CatalogScreenConfigurationService);
|
|
633
647
|
ngOnDestroy(): void;
|
|
634
648
|
searchArticles(resetPaging?: boolean): void;
|
|
635
649
|
/**
|
|
@@ -643,25 +657,17 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
643
657
|
handleResetFilter(): void;
|
|
644
658
|
private _clearCache;
|
|
645
659
|
private _resetRequest;
|
|
660
|
+
/**
|
|
661
|
+
* Screen configuration default values take precedence over the (startup) parameters.
|
|
662
|
+
* Without a screen configuration default, the (startup) parameter value is kept.
|
|
663
|
+
*/
|
|
664
|
+
private _applyScreenConfigDefaults;
|
|
646
665
|
private _setRequestParametersAndProps;
|
|
647
666
|
private _resetRequestParametersAndProps;
|
|
648
667
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchService, never>;
|
|
649
668
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSearchService>;
|
|
650
669
|
}
|
|
651
670
|
|
|
652
|
-
declare class CatalogScreenConfigurationService extends BaseModuleScreenConfigService {
|
|
653
|
-
private _catalogAdapterService;
|
|
654
|
-
readonly screenModuleName: string;
|
|
655
|
-
private _screenConfigurationObjectCache;
|
|
656
|
-
constructor(_catalogAdapterService: CatalogConnectorAdapterService);
|
|
657
|
-
clear(): void;
|
|
658
|
-
protected loadConfigForModule(params: string[], insertRights?: boolean): Promise<ObjectConfiguration[]>;
|
|
659
|
-
private _setScreenConfigurationObjectCache;
|
|
660
|
-
private _screenConfigurationLoaded;
|
|
661
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogScreenConfigurationService, never>;
|
|
662
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogScreenConfigurationService>;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
671
|
declare class CatalogService extends BaseModuleService {
|
|
666
672
|
protected connector: CatalogConnectorService;
|
|
667
673
|
protected connectorAdapter: CatalogConnectorAdapterService;
|
|
@@ -855,7 +861,8 @@ declare enum ConfigNameEnum {
|
|
|
855
861
|
TurnoverGroupFilter = "turnoverGroupFilter",
|
|
856
862
|
BrandFilter = "brandFilter",
|
|
857
863
|
ResultTiles = "resultSetting",
|
|
858
|
-
PurchaseDescriptionFilter = "purchaseDescriptionFilter"
|
|
864
|
+
PurchaseDescriptionFilter = "purchaseDescriptionFilter",
|
|
865
|
+
PurchaseDescriptionResult = "purchaseDescriptionResult"
|
|
859
866
|
}
|
|
860
867
|
|
|
861
868
|
interface Category {
|
|
@@ -1618,6 +1625,7 @@ declare class CatalogSearchResultListComponent extends CatalogSearchBaseComponen
|
|
|
1618
1625
|
}
|
|
1619
1626
|
|
|
1620
1627
|
declare class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
1628
|
+
readonly cfgName: typeof ConfigNameEnum;
|
|
1621
1629
|
embedded: boolean;
|
|
1622
1630
|
isReturn: boolean;
|
|
1623
1631
|
showClass(): boolean;
|
|
@@ -1627,7 +1635,7 @@ declare class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
|
1627
1635
|
|
|
1628
1636
|
declare class CatalogArticleListModule {
|
|
1629
1637
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogArticleListModule, never>;
|
|
1630
|
-
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]>;
|
|
1638
|
+
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]>;
|
|
1631
1639
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogArticleListModule>;
|
|
1632
1640
|
}
|
|
1633
1641
|
|
|
@@ -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 {
|
|
@@ -23,6 +23,7 @@ $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
25
|
$co-catalog-article-list-article-buttons-button-border-radius: 5px !default;
|
|
26
|
+
$co-catalog-article-list-article-buttons-color: #FFF;
|
|
26
27
|
$co-catalog-article-list-article-buttons-background: #3E7EFF !default;
|
|
27
28
|
$co-catalog-article-list-article-buttons-button-size: 34px !default;
|
|
28
29
|
$co-catalog-article-list-article-price-font-size: 16px !default;
|