@progress/kendo-angular-grid 21.2.0 → 21.3.0-develop.1
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/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 +1457 -1370
- package/grid.component.d.ts +41 -1
- package/package.json +24 -24
- 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
|
}
|
|
@@ -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
|
}
|