Showing the changes to Source/Libraries/GSF.Web/Model/Scripts (9 of 19 files). Show all
Unified · Split
| @@ -1,3 +1,8 @@ | ||
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 1 | 6 | /** |
| 2 | 7 | * @license AngularJS v1.5.8 |
| 3 | 8 | * (c) 2010-2016 Google, Inc. http://angularjs.org |
| @@ -1,4 +1,9 @@ | ||
| 1 | −//****************************************************************************************************** | |
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 6 | +//****************************************************************************************************** | |
| 2 | 7 | // gsf.web.client.js - Gbtc |
| 3 | 8 | // |
| 4 | 9 | // Copyright © 2016, Grid Protection Alliance. All Rights Reserved. |
| @@ -1,4 +1,9 @@ | ||
| 1 | −//****************************************************************************************************** | |
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 6 | +//****************************************************************************************************** | |
| 2 | 7 | // gsf.web.knockout.js - Gbtc |
| 3 | 8 | // |
| 4 | 9 | // Copyright © 2016, Grid Protection Alliance. All Rights Reserved. |
| @@ -1,4 +1,9 @@ | ||
| 1 | −//****************************************************************************************************** | |
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 6 | +//****************************************************************************************************** | |
| 2 | 7 | // gsf.web.primeui.js - Gbtc |
| 3 | 8 | // |
| 4 | 9 | // Copyright © 2016, Grid Protection Alliance. All Rights Reserved. |
| @@ -1,4 +1,9 @@ | ||
| 1 | −/*! | |
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 6 | +/*! | |
| 2 | 7 | * JavaScript Cookie v2.1.0 |
| 3 | 8 | * https://github.com/js-cookie/js-cookie |
| 4 | 9 | * |
| @@ -1,3 +1,8 @@ | ||
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 1 | 6 | // Deep observer plugin for Knockout http://knockoutjs.com/ |
| 2 | 7 | // (c) Ziad Jeeroburkhan |
| 3 | 8 | // License: MIT (http://www.opensource.org/licenses/mit-license.php) |
| @@ -1 +1,6 @@ | ||
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 1 | 6 | ko.subscribable.fn.watch=function(a,b,c,d){var e=typeof a;return"boolean"===e||"undefined"===e?ko.watch(this,{enabled:a!==!1}):"function"!==e||ko.isSubscribable(a)?ko.watch(a,b,c,d||this):ko.watch(this,b||{},a,d||this),this},ko.watch=function(a,b,c,d){function e(f,g,h,i,j){if(f&&0!==b.depth&&(-1===b.depth||h.length<(b.depth||1))){if(b.watchedOnly&&!f.watchable&&f!=a)return;if((b.enabled===!1||b.enabled===!0)&&(f.watchable=b.enabled),f.watchable===!1)return;if(b.seal===!0&&(f.watchable=!1),f===g||ko.utils.arrayIndexOf(h,f)>-1)return;var k=[].concat(h,g&&g!==a?g:[]);if(b.hide&&("object"==typeof b.hide?b.hide===f:ko.utils.arrayIndexOf(b.hide,f)>-1))return;if(ko.isSubscribable(f)){if(c&&(i===!0||!b.beforeWatch||b.beforeWatch.call(d,k,f)!==!1)){if("function"==typeof f.pop)return f.subscribe(function(a){ko.utils.arrayForEach(a,function(a){var b=c.call(d,k,f,a);void 0!==b&&d(b),a.moved||setTimeout(function(){e(a.value,j?null:f,k,"deleted"===a.status)},0)})},void 0,"arrayChange"),e(f(),j?null:f,k,i,!0),!0;if(i===!0){var l=f.H||f._subscriptions;if(l){if(l.change)for(var m=l.change.length-1;m>=0;m--)l.change[m]._watcher===d&&l.change[m].dispose();if(l.beforeChange&&b.keepOldValues>0)for(var m=l.beforeChange.length-1;m>=0;m--)l.beforeChange[m]._watcher===d&&l.beforeChange[m].dispose()}e(f(),j?null:f,k,!0,!0)}else{if(b.enabled===!0&&f.watchable===!1)return;(b.keepOldValues>0||b.mutable)&&(f.subscribe(function(a){if(b.keepOldValues>0){var c=f.oldValues?f.oldValues:f.oldValues=[];for(c.unshift(a);c.length>b.keepOldValues;)c.pop()}b.mutable&&"object"==typeof a&&e(a,j?null:f,k,!0,!0)},null,"beforeChange")._watcher=d),f.subscribe(function(){if(f.watchable!==!1){var a=c.call(d,k,f);void 0!==a&&d(a),b.mutable&&"object"==typeof f()&&e(f(),j?null:f,k)}},null,"change")._watcher=d,b.hideWrappedValues!==!0&&e(f(),j?null:f,k)}}}else switch(Object.prototype.toString.call(f)){case"[object Object]":return ko.utils.objectForEach(f,function(a,c){if(b.wrap){var g=Object.prototype.toString.call(c);"[object Function]"!==g&&"[object Object]"!==g&&(b.beforeWrap&&b.beforeWrap.call(d,k,f,c)===!1||(c=f[a]="[object Array]"===g?ko.observableArray(c):ko.observable(c)))}var h=e(c,j?null:f,k,i);h&&b.tagParentsWithName===!0&&!c._fieldName&&(c._fieldName=a)}),!0;case"[object Array]":if(b.hideArrays!==!0)for(var m=0;m<f.length;m++)e(f[m],j?null:f,k,i);return!0}}}return"function"==typeof b&&(d=d||c,c=b,b={}),d=d||this,"function"!=typeof a||ko.isSubscribable(a)?void e(a,null,[]):ko.computed(a,c,b)};window.foo = "1.3.0"; |
| @@ -1,4 +1,9 @@ | ||
| 1 | −// Knockout Observable Dictionary | |
| 1 | +/******************************************************************************************************\ | |
| 2 | + !WARNING: The location for this resource has been moved! | |
| 3 | + New resource path is "/@GSF/Web/Shared/Scripts/", please update scripts to use this new location | |
| 4 | +\******************************************************************************************************/ | |
| 5 | + | |
| 6 | +// Knockout Observable Dictionary | |
| 2 | 7 | // (c) James Foster |
| 3 | 8 | // License: MIT (http://www.opensource.org/licenses/mit-license.php) |
| 4 | 9 | |
| @@ -25,6 +25,22 @@ · 24 unmodified lines | ||
| 25 | 25 | // Paged view model base class scripts |
| 26 | 26 | "use strict"; |
| 27 | 27 | |
| 28 | +if (typeof jQuery === "undefined") { | |
| 29 | + throw new Error("pageViewModel script requires jQuery - make sure jquery.js is loaded first"); | |
| 30 | +} | |
| 31 | + | |
| 32 | +if (typeof Cookies.get === "undefined") { | |
| 33 | + throw new Error("pageViewModel script requires js.cookie - make sure js.cookie.js is loaded first"); | |
| 34 | +} | |
| 35 | + | |
| 36 | +if (typeof ko === "undefined") { | |
| 37 | + throw new Error("pageViewModel script requires knockout - make sure knockout.js is loaded first"); | |
| 38 | +} | |
| 39 | + | |
| 40 | +if (typeof Dictionary === "undefined") { | |
| 41 | + throw new Error("pageViewModel script requires gsf.web.client - make sure gsf.web.client.js is loaded first"); | |
| 42 | +} | |
| 43 | + | |
| 28 | 44 | var RecordMode = { |
| 29 | 45 | View: 0, |
| 30 | 46 | Edit: 1, |