@syncfusion/ej2-angular-treegrid 31.2.15-ngcc → 32.1.19-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 +797 -817
  2. package/@syncfusion/ej2-angular-treegrid.es5.js.map +1 -1
  3. package/@syncfusion/ej2-angular-treegrid.js +725 -745
  4. package/@syncfusion/ej2-angular-treegrid.js.map +1 -1
  5. package/CHANGELOG.md +255 -0
  6. package/dist/ej2-angular-treegrid.umd.js +789 -817
  7. package/dist/ej2-angular-treegrid.umd.js.map +1 -1
  8. package/dist/ej2-angular-treegrid.umd.min.js +1 -10
  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/{LICENSE → license} +10 -10
  13. package/package.json +47 -31
  14. package/postinstall/tagchange.js +18 -0
  15. package/public_api.d.ts +1 -1
  16. package/schematics/collection.json +19 -10
  17. package/schematics/generators/treegrid-default/index.d.ts +3 -0
  18. package/schematics/generators/treegrid-default/index.js +8 -0
  19. package/schematics/generators/treegrid-default/index.ts +8 -0
  20. package/schematics/generators/treegrid-default/sample-details.d.ts +5 -0
  21. package/schematics/generators/treegrid-default/sample-details.js +7 -0
  22. package/schematics/generators/treegrid-default/sample-details.ts +5 -0
  23. package/schematics/generators/treegrid-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +5 -0
  24. package/schematics/generators/treegrid-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +10 -0
  25. package/schematics/generators/treegrid-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +143 -0
  26. package/schematics/generators/treegrid-default/schema.d.ts +3 -0
  27. package/schematics/generators/treegrid-default/schema.js +2 -0
  28. package/schematics/generators/treegrid-default/schema.json +125 -0
  29. package/schematics/generators/treegrid-default/schema.ts +3 -0
  30. package/schematics/generators/treegrid-feature/index.d.ts +3 -0
  31. package/schematics/generators/treegrid-feature/index.js +8 -0
  32. package/schematics/generators/treegrid-feature/index.ts +8 -0
  33. package/schematics/generators/treegrid-feature/sample-details.d.ts +5 -0
  34. package/schematics/generators/treegrid-feature/sample-details.js +7 -0
  35. package/schematics/generators/treegrid-feature/sample-details.ts +5 -0
  36. package/schematics/generators/treegrid-feature/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +5 -0
  37. package/schematics/generators/treegrid-feature/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +11 -0
  38. package/schematics/generators/treegrid-feature/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +144 -0
  39. package/schematics/generators/treegrid-feature/schema.d.ts +3 -0
  40. package/schematics/generators/treegrid-feature/schema.js +2 -0
  41. package/schematics/generators/treegrid-feature/schema.json +125 -0
  42. package/schematics/generators/treegrid-feature/schema.ts +3 -0
  43. package/schematics/ng-add/index.ts +10 -10
  44. package/schematics/ng-add/schema.json +34 -34
  45. package/schematics/ng-add/schema.ts +30 -30
  46. package/schematics/tsconfig.json +25 -25
  47. package/schematics/utils/lib-details.d.ts +2 -2
  48. package/schematics/utils/lib-details.js +2 -2
  49. package/schematics/utils/lib-details.ts +4 -4
  50. package/src/index.d.ts +8 -8
  51. package/src/treegrid/aggregate-columns.directive.d.ts +88 -86
  52. package/src/treegrid/aggregates.directive.d.ts +44 -44
  53. package/src/treegrid/columns.directive.d.ts +345 -323
  54. package/src/treegrid/stacked-column.directive.d.ts +347 -325
  55. package/src/treegrid/treegrid-all.module.d.ts +27 -27
  56. package/src/treegrid/treegrid.component.d.ts +121 -140
  57. package/src/treegrid/treegrid.module.d.ts +5 -5
  58. package/styles/bds-lite.css +0 -1
  59. package/styles/bds-lite.scss +0 -1
  60. package/styles/bds.css +0 -1
  61. package/styles/bds.scss +0 -1
  62. package/styles/bootstrap-dark-lite.css +0 -1
  63. package/styles/bootstrap-dark-lite.scss +0 -1
  64. package/styles/bootstrap-lite.css +0 -1
  65. package/styles/bootstrap-lite.scss +0 -1
  66. package/styles/bootstrap4-lite.css +0 -1
  67. package/styles/bootstrap4-lite.scss +0 -1
  68. package/styles/bootstrap5-dark-lite.css +0 -1
  69. package/styles/bootstrap5-dark-lite.scss +0 -1
  70. package/styles/bootstrap5-lite.css +0 -1
  71. package/styles/bootstrap5-lite.scss +0 -1
  72. package/styles/bootstrap5.3-lite.css +0 -1
  73. package/styles/bootstrap5.3-lite.scss +0 -1
  74. package/styles/bootstrap5.3.css +0 -1
  75. package/styles/bootstrap5.3.scss +0 -1
  76. package/styles/fabric-dark-lite.css +0 -1
  77. package/styles/fabric-dark-lite.scss +0 -1
  78. package/styles/fabric-lite.css +0 -1
  79. package/styles/fabric-lite.scss +0 -1
  80. package/styles/fluent-dark-lite.css +0 -1
  81. package/styles/fluent-dark-lite.scss +0 -1
  82. package/styles/fluent-lite.css +0 -1
  83. package/styles/fluent-lite.scss +0 -1
  84. package/styles/fluent2-lite.css +0 -1
  85. package/styles/fluent2-lite.scss +0 -1
  86. package/styles/fluent2.css +0 -1
  87. package/styles/fluent2.scss +0 -1
  88. package/styles/highcontrast-light-lite.css +0 -1
  89. package/styles/highcontrast-light-lite.scss +0 -1
  90. package/styles/highcontrast-lite.css +0 -1
  91. package/styles/highcontrast-lite.scss +0 -1
  92. package/styles/material-dark-lite.css +0 -1
  93. package/styles/material-dark-lite.scss +0 -1
  94. package/styles/material-lite.css +0 -1
  95. package/styles/material-lite.scss +0 -1
  96. package/styles/material3-dark-lite.css +0 -1
  97. package/styles/material3-dark-lite.scss +0 -1
  98. package/styles/material3-lite.css +0 -1
  99. package/styles/material3-lite.scss +0 -1
  100. package/styles/tailwind-dark-lite.css +0 -1
  101. package/styles/tailwind-dark-lite.scss +0 -1
  102. package/styles/tailwind-lite.css +0 -1
  103. package/styles/tailwind-lite.scss +0 -1
  104. package/styles/tailwind3-lite.css +0 -1
  105. package/styles/tailwind3-lite.scss +0 -1
  106. package/styles/tailwind3.css +0 -1
  107. package/styles/tailwind3.scss +0 -1
  108. package/styles/treegrid/bds.css +0 -1
  109. package/styles/treegrid/bds.scss +0 -1
  110. package/styles/treegrid/bootstrap5.3.css +0 -1
  111. package/styles/treegrid/bootstrap5.3.scss +0 -1
  112. package/styles/treegrid/fluent2.css +0 -1
  113. package/styles/treegrid/fluent2.scss +0 -1
  114. package/styles/treegrid/tailwind3.css +0 -1
  115. package/styles/treegrid/tailwind3.scss +0 -1
