@progress/kendo-angular-grid 19.3.0-develop.2 → 19.3.0-develop.21

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.
Files changed (62) hide show
  1. package/aggregates/status-bar.component.d.ts +1 -0
  2. package/common/provider.service.d.ts +2 -0
  3. package/data/data-mapping.service.d.ts +3 -1
  4. package/directives.d.ts +6 -4
  5. package/esm2022/adaptiveness/adaptive-renderer.component.mjs +1 -2
  6. package/esm2022/aggregates/status-bar.component.mjs +5 -1
  7. package/esm2022/column-menu/column-list.component.mjs +10 -10
  8. package/esm2022/column-menu/column-menu.component.mjs +1 -1
  9. package/esm2022/common/provider.service.mjs +1 -0
  10. package/esm2022/common/toolbar-tool-base.directive.mjs +3 -2
  11. package/esm2022/data/data-mapping.service.mjs +14 -3
  12. package/esm2022/directives.mjs +5 -0
  13. package/esm2022/editing/form/form-formfield.component.mjs +2 -2
  14. package/esm2022/editing-directives/in-cell-editing.directive.mjs +1 -0
  15. package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -1
  16. package/esm2022/filtering/cell/date-filter-cell.component.mjs +1 -1
  17. package/esm2022/filtering/cell/filter-cell-operators.component.mjs +1 -2
  18. package/esm2022/filtering/cell/numeric-filter-cell.component.mjs +1 -1
  19. package/esm2022/filtering/cell/string-filter-cell.component.mjs +1 -1
  20. package/esm2022/filtering/filter-row.component.mjs +1 -1
  21. package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +1 -2
  22. package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +1 -1
  23. package/esm2022/filtering/menu/date-filter-menu.component.mjs +1 -1
  24. package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +1 -1
  25. package/esm2022/filtering/menu/filter-menu.component.mjs +1 -1
  26. package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +1 -1
  27. package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +1 -1
  28. package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +1 -1
  29. package/esm2022/filtering/menu/string-filter-menu.component.mjs +1 -1
  30. package/esm2022/grid.component.mjs +79 -5
  31. package/esm2022/grid.module.mjs +102 -100
  32. package/esm2022/grouping/group-panel.component.mjs +7 -3
  33. package/esm2022/highlight/highlight-item.mjs +5 -0
  34. package/esm2022/highlight/highlight.directive.mjs +132 -0
  35. package/esm2022/index.mjs +3 -0
  36. package/esm2022/localization/messages.mjs +55 -1
  37. package/esm2022/navigation/toolbar-tool-name.mjs +2 -1
  38. package/esm2022/package-metadata.mjs +2 -2
  39. package/esm2022/rendering/list.component.mjs +1 -1
  40. package/esm2022/rendering/table-body.component.mjs +8 -4
  41. package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +286 -0
  42. package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +269 -0
  43. package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +47 -0
  44. package/esm2022/selection/pair-set.mjs +87 -10
  45. package/esm2022/utils.mjs +0 -4
  46. package/fesm2022/progress-kendo-angular-grid.mjs +1003 -86
  47. package/grid.component.d.ts +8 -1
  48. package/grid.module.d.ts +101 -99
  49. package/highlight/highlight-item.d.ts +17 -0
  50. package/highlight/highlight.directive.d.ts +56 -0
  51. package/index.d.ts +4 -0
  52. package/localization/messages.d.ts +37 -1
  53. package/navigation/toolbar-tool-name.d.ts +1 -0
  54. package/package.json +22 -21
  55. package/rendering/cell.component.d.ts +2 -2
  56. package/rendering/table-body.component.d.ts +1 -0
  57. package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +49 -0
  58. package/rendering/toolbar/tools/ai-assistant/ai-tool.directive.d.ts +119 -0
  59. package/rendering/toolbar/tools/ai-assistant/utils.d.ts +110 -0
  60. package/schematics/ngAdd/index.js +4 -4
  61. package/selection/pair-set.d.ts +36 -8
  62. package/utils.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-grid",
3
- "version": "19.3.0-develop.2",
3
+ "version": "19.3.0-develop.21",
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": 1751964779,
29
+ "publishDate": 1754395862,
30
30
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
31
31
  }
32
32
  },
@@ -38,29 +38,30 @@
38
38
  "@angular/platform-browser": "16 - 20",
