@ms-atlas/datastudio 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @ms-atlas/datastudio might be problematic. Click here for more details.

Files changed (38) hide show
  1. package/ExternalLibraries/Monaco/vs/loader.js +2166 -0
  2. package/ExternalLibraries/URI.min.js +1901 -0
  3. package/ExternalLibraries/crossroads.min.js +453 -0
  4. package/ExternalLibraries/css.js +165 -0
  5. package/ExternalLibraries/d3.min.js +10857 -0
  6. package/ExternalLibraries/es6-promise.min.js +363 -0
  7. package/ExternalLibraries/hammer.js +2224 -0
  8. package/ExternalLibraries/hull.js +444 -0
  9. package/ExternalLibraries/i18n.min.js +115 -0
  10. package/ExternalLibraries/jquery-ui-timepicker-addon.min.css +76 -0
  11. package/ExternalLibraries/jquery-ui-timepicker-addon.min.js +1918 -0
  12. package/ExternalLibraries/jquery-ui.js +17201 -0
  13. package/ExternalLibraries/jquery-ui.min.css +1454 -0
  14. package/ExternalLibraries/jquery.history.js +2173 -0
  15. package/ExternalLibraries/jquery.min.js +5168 -0
  16. package/ExternalLibraries/jquery.mockjax.min.js +445 -0
  17. package/ExternalLibraries/jquery.modal.js +173 -0
  18. package/ExternalLibraries/jstree.js +10086 -0
  19. package/ExternalLibraries/jstree.style.css +1048 -0
  20. package/ExternalLibraries/jwt-decode.min.js +142 -0
  21. package/ExternalLibraries/knockout-latest.debug.js +7375 -0
  22. package/ExternalLibraries/knockout.mapping.min.js +534 -0
  23. package/ExternalLibraries/moment.js +3389 -0
  24. package/ExternalLibraries/q.js +1974 -0
  25. package/ExternalLibraries/require.js +2230 -0
  26. package/ExternalLibraries/signals.min.js +179 -0
  27. package/ExternalLibraries/text.js +445 -0
  28. package/ExternalLibraries/uuid.js +274 -0
  29. package/datastudio.application.mainpage.js +1502 -0
  30. package/datastudio.application.shared.js +626 -0
  31. package/datastudio.bootstrapper.js +517 -0
  32. package/fonts.css +14 -0
  33. package/nls/resx.js +1 -0
  34. package/nls/root/resx.js +22 -0
  35. package/package.json +22 -0
  36. package/scripts/application/sourceMapper.js +15 -0
  37. package/scripts/libs/adal/adal.js +720 -0
  38. package/stylesheets/main.css +8879 -0
