@progress/kendo-typescript-tasks 11.1.1-dev.9 → 11.2.1-dev.1

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 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.1.1-dev.9+b5276e3",
5
+ "version": "11.2.1-dev.1+8e54770",
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-dev.11+b5276e3",
21
+ "@progress/kendo-common-tasks": "8.0.2-dev.1+8e54770",
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": "~0.22.5"
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": "b5276e35afc11bf1511c83c2b3bd4ff014d33f40"
51
+ "gitHead": "8e54770ff3a0deda652b7bc837fd1b0590cacea1"
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 id="toc-{{lowercase name}}">
72
+ <tr>
73
73
  <td class="table-cell-name">
74
74
 
75
75
 
76
- {{name}}
76
+ #### {{name}}
77
77
 
78
78
 
79
79
  </td>
@@ -12,7 +12,7 @@ const defaultValue = prop => {
12
12
  const { comment: { tags = [] } = {} } = prop;
13
13
  const { text = '' } = tags.find(t => t.tag === 'default') || {};
14
14
 
15
- return text && ` (default: ${text.trim()})`;
15
+ return text && text.trim();
16
16
  };
17
17
 
18
18
  const accessor = signature => (Array.isArray(signature) ? signature[0] : signature);
@@ -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 id="toc-{{lowercase name}}">
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 id="toc-{{lowercase name}}">
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>
@@ -1,8 +1,8 @@
1
- <tr id="toc-{{lowercase name}}">
1
+ <tr>
2
2
  <td class="table-cell-name">
3
3
 
4
4
 
5
- {{name}}
5
+ #### {{name}}
6
6
 
7
7
 
8
8
  </td>
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 id="toc-get">\n<th>\n\n\nget\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<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</tbody>\n</table>`;
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
 
@@ -124,7 +124,7 @@ describe('API generation', () => {
124
124
  "tags": [
125
125
  {
126
126
  "tag": "default",
127
- "text": "true\n"
127
+ "text": "42\n"
128
128
  }
129
129
  ]
130
130
  }
@@ -134,25 +134,7 @@ describe('API generation', () => {
134
134
 
135
135
  const page = classPage(meta);
136
136
 
137
- expect(page).toContain('(default: true)');
138
- });
139
-
140
- it('does not render default value', () => {
141
- const meta = {
142
- "name": "Component",
143
- "children": [
144
- {
145
- "name": "foo",
146
- "flags": {
147
- "isPublic": true
148
- }
149
- }
150
- ]
151
- };
152
-
153
- const page = classPage(meta);
154
-
155
- expect(page).not.toContain('(default: true)');
137
+ expect(page).toContain('42');
156
138
  });
157
139
  });
158
140
 
@@ -224,7 +206,7 @@ describe('API generation', () => {
224
206
  "tags": [
225
207
  {
226
208
  "tag": "default",
227
- "text": "true\n"
209
+ "text": "42\n"
228
210
  }
229
211
  ]
230
212
  }
@@ -234,25 +216,7 @@ describe('API generation', () => {
234
216
 
235
217
  const page = componentPage(component, packageInfo);
236
218
 
237
- expect(page).toContain('(default: true)');
238
- });
239
-
240
- it('does not render default value', () => {
241
- const component = {
242
- "name": "Component",
243
- "children": [
244
- {
245
- "name": "foo",
246
- "flags": {
247
- "isPublic": true
248
- }
249
- }
250
- ]
251
- };
252
-
253
- const page = componentPage(component, packageInfo);
254
-
255
- expect(page).not.toContain('(default: true)');
219
+ expect(page).toContain('42');
256
220
  });
257
221
  });
258
222
 
@@ -269,14 +233,14 @@ describe('API generation', () => {
269
233
  it('render fields without decorators, but with comment', () => {
270
234
 
271
235
  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 id="toc-bar">\n<td class="table-cell-name">\n\n\nbar\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nQueryList&lt;string&gt;\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>`;
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&lt;string&gt;\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
237
  expect(page).toContain(pageContent);
274
238
  });
275
239
 
276
240
  it('render fields with decorators and comment', () => {
277
241
 
278
242
  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 id="toc-bar">\n<td class="table-cell-name">\n\n\nbar\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nQueryList&lt;string&gt;\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>`;
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&lt;string&gt;\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
244
  expect(page).toContain(pageContent);
281
245
  });
282
246
  });
@@ -287,14 +251,14 @@ describe('API generation', () => {
287
251
  it('render inputs name and type', () => {
288
252
 
289
253
  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 id="toc-bar">\n<td class="table-cell-name">\n\n\nbar\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>`;
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>`;
291
255
  expect(page).toContain(pageContent);
292
256
  });
293
257
 
294
258
  it('render fields with mapped name', () => {
295
259
 
296
260
  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 id="toc-foo">\n<td class="table-cell-name">\n\n\nfoo\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>`;
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>`;
298
262
  expect(page).toContain(pageContent);
299
263
  });
300
264
  });
@@ -311,13 +275,13 @@ describe('API generation', () => {
311
275
 
312
276
  it('render event with type', () => {
313
277
  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 id="toc-valuechange">\n<td class="table-cell-name">\n\n\nvalueChange\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nEventEmitter&lt;any&gt;\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>`;
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&lt;any&gt;\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
279
  expect(page).toContain(pageContent);
316
280
  });
317
281
 
318
282
  it('render event binding name if available', () => {
319
283
  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 id="toc-focus">\n<td class="table-cell-name">\n\n\nfocus\n\n\n</td>\n<td type class="table-cell-type">\n\n\n<code>\n\n\nEventEmitter&lt;any&gt;\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>`;
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&lt;any&gt;\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
285
  expect(page).toContain(pageContent);
322
286
  });
323
287