@syncfusion/ej2-angular-treegrid 31.1.21-ngcc → 31.1.22-ngcc

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.
Files changed (115) hide show
  1. package/@syncfusion/ej2-angular-treegrid.es5.js +817 -797
  2. package/@syncfusion/ej2-angular-treegrid.es5.js.map +1 -1
  3. package/@syncfusion/ej2-angular-treegrid.js +745 -725
  4. package/@syncfusion/ej2-angular-treegrid.js.map +1 -1
  5. package/{license → LICENSE} +10 -10
  6. package/dist/ej2-angular-treegrid.umd.js +810 -791
  7. package/dist/ej2-angular-treegrid.umd.js.map +1 -1
  8. package/dist/ej2-angular-treegrid.umd.min.js +3 -3
  9. package/dist/ej2-angular-treegrid.umd.min.js.map +1 -1
  10. package/ej2-angular-treegrid.d.ts +5 -5
  11. package/ej2-angular-treegrid.metadata.json +1 -1
  12. package/package.json +30 -46
  13. package/public_api.d.ts +1 -1
  14. package/schematics/collection.json +10 -19
  15. package/schematics/ng-add/index.ts +10 -10
  16. package/schematics/ng-add/schema.json +34 -34
  17. package/schematics/ng-add/schema.ts +30 -30
  18. package/schematics/tsconfig.json +25 -25
  19. package/schematics/utils/lib-details.d.ts +2 -2
  20. package/schematics/utils/lib-details.js +2 -2
  21. package/schematics/utils/lib-details.ts +4 -4
  22. package/src/index.d.ts +8 -8
  23. package/src/treegrid/aggregate-columns.directive.d.ts +86 -88
  24. package/src/treegrid/aggregates.directive.d.ts +44 -44
  25. package/src/treegrid/columns.directive.d.ts +323 -345
  26. package/src/treegrid/stacked-column.directive.d.ts +325 -347
  27. package/src/treegrid/treegrid-all.module.d.ts +27 -27
  28. package/src/treegrid/treegrid.component.d.ts +140 -121
  29. package/src/treegrid/treegrid.module.d.ts +5 -5
  30. package/styles/bds-lite.css +1 -0
  31. package/styles/bds-lite.scss +1 -0
  32. package/styles/bds.css +1 -0
  33. package/styles/bds.scss +1 -0
  34. package/styles/bootstrap-dark-lite.css +1 -0
  35. package/styles/bootstrap-dark-lite.scss +1 -0
  36. package/styles/bootstrap-lite.css +1 -0
  37. package/styles/bootstrap-lite.scss +1 -0
  38. package/styles/bootstrap4-lite.css +1 -0
  39. package/styles/bootstrap4-lite.scss +1 -0
  40. package/styles/bootstrap5-dark-lite.css +1 -0
  41. package/styles/bootstrap5-dark-lite.scss +1 -0
  42. package/styles/bootstrap5-lite.css +1 -0
  43. package/styles/bootstrap5-lite.scss +1 -0
  44. package/styles/bootstrap5.3-lite.css +1 -0
  45. package/styles/bootstrap5.3-lite.scss +1 -0
  46. package/styles/bootstrap5.3.css +1 -0
  47. package/styles/bootstrap5.3.scss +1 -0
  48. package/styles/fabric-dark-lite.css +1 -0
  49. package/styles/fabric-dark-lite.scss +1 -0
  50. package/styles/fabric-lite.css +1 -0
  51. package/styles/fabric-lite.scss +1 -0
  52. package/styles/fluent-dark-lite.css +1 -0
  53. package/styles/fluent-dark-lite.scss +1 -0
  54. package/styles/fluent-lite.css +1 -0
  55. package/styles/fluent-lite.scss +1 -0
  56. package/styles/fluent2-lite.css +1 -0
  57. package/styles/fluent2-lite.scss +1 -0
  58. package/styles/fluent2.css +1 -0
  59. package/styles/fluent2.scss +1 -0
  60. package/styles/highcontrast-light-lite.css +1 -0
  61. package/styles/highcontrast-light-lite.scss +1 -0
  62. package/styles/highcontrast-lite.css +1 -0
  63. package/styles/highcontrast-lite.scss +1 -0
  64. package/styles/material-dark-lite.css +1 -0
  65. package/styles/material-dark-lite.scss +1 -0
  66. package/styles/material-lite.css +1 -0
  67. package/styles/material-lite.scss +1 -0
  68. package/styles/material3-dark-lite.css +1 -0
  69. package/styles/material3-dark-lite.scss +1 -0
  70. package/styles/material3-lite.css +1 -0
  71. package/styles/material3-lite.scss +1 -0
  72. package/styles/tailwind-dark-lite.css +1 -0
  73. package/styles/tailwind-dark-lite.scss +1 -0
  74. package/styles/tailwind-lite.css +1 -0
  75. package/styles/tailwind-lite.scss +1 -0
  76. package/styles/tailwind3-lite.css +1 -0
  77. package/styles/tailwind3-lite.scss +1 -0
  78. package/styles/tailwind3.css +1 -0
  79. package/styles/tailwind3.scss +1 -0
  80. package/styles/treegrid/bds.css +1 -0
  81. package/styles/treegrid/bds.scss +1 -0
  82. package/styles/treegrid/bootstrap5.3.css +1 -0
  83. package/styles/treegrid/bootstrap5.3.scss +1 -0
  84. package/styles/treegrid/fluent2.css +1 -0
  85. package/styles/treegrid/fluent2.scss +1 -0
  86. package/styles/treegrid/tailwind3.css +1 -0
  87. package/styles/treegrid/tailwind3.scss +1 -0
  88. package/CHANGELOG.md +0 -255
  89. package/postinstall/tagchange.js +0 -18
  90. package/schematics/generators/treegrid-default/index.d.ts +0 -3
  91. package/schematics/generators/treegrid-default/index.js +0 -8
  92. package/schematics/generators/treegrid-default/index.ts +0 -8
  93. package/schematics/generators/treegrid-default/sample-details.d.ts +0 -5
  94. package/schematics/generators/treegrid-default/sample-details.js +0 -7
  95. package/schematics/generators/treegrid-default/sample-details.ts +0 -5
  96. package/schematics/generators/treegrid-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -5
  97. package/schematics/generators/treegrid-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -10
  98. package/schematics/generators/treegrid-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -143
  99. package/schematics/generators/treegrid-default/schema.d.ts +0 -3
  100. package/schematics/generators/treegrid-default/schema.js +0 -2
  101. package/schematics/generators/treegrid-default/schema.json +0 -125
  102. package/schematics/generators/treegrid-default/schema.ts +0 -3
  103. package/schematics/generators/treegrid-feature/index.d.ts +0 -3
  104. package/schematics/generators/treegrid-feature/index.js +0 -8
  105. package/schematics/generators/treegrid-feature/index.ts +0 -8
  106. package/schematics/generators/treegrid-feature/sample-details.d.ts +0 -5
  107. package/schematics/generators/treegrid-feature/sample-details.js +0 -7
  108. package/schematics/generators/treegrid-feature/sample-details.ts +0 -5
  109. package/schematics/generators/treegrid-feature/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +0 -5
  110. package/schematics/generators/treegrid-feature/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +0 -11
  111. package/schematics/generators/treegrid-feature/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +0 -144
  112. package/schematics/generators/treegrid-feature/schema.d.ts +0 -3
  113. package/schematics/generators/treegrid-feature/schema.js +0 -2
  114. package/schematics/generators/treegrid-feature/schema.json +0 -125
  115. package/schematics/generators/treegrid-feature/schema.ts +0 -3
