@progress/kendo-angular-grid 22.1.0-develop.6 → 22.1.0-develop.7
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.
|
@@ -23620,7 +23620,7 @@ const packageMetadata = {
|
|
|
23620
23620
|
productCode: 'KENDOUIANGULAR',
|
|
23621
23621
|
productCodes: ['KENDOUIANGULAR'],
|
|
23622
23622
|
publishDate: 0,
|
|
23623
|
-
version: '22.1.0-develop.
|
|
23623
|
+
version: '22.1.0-develop.7',
|
|
23624
23624
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
23625
23625
|
};
|
|
23626
23626
|
|
|
@@ -23677,15 +23677,20 @@ const processCellHighlights = (filter, rowIndex, columns, highlightItems) => {
|
|
|
23677
23677
|
* @hidden
|
|
23678
23678
|
* Processes filtered results and adds highlight items.
|
|
23679
23679
|
*/
|
|
23680
|
-
const processFilteredResults = (filteredResults, data, filter, columns, highlightItems) => {
|
|
23680
|
+
const processFilteredResults = (filteredResults, data, filter, columns, highlightItems, highlightDirective) => {
|
|
23681
23681
|
filteredResults?.forEach((item) => {
|
|
23682
23682
|
const rowIndex = data.findIndex((dataItem) => dataItem === item);
|
|
23683
|
+
const row = data.find((dataItem) => dataItem === item);
|
|
23684
|
+
let key = rowIndex;
|
|
23685
|
+
if (highlightDirective?.highlightItemKey) {
|
|
23686
|
+
key = highlightDirective['getItemKey']({ data: row, index: rowIndex });
|
|
23687
|
+
}
|
|
23683
23688
|
if (filter.cells && Object.keys(filter.cells).length > 0) {
|
|
23684
23689
|
processCellHighlights(filter, rowIndex, columns, highlightItems);
|
|
23685
23690
|
}
|
|
23686
23691
|
else {
|
|
23687
23692
|
highlightItems.push({
|
|
23688
|
-
itemKey:
|
|
23693
|
+
itemKey: key,
|
|
23689
23694
|
});
|
|
23690
23695
|
}
|
|
23691
23696
|
});
|
|
@@ -23698,7 +23703,7 @@ const processFilteredResults = (filteredResults, data, filter, columns, highligh
|
|
|
23698
23703
|
* @param columns - The columns of the grid.
|
|
23699
23704
|
* @returns An array of HighlightItem objects representing the highlighted items.
|
|
23700
23705
|
*/
|
|
23701
|
-
const highlightBy = (data, filters, columns) => {
|
|
23706
|
+
const highlightBy = (data, filters, columns, highlightDirective) => {
|
|
23702
23707
|
const highlightItems = [];
|
|
23703
23708
|
filters.forEach((filter) => {
|
|
23704
23709
|
const processedFilters = filter.filters.map((filter) => convertDateStringsInFilter(filter));
|
|
@@ -23706,7 +23711,7 @@ const highlightBy = (data, filters, columns) => {
|
|
|
23706
23711
|
logic: filter.logic || "and",
|
|
23707
23712
|
filters: processedFilters,
|
|
23708
23713
|
});
|
|
23709
|
-
processFilteredResults(filteredResults, data, filter, columns, highlightItems);
|
|
23714
|
+
processFilteredResults(filteredResults, data, filter, columns, highlightItems, highlightDirective);
|
|
23710
23715
|
});
|
|
23711
23716
|
return highlightItems;
|
|
23712
23717
|
};
|
|
@@ -24163,7 +24168,7 @@ class GridAIRequestResponseService {
|
|
|
24163
24168
|
return [];
|
|
24164
24169
|
}
|
|
24165
24170
|
const data = this.ctx.dataBindingDirective?.['originalData'] || [];
|
|
24166
|
-
return highlightBy(data, descriptors, columns);
|
|
24171
|
+
return highlightBy(data, descriptors, columns, this.ctx.highlightDirective);
|
|
24167
24172
|
}
|
|
24168
24173
|
processSelectionResponse(selection, columns, leafColumns, messages) {
|
|
24169
24174
|
const selectionInstance = this.getSelectionInstance();
|
|
@@ -39209,7 +39214,7 @@ class HighlightDirective {
|
|
|
39209
39214
|
return row.data?.[this.highlightItemKey];
|
|
39210
39215
|
}
|
|
39211
39216
|
if (typeof this.highlightItemKey === "function") {
|
|
39212
|
-
return this.highlightItemKey(row);
|
|
39217
|
+
return this.highlightItemKey({ dataItem: row.data, index: row.index });
|
|
39213
39218
|
}
|
|
39214
39219
|
}
|
|
39215
39220
|
return row.index;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "22.1.0-develop.
|
|
10
|
+
"publishDate": 1768990954,
|
|
11
|
+
"version": "22.1.0-develop.7",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "22.1.0-develop.
|
|
3
|
+
"version": "22.1.0-develop.7",
|
|
4
4
|
"description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"package": {
|
|
74
74
|
"productName": "Kendo UI for Angular",
|
|
75
75
|
"productCode": "KENDOUIANGULAR",
|
|
76
|
-
"publishDate":
|
|
76
|
+
"publishDate": 1768990954,
|
|
77
77
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
@@ -86,32 +86,32 @@
|
|
|
86
86
|
"@progress/kendo-data-query": "^1.0.0",
|
|
87
87
|
"@progress/kendo-drawing": "^1.23.1",
|
|
88
88
|
"@progress/kendo-licensing": "^1.7.0",
|
|
89
|
-
"@progress/kendo-angular-buttons": "22.1.0-develop.
|
|
90
|
-
"@progress/kendo-angular-common": "22.1.0-develop.
|
|
91
|
-
"@progress/kendo-angular-dateinputs": "22.1.0-develop.
|
|
92
|
-
"@progress/kendo-angular-layout": "22.1.0-develop.
|
|
93
|
-
"@progress/kendo-angular-navigation": "22.1.0-develop.
|
|
94
|
-
"@progress/kendo-angular-dropdowns": "22.1.0-develop.
|
|
95
|
-
"@progress/kendo-angular-excel-export": "22.1.0-develop.
|
|
96
|
-
"@progress/kendo-angular-icons": "22.1.0-develop.
|
|
97
|
-
"@progress/kendo-angular-indicators": "22.1.0-develop.
|
|
98
|
-
"@progress/kendo-angular-inputs": "22.1.0-develop.
|
|
99
|
-
"@progress/kendo-angular-conversational-ui": "22.1.0-develop.
|
|
100
|
-
"@progress/kendo-angular-intl": "22.1.0-develop.
|
|
101
|
-
"@progress/kendo-angular-l10n": "22.1.0-develop.
|
|
102
|
-
"@progress/kendo-angular-label": "22.1.0-develop.
|
|
103
|
-
"@progress/kendo-angular-menu": "22.1.0-develop.
|
|
104
|
-
"@progress/kendo-angular-pager": "22.1.0-develop.
|
|
105
|
-
"@progress/kendo-angular-pdf-export": "22.1.0-develop.
|
|
106
|
-
"@progress/kendo-angular-popup": "22.1.0-develop.
|
|
107
|
-
"@progress/kendo-angular-toolbar": "22.1.0-develop.
|
|
108
|
-
"@progress/kendo-angular-upload": "22.1.0-develop.
|
|
109
|
-
"@progress/kendo-angular-utils": "22.1.0-develop.
|
|
89
|
+
"@progress/kendo-angular-buttons": "22.1.0-develop.7",
|
|
90
|
+
"@progress/kendo-angular-common": "22.1.0-develop.7",
|
|
91
|
+
"@progress/kendo-angular-dateinputs": "22.1.0-develop.7",
|
|
92
|
+
"@progress/kendo-angular-layout": "22.1.0-develop.7",
|
|
93
|
+
"@progress/kendo-angular-navigation": "22.1.0-develop.7",
|
|
94
|
+
"@progress/kendo-angular-dropdowns": "22.1.0-develop.7",
|
|
95
|
+
"@progress/kendo-angular-excel-export": "22.1.0-develop.7",
|
|
96
|
+
"@progress/kendo-angular-icons": "22.1.0-develop.7",
|
|
97
|
+
"@progress/kendo-angular-indicators": "22.1.0-develop.7",
|
|
98
|
+
"@progress/kendo-angular-inputs": "22.1.0-develop.7",
|
|
99
|
+
"@progress/kendo-angular-conversational-ui": "22.1.0-develop.7",
|
|
100
|
+
"@progress/kendo-angular-intl": "22.1.0-develop.7",
|
|
101
|
+
"@progress/kendo-angular-l10n": "22.1.0-develop.7",
|
|
102
|
+
"@progress/kendo-angular-label": "22.1.0-develop.7",
|
|
103
|
+
"@progress/kendo-angular-menu": "22.1.0-develop.7",
|
|
104
|
+
"@progress/kendo-angular-pager": "22.1.0-develop.7",
|
|
105
|
+
"@progress/kendo-angular-pdf-export": "22.1.0-develop.7",
|
|
106
|
+
"@progress/kendo-angular-popup": "22.1.0-develop.7",
|
|
107
|
+
"@progress/kendo-angular-toolbar": "22.1.0-develop.7",
|
|
108
|
+
"@progress/kendo-angular-upload": "22.1.0-develop.7",
|
|
109
|
+
"@progress/kendo-angular-utils": "22.1.0-develop.7",
|
|
110
110
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"tslib": "^2.3.1",
|
|
114
|
-
"@progress/kendo-angular-schematics": "22.1.0-develop.
|
|
114
|
+
"@progress/kendo-angular-schematics": "22.1.0-develop.7",
|
|
115
115
|
"@progress/kendo-common": "^1.0.1",
|
|
116
116
|
"@progress/kendo-file-saver": "^1.0.0"
|
|
117
117
|
},
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { CompositeFilterDescriptor, FilterDescriptor } from "@progress/kendo-data-query";
|
|
6
6
|
import { HighlightItem } from "../../../../highlight/highlight-item";
|
|
7
7
|
import { CompositeHighlightDescriptor } from "./models";
|
|
8
|
+
import { HighlightDirective } from "../../../../highlight/highlight.directive";
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
10
11
|
* Converts date strings in a filter to Date objects.
|
|
@@ -24,4 +25,4 @@ export declare const isDateOperator: (operator: string) => boolean;
|
|
|
24
25
|
*/
|
|
25
26
|
export declare const highlightBy: (data: any[], filters: CompositeHighlightDescriptor[], columns: {
|
|
26
27
|
field: string;
|
|
27
|
-
}[]) => HighlightItem[];
|
|
28
|
+
}[], highlightDirective: HighlightDirective) => HighlightItem[];
|
|
@@ -9,19 +9,19 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
|
|
11
11
|
// peer deps of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-treeview': '22.1.0-develop.
|
|
13
|
-
'@progress/kendo-angular-navigation': '22.1.0-develop.
|
|
12
|
+
'@progress/kendo-angular-treeview': '22.1.0-develop.7',
|
|
13
|
+
'@progress/kendo-angular-navigation': '22.1.0-develop.7',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '22.1.0-develop.
|
|
15
|
+
'@progress/kendo-angular-dialog': '22.1.0-develop.7',
|
|
16
16
|
// peer dependency of kendo-angular-icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0',
|
|
18
18
|
// peer dependency of kendo-angular-layout
|
|
19
|
-
'@progress/kendo-angular-progressbar': '22.1.0-develop.
|
|
19
|
+
'@progress/kendo-angular-progressbar': '22.1.0-develop.7',
|
|
20
20
|
// transitive peer dependencies from toolbar
|
|
21
|
-
'@progress/kendo-angular-indicators': '22.1.0-develop.
|
|
21
|
+
'@progress/kendo-angular-indicators': '22.1.0-develop.7',
|
|
22
22
|
// transitive peer dependencies from conversational-ui
|
|
23
|
-
'@progress/kendo-angular-menu': '22.1.0-develop.
|
|
24
|
-
'@progress/kendo-angular-upload': '22.1.0-develop.
|
|
23
|
+
'@progress/kendo-angular-menu': '22.1.0-develop.7',
|
|
24
|
+
'@progress/kendo-angular-upload': '22.1.0-develop.7'
|
|
25
25
|
} });
|
|
26
26
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
27
27
|
}
|