@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,453 @@
1
+ /** @license
2
+ * crossroads <http://millermedeiros.github.com/crossroads.js/>
3
+ * Author: Miller Medeiros | MIT License
4
+ * v0.12.0 (2013/01/21 13:47)
5
+ */
6
+ (function () {
7
+ var a = function (a) {
8
+ function e(a, b) {
9
+ if (a.indexOf) return a.indexOf(b);
10
+ var c = a.length;
11
+ while (c--) if (a[c] === b) return c;
12
+ return -1;
13
+ }
14
+ function f(a, b) {
15
+ var c = e(a, b);
16
+ c !== -1 && a.splice(c, 1);
17
+ }
18
+ function g(a, b) {
19
+ return "[object " + b + "]" === Object.prototype.toString.call(a);
20
+ }
21
+ function h(a) {
22
+ return g(a, "RegExp");
23
+ }
24
+ function i(a) {
25
+ return g(a, "Array");
26
+ }
27
+ function j(a) {
28
+ return typeof a == "function";
29
+ }
30
+ function k(a) {
31
+ var b;
32
+ return (
33
+ a === null || a === "null"
34
+ ? (b = null)
35
+ : a === "true"
36
+ ? (b = !0)
37
+ : a === "false"
38
+ ? (b = !1)
39
+ : a === d || a === "undefined"
40
+ ? (b = d)
41
+ : a === "" || isNaN(a)
42
+ ? (b = a)
43
+ : (b = parseFloat(a)),
44
+ b
45
+ );
46
+ }
47
+ function l(a) {
48
+ var b = a.length,
49
+ c = [];
50
+ while (b--) c[b] = k(a[b]);
51
+ return c;
52
+ }
53
+ function m(a, b) {
54
+ var c = (a || "").replace("?", "").split("&"),
55
+ d = c.length,
56
+ e = {},
57
+ f,
58
+ g;
59
+ while (d--)
60
+ (f = c[d].split("=")),
61
+ (g = b ? k(f[1]) : f[1]),
62
+ (e[f[0]] = typeof g == "string" ? decodeURIComponent(g) : g);
63
+ return e;
64
+ }
65
+ function n() {
66
+ (this.bypassed = new a.Signal()),
67
+ (this.routed = new a.Signal()),
68
+ (this._routes = []),
69
+ (this._prevRoutes = []),
70
+ (this._piped = []),
71
+ this.resetState();
72
+ }
73
+ function o(b, c, d, e) {
74
+ var f = h(b),
75
+ g = e.patternLexer;
76
+ (this._router = e),
77
+ (this._pattern = b),
78
+ (this._paramsIds = f ? null : g.getParamIds(b)),
79
+ (this._optionalParamsIds = f ? null : g.getOptionalParamsIds(b)),
80
+ (this._matchRegexp = f ? b : g.compilePattern(b, e.ignoreCase)),
81
+ (this.matched = new a.Signal()),
82
+ (this.switched = new a.Signal()),
83
+ c && this.matched.add(c),
84
+ (this._priority = d || 0);
85
+ }
86
+ var b, c, d;
87
+ return (
88
+ (c = /t(.+)?/.exec("t")[1] === ""),
89
+ (n.prototype = {
90
+ greedy: !1,
91
+ greedyEnabled: !0,
92
+ ignoreCase: !0,
93
+ ignoreState: !1,
94
+ shouldTypecast: !1,
95
+ normalizeFn: null,
96
+ resetState: function () {
97
+ (this._prevRoutes.length = 0),
98
+ (this._prevMatchedRequest = null),
99
+ (this._prevBypassedRequest = null);
100
+ },
101
+ create: function () {
102
+ return new n();
103
+ },
104
+ addRoute: function (a, b, c) {
105
+ var d = new o(a, b, c, this);
106
+ return this._sortedInsert(d), d;
107
+ },
108
+ removeRoute: function (a) {
109
+ f(this._routes, a), a._destroy();
110
+ },
111
+ removeAllRoutes: function () {
112
+ var a = this.getNumRoutes();
113
+ while (a--) this._routes[a]._destroy();
114
+ this._routes.length = 0;
115
+ },
116
+ parse: function (a, b) {
117
+ (a = a || ""), (b = b || []);
118
+ if (
119
+ !this.ignoreState &&
120
+ (a === this._prevMatchedRequest || a === this._prevBypassedRequest)
121
+ )
122
+ return;
123
+ var c = this._getMatchedRoutes(a),
124
+ d = 0,
125
+ e = c.length,
126
+ f;
127
+ if (e) {
128
+ (this._prevMatchedRequest = a),
129
+ this._notifyPrevRoutes(c, a),
130
+ (this._prevRoutes = c);
131
+ while (d < e)
132
+ (f = c[d]),
133
+ f.route.matched.dispatch.apply(
134
+ f.route.matched,
135
+ b.concat(f.params)
136
+ ),
137
+ (f.isFirst = !d),
138
+ this.routed.dispatch.apply(this.routed, b.concat([a, f])),
139
+ (d += 1);
140
+ } else
141
+ (this._prevBypassedRequest = a),
142
+ this.bypassed.dispatch.apply(this.bypassed, b.concat([a]));
143
+ this._pipeParse(a, b);
144
+ },
145
+ _notifyPrevRoutes: function (a, b) {
146
+ var c = 0,
147
+ d;
148
+ while ((d = this._prevRoutes[c++]))
149
+ d.route.switched &&
150
+ this._didSwitch(d.route, a) &&
151
+ d.route.switched.dispatch(b);
152
+ },
153
+ _didSwitch: function (a, b) {
154
+ var c,
155
+ d = 0;
156
+ while ((c = b[d++])) if (c.route === a) return !1;
157
+ return !0;
158
+ },
159
+ _pipeParse: function (a, b) {
160
+ var c = 0,
161
+ d;
162
+ while ((d = this._piped[c++])) d.parse(a, b);
163
+ },
164
+ getNumRoutes: function () {
165
+ return this._routes.length;
166
+ },
167
+ _sortedInsert: function (a) {
168
+ var b = this._routes,
169
+ c = b.length;
170
+ do --c;
171
+ while (b[c] && a._priority <= b[c]._priority);
172
+ b.splice(c + 1, 0, a);
173
+ },
174
+ _getMatchedRoutes: function (a) {
175
+ var b = [],
176
+ c = this._routes,
177
+ d = c.length,
178
+ e;
179
+ while ((e = c[--d])) {
180
+ (!b.length || this.greedy || e.greedy) &&
181
+ e.match(a) &&
182
+ b.push({ route: e, params: e._getParamsArray(a) });
183
+ if (!this.greedyEnabled && b.length) break;
184
+ }
185
+ return b;
186
+ },
187
+ pipe: function (a) {
188
+ this._piped.push(a);
189
+ },
190
+ unpipe: function (a) {
191
+ f(this._piped, a);
192
+ },
193
+ toString: function () {
194
+ return "[crossroads numRoutes:" + this.getNumRoutes() + "]";
195
+ },
196
+ }),
197
+ (b = new n()),
198
+ (b.VERSION = "0.12.0"),
199
+ (b.NORM_AS_ARRAY = function (a, b) {
200
+ return [b.vals_];
201
+ }),
202
+ (b.NORM_AS_OBJECT = function (a, b) {
203
+ return [b];
204
+ }),
205
+ (o.prototype = {
206
+ greedy: !1,
207
+ rules: void 0,
208
+ match: function (a) {
209
+ return (
210
+ (a = a || ""), this._matchRegexp.test(a) && this._validateParams(a)
211
+ );
212
+ },
213
+ _validateParams: function (a) {
214
+ var b = this.rules,
215
+ c = this._getParamsObject(a),
216
+ d;
217
+ for (d in b)
218
+ if (
219
+ d !== "normalize_" &&
220
+ b.hasOwnProperty(d) &&
221
+ !this._isValidParam(a, d, c)
222
+ )
223
+ return !1;
224
+ return !0;
225
+ },
226
+ _isValidParam: function (a, b, c) {
227
+ var d = this.rules[b],
228
+ f = c[b],
229
+ g = !1,
230
+ k = b.indexOf("?") === 0;
231
+ return (
232
+ f == null &&
233
+ this._optionalParamsIds &&
234
+ e(this._optionalParamsIds, b) !== -1
235
+ ? (g = !0)
236
+ : h(d)
237
+ ? (k && (f = c[b + "_"]), (g = d.test(f)))
238
+ : i(d)
239
+ ? (k && (f = c[b + "_"]), (g = this._isValidArrayRule(d, f)))
240
+ : j(d) && (g = d(f, a, c)),
241
+ g
242
+ );
243
+ },
244
+ _isValidArrayRule: function (a, b) {
245
+ if (!this._router.ignoreCase) return e(a, b) !== -1;
246
+ typeof b == "string" && (b = b.toLowerCase());
247
+ var c = a.length,
248
+ d,
249
+ f;
250
+ while (c--) {
251
+ (d = a[c]), (f = typeof d == "string" ? d.toLowerCase() : d);
252
+ if (f === b) return !0;
253
+ }
254
+ return !1;
255
+ },
256
+ _getParamsObject: function (a) {
257
+ var b = this._router.shouldTypecast,
258
+ d = this._router.patternLexer.getParamValues(
259
+ a,
260
+ this._matchRegexp,
261
+ b
262
+ ),
263
+ f = {},
264
+ g = d.length,
265
+ h,
266
+ i;
267
+ while (g--)
268
+ (i = d[g]),
269
+ this._paramsIds &&
270
+ ((h = this._paramsIds[g]),
271
+ h.indexOf("?") === 0 &&
272
+ i &&
273
+ ((f[h + "_"] = i), (i = m(i, b)), (d[g] = i)),
274
+ c &&
275
+ i === "" &&
276
+ e(this._optionalParamsIds, h) !== -1 &&
277
+ ((i = void 0), (d[g] = i)),
278
+ (f[h] = i)),
279
+ (f[g] = i);
280
+ return (f.request_ = b ? k(a) : a), (f.vals_ = d), f;
281
+ },
282
+ _getParamsArray: function (a) {
283
+ var b = this.rules ? this.rules.normalize_ : null,
284
+ c;
285
+ return (
286
+ (b = b || this._router.normalizeFn),
287
+ b && j(b)
288
+ ? (c = b(a, this._getParamsObject(a)))
289
+ : (c = this._getParamsObject(a).vals_),
290
+ c
291
+ );
292
+ },
293
+ interpolate: function (a) {
294
+ var b = this._router.patternLexer.interpolate(this._pattern, a);
295
+ if (!this._validateParams(b))
296
+ throw new Error(
297
+ "Generated string doesn't validate against `Route.rules`."
298
+ );
299
+ return b;
300
+ },
301
+ dispose: function () {
302
+ this._router.removeRoute(this);
303
+ },
304
+ _destroy: function () {
305
+ this.matched.dispose(),
306
+ this.switched.dispose(),
307
+ (this.matched =
308
+ this.switched =
309
+ this._pattern =
310
+ this._matchRegexp =
311
+ null);
312
+ },
313
+ toString: function () {
314
+ return (
315
+ '[Route pattern:"' +
316
+ this._pattern +
317
+ '", numListeners:' +
318
+ this.matched.getNumListeners() +
319
+ "]"
320
+ );
321
+ },
322
+ }),
323
+ (n.prototype.patternLexer = (function () {
324
+ function j() {
325
+ var a, b;
326
+ for (a in e)
327
+ e.hasOwnProperty(a) &&
328
+ ((b = e[a]),
329
+ (b.id = "__CR_" + a + "__"),
330
+ (b.save = "save" in b ? b.save.replace("{{id}}", b.id) : b.id),
331
+ (b.rRestore = new RegExp(b.id, "g")));
332
+ }
333
+ function k(a, b) {
334
+ var c = [],
335
+ d;
336
+ a.lastIndex = 0;
337
+ while ((d = a.exec(b))) c.push(d[1]);
338
+ return c;
339
+ }
340
+ function m(a) {
341
+ return k(d, a);
342
+ }
343
+ function n(a) {
344
+ return k(e.OP.rgx, a);
345
+ }
346
+ function o(d, e) {
347
+ return (
348
+ (d = d || ""),
349
+ d &&
350
+ (i === f
351
+ ? (d = d.replace(b, ""))
352
+ : i === h && (d = d.replace(c, "")),
353
+ (d = p(d, "rgx", "save")),
354
+ (d = d.replace(a, "\\$&")),
355
+ (d = p(d, "rRestore", "res")),
356
+ i === f && (d = "\\/?" + d)),
357
+ i !== g && (d += "\\/?"),
358
+ new RegExp("^" + d + "$", e ? "i" : "")
359
+ );
360
+ }
361
+ function p(a, b, c) {
362
+ var d, f;
363
+ for (f in e)
364
+ e.hasOwnProperty(f) && ((d = e[f]), (a = a.replace(d[b], d[c])));
365
+ return a;
366
+ }
367
+ function q(a, b, c) {
368
+ var d = b.exec(a);
369
+ return d && (d.shift(), c && (d = l(d))), d;
370
+ }
371
+ function r(a, b) {
372
+ if (typeof a != "string")
373
+ throw new Error("Route pattern should be a string.");
374
+ var c = function (a, c) {
375
+ var d;
376
+ c = c.substr(0, 1) === "?" ? c.substr(1) : c;
377
+ if (b[c] != null) {
378
+ if (typeof b[c] == "object") {
379
+ var e = [];
380
+ for (var f in b[c]) e.push(encodeURI(f + "=" + b[c][f]));
381
+ d = "?" + e.join("&");
382
+ } else d = String(b[c]);
383
+ if (a.indexOf("*") === -1 && d.indexOf("/") !== -1)
384
+ throw new Error(
385
+ 'Invalid value "' + d + '" for segment "' + a + '".'
386
+ );
387
+ } else {
388
+ if (a.indexOf("{") !== -1)
389
+ throw new Error("The segment " + a + " is required.");
390
+ d = "";
391
+ }
392
+ return d;
393
+ };
394
+ return (
395
+ e.OS.trail || (e.OS.trail = new RegExp("(?:" + e.OS.id + ")+$")),
396
+ a
397
+ .replace(e.OS.rgx, e.OS.save)
398
+ .replace(d, c)
399
+ .replace(e.OS.trail, "")
400
+ .replace(e.OS.rRestore, "/")
401
+ );
402
+ }
403
+ var a = /[\\.+*?\^$\[\](){}\/'#]/g,
404
+ b = /^\/|\/$/g,
405
+ c = /\/$/g,
406
+ d = /(?:\{|:)([^}:]+)(?:\}|:)/g,
407
+ e = {
408
+ OS: {
409
+ rgx: /([:}]|\w(?=\/))\/?(:|(?:\{\?))/g,
410
+ save: "$1{{id}}$2",
411
+ res: "\\/?",
412
+ },
413
+ RS: { rgx: /([:}])\/?(\{)/g, save: "$1{{id}}$2", res: "\\/" },
414
+ RQ: { rgx: /\{\?([^}]+)\}/g, res: "\\?([^#]+)" },
415
+ OQ: { rgx: /:\?([^:]+):/g, res: "(?:\\?([^#]*))?" },
416
+ OR: { rgx: /:([^:]+)\*:/g, res: "(.*)?" },
417
+ RR: { rgx: /\{([^}]+)\*\}/g, res: "(.+)" },
418
+ RP: { rgx: /\{([^}]+)\}/g, res: "([^\\/?]+)" },
419
+ OP: { rgx: /:([^:]+):/g, res: "([^\\/?]+)?/?" },
420
+ },
421
+ f = 1,
422
+ g = 2,
423
+ h = 3,
424
+ i = f;
425
+ return (
426
+ j(),
427
+ {
428
+ strict: function () {
429
+ i = g;
430
+ },
431
+ loose: function () {
432
+ i = f;
433
+ },
434
+ legacy: function () {
435
+ i = h;
436
+ },
437
+ getParamIds: m,
438
+ getOptionalParamsIds: n,
439
+ getParamValues: q,
440
+ compilePattern: o,
441
+ interpolate: r,
442
+ }
443
+ );
444
+ })()),
445
+ b
446
+ );
447
+ };
448
+ typeof define == "function" && define.amd
449
+ ? define(["signals"], a)
450
+ : typeof module != "undefined" && module.exports
451
+ ? (module.exports = a(require("signals")))
452
+ : (window.crossroads = a(window.signals));
453
+ })();
@@ -0,0 +1,165 @@
1
+ /*
2
+ * Require-CSS RequireJS css! loader plugin
3
+ * 0.1.8
4
+ * Guy Bedford 2014
5
+ * MIT
6
+ */
7
+
8
+ /*
9
+ *
10
+ * Usage:
11
+ * require(['css!./mycssFile']);
12
+ *
13
+ * Tested and working in (up to latest versions as of March 2013):
14
+ * Android
15
+ * iOS 6
16
+ * IE 6 - 10
17
+ * Chome 3 - 26
18
+ * Firefox 3.5 - 19
19
+ * Opera 10 - 12
20
+ *
21
+ * browserling.com used for virtual testing environment
22
+ *
23
+ * Credit to B Cavalier & J Hann for the IE 6 - 9 method,
24
+ * refined with help from Martin Cermak
25
+ *
26
+ * Sources that helped along the way:
27
+ * - https://developer.mozilla.org/en-US/docs/Browser_detection_using_the_user_agent
28
+ * - http://www.phpied.com/when-is-a-stylesheet-really-loaded/
29
+ * - https://github.com/cujojs/curl/blob/master/src/curl/plugin/css.js
30
+ *
31
+ */
32
+
33
+ define([], function () {
34
+ if (typeof window == "undefined")
35
+ return {
36
+ load: function (n, r, load) {
37
+ load();
38
+ },
39
+ };
40
+
41
+ var head = document.getElementsByTagName("head")[0];
42
+
43
+ var engine =
44
+ window.navigator.userAgent.match(
45
+ /Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/
46
+ ) || 0;
47
+
48
+ // use <style> @import load method (IE < 9, Firefox < 18)
49
+ var useImportLoad = false;
50
+
51
+ // set to false for explicit <link> load checking when onload doesn't work perfectly (webkit)
52
+ var useOnload = true;
53
+
54
+ // trident / msie
55
+ if (engine[1] || engine[7])
56
+ useImportLoad = parseInt(engine[1]) < 6 || parseInt(engine[7]) <= 9;
57
+ // webkit
58
+ else if (engine[2] || engine[8]) useOnload = false;
59
+ // gecko
60
+ else if (engine[4]) useImportLoad = parseInt(engine[4]) < 18;
61
+
62
+ //main api object
63
+ var cssAPI = {};
64
+
65
+ cssAPI.pluginBuilder = "./css-builder";
66
+
67
+ // <style> @import load method
68
+ var curStyle, curSheet;
69
+ var createStyle = function () {
70
+ curStyle = document.createElement("style");
71
+ head.appendChild(curStyle);
72
+ curSheet = curStyle.styleSheet || curStyle.sheet;
73
+ };
74
+ var ieCnt = 0;
75
+ var ieLoads = [];
76
+ var ieCurCallback;
77
+
78
+ var createIeLoad = function (url) {
79
+ curSheet.addImport(url);
80
+ curStyle.onload = function () {
81
+ processIeLoad();
82
+ };
83
+
84
+ ieCnt++;
85
+ if (ieCnt == 31) {
86
+ createStyle();
87
+ ieCnt = 0;
88
+ }
89
+ };
90
+ var processIeLoad = function () {
91
+ ieCurCallback();
92
+
93
+ var nextLoad = ieLoads.shift();
94
+
95
+ if (!nextLoad) {
96
+ ieCurCallback = null;
97
+ return;
98
+ }
99
+
100
+ ieCurCallback = nextLoad[1];
101
+ createIeLoad(nextLoad[0]);
102
+ };
103
+ var importLoad = function (url, callback) {
104
+ if (!curSheet || !curSheet.addImport) createStyle();
105
+
106
+ if (curSheet && curSheet.addImport) {
107
+ // old IE
108
+ if (ieCurCallback) {
109
+ ieLoads.push([url, callback]);
110
+ } else {
111
+ createIeLoad(url);
112
+ ieCurCallback = callback;
113
+ }
114
+ } else {
115
+ // old Firefox
116
+ curStyle.textContent = '@import "' + url + '";';
117
+
118
+ var loadInterval = setInterval(function () {
119
+ try {
120
+ curStyle.sheet.cssRules;
121
+ clearInterval(loadInterval);
122
+ callback();
123
+ } catch (e) {}
124
+ }, 10);
125
+ }
126
+ };
127
+
128
+ // <link> load method
129
+ var linkLoad = function (url, callback) {
130
+ var link = document.createElement("link");
131
+ link.type = "text/css";
132
+ link.rel = "stylesheet";
133
+ if (useOnload)
134
+ link.onload = function () {
135
+ link.onload = function () {};
136
+ // for style dimensions queries, a short delay can still be necessary
137
+ setTimeout(callback, 7);
138
+ };
139
+ else
140
+ var loadInterval = setInterval(function () {
141
+ for (var i = 0; i < document.styleSheets.length; i++) {
142
+ var sheet = document.styleSheets[i];
143
+ if (sheet.href == link.href) {
144
+ clearInterval(loadInterval);
145
+ return callback();
146
+ }
147
+ }
148
+ }, 10);
149
+ link.href = url;
150
+ head.appendChild(link);
151
+ };
152
+
153
+ cssAPI.normalize = function (name, normalize) {
154
+ if (name.substr(name.length - 4, 4) == ".css")
155
+ name = name.substr(0, name.length - 4);
156
+
157
+ return normalize(name);
158
+ };
159
+
160
+ cssAPI.load = function (cssId, req, load, config) {
161
+ (useImportLoad ? importLoad : linkLoad)(req.toUrl(cssId + ".css"), load);
162
+ };
163
+
164
+ return cssAPI;
165
+ });