@colijnit/catalog 257.1.11 → 257.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/bundles/colijnit-catalog.umd.js +6848 -6838
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.d.ts +42 -42
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/colijnit-catalog.js +42 -42
- package/esm2015/lib/cache/cache-field.js +74 -74
- package/esm2015/lib/cache/parameter-cache-field.js +53 -53
- package/esm2015/lib/cache/service/catalog-business-object-cache-manager.service.js +141 -141
- package/esm2015/lib/cache/service/catalog-select-multiple-cache.service.js +37 -37
- package/esm2015/lib/cache/service/catalog-select-multiple-parameterized-cache.service.js +46 -46
- package/esm2015/lib/cache/service/catalog-select-single-cache.service.js +29 -29
- package/esm2015/lib/cache/service/catalog-select-single-parameterized-cache.service.js +46 -46
- package/esm2015/lib/catalog-version.js +10 -10
- package/esm2015/lib/component/base/article-base.component.js +220 -220
- package/esm2015/lib/component/base/catalog-search-base.component.js +48 -48
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.component.js +23 -23
- package/esm2015/lib/component/catalog-article-list/catalog-article-list.module.js +28 -28
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.component.js +37 -37
- package/esm2015/lib/component/catalog-article-tile/catalog-article-tile.module.js +29 -29
- package/esm2015/lib/component/catalog-categories/catalog-categories.component.js +73 -73
- package/esm2015/lib/component/catalog-categories/catalog-categories.module.js +28 -28
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.component.js +242 -242
- package/esm2015/lib/component/catalog-external-source/catalog-external-source.module.js +20 -20
- package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.component.js +102 -99
- package/esm2015/lib/component/catalog-external-sources/catalog-external-sources.module.js +24 -24
- package/esm2015/lib/component/catalog-filter/catalog-filter.component.js +116 -116
- package/esm2015/lib/component/catalog-filter/catalog-filter.module.js +41 -41
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.component.js +39 -39
- package/esm2015/lib/component/catalog-filter-categories/catalog-filter-categories.module.js +22 -22
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.js +168 -152
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.js +30 -30
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.js +50 -50
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.js +29 -29
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.js +75 -75
- package/esm2015/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.js +28 -28
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.component.js +91 -91
- package/esm2015/lib/component/catalog-filter-item/catalog-filter-item.module.js +23 -23
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.component.js +195 -195
- package/esm2015/lib/component/catalog-navigation/catalog-navigation.module.js +28 -28
- package/esm2015/lib/component/catalog-search/catalog-search.component.js +215 -215
- package/esm2015/lib/component/catalog-search/catalog-search.module.js +37 -37
- package/esm2015/lib/component/catalog-search-header/catalog-search-header.component.js +31 -31
- package/esm2015/lib/component/catalog-search-header/catalog-search-header.module.js +21 -21
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.component.js +30 -30
- package/esm2015/lib/component/catalog-search-result-list/catalog-search-result-list.module.js +28 -28
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.js +34 -34
- package/esm2015/lib/component/catalog-search-result-tile/catalog-search-result-tile.module.js +28 -28
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.js +88 -88
- package/esm2015/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.js +24 -24
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.js +103 -103
- package/esm2015/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.js +27 -27
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.js +104 -104
- package/esm2015/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.js +24 -24
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.js +105 -105
- package/esm2015/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.js +27 -27
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.js +108 -108
- package/esm2015/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.js +24 -24
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.js +109 -109
- package/esm2015/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.js +27 -27
- package/esm2015/lib/component/responsive-text/responsive-text.component.js +17 -17
- package/esm2015/lib/component/responsive-text/responsive-text.module.js +18 -18
- package/esm2015/lib/directive/visibility-observer-master.directive.js +48 -48
- package/esm2015/lib/directive/visibility-observer.directive.js +54 -54
- package/esm2015/lib/directive/visibility-observer.module.js +17 -17
- package/esm2015/lib/enum/config-name.enum.js +41 -40
- package/esm2015/lib/enum/icon.enum.js +31 -31
- package/esm2015/lib/interface/category.interface.js +1 -1
- package/esm2015/lib/interface/filter-order.interface.js +1 -1
- package/esm2015/lib/model/article-stock-comparison-search-grid-result.js +3 -3
- package/esm2015/lib/model/article-stock-comparison-search-grid-selection.js +4 -4
- package/esm2015/lib/model/article-stock-comparison-search-tile-result.js +3 -3
- package/esm2015/lib/model/article-stock-comparison-search-tile-selection.js +4 -4
- package/esm2015/lib/model/article-stock-search-grid-selection.js +4 -4
- package/esm2015/lib/model/article-stock-search-tile-selection.js +4 -4
- package/esm2015/lib/model/article-stock-transfer-search-grid-result.js +3 -3
- package/esm2015/lib/model/article-stock-transfer-search-grid-selection.js +12 -12
- package/esm2015/lib/model/article-stock-transfer-search-tile-result.js +3 -3
- package/esm2015/lib/model/article-stock-transfer-search-tile-selection.js +4 -4
- package/esm2015/lib/model/articles-search-result.js +2 -2
- package/esm2015/lib/model/articles-stock-search-grid-result.js +3 -3
- package/esm2015/lib/model/articles-stock-search-tile-result.js +3 -3
- package/esm2015/lib/model/catalog-filter-viewmodel.js +3 -3
- package/esm2015/lib/model/external-source-viewmodel.js +6 -6
- package/esm2015/lib/model/icon.js +30 -30
- package/esm2015/lib/model/settings-options.js +18 -18
- package/esm2015/lib/model/settings.js +13 -13
- package/esm2015/lib/pipe/catalog-localize.pipe.js +26 -26
- package/esm2015/lib/pipe/catalog-pipe.module.js +18 -18
- package/esm2015/lib/res/dictionary/dictionaries.js +9 -9
- package/esm2015/lib/service/catalog-connector-adapter.service.js +720 -720
- package/esm2015/lib/service/catalog-connector.service.js +294 -294
- package/esm2015/lib/service/catalog-dictionary.service.js +96 -96
- package/esm2015/lib/service/catalog-event.service.js +19 -19
- package/esm2015/lib/service/catalog-filter.service.js +162 -162
- package/esm2015/lib/service/catalog-image.service.js +123 -123
- package/esm2015/lib/service/catalog-navigation.service.js +82 -82
- package/esm2015/lib/service/catalog-options.service.js +88 -88
- package/esm2015/lib/service/catalog-screen-configuration.service.js +48 -48
- package/esm2015/lib/service/catalog-search.service.js +154 -154
- package/esm2015/lib/service/catalog-settings.service.js +83 -83
- package/esm2015/lib/service/catalog-stock-comparison.service.js +89 -89
- package/esm2015/lib/service/catalog-stock-transfer.service.js +89 -89
- package/esm2015/lib/service/catalog-stock.service.js +89 -89
- package/esm2015/lib/service/catalog.service.js +204 -204
- package/esm2015/lib/service/icon-cache.service.js +39 -39
- package/esm2015/lib/utils/json.utils.js +29 -29
- package/esm2015/public_api.js +38 -38
- package/fesm2015/colijnit-catalog.js +5581 -5561
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/lib/cache/cache-field.d.ts +25 -25
- package/lib/cache/parameter-cache-field.d.ts +11 -11
- package/lib/cache/service/catalog-business-object-cache-manager.service.d.ts +55 -55
- package/lib/cache/service/catalog-select-multiple-cache.service.d.ts +15 -15
- package/lib/cache/service/catalog-select-multiple-parameterized-cache.service.d.ts +19 -19
- package/lib/cache/service/catalog-select-single-cache.service.d.ts +12 -12
- package/lib/cache/service/catalog-select-single-parameterized-cache.service.d.ts +18 -18
- package/lib/catalog-version.d.ts +6 -6
- package/lib/component/base/article-base.component.d.ts +78 -78
- package/lib/component/base/catalog-search-base.component.d.ts +24 -24
- package/lib/component/catalog-article-list/catalog-article-list.component.d.ts +6 -6
- package/lib/component/catalog-article-list/catalog-article-list.module.d.ts +2 -2
- package/lib/component/catalog-article-tile/catalog-article-tile.component.d.ts +12 -12
- package/lib/component/catalog-article-tile/catalog-article-tile.module.d.ts +2 -2
- package/lib/component/catalog-categories/catalog-categories.component.d.ts +24 -24
- package/lib/component/catalog-categories/catalog-categories.module.d.ts +2 -2
- package/lib/component/catalog-external-source/catalog-external-source.component.d.ts +59 -59
- package/lib/component/catalog-external-source/catalog-external-source.module.d.ts +2 -2
- package/lib/component/catalog-external-sources/catalog-external-sources.component.d.ts +24 -24
- package/lib/component/catalog-external-sources/catalog-external-sources.module.d.ts +2 -2
- package/lib/component/catalog-filter/catalog-filter.component.d.ts +45 -45
- package/lib/component/catalog-filter/catalog-filter.module.d.ts +2 -2
- package/lib/component/catalog-filter-categories/catalog-filter-categories.component.d.ts +11 -11
- package/lib/component/catalog-filter-categories/catalog-filter-categories.module.d.ts +2 -2
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.component.d.ts +56 -54
- package/lib/component/catalog-filter-content/catalog-filter-content-general/catalog-filter-content-general.module.d.ts +2 -2
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.component.d.ts +26 -26
- package/lib/component/catalog-filter-content/catalog-filter-content-logistics/catalog-filter-content-logistics.module.d.ts +2 -2
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.component.d.ts +31 -31
- package/lib/component/catalog-filter-content/catalog-filter-content-purchase/catalog-filter-content-purchase.module.d.ts +2 -2
- package/lib/component/catalog-filter-item/catalog-filter-item.component.d.ts +38 -38
- package/lib/component/catalog-filter-item/catalog-filter-item.module.d.ts +2 -2
- package/lib/component/catalog-navigation/catalog-navigation.component.d.ts +62 -62
- package/lib/component/catalog-navigation/catalog-navigation.module.d.ts +2 -2
- package/lib/component/catalog-search/catalog-search.component.d.ts +71 -71
- package/lib/component/catalog-search/catalog-search.module.d.ts +2 -2
- package/lib/component/catalog-search-header/catalog-search-header.component.d.ts +13 -13
- package/lib/component/catalog-search-header/catalog-search-header.module.d.ts +2 -2
- package/lib/component/catalog-search-result-list/catalog-search-result-list.component.d.ts +7 -7
- package/lib/component/catalog-search-result-list/catalog-search-result-list.module.d.ts +2 -2
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.component.d.ts +10 -10
- package/lib/component/catalog-search-result-tile/catalog-search-result-tile.module.d.ts +2 -2
- package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.component.d.ts +11 -11
- package/lib/component/catalog-stock-comparison-list/catalog-stock-comparison-list.module.d.ts +2 -2
- package/lib/component/catalog-stock-comparison-list/style/_layout.scss +5 -5
- package/lib/component/catalog-stock-comparison-list/style/_theme.scss +4 -4
- package/lib/component/catalog-stock-comparison-list/style/material.scss +4 -4
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.component.d.ts +23 -23
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.module.d.ts +2 -2
- package/lib/component/catalog-stock-comparison-tile/catalog-stock-comparison-tile.scss +87 -87
- package/lib/component/catalog-stock-comparison-tile/style/_layout.scss +16 -16
- package/lib/component/catalog-stock-comparison-tile/style/_theme.scss +4 -4
- package/lib/component/catalog-stock-comparison-tile/style/material.scss +4 -4
- package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.component.d.ts +11 -11
- package/lib/component/catalog-stock-overview-list/catalog-stock-overview-list.module.d.ts +2 -2
- package/lib/component/catalog-stock-overview-list/style/_layout.scss +5 -5
- package/lib/component/catalog-stock-overview-list/style/_theme.scss +4 -4
- package/lib/component/catalog-stock-overview-list/style/material.scss +4 -4
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.component.d.ts +25 -25
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.module.d.ts +2 -2
- package/lib/component/catalog-stock-overview-tile/catalog-stock-overview-tile.scss +85 -85
- package/lib/component/catalog-stock-overview-tile/style/_layout.scss +16 -16
- package/lib/component/catalog-stock-overview-tile/style/_theme.scss +4 -4
- package/lib/component/catalog-stock-overview-tile/style/material.scss +4 -4
- package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.component.d.ts +11 -11
- package/lib/component/catalog-warehouse-transfers-list/catalog-warehouse-transfers-list.module.d.ts +2 -2
- package/lib/component/catalog-warehouse-transfers-list/style/_layout.scss +5 -5
- package/lib/component/catalog-warehouse-transfers-list/style/_theme.scss +4 -4
- package/lib/component/catalog-warehouse-transfers-list/style/material.scss +4 -4
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.component.d.ts +23 -23
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.module.d.ts +2 -2
- package/lib/component/catalog-warehouse-transfers-tile/catalog-warehouse-transfers-tile.scss +91 -91
- package/lib/component/catalog-warehouse-transfers-tile/style/_layout.scss +16 -16
- package/lib/component/catalog-warehouse-transfers-tile/style/_theme.scss +4 -4
- package/lib/component/catalog-warehouse-transfers-tile/style/material.scss +4 -4
- package/lib/component/responsive-text/responsive-text.component.d.ts +4 -4
- package/lib/component/responsive-text/responsive-text.module.d.ts +2 -2
- package/lib/directive/visibility-observer-master.directive.d.ts +9 -9
- package/lib/directive/visibility-observer.directive.d.ts +13 -13
- package/lib/directive/visibility-observer.module.d.ts +2 -2
- package/lib/enum/config-name.enum.d.ts +39 -38
- package/lib/enum/icon.enum.d.ts +30 -30
- package/lib/interface/category.interface.d.ts +5 -5
- package/lib/interface/filter-order.interface.d.ts +4 -4
- package/lib/model/article-stock-comparison-search-grid-result.d.ts +5 -5
- package/lib/model/article-stock-comparison-search-grid-selection.d.ts +15 -15
- package/lib/model/article-stock-comparison-search-tile-result.d.ts +5 -5
- package/lib/model/article-stock-comparison-search-tile-selection.d.ts +15 -15
- package/lib/model/article-stock-search-grid-selection.d.ts +21 -21
- package/lib/model/article-stock-search-tile-selection.d.ts +15 -15
- package/lib/model/article-stock-transfer-search-grid-result.d.ts +5 -5
- package/lib/model/article-stock-transfer-search-grid-selection.d.ts +21 -21
- package/lib/model/article-stock-transfer-search-tile-result.d.ts +5 -5
- package/lib/model/article-stock-transfer-search-tile-selection.d.ts +16 -16
- package/lib/model/articles-search-result.d.ts +5 -5
- package/lib/model/articles-stock-search-grid-result.d.ts +5 -5
- package/lib/model/articles-stock-search-tile-result.d.ts +5 -5
- package/lib/model/catalog-filter-viewmodel.d.ts +5 -5
- package/lib/model/external-source-viewmodel.d.ts +7 -7
- package/lib/model/icon.d.ts +4 -4
- package/lib/model/settings-options.d.ts +17 -17
- package/lib/model/settings.d.ts +11 -11
- package/lib/pipe/catalog-localize.pipe.d.ts +7 -7
- package/lib/pipe/catalog-pipe.module.d.ts +2 -2
- package/lib/res/dictionary/dictionaries.d.ts +18880 -18878
- package/lib/service/catalog-connector-adapter.service.d.ts +105 -105
- package/lib/service/catalog-connector.service.d.ts +96 -96
- package/lib/service/catalog-dictionary.service.d.ts +25 -25
- package/lib/service/catalog-event.service.d.ts +13 -13
- package/lib/service/catalog-filter.service.d.ts +29 -29
- package/lib/service/catalog-image.service.d.ts +17 -17
- package/lib/service/catalog-navigation.service.d.ts +27 -27
- package/lib/service/catalog-options.service.d.ts +27 -27
- package/lib/service/catalog-screen-configuration.service.d.ts +13 -13
- package/lib/service/catalog-search.service.d.ts +45 -45
- package/lib/service/catalog-settings.service.d.ts +14 -14
- package/lib/service/catalog-stock-comparison.service.d.ts +30 -30
- package/lib/service/catalog-stock-transfer.service.d.ts +30 -30
- package/lib/service/catalog-stock.service.d.ts +30 -30
- package/lib/service/catalog.service.d.ts +82 -82
- package/lib/service/icon-cache.service.d.ts +17 -17
- package/lib/utils/json.utils.d.ts +3 -3
- package/package.json +3 -3
- package/public_api.d.ts +38 -38
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
export declare class CacheField<T> {
|
|
3
|
-
readonly onLoad: EventEmitter<any>;
|
|
4
|
-
get value(): T;
|
|
5
|
-
set value(value: T);
|
|
6
|
-
get isLoaded(): boolean;
|
|
7
|
-
get isLoading(): boolean;
|
|
8
|
-
get loadNeverCalled(): boolean;
|
|
9
|
-
loadFunction: (params?: any) => Promise<T>;
|
|
10
|
-
private _promiseValue;
|
|
11
|
-
private _value;
|
|
12
|
-
private _isLoaded;
|
|
13
|
-
constructor();
|
|
14
|
-
getValue(forceReload?: boolean): Promise<T>;
|
|
15
|
-
setValue(value: any): void;
|
|
16
|
-
/**
|
|
17
|
-
* POSTCONDITION: The .value of this cache field contains the loaded value as fetched by the resolve data of its .loadFunction.
|
|
18
|
-
* Will load only once, consecutive calls will resolve immediately or wait until the first original database fetch was finished.
|
|
19
|
-
* @returns {Promise<any>} Postcondition holds after resolve
|
|
20
|
-
*/
|
|
21
|
-
ensureLoaded(forceReload?: boolean): Promise<T>;
|
|
22
|
-
reload(): Promise<T>;
|
|
23
|
-
reset(): void;
|
|
24
|
-
private _load;
|
|
25
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class CacheField<T> {
|
|
3
|
+
readonly onLoad: EventEmitter<any>;
|
|
4
|
+
get value(): T;
|
|
5
|
+
set value(value: T);
|
|
6
|
+
get isLoaded(): boolean;
|
|
7
|
+
get isLoading(): boolean;
|
|
8
|
+
get loadNeverCalled(): boolean;
|
|
9
|
+
loadFunction: (params?: any) => Promise<T>;
|
|
10
|
+
private _promiseValue;
|
|
11
|
+
private _value;
|
|
12
|
+
private _isLoaded;
|
|
13
|
+
constructor();
|
|
14
|
+
getValue(forceReload?: boolean): Promise<T>;
|
|
15
|
+
setValue(value: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* POSTCONDITION: The .value of this cache field contains the loaded value as fetched by the resolve data of its .loadFunction.
|
|
18
|
+
* Will load only once, consecutive calls will resolve immediately or wait until the first original database fetch was finished.
|
|
19
|
+
* @returns {Promise<any>} Postcondition holds after resolve
|
|
20
|
+
*/
|
|
21
|
+
ensureLoaded(forceReload?: boolean): Promise<T>;
|
|
22
|
+
reload(): Promise<T>;
|
|
23
|
+
reset(): void;
|
|
24
|
+
private _load;
|
|
25
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare class ParameterCacheField<T> {
|
|
2
|
-
loadFunction: (...params: any[]) => Promise<T>;
|
|
3
|
-
private _paramsToCacheItems;
|
|
4
|
-
constructor();
|
|
5
|
-
getValue(...params: any[]): Promise<T>;
|
|
6
|
-
setValue(value: any, ...params: any[]): void;
|
|
7
|
-
reload(...params: any[]): Promise<T>;
|
|
8
|
-
reset(...params: any[]): void;
|
|
9
|
-
private _getCacheField;
|
|
10
|
-
private _makeNewCacheField;
|
|
11
|
-
}
|
|
1
|
+
export declare class ParameterCacheField<T> {
|
|
2
|
+
loadFunction: (...params: any[]) => Promise<T>;
|
|
3
|
+
private _paramsToCacheItems;
|
|
4
|
+
constructor();
|
|
5
|
+
getValue(...params: any[]): Promise<T>;
|
|
6
|
+
setValue(value: any, ...params: any[]): void;
|
|
7
|
+
reload(...params: any[]): Promise<T>;
|
|
8
|
+
reset(...params: any[]): void;
|
|
9
|
+
private _getCacheField;
|
|
10
|
+
private _makeNewCacheField;
|
|
11
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { CacheField } from '../cache-field';
|
|
3
|
-
import { ParameterCacheField } from '../parameter-cache-field';
|
|
4
|
-
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
5
|
-
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
6
|
-
/**
|
|
7
|
-
* App-wide, top-level, 'dumb' BO cache manager service. It stores and returns simple and parameterized business object cache items.
|
|
8
|
-
*
|
|
9
|
-
* Several other services register cache items onto this manager, such as repositories or the more generic SelectMultipleSimpleCacheService.
|
|
10
|
-
*
|
|
11
|
-
* This is a dumb cache manager. It just functions as a point to add and retrieve generic cache items, but does not know how to actually
|
|
12
|
-
* LOAD these cache items from the database, or what exact types the items are.
|
|
13
|
-
*
|
|
14
|
-
* All caches are reset when the user logs out.
|
|
15
|
-
*/
|
|
16
|
-
export declare class CatalogBusinessObjectCacheManagerService {
|
|
17
|
-
readonly reset: Subject<void>;
|
|
18
|
-
private static _NullBoId;
|
|
19
|
-
private _selectMultipleCache;
|
|
20
|
-
private _selectMultipleParameterizedCache;
|
|
21
|
-
private _selectSingleCache;
|
|
22
|
-
private _selectSingleParameterizedCache;
|
|
23
|
-
/**
|
|
24
|
-
* Creates and adds a new simple cache item for the given key with the given load function.
|
|
25
|
-
* @param key
|
|
26
|
-
* @param loadFunction e.g. () => { return this._dataService.selectMultiple(Color); }
|
|
27
|
-
* @param overrideOld Whether to allow an old cache item with the same key to become override by this newly created cache item.
|
|
28
|
-
* @returns The newly created cache item.
|
|
29
|
-
*/
|
|
30
|
-
addNewSelectMultipleCacheItem<T extends BusinessObject>(key: any, loadFunction: () => Promise<T[]>, overrideOld?: boolean): CacheField<T[]>;
|
|
31
|
-
addNewSelectSingleCacheItem<T extends BusinessObject>(key: {
|
|
32
|
-
new (): T;
|
|
33
|
-
}, id: BusinessObjectIDType, loadFunction: () => Promise<T>, overrideOld?: boolean): CacheField<T>;
|
|
34
|
-
addNewSelectSingleParameterizedCacheItem<T extends Object>(key: any, loadFunction: (params?: any) => Promise<T>, overrideOld?: boolean): ParameterCacheField<T>;
|
|
35
|
-
/**
|
|
36
|
-
* Creates and adds a new parameterized cache item for the given key with the given load function.
|
|
37
|
-
* @param key
|
|
38
|
-
* @param loadFunction e.g. (category: ArticleCategory) => { return this._dataService.selectMultiple(TurnoverGroupImage, category); }
|
|
39
|
-
* @param overrideOld Whether to allow an old cache item with the same key to become override by this newly created cache item.
|
|
40
|
-
*/
|
|
41
|
-
addNewSelectMultipleParameterizedCacheItem<T extends BusinessObject>(key: any, loadFunction: (params?: any) => Promise<T[]>, overrideOld?: boolean): ParameterCacheField<T[]>;
|
|
42
|
-
hasSelectMultipleCacheItem(key: any): boolean;
|
|
43
|
-
hasSingleCacheItem<T extends BusinessObject>(key: {
|
|
44
|
-
new (): T;
|
|
45
|
-
}, id?: BusinessObjectIDType): boolean;
|
|
46
|
-
hasSelectMultipleParameterizedCacheItem(key: any): boolean;
|
|
47
|
-
hasSelectSingleParameterizedCacheItem(key: any): boolean;
|
|
48
|
-
getSelectMultipleCacheItem<T extends BusinessObject>(key: any): CacheField<T[]>;
|
|
49
|
-
getSingleCacheItem<T extends BusinessObject>(key: {
|
|
50
|
-
new (): T;
|
|
51
|
-
}, id?: BusinessObjectIDType): CacheField<T>;
|
|
52
|
-
getSelectMultipleParameterCacheItem<T extends BusinessObject>(key: any): ParameterCacheField<T[]>;
|
|
53
|
-
getSelectSingleParameterCacheItem<T>(key: any): ParameterCacheField<T>;
|
|
54
|
-
private _reset;
|
|
55
|
-
}
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { CacheField } from '../cache-field';
|
|
3
|
+
import { ParameterCacheField } from '../parameter-cache-field';
|
|
4
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
5
|
+
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
6
|
+
/**
|
|
7
|
+
* App-wide, top-level, 'dumb' BO cache manager service. It stores and returns simple and parameterized business object cache items.
|
|
8
|
+
*
|
|
9
|
+
* Several other services register cache items onto this manager, such as repositories or the more generic SelectMultipleSimpleCacheService.
|
|
10
|
+
*
|
|
11
|
+
* This is a dumb cache manager. It just functions as a point to add and retrieve generic cache items, but does not know how to actually
|
|
12
|
+
* LOAD these cache items from the database, or what exact types the items are.
|
|
13
|
+
*
|
|
14
|
+
* All caches are reset when the user logs out.
|
|
15
|
+
*/
|
|
16
|
+
export declare class CatalogBusinessObjectCacheManagerService {
|
|
17
|
+
readonly reset: Subject<void>;
|
|
18
|
+
private static _NullBoId;
|
|
19
|
+
private _selectMultipleCache;
|
|
20
|
+
private _selectMultipleParameterizedCache;
|
|
21
|
+
private _selectSingleCache;
|
|
22
|
+
private _selectSingleParameterizedCache;
|
|
23
|
+
/**
|
|
24
|
+
* Creates and adds a new simple cache item for the given key with the given load function.
|
|
25
|
+
* @param key
|
|
26
|
+
* @param loadFunction e.g. () => { return this._dataService.selectMultiple(Color); }
|
|
27
|
+
* @param overrideOld Whether to allow an old cache item with the same key to become override by this newly created cache item.
|
|
28
|
+
* @returns The newly created cache item.
|
|
29
|
+
*/
|
|
30
|
+
addNewSelectMultipleCacheItem<T extends BusinessObject>(key: any, loadFunction: () => Promise<T[]>, overrideOld?: boolean): CacheField<T[]>;
|
|
31
|
+
addNewSelectSingleCacheItem<T extends BusinessObject>(key: {
|
|
32
|
+
new (): T;
|
|
33
|
+
}, id: BusinessObjectIDType, loadFunction: () => Promise<T>, overrideOld?: boolean): CacheField<T>;
|
|
34
|
+
addNewSelectSingleParameterizedCacheItem<T extends Object>(key: any, loadFunction: (params?: any) => Promise<T>, overrideOld?: boolean): ParameterCacheField<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Creates and adds a new parameterized cache item for the given key with the given load function.
|
|
37
|
+
* @param key
|
|
38
|
+
* @param loadFunction e.g. (category: ArticleCategory) => { return this._dataService.selectMultiple(TurnoverGroupImage, category); }
|
|
39
|
+
* @param overrideOld Whether to allow an old cache item with the same key to become override by this newly created cache item.
|
|
40
|
+
*/
|
|
41
|
+
addNewSelectMultipleParameterizedCacheItem<T extends BusinessObject>(key: any, loadFunction: (params?: any) => Promise<T[]>, overrideOld?: boolean): ParameterCacheField<T[]>;
|
|
42
|
+
hasSelectMultipleCacheItem(key: any): boolean;
|
|
43
|
+
hasSingleCacheItem<T extends BusinessObject>(key: {
|
|
44
|
+
new (): T;
|
|
45
|
+
}, id?: BusinessObjectIDType): boolean;
|
|
46
|
+
hasSelectMultipleParameterizedCacheItem(key: any): boolean;
|
|
47
|
+
hasSelectSingleParameterizedCacheItem(key: any): boolean;
|
|
48
|
+
getSelectMultipleCacheItem<T extends BusinessObject>(key: any): CacheField<T[]>;
|
|
49
|
+
getSingleCacheItem<T extends BusinessObject>(key: {
|
|
50
|
+
new (): T;
|
|
51
|
+
}, id?: BusinessObjectIDType): CacheField<T>;
|
|
52
|
+
getSelectMultipleParameterCacheItem<T extends BusinessObject>(key: any): ParameterCacheField<T[]>;
|
|
53
|
+
getSelectSingleParameterCacheItem<T>(key: any): ParameterCacheField<T>;
|
|
54
|
+
private _reset;
|
|
55
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
2
|
-
import { CacheField } from '../cache-field';
|
|
3
|
-
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
4
|
-
export declare class CatalogSelectMultipleCacheService {
|
|
5
|
-
private _boCacheManager;
|
|
6
|
-
private static _NullCache;
|
|
7
|
-
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
8
|
-
/**
|
|
9
|
-
* Returns the global cache item for the select multiple of the given business object class. Creates a new cache item if not yet exists.
|
|
10
|
-
* @param clazz The BO class, e.g. CustomerFullObject
|
|
11
|
-
* @returns {CacheField<T[]>}
|
|
12
|
-
*/
|
|
13
|
-
requestCache<T extends BusinessObject>(clazz: typeof BusinessObject, loadFunction: () => Promise<T[]>): CacheField<T[]>;
|
|
14
|
-
private _createCacheItem;
|
|
15
|
-
}
|
|
1
|
+
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
2
|
+
import { CacheField } from '../cache-field';
|
|
3
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
4
|
+
export declare class CatalogSelectMultipleCacheService {
|
|
5
|
+
private _boCacheManager;
|
|
6
|
+
private static _NullCache;
|
|
7
|
+
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
8
|
+
/**
|
|
9
|
+
* Returns the global cache item for the select multiple of the given business object class. Creates a new cache item if not yet exists.
|
|
10
|
+
* @param clazz The BO class, e.g. CustomerFullObject
|
|
11
|
+
* @returns {CacheField<T[]>}
|
|
12
|
+
*/
|
|
13
|
+
requestCache<T extends BusinessObject>(clazz: typeof BusinessObject, loadFunction: () => Promise<T[]>): CacheField<T[]>;
|
|
14
|
+
private _createCacheItem;
|
|
15
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
4
|
-
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
5
|
-
import { ParameterCacheField } from '../parameter-cache-field';
|
|
6
|
-
export declare class CatalogSelectMultipleParameterizedCacheService implements OnDestroy {
|
|
7
|
-
private _boCacheManager;
|
|
8
|
-
readonly reset: Subject<void>;
|
|
9
|
-
private _subs;
|
|
10
|
-
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Returns the global cache item for the parameterized select multiple of the given business object class. Creates a new cache item if not yet exists.
|
|
14
|
-
* @param clazz The BO class, used for undeflying dataService.selectMultiple(clazz) call.
|
|
15
|
-
* @returns {CacheField<T[]>}
|
|
16
|
-
*/
|
|
17
|
-
requestCache<T extends BusinessObject>(clazz: typeof BusinessObject, loadFunction: (...params: any) => Promise<T[]>): ParameterCacheField<T[]>;
|
|
18
|
-
private _createParameterizedCacheItem;
|
|
19
|
-
}
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
4
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
5
|
+
import { ParameterCacheField } from '../parameter-cache-field';
|
|
6
|
+
export declare class CatalogSelectMultipleParameterizedCacheService implements OnDestroy {
|
|
7
|
+
private _boCacheManager;
|
|
8
|
+
readonly reset: Subject<void>;
|
|
9
|
+
private _subs;
|
|
10
|
+
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the global cache item for the parameterized select multiple of the given business object class. Creates a new cache item if not yet exists.
|
|
14
|
+
* @param clazz The BO class, used for undeflying dataService.selectMultiple(clazz) call.
|
|
15
|
+
* @returns {CacheField<T[]>}
|
|
16
|
+
*/
|
|
17
|
+
requestCache<T extends BusinessObject>(clazz: typeof BusinessObject, loadFunction: (...params: any) => Promise<T[]>): ParameterCacheField<T[]>;
|
|
18
|
+
private _createParameterizedCacheItem;
|
|
19
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
2
|
-
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
3
|
-
import { CacheField } from '../cache-field';
|
|
4
|
-
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
5
|
-
export declare class CatalogSelectSingleCacheService {
|
|
6
|
-
private _boCacheManager;
|
|
7
|
-
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
8
|
-
requestCache<T extends BusinessObject>(clazz: {
|
|
9
|
-
new (): T;
|
|
10
|
-
}, sourceId: BusinessObjectIDType, loadFunction: () => Promise<T>): CacheField<T>;
|
|
11
|
-
private _createCacheItem;
|
|
12
|
-
}
|
|
1
|
+
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
2
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
3
|
+
import { CacheField } from '../cache-field';
|
|
4
|
+
import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
|
|
5
|
+
export declare class CatalogSelectSingleCacheService {
|
|
6
|
+
private _boCacheManager;
|
|
7
|
+
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
8
|
+
requestCache<T extends BusinessObject>(clazz: {
|
|
9
|
+
new (): T;
|
|
10
|
+
}, sourceId: BusinessObjectIDType, loadFunction: () => Promise<T>): CacheField<T>;
|
|
11
|
+
private _createCacheItem;
|
|
12
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
4
|
-
import { ParameterCacheField } from '../parameter-cache-field';
|
|
5
|
-
export declare class CatalogSelectSingleParameterizedCacheService implements OnDestroy {
|
|
6
|
-
private _boCacheManager;
|
|
7
|
-
readonly reset: Subject<void>;
|
|
8
|
-
private _subs;
|
|
9
|
-
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
/**
|
|
12
|
-
* Returns the global cache item for the parameterized select single of the given business object class. Creates a new cache item if not yet exists.
|
|
13
|
-
* @param clazz The BO class, used for undeflying dataService.selectSingle(clazz) call.
|
|
14
|
-
* @returns {CacheField<T>}
|
|
15
|
-
*/
|
|
16
|
-
requestCache<T>(clazz: any, loadFunction: (...params: any) => Promise<T>): ParameterCacheField<T>;
|
|
17
|
-
private _createParameterizedCacheItem;
|
|
18
|
-
}
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { CatalogBusinessObjectCacheManagerService } from './catalog-business-object-cache-manager.service';
|
|
4
|
+
import { ParameterCacheField } from '../parameter-cache-field';
|
|
5
|
+
export declare class CatalogSelectSingleParameterizedCacheService implements OnDestroy {
|
|
6
|
+
private _boCacheManager;
|
|
7
|
+
readonly reset: Subject<void>;
|
|
8
|
+
private _subs;
|
|
9
|
+
constructor(_boCacheManager: CatalogBusinessObjectCacheManagerService);
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the global cache item for the parameterized select single of the given business object class. Creates a new cache item if not yet exists.
|
|
13
|
+
* @param clazz The BO class, used for undeflying dataService.selectSingle(clazz) call.
|
|
14
|
+
* @returns {CacheField<T>}
|
|
15
|
+
*/
|
|
16
|
+
requestCache<T>(clazz: any, loadFunction: (...params: any) => Promise<T>): ParameterCacheField<T>;
|
|
17
|
+
private _createParameterizedCacheItem;
|
|
18
|
+
}
|
package/lib/catalog-version.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class Version {
|
|
2
|
-
name: string;
|
|
3
|
-
description: string;
|
|
4
|
-
symVer: string;
|
|
5
|
-
publishDate: string;
|
|
6
|
-
}
|
|
1
|
+
export declare class Version {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
symVer: string;
|
|
5
|
+
publishDate: string;
|
|
6
|
+
}
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { IconEnum } from '../../enum/icon.enum';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
4
|
-
import { IconCacheService } from '../../service/icon-cache.service';
|
|
5
|
-
import { CatalogService } from '../../service/catalog.service';
|
|
6
|
-
import { CatalogOptionsService } from '../../service/catalog-options.service';
|
|
7
|
-
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
8
|
-
import { CatalogEventService } from '../../service/catalog-event.service';
|
|
9
|
-
import { CatalogImageService } from '../../service/catalog-image.service';
|
|
10
|
-
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
11
|
-
import { CatalogDictionaryService } from '../../service/catalog-dictionary.service';
|
|
12
|
-
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
13
|
-
import { ArticleStockSearchTileSelection } from '../../model/article-stock-search-tile-selection';
|
|
14
|
-
import { ArticleStockTransferSearchTileSelection } from '../../model/article-stock-transfer-search-tile-selection';
|
|
15
|
-
import { ArticleStockComparisonSearchTileSelection } from '../../model/article-stock-comparison-search-tile-selection';
|
|
16
|
-
export declare abstract class ArticleBaseComponent implements OnInit {
|
|
17
|
-
iconCache: IconCacheService;
|
|
18
|
-
catalogService: CatalogService;
|
|
19
|
-
options: CatalogOptionsService;
|
|
20
|
-
private _iOne;
|
|
21
|
-
private _changeDetector;
|
|
22
|
-
private _appEventService;
|
|
23
|
-
private _imageService;
|
|
24
|
-
private _settingsService;
|
|
25
|
-
private _dictionaryService;
|
|
26
|
-
readonly icons: typeof IconEnum;
|
|
27
|
-
set article(value: ArticleExtended);
|
|
28
|
-
get article(): ArticleExtended;
|
|
29
|
-
set showing(value: boolean);
|
|
30
|
-
imageData: string;
|
|
31
|
-
createFrozenArticle: boolean;
|
|
32
|
-
price: number | string;
|
|
33
|
-
isSelected: boolean;
|
|
34
|
-
isSmallModus: boolean;
|
|
35
|
-
hasMagnifierButton: boolean;
|
|
36
|
-
hasInfoButton: boolean;
|
|
37
|
-
externalSource: ExternalSource;
|
|
38
|
-
onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
|
|
39
|
-
onArButtonClick: EventEmitter<ArticleExtended>;
|
|
40
|
-
onArticleCheckboxClicked: EventEmitter<{
|
|
41
|
-
article: ArticleExtended;
|
|
42
|
-
selected: boolean;
|
|
43
|
-
}>;
|
|
44
|
-
onAddArticleButtonClick: EventEmitter<string | ArticleExtended>;
|
|
45
|
-
onArticleClick: EventEmitter<ArticleExtended>;
|
|
46
|
-
onStockDetailsClick: EventEmitter<ArticleExtended>;
|
|
47
|
-
readonly contentClick: EventEmitter<MouseEvent>;
|
|
48
|
-
readonly infoButtonClick: EventEmitter<MouseEvent>;
|
|
49
|
-
readonly magnifierButtonClick: EventEmitter<MouseEvent>;
|
|
50
|
-
readonly threeDButtonClick: EventEmitter<MouseEvent>;
|
|
51
|
-
showClass(): boolean;
|
|
52
|
-
onHostClick(event: MouseEvent): void;
|
|
53
|
-
configurable: boolean;
|
|
54
|
-
threeD: boolean;
|
|
55
|
-
description: string;
|
|
56
|
-
added_description: string;
|
|
57
|
-
stock_available: any;
|
|
58
|
-
name: string;
|
|
59
|
-
valutaSymbol: string;
|
|
60
|
-
turnover: string;
|
|
61
|
-
stockLabel: string;
|
|
62
|
-
deliveryTimeLabel: string;
|
|
63
|
-
inStock: boolean;
|
|
64
|
-
stockAmount: string;
|
|
65
|
-
private _article;
|
|
66
|
-
constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService, _dictionaryService: CatalogDictionaryService);
|
|
67
|
-
ngOnInit(): void;
|
|
68
|
-
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
69
|
-
handleAddArticleButtonClick(event: MouseEvent, isRetour?: boolean): Promise<void>;
|
|
70
|
-
handleStockDetailsButtonClick(event: MouseEvent): void;
|
|
71
|
-
handleStockArticleDetailsButtonClick(article: ArticleStockSearchTileSelection | ArticleStockTransferSearchTileSelection | ArticleStockComparisonSearchTileSelection, event: MouseEvent): void;
|
|
72
|
-
handleArButtonClick(event: MouseEvent): void;
|
|
73
|
-
handleCheckboxClicked(checked: boolean): void;
|
|
74
|
-
removeHtmlTags(desc: string): string;
|
|
75
|
-
private _getJSONFromArticleObject;
|
|
76
|
-
private _detectChanges;
|
|
77
|
-
private _getThumbNailImagesPriceAndStock;
|
|
78
|
-
}
|
|
1
|
+
import { IconEnum } from '../../enum/icon.enum';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
+
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
4
|
+
import { IconCacheService } from '../../service/icon-cache.service';
|
|
5
|
+
import { CatalogService } from '../../service/catalog.service';
|
|
6
|
+
import { CatalogOptionsService } from '../../service/catalog-options.service';
|
|
7
|
+
import { CatalogConnectorService } from '../../service/catalog-connector.service';
|
|
8
|
+
import { CatalogEventService } from '../../service/catalog-event.service';
|
|
9
|
+
import { CatalogImageService } from '../../service/catalog-image.service';
|
|
10
|
+
import { CatalogSettingsService } from '../../service/catalog-settings.service';
|
|
11
|
+
import { CatalogDictionaryService } from '../../service/catalog-dictionary.service';
|
|
12
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
13
|
+
import { ArticleStockSearchTileSelection } from '../../model/article-stock-search-tile-selection';
|
|
14
|
+
import { ArticleStockTransferSearchTileSelection } from '../../model/article-stock-transfer-search-tile-selection';
|
|
15
|
+
import { ArticleStockComparisonSearchTileSelection } from '../../model/article-stock-comparison-search-tile-selection';
|
|
16
|
+
export declare abstract class ArticleBaseComponent implements OnInit {
|
|
17
|
+
iconCache: IconCacheService;
|
|
18
|
+
catalogService: CatalogService;
|
|
19
|
+
options: CatalogOptionsService;
|
|
20
|
+
private _iOne;
|
|
21
|
+
private _changeDetector;
|
|
22
|
+
private _appEventService;
|
|
23
|
+
private _imageService;
|
|
24
|
+
private _settingsService;
|
|
25
|
+
private _dictionaryService;
|
|
26
|
+
readonly icons: typeof IconEnum;
|
|
27
|
+
set article(value: ArticleExtended);
|
|
28
|
+
get article(): ArticleExtended;
|
|
29
|
+
set showing(value: boolean);
|
|
30
|
+
imageData: string;
|
|
31
|
+
createFrozenArticle: boolean;
|
|
32
|
+
price: number | string;
|
|
33
|
+
isSelected: boolean;
|
|
34
|
+
isSmallModus: boolean;
|
|
35
|
+
hasMagnifierButton: boolean;
|
|
36
|
+
hasInfoButton: boolean;
|
|
37
|
+
externalSource: ExternalSource;
|
|
38
|
+
onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
|
|
39
|
+
onArButtonClick: EventEmitter<ArticleExtended>;
|
|
40
|
+
onArticleCheckboxClicked: EventEmitter<{
|
|
41
|
+
article: ArticleExtended;
|
|
42
|
+
selected: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
onAddArticleButtonClick: EventEmitter<string | ArticleExtended>;
|
|
45
|
+
onArticleClick: EventEmitter<ArticleExtended>;
|
|
46
|
+
onStockDetailsClick: EventEmitter<ArticleExtended>;
|
|
47
|
+
readonly contentClick: EventEmitter<MouseEvent>;
|
|
48
|
+
readonly infoButtonClick: EventEmitter<MouseEvent>;
|
|
49
|
+
readonly magnifierButtonClick: EventEmitter<MouseEvent>;
|
|
50
|
+
readonly threeDButtonClick: EventEmitter<MouseEvent>;
|
|
51
|
+
showClass(): boolean;
|
|
52
|
+
onHostClick(event: MouseEvent): void;
|
|
53
|
+
configurable: boolean;
|
|
54
|
+
threeD: boolean;
|
|
55
|
+
description: string;
|
|
56
|
+
added_description: string;
|
|
57
|
+
stock_available: any;
|
|
58
|
+
name: string;
|
|
59
|
+
valutaSymbol: string;
|
|
60
|
+
turnover: string;
|
|
61
|
+
stockLabel: string;
|
|
62
|
+
deliveryTimeLabel: string;
|
|
63
|
+
inStock: boolean;
|
|
64
|
+
stockAmount: string;
|
|
65
|
+
private _article;
|
|
66
|
+
constructor(iconCache: IconCacheService, catalogService: CatalogService, options: CatalogOptionsService, _iOne: CatalogConnectorService, _changeDetector: ChangeDetectorRef, _appEventService: CatalogEventService, _imageService: CatalogImageService, _settingsService: CatalogSettingsService, _dictionaryService: CatalogDictionaryService);
|
|
67
|
+
ngOnInit(): void;
|
|
68
|
+
handleLookAtArticleButtonClick(event: MouseEvent): void;
|
|
69
|
+
handleAddArticleButtonClick(event: MouseEvent, isRetour?: boolean): Promise<void>;
|
|
70
|
+
handleStockDetailsButtonClick(event: MouseEvent): void;
|
|
71
|
+
handleStockArticleDetailsButtonClick(article: ArticleStockSearchTileSelection | ArticleStockTransferSearchTileSelection | ArticleStockComparisonSearchTileSelection, event: MouseEvent): void;
|
|
72
|
+
handleArButtonClick(event: MouseEvent): void;
|
|
73
|
+
handleCheckboxClicked(checked: boolean): void;
|
|
74
|
+
removeHtmlTags(desc: string): string;
|
|
75
|
+
private _getJSONFromArticleObject;
|
|
76
|
+
private _detectChanges;
|
|
77
|
+
private _getThumbNailImagesPriceAndStock;
|
|
78
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
3
|
-
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
4
|
-
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
5
|
-
export declare abstract class CatalogSearchBaseComponent {
|
|
6
|
-
catalogSearchService: CatalogSearchService;
|
|
7
|
-
createFrozenArticle: boolean;
|
|
8
|
-
externalSource: ExternalSource;
|
|
9
|
-
onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
|
|
10
|
-
onArButtonClick: EventEmitter<ArticleExtended>;
|
|
11
|
-
onAddArticleButtonClick: EventEmitter<string | ArticleExtended>;
|
|
12
|
-
onArticleClick: EventEmitter<ArticleExtended>;
|
|
13
|
-
onStockDetailsClick: EventEmitter<ArticleExtended>;
|
|
14
|
-
onArticleCheckboxClicked: EventEmitter<{
|
|
15
|
-
article: ArticleExtended;
|
|
16
|
-
selected: boolean;
|
|
17
|
-
}>;
|
|
18
|
-
elements: ElementRef[];
|
|
19
|
-
constructor(catalogSearchService: CatalogSearchService);
|
|
20
|
-
onPreviousClick(): void;
|
|
21
|
-
onNextClick(): void;
|
|
22
|
-
onPageClick(pageNr: number): void;
|
|
23
|
-
private _scrollIntoView;
|
|
24
|
-
}
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CatalogSearchService } from '../../service/catalog-search.service';
|
|
3
|
+
import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
|
|
4
|
+
import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
|
|
5
|
+
export declare abstract class CatalogSearchBaseComponent {
|
|
6
|
+
catalogSearchService: CatalogSearchService;
|
|
7
|
+
createFrozenArticle: boolean;
|
|
8
|
+
externalSource: ExternalSource;
|
|
9
|
+
onLookAtArticleButtonClick: EventEmitter<ArticleExtended>;
|
|
10
|
+
onArButtonClick: EventEmitter<ArticleExtended>;
|
|
11
|
+
onAddArticleButtonClick: EventEmitter<string | ArticleExtended>;
|
|
12
|
+
onArticleClick: EventEmitter<ArticleExtended>;
|
|
13
|
+
onStockDetailsClick: EventEmitter<ArticleExtended>;
|
|
14
|
+
onArticleCheckboxClicked: EventEmitter<{
|
|
15
|
+
article: ArticleExtended;
|
|
16
|
+
selected: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
elements: ElementRef[];
|
|
19
|
+
constructor(catalogSearchService: CatalogSearchService);
|
|
20
|
+
onPreviousClick(): void;
|
|
21
|
+
onNextClick(): void;
|
|
22
|
+
onPageClick(pageNr: number): void;
|
|
23
|
+
private _scrollIntoView;
|
|
24
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ArticleBaseComponent } from '../base/article-base.component';
|
|
2
|
-
export declare class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
3
|
-
isHomeDecoHub: boolean;
|
|
4
|
-
isReturn: boolean;
|
|
5
|
-
showClass(): boolean;
|
|
6
|
-
}
|
|
1
|
+
import { ArticleBaseComponent } from '../base/article-base.component';
|
|
2
|
+
export declare class CatalogArticleListComponent extends ArticleBaseComponent {
|
|
3
|
+
isHomeDecoHub: boolean;
|
|
4
|
+
isReturn: boolean;
|
|
5
|
+
showClass(): boolean;
|
|
6
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class CatalogArticleListModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class CatalogArticleListModule {
|
|
2
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ArticleBaseComponent } from '../base/article-base.component';
|
|
2
|
-
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
3
|
-
export declare class CatalogArticleTileComponent extends ArticleBaseComponent {
|
|
4
|
-
showClass(): boolean;
|
|
5
|
-
isHomeDecoHub: boolean;
|
|
6
|
-
showSelectionCheckbox: boolean;
|
|
7
|
-
isReturn: boolean;
|
|
8
|
-
selectedArticles: number[];
|
|
9
|
-
set article(value: ArticleExtended);
|
|
10
|
-
get article(): ArticleExtended;
|
|
11
|
-
selected: boolean;
|
|
12
|
-
}
|
|
1
|
+
import { ArticleBaseComponent } from '../base/article-base.component';
|
|
2
|
+
import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
|
|
3
|
+
export declare class CatalogArticleTileComponent extends ArticleBaseComponent {
|
|
4
|
+
showClass(): boolean;
|
|
5
|
+
isHomeDecoHub: boolean;
|
|
6
|
+
showSelectionCheckbox: boolean;
|
|
7
|
+
isReturn: boolean;
|
|
8
|
+
selectedArticles: number[];
|
|
9
|
+
set article(value: ArticleExtended);
|
|
10
|
+
get article(): ArticleExtended;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class CatalogArticleTileModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class CatalogArticleTileModule {
|
|
2
|
+
}
|