@progress/kendo-typescript-api-tasks 1.0.1-dev.1531

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 (60) hide show
  1. package/README.md +11 -0
  2. package/index.js +70 -0
  3. package/jest.config.js +3 -0
  4. package/lib/class-page.hbs +27 -0
  5. package/lib/class-page.js +35 -0
  6. package/lib/code-block.hbs +7 -0
  7. package/lib/comment-tags.hbs +7 -0
  8. package/lib/comment.js +56 -0
  9. package/lib/component-page.hbs +101 -0
  10. package/lib/component-page.js +67 -0
  11. package/lib/constant-page.hbs +4 -0
  12. package/lib/constant-page.js +15 -0
  13. package/lib/constructor.hbs +21 -0
  14. package/lib/enum-page.hbs +11 -0
  15. package/lib/enum-page.js +25 -0
  16. package/lib/fn-page.hbs +18 -0
  17. package/lib/fn-page.js +24 -0
  18. package/lib/generator.js +264 -0
  19. package/lib/index-page.hbs +54 -0
  20. package/lib/index-page.js +15 -0
  21. package/lib/is-constructor.js +9 -0
  22. package/lib/is-event.js +7 -0
  23. package/lib/is-field.js +7 -0
  24. package/lib/is-input.js +7 -0
  25. package/lib/is-method.js +10 -0
  26. package/lib/is-public.js +8 -0
  27. package/lib/map-constructors.js +30 -0
  28. package/lib/map-methods.js +23 -0
  29. package/lib/map-props.js +63 -0
  30. package/lib/member-meta.hbs +7 -0
  31. package/lib/member-page.js +41 -0
  32. package/lib/methods.hbs +109 -0
  33. package/lib/property.hbs +38 -0
  34. package/lib/react/component-page.hbs +26 -0
  35. package/lib/react/component-page.js +30 -0
  36. package/lib/return-type.js +30 -0
  37. package/lib/slug.js +9 -0
  38. package/lib/template-utils.js +40 -0
  39. package/lib/type-utils.js +179 -0
  40. package/lib/union-page.hbs +14 -0
  41. package/lib/union-page.js +17 -0
  42. package/lib/utils.js +40 -0
  43. package/lib/warn.js +22 -0
  44. package/lib/warning-rules.js +14 -0
  45. package/package.json +43 -0
  46. package/test/api.js +339 -0
  47. package/test/class.json +73 -0
  48. package/test/components-def.json +98 -0
  49. package/test/events-def.json +163 -0
  50. package/test/fields-def.json +203 -0
  51. package/test/fn-def.json +80 -0
  52. package/test/fn.json +89 -0
  53. package/test/inputs-def.json +98 -0
  54. package/test/interface-comments.json +412 -0
  55. package/test/intersection.json +67 -0
  56. package/test/package.json +175 -0
  57. package/test/type-union-operators.json +42 -0
  58. package/test/type-union.json +70 -0
  59. package/test/warning.js +91 -0
  60. package/type-links.json +3 -0
