@coolon/angular-ui-powerups 14.6.1 → 14.7.0
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/esm2020/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +3 -2
- package/esm2020/lib/components/tables/abstract-table-model.mjs +6 -1
- package/fesm2015/coolon-angular-ui-powerups.mjs +7 -1
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +7 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1885,7 +1885,8 @@ class AutocompleteInputComponent extends AbstractValueInputComponent {
|
|
|
1885
1885
|
this.filterFactory = (filterText) => {
|
|
1886
1886
|
const lowerCaseFilterValue = isString(filterText) ? filterText.toLowerCase() : '';
|
|
1887
1887
|
return (option) => {
|
|
1888
|
-
|
|
1888
|
+
const matches = !isEmpty(this.filterValue.value) && this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue);
|
|
1889
|
+
return matches;
|
|
1889
1890
|
};
|
|
1890
1891
|
};
|
|
1891
1892
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
@@ -3349,6 +3350,11 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
3349
3350
|
this.firstVisibleColumn$ = chain(this._columnList).first();
|
|
3350
3351
|
this.lastVisibleColumn$ = chain(this._columnList).last();
|
|
3351
3352
|
this.rowSelectionDisabledOnAllColumns$ = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
|
|
3353
|
+
when(chain(this._rawDataSource).first()).becomesTruthy(it => {
|
|
3354
|
+
if (it === this.identityOf(it)) {
|
|
3355
|
+
console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering");
|
|
3356
|
+
}
|
|
3357
|
+
}, { once: true });
|
|
3352
3358
|
}
|
|
3353
3359
|
initialise(injector) {
|
|
3354
3360
|
// not sure if I should define these at the module level or not...
|