@colijnit/catalog 262.1.9 → 262.1.11
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 +57 -36
- package/fesm2022/colijnit-catalog.mjs.map +1 -1
- package/index.d.ts +17 -4
- package/package.json +9 -8
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, EventEmitter, OnInit, ElementRef, ChangeDetectorRef, PipeTransform } from '@angular/core';
|
|
2
|
+
import { OnDestroy, EventEmitter, OnInit, ElementRef, ChangeDetectorRef, PipeTransform, TemplateRef } from '@angular/core';
|
|
3
3
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { Options } from '@colijnit/ioneconnector/build/model/options';
|
|
5
5
|
import { ArticleExtendedRequest } from '@colijnit/articleapi/build/model/article-extended-request';
|
|
@@ -44,6 +44,7 @@ import { AvaliableCatalogs } from '@colijnit/articleapi/build/model/catalogs-ava
|
|
|
44
44
|
import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-group-image.bo';
|
|
45
45
|
import * as i2 from '@angular/common';
|
|
46
46
|
import { SafeHtml, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
47
|
+
import * as i9 from '@colijnit/sharedcomponents';
|
|
47
48
|
import { ArticleListObjectExtended } from '@colijnit/articleapi/build/model/article-list-object-extended.bo';
|
|
48
49
|
import { ExternalSourceArticleClickInterface } from '@colijnit/articleapi/build/interface/external-source-article-click.interface';
|
|
49
50
|
import { ExternalSourceArticleAddInterface } from '@colijnit/articleapi/build/interface/external-source-article-add.interface';
|
|
@@ -627,9 +628,15 @@ declare class CatalogSearchService implements OnDestroy {
|
|
|
627
628
|
private _category;
|
|
628
629
|
private _turnoverGroup;
|
|
629
630
|
private _subs;
|
|
631
|
+
private _presetApplied;
|
|
630
632
|
constructor(_filterService: CatalogFilterService, _catalogConnectorService: CatalogConnectorService, _catalogConnectorAdapterService: CatalogConnectorAdapterService, _settingsService: CatalogSettingsService, _optionService: CatalogOptionsService, _promptService: PromptService);
|
|
631
633
|
ngOnDestroy(): void;
|
|
632
634
|
searchArticles(resetPaging?: boolean): void;
|
|
635
|
+
/**
|
|
636
|
+
* Applies the given (preset) searchRequest and searches for articles based on that request.
|
|
637
|
+
* While a preset is applied, entering a search term keeps the request intact.
|
|
638
|
+
*/
|
|
639
|
+
applySearchRequest(searchRequest: ArticleExtendedRequest): void;
|
|
633
640
|
resetFilters(search?: boolean): void;
|
|
634
641
|
toggleFilter(): void;
|
|
635
642
|
handleHideFilter(): void;
|
|
@@ -1238,7 +1245,7 @@ declare class CatalogFilterContentLogisticsModule {
|
|
|
1238
1245
|
|
|
1239
1246
|
declare class CatalogFilterModule {
|
|
1240
1247
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogFilterModule, never>;
|
|
1241
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogFilterModule, [typeof CatalogFilterComponent], [typeof i2.CommonModule, typeof i3.IconModule, typeof i3.InputTextModule, typeof i3.FilterItemModule, typeof i3.InputDatePickerModule, typeof i3.IconCollapseHandleModule, typeof i3.InputCheckboxModule, typeof CatalogFilterCategoriesModule, typeof CatalogFilterContentGeneralModule, typeof CatalogFilterContentPurchaseModule, typeof CatalogFilterContentLogisticsModule, typeof CatalogPipeModule, typeof i3.ButtonModule, typeof i3.CoDialogModule, typeof i3.ListOfValuesModule, typeof
|
|
1248
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogFilterModule, [typeof CatalogFilterComponent], [typeof i2.CommonModule, typeof i3.IconModule, typeof i3.InputTextModule, typeof i3.FilterItemModule, typeof i3.InputDatePickerModule, typeof i3.IconCollapseHandleModule, typeof i3.InputCheckboxModule, typeof CatalogFilterCategoriesModule, typeof CatalogFilterContentGeneralModule, typeof CatalogFilterContentPurchaseModule, typeof CatalogFilterContentLogisticsModule, typeof CatalogPipeModule, typeof i3.ButtonModule, typeof i3.CoDialogModule, typeof i3.ListOfValuesModule, typeof i9.SearchPresetOverviewModule], [typeof CatalogFilterComponent]>;
|
|
1242
1249
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogFilterModule>;
|
|
1243
1250
|
}
|
|
1244
1251
|
|
|
@@ -1378,6 +1385,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1378
1385
|
externalSource: ExternalSourceInfo;
|
|
1379
1386
|
isReturn: boolean;
|
|
1380
1387
|
currentTransactionBranchId: number;
|
|
1388
|
+
searchPresetTemplate: TemplateRef<any>;
|
|
1381
1389
|
/**
|
|
1382
1390
|
* Defaults
|
|
1383
1391
|
* {name: 'CATEGORY', order: 1},
|
|
@@ -1414,8 +1422,13 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1414
1422
|
handleCategoryClick(category: string): void;
|
|
1415
1423
|
handleTurnoverGroupClick(turnoverGroup: string): void;
|
|
1416
1424
|
handleResetButtonClick(event: MouseEvent): void;
|
|
1425
|
+
/**
|
|
1426
|
+
* Applies the given searchRequest and searches for articles based on that request
|
|
1427
|
+
*/
|
|
1428
|
+
applySearchRequest(searchRequest: ArticleExtendedRequest): void;
|
|
1429
|
+
search(): void;
|
|
1417
1430
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchComponent, [{ host: true; }, { host: true; }, { host: true; }, null, null, null, null, null]>;
|
|
1418
|
-
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; }; "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>;
|
|
1431
|
+
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>;
|
|
1419
1432
|
}
|
|
1420
1433
|
|
|
1421
1434
|
declare class CatalogSearchHeaderComponent {
|
|
@@ -1640,7 +1653,7 @@ declare class CatalogSearchResultGridModule {
|
|
|
1640
1653
|
|
|
1641
1654
|
declare class CatalogSearchModule {
|
|
1642
1655
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchModule, never>;
|
|
1643
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogSearchModule, [typeof CatalogSearchComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof CatalogSearchHeaderModule, typeof CatalogSearchResultTileModule, typeof CatalogSearchResultListModule, typeof CatalogSearchResultGridModule, typeof CatalogCategoriesModule, typeof CatalogExternalSourcesModule, typeof CatalogNavigationModule, typeof i3.IconModule, typeof i3.ButtonModule, typeof CatalogPipeModule], [typeof CatalogSearchComponent]>;
|
|
1656
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogSearchModule, [typeof CatalogSearchComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof CatalogSearchHeaderModule, typeof CatalogSearchResultTileModule, typeof CatalogSearchResultListModule, typeof CatalogSearchResultGridModule, typeof CatalogCategoriesModule, typeof CatalogExternalSourcesModule, typeof CatalogNavigationModule, typeof i3.IconModule, typeof i3.ButtonModule, typeof CatalogPipeModule, typeof i9.SearchPresetOverviewModule], [typeof CatalogSearchComponent]>;
|
|
1644
1657
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogSearchModule>;
|
|
1645
1658
|
}
|
|
1646
1659
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "262.1.
|
|
3
|
+
"version": "262.1.11",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "iOne Catalog module based on Angular
|
|
5
|
+
"description": "iOne Catalog module based on Angular 20",
|
|
6
6
|
"repository": "npm/npm",
|
|
7
7
|
"private": false,
|
|
8
8
|
"peerDependencies": {
|
|
@@ -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": ">=262.1.0",
|
|
19
|
-
"@colijnit/transactionapi": ">=262.1.0",
|
|
20
|
-
"@colijnit/corecomponents_v12": ">=262.1.0",
|
|
21
|
-
"@colijnit/ioneconnector": ">=262.1.0",
|
|
22
|
-
"@colijnit/relationapi": ">=262.1.0",
|
|
23
|
-
"@colijnit/
|
|
18
|
+
"@colijnit/articleapi": ">=262.1.0 < 263",
|
|
19
|
+
"@colijnit/transactionapi": ">=262.1.0 < 263",
|
|
20
|
+
"@colijnit/corecomponents_v12": ">=262.1.0 < 263",
|
|
21
|
+
"@colijnit/ioneconnector": ">=262.1.0 < 263",
|
|
22
|
+
"@colijnit/relationapi": ">=262.1.0 < 263",
|
|
23
|
+
"@colijnit/sharedcomponents": ">=262.1.25 < 263",
|
|
24
|
+
"@colijnit/mainapi": ">=262.1.19 < 263",
|
|
24
25
|
"core-js": ">=2.5.4",
|
|
25
26
|
"rxjs": ">=7.4.0",
|
|
26
27
|
"xlsx": ">=0.18.5",
|