@yoobic/yobi 8.1.0-35 → 8.1.0-36

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.
@@ -196,6 +196,9 @@ let YooGridComponent = class {
196
196
  }
197
197
  };
198
198
  }
199
+ get isShowAdvancedFiltersDisplayedIntoSearch() {
200
+ return this.showSearch !== false && !overlays.isWeb(this.host) && !this.hideAdvancedFilters;
201
+ }
199
202
  get hasSecondaryActions() {
200
203
  var _a;
201
204
  return ((_a = this.secondaryActions) === null || _a === void 0 ? void 0 : _a.length) && ['card-list', 'card-inbox', 'card-inbox-ongoing', 'card-notification', 'card-plan', 'card-chat'].includes(this.displayType);
@@ -2173,7 +2176,7 @@ let YooGridComponent = class {
2173
2176
  renderEntitySearchTags(renderSearchOrAutocomplete) {
2174
2177
  var _a;
2175
2178
  const showAdvancedFilters = (!overlays.isWeb(this.host) && this.showSearch !== false) || (overlays.isWeb(this.host) && !!this.model);
2176
- return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: overlays.isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2179
+ return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: overlays.isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters || this.isShowAdvancedFiltersDisplayedIntoSearch, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2177
2180
  }
2178
2181
  onTabSelected(ev) {
2179
2182
  this.selectedTab = this.tabs[ev.detail.nextIndex];
@@ -119,6 +119,9 @@ export class YooGridComponent {
119
119
  }
120
120
  };
121
121
  }
122
+ get isShowAdvancedFiltersDisplayedIntoSearch() {
123
+ return this.showSearch !== false && !isWeb(this.host) && !this.hideAdvancedFilters;
124
+ }
122
125
  get hasSecondaryActions() {
123
126
  var _a;
124
127
  return ((_a = this.secondaryActions) === null || _a === void 0 ? void 0 : _a.length) && ['card-list', 'card-inbox', 'card-inbox-ongoing', 'card-notification', 'card-plan', 'card-chat'].includes(this.displayType);
@@ -2142,7 +2145,7 @@ export class YooGridComponent {
2142
2145
  renderEntitySearchTags(renderSearchOrAutocomplete) {
2143
2146
  var _a;
2144
2147
  const showAdvancedFilters = (!isWeb(this.host) && this.showSearch !== false) || (isWeb(this.host) && !!this.model);
2145
- return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2148
+ return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters || this.isShowAdvancedFiltersDisplayedIntoSearch, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2146
2149
  }
2147
2150
  onTabSelected(ev) {
2148
2151
  this.selectedTab = this.tabs[ev.detail.nextIndex];
@@ -192,6 +192,9 @@ let YooGridComponent = class {
192
192
  }
193
193
  };
194
194
  }
195
+ get isShowAdvancedFiltersDisplayedIntoSearch() {
196
+ return this.showSearch !== false && !isWeb(this.host) && !this.hideAdvancedFilters;
197
+ }
195
198
  get hasSecondaryActions() {
196
199
  var _a;
197
200
  return ((_a = this.secondaryActions) === null || _a === void 0 ? void 0 : _a.length) && ['card-list', 'card-inbox', 'card-inbox-ongoing', 'card-notification', 'card-plan', 'card-chat'].includes(this.displayType);
@@ -2169,7 +2172,7 @@ let YooGridComponent = class {
2169
2172
  renderEntitySearchTags(renderSearchOrAutocomplete) {
2170
2173
  var _a;
2171
2174
  const showAdvancedFilters = (!isWeb(this.host) && this.showSearch !== false) || (isWeb(this.host) && !!this.model);
2172
- return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2175
+ return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters || this.isShowAdvancedFiltersDisplayedIntoSearch, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2173
2176
  }
2174
2177
  onTabSelected(ev) {
2175
2178
  this.selectedTab = this.tabs[ev.detail.nextIndex];
@@ -192,6 +192,9 @@ let YooGridComponent = class {
192
192
  }
193
193
  };
194
194
  }
195
+ get isShowAdvancedFiltersDisplayedIntoSearch() {
196
+ return this.showSearch !== false && !isWeb(this.host) && !this.hideAdvancedFilters;
197
+ }
195
198
  get hasSecondaryActions() {
196
199
  var _a;
197
200
  return ((_a = this.secondaryActions) === null || _a === void 0 ? void 0 : _a.length) && ['card-list', 'card-inbox', 'card-inbox-ongoing', 'card-notification', 'card-plan', 'card-chat'].includes(this.displayType);
@@ -2169,7 +2172,7 @@ let YooGridComponent = class {
2169
2172
  renderEntitySearchTags(renderSearchOrAutocomplete) {
2170
2173
  var _a;
2171
2174
  const showAdvancedFilters = (!isWeb(this.host) && this.showSearch !== false) || (isWeb(this.host) && !!this.model);
2172
- return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2175
+ return ((_a = this.tags) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("yoo-entity-search-tags", { slot: this.hideTags || !this.tags || (this.tags && this.tags.length === 0) ? 'start' : renderSearchOrAutocomplete ? 'content' : '', expandedTags: this.gridIsExpanded, hideTags: this.hideTags || !this.tags || !this.tags.length, sortsAndFilters: this.sortsAndFilters, onFilterAdvanced: () => this.onShowFilterAdvanced(), tags: isWeb(this.host) && !this.gridIsExpanded ? [] : this.tags, values: this.selectedTags || [], hideAdvancedFilters: !showAdvancedFilters || this.isShowAdvancedFiltersDisplayedIntoSearch, onSelected: (ev) => this.onTagSelect(ev), disabled: this.isSelectAll }));
2173
2176
  }
2174
2177
  onTabSelected(ev) {
2175
2178
  this.selectedTab = this.tabs[ev.detail.nextIndex];
@@ -311,6 +311,7 @@ export declare class YooGridComponent {
311
311
  private virtualScrollEl;
312
312
  private renderVirtualItem;
313
313
  private fileInput;
314
+ private get isShowAdvancedFiltersDisplayedIntoSearch();
314
315
  get hasSecondaryActions(): boolean;
315
316
  get formattedTotal(): string;
316
317
  onGlobaActionsChange(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.1.0-35",
3
+ "version": "8.1.0-36",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",