@progress/kendo-angular-grid 19.1.0 → 19.1.1-develop.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.
@@ -40,25 +40,25 @@ export class ToolbarEditingToolBase extends ToolbarToolBase {
40
40
  return;
41
41
  }
42
42
  this.isEdited = this.editService.isEditing();
43
+ const isAddNewItem = this.editService.hasNewItem;
43
44
  let isToolInactive = false;
44
45
  let formGroup;
45
46
  const selectionPresent = isPresent(this.lastSelectionIndex);
46
- const editServiceCtx = this.editService.context(this.lastSelectionIndex);
47
- if (this.isEdited && isPresent(editServiceCtx)) {
48
- formGroup = this.editService.context(this.lastSelectionIndex).group;
47
+ if (this.isEdited || isAddNewItem) {
48
+ formGroup = isAddNewItem ? this.editService.context()?.group : this.editService.editedIndices[0].group;
49
49
  }
50
50
  switch (this.commandName) {
51
51
  case ToolbarToolName.edit:
52
52
  isToolInactive = this.isEdited || !selectionPresent;
53
53
  break;
54
54
  case ToolbarToolName.save:
55
- isToolInactive = !(this.isEdited || this.editService.hasNewItem) || !formGroup?.valid;
55
+ isToolInactive = !(this.isEdited || isAddNewItem) || !formGroup?.valid;
56
56
  break;
57
57
  case ToolbarToolName.remove:
58
58
  isToolInactive = this.isEdited || !selectionPresent;
59
59
  break;
60
60
  case ToolbarToolName.cancel:
61
- isToolInactive = !(this.isEdited || this.editService.hasNewItem);
61
+ isToolInactive = !(this.isEdited || isAddNewItem);
62
62
  break;
63
63
  }
64
64
  if (this.lastToolState !== isToolInactive) {
@@ -644,7 +644,7 @@ export class GridComponent {
644
644
  */
645
645
  hideHeader = false;
646
646
  /**
647
- * Specifies if the currently inactive toolbar tools will be visible. Applicable when the toolbar is configured using the <kendo-toolbar> component. By default, such tools are hidden.
647
+ * Specifies if the currently inactive toolbar tools will be visible. Applicable when the toolbar is configured using the `<kendo-toolbar>` component. By default, such tools are hidden.
648
648
  *
649
649
  * @default false
650
650
  */
@@ -2441,7 +2441,7 @@ export class GridComponent {
2441
2441
 
2442
2442
  i18n-filterMenuOperatorsDropDownLabel="kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown"
2443
2443
  filterMenuOperatorsDropDownLabel="{{ '{columnName} Filter Operators' }}"
2444
-
2444
+
2445
2445
  i18n-filterCellOperatorLabel="kendo.grid.filterCellOperatorLabel|The label of the filter cell operators dropdown"
2446
2446
  filterCellOperatorLabel="{{ 'Filter cell operators for {columnName}' }}"
2447
2447
 
@@ -2612,7 +2612,7 @@ export class GridComponent {
2612
2612
 
2613
2613
  i18n-sortedAscending="kendo.grid.sortedAscending|The title of the Group Chip indicating the ascending sorting order of the groups"
2614
2614
  sortedAscending="Sorted Ascending"
2615
-
2615
+
2616
2616
  i18n-sortedDescending="kendo.grid.sortedDescending|The title of the Group Chip indicating the descending sorting order of the groups"
2617
2617
  sortedDescending="Sorted Descending"
2618
2618
 
@@ -3091,7 +3091,7 @@ export class GridComponent {
3091
3091
  (pageTextVisibilityChange)="handlePagerVisibilityChange('showPagerPageText', $event)"
3092
3092
  (itemsTextVisibilityChange)="handlePagerVisibilityChange('showPagerItemsText', $event)">
3093
3093
  <ng-template kendoPagerTemplate>
3094
- <ng-container
3094
+ <ng-container
3095
3095
  [ngTemplateOutlet]="pagerTemplate ? pagerTemplate?.templateRef : defaultPager"
3096
3096
  [ngTemplateOutletContext]="bottomPager.templateContext"></ng-container>
3097
3097
  </ng-template>
@@ -3264,7 +3264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
3264
3264
 
3265
3265
  i18n-filterMenuOperatorsDropDownLabel="kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown"
3266
3266
  filterMenuOperatorsDropDownLabel="{{ '{columnName} Filter Operators' }}"
3267
-
3267
+
3268
3268
  i18n-filterCellOperatorLabel="kendo.grid.filterCellOperatorLabel|The label of the filter cell operators dropdown"
3269
3269
  filterCellOperatorLabel="{{ 'Filter cell operators for {columnName}' }}"
3270
3270
 
@@ -3435,7 +3435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
3435
3435
 
3436
3436
  i18n-sortedAscending="kendo.grid.sortedAscending|The title of the Group Chip indicating the ascending sorting order of the groups"
3437
3437
  sortedAscending="Sorted Ascending"
3438
-
3438
+
3439
3439
  i18n-sortedDescending="kendo.grid.sortedDescending|The title of the Group Chip indicating the descending sorting order of the groups"
3440
3440
  sortedDescending="Sorted Descending"
3441
3441
 
@@ -3914,7 +3914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
3914
3914
  (pageTextVisibilityChange)="handlePagerVisibilityChange('showPagerPageText', $event)"
3915
3915
  (itemsTextVisibilityChange)="handlePagerVisibilityChange('showPagerItemsText', $event)">
3916
3916
  <ng-template kendoPagerTemplate>
3917
- <ng-container
3917
+ <ng-container
3918
3918
  [ngTemplateOutlet]="pagerTemplate ? pagerTemplate?.templateRef : defaultPager"
3919
3919
  [ngTemplateOutletContext]="bottomPager.templateContext"></ng-container>
3920
3920
  </ng-template>
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1748538708,
14
- version: '19.1.0',
13
+ publishDate: 1749196787,
14
+ version: '19.1.1-develop.2',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -20476,8 +20476,8 @@ const packageMetadata = {
20476
20476
  productName: 'Kendo UI for Angular',
20477
20477
  productCode: 'KENDOUIANGULAR',
20478
20478
  productCodes: ['KENDOUIANGULAR'],
20479
- publishDate: 1748538708,
20480
- version: '19.1.0',
20479
+ publishDate: 1749196787,
20480
+ version: '19.1.1-develop.2',
20481
20481
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
20482
20482
  };
20483
20483
 
@@ -27274,7 +27274,7 @@ class GridComponent {
27274
27274
  */
27275
27275
  hideHeader = false;
27276
27276
  /**
27277
- * Specifies if the currently inactive toolbar tools will be visible. Applicable when the toolbar is configured using the <kendo-toolbar> component. By default, such tools are hidden.
27277
+ * Specifies if the currently inactive toolbar tools will be visible. Applicable when the toolbar is configured using the `<kendo-toolbar>` component. By default, such tools are hidden.
27278
27278
  *
27279
27279
  * @default false
27280
27280
  */
@@ -29071,7 +29071,7 @@ class GridComponent {
29071
29071
 
29072
29072
  i18n-filterMenuOperatorsDropDownLabel="kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown"
29073
29073
  filterMenuOperatorsDropDownLabel="{{ '{columnName} Filter Operators' }}"
29074
-
29074
+
29075
29075
  i18n-filterCellOperatorLabel="kendo.grid.filterCellOperatorLabel|The label of the filter cell operators dropdown"
29076
29076
  filterCellOperatorLabel="{{ 'Filter cell operators for {columnName}' }}"
29077
29077
 
@@ -29242,7 +29242,7 @@ class GridComponent {
29242
29242
 
29243
29243
  i18n-sortedAscending="kendo.grid.sortedAscending|The title of the Group Chip indicating the ascending sorting order of the groups"
29244
29244
  sortedAscending="Sorted Ascending"
29245
-
29245
+
29246
29246
  i18n-sortedDescending="kendo.grid.sortedDescending|The title of the Group Chip indicating the descending sorting order of the groups"
29247
29247
  sortedDescending="Sorted Descending"
29248
29248
 
@@ -29721,7 +29721,7 @@ class GridComponent {
29721
29721
  (pageTextVisibilityChange)="handlePagerVisibilityChange('showPagerPageText', $event)"
29722
29722
  (itemsTextVisibilityChange)="handlePagerVisibilityChange('showPagerItemsText', $event)">
29723
29723
  <ng-template kendoPagerTemplate>
29724
- <ng-container
29724
+ <ng-container
29725
29725
  [ngTemplateOutlet]="pagerTemplate ? pagerTemplate?.templateRef : defaultPager"
29726
29726
  [ngTemplateOutletContext]="bottomPager.templateContext"></ng-container>
29727
29727
  </ng-template>
@@ -29894,7 +29894,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
29894
29894
 
29895
29895
  i18n-filterMenuOperatorsDropDownLabel="kendo.grid.filterMenuOperatorsDropDownLabel|The label of the filter menu operators dropdown"
29896
29896
  filterMenuOperatorsDropDownLabel="{{ '{columnName} Filter Operators' }}"
29897
-
29897
+
29898
29898
  i18n-filterCellOperatorLabel="kendo.grid.filterCellOperatorLabel|The label of the filter cell operators dropdown"
29899
29899
  filterCellOperatorLabel="{{ 'Filter cell operators for {columnName}' }}"
29900
29900
 
@@ -30065,7 +30065,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
30065
30065
 
30066
30066
  i18n-sortedAscending="kendo.grid.sortedAscending|The title of the Group Chip indicating the ascending sorting order of the groups"
30067
30067
  sortedAscending="Sorted Ascending"
30068
-
30068
+
30069
30069
  i18n-sortedDescending="kendo.grid.sortedDescending|The title of the Group Chip indicating the descending sorting order of the groups"
30070
30070
  sortedDescending="Sorted Descending"
30071
30071
 
@@ -30544,7 +30544,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
30544
30544
  (pageTextVisibilityChange)="handlePagerVisibilityChange('showPagerPageText', $event)"
30545
30545
  (itemsTextVisibilityChange)="handlePagerVisibilityChange('showPagerItemsText', $event)">
30546
30546
  <ng-template kendoPagerTemplate>
30547
- <ng-container
30547
+ <ng-container
30548
30548
  [ngTemplateOutlet]="pagerTemplate ? pagerTemplate?.templateRef : defaultPager"
30549
30549
  [ngTemplateOutletContext]="bottomPager.templateContext"></ng-container>
30550
30550
  </ng-template>
@@ -32630,25 +32630,25 @@ class ToolbarEditingToolBase extends ToolbarToolBase {
32630
32630
  return;
32631
32631
  }
32632
32632
  this.isEdited = this.editService.isEditing();
32633
+ const isAddNewItem = this.editService.hasNewItem;
32633
32634
  let isToolInactive = false;
32634
32635
  let formGroup;
32635
32636
  const selectionPresent = isPresent$1(this.lastSelectionIndex);
32636
- const editServiceCtx = this.editService.context(this.lastSelectionIndex);
32637
- if (this.isEdited && isPresent$1(editServiceCtx)) {
32638
- formGroup = this.editService.context(this.lastSelectionIndex).group;
32637
+ if (this.isEdited || isAddNewItem) {
32638
+ formGroup = isAddNewItem ? this.editService.context()?.group : this.editService.editedIndices[0].group;
32639
32639
  }
32640
32640
  switch (this.commandName) {
32641
32641
  case ToolbarToolName.edit:
32642
32642
  isToolInactive = this.isEdited || !selectionPresent;
32643
32643
  break;
32644
32644
  case ToolbarToolName.save:
32645
- isToolInactive = !(this.isEdited || this.editService.hasNewItem) || !formGroup?.valid;
32645
+ isToolInactive = !(this.isEdited || isAddNewItem) || !formGroup?.valid;
32646
32646
  break;
32647
32647
  case ToolbarToolName.remove:
32648
32648
  isToolInactive = this.isEdited || !selectionPresent;
32649
32649
  break;
32650
32650
  case ToolbarToolName.cancel:
32651
- isToolInactive = !(this.isEdited || this.editService.hasNewItem);
32651
+ isToolInactive = !(this.isEdited || isAddNewItem);
32652
32652
  break;
32653
32653
  }
32654
32654
  if (this.lastToolState !== isToolInactive) {
@@ -412,7 +412,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
412
412
  */
413
413
  hideHeader: boolean;
414
414
  /**
415
- * Specifies if the currently inactive toolbar tools will be visible. Applicable when the toolbar is configured using the <kendo-toolbar> component. By default, such tools are hidden.
415
+ * Specifies if the currently inactive toolbar tools will be visible. Applicable when the toolbar is configured using the `<kendo-toolbar>` component. By default, such tools are hidden.
416
416
  *
417
417
  * @default false
418
418
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-grid",
3
- "version": "19.1.0",
3
+ "version": "19.1.1-develop.2",
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",
@@ -26,7 +26,7 @@
26
26
  "package": {
27
27
  "productName": "Kendo UI for Angular",
28
28
  "productCode": "KENDOUIANGULAR",
29
- "publishDate": 1748538708,
29
+ "publishDate": 1749196787,
30
30
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
31
31
  }
32
32
  },
@@ -39,28 +39,28 @@
39
39
  "@progress/kendo-data-query": "^1.0.0",
40
40
  "@progress/kendo-drawing": "^1.21.0",
41
41
  "@progress/kendo-licensing": "^1.5.0",
42
- "@progress/kendo-angular-buttons": "19.1.0",
43
- "@progress/kendo-angular-common": "19.1.0",
44
- "@progress/kendo-angular-dateinputs": "19.1.0",
45
- "@progress/kendo-angular-layout": "19.1.0",
46
- "@progress/kendo-angular-navigation": "19.1.0",
47
- "@progress/kendo-angular-dropdowns": "19.1.0",
48
- "@progress/kendo-angular-excel-export": "19.1.0",
49
- "@progress/kendo-angular-icons": "19.1.0",
50
- "@progress/kendo-angular-inputs": "19.1.0",
51
- "@progress/kendo-angular-intl": "19.1.0",
52
- "@progress/kendo-angular-l10n": "19.1.0",
53
- "@progress/kendo-angular-label": "19.1.0",
54
- "@progress/kendo-angular-pager": "19.1.0",
55
- "@progress/kendo-angular-pdf-export": "19.1.0",
56
- "@progress/kendo-angular-popup": "19.1.0",
57
- "@progress/kendo-angular-toolbar": "19.1.0",
58
- "@progress/kendo-angular-utils": "19.1.0",
42
+ "@progress/kendo-angular-buttons": "19.1.1-develop.2",
43
+ "@progress/kendo-angular-common": "19.1.1-develop.2",
44
+ "@progress/kendo-angular-dateinputs": "19.1.1-develop.2",
45
+ "@progress/kendo-angular-layout": "19.1.1-develop.2",
46
+ "@progress/kendo-angular-navigation": "19.1.1-develop.2",
47
+ "@progress/kendo-angular-dropdowns": "19.1.1-develop.2",
48
+ "@progress/kendo-angular-excel-export": "19.1.1-develop.2",
49
+ "@progress/kendo-angular-icons": "19.1.1-develop.2",
50
+ "@progress/kendo-angular-inputs": "19.1.1-develop.2",
51
+ "@progress/kendo-angular-intl": "19.1.1-develop.2",
52
+ "@progress/kendo-angular-l10n": "19.1.1-develop.2",
53
+ "@progress/kendo-angular-label": "19.1.1-develop.2",
54
+ "@progress/kendo-angular-pager": "19.1.1-develop.2",
55
+ "@progress/kendo-angular-pdf-export": "19.1.1-develop.2",
56
+ "@progress/kendo-angular-popup": "19.1.1-develop.2",
57
+ "@progress/kendo-angular-toolbar": "19.1.1-develop.2",
58
+ "@progress/kendo-angular-utils": "19.1.1-develop.2",
59
59
  "rxjs": "^6.5.3 || ^7.0.0"
60
60
  },
61
61
  "dependencies": {
62
62
  "tslib": "^2.3.1",
63
- "@progress/kendo-angular-schematics": "19.1.0",
63
+ "@progress/kendo-angular-schematics": "19.1.1-develop.2",
64
64
  "@progress/kendo-common": "^1.0.1",
65
65
  "@progress/kendo-file-saver": "^1.0.0"
66
66
  },
@@ -4,14 +4,14 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
6
6
  // peer deps of the dropdowns
7
- '@progress/kendo-angular-treeview': '19.1.0',
8
- '@progress/kendo-angular-navigation': '19.1.0',
7
+ '@progress/kendo-angular-treeview': '19.1.1-develop.2',
8
+ '@progress/kendo-angular-navigation': '19.1.1-develop.2',
9
9
  // peer dependency of kendo-angular-inputs
10
- '@progress/kendo-angular-dialog': '19.1.0',
10
+ '@progress/kendo-angular-dialog': '19.1.1-develop.2',
11
11
  // peer dependency of kendo-angular-icons
12
12
  '@progress/kendo-svg-icons': '^4.0.0',
13
13
  // peer dependency of kendo-angular-layout
14
- '@progress/kendo-angular-progressbar': '19.1.0'
14
+ '@progress/kendo-angular-progressbar': '19.1.1-develop.2'
15
15
  } });
16
16
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
17
17
  }