@progress/kendo-angular-grid 23.2.0 → 23.2.1-develop.1

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.
@@ -11,7 +11,7 @@ import { ContextService } from './provider.service';
11
11
  import { AdaptiveGridService } from './adaptiveness.service';
12
12
  import * as i0 from "@angular/core";
13
13
  /**
14
- * Arguments for the `close` event of the filter and column-menu popup.
14
+ * Arguments for the `close` event of the filter menu, column menu, and filter toolbar tool popups.
15
15
  */
16
16
  export declare class PopupCloseEvent extends PreventableEvent {
17
17
  /**
@@ -24,8 +24,8 @@ export declare class PopupCloseEvent extends PreventableEvent {
24
24
  constructor(e: any);
25
25
  }
26
26
  /**
27
- * Provides popup management for filter and column menus.
28
- * Use this service to open and close popups for the Grid filter and column menus ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/filtering/filter-menu#filter-menu-with-popup)).
27
+ * Provides popup management for the Grid filter menu, column menu, and filter toolbar tool.
28
+ * Use this service to open and close popups for the Grid filter and column menus, and the filter toolbar tool ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/filtering/filter-menu#filter-menu-with-popup)).
29
29
  */
30
30
  export declare class SinglePopupService implements OnDestroy {
31
31
  private popupService;
@@ -34,7 +34,7 @@ export declare class SinglePopupService implements OnDestroy {
34
34
  private ctx;
35
35
  private adaptiveGridService;
36
36
  /**
37
- * Emits when the filter or column menu popup is about to close because the user clicked outside.
37
+ * Emits when the filter menu, column menu, or filter toolbar tool popup is about to close because the user clicked outside.
38
38
  * Use this event to prevent the popup from closing.
39
39
  */
40
40
  readonly onClose: Subject<PopupCloseEvent>;
@@ -8596,7 +8596,7 @@ const contains = (node, predicate) => {
8596
8596
  return false;
8597
8597
  };
8598
8598
  /**
8599
- * Arguments for the `close` event of the filter and column-menu popup.
8599
+ * Arguments for the `close` event of the filter menu, column menu, and filter toolbar tool popups.
8600
8600
  */
8601
8601
  class PopupCloseEvent extends PreventableEvent {
8602
8602
  /**
@@ -8613,8 +8613,8 @@ class PopupCloseEvent extends PreventableEvent {
8613
8613
  }
8614
8614
  const DEFAULT_POPUP_CLASS = 'k-grid-filter-popup';
8615
8615
  /**
8616
- * Provides popup management for filter and column menus.
8617
- * Use this service to open and close popups for the Grid filter and column menus ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/filtering/filter-menu#filter-menu-with-popup)).
8616
+ * Provides popup management for the Grid filter menu, column menu, and filter toolbar tool.
8617
+ * Use this service to open and close popups for the Grid filter and column menus, and the filter toolbar tool ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/filtering/filter-menu#filter-menu-with-popup)).
8618
8618
  */
8619
8619
  class SinglePopupService {
8620
8620
  popupService;
@@ -8623,7 +8623,7 @@ class SinglePopupService {
8623
8623
  ctx;
8624
8624
  adaptiveGridService;
8625
8625
  /**
8626
- * Emits when the filter or column menu popup is about to close because the user clicked outside.
8626
+ * Emits when the filter menu, column menu, or filter toolbar tool popup is about to close because the user clicked outside.
8627
8627
  * Use this event to prevent the popup from closing.
8628
8628
  */
8629
8629
  onClose = new Subject();
@@ -24203,7 +24203,7 @@ const packageMetadata = {
24203
24203
  productCode: 'KENDOUIANGULAR',
24204
24204
  productCodes: ['KENDOUIANGULAR'],
24205
24205
  publishDate: 0,
24206
- version: '23.2.0',
24206
+ version: '23.2.1-develop.1',
24207
24207
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
24208
24208
  };
24209
24209
 
@@ -39605,7 +39605,6 @@ class FilterToolWrapperComponent {
39605
39605
  { provide: ContextService, useValue: this._ctx },
39606
39606
  { provide: ColumnInfoService, useValue: this.columnInfoService },
39607
39607
  AdaptiveGridService,
39608
- SinglePopupService,
39609
39608
  ScrollSyncService
39610
39609
  ],
39611
39610
  parent: this.injector
@@ -39693,6 +39692,7 @@ class FilterCommandToolbarDirective {
39693
39692
  ngZone;
39694
39693
  renderer;
39695
39694
  adaptiveGridService;
39695
+ singlePopupService;
39696
39696
  popupRef;
39697
39697
  nextId = incrementingId$1++;
39698
39698
  toolSubs = new Subscription();
@@ -39705,7 +39705,7 @@ class FilterCommandToolbarDirective {
39705
39705
  isFilterApplied(filter) {
39706
39706
  return isPresent$1(filter) && filter.filters?.length > 0;
39707
39707
  }
39708
- constructor(host, popupService, ctx, filterService, columnInfoService, ngZone, renderer, adaptiveGridService) {
39708
+ constructor(host, popupService, ctx, filterService, columnInfoService, ngZone, renderer, adaptiveGridService, singlePopupService) {
39709
39709
  this.host = host;
39710
39710
  this.popupService = popupService;
39711
39711
  this.ctx = ctx;
@@ -39714,6 +39714,7 @@ class FilterCommandToolbarDirective {
39714
39714
  this.ngZone = ngZone;
39715
39715
  this.renderer = renderer;
39716
39716
  this.adaptiveGridService = adaptiveGridService;
39717
+ this.singlePopupService = singlePopupService;
39717
39718
  }
39718
39719
  ngOnInit() {
39719
39720
  this.toolSubs = this.host.click.subscribe(e => this.onClick(e));
@@ -39799,8 +39800,13 @@ class FilterCommandToolbarDirective {
39799
39800
  }
39800
39801
  this.removeClickListener = this.renderer.listen('document', 'click', (e) => {
39801
39802
  if (this.popupRef && !closest$1(e.target, node => node === this.popupRef.popupElement || node === this.buttonElement)) {
39803
+ // run inside zone to allow custom filters to prevent closing
39802
39804
  this.ngZone.run(() => {
39803
- this.closePopup();
39805
+ const args = new PopupCloseEvent(e);
39806
+ this.singlePopupService.onClose.next(args);
39807
+ if (!args.isDefaultPrevented()) {
39808
+ this.closePopup();
39809
+ }
39804
39810
  });
39805
39811
  }
39806
39812
  });
@@ -39852,7 +39858,7 @@ class FilterCommandToolbarDirective {
39852
39858
  get buttonElement() {
39853
39859
  return this.host.getButton();
39854
39860
  }
39855
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FilterCommandToolbarDirective, deps: [{ token: i57.ToolBarButtonComponent }, { token: i2.PopupService }, { token: ContextService }, { token: FilterService }, { token: ColumnInfoService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: AdaptiveGridService }], target: i0.ɵɵFactoryTarget.Directive });
39861
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FilterCommandToolbarDirective, deps: [{ token: i57.ToolBarButtonComponent }, { token: i2.PopupService }, { token: ContextService }, { token: FilterService }, { token: ColumnInfoService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: AdaptiveGridService }, { token: SinglePopupService }], target: i0.ɵɵFactoryTarget.Directive });
39856
39862
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: FilterCommandToolbarDirective, isStandalone: true, selector: "[kendoGridFilterTool]", ngImport: i0 });
39857
39863
  }
39858
39864
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: FilterCommandToolbarDirective, decorators: [{
@@ -39861,7 +39867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
39861
39867
  selector: '[kendoGridFilterTool]',
39862
39868
  standalone: true
39863
39869
  }]
39864
- }], ctorParameters: () => [{ type: i57.ToolBarButtonComponent }, { type: i2.PopupService }, { type: ContextService }, { type: FilterService }, { type: ColumnInfoService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: AdaptiveGridService }] });
39870
+ }], ctorParameters: () => [{ type: i57.ToolBarButtonComponent }, { type: i2.PopupService }, { type: ContextService }, { type: FilterService }, { type: ColumnInfoService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: AdaptiveGridService }, { type: SinglePopupService }] });
39865
39871
 