@@ -0,0 +1,203 @@
1
+ {
2
+ "withoutComment": {
3
+ "name": "AddCommandDirective",
4
+ "flags": {
5
+ "isExported": true
6
+ },
7
+ "comment": {
8
+ "shortText": "Short text",
9
+ "text": "Long text"
10
+ },
11
+ "decorators": [
12
+ {
13
+ "name": "Directive",
14
+ "type": {
15
+ "type": "reference",
16
+ "name": "Directive"
17
+ },
18
+ "arguments": {
19
+ "obj": "{\r\n selector: '[kendoGridAddCommand]'\r\n}"
20
+ }
21
+ }
22
+ ],
23
+ "children": [
24
+ {
25
+ "name": "bar",
26
+ "kindString": "Property",
27
+ "flags": {
28
+ "isExported": true,
29
+ "isPublic": true
30
+ },
31
+ "type": {
32
+ "type": "reference",
33
+ "name": "QueryList",
34
+ "typeArguments": [
35
+ {
36
+ "type": "instrinct",
37
+ "name": "string"
38
+ }
39
+ ]
40
+ },
41
+ "defaultValue": " new QueryList<string>()"
42
+ }
43
+ ]
44
+
45
+
46
+ },
47
+ "withComment": {
48
+ "name": "AddCommandDirective",
49
+ "flags": {
50
+ "isExported": true
51
+ },
52
+ "comment": {
53
+ "shortText": "Short text",
54
+ "text": "Long text"
55
+ },
56
+ "decorators": [
57
+ {
58
+ "name": "Directive",
59
+ "type": {
60
+ "type": "reference",
61
+ "name": "Directive"
62
+ },
63
+ "arguments": {
64
+ "obj": "{\r\n selector: '[kendoGridAddCommand]'\r\n}"
65
+ }
66
+ }
67
+ ],
68
+ "children": [
69
+ {
70
+ "name": "bar",
71
+ "kindString": "Property",
72
+ "flags": {
73
+ "isExported": true,
74
+ "isPublic": true
75
+ },
76
+ "comment": {
77
+ "shortText": "some comment",
78
+ "text": "long text"
79
+ },
80
+ "type": {
81
+ "type": "reference",
82
+ "name": "QueryList",
83
+ "typeArguments": [
84
+ {
85
+ "type": "instrinct",
86
+ "name": "string"
87
+ }
88
+ ]
89
+ },
90
+ "defaultValue": " new QueryList<string>()"
91
+ }
92
+ ]
93
+
94
+ },
95
+ "withCommentAndDecorator": {
96
+ "name": "AddCommandDirective",
97
+ "flags": {
98
+ "isExported": true
99
+ },
100
+ "comment": {
101
+ "shortText": "Short text",
102
+ "text": "Long text"
103
+ },
104
+ "decorators": [
105
+ {
106
+ "name": "Directive",
107
+ "type": {
108
+ "type": "reference",
109
+ "name": "Directive"
110
+ },
111
+ "arguments": {
112
+ "obj": "{\r\n selector: '[kendoGridAddCommand]'\r\n}"
113
+ }
114
+ }
115
+ ],
116
+ "children": [
117
+ {
118
+ "name": "bar",
119
+ "kindString": "Property",
120
+ "flags": {
121
+ "isExported": true,
122
+ "isPublic": true
123
+ },
124
+ "comment": {
125
+ "shortText": "some comment",
126
+ "text": "long text"
127
+ },
128
+ "decorators": [
129
+ {
130
+ "name": "ContentChildren",
131
+ "type": {
132
+ "type": "reference",
133
+ "name": "ContentChildren"
134
+ },
135
+ "arguments": {
136
+ "selector": "'a'"
137
+ }
138
+ }
139
+ ],
140
+ "type": {
141
+ "type": "reference",
142
+ "name": "QueryList",
143
+ "typeArguments": [
144
+ {
145
+ "type": "instrinct",
146
+ "name": "string"
147
+ }
148
+ ]
149
+ },
150
+ "defaultValue": " new QueryList<string>()"
151
+ }
152
+ ]
153
+ },
154
+ "withNameMapping": {
155
+ "name": "AddCommandDirective",
156
+ "flags": {
157
+ "isExported": true
158
+ },
159
+ "comment": {
160
+ "shortText": "Short text",
161
+ "text": "Long text"
162
+ },
163
+ "decorators": [
164
+ {
165
+ "name": "Directive",
166
+ "type": {
167
+ "type": "reference",
168
+ "name": "Directive"
169
+ },
170
+ "arguments": {
171
+ "obj": "{\r\n selector: '[kendoGridAddCommand]'\r\n}"
172
+ }
173
+ }
174
+ ],
175
+ "children": [
176
+ {
177
+ "name": "bar",
178
+ "kindString": "Property",
179
+ "flags": {
180
+ "isExported": true,
181
+ "isPublic": true
182
+ },
183
+ "decorators": [
184
+ {
185
+ "name": "Input",
186
+ "type": {
187
+ "type": "reference",
188
+ "name": "Input"
189
+ },
190
+ "arguments": {
191
+ "bindingPropertyName": "'foo'"
192
+ }
193
+ }
194
+ ],
195
+ "type": {
196
+ "type": "instrinct",
197
+ "name": "boolean"
198
+ },
199
+ "defaultValue": "false"
200
+ }
201
+ ]
202
+ }
203
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "id": 1261,
3
+ "name": "fun",
4
+ "kind": 64,
5
+ "kindString": "Function",
6
+ "flags": {
7
+ "isExported": true
8
+ },
9
+ "signatures": [
10
+ {
11
+ "id": 1262,
12
+ "name": "fun",
13
+ "kind": 4096,
14
+ "kindString": "Call signature",
15
+ "flags": {},
16
+ "comment": {
17
+ "shortText": "SIG_DESC",
18
+ "text": "SIG_TEXT",
19
+ "returns": "SIG_RETURNS",
20
+ "tags": [
21
+ {
22
+ "tag": "example",
23
+ "text": "SIG_EXAMPLE"
24
+ }
25
+ ]
26
+ },
27
+ "typeParameter": [
28
+ {
29
+ "name": "T",
30
+ "kindString": "Type parameter"
31
+ }
32
+ ],
33
+ "parameters": [
34
+ {
35
+ "id": 1263,
36
+ "name": "param1",
37
+ "kind": 32768,
38
+ "kindString": "Parameter",
39
+ "flags": {},
40
+ "comment": {
41
+ "text": "PARAM1_DESC"
42
+ },
43
+ "type": {
44
+ "type": "reference",
45
+ "isArray": true,
46
+ "name": "PARAM1_TYPE",
47
+ "id": 795
48
+ }
49
+ },
50
+ {
51
+ "id": 1264,
52
+ "name": "param2",
53
+ "kind": 32768,
54
+ "kindString": "Parameter",
55
+ "flags": {},
56
+ "comment": {
57
+ "text": "PARAM2_DESC"
58
+ },
59
+ "type": {
60
+ "type": "reference",
61
+ "name": "PARAM2_TYPE",
62
+ "id": 254
63
+ }
64
+ }
65
+ ],
66
+ "type": {
67
+ "type": "instrinct",
68
+ "name": "SIG_RETURN"
69
+ }
70
+ }
71
+ ],
72
+ "sources": [
73
+ {
74
+ "fileName": "src/fun.d.ts",
75
+ "line": 16,
76
+ "character": 21
77
+ }
78
+ ]
79
+ }
80
+
package/test/fn.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "id": 181,
3
+ "name": "fun",
4
+ "kind": 64,
5
+ "kindString": "Function",
6
+ "flags": {
7
+ "isExported": true
8
+ },
9
+ "comment": {
10
+ "shortText": "ROOT_DESC",
11
+ "text": "ROOT_TEXT",
12
+ "returns": "ROOT_RETURN",
13
+ "tags": [
14
+ {
15
+ "tag": "example",
16
+ "text": "ROOT_EXAMPLE"
17
+ }
18
+ ]
19
+ },
20
+ "signatures": [
21
+ {
22
+ "id": 182,
23
+ "name": "fun",
24
+ "kind": 4096,
25
+ "kindString": "Call signature",
26
+ "flags": {},
27
+ "comment": {
28
+ "shortText": "SIG_DESC",
29
+ "text": "SIG_TEXT",
30
+ "returns": "SIG_RETURN"
31
+ },
32
+ "typeParameter": [
33
+ {
34
+ "id": 183,
35
+ "name": "T",
36
+ "kind": 131072,
37
+ "kindString": "Type parameter",
38
+ "flags": {}
39
+ }
40
+ ],
41
+ "parameters": [
42
+ {
43
+ "id": 184,
44
+ "name": "param1",
45
+ "kind": 32768,
46
+ "kindString": "Parameter",
47
+ "flags": {},
48
+ "comment": {
49
+ "shortText": "PARAM1_DESC"
50
+ },
51
+ "type": {
52
+ "type": "typeParameter",
53
+ "isArray": true,
54
+ "name": "T"
55
+ }
56
+ },
57
+ {
58
+ "id": 185,
59
+ "name": "param2",
60
+ "kind": 32768,
61
+ "kindString": "Parameter",
62
+ "flags": {},
63
+ "comment": {
64
+ "shortText": "PARAM2_DESC"
65
+ },
66
+ "type": {
67
+ "type": "reference",
68
+ "isArray": true,
69
+ "name": "RefType",
70
+ "id": 174
71
+ },
72
+ "defaultValue": " []"
73
+ }
74
+ ],
75
+ "type": {
76
+ "type": "reference",
77
+ "name": "SIG_RETURN",
78
+ "id": 110
79
+ }
80
+ }
81
+ ],
82
+ "sources": [
83
+ {
84
+ "fileName": "src/fun/fun.ts",
85
+ "line": 52,
86
+ "character": 24
87
+ }
88
+ ]
89
+ }
@@ -0,0 +1,98 @@
1
+ {
2
+ "withoutNameMapping": {
3
+ "name": "AddCommandDirective",
4
+ "flags": {
5
+ "isExported": true
6
+ },
7
+ "comment": {
8
+ "shortText": "Short text",
9
+ "text": "Long text"
10
+ },
11
+ "decorators": [
12
+ {
13
+ "name": "Directive",
14
+ "type": {
15
+ "type": "reference",
16
+ "name": "Directive"
17
+ },
18
+ "arguments": {
19
+ "obj": "{\r\n selector: '[kendoGridAddCommand]'\r\n}"
20
+ }
21
+ }
22
+ ],
23
+ "children": [
24
+ {
25
+ "name": "bar",
26
+ "kindString": "Property",
27
+ "flags": {
28
+ "isExported": true,
29
+ "isPublic": true
30
+ },
31
+ "decorators": [
32
+ {
33
+ "name": "Input",
34
+ "type": {
35
+ "type": "reference",
36
+ "name": "Input"
37
+ },
38
+ "arguments": { }
39
+ }
40
+ ],
41
+ "type": {
42
+ "type": "instrinct",
43
+ "name": "boolean"
44
+ },
45
+ "defaultValue": "false"
46
+ }
47
+ ]
48
+ },
49
+ "withNameMapping": {
50
+ "name": "AddCommandDirective",
51
+ "flags": {
52
+ "isExported": true
53
+ },
54
+ "comment": {
55
+ "shortText": "Short text",
56
+ "text": "Long text"
57
+ },
58
+ "decorators": [
59
+ {
60
+ "name": "Directive",
61
+ "type": {
62
+ "type": "reference",
63
+ "name": "Directive"
64
+ },
65
+ "arguments": {
66
+ "obj": "{\r\n selector: '[kendoGridAddCommand]'\r\n}"
67
+ }
68
+ }
69
+ ],
70
+ "children": [
71
+ {
72
+ "name": "bar",
73
+ "kindString": "Property",
74
+ "flags": {
75
+ "isExported": true,
76
+ "isPublic": true
77
+ },
78
+ "decorators": [
79
+ {
80
+ "name": "Input",
81
+ "type": {
82
+ "type": "reference",
83
+ "name": "Input"
84
+ },
85
+ "arguments": {
86
+ "bindingPropertyName": "'foo'"
87
+ }
88
+ }
89
+ ],
90
+ "type": {
91
+ "type": "instrinct",
92
+ "name": "boolean"
93
+ },
94
+ "defaultValue": "false"
95
+ }
96
+ ]
97
+ }
98
+ }