@@ -1,73 +1,78 | |||
|
1 | 1 | plugins { |
|
2 | 2 | id "org.implab.gradle-typescript" version "1.3.3" |
|
3 | 3 | id "ivy-publish" |
|
4 | 4 | } |
|
5 | 5 | |
|
6 | 6 | typescript { |
|
7 | 7 | compilerOptions { |
|
8 | 8 | lib = ["es5", "dom", "scripthost", "es2015.promise", "es2015.symbol", "es2015.iterable"] |
|
9 | 9 | //listFiles = true |
|
10 | 10 | declaration = true |
|
11 | 11 | strict = true |
|
12 | 12 | types = [] |
|
13 | 13 | module = "amd" |
|
14 | 14 | it.target = "es5" |
|
15 | 15 | experimentalDecorators = true |
|
16 | 16 | jsx = "react" |
|
17 | 17 | jsxFactory = "createElement" |
|
18 | 18 | moduleResolution = "node" |
|
19 | 19 | // dojo-typings are sick |
|
20 | 20 | skipLibCheck = true |
|
21 | 21 | // traceResolution = true |
|
22 | 22 | // baseUrl = "./" |
|
23 | 23 | // paths = [ "*": [ "$projectDir/src/typings/*" ] ] |
|
24 | 24 | // baseUrl = "$projectDir/src/typings" |
|
25 | 25 | // typeRoots = ["$projectDir/src/typings"] |
|
26 | 26 | } |
|
27 | 27 | |
|
28 | 28 | tscCmd = "$projectDir/node_modules/.bin/tsc" |
|
29 | 29 | tsLintCmd = "$projectDir/node_modules/.bin/tslint" |
|
30 | 30 | esLintCmd = "$projectDir/node_modules/.bin/eslint" |
|
31 | 31 | } |
|
32 | 32 | |
|
33 | 33 | configureTsMain { |
|
34 | 34 | compilerOptions { |
|
35 | types = ["requirejs", "dojo-typings"] | |
|
35 | baseUrl = "$projectDir/src" | |
|
36 | paths = [ | |
|
37 | "dojo/*" : [ "typings/dojo/*" ], | |
|
38 | "dijit/*" : [ "typings/dijit/*" ] | |
|
39 | ] | |
|
40 | types = ["requirejs", "$projectDir/src/typings/dojo/index" /*, "dojo-typings"*/] | |
|
36 | 41 | } |
|
37 | 42 | } |
|
38 | 43 | |
|
39 | 44 | configureTsTest { |
|
40 | 45 | compilerOptions { |
|
41 | 46 | baseUrl = "." |
|
42 | 47 | paths = [ |
|
43 | 48 | "@implab/djx" : [ sources.main.output.typingsDir.get().toString() ], |
|
44 | 49 | "@implab/djx/*" : [ "${sources.main.output.typingsDir.get().toString()}/*" ] |
|
45 | 50 | ] |
|
46 | 51 | types = ["requirejs", sources.main.output.typingsDir.get().toString()] |
|
47 | 52 | } |
|
48 | 53 | } |
|
49 | 54 | |
|
50 | 55 | npmPackMeta { |
|
51 | 56 | meta { |
|
52 | 57 | name = "@$npmScope/$project.name" |
|
53 | 58 | } |
|
54 | 59 | } |
|
55 | 60 | |
|
56 | 61 | task npmPackTypings(type: Copy) { |
|
57 | 62 | dependsOn typings |
|
58 | 63 | |
|
59 | 64 | npmPackContents.dependsOn it |
|
60 | 65 | |
|
61 | 66 | from typescript.typingsDir |
|
62 | 67 | into npm.packageDir |
|
63 | 68 | } |
|
64 | 69 | |
|
65 | 70 | task printVersion { |
|
66 | 71 | doLast { |
|
67 | 72 | println "packageName: ${npmPackMeta.metadata.get().name}"; |
|
68 | 73 | println "version: $version"; |
|
69 | 74 | println "target: $typescript.compilerOptions.target"; |
|
70 | 75 | println "module: $typescript.compilerOptions.module"; |
|
71 | 76 | println "symbols: $symbols"; |
|
72 | 77 | } |
|
73 | 78 | } No newline at end of file |
@@ -1,1208 +1,1208 | |||
|
1 | 1 | { |
|
2 | 2 | "name": "@implab/djx", |
|
3 | 3 | "version": "0.0.1-dev", |
|
4 | 4 | "lockfileVersion": 1, |
|
5 | 5 | "requires": true, |
|
6 | 6 | "dependencies": { |
|
7 | 7 | "@babel/code-frame": { |
|
8 | 8 | "version": "7.8.3", |
|
9 | 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", |
|
10 | 10 | "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", |
|
11 | 11 | "dev": true, |
|
12 | 12 | "requires": { |
|
13 | 13 | "@babel/highlight": "^7.8.3" |
|
14 | 14 | } |
|
15 | 15 | }, |
|
16 | 16 | "@babel/highlight": { |
|
17 | 17 | "version": "7.8.3", |
|
18 | 18 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", |
|
19 | 19 | "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", |
|
20 | 20 | "dev": true, |
|
21 | 21 | "requires": { |
|
22 | 22 | "chalk": "^2.0.0", |
|
23 | 23 | "esutils": "^2.0.2", |
|
24 | 24 | "js-tokens": "^4.0.0" |
|
25 | 25 | } |
|
26 | 26 | }, |
|
27 | 27 | "@babel/runtime": { |
|
28 | 28 | "version": "7.8.3", |
|
29 | 29 | "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.8.3.tgz", |
|
30 | 30 | "integrity": "sha512-fVHx1rzEmwB130VTkLnxR+HmxcTjGzH12LYQcFFoBwakMd3aOMD4OsRN7tGG/UOYE2ektgFrS8uACAoRk1CY0w==", |
|
31 | 31 | "dev": true, |
|
32 | 32 | "requires": { |
|
33 | 33 | "regenerator-runtime": "^0.13.2" |
|
34 | 34 | } |
|
35 | 35 | }, |
|
36 | 36 | "@implab/core-amd": { |
|
37 | 37 | "version": "1.3.2", |
|
38 | 38 | "resolved": "https://registry.npmjs.org/@implab/core-amd/-/core-amd-1.3.2.tgz", |
|
39 | 39 | "integrity": "sha512-OPx02obqz60FiOzDqEFuPfag/0ugl1tuQouI+52Op0k+fcmuBK4QACJy7o3fzOYvejdjF1DG4aRXuCm6+vgMYQ==", |
|
40 | 40 | "dev": true |
|
41 | 41 | }, |
|
42 | 42 | "@types/chai": { |
|
43 | 43 | "version": "4.1.3", |
|
44 | 44 | "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.1.3.tgz", |
|
45 | 45 | "integrity": "sha512-f5dXGzOJycyzSMdaXVhiBhauL4dYydXwVpavfQ1mVCaGjR56a9QfklXObUxlIY9bGTmCPHEEZ04I16BZ/8w5ww==", |
|
46 | 46 | "dev": true |
|
47 | 47 | }, |
|
48 | 48 | "@types/requirejs": { |
|
49 | 49 | "version": "2.1.31", |
|
50 | 50 | "resolved": "https://registry.npmjs.org/@types/requirejs/-/requirejs-2.1.31.tgz", |
|
51 | 51 | "integrity": "sha512-b2soeyuU76rMbcRJ4e0hEl0tbMhFwZeTC0VZnfuWlfGlk6BwWNsev6kFu/twKABPX29wkX84wU2o+cEJoXsiTw==", |
|
52 | 52 | "dev": true |
|
53 | 53 | }, |
|
54 | 54 | "@types/yaml": { |
|
55 | 55 | "version": "1.2.0", |
|
56 | 56 | "resolved": "https://registry.npmjs.org/@types/yaml/-/yaml-1.2.0.tgz", |
|
57 | 57 | "integrity": "sha512-GW8b9qM+ebgW3/zjzPm0I1NxMvLaz/YKT9Ph6tTb+Fkeyzd9yLTvQ6ciQ2MorTRmb/qXmfjMerRpG4LviixaqQ==", |
|
58 | 58 | "dev": true |
|
59 | 59 | }, |
|
60 | 60 | "acorn": { |
|
61 | 61 | "version": "7.1.0", |
|
62 | 62 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz", |
|
63 | 63 | "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==", |
|
64 | 64 | "dev": true |
|
65 | 65 | }, |
|
66 | 66 | "acorn-jsx": { |
|
67 | 67 | "version": "5.1.0", |
|
68 | 68 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz", |
|
69 | 69 | "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", |
|
70 | 70 | "dev": true |
|
71 | 71 | }, |
|
72 | 72 | "ajv": { |
|
73 | 73 | "version": "6.11.0", |
|
74 | 74 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz", |
|
75 | 75 | "integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==", |
|
76 | 76 | "dev": true, |
|
77 | 77 | "requires": { |
|
78 | 78 | "fast-deep-equal": "^3.1.1", |
|
79 | 79 | "fast-json-stable-stringify": "^2.0.0", |
|
80 | 80 | "json-schema-traverse": "^0.4.1", |
|
81 | 81 | "uri-js": "^4.2.2" |
|
82 | 82 | } |
|
83 | 83 | }, |
|
84 | 84 | "ansi-escapes": { |
|
85 | 85 | "version": "4.3.0", |
|
86 | 86 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.0.tgz", |
|
87 | 87 | "integrity": "sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==", |
|
88 | 88 | "dev": true, |
|
89 | 89 | "requires": { |
|
90 | 90 | "type-fest": "^0.8.1" |
|
91 | 91 | } |
|
92 | 92 | }, |
|
93 | 93 | "ansi-regex": { |
|
94 | 94 | "version": "5.0.0", |
|
95 | 95 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", |
|
96 | 96 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", |
|
97 | 97 | "dev": true |
|
98 | 98 | }, |
|
99 | 99 | "ansi-styles": { |
|
100 | 100 | "version": "3.2.1", |
|
101 | 101 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", |
|
102 | 102 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", |
|
103 | 103 | "dev": true, |
|
104 | 104 | "requires": { |
|
105 | 105 | "color-convert": "^1.9.0" |
|
106 | 106 | } |
|
107 | 107 | }, |
|
108 | 108 | "argparse": { |
|
109 | 109 | "version": "1.0.10", |
|
110 | 110 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", |
|
111 | 111 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", |
|
112 | 112 | "dev": true, |
|
113 | 113 | "requires": { |
|
114 | 114 | "sprintf-js": "~1.0.2" |
|
115 | 115 | } |
|
116 | 116 | }, |
|
117 | 117 | "assertion-error": { |
|
118 | 118 | "version": "1.1.0", |
|
119 | 119 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", |
|
120 | 120 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", |
|
121 | 121 | "dev": true |
|
122 | 122 | }, |
|
123 | 123 | "astral-regex": { |
|
124 | 124 | "version": "1.0.0", |
|
125 | 125 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", |
|
126 | 126 | "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", |
|
127 | 127 | "dev": true |
|
128 | 128 | }, |
|
129 | 129 | "balanced-match": { |
|
130 | 130 | "version": "1.0.0", |
|
131 | 131 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", |
|
132 | 132 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", |
|
133 | 133 | "dev": true |
|
134 | 134 | }, |
|
135 | 135 | "brace-expansion": { |
|
136 | 136 | "version": "1.1.11", |
|
137 | 137 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", |
|
138 | 138 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", |
|
139 | 139 | "dev": true, |
|
140 | 140 | "requires": { |
|
141 | 141 | "balanced-match": "^1.0.0", |
|
142 | 142 | "concat-map": "0.0.1" |
|
143 | 143 | } |
|
144 | 144 | }, |
|
145 | 145 | "builtin-modules": { |
|
146 | 146 | "version": "1.1.1", |
|
147 | 147 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", |
|
148 | 148 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", |
|
149 | 149 | "dev": true |
|
150 | 150 | }, |
|
151 | 151 | "callsites": { |
|
152 | 152 | "version": "3.1.0", |
|
153 | 153 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", |
|
154 | 154 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", |
|
155 | 155 | "dev": true |
|
156 | 156 | }, |
|
157 | 157 | "chai": { |
|
158 | 158 | "version": "4.2.0", |
|
159 | 159 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", |
|
160 | 160 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", |
|
161 | 161 | "dev": true, |
|
162 | 162 | "requires": { |
|
163 | 163 | "assertion-error": "^1.1.0", |
|
164 | 164 | "check-error": "^1.0.2", |
|
165 | 165 | "deep-eql": "^3.0.1", |
|
166 | 166 | "get-func-name": "^2.0.0", |
|
167 | 167 | "pathval": "^1.1.0", |
|
168 | 168 | "type-detect": "^4.0.5" |
|
169 | 169 | } |
|
170 | 170 | }, |
|
171 | 171 | "chalk": { |
|
172 | 172 | "version": "2.4.2", |
|
173 | 173 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", |
|
174 | 174 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", |
|
175 | 175 | "dev": true, |
|
176 | 176 | "requires": { |
|
177 | 177 | "ansi-styles": "^3.2.1", |
|
178 | 178 | "escape-string-regexp": "^1.0.5", |
|
179 | 179 | "supports-color": "^5.3.0" |
|
180 | 180 | } |
|
181 | 181 | }, |
|
182 | 182 | "chardet": { |
|
183 | 183 | "version": "0.7.0", |
|
184 | 184 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", |
|
185 | 185 | "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", |
|
186 | 186 | "dev": true |
|
187 | 187 | }, |
|
188 | 188 | "check-error": { |
|
189 | 189 | "version": "1.0.2", |
|
190 | 190 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", |
|
191 | 191 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", |
|
192 | 192 | "dev": true |
|
193 | 193 | }, |
|
194 | 194 | "cli-cursor": { |
|
195 | 195 | "version": "3.1.0", |
|
196 | 196 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", |
|
197 | 197 | "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", |
|
198 | 198 | "dev": true, |
|
199 | 199 | "requires": { |
|
200 | 200 | "restore-cursor": "^3.1.0" |
|
201 | 201 | } |
|
202 | 202 | }, |
|
203 | 203 | "cli-width": { |
|
204 | 204 | "version": "2.2.0", |
|
205 | 205 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", |
|
206 | 206 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", |
|
207 | 207 | "dev": true |
|
208 | 208 | }, |
|
209 | 209 | "color-convert": { |
|
210 | 210 | "version": "1.9.3", |
|
211 | 211 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", |
|
212 | 212 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", |
|
213 | 213 | "dev": true, |
|
214 | 214 | "requires": { |
|
215 | 215 | "color-name": "1.1.3" |
|
216 | 216 | } |
|
217 | 217 | }, |
|
218 | 218 | "color-name": { |
|
219 | 219 | "version": "1.1.3", |
|
220 | 220 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", |
|
221 | 221 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", |
|
222 | 222 | "dev": true |
|
223 | 223 | }, |
|
224 | 224 | "commander": { |
|
225 | 225 | "version": "2.20.3", |
|
226 | 226 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", |
|
227 | 227 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", |
|
228 | 228 | "dev": true |
|
229 | 229 | }, |
|
230 | 230 | "concat-map": { |
|
231 | 231 | "version": "0.0.1", |
|
232 | 232 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", |
|
233 | 233 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", |
|
234 | 234 | "dev": true |
|
235 | 235 | }, |
|
236 | 236 | "cross-spawn": { |
|
237 | 237 | "version": "6.0.5", |
|
238 | 238 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", |
|
239 | 239 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", |
|
240 | 240 | "dev": true, |
|
241 | 241 | "requires": { |
|
242 | 242 | "nice-try": "^1.0.4", |
|
243 | 243 | "path-key": "^2.0.1", |
|
244 | 244 | "semver": "^5.5.0", |
|
245 | 245 | "shebang-command": "^1.2.0", |
|
246 | 246 | "which": "^1.2.9" |
|
247 | 247 | }, |
|
248 | 248 | "dependencies": { |
|
249 | 249 | "semver": { |
|
250 | 250 | "version": "5.7.1", |
|
251 | 251 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", |
|
252 | 252 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", |
|
253 | 253 | "dev": true |
|
254 | 254 | } |
|
255 | 255 | } |
|
256 | 256 | }, |
|
257 | 257 | "debug": { |
|
258 | 258 | "version": "4.1.1", |
|
259 | 259 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", |
|
260 | 260 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", |
|
261 | 261 | "dev": true, |
|
262 | 262 | "requires": { |
|
263 | 263 | "ms": "^2.1.1" |
|
264 | 264 | } |
|
265 | 265 | }, |
|
266 | 266 | "deep-eql": { |
|
267 | 267 | "version": "3.0.1", |
|
268 | 268 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", |
|
269 | 269 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", |
|
270 | 270 | "dev": true, |
|
271 | 271 | "requires": { |
|
272 | 272 | "type-detect": "^4.0.0" |
|
273 | 273 | } |
|
274 | 274 | }, |
|
275 | 275 | "deep-is": { |
|
276 | 276 | "version": "0.1.3", |
|
277 | 277 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", |
|
278 | 278 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", |
|
279 | 279 | "dev": true |
|
280 | 280 | }, |
|
281 | 281 | "diff": { |
|
282 | 282 | "version": "4.0.2", |
|
283 | 283 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", |
|
284 | 284 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", |
|
285 | 285 | "dev": true |
|
286 | 286 | }, |
|
287 | 287 | "doctrine": { |
|
288 | 288 | "version": "3.0.0", |
|
289 | 289 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", |
|
290 | 290 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", |
|
291 | 291 | "dev": true, |
|
292 | 292 | "requires": { |
|
293 | 293 | "esutils": "^2.0.2" |
|
294 | 294 | } |
|
295 | 295 | }, |
|
296 | 296 | "dojo": { |
|
297 | 297 | "version": "1.16.0", |
|
298 | 298 | "resolved": "https://registry.npmjs.org/dojo/-/dojo-1.16.0.tgz", |
|
299 | 299 | "integrity": "sha512-DUiXyoLK6vMF5BPr/qiMLTxDMfiM9qlzN1jxfDsVfuvB/CwhYpNxA/M4mbqKN8PCVGLmccXBJbfmFJPP5+zmzw==", |
|
300 | 300 | "dev": true |
|
301 | 301 | }, |
|
302 | 302 | "dojo-typings": { |
|
303 | 303 | "version": "1.11.9", |
|
304 | 304 | "resolved": "https://registry.npmjs.org/dojo-typings/-/dojo-typings-1.11.9.tgz", |
|
305 | 305 | "integrity": "sha512-mh8w+Mau2Y1QfTEszEAdO7j6ycNhYxF/Ing6nAk1eUg6NxjeT0viVHjICMd9sU3U463vM2G+KfBBK5grk3/Mlw==", |
|
306 | 306 | "dev": true, |
|
307 | 307 | "requires": { |
|
308 | 308 | "@types/chai": "^4.0.4" |
|
309 | 309 | } |
|
310 | 310 | }, |
|
311 | 311 | "emoji-regex": { |
|
312 | 312 | "version": "8.0.0", |
|
313 | 313 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", |
|
314 | 314 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", |
|
315 | 315 | "dev": true |
|
316 | 316 | }, |
|
317 | 317 | "escape-string-regexp": { |
|
318 | 318 | "version": "1.0.5", |
|
319 | 319 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", |
|
320 | 320 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", |
|
321 | 321 | "dev": true |
|
322 | 322 | }, |
|
323 | 323 | "eslint": { |
|
324 | 324 | "version": "6.8.0", |
|
325 | 325 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", |
|
326 | 326 | "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", |
|
327 | 327 | "dev": true, |
|
328 | 328 | "requires": { |
|
329 | 329 | "@babel/code-frame": "^7.0.0", |
|
330 | 330 | "ajv": "^6.10.0", |
|
331 | 331 | "chalk": "^2.1.0", |
|
332 | 332 | "cross-spawn": "^6.0.5", |
|
333 | 333 | "debug": "^4.0.1", |
|
334 | 334 | "doctrine": "^3.0.0", |
|
335 | 335 | "eslint-scope": "^5.0.0", |
|
336 | 336 | "eslint-utils": "^1.4.3", |
|
337 | 337 | "eslint-visitor-keys": "^1.1.0", |
|
338 | 338 | "espree": "^6.1.2", |
|
339 | 339 | "esquery": "^1.0.1", |
|
340 | 340 | "esutils": "^2.0.2", |
|
341 | 341 | "file-entry-cache": "^5.0.1", |
|
342 | 342 | "functional-red-black-tree": "^1.0.1", |
|
343 | 343 | "glob-parent": "^5.0.0", |
|
344 | 344 | "globals": "^12.1.0", |
|
345 | 345 | "ignore": "^4.0.6", |
|
346 | 346 | "import-fresh": "^3.0.0", |
|
347 | 347 | "imurmurhash": "^0.1.4", |
|
348 | 348 | "inquirer": "^7.0.0", |
|
349 | 349 | "is-glob": "^4.0.0", |
|
350 | 350 | "js-yaml": "^3.13.1", |
|
351 | 351 | "json-stable-stringify-without-jsonify": "^1.0.1", |
|
352 | 352 | "levn": "^0.3.0", |
|
353 | 353 | "lodash": "^4.17.14", |
|
354 | 354 | "minimatch": "^3.0.4", |
|
355 | 355 | "mkdirp": "^0.5.1", |
|
356 | 356 | "natural-compare": "^1.4.0", |
|
357 | 357 | "optionator": "^0.8.3", |
|
358 | 358 | "progress": "^2.0.0", |
|
359 | 359 | "regexpp": "^2.0.1", |
|
360 | 360 | "semver": "^6.1.2", |
|
361 | 361 | "strip-ansi": "^5.2.0", |
|
362 | 362 | "strip-json-comments": "^3.0.1", |
|
363 | 363 | "table": "^5.2.3", |
|
364 | 364 | "text-table": "^0.2.0", |
|
365 | 365 | "v8-compile-cache": "^2.0.3" |
|
366 | 366 | } |
|
367 | 367 | }, |
|
368 | 368 | "eslint-scope": { |
|
369 | 369 | "version": "5.0.0", |
|
370 | 370 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.0.0.tgz", |
|
371 | 371 | "integrity": "sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw==", |
|
372 | 372 | "dev": true, |
|
373 | 373 | "requires": { |
|
374 | 374 | "esrecurse": "^4.1.0", |
|
375 | 375 | "estraverse": "^4.1.1" |
|
376 | 376 | } |
|
377 | 377 | }, |
|
378 | 378 | "eslint-utils": { |
|
379 | 379 | "version": "1.4.3", |
|
380 | 380 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", |
|
381 | 381 | "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", |
|
382 | 382 | "dev": true, |
|
383 | 383 | "requires": { |
|
384 | 384 | "eslint-visitor-keys": "^1.1.0" |
|
385 | 385 | } |
|
386 | 386 | }, |
|
387 | 387 | "eslint-visitor-keys": { |
|
388 | 388 | "version": "1.1.0", |
|
389 | 389 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz", |
|
390 | 390 | "integrity": "sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==", |
|
391 | 391 | "dev": true |
|
392 | 392 | }, |
|
393 | 393 | "espree": { |
|
394 | 394 | "version": "6.1.2", |
|
395 | 395 | "resolved": "https://registry.npmjs.org/espree/-/espree-6.1.2.tgz", |
|
396 | 396 | "integrity": "sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==", |
|
397 | 397 | "dev": true, |
|
398 | 398 | "requires": { |
|
399 | 399 | "acorn": "^7.1.0", |
|
400 | 400 | "acorn-jsx": "^5.1.0", |
|
401 | 401 | "eslint-visitor-keys": "^1.1.0" |
|
402 | 402 | } |
|
403 | 403 | }, |
|
404 | 404 | "esprima": { |
|
405 | 405 | "version": "4.0.1", |
|
406 | 406 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", |
|
407 | 407 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", |
|
408 | 408 | "dev": true |
|
409 | 409 | }, |
|
410 | 410 | "esquery": { |
|
411 | 411 | "version": "1.0.1", |
|
412 | 412 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", |
|
413 | 413 | "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", |
|
414 | 414 | "dev": true, |
|
415 | 415 | "requires": { |
|
416 | 416 | "estraverse": "^4.0.0" |
|
417 | 417 | } |
|
418 | 418 | }, |
|
419 | 419 | "esrecurse": { |
|
420 | 420 | "version": "4.2.1", |
|
421 | 421 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", |
|
422 | 422 | "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", |
|
423 | 423 | "dev": true, |
|
424 | 424 | "requires": { |
|
425 | 425 | "estraverse": "^4.1.0" |
|
426 | 426 | } |
|
427 | 427 | }, |
|
428 | 428 | "estraverse": { |
|
429 | 429 | "version": "4.3.0", |
|
430 | 430 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", |
|
431 | 431 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", |
|
432 | 432 | "dev": true |
|
433 | 433 | }, |
|
434 | 434 | "esutils": { |
|
435 | 435 | "version": "2.0.3", |
|
436 | 436 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", |
|
437 | 437 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", |
|
438 | 438 | "dev": true |
|
439 | 439 | }, |
|
440 | 440 | "external-editor": { |
|
441 | 441 | "version": "3.1.0", |
|
442 | 442 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", |
|
443 | 443 | "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", |
|
444 | 444 | "dev": true, |
|
445 | 445 | "requires": { |
|
446 | 446 | "chardet": "^0.7.0", |
|
447 | 447 | "iconv-lite": "^0.4.24", |
|
448 | 448 | "tmp": "^0.0.33" |
|
449 | 449 | } |
|
450 | 450 | }, |
|
451 | 451 | "fast-deep-equal": { |
|
452 | 452 | "version": "3.1.1", |
|
453 | 453 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", |
|
454 | 454 | "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", |
|
455 | 455 | "dev": true |
|
456 | 456 | }, |
|
457 | 457 | "fast-json-stable-stringify": { |
|
458 | 458 | "version": "2.1.0", |
|
459 | 459 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", |
|
460 | 460 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", |
|
461 | 461 | "dev": true |
|
462 | 462 | }, |
|
463 | 463 | "fast-levenshtein": { |
|
464 | 464 | "version": "2.0.6", |
|
465 | 465 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", |
|
466 | 466 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", |
|
467 | 467 | "dev": true |
|
468 | 468 | }, |
|
469 | 469 | "figures": { |
|
470 | 470 | "version": "3.1.0", |
|
471 | 471 | "resolved": "https://registry.npmjs.org/figures/-/figures-3.1.0.tgz", |
|
472 | 472 | "integrity": "sha512-ravh8VRXqHuMvZt/d8GblBeqDMkdJMBdv/2KntFH+ra5MXkO7nxNKpzQ3n6QD/2da1kH0aWmNISdvhM7gl2gVg==", |
|
473 | 473 | "dev": true, |
|
474 | 474 | "requires": { |
|
475 | 475 | "escape-string-regexp": "^1.0.5" |
|
476 | 476 | } |
|
477 | 477 | }, |
|
478 | 478 | "file-entry-cache": { |
|
479 | 479 | "version": "5.0.1", |
|
480 | 480 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", |
|
481 | 481 | "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", |
|
482 | 482 | "dev": true, |
|
483 | 483 | "requires": { |
|
484 | 484 | "flat-cache": "^2.0.1" |
|
485 | 485 | } |
|
486 | 486 | }, |
|
487 | 487 | "flat-cache": { |
|
488 | 488 | "version": "2.0.1", |
|
489 | 489 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", |
|
490 | 490 | "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", |
|
491 | 491 | "dev": true, |
|
492 | 492 | "requires": { |
|
493 | 493 | "flatted": "^2.0.0", |
|
494 | 494 | "rimraf": "2.6.3", |
|
495 | 495 | "write": "1.0.3" |
|
496 | 496 | } |
|
497 | 497 | }, |
|
498 | 498 | "flatted": { |
|
499 | 499 | "version": "2.0.1", |
|
500 | 500 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", |
|
501 | 501 | "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", |
|
502 | 502 | "dev": true |
|
503 | 503 | }, |
|
504 | 504 | "fs.realpath": { |
|
505 | 505 | "version": "1.0.0", |
|
506 | 506 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", |
|
507 | 507 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", |
|
508 | 508 | "dev": true |
|
509 | 509 | }, |
|
510 | 510 | "functional-red-black-tree": { |
|
511 | 511 | "version": "1.0.1", |
|
512 | 512 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", |
|
513 | 513 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", |
|
514 | 514 | "dev": true |
|
515 | 515 | }, |
|
516 | 516 | "get-func-name": { |
|
517 | 517 | "version": "2.0.0", |
|
518 | 518 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", |
|
519 | 519 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", |
|
520 | 520 | "dev": true |
|
521 | 521 | }, |
|
522 | 522 | "glob": { |
|
523 | 523 | "version": "7.1.6", |
|
524 | 524 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", |
|
525 | 525 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", |
|
526 | 526 | "dev": true, |
|
527 | 527 | "requires": { |
|
528 | 528 | "fs.realpath": "^1.0.0", |
|
529 | 529 | "inflight": "^1.0.4", |
|
530 | 530 | "inherits": "2", |
|
531 | 531 | "minimatch": "^3.0.4", |
|
532 | 532 | "once": "^1.3.0", |
|
533 | 533 | "path-is-absolute": "^1.0.0" |
|
534 | 534 | } |
|
535 | 535 | }, |
|
536 | 536 | "glob-parent": { |
|
537 | 537 | "version": "5.1.0", |
|
538 | 538 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.0.tgz", |
|
539 | 539 | "integrity": "sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==", |
|
540 | 540 | "dev": true, |
|
541 | 541 | "requires": { |
|
542 | 542 | "is-glob": "^4.0.1" |
|
543 | 543 | } |
|
544 | 544 | }, |
|
545 | 545 | "globals": { |
|
546 | 546 | "version": "12.3.0", |
|
547 | 547 | "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", |
|
548 | 548 | "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", |
|
549 | 549 | "dev": true, |
|
550 | 550 | "requires": { |
|
551 | 551 | "type-fest": "^0.8.1" |
|
552 | 552 | } |
|
553 | 553 | }, |
|
554 | 554 | "has-flag": { |
|
555 | 555 | "version": "3.0.0", |
|
556 | 556 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", |
|
557 | 557 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", |
|
558 | 558 | "dev": true |
|
559 | 559 | }, |
|
560 | 560 | "iconv-lite": { |
|
561 | 561 | "version": "0.4.24", |
|
562 | 562 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", |
|
563 | 563 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", |
|
564 | 564 | "dev": true, |
|
565 | 565 | "requires": { |
|
566 | 566 | "safer-buffer": ">= 2.1.2 < 3" |
|
567 | 567 | } |
|
568 | 568 | }, |
|
569 | 569 | "ignore": { |
|
570 | 570 | "version": "4.0.6", |
|
571 | 571 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", |
|
572 | 572 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", |
|
573 | 573 | "dev": true |
|
574 | 574 | }, |
|
575 | 575 | "import-fresh": { |
|
576 | 576 | "version": "3.2.1", |
|
577 | 577 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", |
|
578 | 578 | "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", |
|
579 | 579 | "dev": true, |
|
580 | 580 | "requires": { |
|
581 | 581 | "parent-module": "^1.0.0", |
|
582 | 582 | "resolve-from": "^4.0.0" |
|
583 | 583 | } |
|
584 | 584 | }, |
|
585 | 585 | "imurmurhash": { |
|
586 | 586 | "version": "0.1.4", |
|
587 | 587 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", |
|
588 | 588 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", |
|
589 | 589 | "dev": true |
|
590 | 590 | }, |
|
591 | 591 | "inflight": { |
|
592 | 592 | "version": "1.0.6", |
|
593 | 593 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", |
|
594 | 594 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", |
|
595 | 595 | "dev": true, |
|
596 | 596 | "requires": { |
|
597 | 597 | "once": "^1.3.0", |
|
598 | 598 | "wrappy": "1" |
|
599 | 599 | } |
|
600 | 600 | }, |
|
601 | 601 | "inherits": { |
|
602 | 602 | "version": "2.0.4", |
|
603 | 603 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", |
|
604 | 604 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", |
|
605 | 605 | "dev": true |
|
606 | 606 | }, |
|
607 | 607 | "inquirer": { |
|
608 | 608 | "version": "7.0.3", |
|
609 | 609 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.3.tgz", |
|
610 | 610 | "integrity": "sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==", |
|
611 | 611 | "dev": true, |
|
612 | 612 | "requires": { |
|
613 | 613 | "ansi-escapes": "^4.2.1", |
|
614 | 614 | "chalk": "^2.4.2", |
|
615 | 615 | "cli-cursor": "^3.1.0", |
|
616 | 616 | "cli-width": "^2.0.0", |
|
617 | 617 | "external-editor": "^3.0.3", |
|
618 | 618 | "figures": "^3.0.0", |
|
619 | 619 | "lodash": "^4.17.15", |
|
620 | 620 | "mute-stream": "0.0.8", |
|
621 | 621 | "run-async": "^2.2.0", |
|
622 | 622 | "rxjs": "^6.5.3", |
|
623 | 623 | "string-width": "^4.1.0", |
|
624 | 624 | "strip-ansi": "^5.1.0", |
|
625 | 625 | "through": "^2.3.6" |
|
626 | 626 | } |
|
627 | 627 | }, |
|
628 | 628 | "is-extglob": { |
|
629 | 629 | "version": "2.1.1", |
|
630 | 630 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", |
|
631 | 631 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", |
|
632 | 632 | "dev": true |
|
633 | 633 | }, |
|
634 | 634 | "is-fullwidth-code-point": { |
|
635 | 635 | "version": "3.0.0", |
|
636 | 636 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", |
|
637 | 637 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", |
|
638 | 638 | "dev": true |
|
639 | 639 | }, |
|
640 | 640 | "is-glob": { |
|
641 | 641 | "version": "4.0.1", |
|
642 | 642 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", |
|
643 | 643 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", |
|
644 | 644 | "dev": true, |
|
645 | 645 | "requires": { |
|
646 | 646 | "is-extglob": "^2.1.1" |
|
647 | 647 | } |
|
648 | 648 | }, |
|
649 | 649 | "is-promise": { |
|
650 | 650 | "version": "2.1.0", |
|
651 | 651 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", |
|
652 | 652 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", |
|
653 | 653 | "dev": true |
|
654 | 654 | }, |
|
655 | 655 | "isexe": { |
|
656 | 656 | "version": "2.0.0", |
|
657 | 657 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", |
|
658 | 658 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", |
|
659 | 659 | "dev": true |
|
660 | 660 | }, |
|
661 | 661 | "js-tokens": { |
|
662 | 662 | "version": "4.0.0", |
|
663 | 663 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", |
|
664 | 664 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", |
|
665 | 665 | "dev": true |
|
666 | 666 | }, |
|
667 | 667 | "js-yaml": { |
|
668 | 668 | "version": "3.13.1", |
|
669 | 669 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", |
|
670 | 670 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", |
|
671 | 671 | "dev": true, |
|
672 | 672 | "requires": { |
|
673 | 673 | "argparse": "^1.0.7", |
|
674 | 674 | "esprima": "^4.0.0" |
|
675 | 675 | } |
|
676 | 676 | }, |
|
677 | 677 | "json-schema-traverse": { |
|
678 | 678 | "version": "0.4.1", |
|
679 | 679 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", |
|
680 | 680 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", |
|
681 | 681 | "dev": true |
|
682 | 682 | }, |
|
683 | 683 | "json-stable-stringify-without-jsonify": { |
|
684 | 684 | "version": "1.0.1", |
|
685 | 685 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", |
|
686 | 686 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", |
|
687 | 687 | "dev": true |
|
688 | 688 | }, |
|
689 | 689 | "levn": { |
|
690 | 690 | "version": "0.3.0", |
|
691 | 691 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", |
|
692 | 692 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", |
|
693 | 693 | "dev": true, |
|
694 | 694 | "requires": { |
|
695 | 695 | "prelude-ls": "~1.1.2", |
|
696 | 696 | "type-check": "~0.3.2" |
|
697 | 697 | } |
|
698 | 698 | }, |
|
699 | 699 | "lodash": { |
|
700 | 700 | "version": "4.17.15", |
|
701 | 701 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", |
|
702 | 702 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", |
|
703 | 703 | "dev": true |
|
704 | 704 | }, |
|
705 | 705 | "mimic-fn": { |
|
706 | 706 | "version": "2.1.0", |
|
707 | 707 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", |
|
708 | 708 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", |
|
709 | 709 | "dev": true |
|
710 | 710 | }, |
|
711 | 711 | "minimatch": { |
|
712 | 712 | "version": "3.0.4", |
|
713 | 713 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", |
|
714 | 714 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", |
|
715 | 715 | "dev": true, |
|
716 | 716 | "requires": { |
|
717 | 717 | "brace-expansion": "^1.1.7" |
|
718 | 718 | } |
|
719 | 719 | }, |
|
720 | 720 | "minimist": { |
|
721 | 721 | "version": "0.0.8", |
|
722 | 722 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", |
|
723 | 723 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", |
|
724 | 724 | "dev": true |
|
725 | 725 | }, |
|
726 | 726 | "mkdirp": { |
|
727 | 727 | "version": "0.5.1", |
|
728 | 728 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", |
|
729 | 729 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", |
|
730 | 730 | "dev": true, |
|
731 | 731 | "requires": { |
|
732 | 732 | "minimist": "0.0.8" |
|
733 | 733 | } |
|
734 | 734 | }, |
|
735 | 735 | "ms": { |
|
736 | 736 | "version": "2.1.2", |
|
737 | 737 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", |
|
738 | 738 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", |
|
739 | 739 | "dev": true |
|
740 | 740 | }, |
|
741 | 741 | "mute-stream": { |
|
742 | 742 | "version": "0.0.8", |
|
743 | 743 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", |
|
744 | 744 | "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", |
|
745 | 745 | "dev": true |
|
746 | 746 | }, |
|
747 | 747 | "natural-compare": { |
|
748 | 748 | "version": "1.4.0", |
|
749 | 749 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", |
|
750 | 750 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", |
|
751 | 751 | "dev": true |
|
752 | 752 | }, |
|
753 | 753 | "nice-try": { |
|
754 | 754 | "version": "1.0.5", |
|
755 | 755 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", |
|
756 | 756 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", |
|
757 | 757 | "dev": true |
|
758 | 758 | }, |
|
759 | 759 | "once": { |
|
760 | 760 | "version": "1.4.0", |
|
761 | 761 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", |
|
762 | 762 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", |
|
763 | 763 | "dev": true, |
|
764 | 764 | "requires": { |
|
765 | 765 | "wrappy": "1" |
|
766 | 766 | } |
|
767 | 767 | }, |
|
768 | 768 | "onetime": { |
|
769 | 769 | "version": "5.1.0", |
|
770 | 770 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", |
|
771 | 771 | "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", |
|
772 | 772 | "dev": true, |
|
773 | 773 | "requires": { |
|
774 | 774 | "mimic-fn": "^2.1.0" |
|
775 | 775 | } |
|
776 | 776 | }, |
|
777 | 777 | "optionator": { |
|
778 | 778 | "version": "0.8.3", |
|
779 | 779 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", |
|
780 | 780 | "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", |
|
781 | 781 | "dev": true, |
|
782 | 782 | "requires": { |
|
783 | 783 | "deep-is": "~0.1.3", |
|
784 | 784 | "fast-levenshtein": "~2.0.6", |
|
785 | 785 | "levn": "~0.3.0", |
|
786 | 786 | "prelude-ls": "~1.1.2", |
|
787 | 787 | "type-check": "~0.3.2", |
|
788 | 788 | "word-wrap": "~1.2.3" |
|
789 | 789 | } |
|
790 | 790 | }, |
|
791 | 791 | "os-tmpdir": { |
|
792 | 792 | "version": "1.0.2", |
|
793 | 793 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", |
|
794 | 794 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", |
|
795 | 795 | "dev": true |
|
796 | 796 | }, |
|
797 | 797 | "parent-module": { |
|
798 | 798 | "version": "1.0.1", |
|
799 | 799 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", |
|
800 | 800 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", |
|
801 | 801 | "dev": true, |
|
802 | 802 | "requires": { |
|
803 | 803 | "callsites": "^3.0.0" |
|
804 | 804 | } |
|
805 | 805 | }, |
|
806 | 806 | "path-is-absolute": { |
|
807 | 807 | "version": "1.0.1", |
|
808 | 808 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", |
|
809 | 809 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", |
|
810 | 810 | "dev": true |
|
811 | 811 | }, |
|
812 | 812 | "path-key": { |
|
813 | 813 | "version": "2.0.1", |
|
814 | 814 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", |
|
815 | 815 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", |
|
816 | 816 | "dev": true |
|
817 | 817 | }, |
|
818 | 818 | "path-parse": { |
|
819 | 819 | "version": "1.0.6", |
|
820 | 820 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", |
|
821 | 821 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", |
|
822 | 822 | "dev": true |
|
823 | 823 | }, |
|
824 | 824 | "pathval": { |
|
825 | 825 | "version": "1.1.0", |
|
826 | 826 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", |
|
827 | 827 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", |
|
828 | 828 | "dev": true |
|
829 | 829 | }, |
|
830 | 830 | "prelude-ls": { |
|
831 | 831 | "version": "1.1.2", |
|
832 | 832 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", |
|
833 | 833 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", |
|
834 | 834 | "dev": true |
|
835 | 835 | }, |
|
836 | 836 | "progress": { |
|
837 | 837 | "version": "2.0.3", |
|
838 | 838 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", |
|
839 | 839 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", |
|
840 | 840 | "dev": true |
|
841 | 841 | }, |
|
842 | 842 | "punycode": { |
|
843 | 843 | "version": "2.1.1", |
|
844 | 844 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", |
|
845 | 845 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", |
|
846 | 846 | "dev": true |
|
847 | 847 | }, |
|
848 | 848 | "regenerator-runtime": { |
|
849 | 849 | "version": "0.13.3", |
|
850 | 850 | "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", |
|
851 | 851 | "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==", |
|
852 | 852 | "dev": true |
|
853 | 853 | }, |
|
854 | 854 | "regexpp": { |
|
855 | 855 | "version": "2.0.1", |
|
856 | 856 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", |
|
857 | 857 | "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", |
|
858 | 858 | "dev": true |
|
859 | 859 | }, |
|
860 | 860 | "resolve": { |
|
861 | 861 | "version": "1.15.0", |
|
862 | 862 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.15.0.tgz", |
|
863 | 863 | "integrity": "sha512-+hTmAldEGE80U2wJJDC1lebb5jWqvTYAfm3YZ1ckk1gBr0MnCqUKlwK1e+anaFljIl+F5tR5IoZcm4ZDA1zMQw==", |
|
864 | 864 | "dev": true, |
|
865 | 865 | "requires": { |
|
866 | 866 | "path-parse": "^1.0.6" |
|
867 | 867 | } |
|
868 | 868 | }, |
|
869 | 869 | "resolve-from": { |
|
870 | 870 | "version": "4.0.0", |
|
871 | 871 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", |
|
872 | 872 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", |
|
873 | 873 | "dev": true |
|
874 | 874 | }, |
|
875 | 875 | "restore-cursor": { |
|
876 | 876 | "version": "3.1.0", |
|
877 | 877 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", |
|
878 | 878 | "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", |
|
879 | 879 | "dev": true, |
|
880 | 880 | "requires": { |
|
881 | 881 | "onetime": "^5.1.0", |
|
882 | 882 | "signal-exit": "^3.0.2" |
|
883 | 883 | } |
|
884 | 884 | }, |
|
885 | 885 | "rimraf": { |
|
886 | 886 | "version": "2.6.3", |
|
887 | 887 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", |
|
888 | 888 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", |
|
889 | 889 | "dev": true, |
|
890 | 890 | "requires": { |
|
891 | 891 | "glob": "^7.1.3" |
|
892 | 892 | } |
|
893 | 893 | }, |
|
894 | 894 | "run-async": { |
|
895 | 895 | "version": "2.3.0", |
|
896 | 896 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", |
|
897 | 897 | "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", |
|
898 | 898 | "dev": true, |
|
899 | 899 | "requires": { |
|
900 | 900 | "is-promise": "^2.1.0" |
|
901 | 901 | } |
|
902 | 902 | }, |
|
903 | 903 | "rxjs": { |
|
904 | 904 | "version": "6.5.4", |
|
905 | 905 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", |
|
906 | 906 | "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", |
|
907 | 907 | "dev": true, |
|
908 | 908 | "requires": { |
|
909 | 909 | "tslib": "^1.9.0" |
|
910 | 910 | } |
|
911 | 911 | }, |
|
912 | 912 | "safer-buffer": { |
|
913 | 913 | "version": "2.1.2", |
|
914 | 914 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", |
|
915 | 915 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", |
|
916 | 916 | "dev": true |
|
917 | 917 | }, |
|
918 | 918 | "semver": { |
|
919 | 919 | "version": "6.3.0", |
|
920 | 920 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", |
|
921 | 921 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", |
|
922 | 922 | "dev": true |
|
923 | 923 | }, |
|
924 | 924 | "shebang-command": { |
|
925 | 925 | "version": "1.2.0", |
|
926 | 926 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", |
|
927 | 927 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", |
|
928 | 928 | "dev": true, |
|
929 | 929 | "requires": { |
|
930 | 930 | "shebang-regex": "^1.0.0" |
|
931 | 931 | } |
|
932 | 932 | }, |
|
933 | 933 | "shebang-regex": { |
|
934 | 934 | "version": "1.0.0", |
|
935 | 935 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", |
|
936 | 936 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", |
|
937 | 937 | "dev": true |
|
938 | 938 | }, |
|
939 | 939 | "signal-exit": { |
|
940 | 940 | "version": "3.0.2", |
|
941 | 941 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", |
|
942 | 942 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", |
|
943 | 943 | "dev": true |
|
944 | 944 | }, |
|
945 | 945 | "slice-ansi": { |
|
946 | 946 | "version": "2.1.0", |
|
947 | 947 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", |
|
948 | 948 | "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", |
|
949 | 949 | "dev": true, |
|
950 | 950 | "requires": { |
|
951 | 951 | "ansi-styles": "^3.2.0", |
|
952 | 952 | "astral-regex": "^1.0.0", |
|
953 | 953 | "is-fullwidth-code-point": "^2.0.0" |
|
954 | 954 | }, |
|
955 | 955 | "dependencies": { |
|
956 | 956 | "is-fullwidth-code-point": { |
|
957 | 957 | "version": "2.0.0", |
|
958 | 958 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", |
|
959 | 959 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", |
|
960 | 960 | "dev": true |
|
961 | 961 | } |
|
962 | 962 | } |
|
963 | 963 | }, |
|
964 | 964 | "sprintf-js": { |
|
965 | 965 | "version": "1.0.3", |
|
966 | 966 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", |
|
967 | 967 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", |
|
968 | 968 | "dev": true |
|
969 | 969 | }, |
|
970 | 970 | "string-width": { |
|
971 | 971 | "version": "4.2.0", |
|
972 | 972 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", |
|
973 | 973 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", |
|
974 | 974 | "dev": true, |
|
975 | 975 | "requires": { |
|
976 | 976 | "emoji-regex": "^8.0.0", |
|
977 | 977 | "is-fullwidth-code-point": "^3.0.0", |
|
978 | 978 | "strip-ansi": "^6.0.0" |
|
979 | 979 | }, |
|
980 | 980 | "dependencies": { |
|
981 | 981 | "strip-ansi": { |
|
982 | 982 | "version": "6.0.0", |
|
983 | 983 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", |
|
984 | 984 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", |
|
985 | 985 | "dev": true, |
|
986 | 986 | "requires": { |
|
987 | 987 | "ansi-regex": "^5.0.0" |
|
988 | 988 | } |
|
989 | 989 | } |
|
990 | 990 | } |
|
991 | 991 | }, |
|
992 | 992 | "strip-ansi": { |
|
993 | 993 | "version": "5.2.0", |
|
994 | 994 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", |
|
995 | 995 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", |
|
996 | 996 | "dev": true, |
|
997 | 997 | "requires": { |
|
998 | 998 | "ansi-regex": "^4.1.0" |
|
999 | 999 | }, |
|
1000 | 1000 | "dependencies": { |
|
1001 | 1001 | "ansi-regex": { |
|
1002 | 1002 | "version": "4.1.0", |
|
1003 | 1003 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", |
|
1004 | 1004 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", |
|
1005 | 1005 | "dev": true |
|
1006 | 1006 | } |
|
1007 | 1007 | } |
|
1008 | 1008 | }, |
|
1009 | 1009 | "strip-json-comments": { |
|
1010 | 1010 | "version": "3.0.1", |
|
1011 | 1011 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", |
|
1012 | 1012 | "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", |
|
1013 | 1013 | "dev": true |
|
1014 | 1014 | }, |
|
1015 | 1015 | "supports-color": { |
|
1016 | 1016 | "version": "5.5.0", |
|
1017 | 1017 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", |
|
1018 | 1018 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", |
|
1019 | 1019 | "dev": true, |
|
1020 | 1020 | "requires": { |
|
1021 | 1021 | "has-flag": "^3.0.0" |
|
1022 | 1022 | } |
|
1023 | 1023 | }, |
|
1024 | 1024 | "table": { |
|
1025 | 1025 | "version": "5.4.6", |
|
1026 | 1026 | "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", |
|
1027 | 1027 | "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", |
|
1028 | 1028 | "dev": true, |
|
1029 | 1029 | "requires": { |
|
1030 | 1030 | "ajv": "^6.10.2", |
|
1031 | 1031 | "lodash": "^4.17.14", |
|
1032 | 1032 | "slice-ansi": "^2.1.0", |
|
1033 | 1033 | "string-width": "^3.0.0" |
|
1034 | 1034 | }, |
|
1035 | 1035 | "dependencies": { |
|
1036 | 1036 | "emoji-regex": { |
|
1037 | 1037 | "version": "7.0.3", |
|
1038 | 1038 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", |
|
1039 | 1039 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", |
|
1040 | 1040 | "dev": true |
|
1041 | 1041 | }, |
|
1042 | 1042 | "is-fullwidth-code-point": { |
|
1043 | 1043 | "version": "2.0.0", |
|
1044 | 1044 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", |
|
1045 | 1045 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", |
|
1046 | 1046 | "dev": true |
|
1047 | 1047 | }, |
|
1048 | 1048 | "string-width": { |
|
1049 | 1049 | "version": "3.1.0", |
|
1050 | 1050 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", |
|
1051 | 1051 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", |
|
1052 | 1052 | "dev": true, |
|
1053 | 1053 | "requires": { |
|
1054 | 1054 | "emoji-regex": "^7.0.1", |
|
1055 | 1055 | "is-fullwidth-code-point": "^2.0.0", |
|
1056 | 1056 | "strip-ansi": "^5.1.0" |
|
1057 | 1057 | } |
|
1058 | 1058 | } |
|
1059 | 1059 | } |
|
1060 | 1060 | }, |
|
1061 | 1061 | "text-table": { |
|
1062 | 1062 | "version": "0.2.0", |
|
1063 | 1063 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", |
|
1064 | 1064 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", |
|
1065 | 1065 | "dev": true |
|
1066 | 1066 | }, |
|
1067 | 1067 | "through": { |
|
1068 | 1068 | "version": "2.3.8", |
|
1069 | 1069 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", |
|
1070 | 1070 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", |
|
1071 | 1071 | "dev": true |
|
1072 | 1072 | }, |
|
1073 | 1073 | "tmp": { |
|
1074 | 1074 | "version": "0.0.33", |
|
1075 | 1075 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", |
|
1076 | 1076 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", |
|
1077 | 1077 | "dev": true, |
|
1078 | 1078 | "requires": { |
|
1079 | 1079 | "os-tmpdir": "~1.0.2" |
|
1080 | 1080 | } |
|
1081 | 1081 | }, |
|
1082 | 1082 | "tslib": { |
|
1083 | 1083 | "version": "1.10.0", |
|
1084 | 1084 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", |
|
1085 | 1085 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", |
|
1086 | 1086 | "dev": true |
|
1087 | 1087 | }, |
|
1088 | 1088 | "tslint": { |
|
1089 | 1089 | "version": "6.0.0", |
|
1090 | 1090 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.0.0.tgz", |
|
1091 | 1091 | "integrity": "sha512-9nLya8GBtlFmmFMW7oXXwoXS1NkrccqTqAtwXzdPV9e2mqSEvCki6iHL/Fbzi5oqbugshzgGPk7KBb2qNP1DSA==", |
|
1092 | 1092 | "dev": true, |
|
1093 | 1093 | "requires": { |
|
1094 | 1094 | "@babel/code-frame": "^7.0.0", |
|
1095 | 1095 | "builtin-modules": "^1.1.1", |
|
1096 | 1096 | "chalk": "^2.3.0", |
|
1097 | 1097 | "commander": "^2.12.1", |
|
1098 | 1098 | "diff": "^4.0.1", |
|
1099 | 1099 | "glob": "^7.1.1", |
|
1100 | 1100 | "js-yaml": "^3.13.1", |
|
1101 | 1101 | "minimatch": "^3.0.4", |
|
1102 | 1102 | "mkdirp": "^0.5.1", |
|
1103 | 1103 | "resolve": "^1.3.2", |
|
1104 | 1104 | "semver": "^5.3.0", |
|
1105 | 1105 | "tslib": "^1.10.0", |
|
1106 | 1106 | "tsutils": "^2.29.0" |
|
1107 | 1107 | }, |
|
1108 | 1108 | "dependencies": { |
|
1109 | 1109 | "semver": { |
|
1110 | 1110 | "version": "5.7.1", |
|
1111 | 1111 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", |
|
1112 | 1112 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", |
|
1113 | 1113 | "dev": true |
|
1114 | 1114 | } |
|
1115 | 1115 | } |
|
1116 | 1116 | }, |
|
1117 | 1117 | "tsutils": { |
|
1118 | 1118 | "version": "2.29.0", |
|
1119 | 1119 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", |
|
1120 | 1120 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", |
|
1121 | 1121 | "dev": true, |
|
1122 | 1122 | "requires": { |
|
1123 | 1123 | "tslib": "^1.8.1" |
|
1124 | 1124 | } |
|
1125 | 1125 | }, |
|
1126 | 1126 | "type-check": { |
|
1127 | 1127 | "version": "0.3.2", |
|
1128 | 1128 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", |
|
1129 | 1129 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", |
|
1130 | 1130 | "dev": true, |
|
1131 | 1131 | "requires": { |
|
1132 | 1132 | "prelude-ls": "~1.1.2" |
|
1133 | 1133 | } |
|
1134 | 1134 | }, |
|
1135 | 1135 | "type-detect": { |
|
1136 | 1136 | "version": "4.0.8", |
|
1137 | 1137 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", |
|
1138 | 1138 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", |
|
1139 | 1139 | "dev": true |
|
1140 | 1140 | }, |
|
1141 | 1141 | "type-fest": { |
|
1142 | 1142 | "version": "0.8.1", |
|
1143 | 1143 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", |
|
1144 | 1144 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", |
|
1145 | 1145 | "dev": true |
|
1146 | 1146 | }, |
|
1147 | 1147 | "typescript": { |
|
1148 |
"version": "3. |
|
|
1149 |
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3. |
|
|
1150 | "integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==", | |
|
1148 | "version": "3.8.3", | |
|
1149 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", | |
|
1150 | "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==", | |
|
1151 | 1151 | "dev": true |
|
1152 | 1152 | }, |
|
1153 | 1153 | "uri-js": { |
|
1154 | 1154 | "version": "4.2.2", |
|
1155 | 1155 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", |
|
1156 | 1156 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", |
|
1157 | 1157 | "dev": true, |
|
1158 | 1158 | "requires": { |
|
1159 | 1159 | "punycode": "^2.1.0" |
|
1160 | 1160 | } |
|
1161 | 1161 | }, |
|
1162 | 1162 | "v8-compile-cache": { |
|
1163 | 1163 | "version": "2.1.0", |
|
1164 | 1164 | "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz", |
|
1165 | 1165 | "integrity": "sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g==", |
|
1166 | 1166 | "dev": true |
|
1167 | 1167 | }, |
|
1168 | 1168 | "which": { |
|
1169 | 1169 | "version": "1.3.1", |
|
1170 | 1170 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", |
|
1171 | 1171 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", |
|
1172 | 1172 | "dev": true, |
|
1173 | 1173 | "requires": { |
|
1174 | 1174 | "isexe": "^2.0.0" |
|
1175 | 1175 | } |
|
1176 | 1176 | }, |
|
1177 | 1177 | "word-wrap": { |
|
1178 | 1178 | "version": "1.2.3", |
|
1179 | 1179 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", |
|
1180 | 1180 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", |
|
1181 | 1181 | "dev": true |
|
1182 | 1182 | }, |
|
1183 | 1183 | "wrappy": { |
|
1184 | 1184 | "version": "1.0.2", |
|
1185 | 1185 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", |
|
1186 | 1186 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", |
|
1187 | 1187 | "dev": true |
|
1188 | 1188 | }, |
|
1189 | 1189 | "write": { |
|
1190 | 1190 | "version": "1.0.3", |
|
1191 | 1191 | "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", |
|
1192 | 1192 | "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", |
|
1193 | 1193 | "dev": true, |
|
1194 | 1194 | "requires": { |
|
1195 | 1195 | "mkdirp": "^0.5.1" |
|
1196 | 1196 | } |
|
1197 | 1197 | }, |
|
1198 | 1198 | "yaml": { |
|
1199 | 1199 | "version": "1.7.2", |
|
1200 | 1200 | "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.7.2.tgz", |
|
1201 | 1201 | "integrity": "sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw==", |
|
1202 | 1202 | "dev": true, |
|
1203 | 1203 | "requires": { |
|
1204 | 1204 | "@babel/runtime": "^7.6.3" |
|
1205 | 1205 | } |
|
1206 | 1206 | } |
|
1207 | 1207 | } |
|
1208 | 1208 | } |
@@ -1,34 +1,34 | |||
|
1 | 1 | { |
|
2 | 2 | "name": "@implab/djx", |
|
3 | 3 | "version": "0.0.1-dev", |
|
4 | 4 | "description": "Supports using dojo version 1 with typescript and .tsx files", |
|
5 | 5 | "keywords": [ |
|
6 | 6 | "dojo", |
|
7 | 7 | "tsx", |
|
8 | 8 | "typescript", |
|
9 | 9 | "widgets" |
|
10 | 10 | ], |
|
11 | 11 | "author": "Implab team", |
|
12 | 12 | "license": "BSD-2-Clause", |
|
13 | 13 | "repository": "https://hg.code.sf.net/p/implabjs/djx", |
|
14 | 14 | "publishConfig": { |
|
15 | 15 | "access": "public" |
|
16 | 16 | }, |
|
17 | 17 | "peerDependencies": { |
|
18 | 18 | "dojo": "1.16.0", |
|
19 | 19 | "@implab/core-amd": "^1.3.2" |
|
20 | 20 | }, |
|
21 | 21 | "devDependencies": { |
|
22 | 22 | "@types/requirejs": "2.1.31", |
|
23 | 23 | "dojo": "1.16.0", |
|
24 |
"typescript": "~3. |
|
|
24 | "typescript": "~3.8.3", | |
|
25 | 25 | "eslint": "6.8.0", |
|
26 | 26 | "tslint": "6.0.0", |
|
27 | 27 | "@implab/core-amd": "^1.3.2", |
|
28 | 28 | "yaml": "~1.7.2", |
|
29 | 29 | "@types/yaml": "1.2.0", |
|
30 | 30 | "chai": "4.2.0", |
|
31 | 31 | "@types/chai": "4.1.3", |
|
32 | 32 | "dojo-typings": "~1.11.9" |
|
33 | 33 | } |
|
34 | 34 | } |
@@ -1,240 +1,241 | |||
|
1 | 1 | import declare = require("dojo/_base/declare"); |
|
2 | 2 | import { each } from "@implab/core-amd/safe"; |
|
3 | 3 | import { Constructor } from "@implab/core-amd/interfaces"; |
|
4 | // import { DeclareConstructor } from "dojo/_base/declare"; | |
|
5 | 4 |
|
|
6 | type DeclareConstructor<T> = dojo._base.DeclareConstructor<T>; | |
|
5 | // declare const declare: any; | |
|
6 | ||
|
7 | type DeclareConstructor<T> = declare.DeclareConstructor<T>; | |
|
7 | 8 | |
|
8 | 9 | export interface AbstractConstructor<T = {}> { |
|
9 | 10 | prototype: T; |
|
10 | 11 | } |
|
11 | 12 | |
|
12 | 13 | interface DjMockConstructor<T = {}> { |
|
13 | 14 | new(...args: any[]): T; |
|
14 | 15 | mock: boolean; |
|
15 | 16 | base: AbstractConstructor; |
|
16 | 17 | } |
|
17 | 18 | |
|
18 | 19 | export function djbase<T>( |
|
19 | 20 | b0: AbstractConstructor<T> |
|
20 | 21 | ): DeclareConstructor<T>; |
|
21 | 22 | |
|
22 | 23 | export function djbase<T0, T1>( |
|
23 | 24 | b0: AbstractConstructor<T0>, |
|
24 | 25 | b1: AbstractConstructor<T1> |
|
25 | 26 | ): DeclareConstructor<T0 & T1>; |
|
26 | 27 | |
|
27 | 28 | export function djbase<T0, T1, T2>( |
|
28 | 29 | b0: AbstractConstructor<T0>, |
|
29 | 30 | b1: AbstractConstructor<T1>, |
|
30 | 31 | b2: AbstractConstructor<T2> |
|
31 | 32 | ): DeclareConstructor<T0 & T1 & T2>; |
|
32 | 33 | |
|
33 | 34 | export function djbase<T0, T1, T2, T3>( |
|
34 | 35 | b0: AbstractConstructor<T0>, |
|
35 | 36 | b1: AbstractConstructor<T1>, |
|
36 | 37 | b2: AbstractConstructor<T2>, |
|
37 | 38 | b3: AbstractConstructor<T3> |
|
38 | 39 | ): DeclareConstructor<T0 & T1 & T2 & T3>; |
|
39 | 40 | |
|
40 | 41 | export function djbase<T0, T1, T2, T3, T4>( |
|
41 | 42 | b0: AbstractConstructor<T0>, |
|
42 | 43 | b1: AbstractConstructor<T1>, |
|
43 | 44 | b2: AbstractConstructor<T2>, |
|
44 | 45 | b3: AbstractConstructor<T3>, |
|
45 | 46 | b4: AbstractConstructor<T4> |
|
46 | 47 | ): DeclareConstructor<T0 & T1 & T2 & T3 & T4>; |
|
47 | 48 | |
|
48 | 49 | export function djbase<T0, T1, T2, T3, T4, T5>( |
|
49 | 50 | b0: AbstractConstructor<T0>, |
|
50 | 51 | b1: AbstractConstructor<T1>, |
|
51 | 52 | b2: AbstractConstructor<T2>, |
|
52 | 53 | b3: AbstractConstructor<T3>, |
|
53 | 54 | b4: AbstractConstructor<T4>, |
|
54 | 55 | b5: AbstractConstructor<T5> |
|
55 | 56 | ): DeclareConstructor<T0 & T1 & T2 & T3 & T4 & T5>; |
|
56 | 57 | |
|
57 | 58 | export function djbase<T0, T1, T2, T3, T4, T5, T6>( |
|
58 | 59 | b0: AbstractConstructor<T0>, |
|
59 | 60 | b1: AbstractConstructor<T1>, |
|
60 | 61 | b2: AbstractConstructor<T2>, |
|
61 | 62 | b3: AbstractConstructor<T3>, |
|
62 | 63 | b4: AbstractConstructor<T4>, |
|
63 | 64 | b5: AbstractConstructor<T5>, |
|
64 | 65 | b6: AbstractConstructor<T6> |
|
65 | 66 | ): DeclareConstructor<T0 & T1 & T2 & T3 & T4 & T5 & T6>; |
|
66 | 67 | |
|
67 | 68 | export function djbase<T0, T1, T2, T3, T4, T5, T6, T7>( |
|
68 | 69 | b0: AbstractConstructor<T0>, |
|
69 | 70 | b1: AbstractConstructor<T1>, |
|
70 | 71 | b2: AbstractConstructor<T2>, |
|
71 | 72 | b3: AbstractConstructor<T3>, |
|
72 | 73 | b4: AbstractConstructor<T4>, |
|
73 | 74 | b5: AbstractConstructor<T5>, |
|
74 | 75 | b6: AbstractConstructor<T6>, |
|
75 | 76 | b7: AbstractConstructor<T7> |
|
76 | 77 | ): DeclareConstructor<T0 & T1 & T2 & T3 & T4 & T5 & T6 & T7>; |
|
77 | 78 | |
|
78 | 79 | /** Π‘ΠΎΠ·Π΄Π°Π΅Ρ ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ-Π·Π°Π³Π»ΡΡΠΊΡ ΠΈΠ· ΡΠΏΠΈΡΠΊΠ° Π±Π°Π·ΠΎΠ²ΡΡ ΠΊΠ»Π°ΡΡΠΎΠ², ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ |
|
79 | 80 | * Π΄Π»Ρ ΠΎΠ±ΡΡΠ²Π»Π΅Π½ΠΈΡ ΠΊΠ»Π°ΡΡΠΎΠ² ΠΏΡΠΈ ΠΏΠΎΠΌΠΎΡΠΈ `dojo/_base/declare`. |
|
80 | 81 | * |
|
81 | 82 | * Π‘ΠΎΠ·Π΄Π°Π΅Ρ ΠΏΡΡΡΠΎΠΉ ΠΊΠΎΠ½ΡΡΡΡΡΠΎΡ, Ρ ΠΏΡΡΡΡΠΌ ΡΡΠ°Π½Π΄Π°ΡΡΠ½ΡΠΌ ΠΏΡΠΎΡΠΎΡΠΈΠΏΠΎΠΌ, ΡΡΠΎ Π½ΡΠΆΠ½ΠΎ, |
|
82 | 83 | * ΠΏΠΎΡΠΊΠΎΠ»ΡΠΊΡ Π² ΡΠ½Π°ΡΠ»Π΅Π΄ΠΎΠ²Π°Π½Π½ΠΎΠΌ ΠΊΠ»Π°ΡΡΠ΅ ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ ΠΎΠ±ΡΠ·Π°ΡΠ΅Π»ΡΠ½ΠΎ Π΄ΠΎΠ»ΠΆΠ΅Π½ Π²ΡΠ·Π²Π°ΡΡ |
|
83 | 84 | * `super(...)`, ΡΠ°ΠΊΠΈΠΌ ΠΎΠ±ΡΠ°Π·ΠΎΠΌ ΠΎΠ½ Π²ΡΠ·ΠΎΠ²Π΅Ρ ΠΏΡΡΡΡΡ ΡΡΠ½ΠΊΡΠΈΡ. |
|
84 | 85 | * |
|
85 | 86 | * Π‘ΠΎΠ·Π΄Π°Π½Π½ΡΠΉ ΠΊΠΎΠ½ΡΡΡΡΡΠΎΡ Ρ ΡΠ°Π½ΠΈΡ Π² ΡΠ΅Π±Π΅ ΡΠΏΠΈΡΠΎΠΊ Π±Π°Π·ΠΎΠ²ΡΡ ΠΊΠ»Π°ΡΡΠΎΠ², ΠΊΠΎΡΠΎΡΡΠΉ Π±ΡΠ΄Π΅Ρ |
|
86 | 87 | * ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ Π΄Π΅ΠΊΠΎΡΠ°ΡΠΎΡΠΎΠΌ `djclass`, ΠΊΠΎΡΠΎΡΡΠΉ Π²Π΅ΡΠ½Π΅Ρ ΠΊΠ»Π°ΡΡ, ΠΎΠ±ΡΡΠ²Π»Π΅Π½Π½ΡΠΉ ΠΏΡΠΈ |
|
87 | 88 | * ΠΏΠΎΠΌΠΎΡΠΈ `dojo/_base/declare`. |
|
88 | 89 | * |
|
89 | 90 | * @param bases ΡΠΏΠΈΡΠΎΠΊ Π±Π°Π·ΠΎΠ²ΡΡ ΠΊΠ»Π°ΡΡΠΎΠ², ΠΎΡ ΠΊΠΎΡΠΎΡΡΡ ΡΡΠ΅Π±ΡΠ΅ΡΡΡ ΡΠ½Π°ΡΠ»Π΅Π΄ΠΎΠ²Π°ΡΡ |
|
90 | 91 | * Π½ΠΎΠ²ΡΠΉ ΠΊΠ»Π°ΡΡ. |
|
91 | 92 | * |
|
92 | 93 | */ |
|
93 | 94 | export function djbase(...bases: any[]): Constructor { |
|
94 | 95 | |
|
95 | 96 | const t = class { |
|
96 | 97 | static mock: boolean; |
|
97 | 98 | static base: AbstractConstructor; |
|
98 | 99 | }; |
|
99 | 100 | |
|
100 | 101 | t.mock = true; |
|
101 | 102 | t.base = declare(bases); |
|
102 | 103 | |
|
103 | 104 | return t as any; |
|
104 | 105 | } |
|
105 | 106 | |
|
106 | 107 | function isMockConstructor<T extends {}>(v: AbstractConstructor<T>): v is DjMockConstructor<T> { |
|
107 | 108 | return v && "mock" in v; |
|
108 | 109 | } |
|
109 | 110 | |
|
110 | 111 | /** Π‘ΠΎΠ·Π΄Π°Π΅Ρ ΠΊΠ»Π°ΡΡ ΠΏΡΠΈ ΠΏΠΎΠΌΠΎΡΠΈ `dojo/_base/declare`. ΠΠ»Ρ ΡΡΠΎΠ³ΠΎ ΠΈΡΡ ΠΎΠ΄Π½ΡΠΉ ΠΊΠ»Π°ΡΡ |
|
111 | 112 | * Π΄ΠΎΠ»ΠΆΠ΅Π½ Π±ΡΡΡ ΡΠ½Π°ΡΠ»Π΅Π΄ΠΎΠ²Π°Π½ ΠΎΡ `djbase(...)`. |
|
112 | 113 | * |
|
113 | 114 | * @param target ΠΠ»Π°ΡΡ, ΠΊΠΎΡΠΎΡΡΠΉ Π½ΡΠΆΠ½ΠΎ ΠΎΠ±ΡΡΠ²ΠΈΡΡ ΠΏΡΠΈ ΠΏΠΎΠΌΠΎΡΠΈ `dojo/_base/declare` |
|
114 | 115 | */ |
|
115 | 116 | export function djclass<T extends AbstractConstructor>(target: T): T { |
|
116 | 117 | // ΠΏΠΎΠ»ΡΡΠ°Π΅ΠΌ Π±Π°Π·ΠΎΠ²ΡΠΉ ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ ΠΈ Π΅Π³ΠΎ ΠΏΡΠΎΡΠΎΡΠΈΠΏ |
|
117 | 118 | let bp = target && target.prototype && Object.getPrototypeOf(target.prototype); |
|
118 | 119 | const bc = bp && bp.constructor; |
|
119 | 120 | |
|
120 | 121 | // ΠΏΡΠΎΠ²Π΅ΡΠΊΠ° ΡΠΎΠ³ΠΎ, ΡΡΠΎ ΠΊΠ»Π°ΡΡ ΡΠ½Π°ΡΠ»Π΅Π΄ΠΎΠ²Π°Π½ ΠΎΡ ΡΠΏΠ΅ΡΠΈΠ°Π»ΡΠ½ΠΎΠΉ Π·Π°Π³Π»ΡΡΠΊΠΈ |
|
121 | 122 | if (isMockConstructor(bc)) { |
|
122 | 123 | // t - Π±Π°Π·ΠΎΠ²ΡΠΉ ΠΊΠ»Π°ΡΡ, ΠΎΠ±ΡΡΠ²Π»Π΅Π½Π½ΡΠΉ ΠΏΡΠΈ ΠΏΠΎΠΌΠΎΡΠΈ dojo/_base/declare |
|
123 | 124 | const t = bc.base; |
|
124 | 125 | |
|
125 | 126 | // bc - Π±Π°Π·ΠΎΠ²ΡΠΉ ΠΊΠ»Π°ΡΡ, bc.prototype ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ ΠΊΠ°ΠΊ super |
|
126 | 127 | // ΠΏΡΠΈ Π²ΡΠ·ΠΎΠ²Π΅ Π±Π°Π·ΠΎΠ²ΡΡ ΠΌΠ΅ΡΠΎΠ΄ΠΎΠ². ΠΡΠΆΠ½ΠΎ ΡΠΎΠ·Π΄Π°ΡΡ bc.prototype |
|
127 | 128 | // ΡΠ°ΠΊΠΈΠΌ ΠΎΠ±ΡΠ°Π·ΠΎΠΌ, ΡΡΠΎΠ±Ρ ΠΎΠ½ Π²ΡΠ·ΡΠ²Π°Π» this.inherited(). |
|
128 | 129 | |
|
129 | 130 | // ΡΠΎΠ·Π΄Π°Π΅ΠΌ Π½ΠΎΠ²ΡΠΉ ΠΏΠΎΡΠΎΡΠΎΡΠΈΠΏ, ΠΎΠ½ Π½Π΅ Π² ΡΠ΅ΠΏΠΎΡΠΊΠ΅ ΠΏΡΠΎΡΠΎΡΠΈΠΏΠΎΠ² Ρ ΡΠ΅ΠΊΡΡΠ΅Π³ΠΎ |
|
130 | 131 | // ΠΊΠ»Π°ΡΡΠ°, Π½ΠΎ super.some_method Π±ΡΠ΄Π΅Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ ΠΈΠΌΠ΅Π½Π½ΠΎ Π΅Π³ΠΎ. |
|
131 | 132 | // Π² ΡΡΠΎΠΌ ΠΎΠ±ΡΠ΅ΠΊΡΠ΅ Π±ΡΠ΄ΡΡ ΡΠ°Π·ΠΌΠ΅ΡΠ΅Π½Ρ ΠΏΡΠΎΠΊΡΠΈ Π΄Π»Ρ ΠΏΠ΅ΡΠ΅ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΡΡ |
|
132 | 133 | // ΠΌΠ΅ΡΠΎΠ΄ΠΎΠ². |
|
133 | 134 | bp = bc.prototype = Object.create(t.prototype); |
|
134 | 135 | bp.constructor = bc; |
|
135 | 136 | |
|
136 | 137 | // proxy - ΡΠ°Π±ΡΠΈΠΊΠ° Π΄Π»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ ΠΏΡΠΎΠΊΡΠΈ-ΠΌΠ΅ΡΠΎΠ΄ΠΎΠ², ΠΊΠΎΡΠΎΡΡΠ΅ Π²Π½ΡΡΡΠΈ |
|
137 | 138 | // ΡΠ΅Π±Ρ Π²ΡΠ·ΠΎΠ²ΡΡ this.inherited Ρ ΠΏΡΠ°Π²ΠΈΠ»ΡΠ½ΡΠΌΠΈ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΠ°ΠΌΠΈ. |
|
138 | 139 | const proxy = (m: (...args: any[]) => any) => function (this: any) { |
|
139 | 140 | const f = this.getInherited({ callee: m }); |
|
140 | 141 | return f && f.apply(this, arguments); |
|
141 | 142 | |
|
142 | 143 | // ΡΠ°ΠΊ ΡΠ΄Π΅Π»Π°ΡΡ ΠΌΠΎΠΆΠ½ΠΎ ΡΠΎΠ»ΡΠΊΠΎ dojo 1.15+ |
|
143 | 144 | // return this.inherited(m, arguments); |
|
144 | 145 | }; |
|
145 | 146 | |
|
146 | 147 | // Ρ ΡΠ΅ΠΊΡΡΠ΅Π³ΠΎ ΠΊΠ»Π°ΡΡΠ° ΠΏΡΠΎΡΠΎΡΠΈΠΏ ΡΠΎΠ΄Π΅ΡΠΆΠΈΡ ΠΌΠ΅ΡΠΎΠ΄Ρ, ΠΎΠ±ΡΡΠ²Π»Π΅Π½Π½ΡΠ΅ Π² ΡΡΠΎΠΌ |
|
147 | 148 | // ΠΊΠ»Π°ΡΡΠ΅ ΠΈ Π΅Π³ΠΎ ΠΊΠΎΠ½ΡΡΡΡΠΊΡΠΎΡ. ΠΡΠΆΠ½ΠΎ ΠΏΡΠΎΠΉΡΠΈ ΠΏΠΎ Π²ΡΠ΅ΠΌ ΠΌΠ΅ΡΠΎΠ΄Π°ΠΌ ΠΈ |
|
148 | 149 | // ΡΠΎΠ·Π΄Π°ΡΡ Π΄Π»Ρ Π½ΠΈΡ ΠΏΡΠΎΠΊΡΠΈ. |
|
149 | 150 | // ΠΡΠΈ ΡΡΠΎΠΌ ΡΠΎΠ»ΡΠΊΠΎ ΡΠ΅, ΠΌΠ΅ΡΠΎΠ΄Ρ, ΠΊΠΎΡΠΎΡΡΠ΅ Π΅ΡΡΡ Π² Π±Π°Π·ΠΎΠ²ΡΡ ΠΊΠ»Π°ΡΡΠ°Ρ |
|
150 | 151 | // ΠΌΠΎΠ³ΡΡ Π±ΡΡΡ ΠΏΠ΅ΡΠ΅ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Ρ. |
|
151 | 152 | each(target.prototype, (m: any, p: string | number | symbol) => { |
|
152 | 153 | if (typeof m === "function" && |
|
153 | 154 | p !== "constructor" && |
|
154 | 155 | target.prototype.hasOwnProperty(p) && |
|
155 | 156 | p in t.prototype |
|
156 | 157 | ) { |
|
157 | 158 | bp[p] = proxy(m); |
|
158 | 159 | } |
|
159 | 160 | }); |
|
160 | 161 | |
|
161 | 162 | const cls = declare(t, target.prototype); |
|
162 | 163 | // TODO mixin static members |
|
163 | 164 | return cls as any; |
|
164 | 165 | } else { |
|
165 | 166 | return target as any; |
|
166 | 167 | } |
|
167 | 168 | } |
|
168 | 169 | |
|
169 | 170 | function makeSetterName(prop: string) { |
|
170 | 171 | return [ |
|
171 | 172 | "_set", |
|
172 | 173 | prop.replace(/^./, x => x.toUpperCase()), |
|
173 | 174 | "Attr" |
|
174 | 175 | ].join(""); |
|
175 | 176 | } |
|
176 | 177 | |
|
177 | 178 | function makeGetterName(prop: string) { |
|
178 | 179 | return [ |
|
179 | 180 | "_get", |
|
180 | 181 | prop.replace(/^./, x => x.toUpperCase()), |
|
181 | 182 | "Attr" |
|
182 | 183 | ].join(""); |
|
183 | 184 | } |
|
184 | 185 | |
|
185 | 186 | interface NodeBindSpec { |
|
186 | 187 | node: string; |
|
187 | 188 | type: string; |
|
188 | 189 | } |
|
189 | 190 | |
|
190 | 191 | /** |
|
191 | 192 | * ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅ ΠΏΡΠΈΠ²ΡΠ·ΠΊΠΈ ΡΠ²ΠΎΠΉΡΡΠ²Π° Π²ΠΈΠ΄ΠΆΠ΅ΡΠ° ΠΊ ΡΠ²ΠΎΠΉΡΡΠ²Ρ Π²Π½ΡΡΡΠ΅Π½Π½Π΅Π³ΠΎ ΠΎΠ±ΡΠ΅ΠΊΡΠ°. |
|
192 | 193 | */ |
|
193 | 194 | interface MemberBindSpec { |
|
194 | 195 | /** |
|
195 | 196 | * ΠΠΌΡ ΡΠ²ΠΎΠΉΡΡΠ²Π° ΡΠΎ ΡΡΡΠ»ΠΊΠΎΠΉ Π½Π° ΠΎΠ±ΡΠ΅ΠΊΡ, ΠΊ ΠΊΠΎΡΠΎΡΠΎΠΌΡ . |
|
196 | 197 | */ |
|
197 | 198 | member: string; |
|
198 | 199 | /** |
|
199 | 200 | * Π‘Π²ΠΎΠΉΡΡΠ²ΠΎ ΠΎΠ±ΡΠ΅ΠΊΡΠ° ΠΊ ΠΊΠΎΡΠΎΡΠΎΠΌΡ Π½ΡΠΆΠ½ΠΎ ΠΎΡΡΡΠ΅ΡΡΠ²ΠΈΡΡ ΠΏΡΠΈΠ²ΡΠ·ΠΊΡ. |
|
200 | 201 | */ |
|
201 | 202 | property: string; |
|
202 | 203 | |
|
203 | 204 | /** |
|
204 | 205 | * ΠΡΠΈΠ²ΡΠ·ΠΊΠ° ΠΎΡΡΡΠ΅ΡΡΠ²Π»ΡΠ΅ΡΡΡ Π½Π΅ ΡΠΎΠ»ΡΠΊΠΎ Π½Π° Π·Π°ΠΏΠΈΡΡ Π½ΠΎ ΠΈ Π½Π° ΡΡΠ΅Π½ΠΈΠ΅ ΡΠ²ΠΎΠΉΡΡΠ²Π°. |
|
205 | 206 | */ |
|
206 | 207 | getter?: boolean; |
|
207 | 208 | } |
|
208 | 209 | |
|
209 | 210 | function isNodeBindSpec(v: any): v is NodeBindSpec { |
|
210 | 211 | return "node" in v; |
|
211 | 212 | } |
|
212 | 213 | |
|
213 | 214 | function isMemberBindSpec(v: any): v is MemberBindSpec { |
|
214 | 215 | return "member" in v; |
|
215 | 216 | } |
|
216 | 217 | |
|
217 | 218 | /** ΠΠ΅ΠΊΠΎΡΠΈΡΡΠ΅Ρ ΡΠ²ΠΎΠΉΡΡΠ²Π° Π²ΠΈΠ΄ΠΆΠ΅ΡΠ° Π΄Π»Ρ ΠΏΡΠΈΠ²ΡΠ·ΠΊΠΈ ΠΈΡ ΠΊ Π²Π½ΡΡΡΠ΅Π½Π½ΠΈΠΌ ΡΠ»Π΅Π½Π°ΠΌ, Π»ΠΈΠ±ΠΎ DOM |
|
218 | 219 | * ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ°ΠΌ, Π»ΠΈΠ±ΠΎ ΡΠ²ΠΎΠΉΡΡΠ²Ρ Π²Π½ΡΡΡΠ΅Π½Π½Π΅Π³ΠΎ ΠΎΠ±ΡΠ΅ΠΊΡΠ°. |
|
219 | 220 | * |
|
220 | 221 | * @param {NodeBindSpec | MemberBindSpec} params ΠΠ°ΡΠ°ΠΌΠ΅ΡΡΡ ΡΠ²ΡΠ·ΡΠ²Π°Π½ΠΈΡ. |
|
221 | 222 | */ |
|
222 | 223 | export function bind(params: NodeBindSpec | MemberBindSpec) { |
|
223 | 224 | if (isNodeBindSpec(params)) |
|
224 | 225 | return (target: any, name: string) => { |
|
225 | 226 | target[makeSetterName(name)] = params; |
|
226 | 227 | }; |
|
227 | 228 | else if (isMemberBindSpec(params)) { |
|
228 | 229 | return (target: any, name: string) => { |
|
229 | 230 | target[name] = null; |
|
230 | 231 | target[makeSetterName(name)] = function (v: any) { |
|
231 | 232 | this._set(name, v); |
|
232 | 233 | this[params.member].set(params.property, v); |
|
233 | 234 | }; |
|
234 | 235 | if (params.getter) |
|
235 | 236 | target[makeGetterName(name)] = function () { |
|
236 | 237 | return this[params.member].get(params.property); |
|
237 | 238 | }; |
|
238 | 239 | }; |
|
239 | 240 | } |
|
240 | 241 | } |
@@ -1,51 +1,52 | |||
|
1 | 1 | import { djbase, djclass } from "../declare"; |
|
2 | 2 | import _WidgetBase = require("dijit/_WidgetBase"); |
|
3 | 3 | import _AttachMixin = require("dijit/_AttachMixin"); |
|
4 | 4 | import { BuildContext, isNode } from "./traits"; |
|
5 | 5 | import registry = require("dijit/registry"); |
|
6 |
|
|
|
7 | type Handle = dojo.Handle; | |
|
6 | import { Handle } from "dojo/interfaces"; | |
|
7 | ||
|
8 | // type Handle = dojo.Handle; | |
|
8 | 9 | |
|
9 | 10 | @djclass |
|
10 | 11 | export abstract class DjxWidgetBase extends djbase(_WidgetBase, _AttachMixin) { |
|
11 | 12 | |
|
12 | 13 | buildRendering() { |
|
13 | 14 | this.domNode = this.render().getDomElement(); |
|
14 | 15 | super.buildRendering(); |
|
15 | 16 | } |
|
16 | 17 | |
|
17 | 18 | abstract render(): BuildContext; |
|
18 | 19 | |
|
19 | 20 | _processTemplateNode<T extends (Element | Node | _WidgetBase)>( |
|
20 | 21 | baseNode: T, |
|
21 | 22 | getAttrFunc: (baseNode: T, attr: string) => string, |
|
22 | 23 | // tslint:disable-next-line: ban-types |
|
23 | 24 | attachFunc: (node: T, type: string, func?: Function) => Handle |
|
24 | 25 | ): boolean { |
|
25 | 26 | if (isNode(baseNode)) { |
|
26 | 27 | const w = registry.byNode(baseNode); |
|
27 | 28 | if (w) { |
|
28 | 29 | // from dijit/_WidgetsInTemplateMixin |
|
29 | 30 | this._processTemplateNode(w, |
|
30 | 31 | (n, p) => n.get(p), // callback to get a property of a widget |
|
31 | 32 | (widget, type, callback) => { |
|
32 | 33 | if (!callback) |
|
33 | 34 | throw new Error("The callback must be specified"); |
|
34 | 35 | |
|
35 | 36 | // callback to do data-dojo-attach-event to a widget |
|
36 | 37 | if (type in widget) { |
|
37 | 38 | // back-compat, remove for 2.0 |
|
38 | 39 | return widget.connect(widget, type, callback as EventListener); |
|
39 | 40 | } else { |
|
40 | 41 | // 1.x may never hit this branch, but it's the default for 2.0 |
|
41 | 42 | return widget.on(type, callback); |
|
42 | 43 | } |
|
43 | 44 | |
|
44 | 45 | }); |
|
45 | 46 | // don't process widgets internals |
|
46 | 47 | return false; |
|
47 | 48 | } |
|
48 | 49 | } |
|
49 | 50 | return super._processTemplateNode(baseNode, getAttrFunc, attachFunc); |
|
50 | 51 | } |
|
51 | 52 | } |
@@ -1,13 +1,18 | |||
|
1 | 1 | { |
|
2 | 2 | "extends": "../tsconfig", |
|
3 | 3 | "compilerOptions": { |
|
4 | "baseUrl": "../", | |
|
4 | 5 | "rootDir": "ts", |
|
5 | 6 | "rootDirs": [ |
|
6 | 7 | "ts", |
|
7 | 8 | "typings" |
|
8 | 9 | ], |
|
10 | "paths" : { | |
|
11 | "dojo/*" : [ "typings/dojo/*" ], | |
|
12 | "dijit/*" : [ "typings/dijit/*" ] | |
|
13 | }, | |
|
9 | 14 | "types": [ |
|
10 |
"requirejs", " |
|
|
15 | "requirejs", "./typings/index", "../typings/dojo/index" | |
|
11 | 16 | ] |
|
12 | 17 | } |
|
13 | 18 | } No newline at end of file |
@@ -1,18 +1,18 | |||
|
1 | 1 | import { test } from "./TestTraits"; |
|
2 | 2 | import { delay } from "@implab/core-amd/safe"; |
|
3 | 3 | import { assert } from "chai"; |
|
4 | 4 | import css = require("@implab/djx/css!my,css"); |
|
5 | 5 | import {} from "@implab/djx/i18n"; |
|
6 | 6 | |
|
7 | 7 | test("simple", (ok, fail, log) => { |
|
8 | 8 | setTimeout(() => { |
|
9 | 9 | // end should be called after the last assertion |
|
10 | 10 | ok("async assert"); |
|
11 | 11 | }, 100); |
|
12 | 12 | }); |
|
13 | 13 | |
|
14 | test("simple", async log => { | |
|
14 | test("simple", async (log, fail) => { | |
|
15 | 15 | await delay(0); |
|
16 | 16 | |
|
17 | 17 | assert.ok(true); // everything is fine |
|
18 | 18 | }); |
@@ -1,87 +1,87 | |||
|
1 | import { DeclareConstructor } from "dojo/_base/declare"; | |
|
2 | 1 |
|
|
3 | 2 | import _WidgetBase = require("./_WidgetBase"); |
|
3 | import declare = require("dojo/_base/declare"); | |
|
4 | 4 | |
|
5 | 5 | declare module "./_WidgetBase" { |
|
6 | 6 | interface _WidgetBase { |
|
7 | 7 | dojoAttachEvent: string; |
|
8 | 8 | dojoAttachPoint: string; |
|
9 | 9 | } |
|
10 | 10 | } |
|
11 | 11 | |
|
12 | 12 | declare module "dojo/_base/kernel" { |
|
13 | 13 | interface Dijit { |
|
14 | 14 | _AttachMixin: _AttachMixinConstructor; |
|
15 | 15 | } |
|
16 | 16 | } |
|
17 | 17 | |
|
18 | 18 | interface _AttachMixin { |
|
19 | 19 | /** |
|
20 | 20 | * List of widget attribute names associated with data-dojo-attach-point=... in the template, ex: ["containerNode", "labelNode"] |
|
21 | 21 | */ |
|
22 | 22 | _attachPoints: string[]; |
|
23 | 23 | |
|
24 | 24 | /** |
|
25 | 25 | * List of connections associated with data-dojo-attach-event=... in the template |
|
26 | 26 | */ |
|
27 | 27 | _attachEvents: Handle[]; |
|
28 | 28 | |
|
29 | 29 | /** |
|
30 | 30 | * Object to which attach points and events will be scoped. Defaults to 'this'. |
|
31 | 31 | */ |
|
32 | 32 | attachScope: any; |
|
33 | 33 | |
|
34 | 34 | /** |
|
35 | 35 | * Search descendants of this.containerNode for data-dojo-attach-point and data-dojo-attach-event. |
|
36 | 36 | * |
|
37 | 37 | * Should generally be left false (the default value) both for performance and to avoid failures when this.containerNode holds other _AttachMixin instances with their own attach points and events. |
|
38 | 38 | */ |
|
39 | 39 | searchContainerNode: boolean; |
|
40 | 40 | |
|
41 | 41 | /** |
|
42 | 42 | * Attach to DOM nodes marked with special attributes. |
|
43 | 43 | */ |
|
44 | 44 | buildRendering(): void; |
|
45 | 45 | |
|
46 | 46 | /** |
|
47 | 47 | * hook for _WidgetsInTemplateMixin |
|
48 | 48 | */ |
|
49 | 49 | _beforeFillContent(): void; |
|
50 | 50 | |
|
51 | 51 | /** |
|
52 | 52 | * Iterate through the dom nodes and attach functions and nodes accordingly. |
|
53 | 53 | * |
|
54 | 54 | * Map widget properties and functions to the handlers specified in the dom node and it's descendants. This function iterates over all nodes and looks for these properties: |
|
55 | 55 | * - dojoAttachPoint/data-dojo-attach-point |
|
56 | 56 | * - dojoAttachEvent/data-dojo-attach-event |
|
57 | 57 | */ |
|
58 | 58 | _attachTemplateNodes(rootNode: Element | Node): void; |
|
59 | 59 | |
|
60 | 60 | /** |
|
61 | 61 | * Process data-dojo-attach-point and data-dojo-attach-event for given node or widget. |
|
62 | 62 | * |
|
63 | 63 | * Returns true if caller should process baseNode's children too. |
|
64 | 64 | */ |
|
65 | 65 | _processTemplateNode<T extends (Element | Node | _WidgetBase)>( |
|
66 | 66 | baseNode: T, |
|
67 | 67 | getAttrFunc: (baseNode: T, attr: string) => string, |
|
68 | 68 | attachFunc: (node: T, type: string, func?: Function) => Handle |
|
69 | 69 | ): boolean; |
|
70 | 70 | |
|
71 | 71 | /** |
|
72 | 72 | * Roughly corresponding to dojo/on, this is the default function for processing a data-dojo-attach-event. Meant to attach to DOMNodes, not to widgets. |
|
73 | 73 | */ |
|
74 | 74 | _attach(node: Element | Node, type: string, func?: Function): Handle; |
|
75 | 75 | |
|
76 | 76 | /** |
|
77 | 77 | * Detach and clean up the attachments made in _attachtempalteNodes. |
|
78 | 78 | */ |
|
79 | 79 | _detachTemplateNodes(): void; |
|
80 | 80 | |
|
81 | 81 | destroyRendering(preserveDom?: boolean): void; |
|
82 | 82 | } |
|
83 | 83 | |
|
84 | interface _AttachMixinConstructor extends DeclareConstructor<_AttachMixin> { } | |
|
84 | interface _AttachMixinConstructor extends declare.DeclareConstructor<_AttachMixin> { } | |
|
85 | 85 | |
|
86 | 86 | declare const _AttachMixin: _AttachMixinConstructor; |
|
87 | 87 | export = _AttachMixin; |
@@ -1,241 +1,240 | |||
|
1 | 1 | import Stateful = require("dojo/Stateful"); |
|
2 | 2 | import Destroyable = require("./Destroyable"); |
|
3 | 3 | import { ExtensionEvent } from "dojo/on"; |
|
4 | 4 | import { NodeFragmentOrString, Handle, NodeOrString, WatchHandle } from "dojo/interfaces"; |
|
5 | import { DeclareConstructor } from "dojo/_base/declare"; | |
|
6 | 5 | |
|
7 | 6 | declare namespace _WidgetBase { |
|
8 | 7 | interface _WidgetBase extends Stateful, Destroyable { |
|
9 | 8 | |
|
10 | 9 | /** |
|
11 | 10 | * A unique, opaque ID string that can be assigned by users or by the |
|
12 | 11 | * system. If the developer passes an ID which is known not to be |
|
13 | 12 | * unique, the specified ID is ignored and the system-generated ID is |
|
14 | 13 | * used instead. |
|
15 | 14 | */ |
|
16 | 15 | id: string; |
|
17 | 16 | |
|
18 | 17 | /** |
|
19 | 18 | * Rarely used. Overrides the default Dojo locale used to render this widget, |
|
20 | 19 | * as defined by the [HTML LANG](http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang) attribute. |
|
21 | 20 | * Value must be among the list of locales specified during by the Dojo bootstrap, |
|
22 | 21 | * formatted according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt) (like en-us). |
|
23 | 22 | */ |
|
24 | 23 | lang: string; |
|
25 | 24 | |
|
26 | 25 | /** |
|
27 | 26 | * Bi-directional support, as defined by the [HTML DIR](http://www.w3.org/TR/html401/struct/dirlang.html#adef-dir) |
|
28 | 27 | * attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's |
|
29 | 28 | * default direction. |
|
30 | 29 | */ |
|
31 | 30 | dir: string; |
|
32 | 31 | |
|
33 | 32 | /** |
|
34 | 33 | * HTML class attribute |
|
35 | 34 | */ |
|
36 | 35 | class: string; |
|
37 | 36 | |
|
38 | 37 | /** |
|
39 | 38 | * HTML style attributes as cssText string or name/value hash |
|
40 | 39 | */ |
|
41 | 40 | style: string; |
|
42 | 41 | |
|
43 | 42 | /** |
|
44 | 43 | * HTML title attribute. |
|
45 | 44 | * |
|
46 | 45 | * For form widgets this specifies a tooltip to display when hovering over |
|
47 | 46 | * the widget (just like the native HTML title attribute). |
|
48 | 47 | * |
|
49 | 48 | * For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, |
|
50 | 49 | * etc., it's used to specify the tab label, accordion pane title, etc. In this case it's |
|
51 | 50 | * interpreted as HTML. |
|
52 | 51 | */ |
|
53 | 52 | title: string; |
|
54 | 53 | |
|
55 | 54 | /** |
|
56 | 55 | * When this widget's title attribute is used to for a tab label, accordion pane title, etc., |
|
57 | 56 | * this specifies the tooltip to appear when the mouse is hovered over that text. |
|
58 | 57 | */ |
|
59 | 58 | tooltip: string; |
|
60 | 59 | |
|
61 | 60 | /** |
|
62 | 61 | * Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate |
|
63 | 62 | * widget state. |
|
64 | 63 | */ |
|
65 | 64 | baseClass: string; |
|
66 | 65 | |
|
67 | 66 | /** |
|
68 | 67 | * pointer to original DOM node |
|
69 | 68 | */ |
|
70 | 69 | srcNodeRef: HTMLElement; |
|
71 | 70 | |
|
72 | 71 | /** |
|
73 | 72 | * This is our visible representation of the widget! Other DOM |
|
74 | 73 | * Nodes may by assigned to other properties, usually through the |
|
75 | 74 | * template system's data-dojo-attach-point syntax, but the domNode |
|
76 | 75 | * property is the canonical "top level" node in widget UI. |
|
77 | 76 | */ |
|
78 | 77 | domNode: HTMLElement; |
|
79 | 78 | |
|
80 | 79 | /** |
|
81 | 80 | * Designates where children of the source DOM node will be placed. |
|
82 | 81 | * "Children" in this case refers to both DOM nodes and widgets. |
|
83 | 82 | */ |
|
84 | 83 | containerNode: HTMLElement; |
|
85 | 84 | |
|
86 | 85 | /** |
|
87 | 86 | * The document this widget belongs to. If not specified to constructor, will default to |
|
88 | 87 | * srcNodeRef.ownerDocument, or if no sourceRef specified, then to the document global |
|
89 | 88 | */ |
|
90 | 89 | ownerDocument: HTMLElement; |
|
91 | 90 | |
|
92 | 91 | /** |
|
93 | 92 | * Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute |
|
94 | 93 | * for each XXX attribute to be mapped to the DOM. |
|
95 | 94 | */ |
|
96 | 95 | attributeMap: { [attribute: string]: any }; |
|
97 | 96 | |
|
98 | 97 | /** |
|
99 | 98 | * Bi-directional support, the main variable which is responsible for the direction of the text. |
|
100 | 99 | * The text direction can be different than the GUI direction by using this parameter in creation |
|
101 | 100 | * of a widget. |
|
102 | 101 | */ |
|
103 | 102 | textDir: string; |
|
104 | 103 | |
|
105 | 104 | /** |
|
106 | 105 | * Kicks off widget instantiation. See create() for details. |
|
107 | 106 | */ |
|
108 | 107 | postscript(params?: any, srcNodeRef?: HTMLElement): void; |
|
109 | 108 | |
|
110 | 109 | /** |
|
111 | 110 | * Kick off the life-cycle of a widget |
|
112 | 111 | */ |
|
113 | 112 | create(params?: any, srcNodeRef?: HTMLElement): void; |
|
114 | 113 | |
|
115 | 114 | /** |
|
116 | 115 | * Called after the parameters to the widget have been read-in, |
|
117 | 116 | * but before the widget template is instantiated. Especially |
|
118 | 117 | * useful to set properties that are referenced in the widget |
|
119 | 118 | * template. |
|
120 | 119 | */ |
|
121 | 120 | postMixInProperties(): void; |
|
122 | 121 | |
|
123 | 122 | /** |
|
124 | 123 | * Construct the UI for this widget, setting this.domNode. |
|
125 | 124 | * Most widgets will mixin `dijit._TemplatedMixin`, which implements this method. |
|
126 | 125 | */ |
|
127 | 126 | buildRendering(): void; |
|
128 | 127 | |
|
129 | 128 | /** |
|
130 | 129 | * Processing after the DOM fragment is created |
|
131 | 130 | */ |
|
132 | 131 | postCreate(): void; |
|
133 | 132 | |
|
134 | 133 | /** |
|
135 | 134 | * Processing after the DOM fragment is added to the document |
|
136 | 135 | */ |
|
137 | 136 | startup(): void; |
|
138 | 137 | |
|
139 | 138 | /** |
|
140 | 139 | * Destroy this widget and its descendants |
|
141 | 140 | */ |
|
142 | 141 | destroyRecursive(preserveDom?: boolean): void; |
|
143 | 142 | |
|
144 | 143 | /** |
|
145 | 144 | * Destroys the DOM nodes associated with this widget. |
|
146 | 145 | */ |
|
147 | 146 | destroyRendering(preserveDom?: boolean): void; |
|
148 | 147 | |
|
149 | 148 | /** |
|
150 | 149 | * Recursively destroy the children of this widget and their |
|
151 | 150 | * descendants. |
|
152 | 151 | */ |
|
153 | 152 | destroyDescendants(preserveDom?: boolean): void; |
|
154 | 153 | |
|
155 | 154 | /** |
|
156 | 155 | * Deprecated. Override destroy() instead to implement custom widget tear-down |
|
157 | 156 | * behavior. |
|
158 | 157 | */ |
|
159 | 158 | uninitialize(): boolean; |
|
160 | 159 | |
|
161 | 160 | /** |
|
162 | 161 | * Used by widgets to signal that a synthetic event occurred, ex: |
|
163 | 162 | * | myWidget.emit("attrmodified-selectedChildWidget", {}). |
|
164 | 163 | */ |
|
165 | 164 | emit(type: string, eventObj?: any, callbackArgs?: any[]): any; |
|
166 | 165 | |
|
167 | 166 | /** |
|
168 | 167 | * Call specified function when event occurs, ex: myWidget.on("click", function(){ ... }). |
|
169 | 168 | */ |
|
170 | 169 | on(type: string | ExtensionEvent, func: EventListener | Function): WatchHandle; |
|
171 | 170 | |
|
172 | 171 | /** |
|
173 | 172 | * Returns a string that represents the widget. |
|
174 | 173 | */ |
|
175 | 174 | toString(): string; |
|
176 | 175 | |
|
177 | 176 | /** |
|
178 | 177 | * Returns all direct children of this widget, i.e. all widgets underneath this.containerNode whose parent |
|
179 | 178 | * is this widget. Note that it does not return all descendants, but rather just direct children. |
|
180 | 179 | */ |
|
181 | 180 | getChildren<T extends _WidgetBase>(): T[]; |
|
182 | 181 | |
|
183 | 182 | /** |
|
184 | 183 | * Returns the parent widget of this widget. |
|
185 | 184 | */ |
|
186 | 185 | getParent<T extends _WidgetBase>(): T; |
|
187 | 186 | |
|
188 | 187 | /** |
|
189 | 188 | * Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead. |
|
190 | 189 | */ |
|
191 | 190 | connect(obj: any, event: string | ExtensionEvent, method: string | EventListener): WatchHandle; |
|
192 | 191 | |
|
193 | 192 | /** |
|
194 | 193 | * Deprecated, will be removed in 2.0, use handle.remove() instead. |
|
195 | 194 | */ |
|
196 | 195 | disconnect(handle: WatchHandle): void; |
|
197 | 196 | |
|
198 | 197 | /** |
|
199 | 198 | * Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead. |
|
200 | 199 | */ |
|
201 | 200 | subscribe(t: string, method: EventListener): WatchHandle; |
|
202 | 201 | |
|
203 | 202 | /** |
|
204 | 203 | * Deprecated, will be removed in 2.0, use handle.remove() instead. |
|
205 | 204 | */ |
|
206 | 205 | unsubscribe(handle: WatchHandle): void; |
|
207 | 206 | |
|
208 | 207 | /** |
|
209 | 208 | * Return this widget's explicit or implicit orientation (true for LTR, false for RTL) |
|
210 | 209 | */ |
|
211 | 210 | isLeftToRight(): boolean; |
|
212 | 211 | |
|
213 | 212 | /** |
|
214 | 213 | * Return true if this widget can currently be focused |
|
215 | 214 | * and false if not |
|
216 | 215 | */ |
|
217 | 216 | isFocusable(): boolean; |
|
218 | 217 | |
|
219 | 218 | /** |
|
220 | 219 | * Place this widget somewhere in the DOM based |
|
221 | 220 | * on standard domConstruct.place() conventions. |
|
222 | 221 | */ |
|
223 | 222 | placeAt<T extends _WidgetBase>(reference: NodeFragmentOrString | T, position?: string | number): this; |
|
224 | 223 | |
|
225 | 224 | /** |
|
226 | 225 | * Wrapper to setTimeout to avoid deferred functions executing |
|
227 | 226 | * after the originating widget has been destroyed. |
|
228 | 227 | * Returns an object handle with a remove method (that returns null) (replaces clearTimeout). |
|
229 | 228 | */ |
|
230 | 229 | defer(fcn: Function, delay?: number): Handle; |
|
231 | 230 | } |
|
232 | 231 | |
|
233 | 232 | interface _WidgetBaseConstructor<W = _WidgetBase> extends DeclareConstructor<W> { |
|
234 | new(params: Object, srcNodeRef: NodeOrString): W; | |
|
233 | new(params: Object, srcNodeRef?: NodeOrString): W; | |
|
235 | 234 | } |
|
236 | 235 | |
|
237 | 236 | } |
|
238 | 237 | |
|
239 | 238 | type _WidgetBase = _WidgetBase._WidgetBase; |
|
240 | 239 | declare const _WidgetBase: _WidgetBase._WidgetBaseConstructor; |
|
241 | 240 | export = _WidgetBase; |
@@ -1,269 +1,269 | |||
|
1 | 1 | /* dojo/_base/Color */ |
|
2 | 2 | |
|
3 |
declare namespace |
|
|
3 | declare namespace Color { | |
|
4 | 4 | type ColorValue = [number, number, number]; |
|
5 | 5 | type ColorValueAlpha = [number, number, number, number]; |
|
6 | 6 | |
|
7 | 7 | interface ColorObject { |
|
8 | 8 | r: number; |
|
9 | 9 | g: number; |
|
10 | 10 | b: number; |
|
11 | 11 | a?: number; |
|
12 | 12 | } |
|
13 | 13 | |
|
14 | 14 | interface ColorNamed { |
|
15 | 15 | 'black': ColorValue; |
|
16 | 16 | 'silver': ColorValue; |
|
17 | 17 | 'gray': ColorValue; |
|
18 | 18 | 'white': ColorValue; |
|
19 | 19 | 'maroon': ColorValue; |
|
20 | 20 | 'red': ColorValue; |
|
21 | 21 | 'purple': ColorValue; |
|
22 | 22 | 'fuchsia': ColorValue; |
|
23 | 23 | 'green': ColorValue; |
|
24 | 24 | 'lime': ColorValue; |
|
25 | 25 | 'olive': ColorValue; |
|
26 | 26 | 'yellow': ColorValue; |
|
27 | 27 | 'navy': ColorValue; |
|
28 | 28 | 'blue': ColorValue; |
|
29 | 29 | 'teal': ColorValue; |
|
30 | 30 | 'aqua': ColorValue; |
|
31 | 31 | 'transparent': [number, number, number, number]; |
|
32 | 32 | } |
|
33 | 33 | |
|
34 | 34 | interface Color { |
|
35 | 35 | r: number; |
|
36 | 36 | g: number; |
|
37 | 37 | b: number; |
|
38 | 38 | a: number; |
|
39 | 39 | _set(r: number, g: number, b: number, a: number): void; |
|
40 | 40 | |
|
41 | 41 | /** Takes a named string, hex string, array of rgb or rgba values, |
|
42 | 42 | * an object with r, g, b, and a properties, or another `Color` object |
|
43 | 43 | * and sets this color instance to that value. |
|
44 | 44 | */ |
|
45 | 45 | setColor(color: ColorValue | ColorValueAlpha | ColorObject | string): Color; |
|
46 | 46 | |
|
47 | 47 | /** |
|
48 | 48 | * Ensures the object has correct attributes |
|
49 | 49 | */ |
|
50 | 50 | sanitize(): Color; |
|
51 | 51 | |
|
52 | 52 | /** |
|
53 | 53 | * Returns 3 component array of rgb values |
|
54 | 54 | */ |
|
55 | 55 | toRgb(): ColorValue; |
|
56 | 56 | |
|
57 | 57 | /** |
|
58 | 58 | * Returns a 4 component array of rgba values from the color represented by |
|
59 | 59 | * this object. |
|
60 | 60 | */ |
|
61 | 61 | toRgba(): ColorValueAlpha; |
|
62 | 62 | |
|
63 | 63 | /** |
|
64 | 64 | * Returns a CSS color string in hexadecimal representation |
|
65 | 65 | */ |
|
66 | 66 | toHex(): string; |
|
67 | 67 | |
|
68 | 68 | /** |
|
69 | 69 | * Returns a css color string in rgb(a) representation |
|
70 | 70 | */ |
|
71 | 71 | toCss(includeAlpha?: boolean): string; |
|
72 | 72 | |
|
73 | 73 | /** |
|
74 | 74 | * Returns a visual representation of the color |
|
75 | 75 | */ |
|
76 | 76 | toString(): string; |
|
77 | 77 | } |
|
78 | 78 | |
|
79 | 79 | interface ColorConstructor { |
|
80 | 80 | new(color: ColorValue | ColorValueAlpha | ColorObject | string): Color; |
|
81 | 81 | prototype: Color; |
|
82 | 82 | |
|
83 | 83 | /** |
|
84 | 84 | * Dictionary list of all CSS named colors, by name. Values are 3-item arrays with corresponding RG and B values. |
|
85 | 85 | */ |
|
86 | 86 | named: ColorNamed; |
|
87 | 87 | |
|
88 | 88 | /** |
|
89 | 89 | * Blend colors end and start with weight from 0 to 1, 0.5 being a 50/50 blend, |
|
90 | 90 | * can reuse a previously allocated Color object for the result |
|
91 | 91 | */ |
|
92 | 92 | blendColors(start: Color, end: Color, weight: number, obj?: Color): Color; |
|
93 | 93 | |
|
94 | 94 | /** |
|
95 | 95 | * Returns a `Color` instance from a string of the form |
|
96 | 96 | * "rgb(...)" or "rgba(...)". Optionally accepts a `Color` |
|
97 | 97 | * object to update with the parsed value and return instead of |
|
98 | 98 | * creating a new object. |
|
99 | 99 | */ |
|
100 | 100 | fromRgb(color: string, obj?: Color): Color; |
|
101 | 101 | |
|
102 | 102 | /** |
|
103 | 103 | * Converts a hex string with a '#' prefix to a color object. |
|
104 | 104 | * Supports 12-bit #rgb shorthand. Optionally accepts a |
|
105 | 105 | * `Color` object to update with the parsed value. |
|
106 | 106 | */ |
|
107 | 107 | fromHex(color: string, obj?: Color): Color; |
|
108 | 108 | |
|
109 | 109 | /** |
|
110 | 110 | * Builds a `Color` from a 3 or 4 element array, mapping each |
|
111 | 111 | * element in sequence to the rgb(a) values of the color. |
|
112 | 112 | */ |
|
113 | 113 | fromArray(color: ColorValue | ColorValueAlpha, obj?: Color): Color; |
|
114 | 114 | |
|
115 | 115 | /** |
|
116 | 116 | * Parses `str` for a color value. Accepts hex, rgb, and rgba |
|
117 | 117 | * style color values. |
|
118 | 118 | */ |
|
119 | 119 | fromString(str: string, obj?: Color): Color; |
|
120 | 120 | } |
|
121 | 121 | |
|
122 | 122 | /* dojo/colors */ |
|
123 | 123 | |
|
124 | 124 | interface ColorNamed { |
|
125 | 125 | 'aliceblue': ColorValue; |
|
126 | 126 | 'antiquewhite': ColorValue; |
|
127 | 127 | 'aquamarine': ColorValue; |
|
128 | 128 | 'azure': ColorValue; |
|
129 | 129 | 'beige': ColorValue; |
|
130 | 130 | 'bisque': ColorValue; |
|
131 | 131 | 'blanchedalmond': ColorValue; |
|
132 | 132 | 'blueviolet': ColorValue; |
|
133 | 133 | 'brown': ColorValue; |
|
134 | 134 | 'burlywood': ColorValue; |
|
135 | 135 | 'cadetblue': ColorValue; |
|
136 | 136 | 'chartreuse': ColorValue; |
|
137 | 137 | 'chocolate': ColorValue; |
|
138 | 138 | 'coral': ColorValue; |
|
139 | 139 | 'cornflowerblue': ColorValue; |
|
140 | 140 | 'cornsilk': ColorValue; |
|
141 | 141 | 'crimson': ColorValue; |
|
142 | 142 | 'cyan': ColorValue; |
|
143 | 143 | 'darkblue': ColorValue; |
|
144 | 144 | 'darkcyan': ColorValue; |
|
145 | 145 | 'darkgoldenrod': ColorValue; |
|
146 | 146 | 'darkgray': ColorValue; |
|
147 | 147 | 'darkgreen': ColorValue; |
|
148 | 148 | 'darkgrey': ColorValue; |
|
149 | 149 | 'darkkhaki': ColorValue; |
|
150 | 150 | 'darkmagenta': ColorValue; |
|
151 | 151 | 'darkolivegreen': ColorValue; |
|
152 | 152 | 'darkorange': ColorValue; |
|
153 | 153 | 'darkorchid': ColorValue; |
|
154 | 154 | 'darkred': ColorValue; |
|
155 | 155 | 'darksalmon': ColorValue; |
|
156 | 156 | 'darkseagreen': ColorValue; |
|
157 | 157 | 'darkslateblue': ColorValue; |
|
158 | 158 | 'darkslategray': ColorValue; |
|
159 | 159 | 'darkslategrey': ColorValue; |
|
160 | 160 | 'darkturquoise': ColorValue; |
|
161 | 161 | 'darkviolet': ColorValue; |
|
162 | 162 | 'deeppink': ColorValue; |
|
163 | 163 | 'deepskyblue': ColorValue; |
|
164 | 164 | 'dimgray': ColorValue; |
|
165 | 165 | 'dimgrey': ColorValue; |
|
166 | 166 | 'dodgerblue': ColorValue; |
|
167 | 167 | 'firebrick': ColorValue; |
|
168 | 168 | 'floralwhite': ColorValue; |
|
169 | 169 | 'forestgreen': ColorValue; |
|
170 | 170 | 'gainsboro': ColorValue; |
|
171 | 171 | 'ghostwhite': ColorValue; |
|
172 | 172 | 'gold': ColorValue; |
|
173 | 173 | 'goldenrod': ColorValue; |
|
174 | 174 | 'greenyellow': ColorValue; |
|
175 | 175 | 'grey': ColorValue; |
|
176 | 176 | 'honeydew': ColorValue; |
|
177 | 177 | 'hotpink': ColorValue; |
|
178 | 178 | 'indianred': ColorValue; |
|
179 | 179 | 'indigo': ColorValue; |
|
180 | 180 | 'ivory': ColorValue; |
|
181 | 181 | 'khaki': ColorValue; |
|
182 | 182 | 'lavender': ColorValue; |
|
183 | 183 | 'lavenderblush': ColorValue; |
|
184 | 184 | 'lawngreen': ColorValue; |
|
185 | 185 | 'lemonchiffon': ColorValue; |
|
186 | 186 | 'lightblue': ColorValue; |
|
187 | 187 | 'lightcoral': ColorValue; |
|
188 | 188 | 'lightcyan': ColorValue; |
|
189 | 189 | 'lightgoldenrodyellow': ColorValue; |
|
190 | 190 | 'lightgray': ColorValue; |
|
191 | 191 | 'lightgreen': ColorValue; |
|
192 | 192 | 'lightgrey': ColorValue; |
|
193 | 193 | 'lightpink': ColorValue; |
|
194 | 194 | 'lightsalmon': ColorValue; |
|
195 | 195 | 'lightseagreen': ColorValue; |
|
196 | 196 | 'lightskyblue': ColorValue; |
|
197 | 197 | 'lightslategray': ColorValue; |
|
198 | 198 | 'lightslategrey': ColorValue; |
|
199 | 199 | 'lightsteelblue': ColorValue; |
|
200 | 200 | 'lightyellow': ColorValue; |
|
201 | 201 | 'limegreen': ColorValue; |
|
202 | 202 | 'linen': ColorValue; |
|
203 | 203 | 'magenta': ColorValue; |
|
204 | 204 | 'mediumaquamarine': ColorValue; |
|
205 | 205 | 'mediumblue': ColorValue; |
|
206 | 206 | 'mediumorchid': ColorValue; |
|
207 | 207 | 'mediumpurple': ColorValue; |
|
208 | 208 | 'mediumseagreen': ColorValue; |
|
209 | 209 | 'mediumslateblue': ColorValue; |
|
210 | 210 | 'mediumspringgreen': ColorValue; |
|
211 | 211 | 'mediumturquoise': ColorValue; |
|
212 | 212 | 'mediumvioletred': ColorValue; |
|
213 | 213 | 'midnightblue': ColorValue; |
|
214 | 214 | 'mintcream': ColorValue; |
|
215 | 215 | 'mistyrose': ColorValue; |
|
216 | 216 | 'moccasin': ColorValue; |
|
217 | 217 | 'navajowhite': ColorValue; |
|
218 | 218 | 'oldlace': ColorValue; |
|
219 | 219 | 'olivedrab': ColorValue; |
|
220 | 220 | 'orange': ColorValue; |
|
221 | 221 | 'orangered': ColorValue; |
|
222 | 222 | 'orchid': ColorValue; |
|
223 | 223 | 'palegoldenrod': ColorValue; |
|
224 | 224 | 'palegreen': ColorValue; |
|
225 | 225 | 'paleturquoise': ColorValue; |
|
226 | 226 | 'palevioletred': ColorValue; |
|
227 | 227 | 'papayawhip': ColorValue; |
|
228 | 228 | 'peachpuff': ColorValue; |
|
229 | 229 | 'peru': ColorValue; |
|
230 | 230 | 'pink': ColorValue; |
|
231 | 231 | 'plum': ColorValue; |
|
232 | 232 | 'powderblue': ColorValue; |
|
233 | 233 | 'rosybrown': ColorValue; |
|
234 | 234 | 'royalblue': ColorValue; |
|
235 | 235 | 'saddlebrown': ColorValue; |
|
236 | 236 | 'salmon': ColorValue; |
|
237 | 237 | 'sandybrown': ColorValue; |
|
238 | 238 | 'seagreen': ColorValue; |
|
239 | 239 | 'seashell': ColorValue; |
|
240 | 240 | 'sienna': ColorValue; |
|
241 | 241 | 'skyblue': ColorValue; |
|
242 | 242 | 'slateblue': ColorValue; |
|
243 | 243 | 'slategray': ColorValue; |
|
244 | 244 | 'slategrey': ColorValue; |
|
245 | 245 | 'snow': ColorValue; |
|
246 | 246 | 'springgreen': ColorValue; |
|
247 | 247 | 'steelblue': ColorValue; |
|
248 | 248 | 'tan': ColorValue; |
|
249 | 249 | 'thistle': ColorValue; |
|
250 | 250 | 'tomato': ColorValue; |
|
251 | 251 | 'turquoise': ColorValue; |
|
252 | 252 | 'violet': ColorValue; |
|
253 | 253 | 'wheat': ColorValue; |
|
254 | 254 | 'whitesmoke': ColorValue; |
|
255 | 255 | 'yellowgreen': ColorValue; |
|
256 | 256 | } |
|
257 | 257 | |
|
258 | 258 | interface ColorConstructor { |
|
259 | 259 | /** |
|
260 | 260 | * creates a greyscale color with an optional alpha |
|
261 | 261 | */ |
|
262 | 262 | makeGrey(g: number, a?: number): Color; |
|
263 | 263 | } |
|
264 | 264 | |
|
265 | 265 | } |
|
266 | 266 | |
|
267 |
type |
|
|
268 |
declare const |
|
|
269 |
export = |
|
|
267 | type Color = Color.Color; | |
|
268 | declare const Color: Color.ColorConstructor; | |
|
269 | export = Color; |
@@ -1,100 +1,101 | |||
|
1 | 1 | import DojoPromise = require("../promise/Promise"); |
|
2 | 2 | import { PromiseCallback, PromiseErrback, PromiseProgback } from "../promise/Promise"; |
|
3 | import declare = require("./declare"); | |
|
3 | 4 | |
|
4 | 5 | /* dojo/_base/Deferred */ |
|
5 | 6 | |
|
6 | 7 | interface Deferred<T> { |
|
7 | 8 | |
|
8 | 9 | promise: DojoPromise<T>; |
|
9 | 10 | |
|
10 | 11 | /** |
|
11 | 12 | * Checks whether the deferred has been resolved. |
|
12 | 13 | */ |
|
13 | 14 | isResolved(): boolean; |
|
14 | 15 | |
|
15 | 16 | /** |
|
16 | 17 | * Checks whether the deferred has been rejected. |
|
17 | 18 | */ |
|
18 | 19 | isRejected(): boolean; |
|
19 | 20 | |
|
20 | 21 | /** |
|
21 | 22 | * Checks whether the deferred has been resolved or rejected. |
|
22 | 23 | */ |
|
23 | 24 | isFulfilled(): boolean; |
|
24 | 25 | |
|
25 | 26 | /** |
|
26 | 27 | * Checks whether the deferred has been canceled. |
|
27 | 28 | */ |
|
28 | 29 | isCanceled(): boolean; |
|
29 | 30 | |
|
30 | 31 | /** |
|
31 | 32 | * Emit a progress update on the deferred. |
|
32 | 33 | */ |
|
33 | 34 | progress(update: any, strict?: boolean): DojoPromise<T>; |
|
34 | 35 | |
|
35 | 36 | /** |
|
36 | 37 | * Resolve the deferred. |
|
37 | 38 | */ |
|
38 | 39 | resolve(value?: T, strict?: boolean): DojoPromise<T>; |
|
39 | 40 | |
|
40 | 41 | /** |
|
41 | 42 | * Reject the deferred. |
|
42 | 43 | */ |
|
43 | 44 | reject(error?: any, strict?: boolean): DojoPromise<T>; |
|
44 | 45 | |
|
45 | 46 | /** |
|
46 | 47 | * The results of the Deferred |
|
47 | 48 | */ |
|
48 | 49 | results: [T, any]; |
|
49 | 50 | |
|
50 | 51 | /** |
|
51 | 52 | * Adds callback and error callback for this deferred instance. |
|
52 | 53 | */ |
|
53 | 54 | addCallbacks<U1, U2 = never>(callback?: PromiseCallback<T, U1>, errback?: PromiseErrback<U2>): Deferred<U1 | U2>; |
|
54 | 55 | |
|
55 | 56 | /** |
|
56 | 57 | * Add new callbacks to the deferred. |
|
57 | 58 | */ |
|
58 | 59 | then<U1, U2 = never>(callback?: PromiseCallback<T, U1>, errback?: PromiseErrback<U2>, progback?: PromiseProgback): DojoPromise<U1 | U2>; |
|
59 | 60 | |
|
60 | 61 | /** |
|
61 | 62 | * Cancels the asynchronous operation |
|
62 | 63 | */ |
|
63 | 64 | cancel(): void; |
|
64 | 65 | |
|
65 | 66 | /** |
|
66 | 67 | * Adds successful callback for this deferred instance. |
|
67 | 68 | */ |
|
68 | 69 | addCallback<U>(callback: PromiseCallback<T, U>): Deferred<U>; |
|
69 | 70 | |
|
70 | 71 | /** |
|
71 | 72 | * Adds error callback for this deferred instance. |
|
72 | 73 | */ |
|
73 | 74 | addErrback<U>(errback: PromiseErrback<U>): Deferred<U>; |
|
74 | 75 | |
|
75 | 76 | /** |
|
76 | 77 | * Add handler as both successful callback and error callback for this deferred instance. |
|
77 | 78 | */ |
|
78 | 79 | addBoth<U>(callback?: PromiseErrback<U>): Deferred<U>; |
|
79 | 80 | |
|
80 | 81 | fired: number; |
|
81 | 82 | } |
|
82 | 83 | |
|
83 | 84 | interface DeferredConstructor { |
|
84 | 85 | /** |
|
85 | 86 | * Deprecated. This module defines the legacy dojo/_base/Deferred API. |
|
86 | 87 | * New code should use dojo/Deferred instead. |
|
87 | 88 | */ |
|
88 | 89 | new <T>(canceller?: (reason: any) => void): Deferred<T>; |
|
89 | 90 | |
|
90 | 91 | prototype: Deferred<any>; |
|
91 | 92 | |
|
92 | 93 | /** |
|
93 | 94 | * Transparently applies callbacks to values and/or promises. |
|
94 | 95 | */ |
|
95 | 96 | when<T>(valueOrPromise: any): Deferred<T>; |
|
96 | 97 | when<T, U1, U2 = never>(valueOrPromise: any, callback?: PromiseCallback<T, U1>, errback?: PromiseErrback<U2>, progback?: PromiseProgback): Deferred<U1 | U2>; |
|
97 | 98 | } |
|
98 | 99 | |
|
99 | 100 | declare const Deferred: DeferredConstructor; |
|
100 | 101 | export = Deferred; No newline at end of file |
@@ -1,55 +1,51 | |||
|
1 | 1 | import { GenericConstructor } from "../interfaces"; |
|
2 | 2 | |
|
3 | 3 | /* dojo/_base/array */ |
|
4 | interface DojoArray { | |
|
4 | ||
|
5 | 5 |
|
|
6 | 6 |
|
|
7 | 7 |
|
|
8 | 8 |
|
|
9 | 9 |
|
|
10 | 10 |
|
|
11 | 11 |
|
|
12 |
|
|
|
12 | export function every<T>(arr: T[] | string, callback: string | ((item: T, idx: number, arr: T[]) => boolean), thisObj?: Object): boolean; | |
|
13 | 13 | |
|
14 | 14 |
|
|
15 | 15 |
|
|
16 | 16 |
|
|
17 |
|
|
|
17 | export function some<T>(arr: T[] | string, callback: string | ((item: T, idx: number, arr: T[]) => boolean), thisObj?: Object): boolean; | |
|
18 | 18 | |
|
19 | 19 |
|
|
20 | 20 |
|
|
21 | 21 |
|
|
22 | 22 |
|
|
23 | 23 |
|
|
24 | 24 |
|
|
25 |
|
|
|
25 | export function indexOf<T>(arr: T[], value: T, fromIndex?: number, findLast?: boolean): number; | |
|
26 | 26 | |
|
27 | 27 |
|
|
28 | 28 |
|
|
29 | 29 |
|
|
30 | 30 |
|
|
31 |
|
|
|
31 | export function lastIndexOf<T>(arr: T[], value: T, fromIndex?: number): number; | |
|
32 | 32 | |
|
33 | 33 |
|
|
34 | 34 |
|
|
35 | 35 |
|
|
36 | 36 |
|
|
37 |
|
|
|
37 | export function forEach<T>(arr: T[], callback: string | ((item: T, idx: number, arr: T[]) => void), thisObj?: Object): void; | |
|
38 | 38 | |
|
39 | 39 |
|
|
40 | 40 |
|
|
41 | 41 |
|
|
42 | 42 |
|
|
43 |
|
|
|
43 | export function map<T, U>(arr: T[] | string, callback: string | ((item: T, idx: number, arr: T[]) => U), thisObj?: Object, Ctr?: GenericConstructor<U[]>): U[]; | |
|
44 | 44 | |
|
45 | 45 |
|
|
46 | 46 |
|
|
47 | 47 |
|
|
48 | 48 |
|
|
49 |
|
|
|
49 | export function filter<T>(arr: T[], callback: string | ((item: T, idx: number, arr: T[]) => boolean), thisObj?: Object): T[]; | |
|
50 | 50 | |
|
51 |
|
|
|
52 | } | |
|
53 | ||
|
54 | declare const dojoArray: DojoArray; | |
|
55 | export = dojoArray; | |
|
51 | export function clearCache(): void; |
@@ -1,13 +1,13 | |||
|
1 | 1 | import "../ready"; |
|
2 | 2 | import dojo = require("./kernel"); |
|
3 | 3 | import "./connect"; // until we decide if connect is going back into non-browser environments |
|
4 | 4 | import "./unload"; |
|
5 | 5 | import "./window"; |
|
6 | 6 | import "./event"; |
|
7 | 7 | import "./html"; |
|
8 | 8 | import "./NodeList"; |
|
9 | 9 | import"../query"; |
|
10 | 10 | import "./xhr"; |
|
11 | 11 | import "./fx"; |
|
12 | 12 | |
|
13 | export = dojo; No newline at end of file | |
|
13 | export = dojo; |
@@ -1,151 +1,154 | |||
|
1 | 1 | import { ColorValue, ColorValueAlpha } from "./Color"; |
|
2 | 2 | import { HasCache } from "../has"; |
|
3 | ||
|
4 | declare namespace config { | |
|
3 | 5 | interface Config { |
|
4 | 6 | /** Defaults to `false`. If set to `true`, ensures that Dojo provides |
|
5 | 7 | * extended debugging feedback via Firebug. If Firebug is not available |
|
6 | 8 | * on your platform, setting `isDebug` to `true` will force Dojo to |
|
7 | 9 | * pull in (and display) the version of Firebug Lite which is |
|
8 | 10 | * integrated into the Dojo distribution, thereby always providing a |
|
9 | 11 | * debugging/logging console when `isDebug` is enabled. Note that |
|
10 | 12 | * Firebug's `console.*` methods are ALWAYS defined by Dojo. If |
|
11 | 13 | * `isDebug` is false and you are on a platform without Firebug, these |
|
12 | 14 | * methods will be defined as no-ops. |
|
13 | 15 | */ |
|
14 | 16 | isDebug: boolean; |
|
15 | 17 | |
|
16 | 18 | /** |
|
17 | 19 | * The locale to assume for loading localized resources in this page, |
|
18 | 20 | * specified according to [RFC 3066](http://www.ietf.org/rfc/rfc3066.txt). |
|
19 | 21 | * Must be specified entirely in lowercase, e.g. `en-us` and `zh-cn`. |
|
20 | 22 | * See the documentation for `dojo.i18n` and `dojo.requireLocalization` |
|
21 | 23 | * for details on loading localized resources. If no locale is specified, |
|
22 | 24 | * Dojo assumes the locale of the user agent, according to `navigator.userLanguage` |
|
23 | 25 | * or `navigator.language` properties. |
|
24 | 26 | */ |
|
25 | 27 | locale: string; |
|
26 | 28 | |
|
27 | 29 | /** |
|
28 | 30 | * No default value. Specifies additional locales whose |
|
29 | 31 | * resources should also be loaded alongside the default locale when |
|
30 | 32 | * calls to `dojo.requireLocalization()` are processed. |
|
31 | 33 | */ |
|
32 | 34 | extraLocale: string[]; |
|
33 | 35 | |
|
34 | 36 | /** |
|
35 | 37 | * The directory in which `dojo.js` is located. Under normal |
|
36 | 38 | * conditions, Dojo auto-detects the correct location from which it |
|
37 | 39 | * was loaded. You may need to manually configure `baseUrl` in cases |
|
38 | 40 | * where you have renamed `dojo.js` or in which `<base>` tags confuse |
|
39 | 41 | * some browsers (e.g. IE 6). The variable `dojo.baseUrl` is assigned |
|
40 | 42 | * either the value of `djConfig.baseUrl` if one is provided or the |
|
41 | 43 | * auto-detected root if not. Other modules are located relative to |
|
42 | 44 | * this path. The path should end in a slash. |
|
43 | 45 | */ |
|
44 | 46 | baseUrl: string; |
|
45 | 47 | |
|
46 | 48 | /** |
|
47 | 49 | * A map of module names to paths relative to `dojo.baseUrl`. The |
|
48 | 50 | * key/value pairs correspond directly to the arguments which |
|
49 | 51 | * `dojo.registerModulePath` accepts. Specifying |
|
50 | 52 | * `djConfig.modulePaths = { "foo": "../../bar" }` is the equivalent |
|
51 | 53 | * of calling `dojo.registerModulePath("foo", "../../bar");`. Multiple |
|
52 | 54 | * modules may be configured via `djConfig.modulePaths`. |
|
53 | 55 | */ |
|
54 | 56 | modulePaths: { [mid: string]: string }; |
|
55 | 57 | |
|
56 | 58 | /** |
|
57 | 59 | * Adds a callback via dojo/ready. Useful when Dojo is added after |
|
58 | 60 | * the page loads and djConfig.afterOnLoad is true. Supports the same |
|
59 | 61 | * arguments as dojo/ready. When using a function reference, use |
|
60 | 62 | * `djConfig.addOnLoad = function(){};`. For object with function name use |
|
61 | 63 | * `djConfig.addOnLoad = [myObject, "functionName"];` and for object with |
|
62 | 64 | * function reference use |
|
63 | 65 | * `djConfig.addOnLoad = [myObject, function(){}];` |
|
64 | 66 | */ |
|
65 | 67 | addOnLoad: () => void | [any, string]; |
|
66 | 68 | |
|
67 | 69 | /** |
|
68 | 70 | * Run the parser after the page is loaded |
|
69 | 71 | */ |
|
70 | 72 | parseOnLoad: boolean; |
|
71 | 73 | |
|
72 | 74 | /** |
|
73 | 75 | * An array of module names to be loaded immediately after dojo.js has been included |
|
74 | 76 | * in a page. |
|
75 | 77 | */ |
|
76 | 78 | require: string[]; |
|
77 | 79 | |
|
78 | 80 | /** |
|
79 | 81 | * Default duration, in milliseconds, for wipe and fade animations within dijits. |
|
80 | 82 | * Assigned to dijit.defaultDuration. |
|
81 | 83 | */ |
|
82 | 84 | defaultDuration: number; |
|
83 | 85 | |
|
84 | 86 | /** |
|
85 | 87 | * Used by some modules to configure an empty iframe. Used by dojo/io/iframe and |
|
86 | 88 | * dojo/back, and dijit/popup support in IE where an iframe is needed to make sure native |
|
87 | 89 | * controls do not bleed through the popups. Normally this configuration variable |
|
88 | 90 | * does not need to be set, except when using cross-domain/CDN Dojo builds. |
|
89 | 91 | * Save dojo/resources/blank.html to your domain and set `djConfig.dojoBlankHtmlUrl` |
|
90 | 92 | * to the path on your domain your copy of blank.html. |
|
91 | 93 | */ |
|
92 | 94 | dojoBlankHtmlUrl: string; |
|
93 | 95 | |
|
94 | 96 | /** |
|
95 | 97 | * Set this to true to enable publishing of topics for the different phases of |
|
96 | 98 | * IO operations. Publishing is done via dojo/topic.publish(). See dojo/main.__IoPublish for a list |
|
97 | 99 | * of topics that are published. |
|
98 | 100 | */ |
|
99 | 101 | ioPublish: boolean; |
|
100 | 102 | |
|
101 | 103 | /** |
|
102 | 104 | * If set to a value that evaluates to true such as a string or array and |
|
103 | 105 | * isDebug is true and Firebug is not available or running, then it bypasses |
|
104 | 106 | * the creation of Firebug Lite allowing you to define your own console object. |
|
105 | 107 | */ |
|
106 | 108 | useCustomLogger: any; |
|
107 | 109 | |
|
108 | 110 | /** |
|
109 | 111 | * Array containing the r, g, b components used as transparent color in dojo.Color; |
|
110 | 112 | * if undefined, ColorValue (white) will be used. |
|
111 | 113 | */ |
|
112 | 114 | transparentColor: ColorValue | ColorValueAlpha; |
|
113 | 115 | |
|
114 | 116 | /** |
|
115 | 117 | * Defines dependencies to be used before the loader has been loaded. |
|
116 | 118 | * When provided, they cause the loader to execute require(deps, callback) |
|
117 | 119 | * once it has finished loading. Should be used with callback. |
|
118 | 120 | */ |
|
119 | 121 | deps: () => string[] | string[]; |
|
120 | 122 | |
|
121 | 123 | /** |
|
122 | 124 | * Defines the cached has API variables |
|
123 | 125 | */ |
|
124 | 126 | hasCache: HasCache; |
|
125 | 127 | |
|
126 | 128 | /** |
|
127 | 129 | * Defines a callback to be used when dependencies are defined before |
|
128 | 130 | * the loader has been loaded. When provided, they cause the loader to |
|
129 | 131 | * execute require(deps, callback) once it has finished loading. |
|
130 | 132 | */ |
|
131 | 133 | callback: (...args: any[]) => void; |
|
132 | 134 | |
|
133 | 135 | /** |
|
134 | 136 | * Whether deferred instrumentation should be loaded or included |
|
135 | 137 | * in builds. |
|
136 | 138 | */ |
|
137 | 139 | deferredInstrumentation: boolean; |
|
138 | 140 | |
|
139 | 141 | /** |
|
140 | 142 | * Whether the deferred instrumentation should be used. |
|
141 | 143 | * |
|
142 | 144 | * * `"report-rejections"`: report each rejection as it occurs. |
|
143 | 145 | * * `true` or `1` or `"report-unhandled-rejections"`: wait 1 second |
|
144 | 146 | * in an attempt to detect unhandled rejections. |
|
145 | 147 | */ |
|
146 | 148 | useDeferredInstrumentation: string | boolean | number; |
|
147 | 149 | } |
|
148 | 150 | |
|
149 | type dojoConfig = Config; | |
|
150 | declare const dojoConfig: Config; | |
|
151 | export = dojoConfig; No newline at end of file | |
|
151 | } | |
|
152 | ||
|
153 | declare const config: config.Config; | |
|
154 | export = config; |
@@ -1,49 +1,47 | |||
|
1 | 1 | import { Handle } from "../interfaces"; |
|
2 | 2 | |
|
3 | interface Connect { | |
|
4 | 3 |
|
|
5 | 4 |
|
|
6 | 5 |
|
|
7 |
|
|
|
6 | export function _keypress(object: any, listener: EventListener): Handle; | |
|
8 | 7 | |
|
9 | 8 |
|
|
10 | 9 |
|
|
11 | 10 |
|
|
12 | 11 |
|
|
13 | 12 |
|
|
14 | 13 |
|
|
15 | 14 |
|
|
16 |
|
|
|
17 |
|
|
|
15 | export function connect(obj: any, event: string, context: any, method: EventListener | string, dontFix?: boolean): Handle; | |
|
16 | export function connect(event: string, context: any, method: EventListener | string, dontFix?: boolean): Handle; | |
|
18 | 17 | |
|
19 | 18 |
|
|
20 | 19 |
|
|
21 | 20 |
|
|
22 |
|
|
|
21 | export function disconnect(handle: Handle): void; | |
|
23 | 22 | |
|
24 | 23 |
|
|
25 | 24 |
|
|
26 | 25 |
|
|
27 | 26 |
|
|
28 | 27 |
|
|
29 |
|
|
|
28 | export function subscribe(topic: string, context: any, method: EventListener): Handle; | |
|
30 | 29 | |
|
31 | 30 |
|
|
32 | 31 |
|
|
33 | 32 |
|
|
34 |
|
|
|
33 | export function publish(topic: string, args: any[]): boolean; | |
|
35 | 34 | |
|
36 | 35 |
|
|
37 | 36 |
|
|
38 | 37 |
|
|
39 | 38 |
|
|
40 | 39 |
|
|
41 | 40 |
|
|
42 |
|
|
|
43 |
|
|
|
41 | export function connectPublisher(topic: string, obj: any, method: string): Handle; | |
|
42 | export function connectPublisher(topic: string, method: EventListener): Handle; | |
|
44 | 43 | |
|
45 | 44 |
|
|
46 | 45 |
|
|
47 | 46 |
|
|
48 |
|
|
|
49 | } No newline at end of file | |
|
47 | export function isCopyKey(e: Event): boolean; |
@@ -1,140 +1,138 | |||
|
1 | declare namespace declare { | |
|
2 | /* dojo/_base/declare */ | |
|
1 | declare module "./kernel" { | |
|
2 | interface Dojo { | |
|
3 | declare: declare.Declare; | |
|
4 | safeMixin: typeof declare.safeMixin; | |
|
5 | } | |
|
6 | } | |
|
3 | 7 | |
|
4 | /** | |
|
5 | * dojo/_base/declare() returns a constructor `C`. `new C()` returns an Object with the following | |
|
6 | * methods, in addition to the methods and properties specified via the arguments passed to declare(). | |
|
7 | */ | |
|
8 | declare namespace declare { | |
|
8 | 9 | interface DeclareCreatedObject { |
|
9 | 10 | declaredClass: string; |
|
10 | 11 | |
|
11 | 12 | /** |
|
12 | 13 | * Calls a super method. |
|
13 | 14 | * |
|
14 | 15 | * This method is used inside method of classes produced with |
|
15 | 16 | * declare() to call a super method (next in the chain). It is |
|
16 | 17 | * used for manually controlled chaining. Consider using the regular |
|
17 | 18 | * chaining, because it is faster. Use "this.inherited()" only in |
|
18 | 19 | * complex cases. |
|
19 | 20 | * |
|
20 | 21 | * This method cannot me called from automatically chained |
|
21 | 22 | * constructors including the case of a special (legacy) |
|
22 | 23 | * constructor chaining. It cannot be called from chained methods. |
|
23 | 24 | * |
|
24 | 25 | * If "this.inherited()" cannot find the next-in-chain method, it |
|
25 | 26 | * does nothing and returns "undefined". The last method in chain |
|
26 | 27 | * can be a default method implemented in Object, which will be |
|
27 | 28 | * called last. |
|
28 | 29 | * |
|
29 | 30 | * If "name" is specified, it is assumed that the method that |
|
30 | 31 | * received "args" is the parent method for this call. It is looked |
|
31 | 32 | * up in the chain list and if it is found the next-in-chain method |
|
32 | 33 | * is called. If it is not found, the first-in-chain method is |
|
33 | 34 | * called. |
|
34 | 35 | * |
|
35 | 36 | * If "name" is not specified, it will be derived from the calling |
|
36 | 37 | * method (using a methoid property "nom"). |
|
37 | 38 | */ |
|
38 | 39 | inherited<U>(args: IArguments, newArgs?: any[]): U; |
|
39 | 40 | inherited(args: IArguments, newArgs?: true): Function | void; |
|
40 | 41 | inherited<U>(name: string, args: IArguments, newArgs?: any[]): U; |
|
41 | 42 | inherited(name: string, args: IArguments, newArgs?: true): Function | void; |
|
42 | 43 | |
|
43 | 44 | /** |
|
44 | 45 | * Returns a super method. |
|
45 | 46 | * |
|
46 | 47 | * This method is a convenience method for "this.inherited()". |
|
47 | 48 | * It uses the same algorithm but instead of executing a super |
|
48 | 49 | * method, it returns it, or "undefined" if not found. |
|
49 | 50 | */ |
|
50 | 51 | getInherited(args: IArguments): Function | void; |
|
51 | 52 | getInherited(name: string, args: IArguments): Function | void; |
|
52 | 53 | |
|
53 | 54 | /** |
|
54 | 55 | * Checks the inheritance chain to see if it is inherited from this class. |
|
55 | 56 | * |
|
56 | 57 | * This method is used with instances of classes produced with |
|
57 | 58 | * declare() to determine of they support a certain interface or |
|
58 | 59 | * not. It models "instanceof" operator. |
|
59 | 60 | */ |
|
60 | 61 | isInstanceOf(cls: any): boolean; |
|
61 | 62 | } |
|
62 | 63 | |
|
63 | 64 | interface DeclareConstructor<T> { |
|
64 | 65 | new(...args: any[]): T & DeclareCreatedObject; |
|
65 | 66 | prototype: T; |
|
66 | 67 | |
|
67 | 68 | /** |
|
68 | 69 | * Adds all properties and methods of source to constructor's |
|
69 | 70 | * prototype, making them available to all instances created with |
|
70 | 71 | * constructor. This method is specific to constructors created with |
|
71 | 72 | * declare(). |
|
72 | 73 | * |
|
73 | 74 | * Adds source properties to the constructor's prototype. It can |
|
74 | 75 | * override existing properties. |
|
75 | 76 | * |
|
76 | 77 | * This method is similar to dojo.extend function, but it is specific |
|
77 | 78 | * to constructors produced by declare(). It is implemented |
|
78 | 79 | * using dojo.safeMixin, and it skips a constructor property, |
|
79 | 80 | * and properly decorates copied functions. |
|
80 | 81 | */ |
|
81 | 82 | extend<U>(source: U): DeclareConstructor<T & U>; |
|
82 | 83 | |
|
83 | 84 | /** |
|
84 | 85 | * Create a subclass of the declared class from a list of base classes. |
|
85 | 86 | * |
|
86 | 87 | * Create a constructor using a compact notation for inheritance and |
|
87 | 88 | * prototype extension. |
|
88 | 89 | * |
|
89 | 90 | * Mixin ancestors provide a type of multiple inheritance. |
|
90 | 91 | * Prototypes of mixin ancestors are copied to the new class: |
|
91 | 92 | * changes to mixin prototypes will not affect classes to which |
|
92 | 93 | * they have been mixed in. |
|
93 | 94 | */ |
|
94 | 95 | createSubclass<U, V, X>(mixins: [DeclareConstructor<U>, DeclareConstructor<V>], props: X): DeclareConstructor<T & U & V & X>; |
|
95 | 96 | createSubclass<U, V>(mixins: [DeclareConstructor<U>], props: V): DeclareConstructor<T & U & V>; |
|
96 | 97 | createSubclass<U, V>(mixins: DeclareConstructor<U>, props: V): DeclareConstructor<T & U & V>; |
|
97 | 98 | createSubclass<U>(mixins: [DeclareConstructor<U>]): DeclareConstructor<T & U>; |
|
98 | 99 | createSubclass<U>(mixins: DeclareConstructor<U>): DeclareConstructor<T & U>; |
|
99 | 100 | createSubclass<U>(mixins: any, props: U): DeclareConstructor<T & U>; |
|
100 | 101 | } |
|
101 | 102 | |
|
102 | /** | |
|
103 | * Create a feature-rich constructor from compact notation. | |
|
104 | */ | |
|
105 | 103 | interface Declare { |
|
106 | 104 | <A, B, C, D>(superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>, DeclareConstructor<D>]): DeclareConstructor<A & B & C & D>; |
|
107 | 105 | <A, B, C>(superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>]): DeclareConstructor<A & B & C>; |
|
108 | 106 | <A, B>(superClass: [DeclareConstructor<A>, DeclareConstructor<B>]): DeclareConstructor<A & B>; |
|
109 | 107 | <A>(superClass: DeclareConstructor<A> | [DeclareConstructor<A>]): DeclareConstructor<A>; |
|
110 | 108 | |
|
111 | 109 | <A, B, C, D, E>(superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>, DeclareConstructor<D>], props: E): DeclareConstructor<A & B & C & D & E>; |
|
112 | 110 | <A, B, C, D>(superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>], props: D): DeclareConstructor<A & B & C & D>; |
|
113 | 111 | <A, B, C>(superClass: [DeclareConstructor<A>, DeclareConstructor<B>], props: C): DeclareConstructor<A & B & C>; |
|
114 | 112 | <A, B>(superClass: DeclareConstructor<A> | [DeclareConstructor<A>], props: B): DeclareConstructor<A & B>; |
|
115 | 113 | |
|
116 | 114 | <A, B, C, D>(className: string, superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>, DeclareConstructor<D>]): DeclareConstructor<A & B & C & D>; |
|
117 | 115 | <A, B, C>(className: string, superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>]): DeclareConstructor<A & B & C>; |
|
118 | 116 | <A, B>(className: string, superClass: [DeclareConstructor<A>, DeclareConstructor<B>]): DeclareConstructor<A & B>; |
|
119 | 117 | <A>(className: string, superClass: DeclareConstructor<A> | [DeclareConstructor<A>]): DeclareConstructor<A>; |
|
120 | 118 | |
|
121 | 119 | <A, B, C, D, E>(className: string, superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>, DeclareConstructor<D>], props: E): DeclareConstructor<A & B & C & D & E>; |
|
122 | 120 | <A, B, C, D>(className: string, superClass: [DeclareConstructor<A>, DeclareConstructor<B>, DeclareConstructor<C>], props: D): DeclareConstructor<A & B & C & D>; |
|
123 | 121 | <A, B, C>(className: string, superClass: [DeclareConstructor<A>, DeclareConstructor<B>], props: C): DeclareConstructor<A & B & C>; |
|
124 | 122 | <A, B>(className: string, superClass: DeclareConstructor<A> | [DeclareConstructor<A>], props: B): DeclareConstructor<A & B>; |
|
125 | 123 | |
|
126 | 124 | <A>(className: string, superClass: any, props: A): DeclareConstructor<A>; |
|
127 | 125 | (className: string, superClass: any): DeclareConstructor<any>; |
|
128 | 126 | <A>(superClass: any, props: A): DeclareConstructor<A>; |
|
129 | 127 | (superClass: any): DeclareConstructor<any>; |
|
130 | 128 | |
|
131 | 129 | /** |
|
132 | 130 | * Mix in properties skipping a constructor and decorating functions |
|
133 | 131 | * like it is done by declare(). |
|
134 | 132 | */ |
|
135 | 133 | safeMixin<A, B>(target: A, source: B): A & B; |
|
136 | 134 | } |
|
137 | 135 | } |
|
138 | 136 | |
|
139 | 137 | declare const declare: declare.Declare; |
|
140 | 138 | export = declare; |
@@ -1,22 +1,21 | |||
|
1 | 1 | /* dojo/_base/event */ |
|
2 | 2 | |
|
3 | 3 | /** |
|
4 | * @module | |
|
4 | 5 | * This module defines dojo DOM event API. Usually you should use dojo/on, and evt.stopPropagation() + |
|
5 | 6 | * evt.preventDefault(), rather than this module. |
|
6 | 7 | */ |
|
7 | interface EventModule { | |
|
8 | ||
|
9 | ||
|
8 | 10 |
|
|
9 | 11 |
|
|
10 | 12 |
|
|
11 | 13 |
|
|
12 |
|
|
|
14 | export declare function fix(evt: Event, sender: Element): Event; | |
|
13 | 15 | |
|
14 | 16 |
|
|
15 | 17 |
|
|
16 | 18 |
|
|
17 | 19 |
|
|
18 |
|
|
|
19 | } | |
|
20 | export declare function stop(evt: Event): void; | |
|
20 | 21 | |
|
21 | declare const dojoEvent: EventModule; | |
|
22 | export = dojoEvent; |
@@ -1,218 +1,215 | |||
|
1 | 1 | import Evented = require("../Evented"); |
|
2 | 2 | |
|
3 | declare namespace fx { | |
|
4 | 3 |
|
|
5 | 4 | |
|
6 |
|
|
|
5 | export interface _Line { | |
|
7 | 6 |
|
|
8 | 7 |
|
|
9 | 8 |
|
|
10 | 9 |
|
|
11 | 10 |
|
|
12 | 11 | } |
|
13 | 12 | |
|
14 | 13 |
|
|
15 | 14 |
|
|
16 | 15 |
|
|
17 |
|
|
|
18 |
|
|
|
16 | export interface LineConstructor { | |
|
17 | new(start: number, end: number): _Line; | |
|
18 | ||
|
19 | prototype: _Line; | |
|
19 | 20 | } |
|
20 | 21 | |
|
21 |
|
|
|
22 | export interface EasingFunction { | |
|
22 | 23 |
|
|
23 | 24 | } |
|
24 | 25 | |
|
25 |
|
|
|
26 | export interface Animation extends Evented { | |
|
26 | 27 |
|
|
27 | 28 |
|
|
28 | 29 |
|
|
29 | 30 |
|
|
30 | 31 | |
|
31 | 32 |
|
|
32 | 33 |
|
|
33 | 34 |
|
|
34 | 35 |
|
|
35 |
|
|
|
36 | curve: _Line | [number, number]; | |
|
36 | 37 | |
|
37 | 38 |
|
|
38 | 39 |
|
|
39 | 40 |
|
|
40 | 41 |
|
|
41 | 42 |
|
|
42 | 43 | |
|
43 | 44 |
|
|
44 | 45 |
|
|
45 | 46 |
|
|
46 | 47 |
|
|
47 | 48 | |
|
48 | 49 |
|
|
49 | 50 |
|
|
50 | 51 |
|
|
51 | 52 |
|
|
52 | 53 |
|
|
53 | 54 | |
|
54 | 55 |
|
|
55 | 56 |
|
|
56 | 57 |
|
|
57 | 58 |
|
|
58 | 59 |
|
|
59 | 60 | |
|
60 | 61 |
|
|
61 | 62 |
|
|
62 | 63 |
|
|
63 | 64 |
|
|
64 | 65 | |
|
65 | 66 |
|
|
66 | 67 |
|
|
67 | 68 |
|
|
68 | 69 |
|
|
69 | 70 | |
|
70 | 71 |
|
|
71 | 72 |
|
|
72 | 73 |
|
|
73 | 74 |
|
|
74 | 75 | |
|
75 | 76 |
|
|
76 | 77 |
|
|
77 | 78 |
|
|
78 | 79 |
|
|
79 | 80 | |
|
80 | 81 |
|
|
81 | 82 |
|
|
82 | 83 |
|
|
83 | 84 |
|
|
84 | 85 | |
|
85 | 86 |
|
|
86 | 87 |
|
|
87 | 88 |
|
|
88 | 89 |
|
|
89 | 90 | |
|
90 | 91 |
|
|
91 | 92 |
|
|
92 | 93 |
|
|
93 | 94 |
|
|
94 | 95 | |
|
95 |
|
|
|
96 | _percent: number; | |
|
96 | 97 |
|
|
97 | 98 |
|
|
98 | 99 | |
|
99 | 100 |
|
|
100 | 101 |
|
|
101 | 102 |
|
|
102 | 103 |
|
|
103 | 104 |
|
|
104 | 105 | |
|
105 | 106 |
|
|
106 | 107 |
|
|
107 | 108 |
|
|
108 | 109 |
|
|
109 | 110 | |
|
110 | 111 |
|
|
111 | 112 | |
|
112 | 113 |
|
|
113 | 114 |
|
|
114 | 115 |
|
|
115 | 116 |
|
|
116 | 117 | |
|
117 | 118 |
|
|
118 | 119 |
|
|
119 | 120 |
|
|
120 | 121 |
|
|
121 | 122 | |
|
122 | 123 |
|
|
123 | 124 |
|
|
124 | 125 |
|
|
125 | 126 |
|
|
126 | 127 | |
|
127 | 128 |
|
|
128 | 129 |
|
|
129 | 130 |
|
|
130 | 131 |
|
|
131 | 132 | |
|
132 | 133 |
|
|
133 | 134 |
|
|
134 | 135 |
|
|
135 | 136 |
|
|
136 | 137 |
|
|
137 | 138 | |
|
138 | 139 |
|
|
139 | 140 |
|
|
140 | 141 |
|
|
141 | 142 |
|
|
142 | 143 | } |
|
143 | 144 | |
|
144 | 145 |
|
|
145 | 146 |
|
|
146 | 147 |
|
|
147 | 148 |
|
|
148 |
|
|
|
149 | export interface AnimationConstructor { | |
|
149 | 150 |
|
|
150 | 151 |
|
|
151 | 152 | } |
|
152 | 153 | |
|
153 |
|
|
|
154 | export interface AnimationCallback { | |
|
154 | 155 |
|
|
155 | 156 | } |
|
156 | 157 | |
|
157 |
|
|
|
158 | export interface FadeArguments { | |
|
158 | 159 |
|
|
159 | 160 |
|
|
160 | 161 |
|
|
161 | 162 | |
|
162 | 163 |
|
|
163 | 164 |
|
|
164 | 165 | } |
|
165 | 166 | |
|
166 |
|
|
|
167 | export interface AnimationArgumentsProperties { | |
|
167 | 168 |
|
|
168 | 169 | } |
|
169 | 170 | |
|
170 |
|
|
|
171 | export interface AnimationArguments extends FadeArguments { | |
|
171 | 172 |
|
|
172 | 173 |
|
|
173 | 174 | } |
|
174 | 175 | |
|
175 | interface Fx { | |
|
176 |
|
|
|
176 | ||
|
177 | export const _Line: LineConstructor; | |
|
177 | 178 | |
|
178 |
|
|
|
179 | export const Animation: AnimationConstructor; | |
|
179 | 180 | |
|
180 |
|
|
|
181 | export function _fade(args: any): Animation; | |
|
181 | 182 | |
|
182 | 183 | /** |
|
183 | 184 |
|
|
184 | 185 |
|
|
185 | 186 | */ |
|
186 |
|
|
|
187 | export function fadeIn(args: FadeArguments): Animation; | |
|
187 | 188 | |
|
188 | 189 | /** |
|
189 | 190 |
|
|
190 | 191 |
|
|
191 | 192 | */ |
|
192 |
|
|
|
193 | export function fadeOut(args: FadeArguments): Animation; | |
|
193 | 194 | |
|
194 |
|
|
|
195 | export function _defaultEasing(n?: number): number; | |
|
195 | 196 | |
|
196 | 197 | /** |
|
197 | 198 |
|
|
198 | 199 |
|
|
199 | 200 |
|
|
200 | 201 | */ |
|
201 |
|
|
|
202 | export function animateProperty(args: AnimationArguments): Animation; | |
|
202 | 203 | |
|
203 | 204 | /** |
|
204 | 205 |
|
|
205 | 206 |
|
|
206 | 207 |
|
|
207 | 208 | */ |
|
208 | anim( | |
|
209 | export function anim( | |
|
209 | 210 |
|
|
210 | 211 |
|
|
211 | 212 |
|
|
212 | 213 |
|
|
213 | 214 |
|
|
214 | 215 |
|
|
215 | } | |
|
216 | } | |
|
217 | declare const fx: fx.Fx; | |
|
218 | export = fx; |
@@ -1,75 +1,74 | |||
|
1 | 1 | /* dojo/_base/kernel */ |
|
2 |
import Config |
|
|
2 | import { Config } from './config'; | |
|
3 | 3 | |
|
4 | 4 | declare namespace dojo { |
|
5 | 5 | interface Dijit { |
|
6 | 6 | |
|
7 | 7 | } |
|
8 | 8 | interface Dojox { |
|
9 | 9 | |
|
10 | 10 | } |
|
11 | 11 | |
|
12 | 12 | interface Dojo { |
|
13 | 13 | config: Config; |
|
14 | 14 | global: any; |
|
15 | 15 | |
|
16 | // TODO: dojot, dojox | |
|
17 | 16 |
|
|
18 | 17 | dojox: Dojox; |
|
19 | 18 | |
|
20 | 19 | /** |
|
21 | 20 | * a map from a name used in a legacy module to the (global variable name, object addressed by that name) |
|
22 | 21 | * always map dojo, dijit, and dojox |
|
23 | 22 | */ |
|
24 | 23 | scopeMap: { |
|
25 | 24 | [scope: string]: [string, any]; |
|
26 | 25 | dojo: [string, Dojo]; |
|
27 | 26 | dijit: [string, Dijit]; |
|
28 | 27 | dojox: [string, Dojox]; |
|
29 | 28 | }; |
|
30 | 29 | |
|
31 | 30 | baseUrl: string; |
|
32 | 31 | isAsync: boolean; |
|
33 | 32 | locale: string; |
|
34 | 33 | version: { |
|
35 | 34 | major: number; |
|
36 | 35 | minor: number; |
|
37 | 36 | patch: number; |
|
38 | 37 | flag: string; |
|
39 | 38 | revision: number; |
|
40 | 39 | toString(): string; |
|
41 | 40 | }; |
|
42 | 41 | |
|
43 | 42 | /** |
|
44 | 43 | * A legacy method created for use exclusively by internal Dojo methods. Do not use this method |
|
45 | 44 | * directly unless you understand its possibly-different implications on the platforms your are targeting. |
|
46 | 45 | */ |
|
47 | 46 | eval(scriptText: string): any; |
|
48 | 47 | |
|
49 | 48 | exit(exitcode?: number): void; |
|
50 | 49 | |
|
51 | 50 | /** |
|
52 | 51 | * Log a debug message to indicate that a behavior has been |
|
53 | 52 | * deprecated. |
|
54 | 53 | */ |
|
55 | 54 | deprecated(behaviour: string, extra?: string, removal?: string): void; |
|
56 | 55 | |
|
57 | 56 | /** |
|
58 | 57 | * Marks code as experimental. |
|
59 | 58 | */ |
|
60 | 59 | experimental(moduleName: string, extra?: string): void; |
|
61 | 60 | |
|
62 | 61 | /** |
|
63 | 62 | * Returns a URL relative to a module. |
|
64 | 63 | */ |
|
65 | 64 | moduleUrl(module: string, url?: string): any; |
|
66 | 65 | |
|
67 | 66 | /** |
|
68 | 67 | * for backward compatibility with layers built with 1.6 tooling |
|
69 | 68 | */ |
|
70 | 69 | _hasResource: any; |
|
71 | 70 | } |
|
72 | 71 | } |
|
73 | 72 | |
|
74 | 73 | declare const dojo: dojo.Dojo; |
|
75 | 74 | export = dojo; |
General Comments 0
You need to be logged in to leave comments.
Login now