@colijnit/catalog 261.20.1 → 261.20.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 +436 -365
- package/fesm2022/colijnit-catalog.mjs.map +1 -1
- package/index.d.ts +11 -6
- package/lib/component/catalog-external-sources/style/_layout.scss +16 -0
- package/lib/component/catalog-external-sources/style/_material-definition.scss +1 -0
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -286,7 +286,7 @@ declare class CatalogConnectorAdapterService implements OnDestroy {
|
|
|
286
286
|
setSuppliers(text: string): Promise<FilterItemViewmodel[]>;
|
|
287
287
|
getCategoryTypes(): Promise<CategoryType[]>;
|
|
288
288
|
getCategoryDesigns(): Promise<CategoryDesign[]>;
|
|
289
|
-
getAvailabeCatalogsForLoggedInUser(embedded: boolean): Promise<any>;
|
|
289
|
+
getAvailabeCatalogsForLoggedInUser(embedded: boolean, overrideBranchId: number): Promise<any>;
|
|
290
290
|
getPresets(module?: string, user?: string): Promise<Preset[]>;
|
|
291
291
|
getPreset(presetId: string): Promise<Preset>;
|
|
292
292
|
savePreset(preset: Preset): Promise<boolean>;
|
|
@@ -506,7 +506,7 @@ declare class CatalogConnectorService {
|
|
|
506
506
|
getSuppliers(): Promise<RelationListObject[]>;
|
|
507
507
|
getCategoryTypes(): Promise<CategoryType[]>;
|
|
508
508
|
getCategoryDesigns(): Promise<CategoryDesign[]>;
|
|
509
|
-
getAvailabeCatalogsForLoggedInUser(embedded: boolean): Promise<AvaliableCatalogs[]>;
|
|
509
|
+
getAvailabeCatalogsForLoggedInUser(embedded: boolean, overrideBranchId: number): Promise<AvaliableCatalogs[]>;
|
|
510
510
|
getPresets(module?: string, user?: string): Promise<Preset[]>;
|
|
511
511
|
getPreset(presetId: string): Promise<Preset>;
|
|
512
512
|
savePreset(preset: Preset): Promise<boolean>;
|
|
@@ -1152,6 +1152,7 @@ declare class CatalogNavigationComponent {
|
|
|
1152
1152
|
collectionLabel: string;
|
|
1153
1153
|
externalSourcesLabel: string;
|
|
1154
1154
|
showTurnoverGroups: boolean;
|
|
1155
|
+
currentTransactionBranchId: number;
|
|
1155
1156
|
view: HTMLElement;
|
|
1156
1157
|
homeClick: EventEmitter<void>;
|
|
1157
1158
|
categoryClick: EventEmitter<string>;
|
|
@@ -1194,7 +1195,7 @@ declare class CatalogNavigationComponent {
|
|
|
1194
1195
|
handleHideCollectionOverlay(): void;
|
|
1195
1196
|
handleHideExternalOverlay(): void;
|
|
1196
1197
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogNavigationComponent, never>;
|
|
1197
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogNavigationComponent, "co-catalog-navigation", never, { "homeLabel": { "alias": "homeLabel"; "required": false; }; "collectionLabel": { "alias": "collectionLabel"; "required": false; }; "externalSourcesLabel": { "alias": "externalSourcesLabel"; "required": false; }; "showTurnoverGroups": { "alias": "showTurnoverGroups"; "required": false; }; "view": { "alias": "view"; "required": false; }; "minified": { "alias": "minified"; "required": false; }; }, { "homeClick": "homeClick"; "categoryClick": "categoryClick"; "turnoverGroupClick": "turnoverGroupClick"; "externalSourceClick": "externalSourceClick"; }, never, never, false, never>;
|
|
1198
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogNavigationComponent, "co-catalog-navigation", never, { "homeLabel": { "alias": "homeLabel"; "required": false; }; "collectionLabel": { "alias": "collectionLabel"; "required": false; }; "externalSourcesLabel": { "alias": "externalSourcesLabel"; "required": false; }; "showTurnoverGroups": { "alias": "showTurnoverGroups"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; "view": { "alias": "view"; "required": false; }; "minified": { "alias": "minified"; "required": false; }; }, { "homeClick": "homeClick"; "categoryClick": "categoryClick"; "turnoverGroupClick": "turnoverGroupClick"; "externalSourceClick": "externalSourceClick"; }, never, never, false, never>;
|
|
1198
1199
|
}
|
|
1199
1200
|
|
|
1200
1201
|
declare class CatalogExternalSourcesComponent implements OnInit, OnDestroy {
|
|
@@ -1203,9 +1204,11 @@ declare class CatalogExternalSourcesComponent implements OnInit, OnDestroy {
|
|
|
1203
1204
|
private _adapterService;
|
|
1204
1205
|
isStandalone: boolean;
|
|
1205
1206
|
embedded: boolean;
|
|
1207
|
+
currentTransactionBranchId: number;
|
|
1206
1208
|
externalSourceClick: EventEmitter<ExternalSourceViewmodel>;
|
|
1207
1209
|
catalogsLoaded: EventEmitter<boolean>;
|
|
1208
1210
|
showClass(): boolean;
|
|
1211
|
+
pinnedExternalSourceViewModels: ExternalSourceViewmodel[];
|
|
1209
1212
|
externalSourceViewModels: ExternalSourceViewmodel[];
|
|
1210
1213
|
unavailableCatalogs: CatalogDefinition[];
|
|
1211
1214
|
private _subs;
|
|
@@ -1213,15 +1216,16 @@ declare class CatalogExternalSourcesComponent implements OnInit, OnDestroy {
|
|
|
1213
1216
|
ngOnInit(): Promise<void>;
|
|
1214
1217
|
ngOnDestroy(): void;
|
|
1215
1218
|
private _getCatalogs;
|
|
1219
|
+
private _sortAndLoadAvailableCatalogs;
|
|
1216
1220
|
private _loadCatalogs;
|
|
1217
1221
|
private _loadUnavailableCatalogs;
|
|
1218
1222
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesComponent, never>;
|
|
1219
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogExternalSourcesComponent, "co-catalog-external-sources", never, { "isStandalone": { "alias": "isStandalone"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; }, { "externalSourceClick": "externalSourceClick"; "catalogsLoaded": "catalogsLoaded"; }, never, never, false, never>;
|
|
1223
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CatalogExternalSourcesComponent, "co-catalog-external-sources", never, { "isStandalone": { "alias": "isStandalone"; "required": false; }; "embedded": { "alias": "embedded"; "required": false; }; "currentTransactionBranchId": { "alias": "currentTransactionBranchId"; "required": false; }; }, { "externalSourceClick": "externalSourceClick"; "catalogsLoaded": "catalogsLoaded"; }, never, never, false, never>;
|
|
1220
1224
|
}
|
|
1221
1225
|
|
|
1222
1226
|
declare class CatalogExternalSourcesModule {
|
|
1223
1227
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogExternalSourcesModule, never>;
|
|
1224
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogExternalSourcesModule, [typeof CatalogExternalSourcesComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof i3.ImageModule, typeof ResponsiveTextModule], [typeof CatalogExternalSourcesComponent]>;
|
|
1228
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogExternalSourcesModule, [typeof CatalogExternalSourcesComponent], [typeof i2.CommonModule, typeof CatalogFilterModule, typeof i3.ImageModule, typeof ResponsiveTextModule, typeof CatalogPipeModule], [typeof CatalogExternalSourcesComponent]>;
|
|
1225
1229
|
static ɵinj: i0.ɵɵInjectorDeclaration<CatalogExternalSourcesModule>;
|
|
1226
1230
|
}
|
|
1227
1231
|
|
|
@@ -1254,6 +1258,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1254
1258
|
embedded: boolean;
|
|
1255
1259
|
externalSource: ExternalSource;
|
|
1256
1260
|
isReturn: boolean;
|
|
1261
|
+
currentTransactionBranchId: number;
|
|
1257
1262
|
/**
|
|
1258
1263
|
* Defaults
|
|
1259
1264
|
* {name: 'CATEGORY', order: 1},
|
|
@@ -1291,7 +1296,7 @@ declare class CatalogSearchComponent implements OnInit, OnDestroy {
|
|
|
1291
1296
|
handleTurnoverGroupClick(turnoverGroup: string): void;
|
|
1292
1297
|
handleResetButtonClick(event: MouseEvent): void;
|
|
1293
1298
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogSearchComponent, [{ host: true; }, { host: true; }, { host: true; }, null, null, null, null, null]>;
|
|
1294
|
-
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; }; "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>;
|
|
1299
|
+
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>;
|
|
1295
1300
|
}
|
|
1296
1301
|
|
|
1297
1302
|
declare class CatalogSearchHeaderComponent {
|
|
@@ -5,6 +5,22 @@
|
|
|
5
5
|
font-family: $co-catalog-external-sources-font-family;
|
|
6
6
|
font-size: $co-catalog-external-sources-font-size;
|
|
7
7
|
|
|
8
|
+
.pinned-label {
|
|
9
|
+
font-size: $co-catalog-external-sources-font-size-big;
|
|
10
|
+
font-weight: bold;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pinned-divider-padding {
|
|
14
|
+
padding-top: 30px;
|
|
15
|
+
padding-bottom: 20px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.pinned-divider {
|
|
19
|
+
height: 1px;
|
|
20
|
+
width: 100%;
|
|
21
|
+
background-color: black;
|
|
22
|
+
}
|
|
23
|
+
|
|
8
24
|
.catalog-external-sources-wrapper {
|
|
9
25
|
display: grid;
|
|
10
26
|
grid-template-columns: repeat(auto-fit, minmax(10px, $co-catalog-external-sources-image-size));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
$co-catalog-external-sources-font-family: $ca-font-family !default;
|
|
2
2
|
$co-catalog-external-sources-font-size: $ca-font-size !default;
|
|
3
|
+
$co-catalog-external-sources-font-size-big: $ca-font-size-big !default;
|
|
3
4
|
$co-catalog-external-sources-image-size: 150px !default;
|
|
4
5
|
$co-catalog-external-sources-padding: 0 !default;
|
|
5
6
|
$co-catalog-external-sources-column-gap: 10px !default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/catalog",
|
|
3
|
-
"version": "261.20.
|
|
3
|
+
"version": "261.20.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "iOne Catalog module based on Angular 12",
|
|
6
6
|
"repository": "npm/npm",
|
|
@@ -15,11 +15,11 @@
|
|
|
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": ">=261.1.
|
|
18
|
+
"@colijnit/articleapi": ">=261.1.1",
|
|
19
19
|
"@colijnit/transactionapi": ">=261.1.0",
|
|
20
20
|
"@colijnit/corecomponents_v12": ">=261.20.0",
|
|
21
|
-
"@colijnit/ioneconnector": ">=261.1.
|
|
22
|
-
"@colijnit/relationapi": ">=261.1.
|
|
21
|
+
"@colijnit/ioneconnector": ">=261.1.2",
|
|
22
|
+
"@colijnit/relationapi": ">=261.1.1",
|
|
23
23
|
"@colijnit/mainapi": ">=261.1.0",
|
|
24
24
|
"core-js": ">=2.5.4",
|
|
25
25
|
"rxjs": ">=7.4.0",
|