@progress/kendo-typescript-tasks 11.1.1-dev.9 → 11.2.0
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/CHANGELOG.md +20 -0
- package/package.json +4 -4
- package/src/api/component-page.hbs +2 -2
- package/src/api/methods.hbs +11 -3
- package/src/api/property.hbs +2 -2
- package/test/api.js +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [11.2.0](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-typescript-tasks@11.1.0...@progress/kendo-typescript-tasks@11.2.0) (2022-06-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* move return table inside param table ([#348](https://github.com/telerik/kendo-build-tasks/issues/348)) ([206f034](https://github.com/telerik/kendo-build-tasks/commit/206f034268b87abd606ca970d33a8fe905994586))
|
|
12
|
+
* pin typedoc version ([9ec980c](https://github.com/telerik/kendo-build-tasks/commit/9ec980c7763018ac5b5e0194f1df2266c507b04d))
|
|
13
|
+
* react api with ts version ~4.3 ([376d2dd](https://github.com/telerik/kendo-build-tasks/commit/376d2dd85fb94383b89f66578f43ffd9badb38eb))
|
|
14
|
+
* **typescript-tasks:** item names should be headers ([#353](https://github.com/telerik/kendo-build-tasks/issues/353)) ([a576c65](https://github.com/telerik/kendo-build-tasks/commit/a576c65f791053c5e9948d941ef61d9487024203))
|
|
15
|
+
* various handlebars templates issues ([#352](https://github.com/telerik/kendo-build-tasks/issues/352)) ([b5276e3](https://github.com/telerik/kendo-build-tasks/commit/b5276e35afc11bf1511c83c2b3bd4ff014d33f40))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* index and inner API section redesign ([#341](https://github.com/telerik/kendo-build-tasks/issues/341)) ([36da1a2](https://github.com/telerik/kendo-build-tasks/commit/36da1a23f5e89edeb92a6672e790c725baa3b86a))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [11.1.0](https://github.com/telerik/kendo-build-tasks/compare/@progress/kendo-typescript-tasks@11.0.0...@progress/kendo-typescript-tasks@11.1.0) (2022-04-29)
|
|
7
27
|
|
|
8
28
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@progress/kendo-typescript-tasks",
|
|
3
3
|
"description": "Kendo UI TypeScript package gulp tasks",
|
|
4
4
|
"main": "gulp-tasks.js",
|
|
5
|
-
"version": "11.
|
|
5
|
+
"version": "11.2.0",
|
|
6
6
|
"author": "Telerik",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"typescript": "^4.3.4"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@progress/kendo-common-tasks": "8.0.1
|
|
21
|
+
"@progress/kendo-common-tasks": "^8.0.1",
|
|
22
22
|
"@typescript-eslint/eslint-plugin": "4.28.2",
|
|
23
23
|
"@typescript-eslint/parser": "4.28.2",
|
|
24
24
|
"core-js": "^3.18.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"mkdirp": "^0.5.0",
|
|
36
36
|
"source-map-loader": "^0.1.5",
|
|
37
37
|
"ts-loader": "4.1.0",
|
|
38
|
-
"typedoc": "
|
|
38
|
+
"typedoc": "0.22.15"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"gulp-jasmine": "^2.4.2",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "9259fd9a41bb226bd5eea31711498c659da8a9de"
|
|
52
52
|
}
|
|
@@ -69,11 +69,11 @@ Accessible in templates as `#{{exportName}}="{{exportAs}}"`
|
|
|
69
69
|
</thead>
|
|
70
70
|
<tbody class="api-table-body">
|
|
71
71
|
{{#each events}}
|
|
72
|
-
<tr
|
|
72
|
+
<tr>
|
|
73
73
|
<td class="table-cell-name">
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
{{name}}
|
|
76
|
+
#### {{name}}
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
</td>
|
package/src/api/methods.hbs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
{{#each methods}}
|
|
6
6
|
<table class="api-table api-table-methods">
|
|
7
7
|
<thead class="api-table-methods-head">
|
|
8
|
-
<tr
|
|
8
|
+
<tr>
|
|
9
9
|
<th>
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
{{name}}
|
|
12
|
+
#### {{name}}
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
</th>
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
</td>
|
|
27
27
|
</tr>
|
|
28
28
|
{{#if params}}
|
|
29
|
+
<tr class="nested-table">
|
|
30
|
+
<td>
|
|
29
31
|
<table class="api-table api-table-parameters">
|
|
30
32
|
<thead class="api-table-parameters-head">
|
|
31
33
|
<tr>
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
</thead>
|
|
37
39
|
<tbody class="api-table-body">
|
|
38
40
|
{{#each params}}
|
|
39
|
-
<tr
|
|
41
|
+
<tr>
|
|
40
42
|
<td>
|
|
41
43
|
|
|
42
44
|
|
|
@@ -62,9 +64,13 @@
|
|
|
62
64
|
{{/each}}
|
|
63
65
|
</tbody>
|
|
64
66
|
</table>
|
|
67
|
+
</td>
|
|
68
|
+
</tr>
|
|
65
69
|
{{/if}}
|
|
66
70
|
|
|
67
71
|
{{#if returns}}
|
|
72
|
+
<tr class="nested-table">
|
|
73
|
+
<td>
|
|
68
74
|
<table class="api-table api-table-returns">
|
|
69
75
|
<thead class="api-table-returns-head">
|
|
70
76
|
<tr>
|
|
@@ -91,6 +97,8 @@
|
|
|
91
97
|
</tr>
|
|
92
98
|
</tbody>
|
|
93
99
|
</table>
|
|
100
|
+
</td>
|
|
101
|
+
</tr>
|
|
94
102
|
{{/if}}
|
|
95
103
|
</tbody>
|
|
96
104
|
</table>
|
package/src/api/property.hbs
CHANGED
package/test/api.js
CHANGED
|
@@ -107,7 +107,7 @@ describe('API generation', () => {
|
|
|
107
107
|
});
|
|
108
108
|
|
|
109
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
|
|
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
111
|
expect(page).toContain(pageContent);
|
|
112
112
|
});
|
|
113
113
|
|
|
@@ -269,14 +269,14 @@ describe('API generation', () => {
|
|
|
269
269
|
it('render fields without decorators, but with comment', () => {
|
|
270
270
|
|
|
271
271
|
const page = componentPage(fieldsData.withComment, packageInfo);
|
|
272
|
-
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
|
|
272
|
+
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>`;
|
|
273
273
|
expect(page).toContain(pageContent);
|
|
274
274
|
});
|
|
275
275
|
|
|
276
276
|
it('render fields with decorators and comment', () => {
|
|
277
277
|
|
|
278
278
|
const page = componentPage(fieldsData.withCommentAndDecorator, packageInfo);
|
|
279
|
-
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
|
|
279
|
+
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>`;
|
|
280
280
|
expect(page).toContain(pageContent);
|
|
281
281
|
});
|
|
282
282
|
});
|
|
@@ -287,14 +287,14 @@ describe('API generation', () => {
|
|
|
287
287
|
it('render inputs name and type', () => {
|
|
288
288
|
|
|
289
289
|
const page = componentPage(inputsData.withoutNameMapping, packageInfo);
|
|
290
|
-
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
|
|
290
|
+
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>`;
|
|
291
291
|
expect(page).toContain(pageContent);
|
|
292
292
|
});
|
|
293
293
|
|
|
294
294
|
it('render fields with mapped name', () => {
|
|
295
295
|
|
|
296
296
|
const page = componentPage(inputsData.withNameMapping, packageInfo);
|
|
297
|
-
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
|
|
297
|
+
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>`;
|
|
298
298
|
expect(page).toContain(pageContent);
|
|
299
299
|
});
|
|
300
300
|
});
|
|
@@ -311,13 +311,13 @@ describe('API generation', () => {
|
|
|
311
311
|
|
|
312
312
|
it('render event with type', () => {
|
|
313
313
|
const page = componentPage(eventsData.withoutNameMapping, packageInfo);
|
|
314
|
-
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
|
|
314
|
+
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>`;
|
|
315
315
|
expect(page).toContain(pageContent);
|
|
316
316
|
});
|
|
317
317
|
|
|
318
318
|
it('render event binding name if available', () => {
|
|
319
319
|
const page = componentPage(eventsData.withNameMapping, packageInfo);
|
|
320
|
-
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
|
|
320
|
+
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>`;
|
|
321
321
|
expect(page).toContain(pageContent);
|
|
322
322
|
});
|
|
323
323
|
|