@progress/kendo-angular-grid 12.0.0-develop.9 → 12.0.1-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/column-menu/column-chooser.component.d.ts +14 -19
- package/column-menu/column-menu-autosize-all.component.d.ts +12 -27
- package/column-menu/column-menu-autosize.component.d.ts +12 -26
- package/column-menu/column-menu-chooser.component.d.ts +11 -24
- package/column-menu/column-menu-expandable-item.interface.d.ts +0 -1
- package/column-menu/column-menu-filter.component.d.ts +12 -24
- package/column-menu/column-menu-item.component.d.ts +6 -21
- package/column-menu/column-menu-lock.component.d.ts +11 -25
- package/column-menu/column-menu-position.component.d.ts +12 -24
- package/column-menu/column-menu-settings.interface.d.ts +3 -24
- package/column-menu/column-menu-sort.component.d.ts +12 -25
- package/column-menu/column-menu-stick.component.d.ts +12 -24
- package/column-menu/column-menu.component.d.ts +9 -1
- package/column-menu/column-menu.service.d.ts +9 -21
- package/column-resizing/column-resize.interface.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +6 -57
- package/columns/column-base.d.ts +16 -369
- package/columns/column-group.component.d.ts +9 -48
- package/columns/column.component.d.ts +23 -109
- package/columns/command-column.component.d.ts +12 -60
- package/columns/reorder-column.component.d.ts +1 -1
- package/columns/sort-settings.d.ts +24 -12
- package/columns/span-column.component.d.ts +12 -123
- package/common/cell-click-event-args.interface.d.ts +1 -1
- package/common/fetch-data-callback.d.ts +1 -1
- package/common/preventable-event.d.ts +1 -1
- package/common/single-popup.service.d.ts +1 -1
- package/common/size-options.d.ts +1 -2
- package/data/change-event-args.interface.d.ts +2 -2
- package/data/data.collection.d.ts +1 -1
- package/data/grid-item.interface.d.ts +6 -3
- package/dragdrop/column-reorder-config.d.ts +1 -1
- package/editing/add-event-args.interface.d.ts +1 -1
- package/editing/cancel-event-args.interface.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +1 -1
- package/editing/remove-event-args.interface.d.ts +1 -1
- package/editing/save-event-args.interface.d.ts +1 -1
- package/editing-directives/edit-service.interface.d.ts +1 -1
- package/esm2020/column-menu/column-chooser.component.mjs +14 -19
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +12 -27
- package/esm2020/column-menu/column-menu-autosize.component.mjs +12 -26
- package/esm2020/column-menu/column-menu-chooser.component.mjs +11 -24
- package/esm2020/column-menu/column-menu-filter.component.mjs +12 -24
- package/esm2020/column-menu/column-menu-item.component.mjs +6 -21
- package/esm2020/column-menu/column-menu-lock.component.mjs +11 -25
- package/esm2020/column-menu/column-menu-position.component.mjs +12 -24
- package/esm2020/column-menu/column-menu-sort.component.mjs +12 -25
- package/esm2020/column-menu/column-menu-stick.component.mjs +12 -24
- package/esm2020/column-menu/column-menu.component.mjs +9 -1
- package/esm2020/column-menu/column-menu.service.mjs +9 -21
- package/esm2020/columns/checkbox-column.component.mjs +6 -57
- package/esm2020/columns/column-base.mjs +7 -40
- package/esm2020/columns/column-group.component.mjs +9 -48
- package/esm2020/columns/column.component.mjs +22 -79
- package/esm2020/columns/command-column.component.mjs +12 -60
- package/esm2020/columns/reorder-column.component.mjs +1 -1
- package/esm2020/columns/span-column.component.mjs +12 -123
- package/esm2020/common/preventable-event.mjs +1 -1
- package/esm2020/common/single-popup.service.mjs +1 -1
- package/esm2020/excel/excel.module.mjs +5 -15
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +11 -10
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +26 -13
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +14 -11
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -15
- package/esm2020/filtering/date-filter.component.mjs +6 -2
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +13 -13
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -2
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +3 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +3 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +2 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/grid.component.mjs +39 -325
- package/esm2020/grid.module.mjs +6 -16
- package/esm2020/layout/sizing-options.service.mjs +3 -0
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-info.component.mjs +1 -1
- package/esm2020/pager/pager-input.component.mjs +1 -48
- package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-page-sizes.component.mjs +3 -92
- package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/pdf/pdf.module.mjs +7 -16
- package/esm2020/rendering/common/spacer.component.mjs +2 -1
- package/esm2020/rendering/toolbar/toolbar-position.mjs +17 -0
- package/esm2020/row-reordering/row-reorder.service.mjs +2 -1
- package/excel/excel.component.d.ts +2 -7
- package/excel/excel.module.d.ts +5 -15
- package/fesm2015/progress-kendo-angular-grid.mjs +476 -1372
- package/fesm2020/progress-kendo-angular-grid.mjs +476 -1372
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -10
- package/filtering/cell/date-filter-cell.component.d.ts +26 -13
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +14 -11
- package/filtering/cell/string-filter-cell.component.d.ts +14 -15
- package/filtering/date-filter.component.d.ts +8 -12
- package/filtering/filterable.d.ts +10 -0
- package/filtering/menu/boolean-filter-menu.component.d.ts +13 -13
- package/filtering/menu/date-filter-menu.component.d.ts +13 -13
- package/filtering/menu/numeric-filter-menu.component.d.ts +13 -13
- package/filtering/menu/string-filter-menu.component.d.ts +15 -2
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -5
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -4
- package/filtering/operators/gt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -5
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +5 -0
- package/filtering/operators/lte-filter-operator.component.d.ts +5 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/grid.component.d.ts +43 -327
- package/grid.module.d.ts +6 -16
- package/grouping/group-key.interface.d.ts +1 -13
- package/grouping/group-rows-args.interface.d.ts +1 -1
- package/layout/sizing-options.service.d.ts +3 -0
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +35 -98
- package/navigation/navigable-settings.d.ts +15 -1
- package/navigation/navigation-cell.interface.d.ts +2 -5
- package/navigation/navigation-row.interface.d.ts +2 -5
- package/package.json +19 -19
- package/pager/pager-info.component.d.ts +1 -1
- package/pager/pager-input.component.d.ts +1 -48
- package/pager/pager-next-buttons.component.d.ts +1 -1
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-page-sizes.component.d.ts +3 -92
- package/pager/pager-prev-buttons.component.d.ts +1 -1
- package/pager/pager-settings.d.ts +9 -38
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/pdf/pdf-margin.interface.d.ts +0 -5
- package/pdf/pdf.module.d.ts +7 -16
- package/rendering/common/row-class.d.ts +4 -4
- package/rendering/common/spacer.component.d.ts +2 -1
- package/rendering/toolbar/toolbar-position.d.ts +18 -1
- package/row-reordering/row-reorder.service.d.ts +1 -0
- package/row-reordering/types.d.ts +1 -1
- package/schematics/ngAdd/index.js +2 -2
- package/scrolling/content-scroll-event.d.ts +1 -1
- package/scrolling/scroll-request.service.d.ts +2 -1
- package/scrolling/scrollmode.d.ts +4 -4
- package/selection/types.d.ts +31 -48
|
@@ -16,27 +16,18 @@ import * as i3 from "@progress/kendo-angular-popup";
|
|
|
16
16
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
17
17
|
import * as i5 from "./column-list.component";
|
|
18
18
|
/**
|
|
19
|
-
* Represents the component for
|
|
20
|
-
*
|
|
19
|
+
* Represents the component for toggling the visibility of the Grid columns. [See example](slug:columnmenu_grid#toc-using-standalone-column-chooser).
|
|
20
|
+
* To show and hide the columns without including the column chooser item in the [Column Menu](slug:columnmenu_grid),
|
|
21
|
+
* add the component inside the [ToolbarTemplate](slug:toolbartemplate_grid) directive.
|
|
21
22
|
*
|
|
22
23
|
* @example
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
32
|
-
* <kendo-grid-column field="Field2" [hidden]="true"></kendo-grid-column>
|
|
33
|
-
* </kendo-grid>
|
|
34
|
-
* `
|
|
35
|
-
* })
|
|
36
|
-
*
|
|
37
|
-
* class AppComponent {
|
|
38
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
39
|
-
* }
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-grid [data]="data">
|
|
26
|
+
* <ng-template kendoGridToolbarTemplate>
|
|
27
|
+
* <kendo-grid-column-chooser></kendo-grid-column-chooser>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
30
|
+
* </kendo-grid>
|
|
40
31
|
* ```
|
|
41
32
|
*/
|
|
42
33
|
export class ColumnChooserComponent {
|
|
@@ -53,10 +44,14 @@ export class ColumnChooserComponent {
|
|
|
53
44
|
this.columnsIcon = columnsIcon;
|
|
54
45
|
/**
|
|
55
46
|
* Specifies if the changes in the visibility of the column will be immediately applied.
|
|
47
|
+
*
|
|
48
|
+
* @default false
|
|
56
49
|
*/
|
|
57
50
|
this.autoSync = false;
|
|
58
51
|
/**
|
|
59
52
|
* Specifies if all columns can be hidden.
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
60
55
|
*/
|
|
61
56
|
this.allowHideAll = true;
|
|
62
57
|
}
|
|
@@ -15,36 +15,21 @@ import * as i2 from "../common/provider.service";
|
|
|
15
15
|
import * as i3 from "./column-menu-item.component";
|
|
16
16
|
import * as i4 from "@angular/common";
|
|
17
17
|
/**
|
|
18
|
-
* Represents the
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* > To enable the autosize-all-columns option, set the [`resizable`]({% slug api_grid_gridcomponent %}#toc-resizable)
|
|
22
|
-
* > property of the Grid to `true`.
|
|
18
|
+
* Represents the column-menu item for resizing all columns to the minimum possible width so that they fit the widest header or cell content without wrapping.
|
|
19
|
+
* [See example](slug:columnmenu_grid#toc-autosize-all-columns-item).
|
|
23
20
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
22
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
23
|
+
* the template to the `service` input of the `kendo-grid-columnmenu-autosize-all-columns` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
26
24
|
*
|
|
27
25
|
* @example
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* <kendo-grid-columnmenu-autosize-all-columns [service]="service">
|
|
36
|
-
* </kendo-grid-columnmenu-autosize-all-columns>
|
|
37
|
-
* </ng-template>
|
|
38
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
39
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
40
|
-
* </kendo-grid>
|
|
41
|
-
* `
|
|
42
|
-
* })
|
|
43
|
-
*
|
|
44
|
-
* class AppComponent {
|
|
45
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
26
|
+
* ```html
|
|
27
|
+
* <kendo-grid [columnMenu]="true" ...>
|
|
28
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
29
|
+
* <kendo-grid-columnmenu-autosize-all-columns [service]="service">
|
|
30
|
+
* </kendo-grid-columnmenu-autosize-all-columns>
|
|
31
|
+
* </ng-template>
|
|
32
|
+
* </kendo-grid>
|
|
48
33
|
* ```
|
|
49
34
|
*/
|
|
50
35
|
export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
@@ -15,36 +15,22 @@ import * as i2 from "../common/provider.service";
|
|
|
15
15
|
import * as i3 from "./column-menu-item.component";
|
|
16
16
|
import * as i4 from "@angular/common";
|
|
17
17
|
/**
|
|
18
|
-
* Represents the
|
|
18
|
+
* Represents the column-menu item for resizing the specified column to the minimum possible width so that it fits the header or cell content without wrapping.
|
|
19
|
+
* [See example](slug:slug:columnmenu_grid#toc-autosize-column-item).
|
|
19
20
|
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
21
|
+
* [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
20
22
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* > You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) and `column` that are passed by
|
|
25
|
-
* > the template to the `service` and `column` input of the `kendo-grid-columnmenu-autosize-column` component.
|
|
23
|
+
* You have to set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) and `column` that are passed by
|
|
24
|
+
* the template to the `service` and `column` input of the `kendo-grid-columnmenu-autosize-column` component.
|
|
26
25
|
*
|
|
27
26
|
* @example
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* <kendo-grid-columnmenu-autosize-column [column]="column" [service]="service">
|
|
36
|
-
* </kendo-grid-columnmenu-autosize-column>
|
|
37
|
-
* </ng-template>
|
|
38
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
39
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
40
|
-
* </kendo-grid>
|
|
41
|
-
* `
|
|
42
|
-
* })
|
|
43
|
-
*
|
|
44
|
-
* class AppComponent {
|
|
45
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
46
|
-
* }
|
|
47
|
-
*
|
|
27
|
+
* ```html
|
|
28
|
+
* <kendo-grid [columnMenu]="true" ...>
|
|
29
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
|
|
30
|
+
* <kendo-grid-columnmenu-autosize-column [column]="column" [service]="service">
|
|
31
|
+
* </kendo-grid-columnmenu-autosize-column>
|
|
32
|
+
* </ng-template>
|
|
33
|
+
* </kendo-grid>
|
|
48
34
|
* ```
|
|
49
35
|
*/
|
|
50
36
|
export class ColumnMenuAutoSizeColumnComponent extends ColumnMenuItemBase {
|
|
@@ -14,33 +14,19 @@ import * as i3 from "./column-menu-item.component";
|
|
|
14
14
|
import * as i4 from "./column-list.component";
|
|
15
15
|
import * as i5 from "./column-menu-item-content-template.directive";
|
|
16
16
|
/**
|
|
17
|
-
* Represents the
|
|
18
|
-
* inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
17
|
+
* Represents the column-menu item for selecting columns in the Grid. [See example](slug:columnmenu_grid#toc-column-chooser-item).
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
21
|
+
* the template to the service input of the `kendo-grid-columnmenu-chooser` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
31
|
-
* <kendo-grid-columnmenu-chooser [service]="service">
|
|
32
|
-
* </kendo-grid-columnmenu-chooser>
|
|
33
|
-
* </ng-template>
|
|
34
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
35
|
-
* <kendo-grid-column field="Field2" [hidden]="true"></kendo-grid-column>
|
|
36
|
-
* </kendo-grid>
|
|
37
|
-
* `
|
|
38
|
-
* })
|
|
39
|
-
*
|
|
40
|
-
* class AppComponent {
|
|
41
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-grid [columnMenu]="true" ...>
|
|
26
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
27
|
+
* <kendo-grid-columnmenu-chooser [service]="service"> </kendo-grid-columnmenu-chooser>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-grid>
|
|
44
30
|
* ```
|
|
45
31
|
*/
|
|
46
32
|
export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
@@ -60,6 +46,7 @@ export class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
60
46
|
this.collapse = new EventEmitter();
|
|
61
47
|
/**
|
|
62
48
|
* Specifies if the content is expanded.
|
|
49
|
+
* @default false
|
|
63
50
|
*/
|
|
64
51
|
this.expanded = false;
|
|
65
52
|
/**
|
|
@@ -12,33 +12,20 @@ import * as i2 from "./column-menu-item.component";
|
|
|
12
12
|
import * as i3 from "../filtering/menu/filter-menu-container.component";
|
|
13
13
|
import * as i4 from "./column-menu-item-content-template.directive";
|
|
14
14
|
/**
|
|
15
|
-
* Represents the
|
|
16
|
-
* inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
15
|
+
* Represents the column-menu item for editing column filters in the Grid. [See example](slug:columnmenu_grid#toc-filter-item).
|
|
17
16
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
18
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
19
|
+
* the template to the service input of the `kendo-grid-columnmenu-filter` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* <kendo-grid-columnmenu-filter [service]="service">
|
|
30
|
-
* </kendo-grid-columnmenu-filter>
|
|
31
|
-
* </ng-template>
|
|
32
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
33
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
34
|
-
* </kendo-grid>
|
|
35
|
-
* `
|
|
36
|
-
* })
|
|
37
|
-
*
|
|
38
|
-
* class AppComponent {
|
|
39
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
40
|
-
* }
|
|
41
|
-
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-grid [columnMenu]="true" ...>
|
|
24
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
25
|
+
* <kendo-grid-columnmenu-filter [service]="service">
|
|
26
|
+
* </kendo-grid-columnmenu-filter>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-grid>
|
|
42
29
|
* ```
|
|
43
30
|
*/
|
|
44
31
|
export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
@@ -56,6 +43,7 @@ export class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
56
43
|
this.collapse = new EventEmitter();
|
|
57
44
|
/**
|
|
58
45
|
* Specifies if the content is expanded.
|
|
46
|
+
* @default false
|
|
59
47
|
*/
|
|
60
48
|
this.expanded = false;
|
|
61
49
|
/**
|
|
@@ -13,27 +13,12 @@ import * as i2 from "@angular/common";
|
|
|
13
13
|
* [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
|
|
23
|
-
* <kendo-grid-columnmenu-item icon="arrows-resizing" text="Fit column"
|
|
24
|
-
* (itemClick)="grid.autoFitColumn(column); service.close()">
|
|
25
|
-
* </kendo-grid-columnmenu-item>
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
28
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
29
|
-
* </kendo-grid>
|
|
30
|
-
* `
|
|
31
|
-
* })
|
|
32
|
-
*
|
|
33
|
-
* class AppComponent {
|
|
34
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
35
|
-
* }
|
|
36
|
-
*
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-grid [columnMenu]="true" ...>
|
|
18
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
|
|
19
|
+
* <kendo-grid-columnmenu-item text="Fit column"></kendo-grid-columnmenu-item>
|
|
20
|
+
* </ng-template>
|
|
21
|
+
* </kendo-grid>
|
|
37
22
|
* ```
|
|
38
23
|
*/
|
|
39
24
|
export class ColumnMenuItemComponent {
|
|
@@ -12,34 +12,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
12
12
|
import * as i2 from "../common/column-info.service";
|
|
13
13
|
import * as i3 from "./column-menu-item.component";
|
|
14
14
|
/**
|
|
15
|
-
* Represents
|
|
16
|
-
* [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
17
|
-
* Allows the user to lock or unlock the columns.
|
|
15
|
+
* Represents the column-menu item for locking and unlocking columns in the Grid. [See example](slug:columnmenu_grid#toc-lock-and-unlock-items).
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
17
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
18
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
19
|
+
* the template to the service input of the `kendo-grid-columnmenu-lock` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
21
20
|
*
|
|
22
21
|
* @example
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* <kendo-grid-columnmenu-lock [service]="service">
|
|
31
|
-
* </kendo-grid-columnmenu-lock>
|
|
32
|
-
* </ng-template>
|
|
33
|
-
* <kendo-grid-column field="Field1" [width]="100"></kendo-grid-column>
|
|
34
|
-
* <kendo-grid-column field="Field2" [width]="100"></kendo-grid-column>
|
|
35
|
-
* </kendo-grid>
|
|
36
|
-
* `
|
|
37
|
-
* })
|
|
38
|
-
*
|
|
39
|
-
* class AppComponent {
|
|
40
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
41
|
-
* }
|
|
42
|
-
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-grid [data]="data" [columnMenu]="true" ...>
|
|
24
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
25
|
+
* <kendo-grid-columnmenu-lock [service]="service">
|
|
26
|
+
* </kendo-grid-columnmenu-lock>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-grid>
|
|
43
29
|
* ```
|
|
44
30
|
*/
|
|
45
31
|
export class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
@@ -14,33 +14,20 @@ import * as i4 from "./column-menu-stick.component";
|
|
|
14
14
|
import * as i5 from "./column-menu-item-content-template.directive";
|
|
15
15
|
import * as i6 from "@angular/common";
|
|
16
16
|
/**
|
|
17
|
-
* Represents the
|
|
18
|
-
* inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
17
|
+
* Represents the column-menu item which combines the lock and sticky column functionalities.
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
21
|
+
* the template to the service input of the `kendo-grid-columnmenu-filter` component. [See example](slug:columnmenu_grid#toc-set-column-position-item).
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* <kendo-grid-columnmenu-filter [service]="service">
|
|
32
|
-
* </kendo-grid-columnmenu-filter>
|
|
33
|
-
* </ng-template>
|
|
34
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
35
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
36
|
-
* </kendo-grid>
|
|
37
|
-
* `
|
|
38
|
-
* })
|
|
39
|
-
*
|
|
40
|
-
* class AppComponent {
|
|
41
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-grid [data]="data" [columnMenu]="true" ...>
|
|
26
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service" let-column="column">
|
|
27
|
+
* <kendo-grid-columnmenu-position [service]="service" [showLock]="true" [showStick]="true">
|
|
28
|
+
* </kendo-grid-columnmenu-position>
|
|
29
|
+
* </ng-template>
|
|
30
|
+
* </kendo-grid>
|
|
44
31
|
* ```
|
|
45
32
|
*/
|
|
46
33
|
export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
@@ -58,6 +45,7 @@ export class ColumnMenuPositionComponent extends ColumnMenuItemBase {
|
|
|
58
45
|
this.collapse = new EventEmitter();
|
|
59
46
|
/**
|
|
60
47
|
* Specifies if the content is expanded.
|
|
48
|
+
* @default false
|
|
61
49
|
*/
|
|
62
50
|
this.expanded = false;
|
|
63
51
|
/**
|
|
@@ -13,34 +13,21 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
13
13
|
import * as i2 from "../common/sort.service";
|
|
14
14
|
import * as i3 from "./column-menu-item.component";
|
|
15
15
|
/**
|
|
16
|
-
* Represents
|
|
17
|
-
* [
|
|
18
|
-
* Allows the user to sort the column.
|
|
16
|
+
* Represents the column-menu item for sorting Grid columns.
|
|
17
|
+
* [See example](slug:columnmenu_grid#toc-sort-item).
|
|
19
18
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
20
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
21
|
+
* the template to the service input of the `kendo-grid-columnmenu-sort` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* <kendo-grid-columnmenu-sort [service]="service">
|
|
32
|
-
* </kendo-grid-columnmenu-sort>
|
|
33
|
-
* </ng-template>
|
|
34
|
-
* <kendo-grid-column field="Field1" [width]="100"></kendo-grid-column>
|
|
35
|
-
* <kendo-grid-column field="Field2" [width]="100"></kendo-grid-column>
|
|
36
|
-
* </kendo-grid>
|
|
37
|
-
* `
|
|
38
|
-
* })
|
|
39
|
-
*
|
|
40
|
-
* class AppComponent {
|
|
41
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }, { Field1: 'Foo1', Field2: 'Bar1' }];
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-grid [kendoGridBinding]="data" [sortable]="true" [columnMenu]="true">
|
|
26
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
27
|
+
* <kendo-grid-columnmenu-sort [service]="service">
|
|
28
|
+
* </kendo-grid-columnmenu-sort>
|
|
29
|
+
* </ng-template>
|
|
30
|
+
* </kendo-grid>
|
|
44
31
|
* ```
|
|
45
32
|
*/
|
|
46
33
|
export class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
@@ -12,33 +12,21 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
|
12
12
|
import * as i2 from "../common/column-info.service";
|
|
13
13
|
import * as i3 from "./column-menu-item.component";
|
|
14
14
|
/**
|
|
15
|
-
* Represents
|
|
16
|
-
* [
|
|
17
|
-
* Allows the user to stick or unstick the columns.
|
|
15
|
+
* Represents the column-menu item that sticks or unsticks columns in the Grid.
|
|
16
|
+
* [See example](slug:columnmenu_grid#toc-stick-and-unstick-items).
|
|
18
17
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* The component can be placed inside a [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
19
|
+
* To register the component as a known column menu item, set the [ColumnMenuService]({% slug api_grid_columnmenuservice %}) that is passed by
|
|
20
|
+
* the template to the service input of the `kendo-grid-columnmenu-lock` component. [See example](slug:columnmenu_grid#toc-customizing-the-content).
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* <kendo-grid-columnmenu-stick [service]="service">
|
|
31
|
-
* </kendo-grid-columnmenu-stick>
|
|
32
|
-
* </ng-template>
|
|
33
|
-
* <kendo-grid-column field="Field1" [width]="100"></kendo-grid-column>
|
|
34
|
-
* <kendo-grid-column field="Field2" [width]="100"></kendo-grid-column>
|
|
35
|
-
* </kendo-grid>
|
|
36
|
-
* `
|
|
37
|
-
* })
|
|
38
|
-
*
|
|
39
|
-
* class AppComponent {
|
|
40
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
41
|
-
* }
|
|
23
|
+
* ```html
|
|
24
|
+
* <kendo-grid [data]="data" [columnMenu]="true">
|
|
25
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
26
|
+
* <kendo-grid-columnmenu-stick [service]="service">
|
|
27
|
+
* </kendo-grid-columnmenu-stick>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-grid>
|
|
42
30
|
*
|
|
43
31
|
* ```
|
|
44
32
|
*/
|
|
@@ -34,7 +34,15 @@ import * as i16 from "@angular/common";
|
|
|
34
34
|
import * as i17 from "./column-menu-item.directive";
|
|
35
35
|
const POPUP_CLASS = 'k-grid-columnmenu-popup';
|
|
36
36
|
/**
|
|
37
|
-
* Represents the [column menu](
|
|
37
|
+
* Represents the [column menu](slug:columnmenu_grid#toc-customizing-the-position) component.
|
|
38
|
+
*
|
|
39
|
+
* <kendo-grid ...>
|
|
40
|
+
* <kendo-grid-column field="ProductName" [columnMenu]="false">
|
|
41
|
+
* <ng-template kendoGridHeaderTemplate let-column>
|
|
42
|
+
* <kendo-grid-column-menu [column]="column"> </kendo-grid-column-menu>
|
|
43
|
+
* </ng-template>
|
|
44
|
+
* </kendo-grid-column>
|
|
45
|
+
* </kendo-grid>
|
|
38
46
|
*/
|
|
39
47
|
export class ColumnMenuComponent {
|
|
40
48
|
constructor(navigationService, popupService, localization, service, ctx) {
|
|
@@ -11,27 +11,15 @@ import * as i1 from "./../filtering/menu/menu-tabbing.service";
|
|
|
11
11
|
* [ColumnMenuTemplate]({% slug api_grid_columnmenutemplatedirective %}) directive.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* <kendo-grid-columnmenu-sort [service]="service">
|
|
24
|
-
* </kendo-grid-columnmenu-sort>
|
|
25
|
-
* </ng-template>
|
|
26
|
-
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
27
|
-
* <kendo-grid-column field="Field2"></kendo-grid-column>
|
|
28
|
-
* </kendo-grid>
|
|
29
|
-
* `
|
|
30
|
-
* })
|
|
31
|
-
*
|
|
32
|
-
* class AppComponent {
|
|
33
|
-
* public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
|
|
34
|
-
* }
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-grid [data]="data" [columnMenu]="true">
|
|
16
|
+
* <ng-template kendoGridColumnMenuTemplate let-service="service">
|
|
17
|
+
* <span class="k-icon k-i-x" (click)="service.close()" </span>
|
|
18
|
+
* <kendo-grid-columnmenu-sort [service]="service">
|
|
19
|
+
* </kendo-grid-columnmenu-sort>
|
|
20
|
+
* </ng-template>
|
|
21
|
+
* <kendo-grid-column field="Field1"></kendo-grid-column>
|
|
22
|
+
* </kendo-grid>
|
|
35
23
|
*
|
|
36
24
|
* ```
|
|
37
25
|
*/
|
|
@@ -10,65 +10,14 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
import * as i1 from "./column-base";
|
|
11
11
|
import * as i2 from "../common/id.service";
|
|
12
12
|
/**
|
|
13
|
-
* Represents the checkbox for selecting
|
|
14
|
-
* defined as empty, it renders a default checkbox for row selection.
|
|
15
|
-
* You can also define the content of the column inside an `<ng-template>` tag.
|
|
16
|
-
* The input requires you to include the `SelectionCheckbox` option.
|
|
17
|
-
*
|
|
18
|
-
* The template context is set to the current data item and the following additional fields are passed:
|
|
19
|
-
* - `columnIndex`—The current column index.
|
|
20
|
-
* - `rowIndex`—The current data row index. If inside a new item row, it will be `-1`.
|
|
21
|
-
* - `dataItem`—The current data item.
|
|
22
|
-
* - `column`—The current column instance.
|
|
23
|
-
* - `isNew`—The state of the current item.
|
|
24
|
-
*
|
|
25
|
-
* For more examples, refer to:
|
|
26
|
-
* - [Selecting or deselecting all items on a page]({% slug selection_grid %}#toc-select-all-feature)
|
|
27
|
-
* - [Persisting the selection]({% slug selection_grid %}#toc-in-combination-with-the-select-all-feature)
|
|
13
|
+
* Represents the checkbox column for selecting rows in the Grid. [See example](slug:grid_row_selection#toc-select-all-checkbox).
|
|
28
14
|
*
|
|
29
15
|
* @example
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* <kendo-grid [data]="gridData" [selectable]="{enabled: true, checkboxOnly: true}">
|
|
36
|
-
* <kendo-grid-column field="ProductID" title="Product ID" [width]="120">
|
|
37
|
-
* </kendo-grid-column>
|
|
38
|
-
* <kendo-grid-column field="ProductName" title="Product Name">
|
|
39
|
-
* </kendo-grid-column>
|
|
40
|
-
* <kendo-grid-checkbox-column title="Default checkbox">
|
|
41
|
-
* </kendo-grid-checkbox-column>
|
|
42
|
-
* <kendo-grid-checkbox-column title="Custom checkbox">
|
|
43
|
-
* <ng-template kendoGridCellTemplate let-idx="rowIndex">
|
|
44
|
-
* Select row <input [kendoGridSelectionCheckbox]="idx" />
|
|
45
|
-
* </ng-template>
|
|
46
|
-
* </kendo-grid-checkbox-column>
|
|
47
|
-
* </kendo-grid>
|
|
48
|
-
* `
|
|
49
|
-
* })
|
|
50
|
-
*
|
|
51
|
-
* class AppComponent {
|
|
52
|
-
* public gridData: any[];
|
|
53
|
-
*
|
|
54
|
-
* constructor() {
|
|
55
|
-
* this.gridData = products;
|
|
56
|
-
* }
|
|
57
|
-
* }
|
|
58
|
-
*
|
|
59
|
-
* const products = [{
|
|
60
|
-
* "ProductID": 1,
|
|
61
|
-
* "ProductName": "Chai",
|
|
62
|
-
* "UnitPrice": 18.0000,
|
|
63
|
-
* "Discontinued": true
|
|
64
|
-
* }, {
|
|
65
|
-
* "ProductID": 2,
|
|
66
|
-
* "ProductName": "Chang",
|
|
67
|
-
* "UnitPrice": 19.0000,
|
|
68
|
-
* "Discontinued": false
|
|
69
|
-
* }
|
|
70
|
-
* ];
|
|
71
|
-
*
|
|
16
|
+
* ```hmtl
|
|
17
|
+
* <kendo-grid [selectable]="{enabled: true, checkboxOnly: true}">
|
|
18
|
+
* <kendo-grid-checkbox-column title="Default checkbox"></kendo-grid-checkbox-column>
|
|
19
|
+
* <kendo-grid-column field="ProductID"></kendo-grid-column>
|
|
20
|
+
* </kendo-grid>
|
|
72
21
|
* ```
|
|
73
22
|
*/
|
|
74
23
|
export class CheckboxColumnComponent extends ColumnBase {
|