@@ -0,0 +1,125 @@
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
+ }
@@ -0,0 +1,3 @@
1
+ import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
+
3
+ export interface Schema extends ComponentSchema { }
@@ -0,0 +1,3 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Schema } from './schema';
3
+ export default function (options: Schema): Rule;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.componentName = 'treegrid';
4
+ exports.sampleName = 'feature';
5
+ exports.diModules = 'PageService,SortService,FilterService';
6
+ exports.packageName = '@syncfusion/ej2-angular-treegrid';
7
+ exports.libModules = 'TreeGridModule';
@@ -0,0 +1,5 @@
1
+ export const componentName: string = 'treegrid';
2
+ export const sampleName: string = 'feature';
3
+ export const diModules: string = 'PageService,SortService,FilterService';
4
+ export const packageName: string = '@syncfusion/ej2-angular-treegrid';
5
+ export const libModules: string = 'TreeGridModule';
@@ -0,0 +1,5 @@
1
+
2
+ .control-section {
3
+ overflow: auto;
4
+ padding-bottom: 10px;
5
+ }
@@ -0,0 +1,11 @@
1
+ <div class="control-section">
2
+ <ejs-treegrid [dataSource]='data' [treeColumnIndex]='1' [allowFiltering]="true" [allowSorting]="true" childMapping='subtasks'
3
+ [allowPaging]="true" [pageSettings]='pageSettings'>
4
+ <e-columns>
5
+ <e-column field='taskID' headerText='Task ID' textAlign='Right' width=90></e-column>
6
+ <e-column field='taskName' headerText='Task Name' textAlign='Left' width=180></e-column>
7
+ <e-column field='startDate' headerText='Start Date' textAlign='Right' format='yMd' width=90></e-column>
8
+ <e-column field='duration' headerText='Duration' textAlign='Right' width=80></e-column>
9
+ </e-columns>
10
+ </ejs-treegrid>
11
+ </div>
@@ -0,0 +1,144 @@
1
+ /**
2
+ * TreeGrid with Paging,Filtering,Sorting 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 pageSettings: Object = { pageSize: 10 };
15
+ public data: Object[] = [
16
+ {
17
+ taskID: 1,
18
+ taskName: "Planning",
19
+ startDate: new Date("02/03/2017"),
20
+ endDate: new Date("02/07/2017"),
21
+ progress: 100,
22
+ duration: 5,
23
+ priority: "Normal",
24
+ approved: false,
25
+ subtasks: [
26
+ { 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 },
27
+ { taskID: 3, taskName: "Plan budget", startDate: new Date("02/03/2017"), endDate: new Date("02/07/2017"), duration: 5, progress: 100, approved: true },
28
+ { 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 },
29
+ { 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 }
30
+ ]
31
+ },
32
+ {
33
+ taskID: 6,
34
+ taskName: "Design",
35
+ startDate: new Date("02/10/2017"),
36
+ endDate: new Date("02/14/2017"),
37
+ duration: 3,
38
+ progress: 86,
39
+ priority: "High",
40
+ approved: false,
41
+ subtasks: [
42
+ { 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 },
43
+ { 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 },
44
+ { 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 },
45
+ { taskID: 10, taskName: "Design Documentation", startDate: new Date("02/13/2017"), endDate: new Date("02/14/2017"), duration: 2, progress: 100, approved: true },
46
+ { 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 }
47
+ ]
48
+ },
49
+ {
50
+ taskID: 12,
51
+ taskName: "Implementation Phase",
52
+ startDate: new Date("02/17/2017"),
53
+ endDate: new Date("02/27/2017"),
54
+ priority: "Normal",
55
+ approved: false,
56
+ duration: 11,
57
+ subtasks: [
58
+ {
59
+ taskID: 13,
60
+ taskName: "Phase 1",
61
+ startDate: new Date("02/17/2017"),
62
+ endDate: new Date("02/27/2017"),
63
+ priority: "High",
64
+ approved: false,
65
+ duration: 11,
66
+ subtasks: [{
67
+ taskID: 14,
68
+ taskName: "Implementation Module 1",
69
+ startDate: new Date("02/17/2017"),
70
+ endDate: new Date("02/27/2017"),
71
+ priority: "Normal",
72
+ duration: 11,
73
+ approved: false,
74
+ subtasks: [
75
+ { 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 },
76
+ { 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 },
77
+ { taskID: 17, taskName: "Testing", startDate: new Date("02/20/2017"), endDate: new Date("02/21/2017"), duration: 2, progress: "0", priority: "Normal", approved: true },
78
+ { 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 },
79
+ { 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 },
80
+ { taskID: 20, taskName: "Phase 1 complete", startDate: new Date("02/27/2017"), endDate: new Date("02/27/2017"), duration: 0, priority: "Low", approved: true }
81
+
82
+ ]
83
+ }]
84
+ },
85
+
86
+ {
87
+ taskID: 21,
88
+ taskName: "Phase 2",
89
+ startDate: new Date("02/17/2017"),
90
+ endDate: new Date("02/28/2017"),
91
+ priority: "High",
92
+ approved: false,
93
+ duration: 12,
94
+ subtasks: [{
95
+ taskID: 22,
96
+ taskName: "Implementation Module 2",
97
+ startDate: new Date("02/17/2017"),
98
+ endDate: new Date("02/28/2017"),
99
+ priority: "Critical",
100
+ approved: false,
101
+ duration: 12,
102
+ subtasks: [
103
+ { 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 },
104
+ { 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 },
105
+ { taskID: 25, taskName: "Testing", startDate: new Date("02/21/2017"), endDate: new Date("02/24/2017"), duration: 2, progress: "0", priority: "High", approved: false },
106
+ { 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 },
107
+ { 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 },
108
+ { taskID: 28, taskName: "Phase 2 complete", startDate: new Date("02/28/2017"), endDate: new Date("02/28/2017"), duration: 0, priority: "Normal", approved: false }
109
+
110
+ ]
111
+ }]
112
+ },
113
+
114
+ {
115
+ taskID: 29,
116
+ taskName: "Phase 3",
117
+ startDate: new Date("02/17/2017"),
118
+ endDate: new Date("02/27/2017"),
119
+ priority: "Normal",
120
+ approved: false,
121
+ duration: 11,
122
+ subtasks: [{
123
+ taskID: 30,
124
+ taskName: "Implementation Module 3",
125
+ startDate: new Date("02/17/2017"),
126
+ endDate: new Date("02/27/2017"),
127
+ priority: "High",
128
+ approved: false,
129
+ duration: 11,
130
+ subtasks: [
131
+ { 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 },
132
+ { 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 },
133
+ { taskID: 33, taskName: "Testing", startDate: new Date("02/20/2017"), endDate: new Date("02/21/2017"), duration: 2, progress: "0", priority: "Critical", approved: true },
134
+ { 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 },
135
+ { 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 },
136
+ { taskID: 36, taskName: "Phase 3 complete", startDate: new Date("02/27/2017"), endDate: new Date("02/27/2017"), duration: 0, priority: "Critical", approved: false },
137
+
138
+ ]
139
+ }]
140
+ }
141
+ ]
142
+ }
143
+ ];
144
+ }
@@ -0,0 +1,3 @@
1
+ import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
+ export interface Schema extends ComponentSchema {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,125 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "EJ2SchemaTemplateID",
4
+ "title": "treegrid-feature",
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-feature"
125
+ }
@@ -0,0 +1,3 @@
1
+ import { Schema as ComponentSchema } from '@schematics/angular/component/schema';
2
+
3
+ export interface Schema extends ComponentSchema { }
@@ -1,10 +1,10 @@
1
- import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
2
- import { install } from '@syncfusion/ej2-angular-base/schematics';
3
- import { OptionsSchema, LibOptionsSchema } from './schema';
4
- import { Rule } from '@angular-devkit/schematics';
5
-
6
- export default function (options: OptionsSchema): Rule {
7
- const libOptions: LibOptionsSchema = Object.assign({},
8
- { 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
9
- return install(options, libOptions);
10
- }
1
+ import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
2
+ import { install } from '@syncfusion/ej2-angular-base/schematics';
3
+ import { OptionsSchema, LibOptionsSchema } from './schema';
4
+ import { Rule } from '@angular-devkit/schematics';
5
+
6
+ export default function (options: OptionsSchema): Rule {
7
+ const libOptions: LibOptionsSchema = Object.assign({},
8
+ { 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
9
+ return install(options, libOptions);
10
+ }
@@ -1,34 +1,34 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "ngAdd",
4
- "title": "Add Essential JS 2 Angular packages",
5
- "type": "object",
6
- "properties": {
7
- "skipPackageJson": {
8
- "type": "boolean",
9
- "default": false,
10
- "description": "Do not add add Essential JS 2 Angular packages dependencies to package.json (e.g., --skipPackageJson)"
11
- },
12
- "modules": {
13
- "type": "string",
14
- "default": "",
15
- "description": "Add only specific Essential JS 2 modules to the app.module file (eg: --modules=slider, grid)"
16
- },
17
- "modulePath": {
18
- "type": "string",
19
- "default": "",
20
- "description": "Used to specify the path of the module file where the EJ2 module needs to be imported"
21
- },
22
- "theme": {
23
- "enum": [
24
- "material",
25
- "fabric",
26
- "bootstrap",
27
- "highcontrast"
28
- ],
29
- "default": "material",
30
- "description": "Used to change the theme that needs to be imported"
31
- }
32
- },
33
- "required": []
34
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "ngAdd",
4
+ "title": "Add Essential JS 2 Angular packages",
5
+ "type": "object",
6
+ "properties": {
7
+ "skipPackageJson": {
8
+ "type": "boolean",
9
+ "default": false,
10
+ "description": "Do not add add Essential JS 2 Angular packages dependencies to package.json (e.g., --skipPackageJson)"
11
+ },
12
+ "modules": {
13
+ "type": "string",
14
+ "default": "",
15
+ "description": "Add only specific Essential JS 2 modules to the app.module file (eg: --modules=slider, grid)"
16
+ },
17
+ "modulePath": {
18
+ "type": "string",
19
+ "default": "",
20
+ "description": "Used to specify the path of the module file where the EJ2 module needs to be imported"
21
+ },
22
+ "theme": {
23
+ "enum": [
24
+ "material",
25
+ "fabric",
26
+ "bootstrap",
27
+ "highcontrast"
28
+ ],
29
+ "default": "material",
30
+ "description": "Used to change the theme that needs to be imported"
31
+ }
32
+ },
33
+ "required": []
34
+ }
@@ -1,30 +1,30 @@
1
- export interface OptionsSchema {
2
- // Whether to skip package.json install.
3
- skipPackageJson: boolean;
4
-
5
- // Used to specify required module names
6
- modules: string;
7
-
8
- // Used to specify custom module path
9
- modulePath: string;
10
-
11
- // Used to specify theme name
12
- theme: 'material' | 'fabric' | 'bootstrap' | 'highcontrast';
13
-
14
- // Name of the project to target.
15
- project?: string;
16
- }
17
-
18
- export interface LibOptionsSchema {
19
- // Package name
20
- pkgName: string;
21
-
22
- // Package version
23
- pkgVer: string;
24
-
25
- // Library base module name
26
- moduleName: string;
27
-
28
- // Theme version
29
- themeVer: string;
30
- }
1
+ export interface OptionsSchema {
2
+ // Whether to skip package.json install.
3
+ skipPackageJson: boolean;
4
+
5
+ // Used to specify required module names
6
+ modules: string;
7
+
8
+ // Used to specify custom module path
9
+ modulePath: string;
10
+
11
+ // Used to specify theme name
12
+ theme: 'material' | 'fabric' | 'bootstrap' | 'highcontrast';
13
+
14
+ // Name of the project to target.
15
+ project?: string;
16
+ }
17
+
18
+ export interface LibOptionsSchema {
19
+ // Package name
20
+ pkgName: string;
21
+
22
+ // Package version
23
+ pkgVer: string;
24
+
25
+ // Library base module name
26
+ moduleName: string;
27
+
28
+ // Theme version
29
+ themeVer: string;
30
+ }