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.
package/dist/index.cjs CHANGED
@@ -4367,7 +4367,9 @@ var FileExplorer = function FileExplorer(props) {
4367
4367
  defaultView = _props$defaultView === void 0 ? "grid" : _props$defaultView,
4368
4368
  defaultFolder = props.defaultFolder,
4369
4369
  _props$filterableColu = props.filterableColumns,
4370
- filterableColumns = _props$filterableColu === void 0 ? false : _props$filterableColu;
4370
+ filterableColumns = _props$filterableColu === void 0 ? false : _props$filterableColu,
4371
+ _props$searchBy = props.searchBy,
4372
+ searchBy = _props$searchBy === void 0 ? [] : _props$searchBy;
4371
4373
  var _useState = React.useState(),
4372
4374
  selectedFolder = _useState[0],
4373
4375
  setSelectedFolder = _useState[1];
@@ -4396,7 +4398,11 @@ var FileExplorer = function FileExplorer(props) {
4396
4398
  setSearch(value);
4397
4399
  }
4398
4400
  var filteredFiles = search ? files.filter(function (file) {
4399
- return file.title.toLowerCase().includes(search.toLowerCase());
4401
+ var serchByValues = searchBy.map(function (key) {
4402
+ return file[key];
4403
+ });
4404
+ var searchByString = serchByValues.join(' ');
4405
+ return searchByString.toLowerCase().includes(search.toLowerCase());
4400
4406
  }) : files;
4401
4407
  var selectedFiles = filteredFiles.filter(function (file) {
4402
4408
  return file.folder === selectedFolder;
@@ -6329,9 +6335,6 @@ var TableEditor$3 = function TableEditor(props) {
6329
6335
 
6330
6336
  /**
6331
6337
  * Content Viewer
6332
- *
6333
- * @param {*} props
6334
- * @returns
6335
6338
  */
6336
6339
  var ContentViewer = function ContentViewer(props) {
6337
6340
  var content = props.content;
@@ -6360,9 +6363,6 @@ var ContentViewer = function ContentViewer(props) {
6360
6363
 
6361
6364
  /**
6362
6365
  * Field Viewer
6363
- *
6364
- * @param {} props
6365
- * @returns
6366
6366
  */
6367
6367
  var FieldViewer = function FieldViewer(props) {
6368
6368
  var field = props.field,