@@ -0,0 +1,179 @@
1
+ /*
2
+
3
+ JS Signals <http://millermedeiros.github.com/js-signals/>
4
+ Released under the MIT license
5
+ Author: Miller Medeiros
6
+ Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM)
7
+ */
8
+ (function (i) {
9
+ function h(a, b, c, d, e) {
10
+ this._listener = b;
11
+ this._isOnce = c;
12
+ this.context = d;
13
+ this._signal = a;
14
+ this._priority = e || 0;
15
+ }
16
+ function g(a, b) {
17
+ if (typeof a !== "function")
18
+ throw Error(
19
+ "listener is a required param of {fn}() and should be a Function.".replace(
20
+ "{fn}",
21
+ b
22
+ )
23
+ );
24
+ }
25
+ function e() {
26
+ this._bindings = [];
27
+ this._prevParams = null;
28
+ var a = this;
29
+ this.dispatch = function () {
30
+ e.prototype.dispatch.apply(a, arguments);
31
+ };
32
+ }
33
+ h.prototype = {
34
+ active: !0,
35
+ params: null,
36
+ execute: function (a) {
37
+ var b;
38
+ this.active &&
39
+ this._listener &&
40
+ ((a = this.params ? this.params.concat(a) : a),
41
+ (b = this._listener.apply(this.context, a)),
42
+ this._isOnce && this.detach());
43
+ return b;
44
+ },
45
+ detach: function () {
46
+ return this.isBound()
47
+ ? this._signal.remove(this._listener, this.context)
48
+ : null;
49
+ },
50
+ isBound: function () {
51
+ return !!this._signal && !!this._listener;
52
+ },
53
+ isOnce: function () {
54
+ return this._isOnce;
55
+ },
56
+ getListener: function () {
57
+ return this._listener;
58
+ },
59
+ getSignal: function () {
60
+ return this._signal;
61
+ },
62
+ _destroy: function () {
63
+ delete this._signal;
64
+ delete this._listener;
65
+ delete this.context;
66
+ },
67
+ toString: function () {
68
+ return (
69
+ "[SignalBinding isOnce:" +
70
+ this._isOnce +
71
+ ", isBound:" +
72
+ this.isBound() +
73
+ ", active:" +
74
+ this.active +
75
+ "]"
76
+ );
77
+ },
78
+ };
79
+ e.prototype = {
80
+ VERSION: "1.0.0",
81
+ memorize: !1,
82
+ _shouldPropagate: !0,
83
+ active: !0,
84
+ _registerListener: function (a, b, c, d) {
85
+ var e = this._indexOfListener(a, c);
86
+ if (e !== -1) {
87
+ if (((a = this._bindings[e]), a.isOnce() !== b))
88
+ throw Error(
89
+ "You cannot add" +
90
+ (b ? "" : "Once") +
91
+ "() then add" +
92
+ (!b ? "" : "Once") +
93
+ "() the same listener without removing the relationship first."
94
+ );
95
+ } else (a = new h(this, a, b, c, d)), this._addBinding(a);
96
+ this.memorize && this._prevParams && a.execute(this._prevParams);
97
+ return a;
98
+ },
99
+ _addBinding: function (a) {
100
+ var b = this._bindings.length;
101
+ do --b;
102
+ while (this._bindings[b] && a._priority <= this._bindings[b]._priority);
103
+ this._bindings.splice(b + 1, 0, a);
104
+ },
105
+ _indexOfListener: function (a, b) {
106
+ for (var c = this._bindings.length, d; c--; )
107
+ if (((d = this._bindings[c]), d._listener === a && d.context === b))
108
+ return c;
109
+ return -1;
110
+ },
111
+ has: function (a, b) {
112
+ return this._indexOfListener(a, b) !== -1;
113
+ },
114
+ add: function (a, b, c) {
115
+ g(a, "add");
116
+ return this._registerListener(a, !1, b, c);
117
+ },
118
+ addOnce: function (a, b, c) {
119
+ g(a, "addOnce");
120
+ return this._registerListener(a, !0, b, c);
121
+ },
122
+ remove: function (a, b) {
123
+ g(a, "remove");
124
+ var c = this._indexOfListener(a, b);
125
+ c !== -1 && (this._bindings[c]._destroy(), this._bindings.splice(c, 1));
126
+ return a;
127
+ },
128
+ removeAll: function () {
129
+ for (var a = this._bindings.length; a--; ) this._bindings[a]._destroy();
130
+ this._bindings.length = 0;
131
+ },
132
+ getNumListeners: function () {
133
+ return this._bindings.length;
134
+ },
135
+ halt: function () {
136
+ this._shouldPropagate = !1;
137
+ },
138
+ dispatch: function (a) {
139
+ if (this.active) {
140
+ var b = Array.prototype.slice.call(arguments),
141
+ c = this._bindings.length,
142
+ d;
143
+ if (this.memorize) this._prevParams = b;
144
+ if (c) {
145
+ d = this._bindings.slice();
146
+ this._shouldPropagate = !0;
147
+ do c--;
148
+ while (d[c] && this._shouldPropagate && d[c].execute(b) !== !1);
149
+ }
150
+ }
151
+ },
152
+ forget: function () {
153
+ this._prevParams = null;
154
+ },
155
+ dispose: function () {
156
+ this.removeAll();
157
+ delete this._bindings;
158
+ delete this._prevParams;
159
+ },
160
+ toString: function () {
161
+ return (
162
+ "[Signal active:" +
163
+ this.active +
164
+ " numListeners:" +
165
+ this.getNumListeners() +
166
+ "]"
167
+ );
168
+ },
169
+ };
170
+ var f = e;
171
+ f.Signal = e;
172
+ typeof define === "function" && define.amd
173
+ ? define([], function () {
174
+ return f;
175
+ })
176
+ : typeof module !== "undefined" && module.exports
177
+ ? (module.exports = f)
178
+ : (i.signals = f);
179
+ })(this);
@@ -0,0 +1,445 @@
1
+ /**
2
+ * @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
3
+ * Available via the MIT or new BSD license.
4
+ * see: http://github.com/requirejs/text for details
5
+ */
6
+ /*jslint regexp: true */
7
+ /*global require, XMLHttpRequest, ActiveXObject,
8
+ define, window, process, Packages,
9
+ java, location, Components, FileUtils */
10
+
11
+ define(["module"], function (module) {
12
+ "use strict";
13
+
14
+ var text,
15
+ fs,
16
+ Cc,
17
+ Ci,
18
+ xpcIsWindows,
19
+ progIds = ["Msxml2.XMLHTTP", "Microsoft.XMLHTTP", "Msxml2.XMLHTTP.4.0"],
20
+ xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
21
+ bodyRegExp = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,
22
+ hasLocation = typeof location !== "undefined" && location.href,
23
+ defaultProtocol =
24
+ hasLocation && location.protocol && location.protocol.replace(/\:/, ""),
25
+ defaultHostName = hasLocation && location.hostname,
26
+ defaultPort = hasLocation && (location.port || undefined),
27
+ buildMap = {},
28
+ masterConfig = (module.config && module.config()) || {};
29
+
30
+ text = {
31
+ version: "2.0.12",
32
+
33
+ strip: function (content) {
34
+ //Strips <?xml ...?> declarations so that external SVG and XML
35
+ //documents can be added to a document without worry. Also, if the string
36
+ //is an HTML document, only the part inside the body tag is returned.
37
+ if (content) {
38
+ content = content.replace(xmlRegExp, "");
39
+ var matches = content.match(bodyRegExp);
40
+ if (matches) {
41
+ content = matches[1];
42
+ }
43
+ } else {
44
+ content = "";
45
+ }
46
+ return content;
47
+ },
48
+
49
+ jsEscape: function (content) {
50
+ return content
51
+ .replace(/(['\\])/g, "\\$1")
52
+ .replace(/[\f]/g, "\\f")
53
+ .replace(/[\b]/g, "\\b")
54
+ .replace(/[\n]/g, "\\n")
55
+ .replace(/[\t]/g, "\\t")
56
+ .replace(/[\r]/g, "\\r")
57
+ .replace(/[\u2028]/g, "\\u2028")
58
+ .replace(/[\u2029]/g, "\\u2029");
59
+ },
60
+
61
+ createXhr:
62
+ masterConfig.createXhr ||
63
+ function () {
64
+ //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
65
+ var xhr, i, progId;
66
+ if (typeof XMLHttpRequest !== "undefined") {
67
+ return new XMLHttpRequest();
68
+ } else if (typeof ActiveXObject !== "undefined") {
69
+ for (i = 0; i < 3; i += 1) {
70
+ progId = progIds[i];
71
+ try {
72
+ xhr = new ActiveXObject(progId);
73
+ } catch (e) {}
74
+
75
+ if (xhr) {
76
+ progIds = [progId]; // so faster next time
77
+ break;
78
+ }
79
+ }
80
+ }
81
+
82
+ return xhr;
83
+ },
84
+
85
+ /**
86
+ * Parses a resource name into its component parts. Resource names
87
+ * look like: module/name.ext!strip, where the !strip part is
88
+ * optional.
89
+ * @param {String} name the resource name
90
+ * @returns {Object} with properties "moduleName", "ext" and "strip"
91
+ * where strip is a boolean.
92
+ */
93
+ parseName: function (name) {
94
+ var modName,
95
+ ext,
96
+ temp,
97
+ strip = false,
98
+ index = name.indexOf("."),
99
+ isRelative = name.indexOf("./") === 0 || name.indexOf("../") === 0;
100
+
101
+ if (index !== -1 && (!isRelative || index > 1)) {
102
+ modName = name.substring(0, index);
103
+ ext = name.substring(index + 1, name.length);
104
+ } else {
105
+ modName = name;
106
+ }
107
+
108
+ temp = ext || modName;
109
+ index = temp.indexOf("!");
110
+ if (index !== -1) {
111
+ //Pull off the strip arg.
112
+ strip = temp.substring(index + 1) === "strip";
113
+ temp = temp.substring(0, index);
114
+ if (ext) {
115
+ ext = temp;
116
+ } else {
117
+ modName = temp;
118
+ }
119
+ }
120
+
121
+ return {
122
+ moduleName: modName,
123
+ ext: ext,
124
+ strip: strip,
125
+ };
126
+ },
127
+
128
+ xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
129
+
130
+ /**
131
+ * Is an URL on another domain. Only works for browser use, returns
132
+ * false in non-browser environments. Only used to know if an
133
+ * optimized .js version of a text resource should be loaded
134
+ * instead.
135
+ * @param {String} url
136
+ * @returns Boolean
137
+ */
138
+ useXhr: function (url, protocol, hostname, port) {
139
+ var uProtocol,
140
+ uHostName,
141
+ uPort,
142
+ match = text.xdRegExp.exec(url);
143
+ if (!match) {
144
+ return true;
145
+ }
146
+ uProtocol = match[2];
147
+ uHostName = match[3];
148
+
149
+ uHostName = uHostName.split(":");
150
+ uPort = uHostName[1];
151
+ uHostName = uHostName[0];
152
+
153
+ return (
154
+ (!uProtocol || uProtocol === protocol) &&
155
+ (!uHostName || uHostName.toLowerCase() === hostname.toLowerCase()) &&
156
+ ((!uPort && !uHostName) || uPort === port)
157
+ );
158
+ },
159
+
160
+ finishLoad: function (name, strip, content, onLoad) {
161
+ content = strip ? text.strip(content) : content;
162
+ if (masterConfig.isBuild) {
163
+ buildMap[name] = content;
164
+ }
165
+ onLoad(content);
166
+ },
167
+
168
+ load: function (name, req, onLoad, config) {
169
+ //Name has format: some.module.filext!strip
170
+ //The strip part is optional.
171
+ //if strip is present, then that means only get the string contents
172
+ //inside a body tag in an HTML string. For XML/SVG content it means
173
+ //removing the <?xml ...?> declarations so the content can be inserted
174
+ //into the current doc without problems.
175
+
176
+ // Do not bother with the work if a build and text will
177
+ // not be inlined.
178
+ if (config && config.isBuild && !config.inlineText) {
179
+ onLoad();
180
+ return;
181
+ }
182
+
183
+ masterConfig.isBuild = config && config.isBuild;
184
+
185
+ var parsed = text.parseName(name),
186
+ nonStripName = parsed.moduleName + (parsed.ext ? "." + parsed.ext : ""),
187
+ url = req.toUrl(nonStripName),
188
+ useXhr = masterConfig.useXhr || text.useXhr;
189
+
190
+ // Do not load if it is an empty: url
191
+ if (url.indexOf("empty:") === 0) {
192
+ onLoad();
193
+ return;
194
+ }
195
+
196
+ //Load the text. Use XHR if possible and in a browser.
197
+ if (
198
+ !hasLocation ||
199
+ useXhr(url, defaultProtocol, defaultHostName, defaultPort)
200
+ ) {
201
+ text.get(
202
+ url,
203
+ function (content) {
204
+ text.finishLoad(name, parsed.strip, content, onLoad);
205
+ },
206
+ function (err) {
207
+ if (onLoad.error) {
208
+ onLoad.error(err);
209
+ }
210
+ }
211
+ );
212
+ } else {
213
+ //Need to fetch the resource across domains. Assume
214
+ //the resource has been optimized into a JS module. Fetch
215
+ //by the module name + extension, but do not include the
216
+ //!strip part to avoid file system issues.
217
+ req([nonStripName], function (content) {
218
+ text.finishLoad(
219
+ parsed.moduleName + "." + parsed.ext,
220
+ parsed.strip,
221
+ content,
222
+ onLoad
223
+ );
224
+ });
225
+ }
226
+ },
227
+
228
+ write: function (pluginName, moduleName, write, config) {
229
+ if (buildMap.hasOwnProperty(moduleName)) {
230
+ var content = text.jsEscape(buildMap[moduleName]);
231
+ write.asModule(
232
+ pluginName + "!" + moduleName,
233
+ "define(function () { return '" + content + "';});\n"
234
+ );
235
+ }
236
+ },
237
+
238
+ writeFile: function (pluginName, moduleName, req, write, config) {
239
+ var parsed = text.parseName(moduleName),
240
+ extPart = parsed.ext ? "." + parsed.ext : "",
241
+ nonStripName = parsed.moduleName + extPart,
242
+ //Use a '.js' file name so that it indicates it is a
243
+ //script that can be loaded across domains.
244
+ fileName = req.toUrl(parsed.moduleName + extPart) + ".js";
245
+
246
+ //Leverage own load() method to load plugin value, but only
247
+ //write out values that do not have the strip argument,
248
+ //to avoid any potential issues with ! in file names.
249
+ text.load(
250
+ nonStripName,
251
+ req,
252
+ function (value) {
253
+ //Use own write() method to construct full module value.
254
+ //But need to create shell that translates writeFile's
255
+ //write() to the right interface.
256
+ var textWrite = function (contents) {
257
+ return write(fileName, contents);
258
+ };
259
+ textWrite.asModule = function (moduleName, contents) {
260
+ return write.asModule(moduleName, fileName, contents);
261
+ };
262
+
263
+ text.write(pluginName, nonStripName, textWrite, config);
264
+ },
265
+ config
266
+ );
267
+ },
268
+ };
269
+
270
+ if (
271
+ masterConfig.env === "node" ||
272
+ (!masterConfig.env &&
273
+ typeof process !== "undefined" &&
274
+ process.versions &&
275
+ !!process.versions.node &&
276
+ !process.versions["node-webkit"])
277
+ ) {
278
+ //Using special require.nodeRequire, something added by r.js.
279
+ fs = require.nodeRequire("fs");
280
+
281
+ text.get = function (url, callback, errback) {
282
+ try {
283
+ var file = fs.readFileSync(url, "utf8");
284
+ //Remove BOM (Byte Mark Order) from utf8 files if it is there.
285
+ if (file.indexOf("\uFEFF") === 0) {
286
+ file = file.substring(1);
287
+ }
288
+ callback(file);
289
+ } catch (e) {
290
+ if (errback) {
291
+ errback(e);
292
+ }
293
+ }
294
+ };
295
+ } else if (
296
+ masterConfig.env === "xhr" ||
297
+ (!masterConfig.env && text.createXhr())
298
+ ) {
299
+ text.get = function (url, callback, errback, headers) {
300
+ var xhr = text.createXhr(),
301
+ header;
302
+ xhr.open("GET", url, true);
303
+
304
+ //Allow plugins direct access to xhr headers
305
+ if (headers) {
306
+ for (header in headers) {
307
+ if (headers.hasOwnProperty(header)) {
308
+ xhr.setRequestHeader(header.toLowerCase(), headers[header]);
309
+ }
310
+ }
311
+ }
312
+
313
+ //Allow overrides specified in config
314
+ if (masterConfig.onXhr) {
315
+ masterConfig.onXhr(xhr, url);
316
+ }
317
+
318
+ xhr.onreadystatechange = function (evt) {
319
+ var status, err;
320
+ //Do not explicitly handle errors, those should be
321
+ //visible via console output in the browser.
322
+ if (xhr.readyState === 4) {
323
+ status = xhr.status || 0;
324
+ if (status > 399 && status < 600) {
325
+ //An http 4xx or 5xx error. Signal an error.
326
+ err = new Error(url + " HTTP status: " + status);
327
+ err.xhr = xhr;
328
+ if (errback) {
329
+ errback(err);
330
+ }
331
+ } else {
332
+ callback(xhr.responseText);
333
+ }
334
+
335
+ if (masterConfig.onXhrComplete) {
336
+ masterConfig.onXhrComplete(xhr, url);
337
+ }
338
+ }
339
+ };
340
+ xhr.send(null);
341
+ };
342
+ } else if (
343
+ masterConfig.env === "rhino" ||
344
+ (!masterConfig.env &&
345
+ typeof Packages !== "undefined" &&
346
+ typeof java !== "undefined")
347
+ ) {
348
+ //Why Java, why is this so awkward?
349
+ text.get = function (url, callback) {
350
+ var stringBuffer,
351
+ line,
352
+ encoding = "utf-8",
353
+ file = new java.io.File(url),
354
+ lineSeparator = java.lang.System.getProperty("line.separator"),
355
+ input = new java.io.BufferedReader(
356
+ new java.io.InputStreamReader(
357
+ new java.io.FileInputStream(file),
358
+ encoding
359
+ )
360
+ ),
361
+ content = "";
362
+ try {
363
+ stringBuffer = new java.lang.StringBuffer();
364
+ line = input.readLine();
365
+
366
+ // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
367
+ // http://www.unicode.org/faq/utf_bom.html
368
+
369
+ // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
370
+ // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
371
+ if (line && line.length() && line.charAt(0) === 0xfeff) {
372
+ // Eat the BOM, since we've already found the encoding on this file,
373
+ // and we plan to concatenating this buffer with others; the BOM should
374
+ // only appear at the top of a file.
375
+ line = line.substring(1);
376
+ }
377
+
378
+ if (line !== null) {
379
+ stringBuffer.append(line);
380
+ }
381
+
382
+ while ((line = input.readLine()) !== null) {
383
+ stringBuffer.append(lineSeparator);
384
+ stringBuffer.append(line);
385
+ }
386
+ //Make sure we return a JavaScript string and not a Java string.
387
+ content = String(stringBuffer.toString()); //String
388
+ } finally {
389
+ input.close();
390
+ }
391
+ callback(content);
392
+ };
393
+ } else if (
394
+ masterConfig.env === "xpconnect" ||
395
+ (!masterConfig.env &&
396
+ typeof Components !== "undefined" &&
397
+ Components.classes &&
398
+ Components.interfaces)
399
+ ) {
400
+ //Avert your gaze!
401
+ Cc = Components.classes;
402
+ Ci = Components.interfaces;
403
+ Components.utils["import"]("resource://gre/modules/FileUtils.jsm");
404
+ xpcIsWindows = "@mozilla.org/windows-registry-key;1" in Cc;
405
+
406
+ text.get = function (url, callback) {
407
+ var inStream,
408
+ convertStream,
409
+ fileObj,
410
+ readData = {};
411
+
412
+ if (xpcIsWindows) {
413
+ url = url.replace(/\//g, "\\");
414
+ }
415
+
416
+ fileObj = new FileUtils.File(url);
417
+
418
+ //XPCOM, you so crazy
419
+ try {
420
+ inStream = Cc[
421
+ "@mozilla.org/network/file-input-stream;1"
422
+ ].createInstance(Ci.nsIFileInputStream);
423
+ inStream.init(fileObj, 1, 0, false);
424
+
425
+ convertStream = Cc[
426
+ "@mozilla.org/intl/converter-input-stream;1"
427
+ ].createInstance(Ci.nsIConverterInputStream);
428
+ convertStream.init(
429
+ inStream,
430
+ "utf-8",
431
+ inStream.available(),
432
+ Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER
433
+ );
434
+
435
+ convertStream.readString(inStream.available(), readData);
436
+ convertStream.close();
437
+ inStream.close();
438
+ callback(readData.value);
439
+ } catch (e) {
440
+ throw new Error(((fileObj && fileObj.path) || "") + ": " + e);
441
+ }
442
+ };
443
+ }
444
+ return text;
445
+ });