@c8y/ngx-components 1023.17.13 → 1023.17.16

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.
@@ -17006,7 +17006,11 @@ class InventorySearchService {
17006
17006
  const searchFilterQuery = this.getDefaultSearchQuery();
17007
17007
  if (isWildcardSearchEnabled) {
17008
17008
  const query = this.queriesUtil.addAndFilter(searchFilterQuery, {
17009
- name: `*${term.trim().replace(/\s+/g, '*')}*`
17009
+ __or: {
17010
+ name: `*${term.trim().replace(/\s+/g, '*')}*`,
17011
+ id: term.trim(),
17012
+ 'c8y_Hardware.serialNumber': `*${term.trim().replace(/\s+/g, '*')}*`
17013
+ }
17010
17014
  });
17011
17015
  return this.inventoryService.listQuery(query, {
17012
17016
  withTotalPages: true,
@@ -17034,7 +17038,11 @@ class InventorySearchService {
17034
17038
  const searchFilterQuery = this.getGroupsSearchFilterQuery();
17035
17039
  if (isWildcardSearchEnabled) {
17036
17040
  const query = this.queriesUtil.addAndFilter(searchFilterQuery, {
17037
- name: `*${term.trim().replace(/\s+/g, '*')}*`
17041
+ __or: {
17042
+ name: `*${term.trim().replace(/\s+/g, '*')}*`,
17043
+ id: term.trim(),
17044
+ 'c8y_Hardware.serialNumber': `*${term.trim().replace(/\s+/g, '*')}*`
17045
+ }
17038
17046
  });
17039
17047
  return this.inventoryService.listQuery(query, {
17040
17048
  withTotalPages: true,