@progress/kendo-angular-grid 25.1.0-develop.2 → 25.1.0-develop.20

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.
@@ -3504,12 +3504,20 @@ class ColumnResizingService {
3504
3504
  }
3505
3505
  restoreInitialMaxMinWidths() {
3506
3506
  if (this.adjacentColumn) {
3507
- this.adjacentColumn.maxResizableWidth = this.adjacentColumn.initialMaxResizableWidth;
3508
- this.adjacentColumn.minResizableWidth = this.adjacentColumn.initialMinResizableWidth;
3507
+ if (this.adjacentColumn.initialMaxResizableWidth !== undefined) {
3508
+ this.adjacentColumn.maxResizableWidth = this.adjacentColumn.initialMaxResizableWidth;
3509
+ }
3510
+ if (this.adjacentColumn.initialMinResizableWidth !== undefined) {
3511
+ this.adjacentColumn.minResizableWidth = this.adjacentColumn.initialMinResizableWidth;
3512
+ }
3509
3513
  }
3510
3514
  if (this.column) {
3511
- this.column.maxResizableWidth = this.column.initialMaxResizableWidth;
3512
- this.column.minResizableWidth = this.column.initialMinResizableWidth;
3515
+ if (this.column.initialMaxResizableWidth !== undefined) {
3516
+ this.column.maxResizableWidth = this.column.initialMaxResizableWidth;
3517
+ }
3518
+ if (this.column.initialMinResizableWidth !== undefined) {
3519
+ this.column.minResizableWidth = this.column.initialMinResizableWidth;
3520
+ }
3513
3521
  }
3514
3522
  }
3515
3523
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.27", ngImport: i0, type: ColumnResizingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -9205,6 +9213,10 @@ const trimFilterByField = (filter, field) => {
9205
9213
  * @hidden
9206
9214
  */
9207
9215
  const filtersByField = (filter, field) => flatten(filter || {}).filter(x => x.field === field);
9216
+ /**
9217
+ * @hidden
9218
+ */
9219
+ const isEmptyFilterValue = (value) => isBlank(value) || value === '';
9208
9220
  /**
9209
9221
  * @hidden
9210
9222
  */
@@ -9610,8 +9622,8 @@ class FilterInputWrapperComponent extends BaseFilterCellComponent {
9610
9622
  }
9611
9623
  }
