@progress/kendo-angular-grid 23.3.0-develop.12 → 23.3.0-develop.14
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 +51 -178
- package/package-metadata.mjs +2 -2
- package/package.json +24 -24
- package/rendering/toolbar/tools/smartbox/smartbox-component/smartbox.component.d.ts +5 -4
- package/schematics/ngAdd/index.js +7 -7
- package/rendering/toolbar/tools/smartbox/segmented-control/models.d.ts +0 -36
- package/rendering/toolbar/tools/smartbox/segmented-control/segmented-control.component.d.ts +0 -45
|
@@ -25,7 +25,7 @@ import { parseDate } from '@progress/kendo-angular-intl';
|
|
|
25
25
|
import * as i2 from '@progress/kendo-angular-popup';
|
|
26
26
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
27
27
|
import * as i1$6 from '@progress/kendo-angular-buttons';
|
|
28
|
-
import { ChipListComponent, ChipComponent, ButtonComponent, Button, KENDO_BUTTON, ButtonDirective,
|
|
28
|
+
import { ChipListComponent, ChipComponent, ButtonComponent, Button, KENDO_BUTTON, ButtonDirective, SpeechToTextButtonComponent, SegmentedControlComponent } from '@progress/kendo-angular-buttons';
|
|
29
29
|
import * as i1$5 from '@progress/kendo-angular-dropdowns';
|
|
30
30
|
import { DropDownListComponent, AutoCompleteComponent, DataService, SelectionService as SelectionService$1, NavigationService as NavigationService$1, DisabledItemsService } from '@progress/kendo-angular-dropdowns';
|
|
31
31
|
import * as i2$2 from '@angular/forms';
|
|
@@ -24242,8 +24242,8 @@ const packageMetadata = {
|
|
|
24242
24242
|
productName: 'Kendo UI for Angular',
|
|
24243
24243
|
productCode: 'KENDOUIANGULAR',
|
|
24244
24244
|
productCodes: ['KENDOUIANGULAR'],
|
|
24245
|
-
publishDate:
|
|
24246
|
-
version: '23.3.0-develop.
|
|
24245
|
+
publishDate: 1774455185,
|
|
24246
|
+
version: '23.3.0-develop.14',
|
|
24247
24247
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
24248
24248
|
};
|
|
24249
24249
|
|
|
@@ -41145,158 +41145,6 @@ class GridSmartBoxSearchEvent extends SmartBoxSearchEvent {
|
|
|
41145
41145
|
}
|
|
41146
41146
|
}
|
|
41147
41147
|
|
|
41148
|
-
const SIZES_MAP = {
|
|
41149
|
-
small: 'sm',
|
|
41150
|
-
medium: 'md',
|
|
41151
|
-
large: 'lg'
|
|
41152
|
-
};
|
|
41153
|
-
/**
|
|
41154
|
-
* @hidden
|
|
41155
|
-
*/
|
|
41156
|
-
class SegmentedControlComponent {
|
|
41157
|
-
renderer;
|
|
41158
|
-
wrapper;
|
|
41159
|
-
cdr;
|
|
41160
|
-
zone;
|
|
41161
|
-
hostClasses = true;
|
|
41162
|
-
hostRole = 'group';
|
|
41163
|
-
thumb;
|
|
41164
|
-
/**
|
|
41165
|
-
* Specifies the collection of buttons that will be rendered inside the SegmentedControlComponent.
|
|
41166
|
-
*/
|
|
41167
|
-
buttons = [];
|
|
41168
|
-
/**
|
|
41169
|
-
* Sets the padding of the control.
|
|
41170
|
-
*
|
|
41171
|
-
* @default undefined
|
|
41172
|
-
*/
|
|
41173
|
-
set size(size) {
|
|
41174
|
-
const newSize = size;
|
|
41175
|
-
this.handleSizeClass(newSize, this._size);
|
|
41176
|
-
this._size = newSize;
|
|
41177
|
-
}
|
|
41178
|
-
get size() {
|
|
41179
|
-
return this._size;
|
|
41180
|
-
}
|
|
41181
|
-
/**
|
|
41182
|
-
* Fires when a button is clicked.
|
|
41183
|
-
*/
|
|
41184
|
-
buttonClick = new EventEmitter();
|
|
41185
|
-
ngAfterViewInit() {
|
|
41186
|
-
this.handleSizeClass(this._size, null);
|
|
41187
|
-
this.selectedButtonIndex = this.buttons.indexOf(this.buttons.find(b => b.selected)) || 0;
|
|
41188
|
-
this.cdr.detectChanges();
|
|
41189
|
-
this.zone.onStable.pipe(take(1)).subscribe(() => this.showSelectionIndicator());
|
|
41190
|
-
}
|
|
41191
|
-
handleClick(button, index) {
|
|
41192
|
-
this.selectedButtonIndex = index;
|
|
41193
|
-
this.cdr.detectChanges();
|
|
41194
|
-
this.buttonClick.emit(button);
|
|
41195
|
-
this.showSelectionIndicator();
|
|
41196
|
-
}
|
|
41197
|
-
getInnerIconClass(button) {
|
|
41198
|
-
const baseClass = 'k-segmented-control-button-icon';
|
|
41199
|
-
return button.iconInnerCssClass ? `${baseClass} ${button.iconInnerCssClass}` : baseClass;
|
|
41200
|
-
}
|
|
41201
|
-
constructor(renderer, wrapper, cdr, zone) {
|
|
41202
|
-
this.renderer = renderer;
|
|
41203
|
-
this.wrapper = wrapper;
|
|
41204
|
-
this.cdr = cdr;
|
|
41205
|
-
this.zone = zone;
|
|
41206
|
-
}
|
|
41207
|
-
showSelectionIndicator() {
|
|
41208
|
-
const element = this.wrapper.nativeElement;
|
|
41209
|
-
const controlRect = element.getBoundingClientRect();
|
|
41210
|
-
const selectedItem = element.querySelector('.k-segmented-control-button.k-selected');
|
|
41211
|
-
const selectionIndicator = this.thumb ? this.thumb.nativeElement : null;
|
|
41212
|
-
if (!selectedItem || !selectionIndicator) {
|
|
41213
|
-
return;
|
|
41214
|
-
}
|
|
41215
|
-
const itemRect = selectedItem.getBoundingClientRect();
|
|
41216
|
-
const left = itemRect.left - controlRect.left;
|
|
41217
|
-
const right = controlRect.right - itemRect.right;
|
|
41218
|
-
this.renderer.setStyle(selectionIndicator, 'left', `${left}px`);
|
|
41219
|
-
this.renderer.setStyle(selectionIndicator, 'right', `${right}px`);
|
|
41220
|
-
}
|
|
41221
|
-
selectedButtonIndex = 0;
|
|
41222
|
-
_size;
|
|
41223
|
-
handleSizeClass(newValue, prevValue) {
|
|
41224
|
-
if (!this.wrapper) {
|
|
41225
|
-
return;
|
|
41226
|
-
}
|
|
41227
|
-
const elem = this.wrapper.nativeElement;
|
|
41228
|
-
const classToRemove = prevValue ? `k-segmented-control-${SIZES_MAP[prevValue]}` : null;
|
|
41229
|
-
const classToAdd = newValue ? `k-segmented-control-${SIZES_MAP[newValue]}` : null;
|
|
41230
|
-
classToRemove && this.renderer.removeClass(elem, classToRemove);
|
|
41231
|
-
classToAdd && this.renderer.addClass(elem, classToAdd);
|
|
41232
|
-
}
|
|
41233
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
41234
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: SegmentedControlComponent, isStandalone: true, selector: "kendo-segmented-control", inputs: { buttons: "buttons", size: "size" }, outputs: { buttonClick: "buttonClick" }, host: { properties: { "class.k-segmented-control": "this.hostClasses", "class.k-segmented-control-stretched": "this.hostClasses", "attr.role": "this.hostRole" } }, viewQueries: [{ propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true }], ngImport: i0, template: `
|
|
41235
|
-
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
41236
|
-
@for (button of buttons; track $index; let idx = $index) {
|
|
41237
|
-
<button type="button"
|
|
41238
|
-
class="k-segmented-control-button"
|
|
41239
|
-
[class.k-disabled]="button.disabled"
|
|
41240
|
-
[attr.disabled]="button.disabled ? true : null"
|
|
41241
|
-
(click)="handleClick(button, idx)"
|
|
41242
|
-
[class.k-selected]="selectedButtonIndex === idx"
|
|
41243
|
-
[attr.aria-pressed]="selectedButtonIndex === idx ? 'true' : 'false'">
|
|
41244
|
-
<kendo-icon-wrapper
|
|
41245
|
-
[innerCssClass]="getInnerIconClass(button)"
|
|
41246
|
-
[name]="button.icon"
|
|
41247
|
-
[svgIcon]="button.svgIcon">
|
|
41248
|
-
</kendo-icon-wrapper>
|
|
41249
|
-
<span class="k-segmented-control-button-text">{{button.text}}</span>
|
|
41250
|
-
</button>
|
|
41251
|
-
}
|
|
41252
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
41253
|
-
}
|
|
41254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlComponent, decorators: [{
|
|
41255
|
-
type: Component,
|
|
41256
|
-
args: [{
|
|
41257
|
-
selector: 'kendo-segmented-control',
|
|
41258
|
-
standalone: true,
|
|
41259
|
-
imports: [IconWrapperComponent],
|
|
41260
|
-
template: `
|
|
41261
|
-
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
41262
|
-
@for (button of buttons; track $index; let idx = $index) {
|
|
41263
|
-
<button type="button"
|
|
41264
|
-
class="k-segmented-control-button"
|
|
41265
|
-
[class.k-disabled]="button.disabled"
|
|
41266
|
-
[attr.disabled]="button.disabled ? true : null"
|
|
41267
|
-
(click)="handleClick(button, idx)"
|
|
41268
|
-
[class.k-selected]="selectedButtonIndex === idx"
|
|
41269
|
-
[attr.aria-pressed]="selectedButtonIndex === idx ? 'true' : 'false'">
|
|
41270
|
-
<kendo-icon-wrapper
|
|
41271
|
-
[innerCssClass]="getInnerIconClass(button)"
|
|
41272
|
-
[name]="button.icon"
|
|
41273
|
-
[svgIcon]="button.svgIcon">
|
|
41274
|
-
</kendo-icon-wrapper>
|
|
41275
|
-
<span class="k-segmented-control-button-text">{{button.text}}</span>
|
|
41276
|
-
</button>
|
|
41277
|
-
}
|
|
41278
|
-
`
|
|
41279
|
-
}]
|
|
41280
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { hostClasses: [{
|
|
41281
|
-
type: HostBinding,
|
|
41282
|
-
args: ['class.k-segmented-control']
|
|
41283
|
-
}, {
|
|
41284
|
-
type: HostBinding,
|
|
41285
|
-
args: ['class.k-segmented-control-stretched']
|
|
41286
|
-
}], hostRole: [{
|
|
41287
|
-
type: HostBinding,
|
|
41288
|
-
args: ['attr.role']
|
|
41289
|
-
}], thumb: [{
|
|
41290
|
-
type: ViewChild,
|
|
41291
|
-
args: ['thumb']
|
|
41292
|
-
}], buttons: [{
|
|
41293
|
-
type: Input
|
|
41294
|
-
}], size: [{
|
|
41295
|
-
type: Input
|
|
41296
|
-
}], buttonClick: [{
|
|
41297
|
-
type: Output
|
|
41298
|
-
}] } });
|
|
41299
|
-
|
|
41300
41148
|
/**
|
|
41301
41149
|
* Renders the prompt suggestion content.
|
|
41302
41150
|
*
|
|
@@ -41682,22 +41530,8 @@ class SmartBoxComponent {
|
|
|
41682
41530
|
aiAssistantHistory = [];
|
|
41683
41531
|
searchHistory = [];
|
|
41684
41532
|
semanticSearchHistory = [];
|
|
41685
|
-
|
|
41686
|
-
|
|
41687
|
-
if ((this.searchMode?.enabled || this.semanticSearchMode?.enabled) && this.aiAssistantMode?.enabled) {
|
|
41688
|
-
if (this.searchMode?.enabled && !this.semanticSearchMode?.enabled) {
|
|
41689
|
-
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: searchIcon, icon: 'search', selected: this.selectedView === 'search' });
|
|
41690
|
-
}
|
|
41691
|
-
else if (!this.searchMode?.enabled && this.semanticSearchMode?.enabled) {
|
|
41692
|
-
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: zoomSparkleIcon, icon: 'zoom-sparkle', selected: this.selectedView === 'semanticSearch', iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : '' });
|
|
41693
|
-
}
|
|
41694
|
-
else if (this.searchMode?.enabled && this.semanticSearchMode?.enabled) {
|
|
41695
|
-
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: searchIcon, icon: 'search', selected: this.selectedView === 'search' || this.selectedView === 'semanticSearch', iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : '' });
|
|
41696
|
-
}
|
|
41697
|
-
buttons.push({ text: this.messageFor('smartBoxAIAssistantModePopupButton'), svgIcon: sparklesIcon, icon: 'sparkles', selected: this.selectedView === 'aiAssistant', iconInnerCssClass: this.selectedView === 'aiAssistant' ? 'k-accent-icon' : '' });
|
|
41698
|
-
}
|
|
41699
|
-
return buttons;
|
|
41700
|
-
}
|
|
41533
|
+
segmentedControlButtons = [];
|
|
41534
|
+
segmentedControlSelectedIndex = 0;
|
|
41701
41535
|
get prefixIconName() {
|
|
41702
41536
|
switch (this.selectedView) {
|
|
41703
41537
|
case 'search':
|
|
@@ -41728,8 +41562,9 @@ class SmartBoxComponent {
|
|
|
41728
41562
|
formatDate(date, format) {
|
|
41729
41563
|
return this.intl.formatDate(date, format);
|
|
41730
41564
|
}
|
|
41731
|
-
onModeChange(
|
|
41565
|
+
onModeChange(index) {
|
|
41732
41566
|
this.clearTypingTimeout();
|
|
41567
|
+
const button = this.segmentedControlButtons[index];
|
|
41733
41568
|
let previousView;
|
|
41734
41569
|
if (this.searchListData.length > 0) {
|
|
41735
41570
|
previousView = this.searchListData.find(i => i.selected)?.text;
|
|
@@ -41754,6 +41589,7 @@ class SmartBoxComponent {
|
|
|
41754
41589
|
if (!previousView) {
|
|
41755
41590
|
this.updateSearchListData();
|
|
41756
41591
|
}
|
|
41592
|
+
this.updateSegmentedControlState();
|
|
41757
41593
|
this.modeChange.emit(this.selectedView);
|
|
41758
41594
|
if (this.selectedView === 'search') {
|
|
41759
41595
|
this.input.nativeElement.value = this.lastSearchValue || '';
|
|
@@ -41774,6 +41610,7 @@ class SmartBoxComponent {
|
|
|
41774
41610
|
else {
|
|
41775
41611
|
this.input.nativeElement.value = '';
|
|
41776
41612
|
}
|
|
41613
|
+
this.updateSegmentedControlState();
|
|
41777
41614
|
this.modeChange.emit(this.selectedView);
|
|
41778
41615
|
this.cdr.markForCheck();
|
|
41779
41616
|
}
|
|
@@ -42211,10 +42048,12 @@ class SmartBoxComponent {
|
|
|
42211
42048
|
const modeSettings = this[`${this._activeMode}Mode`];
|
|
42212
42049
|
if (modeSettings?.enabled) {
|
|
42213
42050
|
this.selectedView = this._activeMode;
|
|
42051
|
+
this.updateSegmentedControlState();
|
|
42214
42052
|
return;
|
|
42215
42053
|
}
|
|
42216
42054
|
}
|
|
42217
42055
|
if (this.selectedView && this[`${this.selectedView}Mode`]?.enabled) {
|
|
42056
|
+
this.updateSegmentedControlState();
|
|
42218
42057
|
return;
|
|
42219
42058
|
}
|
|
42220
42059
|
if (this.searchMode?.enabled) {
|
|
@@ -42230,6 +42069,36 @@ class SmartBoxComponent {
|
|
|
42230
42069
|
else {
|
|
42231
42070
|
this.selectedView = null;
|
|
42232
42071
|
}
|
|
42072
|
+
this.updateSegmentedControlState();
|
|
42073
|
+
}
|
|
42074
|
+
updateSegmentedControlState() {
|
|
42075
|
+
const buttons = [];
|
|
42076
|
+
if ((this.searchMode?.enabled || this.semanticSearchMode?.enabled) && this.aiAssistantMode?.enabled) {
|
|
42077
|
+
if (this.searchMode?.enabled) {
|
|
42078
|
+
buttons.push({
|
|
42079
|
+
text: this.messageFor('smartBoxSearchModePopupButton'),
|
|
42080
|
+
svgIcon: searchIcon,
|
|
42081
|
+
icon: 'search',
|
|
42082
|
+
iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : ''
|
|
42083
|
+
});
|
|
42084
|
+
}
|
|
42085
|
+
else {
|
|
42086
|
+
buttons.push({
|
|
42087
|
+
text: this.messageFor('smartBoxSearchModePopupButton'),
|
|
42088
|
+
svgIcon: zoomSparkleIcon,
|
|
42089
|
+
icon: 'zoom-sparkle',
|
|
42090
|
+
iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : ''
|
|
42091
|
+
});
|
|
42092
|
+
}
|
|
42093
|
+
buttons.push({
|
|
42094
|
+
text: this.messageFor('smartBoxAIAssistantModePopupButton'),
|
|
42095
|
+
svgIcon: sparklesIcon,
|
|
42096
|
+
icon: 'sparkles',
|
|
42097
|
+
iconInnerCssClass: this.selectedView === 'aiAssistant' ? 'k-accent-icon' : ''
|
|
42098
|
+
});
|
|
42099
|
+
}
|
|
42100
|
+
this.segmentedControlButtons = buttons;
|
|
42101
|
+
this.segmentedControlSelectedIndex = this.selectedView === 'aiAssistant' ? buttons.length - 1 : 0;
|
|
42233
42102
|
}
|
|
42234
42103
|
updateHistoryData() {
|
|
42235
42104
|
if (this.searchHistorySettings && this.searchHistory.length > this.searchHistorySettings.size) {
|
|
@@ -42358,8 +42227,10 @@ class SmartBoxComponent {
|
|
|
42358
42227
|
<ng-template #popupTemplate>
|
|
42359
42228
|
@if (segmentedControlButtons.length > 0) {
|
|
42360
42229
|
<kendo-segmented-control
|
|
42361
|
-
[
|
|
42362
|
-
|
|
42230
|
+
[items]="segmentedControlButtons"
|
|
42231
|
+
[selected]="segmentedControlSelectedIndex"
|
|
42232
|
+
layoutMode="stretch"
|
|
42233
|
+
(selectedChange)="onModeChange($event)"
|
|
42363
42234
|
size="small">
|
|
42364
42235
|
</kendo-segmented-control>
|
|
42365
42236
|
}
|
|
@@ -42531,14 +42402,14 @@ class SmartBoxComponent {
|
|
|
42531
42402
|
</div>
|
|
42532
42403
|
</div>
|
|
42533
42404
|
</ng-template>
|
|
42534
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
42405
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: SpeechToTextButtonComponent, selector: "button[kendoSpeechToTextButton]", inputs: ["disabled", "size", "rounded", "fillMode", "themeColor", "integrationMode", "lang", "continuous", "interimResults", "maxAlternatives"], outputs: ["start", "end", "result", "error", "click"], exportAs: ["kendoSpeechToTextButton"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: SegmentedControlComponent, selector: "kendo-segmented-control", inputs: ["items", "layoutMode", "size", "selected"], outputs: ["selectedChange"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
42535
42406
|
}
|
|
42536
42407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SmartBoxComponent, decorators: [{
|
|
42537
42408
|
type: Component,
|
|
42538
42409
|
args: [{
|
|
42539
42410
|
selector: 'kendo-smartbox',
|
|
42540
42411
|
standalone: true,
|
|
42541
|
-
imports: [
|
|
42412
|
+
imports: [EventsOutsideAngularDirective, IconWrapperComponent, SpeechToTextButtonComponent, ButtonComponent, SegmentedControlComponent, TemplateContextDirective],
|
|
42542
42413
|
providers: [DataService, SelectionService$1, NavigationService$1, DisabledItemsService],
|
|
42543
42414
|
template: `
|
|
42544
42415
|
<span #innerWrapper
|
|
@@ -42632,8 +42503,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
42632
42503
|
<ng-template #popupTemplate>
|
|
42633
42504
|
@if (segmentedControlButtons.length > 0) {
|
|
42634
42505
|
<kendo-segmented-control
|
|
42635
|
-
[
|
|
42636
|
-
|
|
42506
|
+
[items]="segmentedControlButtons"
|
|
42507
|
+
[selected]="segmentedControlSelectedIndex"
|
|
42508
|
+
layoutMode="stretch"
|
|
42509
|
+
(selectedChange)="onModeChange($event)"
|
|
42637
42510
|
size="small">
|
|
42638
42511
|
</kendo-segmented-control>
|
|
42639
42512
|
}
|
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.3.0-develop.
|
|
10
|
+
"publishDate": 1774455185,
|
|
11
|
+
"version": "23.3.0-develop.14",
|
|
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.3.0-develop.
|
|
3
|
+
"version": "23.3.0-develop.14",
|
|
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": 1774455185,
|
|
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.1",
|
|
88
88
|
"@progress/kendo-licensing": "^1.10.0",
|
|
89
|
-
"@progress/kendo-angular-buttons": "23.3.0-develop.
|
|
90
|
-
"@progress/kendo-angular-common": "23.3.0-develop.
|
|
91
|
-
"@progress/kendo-angular-dateinputs": "23.3.0-develop.
|
|
92
|
-
"@progress/kendo-angular-layout": "23.3.0-develop.
|
|
93
|
-
"@progress/kendo-angular-navigation": "23.3.0-develop.
|
|
94
|
-
"@progress/kendo-angular-dropdowns": "23.3.0-develop.
|
|
95
|
-
"@progress/kendo-angular-excel-export": "23.3.0-develop.
|
|
96
|
-
"@progress/kendo-angular-icons": "23.3.0-develop.
|
|
97
|
-
"@progress/kendo-angular-indicators": "23.3.0-develop.
|
|
98
|
-
"@progress/kendo-angular-inputs": "23.3.0-develop.
|
|
99
|
-
"@progress/kendo-angular-conversational-ui": "23.3.0-develop.
|
|
100
|
-
"@progress/kendo-angular-intl": "23.3.0-develop.
|
|
101
|
-
"@progress/kendo-angular-l10n": "23.3.0-develop.
|
|
102
|
-
"@progress/kendo-angular-label": "23.3.0-develop.
|
|
103
|
-
"@progress/kendo-angular-menu": "23.3.0-develop.
|
|
104
|
-
"@progress/kendo-angular-pager": "23.3.0-develop.
|
|
105
|
-
"@progress/kendo-angular-pdf-export": "23.3.0-develop.
|
|
106
|
-
"@progress/kendo-angular-popup": "23.3.0-develop.
|
|
107
|
-
"@progress/kendo-angular-toolbar": "23.3.0-develop.
|
|
108
|
-
"@progress/kendo-angular-upload": "23.3.0-develop.
|
|
109
|
-
"@progress/kendo-angular-utils": "23.3.0-develop.
|
|
89
|
+
"@progress/kendo-angular-buttons": "23.3.0-develop.14",
|
|
90
|
+
"@progress/kendo-angular-common": "23.3.0-develop.14",
|
|
91
|
+
"@progress/kendo-angular-dateinputs": "23.3.0-develop.14",
|
|
92
|
+
"@progress/kendo-angular-layout": "23.3.0-develop.14",
|
|
93
|
+
"@progress/kendo-angular-navigation": "23.3.0-develop.14",
|
|
94
|
+
"@progress/kendo-angular-dropdowns": "23.3.0-develop.14",
|
|
95
|
+
"@progress/kendo-angular-excel-export": "23.3.0-develop.14",
|
|
96
|
+
"@progress/kendo-angular-icons": "23.3.0-develop.14",
|
|
97
|
+
"@progress/kendo-angular-indicators": "23.3.0-develop.14",
|
|
98
|
+
"@progress/kendo-angular-inputs": "23.3.0-develop.14",
|
|
99
|
+
"@progress/kendo-angular-conversational-ui": "23.3.0-develop.14",
|
|
100
|
+
"@progress/kendo-angular-intl": "23.3.0-develop.14",
|
|
101
|
+
"@progress/kendo-angular-l10n": "23.3.0-develop.14",
|
|
102
|
+
"@progress/kendo-angular-label": "23.3.0-develop.14",
|
|
103
|
+
"@progress/kendo-angular-menu": "23.3.0-develop.14",
|
|
104
|
+
"@progress/kendo-angular-pager": "23.3.0-develop.14",
|
|
105
|
+
"@progress/kendo-angular-pdf-export": "23.3.0-develop.14",
|
|
106
|
+
"@progress/kendo-angular-popup": "23.3.0-develop.14",
|
|
107
|
+
"@progress/kendo-angular-toolbar": "23.3.0-develop.14",
|
|
108
|
+
"@progress/kendo-angular-upload": "23.3.0-develop.14",
|
|
109
|
+
"@progress/kendo-angular-utils": "23.3.0-develop.14",
|
|
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.3.0-develop.
|
|
114
|
+
"@progress/kendo-angular-schematics": "23.3.0-develop.14",
|
|
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"
|
|
@@ -6,11 +6,10 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnC
|
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
8
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { SpeechToTextButtonSettings } from "@progress/kendo-angular-buttons";
|
|
9
|
+
import { SpeechToTextButtonSettings, SegmentedItemSettings } from "@progress/kendo-angular-buttons";
|
|
10
10
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
11
11
|
import { HistoryItem, SmartBoxAIAssistantSettings, SmartBoxHistorySettings, SmartBoxRequestEvent, SmartBoxResponseErrorEvent, SmartBoxResponseSuccessEvent, SmartBoxSearchEvent, SmartBoxSearchSettings, SmartBoxSemanticSearchEvent, SmartBoxSemanticSearchSettings, SmartBoxSize } from './models';
|
|
12
12
|
import { GridSmartBoxMode } from '../models';
|
|
13
|
-
import { SegmentedButtonSettings } from "../segmented-control/models";
|
|
14
13
|
import { ContextService } from '../../../../../common/provider.service';
|
|
15
14
|
import { GridAIRequestResponseService } from '../../ai-assistant/ai-request-response.service';
|
|
16
15
|
import { GridSmartBoxPromptSuggestionTemplateDirective } from '../smartbox-suggestion.template';
|
|
@@ -94,12 +93,13 @@ export declare class SmartBoxComponent implements AfterViewInit, OnChanges, OnDe
|
|
|
94
93
|
aiAssistantHistory: HistoryItem[];
|
|
95
94
|
searchHistory: HistoryItem[];
|
|
96
95
|
semanticSearchHistory: HistoryItem[];
|
|
97
|
-
|
|
96
|
+
segmentedControlButtons: SegmentedItemSettings[];
|
|
97
|
+
segmentedControlSelectedIndex: number;
|
|
98
98
|
get prefixIconName(): string;
|
|
99
99
|
get prefixSVGIcon(): SVGIcon;
|
|
100
100
|
messageFor(message: string): string;
|
|
101
101
|
formatDate(date: Date, format: string): string;
|
|
102
|
-
onModeChange(
|
|
102
|
+
onModeChange(index: number): void;
|
|
103
103
|
onSearchItemClick(item: any): void;
|
|
104
104
|
onListItemClick(item: string): void;
|
|
105
105
|
handleInput: (_event: any) => void;
|
|
@@ -147,6 +147,7 @@ export declare class SmartBoxComponent implements AfterViewInit, OnChanges, OnDe
|
|
|
147
147
|
private updateModeSettingsFromSharedInputs;
|
|
148
148
|
private updateSearchListData;
|
|
149
149
|
private updateSelectedView;
|
|
150
|
+
private updateSegmentedControlState;
|
|
150
151
|
private updateHistoryData;
|
|
151
152
|
private processResponse;
|
|
152
153
|
private handleError;
|
|
@@ -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.3.0-develop.
|
|
13
|
-
'@progress/kendo-angular-navigation': '23.3.0-develop.
|
|
12
|
+
'@progress/kendo-angular-treeview': '23.3.0-develop.14',
|
|
13
|
+
'@progress/kendo-angular-navigation': '23.3.0-develop.14',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '23.3.0-develop.
|
|
15
|
+
'@progress/kendo-angular-dialog': '23.3.0-develop.14',
|
|
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.3.0-develop.
|
|
19
|
+
'@progress/kendo-angular-progressbar': '23.3.0-develop.14',
|
|
20
20
|
// transitive peer dependencies from toolbar
|
|
21
|
-
'@progress/kendo-angular-indicators': '23.3.0-develop.
|
|
21
|
+
'@progress/kendo-angular-indicators': '23.3.0-develop.14',
|
|
22
22
|
// transitive peer dependencies from conversational-ui
|
|
23
|
-
'@progress/kendo-angular-menu': '23.3.0-develop.
|
|
24
|
-
'@progress/kendo-angular-upload': '23.3.0-develop.
|
|
23
|
+
'@progress/kendo-angular-menu': '23.3.0-develop.14',
|
|
24
|
+
'@progress/kendo-angular-upload': '23.3.0-develop.14'
|
|
25
25
|
} });
|
|
26
26
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
27
27
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*
|
|
9
|
-
* Defines the settings for a Button inside the SegmentedControlComponent.
|
|
10
|
-
*/
|
|
11
|
-
export interface SegmentedButtonSettings {
|
|
12
|
-
/**
|
|
13
|
-
* Sets the name of an existing font icon in the Kendo UI theme.
|
|
14
|
-
*/
|
|
15
|
-
icon?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Sets an SVG icon to display inside the Button.
|
|
18
|
-
*/
|
|
19
|
-
svgIcon?: SVGIcon;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the text content of the Button.
|
|
22
|
-
*/
|
|
23
|
-
text?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Specifies whether the Button is disabled.
|
|
26
|
-
*/
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies whether the Button is selected.
|
|
30
|
-
*/
|
|
31
|
-
selected?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Sets an additional class on the internal Icon component of the button.
|
|
34
|
-
*/
|
|
35
|
-
iconInnerCssClass?: string;
|
|
36
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, Renderer2 } from '@angular/core';
|
|
6
|
-
import { ButtonSize } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { SegmentedButtonSettings } from './models';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class SegmentedControlComponent implements AfterViewInit {
|
|
13
|
-
private renderer;
|
|
14
|
-
private wrapper;
|
|
15
|
-
private cdr;
|
|
16
|
-
private zone;
|
|
17
|
-
hostClasses: boolean;
|
|
18
|
-
hostRole: string;
|
|
19
|
-
thumb: ElementRef;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the collection of buttons that will be rendered inside the SegmentedControlComponent.
|
|
22
|
-
*/
|
|
23
|
-
buttons: Array<SegmentedButtonSettings>;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the padding of the control.
|
|
26
|
-
*
|
|
27
|
-
* @default undefined
|
|
28
|
-
*/
|
|
29
|
-
set size(size: ButtonSize);
|
|
30
|
-
get size(): ButtonSize;
|
|
31
|
-
/**
|
|
32
|
-
* Fires when a button is clicked.
|
|
33
|
-
*/
|
|
34
|
-
buttonClick: EventEmitter<SegmentedButtonSettings>;
|
|
35
|
-
ngAfterViewInit(): void;
|
|
36
|
-
handleClick(button: SegmentedButtonSettings, index: number): void;
|
|
37
|
-
getInnerIconClass(button: SegmentedButtonSettings): string;
|
|
38
|
-
constructor(renderer: Renderer2, wrapper: ElementRef, cdr: ChangeDetectorRef, zone: NgZone);
|
|
39
|
-
showSelectionIndicator(): void;
|
|
40
|
-
selectedButtonIndex: number;
|
|
41
|
-
private _size;
|
|
42
|
-
private handleSizeClass;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedControlComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentedControlComponent, "kendo-segmented-control", never, { "buttons": { "alias": "buttons"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
45
|
-
}
|