@colijnit/catalog 12.1.8 → 12.1.10
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/app/model/settings-options.d.ts +1 -0
- package/bundles/colijnit-catalog.umd.js +5 -1
- package/bundles/colijnit-catalog.umd.js.map +1 -1
- package/colijnit-catalog.metadata.json +1 -1
- package/esm2015/app/components/catalog/catalog-filter/catalog-filter.component.js +2 -2
- package/esm2015/app/model/settings-options.js +2 -1
- package/esm2015/app/service/catalog.service.js +4 -1
- package/fesm2015/colijnit-catalog.js +5 -1
- package/fesm2015/colijnit-catalog.js.map +1 -1
- package/package.json +1 -1
|
@@ -1136,6 +1136,7 @@
|
|
|
1136
1136
|
this.addArticleButtonText = 'ADD';
|
|
1137
1137
|
this.collapseFilterByDefault = false;
|
|
1138
1138
|
this.sortTurnoverGroupsByAlphabet = true;
|
|
1139
|
+
this.searchOnStart = false;
|
|
1139
1140
|
}
|
|
1140
1141
|
return SettingsOptions;
|
|
1141
1142
|
}());
|
|
@@ -1643,6 +1644,9 @@
|
|
|
1643
1644
|
if (initialized) {
|
|
1644
1645
|
this._controllerInitialized = true;
|
|
1645
1646
|
this.ensureDataListsLoaded();
|
|
1647
|
+
if (this._settingsService.settings.options.searchOnStart) {
|
|
1648
|
+
this.searchArticles();
|
|
1649
|
+
}
|
|
1646
1650
|
}
|
|
1647
1651
|
return [2 /*return*/];
|
|
1648
1652
|
});
|
|
@@ -2174,7 +2178,7 @@
|
|
|
2174
2178
|
CatalogFilterComponent.decorators = [
|
|
2175
2179
|
{ type: i0.Component, args: [{
|
|
2176
2180
|
selector: 'app-catalog-filter',
|
|
2177
|
-
template: "<div class=\"narrow-scrollbar hide-on-collapse\">\r\n <div *ngIf=\"!collapsed\" class=\"filter-title title-bottom-border block-center-align\">\r\n\r\n <h3 [textContent]=\"'FILTER' | localize\"></h3>\r\n <div class=\"handle-wrapper\">\r\n <co-icon class=\"filter-reset-icon\" [iconData]=\"iconCache.getIcon(icons.SyncAlt)\"></co-icon>\r\n <div class=\"filter-reset\" [textContent]=\"'RESET_FILTER' | localize\" (click)=\"resetFilters($event)\"></div>\r\n <app-icon-handle [icon]=\"icons.ArrowScrollLeft\" (onHandleClick)=\"onHandleClick($event)\"></app-icon-handle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"catalog-filter-price-input-wrapper\">\r\n <label class=\"temp\">Price</label>\r\n <div class=\"price-inputs\">\r\n <co-input-text\r\n class=\"price-from\"\r\n [label]=\"'BASELINE_PRICE' | localize\"\r\n [(model)]=\"filterService.priceMinFilter\"\r\n (modelChange)=\"updatePriceFrom($event)\"\r\n customWidth\r\n ></co-input-text>\r\n <co-input-text\r\n class=\"price-to\"\r\n [label]=\"'PRICE_TO' | localize\"\r\n [(model)]=\"filterService.priceMaxFilter\"\r\n (modelChange)=\"updatePriceTo($event)\"\r\n customWidth\r\n ></co-input-text>\r\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\r\n </div>\r\n </div>\r\n <div class=\"catalog-filter-wrapper\">\r\n <co-filter-item\r\n [expanded]=true\r\n [customContent]=\"true\"\r\n class=\"no-header\"\r\n >\r\n <label class=\"temp\">Modified date</label>\r\n <co-input-date\r\n [(model)]=\"catalog.articleSearchFilters.dateModified\"\r\n (modelChange)=\"catalog.searchArticles()\"\r\n ></co-input-date>\r\n </co-filter-item>\r\n <div class=\"catalog-filter-item\" *ngFor=\"let filter of filterService.filters\">\r\n <co-filter-item\r\n [placeholder]=\"filter.filterName\"\r\n [collection]=\"filter.filterItems\"\r\n [showLessLabel]=\"'Bekijk minder...'\"\r\n [showMoreLabel]=\"'Bekijk meer...'\"\r\n [searchPlaceholder]=\"'Zoeken...'\"\r\n [expanded]=true\r\n [initialLimit]=5\r\n (collectionChange)=\"handleCollectionChange($event)\"\r\n ></co-filter-item>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2181
|
+
template: "<div class=\"narrow-scrollbar hide-on-collapse\">\r\n <div *ngIf=\"!collapsed\" class=\"filter-title title-bottom-border block-center-align\">\r\n\r\n <h3 [textContent]=\"'FILTER' | localize\"></h3>\r\n <div class=\"handle-wrapper\">\r\n <co-icon class=\"filter-reset-icon\" [iconData]=\"iconCache.getIcon(icons.SyncAlt)\"></co-icon>\r\n <div class=\"filter-reset\" [textContent]=\"'RESET_FILTER' | localize\" (click)=\"resetFilters($event)\"></div>\r\n <app-icon-handle [icon]=\"icons.ArrowScrollLeft\" (onHandleClick)=\"onHandleClick($event)\"></app-icon-handle>\r\n </div>\r\n </div>\r\n\r\n <div class=\"catalog-filter-price-input-wrapper\">\r\n <label class=\"temp\">Price</label>\r\n <div class=\"price-inputs\">\r\n <co-input-text\r\n class=\"price-from\"\r\n [type]=\"'number'\"\r\n [label]=\"'BASELINE_PRICE' | localize\"\r\n [(model)]=\"filterService.priceMinFilter\"\r\n (modelChange)=\"updatePriceFrom($event)\"\r\n customWidth\r\n ></co-input-text>\r\n <co-input-text\r\n class=\"price-to\"\r\n [type]=\"'number'\"\r\n [label]=\"'PRICE_TO' | localize\"\r\n [(model)]=\"filterService.priceMaxFilter\"\r\n (modelChange)=\"updatePriceTo($event)\"\r\n customWidth\r\n ></co-input-text>\r\n <co-icon [iconData]=\"iconCache.getIcon(icons.Check)\" (click)=\"filterOnPrice()\"></co-icon>\r\n </div>\r\n </div>\r\n <div class=\"catalog-filter-wrapper\">\r\n <co-filter-item\r\n [expanded]=true\r\n [customContent]=\"true\"\r\n class=\"no-header\"\r\n >\r\n <label class=\"temp\">Modified date</label>\r\n <co-input-date\r\n [(model)]=\"catalog.articleSearchFilters.dateModified\"\r\n (modelChange)=\"catalog.searchArticles()\"\r\n ></co-input-date>\r\n </co-filter-item>\r\n <div class=\"catalog-filter-item\" *ngFor=\"let filter of filterService.filters\">\r\n <co-filter-item\r\n [placeholder]=\"filter.filterName\"\r\n [collection]=\"filter.filterItems\"\r\n [showLessLabel]=\"'Bekijk minder...'\"\r\n [showMoreLabel]=\"'Bekijk meer...'\"\r\n [searchPlaceholder]=\"'Zoeken...'\"\r\n [expanded]=true\r\n [initialLimit]=5\r\n (collectionChange)=\"handleCollectionChange($event)\"\r\n ></co-filter-item>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2178
2182
|
animations: [
|
|
2179
2183
|
animations.trigger('showFilterItem', [
|
|
2180
2184
|
animations.state('closed', animations.style({ height: '80px' })),
|