@progress/kendo-angular-grid 17.0.0-develop.2 → 17.0.0-develop.20
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/README.md +46 -36
- package/directives.d.ts +8 -5
- package/editing/add-command-tool.directive.d.ts +39 -0
- package/esm2020/column-menu/column-chooser.component.mjs +1 -1
- package/esm2020/common/error-messages.mjs +4 -1
- package/esm2020/directives.mjs +8 -2
- package/esm2020/editing/add-command-tool.directive.mjs +62 -0
- package/esm2020/excel/excel-command-tool.directive.mjs +64 -0
- package/esm2020/excel/excel-command.directive.mjs +1 -1
- package/esm2020/excel/excel.module.mjs +3 -2
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +1 -1
- package/esm2020/grid.component.mjs +14 -7
- package/esm2020/grid.module.mjs +104 -102
- package/esm2020/grouping/group-panel.component.mjs +1 -1
- package/esm2020/index.mjs +6 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
- package/esm2020/pdf/pdf-command-tool.directive.mjs +64 -0
- package/esm2020/pdf/pdf.module.mjs +2 -1
- package/esm2020/rendering/body.module.mjs +6 -5
- package/esm2020/rendering/toolbar/toolbar.component.mjs +11 -1
- package/excel/excel-command-tool.directive.d.ts +41 -0
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel.module.d.ts +3 -2
- package/fesm2015/progress-kendo-angular-grid.mjs +210 -26
- package/fesm2020/progress-kendo-angular-grid.mjs +208 -26
- package/grid.component.d.ts +1 -1
- package/grid.module.d.ts +103 -101
- package/index.d.ts +6 -3
- package/package.json +17 -16
- package/pdf/pdf-command-tool.directive.d.ts +41 -0
- package/pdf/pdf.module.d.ts +2 -1
- package/rendering/body.module.d.ts +5 -4
- package/rendering/toolbar/toolbar.component.d.ts +1 -0
- package/schematics/ngAdd/index.js +4 -4
package/README.md
CHANGED
|
@@ -1,56 +1,66 @@
|
|
|
1
|
-
<a href="https://www.telerik.com/kendo-angular-ui
|
|
1
|
+
<a href="https://www.telerik.com/kendo-angular-ui/components/grid" target="_blank">
|
|
2
2
|
<img [width]="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg" alt="Kendo UI for Angular Data Grid">
|
|
3
3
|
</a>
|
|
4
4
|
|
|
5
|
-
## Kendo UI for Angular Data Grid
|
|
5
|
+
## Kendo UI for Angular Data Grid Component
|
|
6
6
|
|
|
7
|
-
>
|
|
8
|
-
> *
|
|
9
|
-
> *
|
|
10
|
-
> * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-grid) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-grid). Doing so indicates that you [accept the Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-grid).
|
|
11
|
-
> * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular dev team!
|
|
12
|
-
>
|
|
13
|
-
> [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-grid) and speed up your development process!
|
|
7
|
+
> * This package is part of the [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/)—a commercial UI library.
|
|
8
|
+
> * You must [install a license key](https://www.telerik.com/kendo-angular-ui/my-license) when adding the package to your project. To receive a license key, either [purchase a license](https://www.telerik.com/purchase/kendo-ui) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui).
|
|
9
|
+
> * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular team!
|
|
14
10
|
|
|
15
|
-
The [Kendo UI for Angular Data Grid](https://www.telerik.com/
|
|
11
|
+
The [Kendo UI for Angular Data Grid](https://www.telerik.com/kendo-angular-ui/components/grid) includes a comprehensive set of ready-to-use features covering everything from paging, sorting, filtering, editing, and grouping to row and column virtualization, exporting to PDF and Excel, and accessibility support. This Data Grid Component (sometimes called a Data Table) is built on Angular from the ground up, by a company with a long history of making enterprise-ready Grids. This results in an Angular data grid that delivers lighting fast performance and is highly customizable.
|
|
16
12
|
|
|
17
|
-
##
|
|
18
|
-
|
|
19
|
-
<img src="https://www.telerik.com/sfimages/default-source/component-pages/common/grid/grid_live-data-sample-770x.gif" alt="Kendo UI for Angular Data Grid">
|
|
13
|
+
## Key Features
|
|
20
14
|
|
|
21
15
|
Among the many features which the Kendo UI for Angular Grid delivers are:
|
|
22
16
|
|
|
23
|
-
* [
|
|
24
|
-
* [
|
|
25
|
-
*
|
|
26
|
-
* [
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* [
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
* Data Binding—The Grid supports various binding methods to accommodate different requirements, including binding to an array of objects or a [GridDataResult](https://www.telerik.com/kendo-angular-ui/components/grid/api/griddataresult) object, as well as utilizing a server to fetch remote data for dynamic content. [Read more about the data binding functionality of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/data-binding/basics)
|
|
18
|
+
* Editing—Depending on your users' requirements, you can opt for the inline or the in-cell edit modes using either the Template-Driven or Reactive forms. The Grid provides further customization options such as editing from an external form or Redux Form. [Read more about the editing feature of the Data Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/editing/basics)
|
|
19
|
+
* Paging—The Grid enables you to split its content into pages by adding a pager. The pager provides an extensive set of configuration options such as implementing a responsive behavior, customizing its appearance, defining the space between its elements, and more. [Read more about the pager options of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/paging/basics)
|
|
20
|
+
* Sorting—The Grid supports a number of sorting options. These options include the sorting and unsorting of single and multiple columns, pre-sorting data records, setting the sorting direction, and more. [Read more about the sorting options of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/sorting/basics)
|
|
21
|
+
* Filtering—The Grid provides options for displaying only those data records which meet specified criteria. The component also allows you to additionally customize its filtering behavior by using its built-in filter templates or reusable custom filter components. [Read more about filtering the Grid records...](https://www.telerik.com/kendo-angular-ui/components/grid/filtering/basics)
|
|
22
|
+
* Grouping—Out of the box, you can apply dynamic grouping to the data Grid records, set grouping by aggregate values, and, in the same way as with the sorting functionality, pre-group the data. [Read more about grouping the records of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/grouping/basics)
|
|
23
|
+
* Exporting to PDF and Excel—When implementing the Grid export to PDF, you can set the fonts, the exact portion and layout of the exported content, also customize the columns and other elements of the output result. When exporting to Excel, you can export specific data and customize the exported columns. Read more on [exporting the Grid to PDF](https://www.telerik.com/kendo-angular-ui/components/grid/export/pdf-export) and [exporting the Grid to Excel](https://www.telerik.com/kendo-angular-ui/components/grid/export/excel-export).
|
|
24
|
+
* Rows Options—The Data Grid provides an extensive collection of row configuration options, including:
|
|
25
|
+
|
|
26
|
+
- [Row selection](https://www.telerik.com/kendo-angular-ui/components/grid/selection/row-selection)—Allows you to select rows through interaction with the row itself or a checkbox. Supports single and multiple row selection.
|
|
27
|
+
- [Sticky rows](https://www.telerik.com/kendo-angular-ui/components/grid/rows/sticky)—Allows you to display specific rows at all times even when user scrolls the data table.
|
|
28
|
+
- [Detail row template](https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/detail-template)—Allows you to render supplementary information about the data in a specific row. Supports [persisting the expanded state](https://www.telerik.com/kendo-angular-ui/components/grid/master-detail/expanded-state) of the detail row.
|
|
29
|
+
- [Row reordering](https://www.telerik.com/kendo-angular-ui/components/grid/rows/reordering)—Allows you to reorder rows by dragging and dropping them.
|
|
30
|
+
- [Row styling](https://www.telerik.com/kendo-angular-ui/components/grid/styling/rows)—Allows you to style the rows of the Grid using a callback function.
|
|
31
|
+
* Columns Options—The Data Grid provides an extensive collection of column configuration options, including:
|
|
32
|
+
|
|
33
|
+
- [Hiding columns](https://www.telerik.com/kendo-angular-ui/components/grid/columns/hidden)—Allows you to show or hide columns.
|
|
34
|
+
- [Spanning columns](https://www.telerik.com/kendo-angular-ui/components/grid/columns/spanned)—Spanning of the row content over multiple cells of data.
|
|
35
|
+
- [Setting multi-column headers](https://www.telerik.com/kendo-angular-ui/components/grid/columns/headers)—Grouping columns under a common header.
|
|
36
|
+
- [Column menu for quick actions](https://www.telerik.com/kendo-angular-ui/components/grid/accessories/column-menu)—You can show or hide columns, filter, sort, and group them.
|
|
37
|
+
- [Locking (freezing) columns](https://www.telerik.com/kendo-angular-ui/components/grid/columns/locked) or [sticking columns](slug:sticky_columns_grid)—Allows you to display specific column data at all times.
|
|
38
|
+
- [Reordering columns](https://www.telerik.com/kendo-angular-ui/components/grid/columns/reordering)—You can reorder any column and with any available Grid feature, including locked columns.
|
|
39
|
+
- [Resizing columns](https://www.telerik.com/kendo-angular-ui/components/grid/columns/resizing)—Allows you to resize columns in real-time by dragging the edges of the column headers.
|
|
40
|
+
- [Styling columns](https://www.telerik.com/kendo-angular-ui/components/grid/styling/columns)—Allows you to style the columns of the Grid using a callback function.
|
|
41
|
+
* Virtualization—The Data Grid supports a virtual scroll mode for its row data, which means that the component dynamically renders only a portion of the rows. This virtualization approach boosts the performance of the component when it has to display large data tables. [Read more about the virtualization feature of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/scroll-modes/virtual)
|
|
42
|
+
* Sizing—The Grid provides predefined options which allow you to set the different `padding` to the Grid building blocks. For more information, refer to the [sizing options of the Grid](https://www.telerik.com/kendo-angular-ui/components/grid/sizing).
|
|
43
|
+
* Styling—Our components are designed to look great out of the box, but we understand that every application is different. That's why the [Progress Design System Kit](https://www.telerik.com/design-system) provides resources to help you customize the look and feel of your Kendo UI for Angular Data Grid component. If time is of the essence, our [ThemeBuilder application](https://www.telerik.com/themebuilder) can help you quickly and seamlessly modify the component's appearance.
|
|
44
|
+
* Chart Integration—The Grid provides built-in options that allow you to quickly generate charts using its data thus visually represent trends, patterns, and more. [Read more about the Grid Chart integration...](https://www.telerik.com/kendo-angular-ui/components/grid/integration-with-chart)
|
|
45
|
+
* Globalization—The Kendo UI for Angular Data Grid supports globalization to ensure that it can fit well in any application, no matter what languages and locales need to be supported. Additionally, the Grid supports rendering in a right-to-left (RTL) direction. [Read more about the globalization of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/globalization)
|
|
46
|
+
* Accessibility—The Data Grid is [WCAG 2.2 AA](https://www.w3.org/TR/WCAG22/) and Section [508 compliant](https://www.section508.gov/), incorporating [WAI-ARIA](https://www.w3.org/WAI/ARIA/apg/) best practices for modern web accessibility. The Grid is also tested against the popular screen readers, including JAWS and NVDA. [Read more about the accessibility of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/accessibility)
|
|
47
|
+
* Keyboard Navigation—The Data Grid supports a number of keyboard shortcuts which allow users to accomplish various commands. [Read more about the keyboard navigation of the Grid...](https://www.telerik.com/kendo-angular-ui/components/grid/keyboard-navigation)
|
|
37
48
|
|
|
38
49
|
## Support Options
|
|
39
50
|
|
|
40
51
|
For any issues you might encounter while working with the Kendo UI for Angular Grid, you have the following support channels available:
|
|
41
52
|
|
|
42
|
-
* Industry-leading technical support—Kendo UI for Angular paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use the [dedicated Kendo UI for Angular support system](https://www.telerik.com/account/support-
|
|
43
|
-
* Product forums—The [Kendo UI for Angular forums](https://www.telerik.com/forums/kendo-angular-ui
|
|
44
|
-
* Feedback portal—The [Kendo UI for Angular feedback portal](https://feedback.telerik.com/kendo-angular-ui
|
|
53
|
+
* Industry-leading technical support—Kendo UI for Angular paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use the [dedicated Kendo UI for Angular support system](https://www.telerik.com/account/support-center/contact-us/technical-support).
|
|
54
|
+
* Product forums—The [Kendo UI for Angular forums](https://www.telerik.com/forums/kendo-angular-ui) are part of the free support you can get from the community and from the Kendo UI for Angular team.
|
|
55
|
+
* Feedback portal—The [Kendo UI for Angular feedback portal](https://feedback.telerik.com/kendo-angular-ui) is where you can request and vote for new features to be added.
|
|
45
56
|
|
|
46
57
|
## Resources
|
|
47
58
|
|
|
48
|
-
* [
|
|
49
|
-
* [
|
|
50
|
-
* [
|
|
51
|
-
* [
|
|
52
|
-
* [
|
|
53
|
-
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-grid)
|
|
59
|
+
* [Getting Started with Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/getting-started)
|
|
60
|
+
* [Getting Started with the Kendo UI for Angular Grid](https://www.telerik.com/kendo-angular-ui/components/grid/installation/getting-started)
|
|
61
|
+
* [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
|
|
62
|
+
* [Blogs](http://www.telerik.com/blogs/kendo-ui)
|
|
63
|
+
* [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
|
|
54
64
|
|
|
55
65
|
*Copyright © 2024 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
56
66
|
|
package/directives.d.ts
CHANGED
|
@@ -141,6 +141,9 @@ import { StatusBarComponent } from "./aggregates/status-bar.component";
|
|
|
141
141
|
import { StatusBarTemplateDirective } from "./aggregates/status-bar-template.directive";
|
|
142
142
|
import { GridClipboardDirective } from "./common/clipboard.directive";
|
|
143
143
|
import { TemplateContextDirective } from "@progress/kendo-angular-common";
|
|
144
|
+
import { PDFCommandToolbarDirective } from "./pdf/pdf-command-tool.directive";
|
|
145
|
+
import { ExcelCommandToolbarDirective } from "./excel/excel-command-tool.directive";
|
|
146
|
+
import { AddCommandToolbarDirective } from "./editing/add-command-tool.directive";
|
|
144
147
|
/**
|
|
145
148
|
* @hidden
|
|
146
149
|
*
|
|
@@ -222,7 +225,7 @@ export declare const KENDO_GRID_FOOTER_EXPORTS: readonly [typeof FooterComponent
|
|
|
222
225
|
*
|
|
223
226
|
* Utility array that contains the Body module exports
|
|
224
227
|
*/
|
|
225
|
-
export declare const KENDO_GRID_BODY_EXPORTS: readonly [typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent];
|
|
228
|
+
export declare const KENDO_GRID_BODY_EXPORTS: readonly [typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent];
|
|
226
229
|
/**
|
|
227
230
|
* @hidden
|
|
228
231
|
*
|
|
@@ -240,20 +243,20 @@ export declare const KENDO_GRID_DECLARATIONS: readonly [typeof GridComponent, ty
|
|
|
240
243
|
*
|
|
241
244
|
* Utility array that contains the Grid module exports
|
|
242
245
|
*/
|
|
243
|
-
export declare const KENDO_GRID_EXPORTS: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof PagerComponent, typeof PagerPrevButtonsComponent, typeof PagerNextButtonsComponent, typeof PagerNumericButtonsComponent, typeof PagerInputComponent, typeof PagerInfoComponent, typeof PagerPageSizesComponent, typeof PagerTemplateDirective, typeof PagerDropDownListDirective, typeof PagerInputDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective];
|
|
246
|
+
export declare const KENDO_GRID_EXPORTS: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof PagerComponent, typeof PagerPrevButtonsComponent, typeof PagerNextButtonsComponent, typeof PagerNumericButtonsComponent, typeof PagerInputComponent, typeof PagerInfoComponent, typeof PagerPageSizesComponent, typeof PagerTemplateDirective, typeof PagerDropDownListDirective, typeof PagerInputDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective];
|
|
244
247
|
/**
|
|
245
248
|
* @hidden
|
|
246
249
|
*
|
|
247
250
|
* Utility array that contains the ExcelExport module exports
|
|
248
251
|
*/
|
|
249
|
-
export declare const KENDO_GRID_EXCEL_EXPORT: readonly [typeof ExcelComponent, typeof ExcelCommandDirective];
|
|
252
|
+
export declare const KENDO_GRID_EXCEL_EXPORT: readonly [typeof ExcelComponent, typeof ExcelCommandDirective, typeof ExcelCommandToolbarDirective];
|
|
250
253
|
/**
|
|
251
254
|
* @hidden
|
|
252
255
|
*
|
|
253
256
|
* Utility array that contains the PDFModule declarations and exports
|
|
254
257
|
*/
|
|
255
|
-
export declare const KENDO_GRID_PDF_EXPORT: readonly [typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective];
|
|
258
|
+
export declare const KENDO_GRID_PDF_EXPORT: readonly [typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective, typeof PDFCommandToolbarDirective];
|
|
256
259
|
/**
|
|
257
260
|
* Utility array that contains all `Grid` related components and directives
|
|
258
261
|
*/
|
|
259
|
-
export declare const KENDO_GRID: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof PagerComponent, typeof PagerPrevButtonsComponent, typeof PagerNextButtonsComponent, typeof PagerNumericButtonsComponent, typeof PagerInputComponent, typeof PagerInfoComponent, typeof PagerPageSizesComponent, typeof PagerTemplateDirective, typeof PagerDropDownListDirective, typeof PagerInputDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective, typeof ExcelComponent, typeof ExcelCommandDirective, typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective];
|
|
262
|
+
export declare const KENDO_GRID: readonly [typeof GridComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof GridSpacerComponent, typeof StatusBarTemplateDirective, typeof DataBindingDirective, typeof SelectionDirective, typeof CustomMessagesComponent, typeof GroupBindingDirective, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof ExpandDetailsDirective, typeof ExpandGroupDirective, typeof GridToolbarFocusableDirective, typeof GroupHeaderTemplateDirective, typeof GroupHeaderColumnTemplateDirective, typeof GroupFooterTemplateDirective, typeof GroupHeaderComponent, typeof GroupPanelComponent, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof FooterTemplateDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof DetailTemplateDirective, typeof SpanColumnComponent, typeof LoadingComponent, typeof GridTableDirective, typeof CommandColumnComponent, typeof CheckboxColumnComponent, typeof SelectionCheckboxDirective, typeof CellTemplateDirective, typeof EditTemplateDirective, typeof TableBodyComponent, typeof NoRecordsTemplateDirective, typeof CellComponent, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof CellLoadingTemplateDirective, typeof LoadingTemplateDirective, typeof RowReorderColumnComponent, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof SelectAllCheckboxDirective, typeof PagerComponent, typeof PagerPrevButtonsComponent, typeof PagerNextButtonsComponent, typeof PagerNumericButtonsComponent, typeof PagerInputComponent, typeof PagerInfoComponent, typeof PagerPageSizesComponent, typeof PagerTemplateDirective, typeof PagerDropDownListDirective, typeof PagerInputDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof FilterMenuDropDownListDirective, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuStickComponent, typeof ColumnMenuPositionComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuTemplateDirective, typeof ColumnMenuContainerComponent, typeof ColumnMenuItemDirective, typeof ColumnMenuComponent, typeof ColumnMenuAutoSizeColumnComponent, typeof ColumnMenuAutoSizeAllColumnsComponent, typeof GridClipboardDirective, typeof ExcelComponent, typeof ExcelCommandDirective, typeof ExcelCommandToolbarDirective, typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective, typeof PDFCommandToolbarDirective];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { EditService } from './edit.service';
|
|
6
|
+
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Represents the command for adding a new item to the Grid.
|
|
10
|
+
* You can apply this directive to any `kendo-toolbar-button` element inside a
|
|
11
|
+
* ToolbarComponent used in the Grid.
|
|
12
|
+
*
|
|
13
|
+
* When the user clicks the toolbar button that is associated with the directive, , the
|
|
14
|
+
* [add]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
|
|
15
|
+
* ([see example]({% slug basics_editing_grid %})).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html-no-run
|
|
19
|
+
* <kendo-grid>
|
|
20
|
+
* <kendo-toolbar>
|
|
21
|
+
* <kendo-toolbar-button text="Add new" kendoGridAddTool></kendo-toolbar-button>
|
|
22
|
+
* </kendo-toolbar>
|
|
23
|
+
* </kendo-grid>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class AddCommandToolbarDirective {
|
|
27
|
+
private editService;
|
|
28
|
+
private host;
|
|
29
|
+
private clickSub;
|
|
30
|
+
constructor(editService: EditService, host: ToolBarButtonComponent);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
onClick(e: any): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandToolbarDirective, never>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AddCommandToolbarDirective, "[kendoGridAddTool]", never, {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -177,7 +177,7 @@ ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
177
177
|
(keydown.shift.tab)="onShiftTab($event)">
|
|
178
178
|
</kendo-grid-columnlist>
|
|
179
179
|
</ng-template>
|
|
180
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
180
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "autoSync", "ariaLabel", "allowHideAll", "applyText", "resetText", "actionsClass", "isLast", "isExpanded", "service"], outputs: ["reset", "apply", "columnChange"] }] });
|
|
181
181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnChooserComponent, decorators: [{
|
|
182
182
|
type: Component,
|
|
183
183
|
args: [{
|
|
@@ -60,5 +60,8 @@ export const GridConfigurationErrorMessages = {
|
|
|
60
60
|
groupBindingDirectives: `Using the "kendoGridGroupBinding" directive in combination with the "kendoGridExpandGroupBy" directive
|
|
61
61
|
or the "isGroupExpanded" callback is not supported. To use grouping with the "kendoGridGroupBinding" directive,
|
|
62
62
|
set the Grid "groupable" property to "true".`,
|
|
63
|
-
unsupportedMethod: (methodName, suggestedMethodName) => `Using ${methodName} in this context is not supported. Use ${suggestedMethodName} instead
|
|
63
|
+
unsupportedMethod: (methodName, suggestedMethodName) => `Using ${methodName} in this context is not supported. Use ${suggestedMethodName} instead.`,
|
|
64
|
+
unsupportedToolbarConfig: `
|
|
65
|
+
Defining both a toolbar template and a ToolBarComponent within the Grid is not supported.
|
|
66
|
+
Please use either the ToolBarComponent or a custom template.`
|
|
64
67
|
};
|
package/esm2020/directives.mjs
CHANGED
|
@@ -149,6 +149,9 @@ import { StatusBarComponent } from "./aggregates/status-bar.component";
|
|
|
149
149
|
import { StatusBarTemplateDirective } from "./aggregates/status-bar-template.directive";
|
|
150
150
|
import { GridClipboardDirective } from "./common/clipboard.directive";
|
|
151
151
|
import { TemplateContextDirective } from "@progress/kendo-angular-common";
|
|
152
|
+
import { PDFCommandToolbarDirective } from "./pdf/pdf-command-tool.directive";
|
|
153
|
+
import { ExcelCommandToolbarDirective } from "./excel/excel-command-tool.directive";
|
|
154
|
+
import { AddCommandToolbarDirective } from "./editing/add-command-tool.directive";
|
|
152
155
|
/**
|
|
153
156
|
* @hidden
|
|
154
157
|
*
|
|
@@ -363,6 +366,7 @@ export const KENDO_GRID_BODY_EXPORTS = [
|
|
|
363
366
|
SaveCommandDirective,
|
|
364
367
|
RemoveCommandDirective,
|
|
365
368
|
AddCommandDirective,
|
|
369
|
+
AddCommandToolbarDirective,
|
|
366
370
|
CellLoadingTemplateDirective,
|
|
367
371
|
LoadingTemplateDirective,
|
|
368
372
|
RowReorderColumnComponent
|
|
@@ -450,7 +454,8 @@ export const KENDO_GRID_EXPORTS = [
|
|
|
450
454
|
*/
|
|
451
455
|
export const KENDO_GRID_EXCEL_EXPORT = [
|
|
452
456
|
ExcelComponent,
|
|
453
|
-
ExcelCommandDirective
|
|
457
|
+
ExcelCommandDirective,
|
|
458
|
+
ExcelCommandToolbarDirective
|
|
454
459
|
];
|
|
455
460
|
/**
|
|
456
461
|
* @hidden
|
|
@@ -461,7 +466,8 @@ export const KENDO_GRID_PDF_EXPORT = [
|
|
|
461
466
|
PDFComponent,
|
|
462
467
|
PDFMarginComponent,
|
|
463
468
|
PDFCommandDirective,
|
|
464
|
-
PDFTemplateDirective
|
|
469
|
+
PDFTemplateDirective,
|
|
470
|
+
PDFCommandToolbarDirective
|
|
465
471
|
];
|
|
466
472
|
/**
|
|
467
473
|
* Utility array that contains all `Grid` related components and directives
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
6
|
+
import { EditService } from './edit.service';
|
|
7
|
+
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
9
|
+
import { plusIcon } from '@progress/kendo-svg-icons';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "./edit.service";
|
|
12
|
+
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
13
|
+
/**
|
|
14
|
+
* Represents the command for adding a new item to the Grid.
|
|
15
|
+
* You can apply this directive to any `kendo-toolbar-button` element inside a
|
|
16
|
+
* ToolbarComponent used in the Grid.
|
|
17
|
+
*
|
|
18
|
+
* When the user clicks the toolbar button that is associated with the directive, , the
|
|
19
|
+
* [add]({% slug api_grid_gridcomponent %}#toc-add) event is triggered
|
|
20
|
+
* ([see example]({% slug basics_editing_grid %})).
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html-no-run
|
|
24
|
+
* <kendo-grid>
|
|
25
|
+
* <kendo-toolbar>
|
|
26
|
+
* <kendo-toolbar-button text="Add new" kendoGridAddTool></kendo-toolbar-button>
|
|
27
|
+
* </kendo-toolbar>
|
|
28
|
+
* </kendo-grid>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export class AddCommandToolbarDirective {
|
|
32
|
+
constructor(editService, host) {
|
|
33
|
+
this.editService = editService;
|
|
34
|
+
this.host = host;
|
|
35
|
+
this.clickSub = new Subscription();
|
|
36
|
+
}
|
|
37
|
+
ngOnInit() {
|
|
38
|
+
this.clickSub = this.host.click.subscribe(e => this.onClick(e));
|
|
39
|
+
this.host.className = 'k-grid-add-command';
|
|
40
|
+
this.host.svgIcon = plusIcon;
|
|
41
|
+
this.host.icon = 'plus';
|
|
42
|
+
}
|
|
43
|
+
ngOnDestroy() {
|
|
44
|
+
this.clickSub.unsubscribe();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
onClick(e) {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
this.editService.beginAdd();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
AddCommandToolbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AddCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
55
|
+
AddCommandToolbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AddCommandToolbarDirective, isStandalone: true, selector: "[kendoGridAddTool]", ngImport: i0 });
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AddCommandToolbarDirective, decorators: [{
|
|
57
|
+
type: Directive,
|
|
58
|
+
args: [{
|
|
59
|
+
selector: '[kendoGridAddTool]',
|
|
60
|
+
standalone: true
|
|
61
|
+
}]
|
|
62
|
+
}], ctorParameters: function () { return [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }]; } });
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Directive } from '@angular/core';
|
|
6
|
+
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
8
|
+
import { fileExcelIcon } from '@progress/kendo-svg-icons';
|
|
9
|
+
import { ExcelService } from './excel.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "./excel.service";
|
|
12
|
+
import * as i2 from "@progress/kendo-angular-toolbar";
|
|
13
|
+
/**
|
|
14
|
+
* Represents the `export-to-Excel` toolbar tool of the Grid.
|
|
15
|
+
* You can apply this directive to any `kendo-toolbar-button` element inside a
|
|
16
|
+
* ToolbarComponent used in the Grid.
|
|
17
|
+
*
|
|
18
|
+
* When the user clicks a button associated with the directive, the
|
|
19
|
+
* [excelExport]({% slug api_grid_gridcomponent %}#toc-excelexport) event
|
|
20
|
+
* fires ([see example]({% slug excelexport_grid %})).
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html-no-run
|
|
24
|
+
* <kendo-grid>
|
|
25
|
+
* <kendo-toolbar>
|
|
26
|
+
* <kendo-toolbar-button text="Excel Export" kendoGridExcelTool></kendo-toolbar-button>
|
|
27
|
+
* </kendo-toolbar>
|
|
28
|
+
* <kendo-grid-excel fileName="Grid.xlsx">
|
|
29
|
+
* </kendo-grid-excel>
|
|
30
|
+
* </kendo-grid>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export class ExcelCommandToolbarDirective {
|
|
34
|
+
constructor(excelService, host) {
|
|
35
|
+
this.excelService = excelService;
|
|
36
|
+
this.host = host;
|
|
37
|
+
this.clickSub = new Subscription();
|
|
38
|
+
}
|
|
39
|
+
ngOnInit() {
|
|
40
|
+
this.clickSub = this.host.click.subscribe(e => this.onClick(e));
|
|
41
|
+
this.host.className = 'k-grid-excel';
|
|
42
|
+
this.host.svgIcon = fileExcelIcon;
|
|
43
|
+
this.host.icon = 'file-excel';
|
|
44
|
+
}
|
|
45
|
+
ngOnDestroy() {
|
|
46
|
+
this.clickSub.unsubscribe();
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
onClick(e) {
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
this.excelService.exportClick.emit();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
ExcelCommandToolbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelCommandToolbarDirective, deps: [{ token: i1.ExcelService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
+
ExcelCommandToolbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ExcelCommandToolbarDirective, isStandalone: true, selector: "[kendoGridExcelTool]", ngImport: i0 });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelCommandToolbarDirective, decorators: [{
|
|
59
|
+
type: Directive,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: '[kendoGridExcelTool]',
|
|
62
|
+
standalone: true
|
|
63
|
+
}]
|
|
64
|
+
}], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i2.ToolBarButtonComponent }]; } });
|
|
@@ -23,7 +23,7 @@ import * as i2 from "../common/provider.service";
|
|
|
23
23
|
* ```html
|
|
24
24
|
* <kendo-grid>
|
|
25
25
|
* <ng-template kendoGridToolbarTemplate>
|
|
26
|
-
* <button kendoGridExcelCommand>Export to
|
|
26
|
+
* <button kendoGridExcelCommand>Export to Excel</button>
|
|
27
27
|
* </ng-template>
|
|
28
28
|
* <kendo-grid-excel fileName="Grid.xlsx">
|
|
29
29
|
* </kendo-grid-excel>
|
|
@@ -10,6 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
import * as i1 from "@progress/kendo-angular-icons";
|
|
11
11
|
import * as i2 from "./excel.component";
|
|
12
12
|
import * as i3 from "./excel-command.directive";
|
|
13
|
+
import * as i4 from "./excel-command-tool.directive";
|
|
13
14
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
14
15
|
/**
|
|
15
16
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
@@ -35,8 +36,8 @@ import * as i3 from "./excel-command.directive";
|
|
|
35
36
|
export class ExcelModule {
|
|
36
37
|
}
|
|
37
38
|
ExcelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
38
|
-
ExcelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, imports: [i1.IconComponent, i1.SVGIconComponent, i2.ExcelComponent, i3.ExcelCommandDirective], exports: [i2.ExcelComponent, i3.ExcelCommandDirective, ExcelExportModule] });
|
|
39
|
-
ExcelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, providers: [IconsService], imports: [KENDO_ICONS,
|
|
39
|
+
ExcelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, imports: [i1.IconComponent, i1.SVGIconComponent, i2.ExcelComponent, i3.ExcelCommandDirective, i4.ExcelCommandToolbarDirective], exports: [i2.ExcelComponent, i3.ExcelCommandDirective, i4.ExcelCommandToolbarDirective, ExcelExportModule] });
|
|
40
|
+
ExcelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, providers: [IconsService], imports: [KENDO_ICONS, i2.ExcelComponent, i3.ExcelCommandDirective, ExcelExportModule] });
|
|
40
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, decorators: [{
|
|
41
42
|
type: NgModule,
|
|
42
43
|
args: [{
|
|
@@ -155,7 +155,7 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
155
155
|
[size]="size"
|
|
156
156
|
(click)="clearClick()"
|
|
157
157
|
(keydown)="clearKeydown($event)"></button>
|
|
158
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
158
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
159
159
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterCellOperatorsComponent, decorators: [{
|
|
160
160
|
type: Component,
|
|
161
161
|
args: [{
|