ngx-rs-ant 0.11.0 → 0.11.2
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/fesm2020/ngx-rs-ant.mjs
CHANGED
|
@@ -1145,6 +1145,9 @@ class DataGridComponent {
|
|
|
1145
1145
|
};
|
|
1146
1146
|
column.calculateFilterExpression = function (filterValue, selectedFilterOperation, target) {
|
|
1147
1147
|
if (this.defaultCalculateFilterExpression) {
|
|
1148
|
+
if (!filterValue) {
|
|
1149
|
+
return this.defaultCalculateFilterExpression.apply(this, [filterValue, '=', target]);
|
|
1150
|
+
}
|
|
1148
1151
|
return this.defaultCalculateFilterExpression.apply(this, [filterValue, 'contains', target]);
|
|
1149
1152
|
}
|
|
1150
1153
|
return '';
|
|
@@ -1193,6 +1196,9 @@ class DataGridComponent {
|
|
|
1193
1196
|
};
|
|
1194
1197
|
column.calculateFilterExpression = function (filterValue, selectedFilterOperation, target) {
|
|
1195
1198
|
if (this.defaultCalculateFilterExpression) {
|
|
1199
|
+
if (!filterValue) {
|
|
1200
|
+
return this.defaultCalculateFilterExpression.apply(this, [filterValue, '=', target]);
|
|
1201
|
+
}
|
|
1196
1202
|
return this.defaultCalculateFilterExpression.apply(this, [filterValue, 'contains', target]);
|
|
1197
1203
|
}
|
|
1198
1204
|
return '';
|
|
@@ -1241,6 +1247,9 @@ class DataGridComponent {
|
|
|
1241
1247
|
if (field.config.constraint.multiple) {
|
|
1242
1248
|
column.calculateFilterExpression = function (filterValue, selectedFilterOperation, target) {
|
|
1243
1249
|
if (this.defaultCalculateFilterExpression) {
|
|
1250
|
+
if (!filterValue) {
|
|
1251
|
+
return this.defaultCalculateFilterExpression.apply(this, [filterValue, '=', target]);
|
|
1252
|
+
}
|
|
1244
1253
|
return this.defaultCalculateFilterExpression.apply(this, [filterValue, 'contains', target]);
|
|
1245
1254
|
}
|
|
1246
1255
|
return '';
|
|
@@ -1688,6 +1697,7 @@ class ModalComponent {
|
|
|
1688
1697
|
}
|
|
1689
1698
|
}
|
|
1690
1699
|
resolveModalBackdropPosition() {
|
|
1700
|
+
console.log(this.elementRef.nativeElement.parentElement);
|
|
1691
1701
|
return {
|
|
1692
1702
|
"width": this.elementRef.nativeElement.parentElement.offsetWidth + 'px',
|
|
1693
1703
|
"height": this.elementRef.nativeElement.parentElement.offsetHeight + 'px',
|