9612
9624
  onChange(value) {
9613
- if (!isNullOrEmptyString(value) || this.filterByField(this.column.field)) {
9614
- this.filterChange(isNullOrEmptyString(value) ?
9625
+ if (!isEmptyFilterValue(value) || this.filterByField(this.column.field)) {
9626
+ this.filterChange(isEmptyFilterValue(value) ?
9615
9627
  this.removeFilter(this.column.field) :
9616
9628
  this.updateFilter({
9617
9629
  field: this.column.field,
@@ -11775,7 +11787,7 @@ const isNoValueOperator = operator => (operator === "isnull"
11775
11787
  /**
11776
11788
  * @hidden
11777
11789
  */
11778
- const validFilters = ({ value, operator }) => !isNullOrEmptyString(value) || isNoValueOperator(operator);
11790
+ const validFilters = ({ value, operator }) => !isEmptyFilterValue(value) || isNoValueOperator(operator);
11779
11791
  const trimFilters = (filter) => {
11780
11792
  const trimComposite = (node) => {
11781
11793
  const trimmed = [];
@@ -12400,7 +12412,7 @@ class FilterCellWrapperComponent extends FilterInputWrapperComponent {
12400
12412
  showOperators = true;
12401
12413
  get showButton() {
12402
12414
  const filter = this.currentFilter;
12403
- return isPresent(filter) && (!isNullOrEmptyString(filter.value) ||
12415
+ return isPresent(filter) && (isPresent(filter.value) ||
12404
12416
  EMPTY_FILTER_OPERATORS.indexOf(String(filter.operator)) >= 0);
12405
12417
  }
12406
12418
  constructor(filterService) {
@@ -18953,9 +18965,9 @@ class ColumnHandleDirective {
18953
18965
  return;
18954
18966
  }
18955
18967
  // Use existing resizeStartWidth if already set (for keyboard resizing),
18956
- // otherwise measure from DOM element (for mouse resizing)
18968
+ // otherwise measure from DOM element (for mouse resizing) or fallback to column.width
18957
18969
  if (!this.column.resizeStartWidth) {
18958
- this.column.resizeStartWidth = headerWidth(this.element);
18970
+ this.column.resizeStartWidth = headerWidth(this.element) || this.column.width;
18959
18971
  }
18960
18972
  if (this.isConstrainedMode && !this.service.adjacentColumn) {
18961
18973
  this.setAdjacentColumn();
@@ -25163,8 +25175,8 @@ const packageMetadata = {
25163
25175
  productName: 'Kendo UI for Angular',
25164
25176
  productCode: 'KENDOUIANGULAR',
25165
25177
  productCodes: ['KENDOUIANGULAR'],
25166
- publishDate: 1786694248,
25167
- version: '25.1.0-develop.2',
25178
+ publishDate: 1787938475,
25179
+ version: '25.1.0-develop.20',
25168
25180
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
25169
25181
  };
25170
25182
 
@@ -37864,12 +37876,10 @@ class GridComponent {
37864
37876
  }
37865
37877
  traverseColumns(columns, callback) {
37866
37878
  columns.forEach((column) => {
37879
+ callback(column);
37867
37880
  if (column.isColumnGroup || column.isSpanColumn) {
37868
37881
  this.traverseColumns(column.children, callback);
37869
37882
  }
37870
- else {
37871
- callback(column);
37872
- }
37873
37883
  });
37874
37884
  }
37875
37885
  /**
@@ -37893,7 +37903,8 @@ class GridComponent {
37893
37903
  else {
37894
37904
  cols = columns;
37895
37905
  }
37896
- this.columnResizingService.autoFit(...cols);
37906
+ const leafCols = Array.from(new Set(leafColumns(cols)));
37907
+ this.columnResizingService.autoFit(...leafCols);
37897
37908
  }
37898
37909
  /**
37899
37910
  * Adjusts the width of the Grid columns to fit the entire Grid width.
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1786694248,
11
- "version": "25.1.0-develop.2",
10
+ "publishDate": 1787938475,
11
+ "version": "25.1.0-develop.20",
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": "25.1.0-develop.2",
3
+ "version": "25.1.0-develop.20",
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",
@@ -101,7 +101,7 @@
101
101
  "package": {
102
102
  "productName": "Kendo UI for Angular",
103
103
  "productCode": "KENDOUIANGULAR",
104
- "publishDate": 1786694248,
104
+ "publishDate": 1787938475,
105
105
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
106
106
  }
107
107
  },
@@ -114,32 +114,32 @@
114
114
  "@progress/kendo-data-query": "^1.7.3",
115
115
  "@progress/kendo-drawing": "^1.25.0",
116
116
  "@progress/kendo-licensing": "^1.11.0",
117
- "@progress/kendo-angular-buttons": "25.1.0-develop.2",
118
- "@progress/kendo-angular-common": "25.1.0-develop.2",
119
- "@progress/kendo-angular-dateinputs": "25.1.0-develop.2",
120
- "@progress/kendo-angular-layout": "25.1.0-develop.2",
121
- "@progress/kendo-angular-navigation": "25.1.0-develop.2",
122
- "@progress/kendo-angular-dropdowns": "25.1.0-develop.2",
123
- "@progress/kendo-angular-excel-export": "25.1.0-develop.2",
124
- "@progress/kendo-angular-icons": "25.1.0-develop.2",
125
- "@progress/kendo-angular-indicators": "25.1.0-develop.2",
126
- "@progress/kendo-angular-inputs": "25.1.0-develop.2",
127
- "@progress/kendo-angular-conversational-ui": "25.1.0-develop.2",
128
- "@progress/kendo-angular-intl": "25.1.0-develop.2",
129
- "@progress/kendo-angular-l10n": "25.1.0-develop.2",
130
- "@progress/kendo-angular-label": "25.1.0-develop.2",
131
- "@progress/kendo-angular-menu": "25.1.0-develop.2",
132
- "@progress/kendo-angular-pager": "25.1.0-develop.2",
133
- "@progress/kendo-angular-pdf-export": "25.1.0-develop.2",
134
- "@progress/kendo-angular-popup": "25.1.0-develop.2",
135
- "@progress/kendo-angular-toolbar": "25.1.0-develop.2",
136
- "@progress/kendo-angular-upload": "25.1.0-develop.2",
137
- "@progress/kendo-angular-utils": "25.1.0-develop.2",
117
+ "@progress/kendo-angular-buttons": "25.1.0-develop.20",
118
+ "@progress/kendo-angular-common": "25.1.0-develop.20",
119
+ "@progress/kendo-angular-dateinputs": "25.1.0-develop.20",
120
+ "@progress/kendo-angular-layout": "25.1.0-develop.20",
121
+ "@progress/kendo-angular-navigation": "25.1.0-develop.20",
122
+ "@progress/kendo-angular-dropdowns": "25.1.0-develop.20",
123
+ "@progress/kendo-angular-excel-export": "25.1.0-develop.20",
124
+ "@progress/kendo-angular-icons": "25.1.0-develop.20",
125
+ "@progress/kendo-angular-indicators": "25.1.0-develop.20",
126
+ "@progress/kendo-angular-inputs": "25.1.0-develop.20",
127
+ "@progress/kendo-angular-conversational-ui": "25.1.0-develop.20",
128
+ "@progress/kendo-angular-intl": "25.1.0-develop.20",
129
+ "@progress/kendo-angular-l10n": "25.1.0-develop.20",
130
+ "@progress/kendo-angular-label": "25.1.0-develop.20",
131
+ "@progress/kendo-angular-menu": "25.1.0-develop.20",
132
+ "@progress/kendo-angular-pager": "25.1.0-develop.20",
133
+ "@progress/kendo-angular-pdf-export": "25.1.0-develop.20",
134
+ "@progress/kendo-angular-popup": "25.1.0-develop.20",
135
+ "@progress/kendo-angular-toolbar": "25.1.0-develop.20",
136
+ "@progress/kendo-angular-upload": "25.1.0-develop.20",
137
+ "@progress/kendo-angular-utils": "25.1.0-develop.20",
138
138
  "rxjs": "^6.5.3 || ^7.0.0"
139
139
  },
140
140
  "dependencies": {
141
141
  "tslib": "^2.3.1",
142
- "@progress/kendo-angular-schematics": "25.1.0-develop.2",
142
+ "@progress/kendo-angular-schematics": "25.1.0-develop.20",
143
143
  "@progress/kendo-common": "^1.0.1",
144
144
  "@progress/kendo-file-saver": "^1.0.0",
145
145
  "@progress/kendo-csv": "^1.0.0"
@@ -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': '25.1.0-develop.2',
13
- '@progress/kendo-angular-navigation': '25.1.0-develop.2',
12
+ '@progress/kendo-angular-treeview': '25.1.0-develop.20',
13
+ '@progress/kendo-angular-navigation': '25.1.0-develop.20',
14
14
  // peer dependency of kendo-angular-inputs
15
- '@progress/kendo-angular-dialog': '25.1.0-develop.2',
15
+ '@progress/kendo-angular-dialog': '25.1.0-develop.20',
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': '25.1.0-develop.2',
19
+ '@progress/kendo-angular-progressbar': '25.1.0-develop.20',
20
20
  // transitive peer dependencies from toolbar
21
- '@progress/kendo-angular-indicators': '25.1.0-develop.2',
21
+ '@progress/kendo-angular-indicators': '25.1.0-develop.20',
22
22
  // transitive peer dependencies from conversational-ui
23
- '@progress/kendo-angular-menu': '25.1.0-develop.2',
24
- '@progress/kendo-angular-upload': '25.1.0-develop.2'
23
+ '@progress/kendo-angular-menu': '25.1.0-develop.20',
24
+ '@progress/kendo-angular-upload': '25.1.0-develop.20'
25
25
  } });
26
26
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
27
27
  }