@progress/kendo-vue-grid 7.1.0-develop.4 → 7.1.0-develop.6
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/Grid.js +1 -1
- package/Grid.mjs +647 -588
- package/GridNav.js +1 -1
- package/GridNav.mjs +3 -1
- package/GridState.js +1 -1
- package/GridState.mjs +80 -60
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +65 -109
- package/cells/GridCell.js +1 -1
- package/cells/GridCell.mjs +24 -19
- package/cells/GridFilterCell.js +1 -1
- package/cells/GridFilterCell.mjs +23 -23
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +13 -14
- package/common.js +1 -1
- package/common.mjs +3 -0
- package/{GridNoRecords.js → components/noRecords/GridNoRecords.js} +1 -1
- package/{GridNoRecords.mjs → components/noRecords/GridNoRecords.mjs} +1 -1
- package/components/noRecords/GridNoRecordsContainer.js +8 -0
- package/components/noRecords/GridNoRecordsContainer.mjs +30 -0
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/footer/Footer.js +1 -1
- package/footer/Footer.mjs +9 -16
- package/header/Header.js +1 -1
- package/header/Header.mjs +20 -26
- package/index.d.mts +102 -23
- package/index.d.ts +102 -23
- package/index.js +1 -1
- package/index.mjs +30 -29
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -12
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +18 -17
- package/utils/main.js +1 -1
- package/utils/main.mjs +30 -22
- package/VirtualScrollFixed.js +0 -8
- package/VirtualScrollFixed.mjs +0 -86
- package/utils/browser-support.service.js +0 -8
- package/utils/browser-support.service.mjs +0 -21
package/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { GridGroupExpandChangeEvent as GridGroupExpandChangeEvent_2 } from '.';
|
|
|
31
31
|
import { GridItemChangeEvent as GridItemChangeEvent_2 } from '.';
|
|
32
32
|
import { GridPageChangeEvent as GridPageChangeEvent_2 } from '.';
|
|
33
33
|
import { GridPagerSettings } from '@progress/kendo-vue-data-tools';
|
|
34
|
+
import { GridRowSpannableSettings as GridRowSpannableSettings_2 } from './interfaces/GridRowSpannableSettings';
|
|
34
35
|
import { GridSearchChangeEvent as GridSearchChangeEvent_2 } from '.';
|
|
35
36
|
import { GridSortChangeEvent as GridSortChangeEvent_2 } from '.';
|
|
36
37
|
import { GridSortSettings as GridSortSettings_2 } from '.';
|
|
@@ -68,6 +69,9 @@ export declare function autoGenerateColumns(data: any[] | DataResult | null | un
|
|
|
68
69
|
idPrefix: string;
|
|
69
70
|
}): ExtendedColumnProps[];
|
|
70
71
|
|
|
72
|
+
/** @hidden */
|
|
73
|
+
export declare const calcRowHeight: (tableBody: HTMLTableSectionElement | null) => number;
|
|
74
|
+
|
|
71
75
|
/**
|
|
72
76
|
* @hidden
|
|
73
77
|
*/
|
|
@@ -154,9 +158,6 @@ tableClass(): {
|
|
|
154
158
|
'k-table': boolean;
|
|
155
159
|
'k-grid-footer-table': boolean;
|
|
156
160
|
};
|
|
157
|
-
divStyle(): {
|
|
158
|
-
padding: string;
|
|
159
|
-
};
|
|
160
161
|
tableStyle(): {
|
|
161
162
|
width: any;
|
|
162
163
|
};
|
|
@@ -245,6 +246,7 @@ export declare const getRowSpanOptions: (rowSpannable?: boolean | GridRowSpannab
|
|
|
245
246
|
* ```
|
|
246
247
|
*/
|
|
247
248
|
export declare const Grid: DefineComponent<ExtractPropTypes< {
|
|
249
|
+
id: PropType<string>;
|
|
248
250
|
autoProcessData: PropType<boolean | {
|
|
249
251
|
filter?: boolean;
|
|
250
252
|
search?: boolean;
|
|
@@ -253,7 +255,9 @@ group?: boolean;
|
|
|
253
255
|
page?: boolean;
|
|
254
256
|
}>;
|
|
255
257
|
topCacheCount: {
|
|
256
|
-
type: PropType<number>;
|
|
258
|
+
type: PropType<number>; /**
|
|
259
|
+
* Represent the `ref` of the Grid component.
|
|
260
|
+
*/
|
|
257
261
|
default: number;
|
|
258
262
|
};
|
|
259
263
|
collapsedGroups: {
|
|
@@ -270,7 +274,11 @@ type: PropType<GridColumnState_2[]>;
|
|
|
270
274
|
default: () => any;
|
|
271
275
|
};
|
|
272
276
|
defaultColumnsState: {
|
|
273
|
-
type: PropType<GridColumnState_2[]>;
|
|
277
|
+
type: PropType<GridColumnState_2[]>; /**
|
|
278
|
+
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
279
|
+
*
|
|
280
|
+
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
281
|
+
*/
|
|
274
282
|
default: () => any;
|
|
275
283
|
};
|
|
276
284
|
columnVirtualization: PropType<boolean>;
|
|
@@ -300,6 +308,7 @@ highlight: PropType< {
|
|
|
300
308
|
pageable: PropType<any>;
|
|
301
309
|
pageSize: PropType<number>;
|
|
302
310
|
total: PropType<number>;
|
|
311
|
+
fixedScroll: PropType<boolean>;
|
|
303
312
|
skip: PropType<number>;
|
|
304
313
|
defaultSkip: PropType<number>;
|
|
305
314
|
take: PropType<number>;
|
|
@@ -309,6 +318,7 @@ expandColumn: PropType<GridColumnProps>;
|
|
|
309
318
|
selectedField: PropType<string>;
|
|
310
319
|
cellRender: PropType<string | boolean | ((h: any, defaultRendering: any, props: GridCellProps_2, listeners: any) => any)>;
|
|
311
320
|
rowRender: PropType<string | boolean | ((h: any, defaultRendering: any, defaultSlots: any, props: any, listeners: any) => any)>;
|
|
321
|
+
rowSpannable: PropType<boolean | GridRowSpannableSettings_2>;
|
|
312
322
|
resizable: PropType<boolean>;
|
|
313
323
|
reorderable: PropType<boolean>;
|
|
314
324
|
group: PropType<GroupDescriptor[]>;
|
|
@@ -418,6 +428,7 @@ onDetailexpandchange: PropType<(event: GridDetailExpandChangeEvent_2) => void>;
|
|
|
418
428
|
}>, void, {}, {
|
|
419
429
|
columnsWithTemplates(): any[];
|
|
420
430
|
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
431
|
+
id: PropType<string>;
|
|
421
432
|
autoProcessData: PropType<boolean | {
|
|
422
433
|
filter?: boolean;
|
|
423
434
|
search?: boolean;
|
|
@@ -426,7 +437,9 @@ group?: boolean;
|
|
|
426
437
|
page?: boolean;
|
|
427
438
|
}>;
|
|
428
439
|
topCacheCount: {
|
|
429
|
-
type: PropType<number>;
|
|
440
|
+
type: PropType<number>; /**
|
|
441
|
+
* Represent the `ref` of the Grid component.
|
|
442
|
+
*/
|
|
430
443
|
default: number;
|
|
431
444
|
};
|
|
432
445
|
collapsedGroups: {
|
|
@@ -443,7 +456,11 @@ type: PropType<GridColumnState_2[]>;
|
|
|
443
456
|
default: () => any;
|
|
444
457
|
};
|
|
445
458
|
defaultColumnsState: {
|
|
446
|
-
type: PropType<GridColumnState_2[]>;
|
|
459
|
+
type: PropType<GridColumnState_2[]>; /**
|
|
460
|
+
* Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based.
|
|
461
|
+
*
|
|
462
|
+
* @param options - Object, containing the rowIndex to which is going to be scrolled.
|
|
463
|
+
*/
|
|
447
464
|
default: () => any;
|
|
448
465
|
};
|
|
449
466
|
columnVirtualization: PropType<boolean>;
|
|
@@ -473,6 +490,7 @@ highlight: PropType< {
|
|
|
473
490
|
pageable: PropType<any>;
|
|
474
491
|
pageSize: PropType<number>;
|
|
475
492
|
total: PropType<number>;
|
|
493
|
+
fixedScroll: PropType<boolean>;
|
|
476
494
|
skip: PropType<number>;
|
|
477
495
|
defaultSkip: PropType<number>;
|
|
478
496
|
take: PropType<number>;
|
|
@@ -482,6 +500,7 @@ expandColumn: PropType<GridColumnProps>;
|
|
|
482
500
|
selectedField: PropType<string>;
|
|
483
501
|
cellRender: PropType<string | boolean | ((h: any, defaultRendering: any, props: GridCellProps_2, listeners: any) => any)>;
|
|
484
502
|
rowRender: PropType<string | boolean | ((h: any, defaultRendering: any, defaultSlots: any, props: any, listeners: any) => any)>;
|
|
503
|
+
rowSpannable: PropType<boolean | GridRowSpannableSettings_2>;
|
|
485
504
|
resizable: PropType<boolean>;
|
|
486
505
|
reorderable: PropType<boolean>;
|
|
487
506
|
group: PropType<GroupDescriptor[]>;
|
|
@@ -593,8 +612,8 @@ size: string;
|
|
|
593
612
|
scrollable: string;
|
|
594
613
|
navigatable: boolean;
|
|
595
614
|
columnMenuAnimate: boolean;
|
|
596
|
-
collapsedGroups: any[][];
|
|
597
615
|
topCacheCount: number;
|
|
616
|
+
collapsedGroups: any[][];
|
|
598
617
|
columnsState: GridColumnState_2[];
|
|
599
618
|
defaultColumnsState: GridColumnState_2[];
|
|
600
619
|
showLoader: boolean;
|
|
@@ -629,6 +648,10 @@ level: PropType<number>;
|
|
|
629
648
|
expanded: PropType<boolean>;
|
|
630
649
|
type: PropType<string>;
|
|
631
650
|
editor: PropType<string>;
|
|
651
|
+
rowSpan: PropType<{
|
|
652
|
+
count: number;
|
|
653
|
+
value: any;
|
|
654
|
+
}>;
|
|
632
655
|
isSelected: PropType<boolean>;
|
|
633
656
|
isHighlighted: PropType<boolean>;
|
|
634
657
|
ariaColumnIndex: PropType<number>;
|
|
@@ -688,6 +711,10 @@ level: PropType<number>;
|
|
|
688
711
|
expanded: PropType<boolean>;
|
|
689
712
|
type: PropType<string>;
|
|
690
713
|
editor: PropType<string>;
|
|
714
|
+
rowSpan: PropType<{
|
|
715
|
+
count: number;
|
|
716
|
+
value: any;
|
|
717
|
+
}>;
|
|
691
718
|
isSelected: PropType<boolean>;
|
|
692
719
|
isHighlighted: PropType<boolean>;
|
|
693
720
|
ariaColumnIndex: PropType<number>;
|
|
@@ -879,12 +906,17 @@ export declare interface GridCellProps {
|
|
|
879
906
|
render?: any;
|
|
880
907
|
/** @hidden */
|
|
881
908
|
group?: GroupState;
|
|
909
|
+
/** @hidden */
|
|
910
|
+
rowSpan?: {
|
|
911
|
+
count: number | null;
|
|
912
|
+
value: any;
|
|
913
|
+
};
|
|
882
914
|
}
|
|
883
915
|
|
|
884
916
|
/**
|
|
885
917
|
* Represents the properties of the callback used when spanning a column.
|
|
886
918
|
*/
|
|
887
|
-
declare type GridColSpanProps = {
|
|
919
|
+
export declare type GridColSpanProps = {
|
|
888
920
|
/**
|
|
889
921
|
* Represents the properties of the spanned column.
|
|
890
922
|
*/
|
|
@@ -1655,6 +1687,10 @@ export declare interface GridDataStateChangeEvent extends GridEvent {
|
|
|
1655
1687
|
* The state of the Grid based on the user action.
|
|
1656
1688
|
*/
|
|
1657
1689
|
data: State;
|
|
1690
|
+
/**
|
|
1691
|
+
* The state of the Grid based on the user action.
|
|
1692
|
+
*/
|
|
1693
|
+
dataState: GridState;
|
|
1658
1694
|
}
|
|
1659
1695
|
|
|
1660
1696
|
/**
|
|
@@ -1838,7 +1874,7 @@ event: any;
|
|
|
1838
1874
|
}) => void>;
|
|
1839
1875
|
render: PropType<any>;
|
|
1840
1876
|
ariaLabel: PropType<string>;
|
|
1841
|
-
size: PropType<
|
|
1877
|
+
size: PropType<"small" | "medium" | "large">;
|
|
1842
1878
|
}>, {
|
|
1843
1879
|
kendoIntlService: {};
|
|
1844
1880
|
kendoLocalizationService: {};
|
|
@@ -1866,7 +1902,7 @@ event: any;
|
|
|
1866
1902
|
}) => void>;
|
|
1867
1903
|
render: PropType<any>;
|
|
1868
1904
|
ariaLabel: PropType<string>;
|
|
1869
|
-
size: PropType<
|
|
1905
|
+
size: PropType<"small" | "medium" | "large">;
|
|
1870
1906
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1871
1907
|
|
|
1872
1908
|
/**
|
|
@@ -1945,7 +1981,7 @@ export declare interface GridFilterCellProps {
|
|
|
1945
1981
|
*
|
|
1946
1982
|
* @default `medium`
|
|
1947
1983
|
*/
|
|
1948
|
-
size?: null | 'small' | 'medium' | 'large'
|
|
1984
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
1949
1985
|
}
|
|
1950
1986
|
|
|
1951
1987
|
/**
|
|
@@ -2378,6 +2414,15 @@ export { GridPagerSettings }
|
|
|
2378
2414
|
* Represents the props of the [native Vue Grid component by Kendo UI]({% slug overview_grid %}).
|
|
2379
2415
|
*/
|
|
2380
2416
|
export declare interface GridProps {
|
|
2417
|
+
/**
|
|
2418
|
+
* Sets the `id` property of the top div element of the component.
|
|
2419
|
+
*
|
|
2420
|
+
* @example
|
|
2421
|
+
* ```jsx
|
|
2422
|
+
* <Grid :id="'custom-grid-id' />
|
|
2423
|
+
* ```
|
|
2424
|
+
*/
|
|
2425
|
+
id?: string;
|
|
2381
2426
|
/**
|
|
2382
2427
|
* Enables data-processing inside the GridComponent based on its state.
|
|
2383
2428
|
* Provides an easy, built-in way to handle data operations like sorting, filtering, grouping, and paging.
|
|
@@ -2387,13 +2432,13 @@ export declare interface GridProps {
|
|
|
2387
2432
|
* @example
|
|
2388
2433
|
* ```jsx
|
|
2389
2434
|
* <Grid
|
|
2390
|
-
* autoProcessData={
|
|
2435
|
+
* :autoProcessData="{
|
|
2391
2436
|
* filter: true,
|
|
2392
2437
|
* search: true,
|
|
2393
2438
|
* sort: true,
|
|
2394
2439
|
* group: true,
|
|
2395
2440
|
* page: true
|
|
2396
|
-
* }}
|
|
2441
|
+
* }}"
|
|
2397
2442
|
* />
|
|
2398
2443
|
* ```
|
|
2399
2444
|
*/
|
|
@@ -2647,6 +2692,11 @@ export declare interface GridProps {
|
|
|
2647
2692
|
* Fires when the user tries to expand or collapse a row.
|
|
2648
2693
|
*/
|
|
2649
2694
|
onExpandchange?: (event: GridExpandChangeEvent) => void;
|
|
2695
|
+
/**
|
|
2696
|
+
* Determines if the scroll position will be updated after a data change.
|
|
2697
|
+
* If set to `true`, the scroll will remain in the same position.
|
|
2698
|
+
*/
|
|
2699
|
+
fixedScroll?: boolean;
|
|
2650
2700
|
/**
|
|
2651
2701
|
*
|
|
2652
2702
|
* `obsolete` Will be removed in the next major release. Use `expandable` property instead.
|
|
@@ -2723,6 +2773,15 @@ export declare interface GridProps {
|
|
|
2723
2773
|
* item ([more information and examples]({% slug editing_inline_grid %})).
|
|
2724
2774
|
*/
|
|
2725
2775
|
editField?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* Enables the built-in row span feature of the Grid.
|
|
2778
|
+
*
|
|
2779
|
+
* @example
|
|
2780
|
+
* ```jsx
|
|
2781
|
+
* <Grid rowSpannable={true} />
|
|
2782
|
+
* ```
|
|
2783
|
+
*/
|
|
2784
|
+
rowSpannable?: boolean | GridRowSpannableSettings;
|
|
2726
2785
|
/**
|
|
2727
2786
|
* A function that returns a custom class applied to the row.
|
|
2728
2787
|
*
|
|
@@ -2888,7 +2947,7 @@ export declare interface GridRemoveEvent {
|
|
|
2888
2947
|
*/
|
|
2889
2948
|
export declare const GridRow: DefineComponent<ExtractPropTypes< {
|
|
2890
2949
|
rowType: PropType<string>;
|
|
2891
|
-
|
|
2950
|
+
item: PropType<any>;
|
|
2892
2951
|
isAltRow: PropType<boolean>;
|
|
2893
2952
|
isHidden: PropType<boolean>;
|
|
2894
2953
|
isHighlighted: PropType<boolean>;
|
|
@@ -2897,8 +2956,9 @@ isInEdit: PropType<boolean>;
|
|
|
2897
2956
|
isSelected: PropType<boolean>;
|
|
2898
2957
|
selectedField: PropType<string>;
|
|
2899
2958
|
rowHeight: PropType<number>;
|
|
2900
|
-
ariaRowIndex: PropType<
|
|
2901
|
-
|
|
2959
|
+
ariaRowIndex: PropType<number>;
|
|
2960
|
+
absoluteRowIndex: PropType<number>;
|
|
2961
|
+
dataIndex: PropType<number>;
|
|
2902
2962
|
render: PropType<any>;
|
|
2903
2963
|
onRowclick: PropType<any>;
|
|
2904
2964
|
onRowdblclick: PropType<Function>;
|
|
@@ -2919,7 +2979,7 @@ handleClick(e: any): void;
|
|
|
2919
2979
|
handleDoubleClick(e: any): void;
|
|
2920
2980
|
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
2921
2981
|
rowType: PropType<string>;
|
|
2922
|
-
|
|
2982
|
+
item: PropType<any>;
|
|
2923
2983
|
isAltRow: PropType<boolean>;
|
|
2924
2984
|
isHidden: PropType<boolean>;
|
|
2925
2985
|
isHighlighted: PropType<boolean>;
|
|
@@ -2928,8 +2988,9 @@ isInEdit: PropType<boolean>;
|
|
|
2928
2988
|
isSelected: PropType<boolean>;
|
|
2929
2989
|
selectedField: PropType<string>;
|
|
2930
2990
|
rowHeight: PropType<number>;
|
|
2931
|
-
ariaRowIndex: PropType<
|
|
2932
|
-
|
|
2991
|
+
ariaRowIndex: PropType<number>;
|
|
2992
|
+
absoluteRowIndex: PropType<number>;
|
|
2993
|
+
dataIndex: PropType<number>;
|
|
2933
2994
|
render: PropType<any>;
|
|
2934
2995
|
onRowclick: PropType<any>;
|
|
2935
2996
|
onRowdblclick: PropType<Function>;
|
|
@@ -2960,7 +3021,7 @@ export declare interface GridRowProps {
|
|
|
2960
3021
|
/**
|
|
2961
3022
|
* The `data` object that represents the current row.
|
|
2962
3023
|
*/
|
|
2963
|
-
|
|
3024
|
+
item: any;
|
|
2964
3025
|
/**
|
|
2965
3026
|
* Indicates whether the row is an alternating row.
|
|
2966
3027
|
*/
|
|
@@ -2998,11 +3059,15 @@ export declare interface GridRowProps {
|
|
|
2998
3059
|
/**
|
|
2999
3060
|
* @hidden
|
|
3000
3061
|
*/
|
|
3001
|
-
ariaRowIndex?:
|
|
3062
|
+
ariaRowIndex?: number;
|
|
3002
3063
|
/**
|
|
3003
3064
|
* @hidden
|
|
3004
3065
|
*/
|
|
3005
|
-
|
|
3066
|
+
absoluteRowIndex?: number;
|
|
3067
|
+
/**
|
|
3068
|
+
* @hidden
|
|
3069
|
+
*/
|
|
3070
|
+
dataIndex?: number;
|
|
3006
3071
|
}
|
|
3007
3072
|
|
|
3008
3073
|
/**
|
|
@@ -3121,6 +3186,20 @@ export declare type GridSortSettings = boolean | GridColumnSortSettings & {
|
|
|
3121
3186
|
mode?: 'single' | 'multiple';
|
|
3122
3187
|
};
|
|
3123
3188
|
|
|
3189
|
+
/** @hidden */
|
|
3190
|
+
declare type GridState = {
|
|
3191
|
+
filter?: GridProps['filter'];
|
|
3192
|
+
highlight?: GridProps['highlight'];
|
|
3193
|
+
search?: GridProps['search'];
|
|
3194
|
+
sort?: GridProps['sort'];
|
|
3195
|
+
skip?: GridProps['skip'];
|
|
3196
|
+
take?: GridProps['take'];
|
|
3197
|
+
group?: GridProps['group'];
|
|
3198
|
+
detailExpand?: GridProps['detailExpand'];
|
|
3199
|
+
groupExpand?: GridProps['groupExpand'];
|
|
3200
|
+
columnsState?: GridProps['columnsState'];
|
|
3201
|
+
};
|
|
3202
|
+
|
|
3124
3203
|
/**
|
|
3125
3204
|
* Represents the GridToolbar component.
|
|
3126
3205
|
*
|
package/index.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./RootGrid.js"),r=require("./columnMenu/GridColumnMenuSort.js"),o=require("./columnMenu/GridColumnMenuFilter.js"),t=require("./columnMenu/GridColumnMenuFilterUI.js"),l=require("./columnMenu/GridColumnMenuFilterCell.js"),n=require("./columnMenu/GridColumnMenuCheckboxFilter.js"),u=require("./cells/GridCell.js"),d=require("./cells/GridEditCell.js"),G=require("./cells/GridGroupCell.js"),C=require("./cells/GridHierarchyCell.js"),a=require("./cells/GridFilterCell.js"),s=require("./header/GridHeaderCell.js"),m=require("./footer/Footer.js"),c=require("./footer/FooterRow.js"),p=require("./rows/GridDetailRow.js"),F=require("./rows/GridRow.js"),M=require("./GridToolbar.js"),q=require("./GridNoRecords.js"),g=require("./columnMenu/GridColumnMenuItem.js"),R=require("./columnMenu/GridColumnMenuItemContent.js"),S=require("./columnMenu/GridColumnMenuItemGroup.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./RootGrid.js"),r=require("./columnMenu/GridColumnMenuSort.js"),o=require("./columnMenu/GridColumnMenuFilter.js"),t=require("./columnMenu/GridColumnMenuFilterUI.js"),l=require("./columnMenu/GridColumnMenuFilterCell.js"),n=require("./columnMenu/GridColumnMenuCheckboxFilter.js"),u=require("./cells/GridCell.js"),d=require("./cells/GridEditCell.js"),G=require("./cells/GridGroupCell.js"),C=require("./cells/GridHierarchyCell.js"),a=require("./cells/GridFilterCell.js"),s=require("./header/GridHeaderCell.js"),m=require("./footer/Footer.js"),c=require("./footer/FooterRow.js"),p=require("./rows/GridDetailRow.js"),F=require("./rows/GridRow.js"),M=require("./GridToolbar.js"),q=require("./components/noRecords/GridNoRecords.js"),g=require("./columnMenu/GridColumnMenuItem.js"),R=require("./columnMenu/GridColumnMenuItemContent.js"),S=require("./columnMenu/GridColumnMenuItemGroup.js"),h=require("./GridSearchBox.js"),e=require("./utils/main.js");exports.Grid=i.RootGrid;exports.GridColumnMenuSort=r.GridColumnMenuSort;exports.sortGroupByField=r.sortGroupByField;exports.GridColumnMenuFilter=o.GridColumnMenuFilter;exports.filterGroupByField=o.filterGroupByField;exports.GridColumnMenuFilterUI=t.GridColumnMenuFilterUI;exports.GridColumnMenuFilterCell=l.GridColumnMenuFilterCell;exports.GridColumnMenuCheckboxFilter=n.GridColumnMenuCheckboxFilter;exports.GridCell=u.GridCell;exports.GridEditCell=d.GridEditCell;exports.GridGroupCell=G.GridGroupCell;exports.GridHierarchyCell=C.GridHierarchyCell;exports.GridFilterCell=a.GridFilterCell;exports.GridHeaderCell=s.GridHeaderCell;exports.Footer=m.Footer;exports.FooterRow=c.FooterRow;exports.GridDetailRow=p.GridDetailRow;exports.GridRow=F.GridRow;exports.GridToolbar=M.GridToolbar;exports.GridNoRecords=q.GridNoRecords;exports.GridColumnMenuItem=g.GridColumnMenuItem;exports.GridColumnMenuItemContent=R.GridColumnMenuItemContent;exports.GridColumnMenuItemGroup=S.GridColumnMenuItemGroup;exports.GridSearchBox=h.GridSearchBox;exports.applyExpandedState=e.applyExpandedState;exports.autoGenerateColumns=e.autoGenerateColumns;exports.calcRowHeight=e.calcRowHeight;exports.checkPropCompatibility=e.checkPropCompatibility;exports.firefox=e.firefox;exports.firefoxMaxHeight=e.firefoxMaxHeight;exports.flatData=e.flatData;exports.footerColumns=e.footerColumns;exports.getColSpan=e.getColSpan;exports.getColumnWidth=e.getColumnWidth;exports.getDataAsArray=e.getDataAsArray;exports.getFlatColumnsState=e.getFlatColumnsState;exports.getIndex=e.getIndex;exports.getNestedValue=e.getNestedValue;exports.getRowSpanOptions=e.getRowSpanOptions;exports.groupedFirstItemValue=e.groupedFirstItemValue;exports.isRtl=e.isRtl;exports.isSorted=e.isSorted;exports.mapColumns=e.mapColumns;exports.parsers=e.parsers;exports.readColumns=e.readColumns;exports.sanitizeColumns=e.sanitizeColumns;
|
package/index.mjs
CHANGED
|
@@ -9,33 +9,33 @@ import { RootGrid as e } from "./RootGrid.mjs";
|
|
|
9
9
|
import { GridColumnMenuSort as l, sortGroupByField as i } from "./columnMenu/GridColumnMenuSort.mjs";
|
|
10
10
|
import { GridColumnMenuFilter as p, filterGroupByField as d } from "./columnMenu/GridColumnMenuFilter.mjs";
|
|
11
11
|
import { GridColumnMenuFilterUI as u } from "./columnMenu/GridColumnMenuFilterUI.mjs";
|
|
12
|
-
import { GridColumnMenuFilterCell as
|
|
12
|
+
import { GridColumnMenuFilterCell as f } from "./columnMenu/GridColumnMenuFilterCell.mjs";
|
|
13
13
|
import { GridColumnMenuCheckboxFilter as C } from "./columnMenu/GridColumnMenuCheckboxFilter.mjs";
|
|
14
14
|
import { GridCell as s } from "./cells/GridCell.mjs";
|
|
15
15
|
import { GridEditCell as g } from "./cells/GridEditCell.mjs";
|
|
16
|
-
import { GridGroupCell as
|
|
17
|
-
import { GridHierarchyCell as
|
|
16
|
+
import { GridGroupCell as c } from "./cells/GridGroupCell.mjs";
|
|
17
|
+
import { GridHierarchyCell as h } from "./cells/GridHierarchyCell.mjs";
|
|
18
18
|
import { GridFilterCell as y } from "./cells/GridFilterCell.mjs";
|
|
19
19
|
import { GridHeaderCell as w } from "./header/GridHeaderCell.mjs";
|
|
20
|
-
import { Footer as
|
|
21
|
-
import { FooterRow as
|
|
20
|
+
import { Footer as b } from "./footer/Footer.mjs";
|
|
21
|
+
import { FooterRow as D } from "./footer/FooterRow.mjs";
|
|
22
22
|
import { GridDetailRow as A } from "./rows/GridDetailRow.mjs";
|
|
23
23
|
import { GridRow as N } from "./rows/GridRow.mjs";
|
|
24
24
|
import { GridToolbar as z } from "./GridToolbar.mjs";
|
|
25
|
-
import { GridNoRecords as P } from "./GridNoRecords.mjs";
|
|
25
|
+
import { GridNoRecords as P } from "./components/noRecords/GridNoRecords.mjs";
|
|
26
26
|
import { GridColumnMenuItem as U } from "./columnMenu/GridColumnMenuItem.mjs";
|
|
27
27
|
import { GridColumnMenuItemContent as j } from "./columnMenu/GridColumnMenuItemContent.mjs";
|
|
28
28
|
import { GridColumnMenuItemGroup as v } from "./columnMenu/GridColumnMenuItemGroup.mjs";
|
|
29
29
|
import { GridSearchBox as K } from "./GridSearchBox.mjs";
|
|
30
|
-
import { applyExpandedState as Q, autoGenerateColumns as X,
|
|
30
|
+
import { applyExpandedState as Q, autoGenerateColumns as X, calcRowHeight as Y, checkPropCompatibility as Z, firefox as _, firefoxMaxHeight as $, flatData as rr, footerColumns as or, getColSpan as er, getColumnWidth as tr, getDataAsArray as lr, getFlatColumnsState as ir, getIndex as mr, getNestedValue as pr, getRowSpanOptions as dr, groupedFirstItemValue as nr, isRtl as ur, isSorted as ar, mapColumns as fr, parsers as xr, readColumns as Cr, sanitizeColumns as Gr } from "./utils/main.mjs";
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
b as Footer,
|
|
33
|
+
D as FooterRow,
|
|
34
34
|
e as Grid,
|
|
35
35
|
s as GridCell,
|
|
36
36
|
C as GridColumnMenuCheckboxFilter,
|
|
37
37
|
p as GridColumnMenuFilter,
|
|
38
|
-
|
|
38
|
+
f as GridColumnMenuFilterCell,
|
|
39
39
|
u as GridColumnMenuFilterUI,
|
|
40
40
|
U as GridColumnMenuItem,
|
|
41
41
|
j as GridColumnMenuItemContent,
|
|
@@ -44,34 +44,35 @@ export {
|
|
|
44
44
|
A as GridDetailRow,
|
|
45
45
|
g as GridEditCell,
|
|
46
46
|
y as GridFilterCell,
|
|
47
|
-
|
|
47
|
+
c as GridGroupCell,
|
|
48
48
|
w as GridHeaderCell,
|
|
49
|
-
|
|
49
|
+
h as GridHierarchyCell,
|
|
50
50
|
P as GridNoRecords,
|
|
51
51
|
N as GridRow,
|
|
52
52
|
K as GridSearchBox,
|
|
53
53
|
z as GridToolbar,
|
|
54
54
|
Q as applyExpandedState,
|
|
55
55
|
X as autoGenerateColumns,
|
|
56
|
-
Y as
|
|
56
|
+
Y as calcRowHeight,
|
|
57
|
+
Z as checkPropCompatibility,
|
|
57
58
|
d as filterGroupByField,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
59
|
+
_ as firefox,
|
|
60
|
+
$ as firefoxMaxHeight,
|
|
61
|
+
rr as flatData,
|
|
62
|
+
or as footerColumns,
|
|
63
|
+
er as getColSpan,
|
|
64
|
+
tr as getColumnWidth,
|
|
65
|
+
lr as getDataAsArray,
|
|
66
|
+
ir as getFlatColumnsState,
|
|
67
|
+
mr as getIndex,
|
|
68
|
+
pr as getNestedValue,
|
|
69
|
+
dr as getRowSpanOptions,
|
|
70
|
+
nr as groupedFirstItemValue,
|
|
71
|
+
ur as isRtl,
|
|
72
|
+
ar as isSorted,
|
|
72
73
|
fr as mapColumns,
|
|
73
74
|
xr as parsers,
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
Cr as readColumns,
|
|
76
|
+
Gr as sanitizeColumns,
|
|
76
77
|
i as sortGroupByField
|
|
77
78
|
};
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-grid",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-grid",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1769676430,version:"7.1.0-develop.6",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "7.1.0-develop.
|
|
13
|
+
publishDate: 1769676430,
|
|
14
|
+
version: "7.1.0-develop.6",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-grid",
|
|
3
|
-
"version": "7.1.0-develop.
|
|
3
|
+
"version": "7.1.0-develop.6",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@progress/kendo-data-query": "^1.7.0",
|
|
22
22
|
"@progress/kendo-drawing": "^1.21.1",
|
|
23
23
|
"@progress/kendo-licensing": "^1.7.2",
|
|
24
|
-
"@progress/kendo-vue-animation": "7.1.0-develop.
|
|
25
|
-
"@progress/kendo-vue-buttons": "7.1.0-develop.
|
|
26
|
-
"@progress/kendo-vue-common": "7.1.0-develop.
|
|
27
|
-
"@progress/kendo-vue-data-tools": "7.1.0-develop.
|
|
28
|
-
"@progress/kendo-vue-dateinputs": "7.1.0-develop.
|
|
29
|
-
"@progress/kendo-vue-indicators": "7.1.0-develop.
|
|
30
|
-
"@progress/kendo-vue-dropdowns": "7.1.0-develop.
|
|
31
|
-
"@progress/kendo-vue-inputs": "7.1.0-develop.
|
|
32
|
-
"@progress/kendo-vue-intl": "7.1.0-develop.
|
|
33
|
-
"@progress/kendo-vue-popup": "7.1.0-develop.
|
|
24
|
+
"@progress/kendo-vue-animation": "7.1.0-develop.6",
|
|
25
|
+
"@progress/kendo-vue-buttons": "7.1.0-develop.6",
|
|
26
|
+
"@progress/kendo-vue-common": "7.1.0-develop.6",
|
|
27
|
+
"@progress/kendo-vue-data-tools": "7.1.0-develop.6",
|
|
28
|
+
"@progress/kendo-vue-dateinputs": "7.1.0-develop.6",
|
|
29
|
+
"@progress/kendo-vue-indicators": "7.1.0-develop.6",
|
|
30
|
+
"@progress/kendo-vue-dropdowns": "7.1.0-develop.6",
|
|
31
|
+
"@progress/kendo-vue-inputs": "7.1.0-develop.6",
|
|
32
|
+
"@progress/kendo-vue-intl": "7.1.0-develop.6",
|
|
33
|
+
"@progress/kendo-vue-popup": "7.1.0-develop.6",
|
|
34
34
|
"@progress/kendo-svg-icons": "^4.4.0",
|
|
35
35
|
"vue": "^3.0.2"
|
|
36
36
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"package": {
|
|
52
52
|
"productName": "Kendo UI for Vue",
|
|
53
53
|
"productCode": "KENDOUIVUE",
|
|
54
|
-
"publishDate":
|
|
54
|
+
"publishDate": 1769676430,
|
|
55
55
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
|
|
56
56
|
}
|
|
57
57
|
},
|
package/rows/GridRow.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),i=require("@progress/kendo-vue-common"),s=t.defineComponent({name:"KendoGridRow",props:{rowType:String,item:Object,isAltRow:Boolean,isHidden:Boolean,isHighlighted:Boolean,onClick:Function,isInEdit:Boolean,isSelected:Boolean,selectedField:String,rowHeight:Number,ariaRowIndex:Number,absoluteRowIndex:Number,dataIndex:Number,render:[String,Function,Object],onRowclick:Function,onRowdblclick:Function},methods:{handleClick(e){this.$emit("rowclick",e)},handleDoubleClick(e){this.$emit("rowdblclick",e)}},computed:{trClass(){const{rowType:e,isAltRow:o,isInEdit:r,isHighlighted:l,isSelected:n}=this.$props;return{"k-table-row":!0,"k-selected":n,"k-highlighted":l,"k-table-group-row":e==="groupHeader","k-grouping-row":e==="groupHeader","k-group-footer":e==="groupFooter","k-master-row":e!=="groupHeader"&&e!=="groupFooter","k-table-alt-row":o,"k-edit-row":r}}},render(){const e=i.getDefaultSlots(this),o=t.createVNode("tr",{onClick:this.handleClick,onDblclick:this.handleDoubleClick,class:this.trClass,style:{height:this.$props.rowHeight?this.$props.rowHeight+"px":"",visibility:this.$props.isHidden?"hidden":""},role:"row","aria-rowindex":this.$props.ariaRowIndex,"absolute-row-index":this.$props.absoluteRowIndex,"data-grid-row-index":this.$props.rowType==="data"?this.$props.dataIndex:void 0},[e]);return i.getTemplate.call(this,{h:t.h,template:this.$props.render,defaultRendering:o,additionalProps:this.$props,additionalListeners:{click:this.handleClick},defaultSlots:e,swapDefaultSlots:!0})}});exports.GridRow=s;
|
package/rows/GridRow.mjs
CHANGED
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const g = /* @__PURE__ */ d({
|
|
8
|
+
import { defineComponent as l, createVNode as s, h as n } from "vue";
|
|
9
|
+
import { getDefaultSlots as d, getTemplate as a } from "@progress/kendo-vue-common";
|
|
10
|
+
const c = /* @__PURE__ */ l({
|
|
12
11
|
name: "KendoGridRow",
|
|
13
12
|
props: {
|
|
14
13
|
rowType: String,
|
|
15
|
-
|
|
14
|
+
item: Object,
|
|
16
15
|
isAltRow: Boolean,
|
|
17
16
|
isHidden: Boolean,
|
|
18
17
|
isHighlighted: Boolean,
|
|
@@ -22,6 +21,7 @@ const g = /* @__PURE__ */ d({
|
|
|
22
21
|
selectedField: String,
|
|
23
22
|
rowHeight: Number,
|
|
24
23
|
ariaRowIndex: Number,
|
|
24
|
+
absoluteRowIndex: Number,
|
|
25
25
|
dataIndex: Number,
|
|
26
26
|
render: [String, Function, Object],
|
|
27
27
|
onRowclick: Function,
|
|
@@ -39,26 +39,26 @@ const g = /* @__PURE__ */ d({
|
|
|
39
39
|
trClass() {
|
|
40
40
|
const {
|
|
41
41
|
rowType: e,
|
|
42
|
-
isAltRow:
|
|
43
|
-
isInEdit:
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
isAltRow: o,
|
|
43
|
+
isInEdit: t,
|
|
44
|
+
isHighlighted: i,
|
|
45
|
+
isSelected: r
|
|
46
46
|
} = this.$props;
|
|
47
47
|
return {
|
|
48
48
|
"k-table-row": !0,
|
|
49
|
-
"k-selected":
|
|
50
|
-
"k-highlighted":
|
|
49
|
+
"k-selected": r,
|
|
50
|
+
"k-highlighted": i,
|
|
51
51
|
"k-table-group-row": e === "groupHeader",
|
|
52
52
|
"k-grouping-row": e === "groupHeader",
|
|
53
53
|
"k-group-footer": e === "groupFooter",
|
|
54
54
|
"k-master-row": e !== "groupHeader" && e !== "groupFooter",
|
|
55
|
-
"k-table-alt-row":
|
|
56
|
-
"k-edit-row":
|
|
55
|
+
"k-table-alt-row": o,
|
|
56
|
+
"k-edit-row": t
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
render() {
|
|
61
|
-
const e =
|
|
61
|
+
const e = d(this), o = s("tr", {
|
|
62
62
|
onClick: this.handleClick,
|
|
63
63
|
onDblclick: this.handleDoubleClick,
|
|
64
64
|
class: this.trClass,
|
|
@@ -68,12 +68,13 @@ const g = /* @__PURE__ */ d({
|
|
|
68
68
|
},
|
|
69
69
|
role: "row",
|
|
70
70
|
"aria-rowindex": this.$props.ariaRowIndex,
|
|
71
|
+
"absolute-row-index": this.$props.absoluteRowIndex,
|
|
71
72
|
"data-grid-row-index": this.$props.rowType === "data" ? this.$props.dataIndex : void 0
|
|
72
73
|
}, [e]);
|
|
73
|
-
return
|
|
74
|
+
return a.call(this, {
|
|
74
75
|
h: n,
|
|
75
76
|
template: this.$props.render,
|
|
76
|
-
defaultRendering:
|
|
77
|
+
defaultRendering: o,
|
|
77
78
|
additionalProps: this.$props,
|
|
78
79
|
additionalListeners: {
|
|
79
80
|
click: this.handleClick
|
|
@@ -84,5 +85,5 @@ const g = /* @__PURE__ */ d({
|
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
87
|
export {
|
|
87
|
-
|
|
88
|
+
c as GridRow
|
|
88
89
|
};
|