package/CHANGELOG.md DELETED
@@ -1,255 +0,0 @@
1
- # Changelog
2
-
3
- ## [Unreleased]
4
-
5
- ### Tree Grid
6
-
7
- #### Bug Fixes
8
-
9
- - `#I558418` - Resolved data re-rendering on scrolling up in virtualization.
10
- - `#F187000` - Nested parent remains the expanded property when its root parent is collapsed in remote data with loadChildOnDemand.
11
- - `#I572093` - `onclick` event of button bound properly while creating a button component in treegrid with HtmlEncode enabled.
12
-
13
- ## 25.1.38 (2024-04-02)
14
-
15
- ### Tree Grid
16
-
17
- #### Bug Fixes
18
-
19
- - `#I560767` - Resolved exception on initial rendering with column template in remote data.
20
-
21
- ## 25.1.37 (2024-03-26)
22
-
23
- ### Tree Grid
24
-
25
- #### Bug Fixes
26
-
27
- - `#F187000` - Resolved exception when the dataSource and the columns were not defined.
28
- - `#I560889` - Added dropPosition in `RowDragEventArgs` of `rowDrop` event.
29
- - `#I567688` - Resolved exception on refreshing the browser when persistence enabled.
30
-
31
- ## 25.1.35 (2024-03-15)
32
-
33
- ### Tree Grid
34
-
35
- #### Bug Fixes
36
-
37
- - `#F50891` - Fixed issue where react template disappears in tree grid column while using `useState()`.
38
-
39
- ## 23.1.36 (2022-09-15)
40
-
41
- ### Tree Grid
42
-
43
- #### Features
44
-
45
- - `#I341079` - Provided support for exporting data to PDF, CSV, and Excel formats using server-side functionality. Please find the demo [here](https://ej2.syncfusion.com/aspnetcore/TreeGrid/ServerSideExporting#/material3).
46
- - Added support for the new `fixed` mode within the `freeze` property of column settings. When a column is set as `fixed`, it will stay within the viewport during horizontal scrolling, enhancing the user experience with improved visibility and efficiency.
47
-
48
- - Provided support for inline editing with virtualization enabled. Please find the demo [here](https://ej2.syncfusion.com/angular/demos/#/bootstrap5/treegrid/virtual-scrolling).
49
- - `#I323425`, `#I332700`, `#I344742`, `#I375307` - Provided support for frozen column with virtualization enabled.
50
- - `#F166825` - Provided support for infinite scrolling with observable binding.
51
-
52
- #### Breaking Changes
53
-
54
- - Optimized the frozen columns feature in Tree Grid and thus changed the dom structure of tree grid from two table to single table architecture. Also, the following methods have been removed, and it's recommended to use the following alternatives instead.
55
-
56
- | Removed methods | Suggested to use alternative methods |
57
- |---|---|
58
- | `getMoavableRows`, `getFrozenRightRows` | `getRows` |
59
- | `getMovableRowByIndex`, `getFrozenRowByIndex`, `getFrozenRightRowByIndex` | `getRowByIndex` |
60
- | `getMovableCellFromIndex`, `getFrozenRightCellFromIndex` | `getCellFromIndex` |
61
- | `getMovableDataRows`, `getFrozenRightDataRows`, `getFrozenDataRows` | `getDataRows` |
62
- | `getAllMovableDataRows`, `getAllFrozenDataRows`, `getAllFrozenRightDataRows` | `getAllDataRows` |
63
- | `getMovableColumnHeaderByIndex`, `getFrozenRightColumnHeaderByIndex`, `getFrozenLeftColumnHeaderByIndex` | `getColumnHeaderByIndex` |
64
- | `getFrozenRightHeader`, `getMovableHeader` | `getHeaderContent` |
65
- | `getFrozenRightRowsObject`, `getMovableRwsObject` | `getRowsObject` |
66
- | `getFrozenRightHeaderTbody`, `getMovableHeaderTbody`, `getFrozenHeaderTbody` | `getContent().querySelector(‘tbody’)` |
67
- | `getFrozenLeftContentTbody`, `getFrozenRightContentTbody`, `getMovableContentTbody` | `getHeaderContent().querySelector(‘tbody’)` |
68
- | `getFrozenRightContent`, `getMovableContent` | `getContent` |
69
-
70
- ## 20.2.36 (2022-06-30)
71
-
72
- ### Tree Grid
73
-
74
- #### Features
75
-
76
- - Provided support for inline editing with virtualization enabled. Please find the demo [here](https://ej2.syncfusion.com/demos/#/bootstrap5/tree-grid/virtual-scrolling.html).
77
- - `#I323425`, `#I332700`, `#I344742`, `#I375307` - Provided support for frozen column with virtualization enabled.
78
-
79
- - `#I334966`, `#I373929`, `#I332693`, `#I342835`, `#F172606`, `#F171250`, `#F171248` - Provided row drag and drop support with virtualization feature enabled.
80
- - `#I367483` - Provided support for row indent and outdent functionality. Please find the demo link [here](https://ej2.syncfusion.com/angular/demos/#/bootstrap5/treegrid/inlineediting).
81
-
82
- ## 19.2.44 (2021-06-30)
83
-
84
- ### Tree Grid
85
-
86
- #### Bug Fixes
87
-
88
- - `#332604` - Resolved white space issue while using less number of records with Virtualization.
89
-
90
- - `#I329350` - Immutable mode works fine for date values and row reordering.
91
- - `#I329988`, `#I331155` - Editing a newly added child record works fine with self referential data.
92
-
93
- ## 18.4.30 (2020-12-17)
94
-
95
- ### Tree Grid
96
-
97
- #### New Features
98
-
99
- - `#294082` - Provided Immutable Support to refresh specific rows while perform Tree Grid actions.
100
- - `#283491` - Provided error handling support to easily rectify errors in sample side.
101
- - `#298682`, `#299561` - Added getVisibleRecords API to get the visible records based on collapsed rows state.
102
-
103
- #### Bug Fixes
104
-
105
- - `#F157882`- After editing the row using `updateRow` method, `getCurrentViewRecords` method updated properly.
106
- - `#F157882`- When editing with a double click, it works fine when we only have one record.
107
- - `#289600` - Records get expanded properly after collapsing all records using `collapseAtLevel` method in observable binding.
108
- - `#F157099` - Virtualization with Aggregates works fine with large number of records.
109
- - `#296233` - Row Drag and Drop within treegrid works fine.
110
- - `#297986` - Row Drag and drop within treegrid works fine with checkbox enabled.
111
- - `#F158886` - Cell editing with frozen columns works fine.
112
- - `#299761` - Treegrid column width renders fine in Internet Explorer when Virtualization is enabled.
113
- - `#301861` - Tree Grid dataSource updated properly while using setCellValue method.
114
- - `#F159697` - Order of child records are displayed correctly after editing in remote data binding.
115
- - `292453` - Treegrid refresh method works fine after updating the data.
116
-
117
- - `#289600` - Records get expanded properly after collapsing all records using `collapseAtLevel` method in observable binding.
118
- - `#F157099` - Virtualization with Aggregates works fine with large number of records.
119
- - `#297986` - Row Drag and drop within treegrid works fine with checkbox enabled.
120
- - `#F158886` - Cell editing with frozen columns works fine.
121
- - `#F159697` - Order of child records are displayed correctly after editing in remote data binding.
122
-
123
- ## 18.3.35 (2020-10-01)
124
-
125
- ### TreeGrid
126
-
127
- #### Bug Fixes
128
-
129
- - `#F157258` - `updateRow` method works fine for updating collapsed data.
130
- - `#292933` - checkbox rendered properly while using the template column.
131
- - `#289685` - Aggregate Column Formatting is working fine
132
- - `#288542` - The Expand / Collapse icon has been rendered properly while enabling expand state mapping and adding a new record.
133
- - `#287235` - While enabling expand state mapping the Expand / Collapse icon works fine at nested child levels.
134
- - `#285434`- Column SortComparer function works fine with null values for RemoteSaveAdaptor datasource.
135
- - `#284987`- Records rendered properly while using remote save adaptor in created event.
136
- - `#285434`- Column SortComparer function works fine with null values in datasource.
137
- - `#F155077`- Records rendered properly while using remote data with jQuery unobtrusive library.
138
-
139
- - `#F157258` - `updateRow` method works fine for updating collapsed data.
140
-
141
- ## 18.2.44 (2020-07-07)
142
-
143
- ### TreeGrid
144
-
145
- #### Bug Fixes
146
-
147
- - `#279109` - Checkbox checked properly for child records in remote data.
148
- - `#277364`, `#279732` - Checkbox with `allowRowDragAndDrop` property rendered properly after editing and cancelling in cell edit mode.
149
- - `#277364` - Checkbox with `autoCheckHierarchy` property rendered properly after editing and cancelling in cell edit mode.
150
- - `#278266` - Edit type `dropdownedit` is working properly in cell edit mode when enter key is pressed.
151
- - `#272026` - `updateRow` method works fine for updating treegrid data source.
152
- - `#273309` - Editing the zeroth level added record works fine in Batch mode.
153
- - `#277361` - Auto generated columns work fine when two treegrids are rendered on the same page.
154
-
155
- - `F153495` - Sorting after editing is working fine with cell edit mode.
156
- - `#266963`- Drag and drop works fine in unordered list of data.
157
- - `#F151795` - Localization support works fine in Add row, Above, Below Context Menu Items.
158
- - `#F151795`- In Drag and drop, while dropping at first row, its border color is changed properly.
159
-
160
- #### New Features
161
-
162
- - `#258863`, `#271677` - Expand & Collapse child rows support has been provided in Excel Export.
163
- - Columnchooser support has been provided that allows user to show or hide columns dynamically.
164
- - Provided support for Editing with Virtualization feature.
165
-
166
- #### Breaking Changes
167
-
168
- - Now `data`, `row` these Tree Grid selection event arguments are get array values only when we perform multi selection. Please find modified event arguments and it types from the below table,
169
-
170
- | `Properties` | `Type` |
171
- |---|---|
172
- | `data` | `Object or Object[]` |
173
- | `rowIndex` | `number` |
174
- | `rowIndexes` | `number[]` |
175
- | `row` | `Element or Element[]` |
176
-
177
- ## 17.4.39 (2019-12-17)
178
-
179
- ### TreeGrid
180
-
181
- #### New Features
182
-
183
- - AutoFill support has been provided that allows users to copy the data of selected cells and paste it to another cells by dragging.
184
-
185
- #### Breaking Changes
186
-
187
- - Default value of column's `disableHtmlEncode` is set to true, so the HTML tags can be displayed in the Grid header and content by default. To display it as html content `disableHtmlEncode` need to be set as false.
188
-
189
- #### Bug Fixes
190
-
191
- - `#148913` - Expand icon displays properly for the nested records in Custom Data Binding.
192
-
193
- ## 17.2.48-beta (2019-08-28)
194
-
195
- ### TreeGrid
196
-
197
- #### New Features
198
-
199
- - Checkbox selection support has been provided that allows users to select rows using checkbox.
200
- - Checkbox Column support has been provided that allows users to check rows using checkbox in treegrid column.
201
-
202
- #### Bug Fixes
203
-
204
- - Change detection for properties `dataSource` and `query` were handled for remote data.
205
- - Edited records can be searched/filtered.
206
- - Inner level records will be collapsed/expanded after filtering/searching actions.
207
-
208
- ## 17.1.1-beta (2019-01-29)
209
-
210
- ### TreeGrid
211
-
212
- #### Bug Fixes
213
-
214
- - `Query` maintenance support provided for `refresh` method after expanding any child rows.
215
- - Property change support for `height` property has been provided.
216
- - Expand icon is prevented from displaying for the root/zeroth level record which has `hasChildMapping` field as false.
217
- - Child records of third level or its successor displays properly based on their hierarchy relation in self reference data binding.
218
-
219
- - Expand icon is prevented from displaying for the root/zeroth level record which has `hasChildMapping` field as false.
220
-
221
- #### New Features
222
-
223
- - `Excel-Like Filtering` support is provided that allows users to create complex filter criteria for a column by allowing users to select possible filter values from a checkbox list. The advanced filter can be used to build complex filter criteria.
224
-
225
- ## 16.4.45 (2019-01-02)
226
-
227
- ### TreeGrid
228
-
229
- #### Bug Fixes
230
-
231
- - Added events for the column menu feature and added `columnMenuItems` API to modify the column menu items in column menu.
232
- - Added `sortComparer` API to perform custom sorting in TreeGrid.
233
-
234
- ## 16.4.44 (2018-12-24)
235
-
236
- ### TreeGrid
237
-
238
- #### Bug Fixes
239
-
240
- - Expanding and Collapsing records is working fine when `pageSizeMode` is set as `All`.
241
- - `expandAtLevel`, `collapseAtLevel`, `expandAll` and `collapseAll` methods are working fine when `pageSizeMode` is set as `All`.
242
-
243
-
244
- - `actionBegin`, `actionComplete` and `actionFailure` events are triggered properly.
245
- - Additional parameters that are added using the `query` property of TreeGrid are passed to the server side when a parent record is expanded.
246
-
247
-
248
- ## 19.1.54 (2021-03-30)
249
-
250
- ### Tree Grid
251
-
252
- #### Bug Fixes
253
-
254
- - `#332604` - Resolved white space issue while using less number of records with Virtualization.
255
-
@@ -1,18 +0,0 @@
1
- var fs = require("fs");
2
- var glob = require("glob");
3
-
4
- var selectors = ['ejs-treegrid'];
5
-
6
- if (process.env.tagName !== undefined) {
7
- var newTagPrefix = process.env.tagName.trim();
8
- var files = glob.sync("./@syncfusion/*");
9
- for (var i = 0; i < files.length; i++) {
10
- var sourceFile = fs.readFileSync(files[i], "utf8");
11
- for (var j = 0; j < selectors.length; j++) {
12
- selectors[j] = selectors[j].replace('[','').replace(']','');
13
- var tagRegex = new RegExp(selectors[j], "g");
14
- sourceFile = sourceFile.replace(tagRegex,selectors[j].replace("ejs", newTagPrefix));
15
- }
16
- fs.writeFileSync(files[i], sourceFile, "utf8");
17
- }
18
- }
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { Schema } from './schema';
3
- export default function (options: Schema): Rule;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
4
- const sampleDetails = require("./sample-details");
5
- function default_1(options) {
6
- return schematics_1.componentBuilder(options, sampleDetails);
7
- }
8
- exports.default = default_1;
@@ -1,8 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
3
- import { Schema } from './schema';
4
- import * as sampleDetails from './sample-details';
5
-
6
- export default function (options: Schema): Rule {
7
- return componentBuilder(options, sampleDetails);
8
- }
@@ -1,5 +0,0 @@
1
- export declare const componentName: string;
2
- export declare const sampleName: string;
3
- export declare const diModules: string;
4
- export declare const packageName: string;
5
- export declare const libModules: string;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.componentName = 'treegrid';
4
- exports.sampleName = 'default';
5
- exports.diModules = null;
6
- exports.packageName = '@syncfusion/ej2-angular-treegrid';
7
- exports.libModules = 'TreeGridModule';
@@ -1,5 +0,0 @@
1
- export const componentName: string = 'treegrid';
2
- export const sampleName: string = 'default';
3
- export const diModules: string = null;
4
- export const packageName: string = '@syncfusion/ej2-angular-treegrid';
5
- export const libModules: string = 'TreeGridModule';
@@ -1,5 +0,0 @@
1
-
2
- .control-section {
3
- overflow: auto;
4
- padding-bottom: 10px;
5
- }
@@ -1,10 +0,0 @@
1
- <div class="control-section">
2
- <ejs-treegrid [dataSource]='data' height='350' [treeColumnIndex]='1' childMapping='subtasks'>
3
- <e-columns>
4
- <e-column field='taskID' headerText='Task ID' textAlign='Right' width=90></e-column>
5
- <e-column field='taskName' headerText='Task Name' textAlign='Left' width=180></e-column>
6
- <e-column field='startDate' headerText='Start Date' textAlign='Right' format='yMd' width=90></e-column>
7
- <e-column field='duration' headerText='Duration' textAlign='Right' width=80></e-column>
8
- </e-columns>
9
- </ejs-treegrid>
10
- </div>
@@ -1,143 +0,0 @@
1
- /**
2
- * TreeGrid databinding Sample
3
- */
4
- import { Component } from '@angular/core';
5
-
6
- @Component({
7
- selector: '<%=dasherize(selector)%>',
8
- templateUrl: '<%=dasherize(name)%>.component.html',
9
- styleUrls: ['<%=dasherize(name)%>.component.css']
10
- })
11
-
12
- export class <%= classify(name) %>Component {
13
-
14
- public data: Object[] = [
15
- {
16
- taskID: 1,
17
- taskName: "Planning",
18
- startDate: new Date("02/03/2017"),
19
- endDate: new Date("02/07/2017"),
20
- progress: 100,
21
- duration: 5,
22
- priority: "Normal",
23
- approved: false,
24
- subtasks: [
25
- { taskID: 2, taskName: "Plan timeline", startDate: new Date("02/03/2017"), endDate: new Date("02/07/2017"), duration: 5, progress: 100, priority: "Normal", approved: false },
26
- { taskID: 3, taskName: "Plan budget", startDate: new Date("02/03/2017"), endDate: new Date("02/07/2017"), duration: 5, progress: 100, approved: true },
27
- { taskID: 4, taskName: "Allocate resources", startDate: new Date("02/03/2017"), endDate: new Date("02/07/2017"), duration: 5, progress: 100, priority: "Critical", approved: false },
28
- { taskID: 5, taskName: "Item can't be Dragged", startDate: new Date("02/07/2017"), endDate: new Date("02/07/2017"), duration: 0, progress: 0, priority: "Low", approved: true }
29
- ]
30
- },
31
- {
32
- taskID: 6,
33
- taskName: "Design",
34
- startDate: new Date("02/10/2017"),
35
- endDate: new Date("02/14/2017"),
36
- duration: 3,
37
- progress: 86,
38
- priority: "High",
39
- approved: false,
40
- subtasks: [
41
- { taskID: 7, taskName: "Software Specification", startDate: new Date("02/10/2017"), endDate: new Date("02/12/2017"), duration: 3, progress: 60, priority: "Normal", approved: false },
42
- { taskID: 8, taskName: "Develop prototype", startDate: new Date("02/10/2017"), endDate: new Date("02/12/2017"), duration: 3, progress: 100, priority: "Critical", approved: false },
43
- { taskID: 9, taskName: "Get approval from customer", startDate: new Date("02/13/2017"), endDate: new Date("02/14/2017"), duration: 2, progress: 100, approved: true },
44
- { taskID: 10, taskName: "Design Documentation", startDate: new Date("02/13/2017"), endDate: new Date("02/14/2017"), duration: 2, progress: 100, approved: true },
45
- { taskID: 11, taskName: "Item can't be Dropped", startDate: new Date("02/14/2017"), endDate: new Date("02/14/2017"), duration: 0, progress: 0, priority: "Normal", approved: true }
46
- ]
47
- },
48
- {
49
- taskID: 12,
50
- taskName: "Implementation Phase",
51
- startDate: new Date("02/17/2017"),
52
- endDate: new Date("02/27/2017"),
53
- priority: "Normal",
54
- approved: false,
55
- duration: 11,
56
- subtasks: [
57
- {
58
- taskID: 13,
59
- taskName: "Phase 1",
60
- startDate: new Date("02/17/2017"),
61
- endDate: new Date("02/27/2017"),
62
- priority: "High",
63
- approved: false,
64
- duration: 11,
65
- subtasks: [{
66
- taskID: 14,
67
- taskName: "Implementation Module 1",
68
- startDate: new Date("02/17/2017"),
69
- endDate: new Date("02/27/2017"),
70
- priority: "Normal",
71
- duration: 11,
72
- approved: false,
73
- subtasks: [
74
- { taskID: 15, taskName: "Development Task 1", startDate: new Date("02/17/2017"), endDate: new Date("02/19/2017"), duration: 3, progress: "50", priority: "High", approved: false },
75
- { taskID: 16, taskName: "Development Task 2", startDate: new Date("02/17/2017"), endDate: new Date("02/19/2017"), duration: 3, progress: "50", priority: "Low", approved: true },
76
- { taskID: 17, taskName: "Testing", startDate: new Date("02/20/2017"), endDate: new Date("02/21/2017"), duration: 2, progress: "0", priority: "Normal", approved: true },
77
- { taskID: 18, taskName: "Bug fix", startDate: new Date("02/24/2017"), endDate: new Date("02/25/2017"), duration: 2, progress: "0", priority: "Critical", approved: false },
78
- { taskID: 19, taskName: "Customer review meeting", startDate: new Date("02/26/2017"), endDate: new Date("02/27/2017"), duration: 2, progress: "0", priority: "High", approved: false },
79
- { taskID: 20, taskName: "Phase 1 complete", startDate: new Date("02/27/2017"), endDate: new Date("02/27/2017"), duration: 0, priority: "Low", approved: true }
80
-
81
- ]
82
- }]
83
- },
84
-
85
- {
86
- taskID: 21,
87
- taskName: "Phase 2",
88
- startDate: new Date("02/17/2017"),
89
- endDate: new Date("02/28/2017"),
90
- priority: "High",
91
- approved: false,
92
- duration: 12,
93
- subtasks: [{
94
- taskID: 22,
95
- taskName: "Implementation Module 2",
96
- startDate: new Date("02/17/2017"),
97
- endDate: new Date("02/28/2017"),
98
- priority: "Critical",
99
- approved: false,
100
- duration: 12,
101
- subtasks: [
102
- { taskID: 23, taskName: "Development Task 1", startDate: new Date("02/17/2017"), endDate: new Date("02/20/2017"), duration: 4, progress: "50", priority: "Normal", approved: true },
103
- { taskID: 24, taskName: "Development Task 2", startDate: new Date("02/17/2017"), endDate: new Date("02/20/2017"), duration: 4, progress: "50", priority: "Critical", approved: true },
104
- { taskID: 25, taskName: "Testing", startDate: new Date("02/21/2017"), endDate: new Date("02/24/2017"), duration: 2, progress: "0", priority: "High", approved: false },
105
- { taskID: 26, taskName: "Bug fix", startDate: new Date("02/25/2017"), endDate: new Date("02/26/2017"), duration: 2, progress: "0", priority: "Low", approved: false },
106
- { taskID: 27, taskName: "Customer review meeting", startDate: new Date("02/27/2017"), endDate: new Date("02/28/2017"), duration: 2, progress: "0", priority: "Critical", approved: true },
107
- { taskID: 28, taskName: "Phase 2 complete", startDate: new Date("02/28/2017"), endDate: new Date("02/28/2017"), duration: 0, priority: "Normal", approved: false }
108
-
109
- ]
110
- }]
111
- },
112
-
113
- {
114
- taskID: 29,
115
- taskName: "Phase 3",
116
- startDate: new Date("02/17/2017"),
117
- endDate: new Date("02/27/2017"),
118
- priority: "Normal",
119
- approved: false,
120
- duration: 11,
121
- subtasks: [{
122
- taskID: 30,
123
- taskName: "Implementation Module 3",
124
- startDate: new Date("02/17/2017"),
125
- endDate: new Date("02/27/2017"),
126
- priority: "High",
127
- approved: false,
128
- duration: 11,
129
- subtasks: [
130
- { taskID: 31, taskName: "Development Task 1", startDate: new Date("02/17/2017"), endDate: new Date("02/19/2017"), duration: 3, progress: "50", priority: "Low", approved: true },
131
- { taskID: 32, taskName: "Development Task 2", startDate: new Date("02/17/2017"), endDate: new Date("02/19/2017"), duration: 3, progress: "50", priority: "Normal", approved: false },
132
- { taskID: 33, taskName: "Testing", startDate: new Date("02/20/2017"), endDate: new Date("02/21/2017"), duration: 2, progress: "0", priority: "Critical", approved: true },
133
- { taskID: 34, taskName: "Bug fix", startDate: new Date("02/24/2017"), endDate: new Date("02/25/2017"), duration: 2, progress: "0", priority: "High", approved: false },
134
- { taskID: 35, taskName: "Customer review meeting", startDate: new Date("02/26/2017"), endDate: new Date("02/27/2017"), duration: 2, progress: "0", priority: "Normal", approved: true },
135
- { taskID: 36, taskName: "Phase 3 complete", startDate: new Date("02/27/2017"), endDate: new Date("02/27/2017"), duration: 0, priority: "Critical", approved: false },
136
-
137
- ]
138
- }]
139
- }
140
- ]
141
- }
142
- ];
143
- }
@@ -1,3 +0,0 @@
1
- import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
- export interface Schema extends ComponentSchema {
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,125 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "EJ2SchemaTemplateID",
4
- "title": "treegrid-default",
5
- "type": "object",
6
- "properties": {
7
- "path": {
8
- "type": "string",
9
- "format": "path",
10
- "description": "The path to create the component.",
11
- "visible": false
12
- },
13
- "project": {
14
- "type": "string",
15
- "description": "The name of the project.",
16
- "$default": {
17
- "$source": "projectName"
18
- }
19
- },
20
- "name": {
21
- "type": "string",
22
- "description": "The name of the component.",
23
- "$default": {
24
- "$source": "argv",
25
- "index": 0
26
- }
27
- },
28
- "inlineStyle": {
29
- "description": "Specifies if the style will be in the ts file.",
30
- "type": "boolean",
31
- "default": false,
32
- "alias": "s"
33
- },
34
- "inlineTemplate": {
35
- "description": "Specifies if the template will be in the ts file.",
36
- "type": "boolean",
37
- "default": false,
38
- "alias": "t"
39
- },
40
- "viewEncapsulation": {
41
- "description": "Specifies the view encapsulation strategy.",
42
- "enum": [
43
- "Emulated",
44
- "Native",
45
- "None",
46
- "ShadowDom"
47
- ],
48
- "type": "string",
49
- "alias": "v"
50
- },
51
- "changeDetection": {
52
- "description": "Specifies the change detection strategy.",
53
- "enum": [
54
- "Default",
55
- "OnPush"
56
- ],
57
- "type": "string",
58
- "default": "Default",
59
- "alias": "c"
60
- },
61
- "prefix": {
62
- "type": "string",
63
- "description": "The prefix to apply to generated selectors.",
64
- "alias": "p",
65
- "oneOf": [
66
- {
67
- "maxLength": 0
68
- },
69
- {
70
- "minLength": 1,
71
- "format": "html-selector"
72
- }
73
- ]
74
- },
75
- "styleext": {
76
- "description": "The file extension to be used for style files.",
77
- "type": "string",
78
- "default": "css"
79
- },
80
- "spec": {
81
- "type": "boolean",
82
- "description": "Specifies if a spec file is generated.",
83
- "default": true
84
- },
85
- "flat": {
86
- "type": "boolean",
87
- "description": "Flag to indicate if a dir is created.",
88
- "default": false
89
- },
90
- "skipImport": {
91
- "type": "boolean",
92
- "description": "Flag to skip the module import.",
93
- "default": false
94
- },
95
- "selector": {
96
- "type": "string",
97
- "format": "html-selector",
98
- "description": "The selector to use for the component."
99
- },
100
- "module": {
101
- "type": "string",
102
- "description": "Allows specification of the declaring module.",
103
- "alias": "m"
104
- },
105
- "export": {
106
- "type": "boolean",
107
- "default": false,
108
- "description": "Specifies if declaring module exports the component."
109
- },
110
- "entryComponent": {
111
- "type": "boolean",
112
- "default": false,
113
- "description": "Specifies if the component is an entry component of declaring module."
114
- },
115
- "lintFix": {
116
- "type": "boolean",
117
- "default": false,
118
- "description": "Specifies whether to apply lint fixes after generating the component."
119
- }
120
- },
121
- "required": [
122
- "name"
123
- ],
124
- "id": "treegrid-default"
125
- }
@@ -1,3 +0,0 @@
1
- import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
-
3
- export interface Schema extends ComponentSchema { }
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { Schema } from './schema';
3
- export default function (options: Schema): Rule;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const schematics_1 = require("@syncfusion/ej2-angular-base/schematics");
4
- const sampleDetails = require("./sample-details");
5
- function default_1(options) {
6
- return schematics_1.componentBuilder(options, sampleDetails);
7
- }
8
- exports.default = default_1;
@@ -1,8 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
3
- import { Schema } from './schema';
4
- import * as sampleDetails from './sample-details';
5
-
6
- export default function (options: Schema): Rule {
7
- return componentBuilder(options, sampleDetails);
8
- }
@@ -1,5 +0,0 @@
1
- export declare const componentName: string;
2
- export declare const sampleName: string;
3
- export declare const diModules: string;
4
- export declare const packageName: string;
5
- export declare const libModules: string;