card-mod-script 0.13.4 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/assets/script/decko/components.js.coffee +3 -0
  3. data/assets/script/decko/decko.js.coffee +0 -15
  4. data/assets/script/decko/editor.js.coffee +3 -1
  5. data/assets/script/decko/filter.js.coffee +13 -6
  6. data/assets/script/decko/mod.js.coffee +2 -8
  7. data/assets/script/{script_pointer_config.js.coffee → decko/pointer_config.js.coffee} +1 -2
  8. data/assets/script/{script_pointer_list_editor.js.coffee → decko/pointer_list_editor.js.coffee} +0 -0
  9. data/assets/script/decko/slot.js.coffee +2 -2
  10. data/assets/script/decko/slot_ready.js.coffee +1 -0
  11. data/assets/script/decko/slotter.js.coffee +23 -31
  12. data/assets/script/decko/type_editor.js.coffee +21 -0
  13. data/assets/script/decko/upload.js.coffee +12 -5
  14. data/assets/script/manifest.yml +15 -2
  15. data/set/abstract/00_script.rb +30 -31
  16. data/set/abstract/01_asset_script.rb +0 -16
  17. data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
  18. data/set/all/head_javascript.rb +4 -5
  19. data/set/right/script.rb +1 -14
  20. data/set/type/local_script_folder_group.rb +2 -2
  21. data/set/type/local_script_manifest_group.rb +1 -1
  22. data/set/type_plus_right/mod/script.rb +56 -0
  23. data/set/type_plus_right/set/script.rb +7 -0
  24. data/vendor/jquery_file_upload/LICENSE.txt +11 -12
  25. data/vendor/jquery_file_upload/README.md +189 -72
  26. data/vendor/jquery_file_upload/SECURITY.md +227 -0
  27. data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
  28. data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
  29. data/vendor/jquery_file_upload/cors/result.html +12 -10
  30. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
  31. data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
  32. data/vendor/jquery_file_upload/docker-compose.yml +55 -0
  33. data/vendor/jquery_file_upload/index.html +332 -230
  34. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
  35. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
  36. data/vendor/jquery_file_upload/js/demo.js +75 -0
  37. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
  38. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
  39. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
  40. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
  41. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
  42. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
  43. data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
  44. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
  45. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
  46. data/vendor/jquery_file_upload/package-lock.json +6853 -0
  47. data/vendor/jquery_file_upload/package.json +71 -10
  48. data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
  49. data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
  50. data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
  51. data/vendor/jquery_file_upload/server/php/php.ini +5 -0
  52. data/vendor/jquery_file_upload/test/index.html +36 -159
  53. data/vendor/jquery_file_upload/test/unit.js +989 -0
  54. data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
  55. data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
  56. data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
  57. data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
  58. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  59. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  60. data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
  61. data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
  62. data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
  63. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
  64. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
  65. data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
  66. metadata +34 -52
  67. data/file/mod_script_script_decko_machine_output/file.js +0 -2685
  68. data/file/mod_script_script_jquery_machine_output/file.js +0 -12926
  69. data/lib/javascript/script_html5shiv_printshiv.js +0 -1
  70. data/set/self/script_html5shiv_printshiv.rb +0 -11
  71. data/set/self/script_mods.rb +0 -1
  72. data/set/type/mod_script_assets.rb +0 -21
  73. data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
  74. data/vendor/jquery_file_upload/angularjs.html +0 -211
  75. data/vendor/jquery_file_upload/basic-plus.html +0 -226
  76. data/vendor/jquery_file_upload/basic.html +0 -136
  77. data/vendor/jquery_file_upload/bower-version-update.js +0 -16
  78. data/vendor/jquery_file_upload/bower.json +0 -64
  79. data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
  80. data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
  81. data/vendor/jquery_file_upload/css/style.css +0 -15
  82. data/vendor/jquery_file_upload/jquery-ui.html +0 -252
  83. data/vendor/jquery_file_upload/js/app.js +0 -101
  84. data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
  85. data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
  86. data/vendor/jquery_file_upload/js/main.js +0 -75
  87. data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
  88. data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
  89. data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
  90. data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
  91. data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
  92. data/vendor/jquery_file_upload/test/test.js +0 -1292
@@ -9,170 +9,162 @@
9
9
  * https://opensource.org/licenses/MIT
10
10
  */
11
11
 
12
- /* jshint nomen:false */
13
- /* global define, require, window */
12
+ /* global define, require */
14
13
 