39
39
  "@progress/kendo-data-query": "^1.0.0",
40
40
  "@progress/kendo-drawing": "^1.21.0",
41
- "@progress/kendo-licensing": "^1.5.0",
42
- "@progress/kendo-angular-buttons": "19.3.0-develop.2",
43
- "@progress/kendo-angular-common": "19.3.0-develop.2",
44
- "@progress/kendo-angular-dateinputs": "19.3.0-develop.2",
45
- "@progress/kendo-angular-layout": "19.3.0-develop.2",
46
- "@progress/kendo-angular-navigation": "19.3.0-develop.2",
47
- "@progress/kendo-angular-dropdowns": "19.3.0-develop.2",
48
- "@progress/kendo-angular-excel-export": "19.3.0-develop.2",
49
- "@progress/kendo-angular-icons": "19.3.0-develop.2",
50
- "@progress/kendo-angular-inputs": "19.3.0-develop.2",
51
- "@progress/kendo-angular-intl": "19.3.0-develop.2",
52
- "@progress/kendo-angular-l10n": "19.3.0-develop.2",
53
- "@progress/kendo-angular-label": "19.3.0-develop.2",
54
- "@progress/kendo-angular-pager": "19.3.0-develop.2",
55
- "@progress/kendo-angular-pdf-export": "19.3.0-develop.2",
56
- "@progress/kendo-angular-popup": "19.3.0-develop.2",
57
- "@progress/kendo-angular-toolbar": "19.3.0-develop.2",
58
- "@progress/kendo-angular-utils": "19.3.0-develop.2",
41
+ "@progress/kendo-licensing": "^1.7.0",
42
+ "@progress/kendo-angular-buttons": "19.3.0-develop.21",
43
+ "@progress/kendo-angular-common": "19.3.0-develop.21",
44
+ "@progress/kendo-angular-dateinputs": "19.3.0-develop.21",
45
+ "@progress/kendo-angular-layout": "19.3.0-develop.21",
46
+ "@progress/kendo-angular-navigation": "19.3.0-develop.21",
47
+ "@progress/kendo-angular-dropdowns": "19.3.0-develop.21",
48
+ "@progress/kendo-angular-excel-export": "19.3.0-develop.21",
49
+ "@progress/kendo-angular-icons": "19.3.0-develop.21",
50
+ "@progress/kendo-angular-inputs": "19.3.0-develop.21",
51
+ "@progress/kendo-angular-conversational-ui": "19.3.0-develop.21",
52
+ "@progress/kendo-angular-intl": "19.3.0-develop.21",
53
+ "@progress/kendo-angular-l10n": "19.3.0-develop.21",
54
+ "@progress/kendo-angular-label": "19.3.0-develop.21",
55
+ "@progress/kendo-angular-pager": "19.3.0-develop.21",
56
+ "@progress/kendo-angular-pdf-export": "19.3.0-develop.21",
57
+ "@progress/kendo-angular-popup": "19.3.0-develop.21",
58
+ "@progress/kendo-angular-toolbar": "19.3.0-develop.21",
59
+ "@progress/kendo-angular-utils": "19.3.0-develop.21",
59
60
  "rxjs": "^6.5.3 || ^7.0.0"
60
61
  },
61
62
  "dependencies": {
62
63
  "tslib": "^2.3.1",
63
- "@progress/kendo-angular-schematics": "19.3.0-develop.2",
64
+ "@progress/kendo-angular-schematics": "19.3.0-develop.21",
64
65
  "@progress/kendo-common": "^1.0.1",
65
66
  "@progress/kendo-file-saver": "^1.0.0"
66
67
  },
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { DoCheck, TemplateRef } from '@angular/core';
5
+ import { DoCheck, TemplateRef, OnChanges, AfterContentChecked } from '@angular/core';
6
6
  import { EditService } from '../editing/edit.service';
7
7
  import { ColumnComponent } from '../columns/column.component';
8
8
  import { FormGroup } from '@angular/forms';
@@ -14,7 +14,7 @@ import * as i0 from "@angular/core";
14
14
  /**
15
15
  * @hidden
16
16
  */
