@progress/kendo-angular-grid 19.3.0-develop.30 → 19.3.0-develop.31
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.
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +16 -6
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-tool.directive.mjs +2 -2
- package/esm2022/rendering/toolbar/tools/ai-assistant/utils.mjs +27 -0
- package/fesm2022/progress-kendo-angular-grid.mjs +47 -11
- package/package.json +21 -21
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +1 -1
- package/rendering/toolbar/tools/ai-assistant/ai-tool.directive.d.ts +5 -6
- package/rendering/toolbar/tools/ai-assistant/utils.d.ts +22 -1
- package/schematics/ngAdd/index.js +4 -4
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '19.3.0-develop.
|
|
13
|
+
publishDate: 1754576745,
|
|
14
|
+
version: '19.3.0-develop.31',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -7,7 +7,7 @@ import { AIPromptComponent, OutputViewComponent, PromptViewComponent, AIPromptCu
|
|
|
7
7
|
import { HttpClient, HttpRequest } from '@angular/common/http';
|
|
8
8
|
import { ContextService } from './../../../../common/provider.service';
|
|
9
9
|
import { ColumnInfoService } from './../../../../common/column-info.service';
|
|
10
|
-
import { convertDateStringsInFilter } from './utils';
|
|
10
|
+
import { convertDateStringsInFilter, GridToolbarAIResponseSuccessEvent, GridToolbarAIResponseErrorEvent } from './utils';
|
|
11
11
|
import { NgIf } from '@angular/common';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
import * as i1 from "@angular/common/http";
|
|
@@ -110,6 +110,12 @@ export class AiAssistantComponent {
|
|
|
110
110
|
}
|
|
111
111
|
processResponse(response) {
|
|
112
112
|
const responseBody = response.body;
|
|
113
|
+
const responseSuccessEvent = new GridToolbarAIResponseSuccessEvent(response);
|
|
114
|
+
this.aiToolDirective.responseSuccess.emit(responseSuccessEvent);
|
|
115
|
+
if (responseSuccessEvent.isDefaultPrevented()) {
|
|
116
|
+
this.deleteLoadingOutput();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
113
119
|
const isFilterable = Boolean(this.ctx.grid.filterable);
|
|
114
120
|
const isSortable = Boolean(this.ctx.grid.sortable);
|
|
115
121
|
const isGroupable = Boolean(this.ctx.grid.groupable);
|
|
@@ -132,21 +138,25 @@ export class AiAssistantComponent {
|
|
|
132
138
|
prompt: this.lastMessage,
|
|
133
139
|
output: responseContentStart.concat(responseContentBody).join(''),
|
|
134
140
|
};
|
|
135
|
-
this.
|
|
141
|
+
this.deleteLoadingOutput();
|
|
136
142
|
this.promptOutputs.unshift(output);
|
|
137
|
-
this.aiToolDirective.responseSuccess.emit(response);
|
|
138
143
|
}
|
|
139
144
|
handleError(error) {
|
|
145
|
+
const responseErrorEvent = new GridToolbarAIResponseErrorEvent(error);
|
|
146
|
+
this.aiToolDirective.responseError.emit(responseErrorEvent);
|
|
147
|
+
if (responseErrorEvent.isDefaultPrevented()) {
|
|
148
|
+
this.deleteLoadingOutput();
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
140
151
|
const output = {
|
|
141
152
|
id: this.idCounter++,
|
|
142
153
|
prompt: this.lastMessage,
|
|
143
154
|
output: error.message
|
|
144
155
|
};
|
|
145
|
-
this.
|
|
156
|
+
this.deleteLoadingOutput();
|
|
146
157
|
this.promptOutputs.unshift(output);
|
|
147
|
-
this.aiToolDirective.responseError.emit(error);
|
|
148
158
|
}
|
|
149
|
-
|
|
159
|
+
deleteLoadingOutput() {
|
|
150
160
|
if (this.promptOutputs[0].id === this.loadingOutput.id) {
|
|
151
161
|
this.promptOutputs.splice(0, 1);
|
|
152
162
|
}
|
|
@@ -80,12 +80,12 @@ export class AIAssistantToolbarDirective extends ToolbarToolBase {
|
|
|
80
80
|
cancelRequest = new EventEmitter();
|
|
81
81
|
/**
|
|
82
82
|
* Emits an event when the AI Assistant tool completes the AI request successfully.
|
|
83
|
-
* The event contains the response from the AI service.
|
|
83
|
+
* The event contains the response from the AI service and is preventable to allow stopping the default response handling.
|
|
84
84
|
*/
|
|
85
85
|
responseSuccess = new EventEmitter();
|
|
86
86
|
/**
|
|
87
87
|
* Emits an event when the AI Assistant tool completes the AI request with an error.
|
|
88
|
-
* The event contains the response from the AI service.
|
|
88
|
+
* The event contains the error response from the AI service and is preventable to allow stopping the default error handling.
|
|
89
89
|
*/
|
|
90
90
|
responseError = new EventEmitter();
|
|
91
91
|
/**
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { HttpHeaders } from "@angular/common/http";
|
|
6
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
7
|
/**
|
|
7
8
|
* @hidden
|
|
8
9
|
*/
|
|
@@ -45,3 +46,29 @@ export const isDateField = (fieldName, columns) => {
|
|
|
45
46
|
const column = columns.find((col) => col.field === fieldName);
|
|
46
47
|
return column?.filter === 'date' || column?.editor === 'date';
|
|
47
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* Represents the event data when the AI Assistant request completes successfully.
|
|
51
|
+
*/
|
|
52
|
+
export class GridToolbarAIResponseSuccessEvent extends PreventableEvent {
|
|
53
|
+
/**
|
|
54
|
+
* The HTTP response from the AI service.
|
|
55
|
+
*/
|
|
56
|
+
response;
|
|
57
|
+
constructor(response) {
|
|
58
|
+
super();
|
|
59
|
+
this.response = response;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Represents the event data when the AI Assistant request completes with an error.
|
|
64
|
+
*/
|
|
65
|
+
export class GridToolbarAIResponseErrorEvent extends PreventableEvent {
|
|
66
|
+
/**
|
|
67
|
+
* The HTTP error response from the AI service.
|
|
68
|
+
*/
|
|
69
|
+
error;
|
|
70
|
+
constructor(error) {
|
|
71
|
+
super();
|
|
72
|
+
this.error = error;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
|
|
|
6
6
|
import { EventEmitter, Injectable, SecurityContext, InjectionToken, Optional, Inject, Directive, SkipSelf, Input, isDevMode, QueryList, Component, ContentChildren, ContentChild, forwardRef, Host, Output, HostBinding, Pipe, TemplateRef, ChangeDetectionStrategy, ViewChildren, ViewChild, Self, NgZone, HostListener, ElementRef, ViewContainerRef, ViewEncapsulation, inject, Injector, NgModule } from '@angular/core';
|
|
7
7
|
import { merge, of, Subject, zip as zip$1, from, Subscription, interval, fromEvent, Observable, BehaviorSubject } from 'rxjs';
|
|
8
8
|
import * as i1$3 from '@progress/kendo-angular-common';
|
|
9
|
-
import { isDocumentAvailable, Keys, hasClasses as hasClasses$1, isPresent as isPresent$1, anyChanged, TemplateContextDirective, DraggableDirective, EventsOutsideAngularDirective, replaceMessagePlaceholder, isChanged as isChanged$1, KendoInput, guid, closest as closest$1, hasObservers, ResizeSensorComponent, closestInScope as closestInScope$1, isFocusable as isFocusable$1, getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent,
|
|
9
|
+
import { isDocumentAvailable, Keys, hasClasses as hasClasses$1, isPresent as isPresent$1, anyChanged, TemplateContextDirective, DraggableDirective, EventsOutsideAngularDirective, replaceMessagePlaceholder, isChanged as isChanged$1, KendoInput, guid, closest as closest$1, hasObservers, ResizeSensorComponent, closestInScope as closestInScope$1, isFocusable as isFocusable$1, PreventableEvent as PreventableEvent$1, getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
10
|
import * as i1 from '@angular/platform-browser';
|
|
11
11
|
import * as i1$1 from '@progress/kendo-angular-icons';
|
|
12
12
|
import { IconWrapperComponent, IconsService, KENDO_ICONS } from '@progress/kendo-angular-icons';
|
|
@@ -21998,8 +21998,8 @@ const packageMetadata = {
|
|
|
21998
21998
|
productName: 'Kendo UI for Angular',
|
|
21999
21999
|
productCode: 'KENDOUIANGULAR',
|
|
22000
22000
|
productCodes: ['KENDOUIANGULAR'],
|
|
22001
|
-
publishDate:
|
|
22002
|
-
version: '19.3.0-develop.
|
|
22001
|
+
publishDate: 1754576745,
|
|
22002
|
+
version: '19.3.0-develop.31',
|
|
22003
22003
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
22004
22004
|
};
|
|
22005
22005
|
|
|
@@ -28621,6 +28621,32 @@ const isDateField = (fieldName, columns) => {
|
|
|
28621
28621
|
const column = columns.find((col) => col.field === fieldName);
|
|
28622
28622
|
return column?.filter === 'date' || column?.editor === 'date';
|
|
28623
28623
|
};
|
|
28624
|
+
/**
|
|
28625
|
+
* Represents the event data when the AI Assistant request completes successfully.
|
|
28626
|
+
*/
|
|
28627
|
+
class GridToolbarAIResponseSuccessEvent extends PreventableEvent$1 {
|
|
28628
|
+
/**
|
|
28629
|
+
* The HTTP response from the AI service.
|
|
28630
|
+
*/
|
|
28631
|
+
response;
|
|
28632
|
+
constructor(response) {
|
|
28633
|
+
super();
|
|
28634
|
+
this.response = response;
|
|
28635
|
+
}
|
|
28636
|
+
}
|
|
28637
|
+
/**
|
|
28638
|
+
* Represents the event data when the AI Assistant request completes with an error.
|
|
28639
|
+
*/
|
|
28640
|
+
class GridToolbarAIResponseErrorEvent extends PreventableEvent$1 {
|
|
28641
|
+
/**
|
|
28642
|
+
* The HTTP error response from the AI service.
|
|
28643
|
+
*/
|
|
28644
|
+
error;
|
|
28645
|
+
constructor(error) {
|
|
28646
|
+
super();
|
|
28647
|
+
this.error = error;
|
|
28648
|
+
}
|
|
28649
|
+
}
|
|
28624
28650
|
|
|
28625
28651
|
/**
|
|
28626
28652
|
* @hidden
|
|
@@ -28719,6 +28745,12 @@ class AiAssistantComponent {
|
|
|
28719
28745
|
}
|
|
28720
28746
|
processResponse(response) {
|
|
28721
28747
|
const responseBody = response.body;
|
|
28748
|
+
const responseSuccessEvent = new GridToolbarAIResponseSuccessEvent(response);
|
|
28749
|
+
this.aiToolDirective.responseSuccess.emit(responseSuccessEvent);
|
|
28750
|
+
if (responseSuccessEvent.isDefaultPrevented()) {
|
|
28751
|
+
this.deleteLoadingOutput();
|
|
28752
|
+
return;
|
|
28753
|
+
}
|
|
28722
28754
|
const isFilterable = Boolean(this.ctx.grid.filterable);
|
|
28723
28755
|
const isSortable = Boolean(this.ctx.grid.sortable);
|
|
28724
28756
|
const isGroupable = Boolean(this.ctx.grid.groupable);
|
|
@@ -28741,21 +28773,25 @@ class AiAssistantComponent {
|
|
|
28741
28773
|
prompt: this.lastMessage,
|
|
28742
28774
|
output: responseContentStart.concat(responseContentBody).join(''),
|
|
28743
28775
|
};
|
|
28744
|
-
this.
|
|
28776
|
+
this.deleteLoadingOutput();
|
|
28745
28777
|
this.promptOutputs.unshift(output);
|
|
28746
|
-
this.aiToolDirective.responseSuccess.emit(response);
|
|
28747
28778
|
}
|
|
28748
28779
|
handleError(error) {
|
|
28780
|
+
const responseErrorEvent = new GridToolbarAIResponseErrorEvent(error);
|
|
28781
|
+
this.aiToolDirective.responseError.emit(responseErrorEvent);
|
|
28782
|
+
if (responseErrorEvent.isDefaultPrevented()) {
|
|
28783
|
+
this.deleteLoadingOutput();
|
|
28784
|
+
return;
|
|
28785
|
+
}
|
|
28749
28786
|
const output = {
|
|
28750
28787
|
id: this.idCounter++,
|
|
28751
28788
|
prompt: this.lastMessage,
|
|
28752
28789
|
output: error.message
|
|
28753
28790
|
};
|
|
28754
|
-
this.
|
|
28791
|
+
this.deleteLoadingOutput();
|
|
28755
28792
|
this.promptOutputs.unshift(output);
|
|
28756
|
-
this.aiToolDirective.responseError.emit(error);
|
|
28757
28793
|
}
|
|
28758
|
-
|
|
28794
|
+
deleteLoadingOutput() {
|
|
28759
28795
|
if (this.promptOutputs[0].id === this.loadingOutput.id) {
|
|
28760
28796
|
this.promptOutputs.splice(0, 1);
|
|
28761
28797
|
}
|
|
@@ -28960,12 +28996,12 @@ class AIAssistantToolbarDirective extends ToolbarToolBase {
|
|
|
28960
28996
|
cancelRequest = new EventEmitter();
|
|
28961
28997
|
/**
|
|
28962
28998
|
* Emits an event when the AI Assistant tool completes the AI request successfully.
|
|
28963
|
-
* The event contains the response from the AI service.
|
|
28999
|
+
* The event contains the response from the AI service and is preventable to allow stopping the default response handling.
|
|
28964
29000
|
*/
|
|
28965
29001
|
responseSuccess = new EventEmitter();
|
|
28966
29002
|
/**
|
|
28967
29003
|
* Emits an event when the AI Assistant tool completes the AI request with an error.
|
|
28968
|
-
* The event contains the response from the AI service.
|
|
29004
|
+
* The event contains the error response from the AI service and is preventable to allow stopping the default error handling.
|
|
28969
29005
|
*/
|
|
28970
29006
|
responseError = new EventEmitter();
|
|
28971
29007
|
/**
|
|
@@ -37636,5 +37672,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
37636
37672
|
* Generated bundle index. Do not edit.
|
|
37637
37673
|
*/
|
|
37638
37674
|
|
|
37639
|
-
export { AIAssistantToolbarDirective, AddCommandDirective, AddCommandToolbarDirective, AfterEqFilterOperatorComponent, AfterFilterOperatorComponent, AutoCompleteFilterCellComponent, BaseFilterCellComponent, BeforeEqFilterOperatorComponent, BeforeFilterOperatorComponent, BooleanFilterCellComponent, BooleanFilterComponent, BooleanFilterMenuComponent, BooleanFilterRadioButtonDirective, BrowserSupportService, CELL_CONTEXT, CancelCommandDirective, CancelCommandToolbarDirective, CellCloseEvent, CellComponent, CellLoadingTemplateDirective, CellSelectionAggregateService, CellSelectionService, CellTemplateDirective, ChangeNotificationService, CheckboxColumnComponent, ColGroupComponent, ColumnBase, ColumnChooserComponent, ColumnChooserToolbarDirective, ColumnComponent, ColumnGroupComponent, ColumnHandleDirective, ColumnInfoService, ColumnListComponent, ColumnLockedChangeEvent, ColumnMenuAutoSizeAllColumnsComponent, ColumnMenuAutoSizeColumnComponent, ColumnMenuChooserComponent, ColumnMenuComponent, ColumnMenuContainerComponent, ColumnMenuFilterComponent, ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective, ColumnMenuItemDirective, ColumnMenuLockComponent, ColumnMenuPositionComponent, ColumnMenuService, ColumnMenuSortComponent, ColumnMenuStickComponent, ColumnMenuTemplateDirective, ColumnReorderEvent, ColumnReorderService, ColumnResizingService, ColumnStickyChangeEvent, ColumnVisibilityChangeEvent, ColumnsContainer, CommandColumnComponent, ContainsFilterOperatorComponent, ContextService, CustomMessagesComponent, DEFAULT_AI_REQUEST_OPTIONS, DEFAULT_SCROLLER_FACTORY, DataBindingDirective, DateFilterCellComponent, DateFilterComponent, DateFilterMenuComponent, DateFilterMenuInputComponent, DetailCollapseEvent, DetailExpandEvent, DetailTemplateDirective, DetailsService, DoesNotContainFilterOperatorComponent, DomEventsService, DragAndDropService, DragHintService, DropCueService, EditCommandDirective, EditCommandToolbarDirective, EditService as EditServiceClass, EditTemplateDirective, EditingDirectiveBase, EndsWithFilterOperatorComponent, EqualFilterOperatorComponent, ExcelCommandDirective, ExcelCommandToolbarDirective, ExcelComponent, ExcelExportEvent, ExcelModule, ExcelService, ExpandDetailsDirective, ExpandGroupDirective, ExternalEditingDirective, FieldAccessorPipe, FilterCellComponent, FilterCellHostDirective, FilterCellOperatorsComponent, FilterCellTemplateDirective, FilterCellWrapperComponent, FilterCommandToolbarDirective, FilterInputDirective, FilterMenuComponent, FilterMenuContainerComponent, FilterMenuDropDownListDirective, FilterMenuHostDirective, FilterMenuInputWrapperComponent, FilterMenuTemplateDirective, FilterRowComponent, FilterService, FocusRoot, FocusableDirective, FooterComponent, FooterTemplateDirective, GreaterFilterOperatorComponent, GreaterOrEqualToFilterOperatorComponent, GridClipboardDirective, GridComponent, GridModule, GridSpacerComponent, GridTableDirective, GridToolbarFocusableDirective, GridToolbarNavigationService, GroupBindingDirective, GroupCommandToolbarDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderComponent, GroupHeaderTemplateDirective, GroupInfoService, GroupPanelComponent, GroupsService, HeaderComponent, HeaderTemplateDirective, HighlightDirective, IdService, InCellEditingDirective, IsEmptyFilterOperatorComponent, IsNotEmptyFilterOperatorComponent, IsNotNullFilterOperatorComponent, IsNullFilterOperatorComponent, KENDO_GRID, KENDO_GRID_BODY_EXPORTS, KENDO_GRID_COLUMN_DRAGANDDROP, KENDO_GRID_COLUMN_MENU_DECLARATIONS, KENDO_GRID_COLUMN_MENU_EXPORTS, KENDO_GRID_DECLARATIONS, KENDO_GRID_EXCEL_EXPORT, KENDO_GRID_EXPORTS, KENDO_GRID_FILTER_MENU, KENDO_GRID_FILTER_MENU_EXPORTS, KENDO_GRID_FILTER_OPERATORS, KENDO_GRID_FILTER_ROW, KENDO_GRID_FILTER_ROW_EXPORTS, KENDO_GRID_FILTER_SHARED, KENDO_GRID_FOOTER_EXPORTS, KENDO_GRID_GROUP_EXPORTS, KENDO_GRID_HEADER_EXPORTS, KENDO_GRID_PDF_EXPORT, KENDO_GRID_SHARED, LessFilterOperatorComponent, LessOrEqualToFilterOperatorComponent, ListComponent, LoadingComponent, LoadingTemplateDirective, LocalDataChangesService, LogicalCellDirective, LogicalRowDirective, MenuTabbingService, NavigationService, NoRecordsTemplateDirective, NotEqualFilterOperatorComponent, NumericFilterCellComponent, NumericFilterComponent, NumericFilterMenuComponent, NumericFilterMenuInputComponent, PDFCommandDirective, PDFCommandToolbarDirective, PDFComponent, PDFMarginComponent, PDFModule, PDFService, PDFTemplateDirective, PopupCloseEvent, ReactiveEditingDirective, RedoCommandToolbarDirective, RemoveCommandDirective, RemoveCommandToolbarDirective, ResizableContainerDirective, ResizeService, ResponsiveService, RowDragHandleTemplateDirective, RowDragHintTemplateDirective, RowEditingDirectiveBase, RowReorderColumnComponent, RowReorderService, SaveCommandDirective, SaveCommandToolbarDirective, ScrollRequestService, ScrollSyncService, SelectAllCheckboxDirective, SelectAllToolbarToolComponent, SelectionCheckboxDirective, SelectionDirective, SelectionService, SinglePopupService, SizingOptionsService, Skip, SortCommandToolbarDirective, SortService, SpanColumnComponent, StartsWithFilterOperatorComponent, StatusBarTemplateDirective, StringFilterCellComponent, StringFilterComponent, StringFilterMenuComponent, StringFilterMenuInputComponent, SuspendService, TableBodyComponent, TableDirective, TemplateEditingDirective, ToolbarComponent, ToolbarTemplateDirective, UndoCommandToolbarDirective, UndoRedoDirective, UndoRedoEvent, convertDateStringsInFilter, count, defaultTrackBy, hasFilterMenu, hasFilterRow, isDateField, isFilterable, slice };
|
|
37675
|
+
export { AIAssistantToolbarDirective, AddCommandDirective, AddCommandToolbarDirective, AfterEqFilterOperatorComponent, AfterFilterOperatorComponent, AutoCompleteFilterCellComponent, BaseFilterCellComponent, BeforeEqFilterOperatorComponent, BeforeFilterOperatorComponent, BooleanFilterCellComponent, BooleanFilterComponent, BooleanFilterMenuComponent, BooleanFilterRadioButtonDirective, BrowserSupportService, CELL_CONTEXT, CancelCommandDirective, CancelCommandToolbarDirective, CellCloseEvent, CellComponent, CellLoadingTemplateDirective, CellSelectionAggregateService, CellSelectionService, CellTemplateDirective, ChangeNotificationService, CheckboxColumnComponent, ColGroupComponent, ColumnBase, ColumnChooserComponent, ColumnChooserToolbarDirective, ColumnComponent, ColumnGroupComponent, ColumnHandleDirective, ColumnInfoService, ColumnListComponent, ColumnLockedChangeEvent, ColumnMenuAutoSizeAllColumnsComponent, ColumnMenuAutoSizeColumnComponent, ColumnMenuChooserComponent, ColumnMenuComponent, ColumnMenuContainerComponent, ColumnMenuFilterComponent, ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective, ColumnMenuItemDirective, ColumnMenuLockComponent, ColumnMenuPositionComponent, ColumnMenuService, ColumnMenuSortComponent, ColumnMenuStickComponent, ColumnMenuTemplateDirective, ColumnReorderEvent, ColumnReorderService, ColumnResizingService, ColumnStickyChangeEvent, ColumnVisibilityChangeEvent, ColumnsContainer, CommandColumnComponent, ContainsFilterOperatorComponent, ContextService, CustomMessagesComponent, DEFAULT_AI_REQUEST_OPTIONS, DEFAULT_SCROLLER_FACTORY, DataBindingDirective, DateFilterCellComponent, DateFilterComponent, DateFilterMenuComponent, DateFilterMenuInputComponent, DetailCollapseEvent, DetailExpandEvent, DetailTemplateDirective, DetailsService, DoesNotContainFilterOperatorComponent, DomEventsService, DragAndDropService, DragHintService, DropCueService, EditCommandDirective, EditCommandToolbarDirective, EditService as EditServiceClass, EditTemplateDirective, EditingDirectiveBase, EndsWithFilterOperatorComponent, EqualFilterOperatorComponent, ExcelCommandDirective, ExcelCommandToolbarDirective, ExcelComponent, ExcelExportEvent, ExcelModule, ExcelService, ExpandDetailsDirective, ExpandGroupDirective, ExternalEditingDirective, FieldAccessorPipe, FilterCellComponent, FilterCellHostDirective, FilterCellOperatorsComponent, FilterCellTemplateDirective, FilterCellWrapperComponent, FilterCommandToolbarDirective, FilterInputDirective, FilterMenuComponent, FilterMenuContainerComponent, FilterMenuDropDownListDirective, FilterMenuHostDirective, FilterMenuInputWrapperComponent, FilterMenuTemplateDirective, FilterRowComponent, FilterService, FocusRoot, FocusableDirective, FooterComponent, FooterTemplateDirective, GreaterFilterOperatorComponent, GreaterOrEqualToFilterOperatorComponent, GridClipboardDirective, GridComponent, GridModule, GridSpacerComponent, GridTableDirective, GridToolbarAIResponseErrorEvent, GridToolbarAIResponseSuccessEvent, GridToolbarFocusableDirective, GridToolbarNavigationService, GroupBindingDirective, GroupCommandToolbarDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderComponent, GroupHeaderTemplateDirective, GroupInfoService, GroupPanelComponent, GroupsService, HeaderComponent, HeaderTemplateDirective, HighlightDirective, IdService, InCellEditingDirective, IsEmptyFilterOperatorComponent, IsNotEmptyFilterOperatorComponent, IsNotNullFilterOperatorComponent, IsNullFilterOperatorComponent, KENDO_GRID, KENDO_GRID_BODY_EXPORTS, KENDO_GRID_COLUMN_DRAGANDDROP, KENDO_GRID_COLUMN_MENU_DECLARATIONS, KENDO_GRID_COLUMN_MENU_EXPORTS, KENDO_GRID_DECLARATIONS, KENDO_GRID_EXCEL_EXPORT, KENDO_GRID_EXPORTS, KENDO_GRID_FILTER_MENU, KENDO_GRID_FILTER_MENU_EXPORTS, KENDO_GRID_FILTER_OPERATORS, KENDO_GRID_FILTER_ROW, KENDO_GRID_FILTER_ROW_EXPORTS, KENDO_GRID_FILTER_SHARED, KENDO_GRID_FOOTER_EXPORTS, KENDO_GRID_GROUP_EXPORTS, KENDO_GRID_HEADER_EXPORTS, KENDO_GRID_PDF_EXPORT, KENDO_GRID_SHARED, LessFilterOperatorComponent, LessOrEqualToFilterOperatorComponent, ListComponent, LoadingComponent, LoadingTemplateDirective, LocalDataChangesService, LogicalCellDirective, LogicalRowDirective, MenuTabbingService, NavigationService, NoRecordsTemplateDirective, NotEqualFilterOperatorComponent, NumericFilterCellComponent, NumericFilterComponent, NumericFilterMenuComponent, NumericFilterMenuInputComponent, PDFCommandDirective, PDFCommandToolbarDirective, PDFComponent, PDFMarginComponent, PDFModule, PDFService, PDFTemplateDirective, PopupCloseEvent, ReactiveEditingDirective, RedoCommandToolbarDirective, RemoveCommandDirective, RemoveCommandToolbarDirective, ResizableContainerDirective, ResizeService, ResponsiveService, RowDragHandleTemplateDirective, RowDragHintTemplateDirective, RowEditingDirectiveBase, RowReorderColumnComponent, RowReorderService, SaveCommandDirective, SaveCommandToolbarDirective, ScrollRequestService, ScrollSyncService, SelectAllCheckboxDirective, SelectAllToolbarToolComponent, SelectionCheckboxDirective, SelectionDirective, SelectionService, SinglePopupService, SizingOptionsService, Skip, SortCommandToolbarDirective, SortService, SpanColumnComponent, StartsWithFilterOperatorComponent, StatusBarTemplateDirective, StringFilterCellComponent, StringFilterComponent, StringFilterMenuComponent, StringFilterMenuInputComponent, SuspendService, TableBodyComponent, TableDirective, TemplateEditingDirective, ToolbarComponent, ToolbarTemplateDirective, UndoCommandToolbarDirective, UndoRedoDirective, UndoRedoEvent, convertDateStringsInFilter, count, defaultTrackBy, hasFilterMenu, hasFilterRow, isDateField, isFilterable, slice };
|
|
37640
37676
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-grid",
|
|
3
|
-
"version": "19.3.0-develop.
|
|
3
|
+
"version": "19.3.0-develop.31",
|
|
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":
|
|
29
|
+
"publishDate": 1754576745,
|
|
30
30
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -39,29 +39,29 @@
|
|
|
39
39
|
"@progress/kendo-data-query": "^1.0.0",
|
|
40
40
|
"@progress/kendo-drawing": "^1.21.0",
|
|
41
41
|
"@progress/kendo-licensing": "^1.7.0",
|
|
42
|
-
"@progress/kendo-angular-buttons": "19.3.0-develop.
|
|
43
|
-
"@progress/kendo-angular-common": "19.3.0-develop.
|
|
44
|
-
"@progress/kendo-angular-dateinputs": "19.3.0-develop.
|
|
45
|
-
"@progress/kendo-angular-layout": "19.3.0-develop.
|
|
46
|
-
"@progress/kendo-angular-navigation": "19.3.0-develop.
|
|
47
|
-
"@progress/kendo-angular-dropdowns": "19.3.0-develop.
|
|
48
|
-
"@progress/kendo-angular-excel-export": "19.3.0-develop.
|
|
49
|
-
"@progress/kendo-angular-icons": "19.3.0-develop.
|
|
50
|
-
"@progress/kendo-angular-inputs": "19.3.0-develop.
|
|
51
|
-
"@progress/kendo-angular-conversational-ui": "19.3.0-develop.
|
|
52
|
-
"@progress/kendo-angular-intl": "19.3.0-develop.
|
|
53
|
-
"@progress/kendo-angular-l10n": "19.3.0-develop.
|
|
54
|
-
"@progress/kendo-angular-label": "19.3.0-develop.
|
|
55
|
-
"@progress/kendo-angular-pager": "19.3.0-develop.
|
|
56
|
-
"@progress/kendo-angular-pdf-export": "19.3.0-develop.
|
|
57
|
-
"@progress/kendo-angular-popup": "19.3.0-develop.
|
|
58
|
-
"@progress/kendo-angular-toolbar": "19.3.0-develop.
|
|
59
|
-
"@progress/kendo-angular-utils": "19.3.0-develop.
|
|
42
|
+
"@progress/kendo-angular-buttons": "19.3.0-develop.31",
|
|
43
|
+
"@progress/kendo-angular-common": "19.3.0-develop.31",
|
|
44
|
+
"@progress/kendo-angular-dateinputs": "19.3.0-develop.31",
|
|
45
|
+
"@progress/kendo-angular-layout": "19.3.0-develop.31",
|
|
46
|
+
"@progress/kendo-angular-navigation": "19.3.0-develop.31",
|
|
47
|
+
"@progress/kendo-angular-dropdowns": "19.3.0-develop.31",
|
|
48
|
+
"@progress/kendo-angular-excel-export": "19.3.0-develop.31",
|
|
49
|
+
"@progress/kendo-angular-icons": "19.3.0-develop.31",
|
|
50
|
+
"@progress/kendo-angular-inputs": "19.3.0-develop.31",
|
|
51
|
+
"@progress/kendo-angular-conversational-ui": "19.3.0-develop.31",
|
|
52
|
+
"@progress/kendo-angular-intl": "19.3.0-develop.31",
|
|
53
|
+
"@progress/kendo-angular-l10n": "19.3.0-develop.31",
|
|
54
|
+
"@progress/kendo-angular-label": "19.3.0-develop.31",
|
|
55
|
+
"@progress/kendo-angular-pager": "19.3.0-develop.31",
|
|
56
|
+
"@progress/kendo-angular-pdf-export": "19.3.0-develop.31",
|
|
57
|
+
"@progress/kendo-angular-popup": "19.3.0-develop.31",
|
|
58
|
+
"@progress/kendo-angular-toolbar": "19.3.0-develop.31",
|
|
59
|
+
"@progress/kendo-angular-utils": "19.3.0-develop.31",
|
|
60
60
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"tslib": "^2.3.1",
|
|
64
|
-
"@progress/kendo-angular-schematics": "19.3.0-develop.
|
|
64
|
+
"@progress/kendo-angular-schematics": "19.3.0-develop.31",
|
|
65
65
|
"@progress/kendo-common": "^1.0.1",
|
|
66
66
|
"@progress/kendo-file-saver": "^1.0.0"
|
|
67
67
|
},
|
|
@@ -41,7 +41,7 @@ export declare class AiAssistantComponent implements OnDestroy, AfterViewInit {
|
|
|
41
41
|
private sendPromptRequest;
|
|
42
42
|
private processResponse;
|
|
43
43
|
private handleError;
|
|
44
|
-
private
|
|
44
|
+
private deleteLoadingOutput;
|
|
45
45
|
private unsubscribeCurrentRequest;
|
|
46
46
|
private processArrayResponse;
|
|
47
47
|
private processFilterResponse;
|
|
@@ -8,8 +8,7 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
|
8
8
|
import { ContextService } from '../../../../common/provider.service';
|
|
9
9
|
import { ToolbarToolBase } from '../../../../common/toolbar-tool-base.directive';
|
|
10
10
|
import { WindowService } from '@progress/kendo-angular-dialog';
|
|
11
|
-
import {
|
|
12
|
-
import { GridToolbarAIOpenEvent, GridToolbarAIPromptSettings, GridToolbarAIWindowSettings, GridToolbarAIRequestData, GridToolbarAIRequestResponse, GridToolbarAIRequestOptions } from './utils';
|
|
11
|
+
import { GridToolbarAIOpenEvent, GridToolbarAIPromptSettings, GridToolbarAIWindowSettings, GridToolbarAIRequestData, GridToolbarAIRequestOptions, GridToolbarAIResponseSuccessEvent, GridToolbarAIResponseErrorEvent } from './utils';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
/**
|
|
15
14
|
* Represents an AI Assistant tool of the Grid.
|
|
@@ -76,14 +75,14 @@ export declare class AIAssistantToolbarDirective extends ToolbarToolBase impleme
|
|
|
76
75
|
cancelRequest: EventEmitter<undefined>;
|
|
77
76
|
/**
|
|
78
77
|
* Emits an event when the AI Assistant tool completes the AI request successfully.
|
|
79
|
-
* The event contains the response from the AI service.
|
|
78
|
+
* The event contains the response from the AI service and is preventable to allow stopping the default response handling.
|
|
80
79
|
*/
|
|
81
|
-
responseSuccess: EventEmitter<
|
|
80
|
+
responseSuccess: EventEmitter<GridToolbarAIResponseSuccessEvent>;
|
|
82
81
|
/**
|
|
83
82
|
* 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.
|
|
83
|
+
* The event contains the error response from the AI service and is preventable to allow stopping the default error handling.
|
|
85
84
|
*/
|
|
86
|
-
responseError: EventEmitter<
|
|
85
|
+
responseError: EventEmitter<GridToolbarAIResponseErrorEvent>;
|
|
87
86
|
/**
|
|
88
87
|
* Emits an event when the AI Assistant tool closes.
|
|
89
88
|
*/
|
|
@@ -2,7 +2,8 @@
|
|
|
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 { HttpHeaders } from "@angular/common/http";
|
|
5
|
+
import { HttpHeaders, HttpResponse, HttpErrorResponse } from "@angular/common/http";
|
|
6
|
+
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
6
7
|
import { AIPromptComponent, AIPromptSettings } from "@progress/kendo-angular-conversational-ui";
|
|
7
8
|
import { WindowComponent, WindowSettings } from "@progress/kendo-angular-dialog";
|
|
8
9
|
import { CompositeFilterDescriptor, FilterDescriptor, GroupDescriptor, SortDescriptor } from "@progress/kendo-data-query";
|
|
@@ -108,3 +109,23 @@ export declare const convertDateStringsInFilter: (filter: any, columns: any[]) =
|
|
|
108
109
|
* @hidden
|
|
109
110
|
*/
|
|
110
111
|
export declare const isDateField: (fieldName: string, columns: any[]) => boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Represents the event data when the AI Assistant request completes successfully.
|
|
114
|
+
*/
|
|
115
|
+
export declare class GridToolbarAIResponseSuccessEvent extends PreventableEvent {
|
|
116
|
+
/**
|
|
117
|
+
* The HTTP response from the AI service.
|
|
118
|
+
*/
|
|
119
|
+
response: HttpResponse<GridToolbarAIRequestResponse>;
|
|
120
|
+
constructor(response: HttpResponse<GridToolbarAIRequestResponse>);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Represents the event data when the AI Assistant request completes with an error.
|
|
124
|
+
*/
|
|
125
|
+
export declare class GridToolbarAIResponseErrorEvent extends PreventableEvent {
|
|
126
|
+
/**
|
|
127
|
+
* The HTTP error response from the AI service.
|
|
128
|
+
*/
|
|
129
|
+
error: HttpErrorResponse;
|
|
130
|
+
constructor(error: HttpErrorResponse);
|
|
131
|
+
}
|
|
@@ -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.
|
|
8
|
-
'@progress/kendo-angular-navigation': '19.3.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '19.3.0-develop.31',
|
|
8
|
+
'@progress/kendo-angular-navigation': '19.3.0-develop.31',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
|
-
'@progress/kendo-angular-dialog': '19.3.0-develop.
|
|
10
|
+
'@progress/kendo-angular-dialog': '19.3.0-develop.31',
|
|
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.
|
|
14
|
+
'@progress/kendo-angular-progressbar': '19.3.0-develop.31'
|
|
15
15
|
} });
|
|
16
16
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
17
17
|
}
|