15
- ;(function (factory) {
16
- 'use strict';
17
- if (typeof define === 'function' && define.amd) {
18
- // Register as an anonymous AMD module:
19
- define([
20
- 'jquery',
21
- './jquery.fileupload'
22
- ], factory);
23
- } else if (typeof exports === 'object') {
24
- // Node/CommonJS:
25
- factory(
26
- require('jquery'),
27
- require('./jquery.fileupload')
28
- );
29
- } else {
30
- // Browser globals:
31
- factory(
32
- window.jQuery
33
- );
34
- }
35
- }(function ($) {
36
- 'use strict';
37
-
38
- var originalAdd = $.blueimp.fileupload.prototype.options.add;
14
+ (function (factory) {
15
+ 'use strict';
16
+ if (typeof define === 'function' && define.amd) {
17
+ // Register as an anonymous AMD module:
18
+ define(['jquery', './jquery.fileupload'], factory);
19
+ } else if (typeof exports === 'object') {
20
+ // Node/CommonJS:
21
+ factory(require('jquery'), require('./jquery.fileupload'));
22
+ } else {
23
+ // Browser globals:
24
+ factory(window.jQuery);
25
+ }
26
+ })(function ($) {
27
+ 'use strict';
39
28
 
40
- // The File Upload Processing plugin extends the fileupload widget
41
- // with file processing functionality:
42
- $.widget('blueimp.fileupload', $.blueimp.fileupload, {
29
+ var originalAdd = $.blueimp.fileupload.prototype.options.add;
43
30
 
44
- options: {
45
- // The list of processing actions:
46
- processQueue: [
47
- /*
31
+ // The File Upload Processing plugin extends the fileupload widget
32
+ // with file processing functionality:
33
+ $.widget('blueimp.fileupload', $.blueimp.fileupload, {
34
+ options: {
35
+ // The list of processing actions:
36
+ processQueue: [
37
+ /*
48
38
  {
49
39
  action: 'log',
50
40
  type: 'debug'
51
41
  }
52
42
  */
53
- ],
54
- add: function (e, data) {
55
- var $this = $(this);
56
- data.process(function () {
57
- return $this.fileupload('process', data);
58
- });
59
- originalAdd.call(this, e, data);
60
- }
61
- },
43
+ ],
44
+ add: function (e, data) {
45
+ var $this = $(this);
46
+ data.process(function () {
47
+ return $this.fileupload('process', data);
48
+ });
49
+ originalAdd.call(this, e, data);
50
+ }
51
+ },
62
52
 
63
- processActions: {
64
- /*
53
+ processActions: {
54
+ /*
65
55
  log: function (data, options) {
66
56
  console[options.type](
67
57
  'Processing "' + data.files[data.index].name + '"'
68
58
  );
69
59
  }
70
60
  */
71
- },
72
-
73
- _processFile: function (data, originalData) {
74
- var that = this,
75
- dfd = $.Deferred().resolveWith(that, [data]),
76
- chain = dfd.promise();
77
- this._trigger('process', null, data);
78
- $.each(data.processQueue, function (i, settings) {
79
- var func = function (data) {
80
- if (originalData.errorThrown) {
81
- return $.Deferred()
82
- .rejectWith(that, [originalData]).promise();
83
- }
84
- return that.processActions[settings.action].call(
85
- that,
86
- data,
87
- settings
88
- );
89
- };
90
- chain = chain.then(func, settings.always && func);
91
- });
92
- chain
93
- .done(function () {
94
- that._trigger('processdone', null, data);
95
- that._trigger('processalways', null, data);
96
- })
97
- .fail(function () {
98
- that._trigger('processfail', null, data);
99
- that._trigger('processalways', null, data);
100
- });
101
- return chain;
102
- },
103
-
104
- // Replaces the settings of each processQueue item that
105
- // are strings starting with an "@", using the remaining
106
- // substring as key for the option map,
107
- // e.g. "@autoUpload" is replaced with options.autoUpload:
108
- _transformProcessQueue: function (options) {
109
- var processQueue = [];
110
- $.each(options.processQueue, function () {
111
- var settings = {},
112
- action = this.action,
113
- prefix = this.prefix === true ? action : this.prefix;
114
- $.each(this, function (key, value) {
115
- if ($.type(value) === 'string' &&
116
- value.charAt(0) === '@') {
117
- settings[key] = options[
118
- value.slice(1) || (prefix ? prefix +
119
- key.charAt(0).toUpperCase() + key.slice(1) : key)
120
- ];
121
- } else {
122
- settings[key] = value;
123
- }
61
+ },
124
62
 
125
- });
126
- processQueue.push(settings);
127
- });
128
- options.processQueue = processQueue;
129
- },
63
+ _processFile: function (data, originalData) {
64
+ var that = this,
65
+ // eslint-disable-next-line new-cap
66
+ dfd = $.Deferred().resolveWith(that, [data]),
67
+ chain = dfd.promise();
68
+ this._trigger('process', null, data);
69
+ $.each(data.processQueue, function (i, settings) {
70
+ var func = function (data) {
71
+ if (originalData.errorThrown) {
72
+ // eslint-disable-next-line new-cap
73
+ return $.Deferred().rejectWith(that, [originalData]).promise();
74
+ }
75
+ return that.processActions[settings.action].call(
76
+ that,
77
+ data,
78
+ settings
79
+ );
80
+ };
81
+ chain = chain[that._promisePipe](func, settings.always && func);
82
+ });
83
+ chain
84
+ .done(function () {
85
+ that._trigger('processdone', null, data);
86
+ that._trigger('processalways', null, data);
87
+ })
88
+ .fail(function () {
89
+ that._trigger('processfail', null, data);
90
+ that._trigger('processalways', null, data);
91
+ });
92
+ return chain;
93
+ },
130
94
 
131
- // Returns the number of files currently in the processsing queue:
132
- processing: function () {
133
- return this._processing;
134
- },
95
+ // Replaces the settings of each processQueue item that
96
+ // are strings starting with an "@", using the remaining
97
+ // substring as key for the option map,
98
+ // e.g. "@autoUpload" is replaced with options.autoUpload:
99
+ _transformProcessQueue: function (options) {
100
+ var processQueue = [];
101
+ $.each(options.processQueue, function () {
102
+ var settings = {},
103
+ action = this.action,
104
+ prefix = this.prefix === true ? action : this.prefix;
105
+ $.each(this, function (key, value) {
106
+ if ($.type(value) === 'string' && value.charAt(0) === '@') {
107
+ settings[key] =
108
+ options[
109
+ value.slice(1) ||
110
+ (prefix
111
+ ? prefix + key.charAt(0).toUpperCase() + key.slice(1)
112
+ : key)
113
+ ];
114
+ } else {
115
+ settings[key] = value;
116
+ }
117
+ });
118
+ processQueue.push(settings);
119
+ });
120
+ options.processQueue = processQueue;
121
+ },
135
122
 
136
- // Processes the files given as files property of the data parameter,
137
- // returns a Promise object that allows to bind callbacks:
138
- process: function (data) {
139
- var that = this,
140
- options = $.extend({}, this.options, data);
141
- if (options.processQueue && options.processQueue.length) {
142
- this._transformProcessQueue(options);
143
- if (this._processing === 0) {
144
- this._trigger('processstart');
145
- }
146
- $.each(data.files, function (index) {
147
- var opts = index ? $.extend({}, options) : options,
148
- func = function () {
149
- if (data.errorThrown) {
150
- return $.Deferred()
151
- .rejectWith(that, [data]).promise();
152
- }
153
- return that._processFile(opts, data);
154
- };
155
- opts.index = index;
156
- that._processing += 1;
157
- that._processingQueue = that._processingQueue.then(func, func)
158
- .always(function () {
159
- that._processing -= 1;
160
- if (that._processing === 0) {
161
- that._trigger('processstop');
162
- }
163
- });
164
- });
165
- }
166
- return this._processingQueue;
167
- },
123
+ // Returns the number of files currently in the processing queue:
124
+ processing: function () {
125
+ return this._processing;
126
+ },
168
127
 
169
- _create: function () {
170
- this._super();
171
- this._processing = 0;
172
- this._processingQueue = $.Deferred().resolveWith(this)
173
- .promise();
128
+ // Processes the files given as files property of the data parameter,
129
+ // returns a Promise object that allows to bind callbacks:
130
+ process: function (data) {
131
+ var that = this,
132
+ options = $.extend({}, this.options, data);
133
+ if (options.processQueue && options.processQueue.length) {
134
+ this._transformProcessQueue(options);
135
+ if (this._processing === 0) {
136
+ this._trigger('processstart');
174
137
  }
138
+ $.each(data.files, function (index) {
139
+ var opts = index ? $.extend({}, options) : options,
140
+ func = function () {
141
+ if (data.errorThrown) {
142
+ // eslint-disable-next-line new-cap
143
+ return $.Deferred().rejectWith(that, [data]).promise();
144
+ }
145
+ return that._processFile(opts, data);
146
+ };
147
+ opts.index = index;
148
+ that._processing += 1;
149
+ that._processingQueue = that._processingQueue[that._promisePipe](
150
+ func,
151
+ func
152
+ ).always(function () {
153
+ that._processing -= 1;
154
+ if (that._processing === 0) {
155
+ that._trigger('processstop');
156
+ }
157
+ });
158
+ });
159
+ }
160
+ return this._processingQueue;
161
+ },
175
162
 
176
- });
177
-
178
- }));
163
+ _create: function () {
164
+ this._super();
165
+ this._processing = 0;
166
+ // eslint-disable-next-line new-cap
167
+ this._processingQueue = $.Deferred().resolveWith(this).promise();
168
+ }
169
+ });
170
+ });