17
- export declare class CellComponent implements DoCheck {
17
+ export declare class CellComponent implements DoCheck, OnChanges, AfterContentChecked {
18
18
  private editService;
19
19
  private idService;
20
20
  private ctx;
@@ -52,6 +52,7 @@ export declare class TableBodyComponent implements OnInit, OnDestroy, OnChanges,
52
52
  cells?: any[];
53
53
  isExpanded?: boolean;
54
54
  showDataItem?: boolean;
55
+ isHighlighted?: boolean;
55
56
  }>;
56
57
  skip: number;
57
58
  selectable: SelectableSettings | boolean;
@@ -0,0 +1,49 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { OnDestroy, AfterViewInit } from '@angular/core';
6
+ import { AIPromptComponent, PromptOutput, PromptRequestEvent } from '@progress/kendo-angular-conversational-ui';
7
+ import { HttpClient } from '@angular/common/http';
8
+ import { ContextService } from './../../../../common/provider.service';
9
+ import { ColumnInfoService } from './../../../../common/column-info.service';
10
+ import { AIAssistantToolbarDirective } from './ai-tool.directive';
11
+ import { GridToolbarAIPromptSettings, GridToolbarAIRequestOptions } from './utils';
12
+ import * as i0 from "@angular/core";
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare class AiAssistantComponent implements OnDestroy, AfterViewInit {
17
+ private http;
18
+ private ctx;
19
+ private columnInfoService;
20
+ aiPrompt: AIPromptComponent;
21
+ activeView: number;
22
+ promptOutputs: Array<PromptOutput>;
23
+ requestUrl: string;
24
+ requestOptions: GridToolbarAIRequestOptions;
25
+ aiPromptSettings: GridToolbarAIPromptSettings;
26
+ aiToolDirective: AIAssistantToolbarDirective;
27
+ streaming: boolean;
28
+ disabledGenerateButton: boolean;
29
+ private lastMessage;
30
+ private requestData;
31
+ private currentRequestSubscription;
32
+ private loadingOutput;
33
+ private columns;
34
+ private idCounter;
35
+ constructor(http: HttpClient, ctx: ContextService, columnInfoService: ColumnInfoService);
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ message(message: string): string;
39
+ cancelRequest(): void;
40
+ onPromptRequest(ev: PromptRequestEvent): void;
41
+ private sendPromptRequest;
42
+ private processResponse;
43
+ private handleError;
44
+ private unsubscribeCurrentRequest;
45
+ private processArrayResponse;
46
+ private processFilterResponse;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiAssistantComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<AiAssistantComponent, "ng-component", never, {}, {}, never, never, true, never>;
49
+ }
@@ -0,0 +1,119 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { NgZone, AfterViewInit, OnInit, OnDestroy, ChangeDetectorRef, EventEmitter } from '@angular/core';
6
+ import { RefreshService, ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
+ import { SVGIcon } from '@progress/kendo-svg-icons';
8
+ import { ContextService } from '../../../../common/provider.service';
9
+ import { ToolbarToolBase } from '../../../../common/toolbar-tool-base.directive';
10
+ import { WindowService } from '@progress/kendo-angular-dialog';
11
+ import { HttpErrorResponse, HttpResponse } from '@angular/common/http';
12
+ import { GridToolbarAIOpenEvent, GridToolbarAIPromptSettings, GridToolbarAIWindowSettings, GridToolbarAIRequestData, GridToolbarAIRequestResponse, GridToolbarAIRequestOptions } from './utils';
13
+ import * as i0 from "@angular/core";
14
+ /**
15
+ * Represents an AI Assistant tool of the Grid.
16
+ * Use this directive on any `kendo-toolbar-button` inside a ToolbarComponent in the Grid.
17
+ *
18
+ * @example
19
+ * ```html-no-run
20
+ * <kendo-grid>
21
+ * <kendo-toolbar>
22
+ * <kendo-toolbar-button kendoGridAIAssistantTool></kendo-toolbar-button>
23
+ * </kendo-toolbar>
24
+ * </kendo-grid>
25
+ * ```
26
+ * @remarks
27
+ * Applied to: {@link ToolBarButtonComponent}.
28
+ */
29
+ export declare class AIAssistantToolbarDirective extends ToolbarToolBase implements OnInit, AfterViewInit, OnDestroy {
30
+ private windowService;
31
+ host: ToolBarButtonComponent;
32
+ ctx: ContextService;
33
+ zone: NgZone;
34
+ private refresh;
35
+ /**
36
+ * The URL to which the AI Assistant tool sends the AI request.
37
+ * - When you set this property, the AI Assistant tool sends and handles an HTTP request to the provided `requestUrl`. You can handle the `promptRequest` event to modify the request options before the tool sends it.
38
+ * - When you do not set this property, the AI Assistant tool does not send an HTTP request. You should handle the `promptRequest` event to send and handle a custom HTTP request.
39
+ */
40
+ requestUrl?: string;
41
+ /**
42
+ * Configures the request options that the AI Assistant tool sends with the AI request.
43
+ *
44
+ * @default
45
+ * ```typescript
46
+ * {
47
+ * headers: new HttpHeaders({ 'Content-Type': 'application/json' }),
48
+ * role: 'user',
49
+ * method: 'POST',
50
+ * responseType: 'json',
51
+ * withCredentials: false
52
+ * }
53
+ * ```
54
+ */
55
+ requestOptions?: GridToolbarAIRequestOptions;
56
+ /**
57
+ * Configures the settings for the AI Assistant Window.
58
+ */
59
+ aiWindowSettings: GridToolbarAIWindowSettings;
60
+ /**
61
+ * Configures the settings for the AI prompt component that the AI Assistant Window component uses.
62
+ */
63
+ aiPromptSettings: GridToolbarAIPromptSettings;
64
+ /**
65
+ * Emits an event before the AI Assistant tool sends the AI request.
66
+ * - When you provide a `requestUrl`, you can handle the event to modify the request options.
67
+ * - When you do not provide a `requestUrl`, you can handle the event to perform an entirely custom request.
68
+ */
69
+ promptRequest: EventEmitter<{
70
+ requestData: GridToolbarAIRequestData;
71
+ isRetry: boolean;
72
+ }>;
73
+ /**
74
+ * Emits an event when the user clicks the cancel button.
75
+ */
76
+ cancelRequest: EventEmitter<undefined>;
77
+ /**
78
+ * Emits an event when the AI Assistant tool completes the AI request successfully.
79
+ * The event contains the response from the AI service.
80
+ */
81
+ responseSuccess: EventEmitter<HttpResponse<GridToolbarAIRequestResponse>>;
82
+ /**
83
+ * Emits an event when the AI Assistant tool completes the AI request with an error.
84
+ * The event contains the response from the AI service.
85
+ */
86
+ responseError: EventEmitter<HttpErrorResponse>;
87
+ /**
88
+ * Emits an event when the AI Assistant tool closes.
89
+ */
90
+ close: EventEmitter<undefined>;
91
+ /**
92
+ * Emits an event when the AI Assistant tool opens.
93
+ * The event contains the window instance and the AI prompt instance.
94
+ */
95
+ open: EventEmitter<GridToolbarAIOpenEvent>;
96
+ tableWizardIcon: SVGIcon;
97
+ private windowRef;
98
+ private subs;
99
+ private actionSheetCloseSub;
100
+ private emitOpenClose;
101
+ private defaultAiPromptSettings;
102
+ constructor(windowService: WindowService, host: ToolBarButtonComponent, ctx: ContextService, zone: NgZone, refresh: RefreshService, cdr: ChangeDetectorRef);
103
+ ngOnInit(): void;
104
+ ngAfterViewInit(): void;
105
+ ngOnDestroy(): void;
106
+ /**
107
+ * @hidden
108
+ */
109
+ onClick(): void;
110
+ /**
111
+ * Toggles the AI Assistant window.
112
+ */
113
+ toggleWindow(): void;
114
+ private openWindow;
115
+ private closeWindow;
116
+ private get buttonElement();
117
+ static ɵfac: i0.ɵɵFactoryDeclaration<AIAssistantToolbarDirective, never>;
118
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AIAssistantToolbarDirective, "[kendoGridAIAssistantTool]", never, { "requestUrl": { "alias": "requestUrl"; "required": false; }; "requestOptions": { "alias": "requestOptions"; "required": false; }; "aiWindowSettings": { "alias": "aiWindowSettings"; "required": false; }; "aiPromptSettings": { "alias": "aiPromptSettings"; "required": false; }; }, { "promptRequest": "promptRequest"; "cancelRequest": "cancelRequest"; "responseSuccess": "responseSuccess"; "responseError": "responseError"; "close": "close"; "open": "open"; }, never, never, true, never>;
119
+ }
@@ -0,0 +1,110 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { HttpHeaders } from "@angular/common/http";
6
+ import { AIPromptComponent, AIPromptSettings } from "@progress/kendo-angular-conversational-ui";
7
+ import { WindowComponent, WindowSettings } from "@progress/kendo-angular-dialog";
8
+ import { CompositeFilterDescriptor, FilterDescriptor, GroupDescriptor, SortDescriptor } from "@progress/kendo-data-query";
9
+ /**
10
+ * Interface representing all configuration options of the Ai Assistant Window.
11
+ */
12
+ export interface GridToolbarAIWindowSettings extends Omit<WindowSettings, 'content'> {
13
+ }
14
+ /**
15
+ * Interface representing all configuration options of the Ai Assistant Prompt.
16
+ */
17
+ export interface GridToolbarAIPromptSettings extends Omit<AIPromptSettings, 'promptCommands'> {
18
+ }
19
+ /**
20
+ * Represents the event data when the AI Assistant window is opened.
21
+ */
22
+ export interface GridToolbarAIOpenEvent {
23
+ aiWindow: WindowComponent;
24
+ aiPrompt: AIPromptComponent;
25
+ }
26
+ /**
27
+ * Represents the data sent in the AI request from the Grid Toolbar AI Assistant.
28
+ */
29
+ export interface GridToolbarAIRequestData {
30
+ columns: Array<{
31
+ field: string;
32
+ title: string;
33
+ }>;
34
+ promptMessage: string;
35
+ url?: string;
36
+ requestOptions: {
37
+ role?: string;
38
+ headers?: HttpHeaders;
39
+ method?: string;
40
+ withCredentials?: boolean;
41
+ body?: any;
42
+ responseType?: 'json' | 'arraybuffer' | 'blob' | 'text';
43
+ [key: string]: any;
44
+ };
45
+ }
46
+ /**
47
+ * Represents the response from the AI request in the Grid Toolbar AI Assistant.
48
+ */
49
+ export interface GridToolbarAIRequestResponse {
50
+ messages: string[];
51
+ sort?: SortDescriptor[];
52
+ filter?: CompositeFilterDescriptor;
53
+ group?: GroupDescriptor[];
54
+ highlight?: {
55
+ cells: {
56
+ [key: string]: boolean;
57
+ };
58
+ filters: FilterDescriptor[];
59
+ logic: 'and' | 'or';
60
+ }[];
61
+ }
62
+ /**
63
+ * Configuration options for the HTTP request.
64
+ */
65
+ export interface GridToolbarAIRequestOptions {
66
+ /**
67
+ * HTTP headers to include with the request.
68
+ */
69
+ headers?: HttpHeaders;
70
+ /**
71
+ * The role of the user making the request, e.g., 'user', 'assistant'.
72
+ * @default 'user'
73
+ */
74
+ role?: string;
75
+ /**
76
+ * HTTP method to use for the request.
77
+ * @default 'POST'
78
+ */
79
+ method?: string;
80
+ /**
81
+ * Whether to include credentials (cookies, authorization headers) with the request.
82
+ * @default false
83
+ */
84
+ withCredentials?: boolean;
85
+ /**
86
+ * The expected response type.
87
+ * @default 'json'
88
+ */
89
+ responseType?: 'json' | 'arraybuffer' | 'blob' | 'text';
90
+ /**
91
+ * The body of the request.
92
+ */
93
+ body?: any;
94
+ /**
95
+ * Additional custom options that will be spread into the request configuration.
96
+ */
97
+ [key: string]: any;
98
+ }
99
+ /**
100
+ * @hidden
101
+ */
102
+ export declare const DEFAULT_AI_REQUEST_OPTIONS: GridToolbarAIRequestOptions;
103
+ /**
104
+ * @hidden
105
+ */
106
+ export declare const convertDateStringsInFilter: (filter: any, columns: any[]) => any;
107
+ /**
108
+ * @hidden
109
+ */
110
+ export declare const isDateField: (fieldName: string, columns: any[]) => boolean;
@@ -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.3.0-develop.2',
8
- '@progress/kendo-angular-navigation': '19.3.0-develop.2',
7
+ '@progress/kendo-angular-treeview': '19.3.0-develop.21',
8
+ '@progress/kendo-angular-navigation': '19.3.0-develop.21',
9
9
  // peer dependency of kendo-angular-inputs
10
- '@progress/kendo-angular-dialog': '19.3.0-develop.2',
10
+ '@progress/kendo-angular-dialog': '19.3.0-develop.21',
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.3.0-develop.2'
14
+ '@progress/kendo-angular-progressbar': '19.3.0-develop.21'
15
15
  } });
