fantasy-ngzorro 2.2.31 → 2.2.32
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/README.md +1 -0
- package/bundles/fantasy-ngzorro.umd.js +30 -3
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-filter/hd-filter.component.js +20 -4
- package/esm5/hd-filter/hd-filter.component.js +31 -4
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +19 -3
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +30 -3
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-filter/hd-filter.component.d.ts +4 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
| 更新人 | 更新时间 | 更新内容 |
|
|
34
34
|
| ------ | -------- | -------- |
|
|
35
|
+
| — | 2026-10-29 | `hd-filter`:MultipleSelect / DateRange 空值规范为 `[]`,避免 FormControl 为 null 时不显示 placeholder(筛选组回填场景)(2.2.32) |
|
|
35
36
|
| — | 2026-10-29 | `hd-status`:补充客户对账明细开票/收款状态色(未开票、未收款为灰;对账中改橙;发票红冲为红)(2.2.31) |
|
|
36
37
|
| — | 2026-10-28 | `hd-table`:列设置按钮尺寸恢复 32×32(2.2.30) |
|
|
37
38
|
| — | 2026-10-28 | `hd-table`:列设置按钮尺寸改为 38×38(2.2.29) |
|
|
@@ -4185,7 +4185,7 @@
|
|
|
4185
4185
|
* @return {?}
|
|
4186
4186
|
*/
|
|
4187
4187
|
function (item, index) {
|
|
4188
|
-
formGroupList[item.name] = _this.fb.control(item.value, []);
|
|
4188
|
+
formGroupList[item.name] = _this.fb.control(_this.normalizeFilterControlValue(item, item.value), []);
|
|
4189
4189
|
item.show = index < 7;
|
|
4190
4190
|
}));
|
|
4191
4191
|
this.validateFilterForm = this.fb.group(formGroupList);
|
|
@@ -4469,6 +4469,7 @@
|
|
|
4469
4469
|
* @return {?}
|
|
4470
4470
|
*/
|
|
4471
4471
|
function () {
|
|
4472
|
+
var _this = this;
|
|
4472
4473
|
/** @type {?} */
|
|
4473
4474
|
var resetValue = {};
|
|
4474
4475
|
this.filterList.forEach((/**
|
|
@@ -4476,7 +4477,7 @@
|
|
|
4476
4477
|
* @return {?}
|
|
4477
4478
|
*/
|
|
4478
4479
|
function (item) {
|
|
4479
|
-
resetValue[item.name] = item.value;
|
|
4480
|
+
resetValue[item.name] = _this.normalizeFilterControlValue(item, item.value);
|
|
4480
4481
|
}));
|
|
4481
4482
|
this.validateFilterForm.patchValue(resetValue);
|
|
4482
4483
|
};
|
|
@@ -5142,6 +5143,32 @@
|
|
|
5142
5143
|
}));
|
|
5143
5144
|
this.validateFilterForm.patchValue(patch);
|
|
5144
5145
|
};
|
|
5146
|
+
/**
|
|
5147
|
+
* 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
|
|
5148
|
+
*/
|
|
5149
|
+
/**
|
|
5150
|
+
* 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
|
|
5151
|
+
* @private
|
|
5152
|
+
* @param {?} filter
|
|
5153
|
+
* @param {?} value
|
|
5154
|
+
* @return {?}
|
|
5155
|
+
*/
|
|
5156
|
+
HdFilterComponent.prototype.normalizeFilterControlValue = /**
|
|
5157
|
+
* 多选 / 日期范围空态用 [],避免 FormControl 为 null 时 nz-select multiple 不显示 placeholder。
|
|
5158
|
+
* @private
|
|
5159
|
+
* @param {?} filter
|
|
5160
|
+
* @param {?} value
|
|
5161
|
+
* @return {?}
|
|
5162
|
+
*/
|
|
5163
|
+
function (filter, value) {
|
|
5164
|
+
if (filter &&
|
|
5165
|
+
(filter.type === FilterListType.MultipleSelect ||
|
|
5166
|
+
filter.type === FilterListType.DateRange) &&
|
|
5167
|
+
value == null) {
|
|
5168
|
+
return [];
|
|
5169
|
+
}
|
|
5170
|
+
return value;
|
|
5171
|
+
};
|
|
5145
5172
|
/**
|
|
5146
5173
|
* @private
|
|
5147
5174
|
* @param {?} filter
|
|
@@ -5157,7 +5184,7 @@
|
|
|
5157
5184
|
function (filter, value) {
|
|
5158
5185
|
var _this = this;
|
|
5159
5186
|
if (value == null) {
|
|
5160
|
-
return value;
|
|
5187
|
+
return this.normalizeFilterControlValue(filter, value);
|
|
5161
5188
|
}
|
|
5162
5189
|
if (filter.type === FilterListType.DateRange) {
|
|
5163
5190
|
if (Array.isArray(value)) {
|