@progress/kendo-typescript-tasks 11.2.7-dev.1 → 11.2.7-dev.15
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/api.js +2 -57
- package/package.json +4 -3
- package/api.config.js +0 -13
- package/src/api/class-page.hbs +0 -27
- package/src/api/class-page.js +0 -35
- package/src/api/code-block.hbs +0 -7
- package/src/api/comment-tags.hbs +0 -7
- package/src/api/comment.js +0 -56
- package/src/api/component-page.hbs +0 -101
- package/src/api/component-page.js +0 -67
- package/src/api/constant-page.hbs +0 -4
- package/src/api/constant-page.js +0 -15
- package/src/api/constructor.hbs +0 -21
- package/src/api/enum-page.hbs +0 -11
- package/src/api/enum-page.js +0 -25
- package/src/api/fn-page.hbs +0 -18
- package/src/api/fn-page.js +0 -24
- package/src/api/generator.js +0 -270
- package/src/api/index-page.hbs +0 -54
- package/src/api/index-page.js +0 -15
- package/src/api/is-constructor.js +0 -9
- package/src/api/is-event.js +0 -7
- package/src/api/is-field.js +0 -7
- package/src/api/is-input.js +0 -7
- package/src/api/is-method.js +0 -10
- package/src/api/is-public.js +0 -8
- package/src/api/map-constructors.js +0 -30
- package/src/api/map-methods.js +0 -23
- package/src/api/map-props.js +0 -63
- package/src/api/member-meta.hbs +0 -7
- package/src/api/member-page.js +0 -41
- package/src/api/methods.hbs +0 -109
- package/src/api/property.hbs +0 -38
- package/src/api/react/component-page.hbs +0 -26
- package/src/api/react/component-page.js +0 -30
- package/src/api/return-type.js +0 -30
- package/src/api/slug.js +0 -9
- package/src/api/template-utils.js +0 -40
- package/src/api/type-links.json +0 -3
- package/src/api/type-utils.js +0 -179
- package/src/api/union-page.hbs +0 -14
- package/src/api/union-page.js +0 -17
- package/src/api/utils.js +0 -40
- package/src/api/warn.js +0 -22
- package/src/api/warning-rules.js +0 -14
- package/test/api.js +0 -339
- package/test/class.json +0 -73
- package/test/components-def.json +0 -98
- package/test/events-def.json +0 -163
- package/test/fields-def.json +0 -203
- package/test/fn-def.json +0 -80
- package/test/fn.json +0 -89
- package/test/inputs-def.json +0 -98
- package/test/interface-comments.json +0 -412
- package/test/intersection.json +0 -67
- package/test/package.json +0 -175
- package/test/type-union-operators.json +0 -42
- package/test/type-union.json +0 -70
- package/test/warning.js +0 -91
package/test/api.js
DELETED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const generator = require('../src/api/generator');
|
|
4
|
-
const fnPage = require('../src/api/fn-page');
|
|
5
|
-
const classPage = require('../src/api/class-page');
|
|
6
|
-
const componentPage = require('../src/api/component-page');
|
|
7
|
-
const indexPage = require('../src/api/index-page');
|
|
8
|
-
|
|
9
|
-
describe('API generation', () => {
|
|
10
|
-
const packageInfo = {
|
|
11
|
-
friendlyName: 'Foo'
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
describe('for functions', () => {
|
|
15
|
-
const fnSample = require('./fn.json');
|
|
16
|
-
const page = fnPage(fnSample);
|
|
17
|
-
|
|
18
|
-
it('includes root description', () => {
|
|
19
|
-
expect(page).toContain('ROOT_DESC');
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('includes root text', () => {
|
|
23
|
-
expect(page).toContain('ROOT_TEXT');
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it('includes root example ', () => {
|
|
27
|
-
expect(page).toContain('ROOT_EXAMPLE');
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
describe('for function definitions', () => {
|
|
32
|
-
const fnDef = require('./fn-def.json');
|
|
33
|
-
const page = fnPage(fnDef);
|
|
34
|
-
|
|
35
|
-
it('includes signature description', () => {
|
|
36
|
-
expect(page).toContain('SIG_DESC');
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('includes signature text', () => {
|
|
40
|
-
expect(page).toContain('SIG_TEXT');
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('includes signature example', () => {
|
|
44
|
-
expect(page).toContain('SIG_EXAMPLE');
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('appends generic argument to class name', () => {
|
|
48
|
-
expect(page).toContain('fun<T>');
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
describe('for modules', () => {
|
|
53
|
-
const pkg = require('./package.json');
|
|
54
|
-
const members = generator.extractMembers(pkg.name, pkg.children, { modules: [ 'module1' ] });
|
|
55
|
-
|
|
56
|
-
it('adds module to slug', () => {
|
|
57
|
-
expect(members[0].slug).toEqual('api_package-name_module1_foo');
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('does not add default module to slug', () => {
|
|
61
|
-
expect(members[1].slug).toEqual('api_package-name_foo');
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
it('sets slugs for linking parameter types', () => {
|
|
65
|
-
const ctr = members[1].children[0];
|
|
66
|
-
const param = ctr.signatures[0].parameters[0];
|
|
67
|
-
expect(param.type.typeSlug).toEqual('api_package-name_module1_foo');
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
describe('for interfaces', () => {
|
|
72
|
-
const data = require('./interface-comments.json');
|
|
73
|
-
const members = generator.extractMembers(data.name, data.children, []);
|
|
74
|
-
|
|
75
|
-
it('copies signature description', () => {
|
|
76
|
-
const page = classPage(members[1]);
|
|
77
|
-
expect(page).toContain('SIG_DESC');
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
it('copies parameter descriptions', () => {
|
|
81
|
-
const page = classPage(members[1]);
|
|
82
|
-
expect(page).toContain('PARAM_DESC');
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
it('doesnt overwrite signature description', () => {
|
|
86
|
-
const page = classPage(members[2]);
|
|
87
|
-
expect(page).toContain('IMPL_SIG_DESC');
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it('doesnt overwrite parameter descriptions', () => {
|
|
91
|
-
const page = classPage(members[2]);
|
|
92
|
-
expect(page).toContain('IMPL_PARAM_DESC');
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
describe('for classes', () => {
|
|
97
|
-
const classData = require('./class.json');
|
|
98
|
-
const page = classPage(classData);
|
|
99
|
-
|
|
100
|
-
it('appends generic argument to class name', () => {
|
|
101
|
-
expect(page).toContain('Shape<T>');
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
it('adds constructor docs', () => {
|
|
105
|
-
expect(page).toContain('## Constructors');
|
|
106
|
-
expect(page).toContain('### Shape<T>\n<code>\n\n\n(options?: any)\n\n\n</code>');
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it('adds methods', () => {
|
|
110
|
-
const pageContent = `## Methods\n\n<table class="api-table api-table-methods">\n<thead class="api-table-methods-head">\n<tr>\n<th>\n\n\n#### get\n\n\n</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td>\n\n\nGets the value of the specified option.\n\n\n</td>\n</tr>\n\n<tr class="nested-table">\n<td>\n<table class="api-table api-table-returns">\n<thead class="api-table-returns-head">\n<tr>\n<th class="th-type">Returns</th>\n<th class="th-desc"></th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td type>\n\n\n<code>\n\n\nany\n\n\n</code>\n\n\n</td>\n<td>\n\n\nThe current option value.\n\n\n</td>\n</tr>\n</tbody>\n</table>\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
111
|
-
expect(page).toContain(pageContent);
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
it('render default value', () => {
|
|
115
|
-
const meta = {
|
|
116
|
-
"name": "Component",
|
|
117
|
-
"children": [
|
|
118
|
-
{
|
|
119
|
-
"name": "foo",
|
|
120
|
-
"flags": {
|
|
121
|
-
"isPublic": true
|
|
122
|
-
},
|
|
123
|
-
"comment": {
|
|
124
|
-
"tags": [
|
|
125
|
-
{
|
|
126
|
-
"tag": "default",
|
|
127
|
-
"text": "42\n"
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const page = classPage(meta);
|
|
136
|
-
|
|
137
|
-
expect(page).toContain('42');
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
describe('for type unions', () => {
|
|
142
|
-
const unionPage = require('../src/api/union-page');
|
|
143
|
-
|
|
144
|
-
it('formats anonymous interfaces', () => {
|
|
145
|
-
const unionData = require('./type-union.json');
|
|
146
|
-
const page = unionPage(unionData);
|
|
147
|
-
expect(page).toContain('{ allowUnsort?: boolean; mode?: "single" | "multiple"; }');
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
it('formats intersection interfaces', () => {
|
|
151
|
-
const intersectionData = require('./intersection.json');
|
|
152
|
-
const page = unionPage(intersectionData);
|
|
153
|
-
expect(page).toContain('ColumnSortSettings [intersected](https://www.typescriptlang.org/docs/handbook/advanced-types.html#intersection-types) with { mode?: "single" | "multiple"; }');
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
it('formats values conatining or equaling "null"', () => {
|
|
157
|
-
const unionData = require('./type-union-operators.json');
|
|
158
|
-
const page = unionPage(unionData);
|
|
159
|
-
expect(page).toContain('`type` FilterOperator = "gt" | "gte" | "isnull" | "isnotnull" | `null`');
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
describe('for components', () => {
|
|
164
|
-
const componentData = require('./components-def.json');
|
|
165
|
-
|
|
166
|
-
it('render component selector', () => {
|
|
167
|
-
const page = componentPage(componentData.component, packageInfo);
|
|
168
|
-
|
|
169
|
-
expect(page).toContain('my-component');
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
it('render directive selector', () => {
|
|
173
|
-
const page = componentPage(componentData.directive, packageInfo);
|
|
174
|
-
|
|
175
|
-
expect(page).toContain('[myDirective]');
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
it('render component exportAs', () => {
|
|
179
|
-
const page = componentPage(componentData.exportedComponent, packageInfo);
|
|
180
|
-
|
|
181
|
-
expect(page).toContain('Accessible in templates as `#kendoExportedInstance="exportedComponent"`');
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
it('render directive exportAs', () => {
|
|
185
|
-
const page = componentPage(componentData.exportedDirective, packageInfo);
|
|
186
|
-
|
|
187
|
-
expect(page).toContain('Accessible in templates as `#kendoExportedInstance="exportedDirective"`');
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
it('does not render exportAs', () => {
|
|
191
|
-
const page = componentPage(componentData.component, packageInfo);
|
|
192
|
-
|
|
193
|
-
expect(page).not.toContain('Accessible in templates as');
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
it('render default value', () => {
|
|
197
|
-
const component = {
|
|
198
|
-
"name": "Component",
|
|
199
|
-
"children": [
|
|
200
|
-
{
|
|
201
|
-
"name": "foo",
|
|
202
|
-
"flags": {
|
|
203
|
-
"isPublic": true
|
|
204
|
-
},
|
|
205
|
-
"comment": {
|
|
206
|
-
"tags": [
|
|
207
|
-
{
|
|
208
|
-
"tag": "default",
|
|
209
|
-
"text": "42\n"
|
|
210
|
-
}
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
const page = componentPage(component, packageInfo);
|
|
218
|
-
|
|
219
|
-
expect(page).toContain('42');
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
describe('for fields', () => {
|
|
224
|
-
const fieldsData = require('./fields-def.json');
|
|
225
|
-
|
|
226
|
-
it('does not render fields without comment', () => {
|
|
227
|
-
|
|
228
|
-
const page = componentPage(fieldsData.withoutComment, packageInfo);
|
|
229
|
-
|
|
230
|
-
expect(page).not.toContain('Fields');
|
|
231
|
-
});
|
|
232
|
-
|
|
233
|
-
it('render fields without decorators, but with comment', () => {
|
|
234
|
-
|
|
235
|
-
const page = componentPage(fieldsData.withComment, packageInfo);
|
|
236
|
-
const pageContent = `## Fields\n\n<table class="api-table api-table-fields">\n<thead>\n<tr>\n<th class="th-name">Name</th>\n<th class="th-type">Type</th>\n<th class="th-default">Default</th>\n<th class="th-desc">Description</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td class="table-cell-name">\n\n\n#### bar\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nQueryList<string>\n\n\n</code>\n\n\n</td>\n<td class="table-cell-default">\n\n\n\n\n</td>\n<td class="table-cell-comment">\n\n\nsome comment\n\nlong text\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
237
|
-
expect(page).toContain(pageContent);
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
it('render fields with decorators and comment', () => {
|
|
241
|
-
|
|
242
|
-
const page = componentPage(fieldsData.withCommentAndDecorator, packageInfo);
|
|
243
|
-
const pageContent = `## Fields\n\n<table class="api-table api-table-fields">\n<thead>\n<tr>\n<th class="th-name">Name</th>\n<th class="th-type">Type</th>\n<th class="th-default">Default</th>\n<th class="th-desc">Description</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td class="table-cell-name">\n\n\n#### bar\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nQueryList<string>\n\n\n</code>\n\n\n</td>\n<td class="table-cell-default">\n\n\n\n\n</td>\n<td class="table-cell-comment">\n\n\nsome comment\n\nlong text\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
244
|
-
expect(page).toContain(pageContent);
|
|
245
|
-
});
|
|
246
|
-
});
|
|
247
|
-
|
|
248
|
-
describe('for inputs', () => {
|
|
249
|
-
const inputsData = require('./inputs-def.json');
|
|
250
|
-
|
|
251
|
-
it('render inputs name and type', () => {
|
|
252
|
-
|
|
253
|
-
const page = componentPage(inputsData.withoutNameMapping, packageInfo);
|
|
254
|
-
const pageContent = `## Inputs\n\n<table class="api-table api-table-inputs">\n<thead>\n<tr>\n<th class="th-name">Name</th>\n<th class="th-type">Type</th>\n<th class="th-default">Default</th>\n<th class="th-desc">Description</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td class="table-cell-name">\n\n\n#### bar\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nboolean\n\n\n</code>\n\n\n</td>\n<td class="table-cell-default">\n\n\n\n\n</td>\n<td class="table-cell-comment">\n\n\n\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
255
|
-
expect(page).toContain(pageContent);
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
it('render fields with mapped name', () => {
|
|
259
|
-
|
|
260
|
-
const page = componentPage(inputsData.withNameMapping, packageInfo);
|
|
261
|
-
const pageContent = `## Inputs\n\n<table class="api-table api-table-inputs">\n<thead>\n<tr>\n<th class="th-name">Name</th>\n<th class="th-type">Type</th>\n<th class="th-default">Default</th>\n<th class="th-desc">Description</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td class="table-cell-name">\n\n\n#### foo\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nboolean\n\n\n</code>\n\n\n</td>\n<td class="table-cell-default">\n\n\n\n\n</td>\n<td class="table-cell-comment">\n\n\n\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
262
|
-
expect(page).toContain(pageContent);
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
describe('for events', () => {
|
|
267
|
-
const eventsData = require('./events-def.json');
|
|
268
|
-
|
|
269
|
-
it('render events names', () => {
|
|
270
|
-
|
|
271
|
-
const page = componentPage(eventsData.withoutNameMapping, packageInfo);
|
|
272
|
-
|
|
273
|
-
expect(page).toContain('Events');
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
it('render event with type', () => {
|
|
277
|
-
const page = componentPage(eventsData.withoutNameMapping, packageInfo);
|
|
278
|
-
const pageContent = `## Events\n\n<table class="api-table api-table-events">\n<thead>\n<tr>\n<th class="th-name">Name</th>\n<th class="th-type">Type</th>\n<th class="th-desc">Description</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td class="table-cell-name">\n\n\n#### valueChange\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nEventEmitter<any>\n\n\n</code>\n\n\n</td>\n<td class="table-cell-comment">\n\n\nFires each time the user selects a new value.\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
279
|
-
expect(page).toContain(pageContent);
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
it('render event binding name if available', () => {
|
|
283
|
-
const page = componentPage(eventsData.withNameMapping, packageInfo);
|
|
284
|
-
const pageContent = `## Events\n\n<table class="api-table api-table-events">\n<thead>\n<tr>\n<th class="th-name">Name</th>\n<th class="th-type">Type</th>\n<th class="th-desc">Description</th>\n</tr>\n</thead>\n<tbody class="api-table-body">\n<tr>\n<td class="table-cell-name">\n\n\n#### focus\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nEventEmitter<any>\n\n\n</code>\n\n\n</td>\n<td class="table-cell-comment">\n\n\nFires each time the user focuses the input element.\n\n\n</td>\n</tr>\n</tbody>\n</table>`;
|
|
285
|
-
expect(page).toContain(pageContent);
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
it('should not throw when no decorators are available', () => {
|
|
289
|
-
expect(() => componentPage(eventsData.withoutDecorators, packageInfo)).not.toThrow();
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
|
|
293
|
-
describe('index', () => {
|
|
294
|
-
const page = indexPage('foo/bar', {
|
|
295
|
-
'': {
|
|
296
|
-
'Function': [ {
|
|
297
|
-
'slug': 'root-f',
|
|
298
|
-
'name': 'root-f'
|
|
299
|
-
} ]
|
|
300
|
-
},
|
|
301
|
-
'a': {
|
|
302
|
-
'Function': [ {
|
|
303
|
-
'slug': 'a-f',
|
|
304
|
-
'name': 'a-f'
|
|
305
|
-
} ]
|
|
306
|
-
},
|
|
307
|
-
'b': {
|
|
308
|
-
'Function': [ {
|
|
309
|
-
'slug': 'b-f',
|
|
310
|
-
'name': 'b-f'
|
|
311
|
-
} ]
|
|
312
|
-
}
|
|
313
|
-
}, {
|
|
314
|
-
friendlyName: 'Foo',
|
|
315
|
-
framework: 'Bar'
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
const assertModule = name => {
|
|
319
|
-
expect(new RegExp(`<h2 class="api-module-name">\\s*${name}\\s*<\\/h2>`).test(page)).toBeTruthy();
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
it('renders default group', () => {
|
|
323
|
-
assertModule('foo/bar');
|
|
324
|
-
expect(page).toContain('root-f');
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
it('renders module groups', () => {
|
|
328
|
-
assertModule('a');
|
|
329
|
-
expect(page).toContain('a-f');
|
|
330
|
-
assertModule('b');
|
|
331
|
-
expect(page).toContain('b-f');
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
it('renders "friendlyName" as page heading', () => {
|
|
335
|
-
expect(/#\s{1}Foo\s{1}API/.test(page)).toBe(true);
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
});
|
|
339
|
-
|
package/test/class.json
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Shape",
|
|
3
|
-
"kindString": "Class",
|
|
4
|
-
"comment": {
|
|
5
|
-
"shortText": "Represents a drawing element that can be filled and stroked"
|
|
6
|
-
},
|
|
7
|
-
"typeParameter": [
|
|
8
|
-
{
|
|
9
|
-
"name": "T",
|
|
10
|
-
"kindString": "Type parameter"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"children": [
|
|
14
|
-
{
|
|
15
|
-
"name": "constructor",
|
|
16
|
-
"kindString": "Constructor",
|
|
17
|
-
"flags": {
|
|
18
|
-
"isExported": true
|
|
19
|
-
},
|
|
20
|
-
"comment": {},
|
|
21
|
-
"signatures": [
|
|
22
|
-
{
|
|
23
|
-
"name": "new Shape",
|
|
24
|
-
"kindString": "Constructor signature",
|
|
25
|
-
"flags": {},
|
|
26
|
-
"comment": {},
|
|
27
|
-
"parameters": [
|
|
28
|
-
{
|
|
29
|
-
"name": "options",
|
|
30
|
-
"kindString": "Parameter",
|
|
31
|
-
"flags": {
|
|
32
|
-
"isOptional": true
|
|
33
|
-
},
|
|
34
|
-
"comment": {
|
|
35
|
-
"shortText": "The initial values of all options.\n"
|
|
36
|
-
},
|
|
37
|
-
"type": {
|
|
38
|
-
"type": "instrinct",
|
|
39
|
-
"name": "any"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"type": {
|
|
44
|
-
"type": "reference",
|
|
45
|
-
"name": "Shape"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "get",
|
|
52
|
-
"kindString": "Method",
|
|
53
|
-
"flags": {
|
|
54
|
-
"isExported": true
|
|
55
|
-
},
|
|
56
|
-
"signatures": [
|
|
57
|
-
{
|
|
58
|
-
"name": "get",
|
|
59
|
-
"kindString": "Call signature",
|
|
60
|
-
"flags": {},
|
|
61
|
-
"comment": {
|
|
62
|
-
"shortText": "Gets the value of the specified option.",
|
|
63
|
-
"returns": "The current option value."
|
|
64
|
-
},
|
|
65
|
-
"type": {
|
|
66
|
-
"type": "instrinct",
|
|
67
|
-
"name": "any"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
package/test/components-def.json
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"directive": {
|
|
3
|
-
"name": "MyDirective",
|
|
4
|
-
"comment": {
|
|
5
|
-
"shortText": "Represents the Kendo UI Grid component for Angular.",
|
|
6
|
-
"tags": [
|
|
7
|
-
{
|
|
8
|
-
"tag": "example",
|
|
9
|
-
"text": "\n```ts-preview\n@@Component({\n selector: 'my-app',\n template: `\n <kendo-grid [data]=\"gridData\">\n </kendo-grid>\n `\n})\nclass AppComponent {\n private gridData: any[] = products;\n}\n\nconst products = [{\n \"ProductID\": 1,\n \"ProductName\": \"Chai\",\n \"UnitPrice\": 18.0000,\n \"Discontinued\": true\n }, {\n \"ProductID\": 2,\n \"ProductName\": \"Chang\",\n \"UnitPrice\": 19.0000,\n \"Discontinued\": false\n }\n];\n```\n"
|
|
10
|
-
}
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
"decorators": [
|
|
14
|
-
{
|
|
15
|
-
"name": "Directive",
|
|
16
|
-
"type": {
|
|
17
|
-
"type": "reference",
|
|
18
|
-
"name": "Directive"
|
|
19
|
-
},
|
|
20
|
-
"arguments": {
|
|
21
|
-
"obj": "{\r\n selector: '[myDirective]'\r\n}"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"exportedDirective": {
|
|
27
|
-
"name": "ExportedDirective",
|
|
28
|
-
"comment": {
|
|
29
|
-
"shortText": "Represents the Kendo UI Grid component for Angular.",
|
|
30
|
-
"tags": [
|
|
31
|
-
{
|
|
32
|
-
"tag": "example",
|
|
33
|
-
"text": "\n```ts-preview\n@@Component({\n selector: 'my-app',\n template: `\n <kendo-grid [data]=\"gridData\">\n </kendo-grid>\n `\n})\nclass AppComponent {\n private gridData: any[] = products;\n}\n\nconst products = [{\n \"ProductID\": 1,\n \"ProductName\": \"Chai\",\n \"UnitPrice\": 18.0000,\n \"Discontinued\": true\n }, {\n \"ProductID\": 2,\n \"ProductName\": \"Chang\",\n \"UnitPrice\": 19.0000,\n \"Discontinued\": false\n }\n];\n```\n"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"decorators": [
|
|
38
|
-
{
|
|
39
|
-
"name": "Directive",
|
|
40
|
-
"type": {
|
|
41
|
-
"type": "reference",
|
|
42
|
-
"name": "Directive"
|
|
43
|
-
},
|
|
44
|
-
"arguments": {
|
|
45
|
-
"obj": "{\n exportAs: 'exportedDirective',\r\n selector: '[exportedDirective]'\r\n}"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"component": {
|
|
51
|
-
"name": "MyComponent",
|
|
52
|
-
"comment": {
|
|
53
|
-
"shortText": "Represents the Kendo UI Grid component for Angular.",
|
|
54
|
-
"tags": [
|
|
55
|
-
{
|
|
56
|
-
"tag": "example",
|
|
57
|
-
"text": "\n```ts-preview\n@@Component({\n selector: 'my-app',\n template: `\n <kendo-grid [data]=\"gridData\">\n </kendo-grid>\n `\n})\nclass AppComponent {\n private gridData: any[] = products;\n}\n\nconst products = [{\n \"ProductID\": 1,\n \"ProductName\": \"Chai\",\n \"UnitPrice\": 18.0000,\n \"Discontinued\": true\n }, {\n \"ProductID\": 2,\n \"ProductName\": \"Chang\",\n \"UnitPrice\": 19.0000,\n \"Discontinued\": false\n }\n];\n```\n"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
"decorators": [
|
|
62
|
-
{
|
|
63
|
-
"name": "Component",
|
|
64
|
-
"type": {
|
|
65
|
-
"type": "reference",
|
|
66
|
-
"name": "Component"
|
|
67
|
-
},
|
|
68
|
-
"arguments": {
|
|
69
|
-
"obj": "{\r\n selector: 'my-component'\r\n}"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
"exportedComponent": {
|
|
75
|
-
"name": "ExportedComponent",
|
|
76
|
-
"comment": {
|
|
77
|
-
"shortText": "Represents the Kendo UI Grid component for Angular.",
|
|
78
|
-
"tags": [
|
|
79
|
-
{
|
|
80
|
-
"tag": "example",
|
|
81
|
-
"text": "\n```ts-preview\n@@Component({\n selector: 'my-app',\n template: `\n <kendo-grid [data]=\"gridData\">\n </kendo-grid>\n `\n})\nclass AppComponent {\n private gridData: any[] = products;\n}\n\nconst products = [{\n \"ProductID\": 1,\n \"ProductName\": \"Chai\",\n \"UnitPrice\": 18.0000,\n \"Discontinued\": true\n }, {\n \"ProductID\": 2,\n \"ProductName\": \"Chang\",\n \"UnitPrice\": 19.0000,\n \"Discontinued\": false\n }\n];\n```\n"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"decorators": [
|
|
86
|
-
{
|
|
87
|
-
"name": "Component",
|
|
88
|
-
"type": {
|
|
89
|
-
"type": "reference",
|
|
90
|
-
"name": "Component"
|
|
91
|
-
},
|
|
92
|
-
"arguments": {
|
|
93
|
-
"obj": "{\n exportAs: 'exportedComponent',\r\n selector: 'exported-component'\r\n}"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
}
|
package/test/events-def.json
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"withoutNameMapping": {
|
|
3
|
-
"name": "FocusableComponent",
|
|
4
|
-
"flags": {
|
|
5
|
-
"isExported": true
|
|
6
|
-
},
|
|
7
|
-
"comment": {
|
|
8
|
-
"shortText": "Short text",
|
|
9
|
-
"text": "Long text"
|
|
10
|
-
},
|
|
11
|
-
"decorators": [
|
|
12
|
-
{
|
|
13
|
-
"name": "Component",
|
|
14
|
-
"type": {
|
|
15
|
-
"type": "reference",
|
|
16
|
-
"name": "Component"
|
|
17
|
-
},
|
|
18
|
-
"arguments": {
|
|
19
|
-
"obj": "{\r\n selector: 'kendo-focusable'\r\n}"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"children": [
|
|
24
|
-
{
|
|
25
|
-
"name": "valueChange",
|
|
26
|
-
"kindString": "Property",
|
|
27
|
-
"flags": {
|
|
28
|
-
"isExported": true,
|
|
29
|
-
"isPublic": true
|
|
30
|
-
},
|
|
31
|
-
"comment": {
|
|
32
|
-
"shortText": "Fires each time the user selects a new value."
|
|
33
|
-
},
|
|
34
|
-
"decorators": [
|
|
35
|
-
{
|
|
36
|
-
"name": "Output",
|
|
37
|
-
"type": {
|
|
38
|
-
"type": "reference",
|
|
39
|
-
"name": "Output"
|
|
40
|
-
},
|
|
41
|
-
"arguments": {}
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"type": {
|
|
45
|
-
"type": "reference",
|
|
46
|
-
"name": "EventEmitter",
|
|
47
|
-
"typeArguments": [
|
|
48
|
-
{
|
|
49
|
-
"type": "instrinct",
|
|
50
|
-
"name": "any"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
"defaultValue": " new EventEmitter()"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"withNameMapping": {
|
|
59
|
-
"name": "FocusableComponent",
|
|
60
|
-
"flags": {
|
|
61
|
-
"isExported": true
|
|
62
|
-
},
|
|
63
|
-
"comment": {
|
|
64
|
-
"shortText": "Short text",
|
|
65
|
-
"text": "Long text"
|
|
66
|
-
},
|
|
67
|
-
"decorators": [
|
|
68
|
-
{
|
|
69
|
-
"name": "Component",
|
|
70
|
-
"type": {
|
|
71
|
-
"type": "reference",
|
|
72
|
-
"name": "Component"
|
|
73
|
-
},
|
|
74
|
-
"arguments": {
|
|
75
|
-
"obj": "{\r\n selector: 'kendo-focusable'\r\n}"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"children": [
|
|
80
|
-
{
|
|
81
|
-
"name": "onfocus",
|
|
82
|
-
"kindString": "Property",
|
|
83
|
-
"flags": {
|
|
84
|
-
"isExported": true,
|
|
85
|
-
"isPublic": true
|
|
86
|
-
},
|
|
87
|
-
"comment": {
|
|
88
|
-
"shortText": "Fires each time the user focuses the input element."
|
|
89
|
-
},
|
|
90
|
-
"decorators": [
|
|
91
|
-
{
|
|
92
|
-
"name": "Output",
|
|
93
|
-
"type": {
|
|
94
|
-
"type": "reference",
|
|
95
|
-
"name": "Output"
|
|
96
|
-
},
|
|
97
|
-
"arguments": {
|
|
98
|
-
"bindingPropertyName": "'focus'"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"type": {
|
|
103
|
-
"type": "reference",
|
|
104
|
-
"name": "EventEmitter",
|
|
105
|
-
"typeArguments": [
|
|
106
|
-
{
|
|
107
|
-
"type": "instrinct",
|
|
108
|
-
"name": "any"
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
"defaultValue": " new EventEmitter()"
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
"withoutDecorators": {
|
|
118
|
-
"name": "FocusableComponent",
|
|
119
|
-
"flags": {
|
|
120
|
-
"isExported": true
|
|
121
|
-
},
|
|
122
|
-
"comment": {
|
|
123
|
-
"shortText": "Short text",
|
|
124
|
-
"text": "Long text"
|
|
125
|
-
},
|
|
126
|
-
"decorators": [
|
|
127
|
-
{
|
|
128
|
-
"name": "Component",
|
|
129
|
-
"type": {
|
|
130
|
-
"type": "reference",
|
|
131
|
-
"name": "Component"
|
|
132
|
-
},
|
|
133
|
-
"arguments": {
|
|
134
|
-
"obj": "{\r\n selector: 'kendo-focusable'\r\n}"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"children": [
|
|
139
|
-
{
|
|
140
|
-
"name": "valueChange",
|
|
141
|
-
"kindString": "Property",
|
|
142
|
-
"flags": {
|
|
143
|
-
"isExported": true,
|
|
144
|
-
"isPublic": true
|
|
145
|
-
},
|
|
146
|
-
"comment": {
|
|
147
|
-
"shortText": "Fires each time the user selects a new value."
|
|
148
|
-
},
|
|
149
|
-
"type": {
|
|
150
|
-
"type": "reference",
|
|
151
|
-
"name": "EventEmitter",
|
|
152
|
-
"typeArguments": [
|
|
153
|
-
{
|
|
154
|
-
"type": "instrinct",
|
|
155
|
-
"name": "any"
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
"defaultValue": " new EventEmitter()"
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
}
|