@colijnit/catalog 300.1.6 → 300.1.8
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 +176 -67
- package/fesm2022/colijnit-catalog.mjs.map +1 -1
- package/index.d.ts +31 -17
- package/package.json +8 -7
package/index.d.ts
CHANGED
|
@@ -35,9 +35,10 @@ 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
|
+
import { Article } from '@colijnit/configuratorapi/build/model/article';
|
|
41
42
|
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
42
43
|
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
43
44
|
import { AvaliableCatalogs } from '@colijnit/articleapi/build/model/catalogs-available.bo';
|
|
@@ -75,6 +76,7 @@ declare class SettingsOptions {
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
declare class CatalogSettings extends Options {
|
|
79
|
+
currencySymbol: string;
|
|
78
80
|
additionalTranslationFile: string;
|
|
79
81
|
type: string;
|
|
80
82
|
createWebOrder: boolean;
|
|
@@ -252,6 +254,7 @@ declare class CatalogConnectorAdapterService implements OnDestroy {
|
|
|
252
254
|
getCatalogBundleSettings(url: string, upId: number): Promise<string>;
|
|
253
255
|
getBundleSettings(url: string, upId: number): Promise<any>;
|
|
254
256
|
getArticlesForCatalog(params: ArticleExtendedRequest, showLoader?: boolean): Promise<any>;
|
|
257
|
+
getArticleQuickSel(goodId: number): Promise<Article>;
|
|
255
258
|
getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
|
|
256
259
|
getArticlesForStockSearchTile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchTileResult>;
|
|
257
260
|
getArticlesForStockSearchGrid(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchGridResult>;
|
|
@@ -471,6 +474,7 @@ declare class CatalogConnectorService {
|
|
|
471
474
|
getBundleSettings(url: string, upId: number): Promise<any>;
|
|
472
475
|
getArticlesForCatalog(params: ArticleExtendedRequest, showLoader?: boolean): Promise<any>;
|
|
473
476
|
getArticleCategories(publicationCode: number): Promise<ArticleCategory[]>;
|
|
477
|
+
getArticleQuickSel(goodId: number): Promise<Article>;
|
|
474
478
|
getArticlesForStockSearchTile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchTileResult>;
|
|
475
479
|
getArticlesForStockSearchGrid(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<ArticlesStockSearchGridResult>;
|
|
476
480
|
getArticleGridViewExcelFile(params: ArticleStockSearchRequest, showLoader?: boolean): Promise<any[]>;
|
|
@@ -600,6 +604,19 @@ declare class CatalogFilterService {
|
|
|
600
604
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogFilterService>;
|
|
601
605
|
}
|
|
602
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
|
+
|
|
603
620
|
declare class CatalogSearchService implements OnDestroy {
|
|
604
621
|
private _filterService;
|
|
605
622
|
private _catalogConnectorService;
|
|
@@ -607,6 +624,7 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
607
624
|
private _settingsService;
|
|
608
625
|
private _optionService;
|
|
609
626
|
private _promptService;
|
|
627
|
+
private _screenConfigService;
|
|
610
628
|
searchRequest: ArticleExtendedRequest;
|
|
611
629
|
activeContentViewMode: ContentViewMode;
|
|
612
630
|
showFilterSidebar: boolean;
|
|
@@ -629,7 +647,7 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
629
647
|
private _turnoverGroup;
|
|
630
648
|
private _subs;
|
|
631
649
|
private _presetApplied;
|
|
632
|
-
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);
|
|
633
651
|
ngOnDestroy(): void;
|
|
634
652
|
searchArticles(resetPaging?: boolean): void;
|
|
635
653
|
/**
|
|
@@ -643,25 +661,17 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
643
661
|
handleResetFilter(): void;
|
|
644
662
|
private _clearCache;
|
|
645
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;
|
|
646
669
|
private _setRequestParametersAndProps;
|
|
647
670
|
private _resetRequestParametersAndProps;
|
|
648
671
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchService, never>;
|
|
649
672
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogSearchService>;
|
|
650
673
|
}
|
|
651
674
|
|
|
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
675
|
declare class CatalogService extends BaseModuleService {
|
|
666
676
|
protected connector: CatalogConnectorService;
|
|
667
677
|
protected connectorAdapter: CatalogConnectorAdapterService;
|
|
@@ -1379,6 +1389,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1379
1389
|
createFrozenArticle: boolean;
|
|
1380
1390
|
showNavigation: boolean;
|
|
1381
1391
|
showLandingPage: boolean;
|
|
1392
|
+
extendOutputWithPlacement: boolean;
|
|
1382
1393
|
tempFilter: boolean;
|
|
1383
1394
|
popupFilter: boolean;
|
|
1384
1395
|
showViewModes: boolean;
|
|
@@ -1407,6 +1418,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1407
1418
|
onArButtonClick: EventEmitter<ArticleExtended>;
|
|
1408
1419
|
onAddArticleButtonClick: EventEmitter<string | ArticleExtended>;
|
|
1409
1420
|
onArticleClick: EventEmitter<ArticleExtended>;
|
|
1421
|
+
onArticleClickJSON: EventEmitter<string>;
|
|
1410
1422
|
onStockDetailsClick: EventEmitter<ArticleExtended>;
|
|
1411
1423
|
onExternalSourceClick: EventEmitter<ExternalSourceViewmodel>;
|
|
1412
1424
|
showClass(): boolean;
|
|
@@ -1429,7 +1441,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1429
1441
|
applySearchRequest(searchRequest: ArticleExtendedRequest): void;
|
|
1430
1442
|
search(): void;
|
|
1431
1443
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchComponent, [{ host: true; }, { host: true; }, { host: true; }, null, null, null, null, null]>;
|
|
1432
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogSearchComponent, "co-catalog-search", never, { "settings": { "alias": "settings"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "showLandingPage": { "alias": "showLandingPage"; "required": false; }; "tempFilter": { "alias": "tempFilter"; "required": false; }; "popupFilter": { "alias": "popupFilter"; "required": false; }; "showViewModes": { "alias": "showViewModes"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "searchPresetTemplate": { "alias": "searchPresetTemplate"; "required": false; }; "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; }, { "settingsChange": "settingsChange"; "onLookAtArticleButtonClick": "onLookAtArticleButtonClick"; "onArButtonClick": "onArButtonClick"; "onAddArticleButtonClick": "onAddArticleButtonClick"; "onArticleClick": "onArticleClick"; "onStockDetailsClick": "onStockDetailsClick"; "onExternalSourceClick": "onExternalSourceClick"; }, never, never, false, never>;
|
|
1444
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogSearchComponent, "co-catalog-search", never, { "settings": { "alias": "settings"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subTitle": { "alias": "subTitle"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; "showLandingPage": { "alias": "showLandingPage"; "required": false; }; "extendOutputWithPlacement": { "alias": "extendOutputWithPlacement"; "required": false; }; "tempFilter": { "alias": "tempFilter"; "required": false; }; "popupFilter": { "alias": "popupFilter"; "required": false; }; "showViewModes": { "alias": "showViewModes"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "searchPresetTemplate": { "alias": "searchPresetTemplate"; "required": false; }; "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; }, { "settingsChange": "settingsChange"; "onLookAtArticleButtonClick": "onLookAtArticleButtonClick"; "onArButtonClick": "onArButtonClick"; "onAddArticleButtonClick": "onAddArticleButtonClick"; "onArticleClick": "onArticleClick"; "onArticleClickJSON": "onArticleClickJSON"; "onStockDetailsClick": "onStockDetailsClick"; "onExternalSourceClick": "onExternalSourceClick"; }, never, never, false, never>;
|
|
1433
1445
|
}
|
|
1434
1446
|
|
|
1435
1447
|
declare class CatalogSearchHeaderComponent {
|
|
@@ -1486,7 +1498,7 @@ declare class CatalogSearchResultTileComponent extends CatalogSearchBaseComponen
|
|
|
1486
1498
|
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogSearchResultTileComponent, "co-catalog-search-result-tile", never, { "embedded": { "alias": "embedded"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "showSelectionCheckbox": { "alias": "showSelectionCheckbox"; "required": false; }; "selectedArticles": { "alias": "selectedArticles"; "required": false; }; }, {}, never, never, false, never>;
|
|
1487
1499
|
}
|
|
1488
1500
|
|
|
1489
|
-
declare abstract class ArticleBaseComponent implements OnInit {
|
|
1501
|
+
declare abstract class ArticleBaseComponent implements OnInit, OnDestroy {
|
|
1490
1502
|
iconCache: IconCacheService;
|
|
1491
1503
|
catalogService: CatalogService;
|
|
1492
1504
|
options: CatalogOptionsService;
|
|
@@ -1536,8 +1548,10 @@ declare abstract class ArticleBaseComponent implements OnInit {
|
|
|
1536
1548
|
inStock: boolean;
|
|
1537
1549
|
stockAmount: string;
|
|
1538
1550
|
private _article;
|
|
1551
|
+
private _subs;
|
|
1539
1552
|
constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService, _dictionaryService: CatalogDictionaryService);
|
|
1540
1553
|
ngOnInit(): void;
|
|
1554
|
+
ngOnDestroy(): void;
|
|
1541
1555
|
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
1542
1556
|
handleAddArticleButtonClick(event: MouseEvent, isRetour?: boolean): Promise<void>;
|
|
1543
1557
|
handleStockDetailsButtonClick(event: MouseEvent): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "300.1.
|
|
3
|
+
"version": "300.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "iOne Catalog module based on Angular 20",
|
|
6
6
|
"repository": "npm/npm",
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"@angular/platform-browser": ">=20.3.16",
|
|
16
16
|
"@angular/platform-browser-dynamic": ">=20.3.16",
|
|
17
17
|
"@angular/router": ">=20.3.16",
|
|
18
|
-
"@colijnit/articleapi": ">=300.1.1",
|
|
19
|
-
"@colijnit/
|
|
20
|
-
"@colijnit/corecomponents_v12": ">=300.1.0",
|
|
21
|
-
"@colijnit/ioneconnector": ">=300.1.0",
|
|
22
|
-
"@colijnit/
|
|
23
|
-
"@colijnit/
|
|
18
|
+
"@colijnit/articleapi": ">=300.1.1 < 301",
|
|
19
|
+
"@colijnit/configuratorapi": ">=300.1.9 < 301",
|
|
20
|
+
"@colijnit/corecomponents_v12": ">=300.1.0 < 301",
|
|
21
|
+
"@colijnit/ioneconnector": ">=300.1.0 < 301",
|
|
22
|
+
"@colijnit/mainapi": ">=300.1.0 < 301",
|
|
23
|
+
"@colijnit/relationapi": ">=300.1.0 < 301",
|
|
24
|
+
"@colijnit/transactionapi": ">=300.1.0 < 301",
|
|
24
25
|
"core-js": ">=2.5.4",
|
|
25
26
|
"rxjs": ">=7.4.0",
|
|
26
27
|
"xlsx": ">=0.18.5",
|