39866
39872
  /**
39867
39873
  * Represents the `edit` command in the Grid. Apply this directive to any `kendo-toolbar-button`
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1772197464,
11
- "version": "23.2.0",
10
+ "publishDate": 1772207662,
11
+ "version": "23.2.1-develop.1",
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": "23.2.0",
3
+ "version": "23.2.1-develop.1",
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": 1772197464,
76
+ "publishDate": 1772207662,
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.7.3",
87
87
  "@progress/kendo-drawing": "^1.24.0",
88
88
  "@progress/kendo-licensing": "^1.10.0",
89
- "@progress/kendo-angular-buttons": "23.2.0",
90
- "@progress/kendo-angular-common": "23.2.0",
91
- "@progress/kendo-angular-dateinputs": "23.2.0",
92
- "@progress/kendo-angular-layout": "23.2.0",
93
- "@progress/kendo-angular-navigation": "23.2.0",
94
- "@progress/kendo-angular-dropdowns": "23.2.0",
95
- "@progress/kendo-angular-excel-export": "23.2.0",
96
- "@progress/kendo-angular-icons": "23.2.0",
97
- "@progress/kendo-angular-indicators": "23.2.0",
98
- "@progress/kendo-angular-inputs": "23.2.0",
99
- "@progress/kendo-angular-conversational-ui": "23.2.0",
100
- "@progress/kendo-angular-intl": "23.2.0",
101
- "@progress/kendo-angular-l10n": "23.2.0",
102
- "@progress/kendo-angular-label": "23.2.0",
103
- "@progress/kendo-angular-menu": "23.2.0",
104
- "@progress/kendo-angular-pager": "23.2.0",
105
- "@progress/kendo-angular-pdf-export": "23.2.0",
106
- "@progress/kendo-angular-popup": "23.2.0",
107
- "@progress/kendo-angular-toolbar": "23.2.0",
108
- "@progress/kendo-angular-upload": "23.2.0",
109
- "@progress/kendo-angular-utils": "23.2.0",
89
+ "@progress/kendo-angular-buttons": "23.2.1-develop.1",
90
+ "@progress/kendo-angular-common": "23.2.1-develop.1",
91
+ "@progress/kendo-angular-dateinputs": "23.2.1-develop.1",
92
+ "@progress/kendo-angular-layout": "23.2.1-develop.1",
93
+ "@progress/kendo-angular-navigation": "23.2.1-develop.1",
94
+ "@progress/kendo-angular-dropdowns": "23.2.1-develop.1",
95
+ "@progress/kendo-angular-excel-export": "23.2.1-develop.1",
96
+ "@progress/kendo-angular-icons": "23.2.1-develop.1",
97
+ "@progress/kendo-angular-indicators": "23.2.1-develop.1",
98
+ "@progress/kendo-angular-inputs": "23.2.1-develop.1",
99
+ "@progress/kendo-angular-conversational-ui": "23.2.1-develop.1",
100
+ "@progress/kendo-angular-intl": "23.2.1-develop.1",
101
+ "@progress/kendo-angular-l10n": "23.2.1-develop.1",
102
+ "@progress/kendo-angular-label": "23.2.1-develop.1",
103
+ "@progress/kendo-angular-menu": "23.2.1-develop.1",
104
+ "@progress/kendo-angular-pager": "23.2.1-develop.1",
105
+ "@progress/kendo-angular-pdf-export": "23.2.1-develop.1",
106
+ "@progress/kendo-angular-popup": "23.2.1-develop.1",
107
+ "@progress/kendo-angular-toolbar": "23.2.1-develop.1",
108
+ "@progress/kendo-angular-upload": "23.2.1-develop.1",
109
+ "@progress/kendo-angular-utils": "23.2.1-develop.1",
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": "23.2.0",
114
+ "@progress/kendo-angular-schematics": "23.2.1-develop.1",
115
115
  "@progress/kendo-common": "^1.0.1",
116
116
  "@progress/kendo-file-saver": "^1.0.0",
117
117
  "@progress/kendo-csv": "^1.0.0"
@@ -10,6 +10,7 @@ import { ColumnInfoService } from '../../../common/column-info.service';
10
10
  import { FilterService } from '../../../filtering/filter.service';
11
11
  import { AdaptiveGridService } from '../../../common/adaptiveness.service';
12
12
  import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
13
+ import { SinglePopupService } from '../../../common/single-popup.service';
13
14
  import * as i0 from "@angular/core";
14
15
  /**
15
16
  * Represents the toolbar tool for filtering columns of the Grid.
@@ -37,6 +38,7 @@ export declare class FilterCommandToolbarDirective implements AfterViewInit, OnD
37
38
  private ngZone;
38
39
  private renderer;
39
40
  private adaptiveGridService;
41
+ private singlePopupService;
40
42
  private popupRef;
41
43
  private nextId;
42
44
  private toolSubs;
@@ -47,7 +49,7 @@ export declare class FilterCommandToolbarDirective implements AfterViewInit, OnD
47
49
  * @hidden
48
50
  */