16
16
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
17
17
  }
@@ -5,46 +5,74 @@
5
5
  /**
6
6
  * @hidden
7
7
  *
8
- * Quick look-up structure for combinations of keys.
9
- * Similar to the native JS Set, however, working with a couple of keys instead of with a single key.
8
+ * Quick look-up structure for combinations of keys or single keys.
9
+ * Similar to the native JS Set, however, working with single keys or a couple of keys.
10
10
  * Supports both primitive keys and object keys (compared by reference).
11
11
  */
12
12
  export declare class PairSet {
13
13
  /**
14
- * Gets the total number of X/Y key pairs.
14
+ * Symbol used internally to represent "no Y key" when storing single X keys.
15
+ */
16
+ private static readonly SINGLE_KEY_SYMBOL;
17
+ /**
18
+ * Gets the total number of key entries (both single keys and key pairs).
15
19
  */
16
20
  get size(): number;
17
21
  /**
18
22
  * Holds a set of Y keys for each defined X key.
19
23
  * Each X key creates a map which holds a set of Y keys.
24
+ * For single keys, the Y value is the SINGLE_KEY_SYMBOL.
20
25
  *
21
- * Map { 1 => Set { 1, 2, 3 } } // pairs: [1, 1], [1, 2], [1, 3]
26
+ * Map { 'foo' => Set { Symbol(SINGLE_KEY) } } // single key: {x: 'foo'}
27
+ * Map { 'foo2' => Set { 'bar', 'baz' } } // pairs: {x: 'foo2', y: 'bar'}, {x: 'foo2', y: 'baz'}
22
28
  */
23
29
  private keysX;
24
30
  /**
25
- * Count the each added or deleted key manually to avoid iterating over all items when calling `this.size`.
31
+ * Count each added or deleted key manually to avoid iterating over all items when calling `this.size`.
26
32
  */
27
33
  private totalKeysCount;
28
34
  constructor(items?: any[], keyXField?: string, keyYField?: string);
35
+ /**
36
+ * Adds a single key entry.
37
+ */
38
+ addSingle(keyX: any): void;
29
39
  /**
30
40
  * Adds a couple of items identified as a combination.
31
41
  */
32
42
  add(keyX: any, keyY: any): void;
33
43
  /**
34
- * Adds a combination of a couple of items identified together.
44
+ * Deletes a single key entry.
45
+ */
46
+ deleteSingle(keyX: any): void;
47
+ /**
48
+ * Deletes a combination of a couple of items identified together.
35
49
  */
36
50
  delete(keyX: any, keyY: any): void;
51
+ /**
52
+ * Checks whether a single key is stored.
53
+ */
54
+ hasSingle(keyX: any): boolean;
37
55
  /**
38
56
  * Checks whether the defined combination is stored.
39
57
  */
40
58
  has(keyX: any, keyY: any): boolean;
41
59
  /**
42
- * Clears all key combinations.
60
+ * Checks whether any entry exists for the given X key (single or paired).
61
+ */
62
+ hasX(keyX: any): boolean;
63
+ /**
64
+ * Gets all Y keys for a given X key, excluding single key entries.
65
+ */
66
+ getYKeys(keyX: any): any[];
67
+ /**
68
+ * Clears all key combinations and single keys.
43
69
  */
44
70
  clear(): void;
45
71
  /**
46
72
  * Converts the persisted data structure to an array of objects,
47
73
  * using the provided field names for the object props.
74
+ * Single keys will only have the keyXField property.
75
+ * Pair keys will have both keyXField and keyYField properties.
48
76
  */
49
- toArray(keyXField: string, keyYField: string): any[];
77
+ toArray(keyXField: string, keyYField?: string): any[];
50
78
  }
package/utils.d.ts CHANGED
@@ -83,10 +83,6 @@ export declare const cancelAnimationFrame: any;
83
83
  * @hidden
84
84
  */
85
85
  export declare const nodesToArray: (nodes: NodeList) => HTMLElement[];
86
- /**
87
- * @hidden
88
- */
89
- export declare const replaceMessagePlaceholder: (message: string, name: string, value: string) => string;
90
86
  /**
91
87
  * @hidden
92
88
  */