@sd-angular/core 19.0.16 → 19.0.18
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/fesm2022/sd-angular-core-components-table.mjs +14 -13
- package/fesm2022/sd-angular-core-components-table.mjs.map +1 -1
- package/fesm2022/sd-angular-core-forms-select.mjs +5 -6
- package/fesm2022/sd-angular-core-forms-select.mjs.map +1 -1
- package/fesm2022/sd-angular-core-i18n.mjs +5 -5
- package/fesm2022/sd-angular-core-i18n.mjs.map +1 -1
- package/i18n/src/en.d.ts +1 -1
- package/package.json +5 -5
|
@@ -3077,19 +3077,20 @@ const matchesColumnFilter = (data, columns = [], rawColumnFilter = {}) => {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
else if (type === 'values' || type === 'lazy-values') {
|
|
3079
3079
|
const columnType = column;
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3080
|
+
// why: chọn nhánh theo HÌNH DẠNG GIÁ TRỊ, không theo `option.selection`. Inline filter dropdown
|
|
3081
|
+
// multiple luôn phát ra mảng, còn dữ liệu hàng thường là scalar; trước đây nhánh lại chọn theo
|
|
3082
|
+
// array-ness của DỮ LIỆU HÀNG nên scalar row rơi xuống so sánh `===` với `['A','B'].toString()`
|
|
3083
|
+
// = 'a,b' và không bao giờ khớp (chọn 1 giá trị thì vô tình đúng, chọn từ 2 là mất hết dòng).
|
|
3084
|
+
const rawFilterValue = rawColumnFilter[field];
|
|
3085
|
+
const filterValues = (Array.isArray(rawFilterValue) ? rawFilterValue : [rawFilterValue])
|
|
3086
|
+
.map((v) => (v ?? '').toString().trim().toLowerCase())
|
|
3087
|
+
.filter(v => !!v);
|
|
3088
|
+
const columnValues = Array.isArray(rawColVal)
|
|
3089
|
+
? rawColVal.map((i) => (Utilities.getNestedValue(i, columnType.option.valueField) ?? '').toString().trim().toLowerCase())
|
|
3090
|
+
: [columnValue];
|
|
3091
|
+
// why: nhiều giá trị = OR, khớp đúng operator `IN` mà SdConvertToPagingReq gửi cho server.
|
|
3092
|
+
if (filterValues.length && !filterValues.some(fv => columnValues.includes(fv))) {
|
|
3093
|
+
return false;
|
|
3093
3094
|
}
|
|
3094
3095
|
}
|
|
3095
3096
|
else if (type === 'number') {
|