@progress/kendo-angular-grid 21.2.0 → 21.3.0-develop.2
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/common/id.service.d.ts +2 -0
- package/esm2022/column-menu/column-menu-chooser.component.mjs +1 -2
- package/esm2022/column-menu/column-menu.component.mjs +4 -6
- package/esm2022/columns/column-base.mjs +1 -2
- package/esm2022/common/id.service.mjs +4 -0
- package/esm2022/grid.component.mjs +325 -274
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/header/header.component.mjs +4 -4
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +11 -588
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-request-response.service.mjs +624 -0
- package/fesm2022/progress-kendo-angular-grid.mjs +1456 -1370
- package/grid.component.d.ts +41 -1
- package/package.json +25 -25
- package/rendering/toolbar/tools/ai-assistant/ai-assistant.component.d.ts +3 -23
- package/rendering/toolbar/tools/ai-assistant/ai-request-response.service.d.ts +61 -0
- package/schematics/ngAdd/index.js +7 -7
package/common/id.service.d.ts
CHANGED
|
@@ -8,12 +8,14 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class IdService {
|
|
10
10
|
private prefix;
|
|
11
|
+
private columnCounter;
|
|
11
12
|
constructor();
|
|
12
13
|
gridId(): string;
|
|
13
14
|
cellId(rowIndex: number, colIndex: number): string;
|
|
14
15
|
selectionCheckboxId(itemIndex: any): string;
|
|
15
16
|
selectAllCheckboxId(): string;
|
|
16
17
|
columnId(colIndex: number): string;
|
|
18
|
+
nextColumnId(): string;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdService, never>;
|
|
18
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<IdService>;
|
|
19
21
|
}
|
|
@@ -7,7 +7,6 @@ import { ColumnInfoService } from '../common/column-info.service';
|
|
|
7
7
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
8
8
|
import { columnsIcon } from '@progress/kendo-svg-icons';
|
|
9
9
|
import { ContextService } from '../common/provider.service';
|
|
10
|
-
import { ColumnListComponent } from './column-list.component';
|
|
11
10
|
import { ColumnMenuItemContentTemplateDirective } from './column-menu-item-content-template.directive';
|
|
12
11
|
import { ColumnMenuItemComponent } from './column-menu-item.component';
|
|
13
12
|
import { ColumnChooserContentComponent } from './column-chooser-content.component';
|
|
@@ -139,7 +138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
139
138
|
</kendo-grid-columnmenu-item>
|
|
140
139
|
`,
|
|
141
140
|
standalone: true,
|
|
142
|
-
imports: [ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective,
|
|
141
|
+
imports: [ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective, ColumnChooserContentComponent]
|
|
143
142
|
}]
|
|
144
143
|
}], ctorParameters: () => [{ type: i1.ContextService }, { type: i2.ColumnInfoService }, { type: i0.ElementRef }], propDecorators: { expand: [{
|
|
145
144
|
type: Output
|
|
@@ -15,7 +15,6 @@ import { moreVerticalIcon, columnsIcon, filterIcon, slidersIcon } from '@progres
|
|
|
15
15
|
import { TabContentDirective, TabStripComponent, TabStripTabComponent, TabTitleDirective } from '@progress/kendo-angular-layout';
|
|
16
16
|
import { ColumnInfoService } from '../common/column-info.service';
|
|
17
17
|
import { IdService } from '../common/id.service';
|
|
18
|
-
import { ColumnListComponent } from './column-list.component';
|
|
19
18
|
import { FilterMenuContainerComponent } from '../filtering/menu/filter-menu-container.component';
|
|
20
19
|
import { ColumnMenuFilterComponent } from './column-menu-filter.component';
|
|
21
20
|
import { ColumnMenuAutoSizeAllColumnsComponent } from './column-menu-autosize-all.component';
|
|
@@ -437,7 +436,7 @@ export class ColumnMenuComponent {
|
|
|
437
436
|
>
|
|
438
437
|
</kendo-grid-columnmenu-autosize-column>
|
|
439
438
|
}
|
|
440
|
-
|
|
439
|
+
|
|
441
440
|
@if (hasAutoSizeAllColumns) {
|
|
442
441
|
<kendo-grid-columnmenu-autosize-all-columns
|
|
443
442
|
#autoSizeAllColumnsItem
|
|
@@ -565,7 +564,7 @@ export class ColumnMenuComponent {
|
|
|
565
564
|
}
|
|
566
565
|
</kendo-tabstrip>
|
|
567
566
|
</ng-template>
|
|
568
|
-
|
|
567
|
+
|
|
569
568
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ColumnMenuContainerComponent, selector: "kendo-grid-columnmenu-container" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ColumnMenuSortComponent, selector: "kendo-grid-columnmenu-sort" }, { kind: "directive", type: ColumnMenuItemDirective, selector: "[kendoGridColumnMenuItem]", inputs: ["kendoGridColumnMenuItem"] }, { kind: "component", type: ColumnMenuLockComponent, selector: "kendo-grid-columnmenu-lock" }, { kind: "component", type: ColumnMenuStickComponent, selector: "kendo-grid-columnmenu-stick" }, { kind: "component", type: ColumnMenuPositionComponent, selector: "kendo-grid-columnmenu-position", inputs: ["expanded", "showLock", "showStick", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuChooserComponent, selector: "kendo-grid-columnmenu-chooser", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuAutoSizeColumnComponent, selector: "kendo-grid-columnmenu-autosize-column", inputs: ["column"] }, { kind: "component", type: ColumnMenuAutoSizeAllColumnsComponent, selector: "kendo-grid-columnmenu-autosize-all-columns" }, { kind: "component", type: ColumnMenuFilterComponent, selector: "kendo-grid-columnmenu-filter", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: TabStripComponent, selector: "kendo-tabstrip", inputs: ["height", "animate", "tabAlignment", "tabPosition", "keepTabContent", "closable", "scrollable", "size", "closeIcon", "closeIconClass", "closeSVGIcon", "showContentArea"], outputs: ["tabSelect", "tabClose", "tabScroll"], exportAs: ["kendoTabStrip"] }, { kind: "component", type: TabStripTabComponent, selector: "kendo-tabstrip-tab", inputs: ["title", "disabled", "cssClass", "cssStyle", "selected", "closable", "closeIcon", "closeIconClass", "closeSVGIcon"], exportAs: ["kendoTabStripTab"] }, { kind: "directive", type: TabTitleDirective, selector: "[kendoTabTitle]" }, { kind: "directive", type: TabContentDirective, selector: "[kendoTabContent]" }, { kind: "component", type: FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: ["column", "isLast", "isExpanded", "menuTabbingService", "filter", "actionsClass"], outputs: ["close"] }, { kind: "component", type: ColumnChooserContentComponent, selector: "kendo-grid-column-chooser-content", inputs: ["filterable", "showSelectAll", "showCheckedCount", "allowHideAll", "autoSync", "actionsClass", "closeOnReset", "columns", "isLast", "isExpanded", "service"], outputs: ["close"] }] });
|
|
570
569
|
}
|
|
571
570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuComponent, decorators: [{
|
|
@@ -648,7 +647,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
648
647
|
>
|
|
649
648
|
</kendo-grid-columnmenu-autosize-column>
|
|
650
649
|
}
|
|
651
|
-
|
|
650
|
+
|
|
652
651
|
@if (hasAutoSizeAllColumns) {
|
|
653
652
|
<kendo-grid-columnmenu-autosize-all-columns
|
|
654
653
|
#autoSizeAllColumnsItem
|
|
@@ -776,7 +775,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
776
775
|
}
|
|
777
776
|
</kendo-tabstrip>
|
|
778
777
|
</ng-template>
|
|
779
|
-
|
|
778
|
+
|
|
780
779
|
`,
|
|
781
780
|
standalone: true,
|
|
782
781
|
imports: [
|
|
@@ -798,7 +797,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
798
797
|
TabTitleDirective,
|
|
799
798
|
TabContentDirective,
|
|
800
799
|
FilterMenuContainerComponent,
|
|
801
|
-
ColumnListComponent,
|
|
802
800
|
ColumnChooserContentComponent
|
|
803
801
|
]
|
|
804
802
|
}]
|
|
@@ -24,7 +24,6 @@ export const isCheckboxColumn = column => column?.isCheckboxColumn;
|
|
|
24
24
|
*/
|
|
25
25
|
export const isRowReorderColumn = column => column?.isRowReorderColumn;
|
|
26
26
|
const isColumnContainer = column => column?.isColumnGroup || isSpanColumn(column);
|
|
27
|
-
let columnId = 0;
|
|
28
27
|
/**
|
|
29
28
|
* The base class for the column components of the Grid.
|
|
30
29
|
*
|
|
@@ -355,7 +354,7 @@ export class ColumnBase {
|
|
|
355
354
|
if (parent && idService && parent.idService.gridId() === idService.gridId() && !isColumnContainer(parent)) {
|
|
356
355
|
throw new Error(ColumnConfigurationErrorMessages.columnNested);
|
|
357
356
|
}
|
|
358
|
-
this._id = this.idService?.
|
|
357
|
+
this._id = this.idService?.nextColumnId();
|
|
359
358
|
}
|
|
360
359
|
ngAfterViewInit() {
|
|
361
360
|
this.initialMinResizableWidth = this.minResizableWidth || 10;
|
|
@@ -11,6 +11,7 @@ let sequence = 0;
|
|
|
11
11
|
*/
|
|
12
12
|
export class IdService {
|
|
13
13
|
prefix;
|
|
14
|
+
columnCounter = 0;
|
|
14
15
|
constructor() {
|
|
15
16
|
this.prefix = `k-grid${sequence++}`;
|
|
16
17
|
}
|
|
@@ -29,6 +30,9 @@ export class IdService {
|
|
|
29
30
|
columnId(colIndex) {
|
|
30
31
|
return `${this.prefix}-col${colIndex}`;
|
|
31
32
|
}
|
|
33
|
+
nextColumnId() {
|
|
34
|
+
return `${this.prefix}-col${this.columnCounter++}`;
|
|
35
|
+
}
|
|
32
36
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
37
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: IdService });
|
|
34
38
|
}
|