@progress/kendo-angular-grid 23.3.0-develop.11 → 23.3.0-develop.13
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 +58 -272
- package/grid.component.d.ts +2 -2
- package/index.d.ts +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +24 -24
- package/rendering/list.component.d.ts +2 -2
- package/rendering/toolbar/tools/smartbox/smartbox-component/smartbox.component.d.ts +5 -4
- package/schematics/ngAdd/index.js +7 -7
- package/layout/browser-support.service.d.ts +0 -22
- 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
|
@@ -7,11 +7,12 @@ import { EventEmitter, Injectable, SecurityContext, InjectionToken, Optional, In
|
|
|
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
9
|
import { isDocumentAvailable, Keys, hasClasses as hasClasses$1, isPresent as isPresent$1, normalizeKeys, anyChanged, TemplateContextDirective, DraggableDirective, EventsOutsideAngularDirective, replaceMessagePlaceholder, isChanged as isChanged$1, KendoInput, guid, areObjectsEqual, PrefixTemplateDirective, closest as closest$1, hasObservers, ResizeSensorComponent, isFirefox, firefoxMaxHeight, closestInScope as closestInScope$1, isFocusable as isFocusable$1, getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent, PreventableEvent as PreventableEvent$1, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
|
+
export { BrowserSupportService, ScrollbarService } from '@progress/kendo-angular-common';
|
|
10
11
|
import * as i1 from '@angular/platform-browser';
|
|
11
12
|
import * as i1$1 from '@progress/kendo-angular-icons';
|
|
12
13
|
import { IconWrapperComponent, IconsService, KENDO_ICONS } from '@progress/kendo-angular-icons';
|
|
13
14
|
import { plusIcon, cancelIcon, lockIcon, unlockIcon, caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, arrowLeftIcon, arrowRightIcon, sortDescSmallIcon, sortAscSmallIcon, filterClearIcon, filterIcon, searchIcon, checkIcon, arrowRotateCcwIcon, columnsIcon, sparklesIcon, fileCsvIcon, filePdfIcon, fileExcelIcon, trashIcon, saveIcon, pencilIcon, chevronUpIcon, chevronDownIcon, chevronRightIcon, displayInlineFlexIcon, maxWidthIcon, stickIcon, unstickIcon, setColumnPositionIcon, slidersIcon, moreVerticalIcon, reorderIcon, minusIcon, insertMiddleIcon, xIcon, xCircleIcon, plusCircleIcon, chevronLeftIcon, undoIcon, redoIcon, arrowsSwapIcon, groupIcon, tableWizardIcon, clockArrowRotateIcon, fileClockOutlineIcon, zoomSparkleIcon, arrowUpOutlineIcon, stopSmIcon, lightbulbOutlineIcon } from '@progress/kendo-svg-icons';
|
|
14
|
-
import { switchMap, take, map, filter, takeUntil, switchMapTo, delay, tap, throttleTime, debounceTime, distinctUntilChanged, skip,
|
|
15
|
+
import { switchMap, take, map, filter, takeUntil, switchMapTo, delay, tap, throttleTime, debounceTime, distinctUntilChanged, skip, bufferCount, flatMap } from 'rxjs/operators';
|
|
15
16
|
import * as i1$2 from '@progress/kendo-angular-l10n';
|
|
16
17
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
17
18
|
import * as i56 from '@progress/kendo-angular-pager';
|
|
@@ -24,7 +25,7 @@ import { parseDate } from '@progress/kendo-angular-intl';
|
|
|
24
25
|
import * as i2 from '@progress/kendo-angular-popup';
|
|
25
26
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
26
27
|
import * as i1$6 from '@progress/kendo-angular-buttons';
|
|
27
|
-
import { ChipListComponent, ChipComponent, ButtonComponent, Button, KENDO_BUTTON, ButtonDirective,
|
|
28
|
+
import { ChipListComponent, ChipComponent, ButtonComponent, Button, KENDO_BUTTON, ButtonDirective, SpeechToTextButtonComponent, SegmentedControlComponent } from '@progress/kendo-angular-buttons';
|
|
28
29
|
import * as i1$5 from '@progress/kendo-angular-dropdowns';
|
|
29
30
|
import { DropDownListComponent, AutoCompleteComponent, DataService, SelectionService as SelectionService$1, NavigationService as NavigationService$1, DisabledItemsService } from '@progress/kendo-angular-dropdowns';
|
|
30
31
|
import * as i2$2 from '@angular/forms';
|
|
@@ -24241,8 +24242,8 @@ const packageMetadata = {
|
|
|
24241
24242
|
productName: 'Kendo UI for Angular',
|
|
24242
24243
|
productCode: 'KENDOUIANGULAR',
|
|
24243
24244
|
productCodes: ['KENDOUIANGULAR'],
|
|
24244
|
-
publishDate:
|
|
24245
|
-
version: '23.3.0-develop.
|
|
24245
|
+
publishDate: 1774450134,
|
|
24246
|
+
version: '23.3.0-develop.13',
|
|
24246
24247
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
24247
24248
|
};
|
|
24248
24249
|
|
|
@@ -24966,92 +24967,6 @@ const normalizeSettings = ({ buttonCount = 10, info = true, type = 'numeric', pa
|
|
|
24966
24967
|
*/
|
|
24967
24968
|
const normalize = (settings) => normalizeSettings(settings === true ? {} : settings);
|
|
24968
24969
|
|
|
24969
|
-
const canCreateElement = () => isDocumentAvailable() && document.createElement;
|
|
24970
|
-
let cachedScrollbarWidth = null;
|
|
24971
|
-
let cachedPixelRatio;
|
|
24972
|
-
let cachedRtlScrollLeft = null;
|
|
24973
|
-
function scrollbarWidth() {
|
|
24974
|
-
if (cachedScrollbarWidth === null && canCreateElement()) {
|
|
24975
|
-
cachedPixelRatio = window.devicePixelRatio || 1;
|
|
24976
|
-
const div = document.createElement("div");
|
|
24977
|
-
div.style.cssText = "overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block";
|
|
24978
|
-
div.innerHTML = " ";
|
|
24979
|
-
document.body.appendChild(div);
|
|
24980
|
-
cachedScrollbarWidth = div.offsetWidth - div.scrollWidth;
|
|
24981
|
-
document.body.removeChild(div);
|
|
24982
|
-
}
|
|
24983
|
-
return cachedScrollbarWidth;
|
|
24984
|
-
}
|
|
24985
|
-
function rtlScrollLeft() {
|
|
24986
|
-
if (cachedRtlScrollLeft === null && canCreateElement()) {
|
|
24987
|
-
const outer = document.createElement('div');
|
|
24988
|
-
outer.style.direction = 'rtl';
|
|
24989
|
-
outer.style.display = 'block';
|
|
24990
|
-
outer.style.clear = 'both';
|
|
24991
|
-
outer.style.width = '100px';
|
|
24992
|
-
outer.style.visibility = 'hidden';
|
|
24993
|
-
outer.style.position = 'absolute';
|
|
24994
|
-
outer.style.left = '-10000px';
|
|
24995
|
-
outer.style.overflow = 'scroll';
|
|
24996
|
-
outer.style.zoom = '1';
|
|
24997
|
-
const inner = document.createElement('div');
|
|
24998
|
-
inner.style.width = '200px';
|
|
24999
|
-
inner.style.height = '1px';
|
|
25000
|
-
outer.append(inner);
|
|
25001
|
-
document.body.appendChild(outer);
|
|
25002
|
-
const initial = outer.scrollLeft;
|
|
25003
|
-
outer.scrollLeft = -1;
|
|
25004
|
-
cachedRtlScrollLeft = outer.scrollLeft < 0 ? outer.scrollLeft : initial;
|
|
25005
|
-
document.body.removeChild(outer);
|
|
25006
|
-
}
|
|
25007
|
-
return cachedRtlScrollLeft;
|
|
25008
|
-
}
|
|
25009
|
-
/**
|
|
25010
|
-
* @hidden
|
|
25011
|
-
* move to kendo-common
|
|
25012
|
-
*/
|
|
25013
|
-
class BrowserSupportService {
|
|
25014
|
-
zone;
|
|
25015
|
-
changeDetector;
|
|
25016
|
-
changes = new EventEmitter();
|
|
25017
|
-
subscriptions;
|
|
25018
|
-
constructor(zone, changeDetector) {
|
|
25019
|
-
this.zone = zone;
|
|
25020
|
-
this.changeDetector = changeDetector;
|
|
25021
|
-
if (typeof window === 'undefined') {
|
|
25022
|
-
return;
|
|
25023
|
-
}
|
|
25024
|
-
this.zone.runOutsideAngular(() => {
|
|
25025
|
-
this.subscriptions = fromEvent(window, 'resize').pipe(auditTime(100)).subscribe(() => {
|
|
25026
|
-
if (cachedPixelRatio !== window.devicePixelRatio) {
|
|
25027
|
-
zone.run(() => {
|
|
25028
|
-
cachedScrollbarWidth = null;
|
|
25029
|
-
this.changes.emit();
|
|
25030
|
-
this.changeDetector.markForCheck();
|
|
25031
|
-
});
|
|
25032
|
-
}
|
|
25033
|
-
});
|
|
25034
|
-
});
|
|
25035
|
-
}
|
|
25036
|
-
ngOnDestroy() {
|
|
25037
|
-
if (this.subscriptions) {
|
|
25038
|
-
this.subscriptions.unsubscribe();
|
|
25039
|
-
this.subscriptions = null;
|
|
25040
|
-
}
|
|
25041
|
-
}
|
|
25042
|
-
get scrollbarWidth() {
|
|
25043
|
-
return scrollbarWidth();
|
|
25044
|
-
}
|
|
25045
|
-
get rtlScrollLeft() {
|
|
25046
|
-
return rtlScrollLeft();
|
|
25047
|
-
}
|
|
25048
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BrowserSupportService, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
25049
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BrowserSupportService });
|
|
25050
|
-
}
|
|
25051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: BrowserSupportService, decorators: [{
|
|
25052
|
-
type: Injectable
|
|
25053
|
-
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }] });
|
|
25054
|
-
|
|
25055
24970
|
const isGroupItem = (source) => {
|
|
25056
24971
|
return source.items !== undefined &&
|
|
25057
24972
|
source.field !== undefined;
|
|
@@ -28226,7 +28141,7 @@ class ListComponent {
|
|
|
28226
28141
|
this.scroller.scrollHeightContainer = this.container.nativeElement.querySelector('.k-height-container');
|
|
28227
28142
|
this.scroller.total = this.isVirtual && !this.ctx.grid?.pageable ? this.total : this.allItems.length;
|
|
28228
28143
|
}
|
|
28229
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: DetailsService }, { token: ChangeNotificationService }, { token: SuspendService }, { token: GroupsService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: ScrollSyncService }, { token: ResizeService }, { token: EditService }, { token:
|
|
28144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: DetailsService }, { token: ChangeNotificationService }, { token: SuspendService }, { token: GroupsService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: ScrollSyncService }, { token: ResizeService }, { token: EditService }, { token: i1$3.ScrollbarService }, { token: NavigationService }, { token: ScrollRequestService }, { token: ContextService }, { token: ColumnResizingService }, { token: i0.ChangeDetectorRef }, { token: PDFService }, { token: ColumnInfoService }, { token: DataMappingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
28230
28145
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ListComponent, isStandalone: true, selector: "kendo-grid-list", inputs: { data: "data", groups: "groups", total: "total", rowHeight: "rowHeight", detailRowHeight: "detailRowHeight", take: "take", skip: "skip", columns: "columns", detailTemplate: "detailTemplate", noRecordsTemplate: "noRecordsTemplate", selectable: "selectable", groupable: "groupable", filterable: "filterable", rowClass: "rowClass", rowSticky: "rowSticky", loading: "loading", trackBy: "trackBy", virtualColumns: "virtualColumns", isVirtual: "isVirtual", cellLoadingTemplate: "cellLoadingTemplate", loadingTemplate: "loadingTemplate", sort: "sort", size: "size" }, outputs: { contentScroll: "contentScroll", pageChange: "pageChange", scrollBottom: "scrollBottom" }, host: { properties: { "class.k-grid-container": "this.hostClass", "attr.role": "this.hostRole" } }, providers: [
|
|
28231
28146
|
{
|
|
28232
28147
|
provide: SCROLLER_FACTORY_TOKEN,
|
|
@@ -28503,7 +28418,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
28503
28418
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
28504
28419
|
type: Inject,
|
|
28505
28420
|
args: [SCROLLER_FACTORY_TOKEN]
|
|
28506
|
-
}] }, { type: DetailsService }, { type: ChangeNotificationService }, { type: SuspendService }, { type: GroupsService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: ScrollSyncService }, { type: ResizeService }, { type: EditService }, { type:
|
|
28421
|
+
}] }, { type: DetailsService }, { type: ChangeNotificationService }, { type: SuspendService }, { type: GroupsService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: ScrollSyncService }, { type: ResizeService }, { type: EditService }, { type: i1$3.ScrollbarService }, { type: NavigationService }, { type: ScrollRequestService }, { type: ContextService }, { type: ColumnResizingService }, { type: i0.ChangeDetectorRef }, { type: PDFService }, { type: ColumnInfoService }, { type: DataMappingService }], propDecorators: { hostClass: [{
|
|
28507
28422
|
type: HostBinding,
|
|
28508
28423
|
args: ['class.k-grid-container']
|
|
28509
28424
|
}], hostRole: [{
|
|
@@ -34792,9 +34707,8 @@ class GridComponent {
|
|
|
34792
34707
|
this.dragTargetContainer?.notify();
|
|
34793
34708
|
this.dropTargetContainer?.notify();
|
|
34794
34709
|
}
|
|
34795
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GridComponent, deps: [{ token:
|
|
34710
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: GridComponent, deps: [{ token: i1$3.ScrollbarService }, { token: SelectionService }, { token: CellSelectionService }, { token: i0.ElementRef }, { token: GroupInfoService }, { token: GroupsService }, { token: ChangeNotificationService }, { token: DetailsService }, { token: EditService }, { token: FilterService }, { token: PDFService }, { token: ResponsiveService }, { token: i0.Renderer2 }, { token: ExcelService }, { token: CSVService }, { token: i0.NgZone }, { token: ScrollSyncService }, { token: DomEventsService }, { token: ColumnResizingService }, { token: i0.ChangeDetectorRef }, { token: ColumnReorderService }, { token: ColumnInfoService }, { token: NavigationService }, { token: SortService }, { token: ScrollRequestService }, { token: i1$2.LocalizationService }, { token: ContextService }, { token: SizingOptionsService }, { token: AdaptiveGridService }, { token: RowReorderService }, { token: DataMappingService }, { token: GridAIRequestResponseService }, { token: IdService }, { token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
34796
34711
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: GridComponent, isStandalone: true, selector: "kendo-grid", inputs: { data: "data", pageSize: "pageSize", height: "height", rowHeight: "rowHeight", adaptiveMode: "adaptiveMode", detailRowHeight: "detailRowHeight", skip: "skip", scrollable: "scrollable", selectable: "selectable", sort: "sort", size: "size", trackBy: "trackBy", filter: "filter", group: "group", virtualColumns: "virtualColumns", filterable: "filterable", sortable: "sortable", pageable: "pageable", groupable: "groupable", gridResizable: "gridResizable", rowReorderable: "rowReorderable", navigable: "navigable", autoSize: "autoSize", rowClass: "rowClass", rowSticky: "rowSticky", rowSelected: "rowSelected", isRowSelectable: "isRowSelectable", cellSelected: "cellSelected", resizable: "resizable", reorderable: "reorderable", loading: "loading", columnMenu: "columnMenu", hideHeader: "hideHeader", showInactiveTools: "showInactiveTools", isDetailExpanded: "isDetailExpanded", isGroupExpanded: "isGroupExpanded", dataLayoutMode: "dataLayoutMode" }, outputs: { filterChange: "filterChange", pageChange: "pageChange", groupChange: "groupChange", sortChange: "sortChange", selectionChange: "selectionChange", rowReorder: "rowReorder", dataStateChange: "dataStateChange", gridStateChange: "gridStateChange", groupExpand: "groupExpand", groupCollapse: "groupCollapse", detailExpand: "detailExpand", detailCollapse: "detailCollapse", edit: "edit", cancel: "cancel", save: "save", remove: "remove", add: "add", cellClose: "cellClose", cellClick: "cellClick", pdfExport: "pdfExport", excelExport: "excelExport", csvExport: "csvExport", columnResize: "columnResize", columnReorder: "columnReorder", columnVisibilityChange: "columnVisibilityChange", columnLockedChange: "columnLockedChange", columnStickyChange: "columnStickyChange", scrollBottom: "scrollBottom", contentScroll: "contentScroll" }, host: { properties: { "attr.dir": "this.dir", "class.k-grid": "this.hostClass", "class.k-grid-sm": "this.sizeSmallClass", "class.k-grid-md": "this.sizeMediumClass", "class.k-grid-stack": "this.stackedClass", "class.k-grid-lockedcolumns": "this.lockedClasses", "class.k-grid-virtual": "this.virtualClasses", "class.k-grid-no-scrollbar": "this.noScrollbarClass", "class.k-grid-resizable": "this.isResizable", "style.minWidth": "this.minWidth", "style.maxWidth": "this.maxWidth", "style.minHeight": "this.minHeight", "style.maxHeight": "this.maxHeight" } }, providers: [
|
|
34797
|
-
BrowserSupportService,
|
|
34798
34712
|
LocalizationService,
|
|
34799
34713
|
ColumnInfoService,
|
|
34800
34714
|
SelectionService,
|
|
@@ -35784,7 +35698,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
35784
35698
|
encapsulation: ViewEncapsulation.None,
|
|
35785
35699
|
exportAs: 'kendoGrid',
|
|
35786
35700
|
providers: [
|
|
35787
|
-
BrowserSupportService,
|
|
35788
35701
|
LocalizationService,
|
|
35789
35702
|
ColumnInfoService,
|
|
35790
35703
|
SelectionService,
|
|
@@ -36796,7 +36709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
36796
36709
|
ResizeSensorComponent
|
|
36797
36710
|
]
|
|
36798
36711
|
}]
|
|
36799
|
-
}], ctorParameters: () => [{ type:
|
|
36712
|
+
}], ctorParameters: () => [{ type: i1$3.ScrollbarService }, { type: SelectionService }, { type: CellSelectionService }, { type: i0.ElementRef }, { type: GroupInfoService }, { type: GroupsService }, { type: ChangeNotificationService }, { type: DetailsService }, { type: EditService }, { type: FilterService }, { type: PDFService }, { type: ResponsiveService }, { type: i0.Renderer2 }, { type: ExcelService }, { type: CSVService }, { type: i0.NgZone }, { type: ScrollSyncService }, { type: DomEventsService }, { type: ColumnResizingService }, { type: i0.ChangeDetectorRef }, { type: ColumnReorderService }, { type: ColumnInfoService }, { type: NavigationService }, { type: SortService }, { type: ScrollRequestService }, { type: i1$2.LocalizationService }, { type: ContextService }, { type: SizingOptionsService }, { type: AdaptiveGridService }, { type: RowReorderService }, { type: DataMappingService }, { type: GridAIRequestResponseService }, { type: IdService }, { type: SearchService }], propDecorators: { data: [{
|
|
36800
36713
|
type: Input
|
|
36801
36714
|
}], pageSize: [{
|
|
36802
36715
|
type: Input
|
|
@@ -41232,158 +41145,6 @@ class GridSmartBoxSearchEvent extends SmartBoxSearchEvent {
|
|
|
41232
41145
|
}
|
|
41233
41146
|
}
|
|
41234
41147
|
|
|
41235
|
-
const SIZES_MAP = {
|
|
41236
|
-
small: 'sm',
|
|
41237
|
-
medium: 'md',
|
|
41238
|
-
large: 'lg'
|
|
41239
|
-
};
|
|
41240
|
-
/**
|
|
41241
|
-
* @hidden
|
|
41242
|
-
*/
|
|
41243
|
-
class SegmentedControlComponent {
|
|
41244
|
-
renderer;
|
|
41245
|
-
wrapper;
|
|
41246
|
-
cdr;
|
|
41247
|
-
zone;
|
|
41248
|
-
hostClasses = true;
|
|
41249
|
-
hostRole = 'group';
|
|
41250
|
-
thumb;
|
|
41251
|
-
/**
|
|
41252
|
-
* Specifies the collection of buttons that will be rendered inside the SegmentedControlComponent.
|
|
41253
|
-
*/
|
|
41254
|
-
buttons = [];
|
|
41255
|
-
/**
|
|
41256
|
-
* Sets the padding of the control.
|
|
41257
|
-
*
|
|
41258
|
-
* @default undefined
|
|
41259
|
-
*/
|
|
41260
|
-
set size(size) {
|
|
41261
|
-
const newSize = size;
|
|
41262
|
-
this.handleSizeClass(newSize, this._size);
|
|
41263
|
-
this._size = newSize;
|
|
41264
|
-
}
|
|
41265
|
-
get size() {
|
|
41266
|
-
return this._size;
|
|
41267
|
-
}
|
|
41268
|
-
/**
|
|
41269
|
-
* Fires when a button is clicked.
|
|
41270
|
-
*/
|
|
41271
|
-
buttonClick = new EventEmitter();
|
|
41272
|
-
ngAfterViewInit() {
|
|
41273
|
-
this.handleSizeClass(this._size, null);
|
|
41274
|
-
this.selectedButtonIndex = this.buttons.indexOf(this.buttons.find(b => b.selected)) || 0;
|
|
41275
|
-
this.cdr.detectChanges();
|
|
41276
|
-
this.zone.onStable.pipe(take(1)).subscribe(() => this.showSelectionIndicator());
|
|
41277
|
-
}
|
|
41278
|
-
handleClick(button, index) {
|
|
41279
|
-
this.selectedButtonIndex = index;
|
|
41280
|
-
this.cdr.detectChanges();
|
|
41281
|
-
this.buttonClick.emit(button);
|
|
41282
|
-
this.showSelectionIndicator();
|
|
41283
|
-
}
|
|
41284
|
-
getInnerIconClass(button) {
|
|
41285
|
-
const baseClass = 'k-segmented-control-button-icon';
|
|
41286
|
-
return button.iconInnerCssClass ? `${baseClass} ${button.iconInnerCssClass}` : baseClass;
|
|
41287
|
-
}
|
|
41288
|
-
constructor(renderer, wrapper, cdr, zone) {
|
|
41289
|
-
this.renderer = renderer;
|
|
41290
|
-
this.wrapper = wrapper;
|
|
41291
|
-
this.cdr = cdr;
|
|
41292
|
-
this.zone = zone;
|
|
41293
|
-
}
|
|
41294
|
-
showSelectionIndicator() {
|
|
41295
|
-
const element = this.wrapper.nativeElement;
|
|
41296
|
-
const controlRect = element.getBoundingClientRect();
|
|
41297
|
-
const selectedItem = element.querySelector('.k-segmented-control-button.k-selected');
|
|
41298
|
-
const selectionIndicator = this.thumb ? this.thumb.nativeElement : null;
|
|
41299
|
-
if (!selectedItem || !selectionIndicator) {
|
|
41300
|
-
return;
|
|
41301
|
-
}
|
|
41302
|
-
const itemRect = selectedItem.getBoundingClientRect();
|
|
41303
|
-
const left = itemRect.left - controlRect.left;
|
|
41304
|
-
const right = controlRect.right - itemRect.right;
|
|
41305
|
-
this.renderer.setStyle(selectionIndicator, 'left', `${left}px`);
|
|
41306
|
-
this.renderer.setStyle(selectionIndicator, 'right', `${right}px`);
|
|
41307
|
-
}
|
|
41308
|
-
selectedButtonIndex = 0;
|
|
41309
|
-
_size;
|
|
41310
|
-
handleSizeClass(newValue, prevValue) {
|
|
41311
|
-
if (!this.wrapper) {
|
|
41312
|
-
return;
|
|
41313
|
-
}
|
|
41314
|
-
const elem = this.wrapper.nativeElement;
|
|
41315
|
-
const classToRemove = prevValue ? `k-segmented-control-${SIZES_MAP[prevValue]}` : null;
|
|
41316
|
-
const classToAdd = newValue ? `k-segmented-control-${SIZES_MAP[newValue]}` : null;
|
|
41317
|
-
classToRemove && this.renderer.removeClass(elem, classToRemove);
|
|
41318
|
-
classToAdd && this.renderer.addClass(elem, classToAdd);
|
|
41319
|
-
}
|
|
41320
|
-
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 });
|
|
41321
|
-
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: `
|
|
41322
|
-
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
41323
|
-
@for (button of buttons; track $index; let idx = $index) {
|
|
41324
|
-
<button type="button"
|
|
41325
|
-
class="k-segmented-control-button"
|
|
41326
|
-
[class.k-disabled]="button.disabled"
|
|
41327
|
-
[attr.disabled]="button.disabled ? true : null"
|
|
41328
|
-
(click)="handleClick(button, idx)"
|
|
41329
|
-
[class.k-selected]="selectedButtonIndex === idx"
|
|
41330
|
-
[attr.aria-pressed]="selectedButtonIndex === idx ? 'true' : 'false'">
|
|
41331
|
-
<kendo-icon-wrapper
|
|
41332
|
-
[innerCssClass]="getInnerIconClass(button)"
|
|
41333
|
-
[name]="button.icon"
|
|
41334
|
-
[svgIcon]="button.svgIcon">
|
|
41335
|
-
</kendo-icon-wrapper>
|
|
41336
|
-
<span class="k-segmented-control-button-text">{{button.text}}</span>
|
|
41337
|
-
</button>
|
|
41338
|
-
}
|
|
41339
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
41340
|
-
}
|
|
41341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SegmentedControlComponent, decorators: [{
|
|
41342
|
-
type: Component,
|
|
41343
|
-
args: [{
|
|
41344
|
-
selector: 'kendo-segmented-control',
|
|
41345
|
-
standalone: true,
|
|
41346
|
-
imports: [IconWrapperComponent],
|
|
41347
|
-
template: `
|
|
41348
|
-
<div class="k-segmented-control-thumb" #thumb [attr.aria-hidden]="true"></div>
|
|
41349
|
-
@for (button of buttons; track $index; let idx = $index) {
|
|
41350
|
-
<button type="button"
|
|
41351
|
-
class="k-segmented-control-button"
|
|
41352
|
-
[class.k-disabled]="button.disabled"
|
|
41353
|
-
[attr.disabled]="button.disabled ? true : null"
|
|
41354
|
-
(click)="handleClick(button, idx)"
|
|
41355
|
-
[class.k-selected]="selectedButtonIndex === idx"
|
|
41356
|
-
[attr.aria-pressed]="selectedButtonIndex === idx ? 'true' : 'false'">
|
|
41357
|
-
<kendo-icon-wrapper
|
|
41358
|
-
[innerCssClass]="getInnerIconClass(button)"
|
|
41359
|
-
[name]="button.icon"
|
|
41360
|
-
[svgIcon]="button.svgIcon">
|
|
41361
|
-
</kendo-icon-wrapper>
|
|
41362
|
-
<span class="k-segmented-control-button-text">{{button.text}}</span>
|
|
41363
|
-
</button>
|
|
41364
|
-
}
|
|
41365
|
-
`
|
|
41366
|
-
}]
|
|
41367
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }], propDecorators: { hostClasses: [{
|
|
41368
|
-
type: HostBinding,
|
|
41369
|
-
args: ['class.k-segmented-control']
|
|
41370
|
-
}, {
|
|
41371
|
-
type: HostBinding,
|
|
41372
|
-
args: ['class.k-segmented-control-stretched']
|
|
41373
|
-
}], hostRole: [{
|
|
41374
|
-
type: HostBinding,
|
|
41375
|
-
args: ['attr.role']
|
|
41376
|
-
}], thumb: [{
|
|
41377
|
-
type: ViewChild,
|
|
41378
|
-
args: ['thumb']
|
|
41379
|
-
}], buttons: [{
|
|
41380
|
-
type: Input
|
|
41381
|
-
}], size: [{
|
|
41382
|
-
type: Input
|
|
41383
|
-
}], buttonClick: [{
|
|
41384
|
-
type: Output
|
|
41385
|
-
}] } });
|
|
41386
|
-
|
|
41387
41148
|
/**
|
|
41388
41149
|
* Renders the prompt suggestion content.
|
|
41389
41150
|
*
|
|
@@ -41769,22 +41530,8 @@ class SmartBoxComponent {
|
|
|
41769
41530
|
aiAssistantHistory = [];
|
|
41770
41531
|
searchHistory = [];
|
|
41771
41532
|
semanticSearchHistory = [];
|
|
41772
|
-
|
|
41773
|
-
|
|
41774
|
-
if ((this.searchMode?.enabled || this.semanticSearchMode?.enabled) && this.aiAssistantMode?.enabled) {
|
|
41775
|
-
if (this.searchMode?.enabled && !this.semanticSearchMode?.enabled) {
|
|
41776
|
-
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: searchIcon, icon: 'search', selected: this.selectedView === 'search' });
|
|
41777
|
-
}
|
|
41778
|
-
else if (!this.searchMode?.enabled && this.semanticSearchMode?.enabled) {
|
|
41779
|
-
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: zoomSparkleIcon, icon: 'zoom-sparkle', selected: this.selectedView === 'semanticSearch', iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : '' });
|
|
41780
|
-
}
|
|
41781
|
-
else if (this.searchMode?.enabled && this.semanticSearchMode?.enabled) {
|
|
41782
|
-
buttons.push({ text: this.messageFor('smartBoxSearchModePopupButton'), svgIcon: searchIcon, icon: 'search', selected: this.selectedView === 'search' || this.selectedView === 'semanticSearch', iconInnerCssClass: this.selectedView === 'semanticSearch' ? 'k-accent-icon' : '' });
|
|
41783
|
-
}
|
|
41784
|
-
buttons.push({ text: this.messageFor('smartBoxAIAssistantModePopupButton'), svgIcon: sparklesIcon, icon: 'sparkles', selected: this.selectedView === 'aiAssistant', iconInnerCssClass: this.selectedView === 'aiAssistant' ? 'k-accent-icon' : '' });
|
|
41785
|
-
}
|
|
41786
|
-
return buttons;
|
|
41787
|
-
}
|
|
41533
|
+
segmentedControlButtons = [];
|
|
41534
|
+
segmentedControlSelectedIndex = 0;
|
|
41788
41535
|
get prefixIconName() {
|
|
41789
41536
|
switch (this.selectedView) {
|
|
41790
41537
|
case 'search':
|
|
@@ -41815,8 +41562,9 @@ class SmartBoxComponent {
|
|
|
41815
41562
|
formatDate(date, format) {
|
|
41816
41563
|
return this.intl.formatDate(date, format);
|
|
41817
41564
|
}
|
|
41818
|
-
onModeChange(
|
|
41565
|
+
onModeChange(index) {
|
|
41819
41566
|
this.clearTypingTimeout();
|
|
41567
|
+
const button = this.segmentedControlButtons[index];
|
|
41820
41568
|
let previousView;
|
|
41821
41569
|
if (this.searchListData.length > 0) {
|
|
41822
41570
|
previousView = this.searchListData.find(i => i.selected)?.text;
|
|
@@ -41841,6 +41589,7 @@ class SmartBoxComponent {
|
|
|
41841
41589
|
if (!previousView) {
|
|
41842
41590
|
this.updateSearchListData();
|
|
41843
41591
|
}
|
|
41592
|
+
this.updateSegmentedControlState();
|
|
41844
41593
|
this.modeChange.emit(this.selectedView);
|
|
41845
41594
|
if (this.selectedView === 'search') {
|
|
41846
41595
|
this.input.nativeElement.value = this.lastSearchValue || '';
|
|
@@ -41861,6 +41610,7 @@ class SmartBoxComponent {
|
|
|
41861
41610
|
else {
|
|
41862
41611
|
this.input.nativeElement.value = '';
|
|
41863
41612
|
}
|
|
41613
|
+
this.updateSegmentedControlState();
|
|
41864
41614
|
this.modeChange.emit(this.selectedView);
|
|
41865
41615
|
this.cdr.markForCheck();
|
|
41866
41616
|
}
|
|
@@ -42298,10 +42048,12 @@ class SmartBoxComponent {
|
|
|
42298
42048
|
const modeSettings = this[`${this._activeMode}Mode`];
|
|
42299
42049
|
if (modeSettings?.enabled) {
|
|
42300
42050
|
this.selectedView = this._activeMode;
|
|
42051
|
+
this.updateSegmentedControlState();
|
|
42301
42052
|
return;
|
|
42302
42053
|
}
|
|
42303
42054
|
}
|
|
42304
42055
|
if (this.selectedView && this[`${this.selectedView}Mode`]?.enabled) {
|
|
42056
|
+
this.updateSegmentedControlState();
|
|
42305
42057
|
return;
|
|
42306
42058
|
}
|
|
42307
42059
|
if (this.searchMode?.enabled) {
|
|
@@ -42317,6 +42069,36 @@ class SmartBoxComponent {
|
|
|
42317
42069
|
else {
|
|
42318
42070
|
this.selectedView = null;
|
|
42319
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;
|
|
42320
42102
|
}
|
|
42321
42103
|
updateHistoryData() {
|
|
42322
42104
|
if (this.searchHistorySettings && this.searchHistory.length > this.searchHistorySettings.size) {
|
|
@@ -42445,8 +42227,10 @@ class SmartBoxComponent {
|
|
|
42445
42227
|
<ng-template #popupTemplate>
|
|
42446
42228
|
@if (segmentedControlButtons.length > 0) {
|
|
42447
42229
|
<kendo-segmented-control
|
|
42448
|
-
[
|
|
42449
|
-
|
|
42230
|
+
[items]="segmentedControlButtons"
|
|
42231
|
+
[selected]="segmentedControlSelectedIndex"
|
|
42232
|
+
layoutMode="stretch"
|
|
42233
|
+
(selectedChange)="onModeChange($event)"
|
|
42450
42234
|
size="small">
|
|
42451
42235
|
</kendo-segmented-control>
|
|
42452
42236
|
}
|
|
@@ -42618,14 +42402,14 @@ class SmartBoxComponent {
|
|
|
42618
42402
|
</div>
|
|
42619
42403
|
</div>
|
|
42620
42404
|
</ng-template>
|
|
42621
|
-
`, 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"] }] });
|
|
42622
42406
|
}
|
|
42623
42407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: SmartBoxComponent, decorators: [{
|
|
42624
42408
|
type: Component,
|
|
42625
42409
|
args: [{
|
|
42626
42410
|
selector: 'kendo-smartbox',
|
|
42627
42411
|
standalone: true,
|
|
42628
|
-
imports: [
|
|
42412
|
+
imports: [EventsOutsideAngularDirective, IconWrapperComponent, SpeechToTextButtonComponent, ButtonComponent, SegmentedControlComponent, TemplateContextDirective],
|
|
42629
42413
|
providers: [DataService, SelectionService$1, NavigationService$1, DisabledItemsService],
|
|
42630
42414
|
template: `
|
|
42631
42415
|
<span #innerWrapper
|
|
@@ -42719,8 +42503,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
42719
42503
|
<ng-template #popupTemplate>
|
|
42720
42504
|
@if (segmentedControlButtons.length > 0) {
|
|
42721
42505
|
<kendo-segmented-control
|
|
42722
|
-
[
|
|
42723
|
-
|
|
42506
|
+
[items]="segmentedControlButtons"
|
|
42507
|
+
[selected]="segmentedControlSelectedIndex"
|
|
42508
|
+
layoutMode="stretch"
|
|
42509
|
+
(selectedChange)="onModeChange($event)"
|
|
42724
42510
|
size="small">
|
|
42725
42511
|
</kendo-segmented-control>
|
|
42726
42512
|
}
|
|
@@ -43720,5 +43506,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
43720
43506
|
* Generated bundle index. Do not edit.
|
|
43721
43507
|
*/
|
|
43722
43508
|
|
|
43723
|
-
export { AIAssistantToolbarDirective, AdaptiveGridService, AddCommandDirective, AddCommandToolbarDirective, AfterEqFilterOperatorComponent, AfterFilterOperatorComponent, AutoCompleteFilterCellComponent, BaseFilterCellComponent, BeforeEqFilterOperatorComponent, BeforeFilterOperatorComponent, BooleanFilterCellComponent, BooleanFilterComponent, BooleanFilterMenuComponent, BooleanFilterRadioButtonDirective,
|
|
43509
|
+
export { AIAssistantToolbarDirective, AdaptiveGridService, AddCommandDirective, AddCommandToolbarDirective, AfterEqFilterOperatorComponent, AfterFilterOperatorComponent, AutoCompleteFilterCellComponent, BaseFilterCellComponent, BeforeEqFilterOperatorComponent, BeforeFilterOperatorComponent, BooleanFilterCellComponent, BooleanFilterComponent, BooleanFilterMenuComponent, BooleanFilterRadioButtonDirective, CELL_CONTEXT, CSVCommandDirective, CSVCommandToolbarDirective, CSVComponent, CSVExportEvent, CSVModule, CSVService, 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, FilterOperatorBase, FilterRowComponent, FilterService, FocusRoot, FocusableDirective, FooterComponent, FooterTemplateDirective, GreaterFilterOperatorComponent, GreaterOrEqualToFilterOperatorComponent, GridAIAssistantResponseErrorEvent, GridAIAssistantResponseSuccessEvent, GridClipboardDirective, GridComponent, GridModule, GridSmartBoxHistoryItemTemplateDirective, GridSmartBoxPromptSuggestionTemplateDirective, GridSmartBoxResponseErrorEvent, GridSmartBoxResponseSuccessEvent, GridSmartBoxSearchEvent, GridSpacerComponent, GridTableDirective, GridToolbarFocusableDirective, GridToolbarNavigationService, 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_CSV_EXPORT, 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, MultiCheckboxFilterComponent, 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, SmartBoxToolbarToolComponent, SortCommandToolbarDirective, SortService, SpanColumnComponent, StartsWithFilterOperatorComponent, StatusBarTemplateDirective, StringFilterCellComponent, StringFilterComponent, StringFilterMenuComponent, StringFilterMenuInputComponent, SuspendService, TableBodyComponent, TableDirective, TemplateEditingDirective, ToolbarComponent, ToolbarTemplateDirective, UndoCommandToolbarDirective, UndoRedoDirective, UndoRedoEvent, defaultTrackBy, hasFilterMenu, hasFilterRow, isFilterable };
|
|
43724
43510
|
|
package/grid.component.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { DetailTemplateDirective } from './rendering/details/detail-template.dir
|
|
|
13
13
|
import { ScrollMode } from './scrolling/scrollmode';
|
|
14
14
|
import { SortSettings } from './columns/sort-settings';
|
|
15
15
|
import { PagerSettings } from './common/pager-settings';
|
|
16
|
-
import {
|
|
16
|
+
import { ScrollbarService } from '@progress/kendo-angular-common';
|
|
17
17
|
import { GridDataResult, DataCollection } from './data/data.collection';
|
|
18
18
|
import { SelectionService } from './selection/selection.service';
|
|
19
19
|
import { EditService } from './editing/edit.service';
|
|
@@ -761,7 +761,7 @@ export declare class GridComponent implements AfterContentInit, AfterViewInit, O
|
|
|
761
761
|
private rowReorderSubscription;
|
|
762
762
|
private rtl;
|
|
763
763
|
private _rowSticky;
|
|
764
|
-
constructor(supportService:
|
|
764
|
+
constructor(supportService: ScrollbarService, selectionService: SelectionService, cellSelectionService: CellSelectionService, wrapper: ElementRef, groupInfoService: GroupInfoService, groupsService: GroupsService, changeNotification: ChangeNotificationService, detailsService: DetailsService, editService: EditService, filterService: FilterService, pdfService: PDFService, responsiveService: ResponsiveService, renderer: Renderer2, excelService: ExcelService, csvService: CSVService, ngZone: NgZone, scrollSyncService: ScrollSyncService, domEvents: DomEventsService, columnResizingService: ColumnResizingService, changeDetectorRef: ChangeDetectorRef, columnReorderService: ColumnReorderService, columnInfoService: ColumnInfoService, navigationService: NavigationService, sortService: SortService, scrollRequestService: ScrollRequestService, localization: LocalizationService, ctx: ContextService, sizingService: SizingOptionsService, adaptiveGridService: AdaptiveGridService, rowReorderService: RowReorderService, dataMappingService: DataMappingService, aiRequestResponseService: GridAIRequestResponseService, idService: IdService, searchService: SearchService);
|
|
765
765
|
/**
|
|
766
766
|
* Expands the master row at the specified data row index ([see example](https://www.telerik.com/kendo-angular-ui/components/grid/master-detail)).
|
|
767
767
|
*
|
package/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export { StringFilterComponent } from './filtering/string-filter.component';
|
|
|
51
51
|
export { MultiCheckboxFilterComponent } from './filtering/multicheckbox-filter.component';
|
|
52
52
|
export { GroupInfoService } from './grouping/group-info.service';
|
|
53
53
|
export { GroupsService } from './grouping/groups.service';
|
|
54
|
-
export { BrowserSupportService } from '
|
|
54
|
+
export { ScrollbarService, BrowserSupportService } from '@progress/kendo-angular-common';
|
|
55
55
|
export { ResizeService } from './layout/resize.service';
|
|
56
56
|
export { ResponsiveService } from './layout/responsive.service';
|
|
57
57
|
export { FocusRoot } from './navigation/focus-root';
|
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": 1774450134,
|
|
11
|
+
"version": "23.3.0-develop.13",
|
|
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.13",
|
|
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": 1774450134,
|
|
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.13",
|
|
90
|
+
"@progress/kendo-angular-common": "23.3.0-develop.13",
|
|
91
|
+
"@progress/kendo-angular-dateinputs": "23.3.0-develop.13",
|
|
92
|
+
"@progress/kendo-angular-layout": "23.3.0-develop.13",
|
|
93
|
+
"@progress/kendo-angular-navigation": "23.3.0-develop.13",
|
|
94
|
+
"@progress/kendo-angular-dropdowns": "23.3.0-develop.13",
|
|
95
|
+
"@progress/kendo-angular-excel-export": "23.3.0-develop.13",
|
|
96
|
+
"@progress/kendo-angular-icons": "23.3.0-develop.13",
|
|
97
|
+
"@progress/kendo-angular-indicators": "23.3.0-develop.13",
|
|
98
|
+
"@progress/kendo-angular-inputs": "23.3.0-develop.13",
|
|
99
|
+
"@progress/kendo-angular-conversational-ui": "23.3.0-develop.13",
|
|
100
|
+
"@progress/kendo-angular-intl": "23.3.0-develop.13",
|
|
101
|
+
"@progress/kendo-angular-l10n": "23.3.0-develop.13",
|
|
102
|
+
"@progress/kendo-angular-label": "23.3.0-develop.13",
|
|
103
|
+
"@progress/kendo-angular-menu": "23.3.0-develop.13",
|
|
104
|
+
"@progress/kendo-angular-pager": "23.3.0-develop.13",
|
|
105
|
+
"@progress/kendo-angular-pdf-export": "23.3.0-develop.13",
|
|
106
|
+
"@progress/kendo-angular-popup": "23.3.0-develop.13",
|
|
107
|
+
"@progress/kendo-angular-toolbar": "23.3.0-develop.13",
|
|
108
|
+
"@progress/kendo-angular-upload": "23.3.0-develop.13",
|
|
109
|
+
"@progress/kendo-angular-utils": "23.3.0-develop.13",
|
|
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.13",
|
|
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"
|
|
@@ -21,7 +21,7 @@ import { RowClassFn, RowStickyFn } from './common/row-class';
|
|
|
21
21
|
import { ScrollSyncService } from "../scrolling/scroll-sync.service";
|
|
22
22
|
import { ResizeService } from "../layout/resize.service";
|
|
23
23
|
import { ResizeSensorComponent } from "@progress/kendo-angular-common";
|
|
24
|
-
import {
|
|
24
|
+
import { ScrollbarService } from '@progress/kendo-angular-common';
|
|
25
25
|
import { SelectableSettings } from '../selection/types';
|
|
26
26
|
import { EditService } from '../editing/edit.service';
|
|
27
27
|
import { NavigationService } from '../navigation/navigation.service';
|
|
@@ -128,7 +128,7 @@ export declare class ListComponent implements OnInit, OnDestroy, AfterViewInit,
|
|
|
128
128
|
private minRowHeight;
|
|
129
129
|
private handleSkipOnData;
|
|
130
130
|
private scrollToIndex;
|
|
131
|
-
constructor(scrollerFactory: any, detailsService: DetailsService, changeNotification: ChangeNotificationService, suspendService: SuspendService, groupsService: GroupsService, ngZone: NgZone, renderer: Renderer2, scrollSyncService: ScrollSyncService, resizeService: ResizeService, editService: EditService, supportService:
|
|
131
|
+
constructor(scrollerFactory: any, detailsService: DetailsService, changeNotification: ChangeNotificationService, suspendService: SuspendService, groupsService: GroupsService, ngZone: NgZone, renderer: Renderer2, scrollSyncService: ScrollSyncService, resizeService: ResizeService, editService: EditService, supportService: ScrollbarService, navigationService: NavigationService, scrollRequestService: ScrollRequestService, ctx: ContextService, columnResizingService: ColumnResizingService, changeDetector: ChangeDetectorRef, pdfService: PDFService, columnInfo: ColumnInfoService, dataMappingService: DataMappingService);
|
|
132
132
|
ngOnInit(): void;
|
|
133
133
|
ngOnChanges(changes: {
|
|
134
134
|
[propertyName: string]: SimpleChange;
|
|
@@ -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.13',
|
|
13
|
+
'@progress/kendo-angular-navigation': '23.3.0-develop.13',
|
|
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.13',
|
|
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.13',
|
|
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.13',
|
|
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.13',
|
|
24
|
+
'@progress/kendo-angular-upload': '23.3.0-develop.13'
|
|
25
25
|
} });
|
|
26
26
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
27
27
|
}
|
|
@@ -1,22 +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 { NgZone, ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
* move to kendo-common
|
|
10
|
-
*/
|
|
11
|
-
export declare class BrowserSupportService implements OnDestroy {
|
|
12
|
-
private zone;
|
|
13
|
-
private changeDetector;
|
|
14
|
-
changes: EventEmitter<any>;
|
|
15
|
-
private subscriptions;
|
|
16
|
-
constructor(zone: NgZone, changeDetector: ChangeDetectorRef);
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
get scrollbarWidth(): number;
|
|
19
|
-
get rtlScrollLeft(): number;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserSupportService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserSupportService>;
|
|
22
|
-
}
|
|
@@ -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
|
-
}
|