@progress/kendo-angular-grid 11.6.0 → 12.0.0-develop.10
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/column-menu/column-menu-item-content-template.directive.d.ts +13 -24
- package/column-menu/column-menu-template.directive.d.ts +14 -28
- package/columns/column-base.d.ts +4 -0
- package/columns/reorder-column.component.d.ts +31 -0
- package/databinding.directive.d.ts +15 -1
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +4 -16
- package/editing/edit-template.directive.d.ts +2 -3
- package/editing/remove-command.directive.d.ts +6 -6
- package/editing/save-command.directive.d.ts +3 -15
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/template-editing.directive.d.ts +1 -1
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +13 -24
- package/esm2020/column-menu/column-menu-template.directive.mjs +14 -28
- package/esm2020/columns/column-base.mjs +4 -0
- package/esm2020/columns/reorder-column.component.mjs +55 -0
- package/esm2020/databinding.directive.mjs +30 -3
- package/esm2020/editing/add-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +4 -16
- package/esm2020/editing/edit-template.directive.mjs +2 -3
- package/esm2020/editing/remove-command.directive.mjs +6 -6
- package/esm2020/editing/save-command.directive.mjs +3 -15
- package/esm2020/editing-directives/in-cell-editing.directive.mjs +1 -1
- package/esm2020/editing-directives/template-editing.directive.mjs +1 -1
- package/esm2020/excel/excel-command.directive.mjs +2 -2
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +1 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +1 -1
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +1 -1
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +1 -1
- package/esm2020/grid.component.mjs +195 -38
- package/esm2020/grid.module.mjs +70 -65
- package/esm2020/grouping/group-footer-template.directive.mjs +9 -35
- package/esm2020/grouping/group-header-column-template.directive.mjs +2 -2
- package/esm2020/grouping/group-header-template.directive.mjs +9 -37
- package/esm2020/index.mjs +1 -0
- package/esm2020/localization/messages.mjs +3 -1
- package/esm2020/navigation/focusable.directive.mjs +10 -41
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-page-sizes.component.mjs +1 -1
- package/esm2020/pager/pager-template.directive.mjs +13 -46
- package/esm2020/pdf/pdf-template.directive.mjs +10 -38
- package/esm2020/rendering/body.module.mjs +9 -4
- package/esm2020/rendering/cell-loading.template.directive.mjs +11 -8
- package/esm2020/rendering/cell-template.directive.mjs +11 -35
- package/esm2020/rendering/cell.component.mjs +43 -10
- package/esm2020/rendering/details/detail-template.directive.mjs +10 -58
- package/esm2020/rendering/details-expand.directive.mjs +1 -1
- package/esm2020/rendering/footer/footer-template.directive.mjs +8 -35
- package/esm2020/rendering/header/header-template.directive.mjs +9 -36
- package/esm2020/rendering/loading-template.directive.mjs +1 -1
- package/esm2020/rendering/no-records-template.directive.mjs +11 -58
- package/esm2020/rendering/toolbar/toolbar-template.directive.mjs +10 -56
- package/esm2020/row-reordering/row-reorder.service.mjs +232 -0
- package/esm2020/row-reordering/types.mjs +5 -0
- package/esm2020/row-reordering/utils.mjs +87 -0
- package/esm2020/selection/selectall-checkbox.directive.mjs +12 -1
- package/esm2020/selection/selection-checkbox.directive.mjs +11 -44
- package/esm2020/selection/selection-default.mjs +1 -0
- package/esm2020/selection/selection.directive.mjs +1 -1
- package/excel/excel-command.directive.d.ts +2 -2
- package/fesm2015/progress-kendo-angular-grid.mjs +838 -690
- package/fesm2020/progress-kendo-angular-grid.mjs +834 -690
- package/grid.component.d.ts +46 -4
- package/grid.module.d.ts +87 -85
- package/grouping/group-footer-template.directive.d.ts +9 -35
- package/grouping/group-header-column-template.directive.d.ts +2 -2
- package/grouping/group-header-template.directive.d.ts +9 -37
- package/index.d.ts +2 -0
- package/localization/messages.d.ts +5 -1
- package/navigation/focusable.directive.d.ts +10 -41
- package/package.json +15 -14
- package/pager/pager-template.directive.d.ts +13 -46
- package/pdf/pdf-template.directive.d.ts +10 -38
- package/rendering/body.module.d.ts +9 -8
- package/rendering/cell-loading.template.directive.d.ts +11 -8
- package/rendering/cell-template.directive.d.ts +11 -35
- package/rendering/cell.component.d.ts +5 -0
- package/rendering/details/detail-template.directive.d.ts +10 -58
- package/rendering/details-expand.directive.d.ts +1 -1
- package/rendering/footer/footer-template.directive.d.ts +8 -35
- package/rendering/header/header-template.directive.d.ts +9 -36
- package/rendering/loading-template.directive.d.ts +1 -1
- package/rendering/no-records-template.directive.d.ts +11 -58
- package/rendering/toolbar/toolbar-template.directive.d.ts +10 -56
- package/row-reordering/row-reorder.service.d.ts +56 -0
- package/row-reordering/types.d.ts +40 -0
- package/row-reordering/utils.d.ts +78 -0
- package/schematics/ngAdd/index.js +2 -2
- package/selection/selectall-checkbox.directive.d.ts +12 -1
- package/selection/selection-checkbox.directive.d.ts +11 -44
- package/selection/selection-default.d.ts +1 -0
- package/selection/selection.directive.d.ts +1 -1
package/esm2020/grid.module.mjs
CHANGED
|
@@ -31,6 +31,7 @@ import { GroupBindingDirective } from './grouping/group-scroll-binding.directive
|
|
|
31
31
|
import { FilterMenuModule } from "./filtering/menu/filter-menu.module";
|
|
32
32
|
import { ColumnMenuModule } from './column-menu/column-menu.module';
|
|
33
33
|
import { GridToolbarFocusableDirective } from './rendering/toolbar/toolbar-focusable.directive';
|
|
34
|
+
import { DragAndDropModule } from '@progress/kendo-angular-utils';
|
|
34
35
|
import * as i0 from "@angular/core";
|
|
35
36
|
import * as i1 from "./grouping/group-header-template.directive";
|
|
36
37
|
import * as i2 from "./grouping/group-header-column-template.directive";
|
|
@@ -55,67 +56,68 @@ import * as i20 from "./editing/remove-command.directive";
|
|
|
55
56
|
import * as i21 from "./editing/add-command.directive";
|
|
56
57
|
import * as i22 from "./rendering/cell-loading.template.directive";
|
|
57
58
|
import * as i23 from "./rendering/loading-template.directive";
|
|
58
|
-
import * as i24 from "./
|
|
59
|
-
import * as i25 from "./
|
|
60
|
-
import * as i26 from "./
|
|
61
|
-
import * as i27 from "./pager/pager
|
|
62
|
-
import * as i28 from "./pager/pager-
|
|
63
|
-
import * as i29 from "./pager/pager-
|
|
64
|
-
import * as i30 from "./pager/pager-
|
|
65
|
-
import * as i31 from "./pager/pager-
|
|
66
|
-
import * as i32 from "./pager/pager-
|
|
67
|
-
import * as i33 from "./pager/pager-
|
|
68
|
-
import * as i34 from "./pager/pager-
|
|
69
|
-
import * as i35 from "./pager/pager-
|
|
70
|
-
import * as i36 from "./
|
|
71
|
-
import * as i37 from "./filtering/
|
|
72
|
-
import * as i38 from "./filtering/cell/filter-cell
|
|
73
|
-
import * as i39 from "./filtering/cell/filter-cell-
|
|
74
|
-
import * as i40 from "./filtering/cell/
|
|
75
|
-
import * as i41 from "./filtering/cell/
|
|
76
|
-
import * as i42 from "./filtering/cell/
|
|
77
|
-
import * as i43 from "./filtering/cell/
|
|
78
|
-
import * as i44 from "./filtering/cell/
|
|
79
|
-
import * as i45 from "./filtering/
|
|
80
|
-
import * as i46 from "./filtering/operators/
|
|
81
|
-
import * as i47 from "./filtering/operators/
|
|
82
|
-
import * as i48 from "./filtering/operators/
|
|
83
|
-
import * as i49 from "./filtering/operators/
|
|
84
|
-
import * as i50 from "./filtering/operators/is-
|
|
85
|
-
import * as i51 from "./filtering/operators/is-not-
|
|
86
|
-
import * as i52 from "./filtering/operators/
|
|
87
|
-
import * as i53 from "./filtering/operators/
|
|
88
|
-
import * as i54 from "./filtering/operators/
|
|
89
|
-
import * as i55 from "./filtering/operators/
|
|
90
|
-
import * as i56 from "./filtering/operators/
|
|
91
|
-
import * as i57 from "./filtering/operators/
|
|
92
|
-
import * as i58 from "./filtering/operators/
|
|
93
|
-
import * as i59 from "./filtering/operators/
|
|
94
|
-
import * as i60 from "./filtering/operators/after-
|
|
95
|
-
import * as i61 from "./filtering/operators/
|
|
96
|
-
import * as i62 from "./filtering/operators/before-filter-operator.component";
|
|
97
|
-
import * as i63 from "./filtering/
|
|
98
|
-
import * as i64 from "./filtering/menu/filter-menu
|
|
99
|
-
import * as i65 from "./filtering/menu/
|
|
100
|
-
import * as i66 from "./filtering/menu/
|
|
101
|
-
import * as i67 from "./filtering/menu/
|
|
102
|
-
import * as i68 from "./filtering/menu/filter-menu
|
|
103
|
-
import * as i69 from "./filtering/menu/filter-
|
|
104
|
-
import * as i70 from "./
|
|
105
|
-
import * as i71 from "./column-menu/column-
|
|
106
|
-
import * as i72 from "./column-menu/column-menu-
|
|
107
|
-
import * as i73 from "./column-menu/column-menu-item
|
|
108
|
-
import * as i74 from "./column-menu/column-menu-
|
|
109
|
-
import * as i75 from "./column-menu/column-menu-
|
|
110
|
-
import * as i76 from "./column-menu/column-menu-
|
|
111
|
-
import * as i77 from "./column-menu/column-menu-
|
|
112
|
-
import * as i78 from "./column-menu/column-menu-
|
|
113
|
-
import * as i79 from "./column-menu/column-menu-
|
|
114
|
-
import * as i80 from "./column-menu/column-menu-
|
|
115
|
-
import * as i81 from "./column-menu/column-menu-
|
|
116
|
-
import * as i82 from "./column-menu/column-menu.
|
|
117
|
-
import * as i83 from "./column-menu/column-menu
|
|
118
|
-
import * as i84 from "./column-menu/column-menu-autosize
|
|
59
|
+
import * as i24 from "./columns/reorder-column.component";
|
|
60
|
+
import * as i25 from "./rendering/header/header-template.directive";
|
|
61
|
+
import * as i26 from "./selection/selectall-checkbox.directive";
|
|
62
|
+
import * as i27 from "./pager/pager.component";
|
|
63
|
+
import * as i28 from "./pager/pager-prev-buttons.component";
|
|
64
|
+
import * as i29 from "./pager/pager-next-buttons.component";
|
|
65
|
+
import * as i30 from "./pager/pager-numeric-buttons.component";
|
|
66
|
+
import * as i31 from "./pager/pager-input.component";
|
|
67
|
+
import * as i32 from "./pager/pager-info.component";
|
|
68
|
+
import * as i33 from "./pager/pager-page-sizes.component";
|
|
69
|
+
import * as i34 from "./pager/pager-template.directive";
|
|
70
|
+
import * as i35 from "./pager/pager-dropdown.directive";
|
|
71
|
+
import * as i36 from "./pager/pager-input.directive";
|
|
72
|
+
import * as i37 from "./filtering/filter-row.component";
|
|
73
|
+
import * as i38 from "./filtering/cell/filter-cell.component";
|
|
74
|
+
import * as i39 from "./filtering/cell/filter-cell-template.directive";
|
|
75
|
+
import * as i40 from "./filtering/cell/filter-cell-operators.component";
|
|
76
|
+
import * as i41 from "./filtering/cell/string-filter-cell.component";
|
|
77
|
+
import * as i42 from "./filtering/cell/numeric-filter-cell.component";
|
|
78
|
+
import * as i43 from "./filtering/cell/autocomplete-filter-cell.component";
|
|
79
|
+
import * as i44 from "./filtering/cell/boolean-filter-cell.component";
|
|
80
|
+
import * as i45 from "./filtering/cell/date-filter-cell.component";
|
|
81
|
+
import * as i46 from "./filtering/operators/contains-filter-operator.component";
|
|
82
|
+
import * as i47 from "./filtering/operators/not-contains-filter-operator.component";
|
|
83
|
+
import * as i48 from "./filtering/operators/ends-with-filter-operator.component";
|
|
84
|
+
import * as i49 from "./filtering/operators/eq-filter-operator.component";
|
|
85
|
+
import * as i50 from "./filtering/operators/is-empty-filter-operator.component";
|
|
86
|
+
import * as i51 from "./filtering/operators/is-not-empty-filter-operator.component";
|
|
87
|
+
import * as i52 from "./filtering/operators/is-not-null-filter-operator.component";
|
|
88
|
+
import * as i53 from "./filtering/operators/isnull-filter-operator.component";
|
|
89
|
+
import * as i54 from "./filtering/operators/neq-filter-operator.component";
|
|
90
|
+
import * as i55 from "./filtering/operators/starts-with-filter-operator.component";
|
|
91
|
+
import * as i56 from "./filtering/operators/gt-filter-operator.component";
|
|
92
|
+
import * as i57 from "./filtering/operators/gte-filter-operator.component";
|
|
93
|
+
import * as i58 from "./filtering/operators/lt-filter-operator.component";
|
|
94
|
+
import * as i59 from "./filtering/operators/lte-filter-operator.component";
|
|
95
|
+
import * as i60 from "./filtering/operators/after-filter-operator.component";
|
|
96
|
+
import * as i61 from "./filtering/operators/after-eq-filter-operator.component";
|
|
97
|
+
import * as i62 from "./filtering/operators/before-eq-filter-operator.component";
|
|
98
|
+
import * as i63 from "./filtering/operators/before-filter-operator.component";
|
|
99
|
+
import * as i64 from "./filtering/menu/string-filter-menu.component";
|
|
100
|
+
import * as i65 from "./filtering/menu/filter-menu-template.directive";
|
|
101
|
+
import * as i66 from "./filtering/menu/numeric-filter-menu.component";
|
|
102
|
+
import * as i67 from "./filtering/menu/date-filter-menu.component";
|
|
103
|
+
import * as i68 from "./filtering/menu/boolean-filter-menu.component";
|
|
104
|
+
import * as i69 from "./filtering/menu/filter-menu-dropdownlist.directive";
|
|
105
|
+
import * as i70 from "./filtering/menu/filter-radio-button.directive";
|
|
106
|
+
import * as i71 from "./column-menu/column-chooser.component";
|
|
107
|
+
import * as i72 from "./column-menu/column-menu-filter.component";
|
|
108
|
+
import * as i73 from "./column-menu/column-menu-item.component";
|
|
109
|
+
import * as i74 from "./column-menu/column-menu-item-content-template.directive";
|
|
110
|
+
import * as i75 from "./column-menu/column-menu-sort.component";
|
|
111
|
+
import * as i76 from "./column-menu/column-menu-lock.component";
|
|
112
|
+
import * as i77 from "./column-menu/column-menu-stick.component";
|
|
113
|
+
import * as i78 from "./column-menu/column-menu-position.component";
|
|
114
|
+
import * as i79 from "./column-menu/column-menu-chooser.component";
|
|
115
|
+
import * as i80 from "./column-menu/column-menu-template.directive";
|
|
116
|
+
import * as i81 from "./column-menu/column-menu-container.component";
|
|
117
|
+
import * as i82 from "./column-menu/column-menu-item.directive";
|
|
118
|
+
import * as i83 from "./column-menu/column-menu.component";
|
|
119
|
+
import * as i84 from "./column-menu/column-menu-autosize.component";
|
|
120
|
+
import * as i85 from "./column-menu/column-menu-autosize-all.component";
|
|
119
121
|
const exportedModules = [
|
|
120
122
|
GridComponent,
|
|
121
123
|
ToolbarTemplateDirective,
|
|
@@ -220,7 +222,8 @@ GridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13
|
|
|
220
222
|
RowFilterModule,
|
|
221
223
|
FilterMenuModule,
|
|
222
224
|
ResizeSensorModule,
|
|
223
|
-
ColumnMenuModule
|
|
225
|
+
ColumnMenuModule,
|
|
226
|
+
DragAndDropModule], exports: [GridComponent,
|
|
224
227
|
ToolbarTemplateDirective,
|
|
225
228
|
ToolbarComponent,
|
|
226
229
|
GridSpacerComponent,
|
|
@@ -233,7 +236,7 @@ GridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13
|
|
|
233
236
|
InCellEditingDirective,
|
|
234
237
|
ExpandDetailsDirective,
|
|
235
238
|
ExpandGroupDirective,
|
|
236
|
-
GridToolbarFocusableDirective, i1.GroupHeaderTemplateDirective, i2.GroupHeaderColumnTemplateDirective, i3.GroupFooterTemplateDirective, i4.ColumnComponent, i5.SpanColumnComponent, i6.ColumnGroupComponent, i7.FooterTemplateDirective, i8.DetailTemplateDirective, i9.FocusableDirective, i10.GridTableDirective, i11.CommandColumnComponent, i12.CheckboxColumnComponent, i13.SelectionCheckboxDirective, i14.CellTemplateDirective, i15.NoRecordsTemplateDirective, i16.EditTemplateDirective, i17.EditCommandDirective, i18.CancelCommandDirective, i19.SaveCommandDirective, i20.RemoveCommandDirective, i21.AddCommandDirective, i22.CellLoadingTemplateDirective, i23.LoadingTemplateDirective, i24.
|
|
239
|
+
GridToolbarFocusableDirective, i1.GroupHeaderTemplateDirective, i2.GroupHeaderColumnTemplateDirective, i3.GroupFooterTemplateDirective, i4.ColumnComponent, i5.SpanColumnComponent, i6.ColumnGroupComponent, i7.FooterTemplateDirective, i8.DetailTemplateDirective, i9.FocusableDirective, i10.GridTableDirective, i11.CommandColumnComponent, i12.CheckboxColumnComponent, i13.SelectionCheckboxDirective, i14.CellTemplateDirective, i15.NoRecordsTemplateDirective, i16.EditTemplateDirective, i17.EditCommandDirective, i18.CancelCommandDirective, i19.SaveCommandDirective, i20.RemoveCommandDirective, i21.AddCommandDirective, i22.CellLoadingTemplateDirective, i23.LoadingTemplateDirective, i24.RowReorderColumnComponent, i25.HeaderTemplateDirective, i26.SelectAllCheckboxDirective, i27.PagerComponent, i28.PagerPrevButtonsComponent, i29.PagerNextButtonsComponent, i30.PagerNumericButtonsComponent, i31.PagerInputComponent, i32.PagerInfoComponent, i33.PagerPageSizesComponent, i34.PagerTemplateDirective, i35.PagerDropDownListDirective, i36.PagerInputDirective, i37.FilterRowComponent, i38.FilterCellComponent, i39.FilterCellTemplateDirective, i40.FilterCellOperatorsComponent, i41.StringFilterCellComponent, i42.NumericFilterCellComponent, i43.AutoCompleteFilterCellComponent, i44.BooleanFilterCellComponent, i45.DateFilterCellComponent, i40.FilterCellOperatorsComponent, i46.ContainsFilterOperatorComponent, i47.DoesNotContainFilterOperatorComponent, i48.EndsWithFilterOperatorComponent, i49.EqualFilterOperatorComponent, i50.IsEmptyFilterOperatorComponent, i51.IsNotEmptyFilterOperatorComponent, i52.IsNotNullFilterOperatorComponent, i53.IsNullFilterOperatorComponent, i54.NotEqualFilterOperatorComponent, i55.StartsWithFilterOperatorComponent, i56.GreaterFilterOperatorComponent, i57.GreaterOrEqualToFilterOperatorComponent, i58.LessFilterOperatorComponent, i59.LessOrEqualToFilterOperatorComponent, i60.AfterFilterOperatorComponent, i61.AfterEqFilterOperatorComponent, i62.BeforeEqFilterOperatorComponent, i63.BeforeFilterOperatorComponent, i64.StringFilterMenuComponent, i65.FilterMenuTemplateDirective, i66.NumericFilterMenuComponent, i67.DateFilterMenuComponent, i68.BooleanFilterMenuComponent, i69.FilterMenuDropDownListDirective, i70.BooleanFilterRadioButtonDirective, i40.FilterCellOperatorsComponent, i46.ContainsFilterOperatorComponent, i47.DoesNotContainFilterOperatorComponent, i48.EndsWithFilterOperatorComponent, i49.EqualFilterOperatorComponent, i50.IsEmptyFilterOperatorComponent, i51.IsNotEmptyFilterOperatorComponent, i52.IsNotNullFilterOperatorComponent, i53.IsNullFilterOperatorComponent, i54.NotEqualFilterOperatorComponent, i55.StartsWithFilterOperatorComponent, i56.GreaterFilterOperatorComponent, i57.GreaterOrEqualToFilterOperatorComponent, i58.LessFilterOperatorComponent, i59.LessOrEqualToFilterOperatorComponent, i60.AfterFilterOperatorComponent, i61.AfterEqFilterOperatorComponent, i62.BeforeEqFilterOperatorComponent, i63.BeforeFilterOperatorComponent, i71.ColumnChooserComponent, i72.ColumnMenuFilterComponent, i73.ColumnMenuItemComponent, i74.ColumnMenuItemContentTemplateDirective, i75.ColumnMenuSortComponent, i76.ColumnMenuLockComponent, i77.ColumnMenuStickComponent, i78.ColumnMenuPositionComponent, i79.ColumnMenuChooserComponent, i80.ColumnMenuTemplateDirective, i81.ColumnMenuContainerComponent, i82.ColumnMenuItemDirective, i83.ColumnMenuComponent, i84.ColumnMenuAutoSizeColumnComponent, i85.ColumnMenuAutoSizeAllColumnsComponent] });
|
|
237
240
|
GridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridModule, imports: [[
|
|
238
241
|
CommonModule,
|
|
239
242
|
GroupModule,
|
|
@@ -245,7 +248,8 @@ GridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
|
|
|
245
248
|
RowFilterModule,
|
|
246
249
|
FilterMenuModule,
|
|
247
250
|
ResizeSensorModule,
|
|
248
|
-
ColumnMenuModule
|
|
251
|
+
ColumnMenuModule,
|
|
252
|
+
DragAndDropModule
|
|
249
253
|
]] });
|
|
250
254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridModule, decorators: [{
|
|
251
255
|
type: NgModule,
|
|
@@ -263,7 +267,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
263
267
|
RowFilterModule,
|
|
264
268
|
FilterMenuModule,
|
|
265
269
|
ResizeSensorModule,
|
|
266
|
-
ColumnMenuModule
|
|
270
|
+
ColumnMenuModule,
|
|
271
|
+
DragAndDropModule
|
|
267
272
|
]
|
|
268
273
|
}]
|
|
269
274
|
}] });
|
|
@@ -9,47 +9,21 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* To define the group footer template, nest an `<ng-template>` tag with the `kendoGridGroupFooterTemplate` directive
|
|
10
10
|
* inside `<kendo-grid-column>`.
|
|
11
11
|
*
|
|
12
|
-
* The template context is set to the current
|
|
12
|
+
* The template context is set to the current data item and the following additional fields are passed:
|
|
13
13
|
* - `column`—Defines an instance of the `ColumnComponent` option.
|
|
14
14
|
* - `field`—The current column field name.
|
|
15
15
|
* - `group`—The current group data item.
|
|
16
16
|
* - `aggregates`—All aggregate values for the current group.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* <ng-template kendoGridGroupFooterTemplate let-aggregates let-field="field">
|
|
28
|
-
* Count: {{aggregates[field].count}}
|
|
29
|
-
* </ng-template>
|
|
30
|
-
* </kendo-grid-column>
|
|
31
|
-
* </kendo-grid>
|
|
32
|
-
* `
|
|
33
|
-
* })
|
|
34
|
-
*
|
|
35
|
-
* class AppComponent {
|
|
36
|
-
* public groups = [{ field: "ProductName", aggregates: [{ field: "ProductName", aggregate: "count" }] }];
|
|
37
|
-
*
|
|
38
|
-
* public gridData = process([{
|
|
39
|
-
* "ProductID": 1,
|
|
40
|
-
* "ProductName": "Chai",
|
|
41
|
-
* "UnitPrice": 18.0000,
|
|
42
|
-
* "Discontinued": false
|
|
43
|
-
* }, {
|
|
44
|
-
* "ProductID": 2,
|
|
45
|
-
* "ProductName": "Chang",
|
|
46
|
-
* "UnitPrice": 19.0000,
|
|
47
|
-
* "Discontinued": true
|
|
48
|
-
* }
|
|
49
|
-
* ], {
|
|
50
|
-
* group: this.groups
|
|
51
|
-
* });
|
|
52
|
-
* }
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-grid [data]="gridData" [group]="groups">
|
|
21
|
+
* <kendo-grid-column field="ProductName">
|
|
22
|
+
* <ng-template kendoGridGroupFooterTemplate let-aggregates let-field="field">
|
|
23
|
+
* Count: {{aggregates[field].count}}
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-grid-column>
|
|
26
|
+
* </kendo-grid>
|
|
53
27
|
* ```
|
|
54
28
|
*/
|
|
55
29
|
export class GroupFooterTemplateDirective {
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the group-header column template of the Grid which helps to customize the content of the group headers.
|
|
9
9
|
* To define the group header template, nest an `<ng-template>` tag with the `kendoGridGroupHeaderColumnTemplate`
|
|
10
|
-
* directive inside `<kendo-grid-column>`. ([See example](
|
|
10
|
+
* directive inside `<kendo-grid-column>`. ([See example](slug:grouping_grid_templates#toc-header-column-template)).
|
|
11
11
|
*
|
|
12
12
|
* The template context is set to the current data item and the following additional fields are passed:
|
|
13
13
|
* - `group`—The current group item.
|
|
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* - `aggregates`—All aggregate values for the current group.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```
|
|
19
|
+
* ```html
|
|
20
20
|
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
21
21
|
* <ng-template kendoGridGroupHeaderColumnTemplate let-group="group" let-aggregates="aggregates">
|
|
22
22
|
* <span title="Group Header Column Template for ProductName">
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Represents the group-header cell template of the Grid which helps to customize the content of the group header item.
|
|
9
9
|
* To define the group header template, nest an `<ng-template>` tag with the `kendoGridGroupHeaderTemplate`
|
|
10
|
-
* directive inside `<kendo-grid-column>`.
|
|
10
|
+
* directive inside `<kendo-grid-column>`. ([See example](slug:grouping_grid_templates#toc-header-template)).
|
|
11
11
|
*
|
|
12
12
|
* The template context is set to the current data item and the following additional fields are passed:
|
|
13
13
|
* - `group`—The current group item.
|
|
@@ -16,44 +16,16 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* - `aggregates`—All aggregate values for the current group.
|
|
17
17
|
* - `index`—The index of the current group.
|
|
18
18
|
* - `expanded`—A boolean value indicating if the group is currently expanded.
|
|
19
|
-
* ([see example]({% slug groupable_grid_with_aggregates %})).
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* <ng-template kendoGridGroupHeaderTemplate let-group let-field="field" let-value="value">
|
|
31
|
-
* <strong>{{field}}</strong>: {{value}}
|
|
32
|
-
* </ng-template>
|
|
33
|
-
* </kendo-grid-column>
|
|
34
|
-
* </kendo-grid>
|
|
35
|
-
* `
|
|
36
|
-
* })
|
|
37
|
-
*
|
|
38
|
-
* class AppComponent {
|
|
39
|
-
* public groups = [{ field: "ProductName" }];
|
|
40
|
-
*
|
|
41
|
-
* public gridData = process([{
|
|
42
|
-
* "ProductID": 1,
|
|
43
|
-
* "ProductName": "Chai",
|
|
44
|
-
* "UnitPrice": 18.0000,
|
|
45
|
-
* "Discontinued": false
|
|
46
|
-
* }, {
|
|
47
|
-
* "ProductID": 2,
|
|
48
|
-
* "ProductName": "Chang",
|
|
49
|
-
* "UnitPrice": 19.0000,
|
|
50
|
-
* "Discontinued": true
|
|
51
|
-
* }
|
|
52
|
-
* ], {
|
|
53
|
-
* group: this.groups
|
|
54
|
-
* });
|
|
55
|
-
* }
|
|
56
|
-
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <kendo-grid [data]="gridData" [group]="groups">
|
|
23
|
+
* <kendo-grid-column field="ProductName">
|
|
24
|
+
* <ng-template kendoGridGroupHeaderTemplate let-group let-field="field" let-value="value">
|
|
25
|
+
* <strong>{{field}}</strong>: {{value}}
|
|
26
|
+
* </ng-template>
|
|
27
|
+
* </kendo-grid-column>
|
|
28
|
+
* </kendo-grid>
|
|
57
29
|
* ```
|
|
58
30
|
*/
|
|
59
31
|
export class GroupHeaderTemplateDirective {
|
package/esm2020/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ export { CommandColumnComponent } from './columns/command-column.component';
|
|
|
12
12
|
export { SpanColumnComponent } from './columns/span-column.component';
|
|
13
13
|
export { ColumnGroupComponent } from './columns/column-group.component';
|
|
14
14
|
export { CheckboxColumnComponent } from './columns/checkbox-column.component';
|
|
15
|
+
export { RowReorderColumnComponent } from './columns/reorder-column.component';
|
|
15
16
|
export { ToolbarComponent } from './rendering/toolbar/toolbar.component';
|
|
16
17
|
export { ToolbarTemplateDirective } from './rendering/toolbar/toolbar-template.directive';
|
|
17
18
|
export { GridToolbarFocusableDirective } from './rendering/toolbar/toolbar-focusable.directive';
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class GridMessages extends ComponentMessages {
|
|
12
12
|
}
|
|
13
13
|
GridMessages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
GridMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: GridMessages, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", selectPage: "selectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", groupPanelLabel: "groupPanelLabel" }, usesInheritance: true, ngImport: i0 });
|
|
14
|
+
GridMessages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: GridMessages, selector: "kendo-grid-messages-base", inputs: { groupPanelEmpty: "groupPanelEmpty", noRecords: "noRecords", pagerLabel: "pagerLabel", pagerFirstPage: "pagerFirstPage", pagerLastPage: "pagerLastPage", pagerPreviousPage: "pagerPreviousPage", pagerNextPage: "pagerNextPage", pagerPage: "pagerPage", pagerItemsPerPage: "pagerItemsPerPage", pagerOf: "pagerOf", pagerItems: "pagerItems", pagerPageNumberInputTitle: "pagerPageNumberInputTitle", selectPage: "selectPage", filter: "filter", filterInputLabel: "filterInputLabel", filterMenuTitle: "filterMenuTitle", filterMenuOperatorsDropDownLabel: "filterMenuOperatorsDropDownLabel", filterMenuLogicDropDownLabel: "filterMenuLogicDropDownLabel", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", filterFilterButton: "filterFilterButton", filterClearButton: "filterClearButton", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", loading: "loading", gridLabel: "gridLabel", columnMenu: "columnMenu", setColumnPosition: "setColumnPosition", columns: "columns", lock: "lock", unlock: "unlock", stick: "stick", unstick: "unstick", sortable: "sortable", sortAscending: "sortAscending", sortDescending: "sortDescending", autosizeThisColumn: "autosizeThisColumn", autosizeAllColumns: "autosizeAllColumns", sortedAscending: "sortedAscending", sortedDescending: "sortedDescending", sortedDefault: "sortedDefault", columnsApply: "columnsApply", columnsReset: "columnsReset", detailExpand: "detailExpand", detailCollapse: "detailCollapse", filterDateToday: "filterDateToday", filterDateToggle: "filterDateToggle", filterNumericDecrement: "filterNumericDecrement", filterNumericIncrement: "filterNumericIncrement", selectionCheckboxLabel: "selectionCheckboxLabel", selectAllCheckboxLabel: "selectAllCheckboxLabel", groupCollapse: "groupCollapse", groupExpand: "groupExpand", topToolbarLabel: "topToolbarLabel", bottomToolbarLabel: "bottomToolbarLabel", groupPanelLabel: "groupPanelLabel", dragRowHandleLabel: "dragRowHandleLabel" }, usesInheritance: true, ngImport: i0 });
|
|
15
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: GridMessages, decorators: [{
|
|
16
16
|
type: Directive,
|
|
17
17
|
args: [{
|
|
@@ -168,4 +168,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
168
168
|
type: Input
|
|
169
169
|
}], groupPanelLabel: [{
|
|
170
170
|
type: Input
|
|
171
|
+
}], dragRowHandleLabel: [{
|
|
172
|
+
type: Input
|
|
171
173
|
}] } });
|
|
@@ -11,47 +11,16 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* [focus in a navigable Grid]({% slug keyboard_navigation_grid %}).
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* <
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* <kendo-grid-column>
|
|
25
|
-
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
26
|
-
* <!-- The first focusable element will be focused when pressing Enter on the cell -->
|
|
27
|
-
* <input type="text" kendoGridFocusable [value]="dataItem.ProductName" style="margin-right: 8px;" />
|
|
28
|
-
* <button kendoGridFocusable>Update</button>
|
|
29
|
-
* </ng-template>
|
|
30
|
-
* </kendo-grid-column>
|
|
31
|
-
* <kendo-grid-column [width]="100">
|
|
32
|
-
* <ng-template kendoGridCellTemplate>
|
|
33
|
-
* <!-- A single focusable element will be focused during navigation -->
|
|
34
|
-
* <button kendoGridFocusable>Delete</button>
|
|
35
|
-
* </ng-template>
|
|
36
|
-
* </kendo-grid-column>
|
|
37
|
-
* </kendo-grid>
|
|
38
|
-
* <input type="text" placeholder="Tab stop #2" style="margin-top: 8px;" />
|
|
39
|
-
* `
|
|
40
|
-
* })
|
|
41
|
-
*
|
|
42
|
-
* class AppComponent {
|
|
43
|
-
* public readonly data: any = [{
|
|
44
|
-
* "ProductID": 1,
|
|
45
|
-
* "ProductName": "Chai",
|
|
46
|
-
* "UnitPrice": 18.0000,
|
|
47
|
-
* "Discontinued": true
|
|
48
|
-
* }, {
|
|
49
|
-
* "ProductID": 2,
|
|
50
|
-
* "ProductName": "Chang",
|
|
51
|
-
* "UnitPrice": 19.0000,
|
|
52
|
-
* "Discontinued": false
|
|
53
|
-
* }];
|
|
54
|
-
* }
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid [data]="data" [navigable]="true">
|
|
16
|
+
* <kendo-grid-column>
|
|
17
|
+
* <ng-template kendoGridCellTemplate let-dataItem>
|
|
18
|
+
* <!-- The first focusable element will be focused when pressing Enter on the cell -->
|
|
19
|
+
* <input type="text" kendoGridFocusable [value]="dataItem.ProductName" style="margin-right: 8px;" />
|
|
20
|
+
* <button kendoGridFocusable>Update</button>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* </kendo-grid-column>
|
|
23
|
+
* </kendo-grid>
|
|
55
24
|
* ```
|
|
56
25
|
*/
|
|
57
26
|
export class FocusableDirective {
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-grid',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '
|
|
12
|
+
publishDate: 1681902962,
|
|
13
|
+
version: '12.0.0-develop.10',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -198,7 +198,7 @@ PagerPageSizesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
198
198
|
[value]="pageSize"
|
|
199
199
|
(valueChange)="pageSizeChange($event)"></kendo-dropdownlist>
|
|
200
200
|
<kendo-label [for]="dropdownlist" [text]="textFor('pagerItemsPerPage')"></kendo-label>
|
|
201
|
-
`, isInline: true, components: [{ type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i5.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional"], exportAs: ["kendoLabel"] }], directives: [{ type: i6.PagerDropDownListDirective, selector: "[kendoGridPagerDropDown]" }, { type: i7.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
201
|
+
`, isInline: true, components: [{ type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i5.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional"], exportAs: ["kendoLabel"] }], directives: [{ type: i6.PagerDropDownListDirective, selector: "[kendoGridPagerDropDown]" }, { type: i7.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
202
202
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: PagerPageSizesComponent, decorators: [{
|
|
203
203
|
type: Component,
|
|
204
204
|
args: [{
|
|
@@ -6,7 +6,8 @@ import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the pager template which helps to customize the pager appearance in the Grid. To define a pager
|
|
9
|
-
* template, nest an `<ng-template>` tag with the `kendoPagerTemplate` directive inside `<kendo-grid
|
|
9
|
+
* template, nest an `<ng-template>` tag with the `kendoPagerTemplate` directive inside `<kendo-grid>` tag
|
|
10
|
+
* [see example](slug:pager_template_grid).
|
|
10
11
|
*
|
|
11
12
|
* The template context provides the following fields:
|
|
12
13
|
* * `currentPage`—The index of the displayed page.
|
|
@@ -14,53 +15,19 @@ import * as i0 from "@angular/core";
|
|
|
14
15
|
* * `skip`—The current skip value.
|
|
15
16
|
* * `total`—The total number of records.
|
|
16
17
|
* * `totalPages`—The total number of available pages.
|
|
17
|
-
* * Needs to be provided as an input to inner pager components used within the template when the Grid is navigable.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* </kendo-grid-column>
|
|
32
|
-
* <kendo-grid-column field="ProductName" title="Name" [width]="250">
|
|
33
|
-
* </kendo-grid-column>
|
|
34
|
-
* <kendo-grid-column field="UnitPrice" title="Price" [width]="80" format="{0:c}">
|
|
35
|
-
* </kendo-grid-column>
|
|
36
|
-
*
|
|
37
|
-
* <ng-template kendoPagerTemplate let-totalPages="totalPages" let-currentPage="currentPage">
|
|
38
|
-
* <kendo-pager-prev-buttons></kendo-pager-prev-buttons>
|
|
39
|
-
* <kendo-pager-numeric-buttons [buttonCount]="10"></kendo-pager-numeric-buttons>
|
|
40
|
-
* <kendo-pager-next-buttons></kendo-pager-next-buttons>
|
|
41
|
-
* <kendo-pager-info></kendo-pager-info>
|
|
42
|
-
* Current page: {{currentPage}}
|
|
43
|
-
* </ng-template>
|
|
44
|
-
*
|
|
45
|
-
* </kendo-grid>
|
|
46
|
-
* `
|
|
47
|
-
* })
|
|
48
|
-
*
|
|
49
|
-
* class AppComponent {
|
|
50
|
-
* public gridData = [{
|
|
51
|
-
* "ProductID": 1,
|
|
52
|
-
* "ProductName": "Chai",
|
|
53
|
-
* "UnitPrice": 18.0000,
|
|
54
|
-
* "Discontinued": false
|
|
55
|
-
* }, {
|
|
56
|
-
* "ProductID": 2,
|
|
57
|
-
* "ProductName": "Chang",
|
|
58
|
-
* "UnitPrice": 19.0000,
|
|
59
|
-
* "Discontinued": true
|
|
60
|
-
* }
|
|
61
|
-
* ];
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-grid ... [pageable]="true">
|
|
22
|
+
* <ng-template kendoPagerTemplate let-totalPages="totalPages" let-currentPage="currentPage">
|
|
23
|
+
* <kendo-pager-prev-buttons></kendo-pager-prev-buttons>
|
|
24
|
+
* <kendo-pager-next-buttons></kendo-pager-next-buttons>
|
|
25
|
+
* <kendo-pager-info></kendo-pager-info>
|
|
26
|
+
* Current page: {{currentPage}}
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
29
|
+
* <kendo-grid-column field="ProductName"></kendo-grid-column>
|
|
30
|
+
* </kendo-grid>
|
|
64
31
|
* ```
|
|
65
32
|
*/
|
|
66
33
|
export class PagerTemplateDirective {
|
|
@@ -7,50 +7,22 @@ import { PDFExportTemplateDirective } from '@progress/kendo-angular-pdf-export';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* Represents the PDF page template of the Grid that helps to customize the PDF pages. To define a page template,
|
|
10
|
-
* nest an `<ng-template>` tag with the `kendoGridPDFTemplate` directive inside `<kendo-grid-pdf
|
|
10
|
+
* nest an `<ng-template>` tag with the `kendoGridPDFTemplate` directive inside `<kendo-grid-pdf>` tag.
|
|
11
11
|
*
|
|
12
12
|
* The template context provides the following fields:
|
|
13
13
|
* - `pageNumber`—Defines PDF page number.
|
|
14
14
|
* - `totalPages`—Defines the total number of PDF pages.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* template
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* <kendo-grid-column field="ProductName">
|
|
27
|
-
* </kendo-grid-column>
|
|
28
|
-
* <kendo-grid-column field="UnitPrice">
|
|
29
|
-
* </kendo-grid-column>
|
|
30
|
-
* <kendo-grid-pdf fileName="Products.pdf" paperSize="A4" [margin]="{ top: '1cm', left: '1cm', right: '1cm', bottom: '1cm' }">
|
|
31
|
-
* <ng-template kendoGridPDFTemplate let-pageNum="pageNum" let-totalPages="totalPages">
|
|
32
|
-
* <div style="position: absolute;top: 5px; left: 5px;">
|
|
33
|
-
* Page {{ pageNum }} of {{ totalPages }}
|
|
34
|
-
* </div>
|
|
35
|
-
* </ng-template>
|
|
36
|
-
* </kendo-grid-pdf>
|
|
37
|
-
* </kendo-grid>
|
|
38
|
-
* `
|
|
39
|
-
* })
|
|
40
|
-
*
|
|
41
|
-
* class AppComponent {
|
|
42
|
-
* public gridData = [{
|
|
43
|
-
* "ProductID": 1,
|
|
44
|
-
* "ProductName": "Chai",
|
|
45
|
-
* "UnitPrice": 18.0000
|
|
46
|
-
* }, {
|
|
47
|
-
* "ProductID": 2,
|
|
48
|
-
* "ProductName": "Chang",
|
|
49
|
-
* "UnitPrice": 19.0000
|
|
50
|
-
* }
|
|
51
|
-
* ];
|
|
52
|
-
* }
|
|
53
|
-
*
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-grid [data]="gridData">
|
|
19
|
+
* ...
|
|
20
|
+
* <kendo-grid-pdf fileName="Products.pdf" paperSize="A4">
|
|
21
|
+
* <ng-template kendoGridPDFTemplate let-pageNumber="pageNumber" let-totalPages="totalPages">
|
|
22
|
+
* Page {{ pageNumber }} of {{ totalPages }}
|
|
23
|
+
* </ng-template>
|
|
24
|
+
* </kendo-grid-pdf>
|
|
25
|
+
* </kendo-grid>
|
|
54
26
|
* ```
|
|
55
27
|
*/
|
|
56
28
|
export class PDFTemplateDirective extends PDFExportTemplateDirective {
|