@easydata/crud 1.4.3-beta01 → 1.4.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.
@@ -12452,6 +12452,7 @@ var entity_data_view_EntityDataView = /** @class */ (function () {
12452
12452
  this.context = context;
12453
12453
  this.basePath = basePath;
12454
12454
  this.options = {
12455
+ showFilterBox: true,
12455
12456
  showBackToEntities: true
12456
12457
  };
12457
12458
  this.defaultValidators = [new required_validator_RequiredValidator(), new type_validator_TypeValidator()];
@@ -12505,16 +12506,18 @@ var entity_data_view_EntityDataView = /** @class */ (function () {
12505
12506
  onRowDbClick: _this.rowDbClickHandler.bind(_this),
12506
12507
  onSyncGridColumn: _this.syncGridColumnHandler.bind(_this)
12507
12508
  }, _this.options.grid || {}));
12508
- var widgetSlot;
12509
- var filterBar = Object(lib_public_api["domel"])('div')
12510
- .addClass("kfrm-form")
12511
- .setStyle('margin', '10px 0px')
12512
- .addChild('div', function (b) {
12513
- return widgetSlot = b.toDOM();
12514
- }).toDOM();
12515
- _this.slot.insertBefore(filterBar, gridSlot);
12516
- var dataFilter = _this.context.createFilter();
12517
- new text_filter_widget_TextFilterWidget(widgetSlot, _this.grid, dataFilter);
12509
+ if (_this.options.showFilterBox) {
12510
+ var filterWidgetSlot_1;
12511
+ var filterBarDiv = Object(lib_public_api["domel"])('div')
12512
+ .addClass("kfrm-form")
12513
+ .setStyle('margin', '10px 0px')
12514
+ .addChild('div', function (b) {
12515
+ return filterWidgetSlot_1 = b.toDOM();
12516
+ }).toDOM();
12517
+ _this.slot.insertBefore(filterBarDiv, gridSlot);
12518
+ var dataFilter = _this.context.createFilter();
12519
+ new text_filter_widget_TextFilterWidget(filterWidgetSlot_1, _this.grid, dataFilter);
12520
+ }
12518
12521
  });
12519
12522
  };
12520
12523
  EntityDataView.prototype.manageCellRenderer = function (column, defaultRenderer) {