igniteui-angular 13.0.12 → 13.0.13
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/directives/scroll-inertia/scroll_inertia.directive.mjs +17 -11
- package/esm2020/lib/grids/filtering/excel-style/excel-style-search.component.mjs +2 -4
- package/esm2020/lib/grids/filtering/excel-style/grid.excel-style-filtering.component.mjs +2 -2
- package/esm2020/lib/grids/filtering/grid-filtering.service.mjs +16 -22
- package/fesm2015/igniteui-angular.mjs +33 -35
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +33 -35
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/core/styles/themes/schemas/dark/_input-group.scss +1 -1
- package/lib/grids/filtering/grid-filtering.service.d.ts +1 -1
- package/package.json +1 -1
- package/styles/igniteui-fluent-dark-excel-rtl.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word-rtl.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/maps/igniteui-fluent-dark-excel-rtl.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word-rtl.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
|
@@ -9109,19 +9109,25 @@ class IgxScrollInertiaDirective {
|
|
|
9109
9109
|
while (i < path.length && path[i].localName !== 'igx-display-container') {
|
|
9110
9110
|
const e = path[i++];
|
|
9111
9111
|
if (e.scrollHeight > e.clientHeight) {
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9112
|
+
const overflowY = window.getComputedStyle(e)['overflow-y'];
|
|
9113
|
+
if (overflowY === 'auto' || overflowY === 'scroll') {
|
|
9114
|
+
if (scrollDeltaY > 0 && e.scrollHeight - Math.abs(Math.round(e.scrollTop)) !== e.clientHeight) {
|
|
9115
|
+
return true;
|
|
9116
|
+
}
|
|
9117
|
+
if (scrollDeltaY < 0 && e.scrollTop !== 0) {
|
|
9118
|
+
return true;
|
|
9119
|
+
}
|
|
9117
9120
|
}
|
|
9118
9121
|
}
|
|
9119
9122
|
if (e.scrollWidth > e.clientWidth) {
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9123
|
+
const overflowX = window.getComputedStyle(e)['overflow-x'];
|
|
9124
|
+
if (overflowX === 'auto' || overflowX === 'scroll') {
|
|
9125
|
+
if (scrollDeltaX > 0 && e.scrollWidth - Math.abs(Math.round(e.scrollLeft)) !== e.clientWidth) {
|
|
9126
|
+
return true;
|
|
9127
|
+
}
|
|
9128
|
+
if (scrollDeltaX < 0 && e.scrollLeft !== 0) {
|
|
9129
|
+
return true;
|
|
9130
|
+
}
|
|
9125
9131
|
}
|
|
9126
9132
|
}
|
|
9127
9133
|
}
|
|
@@ -43547,9 +43553,7 @@ class IgxExcelStyleSearchComponent {
|
|
|
43547
43553
|
if (!this.searchValue) {
|
|
43548
43554
|
const anyFiltered = this.esf.listData.some(i => i.isFiltered);
|
|
43549
43555
|
const anyUnfiltered = this.esf.listData.some(i => !i.isFiltered);
|
|
43550
|
-
|
|
43551
|
-
searchAllBtn.indeterminate = true;
|
|
43552
|
-
}
|
|
43556
|
+
searchAllBtn.indeterminate = anyFiltered && anyUnfiltered;
|
|
43553
43557
|
this.esf.listData.forEach(i => i.isSelected = i.isFiltered);
|
|
43554
43558
|
this.displayedListData = this.esf.listData;
|
|
43555
43559
|
searchAllBtn.label = this.esf.grid.resourceStrings.igx_grid_excel_select_all;
|
|
@@ -44229,7 +44233,7 @@ class IgxGridExcelStyleFilteringComponent extends BaseFilteringComponent {
|
|
|
44229
44233
|
if (operand instanceof FilteringExpressionsTree) {
|
|
44230
44234
|
const columnExprTree = operand;
|
|
44231
44235
|
if (columnExprTree.fieldName === this.column.field) {
|
|
44232
|
-
|
|
44236
|
+
continue;
|
|
44233
44237
|
}
|
|
44234
44238
|
}
|
|
44235
44239
|
expressionsTree.filteringOperands.push(operand);
|
|
@@ -52700,12 +52704,9 @@ class IgxFilteringService {
|
|
|
52700
52704
|
const col = grid.getColumnByName(field);
|
|
52701
52705
|
const filteringIgnoreCase = ignoreCase || (col ? col.filteringIgnoreCase : false);
|
|
52702
52706
|
const filteringTree = grid.filteringExpressionsTree;
|
|
52703
|
-
const columnFilteringExpressionsTree =
|
|
52707
|
+
const columnFilteringExpressionsTree = filteringTree.find(field);
|
|
52704
52708
|
conditionOrExpressionTree = conditionOrExpressionTree ?? columnFilteringExpressionsTree;
|
|
52705
52709
|
const fieldFilterIndex = filteringTree.findIndex(field);
|
|
52706
|
-
if (fieldFilterIndex > -1) {
|
|
52707
|
-
filteringTree.filteringOperands.splice(fieldFilterIndex, 1);
|
|
52708
|
-
}
|
|
52709
52710
|
const newFilteringTree = this.prepare_filtering_expression(filteringTree, field, value, conditionOrExpressionTree, filteringIgnoreCase, fieldFilterIndex, true);
|
|
52710
52711
|
const eventArgs = {
|
|
52711
52712
|
owner: grid,
|
|
@@ -53011,12 +53012,11 @@ class IgxFilteringService {
|
|
|
53011
53012
|
this.prepare_filtering_expression(filteringTree, fieldName, term, conditionOrExpressionsTree, ignoreCase, fieldFilterIndex);
|
|
53012
53013
|
grid.filteringExpressionsTree = filteringTree;
|
|
53013
53014
|
}
|
|
53014
|
-
/** Modifies the filteringState object to contain the newly added
|
|
53015
|
+
/** Modifies the filteringState object to contain the newly added filtering conditions/expressions.
|
|
53015
53016
|
* If createNewTree is true, filteringState will not be modified (because it directly affects the grid.filteringExpressionsTree),
|
|
53016
53017
|
* but a new object is created and returned.
|
|
53017
53018
|
*/
|
|
53018
53019
|
prepare_filtering_expression(filteringState, fieldName, searchVal, conditionOrExpressionsTree, ignoreCase, insertAtIndex = -1, createNewTree = false) {
|
|
53019
|
-
const oldExpressionsTreeIndex = filteringState.findIndex(fieldName);
|
|
53020
53020
|
const expressionsTree = conditionOrExpressionsTree instanceof FilteringExpressionsTree ?
|
|
53021
53021
|
conditionOrExpressionsTree : null;
|
|
53022
53022
|
const condition = conditionOrExpressionsTree instanceof FilteringExpressionsTree ?
|
|
@@ -53024,23 +53024,21 @@ class IgxFilteringService {
|
|
|
53024
53024
|
const newExpression = { fieldName, searchVal, condition, ignoreCase };
|
|
53025
53025
|
const newExpressionsTree = createNewTree ?
|
|
53026
53026
|
new FilteringExpressionsTree(filteringState.operator, filteringState.fieldName) : filteringState;
|
|
53027
|
-
|
|
53028
|
-
|
|
53029
|
-
if (
|
|
53030
|
-
|
|
53031
|
-
newExpressionsTree.filteringOperands.splice(insertAtIndex, 0, expressionsTree);
|
|
53032
|
-
}
|
|
53033
|
-
else {
|
|
53034
|
-
newExpressionsTree.filteringOperands.push(expressionsTree);
|
|
53035
|
-
}
|
|
53027
|
+
// no expressions tree found for this field
|
|
53028
|
+
if (expressionsTree) {
|
|
53029
|
+
if (insertAtIndex > -1) {
|
|
53030
|
+
newExpressionsTree.filteringOperands[insertAtIndex] = expressionsTree;
|
|
53036
53031
|
}
|
|
53037
|
-
else
|
|
53038
|
-
|
|
53039
|
-
const newExprTree = new FilteringExpressionsTree(filteringState.operator, fieldName);
|
|
53040
|
-
newExprTree.filteringOperands.push(newExpression);
|
|
53041
|
-
newExpressionsTree.filteringOperands.push(newExprTree);
|
|
53032
|
+
else {
|
|
53033
|
+
newExpressionsTree.filteringOperands.push(expressionsTree);
|
|
53042
53034
|
}
|
|
53043
53035
|
}
|
|
53036
|
+
else if (condition) {
|
|
53037
|
+
// create expressions tree for this field and add the new expression to it
|
|
53038
|
+
const newExprTree = new FilteringExpressionsTree(filteringState.operator, fieldName);
|
|
53039
|
+
newExprTree.filteringOperands.push(newExpression);
|
|
53040
|
+
newExpressionsTree.filteringOperands.push(newExprTree);
|
|
53041
|
+
}
|
|
53044
53042
|
return newExpressionsTree;
|
|
53045
53043
|
}
|
|
53046
53044
|
isFilteringTreeComplex(expressions) {
|
|
@@ -53051,7 +53049,7 @@ class IgxFilteringService {
|
|
|
53051
53049
|
const expressionsTree = expressions;
|
|
53052
53050
|
if (expressionsTree.operator === FilteringLogic.Or) {
|
|
53053
53051
|
const andOperatorsCount = this.getChildAndOperatorsCount(expressionsTree);
|
|
53054
|
-
// having more
|
|
53052
|
+
// having more than one 'And' operator in the sub-tree means that the filter could not be represented without parentheses.
|
|
53055
53053
|
return andOperatorsCount > 1;
|
|
53056
53054
|
}
|
|
53057
53055
|
let isComplex = false;
|