49
51
  isFilterApplied(filter: CompositeFilterDescriptor): boolean;
50
- constructor(host: ToolBarButtonComponent, popupService: PopupService, ctx: ContextService, filterService: FilterService, columnInfoService: ColumnInfoService, ngZone: NgZone, renderer: Renderer2, adaptiveGridService: AdaptiveGridService);
52
+ constructor(host: ToolBarButtonComponent, popupService: PopupService, ctx: ContextService, filterService: FilterService, columnInfoService: ColumnInfoService, ngZone: NgZone, renderer: Renderer2, adaptiveGridService: AdaptiveGridService, singlePopupService: SinglePopupService);
51
53
  ngOnInit(): void;
52
54
  ngAfterViewInit(): void;
53
55
  ngOnDestroy(): void;
@@ -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': '23.2.0',
13
- '@progress/kendo-angular-navigation': '23.2.0',
12
+ '@progress/kendo-angular-treeview': '23.2.1-develop.1',
13
+ '@progress/kendo-angular-navigation': '23.2.1-develop.1',
14
14
  // peer dependency of kendo-angular-inputs
15
- '@progress/kendo-angular-dialog': '23.2.0',
15
+ '@progress/kendo-angular-dialog': '23.2.1-develop.1',
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': '23.2.0',
19
+ '@progress/kendo-angular-progressbar': '23.2.1-develop.1',
20
20
  // transitive peer dependencies from toolbar
21
- '@progress/kendo-angular-indicators': '23.2.0',
21
+ '@progress/kendo-angular-indicators': '23.2.1-develop.1',
22
22
  // transitive peer dependencies from conversational-ui
23
- '@progress/kendo-angular-menu': '23.2.0',
24
- '@progress/kendo-angular-upload': '23.2.0'
23
+ '@progress/kendo-angular-menu': '23.2.1-develop.1',
24
+ '@progress/kendo-angular-upload': '23.2.1-develop.1'
25
25
  } });
26
26
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
27
27
  }