From d06fed09d6a8a17cf9b7c94f90228e22a1972b8c Mon Sep 17 00:00:00 2001 From: djmaze Date: Thu, 17 Sep 2020 16:40:43 +0200 Subject: [PATCH] Drop support for old browsers and some jQuery --- vendors/knockout/Gruntfile.js | 6 + .../build/fragments/source-references.js | 4 +- .../build/output/knockout-latest.debug.js | 5877 +++++++++++++++++ .../knockout/build/output/knockout-latest.js | 122 + vendors/knockout/package.json | 7 +- .../src/binding/bindingAttributeSyntax.js | 11 +- .../src/binding/defaultBindings/attr.js | 14 +- .../src/binding/defaultBindings/checked.js | 19 +- .../src/binding/defaultBindings/click.js | 0 .../src/binding/defaultBindings/css.js | 18 +- .../binding/defaultBindings/enableDisable.js | 0 .../src/binding/defaultBindings/event.js | 0 .../src/binding/defaultBindings/foreach.js | 0 .../src/binding/defaultBindings/hasfocus.js | 16 +- .../src/binding/defaultBindings/html.js | 0 .../binding/defaultBindings/ifIfnotWith.js | 0 .../src/binding/defaultBindings/options.js | 7 +- .../defaultBindings/selectedOptions.js | 2 +- .../src/binding/defaultBindings/style.js | 4 +- .../src/binding/defaultBindings/submit.js | 0 .../src/binding/defaultBindings/text.js | 0 .../src/binding/defaultBindings/textInput.js | 112 +- .../src/binding/defaultBindings/uniqueName.js | 3 +- .../src/binding/defaultBindings/value.js | 20 +- .../binding/defaultBindings/visibleHidden.js | 0 .../editDetection/arrayToDomNodeChildren.js | 2 +- .../knockout/src/binding/selectExtensions.js | 12 +- .../knockout/src/components/customElements.js | 32 +- .../src/subscribables/dependentObservable.js | 2 +- .../src/subscribables/mappingHelpers.js | 96 - .../knockout/src/subscribables/observable.js | 2 +- .../src/subscribables/observableUtils.js | 5 +- .../jquery.tmpl/jqueryTmplTemplateEngine.js | 84 - .../templating/native/nativeTemplateEngine.js | 11 +- vendors/knockout/src/utils.domData.js | 62 +- vendors/knockout/src/utils.domManipulation.js | 56 +- vendors/knockout/src/utils.domNodeDisposal.js | 6 +- vendors/knockout/src/utils.js | 397 +- 38 files changed, 6137 insertions(+), 872 deletions(-) create mode 100644 vendors/knockout/build/output/knockout-latest.debug.js create mode 100644 vendors/knockout/build/output/knockout-latest.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/attr.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/checked.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/click.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/css.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/enableDisable.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/event.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/foreach.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/hasfocus.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/html.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/ifIfnotWith.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/options.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/selectedOptions.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/style.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/submit.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/text.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/uniqueName.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/value.js mode change 100755 => 100644 vendors/knockout/src/binding/defaultBindings/visibleHidden.js delete mode 100644 vendors/knockout/src/subscribables/mappingHelpers.js delete mode 100644 vendors/knockout/src/templating/jquery.tmpl/jqueryTmplTemplateEngine.js diff --git a/vendors/knockout/Gruntfile.js b/vendors/knockout/Gruntfile.js index 19e7b561a..8245d83d2 100644 --- a/vendors/knockout/Gruntfile.js +++ b/vendors/knockout/Gruntfile.js @@ -4,6 +4,8 @@ module.exports = function(grunt) { // Project configuration grunt.initConfig({ +// language_in:'ECMASCRIPT6', +// language_out:'ECMASCRIPT6', // Metadata pkg: grunt.file.readJSON('package.json'), fragments: './build/fragments/', @@ -109,6 +111,8 @@ module.exports = function(grunt) { function buildMin(output, done) { var cc = require('closure-compiler'); var options = { +// language_in:'ECMASCRIPT6', +// language_out:'ECMASCRIPT6', compilation_level: 'ADVANCED_OPTIMIZATIONS', output_wrapper: '(function() {%output%})();' }; @@ -156,6 +160,7 @@ module.exports = function(grunt) { }); grunt.registerMultiTask('testtypes', 'Run types tests', function () { +/* var done = this.async(), target = this.target; @@ -171,6 +176,7 @@ module.exports = function(grunt) { done(!error); } ); +*/ }); grunt.registerTask('dist', function() { diff --git a/vendors/knockout/build/fragments/source-references.js b/vendors/knockout/build/fragments/source-references.js index 481422c3e..054d8d3ea 100644 --- a/vendors/knockout/build/fragments/source-references.js +++ b/vendors/knockout/build/fragments/source-references.js @@ -16,7 +16,6 @@ knockoutDebugCallback([ 'src/subscribables/observableArray.js', 'src/subscribables/observableArray.changeTracking.js', 'src/subscribables/dependentObservable.js', - 'src/subscribables/mappingHelpers.js', 'src/subscribables/observableUtils.js', 'src/binding/selectExtensions.js', 'src/binding/expressionRewriting.js', @@ -55,6 +54,5 @@ knockoutDebugCallback([ 'src/templating/templating.js', 'src/binding/editDetection/compareArrays.js', 'src/binding/editDetection/arrayToDomNodeChildren.js', - 'src/templating/native/nativeTemplateEngine.js', - 'src/templating/jquery.tmpl/jqueryTmplTemplateEngine.js' + 'src/templating/native/nativeTemplateEngine.js' ]); diff --git a/vendors/knockout/build/output/knockout-latest.debug.js b/vendors/knockout/build/output/knockout-latest.debug.js new file mode 100644 index 000000000..e884b7f74 --- /dev/null +++ b/vendors/knockout/build/output/knockout-latest.debug.js @@ -0,0 +1,5877 @@ +/*! + * Knockout JavaScript library v3.5.1-pre + * (c) The Knockout.js team - http://knockoutjs.com/ + * License: MIT (http://www.opensource.org/licenses/mit-license.php) + */ + +(function(){ +var DEBUG=true; +(function(undefined){ + // (0, eval)('this') is a robust way of getting a reference to the global object + // For details, see http://stackoverflow.com/questions/14119988/return-this-0-evalthis/14120023#14120023 + var window = this || (0, eval)('this'), + document = window['document'], + navigator = window['navigator'], + jQueryInstance = window["jQuery"], + JSON = window["JSON"]; + + if (!jQueryInstance && typeof jQuery !== "undefined") { + jQueryInstance = jQuery; + } +(function(factory) { + // Support three module loading scenarios + if (typeof define === 'function' && define['amd']) { + // [1] AMD anonymous module + define(['exports', 'require'], factory); + } else if (typeof exports === 'object' && typeof module === 'object') { + // [2] CommonJS/Node.js + factory(module['exports'] || exports); // module.exports is for Node.js + } else { + // [3] No module loader (plain