@colijnit/catalog 300.1.7 → 300.1.9

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/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, BaseModuleScreenConfigService, BaseModuleService, FilterItemMode } from '@colijnit/corecomponents_v12';
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 {
@@ -1627,6 +1634,7 @@ declare class CatalogSearchResultListComponent extends CatalogSearchBaseComponen
1627
1634
  }
1628
1635
 
1629
1636
  declare class CatalogArticleListComponent extends ArticleBaseComponent {
1637
+ readonly cfgName: typeof ConfigNameEnum;
1630
1638
  embedded: boolean;
1631
1639
  isReturn: boolean;
1632
1640
  showClass(): boolean;
@@ -1636,7 +1644,7 @@ declare class CatalogArticleListComponent extends ArticleBaseComponent {
1636
1644
 
1637
1645
  declare class CatalogArticleListModule {
1638
1646
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogArticleListModule, never>;
1639
- 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]>;
1647
+ 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]>;
1640
1648
  static ɵinj: i0.ɵɵInjectorDeclaration<CatalogArticleListModule>;
1641
1649
  }
1642
1650
 
@@ -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
- ::ng-deep co-icon {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/catalog",
3
- "version": "300.1.7",
3
+ "version": "300.1.9",
4
4
  "license": "MIT",
5
5
  "description": "iOne Catalog module based on Angular 20",
6
6
  "repository": "npm/npm",