@progress/kendo-angular-grid 23.0.0-develop.7 → 23.0.0-develop.8
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/fesm2022/progress-kendo-angular-grid.mjs +97 -13
- package/package-metadata.mjs +2 -2
- package/package.json +24 -24
- package/rendering/toolbar/tools/smartbox/smartbox-component/smartbox.component.d.ts +5 -3
- package/rendering/toolbar/tools/smartbox/smartbox-tool.d.ts +73 -1
- package/schematics/ngAdd/index.js +7 -7
|
@@ -24136,7 +24136,7 @@ const packageMetadata = {
|
|
|
24136
24136
|
productCode: 'KENDOUIANGULAR',
|
|
24137
24137
|
productCodes: ['KENDOUIANGULAR'],
|
|
24138
24138
|
publishDate: 0,
|
|
24139
|
-
version: '23.0.0-develop.
|
|
24139
|
+
version: '23.0.0-develop.8',
|
|
24140
24140
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
24141
24141
|
};
|
|
24142
24142
|
|
|
@@ -41275,6 +41275,7 @@ class SmartBoxComponent {
|
|
|
41275
41275
|
aiAssistantCancelRequest = new EventEmitter();
|
|
41276
41276
|
search = new EventEmitter();
|
|
41277
41277
|
semanticSearch = new EventEmitter();
|
|
41278
|
+
modeChange = new EventEmitter();
|
|
41278
41279
|
constructor(popupService, wrapper, cdr, zone, intl, ctx, aiRequestResponseService, http, renderer, columnInfoService, searchService) {
|
|
41279
41280
|
this.popupService = popupService;
|
|
41280
41281
|
this.wrapper = wrapper;
|
|
@@ -41410,14 +41411,16 @@ class SmartBoxComponent {
|
|
|
41410
41411
|
else if (button.text === 'AI Assistant') {
|
|
41411
41412
|
this.selectedView = 'aiAssistant';
|
|
41412
41413
|
}
|
|
41413
|
-
this.
|
|
41414
|
+
this.modeChange.emit(this.selectedView);
|
|
41415
|
+
this.clearValue();
|
|
41414
41416
|
this.cdr.detectChanges();
|
|
41415
41417
|
}
|
|
41416
41418
|
onSearchItemClick(item) {
|
|
41417
41419
|
this.searchListData.forEach(i => i.selected = false);
|
|
41418
41420
|
this.searchListData.find(i => i.text === item.text).selected = true;
|
|
41419
41421
|
this.selectedView = item.text === 'Search' ? 'search' : 'semanticSearch';
|
|
41420
|
-
this.
|
|
41422
|
+
this.modeChange.emit(this.selectedView);
|
|
41423
|
+
this.clearValue();
|
|
41421
41424
|
this.cdr.markForCheck();
|
|
41422
41425
|
}
|
|
41423
41426
|
onListItemClick(item) {
|
|
@@ -41604,10 +41607,9 @@ class SmartBoxComponent {
|
|
|
41604
41607
|
onIconMouseDown = (args) => {
|
|
41605
41608
|
args.preventDefault();
|
|
41606
41609
|
};
|
|
41607
|
-
|
|
41610
|
+
clearButtonClick(event) {
|
|
41608
41611
|
event.stopImmediatePropagation();
|
|
41609
|
-
this.
|
|
41610
|
-
this.input.nativeElement.focus();
|
|
41612
|
+
this.clearValue();
|
|
41611
41613
|
this.togglePopup(true);
|
|
41612
41614
|
this.clearTypingTimeout();
|
|
41613
41615
|
this.handleInputValueChange();
|
|
@@ -41667,7 +41669,7 @@ class SmartBoxComponent {
|
|
|
41667
41669
|
this.aiAssistantPromptRequest.emit({ requestData: this.requestData });
|
|
41668
41670
|
});
|
|
41669
41671
|
this.togglePopup(false);
|
|
41670
|
-
this.
|
|
41672
|
+
this.clearValue();
|
|
41671
41673
|
if (!this.aiAssistantMode.requestUrl) {
|
|
41672
41674
|
return;
|
|
41673
41675
|
}
|
|
@@ -41690,7 +41692,7 @@ class SmartBoxComponent {
|
|
|
41690
41692
|
onSpeechToTextResult(event) {
|
|
41691
41693
|
if (event.alternatives && event.alternatives.length > 0) {
|
|
41692
41694
|
if (!isPresent$1(this.input.nativeElement.value)) {
|
|
41693
|
-
this.
|
|
41695
|
+
this.clearValue();
|
|
41694
41696
|
}
|
|
41695
41697
|
const newValue = event.alternatives[0].transcript + ' ';
|
|
41696
41698
|
this.input.nativeElement.value = newValue;
|
|
@@ -41900,8 +41902,12 @@ class SmartBoxComponent {
|
|
|
41900
41902
|
const responseErrorEvent = new GridSmartBoxResponseErrorEvent(error);
|
|
41901
41903
|
this.aiAssistantResponseError.emit(responseErrorEvent);
|
|
41902
41904
|
}
|
|
41905
|
+
clearValue() {
|
|
41906
|
+
this.input.nativeElement.value = '';
|
|
41907
|
+
this.input.nativeElement.focus();
|
|
41908
|
+
}
|
|
41903
41909
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SmartBoxComponent, deps: [{ token: i2.PopupService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$4.IntlService }, { token: ContextService }, { token: GridAIRequestResponseService }, { token: i1$8.HttpClient }, { token: i0.Renderer2 }, { token: ColumnInfoService }, { token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
41904
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: SmartBoxComponent, isStandalone: true, selector: "kendo-smartbox", inputs: { searchMode: "searchMode", semanticSearchMode: "semanticSearchMode", aiAssistantMode: "aiAssistantMode", activeMode: "activeMode", history: "history", placeholder: "placeholder", size: "size", promptSuggestionTemplate: "promptSuggestionTemplate", historyItemTemplate: "historyItemTemplate", loading: "loading" }, outputs: { open: "open", close: "close", focus: "focus", blur: "blur", aiAssistantPromptRequest: "aiAssistantPromptRequest", aiAssistantResponseSuccess: "aiAssistantResponseSuccess", aiAssistantResponseError: "aiAssistantResponseError", aiAssistantCancelRequest: "aiAssistantCancelRequest", search: "search", semanticSearch: "semanticSearch" }, providers: [DataService, SelectionService$1, NavigationService$1, DisabledItemsService], viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "innerWrapper", first: true, predicate: ["innerWrapper"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
41910
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: SmartBoxComponent, isStandalone: true, selector: "kendo-smartbox", inputs: { searchMode: "searchMode", semanticSearchMode: "semanticSearchMode", aiAssistantMode: "aiAssistantMode", activeMode: "activeMode", history: "history", placeholder: "placeholder", size: "size", promptSuggestionTemplate: "promptSuggestionTemplate", historyItemTemplate: "historyItemTemplate", loading: "loading" }, outputs: { open: "open", close: "close", focus: "focus", blur: "blur", aiAssistantPromptRequest: "aiAssistantPromptRequest", aiAssistantResponseSuccess: "aiAssistantResponseSuccess", aiAssistantResponseError: "aiAssistantResponseError", aiAssistantCancelRequest: "aiAssistantCancelRequest", search: "search", semanticSearch: "semanticSearch", modeChange: "modeChange" }, providers: [DataService, SelectionService$1, NavigationService$1, DisabledItemsService], viewQueries: [{ propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "innerWrapper", first: true, predicate: ["innerWrapper"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
41905
41911
|
<span #innerWrapper
|
|
41906
41912
|
class="k-smart-box k-input"
|
|
41907
41913
|
[class.k-loading]="loading">
|
|
@@ -41940,7 +41946,7 @@ class SmartBoxComponent {
|
|
|
41940
41946
|
[attr.title]="messageFor('smartBoxToolClearTitle')"
|
|
41941
41947
|
role="button"
|
|
41942
41948
|
tabindex="-1"
|
|
41943
|
-
(click)="
|
|
41949
|
+
(click)="clearButtonClick($event)"
|
|
41944
41950
|
(mousedown)="$event.preventDefault()">
|
|
41945
41951
|
<kendo-icon-wrapper
|
|
41946
41952
|
class="k-icon"
|
|
@@ -42213,7 +42219,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
42213
42219
|
[attr.title]="messageFor('smartBoxToolClearTitle')"
|
|
42214
42220
|
role="button"
|
|
42215
42221
|
tabindex="-1"
|
|
42216
|
-
(click)="
|
|
42222
|
+
(click)="clearButtonClick($event)"
|
|
42217
42223
|
(mousedown)="$event.preventDefault()">
|
|
42218
42224
|
<kendo-icon-wrapper
|
|
42219
42225
|
class="k-icon"
|
|
@@ -42489,6 +42495,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
42489
42495
|
type: Output
|
|
42490
42496
|
}], semanticSearch: [{
|
|
42491
42497
|
type: Output
|
|
42498
|
+
}], modeChange: [{
|
|
42499
|
+
type: Output
|
|
42492
42500
|
}] } });
|
|
42493
42501
|
|
|
42494
42502
|
/**
|
|
@@ -42507,27 +42515,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
42507
42515
|
class SmartBoxToolbarToolComponent extends ToolBarToolComponent {
|
|
42508
42516
|
promptSuggestionTemplate;
|
|
42509
42517
|
historyItemTemplate;
|
|
42518
|
+
/**
|
|
42519
|
+
* Controls the visibility and settings of the Search mode. By default, the mode is enabled.
|
|
42520
|
+
*
|
|
42521
|
+
* @default true
|
|
42522
|
+
*/
|
|
42510
42523
|
searchMode = true;
|
|
42524
|
+
/**
|
|
42525
|
+
* Controls the visibility and settings of the Semantic Search mode. By default, the mode is disabled.
|
|
42526
|
+
*
|
|
42527
|
+
* @default false
|
|
42528
|
+
*/
|
|
42511
42529
|
semanticSearchMode = false;
|
|
42530
|
+
/**
|
|
42531
|
+
* Controls the visibility and settings of the AI Assistant mode. By default, the mode is disabled.
|
|
42532
|
+
*
|
|
42533
|
+
* @default false
|
|
42534
|
+
*/
|
|
42512
42535
|
aiAssistantMode = false;
|
|
42536
|
+
/**
|
|
42537
|
+
* Sets the initially active mode of the tool.
|
|
42538
|
+
*
|
|
42539
|
+
* @default 'search'
|
|
42540
|
+
*/
|
|
42513
42541
|
activeMode = 'search';
|
|
42542
|
+
/**
|
|
42543
|
+
* Controls the visibility and settings of the history for each mode.
|
|
42544
|
+
*/
|
|
42514
42545
|
history;
|
|
42546
|
+
/**
|
|
42547
|
+
* Sets the placeholder of the input element in the SmartBox and applies to all modes.
|
|
42548
|
+
*/
|
|
42515
42549
|
placeholder;
|
|
42550
|
+
/**
|
|
42551
|
+
* Specifies the padding of the input.
|
|
42552
|
+
*
|
|
42553
|
+
* @default 'medium'
|
|
42554
|
+
*/
|
|
42516
42555
|
size;
|
|
42556
|
+
/**
|
|
42557
|
+
* Emits when the SmartBox tool opens.
|
|
42558
|
+
*/
|
|
42517
42559
|
open = new EventEmitter();
|
|
42560
|
+
/**
|
|
42561
|
+
* Emits when the SmartBox tool closes.
|
|
42562
|
+
*/
|
|
42518
42563
|
close = new EventEmitter();
|
|
42564
|
+
/**
|
|
42565
|
+
* Emits when the SmartBox tool input is focused.
|
|
42566
|
+
*/
|
|
42519
42567
|
inputFocus = new EventEmitter();
|
|
42568
|
+
/**
|
|
42569
|
+
* Emits when the SmartBox tool input is blurred.
|
|
42570
|
+
*/
|
|
42520
42571
|
inputBlur = new EventEmitter();
|
|
42572
|
+
/**
|
|
42573
|
+
* Emits before the SmartBox tool sends the AI request.
|
|
42574
|
+
* - When you provide a `requestUrl`, you can handle the event to modify the request options.
|
|
42575
|
+
* - When you do not provide a `requestUrl`, you can handle the event to perform an entirely custom request.
|
|
42576
|
+
*/
|
|
42521
42577
|
aiAssistantPromptRequest = new EventEmitter();
|
|
42578
|
+
/**
|
|
42579
|
+
* Emits when the SmartBox tool completes the AI request successfully.
|
|
42580
|
+
* The event contains the response from the AI service and is preventable to allow stopping the default response handling.
|
|
42581
|
+
*/
|
|
42522
42582
|
aiAssistantResponseSuccess = new EventEmitter();
|
|
42583
|
+
/**
|
|
42584
|
+
* Emits when the SmartBox tool completes the AI request with an error.
|
|
42585
|
+
* The event contains the error response from the AI service and is preventable to allow stopping the default error handling.
|
|
42586
|
+
*/
|
|
42523
42587
|
aiAssistantResponseError = new EventEmitter();
|
|
42588
|
+
/**
|
|
42589
|
+
* Emits when the user clicks the Cancel button.
|
|
42590
|
+
*/
|
|
42524
42591
|
aiAssistantCancelRequest = new EventEmitter();
|
|
42592
|
+
/**
|
|
42593
|
+
* Emits when the user types in Search mode. The event contains the search query and the filter descriptors created based on the query.
|
|
42594
|
+
*/
|
|
42525
42595
|
search = new EventEmitter();
|
|
42596
|
+
/**
|
|
42597
|
+
* Emits when the user types in Semantic Search mode. The event contains the search query and the filter descriptors created based on the query.
|
|
42598
|
+
*/
|
|
42526
42599
|
semanticSearch = new EventEmitter();
|
|
42600
|
+
/**
|
|
42601
|
+
* Emits when the mode of the SmartBox tool changes. The event contains the new mode.
|
|
42602
|
+
*/
|
|
42603
|
+
modeChange = new EventEmitter();
|
|
42604
|
+
/**
|
|
42605
|
+
* Indicates whether the SmartBox tool is in a loading state. Use this to show a loading indicator in the UI.
|
|
42606
|
+
*/
|
|
42527
42607
|
loading = false;
|
|
42528
42608
|
constructor() { super(); }
|
|
42529
42609
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SmartBoxToolbarToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42530
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SmartBoxToolbarToolComponent, isStandalone: true, selector: "kendo-grid-smartbox-tool", inputs: { searchMode: "searchMode", semanticSearchMode: "semanticSearchMode", aiAssistantMode: "aiAssistantMode", activeMode: "activeMode", history: "history", placeholder: "placeholder", size: "size" }, outputs: { open: "open", close: "close", inputFocus: "inputFocus", inputBlur: "inputBlur", aiAssistantPromptRequest: "aiAssistantPromptRequest", aiAssistantResponseSuccess: "aiAssistantResponseSuccess", aiAssistantResponseError: "aiAssistantResponseError", aiAssistantCancelRequest: "aiAssistantCancelRequest", search: "search", semanticSearch: "semanticSearch" }, providers: [
|
|
42610
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: SmartBoxToolbarToolComponent, isStandalone: true, selector: "kendo-grid-smartbox-tool", inputs: { searchMode: "searchMode", semanticSearchMode: "semanticSearchMode", aiAssistantMode: "aiAssistantMode", activeMode: "activeMode", history: "history", placeholder: "placeholder", size: "size" }, outputs: { open: "open", close: "close", inputFocus: "inputFocus", inputBlur: "inputBlur", aiAssistantPromptRequest: "aiAssistantPromptRequest", aiAssistantResponseSuccess: "aiAssistantResponseSuccess", aiAssistantResponseError: "aiAssistantResponseError", aiAssistantCancelRequest: "aiAssistantCancelRequest", search: "search", semanticSearch: "semanticSearch", modeChange: "modeChange" }, providers: [
|
|
42531
42611
|
{
|
|
42532
42612
|
provide: ToolBarToolComponent,
|
|
42533
42613
|
useExisting: forwardRef(() => SmartBoxToolbarToolComponent)
|
|
@@ -42552,13 +42632,14 @@ class SmartBoxToolbarToolComponent extends ToolBarToolComponent {
|
|
|
42552
42632
|
(aiAssistantResponseSuccess)="aiAssistantResponseSuccess.emit($event)"
|
|
42553
42633
|
(aiAssistantResponseError)="aiAssistantResponseError.emit($event)"
|
|
42554
42634
|
(aiAssistantCancelRequest)="aiAssistantCancelRequest.emit()"
|
|
42635
|
+
(modeChange)="modeChange.emit($event)"
|
|
42555
42636
|
[promptSuggestionTemplate]="promptSuggestionTemplate"
|
|
42556
42637
|
[historyItemTemplate]="historyItemTemplate"
|
|
42557
42638
|
[loading]="loading"
|
|
42558
42639
|
>
|
|
42559
42640
|
</kendo-smartbox>
|
|
42560
42641
|
</ng-template>
|
|
42561
|
-
`, isInline: true, dependencies: [{ kind: "component", type: SmartBoxComponent, selector: "kendo-smartbox", inputs: ["searchMode", "semanticSearchMode", "aiAssistantMode", "activeMode", "history", "placeholder", "size", "promptSuggestionTemplate", "historyItemTemplate", "loading"], outputs: ["open", "close", "focus", "blur", "aiAssistantPromptRequest", "aiAssistantResponseSuccess", "aiAssistantResponseError", "aiAssistantCancelRequest", "search", "semanticSearch"] }] });
|
|
42642
|
+
`, isInline: true, dependencies: [{ kind: "component", type: SmartBoxComponent, selector: "kendo-smartbox", inputs: ["searchMode", "semanticSearchMode", "aiAssistantMode", "activeMode", "history", "placeholder", "size", "promptSuggestionTemplate", "historyItemTemplate", "loading"], outputs: ["open", "close", "focus", "blur", "aiAssistantPromptRequest", "aiAssistantResponseSuccess", "aiAssistantResponseError", "aiAssistantCancelRequest", "search", "semanticSearch", "modeChange"] }] });
|
|
42562
42643
|
}
|
|
42563
42644
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SmartBoxToolbarToolComponent, decorators: [{
|
|
42564
42645
|
type: Component,
|
|
@@ -42590,6 +42671,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
42590
42671
|
(aiAssistantResponseSuccess)="aiAssistantResponseSuccess.emit($event)"
|
|
42591
42672
|
(aiAssistantResponseError)="aiAssistantResponseError.emit($event)"
|
|
42592
42673
|
(aiAssistantCancelRequest)="aiAssistantCancelRequest.emit()"
|
|
42674
|
+
(modeChange)="modeChange.emit($event)"
|
|
42593
42675
|
[promptSuggestionTemplate]="promptSuggestionTemplate"
|
|
42594
42676
|
[historyItemTemplate]="historyItemTemplate"
|
|
42595
42677
|
[loading]="loading"
|
|
@@ -42640,6 +42722,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
42640
42722
|
type: Output
|
|
42641
42723
|
}], semanticSearch: [{
|
|
42642
42724
|
type: Output
|
|
42725
|
+
}], modeChange: [{
|
|
42726
|
+
type: Output
|
|
42643
42727
|
}] } });
|
|
42644
42728
|
|
|
42645
42729
|
// DRAGGABLE COLUMN
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "23.0.0-develop.
|
|
10
|
+
"publishDate": 1770381331,
|
|
11
|
+
"version": "23.0.0-develop.8",
|
|
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.0.0-develop.
|
|
3
|
+
"version": "23.0.0-develop.8",
|
|
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":
|
|
76
|
+
"publishDate": 1770381331,
|
|
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.0.0-develop.
|
|
90
|
-
"@progress/kendo-angular-common": "23.0.0-develop.
|
|
91
|
-
"@progress/kendo-angular-dateinputs": "23.0.0-develop.
|
|
92
|
-
"@progress/kendo-angular-layout": "23.0.0-develop.
|
|
93
|
-
"@progress/kendo-angular-navigation": "23.0.0-develop.
|
|
94
|
-
"@progress/kendo-angular-dropdowns": "23.0.0-develop.
|
|
95
|
-
"@progress/kendo-angular-excel-export": "23.0.0-develop.
|
|
96
|
-
"@progress/kendo-angular-icons": "23.0.0-develop.
|
|
97
|
-
"@progress/kendo-angular-indicators": "23.0.0-develop.
|
|
98
|
-
"@progress/kendo-angular-inputs": "23.0.0-develop.
|
|
99
|
-
"@progress/kendo-angular-conversational-ui": "23.0.0-develop.
|
|
100
|
-
"@progress/kendo-angular-intl": "23.0.0-develop.
|
|
101
|
-
"@progress/kendo-angular-l10n": "23.0.0-develop.
|
|
102
|
-
"@progress/kendo-angular-label": "23.0.0-develop.
|
|
103
|
-
"@progress/kendo-angular-menu": "23.0.0-develop.
|
|
104
|
-
"@progress/kendo-angular-pager": "23.0.0-develop.
|
|
105
|
-
"@progress/kendo-angular-pdf-export": "23.0.0-develop.
|
|
106
|
-
"@progress/kendo-angular-popup": "23.0.0-develop.
|
|
107
|
-
"@progress/kendo-angular-toolbar": "23.0.0-develop.
|
|
108
|
-
"@progress/kendo-angular-upload": "23.0.0-develop.
|
|
109
|
-
"@progress/kendo-angular-utils": "23.0.0-develop.
|
|
89
|
+
"@progress/kendo-angular-buttons": "23.0.0-develop.8",
|
|
90
|
+
"@progress/kendo-angular-common": "23.0.0-develop.8",
|
|
91
|
+
"@progress/kendo-angular-dateinputs": "23.0.0-develop.8",
|
|
92
|
+
"@progress/kendo-angular-layout": "23.0.0-develop.8",
|
|
93
|
+
"@progress/kendo-angular-navigation": "23.0.0-develop.8",
|
|
94
|
+
"@progress/kendo-angular-dropdowns": "23.0.0-develop.8",
|
|
95
|
+
"@progress/kendo-angular-excel-export": "23.0.0-develop.8",
|
|
96
|
+
"@progress/kendo-angular-icons": "23.0.0-develop.8",
|
|
97
|
+
"@progress/kendo-angular-indicators": "23.0.0-develop.8",
|
|
98
|
+
"@progress/kendo-angular-inputs": "23.0.0-develop.8",
|
|
99
|
+
"@progress/kendo-angular-conversational-ui": "23.0.0-develop.8",
|
|
100
|
+
"@progress/kendo-angular-intl": "23.0.0-develop.8",
|
|
101
|
+
"@progress/kendo-angular-l10n": "23.0.0-develop.8",
|
|
102
|
+
"@progress/kendo-angular-label": "23.0.0-develop.8",
|
|
103
|
+
"@progress/kendo-angular-menu": "23.0.0-develop.8",
|
|
104
|
+
"@progress/kendo-angular-pager": "23.0.0-develop.8",
|
|
105
|
+
"@progress/kendo-angular-pdf-export": "23.0.0-develop.8",
|
|
106
|
+
"@progress/kendo-angular-popup": "23.0.0-develop.8",
|
|
107
|
+
"@progress/kendo-angular-toolbar": "23.0.0-develop.8",
|
|
108
|
+
"@progress/kendo-angular-upload": "23.0.0-develop.8",
|
|
109
|
+
"@progress/kendo-angular-utils": "23.0.0-develop.8",
|
|
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.0.0-develop.
|
|
114
|
+
"@progress/kendo-angular-schematics": "23.0.0-develop.8",
|
|
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"
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
7
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
8
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
9
|
import { SpeechToTextButtonSettings } from "@progress/kendo-angular-buttons";
|
|
9
10
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
10
|
-
import { HttpClient } from '@angular/common/http';
|
|
11
11
|
import { HistoryItem, SmartBoxAIAssistantSettings, SmartBoxHistorySettings, SmartBoxRequestEvent, SmartBoxResponseErrorEvent, SmartBoxResponseSuccessEvent, SmartBoxSearchEvent, SmartBoxSearchSettings, SmartBoxSemanticSearchEvent, SmartBoxSemanticSearchSettings, SmartBoxSize } from './models';
|
|
12
12
|
import { GridSmartBoxMode } from '../models';
|
|
13
13
|
import { SegmentedButtonSettings } from "../segmented-control/models";
|
|
@@ -68,6 +68,7 @@ export declare class SmartBoxComponent implements AfterViewInit, OnChanges, OnDe
|
|
|
68
68
|
aiAssistantCancelRequest: EventEmitter<undefined>;
|
|
69
69
|
search: EventEmitter<SmartBoxSearchEvent>;
|
|
70
70
|
semanticSearch: EventEmitter<SmartBoxSemanticSearchEvent>;
|
|
71
|
+
modeChange: EventEmitter<GridSmartBoxMode>;
|
|
71
72
|
constructor(popupService: PopupService, wrapper: ElementRef, cdr: ChangeDetectorRef, zone: NgZone, intl: IntlService, ctx: ContextService, aiRequestResponseService: GridAIRequestResponseService, http: HttpClient, renderer: Renderer2, columnInfoService: ColumnInfoService, searchService: SearchService);
|
|
72
73
|
ngOnChanges(changes: SimpleChanges): void;
|
|
73
74
|
ngAfterViewInit(): void;
|
|
@@ -109,7 +110,7 @@ export declare class SmartBoxComponent implements AfterViewInit, OnChanges, OnDe
|
|
|
109
110
|
handleInputKeydown: (event: KeyboardEvent) => void;
|
|
110
111
|
onIconClick: () => void;
|
|
111
112
|
onIconMouseDown: (args: any) => void;
|
|
112
|
-
|
|
113
|
+
clearButtonClick(event: any): void;
|
|
113
114
|
private _searchMode;
|
|
114
115
|
private _semanticSearchMode;
|
|
115
116
|
private _aiAssistantMode;
|
|
@@ -147,6 +148,7 @@ export declare class SmartBoxComponent implements AfterViewInit, OnChanges, OnDe
|
|
|
147
148
|
private updateHistoryData;
|
|
148
149
|
private processResponse;
|
|
149
150
|
private handleError;
|
|
151
|
+
private clearValue;
|
|
150
152
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartBoxComponent, never>;
|
|
151
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartBoxComponent, "kendo-smartbox", never, { "searchMode": { "alias": "searchMode"; "required": false; }; "semanticSearchMode": { "alias": "semanticSearchMode"; "required": false; }; "aiAssistantMode": { "alias": "aiAssistantMode"; "required": false; }; "activeMode": { "alias": "activeMode"; "required": false; }; "history": { "alias": "history"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "promptSuggestionTemplate": { "alias": "promptSuggestionTemplate"; "required": false; }; "historyItemTemplate": { "alias": "historyItemTemplate"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "aiAssistantPromptRequest": "aiAssistantPromptRequest"; "aiAssistantResponseSuccess": "aiAssistantResponseSuccess"; "aiAssistantResponseError": "aiAssistantResponseError"; "aiAssistantCancelRequest": "aiAssistantCancelRequest"; "search": "search"; "semanticSearch": "semanticSearch"; }, never, never, true, never>;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartBoxComponent, "kendo-smartbox", never, { "searchMode": { "alias": "searchMode"; "required": false; }; "semanticSearchMode": { "alias": "semanticSearchMode"; "required": false; }; "aiAssistantMode": { "alias": "aiAssistantMode"; "required": false; }; "activeMode": { "alias": "activeMode"; "required": false; }; "history": { "alias": "history"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "promptSuggestionTemplate": { "alias": "promptSuggestionTemplate"; "required": false; }; "historyItemTemplate": { "alias": "historyItemTemplate"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "aiAssistantPromptRequest": "aiAssistantPromptRequest"; "aiAssistantResponseSuccess": "aiAssistantResponseSuccess"; "aiAssistantResponseError": "aiAssistantResponseError"; "aiAssistantCancelRequest": "aiAssistantCancelRequest"; "search": "search"; "semanticSearch": "semanticSearch"; "modeChange": "modeChange"; }, never, never, true, never>;
|
|
152
154
|
}
|
|
@@ -24,25 +24,97 @@ import * as i0 from "@angular/core";
|
|
|
24
24
|
export declare class SmartBoxToolbarToolComponent extends ToolBarToolComponent {
|
|
25
25
|
promptSuggestionTemplate: GridSmartBoxPromptSuggestionTemplateDirective;
|
|
26
26
|
historyItemTemplate: GridSmartBoxHistoryItemTemplateDirective;
|
|
27
|
+
/**
|
|
28
|
+
* Controls the visibility and settings of the Search mode. By default, the mode is enabled.
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
27
32
|
searchMode: boolean | GridSmartBoxSearchSettings;
|
|
33
|
+
/**
|
|
34
|
+
* Controls the visibility and settings of the Semantic Search mode. By default, the mode is disabled.
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
28
38
|
semanticSearchMode: boolean | GridSmartBoxSemanticSearchSettings;
|
|
39
|
+
/**
|
|
40
|
+
* Controls the visibility and settings of the AI Assistant mode. By default, the mode is disabled.
|
|
41
|
+
*
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
29
44
|
aiAssistantMode: boolean | GridSmartBoxAIAssistantSettings;
|
|
45
|
+
/**
|
|
46
|
+
* Sets the initially active mode of the tool.
|
|
47
|
+
*
|
|
48
|
+
* @default 'search'
|
|
49
|
+
*/
|
|
30
50
|
activeMode: GridSmartBoxMode;
|
|
51
|
+
/**
|
|
52
|
+
* Controls the visibility and settings of the history for each mode.
|
|
53
|
+
*/
|
|
31
54
|
history: boolean | GridSmartBoxHistorySettings;
|
|
55
|
+
/**
|
|
56
|
+
* Sets the placeholder of the input element in the SmartBox and applies to all modes.
|
|
57
|
+
*/
|
|
32
58
|
placeholder: string;
|
|
59
|
+
/**
|
|
60
|
+
* Specifies the padding of the input.
|
|
61
|
+
*
|
|
62
|
+
* @default 'medium'
|
|
63
|
+
*/
|
|
33
64
|
size: GridSmartBoxSize;
|
|
65
|
+
/**
|
|
66
|
+
* Emits when the SmartBox tool opens.
|
|
67
|
+
*/
|
|
34
68
|
open: EventEmitter<any>;
|
|
69
|
+
/**
|
|
70
|
+
* Emits when the SmartBox tool closes.
|
|
71
|
+
*/
|
|
35
72
|
close: EventEmitter<any>;
|
|
73
|
+
/**
|
|
74
|
+
* Emits when the SmartBox tool input is focused.
|
|
75
|
+
*/
|
|
36
76
|
inputFocus: EventEmitter<any>;
|
|
77
|
+
/**
|
|
78
|
+
* Emits when the SmartBox tool input is blurred.
|
|
79
|
+
*/
|
|
37
80
|
inputBlur: EventEmitter<any>;
|
|
81
|
+
/**
|
|
82
|
+
* Emits before the SmartBox tool sends the AI request.
|
|
83
|
+
* - When you provide a `requestUrl`, you can handle the event to modify the request options.
|
|
84
|
+
* - When you do not provide a `requestUrl`, you can handle the event to perform an entirely custom request.
|
|
85
|
+
*/
|
|
38
86
|
aiAssistantPromptRequest: EventEmitter<GridSmartBoxRequestEvent>;
|
|
87
|
+
/**
|
|
88
|
+
* Emits when the SmartBox tool completes the AI request successfully.
|
|
89
|
+
* The event contains the response from the AI service and is preventable to allow stopping the default response handling.
|
|
90
|
+
*/
|
|
39
91
|
aiAssistantResponseSuccess: EventEmitter<GridSmartBoxResponseSuccessEvent>;
|
|
92
|
+
/**
|
|
93
|
+
* Emits when the SmartBox tool completes the AI request with an error.
|
|
94
|
+
* The event contains the error response from the AI service and is preventable to allow stopping the default error handling.
|
|
95
|
+
*/
|
|
40
96
|
aiAssistantResponseError: EventEmitter<GridSmartBoxResponseErrorEvent>;
|
|
97
|
+
/**
|
|
98
|
+
* Emits when the user clicks the Cancel button.
|
|
99
|
+
*/
|
|
41
100
|
aiAssistantCancelRequest: EventEmitter<undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* Emits when the user types in Search mode. The event contains the search query and the filter descriptors created based on the query.
|
|
103
|
+
*/
|
|
42
104
|
search: EventEmitter<GridSmartBoxSearchEvent>;
|
|
105
|
+
/**
|
|
106
|
+
* Emits when the user types in Semantic Search mode. The event contains the search query and the filter descriptors created based on the query.
|
|
107
|
+
*/
|
|
43
108
|
semanticSearch: EventEmitter<GridSmartBoxSemanticSearchEvent>;
|
|
109
|
+
/**
|
|
110
|
+
* Emits when the mode of the SmartBox tool changes. The event contains the new mode.
|
|
111
|
+
*/
|
|
112
|
+
modeChange: EventEmitter<GridSmartBoxMode>;
|
|
113
|
+
/**
|
|
114
|
+
* Indicates whether the SmartBox tool is in a loading state. Use this to show a loading indicator in the UI.
|
|
115
|
+
*/
|
|
44
116
|
loading: boolean;
|
|
45
117
|
constructor();
|
|
46
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartBoxToolbarToolComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartBoxToolbarToolComponent, "kendo-grid-smartbox-tool", never, { "searchMode": { "alias": "searchMode"; "required": false; }; "semanticSearchMode": { "alias": "semanticSearchMode"; "required": false; }; "aiAssistantMode": { "alias": "aiAssistantMode"; "required": false; }; "activeMode": { "alias": "activeMode"; "required": false; }; "history": { "alias": "history"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "open": "open"; "close": "close"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; "aiAssistantPromptRequest": "aiAssistantPromptRequest"; "aiAssistantResponseSuccess": "aiAssistantResponseSuccess"; "aiAssistantResponseError": "aiAssistantResponseError"; "aiAssistantCancelRequest": "aiAssistantCancelRequest"; "search": "search"; "semanticSearch": "semanticSearch"; }, ["promptSuggestionTemplate", "historyItemTemplate"], never, true, never>;
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartBoxToolbarToolComponent, "kendo-grid-smartbox-tool", never, { "searchMode": { "alias": "searchMode"; "required": false; }; "semanticSearchMode": { "alias": "semanticSearchMode"; "required": false; }; "aiAssistantMode": { "alias": "aiAssistantMode"; "required": false; }; "activeMode": { "alias": "activeMode"; "required": false; }; "history": { "alias": "history"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "open": "open"; "close": "close"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; "aiAssistantPromptRequest": "aiAssistantPromptRequest"; "aiAssistantResponseSuccess": "aiAssistantResponseSuccess"; "aiAssistantResponseError": "aiAssistantResponseError"; "aiAssistantCancelRequest": "aiAssistantCancelRequest"; "search": "search"; "semanticSearch": "semanticSearch"; "modeChange": "modeChange"; }, ["promptSuggestionTemplate", "historyItemTemplate"], never, true, never>;
|
|
48
120
|
}
|
|
@@ -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.0.0-develop.
|
|
13
|
-
'@progress/kendo-angular-navigation': '23.0.0-develop.
|
|
12
|
+
'@progress/kendo-angular-treeview': '23.0.0-develop.8',
|
|
13
|
+
'@progress/kendo-angular-navigation': '23.0.0-develop.8',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '23.0.0-develop.
|
|
15
|
+
'@progress/kendo-angular-dialog': '23.0.0-develop.8',
|
|
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.0.0-develop.
|
|
19
|
+
'@progress/kendo-angular-progressbar': '23.0.0-develop.8',
|
|
20
20
|
// transitive peer dependencies from toolbar
|
|
21
|
-
'@progress/kendo-angular-indicators': '23.0.0-develop.
|
|
21
|
+
'@progress/kendo-angular-indicators': '23.0.0-develop.8',
|
|
22
22
|
// transitive peer dependencies from conversational-ui
|
|
23
|
-
'@progress/kendo-angular-menu': '23.0.0-develop.
|
|
24
|
-
'@progress/kendo-angular-upload': '23.0.0-develop.
|
|
23
|
+
'@progress/kendo-angular-menu': '23.0.0-develop.8',
|
|
24
|
+
'@progress/kendo-angular-upload': '23.0.0-develop.8'
|
|
25
25
|
} });
|
|
26
26
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
27
27
|
}
|