@sd-angular/core 1.3.204 → 1.3.206

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.
@@ -842,7 +842,7 @@ class SdTable {
842
842
  const { columns } = this.tableOption;
843
843
  const { rawColumnFilter, orderBy, orderDirection, pageSize, pageNumber } = filterInfo;
844
844
  const items = localItems.filter(tableItem => {
845
- var _a, _b, _c, _d;
845
+ var _a, _b, _c, _d, _e, _f;
846
846
  const item = tableItem.data;
847
847
  for (const column of columns) {
848
848
  const { field, type } = column;
@@ -858,8 +858,19 @@ class SdTable {
858
858
  }
859
859
  }
860
860
  else if (type === 'values' || type === 'lazy-values') {
861
- if (columnValue !== filterValue) {
862
- return false;
861
+ const columnType = column;
862
+ const isMultiple = ['MULTIPLE'].includes(columnType.option.selection);
863
+ if (isMultiple) {
864
+ const columnValues = (_a = item[field].map(i => { var _a; return ((_a = i[columnType.option.valueField]) !== null && _a !== void 0 ? _a : '').toString().trim().toLowerCase(); })) !== null && _a !== void 0 ? _a : [];
865
+ const filterValues = (_b = rawColumnFilter[field]) === null || _b === void 0 ? void 0 : _b.map(v => (v !== null && v !== void 0 ? v : '').toString().trim().toLowerCase());
866
+ if ((filterValues === null || filterValues === void 0 ? void 0 : filterValues.length) && filterValues.some(fv => !columnValues.includes(fv))) {
867
+ return false;
868
+ }
869
+ }
870
+ else {
871
+ if (columnValue !== filterValue) {
872
+ return false;
873
+ }
863
874
  }
864
875
  }
865
876
  else if (type === 'number') {
@@ -895,8 +906,8 @@ class SdTable {
895
906
  }
896
907
  }
897
908
  else if (type === 'datetime' || type === 'date' || type === 'time') {
898
- const from = (_b = (_a = rawColumnFilter[field]) === null || _a === void 0 ? void 0 : _a.from) !== null && _b !== void 0 ? _b : rawColumnFilter[field];
899
- const to = (_d = (_c = rawColumnFilter[field]) === null || _c === void 0 ? void 0 : _c.to) !== null && _d !== void 0 ? _d : rawColumnFilter[field];
909
+ const from = (_d = (_c = rawColumnFilter[field]) === null || _c === void 0 ? void 0 : _c.from) !== null && _d !== void 0 ? _d : rawColumnFilter[field];
910
+ const to = (_f = (_e = rawColumnFilter[field]) === null || _e === void 0 ? void 0 : _e.to) !== null && _f !== void 0 ? _f : rawColumnFilter[field];
900
911
  const fromDate = Date.begin(from);
901
912
  const toDate = Date.end(to);
902
913
  if (fromDate || toDate) {