ywana-core8 0.0.902 → 0.0.903

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.
@@ -4358,7 +4358,9 @@ var FileExplorer = function FileExplorer(props) {
4358
4358
  defaultView = _props$defaultView === void 0 ? "grid" : _props$defaultView,
4359
4359
  defaultFolder = props.defaultFolder,
4360
4360
  _props$filterableColu = props.filterableColumns,
4361
- filterableColumns = _props$filterableColu === void 0 ? false : _props$filterableColu;
4361
+ filterableColumns = _props$filterableColu === void 0 ? false : _props$filterableColu,
4362
+ _props$searchBy = props.searchBy,
4363
+ searchBy = _props$searchBy === void 0 ? [] : _props$searchBy;
4362
4364
  var _useState = useState(),
4363
4365
  selectedFolder = _useState[0],
4364
4366
  setSelectedFolder = _useState[1];
@@ -4387,7 +4389,11 @@ var FileExplorer = function FileExplorer(props) {
4387
4389
  setSearch(value);
4388
4390
  }
4389
4391
  var filteredFiles = search ? files.filter(function (file) {
4390
- return file.title.toLowerCase().includes(search.toLowerCase());
4392
+ var serchByValues = searchBy.map(function (key) {
4393
+ return file[key];
4394
+ });
4395
+ var searchByString = serchByValues.join(' ');
4396
+ return searchByString.toLowerCase().includes(search.toLowerCase());
4391
4397
  }) : files;
4392
4398
  var selectedFiles = filteredFiles.filter(function (file) {
4393
4399
  return file.folder === selectedFolder;
@@ -6320,9 +6326,6 @@ var TableEditor$3 = function TableEditor(props) {
6320
6326
 
6321
6327
  /**
6322
6328
  * Content Viewer
6323
- *
6324
- * @param {*} props
6325
- * @returns
6326
6329
  */
6327
6330
  var ContentViewer = function ContentViewer(props) {
6328
6331
  var content = props.content;
@@ -6351,9 +6354,6 @@ var ContentViewer = function ContentViewer(props) {
6351
6354
 
6352
6355
  /**
6353
6356
  * Field Viewer
6354
- *
6355
- * @param {} props
6356
- * @returns
6357
6357
  */
6358
6358
  var FieldViewer = function FieldViewer(props) {
6359
6359
  var field = props.field,